html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | It looks like it comes from `mwparserfromhell`.
Would it be possible to get the bad `section` that causes this issue ? The `section` string is from `datasets/wikipedia.py:L548` ? You could just add a `try` statement and print the section if the line `section_text.append(section.strip_code().strip())` crashes.
It will help us know if we have to fix it on our side or if it is a `mwparserfromhell` issue. | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 65 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
It looks like it comes from `mwparserfromhell`.
Would it be possible to get the bad `section` that causes this issue ? The `section` string is from `datasets/wikipedia.py:L548` ? You could just add a `try` statement and print the section if the line `section_text.append(section.strip_code().strip())` crashes.
It will help us know if we have to fix it on our side or if it is a `mwparserfromhell` issue. | [
-0.23549418151378632,
-0.13825488090515137,
0.055254075676202774,
0.5212746262550354,
0.06802134215831757,
-0.08562103658914566,
-0.1348954141139984,
0.3071228861808777,
0.20676638185977936,
0.28884923458099365,
0.34776028990745544,
-0.07156261056661606,
0.05988449603319168,
-0.47903111577033997,
0.05419086664915085,
0.06242411211133003,
0.2404567003250122,
0.17174449563026428,
0.014016017317771912,
-0.15621879696846008,
-0.05648181587457657,
0.1827823966741562,
-0.3182668089866638,
0.4079269766807556,
-0.2893718183040619,
0.13335765898227692,
0.18214042484760284,
0.045347727835178375,
-0.08739365637302399,
-0.5024519562721252,
0.16021910309791565,
-0.33590462803840637,
0.1328684538602829,
0.2546605169773102,
-0.00012773477646987885,
-0.15487699210643768,
0.5309704542160034,
-0.07023433595895767,
-0.21223624050617218,
-0.03697356581687927,
-0.030452581122517586,
-0.10570044815540314,
-0.0895879790186882,
-0.23323985934257507,
0.24248459935188293,
0.24333131313323975,
0.19830727577209473,
-0.07131752371788025,
0.310844361782074,
0.3353019058704376,
0.07619922608137131,
0.38693708181381226,
0.11240114271640778,
0.09677906334400177,
0.6936832666397095,
0.1377624273300171,
0.12520268559455872,
0.09443679451942444,
0.03843792527914047,
-0.2644333839416504,
0.03459160774946213,
0.12561239302158356,
-0.3363279700279236,
-0.250264972448349,
-0.17786738276481628,
-0.05768053978681564,
0.14726364612579346,
-0.2539331018924713,
0.3059661388397217,
0.28666025400161743,
0.3650677502155304,
-0.03816208988428116,
0.2111726552248001,
-0.030804477632045746,
-0.16377419233322144,
0.20197023451328278,
0.38745638728141785,
0.44301536679267883,
-0.5954431295394897,
0.13326917588710785,
0.4793848395347595,
-0.12778085470199585,
-0.02044772356748581,
0.2640162408351898,
-0.28327828645706177,
0.9716577529907227,
0.12240256369113922,
0.23897701501846313,
0.17746059596538544,
-0.056902773678302765,
-0.28325748443603516,
-0.10965193808078766,
-0.06922920048236847,
0.15048407018184662,
-0.10251432657241821,
-0.014369171112775803,
0.006446026265621185,
-0.13863492012023926,
0.05634211003780365,
-0.5317040681838989,
-0.49281737208366394,
0.1415749192237854,
-0.06944160163402557,
0.1635713428258896,
0.5938706398010254,
-0.24850423634052277,
0.22457170486450195,
0.04209490865468979,
0.029975056648254395,
-0.006260719615966082,
0.038163211196660995,
0.11981092393398285,
-0.05761318281292915,
0.020076576620340347,
-0.35066094994544983,
0.1356579214334488,
0.23766450583934784,
-0.31768736243247986,
-0.21142761409282684,
0.15973523259162903,
-0.11075516045093536,
-0.10382404923439026,
-0.0693245455622673,
0.5388109087944031,
-0.06888269633054733,
0.34791234135627747,
-0.04198870062828064,
-0.08670555055141449,
-0.18872301280498505,
-0.4938831329345703,
0.07549233734607697,
0.17806857824325562,
-0.3806149661540985,
0.12496162205934525,
-0.19303981959819794,
0.1050054281949997,
0.044943369925022125,
0.21122245490550995,
-0.07762421667575836,
-0.513702929019928,
-0.20199768245220184,
-0.16895665228366852,
0.03940340876579285,
0.1415691077709198,
0.2810627222061157,
0.3291311264038086,
0.2446110099554062,
-0.3599986433982849,
-0.08711423724889755,
0.24074596166610718,
-0.37690070271492004,
-0.25450900197029114,
-0.49040377140045166,
-0.0008208425715565681,
-0.03536428511142731,
0.2822314500808716,
-0.5947405695915222,
0.05087573081254959,
-0.012004323303699493,
-0.057579562067985535,
0.12640932202339172,
-0.17060422897338867,
-0.16045813262462616,
-0.057974833995103836,
0.19052384793758392,
0.4509282112121582,
-0.07088974118232727,
-0.11685140430927277,
-0.177432581782341,
-0.21409392356872559,
0.20102885365486145,
0.22693587839603424,
-0.1839902549982071,
0.5195738077163696,
-0.4584503471851349,
0.45830029249191284,
0.31132495403289795,
-0.28495147824287415,
-0.05713499337434769,
-0.09794621169567108,
-0.14273576438426971,
-0.091698057949543,
0.04003855958580971,
-0.1657852679491043,
0.13804632425308228,
-0.18733251094818115,
-0.27854546904563904,
0.07209222763776779,
0.0015591420233249664,
0.20395860075950623,
-0.1975083351135254,
-0.32386571168899536,
0.25736814737319946,
0.1239001452922821,
0.16975218057632446,
-0.09272515028715134,
0.15611714124679565,
0.3895820379257202,
0.5115289688110352,
-0.08131277561187744,
-0.05715135484933853,
0.020880427211523056,
0.22281137108802795,
0.1539548635482788,
-0.013247286900877953,
-0.1178414523601532,
-0.07524203509092331,
0.05097733438014984,
0.11575089395046234,
0.22667913138866425,
-0.2539448142051697,
-0.22279998660087585,
-0.2215527594089508,
0.27938416600227356,
0.024930894374847412,
0.1636647880077362,
0.026455163955688477,
0.19393199682235718,
-0.20004916191101074,
0.25644078850746155,
-0.07531139999628067,
-0.27954694628715515,
-0.32567107677459717,
0.19355648756027222,
-0.04022637754678726,
0.2280985563993454,
-0.019277488812804222,
-0.11507096141576767,
-0.21683283150196075,
-0.11588040739297867,
0.5183762311935425,
0.0909271091222763,
-0.125385582447052,
-0.005553007125854492,
0.2218342125415802,
0.19945743680000305,
-0.39052101969718933,
-0.1928246170282364,
-0.07357768714427948,
-0.46237391233444214,
0.007323518395423889,
0.2881065011024475,
0.014759321697056293,
-0.08817397803068161,
0.3043564260005951,
0.16237430274486542,
0.36302584409713745,
0.14953458309173584,
-0.14183172583580017,
0.10467202216386795,
0.11111937463283539,
-0.058846615254879,
0.31650078296661377,
-0.11349837481975555,
0.3225904107093811,
0.43235552310943604,
-0.08829040080308914,
-0.24564068019390106,
0.17719730734825134,
-0.08210500329732895,
0.5798700451850891,
-0.16132277250289917,
0.3835200369358063,
0.24824941158294678,
-0.2514738142490387,
-0.05734590068459511,
0.2625972628593445,
-0.3426443934440613,
0.03881916403770447,
-0.0855649933218956,
-0.17106877267360687,
0.260841429233551,
0.11249122768640518,
0.09507196396589279,
0.4415658712387085,
0.18597334623336792,
0.04930172488093376,
0.03345894068479538,
-0.2050510048866272,
-0.07291598618030548,
-0.31286635994911194,
-0.08426578342914581,
-0.5056684613227844,
0.2636983394622803,
-0.40267181396484375,
-0.020320070907473564,
-0.30427053570747375,
-0.056465256959199905,
-0.4614548981189728,
-0.05380404368042946,
-0.3293023109436035,
-0.10577253252267838,
-0.15451580286026,
0.23915348947048187,
-0.18525680899620056,
0.049312345683574677,
-0.09501677751541138,
0.21746383607387543,
-0.09376831352710724,
0.43577826023101807,
-0.19788898527622223,
-0.4379400908946991,
-0.46350234746932983,
-0.18985432386398315,
0.5398997068405151,
0.2548501789569855,
0.05208072066307068,
-0.13765111565589905,
-0.26093626022338867,
-0.22512701153755188,
-0.1003715917468071,
0.4269748032093048,
0.12383002042770386,
0.012356523424386978,
-0.026343554258346558,
0.2941507399082184,
0.14058947563171387,
-0.3974827527999878,
-0.02106083184480667,
-0.2681167721748352,
-0.04956848919391632,
0.07129320502281189,
0.06346771866083145,
-0.0828443318605423,
0.15572308003902435,
-0.05711328238248825,
-0.38413986563682556,
-0.09794768691062927,
-0.25737297534942627,
-0.15976972877979279,
0.16117128729820251,
-0.4041493833065033,
-0.11385808140039444,
0.1818559169769287,
-0.4152788519859314,
-0.25321388244628906,
-0.1731044054031372,
0.08034424483776093,
0.08334226906299591,
0.09956660866737366,
-0.13322214782238007,
0.2256106734275818,
0.025985363870859146,
0.023223619908094406,
0.06673965603113174,
-0.4840840697288513,
0.3821099102497101,
0.14899010956287384,
-0.06953077018260956,
-0.22078260779380798,
-0.059650957584381104,
0.21725094318389893,
-0.14447668194770813,
0.15588966012001038,
0.06457798928022385,
-0.15545661747455597,
-0.36199477314949036,
-0.22555723786354065,
0.4314025044441223,
-0.17061471939086914,
0.34859517216682434,
0.0884208083152771,
0.7554531693458557,
-0.11211924254894257,
0.1790820062160492,
0.21855424344539642,
-0.07674567401409149,
-0.04682239517569542,
0.20998996496200562,
-0.1366441547870636,
0.19607855379581451,
0.004136264324188232,
-0.3386878967285156,
0.568620502948761,
-0.1833823323249817,
-0.4030366539955139,
-0.1962030529975891,
-0.10506163537502289,
-0.559665322303772,
-0.5058278441429138,
0.1222732663154602,
0.4351061284542084,
0.19822847843170166,
-0.05933017656207085,
0.3139866590499878,
-0.08330552279949188,
-0.3276597857475281,
0.1397940218448639,
0.3305222690105438,
-0.15926042199134827,
-0.12496928870677948,
-0.28377285599708557,
-0.09239558130502701,
-0.0676722303032875,
0.08121103793382645,
0.17045609652996063,
0.4799148142337799,
-0.02804899588227272,
0.03611981123685837,
0.009550578892230988,
-0.0412677638232708,
0.519356906414032,
0.27424904704093933,
0.3625151515007019,
-0.01014578528702259,
0.17138166725635529,
-0.05023151636123657,
-0.31922367215156555,
-0.14499884843826294,
0.07955681532621384,
0.432359516620636,
-0.040552474558353424,
-0.46249920129776,
0.0806954950094223,
-0.017864711582660675,
0.10463974624872208,
-0.1688566952943802,
0.00976212602108717,
-0.1207343190908432,
-0.1927434504032135,
-0.26437586545944214,
0.32593777775764465,
0.1250080019235611,
0.08985070884227753,
0.18377895653247833,
0.1340368092060089,
0.22932732105255127,
0.13694414496421814,
0.055354535579681396,
0.08963778614997864,
0.12920016050338745,
0.0179470032453537,
-0.23576250672340393,
-0.17440275847911835,
0.20553693175315857,
0.19449730217456818,
0.22999493777751923,
0.6723675727844238,
-0.10573001205921173,
0.005119822919368744,
0.13535358011722565,
0.18142785131931305,
0.4497552812099457,
0.012188163585960865,
0.3555928170681,
0.2967023551464081,
0.2326454073190689,
-0.20240584015846252,
0.17966437339782715,
0.20872224867343903,
-0.03042556345462799,
-0.3745732605457306,
0.08204475790262222,
0.5366142988204956,
-0.1198292076587677,
-0.07006386667490005,
0.14489609003067017,
-0.08489623665809631,
-0.3131203353404999,
0.31410014629364014,
0.3210224509239197,
1.3559770584106445,
0.18808560073375702,
0.06674165278673172,
0.1177506223320961,
0.040606074035167694,
0.8324744701385498,
-0.5170827507972717,
-0.1036779060959816,
-0.3959556519985199,
0.08502764254808426,
-0.13505572080612183,
-0.05789022892713547,
0.1359575390815735,
0.04156177490949631,
-0.2892322242259979,
0.30578747391700745,
0.11487361788749695,
0.8049689531326294,
0.1543675810098648,
0.21442368626594543,
0.13210567831993103,
-0.027072496712207794,
-0.2793480455875397,
-0.05628126114606857,
-0.3469499349594116,
0.2603117823600769,
-0.34009841084480286,
0.11585851013660431,
0.16447627544403076,
-0.3571956753730774,
-0.7858266830444336,
0.1694660484790802,
-0.16056634485721588,
0.12773853540420532,
0.048896901309490204,
0.00563763827085495,
0.20987965166568756,
-0.17234693467617035,
0.08029108494520187,
0.30556946992874146,
-0.26052677631378174,
0.47055932879447937,
-0.12500962615013123,
-0.23334497213363647,
0.06654948741197586,
0.09017277508974075,
-0.13048683106899261,
-0.11009614169597626,
-0.19469095766544342,
0.3893643915653229,
0.03258888050913811,
-0.28138303756713867,
-0.2252381443977356,
-0.057639896869659424,
0.36742907762527466,
0.009480571374297142,
-0.40637198090553284,
0.03306877985596657,
0.2243000566959381,
-0.13304275274276733,
0.023427553474903107,
0.003467246890068054,
-0.1397196650505066,
-0.04470384865999222,
0.19334587454795837,
-0.12995438277721405,
-0.07933691143989563,
0.19539013504981995,
-0.07743824273347855,
-0.4564893841743469,
0.358489990234375,
0.40710487961769104,
-0.16135898232460022,
-0.128061443567276,
-0.08840885758399963,
-0.38360387086868286,
-0.5540083050727844,
-0.19972866773605347,
-0.15115155279636383,
-0.012899830937385559,
-0.0689953863620758,
0.12370918691158295,
0.36961185932159424,
-0.0693087950348854,
-0.07825296372175217,
-0.38250356912612915,
0.020622337237000465,
0.039713893085718155,
-0.19700530171394348,
-0.03938005492091179,
-0.03656734153628349,
0.12315590679645538,
-0.22336022555828094,
0.11753381043672562,
-0.09844788908958435,
-0.02448403649032116,
-0.4243432581424713,
0.18595577776432037,
0.4281349182128906,
0.27438056468963623,
-0.33315539360046387,
-0.15907295048236847,
-0.06662172079086304,
0.2899632453918457,
0.0478479377925396,
0.0016904883086681366,
-0.15110142529010773,
0.28251582384109497,
0.26117563247680664,
-0.1019858866930008,
0.20510350167751312,
0.009290575981140137,
0.3371179401874542,
-0.06207757443189621,
-0.06454821676015854,
-0.024771850556135178,
0.006665587425231934,
0.2926816940307617,
0.3140418231487274,
0.13979563117027283,
-0.5953763723373413,
0.2701892852783203,
0.06475486606359482,
0.5508176684379578,
0.05699315294623375,
0.34072014689445496,
0.09931612014770508,
0.003070920705795288,
-0.16588911414146423,
0.2401723563671112,
0.18459352850914001,
0.2494472861289978,
0.07458163797855377,
0.16626787185668945,
-0.13446417450904846,
0.11949573457241058,
-0.1731608659029007,
0.1967640370130539,
-0.284685343503952,
-0.17943044006824493,
0.5265514850616455,
0.052944302558898926,
-0.12869463860988617,
0.0018367201555520296,
0.431360125541687,
-0.08539656549692154,
-0.2911444306373596,
0.24471357464790344,
-0.15680192410945892,
-0.26368024945259094,
0.3740326166152954,
0.1354053020477295,
0.3472861051559448,
0.08615447580814362,
0.11398425698280334,
0.09741951525211334,
-0.0708165317773819,
0.20935796201229095,
-0.019656209275126457,
-0.222581148147583,
0.3959621489048004,
0.5164219737052917,
0.03913642466068268,
0.21923287212848663,
0.14542308449745178,
0.0987587720155716,
-0.05832348018884659,
-0.15027640759944916,
0.20719917118549347,
0.6587825417518616,
0.009075731039047241,
0.11815479397773743,
-0.0162392258644104,
0.0003629028797149658,
0.11902529746294022,
-0.16178913414478302,
-0.4723655879497528,
0.22159962356090546,
-0.277065634727478,
-0.020843127742409706,
-0.38400375843048096,
-0.10416637361049652,
-0.3006262183189392,
0.26339635252952576,
0.09935465455055237,
-0.09731210768222809,
-0.27572834491729736,
0.28715020418167114,
-0.4027174711227417,
0.11545812338590622,
-0.08657468110322952,
0.027919072657823563,
0.01125556230545044,
-0.30688074231147766,
0.10570628941059113,
-0.2201865166425705,
0.023019708693027496,
-0.003665827214717865,
0.1486099660396576,
0.4637700319290161,
0.5263073444366455,
-0.2449309527873993,
-0.06904508173465729,
0.13631978631019592,
0.19986048340797424,
-0.050944503396749496,
0.04710403084754944,
0.009056858718395233,
0.4417710602283478,
0.12171481549739838,
0.033291712403297424,
-0.13011251389980316,
-0.2672179043292999,
0.09092172980308533,
-0.10365033149719238,
-0.08549836277961731,
-0.2736178934574127,
-0.12429186701774597,
-0.003599211573600769,
-0.27670708298683167,
-0.01192563772201538,
-0.24841412901878357,
0.22768740355968475,
0.14291708171367645,
0.21549363434314728,
0.14508306980133057,
0.01815338060259819,
-0.033267777413129807,
0.056259721517562866,
0.21754352748394012,
0.3581025302410126,
0.3341634273529053,
-0.2006722390651703,
-0.5086640119552612,
-0.726099967956543,
0.39486607909202576,
-0.3475837707519531,
-0.3004240095615387,
0.19891013205051422,
-0.09782317280769348,
0.13192494213581085,
0.46550190448760986,
0.14468009769916534,
0.21050743758678436,
-0.22155238687992096,
0.1711561679840088,
-0.22060760855674744,
-0.2862987518310547,
0.0909641906619072,
0.0040006618946790695,
-0.17307202517986298,
-0.430908203125,
0.3013601303100586,
-0.12497865408658981,
-0.10849963873624802,
-0.12390740215778351,
-0.305184006690979,
-0.06229892745614052,
-0.310602605342865,
0.570095419883728,
0.02243267372250557,
0.3696020245552063,
-0.08371713012456894,
-0.014917349442839622,
-0.11990438401699066,
-0.1047845184803009,
0.0050304848700761795,
-0.027888335287570953,
-0.1431301236152649,
0.35424888134002686,
0.10514304041862488,
0.2677587866783142,
-0.5126783847808838,
0.3220701813697815,
0.11844652891159058,
0.14901049435138702,
-0.21591398119926453,
-0.027439024299383163,
-0.23201370239257812,
0.05370176583528519,
0.16112762689590454,
0.04579157382249832,
0.0687778890132904,
0.26901954412460327,
-0.3508995771408081,
-0.12071096152067184,
0.23044553399085999,
-0.4841431677341461,
-0.27774277329444885,
-0.33215343952178955,
0.42678704857826233,
-0.08946680277585983,
-0.2710380554199219,
-0.2365686297416687,
-0.10274899750947952,
0.18760116398334503,
0.13102376461029053,
-0.04902252182364464,
-0.2320202738046646,
-0.17516925930976868,
-0.07894059270620346,
-0.020545240491628647,
-0.007694900035858154,
0.19719305634498596,
-0.5537315607070923,
0.24441561102867126,
-0.4019877314567566
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Hi,
Thank you for you answer.
I have try to print the bad section using `try` and `except`, but it is a bit weird as the error seems to appear 3 times for instance, but the two first error does not print anything (as if the function did not go in the `except` part).
For the third one, I got that (I haven't display the entire text) :
> error : ==== Parque nacional Cajas ====
> {{AP|Parque nacional Cajas}}
> [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
> El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
> [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
> leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
> Para acceder al parque desde la costa, la vía Molleturo-Cuenca es también la mejor opción.
How can I display the link instead of the text ? I suppose it will help you more | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 234 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Hi,
Thank you for you answer.
I have try to print the bad section using `try` and `except`, but it is a bit weird as the error seems to appear 3 times for instance, but the two first error does not print anything (as if the function did not go in the `except` part).
For the third one, I got that (I haven't display the entire text) :
> error : ==== Parque nacional Cajas ====
> {{AP|Parque nacional Cajas}}
> [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
> El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
> [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
> leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
> Para acceder al parque desde la costa, la vía Molleturo-Cuenca es también la mejor opción.
How can I display the link instead of the text ? I suppose it will help you more | [
-0.21938617527484894,
-0.22226953506469727,
0.04206100478768349,
0.3609674572944641,
0.0011133011430501938,
-0.05777709186077118,
-0.2417546659708023,
0.20955313742160797,
0.3074946403503418,
0.19320766627788544,
0.34783217310905457,
0.010102548636496067,
0.0042324792593717575,
-0.4349832534790039,
-0.09329991787672043,
-0.023367688059806824,
0.2952890396118164,
0.19792014360427856,
0.04570234566926956,
-0.20405623316764832,
-0.007366634905338287,
0.1882302612066269,
-0.4374741315841675,
0.32603341341018677,
-0.1881963014602661,
0.11314082145690918,
0.15817904472351074,
-0.13931554555892944,
0.01460408978164196,
-0.3755427896976471,
-0.007420673966407776,
-0.3144274055957794,
0.09271475672721863,
0.3675204813480377,
-0.0001274272071896121,
-0.23713625967502594,
0.4585934281349182,
-0.09678583592176437,
-0.11382000148296356,
-0.19581685960292816,
-0.09124842286109924,
-0.14596951007843018,
-0.11450881510972977,
-0.2957970201969147,
0.2706688940525055,
0.022173695266246796,
0.26236701011657715,
-0.26418226957321167,
0.3727799654006958,
0.3115120530128479,
0.05848367139697075,
0.11521917581558228,
0.23542900383472443,
0.06525972485542297,
0.4728447496891022,
0.11471614241600037,
0.17199736833572388,
-0.01683007925748825,
0.0028638094663619995,
-0.05669735372066498,
0.17470654845237732,
0.226607084274292,
-0.35178041458129883,
-0.28065985441207886,
-0.14325222373008728,
0.01911894977092743,
0.3303056061267853,
-0.3932856023311615,
0.40768247842788696,
0.17490729689598083,
0.33416667580604553,
-0.06309688836336136,
0.3528118133544922,
-0.009133368730545044,
-0.2008412629365921,
0.19680288434028625,
0.40431544184684753,
0.5426410436630249,
-0.41971686482429504,
0.06920001655817032,
0.27184221148490906,
-0.09638673812150955,
-0.10639961063861847,
0.3659133315086365,
-0.154574453830719,
0.830620288848877,
0.02330208197236061,
0.2787500023841858,
0.07192788273096085,
-0.020849619060754776,
-0.06377006322145462,
-0.2760685682296753,
-0.024061691015958786,
0.2852090895175934,
-0.04583028331398964,
0.060404665768146515,
-0.11127401143312454,
-0.12041269987821579,
-0.034483470022678375,
-0.5352155566215515,
-0.31888556480407715,
0.0163153987377882,
0.052036102861166,
0.25360849499702454,
0.5370829105377197,
-0.18106697499752045,
0.17442098259925842,
0.050451744347810745,
-0.14366289973258972,
-0.036211758852005005,
0.050357263535261154,
-0.014971472322940826,
0.0126634631305933,
-0.0031580531504005194,
-0.4311351776123047,
0.16124385595321655,
0.2076020985841751,
-0.1855860948562622,
-0.043176110833883286,
0.34129807353019714,
-0.20803800225257874,
-0.03891225531697273,
-0.1002752035856247,
0.4228105843067169,
-0.06401024013757706,
0.392124205827713,
0.043295398354530334,
-0.0033581964671611786,
-0.1112080067396164,
-0.4731735587120056,
0.011612141504883766,
0.37636393308639526,
-0.391696035861969,
0.13399647176265717,
-0.26207470893859863,
0.2182760238647461,
0.12394078820943832,
0.23748011887073517,
-0.057565540075302124,
-0.664743185043335,
-0.1636940985918045,
-0.31961795687675476,
0.08898211270570755,
0.07216082513332367,
0.2993113100528717,
0.44735920429229736,
0.22032251954078674,
-0.3982048034667969,
-0.011189199984073639,
0.24413812160491943,
-0.3707468509674072,
-0.10914616286754608,
-0.5119059085845947,
0.032700393348932266,
-0.00722702220082283,
0.2863241732120514,
-0.6130176782608032,
0.0710349753499031,
-0.06083061546087265,
-0.20346632599830627,
0.1553453803062439,
-0.13660860061645508,
-0.09469480812549591,
-0.04013162851333618,
0.13149510324001312,
0.28437602519989014,
-0.18425296247005463,
0.10151535272598267,
-0.16003623604774475,
-0.10208176076412201,
0.4438628852367401,
0.10190896689891815,
-0.07998422533273697,
0.6557812690734863,
-0.4682847559452057,
0.6272982358932495,
0.20624476671218872,
-0.33827778697013855,
0.11297517269849777,
0.0943777859210968,
-0.029743149876594543,
-0.1602766215801239,
-0.017542362213134766,
-0.22832827270030975,
0.16368791460990906,
-0.07943133264780045,
-0.3810734748840332,
-0.016095485538244247,
0.02055428735911846,
0.23299995064735413,
-0.19598226249217987,
-0.22873738408088684,
0.14652764797210693,
0.01989186927676201,
0.19137263298034668,
-0.08261840790510178,
0.14037390053272247,
0.4307592511177063,
0.4653143286705017,
-0.15702438354492188,
0.03320141136646271,
0.08296279609203339,
0.12457802891731262,
0.23429906368255615,
-0.12931343913078308,
0.02220328524708748,
-0.05318222939968109,
-0.04521709680557251,
0.07894061505794525,
0.15118323266506195,
-0.2835962176322937,
-0.04151754826307297,
-0.2271321713924408,
0.21973998844623566,
-0.09274011850357056,
0.08088606595993042,
0.06595411896705627,
0.16509851813316345,
-0.14871527254581451,
0.3934493958950043,
0.0759451687335968,
-0.23050791025161743,
-0.22857172787189484,
0.11416304111480713,
-0.07203245162963867,
0.25435736775398254,
-0.19999323785305023,
-0.1869707703590393,
-0.3368490934371948,
-0.10408706218004227,
0.5295460820198059,
0.020654939115047455,
-0.12651464343070984,
0.15631243586540222,
0.2563988268375397,
0.1210787445306778,
-0.4433184862136841,
-0.19288916885852814,
-0.040088117122650146,
-0.5070750117301941,
0.14195626974105835,
0.2667558491230011,
0.2609446942806244,
-0.09809201210737228,
0.16882431507110596,
0.05510392040014267,
0.3346443176269531,
0.04819950833916664,
-0.16432078182697296,
0.047128304839134216,
0.09512415528297424,
0.01967710629105568,
0.38599157333374023,
-0.23090483248233795,
0.2975939214229584,
0.5082973837852478,
-0.1537848562002182,
-0.36125656962394714,
0.1945497691631317,
-0.15084517002105713,
0.5056222677230835,
-0.018544983118772507,
0.17313547432422638,
0.1171937808394432,
-0.1968071162700653,
-0.05987151339650154,
0.29995349049568176,
-0.39479681849479675,
0.06854574382305145,
-0.09935975819826126,
-0.14917585253715515,
0.43545421957969666,
0.25584402680397034,
0.07677288353443146,
0.46507665514945984,
0.21692366898059845,
-0.0594199039041996,
0.10053197294473648,
-0.264253169298172,
-0.023702766746282578,
-0.2029426395893097,
-0.21032647788524628,
-0.3739583492279053,
0.23629961907863617,
-0.2853991389274597,
-0.01078299805521965,
-0.2933442294597626,
-0.03774536773562431,
-0.37470290064811707,
0.13439665734767914,
-0.3128286600112915,
-0.1369607299566269,
-0.07216938585042953,
0.26544618606567383,
-0.2574841380119324,
0.10888039320707321,
0.01632067933678627,
0.08901087939739227,
-0.08744993060827255,
0.3828771114349365,
-0.30686211585998535,
-0.2860128581523895,
-0.4424814283847809,
-0.1794235110282898,
0.48419103026390076,
0.24535921216011047,
0.08988485485315323,
-0.11311855912208557,
-0.03401979058980942,
-0.26770254969596863,
-0.15570656955242157,
0.44352635741233826,
-0.10226927697658539,
-0.04438992589712143,
-0.03835345804691315,
0.2406126856803894,
-0.0086531862616539,
-0.3758125305175781,
-0.0006713756592944264,
-0.3829980194568634,
-0.04584737494587898,
0.08858589082956314,
0.035393305122852325,
-0.1559862345457077,
0.040686625987291336,
-0.026983782649040222,
-0.2393777221441269,
-0.06891036033630371,
-0.3220787048339844,
-0.1188829243183136,
0.12218402326107025,
-0.38667091727256775,
0.0827733501791954,
0.20168651640415192,
-0.3991759121417999,
-0.21271373331546783,
-0.19589409232139587,
0.02941058948636055,
0.07836790382862091,
0.02081172727048397,
-0.17797766625881195,
0.3785981833934784,
0.033809252083301544,
0.17183785140514374,
-0.11268869787454605,
-0.5451937913894653,
0.40997177362442017,
0.07499980926513672,
-0.1771857738494873,
-0.3284282684326172,
0.060792312026023865,
0.2713208794593811,
-0.1899031400680542,
0.12888385355472565,
0.0628008022904396,
-0.1509227603673935,
-0.37094566226005554,
-0.228228360414505,
0.3510292172431946,
-0.1403118371963501,
0.3559286296367645,
0.049637552350759506,
0.6082236170768738,
-0.02656101994216442,
0.23322460055351257,
0.3531585931777954,
-0.04317983239889145,
0.044772669672966,
0.08990329504013062,
-0.04458112269639969,
0.31611254811286926,
0.12385062873363495,
-0.3487159013748169,
0.5429697632789612,
-0.27691054344177246,
-0.27450108528137207,
-0.21823038160800934,
-0.01145927794277668,
-0.6698670983314514,
-0.4383552670478821,
0.20534896850585938,
0.5381644368171692,
0.17441777884960175,
-0.2152746021747589,
0.22178179025650024,
-0.09326575696468353,
-0.3328767716884613,
-0.11351464688777924,
0.1445530354976654,
-0.0576603040099144,
-0.09417834132909775,
-0.23488175868988037,
-0.024978304281830788,
-0.10070913285017014,
0.266074538230896,
0.1573956310749054,
0.35853826999664307,
-0.04583358019590378,
0.01548415794968605,
0.08257883042097092,
0.09378441423177719,
0.4519883990287781,
0.2045949101448059,
0.21196602284908295,
-0.1028493195772171,
0.07416406273841858,
-0.06308526545763016,
-0.34787365794181824,
-0.33513492345809937,
-0.08633219450712204,
0.5785009264945984,
-0.12388886511325836,
-0.48157110810279846,
-0.01883997954428196,
-0.08020315319299698,
0.06550970673561096,
-0.05751721188426018,
-0.09267009794712067,
-0.050982121378183365,
-0.1390697956085205,
-0.41484522819519043,
0.31354594230651855,
0.2891494631767273,
0.1360025256872177,
0.23782102763652802,
0.1319926679134369,
0.2526875436306,
0.11431019753217697,
-0.000519193708896637,
-0.019073620438575745,
0.10958942770957947,
0.03243779391050339,
-0.37328580021858215,
-0.1598350554704666,
0.15721295773983002,
0.09436188638210297,
0.12165878713130951,
0.5638347864151001,
-0.19612205028533936,
-0.01146700605750084,
-0.040343474596738815,
0.2847019135951996,
0.43750476837158203,
0.07137995958328247,
0.12141066789627075,
0.35621342062950134,
0.332735538482666,
-0.03988613933324814,
0.23765550553798676,
0.2201414257287979,
0.008926165290176868,
-0.3136923611164093,
0.12028008699417114,
0.35561656951904297,
0.1389288753271103,
-0.07408042252063751,
-0.002891749143600464,
0.14563079178333282,
-0.2708335816860199,
0.31932342052459717,
0.31957870721817017,
1.3723790645599365,
0.25247836112976074,
-0.012291226536035538,
0.07015500962734222,
0.11585783958435059,
0.8574782013893127,
-0.5321180820465088,
-0.024794001132249832,
-0.3011975884437561,
0.18007202446460724,
-0.11567509174346924,
0.02214181050658226,
0.17938479781150818,
0.00934651494026184,
-0.4308929443359375,
0.32996007800102234,
0.0915304571390152,
0.6716506481170654,
0.13982738554477692,
0.09622149169445038,
0.32844278216362,
-0.04609275236725807,
-0.09646020829677582,
-0.02224707417190075,
-0.27503538131713867,
0.05438530817627907,
-0.37486013770103455,
0.038403287529945374,
0.20375710725784302,
-0.4987117648124695,
-0.6637935638427734,
0.15886607766151428,
-0.1476399153470993,
0.07618950307369232,
-0.04807378724217415,
0.02077162265777588,
0.3031443953514099,
-0.0541047565639019,
0.10487515479326248,
0.3243844211101532,
-0.20847302675247192,
0.2775375247001648,
-0.09196414798498154,
-0.2851915657520294,
-0.16175541281700134,
-0.030914321541786194,
-0.15572963654994965,
-0.11145634204149246,
-0.21506257355213165,
0.4981532096862793,
0.00003387872129678726,
-0.20027098059654236,
-0.20032477378845215,
0.02066141366958618,
0.36367344856262207,
0.021987805142998695,
-0.39029771089553833,
0.0601796880364418,
0.06968940794467926,
-0.09990490227937698,
-0.0018912572413682938,
-0.08279365301132202,
-0.12729071080684662,
0.009607680141925812,
0.26554223895072937,
-0.19004324078559875,
-0.0008516367524862289,
0.24477484822273254,
-0.08151311427354813,
-0.46898147463798523,
0.3524141311645508,
0.35400107502937317,
-0.2234308123588562,
-0.17344021797180176,
-0.2212514877319336,
-0.473504900932312,
-0.567768394947052,
-0.1666063517332077,
-0.14677059650421143,
0.051113784313201904,
-0.045668378472328186,
0.21045102179050446,
0.38310420513153076,
-0.022668413817882538,
0.07474836707115173,
-0.3272095024585724,
0.11521250754594803,
0.019420422613620758,
-0.3564959764480591,
0.0015363730490207672,
-0.04342743381857872,
0.257589727640152,
-0.06837999075651169,
0.00015156716108322144,
-0.10801097005605698,
0.07149453461170197,
-0.508210301399231,
0.2036319524049759,
0.29008015990257263,
0.22271966934204102,
-0.3865596652030945,
-0.11884500086307526,
0.004873672500252724,
0.32947802543640137,
-0.09604570269584656,
-0.01966128870844841,
-0.07842189073562622,
0.280202716588974,
0.4783465266227722,
-0.16159604489803314,
0.04820161312818527,
0.10211475193500519,
0.2719171345233917,
-0.1299031674861908,
-0.1013021171092987,
-0.1592019498348236,
-0.034085988998413086,
0.3143938183784485,
0.1749911606311798,
0.2555946409702301,
-0.5346781015396118,
0.10848328471183777,
0.1095660850405693,
0.6087110042572021,
0.03997376188635826,
0.3046303689479828,
0.19937995076179504,
-0.03648076951503754,
-0.1820126473903656,
0.18664740025997162,
0.3626477122306824,
0.3018641173839569,
0.036854878067970276,
0.04865773394703865,
-0.11260338127613068,
0.1141694188117981,
-0.2240508645772934,
0.19155703485012054,
-0.3164016306400299,
-0.2697434425354004,
0.5364502668380737,
0.10279279947280884,
-0.14240270853042603,
0.2094239443540573,
0.5686339735984802,
0.17056843638420105,
-0.25664839148521423,
0.20803111791610718,
-0.05597073212265968,
-0.38401275873184204,
0.42071646451950073,
0.16809618473052979,
0.38149580359458923,
-0.00840383768081665,
0.07410040497779846,
-0.02892177179455757,
-0.25066855549812317,
0.26439380645751953,
-0.01089022122323513,
0.007176503539085388,
0.23462006449699402,
0.45813852548599243,
-0.13358661532402039,
0.09077994525432587,
0.13317035138607025,
0.18491230905056,
-0.08697862178087234,
-0.2192956507205963,
0.14294132590293884,
0.5942342281341553,
0.06617353111505508,
-0.040924668312072754,
-0.16328315436840057,
-0.38282108306884766,
0.20216941833496094,
-0.13074178993701935,
-0.42448335886001587,
0.26496291160583496,
-0.22299599647521973,
0.1415838897228241,
-0.4221547245979309,
-0.08250702917575836,
-0.28751426935195923,
0.15611086785793304,
0.18956464529037476,
-0.10852156579494476,
-0.2405107021331787,
0.3406594395637512,
-0.3534332513809204,
0.009075830690562725,
-0.21952691674232483,
-0.03452429920434952,
-0.11567165702581406,
-0.36185580492019653,
0.21840639412403107,
-0.060418158769607544,
-0.022762514650821686,
-0.1466318815946579,
0.31518346071243286,
0.514474630355835,
0.5036405920982361,
-0.33210596442222595,
0.00969589501619339,
-0.012539951130747795,
0.21408510208129883,
0.040191974490880966,
0.13966631889343262,
0.15443292260169983,
0.3083733320236206,
0.098419189453125,
0.044298939406871796,
-0.10319934785366058,
-0.1443871408700943,
0.24818776547908783,
0.035243213176727295,
0.08717198669910431,
-0.39642342925071716,
-0.042760059237480164,
0.21136474609375,
-0.2974694073200226,
-0.062440671026706696,
-0.4478716254234314,
0.15800440311431885,
0.14008532464504242,
0.05918208882212639,
0.14783713221549988,
0.03339269757270813,
-0.025246143341064453,
0.0196444783359766,
0.16994917392730713,
0.39868175983428955,
0.33761924505233765,
-0.285045862197876,
-0.4959660768508911,
-0.5544900298118591,
0.45986130833625793,
-0.3090624511241913,
-0.21796880662441254,
-0.005354392342269421,
0.02879841811954975,
0.12464088201522827,
0.46192246675491333,
0.10057096183300018,
0.13583724200725555,
-0.3769987225532532,
0.3481939136981964,
-0.2102951556444168,
-0.020289946347475052,
0.2572198212146759,
-0.03401897847652435,
-0.05186536908149719,
-0.1813145875930786,
0.23957529664039612,
-0.21291805803775787,
-0.052168551832437515,
-0.10758639872074127,
-0.1147371381521225,
-0.20438075065612793,
-0.18759863078594208,
0.5656718015670776,
0.18079552054405212,
0.3579048216342926,
-0.10336615145206451,
-0.03318898379802704,
-0.07599377632141113,
0.10376409441232681,
0.01341786328703165,
0.009761780500411987,
0.12764377892017365,
0.17638564109802246,
0.018415499478578568,
0.2718161940574646,
-0.4293496012687683,
0.24518418312072754,
0.0826667994260788,
0.13522472977638245,
-0.3105964958667755,
-0.048849962651729584,
-0.2055879533290863,
0.11156202107667923,
-0.10699709504842758,
-0.05317247658967972,
-0.0025398321449756622,
0.2643362581729889,
-0.39473098516464233,
-0.12867149710655212,
0.27915158867836,
-0.39821892976760864,
-0.37955713272094727,
-0.31960853934288025,
0.2929225265979767,
-0.12394116073846817,
-0.04978279769420624,
-0.11906308680772781,
0.029518336057662964,
0.1805838644504547,
0.13517272472381592,
-0.17625485360622406,
-0.2394539713859558,
-0.25905725359916687,
-0.20079562067985535,
0.03015834465622902,
-0.005295604467391968,
0.1539321094751358,
-0.3781680166721344,
0.1778818666934967,
-0.39502042531967163
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | The error appears several times as Apache Beam retries to process examples up to 4 times irc.
I just tried to run this text into `mwparserfromhell` but it worked without the issue.
I used this code (from the `wikipedia.py` script):
```python
import mwparserfromhell as parser
import re
import six
raw_content = r"""==== Parque nacional Cajas ====
{{AP|Parque nacional Cajas}}
[[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
[[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
"""
wikicode = parser.parse(raw_content)
# Filters for references, tables, and file/image links.
re_rm_wikilink = re.compile("^(?:File|Image|Media):", flags=re.IGNORECASE | re.UNICODE)
def rm_wikilink(obj):
return bool(re_rm_wikilink.match(six.text_type(obj.title)))
def rm_tag(obj):
return six.text_type(obj.tag) in {"ref", "table"}
def rm_template(obj):
return obj.name.lower() in {"reflist", "notelist", "notelist-ua", "notelist-lr", "notelist-ur", "notelist-lg"}
def try_remove_obj(obj, section):
try:
section.remove(obj)
except ValueError:
# For unknown reasons, objects are sometimes not found.
pass
section_text = []
for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True):
for obj in section.ifilter_wikilinks(matches=rm_wikilink, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_templates(matches=rm_template, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_tags(matches=rm_tag, recursive=True):
try_remove_obj(obj, section)
section_text.append(section.strip_code().strip())
``` | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 264 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
The error appears several times as Apache Beam retries to process examples up to 4 times irc.
I just tried to run this text into `mwparserfromhell` but it worked without the issue.
I used this code (from the `wikipedia.py` script):
```python
import mwparserfromhell as parser
import re
import six
raw_content = r"""==== Parque nacional Cajas ====
{{AP|Parque nacional Cajas}}
[[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]]
El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33
[[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol
leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores.
"""
wikicode = parser.parse(raw_content)
# Filters for references, tables, and file/image links.
re_rm_wikilink = re.compile("^(?:File|Image|Media):", flags=re.IGNORECASE | re.UNICODE)
def rm_wikilink(obj):
return bool(re_rm_wikilink.match(six.text_type(obj.title)))
def rm_tag(obj):
return six.text_type(obj.tag) in {"ref", "table"}
def rm_template(obj):
return obj.name.lower() in {"reflist", "notelist", "notelist-ua", "notelist-lr", "notelist-ur", "notelist-lg"}
def try_remove_obj(obj, section):
try:
section.remove(obj)
except ValueError:
# For unknown reasons, objects are sometimes not found.
pass
section_text = []
for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True):
for obj in section.ifilter_wikilinks(matches=rm_wikilink, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_templates(matches=rm_template, recursive=True):
try_remove_obj(obj, section)
for obj in section.ifilter_tags(matches=rm_tag, recursive=True):
try_remove_obj(obj, section)
section_text.append(section.strip_code().strip())
``` | [
-0.24391604959964752,
-0.19704127311706543,
0.06708197295665741,
0.3134264647960663,
0.027156086638569832,
-0.031224850565195084,
-0.11951176822185516,
0.21098536252975464,
0.3312298059463501,
0.1418253481388092,
0.32294926047325134,
0.01704232767224312,
0.05120927840471268,
-0.4928639829158783,
-0.17448610067367554,
-0.003791775554418564,
0.2605276107788086,
0.12669390439987183,
-0.05228729546070099,
-0.20899803936481476,
0.007654566317796707,
0.1421710103750229,
-0.433266282081604,
0.27171286940574646,
-0.25200843811035156,
0.13043171167373657,
0.09297643601894379,
-0.010575562715530396,
0.037396520376205444,
-0.46904781460762024,
-0.04031231254339218,
-0.22404605150222778,
0.16706721484661102,
0.2844327688217163,
-0.00012670637806877494,
-0.21080932021141052,
0.4160577654838562,
-0.09508992731571198,
-0.18317283689975739,
-0.17165429890155792,
0.0071884505450725555,
-0.18808674812316895,
-0.04427191615104675,
-0.30144843459129333,
0.2884557247161865,
0.018588928505778313,
0.2699134051799774,
-0.28636473417282104,
0.3683311343193054,
0.2292594015598297,
0.0456215925514698,
0.1972648948431015,
0.22721435129642487,
0.02912488579750061,
0.4505046308040619,
0.06432148814201355,
0.16501222550868988,
-0.052068691700696945,
-0.04326537251472473,
-0.09657704830169678,
0.054221101105213165,
0.2810036838054657,
-0.35602009296417236,
-0.1097048670053482,
-0.10743685811758041,
-0.03395409137010574,
0.38926979899406433,
-0.2821045517921448,
0.40644916892051697,
0.09631401300430298,
0.3552187383174896,
0.016492608934640884,
0.2594863772392273,
0.01580198109149933,
-0.07244236767292023,
0.27571433782577515,
0.3752606511116028,
0.5088483691215515,
-0.3879241347312927,
0.06514553725719452,
0.32251083850860596,
-0.016643863171339035,
-0.07908881455659866,
0.2455788552761078,
-0.07210733741521835,
0.7677216529846191,
0.12271519005298615,
0.37478163838386536,
-0.025941509753465652,
-0.06332625448703766,
0.0517117977142334,
-0.31460121273994446,
-0.019017059355974197,
0.35358157753944397,
-0.1086532473564148,
0.1599094569683075,
-0.15634819865226746,
-0.08531711250543594,
-0.0002929624170064926,
-0.49344801902770996,
-0.4367779493331909,
0.06143605709075928,
0.10880430042743683,
0.2573608458042145,
0.5199105739593506,
-0.14115114510059357,
0.18637491762638092,
-0.07185100764036179,
-0.011421814560890198,
-0.08826106041669846,
-0.07324618101119995,
0.06596474349498749,
-0.09334485232830048,
-0.06628911197185516,
-0.3326282501220703,
0.10627405345439911,
0.14095795154571533,
-0.04233045503497124,
-0.0592523068189621,
0.2894514799118042,
-0.3620598614215851,
-0.07682453095912933,
-0.20413672924041748,
0.4364103674888611,
-0.03361941874027252,
0.5642695426940918,
0.22086872160434723,
0.053473860025405884,
-0.12164922803640366,
-0.6564368009567261,
0.04448624700307846,
0.19735755026340485,
-0.36635687947273254,
0.16616050899028778,
-0.20316891372203827,
0.276070773601532,
0.11571704596281052,
0.19091427326202393,
-0.07094475626945496,
-0.6753616333007812,
-0.1433449536561966,
-0.1477847546339035,
-0.11649919301271439,
0.07265149056911469,
0.38549181818962097,
0.46029427647590637,
0.2932555377483368,
-0.3723095655441284,
0.005007058382034302,
0.3135887384414673,
-0.36851486563682556,
-0.09508058428764343,
-0.38856878876686096,
0.042473386973142624,
0.07379890233278275,
0.1866639256477356,
-0.49588289856910706,
-0.05351938679814339,
-0.0021894872188568115,
-0.10710978507995605,
0.07665769010782242,
-0.16382965445518494,
-0.0927649438381195,
-0.07170172780752182,
-0.02663477696478367,
0.35406240820884705,
-0.004544492810964584,
0.08717377483844757,
-0.10425372421741486,
0.05629722774028778,
0.2985343039035797,
0.17471520602703094,
-0.11920983344316483,
0.6493730545043945,
-0.4247390627861023,
0.6064456105232239,
0.1375250220298767,
-0.22362913191318512,
0.0176335871219635,
0.14435169100761414,
0.065768763422966,
-0.20231133699417114,
0.016535155475139618,
-0.10920734703540802,
0.1594652235507965,
-0.13356825709342957,
-0.41150611639022827,
0.11580206453800201,
0.0724978893995285,
0.30519479513168335,
-0.214822918176651,
-0.29104286432266235,
0.12558943033218384,
0.06553436815738678,
0.221154123544693,
-0.128465473651886,
0.11200658231973648,
0.48816439509391785,
0.43392413854599,
-0.19087404012680054,
0.10173982381820679,
0.07627113163471222,
0.05871563032269478,
0.1764654666185379,
0.014702100306749344,
0.09421970695257187,
-0.02403147518634796,
-0.00284741073846817,
-0.05965506285429001,
0.3432407081127167,
-0.20330871641635895,
-0.05667075142264366,
-0.2062641680240631,
0.28090760111808777,
-0.1454797089099884,
-0.011749763041734695,
0.062453970313072205,
0.18696101009845734,
-0.23657925426959991,
0.40686219930648804,
0.07016608119010925,
-0.14393697679042816,
-0.17340272665023804,
0.14683760702610016,
0.01665576361119747,
0.2651130259037018,
-0.29533788561820984,
-0.14689794182777405,
-0.3140817880630493,
-0.18597087264060974,
0.43679532408714294,
0.014746366068720818,
-0.18538829684257507,
0.14619697630405426,
0.28814566135406494,
0.17214085161685944,
-0.28921177983283997,
-0.249393031001091,
0.05957360565662384,
-0.43660154938697815,
0.24647998809814453,
0.307489275932312,
0.31464684009552,
-0.1487218737602234,
0.28465503454208374,
0.09548206627368927,
0.38920778036117554,
0.10077189654111862,
-0.14506083726882935,
0.1643441766500473,
0.14662471413612366,
-0.005032017827033997,
0.3946206271648407,
-0.09115196019411087,
0.22894267737865448,
0.510888397693634,
-0.27374428510665894,
-0.3508855402469635,
0.24934467673301697,
-0.1987018585205078,
0.4050527513027191,
-0.017529882490634918,
0.24436140060424805,
0.11159185320138931,
-0.3060930669307709,
-0.12006665021181107,
0.276184618473053,
-0.46235135197639465,
0.09359259903430939,
-0.09112079441547394,
-0.10704246163368225,
0.3911007344722748,
0.14147214591503143,
0.03167159482836723,
0.5108953714370728,
0.16683290898799896,
-0.05319177359342575,
0.09660815447568893,
-0.11329296976327896,
-0.019411452114582062,
-0.284081369638443,
-0.22900885343551636,
-0.2573985457420349,
0.17944134771823883,
-0.28686800599098206,
0.062266603112220764,
-0.30537664890289307,
0.013765949755907059,
-0.3138231337070465,
0.19554170966148376,
-0.40673378109931946,
-0.2165161371231079,
-0.06510922312736511,
0.2800661027431488,
-0.2110278457403183,
0.2325737625360489,
0.11818219721317291,
0.045198455452919006,
0.08764863759279251,
0.38886475563049316,
-0.22198347747325897,
-0.37627488374710083,
-0.5698429942131042,
-0.21660014986991882,
0.4963611960411072,
0.1641579270362854,
0.10213437676429749,
0.019972553476691246,
-0.04130332171916962,
-0.3580484092235565,
-0.1427367478609085,
0.4228232204914093,
-0.05826641619205475,
-0.12731708586215973,
-0.07625272870063782,
0.2410060167312622,
-0.1527670919895172,
-0.3478526473045349,
0.0598888173699379,
-0.43964555859565735,
-0.09047072380781174,
0.11861087381839752,
-0.006484268233180046,
-0.15782856941223145,
0.02869221940636635,
-0.08735398203134537,
-0.1545054316520691,
-0.05833784490823746,
-0.371915340423584,
-0.2516958713531494,
0.032777898013591766,
-0.27805352210998535,
0.0770789235830307,
0.14969021081924438,
-0.36113426089286804,
-0.21507872641086578,
-0.2702898383140564,
0.08750149607658386,
0.1113562062382698,
0.03497011214494705,
-0.2326231449842453,
0.41632500290870667,
-0.10568026453256607,
0.18104609847068787,
0.00598028302192688,
-0.4948796033859253,
0.22499722242355347,
0.158765971660614,
-0.05724455788731575,
-0.30038848519325256,
0.1743214875459671,
0.28312528133392334,
-0.09498672932386398,
0.11047421395778656,
0.07690686732530594,
-0.04832760617136955,
-0.2259436547756195,
-0.24234354496002197,
0.3762096166610718,
-0.09729468077421188,
0.43444377183914185,
0.1302689015865326,
0.6834613084793091,
0.009807851165533066,
0.226182222366333,
0.39665287733078003,
-0.04281400144100189,
-0.08693161606788635,
0.03295740857720375,
0.005194570869207382,
0.2468232810497284,
0.0007929801940917969,
-0.26694178581237793,
0.5544751882553101,
-0.2428964376449585,
-0.23235368728637695,
-0.23431013524532318,
0.011268295347690582,
-0.5420512557029724,
-0.4312596917152405,
0.1656492054462433,
0.38782888650894165,
0.3233226537704468,
-0.1296137571334839,
0.20523759722709656,
-0.03312607854604721,
-0.26786497235298157,
-0.06710080802440643,
0.16276535391807556,
-0.10863176733255386,
-0.08259660750627518,
-0.14478635787963867,
0.05981356278061867,
-0.058915071189403534,
0.32016921043395996,
0.26193639636039734,
0.39895617961883545,
0.08277319371700287,
0.059188418090343475,
0.19926264882087708,
0.0684877559542656,
0.4733511209487915,
0.1363438069820404,
0.2132391631603241,
-0.10319052636623383,
0.09984138607978821,
-0.2521497905254364,
-0.3287770748138428,
-0.2264011800289154,
-0.22296582162380219,
0.49338874220848083,
-0.22173744440078735,
-0.4186546802520752,
0.08080485463142395,
-0.08784156292676926,
0.0857846662402153,
-0.07718196511268616,
-0.09172108769416809,
-0.01753401756286621,
-0.20814618468284607,
-0.5254969596862793,
0.225408136844635,
0.19140847027301788,
0.10428952425718307,
0.28222665190696716,
0.22729335725307465,
0.12718479335308075,
0.031445495784282684,
-0.039808496832847595,
-0.04576507955789566,
0.12925398349761963,
-0.051121968775987625,
-0.22279442846775055,
-0.23966404795646667,
0.16929636895656586,
-0.000028243288397789,
0.1498703956604004,
0.5779366493225098,
-0.24086487293243408,
-0.11879727989435196,
0.019982095807790756,
0.2297448217868805,
0.39950937032699585,
0.0831122100353241,
0.11783837527036667,
0.24527721107006073,
0.27160051465034485,
-0.08091159164905548,
0.23537324368953705,
0.2509079575538635,
-0.012439778074622154,
-0.29291197657585144,
0.04660012573003769,
0.4117344617843628,
0.005535801872611046,
-0.035713158547878265,
-0.05812482535839081,
0.07188263535499573,
-0.29869407415390015,
0.4252859354019165,
0.23904481530189514,
1.3299747705459595,
0.13979731500148773,
0.13134653866291046,
0.14086174964904785,
0.07785037159919739,
0.7298785448074341,
-0.6040620803833008,
-0.03653440997004509,
-0.2874818444252014,
0.4025510549545288,
-0.14264017343521118,
0.06225086376070976,
0.17196977138519287,
0.07757530361413956,
-0.4282001256942749,
0.337590754032135,
0.14012834429740906,
0.5520424842834473,
0.17294518649578094,
0.1936332732439041,
0.10283951461315155,
-0.12072990834712982,
-0.026029985398054123,
-0.021109212189912796,
-0.3125186562538147,
0.07987318933010101,
-0.2915143072605133,
0.030586274340748787,
0.22906577587127686,
-0.49733686447143555,
-0.6621000170707703,
0.17005643248558044,
-0.07380218803882599,
0.335021436214447,
-0.1431545466184616,
0.04035934805870056,
0.31505435705184937,
-0.1089988648891449,
0.06849288195371628,
0.25540676712989807,
-0.10219360888004303,
0.36697372794151306,
-0.1564943492412567,
-0.32526808977127075,
-0.19417835772037506,
0.05015875771641731,
-0.07157208025455475,
-0.10064223408699036,
-0.23043227195739746,
0.2871091961860657,
0.01312308106571436,
-0.18329833447933197,
-0.2851788401603699,
0.06353624165058136,
0.47195011377334595,
0.10429979115724564,
-0.27704939246177673,
0.06526406109333038,
-0.0046196915209293365,
-0.08386620879173279,
-0.004112085327506065,
-0.14524468779563904,
-0.18518249690532684,
-0.010415680706501007,
0.24680601060390472,
-0.22413478791713715,
0.011385437101125717,
0.3839811682701111,
-0.04656294733285904,
-0.4790751338005066,
0.4670301675796509,
0.3768469989299774,
-0.2421932816505432,
-0.2099696397781372,
-0.12980559468269348,
-0.5138652920722961,
-0.6772114038467407,
-0.052804265171289444,
-0.1277851164340973,
0.08120892941951752,
-0.04302629828453064,
0.2475571185350418,
0.23626215755939484,
-0.0568302646279335,
0.020759303122758865,
-0.3045705258846283,
0.2019404023885727,
-0.0589144229888916,
-0.42296427488327026,
-0.0700271725654602,
0.011164963245391846,
0.29406851530075073,
-0.012625518254935741,
-0.034152157604694366,
-0.08794613927602768,
0.11435263603925705,
-0.3084965944290161,
0.2707251310348511,
0.25667017698287964,
0.09094403684139252,
-0.3615848422050476,
0.009399013593792915,
0.013560598716139793,
0.2861449122428894,
-0.06974655389785767,
-0.007109295576810837,
-0.132802352309227,
0.270322322845459,
0.38271471858024597,
-0.23389795422554016,
0.10111421346664429,
-0.04756199195981026,
0.2174997180700302,
-0.1566307097673416,
-0.03961809724569321,
-0.07346029579639435,
-0.13145938515663147,
0.2485075145959854,
0.20891866087913513,
0.2581069767475128,
-0.442405641078949,
0.12115249782800674,
0.07219398766756058,
0.5967164039611816,
0.14024926722049713,
0.18489225208759308,
0.21565020084381104,
-0.006922639906406403,
-0.25612005591392517,
0.21146291494369507,
0.3707141876220703,
0.13017067313194275,
0.13727062940597534,
-0.10828357934951782,
-0.1917612999677658,
0.0671042650938034,
-0.1397375762462616,
0.1556287556886673,
-0.3254968225955963,
-0.28943511843681335,
0.5366222262382507,
0.08861850947141647,
-0.15793338418006897,
0.20360149443149567,
0.43704843521118164,
0.11174476146697998,
-0.286033034324646,
0.18648692965507507,
0.08790731430053711,
-0.40106290578842163,
0.2624220848083496,
0.16034266352653503,
0.3800901174545288,
-0.05048385262489319,
0.08296382427215576,
-0.09774439036846161,
-0.1310415416955948,
0.1996883600950241,
-0.13018663227558136,
-0.09602619707584381,
0.3383074700832367,
0.3912009000778198,
-0.11818896979093552,
0.21436640620231628,
0.18547526001930237,
0.1639164835214615,
-0.023962736129760742,
-0.20192621648311615,
0.18849866092205048,
0.5047796964645386,
0.10207530856132507,
-0.025659948587417603,
-0.0984649658203125,
-0.20708563923835754,
0.16365313529968262,
-0.09892887622117996,
-0.4667606055736542,
0.3099554479122162,
-0.14473876357078552,
0.03025679662823677,
-0.20936572551727295,
-0.023161206394433975,
-0.3640720844268799,
0.21600240468978882,
0.1275571882724762,
-0.0629095733165741,
-0.3295389711856842,
0.3941780924797058,
-0.3697269558906555,
-0.10152590274810791,
-0.2433311939239502,
0.005413826555013657,
-0.10280237346887589,
-0.34562936425209045,
0.15466946363449097,
0.03144446015357971,
-0.06097152829170227,
-0.0731058418750763,
0.19594494998455048,
0.5290170907974243,
0.4877009093761444,
-0.52726149559021,
0.07533467561006546,
-0.06738008558750153,
0.29056331515312195,
0.02328440174460411,
0.05732926353812218,
0.13427279889583588,
0.36784955859184265,
0.07671596109867096,
0.0019119232892990112,
-0.09781435877084732,
-0.34199780225753784,
0.2982867956161499,
-0.04155028983950615,
0.03924163803458214,
-0.34174618124961853,
-0.0561952143907547,
0.2586336135864258,
-0.27511465549468994,
0.03973102569580078,
-0.5000793933868408,
0.16003745794296265,
0.16810883581638336,
0.08029481023550034,
0.07846240699291229,
-0.044097382575273514,
-0.0353153832256794,
-0.15719027817249298,
0.21497878432273865,
0.4869311451911926,
0.2715573310852051,
-0.20937298238277435,
-0.516305685043335,
-0.5368040800094604,
0.4130150377750397,
-0.3302842080593109,
-0.21919524669647217,
-0.015856744721531868,
0.09471786767244339,
0.15775682032108307,
0.4018920063972473,
0.12776847183704376,
0.038049887865781784,
-0.3444063067436218,
0.33253219723701477,
-0.23692218959331512,
-0.14681720733642578,
0.322062611579895,
-0.07911359518766403,
-0.07478274405002594,
-0.31809622049331665,
0.1554454267024994,
-0.151903435587883,
-0.05780254676938057,
-0.13219857215881348,
-0.10998658835887909,
-0.05858723074197769,
-0.22272294759750366,
0.5239769220352173,
0.13626937568187714,
0.4043080508708954,
-0.005747174844145775,
0.015979954972863197,
-0.17768405377864838,
-0.030055774375796318,
-0.021923620253801346,
-0.03590426594018936,
0.038821231573820114,
0.19364438951015472,
-0.06773491948843002,
0.1720447689294815,
-0.4300881624221802,
0.2831496000289917,
0.052698299288749695,
0.17483097314834595,
-0.3980613946914673,
-0.031036995351314545,
-0.25289300084114075,
0.28962552547454834,
-0.23565302789211273,
-0.0801541730761528,
0.02228410914540291,
0.27958106994628906,
-0.373626172542572,
-0.1903102695941925,
0.24500131607055664,
-0.40766268968582153,
-0.5217410326004028,
-0.2219780534505844,
0.23116976022720337,
-0.3900432586669922,
0.0034001152962446213,
-0.18551316857337952,
0.0024282485246658325,
0.2290036380290985,
0.1364833414554596,
-0.27300891280174255,
-0.24391871690750122,
-0.07863502204418182,
-0.2442154735326767,
-0.0058560483157634735,
-0.04878532141447067,
0.11362610012292862,
-0.33593034744262695,
0.11511048674583435,
-0.43213796615600586
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Not sure why we're having this issue. Maybe could you get also the file that's causing that ? | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 18 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Not sure why we're having this issue. Maybe could you get also the file that's causing that ? | [
-0.24387353658676147,
-0.15484443306922913,
0.0903031975030899,
0.4575008153915405,
0.12444891780614853,
-0.05433914065361023,
-0.1172972172498703,
0.2066469043493271,
0.3364437222480774,
0.30087196826934814,
0.2952861785888672,
-0.00249457242898643,
0.05222297087311745,
-0.38132765889167786,
-0.07671733945608139,
-0.003009457141160965,
0.3680459260940552,
0.19511786103248596,
0.044042401015758514,
-0.24198630452156067,
-0.05900033935904503,
0.20053797960281372,
-0.345376193523407,
0.30418169498443604,
-0.31076574325561523,
0.058556146919727325,
0.14182960987091064,
-0.024723641574382782,
-0.07643648236989975,
-0.3120388686656952,
0.027691753581166267,
-0.27501094341278076,
0.16518060863018036,
0.32288217544555664,
-0.00012734609481412917,
-0.18571600317955017,
0.5115447640419006,
-0.10405497997999191,
-0.1468493938446045,
-0.23387788236141205,
-0.08396714925765991,
-0.1510855257511139,
-0.03172023594379425,
-0.3054436445236206,
0.3135238289833069,
0.063947394490242,
0.2530774772167206,
-0.23876482248306274,
0.26004573702812195,
0.23022793233394623,
0.08246983587741852,
0.21990446746349335,
0.29527565836906433,
-0.006982699036598206,
0.5136979222297668,
0.12198055535554886,
0.20475323498249054,
-0.07103872299194336,
-0.03414361923933029,
-0.03031572885811329,
0.1266936957836151,
0.09698641300201416,
-0.41623446345329285,
-0.24477918446063995,
-0.14445656538009644,
-0.09353417158126831,
0.3075277507305145,
-0.4182208776473999,
0.4121515452861786,
0.17473091185092926,
0.5269607305526733,
-0.020269200205802917,
0.3501131534576416,
0.13363754749298096,
-0.05023646727204323,
0.24152828752994537,
0.416276752948761,
0.5217403173446655,
-0.39931511878967285,
0.03402794897556305,
0.3900623023509979,
-0.14695177972316742,
-0.042469605803489685,
0.265184223651886,
-0.1742004156112671,
0.8081724643707275,
0.032636478543281555,
0.30843931436538696,
0.050777729600667953,
-0.01831502839922905,
-0.0851946696639061,
-0.33191704750061035,
-0.07108773291110992,
0.2830992639064789,
-0.13640910387039185,
0.03209783881902695,
-0.17559191584587097,
-0.07499880343675613,
0.02633563056588173,
-0.5093852281570435,
-0.46731993556022644,
0.04800218343734741,
0.018448911607265472,
0.24843880534172058,
0.4564204812049866,
-0.11469192802906036,
0.1845865249633789,
-0.013837069272994995,
-0.008998572826385498,
-0.14459842443466187,
-0.053872451186180115,
0.01911168172955513,
-0.2315293848514557,
-0.012574601918458939,
-0.4852997362613678,
0.07806268334388733,
0.09570733457803726,
-0.17044979333877563,
-0.04020227491855621,
0.2572527527809143,
-0.2312711775302887,
-0.09551241993904114,
-0.15073412656784058,
0.4952980577945709,
-0.06190306320786476,
0.39194875955581665,
-0.04854679852724075,
0.024267274886369705,
-0.13796982169151306,
-0.6093872785568237,
0.012872995808720589,
0.19731242954730988,
-0.3547969162464142,
-0.011047380045056343,
-0.16462889313697815,
0.22071799635887146,
0.13381020724773407,
0.32282787561416626,
-0.0421387180685997,
-0.4779708683490753,
-0.02611847221851349,
-0.2950367033481598,
-0.14445048570632935,
0.05411597713828087,
0.4805475175380707,
0.4583340287208557,
0.1996520459651947,
-0.36728227138519287,
-0.056443631649017334,
0.40875497460365295,
-0.4907051920890808,
-0.15471994876861572,
-0.5020551681518555,
0.03647962212562561,
0.023386850953102112,
0.16012760996818542,
-0.5785999894142151,
0.025601161643862724,
-0.06941988319158554,
-0.1577770709991455,
0.05337570607662201,
-0.22337646782398224,
-0.1592525839805603,
-0.13767299056053162,
0.10063646733760834,
0.3055131435394287,
-0.1845816969871521,
0.011036582291126251,
-0.09798659384250641,
-0.17480923235416412,
0.3727368414402008,
0.15099650621414185,
-0.17199964821338654,
0.6597506999969482,
-0.4492010772228241,
0.5568724870681763,
0.3406929075717926,
-0.2888254225254059,
-0.09071948379278183,
0.04628174379467964,
-0.0644739419221878,
-0.206685870885849,
0.026675723493099213,
-0.19098153710365295,
0.2845524549484253,
-0.04674345627427101,
-0.3265434503555298,
0.0959966629743576,
0.0915893018245697,
0.20538727939128876,
-0.21473561227321625,
-0.31041374802589417,
0.29075998067855835,
0.07472395896911621,
0.17161475121974945,
-0.06633851677179337,
0.17190471291542053,
0.4653390049934387,
0.4322320818901062,
-0.20571395754814148,
0.1602538824081421,
0.11525728553533554,
0.1596602499485016,
0.2181696891784668,
-0.11319256573915482,
0.14177384972572327,
0.0020730048418045044,
-0.054543688893318176,
0.02975590154528618,
0.2059299647808075,
-0.12558431923389435,
-0.08301633596420288,
-0.18170341849327087,
0.21466293931007385,
-0.08890931308269501,
0.07871897518634796,
0.05391757935285568,
0.13255855441093445,
-0.21255382895469666,
0.36927473545074463,
0.04768553748726845,
-0.19676469266414642,
-0.2540510594844818,
0.1109289824962616,
0.10389810800552368,
0.29726582765579224,
-0.16058184206485748,
-0.05718281865119934,
-0.3508012890815735,
-0.16787812113761902,
0.506805419921875,
-0.013374481350183487,
-0.14437490701675415,
0.03621087968349457,
0.24801471829414368,
0.06019297614693642,
-0.2725657820701599,
-0.20727281272411346,
-0.017566146329045296,
-0.2871750295162201,
0.2105039656162262,
0.1699795126914978,
0.21523189544677734,
-0.16550803184509277,
0.3415623903274536,
0.08857451379299164,
0.3862994611263275,
0.07120074331760406,
-0.19603869318962097,
0.12592622637748718,
0.23893344402313232,
0.007739514112472534,
0.46711620688438416,
-0.07113713026046753,
0.2976309359073639,
0.41763821244239807,
-0.0922953188419342,
-0.2519226670265198,
0.12866945564746857,
-0.12773427367210388,
0.5343976020812988,
-0.06959767639636993,
0.1919311285018921,
0.20515087246894836,
-0.3437321186065674,
-0.010774992406368256,
0.29659467935562134,
-0.39118272066116333,
0.1748315691947937,
-0.027696963399648666,
-0.10482311248779297,
0.2737583518028259,
0.2530733048915863,
0.013561518862843513,
0.5135733485221863,
0.08790166676044464,
0.04187167435884476,
0.11942367255687714,
-0.2610669732093811,
-0.02930881828069687,
-0.27666231989860535,
-0.14233875274658203,
-0.2583797574043274,
0.2075478434562683,
-0.2546708881855011,
-0.10888805240392685,
-0.26461315155029297,
-0.02103050984442234,
-0.36015212535858154,
0.12437840551137924,
-0.38259172439575195,
-0.0819275751709938,
-0.16107487678527832,
0.2543989419937134,
-0.12000781297683716,
0.12839186191558838,
-0.010132363066077232,
0.11124133318662643,
-0.035576410591602325,
0.23046241700649261,
-0.21627935767173767,
-0.2744898498058319,
-0.5513041019439697,
-0.15241001546382904,
0.5267804861068726,
0.11148746311664581,
0.0004287753254175186,
-0.02615354210138321,
0.0205521397292614,
-0.2660401463508606,
-0.16418008506298065,
0.42101848125457764,
-0.02979438751935959,
-0.09148811548948288,
-0.08535292744636536,
0.17953035235404968,
-0.11812318861484528,
-0.31709957122802734,
0.005114931147545576,
-0.34517255425453186,
-0.13088195025920868,
0.07493316382169724,
0.06845558434724808,
-0.1905049979686737,
0.06678682565689087,
-0.04303433746099472,
-0.34542715549468994,
-0.03018989972770214,
-0.2688141465187073,
-0.1228383481502533,
0.1198514997959137,
-0.5135688781738281,
-0.002946866676211357,
0.19318020343780518,
-0.39855170249938965,
-0.19481201469898224,
-0.2629190981388092,
0.0681876540184021,
0.1352650225162506,
-0.010628598742187023,
-0.24457816779613495,
0.4565594494342804,
0.008639123290777206,
0.19073332846164703,
-0.0298142209649086,
-0.6047424077987671,
0.34069567918777466,
0.11886562407016754,
-0.07867895066738129,
-0.28028202056884766,
0.09176887571811676,
0.30301377177238464,
-0.14918214082717896,
0.16610194742679596,
0.03421091288328171,
-0.08003650605678558,
-0.25897669792175293,
-0.3078547716140747,
0.38958775997161865,
-0.09431406110525131,
0.4309287667274475,
-0.0003136247396469116,
0.5969521403312683,
-0.030841829255223274,
0.24193662405014038,
0.3254551589488983,
-0.059036463499069214,
-0.025697167962789536,
-0.02841256558895111,
-0.08219637721776962,
0.30891212821006775,
0.1155981793999672,
-0.24475665390491486,
0.5990240573883057,
-0.2307508885860443,
-0.29926273226737976,
-0.20099404454231262,
-0.12911024689674377,
-0.4419807195663452,
-0.38919875025749207,
0.18406268954277039,
0.325933575630188,
0.24091050028800964,
-0.08115142583847046,
0.18409624695777893,
-0.09480151534080505,
-0.3454447388648987,
-0.0010842932388186455,
0.23666581511497498,
-0.12982454895973206,
-0.05299176648259163,
-0.30192258954048157,
0.04088836908340454,
-0.24448519945144653,
0.2875692844390869,
0.1513238549232483,
0.414507657289505,
-0.0659276694059372,
0.0903610959649086,
0.13967561721801758,
0.11319572478532791,
0.6657510995864868,
0.1873905062675476,
0.20140346884727478,
-0.05446161702275276,
0.11067862808704376,
-0.2019362449645996,
-0.34993353486061096,
-0.2815024256706238,
0.027945511043071747,
0.4818453788757324,
0.011475048959255219,
-0.443354994058609,
0.015988538041710854,
-0.10856321454048157,
0.0753658190369606,
-0.03374750167131424,
-0.05581464245915413,
-0.12410643696784973,
-0.17012333869934082,
-0.40605151653289795,
0.22212514281272888,
0.09947536140680313,
0.2381233125925064,
0.20162855088710785,
0.10319192707538605,
0.06596161425113678,
0.07995252311229706,
0.013816125690937042,
-0.14959347248077393,
0.18129846453666687,
0.14638112485408783,
-0.26075199246406555,
-0.19618545472621918,
0.2767338454723358,
0.06342147290706635,
0.08528424799442291,
0.5467897653579712,
-0.2350267767906189,
0.03947131708264351,
-0.10003870725631714,
0.2835971713066101,
0.31954628229141235,
0.06263994425535202,
0.2859421968460083,
0.12072297185659409,
0.20473366975784302,
-0.09265684336423874,
0.3206845223903656,
0.20853646099567413,
0.053171608597040176,
-0.3946619927883148,
0.023364784196019173,
0.28179287910461426,
0.01741747558116913,
-0.04829462617635727,
0.1377715766429901,
0.05529092624783516,
-0.2594876289367676,
0.30333608388900757,
0.19931013882160187,
1.3601081371307373,
0.26063668727874756,
0.06050742417573929,
0.11089480668306351,
0.004398010671138763,
0.7963579893112183,
-0.6298069953918457,
-0.018926911056041718,
-0.3128017783164978,
0.13279472291469574,
-0.13893762230873108,
-0.009708728641271591,
0.10007749497890472,
0.14441972970962524,
-0.36834001541137695,
0.2792603075504303,
0.10702133178710938,
0.6044877767562866,
0.18500788509845734,
0.21067383885383606,
0.1967146396636963,
-0.05658235773444176,
-0.010823320597410202,
-0.02224736660718918,
-0.2962782382965088,
0.17503298819065094,
-0.3528538942337036,
0.04590674489736557,
0.06082534417510033,
-0.3904220461845398,
-0.521291971206665,
0.18443024158477783,
-0.1486300677061081,
0.20018461346626282,
-0.006377991288900375,
-0.055713437497615814,
0.38609766960144043,
-0.0757051408290863,
0.12671788036823273,
0.38990160822868347,
-0.17919103801250458,
0.38684162497520447,
-0.11202197521924973,
-0.3065810203552246,
-0.02843366749584675,
0.0907428190112114,
-0.20488546788692474,
-0.1419508159160614,
-0.31511980295181274,
0.38146141171455383,
-0.08079072088003159,
-0.2983231544494629,
-0.30184221267700195,
0.002633601427078247,
0.4286656975746155,
0.0016239765100181103,
-0.4058830440044403,
0.06374609470367432,
0.1333775669336319,
-0.025931967422366142,
0.03391556069254875,
-0.13004358112812042,
-0.11883669346570969,
-0.028706178069114685,
0.31103330850601196,
-0.24702012538909912,
-0.037265192717313766,
0.3636568486690521,
-0.0766463428735733,
-0.4688624143600464,
0.5109814405441284,
0.3010249733924866,
-0.22087633609771729,
-0.14785099029541016,
-0.04447541385889053,
-0.48494449257850647,
-0.6720793843269348,
-0.1798180788755417,
-0.1361621916294098,
0.09115433692932129,
-0.1592465341091156,
0.247029647231102,
0.3108224868774414,
-0.005538485944271088,
0.12533970177173615,
-0.33821338415145874,
0.07866595685482025,
-0.03176756948232651,
-0.4044039845466614,
-0.09210491180419922,
0.15337210893630981,
0.16586408019065857,
-0.04420245811343193,
-0.08045147359371185,
-0.09909132868051529,
0.08896424621343613,
-0.31042420864105225,
0.17675484716892242,
0.4049195349216461,
0.16132012009620667,
-0.2886880934238434,
-0.028909556567668915,
-0.007820628583431244,
0.21134237945079803,
-0.01621880941092968,
-0.031020252034068108,
-0.12062196433544159,
0.28240054845809937,
0.3431392312049866,
-0.10131027549505234,
0.13414524495601654,
-0.0402461402118206,
0.1312255710363388,
-0.06307434290647507,
-0.08405408263206482,
-0.12436946481466293,
-0.11893585324287415,
0.23114760220050812,
0.15611109137535095,
0.30337581038475037,
-0.6175191402435303,
0.15670859813690186,
0.21223598718643188,
0.5182567238807678,
0.01017780788242817,
0.24136264622211456,
0.21245819330215454,
-0.009696483612060547,
-0.21738018095493317,
0.19851922988891602,
0.32537052035331726,
0.19107979536056519,
0.07402636110782623,
-0.005687221884727478,
-0.029286619275808334,
0.1216227114200592,
-0.21899472177028656,
0.10842156410217285,
-0.38406139612197876,
-0.26784199476242065,
0.6546410322189331,
0.10487145930528641,
-0.11999117583036423,
0.11652006208896637,
0.5963571667671204,
0.1986391246318817,
-0.36581888794898987,
0.11730232834815979,
0.05385227128863335,
-0.4070928990840912,
0.33824074268341064,
0.17662963271141052,
0.37149322032928467,
0.00886528380215168,
0.12126129865646362,
0.06262029707431793,
-0.1921665221452713,
0.29160594940185547,
0.06218887120485306,
-0.03703438863158226,
0.2124624252319336,
0.563007116317749,
-0.08892499655485153,
0.06858798116445541,
0.18664661049842834,
0.07570558786392212,
-0.053236283361911774,
-0.24766874313354492,
0.15535418689250946,
0.5270801782608032,
0.08407623320817947,
-0.1004331186413765,
-0.11712883412837982,
-0.0364120751619339,
0.14189858734607697,
-0.17666193842887878,
-0.4514763653278351,
0.21056756377220154,
-0.3536438047885895,
0.08197735249996185,
-0.37653595209121704,
-0.09533809125423431,
-0.2704102396965027,
0.2513713836669922,
0.12254244089126587,
-0.04083656519651413,
-0.40081629157066345,
0.3257642388343811,
-0.4385764002799988,
-0.01001475378870964,
0.03065665438771248,
0.10957030951976776,
-0.11274851113557816,
-0.3423266112804413,
0.1936751902103424,
-0.1967979222536087,
0.035459909588098526,
-0.11072860658168793,
0.2237883061170578,
0.4590556025505066,
0.5882253050804138,
-0.34029096364974976,
-0.05767202749848366,
0.1371680349111557,
0.23677174746990204,
0.018131326884031296,
0.1504068523645401,
0.21211344003677368,
0.40061917901039124,
0.06056772544980049,
0.02745651639997959,
-0.12698863446712494,
-0.2661481201648712,
0.3369750380516052,
0.003071802668273449,
0.05272064357995987,
-0.3359842896461487,
-0.10482758283615112,
0.12394101172685623,
-0.2843916714191437,
-0.08021239191293716,
-0.5245041251182556,
0.29721540212631226,
0.1381942182779312,
0.1650841236114502,
0.08396048098802567,
-0.11340407282114029,
-0.026124384254217148,
-0.129248708486557,
0.18290448188781738,
0.337411493062973,
0.23513057827949524,
-0.25570258498191833,
-0.5928303599357605,
-0.5923693180084229,
0.5155177712440491,
-0.20852580666542053,
-0.17196185886859894,
-0.07314075529575348,
0.06014084815979004,
0.06233114004135132,
0.3624550700187683,
0.10182977467775345,
0.14380061626434326,
-0.3306404650211334,
0.20464745163917542,
-0.22974196076393127,
-0.09365884959697723,
0.19095270335674286,
-0.015770768746733665,
-0.0849762111902237,
-0.3382999300956726,
0.22909526526927948,
-0.16222698986530304,
-0.06982336938381195,
-0.18290749192237854,
-0.21456842124462128,
-0.13646139204502106,
-0.24130132794380188,
0.5710749626159668,
0.12116268277168274,
0.4785779118537903,
-0.06563498079776764,
0.18721462786197662,
-0.06840647757053375,
0.01682484894990921,
-0.08158154040575027,
0.03787706047296524,
-0.01923845335841179,
0.1439693421125412,
0.04236011207103729,
0.31293824315071106,
-0.3990132808685303,
0.3354875147342682,
0.13869483768939972,
0.22681711614131927,
-0.36253172159194946,
-0.0345899760723114,
-0.311788409948349,
0.08084281533956528,
-0.033470556139945984,
-0.056361548602581024,
0.026320720091462135,
0.15047308802604675,
-0.37170398235321045,
-0.04805213212966919,
0.17378130555152893,
-0.4795393645763397,
-0.38244229555130005,
-0.25346246361732483,
0.2423751950263977,
-0.11367029696702957,
-0.23967528343200684,
-0.13746307790279388,
0.04307336360216141,
0.2564232051372528,
0.12809035181999207,
-0.16105473041534424,
-0.11423023045063019,
-0.2987760603427887,
-0.14952203631401062,
-0.0021700896322727203,
0.05355677008628845,
0.17170676589012146,
-0.41445818543434143,
0.17504841089248657,
-0.4345160126686096
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | thanks for your answer.
How can I know which file is causing the issue ?
I am trying to load the spanish wikipedia data. | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 24 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
thanks for your answer.
How can I know which file is causing the issue ?
I am trying to load the spanish wikipedia data. | [
-0.38053926825523376,
-0.3404875695705414,
0.05695943906903267,
0.6597750186920166,
-0.02394445240497589,
-0.13706442713737488,
-0.2214759737253189,
0.35511982440948486,
0.32051509618759155,
0.23522794246673584,
0.3936886489391327,
-0.04771603271365166,
0.027949552983045578,
-0.4523814618587494,
0.10121865570545197,
0.14894619584083557,
0.42529433965682983,
0.19562844932079315,
0.15544576942920685,
-0.2860965430736542,
-0.14368018507957458,
0.33248642086982727,
-0.2521987557411194,
0.4765053987503052,
-0.3799895942211151,
0.14685268700122833,
0.17038165032863617,
0.1342843919992447,
-0.03882427513599396,
-0.33402520418167114,
0.1467205435037613,
-0.2287004292011261,
0.24948498606681824,
0.4108286499977112,
-0.00012948588118888438,
-0.1358281672000885,
0.4792962670326233,
-0.21675682067871094,
-0.07114987820386887,
-0.24717508256435394,
-0.1766095757484436,
-0.10249903798103333,
0.05180881917476654,
-0.27626827359199524,
0.367880642414093,
-0.048121776431798935,
0.40333062410354614,
-0.21092456579208374,
0.2742959260940552,
0.3901074528694153,
0.06695166975259781,
0.21845795214176178,
0.16870956122875214,
-0.013108874671161175,
0.5559422373771667,
-0.003924533724784851,
0.29488950967788696,
-0.013816267251968384,
0.05484931915998459,
-0.04460418224334717,
0.009428434073925018,
0.09132558107376099,
-0.4119962751865387,
-0.13169576227664948,
-0.08111829310655594,
-0.11474628001451492,
0.3158608078956604,
-0.38110050559043884,
0.3990839719772339,
0.28648287057876587,
0.5265470743179321,
0.024440579116344452,
0.4537290930747986,
0.13209781050682068,
-0.2025640457868576,
0.3474869430065155,
0.5818402171134949,
0.40230512619018555,
-0.35171255469322205,
-0.01656622439622879,
0.38786038756370544,
-0.008528207428753376,
-0.015507284551858902,
0.23993659019470215,
-0.3587421476840973,
0.754996657371521,
-0.023126069456338882,
0.3411198854446411,
0.1030803769826889,
-0.020427457988262177,
-0.18200236558914185,
-0.2388801872730255,
0.03184148296713829,
0.28762173652648926,
-0.16895194351673126,
0.009021051228046417,
-0.06375064700841904,
-0.13761910796165466,
-0.07292569428682327,
-0.48240458965301514,
-0.39533451199531555,
0.09368529915809631,
0.020818475633859634,
0.2795300781726837,
0.4600289463996887,
-0.12797202169895172,
0.22689539194107056,
-0.12814728915691376,
0.03612539917230606,
-0.06545277684926987,
-0.16186843812465668,
0.03302985802292824,
-0.3590047061443329,
-0.16939179599285126,
-0.3182506561279297,
-0.05561140179634094,
0.15240491926670074,
-0.23561204969882965,
-0.10321389138698578,
0.24232161045074463,
-0.2417161464691162,
-0.24014273285865784,
-0.016058627516031265,
0.5928183197975159,
0.046002376824617386,
0.36126869916915894,
-0.08837668597698212,
-0.17049670219421387,
-0.16431665420532227,
-0.5626624226570129,
0.021412380039691925,
0.19930188357830048,
-0.32005131244659424,
-0.031070908531546593,
-0.14059707522392273,
0.16450689733028412,
0.12472575157880783,
0.28095728158950806,
-0.1108284443616867,
-0.5334952473640442,
-0.02933921292424202,
-0.30775201320648193,
-0.05999619513750076,
0.10156422108411789,
0.3478443920612335,
0.3976209759712219,
0.27857208251953125,
-0.4330406188964844,
-0.12212125957012177,
0.27681878209114075,
-0.5401120781898499,
-0.19042697548866272,
-0.36558735370635986,
0.007364042103290558,
-0.08136222511529922,
0.2184058278799057,
-0.5214789509773254,
0.03528822958469391,
-0.15890365839004517,
-0.31618648767471313,
0.08656381070613861,
-0.25669318437576294,
-0.07144097238779068,
-0.1356315165758133,
0.09507802873849869,
0.3783813714981079,
-0.15707096457481384,
-0.08653655648231506,
-0.1100408062338829,
-0.2945408523082733,
0.2481400966644287,
0.07768574357032776,
-0.1522154062986374,
0.5089020729064941,
-0.39292001724243164,
0.46071726083755493,
0.40201622247695923,
-0.3885553479194641,
-0.07740605622529984,
0.003298309165984392,
-0.10516899824142456,
-0.1443251371383667,
0.17046162486076355,
-0.0770811140537262,
0.16417041420936584,
-0.18169090151786804,
-0.2103976309299469,
0.0381530337035656,
0.1581329107284546,
0.12026522308588028,
-0.2180200070142746,
-0.2795446217060089,
0.06813802570104599,
0.1130153238773346,
0.12436601519584656,
-0.22366657853126526,
0.11091300845146179,
0.44323450326919556,
0.29552918672561646,
-0.020417284220457077,
-0.014105075970292091,
0.13043850660324097,
0.13461913168430328,
0.16348016262054443,
-0.05044829472899437,
0.027142681181430817,
-0.003952577710151672,
-0.07222343236207962,
-0.05480143427848816,
-0.08438532054424286,
-0.20333780348300934,
-0.02447160705924034,
-0.19833096861839294,
0.19048433005809784,
-0.13364757597446442,
0.13398882746696472,
0.025123994797468185,
0.26112455129623413,
-0.2519672214984894,
0.2475956529378891,
-0.18702037632465363,
-0.1587837040424347,
-0.24051706492900848,
0.14324751496315002,
0.05960601568222046,
0.18161018192768097,
0.029015937820076942,
0.007920234464108944,
-0.1988389641046524,
-0.25802284479141235,
0.5626893043518066,
-0.10925288498401642,
-0.1604560911655426,
0.09303105622529984,
0.2045789659023285,
0.23945976793766022,
-0.12460141628980637,
-0.09293274581432343,
-0.19777722656726837,
-0.29283764958381653,
0.12944437563419342,
0.13615182042121887,
0.1311371922492981,
-0.0345999039709568,
0.3571681082248688,
0.021312788128852844,
0.2833704352378845,
0.005476675927639008,
-0.153631791472435,
0.02903658337891102,
0.1711275577545166,
-0.035795778036117554,
0.5272093415260315,
-0.09986533224582672,
0.35105666518211365,
0.46598926186561584,
0.05298252031207085,
-0.08243530988693237,
0.049160219728946686,
-0.19452065229415894,
0.7476956844329834,
-0.16081690788269043,
0.1886681169271469,
0.28486162424087524,
-0.34410348534584045,
-0.04935082793235779,
0.21522149443626404,
-0.24022693932056427,
0.1980990320444107,
-0.011259601451456547,
-0.12184983491897583,
0.13065080344676971,
0.17971427738666534,
-0.006830569356679916,
0.5171736478805542,
0.09125418215990067,
-0.07894018292427063,
0.11842676997184753,
-0.3818054795265198,
-0.0453040786087513,
-0.36200228333473206,
-0.12430432438850403,
-0.32549792528152466,
0.24997739493846893,
-0.27316686511039734,
0.07964304089546204,
-0.2528132200241089,
0.021774504333734512,
-0.5295094847679138,
0.0954795852303505,
-0.38283994793891907,
-0.03978683799505234,
-0.06761567294597626,
0.213175430893898,
-0.012707499787211418,
0.04285156726837158,
-0.06390067934989929,
0.19829098880290985,
-0.12038641422986984,
0.15864452719688416,
-0.18723656237125397,
-0.25422003865242004,
-0.5679863095283508,
-0.16376903653144836,
0.6536369323730469,
0.18328428268432617,
-0.04345698654651642,
-0.2405000925064087,
0.016271207481622696,
-0.15311308205127716,
-0.11639641225337982,
0.4006672501564026,
0.06138881295919418,
0.0006477572023868561,
-0.11087782680988312,
0.27740538120269775,
-0.053772684186697006,
-0.33189401030540466,
0.03615203872323036,
-0.36732563376426697,
-0.1134888231754303,
0.07656053453683853,
0.14524024724960327,
-0.18880519270896912,
0.21443742513656616,
-0.11242947727441788,
-0.2642556428909302,
-0.10266666114330292,
-0.32060927152633667,
-0.148894801735878,
0.2024536430835724,
-0.6096342206001282,
-0.22094951570034027,
0.33826011419296265,
-0.27905434370040894,
-0.065767802298069,
-0.24180079996585846,
-0.027333099395036697,
0.09939730167388916,
0.11113598197698593,
-0.07806676626205444,
0.4412776529788971,
0.11039520800113678,
0.08498911559581757,
0.07414919137954712,
-0.5340139865875244,
0.20135252177715302,
0.08201207220554352,
-0.08470054715871811,
-0.2322700023651123,
-0.05176577717065811,
0.3450068533420563,
-0.09149101376533508,
0.14311914145946503,
-0.06923819333314896,
-0.049427807331085205,
-0.20284396409988403,
-0.30418574810028076,
0.3847756087779999,
-0.05652080476284027,
0.31373631954193115,
-0.03745630383491516,
0.6825991868972778,
0.024097129702568054,
0.0873810201883316,
0.2980577349662781,
-0.01601267047226429,
-0.13771915435791016,
0.03203383460640907,
-0.07591188699007034,
0.22006183862686157,
0.18205055594444275,
-0.2735154628753662,
0.7422610521316528,
-0.17680808901786804,
-0.23669002950191498,
-0.17631331086158752,
-0.11821529269218445,
-0.6048863530158997,
-0.25587406754493713,
0.19365294277668,
0.37648677825927734,
0.2533048093318939,
-0.2265690714120865,
0.11472202092409134,
-0.10122574865818024,
-0.27936267852783203,
-0.024650901556015015,
0.5404157042503357,
-0.16349491477012634,
-0.017395544797182083,
-0.23036958277225494,
0.06076784059405327,
0.017308998852968216,
0.3330138623714447,
0.02789062075316906,
0.364525705575943,
-0.3009791076183319,
0.05848263204097748,
0.1851811408996582,
-0.06644175201654434,
0.7375574111938477,
0.28129225969314575,
0.1952381432056427,
-0.13913336396217346,
0.10791255533695221,
-0.10957120358943939,
-0.31505218148231506,
-0.22844594717025757,
0.06642618775367737,
0.37952345609664917,
0.118604376912117,
-0.36672234535217285,
-0.06812260299921036,
-0.07574324309825897,
0.12490963935852051,
-0.06617807596921921,
-0.04229835793375969,
-0.10816659778356552,
-0.11782337725162506,
-0.26083922386169434,
0.1928357481956482,
-0.04082993417978287,
0.13026756048202515,
0.2843620479106903,
0.1572827845811844,
0.04703212529420853,
0.05884730815887451,
0.14618366956710815,
0.01105918176472187,
0.16527962684631348,
0.008765099570155144,
-0.37720417976379395,
0.018427450209856033,
0.3099295198917389,
0.1846914440393448,
0.10314900428056717,
0.6288965940475464,
-0.17462080717086792,
0.0785394236445427,
0.02819886803627014,
0.10295072197914124,
0.41683799028396606,
-0.011182849295437336,
0.26911261677742004,
0.02757802978157997,
0.1334402710199356,
-0.06158671900629997,
0.24590106308460236,
0.31129419803619385,
0.10986418277025223,
-0.5357344746589661,
0.06799876689910889,
0.5119999051094055,
0.08470979332923889,
-0.19742748141288757,
0.17876356840133667,
-0.175636425614357,
-0.2289908528327942,
0.15383774042129517,
0.20003056526184082,
1.4499609470367432,
0.15241222083568573,
0.07451052963733673,
0.05754966288805008,
-0.013034820556640625,
0.6243784427642822,
-0.7486419081687927,
-0.09164214879274368,
-0.24289579689502716,
0.09127195924520493,
-0.24305514991283417,
-0.130057230591774,
0.21651440858840942,
0.14150923490524292,
-0.3455151915550232,
0.2901131212711334,
0.14401982724666595,
0.5426387190818787,
0.18061839044094086,
0.18911603093147278,
0.1602584719657898,
0.123042032122612,
-0.2093888819217682,
-0.0700894370675087,
-0.36685365438461304,
0.3385096788406372,
-0.28589028120040894,
0.05317123606801033,
-0.018716465681791306,
-0.3675302267074585,
-0.49114471673965454,
-0.038005851209163666,
-0.13584484159946442,
0.134993314743042,
-0.014702707529067993,
-0.12966270744800568,
0.26235610246658325,
0.05903484672307968,
0.05287382751703262,
0.1975557953119278,
-0.13323920965194702,
0.47609642148017883,
-0.030487358570098877,
-0.17260868847370148,
-0.08413150906562805,
0.006204635836184025,
-0.1361691653728485,
-0.13840311765670776,
-0.217702254652977,
0.407485693693161,
-0.0213681198656559,
-0.20469839870929718,
-0.16164913773536682,
0.057245515286922455,
0.44495952129364014,
0.05965106189250946,
-0.505822479724884,
-0.06528712809085846,
0.08230245113372803,
0.04259235039353371,
0.026317168027162552,
-0.051327064633369446,
-0.014104527421295643,
-0.14452096819877625,
0.15237703919410706,
-0.2435983121395111,
-0.043007832020521164,
0.2790704071521759,
-0.11725176125764847,
-0.4595450460910797,
0.44914934039115906,
0.08571498095989227,
-0.17939196527004242,
-0.09375648200511932,
0.08984433859586716,
-0.4517308175563812,
-0.58324134349823,
-0.19653892517089844,
-0.04961542412638664,
-0.006353914737701416,
-0.0469764769077301,
0.20735366642475128,
0.36863988637924194,
-0.020753130316734314,
0.06679172813892365,
-0.4061916172504425,
-0.012644413858652115,
-0.03456096351146698,
-0.23904280364513397,
0.01642819121479988,
0.09661179035902023,
-0.039942555129528046,
0.0398918017745018,
-0.013291528448462486,
-0.07642735540866852,
0.1367548257112503,
-0.37965598702430725,
0.104477658867836,
0.4097525179386139,
0.31771549582481384,
-0.2552180886268616,
-0.12675848603248596,
-0.05762866139411926,
0.09088423103094101,
-0.06154939532279968,
-0.013918958604335785,
-0.0917002260684967,
0.3072163164615631,
0.2673511207103729,
-0.11605140566825867,
0.1397964507341385,
-0.11297133564949036,
0.3074869215488434,
-0.042460232973098755,
-0.1413353532552719,
-0.08091020584106445,
-0.07092221081256866,
0.1589272916316986,
0.15671344101428986,
0.07651527225971222,
-0.6586523056030273,
0.20115256309509277,
0.12728172540664673,
0.46185511350631714,
0.10028637200593948,
0.24003741145133972,
0.031579941511154175,
-0.07182081788778305,
-0.2901144325733185,
0.28639888763427734,
0.2572477161884308,
0.13480772078037262,
-0.024997249245643616,
0.08594436198472977,
-0.014200540259480476,
0.10627752542495728,
-0.3425726592540741,
0.1890188455581665,
-0.4209904670715332,
-0.2592408061027527,
0.46552377939224243,
0.05061597749590874,
-0.03438182920217514,
0.08725897967815399,
0.5667287707328796,
0.04731553792953491,
-0.37608951330184937,
0.08757731318473816,
0.009316626936197281,
-0.3272932767868042,
0.36728435754776,
0.16127383708953857,
0.32698965072631836,
0.03700918331742287,
0.24898500740528107,
0.12750323116779327,
-0.04273994266986847,
0.430468887090683,
0.07371847331523895,
-0.0544317252933979,
0.30771562457084656,
0.5992557406425476,
-0.15233507752418518,
0.14097221195697784,
0.21592921018600464,
0.09218615293502808,
-0.027492880821228027,
-0.27942872047424316,
0.1667831838130951,
0.6952601671218872,
0.011262521147727966,
-0.026694975793361664,
-0.013464324176311493,
0.14416784048080444,
0.03147567808628082,
-0.09187193214893341,
-0.5693450570106506,
0.1723656803369522,
-0.3039976954460144,
-0.04187547042965889,
-0.435906320810318,
-0.17337438464164734,
-0.2718032896518707,
0.2712930738925934,
0.08467616140842438,
0.007535792887210846,
-0.4959263503551483,
0.4745287299156189,
-0.3862532377243042,
0.16597284376621246,
-0.0016137845814228058,
-0.03529776632785797,
-0.07689229398965836,
-0.25101548433303833,
0.27670523524284363,
-0.10094642639160156,
0.09001542627811432,
0.17858940362930298,
0.10788000375032425,
0.451814740896225,
0.46085742115974426,
-0.19816620647907257,
-0.07176791876554489,
0.14641006290912628,
0.19928549230098724,
-0.08066831529140472,
0.17155581712722778,
0.044415660202503204,
0.4488537311553955,
0.061312075704336166,
0.04119347780942917,
-0.12057425826787949,
-0.23068900406360626,
0.1679258793592453,
0.03292033448815346,
-0.058457132428884506,
-0.32363638281822205,
-0.25256210565567017,
0.12140817195177078,
-0.32761749625205994,
-0.04390396922826767,
-0.40127032995224,
0.2954166531562805,
0.08267615735530853,
0.32473793625831604,
0.09956944733858109,
0.01244889385998249,
-0.05075278505682945,
0.016123753041028976,
0.0842740535736084,
0.26712191104888916,
0.2433379590511322,
-0.1979231983423233,
-0.6244454979896545,
-0.7142554521560669,
0.5119057893753052,
-0.17517957091331482,
-0.14377938210964203,
0.011991702951490879,
-0.14303378760814667,
0.17337611317634583,
0.2121589183807373,
0.2462121993303299,
0.02375863306224346,
-0.27250564098358154,
0.3092389404773712,
-0.09161102026700974,
-0.14334744215011597,
0.12179485708475113,
0.048230867832899094,
-0.17142871022224426,
-0.3135456442832947,
0.2311403900384903,
-0.1329483687877655,
-0.10060489177703857,
-0.13888917863368988,
-0.2052162140607834,
-0.15085457265377045,
-0.3039788007736206,
0.5101711750030518,
0.04160437732934952,
0.6107794046401978,
-0.14156962931156158,
0.21253742277622223,
0.05721859633922577,
0.09024171531200409,
-0.050257932394742966,
0.07780961692333221,
-0.1217021644115448,
0.26519283652305603,
-0.0064843022264540195,
0.4433825612068176,
-0.3522953689098358,
0.34042683243751526,
0.043197691440582275,
0.16447806358337402,
-0.18726520240306854,
-0.2675865888595581,
-0.21497294306755066,
0.014527283608913422,
0.23573565483093262,
0.17509222030639648,
0.011604215949773788,
0.081122025847435,
-0.321675568819046,
0.033271677792072296,
0.0784364715218544,
-0.5061959624290466,
-0.32361674308776855,
-0.08282475173473358,
0.3031008243560791,
-0.20152458548545837,
-0.09868423640727997,
-0.0766226127743721,
-0.05157255381345749,
0.3096536099910736,
0.10906398296356201,
-0.1457052379846573,
-0.1472845822572708,
-0.2215685099363327,
-0.15542364120483398,
0.0013425908982753754,
0.019592974334955215,
0.22980225086212158,
-0.4885844588279724,
0.24334436655044556,
-0.43099939823150635
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Because of the way Apache Beam works we indeed don't have access to the file name at this point in the code.
We'll have to use some tricks I think :p
You can append `filepath` to `title` in `wikipedia.py:L512` for example. [[EDIT: it's L494 my bad]]
Then just do `try:...except:` on the call of `_parse_and_clean_wikicode` L500 I guess.
Thanks for diving into this ! I tried it myself but I run out of memory on my laptop
As soon as we have the name of the file it should be easier to find what's wrong. | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 95 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Because of the way Apache Beam works we indeed don't have access to the file name at this point in the code.
We'll have to use some tricks I think :p
You can append `filepath` to `title` in `wikipedia.py:L512` for example. [[EDIT: it's L494 my bad]]
Then just do `try:...except:` on the call of `_parse_and_clean_wikicode` L500 I guess.
Thanks for diving into this ! I tried it myself but I run out of memory on my laptop
As soon as we have the name of the file it should be easier to find what's wrong. | [
-0.12096288800239563,
-0.07050788402557373,
0.05642214044928551,
0.38918066024780273,
0.10341387987136841,
0.017031297087669373,
-0.12144485116004944,
0.35581445693969727,
0.25141581892967224,
0.26409512758255005,
0.21410472691059113,
-0.06851924955844879,
0.04064323008060455,
-0.449891597032547,
-0.08695939928293228,
-0.07783947885036469,
0.3508557677268982,
0.12347765266895294,
0.05552852526307106,
-0.17326027154922485,
-0.16951972246170044,
0.1376485973596573,
-0.2810783386230469,
0.4107491970062256,
-0.1864088773727417,
0.11123564839363098,
0.08038093894720078,
-0.023814380168914795,
-0.07701873034238815,
-0.3404311537742615,
-0.14635872840881348,
-0.1689710170030594,
0.20265191793441772,
0.33349698781967163,
-0.00012585666263476014,
-0.1855403184890747,
0.5518956780433655,
-0.14463606476783752,
-0.2137814611196518,
-0.1335814744234085,
0.004676941782236099,
-0.26678961515426636,
-0.0591883659362793,
-0.36906540393829346,
0.22016102075576782,
-0.054145704954862595,
0.3302627205848694,
-0.25504088401794434,
0.36092621088027954,
0.22555102407932281,
0.07797815650701523,
0.13909755647182465,
0.2775900065898895,
0.040810760110616684,
0.6543571949005127,
0.003443002700805664,
0.1290142983198166,
-0.2242193967103958,
-0.013656944036483765,
-0.15258485078811646,
-0.0030370429158210754,
0.2453574240207672,
-0.2965684235095978,
-0.19944320619106293,
-0.06752584129571915,
-0.11387775093317032,
0.23020324110984802,
-0.2996581196784973,
0.384732723236084,
0.13379165530204773,
0.5107124447822571,
-0.10197516530752182,
0.1809576004743576,
0.06408072263002396,
-0.11538004875183105,
0.2564851939678192,
0.34985941648483276,
0.4780460298061371,
-0.4989573657512665,
0.060281701385974884,
0.4844409227371216,
-0.17897824943065643,
-0.10386110842227936,
0.2981964349746704,
-0.007458586245775223,
0.7731336355209351,
0.1381373554468155,
0.33521801233291626,
0.018404126167297363,
-0.0671585276722908,
-0.13882362842559814,
-0.2876845598220825,
-0.0027430690824985504,
0.3892371952533722,
-0.09846502542495728,
0.11769218742847443,
-0.13368791341781616,
-0.07980828732252121,
0.000421278178691864,
-0.4752695560455322,
-0.35247930884361267,
0.09234403073787689,
0.06550303846597672,
0.2571343779563904,
0.3952144980430603,
-0.08808845281600952,
0.25605279207229614,
-0.10583990067243576,
0.06495896726846695,
-0.0035790721885859966,
0.03189055249094963,
0.009238958358764648,
-0.1560283750295639,
-0.12516894936561584,
-0.5585856437683105,
0.15723395347595215,
0.16697965562343597,
-0.061128169298172,
0.08678421378135681,
0.21846124529838562,
-0.19899305701255798,
-0.09441892802715302,
-0.1439744234085083,
0.5513178706169128,
-0.03612112998962402,
0.5017173886299133,
0.10817396640777588,
-0.01951243355870247,
-0.20921200513839722,
-0.6590034365653992,
0.07262817025184631,
0.23873604834079742,
-0.383798748254776,
0.09405166655778885,
-0.14628443121910095,
0.2706359624862671,
0.08171512186527252,
0.16267551481723785,
-0.11014823615550995,
-0.4127647280693054,
-0.01777005009353161,
-0.12969642877578735,
-0.11069037765264511,
0.062315065413713455,
0.4266299307346344,
0.5009469389915466,
0.20246195793151855,
-0.42138248682022095,
0.032472655177116394,
0.31856414675712585,
-0.45086246728897095,
-0.11334027349948883,
-0.3865266442298889,
0.02190534397959709,
-0.054951079189777374,
0.29634952545166016,
-0.5117596387863159,
-0.025737818330526352,
-0.06119176000356674,
-0.18052071332931519,
0.0579584501683712,
-0.09742872416973114,
-0.05029314383864403,
-0.1684543639421463,
0.14002111554145813,
0.34383806586265564,
-0.08687680959701538,
0.0030444562435150146,
-0.15164215862751007,
-0.12713013589382172,
0.20690417289733887,
0.012518800795078278,
-0.0878882184624672,
0.5803273320198059,
-0.46322304010391235,
0.5278589129447937,
0.4331434667110443,
-0.4172815680503845,
-0.044425711035728455,
-0.05090663582086563,
-0.06905880570411682,
-0.1800687462091446,
0.15325407683849335,
-0.24177370965480804,
0.20282921195030212,
-0.165145143866539,
-0.4169231057167053,
0.161494642496109,
0.09470944106578827,
0.15453346073627472,
-0.2393752634525299,
-0.2976195514202118,
0.1369989812374115,
0.06999228894710541,
0.11596167087554932,
-0.05540425330400467,
0.2703322470188141,
0.5132503509521484,
0.5763168931007385,
-0.20470649003982544,
0.20865970849990845,
0.12090736627578735,
0.010766897350549698,
0.17763178050518036,
-0.0026645492762327194,
0.11111441999673843,
0.10034865140914917,
-0.00807381421327591,
-0.11552327126264572,
0.1904519945383072,
-0.2601390480995178,
-0.0636977106332779,
-0.24234941601753235,
0.18933099508285522,
-0.20078955590724945,
-0.042860258370637894,
0.07768138498067856,
0.2335369735956192,
-0.28029143810272217,
0.31161433458328247,
0.06655173003673553,
-0.20750536024570465,
-0.20281411707401276,
0.1360836923122406,
-0.07702559232711792,
0.117670938372612,
-0.13013678789138794,
-0.04567050188779831,
-0.3280330002307892,
-0.11805673688650131,
0.5273602604866028,
0.011613761074841022,
-0.16169583797454834,
0.11494700610637665,
0.28329962491989136,
0.08743778616189957,
-0.13256660103797913,
-0.1691453605890274,
-0.09896285831928253,
-0.38166379928588867,
0.1865914911031723,
0.26743531227111816,
0.2412264496088028,
-0.11061081290245056,
0.14454135298728943,
0.11565997451543808,
0.3446522355079651,
0.1922704130411148,
-0.07927462458610535,
0.12988263368606567,
0.19430433213710785,
0.010688770562410355,
0.2934860289096832,
-0.0030793100595474243,
0.3046087622642517,
0.4990064203739166,
-0.07064633071422577,
-0.34248921275138855,
0.32921862602233887,
-0.2922607660293579,
0.49653831124305725,
-0.11308738589286804,
0.14921677112579346,
0.12617582082748413,
-0.3448251187801361,
0.06662285327911377,
0.35031643509864807,
-0.4112817049026489,
-0.003307849168777466,
0.015365848317742348,
-0.1353275626897812,
0.19663572311401367,
0.31048333644866943,
0.05338847637176514,
0.3721376359462738,
0.2042025476694107,
0.018650362268090248,
0.03015403263270855,
-0.17954407632350922,
-0.08556029945611954,
-0.16124390065670013,
-0.17829850316047668,
-0.2557562291622162,
0.1765654981136322,
-0.2424638867378235,
-0.0852348580956459,
-0.14520902931690216,
-0.08678806573152542,
-0.4174177050590515,
0.24484306573867798,
-0.4018440544605255,
-0.25481924414634705,
-0.07837464660406113,
0.27207615971565247,
-0.2720503807067871,
0.15082094073295593,
0.07408325374126434,
0.0892731100320816,
0.046077169477939606,
0.17158809304237366,
-0.3309580981731415,
-0.3067092001438141,
-0.4702953100204468,
-0.1624399572610855,
0.5332533717155457,
0.13992638885974884,
0.05488967150449753,
0.03834910690784454,
-0.001560860313475132,
-0.3136589229106903,
-0.10012377798557281,
0.3807920813560486,
0.0008737929165363312,
-0.09852296113967896,
-0.14017820358276367,
0.2973889708518982,
0.06640472263097763,
-0.3065912127494812,
0.034086305648088455,
-0.3090627193450928,
-0.0541214719414711,
0.1575159877538681,
0.22501158714294434,
-0.012601613067090511,
0.11137764155864716,
-0.09025759249925613,
-0.34352102875709534,
-0.16608302295207977,
-0.1793522983789444,
-0.08402088284492493,
0.10745267570018768,
-0.38856157660484314,
-0.037583623081445694,
0.16723254323005676,
-0.27399006485939026,
-0.12621775269508362,
-0.11906733363866806,
0.115019291639328,
0.18190844357013702,
-0.048788584768772125,
-0.2680831253528595,
0.3679414987564087,
-0.03899076581001282,
0.06916223466396332,
0.021387603133916855,
-0.3876889944076538,
0.21297986805438995,
0.25266462564468384,
-0.032775625586509705,
-0.20180195569992065,
0.11487644910812378,
0.3068699538707733,
-0.09764959663152695,
0.14948080480098724,
-0.005584158003330231,
0.04562660679221153,
-0.2713431119918823,
-0.3473314344882965,
0.5005395412445068,
0.051083795726299286,
0.2984987199306488,
0.13913114368915558,
0.793502688407898,
-0.09140773117542267,
0.41709598898887634,
0.3806068003177643,
-0.050907835364341736,
-0.061621036380529404,
-0.0068955570459365845,
-0.06387164443731308,
0.23875634372234344,
0.017053857445716858,
-0.22867807745933533,
0.5545763373374939,
-0.16084188222885132,
-0.18841178715229034,
-0.3043028712272644,
-0.03009738028049469,
-0.536246657371521,
-0.4509308934211731,
0.1638866811990738,
0.3014620244503021,
0.12659423053264618,
-0.03992875665426254,
0.24649611115455627,
-0.13929517567157745,
-0.3547827899456024,
0.11805802583694458,
0.2957468032836914,
-0.1534210443496704,
-0.0618196576833725,
-0.04515485465526581,
0.08049803227186203,
-0.21428751945495605,
0.39204806089401245,
0.11262957751750946,
0.40064817667007446,
-0.030244288966059685,
-0.06067139282822609,
0.1365615576505661,
0.04211563244462013,
0.6749557256698608,
0.11396660655736923,
0.26687976717948914,
-0.04831864312291145,
0.15171146392822266,
-0.2012030929327011,
-0.33704885840415955,
-0.24024686217308044,
-0.12922132015228271,
0.41470104455947876,
-0.05394349992275238,
-0.413591593503952,
0.005338553339242935,
-0.14689332246780396,
0.09561177343130112,
-0.16251783072948456,
-0.029524940997362137,
-0.1250687688589096,
-0.1867021918296814,
-0.4802520275115967,
0.11601957678794861,
0.15346844494342804,
0.2812904119491577,
0.22325968742370605,
0.2467779666185379,
0.1022338792681694,
-0.022160574793815613,
-0.0066828131675720215,
-0.0260744821280241,
0.11489459872245789,
0.04153343662619591,
-0.390859454870224,
-0.14065468311309814,
0.34130164980888367,
-0.10513436794281006,
0.06297124177217484,
0.5062644481658936,
-0.28610047698020935,
0.011438417248427868,
-0.12813732028007507,
0.22773806750774384,
0.364332914352417,
0.009366713464260101,
0.16435378789901733,
0.08917742222547531,
0.19182859361171722,
-0.16675546765327454,
0.36969926953315735,
0.1991131454706192,
-0.041346002370119095,
-0.3877445459365845,
-0.012874333187937737,
0.4758422076702118,
-0.00736629031598568,
-0.12859109044075012,
0.14806018769741058,
0.08248976618051529,
-0.3054516315460205,
0.46949541568756104,
0.1594967544078827,
1.4028254747390747,
0.07431022822856903,
0.10608678311109543,
0.05827239900827408,
-0.023428097367286682,
0.7709752321243286,
-0.8501476645469666,
0.010229755192995071,
-0.31129515171051025,
0.13366298377513885,
-0.1457691639661789,
0.09927687048912048,
0.24563390016555786,
0.18842433393001556,
-0.1797170490026474,
0.41084766387939453,
0.2099638730287552,
0.5706482529640198,
0.1618007868528366,
0.2777130901813507,
0.15841884911060333,
-0.12245291471481323,
-0.12244594097137451,
-0.037585772573947906,
-0.3394309878349304,
0.2648879289627075,
-0.2823273241519928,
-0.0010853661224246025,
0.00008288770914077759,
-0.42545992136001587,
-0.4824254512786865,
0.17029672861099243,
-0.17449119687080383,
0.16458533704280853,
-0.3101143538951874,
-0.12700240314006805,
0.1680428385734558,
0.014792058616876602,
0.01111476868391037,
0.32381895184516907,
-0.1544264703989029,
0.42991572618484497,
-0.22355052828788757,
-0.2313762903213501,
-0.09460145980119705,
0.168057382106781,
-0.02229568175971508,
-0.1653200089931488,
-0.19680920243263245,
0.413861483335495,
-0.062283407896757126,
-0.3473207354545593,
-0.17391863465309143,
0.019729744642972946,
0.5572714805603027,
0.02665279060602188,
-0.32617202401161194,
-0.06117205321788788,
-0.0020263977348804474,
-0.08700825273990631,
0.047848187386989594,
-0.1802942007780075,
-0.30341532826423645,
-0.12233192473649979,
0.1891365647315979,
-0.14198815822601318,
0.07636987417936325,
0.36871469020843506,
-0.1562957465648651,
-0.52033531665802,
0.5429058074951172,
0.3616916537284851,
-0.18473975360393524,
-0.12301094830036163,
-0.020262308418750763,
-0.32582956552505493,
-0.6497551798820496,
-0.21775729954242706,
-0.07702518999576569,
0.028563201427459717,
-0.16413721442222595,
0.19118307530879974,
0.2515861392021179,
-0.038339413702487946,
0.05100815370678902,
-0.39382877945899963,
0.05179253965616226,
-0.012760818004608154,
-0.27401143312454224,
-0.08350716531276703,
0.1159856989979744,
0.18714480102062225,
-0.009262205101549625,
-0.04473736137151718,
-0.11616378277540207,
-0.022591767832636833,
-0.30628371238708496,
0.1924283653497696,
0.4826489984989166,
0.23265746235847473,
-0.2700318992137909,
-0.013720732182264328,
0.010552344843745232,
0.19743001461029053,
-0.021830692887306213,
-0.0344478003680706,
-0.09086166322231293,
0.26677897572517395,
0.3393404185771942,
-0.035111382603645325,
0.13368260860443115,
-0.1331586241722107,
0.19758006930351257,
-0.15637831389904022,
-0.15285402536392212,
-0.1540418267250061,
-0.045474156737327576,
0.29777950048446655,
0.33608171343803406,
0.2830897271633148,
-0.5487614870071411,
0.21780230104923248,
0.13833774626255035,
0.6532798409461975,
0.005428132135421038,
0.19275479018688202,
0.15590596199035645,
0.05255882441997528,
-0.24534958600997925,
0.09297573566436768,
0.26929357647895813,
0.16055408120155334,
0.10481142997741699,
0.06294716149568558,
-0.1325596421957016,
0.09593865275382996,
-0.12086668610572815,
0.14638112485408783,
-0.38143789768218994,
-0.28132787346839905,
0.6323452591896057,
0.07454603165388107,
-0.15127313137054443,
0.18933488428592682,
0.6089373826980591,
0.049131061881780624,
-0.28401464223861694,
0.12595966458320618,
-0.125348299741745,
-0.28122952580451965,
0.21488533914089203,
0.16087237000465393,
0.25919345021247864,
0.01497623324394226,
0.1351058930158615,
0.09736129641532898,
-0.08754169940948486,
0.2604696750640869,
-0.032611049711704254,
-0.06439487636089325,
0.2623572051525116,
0.6413189172744751,
-0.24147072434425354,
0.1756826788187027,
0.15185588598251343,
0.10701289772987366,
-0.11176282912492752,
-0.22404634952545166,
0.23137600719928741,
0.5097437500953674,
0.11598863452672958,
0.06660477817058563,
-0.14398954808712006,
0.04341352358460426,
0.2388584315776825,
-0.1132747232913971,
-0.4433375597000122,
0.2972142994403839,
-0.15414473414421082,
0.04859747365117073,
-0.2984192967414856,
-0.09291894733905792,
-0.3210145831108093,
0.22612929344177246,
0.14804354310035706,
-0.14043477177619934,
-0.2817440927028656,
0.33208489418029785,
-0.3453845977783203,
0.07394573837518692,
-0.004284702241420746,
0.018835604190826416,
0.03516297787427902,
-0.38156917691230774,
0.07409626245498657,
-0.059379830956459045,
0.09985165297985077,
0.0616394467651844,
0.05159296840429306,
0.40120428800582886,
0.41449522972106934,
-0.39871343970298767,
-0.05378972366452217,
0.03055870160460472,
0.19615884125232697,
0.025729287415742874,
0.09141930937767029,
0.1472981870174408,
0.3724617660045624,
0.13653840124607086,
0.041132353246212006,
-0.10638152062892914,
-0.3492828607559204,
0.2604297995567322,
-0.02335219457745552,
-0.05468610301613808,
-0.2894984185695648,
-0.09831124544143677,
0.01898030936717987,
-0.36979740858078003,
-0.10282649844884872,
-0.4696654677391052,
0.2777041792869568,
0.00039851851761341095,
0.19270575046539307,
0.08354435116052628,
-0.03628568723797798,
-0.03461131826043129,
-0.08329451084136963,
0.081668421626091,
0.3843725025653839,
0.17861725389957428,
-0.2805784046649933,
-0.5300996899604797,
-0.6154993772506714,
0.39561066031455994,
-0.22361651062965393,
-0.2989000380039215,
-0.06406238675117493,
-0.028066102415323257,
0.10253512114286423,
0.2608185410499573,
0.05509807914495468,
0.0836726576089859,
-0.2400369793176651,
0.36801838874816895,
-0.22538477182388306,
-0.28017887473106384,
0.14841002225875854,
0.1170550212264061,
-0.1135999783873558,
-0.3118145167827606,
0.21400049328804016,
-0.03814905136823654,
-0.08435835689306259,
-0.09960000216960907,
-0.29434001445770264,
0.03732847049832344,
-0.40056297183036804,
0.4856732487678528,
0.03470710292458534,
0.38013312220573425,
-0.07103824615478516,
0.11277260631322861,
-0.1277599036693573,
0.07428698241710663,
-0.1226382926106453,
-0.01078186184167862,
-0.11047539114952087,
0.20151996612548828,
0.030901765450835228,
0.21080270409584045,
-0.47018593549728394,
0.3865428566932678,
-0.08253395557403564,
0.19902381300926208,
-0.34015393257141113,
-0.03967352956533432,
-0.19967976212501526,
0.22417572140693665,
-0.04659564420580864,
-0.07788420468568802,
-0.05191142112016678,
0.20633529126644135,
-0.48089009523391724,
-0.10812240093946457,
0.2249010056257248,
-0.581333339214325,
-0.47141462564468384,
-0.041545670479536057,
0.32314056158065796,
-0.31286969780921936,
-0.06189700961112976,
-0.23545724153518677,
0.03536275774240494,
0.1874028891324997,
0.2431432008743286,
-0.1491306573152542,
-0.17975814640522003,
-0.28894615173339844,
-0.13730299472808838,
-0.00809885561466217,
-0.10901741683483124,
0.23299962282180786,
-0.3411544859409332,
0.1005530059337616,
-0.3634811043739319
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Thanks for your help.
I tried to print the "title" of the document inside the` except (mwparserfromhell.parser.ParserError) as e`,the title displayed was : "Campeonato Mundial de futsal de la AMF 2015". (Wikipedia ES) Is it what you were looking for ? | Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 41 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Thanks for your help.
I tried to print the "title" of the document inside the` except (mwparserfromhell.parser.ParserError) as e`,the title displayed was : "Campeonato Mundial de futsal de la AMF 2015". (Wikipedia ES) Is it what you were looking for ? | [
-0.09824028611183167,
-0.14601179957389832,
0.05791483446955681,
0.45700734853744507,
0.03996780514717102,
0.08334831148386002,
-0.24785225093364716,
0.19130869209766388,
0.332987517118454,
0.29417774081230164,
0.25431063771247864,
0.10800530016422272,
0.09529807418584824,
-0.3402060568332672,
-0.16964112222194672,
-0.06795479357242584,
0.3555515706539154,
0.12141767889261246,
0.1624232977628708,
-0.2468806356191635,
-0.050184909254312515,
0.17870083451271057,
-0.3427315950393677,
0.3826019763946533,
-0.16341643035411835,
0.16693443059921265,
0.12315498292446136,
-0.13266000151634216,
-0.14032846689224243,
-0.29930707812309265,
-0.02004990726709366,
-0.20912131667137146,
0.1560903787612915,
0.3652329444885254,
-0.00012790580512955785,
-0.31931185722351074,
0.4868043065071106,
-0.08477963507175446,
-0.14866864681243896,
-0.2189914733171463,
0.015291281044483185,
-0.1522381603717804,
-0.041005976498126984,
-0.40440118312835693,
0.3248377740383148,
0.11539813876152039,
0.33415713906288147,
-0.28099238872528076,
0.120500348508358,
0.21973946690559387,
0.06404609233140945,
0.10662108659744263,
0.38391026854515076,
0.07591778039932251,
0.4806531071662903,
0.07341259717941284,
0.20546969771385193,
-0.06007939204573631,
-0.01687709242105484,
-0.0532563179731369,
0.14912524819374084,
0.20147046446800232,
-0.36598265171051025,
-0.1884923279285431,
-0.16321128606796265,
0.06625419110059738,
0.25955408811569214,
-0.44520312547683716,
0.4108954071998596,
0.1394706815481186,
0.6173773407936096,
-0.11910334974527359,
0.26145896315574646,
0.1654376983642578,
-0.05808615684509277,
0.2580066919326782,
0.3013697862625122,
0.548113226890564,
-0.3672940135002136,
-0.025324556976556778,
0.3877826929092407,
-0.11348976194858551,
-0.13692957162857056,
0.30515265464782715,
-0.2432042807340622,
0.9164060354232788,
0.12523788213729858,
0.31728726625442505,
0.035912491381168365,
0.04807932302355766,
-0.06625469774007797,
-0.2513136863708496,
-0.04936053231358528,
0.33407628536224365,
0.021480154246091843,
-0.025857971981167793,
-0.15118563175201416,
-0.07842012494802475,
0.0011782795190811157,
-0.6255261898040771,
-0.4130977988243103,
0.02999589778482914,
0.12094929814338684,
0.3402906358242035,
0.4541507959365845,
-0.2407005876302719,
0.2941511571407318,
-0.005447789095342159,
-0.07711061835289001,
-0.14972032606601715,
0.004659593105316162,
-0.02584747225046158,
-0.1439838856458664,
0.0026516574434936047,
-0.46914878487586975,
-0.002937445417046547,
0.24612058699131012,
-0.20481710135936737,
0.08656197041273117,
0.35607898235321045,
-0.2949359714984894,
-0.11160701513290405,
-0.2578809857368469,
0.43412351608276367,
-0.0717998594045639,
0.377372145652771,
0.0606103390455246,
-0.03673180192708969,
-0.13950972259044647,
-0.5028151273727417,
-0.01804616115987301,
0.2353699654340744,
-0.32383716106414795,
0.06982150673866272,
-0.23903149366378784,
0.22646188735961914,
0.17223985493183136,
0.19661755859851837,
-0.01100139319896698,
-0.5448352098464966,
-0.04280976951122284,
-0.1836663782596588,
-0.07190381735563278,
0.04728595167398453,
0.4067607522010803,
0.5007111430168152,
0.26805803179740906,
-0.4057278037071228,
-0.05252377316355705,
0.39672455191612244,
-0.37041687965393066,
-0.022261768579483032,
-0.5510877370834351,
0.04797462746500969,
0.042807891964912415,
0.18167650699615479,
-0.5636152625083923,
0.023633446544408798,
-0.06371168047189713,
-0.16770228743553162,
0.21262818574905396,
-0.051871247589588165,
-0.14555300772190094,
-0.031013458967208862,
0.11249997466802597,
0.2195570170879364,
-0.18510574102401733,
0.061585649847984314,
-0.10123807191848755,
-0.15751773118972778,
0.2370680868625641,
-0.03276868537068367,
-0.08646593987941742,
0.6368803977966309,
-0.35057899355888367,
0.5782255530357361,
0.2652646601200104,
-0.40912100672721863,
-0.08828463405370712,
0.007162741385400295,
-0.02757442370057106,
-0.22220748662948608,
0.03403127193450928,
-0.13931578397750854,
0.17055875062942505,
0.008535882458090782,
-0.4780333936214447,
-0.04401320219039917,
0.030570566654205322,
0.18126533925533295,
-0.13811767101287842,
-0.28466176986694336,
0.24031119048595428,
0.08366833627223969,
0.2543247938156128,
-0.08258643001317978,
0.1528433859348297,
0.4838685691356659,
0.6022040843963623,
-0.15351392328739166,
0.14520381391048431,
0.05528418719768524,
0.06347031146287918,
0.214129239320755,
-0.08454035967588425,
0.07010624557733536,
-0.0034422725439071655,
-0.01944410428404808,
0.08263333886861801,
0.19797810912132263,
-0.14654307067394257,
-0.13807427883148193,
-0.13799631595611572,
0.27035555243492126,
-0.12374211847782135,
0.023779939860105515,
0.023258142173290253,
0.21339595317840576,
-0.19865459203720093,
0.3907472789287567,
0.08319254219532013,
-0.2709236741065979,
-0.2775023877620697,
0.09818478673696518,
-0.018414389342069626,
0.19464504718780518,
-0.12727606296539307,
-0.03702777251601219,
-0.3745701313018799,
-0.19184881448745728,
0.4063364565372467,
0.12157395482063293,
-0.152032732963562,
0.02346145547926426,
0.24808481335639954,
0.12266907095909119,
-0.26355278491973877,
-0.2410595566034317,
-0.1296415627002716,
-0.42556923627853394,
0.11462345719337463,
0.2754124701023102,
0.25983914732933044,
-0.12637536227703094,
0.1595701426267624,
0.08010964840650558,
0.28492599725723267,
0.08742818236351013,
-0.1943705826997757,
0.06345336884260178,
0.1280263066291809,
-0.000898405909538269,
0.3822982609272003,
-0.11339031159877777,
0.25366508960723877,
0.4015434682369232,
-0.13220874965190887,
-0.3764730393886566,
0.17883369326591492,
-0.20943838357925415,
0.6232573986053467,
-0.029760893434286118,
0.1618250608444214,
0.15059034526348114,
-0.26789572834968567,
0.009572241455316544,
0.31115081906318665,
-0.525384783744812,
0.12164194136857986,
-0.0011222113389521837,
-0.12084393203258514,
0.35899314284324646,
0.3209598660469055,
0.028089292347431183,
0.4389226734638214,
0.2746991515159607,
-0.05382474511861801,
0.07298644632101059,
-0.2088220715522766,
-0.04728079214692116,
-0.2550530433654785,
-0.0936589241027832,
-0.24958699941635132,
0.13083945214748383,
-0.24616320431232452,
-0.053987011313438416,
-0.16642938554286957,
0.045346200466156006,
-0.32020407915115356,
0.044147443026304245,
-0.40742582082748413,
-0.19823746383190155,
-0.12498931586742401,
0.4425382614135742,
-0.18594388663768768,
0.14495877921581268,
0.007048849016427994,
0.04018525779247284,
-0.046118274331092834,
0.318462073802948,
-0.2622784674167633,
-0.33905717730522156,
-0.468519389629364,
-0.161923348903656,
0.4164782166481018,
0.16190753877162933,
0.13008162379264832,
-0.08165641874074936,
0.06477513164281845,
-0.3107578456401825,
-0.13375729322433472,
0.41584163904190063,
-0.10417038202285767,
-0.0374835804104805,
-0.18439048528671265,
0.16310948133468628,
-0.20271147787570953,
-0.30400359630584717,
0.008299284614622593,
-0.33506956696510315,
-0.08697070926427841,
0.055457063019275665,
0.20228512585163116,
-0.1650484800338745,
0.15634439885616302,
-0.09125825017690659,
-0.31949469447135925,
-0.030515477061271667,
-0.2652244567871094,
-0.17578783631324768,
0.13098901510238647,
-0.5440912842750549,
-0.10378855466842651,
0.22215460240840912,
-0.19578583538532257,
-0.15826791524887085,
-0.2416282445192337,
0.05118623003363609,
0.1386103481054306,
-0.02711818553507328,
-0.1973050832748413,
0.4221194088459015,
0.08985713124275208,
0.1270073503255844,
-0.13427895307540894,
-0.531071662902832,
0.3187633454799652,
0.2872527837753296,
-0.20719771087169647,
-0.26589614152908325,
0.0953805148601532,
0.3380013704299927,
-0.12619902193546295,
0.13008072972297668,
-0.020574694499373436,
-0.020032789558172226,
-0.3060704171657562,
-0.26120173931121826,
0.36595386266708374,
-0.06968823075294495,
0.35687288641929626,
0.0052712298929691315,
0.561131477355957,
0.007797775790095329,
0.3498140573501587,
0.29980599880218506,
-0.055965058505535126,
-0.12493009865283966,
0.04783573001623154,
-0.10558149218559265,
0.2657906413078308,
0.12482791393995285,
-0.23739108443260193,
0.7256160974502563,
-0.24252834916114807,
-0.2778722643852234,
-0.2114526778459549,
-0.10850095748901367,
-0.49278220534324646,
-0.3511238396167755,
0.13406170904636383,
0.42568540573120117,
0.21511304378509521,
-0.15820248425006866,
0.26456940174102783,
-0.046170346438884735,
-0.39703208208084106,
0.04092437028884888,
0.2700926959514618,
-0.1457713544368744,
-0.07522211968898773,
-0.22313357889652252,
-0.006861317902803421,
-0.22167319059371948,
0.27923303842544556,
0.16581036150455475,
0.2630625367164612,
-0.047453321516513824,
0.037865862250328064,
0.09206466376781464,
0.10627490282058716,
0.7170780897140503,
0.07998261600732803,
0.2855757772922516,
0.007633836939930916,
0.10889594256877899,
-0.08556723594665527,
-0.33436352014541626,
-0.32135602831840515,
0.03471175581216812,
0.4114469885826111,
-0.08111049234867096,
-0.38283994793891907,
0.011714763008058071,
-0.11305412650108337,
-0.027652759104967117,
-0.07710270583629608,
-0.15947739779949188,
-0.06318356841802597,
-0.07506553828716278,
-0.48595407605171204,
0.29361292719841003,
0.10522421449422836,
0.18477977812290192,
0.21815459430217743,
0.11675846576690674,
0.06451697647571564,
0.11837489157915115,
0.04048093408346176,
-0.08190314471721649,
0.06524007022380829,
0.15322943031787872,
-0.3297499120235443,
-0.10779684782028198,
0.33821892738342285,
0.11900873482227325,
0.08552016317844391,
0.46680766344070435,
-0.2860802412033081,
0.04675394296646118,
-0.22733813524246216,
0.3570979833602905,
0.3676084876060486,
0.1378227025270462,
0.17189110815525055,
0.28505823016166687,
0.18464308977127075,
-0.20059728622436523,
0.2463534027338028,
0.2104184329509735,
-0.010119959712028503,
-0.45726972818374634,
0.04766014218330383,
0.4190879762172699,
0.043288085609674454,
-0.12917374074459076,
0.08075428009033203,
0.13014329969882965,
-0.39203882217407227,
0.22764651477336884,
0.3042011559009552,
1.3743019104003906,
0.22904761135578156,
0.000054698437452316284,
0.018217658624053,
-0.021204885095357895,
0.777599573135376,
-0.5432028770446777,
-0.04165982827544212,
-0.4133489727973938,
0.22355085611343384,
-0.2628512978553772,
0.07188600301742554,
0.17437075078487396,
0.15499311685562134,
-0.41095876693725586,
0.3315272331237793,
0.1195453554391861,
0.6789619326591492,
0.20074792206287384,
0.23118063807487488,
0.3003857731819153,
-0.0696268230676651,
-0.0471348762512207,
-0.05624860152602196,
-0.299757719039917,
0.164126917719841,
-0.33604696393013,
0.004093927796930075,
0.0726591944694519,
-0.4021903872489929,
-0.5105235576629639,
0.1497730016708374,
-0.1560831218957901,
0.1355958729982376,
-0.24009272456169128,
-0.09243734180927277,
0.33941254019737244,
0.030382070690393448,
0.1530260145664215,
0.3946717083454132,
-0.23607444763183594,
0.3084457516670227,
-0.07907942682504654,
-0.28274863958358765,
-0.08460047841072083,
0.07598739117383957,
-0.16626083850860596,
-0.07624918222427368,
-0.2573320269584656,
0.4024145007133484,
0.04041479527950287,
-0.24378904700279236,
-0.12975241243839264,
-0.017381049692630768,
0.5050373077392578,
-0.017975149676203728,
-0.4633440375328064,
-0.02434024214744568,
0.013553943485021591,
-0.09684023261070251,
0.009935597889125347,
-0.252574622631073,
-0.1889154016971588,
-0.08007987588644028,
0.3576347231864929,
-0.2762168347835541,
0.023976650089025497,
0.38020455837249756,
-0.0508609339594841,
-0.3608957827091217,
0.40538522601127625,
0.4141707420349121,
-0.21107381582260132,
-0.1729273796081543,
-0.13887396454811096,
-0.4548937678337097,
-0.6205147504806519,
-0.24527166783809662,
0.003688831813633442,
0.0751880407333374,
-0.09934478253126144,
0.2278401404619217,
0.26643311977386475,
-0.002821095287799835,
0.06733469665050507,
-0.3757094442844391,
0.13013437390327454,
0.00044260174036026,
-0.2997358739376068,
-0.05415375158190727,
0.15051448345184326,
0.14407038688659668,
-0.07728361338376999,
0.01089248713105917,
-0.10242029279470444,
0.050125956535339355,
-0.345792293548584,
0.1844019591808319,
0.40436291694641113,
0.2660731375217438,
-0.33348605036735535,
-0.15598051249980927,
-0.008240084163844585,
0.30812686681747437,
-0.1110079362988472,
-0.04379037395119667,
-0.14296896755695343,
0.2774115800857544,
0.4025516211986542,
-0.11546821147203445,
0.11430077254772186,
-0.05690425634384155,
0.12810716032981873,
-0.14388157427310944,
-0.14546598494052887,
-0.11521527916193008,
-0.05078926682472229,
0.32008543610572815,
0.2864225506782532,
0.33639222383499146,
-0.6627510786056519,
0.11767686903476715,
0.22168079018592834,
0.597922146320343,
-0.0016472479328513145,
0.25841158628463745,
0.16013900935649872,
0.06296887993812561,
-0.08356611430644989,
0.21122151613235474,
0.32958680391311646,
0.14438092708587646,
0.06235421821475029,
0.016249045729637146,
-0.046371474862098694,
0.1883048266172409,
-0.10923616588115692,
0.10766451060771942,
-0.3437703847885132,
-0.31860780715942383,
0.5859050750732422,
0.07801806926727295,
-0.1367446482181549,
0.07912474125623703,
0.5128093957901001,
0.05033421516418457,
-0.28168103098869324,
0.1353643387556076,
-0.01926424726843834,
-0.3054709732532501,
0.14436186850070953,
0.16004979610443115,
0.3883189558982849,
-0.008089005947113037,
0.09768229722976685,
0.04279732331633568,
-0.21450966596603394,
0.34972959756851196,
0.03314407542347908,
0.11038751900196075,
0.25398728251457214,
0.4191574454307556,
-0.009226292371749878,
0.030662015080451965,
0.18909180164337158,
0.21958190202713013,
-0.1321517527103424,
-0.11681094765663147,
0.15060178935527802,
0.4852173328399658,
0.14170314371585846,
-0.03645157814025879,
-0.14658349752426147,
-0.27299800515174866,
0.2765251696109772,
-0.10701005160808563,
-0.4260046184062958,
0.26823318004608154,
-0.20227742195129395,
0.05063115060329437,
-0.27390164136886597,
-0.11676164716482162,
-0.166304349899292,
0.29340147972106934,
0.13809989392757416,
-0.20001046359539032,
-0.34350115060806274,
0.2851372957229614,
-0.3189728260040283,
-0.020351214334368706,
-0.07664018869400024,
-0.006300680339336395,
-0.04492165893316269,
-0.45505112409591675,
0.1171482652425766,
-0.179494246840477,
0.09010884910821915,
-0.11993861198425293,
0.2348063439130783,
0.3847103416919708,
0.4226663112640381,
-0.43578284978866577,
0.02633017674088478,
-0.04640593007206917,
0.22079278528690338,
0.12110298871994019,
0.07871668040752411,
0.2410825937986374,
0.24353279173374176,
0.09523957967758179,
0.03502315282821655,
-0.07255185395479202,
-0.3141312003135681,
0.38126105070114136,
-0.029578298330307007,
0.058446768671274185,
-0.3081597089767456,
0.007968107238411903,
0.19743403792381287,
-0.22843113541603088,
-0.14964792132377625,
-0.5025534629821777,
0.21571651101112366,
0.15537318587303162,
0.13634634017944336,
0.08662355691194534,
0.05856757611036301,
-0.04317285120487213,
-0.04269253835082054,
0.12410750985145569,
0.34791281819343567,
0.28893914818763733,
-0.2943771183490753,
-0.4787542223930359,
-0.5232977867126465,
0.4851525127887726,
-0.14595842361450195,
-0.16788585484027863,
0.026609651744365692,
-0.09690874814987183,
0.14349421858787537,
0.3562695384025574,
0.035325147211551666,
0.03650685399770737,
-0.34789061546325684,
0.31064796447753906,
-0.14911505579948425,
-0.18096764385700226,
0.15369176864624023,
0.07748439908027649,
-0.13197745382785797,
-0.23655197024345398,
0.17630279064178467,
-0.2174261510372162,
-0.09638401120901108,
-0.27864307165145874,
-0.1299523264169693,
-0.12763676047325134,
-0.16476020216941833,
0.5894803404808044,
0.020112810656428337,
0.48738545179367065,
-0.1468152105808258,
0.15158694982528687,
0.11994436383247375,
0.11681091785430908,
-0.08407796919345856,
0.16338585317134857,
-0.02409353479743004,
0.19273193180561066,
-0.020526401698589325,
0.1695745438337326,
-0.36051470041275024,
0.24144528806209564,
-0.02042023092508316,
0.21536655724048615,
-0.41553038358688354,
-0.09289500117301941,
-0.17697733640670776,
0.027434468269348145,
-0.09587753564119339,
-0.029680736362934113,
0.012035787105560303,
0.23437486588954926,
-0.3720818758010864,
0.0004327334463596344,
0.27896541357040405,
-0.5013764500617981,
-0.3355749845504761,
-0.19071698188781738,
0.2618007957935333,
-0.14889606833457947,
-0.17623260617256165,
-0.21847254037857056,
0.04822147637605667,
0.26318636536598206,
0.18115851283073425,
-0.2186216562986374,
-0.14422358572483063,
-0.23119471967220306,
-0.1701049506664276,
-0.047491107136011124,
0.003345206379890442,
0.12157373130321503,
-0.4107506573200226,
0.06297160685062408,
-0.4289707541465759
] |
https://github.com/huggingface/datasets/issues/321 | ERROR:root:mwparserfromhell | Thanks a lot @Shiro-LK !
I was able to reproduce the issue. It comes from [this table on wikipedia](https://es.wikipedia.org/wiki/Campeonato_Mundial_de_futsal_de_la_AMF_2015#Clasificados) that can't be parsed.
The file in which the problem occurs comes from the wikipedia dumps, and it can be downloaded [here](https://dumps.wikimedia.org/eswiki/20200501/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2)
Parsing the file this way raises the parsing issue:
```python
import mwparserfromhell as parser
from tqdm.auto import tqdm
import bz2
import six
import logging
import codecs
import xml.etree.cElementTree as etree
filepath = "path/to/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2"
def _extract_content(filepath):
"""Extracts article content from a single WikiMedia XML file."""
logging.info("generating examples from = %s", filepath)
with open(filepath, "rb") as f:
f = bz2.BZ2File(filename=f)
if six.PY3:
# Workaround due to:
# https://github.com/tensorflow/tensorflow/issues/33563
utf_f = codecs.getreader("utf-8")(f)
else:
utf_f = f
# To clear root, to free-up more memory than just `elem.clear()`.
context = etree.iterparse(utf_f, events=("end",))
context = iter(context)
unused_event, root = next(context)
for unused_event, elem in tqdm(context, total=949087):
if not elem.tag.endswith("page"):
continue
namespace = elem.tag[:-4]
title = elem.find("./{0}title".format(namespace)).text
ns = elem.find("./{0}ns".format(namespace)).text
id_ = elem.find("./{0}id".format(namespace)).text
# Filter pages that are not in the "main" namespace.
if ns != "0":
root.clear()
continue
raw_content = elem.find("./{0}revision/{0}text".format(namespace)).text
root.clear()
if "Campeonato Mundial de futsal de la AMF 2015" in title:
yield (id_, title, raw_content)
for id_, title, raw_content in _extract_content(filepath):
wikicode = parser.parse(raw_content)
```
The copied the raw content that can't be parsed [here](https://pastebin.com/raw/ZbmevLyH).
The minimal code to reproduce is:
```python
import mwparserfromhell as parser
import requests
raw_content = requests.get("https://pastebin.com/raw/ZbmevLyH").content.decode("utf-8")
wikicode = parser.parse(raw_content)
```
I will create an issue on mwparserfromhell's repo to see if we can fix that
| Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
| 248 | ERROR:root:mwparserfromhell
Hi,
I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ).
`ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.`
The code I have use was :
`dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
Thanks a lot @Shiro-LK !
I was able to reproduce the issue. It comes from [this table on wikipedia](https://es.wikipedia.org/wiki/Campeonato_Mundial_de_futsal_de_la_AMF_2015#Clasificados) that can't be parsed.
The file in which the problem occurs comes from the wikipedia dumps, and it can be downloaded [here](https://dumps.wikimedia.org/eswiki/20200501/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2)
Parsing the file this way raises the parsing issue:
```python
import mwparserfromhell as parser
from tqdm.auto import tqdm
import bz2
import six
import logging
import codecs
import xml.etree.cElementTree as etree
filepath = "path/to/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2"
def _extract_content(filepath):
"""Extracts article content from a single WikiMedia XML file."""
logging.info("generating examples from = %s", filepath)
with open(filepath, "rb") as f:
f = bz2.BZ2File(filename=f)
if six.PY3:
# Workaround due to:
# https://github.com/tensorflow/tensorflow/issues/33563
utf_f = codecs.getreader("utf-8")(f)
else:
utf_f = f
# To clear root, to free-up more memory than just `elem.clear()`.
context = etree.iterparse(utf_f, events=("end",))
context = iter(context)
unused_event, root = next(context)
for unused_event, elem in tqdm(context, total=949087):
if not elem.tag.endswith("page"):
continue
namespace = elem.tag[:-4]
title = elem.find("./{0}title".format(namespace)).text
ns = elem.find("./{0}ns".format(namespace)).text
id_ = elem.find("./{0}id".format(namespace)).text
# Filter pages that are not in the "main" namespace.
if ns != "0":
root.clear()
continue
raw_content = elem.find("./{0}revision/{0}text".format(namespace)).text
root.clear()
if "Campeonato Mundial de futsal de la AMF 2015" in title:
yield (id_, title, raw_content)
for id_, title, raw_content in _extract_content(filepath):
wikicode = parser.parse(raw_content)
```
The copied the raw content that can't be parsed [here](https://pastebin.com/raw/ZbmevLyH).
The minimal code to reproduce is:
```python
import mwparserfromhell as parser
import requests
raw_content = requests.get("https://pastebin.com/raw/ZbmevLyH").content.decode("utf-8")
wikicode = parser.parse(raw_content)
```
I will create an issue on mwparserfromhell's repo to see if we can fix that
| [
-0.10873906314373016,
-0.26876887679100037,
0.05885462090373039,
0.3744998574256897,
0.06803154945373535,
0.05851117521524429,
-0.09784810245037079,
0.407232403755188,
0.2762865126132965,
0.2615221440792084,
0.16486357152462006,
0.16331417858600616,
0.06970023363828659,
-0.4300817549228668,
-0.1707363873720169,
-0.042685702443122864,
0.22128626704216003,
0.11823611706495285,
0.05900849401950836,
-0.10140831023454666,
-0.08594638109207153,
0.1587134152650833,
-0.3476283550262451,
0.2824128568172455,
-0.32690414786338806,
0.11481185257434845,
0.15203110873699188,
-0.06561563163995743,
-0.08894290775060654,
-0.2003444880247116,
-0.0028275717049837112,
-0.20129525661468506,
0.23792725801467896,
0.4786590039730072,
-0.0001259801647393033,
-0.041269488632678986,
0.30499500036239624,
-0.09365792572498322,
0.00996706634759903,
-0.23593176901340485,
0.03365984559059143,
-0.1631215214729309,
-0.11595077812671661,
-0.3689020574092865,
0.24812790751457214,
0.20718422532081604,
0.1943383812904358,
-0.18664348125457764,
0.40954142808914185,
0.24381059408187866,
0.054466765373945236,
0.16391822695732117,
0.26021116971969604,
0.09128502011299133,
0.5147399306297302,
-0.053879499435424805,
-0.0065107159316539764,
0.007900881581008434,
0.09300500154495239,
-0.10259364545345306,
0.1022951677441597,
0.24389730393886566,
-0.42066138982772827,
-0.07171280682086945,
-0.13775044679641724,
0.10387802869081497,
0.44660815596580505,
-0.5326790809631348,
0.4791569411754608,
0.3168761730194092,
0.3135971128940582,
-0.022694505751132965,
0.19832418859004974,
0.10353576391935349,
-0.13768762350082397,
0.10461212694644928,
0.31151461601257324,
0.5089532136917114,
-0.4895593225955963,
0.09532663226127625,
0.44127947092056274,
-0.06034639850258827,
-0.2098185271024704,
0.27328336238861084,
-0.33799731731414795,
0.8441175222396851,
0.053851306438446045,
0.19331106543540955,
-0.02518458291888237,
-0.03692448139190674,
0.019328536465764046,
-0.22091072797775269,
0.14139048755168915,
0.37872397899627686,
-0.051787201315164566,
-0.009133346378803253,
-0.03432012349367142,
-0.39730799198150635,
-0.021723901852965355,
-0.6584093570709229,
-0.35007789731025696,
0.18164727091789246,
0.050004418939352036,
0.2907329797744751,
0.3454235792160034,
-0.3378630578517914,
0.15257923305034637,
0.035260751843452454,
0.032170459628105164,
0.02924160286784172,
-0.12716898322105408,
0.03678543493151665,
-0.2031410187482834,
-0.06741085648536682,
-0.5065862536430359,
0.0622970350086689,
0.2397126704454422,
-0.07039366662502289,
-0.053274303674697876,
0.38910526037216187,
-0.20073994994163513,
0.020777225494384766,
-0.157801553606987,
0.5316449999809265,
-0.06916523724794388,
0.41299518942832947,
0.15430285036563873,
0.08519461750984192,
-0.14685648679733276,
-0.5985724925994873,
0.05266297981142998,
0.12287862598896027,
-0.03972293436527252,
0.013453366234898567,
-0.11450500786304474,
0.11655418574810028,
0.21619904041290283,
0.2504260241985321,
-0.03260619938373566,
-0.5398547053337097,
-0.05034305900335312,
-0.3519895672798157,
0.05674497410655022,
0.1298067271709442,
0.4478539824485779,
0.3495011627674103,
0.21508370339870453,
-0.41133785247802734,
-0.02199769765138626,
0.4195791184902191,
-0.4311138093471527,
-0.1687890589237213,
-0.4756814241409302,
0.052194882184267044,
0.03557213023304939,
0.13921737670898438,
-0.5501324534416199,
0.11586755514144897,
0.09920736402273178,
-0.105562224984169,
-0.035838909447193146,
-0.19666913151741028,
-0.2580607831478119,
-0.06328678131103516,
0.19141484797000885,
0.11817193776369095,
-0.14227601885795593,
0.12672726809978485,
-0.05996238440275192,
0.0571594201028347,
0.41259145736694336,
0.17932139337062836,
-0.1630660742521286,
0.7019716501235962,
-0.26708313822746277,
0.7228684425354004,
0.17450377345085144,
-0.2736833095550537,
-0.07193467766046524,
0.03379497677087784,
0.04283009469509125,
0.007124742493033409,
-0.10016817599534988,
-0.2217157483100891,
0.3694819509983063,
-0.08163406699895859,
-0.18426388502120972,
0.11090049892663956,
-0.003875596448779106,
0.25987935066223145,
-0.21990075707435608,
-0.21373750269412994,
0.3384661078453064,
0.015582386404275894,
0.2996581196784973,
-0.21944940090179443,
0.021885208785533905,
0.497041791677475,
0.5048383474349976,
-0.27367904782295227,
0.129759281873703,
0.08268886804580688,
0.15014882385730743,
0.1439255177974701,
-0.10939466208219528,
-0.10136578977108002,
-0.09069373458623886,
0.004549454897642136,
0.06584743410348892,
0.3201470375061035,
-0.26150089502334595,
-0.15889671444892883,
-0.12521806359291077,
0.23522885143756866,
-0.20038647949695587,
0.05343981832265854,
0.088251493871212,
-0.05687539279460907,
-0.2928083837032318,
0.34784457087516785,
-0.04865080118179321,
-0.4844493567943573,
-0.3517450988292694,
0.1733432114124298,
0.16469286382198334,
0.2952853739261627,
-0.21908201277256012,
-0.07931535691022873,
-0.33755388855934143,
-0.09903252869844437,
0.4453214108943939,
-0.06105371192097664,
-0.052989356219768524,
-0.05618942528963089,
0.2835121750831604,
0.11209326237440109,
-0.39469069242477417,
-0.14282183349132538,
0.05444353073835373,
-0.2703912854194641,
0.011027291417121887,
0.23991939425468445,
0.2501269280910492,
-0.14884313941001892,
0.2306794822216034,
0.22867685556411743,
0.33250901103019714,
0.08250746130943298,
-0.17617177963256836,
0.11447306722402573,
0.2624150216579437,
0.009354956448078156,
0.397270530462265,
-0.12827607989311218,
0.15555277466773987,
0.43826377391815186,
-0.5117707848548889,
-0.33619245886802673,
0.08791689574718475,
-0.054540060460567474,
0.5132363438606262,
0.05086623504757881,
0.22477909922599792,
0.09001365303993225,
-0.18700572848320007,
-0.04012871906161308,
0.22988206148147583,
-0.32109391689300537,
0.10839240252971649,
-0.12201093137264252,
0.005768276751041412,
0.35935765504837036,
0.11244437098503113,
0.035849276930093765,
0.5103653073310852,
0.21139025688171387,
0.07219178974628448,
0.16692551970481873,
-0.13204547762870789,
0.0987081527709961,
-0.18851220607757568,
-0.035233523696660995,
-0.08125261962413788,
0.20751966536045074,
-0.36981627345085144,
0.027748705819249153,
-0.3147500157356262,
0.07860361784696579,
-0.19187083840370178,
-0.032362911850214005,
-0.32203003764152527,
-0.208915114402771,
-0.06294599920511246,
0.4096321761608124,
-0.27188271284103394,
0.04198876768350601,
-0.006462892517447472,
-0.1180269867181778,
0.021587269380688667,
0.2971603572368622,
-0.23700253665447235,
-0.30155685544013977,
-0.37402963638305664,
-0.15839388966560364,
0.577991783618927,
0.05351056903600693,
-0.05125003308057785,
-0.05166773498058319,
-0.21618102490901947,
-0.35149142146110535,
-0.39767664670944214,
0.4286087453365326,
-0.1134406328201294,
0.006005844101309776,
-0.10025928914546967,
0.31804704666137695,
-0.21116648614406586,
-0.4990904629230499,
0.1148444339632988,
-0.2589312493801117,
-0.08329824358224869,
0.16712161898612976,
0.07927323877811432,
-0.23072408139705658,
0.05193045362830162,
-0.17461833357810974,
-0.14007753133773804,
-0.09658172726631165,
-0.2825164794921875,
-0.12978558242321014,
0.18237949907779694,
-0.34877854585647583,
-0.07085642218589783,
0.17962539196014404,
-0.33425888419151306,
-0.1362028270959854,
-0.24766741693019867,
0.018389496952295303,
0.28721073269844055,
-0.13294164836406708,
-0.3237062692642212,
0.4956245720386505,
0.02692457288503647,
0.34183600544929504,
0.05664863437414169,
-0.40305662155151367,
0.22679151594638824,
0.23140519857406616,
0.025004949420690536,
-0.1748466044664383,
0.04610757529735565,
0.21272750198841095,
-0.08478733897209167,
0.1835104078054428,
0.05059240013360977,
0.0972646176815033,
-0.3360315263271332,
-0.19244295358657837,
0.28313276171684265,
-0.09030146151781082,
0.5137996673583984,
0.25957241654396057,
0.677840530872345,
-0.13127247989177704,
0.22779366374015808,
0.19737021625041962,
-0.14057712256908417,
-0.18992628157138824,
0.09494582563638687,
-0.07613922655582428,
0.11434470862150192,
-0.10036155581474304,
-0.17148534953594208,
0.5857163667678833,
-0.21737420558929443,
-0.23466913402080536,
-0.23782843351364136,
-0.05680125579237938,
-0.5688068866729736,
-0.5239392518997192,
0.1828358918428421,
0.3403622508049011,
0.37617236375808716,
0.017499785870313644,
0.21387946605682373,
-0.09207049012184143,
-0.3685363829135895,
-0.015546455979347229,
0.26189130544662476,
-0.12444158643484116,
-0.12311671674251556,
-0.21951311826705933,
-0.05455603823065758,
-0.22477245330810547,
0.2450663149356842,
0.22234120965003967,
0.5213930606842041,
0.1216328889131546,
0.03733465075492859,
0.19147765636444092,
0.08040840178728104,
0.4079052805900574,
0.1229572668671608,
0.26164644956588745,
-0.05483439937233925,
-0.1593901664018631,
-0.3506844937801361,
-0.2592156231403351,
-0.3739875257015228,
-0.009043152444064617,
0.5089584589004517,
-0.033651240170001984,
-0.39297646284103394,
-0.06885451078414917,
-0.0405445471405983,
-0.02197434939444065,
-0.1007985919713974,
0.037389498203992844,
-0.09037458151578903,
-0.35820522904396057,
-0.35505685210227966,
0.2206854522228241,
0.32075777649879456,
0.259936660528183,
0.23186540603637695,
0.11075359582901001,
0.020226582884788513,
0.09407786279916763,
0.167993426322937,
0.12956441938877106,
0.021895915269851685,
0.10685427486896515,
-0.13355061411857605,
-0.3471147119998932,
0.046348780393600464,
0.07719005644321442,
0.11252081394195557,
0.5233774185180664,
-0.46554499864578247,
-0.034226566553115845,
-0.15878547728061676,
0.27623802423477173,
0.3710378408432007,
-0.009257122874259949,
0.2874037027359009,
0.2022305727005005,
0.20216040313243866,
-0.05595202371478081,
0.2551433742046356,
0.33623501658439636,
0.06272126734256744,
-0.24582470953464508,
0.10517239570617676,
0.38957834243774414,
-0.008027615956962109,
-0.024140939116477966,
-0.001579325646162033,
0.076726034283638,
-0.26919907331466675,
0.18932420015335083,
0.3515012562274933,
1.2506072521209717,
0.2659696340560913,
0.01698926091194153,
0.2763574421405792,
0.044212281703948975,
0.6086798906326294,
-0.6462401151657104,
0.10948504507541656,
-0.2827800512313843,
0.06142387166619301,
-0.20590519905090332,
0.13298575580120087,
0.0934017151594162,
0.14195877313613892,
-0.28864526748657227,
0.20398777723312378,
0.10328914225101471,
0.5259095430374146,
0.2789723873138428,
0.18035006523132324,
0.21756073832511902,
-0.08302383124828339,
-0.15296512842178345,
-0.041428662836551666,
-0.2636483311653137,
0.00029130280017852783,
-0.2863672375679016,
-0.02157248929142952,
0.09853620827198029,
-0.37792670726776123,
-0.4726230502128601,
0.17672517895698547,
-0.35717886686325073,
0.2739379405975342,
-0.03837629035115242,
0.010659441351890564,
0.3592596650123596,
0.009949397295713425,
-0.03580706566572189,
0.3343279957771301,
-0.1344674676656723,
0.23182129859924316,
-0.1697702407836914,
-0.3552461266517639,
0.012997387908399105,
0.033836957067251205,
-0.013248009607195854,
-0.2199781835079193,
-0.2343152016401291,
0.4540521800518036,
0.016178574413061142,
-0.23451267182826996,
-0.11093728989362717,
0.09643541276454926,
0.2640199661254883,
0.1134127676486969,
-0.4126060903072357,
0.06841671466827393,
0.002014942467212677,
-0.042878154665231705,
0.023739149793982506,
-0.22108136117458344,
-0.30891895294189453,
0.04558395966887474,
0.19145867228507996,
-0.2989695072174072,
0.15112581849098206,
0.35348913073539734,
-0.007973697036504745,
-0.3089982867240906,
0.5539169311523438,
0.4214867949485779,
-0.2652532160282135,
-0.12008547782897949,
-0.1469396948814392,
-0.599524199962616,
-0.5139874815940857,
-0.12962718307971954,
-0.15178057551383972,
0.07531827688217163,
-0.0027991319075226784,
0.2987009286880493,
0.33605343103408813,
-0.1601724922657013,
-0.014523699879646301,
-0.26965880393981934,
0.19624194502830505,
-0.01442120224237442,
-0.3134302496910095,
-0.10974156856536865,
0.082967109978199,
0.38196471333503723,
-0.09908182919025421,
0.08594317734241486,
-0.11873571574687958,
0.22754386067390442,
-0.21631339192390442,
0.22357943654060364,
0.3537525236606598,
0.08806870877742767,
-0.32637977600097656,
-0.028430884703993797,
-0.02197689190506935,
0.3297533392906189,
-0.007791796699166298,
-0.03664500266313553,
-0.23280926048755646,
0.24006104469299316,
0.32930895686149597,
-0.07574928551912308,
0.13625170290470123,
-0.02705405093729496,
0.0028643421828746796,
-0.1123143807053566,
-0.03952152281999588,
-0.04608443006873131,
-0.05719555914402008,
0.36606237292289734,
0.2320517748594284,
0.3750462532043457,
-0.5652003884315491,
0.10876011848449707,
0.13379213213920593,
0.5745214819908142,
0.02786671742796898,
0.22878000140190125,
0.23061130940914154,
0.006488695740699768,
-0.17364667356014252,
0.14142927527427673,
0.09748771041631699,
-0.029303938150405884,
0.34017717838287354,
0.00678253173828125,
0.006757743656635284,
0.1846042275428772,
-0.24827632308006287,
0.2205827832221985,
-0.2990244925022125,
-0.2741921842098236,
0.522812008857727,
0.0742761492729187,
-0.21246987581253052,
0.08749089390039444,
0.4620799124240875,
0.10626333206892014,
-0.25628969073295593,
0.2262156754732132,
0.03154377266764641,
-0.26095059514045715,
0.1855684071779251,
0.18762916326522827,
0.2801574468612671,
-0.12009452283382416,
0.2026830017566681,
0.01649288833141327,
-0.25984883308410645,
0.3014812767505646,
-0.12158771604299545,
-0.07238587737083435,
0.26371651887893677,
0.33681654930114746,
-0.041626013815402985,
0.05213170871138573,
0.09754276275634766,
0.0931922048330307,
0.07755181193351746,
-0.1573626846075058,
0.024424728006124496,
0.42140308022499084,
-0.025688111782073975,
-0.0009937435388565063,
-0.1551656723022461,
-0.20603182911872864,
0.2579575479030609,
-0.07230351865291595,
-0.4449806213378906,
0.3604535162448883,
-0.2784140706062317,
-0.0036360817030072212,
-0.2545233964920044,
-0.10360194742679596,
-0.23357659578323364,
0.13759036362171173,
0.1638425886631012,
-0.01784176379442215,
-0.367465615272522,
0.3523713946342468,
-0.3744666576385498,
0.14559407532215118,
-0.052946560084819794,
0.003199223428964615,
-0.019785568118095398,
-0.39901426434516907,
0.16688117384910583,
-0.02433207631111145,
-0.03978902846574783,
-0.1453588306903839,
0.13076744973659515,
0.49515509605407715,
0.5052855014801025,
-0.4910773038864136,
0.030638329684734344,
-0.03136708214879036,
0.2223319411277771,
0.034113653004169464,
0.1110147088766098,
0.242364764213562,
0.4140428304672241,
0.15236212313175201,
0.024261726066470146,
-0.117047980427742,
-0.3675268292427063,
0.3683358430862427,
0.17414161562919617,
0.1025610864162445,
-0.2432245910167694,
-0.04279132932424545,
0.1485028862953186,
-0.13466322422027588,
-0.18214881420135498,
-0.37635356187820435,
0.14674417674541473,
0.250217467546463,
0.03448532521724701,
0.13111713528633118,
0.023634422570466995,
-0.029009122401475906,
-0.0190008245408535,
0.12559284269809723,
0.31325963139533997,
0.0382285974919796,
-0.1958373785018921,
-0.3837853670120239,
-0.6240749359130859,
0.46085014939308167,
-0.20403027534484863,
-0.36619773507118225,
0.14764727652072906,
0.20495428144931793,
0.12406104058027267,
0.38532793521881104,
0.08209265023469925,
-0.24005883932113647,
-0.32100725173950195,
0.2978587746620178,
-0.19868816435337067,
-0.05574600026011467,
0.037449851632118225,
-0.07877331227064133,
-0.06855674833059311,
-0.3496170938014984,
0.158684641122818,
-0.10431819409132004,
-0.11142142117023468,
-0.2411879152059555,
-0.028007417917251587,
-0.15530191361904144,
-0.15150213241577148,
0.3971237242221832,
0.10634798556566238,
0.39479199051856995,
-0.17075768113136292,
0.08381674438714981,
-0.07414650917053223,
0.12129858136177063,
-0.10708790272474289,
0.36082905530929565,
0.05441955476999283,
0.20733843743801117,
0.028747981414198875,
0.02335970103740692,
-0.357351690530777,
0.18849870562553406,
-0.01168464869260788,
0.037980712950229645,
-0.4710637331008911,
0.042690642178058624,
-0.22210508584976196,
0.18873800337314606,
0.017725735902786255,
0.06374179571866989,
-0.03541478514671326,
0.24577270448207855,
-0.429884135723114,
-0.25229912996292114,
0.1784219890832901,
-0.5421523451805115,
-0.3952220678329468,
-0.30521920323371887,
0.2859864830970764,
-0.2357291877269745,
0.0401080921292305,
-0.2903587520122528,
-0.11322338134050369,
0.25770658254623413,
0.020261650905013084,
-0.2819972336292267,
-0.10803484916687012,
-0.14238287508487701,
-0.2690134644508362,
-0.12814629077911377,
-0.08447670936584473,
0.041132859885692596,
-0.4689805507659912,
-0.08422929048538208,
-0.42503243684768677
] |
https://github.com/huggingface/datasets/issues/320 | Blog Authorship Corpus, Non Matching Splits Sizes Error, nlp viewer | This dataset seems to have a decoding problem that results in inconsistencies in the number of generated examples.
See #215.
That's why we end up with a `NonMatchingSplitsSizesError `. | Selecting `blog_authorship_corpus` in the nlp viewer throws the following error:
```
NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 172, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp-viewer/run.py", line 132, in get
builder_instance.download_and_prepare()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
```
@srush @lhoestq | 29 | Blog Authorship Corpus, Non Matching Splits Sizes Error, nlp viewer
Selecting `blog_authorship_corpus` in the nlp viewer throws the following error:
```
NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 172, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/streamlit/lib/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp-viewer/run.py", line 132, in get
builder_instance.download_and_prepare()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
```
@srush @lhoestq
This dataset seems to have a decoding problem that results in inconsistencies in the number of generated examples.
See #215.
That's why we end up with a `NonMatchingSplitsSizesError `. | [
-0.2341371774673462,
0.17466333508491516,
0.052877094596624374,
0.22421365976333618,
-0.05463162064552307,
-0.027442924678325653,
0.037543609738349915,
0.5022205710411072,
-0.21980707347393036,
0.19498050212860107,
-0.08825467526912689,
-0.07330644130706787,
-0.06501474976539612,
-0.021802270784974098,
-0.14845602214336395,
-0.2776801884174347,
-0.26651671528816223,
0.33684414625167847,
0.0040052905678749084,
0.050570398569107056,
-0.13302583992481232,
0.39724665880203247,
-0.2592676877975464,
-0.028847262263298035,
-0.05600985884666443,
-0.0945768803358078,
0.11967578530311584,
0.0992409810423851,
-0.19943879544734955,
-0.2846442461013794,
-0.032057974487543106,
-0.22765320539474487,
0.0017968453466892242,
0.24054676294326782,
-0.00011832002201117575,
-0.0521315261721611,
0.3046363890171051,
-0.2610532343387604,
0.173902690410614,
-0.22337664663791656,
0.08046630769968033,
-0.09241742640733719,
-0.15359456837177277,
-0.23802927136421204,
-0.09689906984567642,
0.14243707060813904,
0.2361234724521637,
0.0534072071313858,
0.2056048959493637,
0.48598337173461914,
0.18640637397766113,
0.21000657975673676,
-0.019357841461896896,
-0.08229824155569077,
0.03103276714682579,
0.06911052763462067,
-0.2774811089038849,
-0.11392037570476532,
-0.066181480884552,
-0.35156476497650146,
-0.10206914693117142,
0.49202021956443787,
-0.3369565010070801,
0.06849713623523712,
0.05901316925883293,
-0.16675730049610138,
0.4507966637611389,
-0.3006083369255066,
0.39667198061943054,
0.11319499462842941,
0.3707205057144165,
-0.08089112490415573,
0.12842951714992523,
-0.4112164080142975,
-0.06088005006313324,
0.0957355871796608,
0.15108445286750793,
0.5192421078681946,
-0.15503323078155518,
-0.139921173453331,
-0.30925172567367554,
0.16472965478897095,
-0.16080501675605774,
-0.07766449451446533,
0.032822102308273315,
0.4027681052684784,
0.08672980964183807,
0.04052571952342987,
0.03176889196038246,
-0.05718813091516495,
0.22191177308559418,
-0.04345007985830307,
-0.05888647958636284,
0.21491840481758118,
-0.16245296597480774,
-0.25322917103767395,
0.07671406120061874,
0.06387649476528168,
0.0667608305811882,
0.29607075452804565,
0.43020111322402954,
-0.2747681438922882,
0.3439984619617462,
-0.07743246108293533,
0.23654432594776154,
0.1986514776945114,
-0.08943649381399155,
0.7137349247932434,
-0.1469515711069107,
0.1481848955154419,
0.06431561708450317,
0.032758139073848724,
0.05727798119187355,
-0.4348088800907135,
-0.2825945317745209,
0.19444236159324646,
-0.012861358933150768,
-0.24236811697483063,
-0.40296486020088196,
0.08943826705217361,
-0.23522025346755981,
0.0019080010242760181,
0.04373064264655113,
0.35381782054901123,
-0.13846290111541748,
0.3725382387638092,
-0.13214293122291565,
0.17018793523311615,
-0.49587687849998474,
-0.029940489679574966,
-0.255332350730896,
0.1997327357530594,
-0.2340427041053772,
-0.11520541459321976,
0.10648965835571289,
-0.23413655161857605,
0.4890710711479187,
-0.33745986223220825,
0.26250016689300537,
-0.18432126939296722,
0.06679501384496689,
-0.17198467254638672,
-0.05329378694295883,
0.15532158315181732,
0.004640955477952957,
-0.05835745483636856,
0.051119543612003326,
-0.07627669721841812,
-0.2232854962348938,
0.08237474411725998,
0.18804943561553955,
-0.43311282992362976,
0.07299046963453293,
0.2012609988451004,
-0.14271989464759827,
-0.008584760129451752,
0.35553741455078125,
0.20013019442558289,
0.5317855477333069,
-0.29407331347465515,
-0.06162741035223007,
-0.3155486583709717,
-0.1892232596874237,
-0.13236939907073975,
-0.04782829433679581,
0.3900067210197449,
0.2923545837402344,
-0.1882687509059906,
0.04796312376856804,
0.20607741177082062,
0.6760655045509338,
0.2515401542186737,
0.29331153631210327,
-0.09340859204530716,
-0.07032090425491333,
0.592335045337677,
0.29924994707107544,
-0.36816680431365967,
-0.35014551877975464,
0.3049791157245636,
0.08142749965190887,
0.11009850353002548,
0.45893099904060364,
-0.022685887292027473,
0.36949554085731506,
-0.28301146626472473,
-0.1694013625383377,
0.3530234098434448,
-0.3465040922164917,
0.24411699175834656,
-0.37571802735328674,
-0.18677560985088348,
0.14226645231246948,
0.047358009964227676,
0.5175167322158813,
-0.28101494908332825,
0.07195194810628891,
0.4198393225669861,
0.2445141077041626,
-0.09585811197757721,
0.12449232488870621,
0.03264753520488739,
-0.3409702479839325,
-0.045334137976169586,
0.13113780319690704,
-0.17358309030532837,
0.057859841734170914,
0.06845113635063171,
-0.5445131063461304,
0.09090793132781982,
0.3199632465839386,
-0.07166881859302521,
-0.4699738025665283,
-0.2672966718673706,
-0.0123819001019001,
-0.14569438993930817,
0.07862503826618195,
0.0600820854306221,
0.21711070835590363,
0.016241654753684998,
0.03957012668251991,
0.01581275649368763,
-0.022792167961597443,
0.12866836786270142,
-0.4914090037345886,
0.19547705352306366,
-0.4119071662425995,
-0.28829604387283325,
0.42369458079338074,
0.42411181330680847,
0.16368718445301056,
0.10434724390506744,
-0.09152407199144363,
0.2704004943370819,
-0.30403339862823486,
0.5338997840881348,
-0.23379653692245483,
-0.11912332475185394,
0.20681263506412506,
-0.19635769724845886,
0.23903033137321472,
0.2573571503162384,
0.03977135196328163,
-0.197604238986969,
0.18388348817825317,
0.22307826578617096,
-0.220798060297966,
0.09890478104352951,
-0.06058049947023392,
0.03264034539461136,
-0.06232501566410065,
-0.21718162298202515,
0.10069341957569122,
-0.45735251903533936,
0.6223398447036743,
-0.014643978327512741,
-0.3653046786785126,
-0.03280680626630783,
-0.28995582461357117,
0.11509497463703156,
0.24119390547275543,
0.20790521800518036,
-0.025372080504894257,
0.03635385259985924,
-0.1495160460472107,
-0.05345774069428444,
0.002160731703042984,
0.14828912913799286,
0.38446903228759766,
0.13266974687576294,
0.16902950406074524,
0.07480848580598831,
-0.05153559520840645,
-0.4746571481227875,
0.2813277542591095,
-0.08641558885574341,
0.03233407437801361,
0.6150081753730774,
0.06905892491340637,
0.060059234499931335,
-0.3489791750907898,
0.21189409494400024,
0.1659850776195526,
0.06982576847076416,
-0.21406829357147217,
-0.19296792149543762,
-0.20776808261871338,
-0.6258752346038818,
-0.1261747181415558,
-0.08944521844387054,
-0.10520854592323303,
-0.21063533425331116,
0.29589229822158813,
0.36217358708381653,
-0.22836002707481384,
0.16975857317447662,
-0.16693075001239777,
0.09539216756820679,
-0.12574495375156403,
0.27005618810653687,
0.05922200530767441,
-0.24293799698352814,
-0.12077485769987106,
0.13398295640945435,
0.23802433907985687,
0.138468936085701,
0.2744055986404419,
-0.2108687162399292,
-0.090606190264225,
0.010529628023505211,
-0.3887268602848053,
-0.02872101217508316,
-0.06317402422428131,
-0.19517208635807037,
0.08044569194316864,
-0.2456764131784439,
0.4262953996658325,
-0.09867564588785172,
0.07600494474172592,
-0.05354190617799759,
-0.34607669711112976,
0.11995585262775421,
0.08066917955875397,
0.0065332623198628426,
-0.23805373907089233,
-0.21552085876464844,
-0.06290452927350998,
-0.6166684627532959,
-0.09156933426856995,
0.4423663020133972,
0.32544708251953125,
0.1410060077905655,
-0.203293114900589,
-0.21820947527885437,
-0.061207789927721024,
0.32527223229408264,
-0.11649811267852783,
0.33353903889656067,
0.3101629912853241,
-0.17657186090946198,
-0.24337764084339142,
-0.04590435326099396,
-0.04286295920610428,
0.21999448537826538,
-0.05980513244867325,
-0.38796257972717285,
0.007303216494619846,
-0.09938140958547592,
-0.5655636191368103,
-0.08690991997718811,
-0.15790602564811707,
0.42195188999176025,
-0.02001567929983139,
0.01865103654563427,
-0.046603381633758545,
-0.07528647780418396,
-0.05930984765291214,
0.2329152226448059,
0.459104984998703,
-0.2379421591758728,
0.2790832221508026,
0.24471136927604675,
0.44177478551864624,
0.6506690382957458,
0.21295127272605896,
0.057482533156871796,
0.22502288222312927,
-0.13280554115772247,
0.11630363017320633,
-0.11532170325517654,
0.8192631602287292,
0.13288496434688568,
0.010455682873725891,
0.5705660581588745,
0.05489955469965935,
-0.3037188947200775,
-0.11086352169513702,
-0.11354666948318481,
-0.18975383043289185,
-0.13299357891082764,
0.21267209947109222,
-0.38503333926200867,
0.302239328622818,
0.07844620943069458,
0.2738232910633087,
-0.19900651276111603,
-0.47061020135879517,
-0.2083243876695633,
0.03807370364665985,
0.04733669012784958,
0.14689697325229645,
0.10818764567375183,
0.19748277962207794,
-0.7274338006973267,
0.33553868532180786,
0.19948282837867737,
-0.12154035270214081,
-0.24274609982967377,
-0.15550605952739716,
0.031780436635017395,
-0.012624582275748253,
0.09506772458553314,
-0.347949743270874,
-0.1723843663930893,
-0.11015920341014862,
0.13786691427230835,
-0.35103756189346313,
-0.1615859866142273,
0.14324013888835907,
0.293398916721344,
0.21129950881004333,
0.022389017045497894,
-0.22872251272201538,
0.13699978590011597,
0.43545547127723694,
-0.15944693982601166,
-0.09510642290115356,
-0.13166335225105286,
-0.21108922362327576,
-0.3161676228046417,
-0.12808960676193237,
0.036899857223033905,
0.11889488250017166,
0.3483351469039917,
0.04199029505252838,
-0.024343110620975494,
0.12671436369419098,
-0.23767831921577454,
0.28307369351387024,
0.14910456538200378,
0.10821744054555893,
-0.05035358667373657,
0.09615001082420349,
0.1413791924715042,
0.20731161534786224,
-0.0036896616220474243,
0.4415610432624817,
0.2652777433395386,
-0.08428147435188293,
-0.03974109888076782,
-0.07082200795412064,
-0.019124500453472137,
0.45736151933670044,
0.26470378041267395,
0.0330892838537693,
-0.02546876296401024,
0.2242768257856369,
-0.20588243007659912,
-0.04686574265360832,
0.1015859842300415,
-0.19149552285671234,
-0.21391072869300842,
-0.264880895614624,
0.23916348814964294,
0.07085859775543213,
0.003873571753501892,
0.0017736777663230896,
-0.34945905208587646,
-0.28078147768974304,
0.09608742594718933,
0.19220414757728577,
0.9271714091300964,
0.4109410047531128,
-0.21128857135772705,
0.0063023641705513,
-0.23884397745132446,
0.3870348632335663,
-0.16617509722709656,
0.46932101249694824,
-0.44356000423431396,
-0.07929392158985138,
-0.043873753398656845,
-0.1080550104379654,
0.06062091514468193,
-0.07723815739154816,
-0.321948766708374,
0.24580736458301544,
0.16259260475635529,
0.011275682598352432,
-0.11459386348724365,
0.07121367007493973,
-0.36711031198501587,
-0.07815095782279968,
0.12061186879873276,
0.0460897833108902,
-0.4622892141342163,
0.46622923016548157,
0.03744489699602127,
-0.0012145759537816048,
-0.052267447113990784,
-0.16252368688583374,
-0.5065691471099854,
0.31882473826408386,
-0.24637816846370697,
-0.12971948087215424,
0.11937364935874939,
-0.33741509914398193,
0.288928747177124,
0.34101489186286926,
0.2015179991722107,
-0.207804873585701,
-0.08502920717000961,
0.2851285934448242,
0.044311314821243286,
-0.23244160413742065,
0.1442330777645111,
0.23614898324012756,
0.19825610518455505,
-0.2572910487651825,
0.06066351383924484,
-0.02268153429031372,
0.03510884568095207,
-0.06610773503780365,
-0.19295695424079895,
-0.06787081062793732,
0.20318040251731873,
-0.12450604140758514,
-0.1689312905073166,
-0.031893759965896606,
-0.18665145337581635,
-0.010347284376621246,
0.06589474529027939,
-0.3126453757286072,
-0.23565979301929474,
0.1632262021303177,
-0.20364992320537567,
-0.18212532997131348,
-0.05146028473973274,
0.22832897305488586,
0.3686072826385498,
0.015529952943325043,
0.4415663182735443,
0.0983654111623764,
-0.22561626136302948,
-0.18477675318717957,
-0.36936572194099426,
-0.4083605706691742,
-0.3803113102912903,
0.18821676075458527,
-0.15732461214065552,
-0.34534648060798645,
0.3613976240158081,
0.2624169886112213,
0.16825953125953674,
0.2915206253528595,
-0.11401081085205078,
-0.25065284967422485,
0.06129942089319229,
0.08309805393218994,
-0.37080109119415283,
0.0073023512959480286,
-0.14382076263427734,
0.5562905073165894,
0.0027526281774044037,
0.42660266160964966,
-0.23464341461658478,
-0.10494005680084229,
-0.42375367879867554,
0.3038516044616699,
0.09879088401794434,
-0.30493104457855225,
-0.21352815628051758,
0.12621746957302094,
-0.004756631329655647,
0.34958088397979736,
-0.2498691976070404,
-0.09643100202083588,
-0.08772619068622589,
0.15994246304035187,
0.17590653896331787,
-0.09471330046653748,
-0.0970180481672287,
0.12314371764659882,
-0.21387167274951935,
-0.0877322182059288,
-0.019445136189460754,
0.03723900020122528,
-0.025632165372371674,
0.04342452809214592,
-0.2768424451351166,
-0.1410394310951233,
0.03072056919336319,
0.20410005748271942,
-0.37666186690330505,
0.28217190504074097,
-0.10753127187490463,
0.24199464917182922,
0.10071764886379242,
-0.09408904612064362,
-0.16425561904907227,
0.037945181131362915,
-0.028482459485530853,
-0.07100468128919601,
0.28441035747528076,
-0.03435879200696945,
0.16983935236930847,
0.2508729100227356,
0.14836810529232025,
0.21956023573875427,
0.1022339016199112,
-0.15014536678791046,
0.08489423990249634,
0.17767377197742462,
-0.4109087586402893,
0.1344010829925537,
-0.12647679448127747,
0.11097004264593124,
0.050156477838754654,
0.28035470843315125,
0.15366071462631226,
-0.04771141707897186,
-0.12302593886852264,
0.2995510697364807,
0.26382115483283997,
-0.23145045340061188,
0.2281983345746994,
0.25886648893356323,
0.10390876233577728,
-0.0019343681633472443,
0.34970125555992126,
-0.18867768347263336,
0.2835477292537689,
-0.026531413197517395,
0.0613955482840538,
0.4275459051132202,
0.006078759208321571,
0.23998871445655823,
0.0765468031167984,
-0.15973950922489166,
-0.36720746755599976,
0.35413452982902527,
0.21383818984031677,
0.38023489713668823,
0.10981174558401108,
0.401388555765152,
-0.3140047788619995,
-0.016199402511119843,
-0.3187520503997803,
0.11519841849803925,
-0.051793523132801056,
0.04643029347062111,
-0.646608829498291,
-0.14583460986614227,
-0.22961601614952087,
-0.09039895236492157,
-0.028212394565343857,
0.36587274074554443,
0.22165168821811676,
-0.037402428686618805,
-0.2877688407897949,
-0.36700889468193054,
-0.03559253364801407,
-0.014013763517141342,
0.30709758400917053,
-0.3762361407279968,
0.2843186557292938,
0.1654316782951355,
-0.039042457938194275,
0.10799060761928558,
0.7267917394638062,
0.55131995677948,
0.245612233877182,
-0.2686265707015991,
-0.36997291445732117,
0.08821171522140503,
-0.054516568779945374,
0.09366802126169205,
0.3815400302410126,
0.3370874524116516,
0.016214724630117416,
0.243761345744133,
0.014536939561367035,
-0.17594683170318604,
0.21819165349006653,
0.19122730195522308,
-0.1670648604631424,
0.03721883147954941,
0.4260976016521454,
-0.2845410704612732,
-0.04900936409831047,
-0.17148293554782867,
-0.01055462658405304,
-0.5934746265411377,
0.01141100563108921,
0.09975971281528473,
-0.16362003982067108,
0.2351568341255188,
-0.19105751812458038,
0.0395667739212513,
0.09596054255962372,
0.380350261926651,
0.29554328322410583,
-0.4618963897228241,
-0.14537976682186127,
-0.23330268263816833,
-0.13042107224464417,
0.3442293405532837,
-0.36239752173423767,
-0.18692991137504578,
-0.034396830946207047,
0.39303645491600037,
-0.24020257592201233,
0.009620409458875656,
0.020727455615997314,
0.43498432636260986,
0.045980531722307205,
0.2090398669242859,
-0.16404609382152557,
0.10657629370689392,
-0.1200253814458847,
-0.35613197088241577,
0.07618147134780884,
-0.17052777111530304,
0.09346887469291687,
-0.2003175914287567,
0.03827836364507675,
0.03616154566407204,
0.05567748099565506,
0.278798907995224,
0.37135133147239685,
-0.29581379890441895,
0.29408493638038635,
0.28994664549827576,
-0.05920196324586868,
0.05874239653348923,
-0.14659647643566132,
-0.3278460204601288,
-0.4173358380794525,
0.14475980401039124,
0.1439017355442047,
0.5233877897262573,
-0.24401791393756866,
0.28750520944595337,
-0.09433235228061676,
0.2279624342918396,
-0.0677674263715744,
0.021341318264603615,
-0.13857947289943695,
-0.05848228186368942,
-0.15808433294296265,
0.09575439244508743,
0.23693904280662537,
0.3930020034313202,
0.04053120315074921,
-0.046965375542640686,
-0.2543901205062866,
-0.6759302616119385,
0.33114203810691833,
-0.2184518575668335,
-0.18531855940818787,
0.19430367648601532,
0.06945721805095673,
0.27643194794654846,
0.06435679644346237,
-0.6895738244056702,
0.09468723088502884,
0.050229400396347046,
-0.07154346257448196,
0.22511914372444153,
-0.05903174355626106,
-0.09836237132549286,
-0.3830571472644806,
0.017596207559108734,
-0.4123784899711609,
0.27215376496315,
-0.284187912940979,
0.23505860567092896,
-0.029007885605096817
] |
https://github.com/huggingface/datasets/issues/319 | Nested sequences with dicts | Oh yes, this is a backward compatibility feature with tensorflow_dataset in which a `Sequence` or `dict` is converted in a `dict` of `lists`, unfortunately it is not very intuitive, see here: https://github.com/huggingface/nlp/blob/master/src/nlp/features.py#L409
To avoid this behavior, you can just define the list in the feature with a simple list or a tuple (which is also simpler to write).
In your case, the features could be as follow:
``` python
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": [[{
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
}]],
...
}),
...
``` | Am pretty much finished [adding a dataset](https://github.com/ghomasHudson/nlp/blob/DocRED/datasets/docred/docred.py) for [DocRED](https://github.com/thunlp/DocRED), but am getting an error when trying to add a nested `nlp.features.sequence(nlp.features.sequence({key:value,...}))`.
The original data is in this format:
```python
{
'title': "Title of wiki page",
'vertexSet': [
[
{ 'name': "mention_name",
'sent_id': "mention in which sentence",
'pos': ["postion of mention in a sentence"],
'type': "NER_type"},
{another mention}
],
[another entity]
]
...
}
```
So to represent this I've attempted to write:
```
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": nlp.features.Sequence(nlp.features.Sequence({
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
})),
...
}),
...
```
This is giving me the error:
```
pyarrow.lib.ArrowTypeError: Could not convert [{'pos': [[0,2], [2,4], [3,5]], "type": ["ORG", "ORG", "ORG"], "name": ["Lark Force", "Lark Force", "Lark Force", "sent_id": [0, 3, 4]}..... with type list: was not a dict, tuple, or recognized null value for conversion to struct type
```
Do we expect the pyarrow stuff to break when doing this deeper nesting? I've checked that it still works when you do `nlp.features.Sequence(nlp.features.Sequence(nlp.Value("string"))` or `nlp.features.Sequence({key:value,...})` just not nested sequences with a dict.
If it's not possible, I can always convert it to a shallower structure. I'd rather not change the DocRED authors' structure if I don't have to though. | 88 | Nested sequences with dicts
Am pretty much finished [adding a dataset](https://github.com/ghomasHudson/nlp/blob/DocRED/datasets/docred/docred.py) for [DocRED](https://github.com/thunlp/DocRED), but am getting an error when trying to add a nested `nlp.features.sequence(nlp.features.sequence({key:value,...}))`.
The original data is in this format:
```python
{
'title': "Title of wiki page",
'vertexSet': [
[
{ 'name': "mention_name",
'sent_id': "mention in which sentence",
'pos': ["postion of mention in a sentence"],
'type': "NER_type"},
{another mention}
],
[another entity]
]
...
}
```
So to represent this I've attempted to write:
```
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": nlp.features.Sequence(nlp.features.Sequence({
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
})),
...
}),
...
```
This is giving me the error:
```
pyarrow.lib.ArrowTypeError: Could not convert [{'pos': [[0,2], [2,4], [3,5]], "type": ["ORG", "ORG", "ORG"], "name": ["Lark Force", "Lark Force", "Lark Force", "sent_id": [0, 3, 4]}..... with type list: was not a dict, tuple, or recognized null value for conversion to struct type
```
Do we expect the pyarrow stuff to break when doing this deeper nesting? I've checked that it still works when you do `nlp.features.Sequence(nlp.features.Sequence(nlp.Value("string"))` or `nlp.features.Sequence({key:value,...})` just not nested sequences with a dict.
If it's not possible, I can always convert it to a shallower structure. I'd rather not change the DocRED authors' structure if I don't have to though.
Oh yes, this is a backward compatibility feature with tensorflow_dataset in which a `Sequence` or `dict` is converted in a `dict` of `lists`, unfortunately it is not very intuitive, see here: https://github.com/huggingface/nlp/blob/master/src/nlp/features.py#L409
To avoid this behavior, you can just define the list in the feature with a simple list or a tuple (which is also simpler to write).
In your case, the features could be as follow:
``` python
...
features=nlp.Features({
"title": nlp.Value("string"),
"vertexSet": [[{
"name": nlp.Value("string"),
"sent_id": nlp.Value("int32"),
"pos": nlp.features.Sequence(nlp.Value("int32")),
"type": nlp.Value("string"),
}]],
...
}),
...
``` | [
0.11176198720932007,
0.06674276292324066,
-0.07140688598155975,
-0.02101542055606842,
-0.10916881263256073,
-0.04101848974823952,
0.19878651201725006,
0.16972878575325012,
-0.0871766209602356,
-0.4004121422767639,
0.28796863555908203,
0.3965301215648651,
-0.08983372896909714,
0.20380546152591705,
-0.0607244148850441,
-0.24757897853851318,
0.3430912494659424,
0.12896938621997833,
0.3750726580619812,
0.25908952951431274,
-0.20450247824192047,
0.3637642562389374,
-0.28152358531951904,
0.14946907758712769,
-0.24816566705703735,
-0.3701811134815216,
-0.36375388503074646,
0.16042008996009827,
-0.05953826755285263,
-0.7306872010231018,
0.3275497853755951,
0.2191217541694641,
0.14507900178432465,
0.12764033675193787,
-0.00011868731962749735,
-0.05218742787837982,
0.5560508370399475,
-0.07500351220369339,
-0.1546785980463028,
-0.06947183609008789,
0.007484864443540573,
-0.30739888548851013,
0.29666635394096375,
-0.24974575638771057,
0.02158428356051445,
-0.408825159072876,
-0.05748278647661209,
-0.06132406368851662,
0.3271241784095764,
0.2150968760251999,
0.1544763147830963,
0.06881549209356308,
0.33993127942085266,
0.02711152657866478,
0.40798044204711914,
0.32010337710380554,
-0.14077626168727875,
0.16631393134593964,
0.4056241810321808,
-0.3216342329978943,
0.020934559404850006,
-0.09789344668388367,
-0.1353195458650589,
-0.27773740887641907,
0.3606651723384857,
0.22689789533615112,
0.0491366907954216,
-0.18413159251213074,
-0.5392253994941711,
-0.022311031818389893,
0.12288908660411835,
-0.24567225575447083,
-0.13840128481388092,
-0.420034259557724,
0.0036536497063934803,
-0.44053441286087036,
-0.007978595793247223,
-0.1407088339328766,
-0.27337560057640076,
-0.09639814496040344,
0.2459770292043686,
-0.2561303973197937,
-0.27790606021881104,
0.3951287865638733,
0.14473214745521545,
0.23107188940048218,
0.1184958964586258,
0.0992593914270401,
-0.13296687602996826,
-0.4175083041191101,
0.1348034292459488,
-0.2447817623615265,
0.027878036722540855,
0.10050801932811737,
0.00987137109041214,
-0.18780985474586487,
-0.02699221670627594,
-0.18873760104179382,
0.18253925442695618,
0.015205910429358482,
0.1940026879310608,
-0.07376306504011154,
-0.02383900247514248,
0.043031416833400726,
0.34565863013267517,
0.1764029711484909,
0.01086048036813736,
-0.17157579958438873,
-0.06673428416252136,
0.3115685284137726,
0.07907326519489288,
0.08705603331327438,
-0.11880840361118317,
0.013293378986418247,
-0.22463743388652802,
0.2144705355167389,
0.388327419757843,
0.04196307435631752,
-0.1750754415988922,
0.06247659772634506,
-0.3113238513469696,
0.06045127660036087,
-0.011960594914853573,
0.09201355278491974,
0.07000082731246948,
0.2033081352710724,
0.10664646327495575,
0.39501094818115234,
0.06660392880439758,
0.0462862104177475,
-0.08070147037506104,
0.007730436511337757,
-0.10413502156734467,
0.06578027456998825,
-0.08922219276428223,
0.1868101954460144,
0.17131316661834717,
-0.11152661591768265,
0.13407763838768005,
-0.009343430399894714,
-0.2380867600440979,
-0.05477869510650635,
0.24777483940124512,
-0.16157765686511993,
-0.2585231363773346,
0.15316736698150635,
0.17023031413555145,
-0.4171903729438782,
-0.04090053588151932,
0.10304133594036102,
-0.12276443094015121,
-0.2476048469543457,
-0.3633396029472351,
0.06230238825082779,
-0.31662195920944214,
-0.08549399673938751,
-0.14101848006248474,
0.3202434480190277,
0.5429493188858032,
-0.1632450670003891,
-0.18146660923957825,
-0.19929368793964386,
-0.2664180099964142,
-0.3964804708957672,
-0.07496288418769836,
0.1141207292675972,
-0.22132264077663422,
0.12710581719875336,
-0.340287983417511,
0.16479350626468658,
0.14235982298851013,
0.16910959780216217,
-0.05938003584742546,
0.32827043533325195,
-0.2519993185997009,
0.74484783411026,
0.2469041645526886,
-0.154253751039505,
-0.055940546095371246,
0.14896084368228912,
-0.03510487824678421,
0.13763339817523956,
-0.05523218959569931,
0.07226425409317017,
0.18729540705680847,
-0.3772202730178833,
0.2196921706199646,
-0.0028168391436338425,
0.04239870607852936,
-0.3566221296787262,
-0.1894051730632782,
-0.016820892691612244,
0.4003438949584961,
-0.22666321694850922,
-0.35183411836624146,
-0.18621522188186646,
-0.1101842150092125,
0.14655166864395142,
0.12165476381778717,
-0.1506715714931488,
0.2942144572734833,
0.32813888788223267,
0.09828300774097443,
0.030644234269857407,
-0.022191908210515976,
-0.18013900518417358,
-0.6082836389541626,
-0.07783910632133484,
-0.45642632246017456,
0.26550430059432983,
-0.515653669834137,
-0.138106107711792,
-0.2986244261264801,
0.29171791672706604,
-0.29393601417541504,
-0.08744437992572784,
0.16573387384414673,
0.04579490050673485,
-0.08148877322673798,
-0.11216513812541962,
-0.047152869403362274,
-0.2919532358646393,
0.14651338756084442,
-0.004920061212033033,
-0.2575119137763977,
0.4828615188598633,
-0.0993683859705925,
-0.3981582820415497,
0.34747883677482605,
0.6011686325073242,
0.2996062636375427,
0.010808941908180714,
0.22033053636550903,
0.08396488428115845,
0.061401356011629105,
-0.2706189751625061,
-0.2162836790084839,
-0.1576792150735855,
0.16633357107639313,
-0.5653815269470215,
-0.05508048087358475,
0.2663569450378418,
-0.015745190903544426,
-0.3664386570453644,
-0.10523458570241928,
0.3159481883049011,
-0.03462589904665947,
0.4077742099761963,
-0.17333990335464478,
0.27057895064353943,
-0.03487086296081543,
0.13746099174022675,
-0.1708570420742035,
-0.3330336809158325,
-0.10484011471271515,
0.42038166522979736,
-0.31212082505226135,
-0.14430244266986847,
-0.16926684975624084,
0.47934335470199585,
0.35342925786972046,
0.12255819141864777,
0.046126995235681534,
0.15546056628227234,
-0.07942590862512589,
-0.2559577524662018,
0.18026742339134216,
-0.2929849624633789,
0.20552143454551697,
0.22461295127868652,
0.14536355435848236,
0.08072281628847122,
-0.20612545311450958,
-0.05723945423960686,
0.1440230906009674,
-0.02371186763048172,
0.3502282500267029,
0.20818477869033813,
0.37140607833862305,
-0.19972845911979675,
-0.07407084852457047,
-0.41082799434661865,
-0.01808277890086174,
0.11002078652381897,
-0.2863144278526306,
0.028012150898575783,
-0.1382291465997696,
-0.4561452269554138,
-0.017968174070119858,
-0.49065324664115906,
-0.1596061885356903,
-0.5329727530479431,
-0.030523590743541718,
0.19395940005779266,
-0.10031138360500336,
0.2125139683485031,
0.18253806233406067,
-0.23480813205242157,
0.23441599309444427,
-0.3206109404563904,
-0.22406381368637085,
-0.4881901443004608,
-0.24423697590827942,
0.13112741708755493,
0.15155872702598572,
0.04881012439727783,
0.06721621006727219,
0.2802770435810089,
-0.07386325299739838,
-0.1561637669801712,
-0.5505622625350952,
0.03042461723089218,
-0.48661184310913086,
0.09574244171380997,
0.4155682325363159,
0.24726086854934692,
0.12928840517997742,
-0.4227388799190521,
0.3008902668952942,
0.5386329293251038,
-0.37859097123146057,
-0.05005723237991333,
-0.044227901846170425,
-0.015310912393033504,
-0.09045718610286713,
-0.06814347952604294,
-0.07465921342372894,
-0.27399003505706787,
0.3004772961139679,
0.3360033929347992,
0.15567149221897125,
0.1452363282442093,
-0.08393675088882446,
0.06322412192821503,
0.1560753583908081,
-0.2299247682094574,
0.07306504994630814,
0.4016875624656677,
0.3970458209514618,
-0.2707505524158478,
-0.32897329330444336,
0.006612692028284073,
-0.4844295382499695,
0.02957111969590187,
-0.11770471930503845,
-0.14825168251991272,
0.10777441412210464,
0.14828477799892426,
0.425753653049469,
0.34256917238235474,
-0.33543819189071655,
0.3598235249519348,
0.4960222840309143,
-0.05224300175905228,
-0.08664663136005402,
-0.034139614552259445,
0.2497747540473938,
0.15862053632736206,
0.2001064419746399,
0.24615192413330078,
0.08825509250164032,
0.1381201148033142,
0.36822354793548584,
0.4500824213027954,
-0.04553169384598732,
0.41033095121383667,
-0.16358958184719086,
-0.02446979656815529,
-0.2582240104675293,
0.007021550089120865,
-0.3686869442462921,
-0.19822698831558228,
0.0572780966758728,
0.028959348797798157,
-0.1232876405119896,
-0.3941148817539215,
0.0881604254245758,
0.046653565019369125,
0.24597108364105225,
-0.1358116865158081,
0.11189568787813187,
-0.5101596117019653,
0.29231685400009155,
-0.13879451155662537,
-0.3272835612297058,
-0.06655709445476532,
-0.4218161702156067,
-0.078346386551857,
-0.17945094406604767,
0.07772788405418396,
-0.023720432072877884,
-0.3296522796154022,
-0.0878598764538765,
-0.4834098219871521,
0.21098345518112183,
0.3980478048324585,
0.19805634021759033,
-0.053075917065143585,
-0.10226820409297943,
-0.1097588837146759,
-0.22386707365512848,
0.1809992790222168,
-0.10997215658426285,
-0.1893150359392166,
0.485535591840744,
0.11836546659469604,
-0.42148759961128235,
-0.03384667634963989,
-0.08967150747776031,
0.1774788498878479,
0.09129967540502548,
0.4397974908351898,
-0.621168851852417,
0.0020221753511577845,
0.07137443870306015,
0.09220963716506958,
-0.06770667433738708,
-0.07420003414154053,
-0.07351449131965637,
-0.2639947235584259,
-0.17199178040027618,
0.008207671344280243,
0.30257347226142883,
0.46190109848976135,
0.012172908522188663,
-0.280429482460022,
-0.08993414789438248,
-0.16198500990867615,
0.03625188767910004,
-0.10583895444869995,
0.258902907371521,
-0.12458501011133194,
-0.0514228492975235,
0.013485750183463097,
0.282263845205307,
0.13860450685024261,
0.23928675055503845,
0.32204726338386536,
0.14256206154823303,
-0.119469054043293,
-0.07974947988986969,
0.3786871135234833,
0.1363573670387268,
0.017159156501293182,
0.2974937856197357,
0.15624286234378815,
-0.15464861690998077,
-0.19926835596561432,
-0.05428681895136833,
0.3101434111595154,
-0.16846787929534912,
-0.31622400879859924,
-0.05628783255815506,
0.2843530476093292,
0.012522522360086441,
-0.08016173541545868,
-0.038885392248630524,
0.02941214293241501,
-0.42317864298820496,
0.48968756198883057,
0.22763678431510925,
0.958782434463501,
0.1433468759059906,
0.33342334628105164,
0.701171875,
0.10090965032577515,
0.5256800651550293,
0.12354767322540283,
0.02781561389565468,
-0.3482503592967987,
0.33121466636657715,
-0.09383080899715424,
-0.1970285326242447,
0.03375190496444702,
0.15117985010147095,
-0.3989124894142151,
0.20762601494789124,
-0.04394104331731796,
-0.009775113314390182,
0.09696357697248459,
0.07736009359359741,
0.44063305854797363,
-0.039881471544504166,
-0.1946098804473877,
0.03434658795595169,
-0.04217094928026199,
-0.06412030756473541,
-0.029214411973953247,
-0.5158136487007141,
-0.4526408612728119,
-0.1940000057220459,
-0.1262551248073578,
0.07312198728322983,
0.00021936232224106789,
0.12773090600967407,
0.10205478966236115,
-0.33561816811561584,
0.1802399605512619,
0.5281009674072266,
-0.018788285553455353,
-0.347212016582489,
-0.20473821461200714,
-0.27658677101135254,
0.046075157821178436,
-0.3823002874851227,
0.0796256959438324,
-0.2330659180879593,
0.17021790146827698,
-0.13899223506450653,
0.0583871528506279,
0.06679855287075043,
-0.10251859575510025,
-0.11710723489522934,
-0.12455658614635468,
0.1298498660326004,
-0.21002493798732758,
-0.277728796005249,
-0.24269020557403564,
0.2711504399776459,
-0.2643267810344696,
-0.0053211599588394165,
0.06884525716304779,
0.0013983845710754395,
-0.2149066925048828,
0.08824358135461807,
0.0066772401332855225,
0.20093199610710144,
0.10780839622020721,
0.1676502227783203,
0.39025869965553284,
0.24985086917877197,
0.6531686782836914,
0.35359999537467957,
-0.2699028551578522,
-0.037076063454151154,
-0.200820654630661,
0.13566355407238007,
-0.2612202763557434,
0.2731475234031677,
0.00956636667251587,
-0.10795097053050995,
-0.18512475490570068,
0.5661987662315369,
-0.03590680658817291,
0.32721903920173645,
-0.029483938589692116,
-0.2730294466018677,
-0.42893773317337036,
0.3417746424674988,
-0.33761653304100037,
0.13729730248451233,
-0.21050035953521729,
0.34178391098976135,
-0.02004397287964821,
-0.0866839662194252,
-0.23198029398918152,
-0.033898092806339264,
-0.2695266604423523,
0.2831496298313141,
0.0727759301662445,
-0.24186554551124573,
0.14327433705329895,
0.1637406051158905,
0.11349211633205414,
0.13771648705005646,
0.009141072630882263,
-0.11896168440580368,
-0.09468021988868713,
0.14830166101455688,
0.24621185660362244,
-0.014638056978583336,
0.16111817955970764,
0.10371614992618561,
0.0072387270629405975,
-0.09347816556692123,
-0.16617244482040405,
-0.20707300305366516,
-0.0978030115365982,
0.26167917251586914,
0.25900551676750183,
0.060882411897182465,
-0.16139021515846252,
0.17214947938919067,
-0.07495802640914917,
0.2543964982032776,
-0.1327090710401535,
0.20221294462680817,
-0.13597039878368378,
-0.06581474095582962,
0.055912673473358154,
0.2971169650554657,
-0.08773569762706757,
-0.0780252069234848,
0.4186025857925415,
-0.08177945017814636,
-0.4433650076389313,
-0.27198317646980286,
0.3999475836753845,
0.26811423897743225,
-0.1009979322552681,
-0.08307825773954391,
-0.11218024790287018,
0.07475968450307846,
-0.3760124444961548,
-0.007778900675475597,
0.2860894501209259,
0.032382313162088394,
0.020430605858564377,
0.21590924263000488,
0.3058033883571625,
-0.04048809036612511,
-0.21485213935375214,
-0.04018349200487137,
0.00605438556522131,
-0.011284276843070984,
0.029572904109954834,
0.09083439409732819,
0.14685899019241333,
0.06438817828893661,
0.19960565865039825,
0.00614493153989315,
0.3186853528022766,
0.3405148386955261,
0.2255379855632782,
0.07470744848251343,
0.7099602222442627,
-0.02060466632246971,
0.4179551303386688,
0.062439609318971634,
-0.0959220826625824,
0.23015932738780975,
0.8155215978622437,
-0.08012741059064865,
0.2281215339899063,
0.21098238229751587,
0.40517428517341614,
-0.1539326310157776,
0.2298148274421692,
0.44922876358032227,
-0.0696030706167221,
-0.2035362720489502,
-0.1884588748216629,
0.011692017316818237,
-0.21719983220100403,
-0.40339013934135437,
-0.20081309974193573,
-0.20080135762691498,
0.1609136462211609,
-0.08555179834365845,
0.3172798156738281,
-0.3578870892524719,
0.6291170716285706,
0.2359282672405243,
0.15793950855731964,
-0.06872925162315369,
0.3983708620071411,
0.2859935760498047,
-0.12273415923118591,
0.12003859877586365,
0.310631662607193,
0.5210931301116943,
0.2319260835647583,
-0.4977971911430359,
-0.020133625715970993,
-0.15760058164596558,
-0.3119957149028778,
0.045281581580638885,
0.15575625002384186,
0.10338904708623886,
0.1714421659708023,
0.42702412605285645,
0.0027692019939422607,
0.003536633215844631,
-0.006691262125968933,
0.3002273440361023,
-0.10845120251178741,
0.2530643045902252,
0.5017454624176025,
-0.28106769919395447,
-0.36820852756500244,
0.16333965957164764,
0.028057537972927094,
-0.2052232325077057,
-0.10812007635831833,
0.36548304557800293,
0.2288481891155243,
0.27943646907806396,
0.07714066654443741,
0.059262968599796295,
-0.0933699756860733,
0.5959621667861938,
0.10376104712486267,
0.3081628680229187,
-0.15464521944522858,
-0.23435117304325104,
-0.3536602258682251,
0.003633938729763031,
-0.05651911720633507,
-0.32162535190582275,
0.30732211470603943,
-0.011177340522408485,
0.05892378091812134,
0.1984139233827591,
-0.17917318642139435,
0.019347384572029114,
-0.29945841431617737,
0.22041942179203033,
-0.3973328769207001,
0.050212230533361435,
0.3911750316619873,
0.046745896339416504,
-0.08370430767536163,
0.02302362024784088,
0.05106089636683464,
0.02862865850329399,
-0.008694048970937729,
-0.1330483853816986,
-0.12296487390995026,
-0.0937691181898117,
0.2239978015422821,
-0.04958100616931915,
0.25528833270072937,
0.2741931080818176,
0.0716453418135643,
-0.15349964797496796,
-0.15623153746128082,
-0.2056281864643097,
-0.06908030807971954,
0.6255397200584412,
0.08909990638494492,
0.4591797888278961,
-0.2144264280796051,
0.2980731129646301,
-0.07288826256990433,
-0.06758539378643036,
0.03476367145776749,
-0.031589895486831665,
-0.3935301601886749,
0.30849647521972656,
-0.2421962320804596,
0.2191547006368637,
-0.0817304477095604,
0.09468254446983337,
0.01686232164502144,
0.25778695940971375,
-0.24221763014793396,
-0.4130553603172302,
0.389853298664093,
-0.11537529528141022,
-0.24641548097133636,
0.4650779962539673,
-0.14557096362113953,
0.4240630865097046,
0.03699584677815437,
-0.14423538744449615,
-0.20593085885047913,
0.4398934841156006,
-0.10900368541479111,
-0.3411959707736969,
-0.12976175546646118,
-0.06775842607021332,
-0.1385491043329239,
-0.18108314275741577,
0.19944730401039124,
-0.1636885702610016,
-0.06514739990234375,
-0.24590903520584106,
-0.40802818536758423
] |
https://github.com/huggingface/datasets/issues/317 | Adding a dataset with multiple subtasks | For one dataset you can have different configurations that each have their own `nlp.Features`.
We imagine having one configuration per subtask for example.
They are loaded with `nlp.load_dataset("my_dataset", "my_config")`.
For example the `glue` dataset has many configurations. It is a bit different from your case though because each configuration is a dataset by itself (sst2, mnli).
Another example is `wikipedia` that has one configuration per language. | I intent to add the datasets of the MT Quality Estimation shared tasks to `nlp`. However, they have different subtasks -- such as word-level, sentence-level and document-level quality estimation, each of which having different language pairs, and some of the data reused in different subtasks.
For example, in [QE 2019,](http://www.statmt.org/wmt19/qe-task.html) we had the same English-Russian and English-German data for word-level and sentence-level QE.
I suppose these datasets could have both their word and sentence-level labels inside `nlp.Features`; but what about other subtasks? Should they be considered a different dataset altogether?
I read the discussion on #217 but the case of QE seems a lot simpler. | 66 | Adding a dataset with multiple subtasks
I intent to add the datasets of the MT Quality Estimation shared tasks to `nlp`. However, they have different subtasks -- such as word-level, sentence-level and document-level quality estimation, each of which having different language pairs, and some of the data reused in different subtasks.
For example, in [QE 2019,](http://www.statmt.org/wmt19/qe-task.html) we had the same English-Russian and English-German data for word-level and sentence-level QE.
I suppose these datasets could have both their word and sentence-level labels inside `nlp.Features`; but what about other subtasks? Should they be considered a different dataset altogether?
I read the discussion on #217 but the case of QE seems a lot simpler.
For one dataset you can have different configurations that each have their own `nlp.Features`.
We imagine having one configuration per subtask for example.
They are loaded with `nlp.load_dataset("my_dataset", "my_config")`.
For example the `glue` dataset has many configurations. It is a bit different from your case though because each configuration is a dataset by itself (sst2, mnli).
Another example is `wikipedia` that has one configuration per language. | [
-0.0709957629442215,
-0.18145346641540527,
-0.04370289295911789,
0.38491523265838623,
-0.21697548031806946,
0.09465952962636948,
0.3582088053226471,
-0.13353456556797028,
0.12713946402072906,
-0.15524668991565704,
-0.28162145614624023,
0.14893102645874023,
-0.15718233585357666,
0.6809746026992798,
0.33876723051071167,
-0.22827237844467163,
0.15951324999332428,
-0.35347437858581543,
-0.06523381173610687,
-0.01886875182390213,
-0.1657256782054901,
0.0523262657225132,
-0.048503220081329346,
-0.010486043989658356,
-0.3616023361682892,
-0.23399129509925842,
-0.2940639853477478,
-0.12222566455602646,
0.312415212392807,
-0.3002323806285858,
0.0982154980301857,
0.24765245616436005,
-0.03276264667510986,
0.0659818947315216,
-0.00011603923485381529,
0.12002059817314148,
0.030315512791275978,
-0.10520295053720474,
-0.35485726594924927,
-0.11891390383243561,
-0.23487630486488342,
-0.4712660312652588,
-0.046874478459358215,
-0.16618011891841888,
0.19217568635940552,
-0.30591514706611633,
0.348387211561203,
-0.22731302678585052,
0.17081595957279205,
0.16543179750442505,
0.09615559875965118,
0.3004254698753357,
-0.34443461894989014,
0.18980059027671814,
0.1419137418270111,
-0.14653053879737854,
-0.08647039532661438,
0.14829573035240173,
0.15912692248821259,
0.12157034873962402,
0.10448870807886124,
0.0899098813533783,
0.1305588036775589,
0.15654848515987396,
0.3428240418434143,
0.043693915009498596,
0.25323256850242615,
-0.30919063091278076,
-0.1941080391407013,
0.386804461479187,
0.53937166929245,
0.043002642691135406,
-0.47331124544143677,
-0.4100717306137085,
0.061971984803676605,
-0.1059594452381134,
-0.01838664710521698,
0.3538922667503357,
0.06193918362259865,
-0.24967792630195618,
0.21227416396141052,
-0.08404145389795303,
-0.09232758730649948,
0.20203351974487305,
0.17034684121608734,
0.4990216791629791,
0.05619515851140022,
0.24287983775138855,
-0.23657511174678802,
-0.16114160418510437,
-0.17206302285194397,
-0.14426852762699127,
-0.18450792133808136,
-0.012314570136368275,
-0.2962133586406708,
-0.07260381430387497,
-0.09223609417676926,
-0.49361714720726013,
0.27603256702423096,
0.04808083176612854,
0.3868001699447632,
-0.018151648342609406,
-0.03430084139108658,
0.3849567770957947,
0.5777320861816406,
-0.07199293375015259,
0.3023175001144409,
-0.0365590862929821,
-0.050506286323070526,
-0.5055098533630371,
-0.10484211146831512,
-0.1112043485045433,
-0.0039248401299119,
0.057834189385175705,
-0.31770622730255127,
-0.18360531330108643,
0.143057182431221,
0.07736147940158844,
-0.2293822169303894,
-0.12813962996006012,
-0.12914761900901794,
-0.31752699613571167,
-0.20341981947422028,
-0.07261095196008682,
0.2471606284379959,
0.2654169499874115,
-0.3013913035392761,
0.5123956203460693,
0.04323378950357437,
0.06023988500237465,
-0.0664108395576477,
-0.07790258526802063,
-0.3201747536659241,
0.23677606880664825,
0.046330858021974564,
0.07161863148212433,
0.44740357995033264,
-0.0044767167419195175,
-0.028469085693359375,
-0.3521724343299866,
0.1882115602493286,
-0.0790787935256958,
-0.06916330009698868,
-0.030083339661359787,
0.0427798368036747,
0.06560204923152924,
-0.22535400092601776,
0.28756964206695557,
-0.41455191373825073,
0.020100146532058716,
-0.33643054962158203,
-0.16669562458992004,
0.08987367153167725,
0.001078692264854908,
-0.1832781732082367,
-0.19883368909358978,
-0.555036723613739,
0.6362169981002808,
0.08194809406995773,
-0.07988430559635162,
-0.020813465118408203,
-0.14135770499706268,
-0.2756303548812866,
-0.16575944423675537,
-0.3760380744934082,
-0.10043956339359283,
-0.29674622416496277,
-0.4861111044883728,
-0.014934973791241646,
-0.16965030133724213,
0.017027072608470917,
0.37923622131347656,
-0.20671869814395905,
0.49382635951042175,
-0.09010498225688934,
0.3840905427932739,
0.5942390561103821,
-0.2019275724887848,
-0.08353609591722488,
0.3388233780860901,
0.12393920123577118,
0.04260658472776413,
0.2889139652252197,
0.43116819858551025,
0.23522624373435974,
0.02217988297343254,
0.004531115293502808,
0.3451698422431946,
-0.12428729236125946,
-0.1570483297109604,
0.015790652483701706,
-0.14394226670265198,
0.4175114631652832,
-0.008084803819656372,
-0.01049724593758583,
-0.2487351894378662,
0.1275283396244049,
-0.043361030519008636,
0.1509207785129547,
0.06794223189353943,
0.1376362442970276,
-0.12132525444030762,
-0.13973981142044067,
0.37202227115631104,
-0.08128304034471512,
-0.29375195503234863,
-0.30584517121315,
0.17385607957839966,
-0.19136753678321838,
0.11775022000074387,
0.5350751876831055,
-0.1869015246629715,
0.0972268208861351,
-0.25755614042282104,
-0.16046792268753052,
-0.49020621180534363,
0.09142345190048218,
0.45305129885673523,
-0.5109918713569641,
-0.3918747007846832,
-0.4492606818675995,
0.17530614137649536,
0.12128794193267822,
-0.12233413755893707,
-0.15637089312076569,
0.27136877179145813,
0.16020338237285614,
0.025951620191335678,
0.12400077283382416,
0.3958655893802643,
-0.054489538073539734,
-0.006238969974219799,
0.09372880309820175,
0.0853293240070343,
0.20980161428451538,
0.2352553755044937,
0.2691693603992462,
-0.12743107974529266,
0.14234234392642975,
-0.006454393267631531,
0.09067128598690033,
-0.1277327686548233,
-0.029870055615901947,
-0.21793672442436218,
0.21283945441246033,
0.25136798620224,
0.1943625807762146,
0.37429749965667725,
0.03655136376619339,
-0.09159690141677856,
0.2419489622116089,
0.08246229588985443,
-0.3555675446987152,
-0.2242484986782074,
0.13615770637989044,
0.02174246869981289,
-0.06853051483631134,
0.10273689031600952,
-0.20264418423175812,
0.2370152473449707,
0.3304446041584015,
0.1169452965259552,
0.11938066780567169,
-0.13728588819503784,
-0.13243946433067322,
-0.13276979327201843,
0.12773428857326508,
0.32630953192710876,
0.4737486243247986,
0.18272411823272705,
0.3626639246940613,
-0.020628755912184715,
-0.015571176074445248,
-0.10861795395612717,
-0.0022713541984558105,
0.18442845344543457,
0.001573787652887404,
0.21316829323768616,
-0.07691633701324463,
-0.1609201580286026,
-0.05900520086288452,
0.15981575846672058,
0.309805691242218,
-0.19485905766487122,
-0.16202616691589355,
0.006378278136253357,
-0.4035835564136505,
-0.4256434738636017,
-0.29432475566864014,
0.02316625416278839,
-0.31561604142189026,
-0.26603081822395325,
0.08972783386707306,
-0.08034580945968628,
-0.19059184193611145,
0.37429070472717285,
0.028585724532604218,
0.42667487263679504,
-0.43847906589508057,
0.17274847626686096,
0.2919107973575592,
-0.3651600480079651,
-0.039186298847198486,
0.07529932260513306,
0.45333465933799744,
0.5177785754203796,
0.519675612449646,
0.08196526765823364,
-0.2692108750343323,
-0.14957766234874725,
-0.17664240300655365,
0.18274204432964325,
-0.35116147994995117,
0.6441909670829773,
-0.18986386060714722,
-0.06355549395084381,
0.06541067361831665,
-0.37730830907821655,
0.1839836984872818,
0.30568692088127136,
-0.16883805394172668,
-0.09972637891769409,
-0.0991654098033905,
-0.1515538990497589,
-0.016697270795702934,
-0.5070536732673645,
-0.48719221353530884,
-0.23863743245601654,
0.2469993382692337,
-0.15935073792934418,
0.3552493453025818,
0.010928387753665447,
-0.36001071333885193,
-0.04459106922149658,
-0.05102916806936264,
0.022551655769348145,
-0.2522808611392975,
-0.09906613081693649,
-0.028114397078752518,
-0.4457641541957855,
-0.07536303997039795,
0.14581039547920227,
-0.11003071069717407,
0.5756064653396606,
0.049291178584098816,
-0.23687827587127686,
-0.060979969799518585,
0.17622055113315582,
-0.13571476936340332,
0.21015873551368713,
0.029239367693662643,
0.18213632702827454,
-0.10605629533529282,
0.06362892687320709,
-0.06080324575304985,
-0.37648290395736694,
0.4122043251991272,
0.48637592792510986,
0.1986302137374878,
-0.05327773839235306,
0.06210905686020851,
-0.21244819462299347,
0.4311763644218445,
0.6173299551010132,
0.2669887840747833,
0.13748344779014587,
0.015275001525878906,
-0.015651065856218338,
0.1343344748020172,
-0.1731092929840088,
0.5373427271842957,
-0.15205851197242737,
-0.07418832182884216,
0.5096476078033447,
0.07712864875793457,
-0.1001930832862854,
-0.03491019830107689,
-0.21841709315776825,
-0.2870623767375946,
-0.2746577858924866,
0.21589863300323486,
-0.38213250041007996,
0.32794928550720215,
-0.11125589907169342,
-0.5277532339096069,
-0.39996814727783203,
0.12230899184942245,
-0.27453210949897766,
0.4277235269546509,
0.014690659940242767,
0.15394537150859833,
-0.7118862867355347,
-0.23982881009578705,
-0.2504855692386627,
0.07744486629962921,
0.16256779432296753,
0.4083617329597473,
-0.04588228836655617,
0.16510340571403503,
-0.04881212115287781,
0.07526620477437973,
-0.09322622418403625,
-0.44280675053596497,
-0.11551254987716675,
0.1816355139017105,
0.3534650206565857,
-0.2903142273426056,
-0.1967032551765442,
-0.13208338618278503,
-0.07324269413948059,
0.37024325132369995,
0.20475192368030548,
-0.3799404203891754,
-0.07816115021705627,
0.03960439935326576,
0.07436272501945496,
-0.20151756703853607,
-0.2565551996231079,
-0.16366738080978394,
-0.07914026826620102,
-0.1459161341190338,
-0.07083717733621597,
-0.155073344707489,
-0.09937489777803421,
0.1038079559803009,
-0.05233102664351463,
-0.02322542481124401,
-0.17166519165039062,
0.16222548484802246,
0.14994782209396362,
-0.01731088198721409,
0.14831790328025818,
0.16597561538219452,
0.03566713258624077,
-0.007045172154903412,
0.20200566947460175,
0.6304761171340942,
-0.18414267897605896,
-0.028697580099105835,
0.04730178415775299,
-0.24319133162498474,
0.5375522375106812,
0.0800163596868515,
0.13660860061645508,
0.3033047020435333,
-0.08369820564985275,
-0.3534982204437256,
-0.08292198926210403,
0.17307476699352264,
0.41561004519462585,
0.20729833841323853,
-0.0930943414568901,
-0.4728389382362366,
0.3493266701698303,
0.15291209518909454,
-0.16371092200279236,
0.09366379678249359,
-0.21412165462970734,
-0.27965280413627625,
0.17488327622413635,
0.15634635090827942,
0.5925900340080261,
0.1706487238407135,
0.16015037894248962,
0.0196661576628685,
0.1427394598722458,
0.47231435775756836,
-0.04326745122671127,
0.0507773831486702,
0.07045167684555054,
0.1262013465166092,
0.017640190199017525,
-0.1034226268529892,
0.10138578712940216,
0.31439530849456787,
-0.10515068471431732,
0.20271413028240204,
0.48855966329574585,
0.07388076186180115,
-0.20549890398979187,
0.16520565748214722,
0.022402329370379448,
-0.11192052066326141,
0.0245741605758667,
0.005142226815223694,
-0.33819031715393066,
-0.06445193290710449,
-0.15802747011184692,
-0.09547023475170135,
0.020237106829881668,
0.18885955214500427,
-0.2974645495414734,
-0.28569716215133667,
-0.21643708646297455,
-0.09071405231952667,
-0.08838294446468353,
0.07414563000202179,
0.10490517318248749,
-0.11231832206249237,
0.2329510748386383,
-0.2949126064777374,
0.0757782980799675,
-0.061064112931489944,
-0.1601288616657257,
-0.05803711712360382,
-0.24135810136795044,
-0.1626468151807785,
0.3596680462360382,
-0.13284173607826233,
-0.3288190960884094,
-0.02139383554458618,
0.21246613562107086,
-0.21411801874637604,
-0.2237710803747177,
0.08441588282585144,
0.01280975341796875,
0.024249989539384842,
0.029885180294513702,
0.6271651387214661,
-0.1276538372039795,
-0.08098497986793518,
0.011536192148923874,
0.08100523799657822,
-0.06636648625135422,
0.4547932744026184,
-0.24118702113628387,
0.1281149983406067,
-0.09839241206645966,
-0.26855289936065674,
0.395504355430603,
-0.14304101467132568,
0.061532776802778244,
-0.16156189143657684,
0.05602271854877472,
-0.12295651435852051,
0.3657934367656708,
-0.22342844307422638,
0.16699358820915222,
-0.040663279592990875,
0.1672370731830597,
-0.2348574995994568,
-0.09836523979902267,
0.419153094291687,
0.17444686591625214,
0.16597066819667816,
-0.021405350416898727,
-0.30908912420272827,
-0.28142812848091125,
0.43153220415115356,
-0.2380809336900711,
0.21823203563690186,
-0.3361174166202545,
0.4560976028442383,
0.10059976577758789,
0.7375189661979675,
-0.2038106620311737,
-0.05855073779821396,
-0.058238435536623,
0.30754923820495605,
0.6464059352874756,
0.12273135036230087,
0.014495325274765491,
0.17480941116809845,
-0.13643307983875275,
-0.13183706998825073,
-0.2538298964500427,
-0.047985706478357315,
-0.2725461721420288,
0.15848413109779358,
0.4529351592063904,
-0.05978967249393463,
0.11852626502513885,
-0.08370684832334518,
0.19685593247413635,
-0.17432096600532532,
0.15404218435287476,
-0.08648881316184998,
-0.17040014266967773,
0.5633850693702698,
0.17757247388362885,
0.1963302493095398,
-0.09346428513526917,
0.4911978244781494,
0.10677872598171234,
0.147194042801857,
0.14886975288391113,
-0.00694815069437027,
0.032847810536623,
0.056404516100883484,
-0.10656692832708359,
0.037998419255018234,
0.06103704497218132,
0.30456113815307617,
-0.19910219311714172,
0.04411747306585312,
-0.009520173072814941,
-0.07328826189041138,
-0.00400074478238821,
0.457701176404953,
0.1057157963514328,
0.17700260877609253,
0.05486343801021576,
0.03293954208493233,
-0.20060794055461884,
0.13137228786945343,
0.227948397397995,
-0.036736756563186646,
0.17022234201431274,
0.24532902240753174,
0.37473222613334656,
0.0627744197845459,
0.10346487164497375,
-0.18872299790382385,
-0.3689177930355072,
-0.3820822238922119,
0.39476093649864197,
0.08122676610946655,
0.15402589738368988,
0.07479064911603928,
0.36322885751724243,
0.20619454979896545,
0.16359324753284454,
0.25911957025527954,
0.16669204831123352,
0.35711199045181274,
0.4458707869052887,
-0.04546339437365532,
0.40742889046669006,
0.059796515852212906,
-0.0866566002368927,
0.327129602432251,
0.010058380663394928,
0.15741436183452606,
0.08930837363004684,
0.18169811367988586,
-0.12574675679206848,
-0.3956257104873657,
-0.0027830563485622406,
0.16566628217697144,
-0.08276429772377014,
-0.2244679033756256,
-0.4635034501552582,
-0.21037587523460388,
-0.12924842536449432,
-0.17950230836868286,
-0.3159158229827881,
-0.2240975946187973,
0.10019122064113617,
0.0159410759806633,
0.08364269137382507,
-0.10326574742794037,
-0.341022253036499,
0.040626224130392075,
-0.24160465598106384,
-0.0881713330745697,
0.4383796155452728,
-0.03843440115451813,
-0.12429805099964142,
0.3325559198856354,
0.5182181000709534,
-0.008541632443666458,
-0.043424397706985474,
-0.094700887799263,
0.07897286117076874,
0.10351446270942688,
0.17427945137023926,
0.001796158030629158,
0.06610763072967529,
0.14959973096847534,
-0.46452128887176514,
0.42820191383361816,
-0.07462085038423538,
0.04454381391406059,
0.37635931372642517,
0.05916760489344597,
-0.3788800537586212,
-0.5645080804824829,
0.3745100200176239,
-0.0740092471241951,
-0.10724034160375595,
0.05227009207010269,
0.18935030698776245,
-0.4506504535675049,
-0.30783888697624207,
0.3906121551990509,
-0.027462003752589226,
0.1043381318449974,
-0.21644242107868195,
0.04260978475213051,
-0.1539154052734375,
0.5759128332138062,
0.14036652445793152,
0.1214708462357521,
-0.18904800713062286,
0.06323492527008057,
-0.7028481364250183,
0.09084862470626831,
-0.2161908745765686,
-0.012121791020035744,
-0.03172144666314125,
0.08100077509880066,
0.19393068552017212,
0.46881794929504395,
0.12659300863742828,
0.2147815227508545,
-0.10427787899971008,
-0.056640997529029846,
-0.598303496837616,
-0.13696028292179108,
0.148432195186615,
0.23209193348884583,
0.07382094115018845,
0.08754006773233414,
-0.12036211788654327,
-0.03825392946600914,
-0.1451864242553711,
0.11988909542560577,
-0.28398430347442627,
0.3616277277469635,
0.3176852762699127,
0.4177701771259308,
0.025027068331837654,
0.6134979724884033,
-0.026458173990249634,
-0.09298279881477356,
-0.10206632316112518,
-0.26818785071372986,
-0.3106083273887634,
-0.11438002437353134,
-0.04345371201634407,
0.355724573135376,
-0.5675238966941833,
0.49121901392936707,
0.12287081032991409,
-0.23944886028766632,
-0.2712245583534241,
-0.13155221939086914,
0.002027492970228195,
0.24046990275382996,
0.08519367128610611,
-0.18212643265724182,
0.2075948864221573,
0.5532334446907043,
0.04604146257042885,
-0.12558375298976898,
-0.007740482687950134,
0.0181450005620718,
0.17123806476593018,
0.0711742639541626,
-0.18219320476055145,
-0.18402071297168732,
0.2387351244688034,
0.07368224859237671,
0.3201597332954407,
-0.46001917123794556,
-0.09383697807788849,
0.43597397208213806,
0.10779855400323868,
0.11933992803096771,
0.1448536217212677,
0.12024161219596863,
-0.4784870743751526,
-0.28228363394737244,
-0.21169054508209229,
-0.07374448329210281,
-0.20709674060344696,
-0.09614930301904678,
-0.3565065264701843
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Update: I think I've found a solution.
```python
output_types = {"input_ids": tf.int64, "token_type_ids": tf.int64, "attention_mask": tf.int64}
def train_dataset_gen():
for i in range(len(train_dataset)):
yield train_dataset[i]
tf_dataset = tf.data.Dataset.from_generator(train_dataset_gen, output_types=output_types)
```
loads WikiText-2 in 20 ms, and WikiText-103 in 20 ms. It appears to be lazily loading via indexing train_dataset. | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 48 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Update: I think I've found a solution.
```python
output_types = {"input_ids": tf.int64, "token_type_ids": tf.int64, "attention_mask": tf.int64}
def train_dataset_gen():
for i in range(len(train_dataset)):
yield train_dataset[i]
tf_dataset = tf.data.Dataset.from_generator(train_dataset_gen, output_types=output_types)
```
loads WikiText-2 in 20 ms, and WikiText-103 in 20 ms. It appears to be lazily loading via indexing train_dataset. | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Yes this is the current best solution. We should probably show it in the tutorial notebook.
Note that this solution unfortunately doesn't allow to train on TPUs (yet). See #193 | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 30 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Yes this is the current best solution. We should probably show it in the tutorial notebook.
Note that this solution unfortunately doesn't allow to train on TPUs (yet). See #193 | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | This approach still seems quite slow. When using TFRecords with a similar training loop, I get ~3.0-3.5 it/s on multi-node, multi-GPU training. I notice a pretty severe performance regression when scaling, with observed performance numbers. Since the allreduce step takes less than 100ms/it and I've achieved 80% scaling efficiency up to 64 GPUs, it must be the data pipeline.
| Nodes | GPUs | Iterations/Second |
| --- | --- | --- |
| 1 | 2 | 2.01 |
| 1 | 8 | 0.81 |
| 2 | 16 | 0.37 |
Here are performance metrics over 10k steps. The iteration speed appears to follow some sort of caching pattern. I would love to use `nlp` in my project, but a slowdown from 3.0 it/s to 0.3 it/s is too great to stomach.
<img width="1361" alt="Screen Shot 2020-07-02 at 8 29 22 AM" src="https://user-images.githubusercontent.com/4564897/86378156-2f8d3900-bc3e-11ea-918b-c395c3df5377.png">
| I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 146 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
This approach still seems quite slow. When using TFRecords with a similar training loop, I get ~3.0-3.5 it/s on multi-node, multi-GPU training. I notice a pretty severe performance regression when scaling, with observed performance numbers. Since the allreduce step takes less than 100ms/it and I've achieved 80% scaling efficiency up to 64 GPUs, it must be the data pipeline.
| Nodes | GPUs | Iterations/Second |
| --- | --- | --- |
| 1 | 2 | 2.01 |
| 1 | 8 | 0.81 |
| 2 | 16 | 0.37 |
Here are performance metrics over 10k steps. The iteration speed appears to follow some sort of caching pattern. I would love to use `nlp` in my project, but a slowdown from 3.0 it/s to 0.3 it/s is too great to stomach.
<img width="1361" alt="Screen Shot 2020-07-02 at 8 29 22 AM" src="https://user-images.githubusercontent.com/4564897/86378156-2f8d3900-bc3e-11ea-918b-c395c3df5377.png">
| [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | An interesting alternative to investigate here would be to use the tf.io library which has some support for Arrow to TF conversion: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset
There are quite a few types supported, including lists so if the unsupported columns are dropped then we could maybe have a zero-copy mapping from Arrow to TensorFlow, including tokenized inputs and 1D tensors like the ones we mostly use in NLP: https://github.com/tensorflow/io/blob/322b3170c43ecac5c6af9e39dbd18fd747913e5a/tensorflow_io/arrow/python/ops/arrow_dataset_ops.py#L44-L72
Here is an introduction on Arrow to TF using tf.io: https://medium.com/tensorflow/tensorflow-with-apache-arrow-datasets-cdbcfe80a59f | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 77 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
An interesting alternative to investigate here would be to use the tf.io library which has some support for Arrow to TF conversion: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset
There are quite a few types supported, including lists so if the unsupported columns are dropped then we could maybe have a zero-copy mapping from Arrow to TensorFlow, including tokenized inputs and 1D tensors like the ones we mostly use in NLP: https://github.com/tensorflow/io/blob/322b3170c43ecac5c6af9e39dbd18fd747913e5a/tensorflow_io/arrow/python/ops/arrow_dataset_ops.py#L44-L72
Here is an introduction on Arrow to TF using tf.io: https://medium.com/tensorflow/tensorflow-with-apache-arrow-datasets-cdbcfe80a59f | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Interesting. There's no support for strings, but it does enable int and floats so that would work for tokenized inputs.
ArrowStreamDataset requires loading from a "record batch iterator", which can be instantiated from in-memory arrays as described here: https://arrow.apache.org/docs/python/ipc.html.
But the nlp.Dataset stores its data as a `pyarrow.lib.Table`, and the underlying features are `pyarrow.lib.ChunkedArray`. I can't find any documentation about lazily creating a record batch iterator from a ChunkedArray or a Table. Have you had any success?
I can't find [any uses](https://grep.app/search?q=ArrowDataset&filter[lang][0]=Python) of tfio.arrow.ArrowDataset on GitHub. | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 86 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Interesting. There's no support for strings, but it does enable int and floats so that would work for tokenized inputs.
ArrowStreamDataset requires loading from a "record batch iterator", which can be instantiated from in-memory arrays as described here: https://arrow.apache.org/docs/python/ipc.html.
But the nlp.Dataset stores its data as a `pyarrow.lib.Table`, and the underlying features are `pyarrow.lib.ChunkedArray`. I can't find any documentation about lazily creating a record batch iterator from a ChunkedArray or a Table. Have you had any success?
I can't find [any uses](https://grep.app/search?q=ArrowDataset&filter[lang][0]=Python) of tfio.arrow.ArrowDataset on GitHub. | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Also note that since #322 it is now possible to do
```python
ids = [1, 10, 42, 100]
batch = dataset[ids]
```
From my experience it is quite fast but it can take lots of memory for large batches (haven't played that much with it).
Let me know if you think there could be a better way to implement it. (current code is [here](https://github.com/huggingface/nlp/blob/78628649962671b4aaa31a6b24e7275533416845/src/nlp/arrow_dataset.py#L463)) | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 64 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Also note that since #322 it is now possible to do
```python
ids = [1, 10, 42, 100]
batch = dataset[ids]
```
From my experience it is quite fast but it can take lots of memory for large batches (haven't played that much with it).
Let me know if you think there could be a better way to implement it. (current code is [here](https://github.com/huggingface/nlp/blob/78628649962671b4aaa31a6b24e7275533416845/src/nlp/arrow_dataset.py#L463)) | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Thanks @lhoestq! That format is much better to work with.
I put together a benchmarking script. This doesn't measure the CPU-to-GPU efficiency, nor how it scales with multi-GPU multi-node training where many processes are making the same demands on the same dataset. But it does show some interesting results:
```python
import nlp
import numpy as np
import tensorflow as tf
import time
dset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train")
dset = dset.filter(lambda ex: len(ex["text"]) > 0)
bsz = 1024
n_batches = 100
def single_item_gen():
for i in range(len(dset)):
yield dset[i]
def sequential_batch_gen():
for i in range(0, len(dset), bsz):
yield dset[i:i+bsz]
def random_batch_gen():
for i in range(len(dset)):
indices = list(np.random.randint(len(dset), size=(bsz,)))
yield dset[indices]
output_types = {"text": tf.string}
single_item = tf.data.Dataset.from_generator(single_item_gen, output_types=output_types).batch(bsz)
interleaved = tf.data.Dataset.range(10).interleave(
lambda idx: tf.data.Dataset.from_generator(single_item_gen, output_types=output_types),
cycle_length=10,
)
sequential_batch = tf.data.Dataset.from_generator(sequential_batch_gen, output_types=output_types)
random_batch = tf.data.Dataset.from_generator(random_batch_gen, output_types=output_types)
def iterate(tf_dset):
start = time.perf_counter()
for i, batch in enumerate(tf_dset.take(n_batches)):
pass
elapsed = time.perf_counter() - start
print(f"{tf_dset} took {elapsed:.3f} secs")
iterate(single_item)
iterate(interleaved)
iterate(sequential_batch)
iterate(random_batch)
```
Results:
```
<BatchDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 23.005 secs
<InterleaveDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.135 secs
<FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.074 secs
<FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.550 secs
```
- Batching a generator which fetches a single item is terrible.
- Interleaving performs well on a single process, but doesn't scale well to multi-GPU training. I believe the bottleneck here is in Arrow dataset locking or something similar. The numbers from the table above are with interleaving.
- The sequential access dominates the random access (7x faster). Is there any way to bring random access times closer to sequential access? Maybe re-indexing the dataset after shuffling each pass over the data. | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 285 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Thanks @lhoestq! That format is much better to work with.
I put together a benchmarking script. This doesn't measure the CPU-to-GPU efficiency, nor how it scales with multi-GPU multi-node training where many processes are making the same demands on the same dataset. But it does show some interesting results:
```python
import nlp
import numpy as np
import tensorflow as tf
import time
dset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train")
dset = dset.filter(lambda ex: len(ex["text"]) > 0)
bsz = 1024
n_batches = 100
def single_item_gen():
for i in range(len(dset)):
yield dset[i]
def sequential_batch_gen():
for i in range(0, len(dset), bsz):
yield dset[i:i+bsz]
def random_batch_gen():
for i in range(len(dset)):
indices = list(np.random.randint(len(dset), size=(bsz,)))
yield dset[indices]
output_types = {"text": tf.string}
single_item = tf.data.Dataset.from_generator(single_item_gen, output_types=output_types).batch(bsz)
interleaved = tf.data.Dataset.range(10).interleave(
lambda idx: tf.data.Dataset.from_generator(single_item_gen, output_types=output_types),
cycle_length=10,
)
sequential_batch = tf.data.Dataset.from_generator(sequential_batch_gen, output_types=output_types)
random_batch = tf.data.Dataset.from_generator(random_batch_gen, output_types=output_types)
def iterate(tf_dset):
start = time.perf_counter()
for i, batch in enumerate(tf_dset.take(n_batches)):
pass
elapsed = time.perf_counter() - start
print(f"{tf_dset} took {elapsed:.3f} secs")
iterate(single_item)
iterate(interleaved)
iterate(sequential_batch)
iterate(random_batch)
```
Results:
```
<BatchDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 23.005 secs
<InterleaveDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.135 secs
<FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.074 secs
<FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.550 secs
```
- Batching a generator which fetches a single item is terrible.
- Interleaving performs well on a single process, but doesn't scale well to multi-GPU training. I believe the bottleneck here is in Arrow dataset locking or something similar. The numbers from the table above are with interleaving.
- The sequential access dominates the random access (7x faster). Is there any way to bring random access times closer to sequential access? Maybe re-indexing the dataset after shuffling each pass over the data. | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Hey @jarednielsen
Thanks for this very interesting analysis!! IMHO to read text data one should use `tf.data.TextLineDataset`. It would be interesting to compare what you have done with simply load with a `TextLineDataset` and see if there is a difference.
A good example can be found here https://www.tensorflow.org/tutorials/load_data/text | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 48 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Hey @jarednielsen
Thanks for this very interesting analysis!! IMHO to read text data one should use `tf.data.TextLineDataset`. It would be interesting to compare what you have done with simply load with a `TextLineDataset` and see if there is a difference.
A good example can be found here https://www.tensorflow.org/tutorials/load_data/text | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Thanks! I'm not actually loading in raw text data, that was just the synthetic data I created for this benchmark. A more realistic use case would be a dataset of tokenized examples, which would be a dict of lists of integers. TensorFlow's TextLineDataset greedily loads the dataset into the graph itself, which can lead to out-of-memory errors - one of the main reason I'm so drawn to the `nlp` library is its zero-copy no-RAM approach to dataset loading and mapping.
It's quite helpful for running a preprocessing pipeline - a sample ELECTRA pipeline I've built is here: https://github.com/jarednielsen/deep-learning-models/blob/nlp/models/nlp/common/preprocess.py. | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 98 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Thanks! I'm not actually loading in raw text data, that was just the synthetic data I created for this benchmark. A more realistic use case would be a dataset of tokenized examples, which would be a dict of lists of integers. TensorFlow's TextLineDataset greedily loads the dataset into the graph itself, which can lead to out-of-memory errors - one of the main reason I'm so drawn to the `nlp` library is its zero-copy no-RAM approach to dataset loading and mapping.
It's quite helpful for running a preprocessing pipeline - a sample ELECTRA pipeline I've built is here: https://github.com/jarednielsen/deep-learning-models/blob/nlp/models/nlp/common/preprocess.py. | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/315 | [Question] Best way to batch a large dataset? | Sorry, I think I badly expressed myself, my bad. What I suggested is to compare with the usual loading textual data in pure TF with `TextLineDataset` with `nlp`. I know it is not recommended with very large datasets to use it, but I was curious to see how it behaves compared to a processing with `nlp` on smaller datasets.
BTW your script looks very interesting, thanks for sharing!! | I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets? | 68 | [Question] Best way to batch a large dataset?
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow:
```python
train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False)
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]}
labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])}
labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1])
### Question about this last line ###
tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8)
```
This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia.
So I tried manual batching using `dataset.select()`:
```python
idxs = np.random.randint(len(dataset), size=bsz)
batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])})
tf_batch = tf.constant(batch["ids"], dtype=tf.int64)
```
This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop.
Is there a performant scalable way to lazily load batches of nlp Datasets?
Sorry, I think I badly expressed myself, my bad. What I suggested is to compare with the usual loading textual data in pure TF with `TextLineDataset` with `nlp`. I know it is not recommended with very large datasets to use it, but I was curious to see how it behaves compared to a processing with `nlp` on smaller datasets.
BTW your script looks very interesting, thanks for sharing!! | [
-0.3098406195640564,
-0.354902446269989,
0.04007000848650932,
-0.131441131234169,
0.04347909614443779,
0.17069241404533386,
0.5454068183898926,
0.3945958614349365,
0.1853833943605423,
0.07585089653730392,
-0.010930368676781654,
0.09057161957025528,
-0.045824792236089706,
0.16368572413921356,
0.14648054540157318,
-0.36263370513916016,
0.016457729041576385,
-0.2653382420539856,
-0.026075616478919983,
-0.144788458943367,
-0.24560798704624176,
-0.29631054401397705,
-0.34992748498916626,
-0.2272656410932541,
-0.3148987293243408,
-0.29205137491226196,
0.022102130576968193,
-0.1786600649356842,
0.2146255075931549,
-0.04901295527815819,
0.04904160648584366,
0.02164074219763279,
0.30009546875953674,
0.4448576271533966,
-0.00011566012835828587,
-0.13261917233467102,
0.06001206487417221,
-0.04453403130173683,
-0.008880184963345528,
0.32374197244644165,
-0.06123682111501694,
-0.38815271854400635,
-0.0979185402393341,
-0.4061884880065918,
0.11056136339902878,
0.19236424565315247,
0.19394239783287048,
-0.04725046828389168,
0.13588589429855347,
-0.032512784004211426,
0.0632176399230957,
0.37276211380958557,
-0.024765636771917343,
0.1722884178161621,
0.028884325176477432,
-0.06397250294685364,
0.011857906356453896,
0.06099184229969978,
0.2795845866203308,
-0.0697009339928627,
-0.0007682815194129944,
0.32840508222579956,
-0.16740474104881287,
-0.015942294150590897,
0.2925572097301483,
0.23139558732509613,
0.12011326104402542,
-0.6053042411804199,
0.031975701451301575,
0.37242740392684937,
0.2989347279071808,
0.003855079412460327,
-0.27515336871147156,
-0.6016530394554138,
-0.12167373299598694,
-0.26009875535964966,
-0.2543845772743225,
0.277985543012619,
-0.22824357450008392,
-0.1784856915473938,
-0.2848556935787201,
-0.060750771313905716,
-0.11166240274906158,
0.15172740817070007,
-0.17424485087394714,
0.1897979974746704,
0.15614338219165802,
0.2513836920261383,
0.1800084412097931,
-0.2591577172279358,
0.07230818271636963,
-0.2944977879524231,
0.3919678330421448,
0.28854283690452576,
-0.51990807056427,
-0.16105031967163086,
0.15255430340766907,
-0.23570957779884338,
0.06207023561000824,
-0.26955485343933105,
-0.0892144963145256,
0.007106993347406387,
0.09507894515991211,
0.046423204243183136,
0.18401417136192322,
0.28649863600730896,
-0.12670370936393738,
0.04818546026945114,
0.10405614227056503,
-0.2625124752521515,
-0.24212214350700378,
0.3590073585510254,
-0.10837488621473312,
-0.29028525948524475,
0.0475219301879406,
-0.1952095925807953,
-0.35822319984436035,
0.13851584494113922,
-0.008814962580800056,
0.03123566508293152,
0.06801176071166992,
-0.06761323660612106,
-0.031124982982873917,
0.12811242043972015,
-0.28424423933029175,
0.0787755474448204,
-0.14889636635780334,
-0.1395687460899353,
-0.3805862367153168,
0.16667670011520386,
-0.14858925342559814,
0.0174984410405159,
-0.005478765815496445,
-0.01631406508386135,
0.13558869063854218,
-0.13967600464820862,
0.11040857434272766,
-0.1817801147699356,
0.0023553669452667236,
0.20693299174308777,
-0.11267552524805069,
-0.23203782737255096,
0.13548244535923004,
0.23468849062919617,
0.05799398943781853,
0.2410534769296646,
0.03128325194120407,
0.15585587918758392,
-0.2094341665506363,
0.3726697266101837,
-0.3099031448364258,
-0.339580237865448,
0.19431395828723907,
0.06684456020593643,
0.016657091677188873,
-0.31499090790748596,
-0.5945531129837036,
0.39812764525413513,
0.32100796699523926,
0.09307794272899628,
-0.07706112414598465,
-0.28631138801574707,
-0.15488754212856293,
-0.2435484677553177,
0.1875338852405548,
0.21212272346019745,
-0.42634880542755127,
0.15767088532447815,
0.40174558758735657,
0.329196572303772,
0.374307781457901,
0.6147409081459045,
-0.25484779477119446,
0.44109418988227844,
0.17502179741859436,
0.11253979802131653,
0.10754245519638062,
-0.25899994373321533,
-0.29352328181266785,
0.41760823130607605,
-0.22390036284923553,
0.09114886075258255,
0.02806174010038376,
0.27542632818222046,
0.2909402847290039,
-0.23584020137786865,
0.46772781014442444,
0.5002924799919128,
-0.10605169832706451,
0.3253600299358368,
-0.21217462420463562,
-0.26241323351860046,
0.1294201761484146,
0.16811415553092957,
0.16876345872879028,
-0.10443653911352158,
-0.22626402974128723,
0.21720251441001892,
0.2736007869243622,
-0.16012559831142426,
-0.13353286683559418,
0.014446903020143509,
0.04474703595042229,
0.04505468159914017,
-0.2553611695766449,
0.08991992473602295,
-0.5541225671768188,
0.24911439418792725,
0.10459455847740173,
-0.07205697894096375,
0.29759055376052856,
-0.3017670512199402,
0.26775938272476196,
-0.08500607311725616,
0.02624461054801941,
0.24394643306732178,
-0.06388576328754425,
-0.11516039073467255,
0.2073936015367508,
-0.0009457655251026154,
-0.204505056142807,
-0.06943558901548386,
-0.45423194766044617,
0.03350270539522171,
-0.3397291302680969,
-0.15070466697216034,
0.3422573506832123,
0.101784847676754,
-0.13040514290332794,
0.16107898950576782,
-0.07115011662244797,
-0.19750438630580902,
0.06391718238592148,
0.12129221856594086,
-0.08295416831970215,
-0.010952569544315338,
-0.22086670994758606,
0.3150738477706909,
0.2363264411687851,
0.33011746406555176,
0.051627155393362045,
-0.14597554504871368,
0.007590318098664284,
-0.3100181519985199,
-0.2521990239620209,
0.27856671810150146,
-0.03178812935948372,
0.3897753953933716,
0.13793130218982697,
-0.34467917680740356,
-0.14783130586147308,
0.10223816335201263,
0.05754932016134262,
0.14194154739379883,
0.13987331092357635,
0.1266019344329834,
0.06356543302536011,
0.1517292857170105,
-0.40281596779823303,
0.27085447311401367,
0.5878340005874634,
-0.11926954984664917,
-0.06938818842172623,
0.23959285020828247,
0.05955957993865013,
-0.1695692241191864,
-0.033815331757068634,
-0.21775788068771362,
0.1716604232788086,
0.16191750764846802,
0.17905260622501373,
-0.099909208714962,
0.12429317086935043,
-0.12985765933990479,
0.32239824533462524,
0.21209873259067535,
0.004855964332818985,
0.02219139039516449,
0.11641888320446014,
0.07220343500375748,
0.0016250386834144592,
-0.09553901851177216,
0.13059398531913757,
0.3099614977836609,
-0.12521983683109283,
0.004458168521523476,
0.19541892409324646,
-0.10726451128721237,
-0.12373821437358856,
-0.026908449828624725,
0.015736673027276993,
-0.31785714626312256,
-0.13699854910373688,
0.24892392754554749,
-0.11663755774497986,
0.03645455464720726,
0.10610169172286987,
0.3592686951160431,
0.12710314989089966,
-0.36421170830726624,
0.10107772052288055,
-0.11708772927522659,
-0.2541911005973816,
-0.01606866344809532,
0.15504097938537598,
-0.009768513962626457,
0.1884472519159317,
0.08863124996423721,
-0.11062977463006973,
0.015856990590691566,
-0.13766887784004211,
-0.059211574494838715,
-0.4576970934867859,
0.07348832488059998,
-0.1006338894367218,
0.3356171250343323,
-0.22497788071632385,
-0.43717527389526367,
-0.0026172357611358166,
-0.06879515200853348,
0.2533336579799652,
-0.2674284875392914,
0.00786930788308382,
-0.059972845017910004,
0.16825149953365326,
-0.20918327569961548,
-0.3979697525501251,
-0.2773378789424896,
0.16169998049736023,
-0.08041802048683167,
0.11210010945796967,
0.3758203983306885,
0.08613177388906479,
0.061435531824827194,
0.19844818115234375,
-0.11173919588327408,
0.06450679898262024,
-0.33599746227264404,
0.29333436489105225,
-0.11332079023122787,
-0.23221780359745026,
-0.2972749173641205,
-0.056919120252132416,
-0.05418248102068901,
0.356483519077301,
-0.551857590675354,
0.1781202107667923,
-0.36432209610939026,
0.19894222915172577,
-0.0058312080800533295,
0.5625965595245361,
-0.0943656861782074,
-0.4863791763782501,
-0.015356030315160751,
0.11361107975244522,
0.1111953854560852,
0.01324048638343811,
0.26537057757377625,
0.21404513716697693,
0.27851101756095886,
0.43177857995033264,
0.13376739621162415,
1.1682614088058472,
0.17215381562709808,
-0.23985932767391205,
-0.21429145336151123,
-0.0006975363940000534,
-0.02674781158566475,
-0.3446093499660492,
-0.2672063410282135,
0.380467027425766,
-0.06511116027832031,
-0.12184096872806549,
0.2086470127105713,
-0.1688447892665863,
-0.2933582663536072,
-0.03751895949244499,
0.12444548308849335,
-0.11183741688728333,
-0.28586819767951965,
0.4226362109184265,
0.09176434576511383,
0.2491028606891632,
0.1349128633737564,
0.08863749355077744,
-0.4993348717689514,
-0.35930192470550537,
-0.052513785660266876,
-0.21201284229755402,
0.4119943380355835,
-0.13164088129997253,
-0.29770997166633606,
-0.13671819865703583,
-0.9755150675773621,
0.21768300235271454,
0.03096957318484783,
0.26737216114997864,
0.06919904053211212,
-0.35081595182418823,
0.0928078293800354,
0.2425125241279602,
0.8538384437561035,
-0.0693192183971405,
-0.11682784557342529,
-0.004631428048014641,
-0.3046585023403168,
-0.41526949405670166,
0.03635263070464134,
-0.09841030836105347,
0.16871732473373413,
0.3588343560695648,
0.052106551826000214,
-0.38088539242744446,
-0.12106548994779587,
0.20531822741031647,
0.22320139408111572,
-0.037071019411087036,
-0.06275873631238937,
-0.02380066178739071,
-0.161163330078125,
0.003785405308008194,
0.1920003443956375,
0.10956179350614548,
0.19188383221626282,
-0.1529380828142166,
0.07673907279968262,
-0.11668570339679718,
0.3052940368652344,
0.16553863883018494,
0.124531090259552,
-0.06460066884756088,
0.6843848824501038,
0.2821182310581207,
-0.004589542746543884,
0.027322839945554733,
0.21222223341464996,
0.03134050965309143,
-0.22508221864700317,
-0.07588498294353485,
0.0017631612718105316,
0.14972184598445892,
0.31837448477745056,
0.41582080721855164,
0.05183658376336098,
-0.10185801237821579,
-0.024469997733831406,
0.4759172201156616,
-0.0445721261203289,
0.2652137577533722,
0.22571338713169098,
0.14802618324756622,
-0.4993140399456024,
-0.5580792427062988,
0.6823277473449707,
0.1741635501384735,
0.16442741453647614,
0.36661210656166077,
-0.12836015224456787,
-0.21077173948287964,
0.3020579218864441,
0.07867530733346939,
0.6478747725486755,
-0.17372475564479828,
0.41722264885902405,
0.31465446949005127,
0.81535804271698,
0.6308779716491699,
-0.09869053959846497,
0.28938353061676025,
-0.12651245296001434,
-0.11746375262737274,
0.0805879756808281,
-0.09408551454544067,
-0.28301212191581726,
0.21022917330265045,
0.11972124874591827,
0.26076334714889526,
-0.057768069207668304,
0.2022133320569992,
-0.29769861698150635,
0.2678624391555786,
0.12155800312757492,
-0.48882856965065,
-0.14901097118854523,
0.00786309689283371,
-0.02505534142255783,
0.18971450626850128,
-0.07386802136898041,
0.12315995246171951,
0.011591579765081406,
0.0521979033946991,
-0.058684561401605606,
-0.19830211997032166,
-0.2293962836265564,
0.2710307836532593,
-0.10330317914485931,
-0.3641124963760376,
-0.05811283364892006,
0.22462022304534912,
0.05541211739182472,
0.1029740571975708,
0.05191371962428093,
-0.13790905475616455,
0.07405071705579758,
0.06709839403629303,
0.2409999966621399,
-0.2721341550350189,
0.4046170711517334,
0.07199370115995407,
0.09430857747793198,
0.09115274250507355,
-0.01582704484462738,
-0.2669842839241028,
-0.3697361946105957,
0.10587804764509201,
0.15801826119422913,
-0.09575437754392624,
-0.5968509316444397,
0.26843321323394775,
-0.2813650071620941,
0.050322141498327255,
0.0037911487743258476,
-0.07319100201129913,
-0.08497708290815353,
0.7211557030677795,
-0.2573438286781311,
-0.1843230426311493,
0.049647219479084015,
0.18478724360466003,
0.1249704584479332,
-0.20624752342700958,
0.39218708872795105,
0.34059444069862366,
-0.17576134204864502,
0.032253749668598175,
0.26644647121429443,
0.17982524633407593,
-0.0468793623149395,
0.14887338876724243,
0.07246504724025726,
0.3175615072250366,
0.045093897730112076,
0.43938586115837097,
-0.14738962054252625,
-0.14339160919189453,
-0.18480516970157623,
0.05079720914363861,
-0.3096585273742676,
0.21692125499248505,
0.17301277816295624,
0.24402399361133575,
0.06642471253871918,
0.20085333287715912,
0.08331259340047836,
0.0856669470667839,
-0.16937102377414703,
0.04683120548725128,
0.04153890907764435,
0.2322382628917694,
-0.07826748490333557,
0.09800224006175995,
0.11464740335941315,
0.18793030083179474,
-0.007133077830076218,
0.1172512099146843,
-0.09326262027025223,
-0.2555658221244812,
0.012203380465507507,
0.14957083761692047,
0.120091512799263,
-0.23211154341697693,
0.11481647938489914,
-0.24946604669094086,
-0.2574740946292877,
-0.32814261317253113,
0.5115009546279907,
0.19161081314086914,
-0.016907118260860443,
-0.2077609896659851,
0.06093163415789604,
0.1362428367137909,
0.09351955354213715,
0.23893949389457703,
0.011246100068092346,
0.13605065643787384,
0.20097076892852783,
0.1953350156545639,
0.09300747513771057,
-0.09666303545236588,
-0.24220247566699982,
-0.09266681224107742,
0.21893969178199768,
0.049176353961229324,
-0.051662176847457886,
-0.25048524141311646,
-0.30246400833129883,
0.07738888263702393,
0.1929146647453308,
0.3313833773136139,
-0.11758781224489212,
-0.2975836992263794,
0.23201203346252441,
0.09400396794080734,
0.06180359423160553,
-0.024388715624809265,
0.18373620510101318,
-0.06884106248617172,
0.13890984654426575,
0.3248259723186493,
-0.004117537289857864,
0.20212408900260925,
-0.3089790940284729,
-0.04328888654708862,
0.3552227020263672,
-0.14687836170196533,
0.019645076245069504,
0.277255117893219,
0.009076554328203201,
-0.07087437808513641,
0.029867809265851974,
0.2787351906299591,
0.19382083415985107,
0.14486703276634216,
0.30686303973197937,
0.3006328046321869,
-0.01352548599243164,
-0.019471142441034317,
-0.11823388189077377,
-0.4309399425983429,
-0.21602796018123627,
0.21034137904644012,
-0.23220491409301758,
0.41290050745010376,
-0.09530715644359589,
-0.03142660856246948,
-0.1800401359796524,
-0.29944512248039246,
-0.07064278423786163,
0.26950711011886597,
-0.1646302044391632,
-0.1954699605703354,
-0.2913830280303955,
0.0539112463593483,
0.3463342785835266,
0.31586754322052,
-0.12977609038352966,
-0.39055895805358887,
-0.008900068700313568,
0.1537628173828125,
0.09233499318361282,
-0.05727473646402359,
0.05853305384516716,
-0.17113500833511353,
0.40782326459884644,
0.0008701197803020477,
0.03538454324007034,
-0.23851843178272247,
-0.10402394831180573,
-0.352591872215271,
0.18433977663516998,
0.23110581934452057,
0.24851758778095245,
-0.18204078078269958,
0.25313347578048706,
-0.0024801529943943024,
0.1195366382598877,
-0.09975926578044891,
0.11010702699422836,
-0.03168937563896179,
-0.08664698898792267,
0.3502887785434723,
-0.0026461752131581306,
-0.053360167890787125,
-0.012874867767095566,
0.10489079356193542,
-0.10128036141395569,
-0.2076445370912552,
-0.10980453342199326,
0.22515200078487396,
-0.13999006152153015,
-0.12393911182880402,
-0.03635834902524948,
-0.3962472677230835,
-0.10252034664154053,
0.4084663391113281,
-0.3164229691028595,
0.05282081663608551,
0.061071429401636124,
0.04665696620941162,
-0.5405780673027039,
0.7912291288375854,
0.2515077292919159,
0.316876083612442,
-0.4403223991394043,
0.19565309584140778,
-0.24044814705848694,
-0.21351808309555054,
-0.2580782473087311,
-0.020423240959644318,
0.09346554428339005,
0.3934061527252197,
0.01632513850927353,
0.25440770387649536,
-0.3146834373474121,
-0.29667147994041443,
-0.30432626605033875,
0.2985682487487793,
-0.15391941368579865,
-0.030977223068475723,
-0.5753909945487976,
0.22060327231884003,
0.03126543015241623,
-0.3881160616874695,
0.3129315674304962,
-0.16373084485530853,
-0.12295018136501312,
-0.26611417531967163,
0.18413402140140533,
0.35752955079078674,
0.2094394713640213,
0.218129500746727,
-0.00555066391825676,
0.18244163691997528,
0.18047460913658142,
0.03650358319282532,
-0.15490253269672394,
0.19351164996623993,
-0.2196911722421646,
0.16349264979362488,
-0.00664103776216507,
0.34924012422561646,
-0.04348451644182205,
-0.2172168344259262,
0.012838797643780708,
0.03588169813156128,
0.21512041985988617,
-0.15706413984298706,
0.19819092750549316,
-0.2509368360042572,
0.05483773350715637,
0.053704120218753815,
0.42354702949523926,
0.6069495677947998,
-0.21014776825904846,
0.11473636329174042,
-0.33051401376724243,
-0.25748327374458313,
0.4739019572734833,
-0.7701928019523621,
-0.36198756098747253,
-0.3649836480617523,
0.003986716270446777,
0.08367188274860382,
0.21293044090270996,
-0.18462523818016052,
0.03485999256372452,
0.24425607919692993,
-0.16082045435905457,
-0.3659535348415375,
0.2732793688774109,
-0.14067913591861725,
-0.09610874950885773,
-0.08903726935386658,
0.1838723123073578,
-0.1871088147163391,
-0.3062254786491394,
-0.3018529713153839,
-0.38976186513900757
] |
https://github.com/huggingface/datasets/issues/312 | [Feature request] Add `shard()` method to dataset | Hi Jared,
Interesting, thanks for raising this question. You can also do that after loading with `dataset.select()` or `dataset.filter()` which let you keep only a specific subset of rows in a dataset.
What is your use-case for sharding? | Currently, to shard a dataset into 10 pieces on different ranks, you can run
```python
rank = 3 # for example
size = 10
dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]")
```
However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this?
```python
rank = 3
size = 64
dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size)
```
TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code. | 38 | [Feature request] Add `shard()` method to dataset
Currently, to shard a dataset into 10 pieces on different ranks, you can run
```python
rank = 3 # for example
size = 10
dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]")
```
However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this?
```python
rank = 3
size = 64
dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size)
```
TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code.
Hi Jared,
Interesting, thanks for raising this question. You can also do that after loading with `dataset.select()` or `dataset.filter()` which let you keep only a specific subset of rows in a dataset.
What is your use-case for sharding? | [
-0.09021899104118347,
0.03354434669017792,
-0.13852663338184357,
-0.010493583977222443,
-0.125320702791214,
-0.03916246071457863,
0.45831575989723206,
0.4131176173686981,
-0.1107407659292221,
0.18661808967590332,
0.1924448013305664,
0.27016523480415344,
-0.2045644074678421,
0.3323415219783783,
0.5994428396224976,
-0.4415320158004761,
-0.10181889683008194,
0.08527125418186188,
0.1498790681362152,
0.18688128888607025,
-0.06236157938838005,
-0.09343954920768738,
-0.05210360139608383,
-0.37565284967422485,
-0.07383833825588226,
0.08363177627325058,
-0.10620561987161636,
-0.21920835971832275,
0.24959701299667358,
-0.20339718461036682,
0.19814930856227875,
0.012835724279284477,
0.1764354705810547,
0.10890419781208038,
-0.00011932759662158787,
-0.16190262138843536,
0.17325232923030853,
0.14185163378715515,
-0.040761303156614304,
-0.13415859639644623,
-0.43638738989830017,
-0.3930358290672302,
-0.02486041933298111,
-0.26852408051490784,
-0.07632586359977722,
0.46008411049842834,
0.03768165782094002,
0.05049634724855423,
0.41580116748809814,
0.045272618532180786,
0.05745839327573776,
0.014458831399679184,
0.07067425549030304,
0.2210829108953476,
0.4204324185848236,
0.1398421972990036,
-0.2779013216495514,
0.006835427135229111,
-0.02589385211467743,
0.23001126945018768,
0.17238622903823853,
0.1819726824760437,
-0.00768243707716465,
-0.1983829140663147,
0.15142658352851868,
0.14207716286182404,
-0.27852851152420044,
-0.16847850382328033,
-0.07833100855350494,
0.48184630274772644,
-0.29340413212776184,
-0.08418109267950058,
-0.31708839535713196,
-0.45900648832321167,
0.26009002327919006,
-0.7193076610565186,
-0.3265035152435303,
0.25902533531188965,
-0.21548664569854736,
-0.16172440350055695,
-0.15394417941570282,
-0.2942081391811371,
-0.24694177508354187,
0.0869937464594841,
0.11843991279602051,
0.20547454059123993,
0.10943496972322464,
-0.006646163761615753,
0.25969937443733215,
-0.07846001535654068,
-0.13023003935813904,
0.048791952431201935,
0.20604947209358215,
0.12324851751327515,
-0.6726329326629639,
-0.3496163487434387,
0.15128567814826965,
0.3256615996360779,
0.28872811794281006,
0.12944671511650085,
0.0897553563117981,
0.32288315892219543,
0.1871471256017685,
0.07154713571071625,
0.02167263813316822,
-0.12126065790653229,
0.2701050043106079,
-0.08776826411485672,
-0.05794844776391983,
-0.2449847161769867,
0.26638227701187134,
0.09723064303398132,
0.23987838625907898,
-0.23176321387290955,
-0.0781477838754654,
-0.11928004771471024,
-0.150943785905838,
0.08511431515216827,
0.03451010584831238,
-0.2624322175979614,
0.3014732897281647,
-0.2090817242860794,
0.27986156940460205,
0.03319142386317253,
0.24755923449993134,
-0.22528886795043945,
-0.3614954352378845,
0.055338457226753235,
-0.1140262708067894,
-0.2651710510253906,
-0.05614205822348595,
0.03094620630145073,
-0.15025506913661957,
0.17249873280525208,
0.043240275233983994,
-0.28084617853164673,
-0.22952298820018768,
-0.09294573962688446,
0.2970178425312042,
0.11923539638519287,
0.09933461248874664,
0.10044713318347931,
0.11981318891048431,
0.18193353712558746,
-0.3314208984375,
-0.4015157222747803,
-0.0938129723072052,
-0.05589219927787781,
-0.33443543314933777,
0.0863516628742218,
-0.48459309339523315,
-0.35993659496307373,
-0.12703514099121094,
0.049937568604946136,
0.03257708624005318,
-0.1788465529680252,
-0.6782970428466797,
0.5066890716552734,
0.1495947539806366,
-0.1023566871881485,
0.03114258497953415,
-0.16726326942443848,
-0.7003090381622314,
-0.21023978292942047,
0.3099249005317688,
-0.04758423566818237,
-0.1396569162607193,
-0.157716304063797,
-0.7277148962020874,
0.1584015190601349,
0.13720953464508057,
0.06912852823734283,
-0.09614059329032898,
-0.004977457225322723,
0.11605437099933624,
0.7563391923904419,
0.9136988520622253,
0.14928314089775085,
-0.36362501978874207,
0.2881661057472229,
-0.07137228548526764,
-0.22638003528118134,
0.10190097242593765,
0.28323110938072205,
0.31270456314086914,
-0.06040745973587036,
0.113960400223732,
0.3264339566230774,
-0.22084172070026398,
-0.13736167550086975,
0.006382383406162262,
-0.13728955388069153,
0.2847057580947876,
0.43712687492370605,
0.11759258806705475,
-0.04392888396978378,
0.4259580075740814,
-0.22729815542697906,
0.22275438904762268,
-0.10660348832607269,
-0.013787727802991867,
-0.309063196182251,
0.11726449429988861,
0.07238481193780899,
-0.06674589216709137,
-0.5428256392478943,
-0.08492206782102585,
0.07709275931119919,
0.003750275820493698,
-0.09329576790332794,
-0.022390171885490417,
-0.30467432737350464,
0.09485139697790146,
-0.0015550777316093445,
0.11647266894578934,
0.1285894513130188,
-0.043085552752017975,
-0.25861069560050964,
0.08330057561397552,
-0.15956272184848785,
-0.36286747455596924,
-0.42733269929885864,
-0.46615296602249146,
-0.0019469684921205044,
-0.3521486222743988,
0.42062968015670776,
0.3815576732158661,
-0.20370028913021088,
-0.09613680094480515,
0.4029863774776459,
0.01170395314693451,
-0.2372407615184784,
0.2422439455986023,
0.27404314279556274,
0.08533886820077896,
-0.11358131468296051,
0.05203750729560852,
0.3304303288459778,
0.17167508602142334,
0.17073728144168854,
-0.2814115285873413,
-0.028745710849761963,
-0.22435078024864197,
-0.07521301507949829,
-0.04515909403562546,
0.4841744303703308,
-0.425682008266449,
0.400871217250824,
-0.10611297190189362,
0.006309909746050835,
-0.013832004740834236,
-0.09322653710842133,
-0.1130579486489296,
-0.18250733613967896,
0.07057543843984604,
0.2005535364151001,
-0.1365467756986618,
-0.2851177752017975,
0.061635151505470276,
0.1975681632757187,
0.530497133731842,
-0.22339338064193726,
0.2951187193393707,
0.38103216886520386,
0.38919806480407715,
0.10837400704622269,
0.1387317031621933,
0.48421213030815125,
0.4051707983016968,
0.17746290564537048,
0.04637570679187775,
0.2085748314857483,
0.06841402500867844,
-0.20035265386104584,
0.04882658272981644,
0.21361896395683289,
-0.2074344903230667,
0.09623317420482635,
0.030072709545493126,
0.004094207659363747,
-0.17402738332748413,
-0.1103285402059555,
-0.10590587556362152,
0.020382879301905632,
-0.04596737027168274,
-0.15077365934848785,
-0.2782156765460968,
0.14700499176979065,
-0.16934621334075928,
0.19821056723594666,
-0.2531125843524933,
0.02150522731244564,
0.0074574388563632965,
-0.13648094236850739,
-0.15254725515842438,
0.09693779796361923,
0.1512625813484192,
0.4196152091026306,
-0.14363574981689453,
0.0009904783219099045,
0.09769454598426819,
-0.06512783467769623,
0.21221578121185303,
-0.012715415097773075,
0.1586863100528717,
0.07458797097206116,
0.5542146563529968,
-0.052770018577575684,
-0.10787539184093475,
-0.19061720371246338,
-0.44976580142974854,
-0.032291121780872345,
-0.276120126247406,
0.28230011463165283,
0.18095408380031586,
0.06856238842010498,
-0.35657310485839844,
-0.15031668543815613,
-0.0005946438759565353,
0.014513546600937843,
0.031805239617824554,
0.11614948511123657,
0.1840158849954605,
0.32391536235809326,
-0.06852321326732635,
0.07589004933834076,
-0.11159703880548477,
-0.17511862516403198,
0.34685254096984863,
0.1412595957517624,
0.1919833868741989,
-0.28044959902763367,
-0.04938197508454323,
0.19525817036628723,
-0.03539852052927017,
-0.10599339008331299,
0.11416151374578476,
-0.3425091505050659,
0.24139481782913208,
-0.32419195771217346,
-0.1880902200937271,
-0.15520356595516205,
-0.0892995297908783,
-0.03422597423195839,
0.6443937420845032,
-0.13537916541099548,
-0.02859676256775856,
-0.024996118620038033,
0.18818816542625427,
-0.07915226370096207,
0.014095960184931755,
0.4491419196128845,
-0.16322340071201324,
0.15474270284175873,
0.21476340293884277,
0.16155163943767548,
-0.026202887296676636,
0.025895949453115463,
0.06133906543254852,
0.3198084533214569,
0.7087906002998352,
0.34687209129333496,
0.8575091361999512,
0.08324818313121796,
-0.0617540217936039,
-0.10293221473693848,
-0.12733027338981628,
-0.15566568076610565,
-0.08135130256414413,
-0.14528970420360565,
0.21217495203018188,
0.052363187074661255,
0.10284507274627686,
0.23888163268566132,
0.08313503116369247,
-0.13380193710327148,
0.07355212420225143,
-0.5296797156333923,
0.06410964578390121,
-0.3044586777687073,
0.2565578818321228,
-0.14388084411621094,
0.4951169192790985,
-0.2542153596878052,
-0.12137346714735031,
-0.009549657814204693,
-0.380679726600647,
0.009929927065968513,
0.15261700749397278,
0.24757522344589233,
-0.20419366657733917,
-0.34711503982543945,
-0.3430950939655304,
-0.23645314574241638,
0.2977697551250458,
0.4020831882953644,
-0.027021370828151703,
-0.047870706766843796,
-0.035224996507167816,
-0.08812645077705383,
0.19387590885162354,
0.39966392517089844,
-0.3142029047012329,
0.010429754853248596,
-0.09939113259315491,
-0.25525254011154175,
-0.1477760523557663,
0.31646057963371277,
0.09157302975654602,
-0.07332029938697815,
-0.12869687378406525,
-0.09114977717399597,
-0.44038626551628113,
0.02241416834294796,
0.41559624671936035,
0.07757263630628586,
-0.04314260557293892,
-0.14725598692893982,
-0.1289380043745041,
0.18353334069252014,
0.012325750663876534,
-0.025303781032562256,
-0.0034033432602882385,
-0.00765852490440011,
0.03447381407022476,
-0.0503455214202404,
-0.19795076549053192,
-0.18434342741966248,
0.0883338674902916,
-0.016794485971331596,
-0.08803810179233551,
0.41438186168670654,
0.010363876819610596,
-0.08085453510284424,
-0.20355501770973206,
-0.14489658176898956,
-0.01312856376171112,
0.034577950835227966,
-0.08989107608795166,
-0.24190810322761536,
0.11916933953762054,
0.5527588129043579,
-0.07340089976787567,
-0.13865607976913452,
0.2675366699695587,
-0.03827114775776863,
0.41986316442489624,
-0.17966651916503906,
-0.03939284011721611,
0.3280026316642761,
-0.04873969778418541,
-0.2213152050971985,
-0.4990401268005371,
0.8817314505577087,
-0.16768671572208405,
-0.031204447150230408,
0.2908240556716919,
0.5615339279174805,
-0.318047434091568,
0.2762520909309387,
0.368899941444397,
0.8417685627937317,
-0.018597736954689026,
0.1977701634168625,
-0.005354009568691254,
0.2951347827911377,
0.5957832336425781,
-0.023992961272597313,
0.16937150061130524,
-0.0181187242269516,
-0.20973972976207733,
-0.11495469510555267,
-0.031705085188150406,
0.17445500195026398,
0.29649218916893005,
0.07740257680416107,
0.10004124790430069,
-0.06266696751117706,
0.19964958727359772,
-0.0005220100283622742,
0.271355003118515,
-0.09049287438392639,
-0.20580044388771057,
-0.17278404533863068,
0.0736934021115303,
-0.06169285625219345,
-0.5089699029922485,
-0.13054817914962769,
0.06081720441579819,
0.38814589381217957,
0.16752395033836365,
-0.21870861947536469,
-0.19793632626533508,
0.1505226343870163,
0.35633087158203125,
0.03537175804376602,
-0.6842536926269531,
0.23943433165550232,
0.18100015819072723,
0.10213354229927063,
0.06435176730155945,
0.05248398706316948,
0.16872291266918182,
-0.33698660135269165,
0.01781611144542694,
0.09219354391098022,
-0.16644242405891418,
0.16321007907390594,
-0.1282482147216797,
-0.20167362689971924,
-0.055815860629081726,
0.5025722980499268,
-0.7185157537460327,
-0.5703022480010986,
0.3079189658164978,
0.08598053455352783,
-0.03344466909766197,
0.035097721964120865,
0.20571553707122803,
-0.0551435761153698,
-0.06775292009115219,
0.1048271507024765,
0.08798997849225998,
-0.23922178149223328,
0.16275900602340698,
0.05028354004025459,
0.15981630980968475,
-0.0491301603615284,
-0.010662361979484558,
-0.04907740652561188,
0.28989624977111816,
0.2006637156009674,
-0.14720404148101807,
-0.03747844323515892,
-0.12136955559253693,
0.048264048993587494,
-0.07728923112154007,
0.2324201762676239,
-0.13162736594676971,
-0.21829891204833984,
0.4074469804763794,
-0.07881401479244232,
-0.21872615814208984,
-0.06516949832439423,
0.01123543456196785,
-0.11798292398452759,
-0.39170241355895996,
0.09559349715709686,
0.05077705532312393,
0.12088795006275177,
0.16017761826515198,
-0.37323129177093506,
0.3524293005466461,
-0.2587754726409912,
0.32084915041923523,
-0.1767922043800354,
0.07860304415225983,
0.27648162841796875,
0.28897860646247864,
0.35630667209625244,
0.1760888695716858,
-0.11934547871351242,
0.08954662084579468,
-0.04829518869519234,
0.2396865040063858,
-0.19328223168849945,
-0.16025137901306152,
-0.32072746753692627,
0.059937670826911926,
0.031345658004283905,
0.12892387807369232,
-0.08888914436101913,
-0.03394462540745735,
-0.2797551155090332,
-0.094541996717453,
0.13140791654586792,
-0.09257660806179047,
0.031040485948324203,
0.3647342324256897,
0.5323243141174316,
-0.09476367384195328,
-0.036199383437633514,
0.07605673372745514,
-0.0945940613746643,
0.21457737684249878,
0.040208932012319565,
0.36858585476875305,
0.0791761502623558,
0.2802959382534027,
-0.12417173385620117,
0.1485522985458374,
0.18645334243774414,
-0.29942378401756287,
0.3278995752334595,
0.03383485972881317,
0.01552494615316391,
-0.07487767934799194,
0.40800970792770386,
0.18038654327392578,
-0.11504939943552017,
0.01498018391430378,
0.0850791484117508,
0.1334756463766098,
-0.14757519960403442,
-0.07433663308620453,
0.3132946789264679,
0.2744499742984772,
0.035672713071107864,
0.20530937612056732,
-0.24301156401634216,
0.16976147890090942,
-0.15949879586696625,
-0.24895817041397095,
0.1026420071721077,
-0.6579888463020325,
0.18404307961463928,
0.2643781900405884,
0.04333188012242317,
-0.18082983791828156,
0.019310694187879562,
0.12769606709480286,
0.016652584075927734,
0.18819087743759155,
-0.16838106513023376,
0.8092702031135559,
-0.18404820561408997,
-0.12789811193943024,
0.18484854698181152,
0.03169618919491768,
-0.20594482123851776,
0.5624417066574097,
-0.03168182075023651,
0.10917676240205765,
-0.028933458030223846,
0.3271667957305908,
0.25321659445762634,
-0.029078353196382523,
0.07395245879888535,
0.2886965870857239,
0.2115386724472046,
-0.07323385775089264,
-0.12577304244041443,
0.04074601083993912,
-0.20360474288463593,
0.054089341312646866,
0.21316692233085632,
-0.1853099912405014,
0.29704657196998596,
0.3495040535926819,
0.23272161185741425,
0.18285878002643585,
0.2566036880016327,
-0.011837434023618698,
0.4107111394405365,
-0.2600879669189453,
-0.4787485897541046,
0.02838216722011566,
0.09895293414592743,
0.16305552423000336,
-0.13802552223205566,
-0.11953209340572357,
0.0745999813079834,
-0.03685777634382248,
0.15594078600406647,
-0.22964070737361908,
0.14350859820842743,
-0.13774999976158142,
0.15871544182300568,
0.042050331830978394,
0.3200649619102478,
0.14990384876728058,
0.022486334666609764,
-0.04908406361937523,
0.18503785133361816,
0.13093149662017822,
0.019751226529479027,
-0.9951918125152588,
0.49711617827415466,
0.07976359128952026,
-0.3842937648296356,
-0.2463442087173462,
0.05874006077647209,
0.05088166147470474,
-0.1601070761680603,
0.3139054477214813,
-0.2779947817325592,
-0.17117062211036682,
-0.021956048905849457,
0.01743355765938759,
-0.054586198180913925,
0.3563884198665619,
-0.2912064492702484,
0.13534905016422272,
-0.1470324844121933,
-0.2613181471824646,
-0.28694552183151245,
-0.377788245677948,
0.19083257019519806,
-0.04585443437099457,
0.2734176218509674,
0.12319241464138031,
-0.1553800106048584,
0.37420690059661865,
-0.30060434341430664,
-0.7832523584365845,
-0.391222208738327,
-0.08668413758277893,
-0.056223250925540924,
0.10229869186878204,
-0.4334239363670349,
-0.06305357813835144,
-0.015994291752576828,
-0.18792080879211426,
0.05093642324209213,
-0.13209578394889832,
-0.15966284275054932,
0.053098589181900024,
0.13793852925300598,
0.11198385059833527,
0.03309667110443115,
0.0941125750541687,
0.04771609604358673,
0.25229090452194214,
0.05494768172502518,
0.18030080199241638,
-0.012247186154127121,
-0.003487952519208193,
-0.2898727357387543,
0.525407075881958,
-0.14953278005123138,
0.22075659036636353,
0.010190805420279503,
-0.26805102825164795,
-0.16623984277248383,
0.28229042887687683,
-0.09883391857147217,
-0.14224214851856232,
-0.052184149622917175,
-0.09364423155784607,
0.13604214787483215,
0.08633775264024734,
0.1389867514371872,
0.4783400893211365,
-0.2211991548538208,
0.11717629432678223,
0.21130357682704926,
0.010494887828826904,
0.1683928221464157,
-0.679317057132721,
-0.20719803869724274,
-0.04066029563546181,
0.3552737832069397,
0.04233749210834503,
-0.12638956308364868,
-0.41311514377593994,
-0.4194977283477783,
0.36565136909484863,
-0.006235405802726746,
0.16001388430595398,
0.4764113426208496,
0.2468644380569458,
-0.27287328243255615,
0.056102555245161057,
-0.011411391198635101,
-0.11013773828744888,
-0.14233854413032532,
0.0051888152956962585,
-0.6049830913543701
] |
https://github.com/huggingface/datasets/issues/312 | [Feature request] Add `shard()` method to dataset | Thanks for the pointer to those functions! It's still a little more verbose since you have to manually calculate which ids each rank would keep, but definitely works.
My use case is multi-node, multi-GPU training and avoiding global batches of duplicate elements. I'm using horovod. You can shuffle indices, or set random seeds, but explicitly sharding the dataset up front is the safest and clearest way I've found to do so. | Currently, to shard a dataset into 10 pieces on different ranks, you can run
```python
rank = 3 # for example
size = 10
dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]")
```
However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this?
```python
rank = 3
size = 64
dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size)
```
TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code. | 71 | [Feature request] Add `shard()` method to dataset
Currently, to shard a dataset into 10 pieces on different ranks, you can run
```python
rank = 3 # for example
size = 10
dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]")
```
However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this?
```python
rank = 3
size = 64
dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size)
```
TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code.
Thanks for the pointer to those functions! It's still a little more verbose since you have to manually calculate which ids each rank would keep, but definitely works.
My use case is multi-node, multi-GPU training and avoiding global batches of duplicate elements. I'm using horovod. You can shuffle indices, or set random seeds, but explicitly sharding the dataset up front is the safest and clearest way I've found to do so. | [
-0.09040021896362305,
0.01625220477581024,
-0.12798930704593658,
-0.07298345863819122,
-0.05889397859573364,
-0.07297801971435547,
0.49915608763694763,
0.40996649861335754,
-0.055477190762758255,
0.20991535484790802,
0.23607932031154633,
0.32115909457206726,
-0.3143123686313629,
0.4003586769104004,
0.6131047606468201,
-0.43361473083496094,
-0.032295696437358856,
0.009386114776134491,
0.21557390689849854,
0.08773455023765564,
-0.0656636506319046,
-0.14018620550632477,
-0.04003755748271942,
-0.3743531107902527,
-0.0052032871171832085,
0.10193337500095367,
-0.18085357546806335,
-0.287214457988739,
0.20499993860721588,
-0.216339573264122,
0.16605576872825623,
0.058209847658872604,
0.18237613141536713,
0.16010548174381256,
-0.00011838043428724632,
-0.19144654273986816,
0.1588505506515503,
0.11808854341506958,
0.001273447647690773,
-0.1392814964056015,
-0.43284180760383606,
-0.40101158618927,
-0.03401937335729599,
-0.2599125802516937,
-0.011953337118029594,
0.4012713134288788,
0.0698876678943634,
-0.012516364455223083,
0.39254677295684814,
0.0025391262024641037,
0.05161294341087341,
-0.060711443424224854,
0.15445539355278015,
0.1872902363538742,
0.4036009907722473,
0.2214672863483429,
-0.28229403495788574,
-0.008945422247052193,
-0.07868631184101105,
0.12541478872299194,
0.11366814374923706,
0.12171916663646698,
-0.027573680505156517,
-0.10820735991001129,
0.15574514865875244,
0.17655864357948303,
-0.3047386407852173,
-0.15316139161586761,
-0.19506824016571045,
0.47811752557754517,
-0.3025987446308136,
-0.15099230408668518,
-0.413248747587204,
-0.38790854811668396,
0.2934776246547699,
-0.7473739385604858,
-0.307472825050354,
0.2714197337627411,
-0.24189257621765137,
-0.2754254639148712,
-0.23800542950630188,
-0.2768074572086334,
-0.2071874588727951,
0.07773745805025101,
0.222138911485672,
0.2638654112815857,
0.1681627333164215,
-0.01753333956003189,
0.33115053176879883,
-0.04026229679584503,
-0.09459372609853745,
0.07552408427000046,
0.20972290635108948,
0.11884696036577225,
-0.6140282154083252,
-0.3843817710876465,
0.12186457216739655,
0.3380559980869293,
0.34694704413414,
0.11593309789896011,
0.13813556730747223,
0.27206629514694214,
0.17449206113815308,
0.030086565762758255,
0.03917323425412178,
-0.09181618690490723,
0.2205110490322113,
-0.07233035564422607,
-0.09077076613903046,
-0.22893664240837097,
0.21650803089141846,
0.11328230053186417,
0.21267056465148926,
-0.278508722782135,
-0.014255227521061897,
0.008166256360709667,
-0.22908535599708557,
0.11695492267608643,
0.11371023207902908,
-0.2728077173233032,
0.24447238445281982,
-0.20837900042533875,
0.28253284096717834,
-0.03208189457654953,
0.20959864556789398,
-0.20823290944099426,
-0.32777780294418335,
0.034966904670000076,
-0.15316034853458405,
-0.3048241138458252,
-0.047777459025382996,
0.07216912508010864,
-0.1881655603647232,
0.22568032145500183,
-0.0001619979739189148,
-0.2330840528011322,
-0.27420103549957275,
-0.06486407667398453,
0.4346822500228882,
0.17861627042293549,
0.08406464755535126,
0.21263465285301208,
0.13578319549560547,
0.08894187211990356,
-0.25725069642066956,
-0.37145358324050903,
-0.03255506977438927,
-0.04157407209277153,
-0.35416367650032043,
0.04917413741350174,
-0.587732195854187,
-0.3894832730293274,
-0.12143012881278992,
0.03791039437055588,
0.06855101138353348,
-0.1741911619901657,
-0.661984920501709,
0.49210646748542786,
0.0940612331032753,
-0.15064987540245056,
0.03673947602510452,
-0.1810276359319687,
-0.668730616569519,
-0.21301119029521942,
0.3053421378135681,
0.0020802468061447144,
-0.06419789791107178,
-0.13691778481006622,
-0.7781389355659485,
0.17454177141189575,
0.1327817738056183,
-0.009821262210607529,
-0.09796974807977676,
0.003686189651489258,
0.06320488452911377,
0.6894862651824951,
0.7901321053504944,
0.07992444932460785,
-0.25932082533836365,
0.24964798986911774,
-0.04985802248120308,
-0.26486390829086304,
0.09047345072031021,
0.3024190664291382,
0.2453378140926361,
-0.0833156555891037,
0.09769205749034882,
0.35360264778137207,
-0.24859195947647095,
-0.07417482882738113,
0.00004334747791290283,
-0.1481003761291504,
0.2624676823616028,
0.4019245207309723,
0.1613716334104538,
-0.09980512410402298,
0.4458763301372528,
-0.23146946728229523,
0.23518112301826477,
-0.0646495670080185,
-0.044908493757247925,
-0.19559085369110107,
0.1874006986618042,
0.04018675535917282,
-0.11985307186841965,
-0.4801623523235321,
-0.021148845553398132,
0.06155601888895035,
0.01889151707291603,
-0.0062780119478702545,
0.0000306740403175354,
-0.2893604040145874,
0.16098731756210327,
-0.01481354795396328,
0.015560518950223923,
0.0897698774933815,
-0.02488771080970764,
-0.22941172122955322,
0.07180652022361755,
-0.16655953228473663,
-0.3250158131122589,
-0.42096203565597534,
-0.41539648175239563,
-0.0026581722777336836,
-0.3153286576271057,
0.4252646267414093,
0.33516842126846313,
-0.1314561814069748,
-0.12511718273162842,
0.3501635789871216,
0.010608561336994171,
-0.1990661919116974,
0.23249930143356323,
0.3144400119781494,
0.12395934760570526,
-0.18518517911434174,
0.13843128085136414,
0.3185563385486603,
0.16223157942295074,
0.11509440839290619,
-0.34279271960258484,
0.021770022809505463,
-0.28123313188552856,
-0.020155828446149826,
-0.0249478742480278,
0.48348546028137207,
-0.45365965366363525,
0.3446878492832184,
-0.09482021629810333,
0.04139798879623413,
-0.06749153137207031,
-0.032281823456287384,
-0.08210509270429611,
-0.15489181876182556,
0.017099663615226746,
0.2470051348209381,
-0.1021990031003952,
-0.28810110688209534,
0.11009129881858826,
0.1803695261478424,
0.5856354236602783,
-0.16341985762119293,
0.28198856115341187,
0.2988928556442261,
0.4121260941028595,
0.11757458001375198,
0.10007776319980621,
0.4900335371494293,
0.3577456474304199,
0.18895001709461212,
0.054069943726062775,
0.1835538148880005,
0.007465447299182415,
-0.15628035366535187,
0.01770593971014023,
0.13347306847572327,
-0.1327422857284546,
0.08750716596841812,
0.06981933116912842,
-0.04966511204838753,
-0.14107728004455566,
-0.17633479833602905,
-0.004980143159627914,
0.011095759458839893,
-0.0749940574169159,
-0.22840967774391174,
-0.2371109575033188,
0.2976139187812805,
-0.2259354591369629,
0.12981010973453522,
-0.31222841143608093,
0.011635158210992813,
0.04768223315477371,
-0.15256905555725098,
-0.14050984382629395,
0.14760926365852356,
0.20230966806411743,
0.3973848819732666,
-0.09707345068454742,
-0.04766366630792618,
0.212417334318161,
-0.06444023549556732,
0.1698092520236969,
-0.012955859303474426,
0.21716547012329102,
0.05149111524224281,
0.5093239545822144,
0.035814687609672546,
-0.07438865303993225,
-0.25292840600013733,
-0.48157718777656555,
-0.05348826199769974,
-0.2781824469566345,
0.23170320689678192,
0.15686693787574768,
-0.032728686928749084,
-0.40877240896224976,
-0.1373492032289505,
0.0282865259796381,
-0.14509624242782593,
-0.07189583778381348,
0.14045174419879913,
0.15676818788051605,
0.28977513313293457,
-0.07629511505365372,
0.09760181605815887,
-0.11896555870771408,
-0.12357594072818756,
0.31685179471969604,
0.13043729960918427,
0.22001056373119354,
-0.28140267729759216,
-0.010223100893199444,
0.1061314046382904,
-0.029449665918946266,
-0.10924429446458817,
0.18495528399944305,
-0.3109932839870453,
0.23821283876895905,
-0.3582485616207123,
-0.1694326400756836,
-0.2485964298248291,
-0.12500914931297302,
-0.06421460211277008,
0.749172568321228,
-0.04038237780332565,
-0.06685677170753479,
0.010884263552725315,
0.14395923912525177,
-0.10543783009052277,
0.03169776126742363,
0.5483802556991577,
-0.057220399379730225,
0.13602600991725922,
0.2081536054611206,
0.266007661819458,
0.03470383584499359,
0.030690446496009827,
0.09581565856933594,
0.29536429047584534,
0.6451734900474548,
0.3203069865703583,
0.8731662034988403,
0.09872102737426758,
-0.032791148871183395,
-0.09869401156902313,
-0.1933799833059311,
-0.1365433633327484,
-0.029642976820468903,
-0.12958022952079773,
0.1816161870956421,
0.0352497324347496,
0.02402886003255844,
0.20457568764686584,
0.04473045840859413,
-0.11479058116674423,
0.020647898316383362,
-0.39970874786376953,
0.06642095744609833,
-0.24721291661262512,
0.19350667297840118,
-0.09223669767379761,
0.4955626130104065,
-0.35167673230171204,
-0.13734516501426697,
-0.11739225685596466,
-0.41282081604003906,
0.029642850160598755,
0.05619785189628601,
0.24474161863327026,
-0.199000746011734,
-0.4037172794342041,
-0.3870331943035126,
-0.2138940989971161,
0.26001572608947754,
0.4698672592639923,
-0.08543471246957779,
0.0004036128520965576,
-0.06504352390766144,
-0.169882670044899,
0.17489120364189148,
0.3240428566932678,
-0.34771057963371277,
-0.014920767396688461,
-0.12519152462482452,
-0.15576624870300293,
-0.07630114257335663,
0.23192138969898224,
0.05417589470744133,
-0.06693290919065475,
-0.21828559041023254,
-0.11528491973876953,
-0.39817047119140625,
0.05401952937245369,
0.4199632406234741,
0.017878737300634384,
-0.027957024052739143,
-0.08524961769580841,
-0.19490289688110352,
0.20194768905639648,
0.07813180983066559,
-0.015911899507045746,
0.02662905491888523,
0.016803592443466187,
-0.047767505049705505,
-0.018746482208371162,
-0.151136577129364,
-0.1446043848991394,
0.1339356005191803,
-0.11232709884643555,
-0.03478122875094414,
0.4088837802410126,
0.04234253242611885,
-0.09519903361797333,
-0.2162926197052002,
-0.14342664182186127,
-0.022566743195056915,
-0.06110849604010582,
-0.10424554347991943,
-0.33211925625801086,
0.049056150019168854,
0.5573017597198486,
-0.07624055445194244,
-0.11680375784635544,
0.22946986556053162,
-0.15562380850315094,
0.47778981924057007,
-0.17149174213409424,
-0.0785917267203331,
0.29652634263038635,
-0.10751572251319885,
-0.20802220702171326,
-0.555588960647583,
0.8288856744766235,
-0.12457945942878723,
0.0166233628988266,
0.39373278617858887,
0.6424809098243713,
-0.2583678662776947,
0.29591983556747437,
0.41287389397621155,
0.77603679895401,
-0.06059136986732483,
0.1950267106294632,
-0.018350034952163696,
0.2824894189834595,
0.5539628267288208,
-0.01067434623837471,
0.2589053809642792,
-0.02920052781701088,
-0.24992884695529938,
-0.13816413283348083,
0.011840034276247025,
0.13045145571231842,
0.37502890825271606,
0.08059628307819366,
0.15004749596118927,
-0.004986390471458435,
0.21641041338443756,
-0.10831961780786514,
0.25981682538986206,
0.03790770843625069,
-0.2282010167837143,
-0.052366092801094055,
0.09436667710542679,
-0.056909702718257904,
-0.4457852244377136,
-0.1336331069469452,
0.032686278223991394,
0.3783549964427948,
0.1265663504600525,
-0.2668848931789398,
-0.18200016021728516,
0.20779664814472198,
0.4457690119743347,
0.04313551262021065,
-0.5865618586540222,
0.16459132730960846,
0.24363738298416138,
0.18727383017539978,
0.06451582163572311,
0.0499902069568634,
0.16147424280643463,
-0.24001151323318481,
0.03934198245406151,
0.043373722583055496,
-0.16806836426258087,
0.17480801045894623,
-0.055839963257312775,
-0.2017083317041397,
-0.13597774505615234,
0.5046855211257935,
-0.793853759765625,
-0.6001186370849609,
0.25082921981811523,
0.08747034519910812,
0.04047843813896179,
0.15484043955802917,
0.25153934955596924,
-0.08264555037021637,
-0.06863491237163544,
0.10062181949615479,
-0.0030941814184188843,
-0.2071595937013626,
0.17974863946437836,
0.02745230682194233,
0.1658819019794464,
0.02110101655125618,
0.0017023980617523193,
-0.06022344529628754,
0.27084943652153015,
0.21403558552265167,
-0.1862250417470932,
-0.02471650391817093,
-0.12426560372114182,
0.051623158156871796,
0.02390393614768982,
0.2162700593471527,
-0.10212458670139313,
-0.3356436789035797,
0.39761340618133545,
0.0025812839157879353,
-0.22331756353378296,
-0.08062615990638733,
0.1447630226612091,
-0.010423876345157623,
-0.3164907693862915,
0.059163279831409454,
0.03513072431087494,
0.12298402190208435,
0.17193317413330078,
-0.39313942193984985,
0.3110383152961731,
-0.21842101216316223,
0.2882938086986542,
-0.17756348848342896,
0.03381539136171341,
0.28509199619293213,
0.19579409062862396,
0.29856106638908386,
0.20796790719032288,
-0.16099128127098083,
0.07868239283561707,
-0.03599965572357178,
0.23719917237758636,
-0.12236188352108002,
-0.12751218676567078,
-0.269521027803421,
0.06883110851049423,
0.027952661737799644,
0.22119982540607452,
-0.037553876638412476,
-0.09352592378854752,
-0.376247376203537,
-0.18215399980545044,
0.06340223550796509,
0.05287162959575653,
0.013649888336658478,
0.37726640701293945,
0.5071153044700623,
-0.09894496947526932,
-0.0019496455788612366,
0.05222919583320618,
-0.04820163547992706,
0.2042924165725708,
0.060998398810625076,
0.34077954292297363,
0.14507649838924408,
0.2970131039619446,
-0.08689123392105103,
0.19847717881202698,
0.21861837804317474,
-0.3008514940738678,
0.33198046684265137,
0.041467905044555664,
-0.03372650220990181,
-0.04112784564495087,
0.4718819856643677,
0.07584182918071747,
-0.08298888057470322,
0.04592288285493851,
0.07142315804958344,
0.13319943845272064,
-0.22804763913154602,
-0.11324816942214966,
0.2901127338409424,
0.2939959764480591,
0.0008627213537693024,
0.23360778391361237,
-0.18205568194389343,
0.14474576711654663,
-0.1569238305091858,
-0.2128673791885376,
0.03768417239189148,
-0.6488705277442932,
0.22755853831768036,
0.26154229044914246,
0.05824786797165871,
-0.22444649040699005,
0.014898572117090225,
0.024729479104280472,
0.02519366145133972,
0.25913727283477783,
-0.20550864934921265,
0.816457211971283,
-0.23797428607940674,
-0.15723548829555511,
0.2347331941127777,
0.040979158133268356,
-0.14768648147583008,
0.5167102217674255,
0.03778251260519028,
0.14501520991325378,
-0.016497477889060974,
0.3107825517654419,
0.15709660947322845,
-0.07565479725599289,
-0.0013414174318313599,
0.2672920823097229,
0.2398798167705536,
-0.015586167573928833,
-0.13860124349594116,
0.0024056509137153625,
-0.30021560192108154,
0.08063538372516632,
0.2542976438999176,
-0.1714044064283371,
0.3803829848766327,
0.37776947021484375,
0.3144783079624176,
0.13010840117931366,
0.15672743320465088,
0.13481003046035767,
0.49643462896347046,
-0.28569915890693665,
-0.5428254008293152,
0.09038963168859482,
-0.012121915817260742,
0.20143942534923553,
-0.11130841821432114,
-0.12307484447956085,
0.12797722220420837,
-0.07411755621433258,
0.15039625763893127,
-0.1897890269756317,
0.16483964025974274,
-0.06471341848373413,
0.08414255082607269,
0.04241165518760681,
0.34903085231781006,
0.09157292544841766,
0.000826023519039154,
-0.026821844279766083,
0.2064230740070343,
0.1759447306394577,
0.09863702952861786,
-0.8560940027236938,
0.4871612787246704,
0.10967904329299927,
-0.36256229877471924,
-0.2355596423149109,
0.07896535843610764,
-0.03305043280124664,
-0.258711040019989,
0.28773221373558044,
-0.16541840136051178,
-0.1679372787475586,
-0.0751764103770256,
0.025164615362882614,
-0.04370289668440819,
0.3141378164291382,
-0.2469845861196518,
-0.016327552497386932,
-0.11312606185674667,
-0.3326270580291748,
-0.3796081840991974,
-0.3455860912799835,
0.16283206641674042,
-0.007793894037604332,
0.23993074893951416,
0.13908454775810242,
-0.09679251164197922,
0.29349416494369507,
-0.28718042373657227,
-0.7887296080589294,
-0.33147478103637695,
-0.04211398959159851,
-0.10085230320692062,
0.053108736872673035,
-0.470781147480011,
-0.11792851984500885,
0.015995077788829803,
-0.17090663313865662,
-0.010924417525529861,
-0.08518517017364502,
-0.14938955008983612,
0.06722831726074219,
0.18672698736190796,
0.07342062890529633,
0.02041548117995262,
0.005812130868434906,
0.009814508259296417,
0.2633557915687561,
0.0031536780297756195,
0.1583029329776764,
0.04238284379243851,
0.07708972692489624,
-0.31781822443008423,
0.5716704726219177,
-0.19826482236385345,
0.21222832798957825,
0.02143302746117115,
-0.2425091415643692,
-0.2888360619544983,
0.2472972422838211,
-0.10038420557975769,
-0.12122838199138641,
-0.19286397099494934,
-0.07190065830945969,
0.17757296562194824,
0.05867739021778107,
0.13523992896080017,
0.4553300142288208,
-0.25739216804504395,
0.18841198086738586,
0.22332186996936798,
-0.0276317298412323,
0.10074860602617264,
-0.7333003282546997,
-0.1903633028268814,
-0.1361543983221054,
0.35774070024490356,
-0.018163129687309265,
-0.04028525948524475,
-0.39529386162757874,
-0.37228283286094666,
0.3207326829433441,
0.03829030320048332,
0.19538268446922302,
0.4563092887401581,
0.1442926526069641,
-0.2179151028394699,
0.041759949177503586,
-0.016164109110832214,
-0.10480984300374985,
-0.10962467640638351,
0.06034500524401665,
-0.5192132592201233
] |
https://github.com/huggingface/datasets/issues/302 | Question - Sign Language Datasets | Even more complicating -
As I see it, datasets can have "addons".
For example, the WebNLG dataset is a dataset for data-to-text. However, a work of mine and other works enriched this dataset with text plans / underlying text structures. In that case, I see a need to load the dataset "WebNLG" with "plans" addon.
Same for sign language - if there is a dataset of videos, one addon can be to run OpenPose, another to run ARKit4 pose estimation, and another to run PoseNet, or even just a video embedding addon. (which are expensive to run individually for everyone who wants to use these data)
This is something I dabbled with my own implementation to a [research datasets library](https://github.com/AmitMY/meta-scholar/) and I love to get the discussion going on these topics. | An emerging field in NLP is SLP - sign language processing.
I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable.
The metrics for sign language to text translation are the same.
So, what do you think about (me, or others) adding datasets here?
An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/)
For every item in the dataset, the data object includes:
1. video_path - path to mp4 file
2. pose_path - a path to `.pose` file with human pose landmarks
3. openpose_path - a path to a `.json` file with human pose landmarks
4. gloss - string
5. text - string
6. video_metadata - height, width, frames, framerate
------
To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so. | 131 | Question - Sign Language Datasets
An emerging field in NLP is SLP - sign language processing.
I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable.
The metrics for sign language to text translation are the same.
So, what do you think about (me, or others) adding datasets here?
An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/)
For every item in the dataset, the data object includes:
1. video_path - path to mp4 file
2. pose_path - a path to `.pose` file with human pose landmarks
3. openpose_path - a path to a `.json` file with human pose landmarks
4. gloss - string
5. text - string
6. video_metadata - height, width, frames, framerate
------
To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so.
Even more complicating -
As I see it, datasets can have "addons".
For example, the WebNLG dataset is a dataset for data-to-text. However, a work of mine and other works enriched this dataset with text plans / underlying text structures. In that case, I see a need to load the dataset "WebNLG" with "plans" addon.
Same for sign language - if there is a dataset of videos, one addon can be to run OpenPose, another to run ARKit4 pose estimation, and another to run PoseNet, or even just a video embedding addon. (which are expensive to run individually for everyone who wants to use these data)
This is something I dabbled with my own implementation to a [research datasets library](https://github.com/AmitMY/meta-scholar/) and I love to get the discussion going on these topics. | [
-0.3277660608291626,
0.4525654911994934,
-0.07328388094902039,
0.012340400367975235,
-0.07884081453084946,
-0.011534065008163452,
0.22011037170886993,
0.2610003650188446,
0.20139653980731964,
-0.36875659227371216,
0.08787999302148819,
0.29479268193244934,
-0.3939637243747711,
0.28343406319618225,
0.3449885845184326,
-0.17655088007450104,
-0.000494644045829773,
-0.06266514956951141,
0.008733876049518585,
-0.09809941053390503,
-0.2763955593109131,
-0.19098293781280518,
0.053152188658714294,
-0.007089309394359589,
-0.38374897837638855,
-0.3320614695549011,
-0.15200482308864594,
0.055228859186172485,
-0.07982154190540314,
-0.36704641580581665,
-0.4654010832309723,
0.13386084139347076,
0.38115254044532776,
-0.05737500637769699,
-0.00010921218199655414,
-0.21317394077777863,
0.0867840051651001,
0.13662421703338623,
-0.29817888140678406,
-0.11203859746456146,
-0.12251835316419601,
-0.6363068222999573,
-0.18479038774967194,
-0.21974879503250122,
0.30146464705467224,
-0.36717623472213745,
0.11779841780662537,
-0.4387144446372986,
0.02040984481573105,
0.26503878831863403,
0.26572683453559875,
0.07349568605422974,
-0.17630089819431305,
0.284544974565506,
0.10739468038082123,
0.28802481293678284,
0.05393478274345398,
-0.31147706508636475,
0.36664214730262756,
-0.004012668505311012,
-0.15321120619773865,
0.2822236716747284,
0.08716714382171631,
-0.5369468927383423,
0.2831127643585205,
-0.08322309702634811,
-0.16812041401863098,
-0.06657689064741135,
-0.06096813082695007,
0.054595962166786194,
0.3695206344127655,
-0.38873544335365295,
-0.5512009263038635,
-0.6927582025527954,
0.3190686106681824,
-0.041756946593523026,
-0.1850505769252777,
0.3131972551345825,
0.24869748950004578,
-0.044193971902132034,
-0.20324258506298065,
-0.6055935621261597,
0.07352487742900848,
0.2032315731048584,
0.05049462616443634,
0.3771207630634308,
0.10685139894485474,
0.08536344766616821,
-0.05983542278409004,
-0.05807160586118698,
0.10203347355127335,
-0.4142611622810364,
0.00591278076171875,
0.12477491050958633,
-0.2750382721424103,
-0.16849517822265625,
0.00747334212064743,
0.10953351855278015,
0.2164652943611145,
0.12882809340953827,
-0.0004109703004360199,
0.002756016328930855,
-0.3363450765609741,
0.044514890760183334,
0.3745671808719635,
-0.03916635364294052,
-0.028342463076114655,
0.1442897617816925,
0.15193724632263184,
-0.26772889494895935,
0.4116017818450928,
0.06937161087989807,
-0.009714052081108093,
0.006476083770394325,
-0.23467661440372467,
-0.20147031545639038,
0.11952267587184906,
-0.03267830237746239,
-0.160371795296669,
0.04685710370540619,
-0.19523444771766663,
-0.257414311170578,
0.12044979631900787,
-0.07898103445768356,
0.0028641140088438988,
0.2978835701942444,
0.019271746277809143,
0.34545278549194336,
0.19673603773117065,
-0.16879524290561676,
0.018306715413928032,
0.18157756328582764,
-0.37004005908966064,
0.24507567286491394,
0.38318103551864624,
0.0594598762691021,
0.05077775567770004,
0.01663101837038994,
-0.13975566625595093,
0.07063839584589005,
0.3091607987880707,
-0.0534304678440094,
0.09022905677556992,
-0.21738307178020477,
0.006571266800165176,
0.08541300892829895,
-0.3741539716720581,
-0.05301620438694954,
-0.3044705092906952,
0.11985958367586136,
0.08166742324829102,
-0.02361248806118965,
0.03846585378050804,
0.21772591769695282,
-0.39234495162963867,
-0.3972731828689575,
-0.3264211416244507,
0.6124709844589233,
0.07171773165464401,
-0.042214129120111465,
0.16498643159866333,
-0.10422778129577637,
-0.3048973083496094,
-0.0357937291264534,
-0.21059997379779816,
0.4268850088119507,
-0.3384498953819275,
-0.16723278164863586,
-0.12325568497180939,
-0.06469088792800903,
-0.279765784740448,
0.2127166986465454,
-0.2385701984167099,
0.18132126331329346,
0.0024050213396549225,
0.21500013768672943,
0.505670964717865,
-0.2569228708744049,
-0.07567068934440613,
0.39996835589408875,
-0.04591425508260727,
-0.04780388996005058,
0.016966499388217926,
0.377814382314682,
0.13293308019638062,
-0.16630814969539642,
-0.21450147032737732,
0.3691995143890381,
-0.20470164716243744,
-0.09592769294977188,
-0.162826269865036,
-0.11645559966564178,
0.4206479787826538,
0.37980884313583374,
0.11315426230430603,
-0.051859043538570404,
0.03572199121117592,
0.3774411082267761,
0.04352663457393646,
-0.19644367694854736,
0.39429524540901184,
-0.16037508845329285,
-0.017671961337327957,
-0.07535162568092346,
-0.13992026448249817,
-0.3019449710845947,
-0.2899506986141205,
0.006283976137638092,
0.045588403940200806,
0.057438451796770096,
0.17553755640983582,
-0.06289076805114746,
0.2070702612400055,
0.0029974132776260376,
0.17416280508041382,
0.1203707754611969,
0.14088015258312225,
0.1355980634689331,
-0.2524045407772064,
-0.10827556252479553,
-0.4150160849094391,
0.5105981826782227,
-0.2547083795070648,
-0.039275873452425,
-0.06135781481862068,
0.2525383234024048,
0.024632703512907028,
0.14125610888004303,
0.1342974752187729,
0.6351196765899658,
-0.2699643671512604,
0.013525202870368958,
0.2918764352798462,
-0.1600831151008606,
-0.27635812759399414,
0.16210514307022095,
0.3680669367313385,
0.27453872561454773,
0.36091136932373047,
-0.19779202342033386,
0.33371701836586,
-0.29250845313072205,
0.2045738399028778,
-0.20856627821922302,
-0.07540807873010635,
0.19005994498729706,
0.216956228017807,
0.11529004573822021,
0.13868887722492218,
-0.0741419792175293,
0.08850884437561035,
-0.057047948241233826,
-0.27847909927368164,
-0.04235337674617767,
0.2771928906440735,
-0.00125964917242527,
0.4623276889324188,
0.2014109045267105,
-0.31869345903396606,
0.1495300978422165,
0.3133573532104492,
-0.13039124011993408,
-0.013361535966396332,
0.26364821195602417,
-0.02688717097043991,
-0.1714867353439331,
-0.040531717240810394,
0.21530751883983612,
0.4145962595939636,
0.34787827730178833,
0.09279870241880417,
0.046907342970371246,
-0.1673029065132141,
-0.16036657989025116,
0.026392832398414612,
0.14484478533267975,
-0.061166342347860336,
0.21208059787750244,
0.09079243987798691,
0.1768360435962677,
-0.1688583791255951,
-0.2871468663215637,
0.01970243640244007,
-0.03834420442581177,
-0.04562647268176079,
0.12168429046869278,
0.08111440390348434,
-0.45164090394973755,
-0.28041699528694153,
0.0658235251903534,
-0.22142565250396729,
-0.3173052966594696,
0.15473297238349915,
-0.3717631995677948,
-0.00850909948348999,
0.005064982920885086,
-0.3108470141887665,
0.6126173734664917,
-0.6380681395530701,
-0.059999629855155945,
-0.042921654880046844,
-0.3297203779220581,
-0.1528775691986084,
0.16916164755821228,
0.3665495812892914,
0.15223346650600433,
0.5014584064483643,
0.09290337562561035,
0.27224200963974,
-0.24421659111976624,
-0.5257210731506348,
-0.11770980060100555,
-0.3639345169067383,
-0.10254906862974167,
-0.11849376559257507,
-0.2681976556777954,
0.32487952709198,
-0.17723113298416138,
-0.14127880334854126,
0.06133408844470978,
-0.09010246396064758,
-0.30702805519104004,
-0.010255645960569382,
-0.36104729771614075,
-0.06578052788972855,
-0.21391797065734863,
-0.2801148593425751,
-0.3550034761428833,
0.22227104008197784,
0.14722533524036407,
-0.1143486350774765,
-0.08255327492952347,
-0.11714933067560196,
0.23020265996456146,
-0.05591645464301109,
0.09735661000013351,
-0.1091555580496788,
0.22153213620185852,
0.09667803347110748,
0.07370025664567947,
-0.2337377816438675,
0.035556670278310776,
-0.05998604744672775,
0.08565515279769897,
0.2619892954826355,
-0.566129744052887,
0.1449572741985321,
-0.06937922537326813,
0.11105641722679138,
-0.02268683910369873,
-0.06084578484296799,
0.03302131965756416,
0.2816912829875946,
-0.018219877034425735,
-0.1531527042388916,
-0.43426087498664856,
0.032330580055713654,
0.08225411176681519,
0.2794431447982788,
-0.06374318152666092,
0.037120264023542404,
-0.03882676362991333,
0.21415600180625916,
0.2831178903579712,
-0.3406553864479065,
0.2703133821487427,
0.3039264976978302,
0.36581656336784363,
0.10948768258094788,
-0.1096167340874672,
0.4175207316875458,
0.005567863583564758,
0.11202727258205414,
0.20094871520996094,
0.1855510175228119,
-0.2546826899051666,
-0.15137948095798492,
0.1681477427482605,
-0.05290364474058151,
0.033262092620134354,
0.3392641544342041,
-0.3259802460670471,
0.2681792974472046,
0.06945925951004028,
-0.29366639256477356,
-0.32405826449394226,
-0.11897673457860947,
-0.052772898226976395,
0.2530350387096405,
0.22210967540740967,
0.11113356798887253,
-0.7394849061965942,
0.13102620840072632,
-0.33908811211586,
0.17666397988796234,
0.26759737730026245,
0.36004820466041565,
-0.27426159381866455,
0.037904754281044006,
-0.024567440152168274,
-0.003453220706433058,
-0.05960370600223541,
-0.3821157217025757,
-0.4413825273513794,
-0.0014770608395338058,
0.1378367394208908,
-0.1934790164232254,
0.2766517102718353,
-0.07315096259117126,
-0.020283816382288933,
0.23453709483146667,
0.2808196544647217,
-0.16438454389572144,
-0.09725402295589447,
0.13609722256660461,
0.38227930665016174,
0.01384006068110466,
-0.3639448285102844,
0.2148839682340622,
-0.1549580991268158,
-0.15724822878837585,
-0.2554561197757721,
-0.11480851471424103,
-0.18867164850234985,
0.19327767193317413,
0.020251985639333725,
-0.16470912098884583,
-0.15926578640937805,
0.32845044136047363,
-0.07597972452640533,
-0.32975223660469055,
0.17662738263607025,
0.19958962500095367,
-0.18828235566616058,
0.37751245498657227,
0.026808304712176323,
0.40574193000793457,
-0.15329746901988983,
-0.26425519585609436,
0.031308695673942566,
-0.14811933040618896,
0.5700643658638,
0.32013198733329773,
0.07566319406032562,
0.2256230115890503,
0.023660607635974884,
-0.28874510526657104,
-0.3492984175682068,
0.28073087334632874,
0.24567574262619019,
0.3173528015613556,
-0.3498888909816742,
-0.5515733361244202,
0.4434369206428528,
0.19498418271541595,
-0.08183130621910095,
-0.06996795535087585,
-0.14790277183055878,
-0.2677097022533417,
0.20631015300750732,
0.051107022911310196,
0.7768350839614868,
-0.1354139745235443,
0.33825206756591797,
0.02528008446097374,
-0.4550477862358093,
0.5315404534339905,
-0.14267754554748535,
-0.16118915379047394,
-0.02596830204129219,
0.16256661713123322,
0.01313277892768383,
-0.07633735239505768,
0.02556576207280159,
0.2910044193267822,
0.13305829465389252,
-0.014058410190045834,
0.21049274504184723,
-0.1506522297859192,
0.09649258106946945,
0.7823008894920349,
-0.2208660989999771,
-0.35754382610321045,
-0.30734020471572876,
0.16965056955814362,
-0.2132994383573532,
-0.105435311794281,
-0.06839965283870697,
-0.20089523494243622,
-0.15483519434928894,
0.30813443660736084,
-0.3293706178665161,
-0.012781238183379173,
0.3329561948776245,
-0.1626683920621872,
-0.15926207602024078,
-0.08144206553697586,
0.6952058672904968,
0.06788771599531174,
0.3631232976913452,
-0.0760265439748764,
-0.11237010359764099,
-0.03972812369465828,
-0.397508442401886,
0.041818443685770035,
0.150599867105484,
0.0597328245639801,
0.2984387278556824,
-0.06340812891721725,
-0.022011473774909973,
0.23721906542778015,
0.1376473754644394,
0.022248081862926483,
-0.43880710005760193,
0.034003846347332,
0.3060252070426941,
-0.15127260982990265,
-0.07498270273208618,
0.5886837244033813,
-0.09401047229766846,
0.02575359120965004,
0.13718785345554352,
0.23331326246261597,
0.16049468517303467,
0.11720755696296692,
0.14137528836727142,
-0.14446647465229034,
-0.1640489548444748,
0.028744596987962723,
-0.10755131393671036,
-0.1900894045829773,
0.18521679937839508,
0.0035885050892829895,
-0.18001532554626465,
-0.1428709328174591,
0.027700573205947876,
-0.04182658717036247,
-0.31367042660713196,
-0.29852306842803955,
0.2279636710882187,
-0.06655300408601761,
-0.21616241335868835,
-0.08970928192138672,
0.1252860128879547,
-0.278339147567749,
0.1514788568019867,
-0.2320462316274643,
-0.33846619725227356,
0.23098811507225037,
-0.21371419727802277,
0.1870669573545456,
-0.006873760372400284,
0.29226040840148926,
-0.16242675483226776,
0.13559390604496002,
-0.3200896680355072,
-0.16592596471309662,
0.06379811465740204,
0.1973963975906372,
0.3663794696331024,
-0.08287004381418228,
-0.25328513979911804,
-0.10485407710075378,
0.06685198098421097,
-0.2257038801908493,
-0.14111821353435516,
-0.15413348376750946,
-0.0019802581518888474,
0.11520659178495407,
0.40156978368759155,
-0.23541130125522614,
0.0057660061866045,
-0.15893691778182983,
0.029565759003162384,
-0.10204751789569855,
-0.14644652605056763,
-0.03358091041445732,
-0.24792040884494781,
0.32390040159225464,
-0.4041711091995239,
-0.07528435438871384,
-0.05304568260908127,
0.32443511486053467,
0.04461371526122093,
0.2183498740196228,
0.11030974239110947,
0.4018844664096832,
0.2877157926559448,
0.19192445278167725,
-0.195121631026268,
0.2794587314128876,
0.10168364644050598,
0.29874181747436523,
0.22391709685325623,
-0.10981583595275879,
0.46861353516578674,
0.26529642939567566,
0.14522236585617065,
0.280688613653183,
-0.10260041058063507,
-0.15880072116851807,
0.3392033278942108,
0.16660788655281067,
-0.2367144227027893,
0.10888458788394928,
0.09884282946586609,
0.19008861482143402,
0.10520803928375244,
0.3454720973968506,
0.3633002042770386,
0.17015954852104187,
-0.18713773787021637,
-0.13436566293239594,
0.2054469883441925,
-0.17051075398921967,
-0.14073848724365234,
-0.016962412744760513,
0.027636487036943436,
0.026455238461494446,
0.17862297594547272,
0.5877974033355713,
0.01952117681503296,
0.21587926149368286,
-0.1132902130484581,
0.5705666542053223,
0.16602647304534912,
0.29260939359664917,
0.251878023147583,
-0.1501764953136444,
0.1990005075931549,
0.3131931722164154,
0.1905713528394699,
0.0940515398979187,
0.09971649199724197,
0.3216201364994049,
0.09406522661447525,
-0.15494221448898315,
0.2753291130065918,
0.29879871010780334,
-0.12125226110219955,
0.06104699894785881,
-0.17941848933696747,
-0.1137370839715004,
-0.20610566437244415,
0.03042767569422722,
-0.25636154413223267,
-0.23592509329319,
0.24089764058589935,
0.0669327825307846,
-0.04766485095024109,
-0.4425085484981537,
0.39355897903442383,
0.00006502866744995117,
0.017786532640457153,
-0.08880281448364258,
0.18224979937076569,
-0.19030062854290009,
-0.055926620960235596,
0.3564334213733673,
0.27428966760635376,
0.12482611835002899,
0.1840418130159378,
-0.029916133731603622,
0.33582356572151184,
-0.13165538012981415,
0.14480973780155182,
-0.1163840964436531,
0.4367337226867676,
0.17133204638957977,
-0.0272597037255764,
0.41999107599258423,
0.09013087302446365,
-0.06354808062314987,
0.21654638648033142,
-0.008266638964414597,
-0.326659619808197,
-0.1900070309638977,
0.5533890724182129,
0.07430402934551239,
-0.17846903204917908,
-0.17534738779067993,
-0.013800494372844696,
-0.0982365757226944,
-0.3667755126953125,
0.547684907913208,
-0.22095130383968353,
0.05809181183576584,
-0.19556593894958496,
0.10268732160329819,
-0.05376873537898064,
0.2913796901702881,
0.340829461812973,
0.25163429975509644,
-0.08499529212713242,
0.1212787926197052,
-0.480348140001297,
-0.05785626918077469,
-0.02197655662894249,
-0.18197596073150635,
-0.27378958463668823,
-0.0833316370844841,
0.07230760157108307,
0.3252255916595459,
-0.09844812750816345,
0.2862285077571869,
-0.020115019753575325,
-0.2694895565509796,
-0.20702503621578217,
-0.0562775619328022,
0.29902106523513794,
0.20869411528110504,
-0.066426582634449,
0.0786418691277504,
-0.19191808998584747,
-0.012033546343445778,
0.030599728226661682,
-0.3177833557128906,
-0.05724265053868294,
-0.020721888169646263,
0.16445839405059814,
0.17148907482624054,
0.06034629046916962,
0.5298670530319214,
-0.025094326585531235,
0.01011926494538784,
-0.20499393343925476,
-0.31953683495521545,
-0.2065572589635849,
0.16816964745521545,
-0.03572313115000725,
0.0005486719310283661,
-0.34614378213882446,
0.3349311947822571,
0.008743544109165668,
-0.010463700629770756,
-0.0248259287327528,
-0.10523315519094467,
-0.26637783646583557,
0.1646501123905182,
-0.29045939445495605,
0.18722856044769287,
0.11426962912082672,
0.3710080087184906,
0.13349442183971405,
0.008168630301952362,
0.029005900025367737,
-0.006844319403171539,
0.1138111874461174,
-0.00402141734957695,
-0.09907519817352295,
0.33020782470703125,
0.03846977651119232,
0.32645294070243835,
-0.0020172055810689926,
-0.6941641569137573,
-0.29962751269340515,
0.41331562399864197,
-0.2155340313911438,
0.12699958682060242,
0.19949352741241455,
-0.08742585778236389,
-0.35650551319122314,
-0.20233790576457977,
-0.021588213741779327,
-0.279935359954834,
-0.14786498248577118,
0.23825517296791077,
-0.21456949412822723
] |
https://github.com/huggingface/datasets/issues/302 | Question - Sign Language Datasets | This is a really cool idea !
The example for data objects you gave for the RWTH-PHOENIX-Weather 2014 T dataset can totally fit inside the library.
For your point about formats like `ilex`, `eaf`, or `srt`, it is possible to use any library in your dataset script.
However most user probably won't need these libraries, as most datasets don't need them, and therefore it's unlikely that we will have them in the minimum requirements to use `nlp` (we want to keep it as light-weight as possible). If a user wants to load your dataset and doesn't have the libraries you need, an error is raised asking the user to install them.
More generally, we plan to have something like a `requirements.txt` per dataset. This could also be a place for addons as you said. What do you think ? | An emerging field in NLP is SLP - sign language processing.
I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable.
The metrics for sign language to text translation are the same.
So, what do you think about (me, or others) adding datasets here?
An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/)
For every item in the dataset, the data object includes:
1. video_path - path to mp4 file
2. pose_path - a path to `.pose` file with human pose landmarks
3. openpose_path - a path to a `.json` file with human pose landmarks
4. gloss - string
5. text - string
6. video_metadata - height, width, frames, framerate
------
To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so. | 139 | Question - Sign Language Datasets
An emerging field in NLP is SLP - sign language processing.
I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable.
The metrics for sign language to text translation are the same.
So, what do you think about (me, or others) adding datasets here?
An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/)
For every item in the dataset, the data object includes:
1. video_path - path to mp4 file
2. pose_path - a path to `.pose` file with human pose landmarks
3. openpose_path - a path to a `.json` file with human pose landmarks
4. gloss - string
5. text - string
6. video_metadata - height, width, frames, framerate
------
To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so.
This is a really cool idea !
The example for data objects you gave for the RWTH-PHOENIX-Weather 2014 T dataset can totally fit inside the library.
For your point about formats like `ilex`, `eaf`, or `srt`, it is possible to use any library in your dataset script.
However most user probably won't need these libraries, as most datasets don't need them, and therefore it's unlikely that we will have them in the minimum requirements to use `nlp` (we want to keep it as light-weight as possible). If a user wants to load your dataset and doesn't have the libraries you need, an error is raised asking the user to install them.
More generally, we plan to have something like a `requirements.txt` per dataset. This could also be a place for addons as you said. What do you think ? | [
-0.23924125730991364,
0.4322061538696289,
-0.06781712919473648,
0.02645375207066536,
-0.0018662698566913605,
-0.026517249643802643,
0.21930277347564697,
0.3350125551223755,
0.25123855471611023,
-0.2982075810432434,
0.07764767110347748,
0.22359924018383026,
-0.3672269582748413,
0.39339834451675415,
0.3731900155544281,
-0.17884059250354767,
-0.14178618788719177,
0.1445278525352478,
-0.04599319398403168,
-0.006875980645418167,
-0.1793411374092102,
-0.13834689557552338,
0.0843181312084198,
0.0032770931720733643,
-0.3872089982032776,
-0.29462510347366333,
-0.20223824679851532,
0.01030043140053749,
-0.20749282836914062,
-0.3936846852302551,
-0.3563821017742157,
0.2389656901359558,
0.4327622056007385,
-0.041316352784633636,
-0.00011181792797287926,
-0.19651442766189575,
0.00048346444964408875,
-0.02641238085925579,
-0.37593695521354675,
-0.21818934381008148,
-0.1599295437335968,
-0.6538223028182983,
-0.09965834766626358,
-0.2734124958515167,
0.2359742522239685,
-0.4207747280597687,
0.1932361125946045,
-0.4131365716457367,
0.0240747332572937,
0.31000828742980957,
0.2551300525665283,
0.20836567878723145,
-0.14624936878681183,
0.2816711962223053,
0.21710672974586487,
0.42201119661331177,
-0.04849281162023544,
-0.3106170892715454,
0.37964946031570435,
0.053587451577186584,
-0.11970948427915573,
0.1756715178489685,
0.15216171741485596,
-0.5902649164199829,
0.37197035551071167,
-0.0482521615922451,
-0.21445980668067932,
-0.11579921841621399,
-0.07887054979801178,
0.175868958234787,
0.46226298809051514,
-0.45092087984085083,
-0.6121039390563965,
-0.5556018948554993,
0.24401405453681946,
-0.10523689538240433,
-0.23228919506072998,
0.4563683271408081,
0.16651424765586853,
0.06772787868976593,
-0.22393549978733063,
-0.5427983999252319,
-0.06805449724197388,
0.21723131835460663,
0.17046040296554565,
0.4320034980773926,
0.13027726113796234,
0.028224781155586243,
-0.14782507717609406,
-0.03631587326526642,
0.08338525891304016,
-0.4088720977306366,
-0.05474298819899559,
0.07550268620252609,
-0.15219084918498993,
-0.267498642206192,
-0.044373586773872375,
0.3259716033935547,
0.2731187045574188,
0.17763978242874146,
-0.011932001449167728,
-0.019289758056402206,
-0.3869997262954712,
0.0939616858959198,
0.3464575707912445,
-0.02821050025522709,
0.11120520532131195,
-0.020723514258861542,
0.11455278098583221,
-0.35241174697875977,
0.41730448603630066,
-0.042194731533527374,
-0.11748341470956802,
0.08227723091840744,
-0.2719348967075348,
-0.1131579652428627,
0.13559465110301971,
-0.024695608764886856,
-0.0708162859082222,
0.033358559012413025,
-0.037873052060604095,
-0.17798221111297607,
0.13808970153331757,
-0.07318571954965591,
0.0021022637374699116,
0.33318132162094116,
0.028869420289993286,
0.29003167152404785,
0.15257400274276733,
-0.20599734783172607,
0.09052152186632156,
0.3386298716068268,
-0.39302724599838257,
0.2288372814655304,
0.38499516248703003,
-0.0733003318309784,
0.16231636703014374,
-0.03178943693637848,
-0.03284022957086563,
0.03338535875082016,
0.35294556617736816,
-0.11493304371833801,
0.17892290651798248,
-0.17889723181724548,
-0.019249746575951576,
0.019733378663659096,
-0.3452151119709015,
-0.1483694612979889,
-0.3417448103427887,
0.045740120112895966,
-0.013470202684402466,
-0.02485429123044014,
-0.07251013070344925,
0.15270128846168518,
-0.37376999855041504,
-0.36575445532798767,
-0.30849283933639526,
0.4737790524959564,
0.016290195286273956,
-0.13614583015441895,
0.10096155107021332,
-0.22382725775241852,
-0.32142695784568787,
-0.0759492740035057,
-0.2590920925140381,
0.5499832034111023,
-0.4044005274772644,
-0.1308394968509674,
-0.08573123067617416,
-0.06001632288098335,
-0.2899184823036194,
0.19031259417533875,
-0.267534077167511,
0.20191386342048645,
-0.061580412089824677,
0.1260318011045456,
0.5230684876441956,
-0.3338766098022461,
0.05306553095579147,
0.49137648940086365,
0.05235213786363602,
-0.005854720249772072,
0.16323386132717133,
0.34084999561309814,
0.24599477648735046,
-0.29456213116645813,
-0.35902607440948486,
0.3687421679496765,
-0.2249610722064972,
-0.07281266152858734,
-0.09553398191928864,
-0.17861181497573853,
0.4174608588218689,
0.27284014225006104,
0.04707483574748039,
-0.058903954923152924,
0.0063614919781684875,
0.36322012543678284,
0.03393137454986572,
-0.21276333928108215,
0.36844345927238464,
-0.10886316001415253,
0.007605593651533127,
0.01012738049030304,
-0.07470391690731049,
-0.27831515669822693,
-0.31354132294654846,
-0.013271892443299294,
-0.019197238609194756,
0.08991469442844391,
0.22090420126914978,
-0.16530051827430725,
0.11421134322881699,
-0.05274422466754913,
0.1920657902956009,
0.07836298644542694,
0.1011962890625,
0.10694293677806854,
-0.22991186380386353,
-0.13014210760593414,
-0.4460364282131195,
0.34607020020484924,
-0.029505548998713493,
-0.03114580549299717,
-0.07711179554462433,
0.11652520298957825,
0.03450386971235275,
0.19588270783424377,
0.1797943413257599,
0.6314445734024048,
-0.23890894651412964,
-0.04380502179265022,
0.2426508069038391,
0.028351934626698494,
-0.11188963055610657,
0.17526106536388397,
0.22021818161010742,
0.3296029269695282,
0.36993974447250366,
-0.07041329890489578,
0.39019903540611267,
-0.22601918876171112,
0.29129621386528015,
-0.14207394421100616,
-0.07084151357412338,
0.2859688997268677,
0.16604115068912506,
0.07178066670894623,
0.20959876477718353,
-0.0442504957318306,
0.07859984785318375,
-0.054533038288354874,
-0.33886611461639404,
-0.18127799034118652,
0.1592055857181549,
-0.040567636489868164,
0.3809358775615692,
0.21730399131774902,
-0.3826068639755249,
0.09805164486169815,
0.44140246510505676,
-0.031172530725598335,
0.03339497745037079,
0.24069756269454956,
-0.004763901233673096,
-0.10459069907665253,
-0.03789842128753662,
0.1969146877527237,
0.4480663537979126,
0.3596538007259369,
-0.07679541409015656,
0.03280799090862274,
-0.06056857109069824,
-0.2623922824859619,
0.14126470685005188,
0.1670074313879013,
-0.1443774402141571,
0.10627041757106781,
-0.03002171777188778,
0.154026597738266,
-0.1510041356086731,
-0.4089509844779968,
-0.07203050702810287,
-0.1273515671491623,
-0.08167777955532074,
0.2121172696352005,
-0.12153170257806778,
-0.516128420829773,
-0.34764134883880615,
0.11488508433103561,
-0.09872996807098389,
-0.20642909407615662,
0.2614906430244446,
-0.39102470874786377,
0.011318039149045944,
0.07682778686285019,
-0.2987987697124481,
0.6431243419647217,
-0.7239420413970947,
0.011215850710868835,
0.016722559928894043,
-0.3049183189868927,
-0.22723770141601562,
0.14020642638206482,
0.4569428861141205,
0.16158443689346313,
0.5446457862854004,
0.048596374690532684,
0.24543319642543793,
-0.24719858169555664,
-0.4581664204597473,
-0.05861964076757431,
-0.33014219999313354,
-0.05728406459093094,
-0.07133537530899048,
-0.14754807949066162,
0.2797912359237671,
-0.11514757573604584,
-0.19599002599716187,
0.0035619810223579407,
-0.0417221300303936,
-0.253470242023468,
-0.06148988753557205,
-0.3246535062789917,
-0.1938648372888565,
-0.2606075406074524,
-0.2597328722476959,
-0.33101797103881836,
0.13133877515792847,
0.1773204207420349,
0.030421357601881027,
0.02648444101214409,
-0.08152348548173904,
0.179639995098114,
-0.10722949355840683,
0.09630705416202545,
0.008284909650683403,
0.10833834111690521,
0.18949736654758453,
-0.05202651023864746,
-0.33160725235939026,
0.08739380538463593,
-0.022806892171502113,
0.14448973536491394,
0.31624364852905273,
-0.4225608706474304,
0.06710104644298553,
-0.0635085254907608,
-0.07215826958417892,
-0.008991487324237823,
-0.003678562119603157,
0.11861853301525116,
0.20580722391605377,
0.017942184582352638,
-0.1530882567167282,
-0.37644433975219727,
0.08282637596130371,
-0.08343998342752457,
0.17909015715122223,
0.03887289762496948,
0.13810190558433533,
-0.010397177189588547,
0.14126062393188477,
0.19291000068187714,
-0.3087899088859558,
0.34997260570526123,
0.2729179561138153,
0.4398563504219055,
0.11962434649467468,
-0.01625298708677292,
0.3699263036251068,
0.10091771185398102,
0.22198519110679626,
0.33527225255966187,
0.20736479759216309,
-0.09740076214075089,
-0.20052430033683777,
0.14870718121528625,
-0.12878084182739258,
0.039295222610235214,
0.4502097964286804,
-0.3502020835876465,
0.3220338225364685,
0.06123172119259834,
-0.16015946865081787,
-0.223176047205925,
-0.2075294554233551,
-0.04213982820510864,
0.34623461961746216,
0.30879050493240356,
0.18749694526195526,
-0.6915637254714966,
0.02810058929026127,
-0.19867545366287231,
0.14143401384353638,
0.19806165993213654,
0.3719220459461212,
-0.21815329790115356,
0.19712117314338684,
-0.024720437824726105,
0.06497637927532196,
-0.1725745052099228,
-0.34870824217796326,
-0.5127555727958679,
-0.09924714267253876,
0.04869845509529114,
-0.29505544900894165,
0.24543391168117523,
-0.11078856885433197,
-0.01768454723060131,
0.09936219453811646,
0.24902264773845673,
-0.22875994443893433,
-0.2461145967245102,
0.023490343242883682,
0.3472215533256531,
-0.05219707638025284,
-0.42244574427604675,
0.20011593401432037,
-0.1370130181312561,
-0.20338493585586548,
-0.3195957541465759,
-0.06628671288490295,
-0.2527782917022705,
0.10402688384056091,
0.07797522842884064,
-0.17036840319633484,
-0.14111128449440002,
0.4347407817840576,
-0.11843693256378174,
-0.20262393355369568,
0.14153556525707245,
0.044818636029958725,
-0.26200181245803833,
0.3238803744316101,
0.0831567570567131,
0.30490097403526306,
-0.10744704306125641,
-0.042956531047821045,
0.04509604722261429,
-0.2195611149072647,
0.6228877902030945,
0.3340859115123749,
0.08120663464069366,
0.2502073049545288,
-0.018295641988515854,
-0.38000214099884033,
-0.3088880181312561,
0.18872548639774323,
0.1485968381166458,
0.008277573622763157,
-0.37031906843185425,
-0.6633862257003784,
0.3367490768432617,
0.16515672206878662,
0.005812369287014008,
-0.07492546737194061,
-0.04948143661022186,
-0.31877222657203674,
0.32408881187438965,
0.14642196893692017,
0.8677604794502258,
-0.130151629447937,
0.33529922366142273,
0.006356557831168175,
-0.4858841300010681,
0.5969654321670532,
-0.23431459069252014,
-0.12935645878314972,
-0.15310008823871613,
0.13663983345031738,
-0.1204579621553421,
-0.07733301818370819,
0.13177351653575897,
0.3119998574256897,
0.000911179929971695,
0.07090051472187042,
0.1817290335893631,
-0.1163826584815979,
0.08053397387266159,
0.8477876782417297,
-0.38456761837005615,
-0.4652249813079834,
-0.3680841624736786,
0.15186837315559387,
-0.22482512891292572,
-0.13280269503593445,
-0.12768733501434326,
-0.24708624184131622,
-0.11003018915653229,
0.1595669537782669,
-0.3609997630119324,
-0.07531324028968811,
0.33455008268356323,
-0.2068338245153427,
-0.08739788830280304,
-0.11785876750946045,
0.780383825302124,
0.1436701864004135,
0.3111170828342438,
0.08396477997303009,
-0.12463116645812988,
-0.08102002739906311,
-0.4270602762699127,
-0.011017746292054653,
0.1402978003025055,
0.07204557955265045,
0.32781141996383667,
-0.10533013194799423,
0.058117397129535675,
0.2616513669490814,
0.10771969705820084,
0.07247930765151978,
-0.36109721660614014,
-0.005148887634277344,
0.3375668525695801,
-0.1543576717376709,
-0.18174481391906738,
0.35344550013542175,
-0.11845943331718445,
0.03544316068291664,
0.11113545298576355,
0.24202203750610352,
0.21341176331043243,
0.13717854022979736,
0.15664595365524292,
-0.06939516961574554,
-0.23075701296329498,
-0.06526277214288712,
-0.070556640625,
-0.18461579084396362,
0.2672118544578552,
0.07542335987091064,
-0.11974706500768661,
-0.21362987160682678,
0.16333097219467163,
-0.029477644711732864,
-0.39495649933815,
-0.31767454743385315,
0.2599506080150604,
-0.023539885878562927,
-0.25618478655815125,
-0.08135102689266205,
0.03807397559285164,
-0.18455132842063904,
0.15192390978336334,
-0.3738640248775482,
-0.21479029953479767,
0.2328856885433197,
-0.1929449886083603,
0.16490094363689423,
0.022864487022161484,
0.20643596351146698,
-0.18116335570812225,
0.15035980939865112,
-0.314827561378479,
-0.20837000012397766,
0.1537429243326187,
0.2667749226093292,
0.33453771471977234,
0.07923655211925507,
-0.27528002858161926,
-0.11766935884952545,
0.022004397585988045,
-0.09060695767402649,
-0.15880320966243744,
-0.11681675165891647,
-0.14603804051876068,
0.13779988884925842,
0.3670162260532379,
-0.24576784670352936,
-0.020174279808998108,
-0.10322754830121994,
-0.1363053321838379,
-0.11416365206241608,
-0.18472418189048767,
0.0239030122756958,
-0.32471323013305664,
0.37245500087738037,
-0.3234482705593109,
-0.01689944416284561,
-0.14683857560157776,
0.2027982622385025,
0.044122274965047836,
0.3206818699836731,
0.34263136982917786,
0.3007250428199768,
0.1799403429031372,
0.09476044774055481,
-0.23694615066051483,
0.33712145686149597,
0.1722484976053238,
0.32675477862358093,
0.13075879216194153,
-0.01509673148393631,
0.49827882647514343,
0.28004956245422363,
0.08311161398887634,
0.2850406765937805,
-0.006260829512029886,
-0.09257619827985764,
0.42951375246047974,
0.1191856861114502,
-0.11689423769712448,
0.15043462812900543,
0.11592467129230499,
0.17502142488956451,
0.02571612223982811,
0.49621111154556274,
0.3500530421733856,
0.143789142370224,
-0.06755392253398895,
-0.13500189781188965,
0.08262807875871658,
-0.06611510366201401,
-0.06668068468570709,
-0.144785538315773,
0.07240065932273865,
0.04374568909406662,
0.0006447620689868927,
0.439914733171463,
0.06957394629716873,
0.06638270616531372,
-0.07985476404428482,
0.5231022834777832,
0.20747074484825134,
0.2747342586517334,
0.19348102807998657,
-0.204803466796875,
0.10355453193187714,
0.20386375486850739,
0.3004035949707031,
0.11932048946619034,
0.15913864970207214,
0.3542211651802063,
0.12608954310417175,
-0.11948945373296738,
0.17090702056884766,
0.21106474101543427,
-0.08064936101436615,
0.11106246709823608,
-0.20040260255336761,
-0.07253001630306244,
-0.21580390632152557,
0.062119219452142715,
-0.23874026536941528,
-0.17981207370758057,
0.09636840224266052,
0.13682185113430023,
0.006744779646396637,
-0.3859763443470001,
0.45282578468322754,
-0.04021011292934418,
0.009166575968265533,
-0.13563817739486694,
0.3052266538143158,
-0.10144059360027313,
0.06598345190286636,
0.3549157977104187,
0.21006543934345245,
0.0990711897611618,
0.28556421399116516,
0.13629190623760223,
0.23550111055374146,
-0.21027089655399323,
0.14387351274490356,
-0.0006830617785453796,
0.4406958520412445,
0.2373729646205902,
0.21297624707221985,
0.4536243975162506,
0.09136833995580673,
0.0018618842586874962,
0.12051062285900116,
0.05140092596411705,
-0.427972674369812,
-0.22074706852436066,
0.5370098352432251,
0.25143003463745117,
-0.16852010786533356,
-0.15818731486797333,
0.0029709115624427795,
-0.08600685000419617,
-0.4035354554653168,
0.5033173561096191,
0.015762677416205406,
0.04971672594547272,
-0.2786104083061218,
0.08308673650026321,
0.04638681560754776,
0.3376849591732025,
0.3966369926929474,
0.2780676782131195,
-0.18497025966644287,
0.04939882457256317,
-0.3838047683238983,
-0.05599880963563919,
-0.15252792835235596,
-0.2819632589817047,
-0.2818739414215088,
-0.12823227047920227,
0.09951759874820709,
0.3470935821533203,
-0.15715013444423676,
0.3710308372974396,
0.01794690266251564,
-0.3060078024864197,
-0.23530429601669312,
-0.10546311736106873,
0.24770298600196838,
0.2829430401325226,
-0.11344922333955765,
0.05600625276565552,
-0.22235889732837677,
-0.081214539706707,
0.02336469292640686,
-0.4031127095222473,
-0.008065357804298401,
-0.06872937083244324,
0.15180259943008423,
0.13687027990818024,
0.0243080984801054,
0.5706086158752441,
0.010629769414663315,
0.06802599877119064,
-0.24282318353652954,
-0.14646054804325104,
-0.17318595945835114,
0.14919570088386536,
0.1218695193529129,
0.06712906062602997,
-0.3864066004753113,
0.13537560403347015,
-0.08850027620792389,
0.17952947318553925,
-0.15643809735774994,
-0.06570202112197876,
-0.14796602725982666,
0.20392131805419922,
-0.4316806495189667,
0.08307528495788574,
0.15965382754802704,
0.3315751552581787,
0.023645717650651932,
0.0015564337372779846,
0.02249838411808014,
0.017032189294695854,
0.11909099668264389,
0.004099181853234768,
-0.09428003430366516,
0.3629522919654846,
0.05925578996539116,
0.29284435510635376,
-0.010444140061736107,
-0.6340753436088562,
-0.1954897791147232,
0.31985968351364136,
-0.03352373465895653,
0.14366763830184937,
0.16938693821430206,
-0.0985884964466095,
-0.2704075872898102,
-0.18934443593025208,
0.010636456310749054,
-0.21411994099617004,
-0.14672012627124786,
0.1295882910490036,
-0.19053713977336884
] |
https://github.com/huggingface/datasets/issues/302 | Question - Sign Language Datasets | Thanks, Quentin, I think a `requirements.txt` per dataset will be a good thing.
I will work on adding this dataset next week, and once we sort all of the kinks, I'll add more. | An emerging field in NLP is SLP - sign language processing.
I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable.
The metrics for sign language to text translation are the same.
So, what do you think about (me, or others) adding datasets here?
An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/)
For every item in the dataset, the data object includes:
1. video_path - path to mp4 file
2. pose_path - a path to `.pose` file with human pose landmarks
3. openpose_path - a path to a `.json` file with human pose landmarks
4. gloss - string
5. text - string
6. video_metadata - height, width, frames, framerate
------
To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so. | 33 | Question - Sign Language Datasets
An emerging field in NLP is SLP - sign language processing.
I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable.
The metrics for sign language to text translation are the same.
So, what do you think about (me, or others) adding datasets here?
An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/)
For every item in the dataset, the data object includes:
1. video_path - path to mp4 file
2. pose_path - a path to `.pose` file with human pose landmarks
3. openpose_path - a path to a `.json` file with human pose landmarks
4. gloss - string
5. text - string
6. video_metadata - height, width, frames, framerate
------
To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so.
Thanks, Quentin, I think a `requirements.txt` per dataset will be a good thing.
I will work on adding this dataset next week, and once we sort all of the kinks, I'll add more. | [
-0.19740091264247894,
0.40225279331207275,
-0.07910922169685364,
-0.005022913217544556,
-0.07678976655006409,
0.04361037164926529,
0.1185547411441803,
0.2503892183303833,
0.22359208762645721,
-0.32818853855133057,
0.17706623673439026,
0.22711651027202606,
-0.4437551200389862,
0.26446011662483215,
0.34081554412841797,
-0.17647354304790497,
-0.08428027480840683,
0.08045521378517151,
-0.023516349494457245,
-0.09637763351202011,
-0.22084225714206696,
-0.09170776605606079,
0.09560030698776245,
-0.057701364159584045,
-0.442294180393219,
-0.3327750861644745,
-0.17811733484268188,
0.0741669237613678,
-0.2040511518716812,
-0.3707829713821411,
-0.46343278884887695,
0.15675854682922363,
0.42449960112571716,
-0.15837538242340088,
-0.00011447801807662472,
-0.24690787494182587,
0.012398432940244675,
-0.01520481426268816,
-0.2423178255558014,
-0.10233248770236969,
-0.15771837532520294,
-0.7473182678222656,
-0.14942841231822968,
-0.16430935263633728,
0.2529298961162567,
-0.4430563151836395,
0.13768595457077026,
-0.2573293149471283,
0.09757322072982788,
0.3461556136608124,
0.2374008744955063,
0.12113039195537567,
-0.1563316136598587,
0.29647037386894226,
0.12270145118236542,
0.33890312910079956,
-0.000676523894071579,
-0.3003676235675812,
0.3348725438117981,
-0.023487500846385956,
-0.21046182513237,
0.2818761169910431,
0.1933552324771881,
-0.5736476182937622,
0.2710379362106323,
-0.06851734966039658,
-0.20798540115356445,
-0.06763090193271637,
-0.06690885126590729,
0.07544564455747604,
0.3453676402568817,
-0.3600131571292877,
-0.49739232659339905,
-0.7469828128814697,
0.22855116426944733,
-0.09282024949789047,
-0.11265137046575546,
0.3469289243221283,
0.1550319790840149,
-0.010782502591609955,
-0.09980548918247223,
-0.6777374744415283,
0.00452771782875061,
0.10900989174842834,
0.13957762718200684,
0.3664373457431793,
0.15973785519599915,
-0.014016233384609222,
0.021385949105024338,
-0.0601193830370903,
0.07807132601737976,
-0.33961865305900574,
-0.0897083431482315,
0.1468116194009781,
-0.22796659171581268,
-0.2546851336956024,
0.04568730667233467,
0.17959004640579224,
0.15822601318359375,
0.10558778047561646,
-0.03776843473315239,
-0.08720257878303528,
-0.34929603338241577,
0.06521058082580566,
0.3826230466365814,
-0.052461497485637665,
0.0003886297345161438,
0.06254539638757706,
0.028249116614460945,
-0.3815043568611145,
0.3718278706073761,
0.00655544176697731,
-0.037904903292655945,
0.008547918871045113,
-0.1868058741092682,
-0.11112482100725174,
0.1067432314157486,
-0.03398672863841057,
0.023668581619858742,
0.121249720454216,
-0.16664505004882812,
-0.21110983192920685,
0.07592903822660446,
-0.09829651564359665,
0.07460639625787735,
0.3548746407032013,
0.04012330621480942,
0.27716606855392456,
0.20931296050548553,
-0.22900241613388062,
0.06855542212724686,
0.17226526141166687,
-0.3457757234573364,
0.2788127064704895,
0.4381217062473297,
0.06690392643213272,
0.14235828816890717,
0.06031957268714905,
-0.19896657764911652,
0.061863355338573456,
0.350309282541275,
-0.06281708180904388,
0.1613733172416687,
-0.14474408328533173,
0.03858884796500206,
0.0365704745054245,
-0.38839301466941833,
-0.02594328671693802,
-0.29253101348876953,
0.11913208663463593,
0.1366376280784607,
-0.08047597110271454,
-0.038811035454273224,
0.16295458376407623,
-0.40216171741485596,
-0.3853217661380768,
-0.32913079857826233,
0.6202962398529053,
0.10073824226856232,
-0.05824895575642586,
0.15969713032245636,
-0.1684674769639969,
-0.25608351826667786,
0.014038256369531155,
-0.2791423201560974,
0.4288564920425415,
-0.2821625769138336,
-0.10590000450611115,
-0.12970057129859924,
-0.06376844644546509,
-0.2600843012332916,
0.2443728893995285,
-0.2492685467004776,
0.21109020709991455,
-0.027282431721687317,
0.27513712644577026,
0.5070662498474121,
-0.2396640032529831,
0.020898807793855667,
0.47498080134391785,
-0.07977643609046936,
0.0007162224501371384,
0.10555297881364822,
0.3611430823802948,
0.14355047047138214,
-0.1722279042005539,
-0.32930174469947815,
0.32348042726516724,
-0.27847930788993835,
-0.0933738574385643,
-0.20119477808475494,
-0.17717629671096802,
0.44291508197784424,
0.2742108702659607,
0.1469445377588272,
-0.027589403092861176,
-0.06635401397943497,
0.40605419874191284,
0.12702685594558716,
-0.15666373074054718,
0.34016960859298706,
-0.06245893985033035,
0.03527892380952835,
0.013600964099168777,
-0.09273885190486908,
-0.3162548542022705,
-0.1547400951385498,
-0.030482016503810883,
0.012578316032886505,
0.16960518062114716,
0.20884227752685547,
-0.12134863436222076,
0.20399320125579834,
-0.10718261450529099,
0.2525421380996704,
0.09556381404399872,
0.11169113218784332,
0.03824080899357796,
-0.18508674204349518,
-0.1132749617099762,
-0.3947124481201172,
0.4281034767627716,
-0.2745812237262726,
-0.0476972833275795,
-0.011499689891934395,
0.07258695363998413,
0.02954980358481407,
0.169796422123909,
0.13572312891483307,
0.5882989764213562,
-0.261414110660553,
0.027380196377635002,
0.2882314622402191,
-0.16696640849113464,
-0.1725209653377533,
0.18445783853530884,
0.31495028734207153,
0.3089553117752075,
0.32110679149627686,
-0.13853217661380768,
0.19992277026176453,
-0.18848706781864166,
0.16151803731918335,
-0.1845947653055191,
-0.017568588256835938,
0.1953345239162445,
0.18943756818771362,
0.10946658253669739,
0.1455938071012497,
-0.04654797911643982,
0.10121849179267883,
-0.05674334615468979,
-0.32341355085372925,
-0.03163670375943184,
0.28000184893608093,
-0.14449454843997955,
0.34016847610473633,
0.21178483963012695,
-0.37064674496650696,
0.12145078182220459,
0.3513515293598175,
-0.052589595317840576,
0.011654902249574661,
0.2522886097431183,
0.08044031262397766,
-0.1467968225479126,
0.00631101056933403,
0.21709437668323517,
0.4361242651939392,
0.3528648018836975,
0.015123464167118073,
0.08794140070676804,
-0.12889692187309265,
-0.24538323283195496,
0.056670721620321274,
0.1276615858078003,
-0.1084781214594841,
0.19865259528160095,
0.07199124246835709,
0.19952809810638428,
-0.28642737865448,
-0.2640373408794403,
-0.02114757150411606,
-0.01541132666170597,
0.004608243703842163,
0.07396695017814636,
0.04995238780975342,
-0.5297706723213196,
-0.36538827419281006,
0.1866244375705719,
-0.2011536955833435,
-0.23407872021198273,
0.19682787358760834,
-0.3085397183895111,
0.00915389135479927,
0.05809900909662247,
-0.3039529025554657,
0.6582547426223755,
-0.673119843006134,
-0.040369197726249695,
-0.03514235466718674,
-0.34345489740371704,
-0.16521984338760376,
0.14369608461856842,
0.31008240580558777,
0.11607709527015686,
0.4283599853515625,
0.06530459225177765,
0.29604488611221313,
-0.2109532207250595,
-0.548561692237854,
-0.17871461808681488,
-0.3139558434486389,
-0.1921653300523758,
-0.10192888975143433,
-0.14951667189598083,
0.3705405592918396,
-0.16837626695632935,
-0.2032722532749176,
0.07174530625343323,
-0.12424210458993912,
-0.3720763623714447,
-0.014637133106589317,
-0.3222455382347107,
-0.13558192551136017,
-0.1721605360507965,
-0.218624547123909,
-0.3289657235145569,
0.22495856881141663,
0.1005767285823822,
0.0016790926456451416,
-0.021646667271852493,
-0.16452692449092865,
0.20520904660224915,
-0.18310336768627167,
0.060090698301792145,
-0.0031859471928328276,
0.17642754316329956,
0.10624922066926956,
0.079940564930439,
-0.30902281403541565,
0.07495884597301483,
-0.10065870732069016,
0.13148467242717743,
0.2565287947654724,
-0.5255861878395081,
0.12688839435577393,
-0.10699903964996338,
0.064106285572052,
-0.06967724859714508,
-0.10266773402690887,
0.12477385997772217,
0.28397542238235474,
0.024792930111289024,
-0.15746623277664185,
-0.4571681618690491,
0.06724444031715393,
0.12726761400699615,
0.3437803387641907,
-0.13923007249832153,
0.05945144221186638,
-0.0022457540035247803,
0.26478564739227295,
0.2434576451778412,
-0.2642885446548462,
0.3422496020793915,
0.2653166949748993,
0.41945934295654297,
0.16895991563796997,
-0.17617054283618927,
0.3868721127510071,
0.06304571777582169,
0.13716161251068115,
0.2577233910560608,
0.19273525476455688,
-0.2039497345685959,
-0.1808030754327774,
0.1392493098974228,
-0.0761856660246849,
0.020494285970926285,
0.4147290289402008,
-0.3725944757461548,
0.3546571731567383,
0.1537197083234787,
-0.19580450654029846,
-0.2766853868961334,
-0.1765558421611786,
-0.1471787393093109,
0.3364885449409485,
0.328461229801178,
0.17079778015613556,
-0.6410792469978333,
0.03682972863316536,
-0.3105717897415161,
0.046216435730457306,
0.2745629847049713,
0.43196702003479004,
-0.3112003207206726,
0.09761450439691544,
-0.05579385161399841,
0.036180686205625534,
-0.10557787120342255,
-0.4134277105331421,
-0.4755862355232239,
-0.12964239716529846,
0.14339111745357513,
-0.19864149391651154,
0.2495853751897812,
-0.03980737924575806,
-0.020132072269916534,
0.31655991077423096,
0.2909580171108246,
-0.10882694274187088,
-0.09149764478206635,
0.026457522064447403,
0.3308040499687195,
-0.029689103364944458,
-0.402797669172287,
0.10511776804924011,
-0.19422852993011475,
-0.09854799509048462,
-0.17010143399238586,
-0.06686310470104218,
-0.18662148714065552,
0.20330213010311127,
0.10286810994148254,
-0.13521167635917664,
-0.22714325785636902,
0.3835306167602539,
-0.07931922376155853,
-0.3464410603046417,
0.1934298872947693,
0.11893920600414276,
-0.2414221167564392,
0.33231329917907715,
-0.02649197168648243,
0.3513554632663727,
-0.1645985245704651,
-0.20129773020744324,
0.02915007993578911,
-0.2196478396654129,
0.6314369440078735,
0.35423803329467773,
0.08560165762901306,
0.3629104495048523,
0.0632554218173027,
-0.3654574155807495,
-0.36025792360305786,
0.3150699734687805,
0.23699702322483063,
0.19422563910484314,
-0.3291451036930084,
-0.507660984992981,
0.40111657977104187,
0.1376359909772873,
-0.036406200379133224,
-0.06778312474489212,
-0.14304034411907196,
-0.2811065912246704,
0.2408289611339569,
-0.008188501000404358,
0.7889882922172546,
-0.14933635294437408,
0.24965298175811768,
-0.07657743245363235,
-0.5114428997039795,
0.6271572113037109,
-0.16748343408107758,
-0.08042794466018677,
-0.014344234019517899,
0.18382799625396729,
-0.019193265587091446,
-0.08121290802955627,
0.13407889008522034,
0.31620025634765625,
0.2134096622467041,
-0.04627600312232971,
0.28835707902908325,
-0.07037903368473053,
0.10026475042104721,
0.8568928241729736,
-0.30346059799194336,
-0.39636778831481934,
-0.36593368649482727,
0.12642042338848114,
-0.2464095801115036,
-0.026611190289258957,
-0.06498972326517105,
-0.2947365641593933,
-0.13238218426704407,
0.12679368257522583,
-0.48325151205062866,
-0.06936845183372498,
0.38884344696998596,
-0.23502425849437714,
-0.15117207169532776,
-0.07680776715278625,
0.717642605304718,
0.07720936089754105,
0.33002710342407227,
0.0314689502120018,
-0.19528889656066895,
0.02412964403629303,
-0.43251723051071167,
-0.08638618886470795,
0.14717385172843933,
0.12194570899009705,
0.14038273692131042,
-0.1454218029975891,
0.023473180830478668,
0.2262599766254425,
0.06845961511135101,
-0.014514613896608353,
-0.5050383806228638,
0.05227816477417946,
0.19508801400661469,
-0.1231158971786499,
-0.068928062915802,
0.5138168931007385,
-0.06818528473377228,
0.020765606313943863,
0.10276409983634949,
0.18382620811462402,
0.1689915806055069,
0.09131207317113876,
0.1520516574382782,
-0.03745776787400246,
-0.21605965495109558,
0.04296844080090523,
-0.075325608253479,
-0.20157432556152344,
0.23438389599323273,
0.033045750111341476,
-0.0555223785340786,
-0.18408679962158203,
0.07510501891374588,
-0.14975471794605255,
-0.3243544101715088,
-0.3104674220085144,
0.30034348368644714,
-0.07594559341669083,
-0.2433859407901764,
-0.05680469796061516,
0.17332735657691956,
-0.22640582919120789,
0.24748264253139496,
-0.24299639463424683,
-0.33149343729019165,
0.20824138820171356,
-0.31189075112342834,
0.11740386486053467,
-0.0232219398021698,
0.3572559952735901,
-0.14800813794136047,
0.25786176323890686,
-0.28049761056900024,
-0.15461017191410065,
0.0882633700966835,
0.31050747632980347,
0.3099581003189087,
-0.08457546681165695,
-0.26859143376350403,
-0.17620334029197693,
0.01619608886539936,
-0.14892436563968658,
-0.10561338067054749,
-0.08669029176235199,
-0.03642844408750534,
0.1263318657875061,
0.41049036383628845,
-0.16538529098033905,
-0.04199346899986267,
-0.13248172402381897,
-0.05440594628453255,
-0.04909098893404007,
-0.24263598024845123,
-0.07072502374649048,
-0.27579009532928467,
0.41806358098983765,
-0.34726136922836304,
-0.06581460684537888,
-0.14800328016281128,
0.17745651304721832,
-0.04574388265609741,
0.28279387950897217,
0.21081513166427612,
0.32143327593803406,
0.3153132498264313,
0.2342090904712677,
-0.1881677657365799,
0.29934099316596985,
0.06029292568564415,
0.18302103877067566,
0.14457514882087708,
-0.04685042053461075,
0.44791778922080994,
0.29597732424736023,
0.1411784142255783,
0.2675279676914215,
-0.013285120017826557,
-0.1491364985704422,
0.34320592880249023,
0.13705772161483765,
-0.2571587562561035,
0.18181638419628143,
0.08003544807434082,
0.25186359882354736,
0.06291012465953827,
0.4056016504764557,
0.3765973150730133,
0.10174117982387543,
-0.025252439081668854,
-0.09591270983219147,
0.1464976668357849,
-0.1528301239013672,
-0.0625,
-0.0497925840318203,
0.09694015979766846,
-0.013849709182977676,
0.11297153681516647,
0.5702893733978271,
0.041304171085357666,
0.17164018750190735,
-0.08988072723150253,
0.5023491382598877,
0.13052305579185486,
0.2156413346529007,
0.21771663427352905,
-0.2426009476184845,
0.05982252210378647,
0.25343531370162964,
0.23598355054855347,
0.02471160516142845,
0.08120947331190109,
0.4312995970249176,
0.07412445545196533,
-0.18814371526241302,
0.1945919692516327,
0.22067059576511383,
-0.20818352699279785,
0.11941231787204742,
-0.0904790535569191,
-0.1270570307970047,
-0.15313339233398438,
0.034822944551706314,
-0.12822726368904114,
-0.23180268704891205,
0.1473715603351593,
0.08511978387832642,
-0.018901854753494263,
-0.5047823786735535,
0.3316524922847748,
0.013049136847257614,
0.08007068186998367,
-0.08406398445367813,
0.2831830680370331,
-0.17456679046154022,
-0.09478634595870972,
0.44626107811927795,
0.21712420880794525,
0.09836944937705994,
0.2315957099199295,
0.06038500368595123,
0.36694100499153137,
-0.22155766189098358,
0.12180733680725098,
-0.06246870383620262,
0.5107768774032593,
0.2789461612701416,
0.14899852871894836,
0.4225066304206848,
0.0446113646030426,
-0.019827894866466522,
0.19220520555973053,
0.03854428976774216,
-0.35319581627845764,
-0.19633591175079346,
0.6884590983390808,
0.13493546843528748,
-0.13587118685245514,
-0.2045062780380249,
-0.0006403699517250061,
-0.045013390481472015,
-0.36991292238235474,
0.4495590031147003,
-0.07290427386760712,
0.039634350687265396,
-0.24856503307819366,
0.06800363212823868,
-0.07032419741153717,
0.31277626752853394,
0.39564764499664307,
0.30381399393081665,
-0.13837890326976776,
0.06634750962257385,
-0.48064330220222473,
-0.12933334708213806,
-0.19266240298748016,
-0.18807630240917206,
-0.2800236940383911,
-0.07143772393465042,
0.09983732551336288,
0.3237401843070984,
-0.18765534460544586,
0.4049890637397766,
0.06944497674703598,
-0.34570714831352234,
-0.22886629402637482,
-0.05236024037003517,
0.30796730518341064,
0.1860608160495758,
-0.12233080714941025,
0.11427175253629684,
-0.16672252118587494,
0.013004655949771404,
0.01835404336452484,
-0.37343060970306396,
-0.06548909097909927,
-0.07637055218219757,
0.31839993596076965,
0.0978388786315918,
0.10626380145549774,
0.5531415939331055,
-0.00796172022819519,
0.011462347581982613,
-0.21547183394432068,
-0.2639877200126648,
-0.24832560122013092,
0.12838789820671082,
0.10177764296531677,
0.06747091561555862,
-0.371889591217041,
0.33229559659957886,
-0.027088943868875504,
0.1103985384106636,
-0.07589618861675262,
-0.08411264419555664,
-0.21964684128761292,
0.1999894380569458,
-0.3208364248275757,
0.19738702476024628,
0.12384523451328278,
0.31815001368522644,
0.11431215703487396,
0.04780130833387375,
-0.07393839955329895,
-0.017861073836684227,
0.16781297326087952,
-0.004086798522621393,
-0.05249491706490517,
0.3718814253807068,
0.18767403066158295,
0.39534974098205566,
-0.023264946416020393,
-0.7201077342033386,
-0.37905070185661316,
0.3896290361881256,
-0.14203187823295593,
0.17435088753700256,
0.19147294759750366,
-0.0830184668302536,
-0.3334837853908539,
-0.15277667343616486,
-0.03220056742429733,
-0.24289360642433167,
-0.1434963047504425,
0.19090916216373444,
-0.18250660598278046
] |
https://github.com/huggingface/datasets/issues/301 | Setting cache_dir gives error on wikipedia download | Whoops didn't mean to close this one.
I did some changes, could you try to run it from the master branch ? | First of all thank you for a super handy library! I'd like to download large files to a specific drive so I set `cache_dir=my_path`. This works fine with e.g. imdb and squad. But on wikipedia I get an error:
```
nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=my_path)
```
```
OSError Traceback (most recent call last)
<ipython-input-2-23551344d7bc> in <module>
1 import nlp
----> 2 nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=path)
~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
385 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir):
386 reader = ArrowReader(self._cache_dir, self.info)
--> 387 reader.download_from_hf_gcs(self._cache_dir, self._relative_data_dir(with_version=True))
388 downloaded_info = DatasetInfo.from_directory(self._cache_dir)
389 self.info.update(downloaded_info)
~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/arrow_reader.py in download_from_hf_gcs(self, cache_dir, relative_data_dir)
231 remote_dataset_info = os.path.join(remote_cache_dir, "dataset_info.json")
232 downloaded_dataset_info = cached_path(remote_dataset_info)
--> 233 os.rename(downloaded_dataset_info, os.path.join(cache_dir, "dataset_info.json"))
234 if self._info is not None:
235 self._info.update(self._info.from_directory(cache_dir))
OSError: [Errno 18] Invalid cross-device link: '/home/local/NTU/nn/.cache/huggingface/datasets/025fa4fd4f04aaafc9e939260fbc8f0bb190ce14c61310c8ae1ddd1dcb31f88c.9637f367b6711a79ca478be55fe6989b8aea4941b7ef7adc67b89ff403020947' -> '/data/nn/nlp/wikipedia/20200501.de/1.0.0.incomplete/dataset_info.json'
``` | 22 | Setting cache_dir gives error on wikipedia download
First of all thank you for a super handy library! I'd like to download large files to a specific drive so I set `cache_dir=my_path`. This works fine with e.g. imdb and squad. But on wikipedia I get an error:
```
nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=my_path)
```
```
OSError Traceback (most recent call last)
<ipython-input-2-23551344d7bc> in <module>
1 import nlp
----> 2 nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=path)
~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
385 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir):
386 reader = ArrowReader(self._cache_dir, self.info)
--> 387 reader.download_from_hf_gcs(self._cache_dir, self._relative_data_dir(with_version=True))
388 downloaded_info = DatasetInfo.from_directory(self._cache_dir)
389 self.info.update(downloaded_info)
~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/arrow_reader.py in download_from_hf_gcs(self, cache_dir, relative_data_dir)
231 remote_dataset_info = os.path.join(remote_cache_dir, "dataset_info.json")
232 downloaded_dataset_info = cached_path(remote_dataset_info)
--> 233 os.rename(downloaded_dataset_info, os.path.join(cache_dir, "dataset_info.json"))
234 if self._info is not None:
235 self._info.update(self._info.from_directory(cache_dir))
OSError: [Errno 18] Invalid cross-device link: '/home/local/NTU/nn/.cache/huggingface/datasets/025fa4fd4f04aaafc9e939260fbc8f0bb190ce14c61310c8ae1ddd1dcb31f88c.9637f367b6711a79ca478be55fe6989b8aea4941b7ef7adc67b89ff403020947' -> '/data/nn/nlp/wikipedia/20200501.de/1.0.0.incomplete/dataset_info.json'
```
Whoops didn't mean to close this one.
I did some changes, could you try to run it from the master branch ? | [
-0.01641375944018364,
0.22768670320510864,
-0.008926212787628174,
0.10926683247089386,
0.12234579026699066,
0.19993749260902405,
0.2557857632637024,
0.3317468762397766,
0.4485456347465515,
-0.10235463082790375,
-0.19036418199539185,
0.11786547303199768,
0.06666650623083115,
-0.5188583135604858,
0.14065060019493103,
-0.11021842062473297,
0.030000127851963043,
-0.06131282448768616,
-0.02265109121799469,
0.051693931221961975,
-0.27471956610679626,
0.26226285099983215,
-0.0441816970705986,
0.054090097546577454,
-0.24338166415691376,
-0.10504645854234695,
-0.07263284176588058,
0.1074613481760025,
0.11366559565067291,
-0.3596627414226532,
0.41280514001846313,
-0.02995281293988228,
0.2771960496902466,
0.4403320550918579,
-0.00011742396600311622,
-0.015260916203260422,
0.3624253273010254,
-0.2030954360961914,
-0.5579507946968079,
-0.21635617315769196,
-0.22460967302322388,
-0.24185916781425476,
0.21057617664337158,
-0.47613847255706787,
0.3626423478126526,
0.3921282887458801,
0.3601878881454468,
-0.28841137886047363,
-0.11544546484947205,
0.3803900182247162,
0.18881316483020782,
-0.21331363916397095,
-0.024149080738425255,
0.13253439962863922,
0.45766204595565796,
0.00644887238740921,
-0.04604097455739975,
0.4196567237377167,
-0.5581920146942139,
-0.182406947016716,
-0.19788706302642822,
0.3190627694129944,
-0.33483800292015076,
0.3610636591911316,
0.4996752440929413,
0.16896744072437286,
0.05516697093844414,
-0.15767227113246918,
0.17405220866203308,
-0.021713078022003174,
0.7087019085884094,
-0.3186954855918884,
-0.16675306856632233,
-0.12986153364181519,
-0.19166302680969238,
-0.3419364392757416,
0.3887313902378082,
0.3142922520637512,
-0.2168809026479721,
-0.1313346028327942,
-0.07851997017860413,
-0.18641746044158936,
-0.20555128157138824,
0.5084336996078491,
0.03534757345914841,
0.24218076467514038,
-0.011890345253050327,
0.10773369669914246,
0.310528039932251,
0.15596528351306915,
-0.015227741561830044,
-0.18830889463424683,
0.028922079131007195,
0.2680673897266388,
-0.09172861278057098,
0.046328961849212646,
0.016493644565343857,
0.17545995116233826,
0.0469527542591095,
-0.13587729632854462,
-0.03642195463180542,
-0.1584874391555786,
-0.018010016530752182,
0.20707854628562927,
0.26718488335609436,
0.4584437608718872,
-0.2714018225669861,
0.07250814884901047,
0.34549540281295776,
0.259630411863327,
-0.1769953966140747,
-0.011410009115934372,
0.21531718969345093,
-0.2061932384967804,
0.04937608167529106,
-0.08842860162258148,
0.16823776066303253,
-0.19104832410812378,
-0.0727938711643219,
-0.013465180061757565,
-0.12057367712259293,
-0.20028313994407654,
0.04975257068872452,
0.391338050365448,
-0.11084333807229996,
0.0725884661078453,
0.03939690440893173,
0.3830534815788269,
-0.2109769582748413,
0.3658888638019562,
-0.08639311790466309,
0.18494407832622528,
-0.05625481903553009,
0.364035040140152,
0.39745089411735535,
0.16439862549304962,
0.2825458347797394,
-0.29967111349105835,
0.010531473904848099,
-0.10802198946475983,
0.026368433609604836,
-0.3558080196380615,
0.04727937653660774,
0.21185563504695892,
0.1468362957239151,
0.5156884789466858,
0.21544666588306427,
-0.1385781466960907,
-0.33629143238067627,
0.1985246241092682,
-0.38420742750167847,
-0.4099836051464081,
0.020229198038578033,
0.10661707818508148,
-0.22284267842769623,
-0.18021689355373383,
-0.06740947812795639,
-0.09133820235729218,
0.4154752492904663,
-0.27225926518440247,
0.20223607122898102,
0.08812429010868073,
-0.3097885251045227,
-0.3220292329788208,
0.01655714400112629,
0.3973729610443115,
0.0871979296207428,
0.03176476061344147,
-0.18663538992404938,
0.47133585810661316,
0.2485881745815277,
0.49716949462890625,
-0.16580261290073395,
0.32171308994293213,
-0.20381329953670502,
0.14774206280708313,
0.5421155095100403,
-0.4087112843990326,
-0.5469188690185547,
0.23165252804756165,
0.006427355110645294,
-0.11506903916597366,
0.13681155443191528,
0.27839574217796326,
0.19178816676139832,
-0.09246790409088135,
0.05882328748703003,
0.5033124089241028,
0.14405016601085663,
0.2762484550476074,
-0.41325387358665466,
-0.18852335214614868,
0.2845272421836853,
-0.042729493230581284,
-0.07079167664051056,
0.02578447014093399,
-0.04644618183374405,
0.5719909071922302,
0.13341087102890015,
-0.02202533558011055,
0.07294755429029465,
0.37172240018844604,
0.008581049740314484,
0.08948920667171478,
0.043272241950035095,
0.18528756499290466,
-0.2929482161998749,
0.08711908012628555,
0.0779813751578331,
-0.025802135467529297,
-0.15080417692661285,
-0.05668915808200836,
-0.20657145977020264,
-0.24051618576049805,
-0.14766797423362732,
-0.3601517379283905,
0.10878907144069672,
0.0835639238357544,
0.45313596725463867,
0.18447944521903992,
0.0979958027601242,
0.046485334634780884,
0.14987847208976746,
-0.027507495135068893,
-0.12224473059177399,
0.2475833147764206,
-0.31758636236190796,
-0.054307274520397186,
-0.2789756953716278,
0.06169494241476059,
0.06930854916572571,
0.10275715589523315,
-0.31416821479797363,
0.20363527536392212,
0.12152612954378128,
-0.1842944473028183,
0.06915611773729324,
0.03487354516983032,
0.09981326013803482,
-0.15285883843898773,
0.20426732301712036,
0.4087332785129547,
0.15078921616077423,
0.07229579240083694,
-0.44350048899650574,
0.0004094168543815613,
-0.1792556196451187,
0.11779443174600601,
-0.0772789940237999,
0.04837051033973694,
0.3536258935928345,
0.031791802495718,
0.3313836455345154,
-0.0596577525138855,
0.43910542130470276,
0.2169996052980423,
0.1532563716173172,
-0.1297251284122467,
0.08154545724391937,
-0.1299457550048828,
0.12998659908771515,
0.1706518828868866,
0.24197107553482056,
0.351833701133728,
-0.1239762082695961,
-0.33932068943977356,
-0.01087951473891735,
0.2468975931406021,
0.42088842391967773,
0.10964652895927429,
0.27627426385879517,
-0.19046063721179962,
-0.09322749078273773,
-0.1360226422548294,
0.29233646392822266,
-0.027751393616199493,
0.08625716716051102,
-0.04536375403404236,
0.15774032473564148,
-0.03867701068520546,
-0.06471278518438339,
-0.13630765676498413,
0.006143519654870033,
0.41868600249290466,
-0.23523211479187012,
0.2236889898777008,
-0.026441728696227074,
-0.5045298337936401,
-0.1359301060438156,
-0.12097200006246567,
-0.2691152095794678,
-0.3751644492149353,
0.015554649755358696,
0.5011124610900879,
0.13190264999866486,
0.0480407252907753,
-0.25720885396003723,
-0.0303104966878891,
0.1434948742389679,
-0.4754093587398529,
-0.020460236817598343,
-0.32411760091781616,
-0.14429140090942383,
-0.08568061143159866,
0.3514273166656494,
-0.12240822613239288,
0.059344977140426636,
0.04045789688825607,
-0.09670024365186691,
-0.45001766085624695,
0.0011221244931221008,
-0.05972488224506378,
0.058508895337581635,
-0.12517423927783966,
-0.06320427358150482,
0.4381810426712036,
-0.12693136930465698,
-0.34282422065734863,
0.06283874809741974,
-0.05274184048175812,
0.16007135808467865,
0.13987179100513458,
0.1020856723189354,
0.29674598574638367,
-0.19137410819530487,
-0.009145036339759827,
-0.11770559102296829,
-0.3937448263168335,
0.17961204051971436,
0.11782141029834747,
0.21932452917099,
0.5895364284515381,
-0.07777697592973709,
0.11911062896251678,
0.17468544840812683,
0.09490088373422623,
-0.23953260481357574,
-0.24282124638557434,
0.5289350152015686,
-0.16705292463302612,
-0.19495940208435059,
-0.0525021106004715,
-0.001517580822110176,
0.04635751247406006,
0.19171664118766785,
-0.7021473050117493,
-0.14431850612163544,
0.00017085298895835876,
0.38618218898773193,
0.060608357191085815,
0.02476516179740429,
0.32328712940216064,
-0.22176460921764374,
0.02594129554927349,
0.021082803606987,
-0.25410181283950806,
0.06530994176864624,
0.2154114544391632,
0.3576694130897522,
-0.025815337896347046,
0.24749329686164856,
0.09258207678794861,
0.7005696892738342,
-0.09845319390296936,
0.13672450184822083,
0.5910079479217529,
0.2630671262741089,
0.3123767673969269,
-0.10811234265565872,
-0.14156460762023926,
0.03397583216428757,
-0.2543649971485138,
-0.4127686619758606,
0.2169574648141861,
0.11304033547639847,
-0.5909470319747925,
-0.11572163552045822,
0.07740730047225952,
-0.0475127249956131,
-0.2686401307582855,
0.17148083448410034,
-0.11324843764305115,
0.07477040588855743,
-0.00878887064754963,
0.008581005036830902,
-0.31244274973869324,
-0.4371774196624756,
0.027365610003471375,
0.33864450454711914,
0.0391053780913353,
0.2308516502380371,
0.08255065977573395,
-0.19850991666316986,
-0.4888903498649597,
0.20853249728679657,
0.11874409765005112,
0.10587725788354874,
-0.1161026805639267,
-0.015306508168578148,
0.03505375236272812,
0.03164227306842804,
0.2744385898113251,
0.04891187697649002,
0.1794002652168274,
-0.035677000880241394,
0.24671411514282227,
-0.42964836955070496,
-0.08892850577831268,
0.05980348214507103,
0.5444704294204712,
0.3421792685985565,
0.16696307063102722,
-0.3141854703426361,
0.04725634306669235,
0.027811286970973015,
0.17553801834583282,
-0.07615640759468079,
-0.33645641803741455,
-0.2055239975452423,
-0.2697414755821228,
-0.36977848410606384,
-0.12101762741804123,
-0.0007539298385381699,
0.029036732390522957,
0.22872895002365112,
0.3266441822052002,
0.10511357337236404,
0.1288551688194275,
-0.2328958660364151,
-0.1433011144399643,
0.2951723039150238,
0.26285630464553833,
-0.10474283993244171,
0.05275420472025871,
0.047278404235839844,
-0.3289652466773987,
0.25998079776763916,
-0.12445938587188721,
-0.006839722394943237,
0.08608676493167877,
0.10599274933338165,
-0.2923344075679779,
0.058714888989925385,
0.09293447434902191,
-0.13387319445610046,
-0.04505032300949097,
-0.19969011843204498,
0.06669018417596817,
0.19335076212882996,
0.14343608915805817,
-0.14516545832157135,
-0.11407352983951569,
-0.34756115078926086,
0.7029224038124084,
0.02355034649372101,
0.11700563132762909,
0.43386349081993103,
-0.10114860534667969,
-0.30100181698799133,
0.18585972487926483,
0.11761650443077087,
0.7429118156433105,
-0.07623447477817535,
0.4683907926082611,
0.17142397165298462,
-0.08572908490896225,
0.7115087509155273,
-0.3196161985397339,
0.36852192878723145,
-0.21884837746620178,
0.1506061553955078,
0.026021292433142662,
-0.1230166107416153,
-0.32936954498291016,
-0.0714217871427536,
-0.4267332851886749,
0.27697083353996277,
-0.016586266458034515,
0.006623975932598114,
-0.029911523684859276,
0.37364134192466736,
-0.0640195980668068,
-0.41044503450393677,
-0.33340510725975037,
0.09719386696815491,
-0.39083582162857056,
0.43601641058921814,
-0.045333340764045715,
0.020780667662620544,
-0.16530534625053406,
-0.09807778894901276,
-0.3404098153114319,
0.05870230495929718,
-0.28883740305900574,
0.6166510581970215,
-0.39214587211608887,
-0.35204994678497314,
-0.2892829179763794,
0.3093363642692566,
0.03791450336575508,
-0.03055238351225853,
-0.24291443824768066,
-0.007158923894166946,
-0.2245865762233734,
-0.09483715891838074,
0.10907340049743652,
-0.07166606932878494,
0.06745490431785583,
-0.1958352029323578,
0.052008964121341705,
-0.10567697137594223,
-0.14422248303890228,
-0.4680243730545044,
0.17117685079574585,
0.09204920381307602,
-0.0723896324634552,
0.1589513123035431,
-0.3950130045413971,
-0.05226990580558777,
-0.24813054502010345,
-0.009481623768806458,
0.0887654572725296,
0.08747149258852005,
-0.003382778260856867,
-0.03487474471330643,
-0.19816061854362488,
-0.33734259009361267,
0.05061069875955582,
0.4414914846420288,
-0.09779082983732224,
-0.00769609771668911,
0.5240358114242554,
-0.014790259301662445,
-0.4055357575416565,
-0.0018621161580085754,
-0.13364818692207336,
-0.7260410785675049,
-0.24801486730575562,
0.0179758183658123,
-0.27693673968315125,
0.1718016117811203,
-0.4101262092590332,
-0.2733958065509796,
0.21855223178863525,
0.14189544320106506,
-0.01730934903025627,
-0.4404849708080292,
-0.30084314942359924,
0.07399185746908188,
-0.34562864899635315,
-0.021984171122312546,
0.1455751359462738,
-0.3908928334712982,
0.33728528022766113,
-0.015986664220690727,
-0.18532368540763855,
0.03636378049850464,
-0.19458554685115814,
0.05074625834822655,
0.34063732624053955,
-0.17693236470222473,
0.194138303399086,
-0.06365266442298889,
-0.00018498487770557404,
-0.13368110358715057,
0.03471040353178978,
-0.16828694939613342,
-0.11248043179512024,
0.15424315631389618,
0.12873557209968567,
-0.25471001863479614,
-0.01747072860598564,
-0.43008679151535034,
0.18384909629821777,
-0.11784470081329346,
-0.2559460997581482,
0.18824338912963867,
-0.06935290992259979,
0.16108383238315582,
0.024028193205595016,
0.03285946696996689,
-0.20471902191638947,
0.15652380883693695,
-0.28315114974975586,
0.2583543658256531,
0.10936223715543747,
0.34051603078842163,
0.16001860797405243,
0.025988377630710602,
-0.6841732263565063,
-0.05029808729887009,
-0.2113678902387619,
0.09810252487659454,
0.008451864123344421,
-0.38846737146377563,
0.006138719618320465,
0.2412348985671997,
-0.08072617650032043,
0.17983801662921906,
-0.06103821471333504,
-0.2179073840379715,
0.3269451856613159,
0.050585806369781494,
0.02004876360297203,
0.03222225606441498,
0.3912019729614258,
-0.10066282004117966,
-0.15353645384311676,
0.1829550862312317,
0.033277470618486404,
-0.08523276448249817,
0.05598820000886917,
0.1523456573486328,
0.24912485480308533,
-0.058781251311302185,
0.12429121136665344,
0.017892230302095413,
-0.05047918111085892,
0.13448955118656158,
0.07266190648078918,
0.21493160724639893,
0.20573920011520386,
0.14940911531448364,
0.004157744348049164,
0.17108571529388428,
0.2343471348285675,
-0.3078138828277588,
-0.1340900957584381,
-0.1303471326828003,
-0.15431278944015503,
-0.10207492113113403,
0.06687963753938675,
0.09824569523334503,
0.00009416043758392334,
0.20794633030891418,
-0.21352455019950867,
0.14496895670890808,
-0.059969715774059296,
0.11553823947906494,
-0.0978124663233757,
-0.06594067811965942,
0.060334451496601105,
0.026301085948944092,
0.13751091063022614,
0.10758373141288757,
-0.18264256417751312,
-0.16796822845935822,
0.28718650341033936,
0.31520479917526245,
-0.18913410604000092,
-0.22318872809410095,
0.4620458781719208,
0.17359232902526855,
0.08192581683397293,
-0.16702020168304443,
0.1947748214006424,
-0.058555349707603455,
-0.14759327471256256,
-0.1181580126285553,
0.15864790976047516,
0.5159632563591003,
0.4165540337562561,
-0.4197709858417511,
-0.06788285076618195,
0.02996049076318741,
0.09226643294095993,
-0.03815271705389023,
-0.0678894966840744,
0.20263439416885376,
-0.09424808621406555,
0.2924463152885437,
0.037886448204517365,
-0.0711587443947792,
0.23845352232456207,
0.18495869636535645,
0.05349889025092125,
0.15749627351760864,
-0.027670420706272125,
0.09169425070285797,
0.04335092008113861,
0.014420384541153908,
0.18337062001228333,
-0.3618435263633728,
0.281403511762619,
0.13142314553260803,
0.0616643913090229,
0.02841610461473465,
0.1367621123790741,
0.020925190299749374,
0.18753591179847717,
0.5410300493240356,
0.22929467260837555,
0.2683117687702179,
-0.5026735663414001,
0.08787235617637634,
-0.5525563955307007,
0.29626932740211487,
-0.3617636263370514,
-0.17348262667655945,
-0.14761102199554443,
0.3638658821582794,
-0.3391847610473633,
0.18393534421920776,
0.017515450716018677,
-0.10176783800125122,
0.09942450374364853,
0.1635327786207199,
-0.23899687826633453,
-0.19564805924892426,
-0.11134134232997894,
0.05189164727926254,
-0.08038432151079178,
-0.4228537380695343,
0.034817054867744446,
0.0322064608335495,
0.0673614889383316,
-0.07691635191440582,
-0.05760030820965767,
0.08643227815628052,
0.5537899732589722,
0.1799573302268982,
-0.07725370675325394,
0.4416601359844208,
0.006158113479614258,
-0.20313329994678497,
-0.35204270482063293,
-0.036679185926914215,
-0.1375383883714676,
-0.21563008427619934,
-0.07386311888694763,
0.2568706274032593,
-0.39551347494125366,
-0.09108103811740875,
-0.4942490756511688,
0.7418961524963379,
-0.1484314203262329,
-0.03399520739912987,
0.23667913675308228,
-0.2610364258289337,
0.008272014558315277,
0.2684924304485321,
0.19107306003570557,
0.04642060399055481,
-0.1763654202222824,
0.3552635908126831,
-0.4896116256713867,
-0.2099744826555252,
0.3372942805290222,
-0.4862917959690094,
-0.32943111658096313,
0.0979144275188446,
0.2620272636413574,
0.18557938933372498,
0.1044575646519661,
-0.3378353714942932,
0.04519575089216232,
0.26776230335235596,
0.044468238949775696,
-0.4406728148460388,
-0.1964239627122879,
-0.0974893569946289,
0.10889771580696106,
-0.00882440060377121,
0.14060059189796448,
0.08232226967811584,
-0.304253488779068,
-0.17035247385501862,
-0.24228350818157196
] |
https://github.com/huggingface/datasets/issues/297 | Error in Demo for Specific Datasets | Thanks for reporting these errors :)
I can actually see two issues here.
First, datasets like `natural_questions` require apache_beam to be processed. Right now the import is not at the right place so we have this error message. However, even the imports are fixed, the nlp viewer doesn't actually have the resources to process NQ right now so we'll have to wait until we have a version that we've already processed on our google storage (that's what we've done for wikipedia for example).
Second, datasets like `newsroom` require manual downloads as we're not allowed to redistribute the data ourselves (if I'm not wrong). An error message should be displayed saying that we're not allowed to show the dataset.
I can fix the first issue with the imports but for the second one I think we'll have to see with @srush to show a message for datasets that require manual downloads (it can be checked whether a dataset requires manual downloads if `dataset_builder_instance.manual_download_instructions is not None`).
| Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following.
![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png)
| 165 | Error in Demo for Specific Datasets
Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following.
![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png)
Thanks for reporting these errors :)
I can actually see two issues here.
First, datasets like `natural_questions` require apache_beam to be processed. Right now the import is not at the right place so we have this error message. However, even the imports are fixed, the nlp viewer doesn't actually have the resources to process NQ right now so we'll have to wait until we have a version that we've already processed on our google storage (that's what we've done for wikipedia for example).
Second, datasets like `newsroom` require manual downloads as we're not allowed to redistribute the data ourselves (if I'm not wrong). An error message should be displayed saying that we're not allowed to show the dataset.
I can fix the first issue with the imports but for the second one I think we'll have to see with @srush to show a message for datasets that require manual downloads (it can be checked whether a dataset requires manual downloads if `dataset_builder_instance.manual_download_instructions is not None`).
| [
-0.19810733199119568,
0.40337759256362915,
-0.03457435593008995,
0.09161726385354996,
-0.060980767011642456,
-0.04047087952494621,
0.2643224895000458,
0.3957088589668274,
-0.020650096237659454,
0.1149800643324852,
0.036537639796733856,
0.12681803107261658,
-0.1433795690536499,
0.17077232897281647,
0.19211755692958832,
-0.4499633014202118,
-0.003880426287651062,
0.12495505809783936,
-0.03555621951818466,
-0.0693199634552002,
-0.12045685946941376,
0.16535060107707977,
-0.47254127264022827,
0.2649039626121521,
-0.01761193946003914,
-0.2618619501590729,
-0.038472723215818405,
0.039273809641599655,
-0.3994915783405304,
-0.46573615074157715,
0.08092768490314484,
0.19680169224739075,
0.15992651879787445,
-0.0005183219909667969,
-0.00011310289846733212,
0.03824008256196976,
0.48391664028167725,
-0.048316702246665955,
-0.5484039783477783,
-0.16969336569309235,
-0.12862899899482727,
-0.3020375669002533,
0.10215600579977036,
-0.04305456951260567,
0.02622951567173004,
-0.6082088947296143,
0.19225141406059265,
-0.07852248102426529,
0.3578091859817505,
0.5196118950843811,
0.22013616561889648,
0.507609486579895,
0.016103360801935196,
-0.3282739520072937,
0.4393448829650879,
0.29428303241729736,
-0.1518377661705017,
0.1352209597826004,
0.04779030382633209,
-0.05100177973508835,
-0.03646489232778549,
0.3086342215538025,
0.025701260194182396,
0.15278330445289612,
-0.060261599719524384,
-0.1421567052602768,
-0.3206351399421692,
-0.4986160695552826,
-0.11975114792585373,
0.44593843817710876,
0.6633602976799011,
0.07437168806791306,
-0.1835978776216507,
-0.19394955039024353,
0.1495731770992279,
0.04788056015968323,
0.06316256523132324,
0.4371379017829895,
-0.21380330622196198,
-0.019730307161808014,
-0.37873411178588867,
-0.27511534094810486,
-0.2470449060201645,
0.44001519680023193,
0.08486694097518921,
0.09874708950519562,
-0.02640409767627716,
0.26914042234420776,
-0.05080072209239006,
-0.18012939393520355,
0.1278463453054428,
-0.05870780348777771,
0.05414637178182602,
0.0016127056442201138,
-0.4455093741416931,
-0.11124074459075928,
-0.03117992728948593,
0.04059896990656853,
0.037282973527908325,
0.19457411766052246,
0.12947718799114227,
-0.011735860258340836,
0.0395427942276001,
0.27936500310897827,
0.2831093668937683,
0.3266352713108063,
0.31462758779525757,
0.38724157214164734,
0.40345609188079834,
0.05307801067829132,
0.17791172862052917,
0.20514115691184998,
-0.1392933577299118,
-0.3384781777858734,
-0.506516695022583,
0.03238527849316597,
0.31755805015563965,
-0.251968652009964,
-0.5763880610466003,
0.20638485252857208,
-0.2966662645339966,
-0.009444703347980976,
-0.054754842072725296,
0.3192158043384552,
0.09110447019338608,
0.023212622851133347,
0.1775573045015335,
0.4780529737472534,
-0.21472635865211487,
-0.7115911841392517,
0.03569183871150017,
0.33530130982398987,
-0.29338014125823975,
0.14219717681407928,
0.29546651244163513,
0.37536880373954773,
0.1908029019832611,
0.017195455729961395,
0.15302515029907227,
-0.03490890935063362,
0.31728482246398926,
-0.00829823687672615,
-0.09135983139276505,
0.2614537179470062,
0.11095820367336273,
0.1435956060886383,
0.01978541910648346,
-0.044960103929042816,
-0.10872189700603485,
0.130440354347229,
-0.01744074374437332,
-0.4220677614212036,
-0.021852044388651848,
0.14349496364593506,
-0.1796656996011734,
0.00013197585940361023,
-0.15492084622383118,
0.37011802196502686,
-0.1066480502486229,
-0.24541494250297546,
-0.09333450347185135,
-0.19888408482074738,
0.07399857044219971,
-0.06201121211051941,
0.06097829341888428,
0.4929050803184509,
-0.35729482769966125,
-0.014105461537837982,
-0.2872873544692993,
-0.07318355143070221,
0.16951598227024078,
0.3137454390525818,
-0.34980031847953796,
0.28842970728874207,
-0.3124474287033081,
0.03608857840299606,
0.6690332293510437,
-0.265231728553772,
-0.1361674964427948,
0.38895171880722046,
0.1521366834640503,
-0.2095366269350052,
-0.1556265950202942,
-0.08275997638702393,
0.13841024041175842,
-0.1652575135231018,
-0.33146345615386963,
0.5041031241416931,
-0.044560566544532776,
0.03156258910894394,
-0.30192801356315613,
-0.23242390155792236,
0.4035741686820984,
0.4479391872882843,
0.11554564535617828,
0.03915998712182045,
0.03239288181066513,
0.0754629373550415,
0.019848305732011795,
0.024790462106466293,
0.061422452330589294,
0.1102883517742157,
0.018291179090738297,
-0.25596731901168823,
-0.04605960473418236,
0.13625478744506836,
-0.36748751997947693,
0.0775819644331932,
-0.5094989538192749,
0.39449888467788696,
0.12080484628677368,
-0.004110496491193771,
-0.44441330432891846,
-0.09596220403909683,
-0.21768997609615326,
-0.27497485280036926,
0.17791876196861267,
0.06474800407886505,
0.16313108801841736,
0.25219619274139404,
0.055400799959897995,
0.09354782104492188,
-0.10574685037136078,
0.06576255708932877,
-0.2442823201417923,
0.2586844265460968,
-0.18129819631576538,
-0.06169047951698303,
0.29207542538642883,
-0.13919514417648315,
0.39432328939437866,
-0.06891205161809921,
-0.1508927345275879,
0.39556369185447693,
-0.17659913003444672,
0.2377079725265503,
0.28629985451698303,
-0.17094652354717255,
0.2178444266319275,
-0.503351092338562,
0.15844854712486267,
0.1945570409297943,
-0.05327586457133293,
0.2152075469493866,
-0.19128385186195374,
0.3722968101501465,
0.04922958463430405,
0.09868621826171875,
0.0538782998919487,
0.4147873818874359,
0.18126288056373596,
-0.07801631093025208,
-0.08856183290481567,
-0.19922973215579987,
0.264739453792572,
0.4113308787345886,
0.08347967267036438,
-0.2449459582567215,
-0.41665783524513245,
0.02496320754289627,
0.18111436069011688,
-0.0482642762362957,
0.20140409469604492,
0.06230541691184044,
0.06792846322059631,
-0.10105187445878983,
0.4000890552997589,
0.41137322783470154,
0.38273924589157104,
0.031803909689188004,
0.047577131539583206,
0.10441087931394577,
-0.25164297223091125,
-0.3253677487373352,
0.11449704319238663,
0.04143129289150238,
0.16461409628391266,
0.11453425139188766,
0.13520660996437073,
0.04006465524435043,
-0.36489295959472656,
0.04718886688351631,
0.3612009882926941,
0.24094921350479126,
-0.24009759724140167,
-0.04403369128704071,
-0.4294608533382416,
-0.5175086259841919,
-0.1684659868478775,
0.13020522892475128,
-0.25687238574028015,
-0.5409408807754517,
0.3794935345649719,
0.021148493513464928,
-0.4098777770996094,
0.2334163635969162,
0.13670825958251953,
0.4418488144874573,
-0.20190633833408356,
0.4963967204093933,
-0.07612275332212448,
-0.08335929363965988,
-0.344017893075943,
0.09766671061515808,
0.34940630197525024,
0.3973340690135956,
0.49924436211586,
-0.1747460514307022,
-0.028065599501132965,
-0.4055849313735962,
-0.33871743083000183,
0.2234097123146057,
0.15965259075164795,
0.5951387286186218,
-0.09448470175266266,
0.35120445489883423,
-0.05526754632592201,
-0.16464629769325256,
0.16195279359817505,
-0.14276330173015594,
-0.09916064888238907,
0.14410850405693054,
-0.048196155577898026,
-0.0626627653837204,
-0.264543354511261,
-0.6977822184562683,
-0.4090595543384552,
-0.4599584639072418,
-0.20288871228694916,
-0.19792437553405762,
0.24380701780319214,
0.2336980104446411,
-0.10973618924617767,
-0.017572278156876564,
0.020550314337015152,
-0.008395982906222343,
-0.1718059927225113,
-0.0689447671175003,
0.2719593644142151,
-0.659386396408081,
-0.4282495677471161,
0.05171790346503258,
0.1068606823682785,
0.1274670511484146,
0.279343843460083,
-0.4582376480102539,
0.09105459600687027,
-0.12348181009292603,
-0.1770918071269989,
0.11608245223760605,
-0.2855210602283478,
0.2548559308052063,
-0.19535788893699646,
-0.044075265526771545,
-0.14619067311286926,
-0.03736361116170883,
0.08142881840467453,
0.1666164994239807,
0.2665861248970032,
-0.041564106941223145,
0.18222126364707947,
0.08578605949878693,
0.656612753868103,
0.21171435713768005,
0.2254573553800583,
0.5008484125137329,
0.18874295055866241,
0.30198782682418823,
0.0633152648806572,
0.11524808406829834,
0.2509576380252838,
-0.13927710056304932,
0.006359312683343887,
0.20928367972373962,
-0.12213508039712906,
-0.24259372055530548,
-0.2959998846054077,
0.2020195573568344,
-0.3664734661579132,
-0.2441663146018982,
0.09564749896526337,
-0.37659651041030884,
0.27362194657325745,
0.14944250881671906,
-0.07453795522451401,
0.22032272815704346,
-0.03725743293762207,
-0.11457034945487976,
0.08149712532758713,
0.24388980865478516,
0.1516805738210678,
-0.5252460241317749,
-0.01776348054409027,
-0.20786485075950623,
0.14158959686756134,
-0.2651928663253784,
0.6571933031082153,
-0.36584076285362244,
0.0038032159209251404,
0.10370171070098877,
0.1937454342842102,
0.11753901839256287,
-0.5748876333236694,
-0.1773446798324585,
0.038576118648052216,
0.08636783063411713,
-0.46627697348594666,
-0.21957240998744965,
-0.35894787311553955,
0.2049834430217743,
0.06947864592075348,
0.009078972041606903,
-0.3030896484851837,
-0.1169041246175766,
0.25419026613235474,
0.07203128933906555,
-0.016757726669311523,
-0.1788932830095291,
0.1767338663339615,
0.09785384684801102,
-0.6125377416610718,
-0.07652466744184494,
-0.04031116142868996,
-0.07417913526296616,
-0.5367679595947266,
0.05630986765027046,
-0.0627235695719719,
0.3256816267967224,
0.05408935248851776,
0.11250227689743042,
0.16141381859779358,
0.018270831555128098,
-0.1359255164861679,
0.11897631734609604,
0.13136139512062073,
0.14719973504543304,
0.38365453481674194,
0.2623983323574066,
-0.10015609860420227,
0.13860644400119781,
0.053600821644067764,
-0.007189847528934479,
0.6157605648040771,
-0.06302466988563538,
0.011197224259376526,
-0.22877594828605652,
0.09844955801963806,
0.06877451390028,
0.25908130407333374,
0.18437689542770386,
-0.48043182492256165,
-0.13610009849071503,
-0.18689574301242828,
0.38309720158576965,
-0.13276495039463043,
-0.24014373123645782,
0.01296800747513771,
0.005827702581882477,
-0.03563578426837921,
0.23835860192775726,
0.24638527631759644,
1.0048418045043945,
-0.03668854385614395,
-0.05809798464179039,
0.10965479910373688,
-0.1480351686477661,
0.5812592506408691,
-0.189057856798172,
0.02438398264348507,
-0.24519552290439606,
-0.06134764105081558,
0.03280067443847656,
-0.09355747699737549,
0.2910015881061554,
0.19776469469070435,
-0.4215872585773468,
0.3042159676551819,
0.13784438371658325,
0.01495181955397129,
-0.044867873191833496,
0.14839184284210205,
-0.15593062341213226,
0.01696598529815674,
-0.3573392927646637,
0.14503800868988037,
-0.2827441692352295,
0.3498194217681885,
-0.17276251316070557,
-0.27227795124053955,
-0.14991432428359985,
-0.20563673973083496,
-0.41915977001190186,
0.2725086510181427,
0.018625533208251,
0.14894773066043854,
-0.019265025854110718,
-0.2983195185661316,
0.35974830389022827,
0.46832510828971863,
0.22725942730903625,
0.041164930909872055,
-0.3872836232185364,
0.14799368381500244,
-0.24524107575416565,
-0.17169393599033356,
0.0424131415784359,
0.06211429834365845,
0.3522128760814667,
-0.17977547645568848,
-0.17857176065444946,
0.12927718460559845,
-0.17437125742435455,
0.06132390350103378,
-0.5083680152893066,
-0.12569712102413177,
0.3128820061683655,
-0.02208542823791504,
-0.0847228467464447,
-0.16981637477874756,
-0.11955854296684265,
-0.16615232825279236,
0.12249304354190826,
0.025628216564655304,
-0.031775958836078644,
-0.04185672849416733,
0.242158442735672,
-0.030817914754152298,
0.029304655268788338,
0.09251827746629715,
0.10955928266048431,
0.08046822249889374,
0.36668717861175537,
0.18186505138874054,
-0.0637805312871933,
-0.28098830580711365,
0.18192827701568604,
0.1314447671175003,
-0.5027117133140564,
0.12477687746286392,
-0.2719725966453552,
-0.06596715748310089,
0.13074412941932678,
0.19525352120399475,
-0.0860162079334259,
-0.0579274520277977,
0.09050475060939789,
-0.509904146194458,
-0.05810213088989258,
0.19894260168075562,
-0.30427542328834534,
0.17957814037799835,
-0.15786123275756836,
-0.13064749538898468,
0.2191641479730606,
0.2721661925315857,
-0.29211652278900146,
-0.09750688076019287,
-0.45322105288505554,
0.26790788769721985,
-0.03049526736140251,
0.1292986273765564,
-0.2409980148077011,
0.0211093220859766,
-0.10474324971437454,
-0.10942165553569794,
-0.33234986662864685,
-0.10128842294216156,
-0.04973989725112915,
0.16162247955799103,
0.32726529240608215,
-0.15391269326210022,
0.1339704394340515,
-0.1522316187620163,
0.14955376088619232,
-0.013419128954410553,
0.08367602527141571,
-0.17468923330307007,
-0.11182104051113129,
0.2551414370536804,
0.04922574386000633,
0.11188432574272156,
-0.018691958859562874,
0.19295723736286163,
-0.004864968359470367,
0.18779480457305908,
0.1860688328742981,
0.10590323060750961,
0.2087070643901825,
-0.1594390869140625,
-0.4427712857723236,
0.033229000866413116,
0.05949271097779274,
0.21148377656936646,
0.1299263834953308,
-0.2598474621772766,
0.3293120861053467,
-0.10000965744256973,
0.2081316113471985,
0.21635748445987701,
-0.32546666264533997,
0.05881694704294205,
0.24583527445793152,
0.1340455710887909,
-0.2870177924633026,
-0.017888544127345085,
0.07398009300231934,
0.10569886118173599,
-0.15368247032165527,
-0.0619857981801033,
0.4100394546985626,
-0.036520689725875854,
0.1999361217021942,
0.06753790378570557,
0.08273687213659286,
-0.08516302704811096,
0.3317165970802307,
0.30986204743385315,
-0.2236451357603073,
0.09567157179117203,
-0.0871710479259491,
-0.0253133624792099,
0.04201839864253998,
0.0752335861325264,
-0.17707699537277222,
0.5282190442085266,
0.21051865816116333,
0.17989297211170197,
0.4375537633895874,
-0.3083561956882477,
0.11265553534030914,
0.4501843750476837,
0.2951725721359253,
0.1711336374282837,
-0.03172901272773743,
0.1150987520813942,
-0.11648503690958023,
-0.2579783797264099,
-0.3172602951526642,
0.1533735692501068,
-0.016242899000644684,
0.1317506730556488,
-0.3802257776260376,
-0.1947353482246399,
-0.4711541533470154,
0.0005562417209148407,
-0.09242434799671173,
-0.23559097945690155,
0.04713010787963867,
0.028130993247032166,
-0.3189857602119446,
-0.6951646208763123,
0.4120103120803833,
0.1451246738433838,
-0.040312401950359344,
-0.20130009949207306,
0.27889734506607056,
-0.08096696436405182,
-0.12540654838085175,
0.26453617215156555,
0.46756523847579956,
0.3362561762332916,
0.4843828082084656,
-0.18376144766807556,
-0.0637231171131134,
0.03687584027647972,
0.06646593660116196,
0.13765299320220947,
0.08353665471076965,
0.2619529068470001,
0.03369422256946564,
0.4762534499168396,
0.02906637452542782,
-0.08782444894313812,
0.15576273202896118,
0.25472578406333923,
-0.03855039179325104,
-0.3124662935733795,
0.1196746677160263,
-0.2325899600982666,
-0.04633791744709015,
-0.02398589998483658,
-0.27678021788597107,
-0.37215656042099,
0.06650589406490326,
0.10474167764186859,
0.01647406443953514,
0.10639645904302597,
-0.40643081068992615,
0.06415018439292908,
-0.22640854120254517,
0.6622607707977295,
0.2785649597644806,
0.26480016112327576,
-0.2889123260974884,
-0.42036908864974976,
-0.6882608532905579,
0.16028845310211182,
-0.05887911841273308,
0.085231713950634,
0.28963032364845276,
0.09507779031991959,
0.18030931055545807,
0.3617956042289734,
-0.15636877715587616,
0.20621401071548462,
-0.15819457173347473,
0.22506718337535858,
-0.5480694770812988,
-0.15410274267196655,
-0.025679372251033783,
0.06638070940971375,
-0.08992116153240204,
-0.1367209404706955,
0.14773140847682953,
-0.07817908376455307,
-0.07486389577388763,
0.13857154548168182,
-0.04473087191581726,
0.1264447271823883,
-0.033868320286273956,
0.4230629503726959,
0.2661764919757843,
0.5350303649902344,
-0.04709414392709732,
-0.17775271832942963,
-0.16978831589221954,
-0.25895267724990845,
-0.18551068007946014,
0.031177371740341187,
-0.005857706069946289,
0.41071557998657227,
0.08445532619953156,
0.26025038957595825,
-0.06812125444412231,
-0.0036675741430372,
-0.02228570729494095,
0.20918239653110504,
-0.19718478620052338,
-0.14685511589050293,
0.009444005787372589,
0.1340763121843338,
0.14533978700637817,
-0.07311432808637619,
-0.04831402748823166,
0.0692162960767746,
-0.32024824619293213,
-0.2129824459552765,
0.39769068360328674,
-0.20186908543109894,
-0.0935949981212616,
0.09021084755659103,
0.08438815176486969,
0.041824858635663986,
-0.10341992229223251,
-0.40779924392700195,
-0.0646442100405693,
0.12816032767295837,
-0.17116370797157288,
0.2017371952533722,
0.10486596822738647,
0.1690254509449005,
-0.2165975123643875,
0.03303798660635948,
0.25524696707725525,
0.09996385872364044,
-0.24828916788101196,
0.14866873621940613,
-0.1618628054857254
] |
https://github.com/huggingface/datasets/issues/297 | Error in Demo for Specific Datasets | We don't plan to host the source files of newsroom ourselves for now.
You can still get the dataset if you follow the download instructions given by `dataset = load_dataset('newsroom')` though.
The viewer also shows the instructions now.
Closing this one. If you have other questions, feel free to re-open :) | Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following.
![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png)
| 51 | Error in Demo for Specific Datasets
Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following.
![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png)
We don't plan to host the source files of newsroom ourselves for now.
You can still get the dataset if you follow the download instructions given by `dataset = load_dataset('newsroom')` though.
The viewer also shows the instructions now.
Closing this one. If you have other questions, feel free to re-open :) | [
-0.3872509300708771,
0.31880858540534973,
-0.1640234887599945,
-0.021165482699871063,
0.013869872316718102,
-0.0003127381205558777,
0.24411018192768097,
0.4248596429824829,
-0.10584597289562225,
0.25023895502090454,
0.07646036148071289,
0.06626664847135544,
-0.1547730267047882,
0.19899772107601166,
0.15765613317489624,
-0.30583661794662476,
0.034139327704906464,
0.1067289337515831,
0.00803789496421814,
0.07687987387180328,
0.02089843899011612,
0.13809999823570251,
-0.38022589683532715,
0.08078611642122269,
0.05556686222553253,
0.07056692242622375,
-0.06121905893087387,
0.10057929903268814,
-0.3853764235973358,
-0.28244781494140625,
0.1910812109708786,
0.18659675121307373,
0.10666624456644058,
0.258032888174057,
-0.00009687822603154927,
0.10137294232845306,
0.37200963497161865,
-0.07408927381038666,
-0.38534992933273315,
-0.24529002606868744,
-0.11443483829498291,
-0.11701148003339767,
-0.17474061250686646,
-0.07785002142190933,
-0.3093831539154053,
-0.3932517468929291,
0.14332237839698792,
-0.13476815819740295,
0.3808897137641907,
0.5134056806564331,
0.3451368510723114,
0.3197137117385864,
0.06417790055274963,
-0.39823850989341736,
0.24451777338981628,
0.3347771167755127,
-0.2866626977920532,
0.25513941049575806,
0.1351357400417328,
-0.010374912992119789,
0.17734161019325256,
0.2695549726486206,
0.13106755912303925,
0.11857256293296814,
-0.1659904420375824,
-0.06584729999303818,
-0.1224852129817009,
-0.3944910764694214,
0.19219815731048584,
0.3081761598587036,
0.4608178734779358,
0.2094995081424713,
-0.04061375558376312,
0.018214836716651917,
0.07344136387109756,
0.009702181443572044,
0.02953389286994934,
0.3768174946308136,
-0.2834704518318176,
0.11237221956253052,
-0.26131588220596313,
-0.32047972083091736,
-0.3009409010410309,
0.3629046678543091,
0.021559789776802063,
0.26229268312454224,
-0.21829456090927124,
0.21148258447647095,
-0.12044377624988556,
-0.11183486878871918,
0.16943150758743286,
0.059788674116134644,
-0.027693498879671097,
-0.023177027702331543,
-0.08686262369155884,
-0.07125124335289001,
0.0011096671223640442,
-0.04491753876209259,
0.2504673898220062,
0.1148640364408493,
-0.03228467330336571,
-0.07908953726291656,
0.16515900194644928,
0.07674363255500793,
0.2547529637813568,
0.1350129097700119,
0.3106299638748169,
0.42361921072006226,
0.2886645793914795,
0.3024430572986603,
-0.06351960450410843,
0.09665898233652115,
-0.17472803592681885,
-0.31396591663360596,
-0.29294678568840027,
0.04582518711686134,
0.4366629123687744,
-0.3682158887386322,
-0.37179744243621826,
0.15407507121562958,
-0.050533197820186615,
0.12733232975006104,
-0.11395738273859024,
0.2986803650856018,
0.12180059403181076,
0.0631624162197113,
0.05737186223268509,
0.4153444170951843,
-0.1190727949142456,
-0.4704567492008209,
-0.15394227206707,
0.1874106079339981,
-0.1911039650440216,
0.0657421126961708,
0.32467007637023926,
0.15267738699913025,
0.2951783835887909,
0.057641394436359406,
0.20794343948364258,
-0.08804930001497269,
0.36447450518608093,
0.12676450610160828,
0.15167655050754547,
0.250345915555954,
0.11389721930027008,
0.05188564956188202,
0.03528429940342903,
-0.07814150303602219,
0.03886450082063675,
0.24605348706245422,
-0.028062395751476288,
-0.47735944390296936,
-0.15691900253295898,
0.32962939143180847,
-0.07044321298599243,
0.0011816248297691345,
-0.03958287090063095,
0.26082003116607666,
-0.05484836548566818,
-0.12828239798545837,
-0.1434524953365326,
-0.08726353943347931,
0.14088450372219086,
0.04214049503207207,
0.21345975995063782,
0.22673293948173523,
-0.40837445855140686,
0.2936524748802185,
-0.11565393954515457,
-0.02557394653558731,
0.17785689234733582,
0.008878594264388084,
-0.41509416699409485,
0.22611811757087708,
-0.30225953459739685,
-0.020909566432237625,
0.4404129683971405,
-0.3577593266963959,
-0.21002709865570068,
0.0945868119597435,
-0.013532884418964386,
-0.2623961865901947,
-0.23016485571861267,
-0.19788405299186707,
-0.01649589091539383,
0.04891546815633774,
-0.15840211510658264,
0.32088804244995117,
0.007394652813673019,
0.14091670513153076,
-0.2430863380432129,
-0.13508515059947968,
0.2573472261428833,
0.3529314696788788,
0.014427118003368378,
-0.01762717217206955,
-0.07140282541513443,
0.049539219588041306,
0.134428933262825,
-0.10437557101249695,
-0.02115125022828579,
0.19384363293647766,
0.13354435563087463,
-0.23040251433849335,
-0.04594643786549568,
-0.04335656389594078,
-0.24373650550842285,
0.055404774844646454,
-0.131582573056221,
0.3995978534221649,
0.12263421714305878,
0.04209000617265701,
-0.4179422855377197,
-0.03782842308282852,
-0.27382445335388184,
-0.5199090838432312,
0.3302704989910126,
0.20207293331623077,
0.07333876192569733,
0.0772278904914856,
-0.10830160230398178,
-0.05499295890331268,
-0.05505853146314621,
-0.06314121931791306,
-0.21990811824798584,
0.170765683054924,
-0.2846336364746094,
-0.005670586600899696,
0.09670332074165344,
-0.30656760931015015,
0.2832338511943817,
-0.17267467081546783,
-0.20594274997711182,
0.41938748955726624,
-0.01983678713440895,
0.05754687637090683,
0.418251633644104,
-0.19717247784137726,
0.05259540677070618,
-0.4988589286804199,
-0.008073369041085243,
0.1652863472700119,
-0.11556322872638702,
0.2496676743030548,
-0.12854725122451782,
0.21419920027256012,
0.14453579485416412,
-0.023683644831180573,
-0.009527452290058136,
0.21604421734809875,
0.33463814854621887,
-0.09742214530706406,
0.01770430989563465,
-0.10070908069610596,
0.18117690086364746,
0.2839542627334595,
0.09240096807479858,
-0.37396082282066345,
-0.37494948506355286,
0.10013358294963837,
0.07938545197248459,
-0.031919125467538834,
0.08612453937530518,
0.08889718353748322,
-0.07450126856565475,
-0.25987499952316284,
0.2304987907409668,
0.3278217911720276,
0.41707754135131836,
0.07742709666490555,
0.24844463169574738,
0.1300421506166458,
-0.17208963632583618,
-0.23190473020076752,
0.2817390561103821,
-0.15926970541477203,
0.12910667061805725,
0.14293994009494781,
0.16442722082138062,
-0.09985344111919403,
-0.4131441116333008,
0.05571189895272255,
0.18645669519901276,
0.1960122138261795,
-0.1886381059885025,
-0.00899283867329359,
-0.20100949704647064,
-0.17556771636009216,
0.10713979601860046,
0.04762747511267662,
-0.06593871116638184,
-0.30552199482917786,
0.43214279413223267,
0.03233321011066437,
-0.36555007100105286,
0.10236010700464249,
-0.017927423119544983,
0.36197465658187866,
-0.045687802135944366,
0.42992064356803894,
-0.044413309544324875,
-0.046366315335035324,
-0.3281879127025604,
0.24817466735839844,
0.15987925231456757,
0.1843891441822052,
0.3590478301048279,
-0.27369198203086853,
-0.2064642459154129,
-0.47845175862312317,
-0.27117303013801575,
0.28711003065109253,
0.23679398000240326,
0.7645660042762756,
0.012166880071163177,
0.46149158477783203,
-0.11202812939882278,
-0.1231091171503067,
0.29721611738204956,
-0.16846737265586853,
-0.06434404104948044,
0.06804091483354568,
-0.06573622673749924,
-0.262816846370697,
-0.27108535170555115,
-0.6054618954658508,
-0.27642449736595154,
-0.2533031702041626,
-0.07400894165039062,
-0.034391891211271286,
0.08085811138153076,
0.34026390314102173,
0.01849575713276863,
-0.08877449482679367,
-0.007562748622149229,
0.035989951342344284,
-0.4659328758716583,
-0.43918415904045105,
0.16146908700466156,
-0.7218427062034607,
-0.4966348707675934,
0.0258449949324131,
0.21401402354240417,
0.24630171060562134,
0.053469981998205185,
-0.3788909316062927,
-0.06303542852401733,
0.06971777975559235,
-0.05728369206190109,
0.09169057011604309,
-0.16309545934200287,
0.21496045589447021,
-0.2943843901157379,
-0.24223920702934265,
-0.2595788240432739,
0.07472391426563263,
0.13734591007232666,
0.09629825502634048,
0.1859036087989807,
-0.20094546675682068,
-0.0745709091424942,
0.06760117411613464,
0.6230897307395935,
0.08540967106819153,
0.09926755726337433,
0.3722315728664398,
-0.13273127377033234,
0.335940957069397,
-0.13864585757255554,
-0.005020997487008572,
0.1669457107782364,
-0.06740546226501465,
-0.14981845021247864,
0.2395372986793518,
0.025945916771888733,
-0.31322211027145386,
-0.38524216413497925,
0.2405518889427185,
-0.30150097608566284,
-0.1989705115556717,
-0.05389104783535004,
-0.020872630178928375,
0.2608451545238495,
0.24068033695220947,
-0.0016874037683010101,
0.10400377213954926,
-0.07460290938615799,
0.024388495832681656,
0.057033490389585495,
0.04457094892859459,
0.003195921191945672,
-0.6048043370246887,
0.026720141991972923,
-0.35156866908073425,
0.1591263711452484,
-0.25777310132980347,
0.41190171241760254,
-0.24070674180984497,
-0.008532628417015076,
0.013882912695407867,
-0.08647790551185608,
0.17690983414649963,
-0.5102115273475647,
-0.027669809758663177,
0.014935120940208435,
0.11099249124526978,
-0.19242054224014282,
-0.23557762801647186,
-0.2745462656021118,
0.26411914825439453,
0.07852346450090408,
0.1846197247505188,
-0.14298702776432037,
-0.12873366475105286,
0.2427588254213333,
-0.013487111777067184,
0.020748596638441086,
-0.08058173209428787,
0.0630602091550827,
-0.09678707271814346,
-0.3988793194293976,
-0.09116200357675552,
0.044601380825042725,
-0.04636925458908081,
-0.36870530247688293,
-0.11566253006458282,
0.07933767884969711,
0.31598466634750366,
-0.08588483929634094,
0.1336701512336731,
0.20203885436058044,
0.04796513542532921,
-0.011497236788272858,
0.26050513982772827,
0.06770750880241394,
0.14465700089931488,
0.3633374273777008,
0.22159186005592346,
-0.0819198489189148,
0.19261914491653442,
-0.12055458873510361,
-0.042428113520145416,
0.5388205051422119,
-0.17511941492557526,
-0.2817955017089844,
-0.10479404032230377,
0.141799658536911,
0.008728716522455215,
0.3472481071949005,
0.2992347180843353,
-0.3133324086666107,
0.020970363169908524,
-0.23781698942184448,
0.19730547070503235,
-0.1814100742340088,
-0.16685041785240173,
0.1333499550819397,
-0.1642516702413559,
-0.037382565438747406,
0.006274673156440258,
0.1289382427930832,
0.8680385947227478,
0.14483323693275452,
0.04110253229737282,
0.1716696321964264,
-0.10489650070667267,
0.23320801556110382,
-0.14745086431503296,
-0.004534650593996048,
-0.20114882290363312,
-0.2723900377750397,
0.04247542470693588,
-0.08726762235164642,
0.1309131383895874,
0.1768801212310791,
-0.21600930392742157,
0.16029053926467896,
0.03247220814228058,
0.087135449051857,
-0.15215753018856049,
0.09693902730941772,
-0.0012678075581789017,
0.22950251400470734,
-0.1676352173089981,
0.3235170543193817,
-0.05647929012775421,
0.15176962316036224,
-0.24611467123031616,
-0.0918707326054573,
-0.14349506795406342,
-0.16288650035858154,
-0.35642844438552856,
0.28985416889190674,
-0.05166534706950188,
0.1543084681034088,
0.01123889721930027,
-0.18031933903694153,
-0.042926087975502014,
0.3814537227153778,
0.13133564591407776,
0.12403881549835205,
-0.36734864115715027,
0.2598147392272949,
-0.017244704067707062,
-0.23128919303417206,
0.08381573855876923,
0.10567434877157211,
0.16000378131866455,
-0.3114282488822937,
-0.2772395610809326,
0.09134344011545181,
-0.16300131380558014,
-0.010980106890201569,
-0.3528251051902771,
-0.17686747014522552,
0.285966157913208,
-0.14016559720039368,
-0.22971774637699127,
-0.13819868862628937,
-0.11623670160770416,
-0.252580463886261,
0.27904874086380005,
-0.08385977149009705,
-0.22370700538158417,
-0.3463156223297119,
0.3273397982120514,
-0.1693492829799652,
-0.05769706144928932,
0.056304074823856354,
0.06395706534385681,
0.08822749555110931,
0.3701283633708954,
0.20619745552539825,
-0.062179841101169586,
-0.4052585959434509,
0.1842394769191742,
0.22913935780525208,
-0.3934093713760376,
0.059621766209602356,
-0.16184675693511963,
-0.02138669043779373,
0.25669562816619873,
0.24765005707740784,
-0.053365930914878845,
-0.21096450090408325,
0.057869259268045425,
-0.380642831325531,
-0.01828598417341709,
-0.05953221023082733,
-0.161008819937706,
0.2897932231426239,
-0.05000080168247223,
-0.21121874451637268,
0.18303710222244263,
0.02954963967204094,
-0.4641393721103668,
-0.058506742119789124,
-0.3393165171146393,
0.16480988264083862,
-0.3402891457080841,
0.07721022516489029,
-0.052079323679208755,
-0.05207645520567894,
0.17250987887382507,
-0.12196287512779236,
-0.278565376996994,
-0.3615245223045349,
-0.054662249982357025,
0.09168083965778351,
0.2551632523536682,
-0.25358524918556213,
0.02107318863272667,
-0.1381286382675171,
-0.13465330004692078,
0.1405107080936432,
0.14343495666980743,
-0.2303810715675354,
0.018286198377609253,
0.09261320531368256,
0.02015070989727974,
0.023939725011587143,
0.08748067915439606,
0.10176526010036469,
0.0954294204711914,
0.3023667633533478,
0.04433969780802727,
0.11460369825363159,
0.06871867924928665,
-0.23199981451034546,
-0.3179428279399872,
0.005967617034912109,
0.08622900396585464,
0.4791339039802551,
0.11763434112071991,
-0.2625260353088379,
0.2080422043800354,
0.012303382158279419,
0.19378584623336792,
0.24825021624565125,
-0.46868088841438293,
0.2854805290699005,
0.1489265263080597,
0.3802306056022644,
-0.25359058380126953,
-0.10250185430049896,
-0.07129646837711334,
-0.002117193304002285,
-0.04052403196692467,
-0.16187071800231934,
0.2719230353832245,
0.038086630403995514,
0.17058858275413513,
0.15375429391860962,
0.02616715431213379,
-0.046150341629981995,
0.26211628317832947,
0.3201756775379181,
-0.37989696860313416,
0.12224222719669342,
-0.17087838053703308,
-0.0001223050057888031,
0.039264582097530365,
0.2162192165851593,
0.07258984446525574,
0.437293142080307,
0.3349696397781372,
0.20505979657173157,
0.3065786361694336,
-0.1398875117301941,
0.12677878141403198,
0.2541252374649048,
0.18115109205245972,
0.21382087469100952,
-0.03612653911113739,
0.026356976479291916,
-0.2686800956726074,
-0.16444389522075653,
-0.2801773250102997,
0.1193198710680008,
0.04027564823627472,
0.01706863008439541,
-0.2899401783943176,
-0.2994573712348938,
-0.2605130672454834,
0.0391092412173748,
-0.12773528695106506,
-0.11997972428798676,
0.007824383676052094,
-0.06881935894489288,
-0.18699009716510773,
-0.32413262128829956,
0.3364485800266266,
0.15787090361118317,
-0.03299892693758011,
-0.11217151582241058,
0.3772619366645813,
0.043862707912921906,
-0.13664138317108154,
0.2384352684020996,
0.503063976764679,
0.38061362504959106,
0.3672259747982025,
-0.239821195602417,
-0.01304167415946722,
0.07304728031158447,
-0.07885518670082092,
0.005191141739487648,
0.06793414801359177,
0.24013563990592957,
-0.07565174996852875,
0.4011608958244324,
0.25930383801460266,
-0.19294606149196625,
0.1742033064365387,
0.2846857011318207,
0.04875977709889412,
-0.09094293415546417,
-0.07255559414625168,
-0.19080717861652374,
0.10580293089151382,
-0.025252703577280045,
-0.32716092467308044,
-0.2807619273662567,
0.03862714767456055,
0.13424915075302124,
-0.03002227284014225,
0.18848982453346252,
-0.2734943926334381,
0.17094875872135162,
-0.18400628864765167,
0.5951345562934875,
0.08790759742259979,
0.2517848610877991,
-0.09254583716392517,
-0.5342867374420166,
-0.5470654964447021,
0.24868273735046387,
-0.09674239158630371,
-0.07468927651643753,
0.15314660966396332,
-0.03051263839006424,
0.2696271240711212,
0.28606826066970825,
0.05128652602434158,
0.07998907566070557,
-0.14881369471549988,
0.2649140954017639,
-0.576509952545166,
-0.018991593271493912,
0.09922797977924347,
0.267803817987442,
0.009132850915193558,
-0.23197776079177856,
0.1317763477563858,
-0.10628437995910645,
0.09715882688760757,
0.3270365595817566,
-0.02005406841635704,
0.06819941103458405,
-0.07297766953706741,
0.43640878796577454,
0.06434890627861023,
0.36928844451904297,
-0.23292073607444763,
-0.2746245861053467,
-0.20337527990341187,
-0.13245272636413574,
-0.19830748438835144,
0.10448911786079407,
0.11429068446159363,
0.19285368919372559,
0.07953672856092453,
0.06595715135335922,
0.05169606953859329,
-0.09229797124862671,
0.09492813050746918,
0.04068933427333832,
-0.33760568499565125,
-0.07710731774568558,
0.07682598382234573,
0.021775497123599052,
0.15383166074752808,
-0.08042091876268387,
-0.17226339876651764,
-0.12885017693042755,
-0.22119107842445374,
-0.11580245196819305,
0.5106818675994873,
-0.04353451356291771,
-0.21142201125621796,
-0.07105546444654465,
0.007559038698673248,
0.08788613229990005,
-0.09366264939308167,
-0.3844064176082611,
0.048138074576854706,
0.1446215808391571,
-0.052043259143829346,
0.09143003821372986,
0.1257632076740265,
0.18575821816921234,
0.016452621668577194,
-0.02499692514538765,
0.5657553672790527,
0.16931381821632385,
-0.224826842546463,
0.003961987793445587,
-0.1232462078332901
] |
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.42843639850616455,
-0.32203617691993713,
-0.07234999537467957,
0.23945382237434387,
0.21637709438800812,
0.146388441324234,
0.5796828269958496,
0.16553577780723572,
0.1703631430864334,
0.185538187623024,
-0.19042909145355225,
0.3528854250907898,
-0.15023541450500488,
0.08440136909484863,
0.27373170852661133,
0.007783193141222,
0.4201531708240509,
0.2741088271141052,
0.35146141052246094,
-0.45864707231521606,
-0.17099997401237488,
0.13829118013381958,
-0.15224549174308777,
0.3128230571746826,
-0.4414062201976776,
0.3461146354675293,
0.0009128618985414505,
-0.3870437443256378,
-0.018064701929688454,
-0.7808858156204224,
0.17051050066947937,
-0.052124474197626114,
0.24947798252105713,
-0.20460426807403564,
-0.00011848995927721262,
-0.28295594453811646,
0.11125560104846954,
0.10014155507087708,
-0.6039972901344299,
-0.12913863360881805,
-0.1478038728237152,
-0.20917236804962158,
0.2700711488723755,
-0.02263116091489792,
-0.056176699697971344,
-0.22350017726421356,
0.2570432126522064,
0.12134316563606262,
-0.03771410882472992,
0.2486656904220581,
0.12010358273983002,
0.007454048842191696,
-0.39624011516571045,
0.22410479187965393,
0.2631271183490753,
-0.24901367723941803,
0.06933920830488205,
0.02331884577870369,
0.010257922112941742,
-0.16955676674842834,
0.41048112511634827,
0.4804105758666992,
-0.12124289572238922,
-0.16331836581230164,
0.15867872536182404,
0.07581839710474014,
0.2860768735408783,
-0.3415985703468323,
-0.006410479545593262,
0.22402548789978027,
0.09168237447738647,
-0.2839524745941162,
-0.25454285740852356,
-0.3441036641597748,
0.20203369855880737,
-0.2572905719280243,
-0.23164421319961548,
0.17686450481414795,
0.36292344331741333,
0.012536754831671715,
-0.18316532671451569,
0.013428226113319397,
-0.10460568964481354,
0.11068747937679291,
0.2206536829471588,
0.6899820566177368,
0.12223460525274277,
0.2554950416088104,
0.39409276843070984,
0.23378309607505798,
-0.23951496183872223,
-0.0751241147518158,
0.0352584607899189,
0.4097283184528351,
-0.5185243487358093,
-0.2892340421676636,
0.026358172297477722,
0.037335727363824844,
-0.03613894432783127,
0.1992170512676239,
-0.014205818064510822,
-0.13239902257919312,
-0.11354909092187881,
0.04982031136751175,
0.09856055676937103,
0.03400236368179321,
0.38281378149986267,
0.23380665481090546,
0.0019422993063926697,
-0.21103821694850922,
0.2714410126209259,
0.03788003325462341,
-0.28709590435028076,
-0.05079559609293938,
0.43600568175315857,
-0.08399593830108643,
-0.2353135496377945,
-0.11521675437688828,
-0.14647813141345978,
-0.028974521905183792,
-0.4838445484638214,
-0.016802923753857613,
0.1664535105228424,
-0.264724463224411,
0.19972023367881775,
0.24339938163757324,
-0.2316463440656662,
0.059917572885751724,
-0.11011829227209091,
-0.48509272933006287,
-0.14736655354499817,
0.02917676791548729,
-0.1275293380022049,
-0.09465258568525314,
0.08639407157897949,
-0.1976352035999298,
0.1781771332025528,
0.027247916907072067,
-0.3649917244911194,
-0.09378520399332047,
0.37249085307121277,
0.1010763943195343,
-0.05017857998609543,
0.3409382700920105,
-0.3068787455558777,
0.6312387585639954,
-0.0613471083343029,
-0.1426699161529541,
-0.08958112448453903,
-0.15820816159248352,
-0.22099646925926208,
-0.31804779171943665,
0.020044542849063873,
0.16402889788150787,
0.0441543385386467,
-0.23550191521644592,
0.06947597861289978,
0.12587904930114746,
-0.011677920818328857,
-0.1452896147966385,
0.12688256800174713,
-0.26023203134536743,
-0.08306003361940384,
-0.025969482958316803,
0.06306226551532745,
-0.0034209638833999634,
-0.13050203025341034,
-0.14613279700279236,
-0.0012299991212785244,
-0.28161972761154175,
0.3323383033275604,
0.40539973974227905,
-0.07142668217420578,
-0.1050574854016304,
0.07506196945905685,
0.06983448565006256,
0.4805385172367096,
-0.373481422662735,
-0.3728363811969757,
0.15434302389621735,
-0.255389928817749,
-0.48199963569641113,
-0.03012125939130783,
0.6453998684883118,
-0.18430732190608978,
-0.0288850124925375,
0.0026402994990348816,
-0.17713937163352966,
0.053197652101516724,
-0.13754922151565552,
-0.3707208037376404,
0.08681537210941315,
0.504974365234375,
0.22649680078029633,
-0.051281075924634933,
-0.025872908532619476,
-0.38039904832839966,
0.11615041643381119,
0.3642604351043701,
-0.07194651663303375,
0.16277942061424255,
0.029946858063340187,
0.2692737281322479,
0.17296341061592102,
0.1708911806344986,
0.044221460819244385,
-0.196661114692688,
0.17850446701049805,
-0.05783866345882416,
0.4421190023422241,
0.4727395176887512,
0.041229404509067535,
-0.0882825031876564,
-0.10187805444002151,
-0.12166294455528259,
-0.1106766015291214,
0.05367425084114075,
0.1870277225971222,
0.2011851966381073,
-0.06381024420261383,
-0.1342466175556183,
0.06882016360759735,
-0.15888719260692596,
0.12394418567419052,
-0.3422488272190094,
-0.020610079169273376,
0.058090537786483765,
0.08119888603687286,
-0.19159193336963654,
0.2422654926776886,
0.3230990767478943,
0.1615239530801773,
0.12243229895830154,
0.08022677898406982,
-0.15140751004219055,
-0.2654777765274048,
0.23201704025268555,
0.39968085289001465,
0.17412607371807098,
-0.2977239787578583,
0.05309896916151047,
0.4022228717803955,
0.06530876457691193,
-0.2728522717952728,
-0.07116854935884476,
0.12251579016447067,
-0.01212337613105774,
0.21923166513442993,
-0.2900402545928955,
0.14576347172260284,
0.10625380277633667,
0.200389564037323,
-0.3209218978881836,
-0.2441481053829193,
0.12839841842651367,
-0.35599008202552795,
0.08736278116703033,
0.3305927813053131,
-0.3314162492752075,
0.06432591378688812,
0.04239994287490845,
-0.17311285436153412,
-0.045882031321525574,
0.0996168702840805,
-0.1229187473654747,
-0.13101649284362793,
0.3407939076423645,
0.06932772696018219,
0.11921515315771103,
0.2157515585422516,
-0.06956708431243896,
-0.009683536365628242,
-0.598578691482544,
-0.23975850641727448,
0.11043112725019455,
0.10058355331420898,
-0.2163848578929901,
-0.24156033992767334,
0.3826275169849396,
0.06104672700166702,
-0.27875927090644836,
-0.5435174107551575,
-0.2947504222393036,
0.21735547482967377,
-0.24281765520572662,
0.20165468752384186,
-0.1393657922744751,
-0.40475302934646606,
-0.4046650826931,
-0.27777546644210815,
-0.10122846066951752,
-0.15193185210227966,
0.27741286158561707,
-0.2894718050956726,
0.19860410690307617,
0.044906049966812134,
0.07574531435966492,
0.22326628863811493,
-0.19362348318099976,
0.43439146876335144,
-0.2699825167655945,
-0.20433379709720612,
-0.3394886255264282,
-0.056992657482624054,
-0.36402902007102966,
0.02779530920088291,
0.23828153312206268,
-0.0908760353922844,
-0.3378669023513794,
-0.009052490815520287,
-0.23545268177986145,
-0.09371675550937653,
-0.15073980391025543,
-0.09953001886606216,
0.17838755249977112,
-0.14490194618701935,
-0.21056334674358368,
0.3857541084289551,
0.0033598518930375576,
0.1552426666021347,
0.017958158627152443,
0.13330847024917603,
-0.29876503348350525,
0.11115030199289322,
-0.3893030881881714,
-0.1397673487663269,
-0.05356384813785553,
0.26718002557754517,
0.1522255539894104,
0.08300803601741791,
0.14538785815238953,
0.4180038869380951,
-0.10876605659723282,
0.05650978535413742,
-0.12559804320335388,
0.3179320991039276,
-0.13659662008285522,
-0.3129752278327942,
0.06496372818946838,
0.24288569390773773,
-0.024536438286304474,
-0.03462441265583038,
0.1262347549200058,
-0.030929241329431534,
-0.3222074508666992,
-0.40388238430023193,
0.08781003206968307,
0.15111926198005676,
-0.17051593959331512,
-0.021857842803001404,
0.040397245436906815,
-0.09443823993206024,
0.24828416109085083,
0.10873971879482269,
-0.06426722556352615,
0.11752380430698395,
0.2205933928489685,
-0.15932485461235046,
0.4910188615322113,
-0.3128918409347534,
0.1855701208114624,
-0.1263468712568283,
-0.019329726696014404,
0.507095217704773,
-0.08164888620376587,
0.06443408131599426,
0.01943213678896427,
-0.17547635734081268,
-0.0944148525595665,
0.0038918647915124893,
0.3216066360473633,
0.2923545837402344,
-0.06558649986982346,
0.3540462255477905,
-0.061337463557720184,
-0.012218790128827095,
0.013100314885377884,
0.23145487904548645,
0.3084676265716553,
0.13598443567752838,
-0.09614069759845734,
-0.09068870544433594,
-0.06440036743879318,
-0.07721856236457825,
-0.2330183982849121,
-0.18295486271381378,
0.0067274803295731544,
-0.1595620959997177,
-0.11795176565647125,
-0.030778944492340088,
0.2115194946527481,
-0.3535706400871277,
-0.29333820939064026,
-0.19930201768875122,
-0.19758199155330658,
0.041986748576164246,
0.20098504424095154,
0.19042810797691345,
0.2532200813293457,
0.34690630435943604,
0.45131611824035645,
0.5280638337135315,
-0.4117274582386017,
0.13607031106948853,
0.17080213129520416,
0.459835410118103,
-0.3179304301738739,
-0.17050527036190033,
-0.395302414894104,
-0.24225862324237823,
0.5076137781143188,
0.34291523694992065,
0.035154856741428375,
-0.2855621874332428,
0.49060532450675964,
0.11880224198102951,
-0.1419801115989685,
-0.1873476803302765,
-0.3700501620769501,
-0.1589188575744629,
0.14747406542301178,
-0.12221506983041763,
-0.060292504727840424,
-0.0016444278880953789,
-0.08892696350812912,
0.032781053334474564,
0.038997408002614975,
-0.06674420833587646,
0.1791001707315445,
0.12498681247234344,
-0.09247004985809326,
0.31675243377685547,
-0.023619163781404495,
0.26375019550323486,
0.15024328231811523,
-0.22141921520233154,
0.32278141379356384,
-0.08093295991420746,
-0.5003840923309326,
-0.11042960733175278,
-0.03611350804567337,
0.5688651204109192,
-0.05280804634094238,
0.1631467342376709,
-0.15160980820655823,
-0.16632013022899628,
0.12892328202724457,
-0.11464927345514297,
0.11874500662088394,
0.28646838665008545,
0.17084583640098572,
-0.3608551323413849,
-0.523918867111206,
0.7567549347877502,
0.12848229706287384,
-0.23638875782489777,
0.033206358551979065,
-0.22662748396396637,
-0.24644826352596283,
0.2846197485923767,
0.3165576756000519,
0.8278551697731018,
-0.08672855794429779,
0.19370900094509125,
0.17113220691680908,
-0.5426455736160278,
0.7377102375030518,
-0.14588044583797455,
-0.09431958198547363,
-0.297608882188797,
0.18724822998046875,
0.06833545863628387,
0.1426670104265213,
-0.34432554244995117,
0.6471415758132935,
0.2203013002872467,
0.36243897676467896,
-0.053321659564971924,
-0.15755464136600494,
0.238169863820076,
0.030114956200122833,
0.5198013186454773,
-0.14377395808696747,
-0.2588643729686737,
0.07728014886379242,
-0.0972331315279007,
0.062134936451911926,
-0.2950022220611572,
0.043000269681215286,
0.1600848138332367,
-0.018893936648964882,
-0.008339226245880127,
-0.31288909912109375,
0.3336391746997833,
0.010645602829754353,
0.24203039705753326,
0.030686624348163605,
-0.23977792263031006,
0.3733067810535431,
0.6426193714141846,
0.1260436326265335,
0.01525217667222023,
-0.0982021689414978,
0.15157775580883026,
0.23967932164669037,
-0.044046659022569656,
0.1718330681324005,
0.4269837439060211,
-0.003946561366319656,
-0.23665425181388855,
-0.09855643659830093,
0.08617864549160004,
0.3245224952697754,
-0.44287851452827454,
-0.024927504360675812,
-0.26099371910095215,
0.2397550642490387,
0.18580245971679688,
0.08802642673254013,
0.12974683940410614,
-0.22001340985298157,
0.12394046783447266,
0.2014138102531433,
-0.25349581241607666,
-0.13741928339004517,
-0.062462639063596725,
-0.31232327222824097,
-0.19252744317054749,
0.24765905737876892,
0.16449713706970215,
0.169716939330101,
0.10507144778966904,
-0.09639263153076172,
-0.06139903515577316,
-0.10755141824483871,
-0.044947538524866104,
0.16305498778820038,
-0.43713825941085815,
0.14337500929832458,
0.18557219207286835,
-0.05269397795200348,
-0.17815713584423065,
0.29727235436439514,
0.04932000860571861,
0.028577763587236404,
0.16518662869930267,
-0.04418468475341797,
-0.40840819478034973,
-0.258461058139801,
-0.2334871143102646,
0.23230384290218353,
0.024026036262512207,
0.1225387454032898,
0.07786333560943604,
-0.11576993763446808,
-0.23265282809734344,
-0.3047425150871277,
-0.32863083481788635,
0.40379437804222107,
-0.06447180360555649,
0.11571478843688965,
-0.372602254152298,
0.23196808993816376,
0.16439826786518097,
-0.1496165692806244,
0.06678277254104614,
-0.1029147356748581,
-0.11870823800563812,
0.15555506944656372,
0.13076332211494446,
-0.06192917376756668,
-0.06856702268123627,
0.2700779438018799,
-0.11349660158157349,
0.06766901910305023,
-0.04477009177207947,
0.15812408924102783,
0.2739681005477905,
0.8259968161582947,
-0.19831262528896332,
-0.06518157571554184,
0.09306348860263824,
-0.10752972960472107,
0.03446308523416519,
-0.04901491105556488,
0.18306240439414978,
-0.004762321710586548,
0.2388302981853485,
-0.03631773963570595,
-0.3358846604824066,
0.03412453457713127,
-0.36624062061309814,
-0.09981311112642288,
-0.02789895236492157,
-0.35485053062438965,
0.5007497668266296,
0.39004260301589966,
0.17719300091266632,
0.1306576132774353,
-0.1592109203338623,
-0.10077370703220367,
0.32264843583106995,
0.16105203330516815,
-0.015471383929252625,
-0.14435569941997528,
0.32363858819007874,
0.26630860567092896,
-0.1328849494457245,
0.17088466882705688,
-0.009013380855321884,
-0.2163240611553192,
-0.0779215544462204,
-0.16708815097808838,
0.05384689196944237,
-0.41350823640823364,
-0.006783537566661835,
0.31447672843933105,
-0.05233031138777733,
-0.07292604446411133,
0.209565669298172,
-0.11440147459506989,
-0.05296076089143753,
0.42927056550979614,
-0.08709179610013962,
0.3596911132335663,
0.14967206120491028,
0.004443034529685974,
-0.2610098719596863,
0.32649901509284973,
-0.24332444369792938,
0.3039928078651428,
-0.5721049308776855,
0.14336350560188293,
-0.04326048493385315,
0.15831610560417175,
-0.11235758662223816,
-0.0117624681442976,
0.2700255215167999,
0.15382243692874908,
-0.19343876838684082,
-0.2539491355419159,
-0.6602360606193542,
0.37648922204971313,
-0.15800327062606812,
0.31867241859436035,
-0.19897513091564178,
0.00660991296172142,
0.13754922151565552,
0.0733642429113388,
0.0162581205368042,
-0.4448850452899933,
-0.34406527876853943,
0.30401527881622314,
0.4286309480667114,
-0.1847050040960312,
-0.0650625005364418,
-0.08347272872924805,
-0.06229597330093384,
0.03603794798254967,
-0.22500695288181305,
0.1916494220495224,
0.06944093108177185,
0.2670174241065979,
-0.03612077236175537,
-0.39365431666374207,
-0.06367139518260956,
-0.1485048532485962,
0.05413596332073212,
0.2923435568809509,
0.08508744835853577,
0.09183938801288605,
-0.02103002741932869,
-0.04213368892669678,
0.5177640318870544,
-0.10643772780895233,
0.05947218835353851,
-0.42414915561676025,
0.3440138101577759,
-0.10120657086372375,
-0.43974387645721436,
-0.30800536274909973,
0.07085636258125305,
-0.19515269994735718,
0.16184918582439423,
0.06135024130344391,
0.21989020705223083,
0.1738259196281433,
-0.34444525837898254,
0.04812668263912201,
-0.10168452560901642,
0.36739060282707214,
0.018078096210956573,
-0.011942021548748016,
-0.06360124051570892,
-0.038019809871912,
-0.3053796887397766,
-0.09800911694765091,
-0.10970835387706757,
0.01818549446761608,
0.12456987798213959,
-0.027321264147758484,
-0.41324129700660706,
-0.0354946032166481,
0.029525555670261383,
0.37894973158836365,
-0.012073948048055172,
0.05779848247766495,
0.026408057659864426,
0.05632520467042923,
-0.20313666760921478,
0.13884380459785461,
0.05117167532444,
0.19747492671012878,
0.04913361743092537,
-0.21896012127399445,
0.012661337852478027,
-0.028321951627731323,
0.18656247854232788,
-0.13768404722213745,
0.38923385739326477,
0.1794736683368683,
0.004266493022441864,
0.3903372585773468,
0.22847962379455566,
0.1899849772453308,
-0.26036515831947327,
0.0886809304356575,
-0.298748254776001,
0.038525670766830444,
-0.19589374959468842,
0.2179417908191681,
-0.11114238202571869,
0.21625174582004547,
0.03932293877005577,
-0.03948071599006653,
0.28727513551712036,
-0.04650008678436279,
-0.41999107599258423,
0.21909019351005554,
-0.07559669017791748,
0.13244764506816864,
-0.007036725524812937,
0.015902146697044373,
0.4599241316318512,
-0.13286280632019043,
-0.17111222445964813,
-0.408875048160553,
0.2925475239753723,
-0.22539100050926208,
-0.09675343334674835,
0.010683330707252026,
0.2912593483924866,
0.27615728974342346,
-0.06524153798818588,
-0.7549909353256226,
-0.15094050765037537,
0.430301308631897,
0.04971796274185181,
-0.5622782707214355,
0.11530174314975739,
0.2581784129142761,
0.10885928571224213,
0.005846638232469559,
-0.05532519519329071,
0.2274070382118225,
0.33286210894584656,
0.40135326981544495,
-0.43278831243515015
] |
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.37897950410842896,
-0.2363888919353485,
0.0022033415734767914,
0.19780609011650085,
0.16761621832847595,
0.22788214683532715,
0.6327134370803833,
0.17202192544937134,
0.048420343548059464,
0.11039821803569794,
-0.10792411863803864,
0.374673455953598,
-0.22194674611091614,
0.1496955156326294,
0.19423629343509674,
0.12018711119890213,
0.3345719873905182,
0.32737040519714355,
0.32620662450790405,
-0.4975581765174866,
-0.1646401435136795,
0.13662020862102509,
-0.10910113155841827,
0.26487547159194946,
-0.41859060525894165,
0.23733468353748322,
-0.15384837985038757,
-0.34292253851890564,
0.10450275987386703,
-0.646228015422821,
0.21992728114128113,
-0.10231253504753113,
0.4217911660671234,
-0.2809378206729889,
-0.00012166707165306434,
-0.2675628066062927,
0.054385215044021606,
-0.01705234684050083,
-0.5345317125320435,
0.013919644057750702,
-0.07294796407222748,
-0.19387073814868927,
0.29071784019470215,
-0.10572883486747742,
-0.0797976553440094,
-0.19854053854942322,
0.24333800375461578,
0.008285775780677795,
0.07407951354980469,
0.2916976809501648,
0.12089850008487701,
-0.007320108823478222,
-0.4337936341762543,
0.34307369589805603,
0.34377321600914,
-0.22768603265285492,
0.06303754448890686,
0.08631667494773865,
0.0201416015625,
-0.07728954404592514,
0.4642215669155121,
0.43800532817840576,
-0.11586125195026398,
-0.2857222259044647,
0.17432698607444763,
0.1308353841304779,
0.4274492859840393,
-0.3870415985584259,
0.007404593750834465,
0.2546110451221466,
0.14398473501205444,
-0.1291523575782776,
-0.3260563313961029,
-0.43474656343460083,
0.2493039220571518,
-0.31122997403144836,
-0.236092209815979,
0.21969576179981232,
0.30170172452926636,
0.1511385291814804,
-0.2829222083091736,
-0.051666177809238434,
-0.18891924619674683,
0.14142945408821106,
0.12954623997211456,
0.6374179124832153,
0.11013425141572952,
0.1782875955104828,
0.1365812122821808,
0.22699908912181854,
-0.13424834609031677,
-0.11056752502918243,
-0.012063413858413696,
0.37690120935440063,
-0.3886619806289673,
-0.20188117027282715,
0.0016413629055023193,
0.025168363004922867,
-0.08315052837133408,
0.23637588322162628,
0.05368947237730026,
-0.0864013060927391,
0.0708276703953743,
0.06043640151619911,
0.18551386892795563,
0.14932218194007874,
0.46044817566871643,
0.36092543601989746,
-0.006777875125408173,
-0.20381036400794983,
0.23742687702178955,
-0.017834264785051346,
-0.43187829852104187,
0.07513268291950226,
0.2864333689212799,
-0.11907350271940231,
-0.15249745547771454,
-0.207591250538826,
-0.16850650310516357,
-0.008001572452485561,
-0.5624997615814209,
0.05498015508055687,
0.08528296649456024,
-0.1243271455168724,
0.07340666651725769,
0.2966628670692444,
-0.23001186549663544,
0.10543183982372284,
-0.15785101056098938,
-0.6040851473808289,
-0.12770409882068634,
0.13155269622802734,
-0.17731277644634247,
-0.20712418854236603,
0.1995099037885666,
-0.2129686176776886,
0.23791183531284332,
-0.011701509356498718,
-0.3459094762802124,
-0.06301194429397583,
0.467331200838089,
0.05776222422719002,
0.17290142178535461,
0.3453715145587921,
-0.13117802143096924,
0.5312722325325012,
-0.06206020340323448,
-0.13814011216163635,
-0.07480618357658386,
0.02976985275745392,
-0.2154982089996338,
-0.3328005373477936,
0.18160536885261536,
0.17271503806114197,
-0.12539178133010864,
-0.1530139297246933,
0.04544496163725853,
0.1467696577310562,
0.0849800854921341,
-0.2330767661333084,
0.0582956001162529,
-0.3490651845932007,
0.04291721060872078,
-0.09430819004774094,
0.15685082972049713,
0.009879589080810547,
-0.1807917207479477,
-0.12342417985200882,
0.003013810608536005,
-0.17484718561172485,
0.3881753385066986,
0.4391433000564575,
-0.08881457895040512,
0.05851231515407562,
-0.051350899040699005,
0.08467178046703339,
0.5011442303657532,
-0.2736697196960449,
-0.2654494047164917,
0.11332444846630096,
-0.1075643002986908,
-0.2903262972831726,
-0.11853586882352829,
0.5133687853813171,
0.010310107842087746,
-0.022084582597017288,
-0.02622067928314209,
-0.057650357484817505,
-0.04693903774023056,
-0.19082960486412048,
-0.4078170657157898,
0.04399076849222183,
0.5144603252410889,
0.1584962010383606,
-0.10348723828792572,
0.13258671760559082,
-0.46264463663101196,
0.1176946833729744,
0.3830081820487976,
-0.17689163982868195,
0.18461689352989197,
0.11847317963838577,
0.20526696741580963,
0.15562860667705536,
0.07375780493021011,
0.0711098313331604,
-0.24502208828926086,
0.20191174745559692,
-0.09622263163328171,
0.25698474049568176,
0.5588254928588867,
-0.1285279244184494,
-0.036027781665325165,
-0.18266570568084717,
-0.1530185490846634,
-0.2860919237136841,
0.05866124480962753,
0.1514592170715332,
0.164174422621727,
-0.038597144186496735,
-0.18274258077144623,
0.11583168804645538,
-0.29912614822387695,
0.0803111270070076,
-0.46826040744781494,
-0.025893185287714005,
0.11079593002796173,
0.08762595802545547,
-0.15548664331436157,
0.2683863937854767,
0.2160198986530304,
0.023261426016688347,
0.17583438754081726,
0.09779223799705505,
-0.09764310717582703,
-0.21835710108280182,
0.11025393009185791,
0.24687685072422028,
0.06853533536195755,
-0.2757852375507355,
0.09640543907880783,
0.4207380712032318,
0.010861300863325596,
-0.20666757225990295,
-0.20598945021629333,
0.26844680309295654,
0.00799260288476944,
0.22700875997543335,
-0.10758529603481293,
0.08825433254241943,
0.07339098304510117,
0.07654082775115967,
-0.3425273895263672,
-0.15689077973365784,
0.14374125003814697,
-0.3022579848766327,
0.13474887609481812,
0.2816454768180847,
-0.37677502632141113,
0.01818232238292694,
0.03382361680269241,
-0.14993947744369507,
-0.046588003635406494,
0.1338830441236496,
-0.14937102794647217,
-0.15228140354156494,
0.3809714615345001,
0.011432114988565445,
0.1632949262857437,
0.29679813981056213,
0.11020585894584656,
0.0073575954884290695,
-0.49067679047584534,
-0.178883895277977,
0.2380930781364441,
0.14337435364723206,
-0.24976631999015808,
-0.18358322978019714,
0.3590719401836395,
0.144932821393013,
-0.3770846724510193,
-0.47805434465408325,
-0.256927490234375,
0.21298786997795105,
-0.27781936526298523,
0.27872535586357117,
-0.15151388943195343,
-0.4487256407737732,
-0.28478503227233887,
-0.1748633086681366,
-0.13729456067085266,
-0.22568152844905853,
0.2676302194595337,
-0.278677761554718,
0.07919490337371826,
0.06030910462141037,
0.11532843112945557,
0.28105199337005615,
-0.3082815408706665,
0.40001511573791504,
-0.14655748009681702,
-0.2746138572692871,
-0.5887213945388794,
-0.0012312307953834534,
-0.4473210871219635,
0.07784709334373474,
0.20338112115859985,
-0.18959583342075348,
-0.4071711301803589,
0.010083185508847237,
-0.27981603145599365,
-0.049867212772369385,
-0.01658487692475319,
-0.05195695161819458,
0.15740817785263062,
-0.02764933556318283,
-0.2775495946407318,
0.326157808303833,
-0.08079226315021515,
0.1119636595249176,
-0.012451456859707832,
0.04372166097164154,
-0.17878443002700806,
0.13604937493801117,
-0.4149355888366699,
-0.2756355404853821,
-0.04657825082540512,
0.1876479983329773,
0.2455364316701889,
0.15911680459976196,
0.11081820726394653,
0.4958162009716034,
-0.09896062314510345,
0.01942630484700203,
-0.1318594366312027,
0.23229992389678955,
-0.14000141620635986,
-0.25378841161727905,
0.14102284610271454,
0.14778155088424683,
-0.1040075272321701,
-0.001456715166568756,
0.00271417573094368,
-0.006684750318527222,
-0.13981309533119202,
-0.33991456031799316,
0.06743651628494263,
0.24945341050624847,
-0.17038702964782715,
-0.0908600240945816,
0.05150020867586136,
0.02194180339574814,
0.13298308849334717,
0.21892283856868744,
-0.05860015004873276,
0.0718773603439331,
0.35120776295661926,
-0.18908271193504333,
0.3821302056312561,
-0.29826119542121887,
0.17685183882713318,
-0.10047955065965652,
0.03707614541053772,
0.4577079713344574,
-0.051854390650987625,
-0.005830094218254089,
-0.04743766039609909,
-0.029182422906160355,
0.02319253981113434,
0.1906559020280838,
0.32728129625320435,
0.11975567042827606,
-0.2978254556655884,
0.33432018756866455,
0.05459703132510185,
0.040574125945568085,
-0.061386603862047195,
0.2818066477775574,
0.17985814809799194,
-0.021822160109877586,
-0.0816585049033165,
-0.1425866335630417,
0.030879419296979904,
0.1000034511089325,
-0.18865376710891724,
-0.20833413302898407,
0.03757021203637123,
-0.1164189875125885,
-0.08895434439182281,
0.025618776679039,
0.14568489789962769,
-0.562336802482605,
-0.2645724415779114,
-0.29103848338127136,
-0.09640452265739441,
0.02683822065591812,
0.23490534722805023,
0.2702016234397888,
0.09196912497282028,
0.2787657380104065,
0.3079720437526703,
0.577376663684845,
-0.45419198274612427,
0.10105283558368683,
0.21699103713035583,
0.43723562359809875,
-0.3506583869457245,
-0.2670775055885315,
-0.4310546815395355,
-0.24279330670833588,
0.5924487113952637,
0.18378803133964539,
0.06316878646612167,
-0.1783062368631363,
0.4404776394367218,
0.21135661005973816,
-0.1671174317598343,
-0.00911754835397005,
-0.3676314353942871,
-0.2801336646080017,
0.15149235725402832,
-0.2255181074142456,
0.0998723953962326,
-0.2316167652606964,
-0.18478363752365112,
0.037795115262269974,
-0.029949860647320747,
-0.03869548439979553,
0.27093666791915894,
0.17193402349948883,
0.06625891476869583,
0.20849889516830444,
0.05248026177287102,
0.19531896710395813,
0.2376716136932373,
-0.19297680258750916,
0.47535082697868347,
-0.10046505928039551,
-0.5855259895324707,
-0.05824270099401474,
-0.19158630073070526,
0.6324007511138916,
0.05031083524227142,
0.16608735918998718,
-0.2600189447402954,
-0.25606265664100647,
0.025766529142856598,
-0.041634026914834976,
0.1995997279882431,
0.32176679372787476,
0.059987932443618774,
-0.2406298667192459,
-0.4686696529388428,
0.6235413551330566,
0.1689915806055069,
-0.23752610385417938,
0.07834407687187195,
-0.44310110807418823,
-0.33507317304611206,
0.22479207813739777,
0.28698399662971497,
0.88568514585495,
0.12620265781879425,
0.36618638038635254,
0.3354710042476654,
-0.3373045325279236,
0.8705617785453796,
-0.18799835443496704,
0.01272496022284031,
-0.3058100640773773,
0.11859962344169617,
0.07003739476203918,
0.0823478251695633,
-0.2279144823551178,
0.6563934087753296,
0.223860502243042,
0.3990520238876343,
-0.0981680229306221,
-0.1551806628704071,
0.29141443967819214,
0.105048269033432,
0.5124003887176514,
-0.06647564470767975,
-0.40915679931640625,
0.03502605855464935,
0.015216067433357239,
0.028725624084472656,
-0.3384092152118683,
0.09990697354078293,
0.09556351602077484,
-0.07263903319835663,
0.135061576962471,
-0.08361068367958069,
0.3146386742591858,
0.08523077517747879,
0.20307902991771698,
0.04096430540084839,
-0.21028229594230652,
0.38416630029678345,
0.6445980072021484,
0.10137533396482468,
0.01589956507086754,
-0.07584232091903687,
0.10294214636087418,
0.198633074760437,
-0.009977131150662899,
0.15619179606437683,
0.33243104815483093,
-0.03767983615398407,
-0.12386056035757065,
-0.06179226189851761,
-0.08712160587310791,
0.3406484127044678,
-0.45979511737823486,
-0.013241909444332123,
-0.253917932510376,
0.09863003343343735,
0.1966831088066101,
0.12011956423521042,
0.11160190403461456,
-0.2067352533340454,
0.09159436821937561,
0.21020913124084473,
-0.2533980906009674,
-0.13354289531707764,
-0.08844806253910065,
-0.2359197735786438,
-0.20245793461799622,
0.2868645489215851,
0.2457197606563568,
0.12320852279663086,
0.25027376413345337,
-0.11677922308444977,
0.07696533203125,
-0.06726928800344467,
0.06561487168073654,
0.13563689589500427,
-0.45768222212791443,
0.10382106900215149,
0.09519748389720917,
-0.03798997402191162,
-0.08269039541482925,
0.39623793959617615,
0.15268509089946747,
0.046648137271404266,
0.12682890892028809,
-0.009704437106847763,
-0.3443368673324585,
-0.1337977945804596,
-0.1481458693742752,
0.21087831258773804,
0.08223201334476471,
0.20095567405223846,
0.05582953989505768,
-0.232418030500412,
-0.23613928258419037,
-0.23935025930404663,
-0.3015695810317993,
0.45749762654304504,
0.036684196442365646,
0.08519552648067474,
-0.29452574253082275,
0.11025960743427277,
0.09990888833999634,
-0.12459614872932434,
0.12620428204536438,
-0.11135408282279968,
-0.0942031592130661,
0.16199016571044922,
0.10656791180372238,
-0.059229664504528046,
0.009596231393516064,
0.30823904275894165,
-0.22138342261314392,
0.10640313476324081,
-0.1534731388092041,
0.08174295723438263,
0.2111968845129013,
0.799643874168396,
-0.3170277178287506,
-0.00953219085931778,
0.0008487142622470856,
-0.08024898916482925,
-0.08868846297264099,
-0.025413505733013153,
0.1548054814338684,
0.018429385498166084,
0.29774537682533264,
-0.04850978031754494,
-0.3181406557559967,
-0.04093855619430542,
-0.4460304379463196,
-0.09159772843122482,
-0.03271035850048065,
-0.36586010456085205,
0.5111554265022278,
0.21651515364646912,
0.08758530020713806,
0.36265289783477783,
-0.2400738149881363,
-0.1291084736585617,
0.3561384081840515,
0.17675615847110748,
-0.1472710818052292,
-0.1037261039018631,
0.2747884690761566,
0.1189863532781601,
-0.22162160277366638,
0.2710150182247162,
-0.011452198028564453,
-0.1141236275434494,
-0.014825910329818726,
-0.17530402541160583,
0.06869009137153625,
-0.39682137966156006,
0.004042690619826317,
0.30717119574546814,
-0.1414191722869873,
0.03070584125816822,
0.07073022425174713,
-0.06785383820533752,
-0.012754924595355988,
0.358595609664917,
-0.08021240681409836,
0.35040193796157837,
0.10297676175832748,
0.06368308514356613,
-0.26067474484443665,
0.06313182413578033,
-0.2640184462070465,
0.34533292055130005,
-0.5192772746086121,
0.2897838056087494,
-0.020826950669288635,
0.12851668894290924,
-0.11851965636014938,
-0.16622668504714966,
0.2212134152650833,
0.11086510121822357,
-0.22672337293624878,
-0.2458803653717041,
-0.6276057958602905,
0.2741492688655853,
-0.1437022089958191,
0.21107980608940125,
-0.15007521212100983,
0.028396449983119965,
0.15617650747299194,
0.12123069167137146,
0.029135003685951233,
-0.4544227719306946,
-0.3073250651359558,
0.18856075406074524,
0.42315059900283813,
-0.14603732526302338,
-0.04799290746450424,
-0.07897956669330597,
-0.07878215610980988,
0.014899993315339088,
-0.16474801301956177,
0.24164263904094696,
0.039185330271720886,
0.30863335728645325,
-0.015748579055070877,
-0.315716952085495,
-0.04131545498967171,
-0.19690491259098053,
0.00043330155313014984,
0.3784509599208832,
0.06294795870780945,
0.17169001698493958,
-0.01536354050040245,
-0.041924670338630676,
0.6420860290527344,
-0.10407651960849762,
-0.013764934614300728,
-0.5475203990936279,
0.4322214126586914,
-0.04435194283723831,
-0.4740865230560303,
-0.262746125459671,
0.008188746869564056,
-0.2035597860813141,
0.16647325456142426,
0.1110774427652359,
0.28306975960731506,
0.1222774013876915,
-0.18127353489398956,
0.03626668080687523,
-0.2098819762468338,
0.37904226779937744,
0.1606835275888443,
0.027195867151021957,
-0.150249183177948,
-0.052647318691015244,
-0.37678399682044983,
-0.01111418753862381,
-0.2767832577228546,
-0.07021091133356094,
0.26218491792678833,
-0.04104071855545044,
-0.355429470539093,
-0.03569167107343674,
-0.14049415290355682,
0.29571279883384705,
-0.0004413807764649391,
-0.016113534569740295,
-0.10045020282268524,
-0.0170600563287735,
-0.2887953519821167,
0.2746638357639313,
0.07900378108024597,
0.011628571897745132,
0.06865447014570236,
-0.2450379729270935,
-0.04741893336176872,
0.0484854131937027,
0.20228824019432068,
-0.041374899446964264,
0.36975041031837463,
0.12136032432317734,
0.08222045749425888,
0.34809672832489014,
0.20352128148078918,
0.04093976318836212,
-0.13233408331871033,
0.08101446181535721,
-0.22308513522148132,
0.1789844036102295,
-0.19708268344402313,
0.20605574548244476,
-0.20888690650463104,
0.21609611809253693,
0.00971141830086708,
-0.10776206105947495,
0.4602598547935486,
0.1112249493598938,
-0.5706874132156372,
0.38103845715522766,
-0.14816376566886902,
0.25993454456329346,
0.10891303420066833,
0.1522691696882248,
0.2566179633140564,
-0.3218112885951996,
-0.35487860441207886,
-0.2834206819534302,
0.3448904752731323,
-0.40804237127304077,
-0.12701207399368286,
-0.1688779890537262,
0.3636051416397095,
0.19030597805976868,
-0.07086146622896194,
-0.702331006526947,
-0.1694469004869461,
0.5747874975204468,
-0.06463511288166046,
-0.5643623471260071,
0.08758996427059174,
0.2418246567249298,
-0.04987284541130066,
0.029372069984674454,
-0.08776077628135681,
0.15848207473754883,
0.12317420542240143,
0.36826571822166443,
-0.5045645833015442
] |
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.41206711530685425,
-0.29795533418655396,
-0.022575775161385536,
0.21812202036380768,
0.190714493393898,
0.20889493823051453,
0.5165289044380188,
0.15536196529865265,
0.18814340233802795,
0.1818922460079193,
-0.1560337394475937,
0.3227591812610626,
-0.2433937042951584,
0.17844176292419434,
0.23894886672496796,
0.06068455055356026,
0.3916952311992645,
0.32878345251083374,
0.334584504365921,
-0.5028907060623169,
-0.29303598403930664,
0.06340009719133377,
-0.1734505593776703,
0.3559277653694153,
-0.45377683639526367,
0.2747114896774292,
-0.07792138308286667,
-0.31430158019065857,
-0.05796847492456436,
-0.6953612565994263,
0.235722616314888,
-0.09171693027019501,
0.33436235785484314,
-0.1888730525970459,
-0.00011943819117732346,
-0.2986067831516266,
0.03209013491868973,
-0.0003683455288410187,
-0.47347915172576904,
-0.07678395509719849,
-0.19252485036849976,
-0.2501673400402069,
0.30626988410949707,
-0.1513945311307907,
-0.12586551904678345,
-0.21643906831741333,
0.19403953850269318,
0.0685289055109024,
0.03658655285835266,
0.31351912021636963,
0.11145402491092682,
-0.035970546305179596,
-0.4204094409942627,
0.31922125816345215,
0.35246914625167847,
-0.2056468278169632,
0.05934526026248932,
0.05031563341617584,
-0.029987841844558716,
-0.09586521983146667,
0.47622349858283997,
0.48959341645240784,
-0.14976462721824646,
-0.25771352648735046,
0.17881479859352112,
0.08833209425210953,
0.37788623571395874,
-0.47071316838264465,
0.03887652978301048,
0.18148332834243774,
0.2218288779258728,
-0.23974645137786865,
-0.26646173000335693,
-0.42410820722579956,
0.2933410704135895,
-0.3391403555870056,
-0.17739418148994446,
0.188206285238266,
0.32201912999153137,
0.05771869048476219,
-0.18282060325145721,
-0.12960082292556763,
-0.08961841464042664,
0.13909590244293213,
0.15693524479866028,
0.7602540254592896,
0.14065606892108917,
0.238084614276886,
0.28968894481658936,
0.24942928552627563,
-0.12650425732135773,
-0.13248255848884583,
0.007853154093027115,
0.425417959690094,
-0.46009665727615356,
-0.23750010132789612,
-0.06902732700109482,
0.020621303468942642,
-0.06082480400800705,
0.18920642137527466,
-0.07393328845500946,
-0.21070319414138794,
-0.06270129233598709,
-0.0006543844938278198,
0.179166778922081,
0.03484392911195755,
0.40930965542793274,
0.3669913411140442,
-0.0277554988861084,
-0.23074670135974884,
0.2878875434398651,
-0.033375807106494904,
-0.31749221682548523,
0.053364526480436325,
0.39768025279045105,
-0.08202732354402542,
-0.1803346574306488,
-0.14354997873306274,
-0.05712181329727173,
0.011617855168879032,
-0.4993461072444916,
0.027471443638205528,
0.11463750153779984,
-0.1753019094467163,
0.12982037663459778,
0.3081144094467163,
-0.1446695625782013,
0.06426297873258591,
-0.16551490128040314,
-0.5688717365264893,
-0.14104662835597992,
0.06965227425098419,
-0.15434396266937256,
-0.08871650695800781,
0.17150622606277466,
-0.1474175751209259,
0.225234717130661,
0.03795819729566574,
-0.4195162057876587,
-0.10140535235404968,
0.3598078191280365,
-0.00880604237318039,
0.07239572703838348,
0.365506649017334,
-0.2805546522140503,
0.5722589492797852,
-0.047012362629175186,
-0.18117281794548035,
-0.056751132011413574,
-0.013101279735565186,
-0.2438606321811676,
-0.23726509511470795,
0.03397451713681221,
0.17563962936401367,
-0.07299387454986572,
-0.19551262259483337,
0.022902116179466248,
0.08382268249988556,
0.001399986445903778,
-0.21583259105682373,
0.1908332109451294,
-0.306479811668396,
-0.01596871018409729,
-0.05116330087184906,
0.12759993970394135,
0.048935793340206146,
-0.18825258314609528,
-0.15324810147285461,
-0.03119712881743908,
-0.25109174847602844,
0.3765111565589905,
0.383774995803833,
-0.008593195118010044,
-0.00960124284029007,
0.02939787693321705,
0.05644908547401428,
0.48590701818466187,
-0.2925831377506256,
-0.36113792657852173,
0.12709569931030273,
-0.13218483328819275,
-0.35977521538734436,
-0.06241137534379959,
0.651644229888916,
-0.10791205614805222,
0.038941316306591034,
-0.011343911290168762,
-0.23585925996303558,
0.06706683337688446,
-0.14160192012786865,
-0.3873310983181,
0.01477448083460331,
0.46541792154312134,
0.27211305499076843,
0.026566118001937866,
0.03152705729007721,
-0.5151117444038391,
0.09764522314071655,
0.3338268995285034,
-0.07229839265346527,
0.23750077188014984,
0.1364917755126953,
0.2828276455402374,
0.04655487462878227,
0.09209564328193665,
0.023843299597501755,
-0.33735689520835876,
0.14596125483512878,
-0.13826096057891846,
0.3534272313117981,
0.46475929021835327,
-0.008607214316725731,
-0.05769729241728783,
-0.1500573307275772,
-0.1464099884033203,
-0.17855603992938995,
0.054015859961509705,
0.13268199563026428,
0.09548567235469818,
-0.007223866879940033,
-0.19511309266090393,
0.08663797378540039,
-0.24948853254318237,
0.09132040292024612,
-0.3926182687282562,
0.015048032626509666,
0.11656246334314346,
0.10160934180021286,
-0.07975359261035919,
0.26405781507492065,
0.2795213460922241,
0.12976466119289398,
0.13587826490402222,
0.00036866962909698486,
-0.13167467713356018,
-0.29798102378845215,
0.12325160205364227,
0.3700304627418518,
0.14343294501304626,
-0.3118869662284851,
0.049997881054878235,
0.39835697412490845,
0.092030368745327,
-0.2388041913509369,
-0.04840850085020065,
0.18895754218101501,
-0.13474833965301514,
0.24454638361930847,
-0.30071571469306946,
0.0992032140493393,
0.09710028767585754,
0.04033481702208519,
-0.323775053024292,
-0.16824035346508026,
0.14575786888599396,
-0.3325269818305969,
0.17933890223503113,
0.3762756884098053,
-0.32388192415237427,
0.01906849443912506,
0.13782814145088196,
-0.15288665890693665,
-0.046198293566703796,
0.12754905223846436,
-0.17763978242874146,
-0.10515078157186508,
0.28494542837142944,
0.09558099508285522,
0.21187308430671692,
0.2463420182466507,
-0.09615808725357056,
0.023163849487900734,
-0.4363017678260803,
-0.19024521112442017,
0.16169388592243195,
0.16754582524299622,
-0.1787635087966919,
-0.146193265914917,
0.30875393748283386,
0.14439475536346436,
-0.27469998598098755,
-0.4500884413719177,
-0.3060738742351532,
0.25107496976852417,
-0.2683728039264679,
0.16342705488204956,
-0.14129182696342468,
-0.5088823437690735,
-0.29767361283302307,
-0.24566327035427094,
-0.1944868564605713,
-0.22436144948005676,
0.26054009795188904,
-0.36582955718040466,
0.13404501974582672,
0.05149520933628082,
0.015829484909772873,
0.22251872718334198,
-0.23645789921283722,
0.3548372685909271,
-0.32282760739326477,
-0.266939640045166,
-0.3862210214138031,
-0.04147689789533615,
-0.3748982548713684,
0.045338958501815796,
0.22277776896953583,
-0.19616985321044922,
-0.3911017179489136,
0.030559010803699493,
-0.1571665108203888,
-0.0725817084312439,
-0.12450465559959412,
-0.12544190883636475,
0.11592095345258713,
-0.013274259865283966,
-0.2571895718574524,
0.39051005244255066,
0.014368366450071335,
0.13177204132080078,
0.009425057098269463,
0.017265979200601578,
-0.23331761360168457,
0.1317775994539261,
-0.3792226314544678,
-0.2530626356601715,
-0.12661655247211456,
0.24661612510681152,
0.10637824237346649,
0.09227003157138824,
0.13429898023605347,
0.4017401337623596,
-0.14032122492790222,
0.04625308886170387,
-0.1153581440448761,
0.2229660600423813,
-0.17256177961826324,
-0.3250916600227356,
0.11195538938045502,
0.30897465348243713,
-0.10827454924583435,
0.04924725368618965,
0.08642826229333878,
0.03893456235527992,
-0.31063026189804077,
-0.41285818815231323,
0.13070252537727356,
0.185261532664299,
-0.15540364384651184,
-0.0966406762599945,
-0.021869076415896416,
-0.028448030352592468,
0.2581857740879059,
0.12514708936214447,
-0.06090996786952019,
0.015404284000396729,
0.2919614017009735,
-0.14036980271339417,
0.5043455958366394,
-0.31882041692733765,
0.18676865100860596,
-0.2205401211977005,
-0.035824306309223175,
0.5008659958839417,
-0.07418309152126312,
0.05216201767325401,
-0.0028765108436346054,
-0.07132327556610107,
-0.09262534230947495,
-0.005719510838389397,
0.31700095534324646,
0.2775490880012512,
-0.1601705253124237,
0.35164016485214233,
-0.046226419508457184,
0.04963863641023636,
-0.07318739593029022,
0.1602064073085785,
0.18347153067588806,
0.1161019504070282,
-0.03830359876155853,
-0.11002801358699799,
-0.057138167321681976,
-0.02476106770336628,
-0.2262970209121704,
-0.18001003563404083,
-0.08099179714918137,
-0.16558252274990082,
-0.054746732115745544,
0.07270926237106323,
0.18596136569976807,
-0.4748195707798004,
-0.3318726420402527,
-0.2425299882888794,
-0.1980275958776474,
0.04165176302194595,
0.18894504010677338,
0.16113217175006866,
0.23301494121551514,
0.3268892467021942,
0.44577884674072266,
0.46387922763824463,
-0.39880040287971497,
0.04172467067837715,
0.1874549388885498,
0.4624137878417969,
-0.34488365054130554,
-0.13337382674217224,
-0.37702375650405884,
-0.24640662968158722,
0.5334621667861938,
0.2832222580909729,
0.008938141167163849,
-0.31694644689559937,
0.4711281359195709,
0.2187291979789734,
-0.21867462992668152,
-0.16844241321086884,
-0.4044208824634552,
-0.16216419637203217,
0.18676596879959106,
-0.1542462408542633,
-0.006006186828017235,
-0.11265231668949127,
-0.10678872466087341,
0.026667524129152298,
0.07246045023202896,
-0.017595503479242325,
0.18455342948436737,
0.10217548906803131,
-0.026325054466724396,
0.22139553725719452,
-0.06498134136199951,
0.20340020954608917,
0.24493423104286194,
-0.19374015927314758,
0.45181119441986084,
-0.04108431562781334,
-0.5115537643432617,
-0.0335901603102684,
-0.09071122109889984,
0.589289665222168,
-0.032584577798843384,
0.1608939915895462,
-0.15522843599319458,
-0.18388071656227112,
0.0598992295563221,
-0.10856052488088608,
0.050505492836236954,
0.30035385489463806,
0.08905226737260818,
-0.39029479026794434,
-0.4363691508769989,
0.7228569984436035,
0.08156313002109528,
-0.17191022634506226,
0.005936186760663986,
-0.2486797422170639,
-0.28809529542922974,
0.2744544744491577,
0.34582453966140747,
0.9324268102645874,
-0.07126283645629883,
0.20726104080677032,
0.2928715646266937,
-0.3646988868713379,
0.8622068166732788,
-0.09751959145069122,
-0.08979488164186478,
-0.22669163346290588,
0.1135450229048729,
0.02193581871688366,
0.12763358652591705,
-0.3245331048965454,
0.6223570704460144,
0.22749930620193481,
0.4053783714771271,
-0.04184295982122421,
-0.2047157883644104,
0.2640417516231537,
0.06608081609010696,
0.6422033905982971,
-0.05330352112650871,
-0.4470773935317993,
0.039095185697078705,
-0.13350379467010498,
0.12823617458343506,
-0.2708441913127899,
0.07037948071956635,
0.10404615104198456,
0.009086191654205322,
0.04782165586948395,
-0.1962493360042572,
0.303580641746521,
-0.02763480693101883,
0.2179737240076065,
0.07706408202648163,
-0.17336498200893402,
0.4282214045524597,
0.6543005108833313,
0.11192663013935089,
-0.028282085433602333,
-0.12024693191051483,
0.08823610842227936,
0.17866353690624237,
0.03306448087096214,
0.24907246232032776,
0.28873592615127563,
-0.02337426133453846,
-0.20415779948234558,
-0.06593970209360123,
-0.03007630631327629,
0.3103832006454468,
-0.4120931029319763,
-0.04610300809144974,
-0.1786431223154068,
0.16460923850536346,
0.13622020184993744,
0.07370937615633011,
0.15474531054496765,
-0.2045823335647583,
0.1059294044971466,
0.16576901078224182,
-0.13476671278476715,
-0.12267879396677017,
0.00020600482821464539,
-0.35133096575737,
-0.23873217403888702,
0.2964491844177246,
0.2478322982788086,
0.17471759021282196,
0.3137510120868683,
-0.13126088678836823,
-0.055410049855709076,
-0.13257744908332825,
0.051564984023571014,
0.1521887481212616,
-0.40575259923934937,
0.03363154083490372,
0.2777858376502991,
0.04192754626274109,
-0.11350540816783905,
0.30116790533065796,
0.11364750564098358,
-0.019166581332683563,
0.17403051257133484,
-0.0611899308860302,
-0.3874639868736267,
-0.1178932785987854,
-0.21032671630382538,
0.14813300967216492,
0.09967368096113205,
0.12589357793331146,
0.108730748295784,
-0.10698115825653076,
-0.228721022605896,
-0.290321946144104,
-0.38008224964141846,
0.3530940115451813,
0.046496614813804626,
0.1237654983997345,
-0.3487105965614319,
0.12567344307899475,
0.134016215801239,
-0.2506501078605652,
0.12342815101146698,
-0.09795176237821579,
-0.08344757556915283,
0.16210925579071045,
0.14715293049812317,
-0.03781425952911377,
-0.09731872379779816,
0.25084638595581055,
-0.10848361253738403,
0.0788036659359932,
-0.1278068572282791,
0.1197320744395256,
0.2841044068336487,
0.9013699293136597,
-0.21160374581813812,
-0.12908443808555603,
-0.07343533635139465,
0.0020568184554576874,
-0.05500037968158722,
-0.11382600665092468,
0.1674347221851349,
0.030806319788098335,
0.3321893513202667,
-0.036918215453624725,
-0.4046170115470886,
-0.0674339309334755,
-0.4131420850753784,
-0.0754166692495346,
0.029155684635043144,
-0.36712318658828735,
0.5702588558197021,
0.37258318066596985,
0.07096963375806808,
0.21557971835136414,
-0.21567630767822266,
-0.13707827031612396,
0.3358874022960663,
0.1587321162223816,
-0.15461404621601105,
-0.0737888440489769,
0.312090665102005,
0.2377631962299347,
-0.20222581923007965,
0.16584351658821106,
-0.11474248766899109,
-0.24522161483764648,
0.023794855922460556,
-0.13201703131198883,
0.09835673868656158,
-0.46273815631866455,
-0.0020068525336682796,
0.2875799238681793,
0.021134983748197556,
-0.038635898381471634,
0.16887281835079193,
-0.060320284217596054,
-0.08921395987272263,
0.3625584840774536,
-0.09795408695936203,
0.28606465458869934,
0.13898611068725586,
0.09119202196598053,
-0.2694695293903351,
0.21166612207889557,
-0.27994397282600403,
0.39018067717552185,
-0.6274665594100952,
0.09556680917739868,
-0.034285545349121094,
0.16060948371887207,
-0.06451830267906189,
-0.07606198638677597,
0.30540549755096436,
0.19589658081531525,
-0.20976904034614563,
-0.19104255735874176,
-0.7020379304885864,
0.31459569931030273,
-0.1027279943227768,
0.193532332777977,
-0.20565253496170044,
-0.04554443806409836,
0.1961165964603424,
0.15185825526714325,
0.009951390326023102,
-0.4093882441520691,
-0.337850958108902,
0.3046698272228241,
0.41967883706092834,
-0.14120975136756897,
-0.035309433937072754,
-0.04909852147102356,
-0.04237782955169678,
0.0393344983458519,
-0.1289575845003128,
0.16130676865577698,
0.09814915060997009,
0.28823715448379517,
-0.014103603549301624,
-0.29826080799102783,
-0.07619116455316544,
-0.12932851910591125,
0.06363452225923538,
0.3996812105178833,
0.11835061013698578,
0.12230643630027771,
-0.012567820027470589,
-0.01911434344947338,
0.559302031993866,
-0.16126540303230286,
0.040415264666080475,
-0.41874176263809204,
0.38361427187919617,
-0.05567590147256851,
-0.42989709973335266,
-0.3160560727119446,
-0.012160971760749817,
-0.16649553179740906,
0.1803804636001587,
0.04939809441566467,
0.22561584413051605,
0.19699996709823608,
-0.2624002993106842,
0.03643025457859039,
-0.21234135329723358,
0.3262479305267334,
0.1140013337135315,
-0.02211891859769821,
-0.18661442399024963,
0.03892461955547333,
-0.2679360508918762,
-0.11434578150510788,
-0.12527506053447723,
-0.09900835156440735,
0.22586514055728912,
-0.09219426661729813,
-0.39237266778945923,
-0.05366700142621994,
-0.06158424913883209,
0.3732462525367737,
-0.0354195274412632,
0.06346370279788971,
-0.09168882668018341,
0.03901888430118561,
-0.2757059931755066,
0.29176416993141174,
0.02596668154001236,
0.1461021602153778,
0.07743450254201889,
-0.15517964959144592,
-0.04560071602463722,
0.0881754532456398,
0.24809607863426208,
-0.035704970359802246,
0.43330883979797363,
0.08866768330335617,
0.06692136824131012,
0.42642515897750854,
0.18095529079437256,
0.10415490716695786,
-0.10602526366710663,
0.07582493871450424,
-0.2426319271326065,
0.08497849106788635,
-0.09507028758525848,
0.23591268062591553,
-0.11516856402158737,
0.25385910272598267,
-0.0044192359782755375,
-0.11711928993463516,
0.2143300324678421,
0.04352673515677452,
-0.5104153156280518,
0.2887329161167145,
0.06548850983381271,
0.16749988496303558,
0.015192807652056217,
-0.0162007138133049,
0.36706671118736267,
-0.1828431785106659,
-0.2723832428455353,
-0.2747078835964203,
0.3082427382469177,
-0.23241297900676727,
0.01411774754524231,
0.03680906072258949,
0.3590261936187744,
0.22868186235427856,
-0.08324838429689407,
-0.7226814031600952,
-0.15639539062976837,
0.5330834984779358,
0.05190671235322952,
-0.5233266949653625,
0.07320153713226318,
0.20853576064109802,
0.11356453597545624,
0.0224633626639843,
-0.0436309352517128,
0.1975240707397461,
0.225666806101799,
0.38958826661109924,
-0.43115168809890747
] |
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.05814061686396599,
0.08776891231536865,
-0.041909780353307724,
0.18866902589797974,
0.21789707243442535,
0.04546966403722763,
-0.024187427014112473,
0.36161738634109497,
0.08156901597976685,
-0.18188218772411346,
-0.050524041056632996,
0.6910573244094849,
-0.1919909417629242,
-0.21391350030899048,
-0.1082301065325737,
0.009492378681898117,
-0.12760460376739502,
0.01145414263010025,
0.11468054354190826,
-0.11108413338661194,
-0.12306920439004898,
0.1993308961391449,
-0.15732449293136597,
-0.0993058979511261,
0.40909552574157715,
0.09582988172769547,
0.1364862024784088,
0.3957488238811493,
-0.002753768116235733,
-0.35564911365509033,
0.13499058783054352,
0.024095507338643074,
0.21715876460075378,
0.5375878810882568,
-0.00011070338950958103,
0.27181315422058105,
0.3134254813194275,
-0.09398924559354782,
-0.20430144667625427,
-0.5840537548065186,
-0.4115146994590759,
-0.30663785338401794,
0.1335054636001587,
-0.21368835866451263,
-0.0360717847943306,
-0.2607661187648773,
0.1242145299911499,
-0.15391717851161957,
0.32883262634277344,
0.37565162777900696,
0.20792195200920105,
0.07985018938779831,
0.3830101191997528,
0.11644228547811508,
-0.06707222014665604,
-0.023134246468544006,
0.0021166671067476273,
0.46498334407806396,
0.04228396341204643,
0.12632496654987335,
0.16122350096702576,
0.14481031894683838,
-0.14896908402442932,
0.11279864609241486,
0.20924469828605652,
-0.029665477573871613,
-0.10750355571508408,
-0.14368773996829987,
0.03752244636416435,
0.1304570585489273,
0.2721567153930664,
-0.09744856506586075,
-0.24030502140522003,
0.0564098060131073,
0.22180739045143127,
-0.10190632194280624,
0.29518163204193115,
0.43008315563201904,
-0.11249363422393799,
0.07615767419338226,
-0.3062990605831146,
-0.34975868463516235,
-0.40346166491508484,
0.47365808486938477,
-0.0218975730240345,
-0.11155757308006287,
-0.20071890950202942,
0.20338758826255798,
0.15959393978118896,
-0.24159301817417145,
0.03689629212021828,
0.09394799917936325,
0.17075546085834503,
0.11694596707820892,
-0.48648011684417725,
0.24697622656822205,
0.07967284321784973,
-0.3753710091114044,
0.07538292557001114,
-0.15014688670635223,
-0.10378061980009079,
-0.08154421299695969,
-0.2829763889312744,
0.27289414405822754,
0.11201491951942444,
0.01860269531607628,
-0.1558188796043396,
-0.0018160236068069935,
0.05823000520467758,
-0.012589661404490471,
-0.1686113476753235,
0.03295820578932762,
-0.3595867156982422,
-0.1540406346321106,
-0.3627374768257141,
-0.38012072443962097,
0.261962354183197,
-0.32074710726737976,
0.062184542417526245,
-0.025036323815584183,
-0.025042561814188957,
0.016877170652151108,
0.02384442836046219,
0.22841304540634155,
-0.054267846047878265,
0.1421985924243927,
0.17162375152111053,
0.4296215772628784,
-0.3466946482658386,
0.17580237984657288,
-0.050975896418094635,
0.07547564804553986,
-0.10979866981506348,
-0.29682227969169617,
0.20440497994422913,
0.08469352126121521,
0.16359762847423553,
-0.02258363738656044,
0.08541080355644226,
-0.20162910223007202,
0.1252441704273224,
0.13397474586963654,
-0.10179407149553299,
0.48088979721069336,
0.32998964190483093,
0.0564986914396286,
0.2672581076622009,
0.038623176515102386,
-0.12501327693462372,
0.22153306007385254,
-0.4679540991783142,
-0.12276120483875275,
-0.2679334580898285,
0.1626543551683426,
-0.19974678754806519,
-0.13173361122608185,
-0.16054999828338623,
-0.14329378306865692,
0.1379329264163971,
0.2394689917564392,
-0.3634823262691498,
-0.22936634719371796,
0.00013400614261627197,
-0.33330103754997253,
0.2488369345664978,
0.039209432899951935,
-0.31334492564201355,
0.16130317747592926,
-0.10561542958021164,
0.1475962996482849,
0.283464640378952,
0.36524033546447754,
-0.20566155016422272,
0.14260223507881165,
-0.02555117756128311,
-0.11357052624225616,
0.359000563621521,
-0.32768285274505615,
-0.11957629024982452,
0.03648481145501137,
-0.13938480615615845,
0.07626944780349731,
-0.07434309273958206,
0.02311672829091549,
-0.18387897312641144,
0.25792086124420166,
0.20406198501586914,
0.27111998200416565,
0.08263735473155975,
0.030418584123253822,
-0.18050065636634827,
-0.20094387233257294,
0.4589858055114746,
0.3523833453655243,
-0.08574272692203522,
0.029466964304447174,
-0.07057154923677444,
-0.07236584275960922,
0.11355163156986237,
-0.09911778569221497,
-0.3065353035926819,
0.205490380525589,
0.01277076080441475,
0.05979057028889656,
0.06962501257658005,
0.12583860754966736,
0.16646194458007812,
0.09673259407281876,
0.23967546224594116,
0.2965691089630127,
-0.21590809524059296,
0.38277244567871094,
-0.38724178075790405,
0.09267253428697586,
-0.03103986755013466,
0.0711299479007721,
0.0656551718711853,
0.0439680740237236,
-0.09347668290138245,
0.19505223631858826,
-0.18202057480812073,
0.21836650371551514,
-0.3807086646556854,
-0.03710125759243965,
-0.884393036365509,
0.05607549846172333,
-0.11706503480672836,
0.11073514819145203,
0.2100992500782013,
0.14025536179542542,
-0.11917854100465775,
-0.24003419280052185,
-0.11652108281850815,
0.2139788269996643,
0.29407867789268494,
-0.0699312686920166,
0.2279682159423828,
0.0420786589384079,
0.058374397456645966,
-0.32013460993766785,
0.2476842701435089,
0.017178427428007126,
0.04546799883246422,
0.09804690629243851,
-0.24006235599517822,
0.3954666256904602,
0.08486476540565491,
0.18532301485538483,
0.14780403673648834,
0.13192641735076904,
0.47584274411201477,
-0.006014712154865265,
-0.027584746479988098,
-0.008976183831691742,
0.45162972807884216,
0.1805780977010727,
-0.34028828144073486,
-0.14204877614974976,
-0.18555931746959686,
-0.0007575005292892456,
0.07750086486339569,
0.1592736393213272,
-0.08404644578695297,
0.30205026268959045,
-0.10745499283075333,
0.06075602024793625,
-0.1180126816034317,
0.029122088104486465,
0.34010228514671326,
0.17099930346012115,
-0.3174934387207031,
0.03752126544713974,
-0.2074112445116043,
-0.0640694722533226,
0.15766453742980957,
0.004249483346939087,
0.002491091610863805,
-0.1562231183052063,
0.1302240639925003,
0.11905726790428162,
-0.228605717420578,
-0.291528582572937,
-0.014925082214176655,
0.4036521315574646,
-0.33745548129081726,
0.06246437877416611,
-0.3534373641014099,
-0.2601836323738098,
-0.05427193641662598,
-0.16310393810272217,
-0.1600027084350586,
-0.20464982092380524,
-0.11035110056400299,
0.15495334565639496,
0.1971682757139206,
0.15693940222263336,
-0.3404225707054138,
-0.06874646246433258,
0.22804467380046844,
-0.21275867521762848,
0.21781912446022034,
-0.3201691508293152,
-0.09057372063398361,
0.09150396287441254,
0.2567335367202759,
0.11535722762346268,
0.21687805652618408,
-0.0711522176861763,
-0.19917024672031403,
0.19511474668979645,
-0.3111149072647095,
-0.06906354427337646,
-0.25292766094207764,
0.16224487125873566,
-0.012773126363754272,
0.28293976187705994,
0.06636859476566315,
-0.26453301310539246,
0.21239298582077026,
0.03525166213512421,
-0.15870535373687744,
0.3022593557834625,
0.05696941912174225,
-0.4054757058620453,
-0.1261681169271469,
-0.6859317421913147,
-0.24029912054538727,
-0.29652416706085205,
0.020734883844852448,
0.2632630467414856,
0.17071104049682617,
0.4518837034702301,
0.30537107586860657,
0.021537743508815765,
0.08881976455450058,
0.06292889267206192,
-0.15816587209701538,
-0.08669263124465942,
0.2277037650346756,
-0.15107224881649017,
-0.40117576718330383,
0.17722290754318237,
0.2070527821779251,
0.5639325976371765,
0.1303522288799286,
-0.4385870695114136,
0.1577421873807907,
-0.10611400008201599,
-0.07551868259906769,
-0.21828728914260864,
0.10153933614492416,
0.06630220264196396,
-0.21097737550735474,
-0.02575300820171833,
0.007954634726047516,
-0.19149267673492432,
-0.030136100947856903,
0.14666852355003357,
0.2630581855773926,
0.24075600504875183,
0.42789769172668457,
-0.26816824078559875,
0.5905353426933289,
0.014262814074754715,
-0.16091904044151306,
0.06947740167379379,
-0.15895797312259674,
0.4026760160923004,
-0.003117777407169342,
-0.5069510340690613,
0.21585234999656677,
0.2842627763748169,
0.017194155603647232,
0.17447684705257416,
0.03403107449412346,
-0.25515618920326233,
-0.1661706268787384,
0.23797017335891724,
-0.38001614809036255,
-0.2908551096916199,
0.1960810124874115,
-0.2611016631126404,
0.07894755899906158,
0.04485420510172844,
-0.059006139636039734,
-0.08908890187740326,
-0.138810396194458,
-0.1887182593345642,
0.4358407258987427,
0.06431860476732254,
0.031501322984695435,
-0.4632994532585144,
0.050568267703056335,
-0.34297293424606323,
0.2074730098247528,
-0.15875370800495148,
0.616038978099823,
-0.12195760011672974,
-0.09990628808736801,
0.11056844145059586,
-0.014026803895831108,
0.38198375701904297,
0.0812930017709732,
0.16612444818019867,
0.33757689595222473,
-0.12394177913665771,
-0.4966866374015808,
-0.04140782728791237,
0.0024591870605945587,
0.447251558303833,
0.4753032624721527,
0.15871277451515198,
0.07489833980798721,
-0.11193162202835083,
-0.18555107712745667,
0.10593181103467941,
-0.09404431283473969,
-0.2817322909832001,
-0.3055528998374939,
-0.31867918372154236,
-0.2693057954311371,
-0.47441738843917847,
-0.17208367586135864,
0.23046906292438507,
-0.09995115548372269,
0.16761067509651184,
-0.1212369054555893,
-0.21667265892028809,
0.14969564974308014,
0.38612157106399536,
0.03988530486822128,
-0.08788341283798218,
0.1504206359386444,
0.2156400978565216,
-0.11630460619926453,
0.1365494430065155,
0.3614479601383209,
0.10973760485649109,
-0.7085859775543213,
-0.04617583751678467,
-0.06683255732059479,
0.1575983315706253,
-0.26194483041763306,
-0.16748711466789246,
-0.1746026575565338,
0.07693827152252197,
-0.13607345521450043,
0.002872176468372345,
0.16608908772468567,
0.20372213423252106,
0.04542778432369232,
-0.20446781814098358,
-0.29293009638786316,
0.263262540102005,
-0.10856543481349945,
0.034232959151268005,
0.19201144576072693,
-0.2135157436132431,
-0.1601370871067047,
0.37818968296051025,
-0.021024130284786224,
0.5590001344680786,
-0.3097168803215027,
0.14125710725784302,
0.2761950194835663,
0.01391545683145523,
0.669948935508728,
-0.11156243830919266,
0.21044355630874634,
-0.3174937665462494,
-0.014190939255058765,
-0.0565616674721241,
-0.20073279738426208,
0.026438329368829727,
0.11239233613014221,
-0.1216493546962738,
0.18026544153690338,
-0.024235785007476807,
-0.2814286947250366,
0.12919828295707703,
0.23119506239891052,
0.502293586730957,
-0.24463233351707458,
-0.7192249894142151,
0.20236870646476746,
-0.21775217354297638,
0.05226806178689003,
0.05177268385887146,
-0.13526517152786255,
-0.2248554676771164,
0.04897487908601761,
-0.3124028444290161,
0.3894597589969635,
0.09013572335243225,
0.34956449270248413,
0.3082274794578552,
-0.04682816192507744,
0.05550874397158623,
0.23091518878936768,
0.1750372052192688,
0.22789548337459564,
-0.17041015625,
0.2341098040342331,
-0.008797653019428253,
-0.2591128647327423,
0.24826042354106903,
0.10018905997276306,
0.1886749565601349,
-0.16275151073932648,
-0.2001493275165558,
0.13314661383628845,
0.08533231914043427,
-0.5239744186401367,
0.13864576816558838,
0.17833298444747925,
-0.07202599942684174,
0.09921799600124359,
-0.28296223282814026,
0.10971931368112564,
0.10711781680583954,
0.20754705369472504,
0.11732308566570282,
0.367085337638855,
0.07368015497922897,
0.34078431129455566,
0.00795578584074974,
-0.469026654958725,
0.1429867446422577,
0.2529996335506439,
0.1792370080947876,
0.009055092930793762,
0.301525741815567,
0.1425314098596573,
0.04716578871011734,
-0.10458734631538391,
-0.1746538281440735,
-0.46191656589508057,
0.010912209749221802,
-0.12246864289045334,
0.31275734305381775,
0.22294367849826813,
0.15213680267333984,
-0.18185001611709595,
0.04104064777493477,
-0.22363987565040588,
0.09975950419902802,
-0.8598700165748596,
-0.1354110985994339,
-0.054828301072120667,
-0.4878779351711273,
-0.0006451494991779327,
0.21669957041740417,
-0.04699648544192314,
-0.08471482992172241,
-0.19134990870952606,
-0.24978750944137573,
0.01976636052131653,
-0.2032194882631302,
-0.10998797416687012,
0.2819562256336212,
0.06199805811047554,
0.1283499151468277,
-0.22952987253665924,
0.12995892763137817,
-0.4033862352371216,
-0.10847596824169159,
-0.19876623153686523,
-0.0028027333319187164,
0.1285455822944641,
0.0529874786734581,
-0.25737902522087097,
-0.20843642950057983,
-0.24599534273147583,
-0.32995349168777466,
0.10250105708837509,
-0.04098837822675705,
-0.020156143233180046,
-0.15408813953399658,
0.05817659571766853,
-0.5069235563278198,
0.01658894494175911,
0.1186361312866211,
0.35865911841392517,
-0.11647403240203857,
0.24674588441848755,
0.2674185633659363,
0.2644314765930176,
-0.17530609667301178,
-0.09090729802846909,
-0.5406354665756226,
-0.06691133230924606,
-0.2757549285888672,
0.16379863023757935,
0.3702978193759918,
-0.10896942019462585,
0.13248363137245178,
0.08164168894290924,
0.05350177735090256,
0.5262336730957031,
-0.17825694382190704,
-0.046150416135787964,
0.12992721796035767,
0.14884008467197418,
-0.28394678235054016,
-0.13353019952774048,
0.3298015594482422,
0.30998116731643677,
-0.21431103348731995,
0.20181071758270264,
-0.022295983508229256,
0.022688783705234528,
0.1296837329864502,
0.030322548002004623,
0.5294108390808105,
-0.24933062493801117,
0.08841229975223541,
-0.1519784778356552,
-0.24768202006816864,
-0.09166641533374786,
-0.21199214458465576,
0.2499307245016098,
0.24116602540016174,
0.372855007648468,
-0.0014117881655693054,
0.10809306800365448,
0.19088101387023926,
-0.12381578981876373,
-0.013418741524219513,
-0.3544931411743164,
-0.4646899104118347,
0.16359658539295197,
0.02332310378551483,
0.3950410783290863,
0.007964380085468292,
0.09288636595010757,
0.05199533328413963,
-0.2455948293209076,
-0.06572752445936203,
0.2370261698961258,
0.1193930059671402,
-0.0006321212276816368,
-0.20608846843242645,
0.04167873412370682,
-0.03172677755355835,
-0.18166455626487732,
0.03758334368467331,
-0.11872731149196625,
0.08652301132678986,
0.34904390573501587,
-0.3035862445831299,
-0.7911363840103149,
0.22859454154968262,
0.06626013666391373,
-0.1032068058848381,
0.07204517722129822,
0.39187031984329224,
0.023688174784183502,
0.0435214564204216,
0.3245852291584015,
0.10883165895938873,
0.5102602243423462,
0.4114190340042114,
-0.049233999103307724,
-0.04577339068055153,
0.024272603914141655,
0.11899851262569427,
-0.0850600004196167,
0.32234373688697815,
0.033200811594724655,
0.3221088945865631,
0.27460601925849915,
0.11984920501708984,
0.05741509050130844,
0.2889932692050934,
0.1625368297100067,
0.07124641537666321,
0.022603973746299744,
0.06667323410511017,
0.10231443494558334,
0.23945042490959167,
-0.25687074661254883,
0.07248644530773163,
-0.3361438512802124,
-0.11034898459911346,
0.2590256929397583,
0.20748737454414368,
0.11409569531679153,
0.033642590045928955,
0.058249928057193756,
-0.13191504776477814,
0.7058610320091248,
0.5107814073562622,
0.3717736601829529,
-0.14329251646995544,
-0.06041426956653595,
-0.5617272853851318,
0.1689252108335495,
-0.2268105447292328,
-0.20932666957378387,
0.10783424228429794,
0.12824182212352753,
0.4357295632362366,
0.19244568049907684,
-0.027367427945137024,
-0.17254699766635895,
-0.4005467891693115,
-0.023743949830532074,
-0.3428231179714203,
-0.21782682836055756,
0.007896959781646729,
-0.11197419464588165,
-0.1383010447025299,
-0.018038515001535416,
0.08996349573135376,
-0.18239188194274902,
-0.001959562301635742,
0.02701917476952076,
0.1578265130519867,
-0.0332665778696537,
0.0914945900440216,
0.4042004942893982,
0.015184437856078148,
0.4290499687194824,
-0.027055326849222183,
-0.2645827829837799,
-0.45099711418151855,
-0.19910074770450592,
-0.3306640684604645,
0.3517007827758789,
0.2352205365896225,
0.17624492943286896,
-0.16947942972183228,
0.18722228705883026,
-0.16852836310863495,
0.4838171899318695,
-0.05659077316522598,
-0.5422760844230652,
0.1255190670490265,
0.07394187897443771,
0.09575612097978592,
0.14441122114658356,
-0.01064617931842804,
0.05353425070643425,
0.004479754716157913,
0.5422226786613464,
-0.24582864344120026,
-0.13782188296318054,
0.2703121304512024,
-0.2595650255680084,
-0.35438844561576843,
0.2645856738090515,
-0.13422971963882446,
-0.3655937910079956,
0.3093406856060028,
-0.537162184715271,
0.1654874086380005,
0.34196949005126953,
-0.10925137251615524,
-0.17104505002498627,
-0.050433117896318436,
0.10095036029815674,
-0.20602907240390778,
-0.08584986627101898,
0.5699597597122192,
-0.11934281140565872,
-0.23340550065040588,
-0.04696182906627655,
0.009048476815223694
] |
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 ( [email protected] 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 ( [email protected] 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.05814061686396599,
0.08776891231536865,
-0.041909780353307724,
0.18866902589797974,
0.21789707243442535,
0.04546966403722763,
-0.024187427014112473,
0.36161738634109497,
0.08156901597976685,
-0.18188218772411346,
-0.050524041056632996,
0.6910573244094849,
-0.1919909417629242,
-0.21391350030899048,
-0.1082301065325737,
0.009492378681898117,
-0.12760460376739502,
0.01145414263010025,
0.11468054354190826,
-0.11108413338661194,
-0.12306920439004898,
0.1993308961391449,
-0.15732449293136597,
-0.0993058979511261,
0.40909552574157715,
0.09582988172769547,
0.1364862024784088,
0.3957488238811493,
-0.002753768116235733,
-0.35564911365509033,
0.13499058783054352,
0.024095507338643074,
0.21715876460075378,
0.5375878810882568,
-0.00011070338950958103,
0.27181315422058105,
0.3134254813194275,
-0.09398924559354782,
-0.20430144667625427,
-0.5840537548065186,
-0.4115146994590759,
-0.30663785338401794,
0.1335054636001587,
-0.21368835866451263,
-0.0360717847943306,
-0.2607661187648773,
0.1242145299911499,
-0.15391717851161957,
0.32883262634277344,
0.37565162777900696,
0.20792195200920105,
0.07985018938779831,
0.3830101191997528,
0.11644228547811508,
-0.06707222014665604,
-0.023134246468544006,
0.0021166671067476273,
0.46498334407806396,
0.04228396341204643,
0.12632496654987335,
0.16122350096702576,
0.14481031894683838,
-0.14896908402442932,
0.11279864609241486,
0.20924469828605652,
-0.029665477573871613,
-0.10750355571508408,
-0.14368773996829987,
0.03752244636416435,
0.1304570585489273,
0.2721567153930664,
-0.09744856506586075,
-0.24030502140522003,
0.0564098060131073,
0.22180739045143127,
-0.10190632194280624,
0.29518163204193115,
0.43008315563201904,
-0.11249363422393799,
0.07615767419338226,
-0.3062990605831146,
-0.34975868463516235,
-0.40346166491508484,
0.47365808486938477,
-0.0218975730240345,
-0.11155757308006287,
-0.20071890950202942,
0.20338758826255798,
0.15959393978118896,
-0.24159301817417145,
0.03689629212021828,
0.09394799917936325,
0.17075546085834503,
0.11694596707820892,
-0.48648011684417725,
0.24697622656822205,
0.07967284321784973,
-0.3753710091114044,
0.07538292557001114,
-0.15014688670635223,
-0.10378061980009079,
-0.08154421299695969,
-0.2829763889312744,
0.27289414405822754,
0.11201491951942444,
0.01860269531607628,
-0.1558188796043396,
-0.0018160236068069935,
0.05823000520467758,
-0.012589661404490471,
-0.1686113476753235,
0.03295820578932762,
-0.3595867156982422,
-0.1540406346321106,
-0.3627374768257141,
-0.38012072443962097,
0.261962354183197,
-0.32074710726737976,
0.062184542417526245,
-0.025036323815584183,
-0.025042561814188957,
0.016877170652151108,
0.02384442836046219,
0.22841304540634155,
-0.054267846047878265,
0.1421985924243927,
0.17162375152111053,
0.4296215772628784,
-0.3466946482658386,
0.17580237984657288,
-0.050975896418094635,
0.07547564804553986,
-0.10979866981506348,
-0.29682227969169617,
0.20440497994422913,
0.08469352126121521,
0.16359762847423553,
-0.02258363738656044,
0.08541080355644226,
-0.20162910223007202,
0.1252441704273224,
0.13397474586963654,
-0.10179407149553299,
0.48088979721069336,
0.32998964190483093,
0.0564986914396286,
0.2672581076622009,
0.038623176515102386,
-0.12501327693462372,
0.22153306007385254,
-0.4679540991783142,
-0.12276120483875275,
-0.2679334580898285,
0.1626543551683426,
-0.19974678754806519,
-0.13173361122608185,
-0.16054999828338623,
-0.14329378306865692,
0.1379329264163971,
0.2394689917564392,
-0.3634823262691498,
-0.22936634719371796,
0.00013400614261627197,
-0.33330103754997253,
0.2488369345664978,
0.039209432899951935,
-0.31334492564201355,
0.16130317747592926,
-0.10561542958021164,
0.1475962996482849,
0.283464640378952,
0.36524033546447754,
-0.20566155016422272,
0.14260223507881165,
-0.02555117756128311,
-0.11357052624225616,
0.359000563621521,
-0.32768285274505615,
-0.11957629024982452,
0.03648481145501137,
-0.13938480615615845,
0.07626944780349731,
-0.07434309273958206,
0.02311672829091549,
-0.18387897312641144,
0.25792086124420166,
0.20406198501586914,
0.27111998200416565,
0.08263735473155975,
0.030418584123253822,
-0.18050065636634827,
-0.20094387233257294,
0.4589858055114746,
0.3523833453655243,
-0.08574272692203522,
0.029466964304447174,
-0.07057154923677444,
-0.07236584275960922,
0.11355163156986237,
-0.09911778569221497,
-0.3065353035926819,
0.205490380525589,
0.01277076080441475,
0.05979057028889656,
0.06962501257658005,
0.12583860754966736,
0.16646194458007812,
0.09673259407281876,
0.23967546224594116,
0.2965691089630127,
-0.21590809524059296,
0.38277244567871094,
-0.38724178075790405,
0.09267253428697586,
-0.03103986755013466,
0.0711299479007721,
0.0656551718711853,
0.0439680740237236,
-0.09347668290138245,
0.19505223631858826,
-0.18202057480812073,
0.21836650371551514,
-0.3807086646556854,
-0.03710125759243965,
-0.884393036365509,
0.05607549846172333,
-0.11706503480672836,
0.11073514819145203,
0.2100992500782013,
0.14025536179542542,
-0.11917854100465775,
-0.24003419280052185,
-0.11652108281850815,
0.2139788269996643,
0.29407867789268494,
-0.0699312686920166,
0.2279682159423828,
0.0420786589384079,
0.058374397456645966,
-0.32013460993766785,
0.2476842701435089,
0.017178427428007126,
0.04546799883246422,
0.09804690629243851,
-0.24006235599517822,
0.3954666256904602,
0.08486476540565491,
0.18532301485538483,
0.14780403673648834,
0.13192641735076904,
0.47584274411201477,
-0.006014712154865265,
-0.027584746479988098,
-0.008976183831691742,
0.45162972807884216,
0.1805780977010727,
-0.34028828144073486,
-0.14204877614974976,
-0.18555931746959686,
-0.0007575005292892456,
0.07750086486339569,
0.1592736393213272,
-0.08404644578695297,
0.30205026268959045,
-0.10745499283075333,
0.06075602024793625,
-0.1180126816034317,
0.029122088104486465,
0.34010228514671326,
0.17099930346012115,
-0.3174934387207031,
0.03752126544713974,
-0.2074112445116043,
-0.0640694722533226,
0.15766453742980957,
0.004249483346939087,
0.002491091610863805,
-0.1562231183052063,
0.1302240639925003,
0.11905726790428162,
-0.228605717420578,
-0.291528582572937,
-0.014925082214176655,
0.4036521315574646,
-0.33745548129081726,
0.06246437877416611,
-0.3534373641014099,
-0.2601836323738098,
-0.05427193641662598,
-0.16310393810272217,
-0.1600027084350586,
-0.20464982092380524,
-0.11035110056400299,
0.15495334565639496,
0.1971682757139206,
0.15693940222263336,
-0.3404225707054138,
-0.06874646246433258,
0.22804467380046844,
-0.21275867521762848,
0.21781912446022034,
-0.3201691508293152,
-0.09057372063398361,
0.09150396287441254,
0.2567335367202759,
0.11535722762346268,
0.21687805652618408,
-0.0711522176861763,
-0.19917024672031403,
0.19511474668979645,
-0.3111149072647095,
-0.06906354427337646,
-0.25292766094207764,
0.16224487125873566,
-0.012773126363754272,
0.28293976187705994,
0.06636859476566315,
-0.26453301310539246,
0.21239298582077026,
0.03525166213512421,
-0.15870535373687744,
0.3022593557834625,
0.05696941912174225,
-0.4054757058620453,
-0.1261681169271469,
-0.6859317421913147,
-0.24029912054538727,
-0.29652416706085205,
0.020734883844852448,
0.2632630467414856,
0.17071104049682617,
0.4518837034702301,
0.30537107586860657,
0.021537743508815765,
0.08881976455450058,
0.06292889267206192,
-0.15816587209701538,
-0.08669263124465942,
0.2277037650346756,
-0.15107224881649017,
-0.40117576718330383,
0.17722290754318237,
0.2070527821779251,
0.5639325976371765,
0.1303522288799286,
-0.4385870695114136,
0.1577421873807907,
-0.10611400008201599,
-0.07551868259906769,
-0.21828728914260864,
0.10153933614492416,
0.06630220264196396,
-0.21097737550735474,
-0.02575300820171833,
0.007954634726047516,
-0.19149267673492432,
-0.030136100947856903,
0.14666852355003357,
0.2630581855773926,
0.24075600504875183,
0.42789769172668457,
-0.26816824078559875,
0.5905353426933289,
0.014262814074754715,
-0.16091904044151306,
0.06947740167379379,
-0.15895797312259674,
0.4026760160923004,
-0.003117777407169342,
-0.5069510340690613,
0.21585234999656677,
0.2842627763748169,
0.017194155603647232,
0.17447684705257416,
0.03403107449412346,
-0.25515618920326233,
-0.1661706268787384,
0.23797017335891724,
-0.38001614809036255,
-0.2908551096916199,
0.1960810124874115,
-0.2611016631126404,
0.07894755899906158,
0.04485420510172844,
-0.059006139636039734,
-0.08908890187740326,
-0.138810396194458,
-0.1887182593345642,
0.4358407258987427,
0.06431860476732254,
0.031501322984695435,
-0.4632994532585144,
0.050568267703056335,
-0.34297293424606323,
0.2074730098247528,
-0.15875370800495148,
0.616038978099823,
-0.12195760011672974,
-0.09990628808736801,
0.11056844145059586,
-0.014026803895831108,
0.38198375701904297,
0.0812930017709732,
0.16612444818019867,
0.33757689595222473,
-0.12394177913665771,
-0.4966866374015808,
-0.04140782728791237,
0.0024591870605945587,
0.447251558303833,
0.4753032624721527,
0.15871277451515198,
0.07489833980798721,
-0.11193162202835083,
-0.18555107712745667,
0.10593181103467941,
-0.09404431283473969,
-0.2817322909832001,
-0.3055528998374939,
-0.31867918372154236,
-0.2693057954311371,
-0.47441738843917847,
-0.17208367586135864,
0.23046906292438507,
-0.09995115548372269,
0.16761067509651184,
-0.1212369054555893,
-0.21667265892028809,
0.14969564974308014,
0.38612157106399536,
0.03988530486822128,
-0.08788341283798218,
0.1504206359386444,
0.2156400978565216,
-0.11630460619926453,
0.1365494430065155,
0.3614479601383209,
0.10973760485649109,
-0.7085859775543213,
-0.04617583751678467,
-0.06683255732059479,
0.1575983315706253,
-0.26194483041763306,
-0.16748711466789246,
-0.1746026575565338,
0.07693827152252197,
-0.13607345521450043,
0.002872176468372345,
0.16608908772468567,
0.20372213423252106,
0.04542778432369232,
-0.20446781814098358,
-0.29293009638786316,
0.263262540102005,
-0.10856543481349945,
0.034232959151268005,
0.19201144576072693,
-0.2135157436132431,
-0.1601370871067047,
0.37818968296051025,
-0.021024130284786224,
0.5590001344680786,
-0.3097168803215027,
0.14125710725784302,
0.2761950194835663,
0.01391545683145523,
0.669948935508728,
-0.11156243830919266,
0.21044355630874634,
-0.3174937665462494,
-0.014190939255058765,
-0.0565616674721241,
-0.20073279738426208,
0.026438329368829727,
0.11239233613014221,
-0.1216493546962738,
0.18026544153690338,
-0.024235785007476807,
-0.2814286947250366,
0.12919828295707703,
0.23119506239891052,
0.502293586730957,
-0.24463233351707458,
-0.7192249894142151,
0.20236870646476746,
-0.21775217354297638,
0.05226806178689003,
0.05177268385887146,
-0.13526517152786255,
-0.2248554676771164,
0.04897487908601761,
-0.3124028444290161,
0.3894597589969635,
0.09013572335243225,
0.34956449270248413,
0.3082274794578552,
-0.04682816192507744,
0.05550874397158623,
0.23091518878936768,
0.1750372052192688,
0.22789548337459564,
-0.17041015625,
0.2341098040342331,
-0.008797653019428253,
-0.2591128647327423,
0.24826042354106903,
0.10018905997276306,
0.1886749565601349,
-0.16275151073932648,
-0.2001493275165558,
0.13314661383628845,
0.08533231914043427,
-0.5239744186401367,
0.13864576816558838,
0.17833298444747925,
-0.07202599942684174,
0.09921799600124359,
-0.28296223282814026,
0.10971931368112564,
0.10711781680583954,
0.20754705369472504,
0.11732308566570282,
0.367085337638855,
0.07368015497922897,
0.34078431129455566,
0.00795578584074974,
-0.469026654958725,
0.1429867446422577,
0.2529996335506439,
0.1792370080947876,
0.009055092930793762,
0.301525741815567,
0.1425314098596573,
0.04716578871011734,
-0.10458734631538391,
-0.1746538281440735,
-0.46191656589508057,
0.010912209749221802,
-0.12246864289045334,
0.31275734305381775,
0.22294367849826813,
0.15213680267333984,
-0.18185001611709595,
0.04104064777493477,
-0.22363987565040588,
0.09975950419902802,
-0.8598700165748596,
-0.1354110985994339,
-0.054828301072120667,
-0.4878779351711273,
-0.0006451494991779327,
0.21669957041740417,
-0.04699648544192314,
-0.08471482992172241,
-0.19134990870952606,
-0.24978750944137573,
0.01976636052131653,
-0.2032194882631302,
-0.10998797416687012,
0.2819562256336212,
0.06199805811047554,
0.1283499151468277,
-0.22952987253665924,
0.12995892763137817,
-0.4033862352371216,
-0.10847596824169159,
-0.19876623153686523,
-0.0028027333319187164,
0.1285455822944641,
0.0529874786734581,
-0.25737902522087097,
-0.20843642950057983,
-0.24599534273147583,
-0.32995349168777466,
0.10250105708837509,
-0.04098837822675705,
-0.020156143233180046,
-0.15408813953399658,
0.05817659571766853,
-0.5069235563278198,
0.01658894494175911,
0.1186361312866211,
0.35865911841392517,
-0.11647403240203857,
0.24674588441848755,
0.2674185633659363,
0.2644314765930176,
-0.17530609667301178,
-0.09090729802846909,
-0.5406354665756226,
-0.06691133230924606,
-0.2757549285888672,
0.16379863023757935,
0.3702978193759918,
-0.10896942019462585,
0.13248363137245178,
0.08164168894290924,
0.05350177735090256,
0.5262336730957031,
-0.17825694382190704,
-0.046150416135787964,
0.12992721796035767,
0.14884008467197418,
-0.28394678235054016,
-0.13353019952774048,
0.3298015594482422,
0.30998116731643677,
-0.21431103348731995,
0.20181071758270264,
-0.022295983508229256,
0.022688783705234528,
0.1296837329864502,
0.030322548002004623,
0.5294108390808105,
-0.24933062493801117,
0.08841229975223541,
-0.1519784778356552,
-0.24768202006816864,
-0.09166641533374786,
-0.21199214458465576,
0.2499307245016098,
0.24116602540016174,
0.372855007648468,
-0.0014117881655693054,
0.10809306800365448,
0.19088101387023926,
-0.12381578981876373,
-0.013418741524219513,
-0.3544931411743164,
-0.4646899104118347,
0.16359658539295197,
0.02332310378551483,
0.3950410783290863,
0.007964380085468292,
0.09288636595010757,
0.05199533328413963,
-0.2455948293209076,
-0.06572752445936203,
0.2370261698961258,
0.1193930059671402,
-0.0006321212276816368,
-0.20608846843242645,
0.04167873412370682,
-0.03172677755355835,
-0.18166455626487732,
0.03758334368467331,
-0.11872731149196625,
0.08652301132678986,
0.34904390573501587,
-0.3035862445831299,
-0.7911363840103149,
0.22859454154968262,
0.06626013666391373,
-0.1032068058848381,
0.07204517722129822,
0.39187031984329224,
0.023688174784183502,
0.0435214564204216,
0.3245852291584015,
0.10883165895938873,
0.5102602243423462,
0.4114190340042114,
-0.049233999103307724,
-0.04577339068055153,
0.024272603914141655,
0.11899851262569427,
-0.0850600004196167,
0.32234373688697815,
0.033200811594724655,
0.3221088945865631,
0.27460601925849915,
0.11984920501708984,
0.05741509050130844,
0.2889932692050934,
0.1625368297100067,
0.07124641537666321,
0.022603973746299744,
0.06667323410511017,
0.10231443494558334,
0.23945042490959167,
-0.25687074661254883,
0.07248644530773163,
-0.3361438512802124,
-0.11034898459911346,
0.2590256929397583,
0.20748737454414368,
0.11409569531679153,
0.033642590045928955,
0.058249928057193756,
-0.13191504776477814,
0.7058610320091248,
0.5107814073562622,
0.3717736601829529,
-0.14329251646995544,
-0.06041426956653595,
-0.5617272853851318,
0.1689252108335495,
-0.2268105447292328,
-0.20932666957378387,
0.10783424228429794,
0.12824182212352753,
0.4357295632362366,
0.19244568049907684,
-0.027367427945137024,
-0.17254699766635895,
-0.4005467891693115,
-0.023743949830532074,
-0.3428231179714203,
-0.21782682836055756,
0.007896959781646729,
-0.11197419464588165,
-0.1383010447025299,
-0.018038515001535416,
0.08996349573135376,
-0.18239188194274902,
-0.001959562301635742,
0.02701917476952076,
0.1578265130519867,
-0.0332665778696537,
0.0914945900440216,
0.4042004942893982,
0.015184437856078148,
0.4290499687194824,
-0.027055326849222183,
-0.2645827829837799,
-0.45099711418151855,
-0.19910074770450592,
-0.3306640684604645,
0.3517007827758789,
0.2352205365896225,
0.17624492943286896,
-0.16947942972183228,
0.18722228705883026,
-0.16852836310863495,
0.4838171899318695,
-0.05659077316522598,
-0.5422760844230652,
0.1255190670490265,
0.07394187897443771,
0.09575612097978592,
0.14441122114658356,
-0.01064617931842804,
0.05353425070643425,
0.004479754716157913,
0.5422226786613464,
-0.24582864344120026,
-0.13782188296318054,
0.2703121304512024,
-0.2595650255680084,
-0.35438844561576843,
0.2645856738090515,
-0.13422971963882446,
-0.3655937910079956,
0.3093406856060028,
-0.537162184715271,
0.1654874086380005,
0.34196949005126953,
-0.10925137251615524,
-0.17104505002498627,
-0.050433117896318436,
0.10095036029815674,
-0.20602907240390778,
-0.08584986627101898,
0.5699597597122192,
-0.11934281140565872,
-0.23340550065040588,
-0.04696182906627655,
0.009048476815223694
] |
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.05814061686396599,
0.08776891231536865,
-0.041909780353307724,
0.18866902589797974,
0.21789707243442535,
0.04546966403722763,
-0.024187427014112473,
0.36161738634109497,
0.08156901597976685,
-0.18188218772411346,
-0.050524041056632996,
0.6910573244094849,
-0.1919909417629242,
-0.21391350030899048,
-0.1082301065325737,
0.009492378681898117,
-0.12760460376739502,
0.01145414263010025,
0.11468054354190826,
-0.11108413338661194,
-0.12306920439004898,
0.1993308961391449,
-0.15732449293136597,
-0.0993058979511261,
0.40909552574157715,
0.09582988172769547,
0.1364862024784088,
0.3957488238811493,
-0.002753768116235733,
-0.35564911365509033,
0.13499058783054352,
0.024095507338643074,
0.21715876460075378,
0.5375878810882568,
-0.00011070338950958103,
0.27181315422058105,
0.3134254813194275,
-0.09398924559354782,
-0.20430144667625427,
-0.5840537548065186,
-0.4115146994590759,
-0.30663785338401794,
0.1335054636001587,
-0.21368835866451263,
-0.0360717847943306,
-0.2607661187648773,
0.1242145299911499,
-0.15391717851161957,
0.32883262634277344,
0.37565162777900696,
0.20792195200920105,
0.07985018938779831,
0.3830101191997528,
0.11644228547811508,
-0.06707222014665604,
-0.023134246468544006,
0.0021166671067476273,
0.46498334407806396,
0.04228396341204643,
0.12632496654987335,
0.16122350096702576,
0.14481031894683838,
-0.14896908402442932,
0.11279864609241486,
0.20924469828605652,
-0.029665477573871613,
-0.10750355571508408,
-0.14368773996829987,
0.03752244636416435,
0.1304570585489273,
0.2721567153930664,
-0.09744856506586075,
-0.24030502140522003,
0.0564098060131073,
0.22180739045143127,
-0.10190632194280624,
0.29518163204193115,
0.43008315563201904,
-0.11249363422393799,
0.07615767419338226,
-0.3062990605831146,
-0.34975868463516235,
-0.40346166491508484,
0.47365808486938477,
-0.0218975730240345,
-0.11155757308006287,
-0.20071890950202942,
0.20338758826255798,
0.15959393978118896,
-0.24159301817417145,
0.03689629212021828,
0.09394799917936325,
0.17075546085834503,
0.11694596707820892,
-0.48648011684417725,
0.24697622656822205,
0.07967284321784973,
-0.3753710091114044,
0.07538292557001114,
-0.15014688670635223,
-0.10378061980009079,
-0.08154421299695969,
-0.2829763889312744,
0.27289414405822754,
0.11201491951942444,
0.01860269531607628,
-0.1558188796043396,
-0.0018160236068069935,
0.05823000520467758,
-0.012589661404490471,
-0.1686113476753235,
0.03295820578932762,
-0.3595867156982422,
-0.1540406346321106,
-0.3627374768257141,
-0.38012072443962097,
0.261962354183197,
-0.32074710726737976,
0.062184542417526245,
-0.025036323815584183,
-0.025042561814188957,
0.016877170652151108,
0.02384442836046219,
0.22841304540634155,
-0.054267846047878265,
0.1421985924243927,
0.17162375152111053,
0.4296215772628784,
-0.3466946482658386,
0.17580237984657288,
-0.050975896418094635,
0.07547564804553986,
-0.10979866981506348,
-0.29682227969169617,
0.20440497994422913,
0.08469352126121521,
0.16359762847423553,
-0.02258363738656044,
0.08541080355644226,
-0.20162910223007202,
0.1252441704273224,
0.13397474586963654,
-0.10179407149553299,
0.48088979721069336,
0.32998964190483093,
0.0564986914396286,
0.2672581076622009,
0.038623176515102386,
-0.12501327693462372,
0.22153306007385254,
-0.4679540991783142,
-0.12276120483875275,
-0.2679334580898285,
0.1626543551683426,
-0.19974678754806519,
-0.13173361122608185,
-0.16054999828338623,
-0.14329378306865692,
0.1379329264163971,
0.2394689917564392,
-0.3634823262691498,
-0.22936634719371796,
0.00013400614261627197,
-0.33330103754997253,
0.2488369345664978,
0.039209432899951935,
-0.31334492564201355,
0.16130317747592926,
-0.10561542958021164,
0.1475962996482849,
0.283464640378952,
0.36524033546447754,
-0.20566155016422272,
0.14260223507881165,
-0.02555117756128311,
-0.11357052624225616,
0.359000563621521,
-0.32768285274505615,
-0.11957629024982452,
0.03648481145501137,
-0.13938480615615845,
0.07626944780349731,
-0.07434309273958206,
0.02311672829091549,
-0.18387897312641144,
0.25792086124420166,
0.20406198501586914,
0.27111998200416565,
0.08263735473155975,
0.030418584123253822,
-0.18050065636634827,
-0.20094387233257294,
0.4589858055114746,
0.3523833453655243,
-0.08574272692203522,
0.029466964304447174,
-0.07057154923677444,
-0.07236584275960922,
0.11355163156986237,
-0.09911778569221497,
-0.3065353035926819,
0.205490380525589,
0.01277076080441475,
0.05979057028889656,
0.06962501257658005,
0.12583860754966736,
0.16646194458007812,
0.09673259407281876,
0.23967546224594116,
0.2965691089630127,
-0.21590809524059296,
0.38277244567871094,
-0.38724178075790405,
0.09267253428697586,
-0.03103986755013466,
0.0711299479007721,
0.0656551718711853,
0.0439680740237236,
-0.09347668290138245,
0.19505223631858826,
-0.18202057480812073,
0.21836650371551514,
-0.3807086646556854,
-0.03710125759243965,
-0.884393036365509,
0.05607549846172333,
-0.11706503480672836,
0.11073514819145203,
0.2100992500782013,
0.14025536179542542,
-0.11917854100465775,
-0.24003419280052185,
-0.11652108281850815,
0.2139788269996643,
0.29407867789268494,
-0.0699312686920166,
0.2279682159423828,
0.0420786589384079,
0.058374397456645966,
-0.32013460993766785,
0.2476842701435089,
0.017178427428007126,
0.04546799883246422,
0.09804690629243851,
-0.24006235599517822,
0.3954666256904602,
0.08486476540565491,
0.18532301485538483,
0.14780403673648834,
0.13192641735076904,
0.47584274411201477,
-0.006014712154865265,
-0.027584746479988098,
-0.008976183831691742,
0.45162972807884216,
0.1805780977010727,
-0.34028828144073486,
-0.14204877614974976,
-0.18555931746959686,
-0.0007575005292892456,
0.07750086486339569,
0.1592736393213272,
-0.08404644578695297,
0.30205026268959045,
-0.10745499283075333,
0.06075602024793625,
-0.1180126816034317,
0.029122088104486465,
0.34010228514671326,
0.17099930346012115,
-0.3174934387207031,
0.03752126544713974,
-0.2074112445116043,
-0.0640694722533226,
0.15766453742980957,
0.004249483346939087,
0.002491091610863805,
-0.1562231183052063,
0.1302240639925003,
0.11905726790428162,
-0.228605717420578,
-0.291528582572937,
-0.014925082214176655,
0.4036521315574646,
-0.33745548129081726,
0.06246437877416611,
-0.3534373641014099,
-0.2601836323738098,
-0.05427193641662598,
-0.16310393810272217,
-0.1600027084350586,
-0.20464982092380524,
-0.11035110056400299,
0.15495334565639496,
0.1971682757139206,
0.15693940222263336,
-0.3404225707054138,
-0.06874646246433258,
0.22804467380046844,
-0.21275867521762848,
0.21781912446022034,
-0.3201691508293152,
-0.09057372063398361,
0.09150396287441254,
0.2567335367202759,
0.11535722762346268,
0.21687805652618408,
-0.0711522176861763,
-0.19917024672031403,
0.19511474668979645,
-0.3111149072647095,
-0.06906354427337646,
-0.25292766094207764,
0.16224487125873566,
-0.012773126363754272,
0.28293976187705994,
0.06636859476566315,
-0.26453301310539246,
0.21239298582077026,
0.03525166213512421,
-0.15870535373687744,
0.3022593557834625,
0.05696941912174225,
-0.4054757058620453,
-0.1261681169271469,
-0.6859317421913147,
-0.24029912054538727,
-0.29652416706085205,
0.020734883844852448,
0.2632630467414856,
0.17071104049682617,
0.4518837034702301,
0.30537107586860657,
0.021537743508815765,
0.08881976455450058,
0.06292889267206192,
-0.15816587209701538,
-0.08669263124465942,
0.2277037650346756,
-0.15107224881649017,
-0.40117576718330383,
0.17722290754318237,
0.2070527821779251,
0.5639325976371765,
0.1303522288799286,
-0.4385870695114136,
0.1577421873807907,
-0.10611400008201599,
-0.07551868259906769,
-0.21828728914260864,
0.10153933614492416,
0.06630220264196396,
-0.21097737550735474,
-0.02575300820171833,
0.007954634726047516,
-0.19149267673492432,
-0.030136100947856903,
0.14666852355003357,
0.2630581855773926,
0.24075600504875183,
0.42789769172668457,
-0.26816824078559875,
0.5905353426933289,
0.014262814074754715,
-0.16091904044151306,
0.06947740167379379,
-0.15895797312259674,
0.4026760160923004,
-0.003117777407169342,
-0.5069510340690613,
0.21585234999656677,
0.2842627763748169,
0.017194155603647232,
0.17447684705257416,
0.03403107449412346,
-0.25515618920326233,
-0.1661706268787384,
0.23797017335891724,
-0.38001614809036255,
-0.2908551096916199,
0.1960810124874115,
-0.2611016631126404,
0.07894755899906158,
0.04485420510172844,
-0.059006139636039734,
-0.08908890187740326,
-0.138810396194458,
-0.1887182593345642,
0.4358407258987427,
0.06431860476732254,
0.031501322984695435,
-0.4632994532585144,
0.050568267703056335,
-0.34297293424606323,
0.2074730098247528,
-0.15875370800495148,
0.616038978099823,
-0.12195760011672974,
-0.09990628808736801,
0.11056844145059586,
-0.014026803895831108,
0.38198375701904297,
0.0812930017709732,
0.16612444818019867,
0.33757689595222473,
-0.12394177913665771,
-0.4966866374015808,
-0.04140782728791237,
0.0024591870605945587,
0.447251558303833,
0.4753032624721527,
0.15871277451515198,
0.07489833980798721,
-0.11193162202835083,
-0.18555107712745667,
0.10593181103467941,
-0.09404431283473969,
-0.2817322909832001,
-0.3055528998374939,
-0.31867918372154236,
-0.2693057954311371,
-0.47441738843917847,
-0.17208367586135864,
0.23046906292438507,
-0.09995115548372269,
0.16761067509651184,
-0.1212369054555893,
-0.21667265892028809,
0.14969564974308014,
0.38612157106399536,
0.03988530486822128,
-0.08788341283798218,
0.1504206359386444,
0.2156400978565216,
-0.11630460619926453,
0.1365494430065155,
0.3614479601383209,
0.10973760485649109,
-0.7085859775543213,
-0.04617583751678467,
-0.06683255732059479,
0.1575983315706253,
-0.26194483041763306,
-0.16748711466789246,
-0.1746026575565338,
0.07693827152252197,
-0.13607345521450043,
0.002872176468372345,
0.16608908772468567,
0.20372213423252106,
0.04542778432369232,
-0.20446781814098358,
-0.29293009638786316,
0.263262540102005,
-0.10856543481349945,
0.034232959151268005,
0.19201144576072693,
-0.2135157436132431,
-0.1601370871067047,
0.37818968296051025,
-0.021024130284786224,
0.5590001344680786,
-0.3097168803215027,
0.14125710725784302,
0.2761950194835663,
0.01391545683145523,
0.669948935508728,
-0.11156243830919266,
0.21044355630874634,
-0.3174937665462494,
-0.014190939255058765,
-0.0565616674721241,
-0.20073279738426208,
0.026438329368829727,
0.11239233613014221,
-0.1216493546962738,
0.18026544153690338,
-0.024235785007476807,
-0.2814286947250366,
0.12919828295707703,
0.23119506239891052,
0.502293586730957,
-0.24463233351707458,
-0.7192249894142151,
0.20236870646476746,
-0.21775217354297638,
0.05226806178689003,
0.05177268385887146,
-0.13526517152786255,
-0.2248554676771164,
0.04897487908601761,
-0.3124028444290161,
0.3894597589969635,
0.09013572335243225,
0.34956449270248413,
0.3082274794578552,
-0.04682816192507744,
0.05550874397158623,
0.23091518878936768,
0.1750372052192688,
0.22789548337459564,
-0.17041015625,
0.2341098040342331,
-0.008797653019428253,
-0.2591128647327423,
0.24826042354106903,
0.10018905997276306,
0.1886749565601349,
-0.16275151073932648,
-0.2001493275165558,
0.13314661383628845,
0.08533231914043427,
-0.5239744186401367,
0.13864576816558838,
0.17833298444747925,
-0.07202599942684174,
0.09921799600124359,
-0.28296223282814026,
0.10971931368112564,
0.10711781680583954,
0.20754705369472504,
0.11732308566570282,
0.367085337638855,
0.07368015497922897,
0.34078431129455566,
0.00795578584074974,
-0.469026654958725,
0.1429867446422577,
0.2529996335506439,
0.1792370080947876,
0.009055092930793762,
0.301525741815567,
0.1425314098596573,
0.04716578871011734,
-0.10458734631538391,
-0.1746538281440735,
-0.46191656589508057,
0.010912209749221802,
-0.12246864289045334,
0.31275734305381775,
0.22294367849826813,
0.15213680267333984,
-0.18185001611709595,
0.04104064777493477,
-0.22363987565040588,
0.09975950419902802,
-0.8598700165748596,
-0.1354110985994339,
-0.054828301072120667,
-0.4878779351711273,
-0.0006451494991779327,
0.21669957041740417,
-0.04699648544192314,
-0.08471482992172241,
-0.19134990870952606,
-0.24978750944137573,
0.01976636052131653,
-0.2032194882631302,
-0.10998797416687012,
0.2819562256336212,
0.06199805811047554,
0.1283499151468277,
-0.22952987253665924,
0.12995892763137817,
-0.4033862352371216,
-0.10847596824169159,
-0.19876623153686523,
-0.0028027333319187164,
0.1285455822944641,
0.0529874786734581,
-0.25737902522087097,
-0.20843642950057983,
-0.24599534273147583,
-0.32995349168777466,
0.10250105708837509,
-0.04098837822675705,
-0.020156143233180046,
-0.15408813953399658,
0.05817659571766853,
-0.5069235563278198,
0.01658894494175911,
0.1186361312866211,
0.35865911841392517,
-0.11647403240203857,
0.24674588441848755,
0.2674185633659363,
0.2644314765930176,
-0.17530609667301178,
-0.09090729802846909,
-0.5406354665756226,
-0.06691133230924606,
-0.2757549285888672,
0.16379863023757935,
0.3702978193759918,
-0.10896942019462585,
0.13248363137245178,
0.08164168894290924,
0.05350177735090256,
0.5262336730957031,
-0.17825694382190704,
-0.046150416135787964,
0.12992721796035767,
0.14884008467197418,
-0.28394678235054016,
-0.13353019952774048,
0.3298015594482422,
0.30998116731643677,
-0.21431103348731995,
0.20181071758270264,
-0.022295983508229256,
0.022688783705234528,
0.1296837329864502,
0.030322548002004623,
0.5294108390808105,
-0.24933062493801117,
0.08841229975223541,
-0.1519784778356552,
-0.24768202006816864,
-0.09166641533374786,
-0.21199214458465576,
0.2499307245016098,
0.24116602540016174,
0.372855007648468,
-0.0014117881655693054,
0.10809306800365448,
0.19088101387023926,
-0.12381578981876373,
-0.013418741524219513,
-0.3544931411743164,
-0.4646899104118347,
0.16359658539295197,
0.02332310378551483,
0.3950410783290863,
0.007964380085468292,
0.09288636595010757,
0.05199533328413963,
-0.2455948293209076,
-0.06572752445936203,
0.2370261698961258,
0.1193930059671402,
-0.0006321212276816368,
-0.20608846843242645,
0.04167873412370682,
-0.03172677755355835,
-0.18166455626487732,
0.03758334368467331,
-0.11872731149196625,
0.08652301132678986,
0.34904390573501587,
-0.3035862445831299,
-0.7911363840103149,
0.22859454154968262,
0.06626013666391373,
-0.1032068058848381,
0.07204517722129822,
0.39187031984329224,
0.023688174784183502,
0.0435214564204216,
0.3245852291584015,
0.10883165895938873,
0.5102602243423462,
0.4114190340042114,
-0.049233999103307724,
-0.04577339068055153,
0.024272603914141655,
0.11899851262569427,
-0.0850600004196167,
0.32234373688697815,
0.033200811594724655,
0.3221088945865631,
0.27460601925849915,
0.11984920501708984,
0.05741509050130844,
0.2889932692050934,
0.1625368297100067,
0.07124641537666321,
0.022603973746299744,
0.06667323410511017,
0.10231443494558334,
0.23945042490959167,
-0.25687074661254883,
0.07248644530773163,
-0.3361438512802124,
-0.11034898459911346,
0.2590256929397583,
0.20748737454414368,
0.11409569531679153,
0.033642590045928955,
0.058249928057193756,
-0.13191504776477814,
0.7058610320091248,
0.5107814073562622,
0.3717736601829529,
-0.14329251646995544,
-0.06041426956653595,
-0.5617272853851318,
0.1689252108335495,
-0.2268105447292328,
-0.20932666957378387,
0.10783424228429794,
0.12824182212352753,
0.4357295632362366,
0.19244568049907684,
-0.027367427945137024,
-0.17254699766635895,
-0.4005467891693115,
-0.023743949830532074,
-0.3428231179714203,
-0.21782682836055756,
0.007896959781646729,
-0.11197419464588165,
-0.1383010447025299,
-0.018038515001535416,
0.08996349573135376,
-0.18239188194274902,
-0.001959562301635742,
0.02701917476952076,
0.1578265130519867,
-0.0332665778696537,
0.0914945900440216,
0.4042004942893982,
0.015184437856078148,
0.4290499687194824,
-0.027055326849222183,
-0.2645827829837799,
-0.45099711418151855,
-0.19910074770450592,
-0.3306640684604645,
0.3517007827758789,
0.2352205365896225,
0.17624492943286896,
-0.16947942972183228,
0.18722228705883026,
-0.16852836310863495,
0.4838171899318695,
-0.05659077316522598,
-0.5422760844230652,
0.1255190670490265,
0.07394187897443771,
0.09575612097978592,
0.14441122114658356,
-0.01064617931842804,
0.05353425070643425,
0.004479754716157913,
0.5422226786613464,
-0.24582864344120026,
-0.13782188296318054,
0.2703121304512024,
-0.2595650255680084,
-0.35438844561576843,
0.2645856738090515,
-0.13422971963882446,
-0.3655937910079956,
0.3093406856060028,
-0.537162184715271,
0.1654874086380005,
0.34196949005126953,
-0.10925137251615524,
-0.17104505002498627,
-0.050433117896318436,
0.10095036029815674,
-0.20602907240390778,
-0.08584986627101898,
0.5699597597122192,
-0.11934281140565872,
-0.23340550065040588,
-0.04696182906627655,
0.009048476815223694
] |
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.2497592568397522,
0.08938413858413696,
-0.0778244212269783,
0.3270988464355469,
0.2081746906042099,
0.002122648060321808,
0.2745364308357239,
0.1381624937057495,
0.049143802374601364,
0.04059296101331711,
-0.03168957680463791,
0.049295809119939804,
0.12689170241355896,
0.33280977606773376,
0.09711719304323196,
-0.1882537603378296,
-0.012896962463855743,
0.08560715615749359,
-0.009513609111309052,
0.10711322724819183,
-0.04578486457467079,
0.17138761281967163,
-0.10189227014780045,
0.1726025938987732,
-0.19526277482509613,
0.1230359897017479,
-0.054277703166007996,
-0.07669540494680405,
-0.3689580261707306,
-0.2835099995136261,
0.3438398241996765,
0.12487548589706421,
0.18020808696746826,
-0.027557574212551117,
-0.00011615790572250262,
-0.07733774185180664,
0.2845269441604614,
-0.006800869479775429,
-0.30155619978904724,
-0.4885486364364624,
-0.13852888345718384,
-0.1994367092847824,
0.369405597448349,
-0.07227614521980286,
0.20156791806221008,
0.16523516178131104,
0.43295878171920776,
0.1027756780385971,
0.48388922214508057,
0.1664903461933136,
0.1847647875547409,
-0.033775974065065384,
0.3706134855747223,
0.09791010618209839,
0.06919810175895691,
-0.3523101806640625,
0.0500907376408577,
0.3374671936035156,
-0.140717014670372,
-0.18571849167346954,
0.11421989649534225,
0.09216785430908203,
0.16644905507564545,
0.11011286079883575,
0.18217001855373383,
0.13093936443328857,
-0.0719027891755104,
-0.3520623743534088,
0.024204446002840996,
0.11670734733343124,
0.9977471232414246,
-0.03973950445652008,
-0.23932361602783203,
0.005710035562515259,
0.14929898083209991,
-0.41846710443496704,
0.5427042841911316,
0.27126428484916687,
-0.14786531031131744,
0.05033363774418831,
-0.341590940952301,
-0.3982752859592438,
-0.35179194808006287,
0.36039507389068604,
-0.03552434593439102,
0.06353607773780823,
-0.08161234855651855,
0.14034759998321533,
0.09288221597671509,
-0.08111968636512756,
-0.10815699398517609,
0.1471651792526245,
-0.23662921786308289,
0.2940262258052826,
-0.3973177969455719,
-0.08461894094944,
-0.28994837403297424,
0.1905510127544403,
0.22928720712661743,
0.3845520615577698,
0.08991019427776337,
0.05556027963757515,
-0.12632359564304352,
0.1376541256904602,
0.39580854773521423,
0.27087661623954773,
0.19036927819252014,
0.0780155286192894,
0.1873907893896103,
0.174881249666214,
-0.0046951137483119965,
-0.09811484068632126,
-0.14320708811283112,
-0.05603446066379547,
-0.11155769228935242,
-0.22070592641830444,
0.08076006919145584,
-0.3565366268157959,
-0.32904526591300964,
0.09903647005558014,
-0.46237099170684814,
-0.18247564136981964,
-0.026841405779123306,
0.1823047697544098,
-0.27287757396698,
0.012621261179447174,
0.052869051694869995,
0.33194500207901,
-0.10537786036729813,
-0.2310134321451187,
-0.16880640387535095,
0.013599210418760777,
-0.2198595553636551,
-0.028315192088484764,
0.1741315871477127,
-0.1911737322807312,
0.4688149392604828,
-0.21162331104278564,
-0.150711789727211,
-0.1241673156619072,
0.10944874584674835,
-0.12628978490829468,
-0.5147407054901123,
0.07520097494125366,
0.2205127477645874,
0.09924910962581635,
-0.05207832530140877,
-0.2731281518936157,
0.010548852384090424,
-0.12749627232551575,
-0.2243051826953888,
-0.19692064821720123,
-0.401447594165802,
0.15623599290847778,
-0.18029095232486725,
-0.20929047465324402,
-0.3340268135070801,
0.19141054153442383,
-0.0650036409497261,
-0.20150312781333923,
-0.18948328495025635,
0.053663093596696854,
-0.13267859816551208,
-0.1489025354385376,
0.281681627035141,
0.2782112956047058,
0.04765084758400917,
-0.4040091335773468,
-0.17967489361763,
-0.1528383046388626,
0.10772381722927094,
0.42099371552467346,
-0.05976031720638275,
-0.132463276386261,
-0.17398811876773834,
0.3515346646308899,
0.6295804977416992,
-0.15927836298942566,
-0.9718021154403687,
0.2665199339389801,
-0.25994759798049927,
-0.24569471180438995,
-0.05101735144853592,
0.16132140159606934,
0.13802707195281982,
0.12878768146038055,
0.1731056571006775,
0.4931623339653015,
-0.1016823798418045,
-0.0801602303981781,
-0.1647750586271286,
-0.3046259880065918,
0.1237148866057396,
0.0984533429145813,
0.007013995200395584,
0.08282167464494705,
0.20470915734767914,
0.011772134341299534,
0.12115180492401123,
0.2219161093235016,
0.10491517931222916,
0.18532729148864746,
0.2719540596008301,
-0.08458159863948822,
-0.1859803944826126,
0.07553855329751968,
-0.5517846345901489,
0.13203883171081543,
-0.24301493167877197,
0.2367604374885559,
-0.32661277055740356,
0.18150191009044647,
-0.13782069087028503,
-0.025057747960090637,
-0.08718128502368927,
-0.01962611824274063,
0.05883120745420456,
-0.2522033751010895,
0.08648742735385895,
0.36637917160987854,
-0.01209714263677597,
0.4874073266983032,
0.0745207890868187,
0.24703049659729004,
-0.35141676664352417,
0.5134071707725525,
-0.20107921957969666,
-0.08564262092113495,
0.15342116355895996,
-0.14303305745124817,
0.002864997833967209,
0.01593736931681633,
-0.2361588180065155,
0.08543547987937927,
-0.5183472633361816,
0.18100565671920776,
0.2617424428462982,
0.41707590222358704,
0.18436896800994873,
-0.42266151309013367,
0.20948757231235504,
-0.2681603729724884,
0.09408283978700638,
0.07690302282571793,
0.04578499495983124,
0.06140148639678955,
0.29733219742774963,
0.08593326807022095,
-0.036890655755996704,
0.35024213790893555,
0.3250184953212738,
-0.03222524747252464,
0.07452928274869919,
-0.1063506081700325,
0.42278701066970825,
0.294676274061203,
0.28271716833114624,
-0.21027475595474243,
-0.24367420375347137,
0.20491982996463776,
0.3648760914802551,
0.10896480083465576,
0.0341825857758522,
0.38221457600593567,
-0.24217122793197632,
-0.44250819087028503,
-0.11415165662765503,
-0.0854029729962349,
0.38812577724456787,
0.054814811795949936,
-0.0007230043411254883,
0.1530991494655609,
0.05201231315732002,
-0.1004076823592186,
0.16077259182929993,
0.07382294535636902,
0.09988649934530258,
0.047951869666576385,
0.17331597208976746,
0.052265942096710205,
-0.14894717931747437,
-0.1117214560508728,
0.006889874115586281,
0.3233181834220886,
-0.11165033280849457,
0.1294984221458435,
-0.06829728186130524,
-0.22032418847084045,
0.16533809900283813,
-0.23816174268722534,
-0.4337793290615082,
-0.31473445892333984,
0.008576694875955582,
0.26933521032333374,
0.10833539068698883,
0.07351609319448471,
-0.02768680453300476,
0.06595116853713989,
0.2006315439939499,
0.009532109834253788,
-0.041214101016521454,
-0.2337368279695511,
-0.31307968497276306,
0.0712064653635025,
0.33175691962242126,
0.101773202419281,
0.16272585093975067,
-0.17513404786586761,
-0.06729083508253098,
-0.47468483448028564,
-0.20869386196136475,
0.07960187643766403,
-0.12448099255561829,
0.40087851881980896,
0.06623762100934982,
0.5214605331420898,
-0.1920010894536972,
-0.10501833260059357,
0.19280178844928741,
-0.1713087260723114,
-0.1980888843536377,
-0.02867412567138672,
-0.013123158365488052,
0.16402070224285126,
0.16734348237514496,
-0.2523576021194458,
-0.4018144905567169,
-0.21807682514190674,
0.48858505487442017,
0.14701242744922638,
0.05103840306401253,
-0.08982951194047928,
0.10644959658384323,
0.07711780071258545,
0.15049521625041962,
-0.10094527900218964,
-0.2762487530708313,
-0.41018247604370117,
0.19206449389457703,
-0.08368910849094391,
-0.31822073459625244,
0.12956872582435608,
0.1608959585428238,
0.20640376210212708,
0.05755357816815376,
-0.5428876280784607,
-0.16491815447807312,
-0.03079766221344471,
0.2012944370508194,
0.020249150693416595,
-0.18859657645225525,
0.2706337869167328,
-0.10794870555400848,
0.008533628657460213,
0.29173511266708374,
-0.08219893276691437,
0.28794145584106445,
0.2989265024662018,
0.42351144552230835,
0.09925226867198944,
0.6737158298492432,
-0.006791349500417709,
0.4394056797027588,
0.14975231885910034,
-0.15615993738174438,
0.5129275321960449,
0.21771398186683655,
0.04709622636437416,
-0.06185873597860336,
-0.052607230842113495,
0.048191800713539124,
-0.0784616768360138,
0.03676329553127289,
0.07758849859237671,
-0.007358446717262268,
-0.2609277665615082,
-0.30359935760498047,
-0.21352984011173248,
-0.24060872197151184,
-0.18183141946792603,
-0.009404817596077919,
-0.3316061794757843,
-0.031645432114601135,
0.22771847248077393,
-0.3477572798728943,
-0.08157619833946228,
-0.3281506896018982,
-0.153890460729599,
0.11374301463365555,
0.12559030950069427,
0.09887873381376266,
-0.4016401767730713,
-0.1648542881011963,
-0.7408907413482666,
0.4798646569252014,
-0.03667363151907921,
0.4076284170150757,
-0.35734429955482483,
0.19848528504371643,
0.15327438712120056,
-0.047501981258392334,
0.3783426284790039,
-0.1877073496580124,
-0.1075768917798996,
-0.18085110187530518,
0.4171363413333893,
-0.09906293451786041,
-0.17394988238811493,
0.0327933095395565,
0.31981855630874634,
0.211264967918396,
0.004858046770095825,
-0.46780675649642944,
-0.041855569928884506,
0.23672515153884888,
-0.019120505079627037,
-0.1713789701461792,
-0.16970397531986237,
-0.1911778599023819,
-0.1812908947467804,
-0.22505758702754974,
-0.15085047483444214,
-0.07159800827503204,
0.20533905923366547,
0.06143035739660263,
0.07760970294475555,
0.09269822388887405,
-0.05529036372900009,
-0.1057060956954956,
-0.26377829909324646,
0.12294691056013107,
-0.08241061121225357,
0.23359301686286926,
0.33581164479255676,
0.08293473720550537,
-0.0662214383482933,
0.7518083453178406,
0.07220396399497986,
-0.37474238872528076,
0.21291786432266235,
0.07263454794883728,
0.050495684146881104,
0.04369109869003296,
0.10961148142814636,
0.2167554497718811,
0.20701219141483307,
0.31381919980049133,
0.1138104721903801,
0.08189047127962112,
0.3213294744491577,
0.14955127239227295,
-0.22840307652950287,
-0.3196689784526825,
0.5979223251342773,
-0.07724577188491821,
0.026628918945789337,
0.3614581525325775,
0.025447741150856018,
-0.05270355939865112,
0.1322513222694397,
-0.16718852519989014,
0.9752010703086853,
-0.0637272298336029,
0.0888509452342987,
0.2906130254268646,
-0.036392565816640854,
0.5495637059211731,
-0.3213942050933838,
0.14222560822963715,
-0.40068331360816956,
-0.3116592764854431,
-0.10806076973676682,
-0.15065863728523254,
-0.15142488479614258,
0.038858477026224136,
-0.07068399339914322,
0.3890465497970581,
-0.15696024894714355,
-0.030770715326070786,
0.1514771580696106,
0.36119624972343445,
-0.32574325799942017,
0.001074671745300293,
-0.40617093443870544,
0.12439835071563721,
-0.11155855655670166,
0.47658202052116394,
-0.17909348011016846,
-0.17709492146968842,
-0.15282145142555237,
-0.3629814386367798,
-0.4525061845779419,
0.29042723774909973,
-0.11861331015825272,
0.2812657952308655,
0.1837591677904129,
-0.21435239911079407,
0.08216685056686401,
0.3698537051677704,
0.27884745597839355,
-0.11346276104450226,
-0.30125877261161804,
0.21390460431575775,
-0.364189475774765,
-0.2792796194553375,
0.19098861515522003,
0.14208568632602692,
0.16447988152503967,
-0.1711331605911255,
-0.3458026945590973,
0.3303350508213043,
0.0300881490111351,
-0.3150249123573303,
0.038395047187805176,
-0.06300732493400574,
-0.16501137614250183,
-0.011163856834173203,
-0.049143098294734955,
-0.17799347639083862,
-0.278816819190979,
0.018960345536470413,
0.08542221784591675,
0.2785881459712982,
0.12998747825622559,
-0.07477768510580063,
0.31837165355682373,
-0.10614999383687973,
-0.10945923626422882,
0.6303486824035645,
-0.0367145836353302,
-0.25690898299217224,
0.696123480796814,
0.07159973680973053,
-0.05231945216655731,
-0.1027354747056961,
-0.18063655495643616,
-0.062062375247478485,
-0.41428738832473755,
-0.12035725265741348,
-0.18963950872421265,
0.2682068347930908,
-0.24036923050880432,
0.013867173343896866,
0.0832824558019638,
0.024538327008485794,
0.29882878065109253,
-0.5705103278160095,
-0.23399540781974792,
0.31079035997390747,
-0.6751431226730347,
0.09125134348869324,
-0.06195502355694771,
-0.04053487256169319,
0.20730701088905334,
0.04651818796992302,
-0.233501598238945,
0.01683625392615795,
-0.5630583167076111,
-0.10964429378509521,
0.4691391587257385,
-0.31796005368232727,
0.33906951546669006,
0.03307735547423363,
0.1282811462879181,
0.070915088057518,
-0.4158705174922943,
-0.12326940149068832,
0.1404617577791214,
0.134247824549675,
0.07446546107530594,
-0.14717614650726318,
-0.08917517215013504,
-0.04941102862358093,
-0.12036289274692535,
0.20378324389457703,
-0.08314350247383118,
-0.08020622283220291,
0.008824020624160767,
-0.04099509119987488,
0.03888797387480736,
0.053241997957229614,
-0.17928360402584076,
0.1862981617450714,
0.057066380977630615,
0.40409398078918457,
-0.06632920354604721,
0.11072061955928802,
-0.01172723900526762,
0.007330350577831268,
-0.5277683138847351,
-0.023365594446659088,
-0.14211785793304443,
-0.10286834090948105,
0.2993013262748718,
-0.35852986574172974,
-0.031915780156850815,
-0.09337658435106277,
-0.03981715813279152,
0.3959398865699768,
-0.36069783568382263,
0.04506891220808029,
0.45363378524780273,
0.20475943386554718,
-0.11504529416561127,
-0.04894210398197174,
0.16180887818336487,
-0.0657106563448906,
-0.1915213018655777,
-0.10489737242460251,
0.3560290038585663,
-0.14253295958042145,
0.0074942633509635925,
0.11648883670568466,
0.507241427898407,
-0.22874771058559418,
0.05391154810786247,
-0.19039802253246307,
-0.10980521142482758,
0.004094164818525314,
0.15790490806102753,
0.2635747492313385,
0.18044394254684448,
0.02996223419904709,
-0.2974125146865845,
-0.3058325946331024,
-0.3694429099559784,
0.3581809103488922,
-0.03276757895946503,
-0.3869178891181946,
-0.42507949471473694,
0.37918949127197266,
-0.14244768023490906,
0.09451841562986374,
0.06513513624668121,
0.2678670287132263,
0.018398359417915344,
0.027820393443107605,
-0.4035417437553406,
0.28109511733055115,
0.037234410643577576,
-0.07728749513626099,
0.05903848260641098,
-0.20602470636367798,
-0.24823661148548126,
0.1561203896999359,
-0.05076443776488304,
-0.22875837981700897,
-0.008186839520931244,
0.25362467765808105,
-0.12232963740825653,
-0.3326306939125061,
0.05956510826945305,
0.47212421894073486,
0.05577057972550392,
-0.2593837082386017,
0.2974855303764343,
-0.05452148616313934,
-0.08407428860664368,
0.06436842679977417,
0.2882589101791382,
0.4291485846042633,
0.20778688788414001,
-0.1113608330488205,
0.1713634729385376,
0.14562438428401947,
-0.06806187331676483,
0.058986082673072815,
0.04044177755713463,
0.41936343908309937,
-0.31323468685150146,
0.16628533601760864,
0.10873551666736603,
-0.1322736144065857,
0.3147645890712738,
-0.027464766055345535,
0.7163370251655579,
-0.05032367631793022,
-0.03705204278230667,
-0.14351682364940643,
-0.012116879224777222,
-0.23586302995681763,
-0.1394413411617279,
-0.6274197697639465,
0.13561312854290009,
-0.0447000153362751,
0.07734028249979019,
0.11177776008844376,
-0.21200107038021088,
0.034464847296476364,
-0.22875836491584778,
0.5761770606040955,
0.5365759134292603,
0.453399658203125,
-0.20049522817134857,
-0.24970243871212006,
-0.41115254163742065,
0.15466547012329102,
-0.07052680850028992,
0.13288375735282898,
0.0882309302687645,
0.3086768388748169,
-0.13630002737045288,
0.18988479673862457,
0.10294939577579498,
0.43983128666877747,
-0.19151826202869415,
0.09769217669963837,
-0.4273046553134918,
-0.1192631721496582,
0.23794904351234436,
0.3140217959880829,
-0.12239864468574524,
-0.03317461907863617,
0.1472320854663849,
-0.25948062539100647,
0.02683492749929428,
-0.2557224631309509,
0.12617127597332,
-0.1776331067085266,
0.2399815320968628,
0.4202905595302582,
0.25506946444511414,
0.4653469920158386,
0.09304902702569962,
-0.22248345613479614,
-0.239057719707489,
-0.37548795342445374,
-0.1918814778327942,
-0.04374579340219498,
0.1129085123538971,
0.30587175488471985,
-0.1066821813583374,
0.38476911187171936,
-0.2915791869163513,
0.1641990691423416,
-0.1191595196723938,
0.15463998913764954,
-0.16727519035339355,
-0.11179360002279282,
0.18179377913475037,
0.18248288333415985,
0.00586146954447031,
0.058616600930690765,
0.0868317186832428,
-0.06921679526567459,
-0.34200799465179443,
-0.0011574085801839828,
0.31779617071151733,
-0.06576365232467651,
0.03641154244542122,
0.10981330275535583,
0.2601313591003418,
0.24801304936408997,
-0.05848715454339981,
-0.5286948680877686,
0.29060932993888855,
0.40410709381103516,
-0.16637441515922546,
-0.34939077496528625,
0.07962198555469513,
0.31445473432540894,
0.16725577414035797,
-0.08844634890556335,
0.1378220021724701,
-0.09061787277460098,
-0.1678467094898224,
0.0019327327609062195,
-0.15528863668441772
] |
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.07698316872119904,
-0.4020940959453583,
-0.1799212098121643,
0.06598246842622757,
0.14926937222480774,
-0.003346286714076996,
0.557325005531311,
0.3920772671699524,
-0.011485566385090351,
0.2672933340072632,
-0.052443698048591614,
0.33477315306663513,
-0.05059430003166199,
-0.31200286746025085,
0.01116239931434393,
-0.3291770815849304,
0.08354685455560684,
0.27364975214004517,
-0.37094026803970337,
-0.27238327264785767,
-0.23351798951625824,
0.28005659580230713,
-0.07766254246234894,
0.2484981268644333,
-0.14810404181480408,
-0.03494352847337723,
0.12143930792808533,
0.1059609204530716,
0.06757692247629166,
-0.2886582612991333,
0.19657769799232483,
-0.17455711960792542,
0.22759053111076355,
0.4768025875091553,
-0.00010438694152981043,
0.13615892827510834,
0.33755338191986084,
-0.034608907997608185,
-0.13421864807605743,
-0.35059303045272827,
0.47139111161231995,
0.05932246148586273,
0.3363771438598633,
-0.3500795066356659,
-0.05079078674316406,
-0.2969655990600586,
-0.09695775806903839,
-0.308935284614563,
0.4441099762916565,
0.4418492615222931,
0.3010699450969696,
0.10265291482210159,
0.24469472467899323,
-0.16991545259952545,
-0.02083580195903778,
-0.029783450067043304,
-0.06779327988624573,
0.3753475546836853,
0.13835203647613525,
0.14741693437099457,
0.38237595558166504,
0.3424663841724396,
0.16093140840530396,
0.0776081532239914,
0.3393227159976959,
0.032257553189992905,
0.660061776638031,
-0.45419833064079285,
-0.0775013193488121,
0.27367210388183594,
0.18128812313079834,
-0.11844327300786972,
-0.3209797441959381,
0.12697994709014893,
0.006010232027620077,
-0.24750155210494995,
0.061675816774368286,
-0.06774728745222092,
-0.24967795610427856,
-0.03257453069090843,
0.44583699107170105,
-0.04426629841327667,
-0.17719900608062744,
0.19539541006088257,
-0.018510449677705765,
0.16363711655139923,
-0.0449308380484581,
-0.05065404623746872,
0.027161138132214546,
-0.33402520418167114,
0.38720768690109253,
0.09286513924598694,
0.4485001564025879,
0.09601064026355743,
-0.07596112787723541,
-0.12198545783758163,
0.0625467374920845,
-0.6255772709846497,
-0.20341017842292786,
-0.2914333939552307,
0.07395126670598984,
-0.01225832849740982,
0.11802314221858978,
0.2710881233215332,
-0.1634570211172104,
0.06675601005554199,
0.10672755539417267,
0.1606893092393875,
0.33548110723495483,
0.07939435541629791,
0.32801151275634766,
0.16987374424934387,
-0.30215296149253845,
-0.1251385509967804,
-0.15678444504737854,
0.06409590691328049,
0.3410719037055969,
0.09396417438983917,
-0.5376567244529724,
-0.048649221658706665,
-0.1924372911453247,
0.04745103791356087,
-0.005581961013376713,
0.25681057572364807,
-0.037951499223709106,
0.1916804313659668,
0.4150512218475342,
0.11126721650362015,
-0.2454228550195694,
0.004610794596374035,
-0.22293563187122345,
0.3555656671524048,
-0.07030721753835678,
-0.20205777883529663,
0.058731239289045334,
0.1554541289806366,
0.3014606535434723,
-0.09930939227342606,
0.13105399906635284,
-0.08252257853746414,
0.16957318782806396,
0.014668215066194534,
-0.03960872441530228,
0.15427683293819427,
-0.2942763566970825,
-0.04514222964644432,
0.2622389495372772,
-0.1855238825082779,
-0.2611551582813263,
0.09121711552143097,
-0.23356392979621887,
-0.009562622755765915,
-0.45414838194847107,
0.3482019007205963,
0.25079602003097534,
0.11042489856481552,
0.23383891582489014,
0.030489658936858177,
0.10521828383207321,
0.04706267639994621,
-0.1015094593167305,
-0.2446223646402359,
-0.10236233472824097,
-0.3306646943092346,
0.28488802909851074,
0.15443837642669678,
-0.0588517002761364,
-0.15748444199562073,
-0.14238469302654266,
-0.03973669931292534,
0.12016028165817261,
0.22023437917232513,
-0.13517645001411438,
-0.013513967394828796,
0.11746744811534882,
-0.17192429304122925,
0.6146842837333679,
-0.5745143294334412,
0.10565543919801712,
-0.061101336032152176,
0.1371091902256012,
-0.04822389781475067,
-0.010827034711837769,
-0.07861984521150589,
0.14182375371456146,
-0.061727747321128845,
0.3198714256286621,
0.3495158553123474,
0.25150540471076965,
-0.11045800149440765,
-0.3646186888217926,
0.012272322550415993,
0.13004344701766968,
0.09103651344776154,
0.09657211601734161,
0.06350047886371613,
-0.052370063960552216,
-0.04806059971451759,
0.06474500894546509,
-0.15980641543865204,
0.004075561184436083,
0.12344391644001007,
0.08758537471294403,
-0.08677853643894196,
0.10082805156707764,
-0.1719266176223755,
-0.3230355679988861,
-0.0569833442568779,
-0.3147106170654297,
0.034375108778476715,
-0.015241660177707672,
-0.19136099517345428,
-0.19831961393356323,
0.012763282284140587,
0.11912946403026581,
-0.23375028371810913,
0.3220001757144928,
0.03483789786696434,
-0.013012202456593513,
0.16307570040225983,
-0.23216186463832855,
-0.03293775022029877,
-0.15125031769275665,
0.18153275549411774,
-0.13530407845973969,
0.16415752470493317,
-0.42322659492492676,
-0.258780837059021,
-0.16872388124465942,
0.35354894399642944,
0.0873163491487503,
-0.3229028284549713,
-0.039891306310892105,
0.3210486173629761,
-0.06600634008646011,
-0.0963129997253418,
-0.3560900092124939,
-0.01515953242778778,
0.35641995072364807,
-0.1473708301782608,
0.04400891810655594,
0.3544329106807709,
0.11944296956062317,
-0.10679501295089722,
0.06604382395744324,
0.24427807331085205,
0.2975996732711792,
-0.021051861345767975,
0.2813410758972168,
0.19251830875873566,
0.03818478435277939,
0.12454237043857574,
-0.058359064161777496,
-0.1804324984550476,
0.15598750114440918,
0.3096713423728943,
0.11827635765075684,
-0.17865876853466034,
-0.39695245027542114,
-0.027769379317760468,
0.21053728461265564,
0.00296885147690773,
0.21260711550712585,
-0.03075050562620163,
-0.07518815249204636,
0.12578994035720825,
0.15584760904312134,
-0.07667475938796997,
0.18389078974723816,
0.009159550070762634,
0.13227884471416473,
0.07277997583150864,
-0.20344474911689758,
-0.14120358228683472,
0.1152333989739418,
-0.026880495250225067,
0.34978488087654114,
-0.07093542069196701,
-0.0873165875673294,
0.07851327210664749,
-0.0844331830739975,
-0.37827542424201965,
0.05666457861661911,
0.16578082740306854,
-0.08290929347276688,
0.03782413899898529,
-0.2627529203891754,
-0.02279604785144329,
-0.09478253126144409,
-0.22960805892944336,
0.13249659538269043,
-0.14374062418937683,
-0.014999624341726303,
0.17614668607711792,
-0.17506499588489532,
0.20525963604450226,
0.18839725852012634,
-0.05676646530628204,
0.09606783092021942,
0.31262046098709106,
-0.25922200083732605,
-0.07792820781469345,
-0.16635194420814514,
0.15538552403450012,
0.033069025725126266,
-0.08564180135726929,
0.1994273066520691,
-0.2755846083164215,
-0.12011455744504929,
0.14990034699440002,
-0.4520837664604187,
0.05243516340851784,
0.014011410996317863,
0.11484610289335251,
0.22276191413402557,
0.2215285748243332,
0.02487756311893463,
-0.34475773572921753,
0.21519918739795685,
-0.3349258303642273,
-0.025894207879900932,
-0.09424565732479095,
0.05397723615169525,
-0.09565186500549316,
-0.48859259486198425,
-0.6345111131668091,
-0.30956748127937317,
-0.538668155670166,
0.018934015184640884,
0.14001108705997467,
0.3738853335380554,
0.32081499695777893,
0.23707808554172516,
0.4575043022632599,
0.3019060492515564,
0.44526687264442444,
0.05901040509343147,
0.027096811681985855,
0.3070286214351654,
-0.4646865129470825,
-0.37876373529434204,
-0.11513248085975647,
-0.15162919461727142,
0.3044162690639496,
-0.16145527362823486,
-0.05240499973297119,
-0.3177410662174225,
-0.27428898215293884,
0.20446914434432983,
-0.2654454708099365,
-0.08346474170684814,
0.0780675858259201,
0.16832797229290009,
-0.22344166040420532,
-0.1472688615322113,
0.03980617597699165,
0.19829830527305603,
-0.0899713933467865,
0.05038857087492943,
0.13226811587810516,
0.4105212092399597,
-0.13552528619766235,
0.641284167766571,
0.15359197556972504,
-0.5416252613067627,
0.1315542459487915,
0.09418023377656937,
0.17842864990234375,
0.16107913851737976,
-0.07700148969888687,
0.06412015855312347,
0.10613956302404404,
0.3015519380569458,
-0.06063367426395416,
-0.15287482738494873,
-0.26248735189437866,
-0.2485647052526474,
0.05519062653183937,
-0.20936450362205505,
-0.09925169497728348,
-0.19032375514507294,
-0.22223308682441711,
0.026647787541151047,
-0.17043016850948334,
0.12949210405349731,
-0.03028045780956745,
0.2669640779495239,
0.14049331843852997,
0.3743710517883301,
-0.02991470694541931,
0.03093218430876732,
-0.14466571807861328,
-0.17214320600032806,
-0.1681382656097412,
0.2689390778541565,
0.039158158004283905,
0.35093075037002563,
0.06937697529792786,
-0.08990927040576935,
0.09542485326528549,
0.10213867574930191,
0.33877214789390564,
-0.14164718985557556,
-0.2548164129257202,
0.34347209334373474,
-0.0369340181350708,
-0.4266631305217743,
-0.10194025933742523,
-0.2980012893676758,
-0.047973308712244034,
0.4439184367656708,
0.009950518608093262,
-0.25685450434684753,
-0.2716462016105652,
0.24550558626651764,
-0.13020427525043488,
-0.06763943284749985,
0.07218151539564133,
-0.1339276283979416,
-0.46094393730163574,
-0.3373059034347534,
-0.1392957866191864,
0.195825457572937,
0.1834753155708313,
-0.14350628852844238,
-0.1498095542192459,
0.0016153398901224136,
0.01001620665192604,
0.050370462238788605,
0.1900881677865982,
0.2087099254131317,
-0.12782803177833557,
-0.14013952016830444,
0.03822755813598633,
0.28630948066711426,
0.3246242105960846,
0.08555692434310913,
-0.33354106545448303,
-0.25650402903556824,
0.17058974504470825,
-0.06748642027378082,
0.1452694833278656,
0.02411508560180664,
-0.15182623267173767,
-0.05746673792600632,
-0.4039546847343445,
0.03528010845184326,
0.3928391933441162,
0.2366943657398224,
0.47283557057380676,
0.23306651413440704,
0.04148683696985245,
-0.3156411945819855,
0.2783529460430145,
0.11273981630802155,
0.016891516745090485,
0.3914880156517029,
-0.11730334162712097,
-0.13399092853069305,
0.10714192688465118,
0.2551790177822113,
0.7796511650085449,
0.19794318079948425,
0.07987731695175171,
0.3982560932636261,
-0.14910846948623657,
0.27137696743011475,
0.021491505205631256,
0.12877783179283142,
-0.20854340493679047,
-0.10119658708572388,
0.032712869346141815,
-0.09504193067550659,
0.29608169198036194,
-0.16588649153709412,
-0.47620221972465515,
-0.008898444473743439,
-0.3046588599681854,
-0.08554531633853912,
-0.01039382815361023,
0.25138595700263977,
0.05120643228292465,
0.0007528923451900482,
0.08318348973989487,
0.19367480278015137,
0.1429111659526825,
0.18628646433353424,
-0.21740013360977173,
-0.19222554564476013,
-0.16074950993061066,
-0.34127068519592285,
-0.05187295377254486,
0.15318280458450317,
-0.21826329827308655,
0.4361855983734131,
0.19552867114543915,
-0.3141533434391022,
0.09287711977958679,
0.31230002641677856,
0.45428532361984253,
-0.19127453863620758,
-0.13730201125144958,
-0.047420185059309006,
-0.13020706176757812,
-0.043902549892663956,
-0.15223239362239838,
0.18011605739593506,
0.5092203617095947,
-0.28987792134284973,
-0.13600990176200867,
0.26584112644195557,
0.004467379301786423,
0.22901736199855804,
-0.4029325842857361,
0.014423500746488571,
-0.20159898698329926,
-0.006290931720286608,
0.20797595381736755,
-0.05272284150123596,
-0.5108951330184937,
-0.12159290909767151,
0.2427588552236557,
-0.01685567945241928,
-0.33286988735198975,
-0.02939622849225998,
0.11104975640773773,
-0.2632743716239929,
0.06321955472230911,
0.07045045495033264,
0.352501779794693,
0.13921979069709778,
0.3493538796901703,
-0.036030761897563934,
-0.2955440878868103,
-0.264721155166626,
-0.27265307307243347,
0.031137099489569664,
0.011248655617237091,
0.3244885504245758,
-0.27563318610191345,
-0.3246462345123291,
-0.059730228036642075,
0.21165351569652557,
-0.0009634643793106079,
0.2978005111217499,
-0.22469592094421387,
-0.163234144449234,
-0.19729788601398468,
0.19181546568870544,
-0.17148049175739288,
0.3040001690387726,
-0.34909024834632874,
0.4225672483444214,
0.1137235015630722,
-0.043072111904621124,
-0.44195881485939026,
0.1668345034122467,
-0.03688214346766472,
0.02001876011490822,
-0.15815266966819763,
-0.21475088596343994,
0.16766108572483063,
0.2444775551557541,
0.2284797728061676,
0.06948727369308472,
-0.18884053826332092,
-0.26058346033096313,
-0.1704721301794052,
0.06985526531934738,
-0.2116413116455078,
-0.18176209926605225,
0.2404189258813858,
0.09998181462287903,
-0.18441951274871826,
0.08633272349834442,
-0.029288552701473236,
-0.13208912312984467,
-0.001998491585254669,
0.5582353472709656,
0.03873413801193237,
0.5644736289978027,
0.38691580295562744,
0.008912207558751106,
-0.10020749270915985,
0.13314390182495117,
-0.13454565405845642,
0.02135079726576805,
0.059750188142061234,
-0.22540439665317535,
-0.3498142659664154,
-0.13730454444885254,
-0.1616203635931015,
-0.14028987288475037,
0.22077885270118713,
-0.16355431079864502,
0.05538090690970421,
-0.26371529698371887,
0.12106867134571075,
0.3033825755119324,
-0.3440735340118408,
0.15444836020469666,
0.08660874515771866,
0.30136311054229736,
-0.2628345489501953,
0.26797279715538025,
-0.07427364587783813,
0.044652681797742844,
0.21716856956481934,
0.24855172634124756,
-0.11638690531253815,
-0.017699725925922394,
0.07168117165565491,
0.08110259473323822,
-0.09124910086393356,
-0.2889400124549866,
0.32525622844696045,
0.23269495368003845,
-0.16523689031600952,
0.08739962428808212,
0.2099820077419281,
-0.021730929613113403,
0.16572454571723938,
0.1753939986228943,
-0.1132669523358345,
0.34353286027908325,
-0.08947990089654922,
-0.19292500615119934,
0.3750651180744171,
0.11596332490444183,
0.20908410847187042,
0.2096317559480667,
0.15933237969875336,
0.22473090887069702,
0.08408106863498688,
0.1650463193655014,
-0.17093031108379364,
-0.082860566675663,
-0.05147755146026611,
0.134367436170578,
-0.32709479331970215,
-0.10759715735912323,
0.03502874821424484,
-0.16096892952919006,
-0.1508619785308838,
-0.4307509660720825,
0.09214900434017181,
-0.07098110020160675,
0.19772155582904816,
0.04507552087306976,
-0.1878478080034256,
-0.32526183128356934,
0.12650036811828613,
-0.06907795369625092,
0.3112429678440094,
-0.0885864794254303,
0.19460652768611908,
0.3189258575439453,
-0.10012564063072205,
-0.37504199147224426,
0.33280131220817566,
0.3252210021018982,
0.5558350682258606,
-0.24630582332611084,
0.06235751509666443,
-0.027178972959518433,
-0.2585276961326599,
0.13588058948516846,
0.006970416754484177,
0.1525978147983551,
0.009646426886320114,
0.26642653346061707,
0.18729494512081146,
-0.28422343730926514,
0.09371455013751984,
0.04912085831165314,
-0.028331559151411057,
-0.2225133627653122,
0.605900764465332,
-0.309102326631546,
0.024186216294765472,
-0.14197413623332977,
-0.025012418627738953,
-0.514005184173584,
-0.18943741917610168,
0.13905051350593567,
0.007046750746667385,
0.027031514793634415,
-0.29334017634391785,
0.12280313670635223,
-0.11286978423595428,
0.35849347710609436,
0.003874383866786957,
0.3682335913181305,
0.029319647699594498,
-0.004502713680267334,
-0.3142126500606537,
0.30370983481407166,
-0.11172762513160706,
-0.030564207583665848,
0.10008223354816437,
0.07312009483575821,
-0.20997214317321777,
0.03249805420637131,
0.2157517671585083,
-0.1540498286485672,
0.010349431075155735,
0.1331143081188202,
-0.46528974175453186,
-0.05194350704550743,
-0.3202301263809204,
-0.11838090419769287,
0.3270794749259949,
-0.2909776270389557,
0.0002809874713420868,
-0.26574066281318665,
0.1885833740234375,
-0.34100019931793213,
0.08758428692817688,
0.080870121717453,
0.4352740943431854,
0.1772850751876831,
0.1798698753118515,
0.3052110970020294,
-0.043241508305072784,
-0.3241819739341736,
0.10091907531023026,
-0.1834964007139206,
-0.2110898792743683,
0.24752801656723022,
0.23514851927757263,
-0.06517113745212555,
-0.16149330139160156,
-0.48831889033317566,
-0.20351707935333252,
0.5369015336036682,
-0.004125379025936127,
-0.2707728147506714,
-0.23055680096149445,
0.22513435781002045,
0.06293804198503494,
-0.0009813344804570079,
0.07477187365293503,
0.23143574595451355,
-0.014073565602302551,
0.10761629045009613,
-0.44032806158065796,
-0.42131611704826355,
0.696571946144104,
-0.053116653114557266,
-0.22330425679683685,
-0.328387975692749,
0.1428041160106659,
0.047794923186302185,
0.2180054932832718,
-0.7143522500991821,
-0.1181040108203888,
0.34353554248809814,
-0.10297281295061111,
-0.36630547046661377,
0.2125728726387024,
0.1637897491455078,
-0.1559288203716278,
-0.12147201597690582,
0.3115529417991638,
0.07703442871570587,
-0.05439949035644531,
-0.028304263949394226,
-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.07698316872119904,
-0.4020940959453583,
-0.1799212098121643,
0.06598246842622757,
0.14926937222480774,
-0.003346286714076996,
0.557325005531311,
0.3920772671699524,
-0.011485566385090351,
0.2672933340072632,
-0.052443698048591614,
0.33477315306663513,
-0.05059430003166199,
-0.31200286746025085,
0.01116239931434393,
-0.3291770815849304,
0.08354685455560684,
0.27364975214004517,
-0.37094026803970337,
-0.27238327264785767,
-0.23351798951625824,
0.28005659580230713,
-0.07766254246234894,
0.2484981268644333,
-0.14810404181480408,
-0.03494352847337723,
0.12143930792808533,
0.1059609204530716,
0.06757692247629166,
-0.2886582612991333,
0.19657769799232483,
-0.17455711960792542,
0.22759053111076355,
0.4768025875091553,
-0.00010438694152981043,
0.13615892827510834,
0.33755338191986084,
-0.034608907997608185,
-0.13421864807605743,
-0.35059303045272827,
0.47139111161231995,
0.05932246148586273,
0.3363771438598633,
-0.3500795066356659,
-0.05079078674316406,
-0.2969655990600586,
-0.09695775806903839,
-0.308935284614563,
0.4441099762916565,
0.4418492615222931,
0.3010699450969696,
0.10265291482210159,
0.24469472467899323,
-0.16991545259952545,
-0.02083580195903778,
-0.029783450067043304,
-0.06779327988624573,
0.3753475546836853,
0.13835203647613525,
0.14741693437099457,
0.38237595558166504,
0.3424663841724396,
0.16093140840530396,
0.0776081532239914,
0.3393227159976959,
0.032257553189992905,
0.660061776638031,
-0.45419833064079285,
-0.0775013193488121,
0.27367210388183594,
0.18128812313079834,
-0.11844327300786972,
-0.3209797441959381,
0.12697994709014893,
0.006010232027620077,
-0.24750155210494995,
0.061675816774368286,
-0.06774728745222092,
-0.24967795610427856,
-0.03257453069090843,
0.44583699107170105,
-0.04426629841327667,
-0.17719900608062744,
0.19539541006088257,
-0.018510449677705765,
0.16363711655139923,
-0.0449308380484581,
-0.05065404623746872,
0.027161138132214546,
-0.33402520418167114,
0.38720768690109253,
0.09286513924598694,
0.4485001564025879,
0.09601064026355743,
-0.07596112787723541,
-0.12198545783758163,
0.0625467374920845,
-0.6255772709846497,
-0.20341017842292786,
-0.2914333939552307,
0.07395126670598984,
-0.01225832849740982,
0.11802314221858978,
0.2710881233215332,
-0.1634570211172104,
0.06675601005554199,
0.10672755539417267,
0.1606893092393875,
0.33548110723495483,
0.07939435541629791,
0.32801151275634766,
0.16987374424934387,
-0.30215296149253845,
-0.1251385509967804,
-0.15678444504737854,
0.06409590691328049,
0.3410719037055969,
0.09396417438983917,
-0.5376567244529724,
-0.048649221658706665,
-0.1924372911453247,
0.04745103791356087,
-0.005581961013376713,
0.25681057572364807,
-0.037951499223709106,
0.1916804313659668,
0.4150512218475342,
0.11126721650362015,
-0.2454228550195694,
0.004610794596374035,
-0.22293563187122345,
0.3555656671524048,
-0.07030721753835678,
-0.20205777883529663,
0.058731239289045334,
0.1554541289806366,
0.3014606535434723,
-0.09930939227342606,
0.13105399906635284,
-0.08252257853746414,
0.16957318782806396,
0.014668215066194534,
-0.03960872441530228,
0.15427683293819427,
-0.2942763566970825,
-0.04514222964644432,
0.2622389495372772,
-0.1855238825082779,
-0.2611551582813263,
0.09121711552143097,
-0.23356392979621887,
-0.009562622755765915,
-0.45414838194847107,
0.3482019007205963,
0.25079602003097534,
0.11042489856481552,
0.23383891582489014,
0.030489658936858177,
0.10521828383207321,
0.04706267639994621,
-0.1015094593167305,
-0.2446223646402359,
-0.10236233472824097,
-0.3306646943092346,
0.28488802909851074,
0.15443837642669678,
-0.0588517002761364,
-0.15748444199562073,
-0.14238469302654266,
-0.03973669931292534,
0.12016028165817261,
0.22023437917232513,
-0.13517645001411438,
-0.013513967394828796,
0.11746744811534882,
-0.17192429304122925,
0.6146842837333679,
-0.5745143294334412,
0.10565543919801712,
-0.061101336032152176,
0.1371091902256012,
-0.04822389781475067,
-0.010827034711837769,
-0.07861984521150589,
0.14182375371456146,
-0.061727747321128845,
0.3198714256286621,
0.3495158553123474,
0.25150540471076965,
-0.11045800149440765,
-0.3646186888217926,
0.012272322550415993,
0.13004344701766968,
0.09103651344776154,
0.09657211601734161,
0.06350047886371613,
-0.052370063960552216,
-0.04806059971451759,
0.06474500894546509,
-0.15980641543865204,
0.004075561184436083,
0.12344391644001007,
0.08758537471294403,
-0.08677853643894196,
0.10082805156707764,
-0.1719266176223755,
-0.3230355679988861,
-0.0569833442568779,
-0.3147106170654297,
0.034375108778476715,
-0.015241660177707672,
-0.19136099517345428,
-0.19831961393356323,
0.012763282284140587,
0.11912946403026581,
-0.23375028371810913,
0.3220001757144928,
0.03483789786696434,
-0.013012202456593513,
0.16307570040225983,
-0.23216186463832855,
-0.03293775022029877,
-0.15125031769275665,
0.18153275549411774,
-0.13530407845973969,
0.16415752470493317,
-0.42322659492492676,
-0.258780837059021,
-0.16872388124465942,
0.35354894399642944,
0.0873163491487503,
-0.3229028284549713,
-0.039891306310892105,
0.3210486173629761,
-0.06600634008646011,
-0.0963129997253418,
-0.3560900092124939,
-0.01515953242778778,
0.35641995072364807,
-0.1473708301782608,
0.04400891810655594,
0.3544329106807709,
0.11944296956062317,
-0.10679501295089722,
0.06604382395744324,
0.24427807331085205,
0.2975996732711792,
-0.021051861345767975,
0.2813410758972168,
0.19251830875873566,
0.03818478435277939,
0.12454237043857574,
-0.058359064161777496,
-0.1804324984550476,
0.15598750114440918,
0.3096713423728943,
0.11827635765075684,
-0.17865876853466034,
-0.39695245027542114,
-0.027769379317760468,
0.21053728461265564,
0.00296885147690773,
0.21260711550712585,
-0.03075050562620163,
-0.07518815249204636,
0.12578994035720825,
0.15584760904312134,
-0.07667475938796997,
0.18389078974723816,
0.009159550070762634,
0.13227884471416473,
0.07277997583150864,
-0.20344474911689758,
-0.14120358228683472,
0.1152333989739418,
-0.026880495250225067,
0.34978488087654114,
-0.07093542069196701,
-0.0873165875673294,
0.07851327210664749,
-0.0844331830739975,
-0.37827542424201965,
0.05666457861661911,
0.16578082740306854,
-0.08290929347276688,
0.03782413899898529,
-0.2627529203891754,
-0.02279604785144329,
-0.09478253126144409,
-0.22960805892944336,
0.13249659538269043,
-0.14374062418937683,
-0.014999624341726303,
0.17614668607711792,
-0.17506499588489532,
0.20525963604450226,
0.18839725852012634,
-0.05676646530628204,
0.09606783092021942,
0.31262046098709106,
-0.25922200083732605,
-0.07792820781469345,
-0.16635194420814514,
0.15538552403450012,
0.033069025725126266,
-0.08564180135726929,
0.1994273066520691,
-0.2755846083164215,
-0.12011455744504929,
0.14990034699440002,
-0.4520837664604187,
0.05243516340851784,
0.014011410996317863,
0.11484610289335251,
0.22276191413402557,
0.2215285748243332,
0.02487756311893463,
-0.34475773572921753,
0.21519918739795685,
-0.3349258303642273,
-0.025894207879900932,
-0.09424565732479095,
0.05397723615169525,
-0.09565186500549316,
-0.48859259486198425,
-0.6345111131668091,
-0.30956748127937317,
-0.538668155670166,
0.018934015184640884,
0.14001108705997467,
0.3738853335380554,
0.32081499695777893,
0.23707808554172516,
0.4575043022632599,
0.3019060492515564,
0.44526687264442444,
0.05901040509343147,
0.027096811681985855,
0.3070286214351654,
-0.4646865129470825,
-0.37876373529434204,
-0.11513248085975647,
-0.15162919461727142,
0.3044162690639496,
-0.16145527362823486,
-0.05240499973297119,
-0.3177410662174225,
-0.27428898215293884,
0.20446914434432983,
-0.2654454708099365,
-0.08346474170684814,
0.0780675858259201,
0.16832797229290009,
-0.22344166040420532,
-0.1472688615322113,
0.03980617597699165,
0.19829830527305603,
-0.0899713933467865,
0.05038857087492943,
0.13226811587810516,
0.4105212092399597,
-0.13552528619766235,
0.641284167766571,
0.15359197556972504,
-0.5416252613067627,
0.1315542459487915,
0.09418023377656937,
0.17842864990234375,
0.16107913851737976,
-0.07700148969888687,
0.06412015855312347,
0.10613956302404404,
0.3015519380569458,
-0.06063367426395416,
-0.15287482738494873,
-0.26248735189437866,
-0.2485647052526474,
0.05519062653183937,
-0.20936450362205505,
-0.09925169497728348,
-0.19032375514507294,
-0.22223308682441711,
0.026647787541151047,
-0.17043016850948334,
0.12949210405349731,
-0.03028045780956745,
0.2669640779495239,
0.14049331843852997,
0.3743710517883301,
-0.02991470694541931,
0.03093218430876732,
-0.14466571807861328,
-0.17214320600032806,
-0.1681382656097412,
0.2689390778541565,
0.039158158004283905,
0.35093075037002563,
0.06937697529792786,
-0.08990927040576935,
0.09542485326528549,
0.10213867574930191,
0.33877214789390564,
-0.14164718985557556,
-0.2548164129257202,
0.34347209334373474,
-0.0369340181350708,
-0.4266631305217743,
-0.10194025933742523,
-0.2980012893676758,
-0.047973308712244034,
0.4439184367656708,
0.009950518608093262,
-0.25685450434684753,
-0.2716462016105652,
0.24550558626651764,
-0.13020427525043488,
-0.06763943284749985,
0.07218151539564133,
-0.1339276283979416,
-0.46094393730163574,
-0.3373059034347534,
-0.1392957866191864,
0.195825457572937,
0.1834753155708313,
-0.14350628852844238,
-0.1498095542192459,
0.0016153398901224136,
0.01001620665192604,
0.050370462238788605,
0.1900881677865982,
0.2087099254131317,
-0.12782803177833557,
-0.14013952016830444,
0.03822755813598633,
0.28630948066711426,
0.3246242105960846,
0.08555692434310913,
-0.33354106545448303,
-0.25650402903556824,
0.17058974504470825,
-0.06748642027378082,
0.1452694833278656,
0.02411508560180664,
-0.15182623267173767,
-0.05746673792600632,
-0.4039546847343445,
0.03528010845184326,
0.3928391933441162,
0.2366943657398224,
0.47283557057380676,
0.23306651413440704,
0.04148683696985245,
-0.3156411945819855,
0.2783529460430145,
0.11273981630802155,
0.016891516745090485,
0.3914880156517029,
-0.11730334162712097,
-0.13399092853069305,
0.10714192688465118,
0.2551790177822113,
0.7796511650085449,
0.19794318079948425,
0.07987731695175171,
0.3982560932636261,
-0.14910846948623657,
0.27137696743011475,
0.021491505205631256,
0.12877783179283142,
-0.20854340493679047,
-0.10119658708572388,
0.032712869346141815,
-0.09504193067550659,
0.29608169198036194,
-0.16588649153709412,
-0.47620221972465515,
-0.008898444473743439,
-0.3046588599681854,
-0.08554531633853912,
-0.01039382815361023,
0.25138595700263977,
0.05120643228292465,
0.0007528923451900482,
0.08318348973989487,
0.19367480278015137,
0.1429111659526825,
0.18628646433353424,
-0.21740013360977173,
-0.19222554564476013,
-0.16074950993061066,
-0.34127068519592285,
-0.05187295377254486,
0.15318280458450317,
-0.21826329827308655,
0.4361855983734131,
0.19552867114543915,
-0.3141533434391022,
0.09287711977958679,
0.31230002641677856,
0.45428532361984253,
-0.19127453863620758,
-0.13730201125144958,
-0.047420185059309006,
-0.13020706176757812,
-0.043902549892663956,
-0.15223239362239838,
0.18011605739593506,
0.5092203617095947,
-0.28987792134284973,
-0.13600990176200867,
0.26584112644195557,
0.004467379301786423,
0.22901736199855804,
-0.4029325842857361,
0.014423500746488571,
-0.20159898698329926,
-0.006290931720286608,
0.20797595381736755,
-0.05272284150123596,
-0.5108951330184937,
-0.12159290909767151,
0.2427588552236557,
-0.01685567945241928,
-0.33286988735198975,
-0.02939622849225998,
0.11104975640773773,
-0.2632743716239929,
0.06321955472230911,
0.07045045495033264,
0.352501779794693,
0.13921979069709778,
0.3493538796901703,
-0.036030761897563934,
-0.2955440878868103,
-0.264721155166626,
-0.27265307307243347,
0.031137099489569664,
0.011248655617237091,
0.3244885504245758,
-0.27563318610191345,
-0.3246462345123291,
-0.059730228036642075,
0.21165351569652557,
-0.0009634643793106079,
0.2978005111217499,
-0.22469592094421387,
-0.163234144449234,
-0.19729788601398468,
0.19181546568870544,
-0.17148049175739288,
0.3040001690387726,
-0.34909024834632874,
0.4225672483444214,
0.1137235015630722,
-0.043072111904621124,
-0.44195881485939026,
0.1668345034122467,
-0.03688214346766472,
0.02001876011490822,
-0.15815266966819763,
-0.21475088596343994,
0.16766108572483063,
0.2444775551557541,
0.2284797728061676,
0.06948727369308472,
-0.18884053826332092,
-0.26058346033096313,
-0.1704721301794052,
0.06985526531934738,
-0.2116413116455078,
-0.18176209926605225,
0.2404189258813858,
0.09998181462287903,
-0.18441951274871826,
0.08633272349834442,
-0.029288552701473236,
-0.13208912312984467,
-0.001998491585254669,
0.5582353472709656,
0.03873413801193237,
0.5644736289978027,
0.38691580295562744,
0.008912207558751106,
-0.10020749270915985,
0.13314390182495117,
-0.13454565405845642,
0.02135079726576805,
0.059750188142061234,
-0.22540439665317535,
-0.3498142659664154,
-0.13730454444885254,
-0.1616203635931015,
-0.14028987288475037,
0.22077885270118713,
-0.16355431079864502,
0.05538090690970421,
-0.26371529698371887,
0.12106867134571075,
0.3033825755119324,
-0.3440735340118408,
0.15444836020469666,
0.08660874515771866,
0.30136311054229736,
-0.2628345489501953,
0.26797279715538025,
-0.07427364587783813,
0.044652681797742844,
0.21716856956481934,
0.24855172634124756,
-0.11638690531253815,
-0.017699725925922394,
0.07168117165565491,
0.08110259473323822,
-0.09124910086393356,
-0.2889400124549866,
0.32525622844696045,
0.23269495368003845,
-0.16523689031600952,
0.08739962428808212,
0.2099820077419281,
-0.021730929613113403,
0.16572454571723938,
0.1753939986228943,
-0.1132669523358345,
0.34353286027908325,
-0.08947990089654922,
-0.19292500615119934,
0.3750651180744171,
0.11596332490444183,
0.20908410847187042,
0.2096317559480667,
0.15933237969875336,
0.22473090887069702,
0.08408106863498688,
0.1650463193655014,
-0.17093031108379364,
-0.082860566675663,
-0.05147755146026611,
0.134367436170578,
-0.32709479331970215,
-0.10759715735912323,
0.03502874821424484,
-0.16096892952919006,
-0.1508619785308838,
-0.4307509660720825,
0.09214900434017181,
-0.07098110020160675,
0.19772155582904816,
0.04507552087306976,
-0.1878478080034256,
-0.32526183128356934,
0.12650036811828613,
-0.06907795369625092,
0.3112429678440094,
-0.0885864794254303,
0.19460652768611908,
0.3189258575439453,
-0.10012564063072205,
-0.37504199147224426,
0.33280131220817566,
0.3252210021018982,
0.5558350682258606,
-0.24630582332611084,
0.06235751509666443,
-0.027178972959518433,
-0.2585276961326599,
0.13588058948516846,
0.006970416754484177,
0.1525978147983551,
0.009646426886320114,
0.26642653346061707,
0.18729494512081146,
-0.28422343730926514,
0.09371455013751984,
0.04912085831165314,
-0.028331559151411057,
-0.2225133627653122,
0.605900764465332,
-0.309102326631546,
0.024186216294765472,
-0.14197413623332977,
-0.025012418627738953,
-0.514005184173584,
-0.18943741917610168,
0.13905051350593567,
0.007046750746667385,
0.027031514793634415,
-0.29334017634391785,
0.12280313670635223,
-0.11286978423595428,
0.35849347710609436,
0.003874383866786957,
0.3682335913181305,
0.029319647699594498,
-0.004502713680267334,
-0.3142126500606537,
0.30370983481407166,
-0.11172762513160706,
-0.030564207583665848,
0.10008223354816437,
0.07312009483575821,
-0.20997214317321777,
0.03249805420637131,
0.2157517671585083,
-0.1540498286485672,
0.010349431075155735,
0.1331143081188202,
-0.46528974175453186,
-0.05194350704550743,
-0.3202301263809204,
-0.11838090419769287,
0.3270794749259949,
-0.2909776270389557,
0.0002809874713420868,
-0.26574066281318665,
0.1885833740234375,
-0.34100019931793213,
0.08758428692817688,
0.080870121717453,
0.4352740943431854,
0.1772850751876831,
0.1798698753118515,
0.3052110970020294,
-0.043241508305072784,
-0.3241819739341736,
0.10091907531023026,
-0.1834964007139206,
-0.2110898792743683,
0.24752801656723022,
0.23514851927757263,
-0.06517113745212555,
-0.16149330139160156,
-0.48831889033317566,
-0.20351707935333252,
0.5369015336036682,
-0.004125379025936127,
-0.2707728147506714,
-0.23055680096149445,
0.22513435781002045,
0.06293804198503494,
-0.0009813344804570079,
0.07477187365293503,
0.23143574595451355,
-0.014073565602302551,
0.10761629045009613,
-0.44032806158065796,
-0.42131611704826355,
0.696571946144104,
-0.053116653114557266,
-0.22330425679683685,
-0.328387975692749,
0.1428041160106659,
0.047794923186302185,
0.2180054932832718,
-0.7143522500991821,
-0.1181040108203888,
0.34353554248809814,
-0.10297281295061111,
-0.36630547046661377,
0.2125728726387024,
0.1637897491455078,
-0.1559288203716278,
-0.12147201597690582,
0.3115529417991638,
0.07703442871570587,
-0.05439949035644531,
-0.028304263949394226,
-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.07074624300003052,
0.4125891327857971,
-0.15505769848823547,
0.23369519412517548,
-0.37456196546554565,
-0.31046774983406067,
0.17580492794513702,
0.2741082012653351,
-0.18740256130695343,
0.0843263566493988,
-0.09903489798307419,
0.23551174998283386,
-0.17405052483081818,
0.41475310921669006,
0.15612365305423737,
-0.14106254279613495,
-0.1745983064174652,
0.327969491481781,
0.020436212420463562,
0.12347796559333801,
0.21680647134780884,
-0.003543540835380554,
-0.13980622589588165,
0.18104073405265808,
0.09574957937002182,
-0.08277667313814163,
0.07685831189155579,
-0.07090333849191666,
-0.005191083997488022,
-0.23778370022773743,
0.1994742751121521,
0.26747700572013855,
0.356966495513916,
0.11032268404960632,
-0.00011817556514870375,
-0.06187989562749863,
-0.007754877209663391,
-0.09154478460550308,
0.10147154331207275,
-0.38690805435180664,
0.0909537598490715,
-0.3763202428817749,
0.11612551659345627,
-0.09428731352090836,
-0.6016393899917603,
-0.22376956045627594,
0.2233293652534485,
-0.20567673444747925,
0.2856590449810028,
-0.14142760634422302,
0.08981342613697052,
0.4285234808921814,
-0.042641498148441315,
0.4334449768066406,
0.2679483890533447,
0.042553119361400604,
-0.3776565194129944,
-0.23143355548381805,
0.44036269187927246,
0.06607911735773087,
-0.18376398086547852,
0.07955871522426605,
-0.10583438724279404,
0.037028003484010696,
0.20910868048667908,
-0.05356215685606003,
-0.2636173665523529,
-0.4229535162448883,
-0.04179643839597702,
0.44769594073295593,
0.6776384711265564,
-0.05532216280698776,
-0.30273503065109253,
-0.1976618766784668,
0.049747880548238754,
-0.12273067235946655,
0.04379422217607498,
0.3050142228603363,
-0.3012388050556183,
0.23117293417453766,
-0.23479105532169342,
-0.5339370965957642,
-0.5878567099571228,
0.4005845785140991,
0.32508742809295654,
0.1725938618183136,
-0.11474785208702087,
0.009719092398881912,
-0.18342332541942596,
-0.14676648378372192,
0.3118993937969208,
0.08408460021018982,
0.34607353806495667,
0.3613797426223755,
0.2314937263727188,
-0.31574398279190063,
-0.12350011616945267,
-0.13074693083763123,
0.12639540433883667,
0.0600149929523468,
0.06277769804000854,
0.3807479739189148,
-0.43438640236854553,
0.18695524334907532,
0.5641592741012573,
-0.3314899504184723,
-0.27328139543533325,
0.2127692848443985,
0.6141759157180786,
-0.22645513713359833,
0.16248133778572083,
0.17312026023864746,
-0.08663184195756912,
0.13383768498897552,
-0.36972475051879883,
-0.1365148425102234,
0.045926958322525024,
-0.37748095393180847,
-0.06414815783500671,
0.1029614806175232,
-0.20011544227600098,
0.07729226350784302,
0.03451868146657944,
0.10051125288009644,
0.060626063495874405,
0.08260151743888855,
0.21943660080432892,
-0.25965583324432373,
0.10024420917034149,
-0.4008680582046509,
0.073674276471138,
-0.3296125531196594,
-0.23051297664642334,
0.19071872532367706,
0.3585130572319031,
0.05251815915107727,
0.1227397695183754,
-0.13629522919654846,
0.16618943214416504,
0.09493301808834076,
0.18213099241256714,
-0.0007121143862605095,
0.2064189612865448,
0.28371304273605347,
-0.1496317982673645,
-0.21350723505020142,
-0.20833434164524078,
-0.0681237056851387,
-0.26541951298713684,
0.4042988717556,
-0.2182292342185974,
-0.3589206039905548,
-0.0729401633143425,
-0.07334564626216888,
-0.3603956699371338,
0.04976820945739746,
0.18302810192108154,
0.19234046339988708,
-0.013297058641910553,
-0.35782966017723083,
0.12330305576324463,
0.05403104051947594,
-0.30919939279556274,
-0.3107892870903015,
0.20444642007350922,
0.007935553789138794,
-0.2154359221458435,
0.18703100085258484,
0.08018999546766281,
-0.08996817469596863,
0.0907679945230484,
0.33840838074684143,
-0.35517799854278564,
-0.11716452986001968,
0.12380193173885345,
0.143864244222641,
0.63666832447052,
-0.14841866493225098,
-0.46324512362480164,
0.7736418843269348,
0.005081057548522949,
-0.34999504685401917,
-0.0010329484939575195,
0.5067374110221863,
0.07972904294729233,
-0.09770189225673676,
-0.1144048422574997,
0.7414237856864929,
0.04943148046731949,
0.0938224196434021,
-0.17055153846740723,
-0.45206519961357117,
0.479966402053833,
0.3717120289802551,
-0.007751192897558212,
0.04473171755671501,
0.2441883087158203,
0.36080989241600037,
0.284561425447464,
-0.061093855649232864,
0.06696189194917679,
-0.03511735796928406,
0.10619685053825378,
0.20224568247795105,
-0.002893386408686638,
-0.2733083963394165,
0.08349691331386566,
-0.155523419380188,
-0.5438966751098633,
0.14995276927947998,
0.03363049030303955,
-0.16799290478229523,
0.2288634479045868,
-0.09965131431818008,
0.1972912847995758,
-0.04122773930430412,
0.013613972812891006,
-0.005066372454166412,
-0.058557577431201935,
-0.02379520609974861,
-0.35767751932144165,
-0.04813777655363083,
-0.14946895837783813,
-0.1534275859594345,
-0.03648165985941887,
0.23511089384555817,
0.06540079414844513,
-0.054739244282245636,
0.3041163980960846,
0.5591766834259033,
-0.013573497533798218,
-0.1076306700706482,
0.18229153752326965,
0.1524808406829834,
-0.18574191629886627,
0.2442176342010498,
0.07262863963842392,
0.5805903077125549,
0.34322208166122437,
-0.1757591813802719,
0.25984764099121094,
0.3666486144065857,
-0.03411582484841347,
0.17336463928222656,
0.09843334555625916,
0.7042983770370483,
-0.26380300521850586,
-0.16168436408042908,
-0.032196953892707825,
-0.14915591478347778,
-0.00489465519785881,
-0.17357897758483887,
-0.3520435690879822,
-0.030490707606077194,
0.010925915092229843,
-0.26669201254844666,
0.13070373237133026,
-0.03182368725538254,
-0.5742007493972778,
0.22588378190994263,
-0.10887053608894348,
-0.08774706721305847,
0.3051651120185852,
-0.026193492114543915,
-0.027433320879936218,
-0.06498025357723236,
0.14794021844863892,
0.29786187410354614,
0.3659076392650604,
0.11138477176427841,
-0.1728375405073166,
-0.07313038408756256,
-0.11755409091711044,
-0.14168640971183777,
-0.0020142868161201477,
-0.05932721495628357,
0.15234863758087158,
0.04910041764378548,
0.19651727378368378,
0.3548049330711365,
-0.06706574559211731,
0.17883916199207306,
-0.07302781939506531,
0.09431565552949905,
-0.009576354175806046,
0.12145913392305374,
-0.24237170815467834,
-0.3815986216068268,
0.07225435972213745,
-0.010774635709822178,
-0.13104639947414398,
0.2822650671005249,
0.15543825924396515,
0.1999243050813675,
-0.0822516456246376,
-0.20935265719890594,
-0.269205778837204,
0.48639345169067383,
-0.2974674105644226,
-0.1575264185667038,
-0.08365213871002197,
-0.12402030825614929,
-0.09600303322076797,
0.047506313771009445,
0.3210489749908447,
-0.03602282702922821,
0.3541310727596283,
0.41433894634246826,
0.010744690895080566,
-0.1943298578262329,
-0.3171732723712921,
0.0647919550538063,
0.03165733814239502,
0.24277877807617188,
-0.08615009486675262,
-0.045392781496047974,
0.08745667338371277,
-0.22342568635940552,
-0.07342510670423508,
-0.41961827874183655,
-0.006141637451946735,
-0.2804931104183197,
-0.20802338421344757,
-0.021563474088907242,
-0.2728867530822754,
-0.11800000816583633,
-0.5042937994003296,
-0.1746375858783722,
0.39179420471191406,
0.017545271664857864,
0.44745415449142456,
0.0974576398730278,
-0.2773034870624542,
0.09672728180885315,
0.010926725342869759,
-0.04923988878726959,
-0.07194908708333969,
-0.4233458638191223,
0.2278180867433548,
-0.5833621621131897,
-0.4579359292984009,
-0.11601218581199646,
-0.0033488161861896515,
-0.040158335119485855,
0.2060423046350479,
-0.6257669925689697,
-0.037112053483724594,
0.15288887917995453,
0.292829304933548,
-0.0337185263633728,
-0.27409130334854126,
0.24354009330272675,
0.024767450988292694,
0.07046376913785934,
-0.16556316614151,
-0.1309499591588974,
-0.24976110458374023,
0.024028504267334938,
0.22355236113071442,
0.36314818263053894,
-0.3084198832511902,
0.426425576210022,
0.37140852212905884,
-0.03159812092781067,
-0.10789750516414642,
0.34457236528396606,
0.23109379410743713,
0.15828873217105865,
0.2725987732410431,
0.04248359799385071,
0.15648159384727478,
-0.048344746232032776,
-0.16513694822788239,
0.3218413293361664,
0.11502653360366821,
-0.47172117233276367,
-0.34303709864616394,
-0.4360596239566803,
-0.35181725025177,
-0.17525269091129303,
0.14193955063819885,
0.14846119284629822,
0.6546311378479004,
0.034540899097919464,
-0.27659228444099426,
-0.26431185007095337,
-0.5170107483863831,
-0.07062045484781265,
-0.05975958704948425,
0.4708828926086426,
0.12225136905908585,
-0.03377481549978256,
-0.2277192771434784,
-0.4081258773803711,
-0.08944626152515411,
0.11263327300548553,
0.38847610354423523,
-0.19865626096725464,
0.32960245013237,
0.29832518100738525,
-0.014294035732746124,
-0.028423473238945007,
-0.10287860780954361,
0.18477673828601837,
0.07035708427429199,
-0.12497665733098984,
-0.09494064003229141,
0.31987708806991577,
-0.11207133531570435,
0.3463820517063141,
0.16395710408687592,
0.37339258193969727,
-0.13242176175117493,
-0.4414401054382324,
0.18519070744514465,
-0.08167632669210434,
-0.2308584302663803,
-0.19436705112457275,
0.1598493903875351,
-0.05524259805679321,
-0.1051105484366417,
-0.08356515318155289,
-0.15088921785354614,
0.09031912684440613,
-0.1171172484755516,
0.12779206037521362,
0.08800557255744934,
0.31558480858802795,
0.2185901403427124,
0.049271147698163986,
-0.1255628764629364,
0.22096192836761475,
-0.07330399751663208,
0.23697088658809662,
0.3940106928348541,
-0.20949570834636688,
0.24120959639549255,
0.31670138239860535,
0.11623591184616089,
0.05328387767076492,
0.04917430132627487,
0.4401216506958008,
0.4852979779243469,
0.10083597898483276,
-0.021520495414733887,
-0.050570420920848846,
-0.1575634628534317,
-0.2853376865386963,
-0.04306578263640404,
0.04314587265253067,
-0.33800259232521057,
0.12887781858444214,
-0.15015023946762085,
0.4707925021648407,
-0.15668392181396484,
-0.1687043011188507,
0.06552640348672867,
0.007811799645423889,
-0.18113607168197632,
0.4684833288192749,
0.31608104705810547,
1.0504854917526245,
-0.3008877635002136,
0.4145286977291107,
-0.01556246355175972,
-0.05842071771621704,
0.5179594159126282,
-0.43143224716186523,
0.021200796589255333,
-0.16928397119045258,
0.18253640830516815,
-0.16509409248828888,
-0.017548851668834686,
0.10861193388700485,
0.04740366339683533,
0.17441652715206146,
0.1485571563243866,
0.3124348521232605,
-0.16895568370819092,
0.05636823922395706,
0.3495244085788727,
0.355099618434906,
-0.2769206464290619,
-0.41733771562576294,
-0.008703609928488731,
-0.221589133143425,
0.23593933880329132,
-0.0035173920914530754,
-0.5324000120162964,
-0.0602276436984539,
0.26438456773757935,
-0.20981979370117188,
-0.07542338967323303,
-0.1397765576839447,
0.0012058410793542862,
0.11346293985843658,
-0.3987618684768677,
0.5135901570320129,
0.4438517987728119,
0.24989017844200134,
0.1626676619052887,
-0.534772515296936,
-0.2794634997844696,
-0.27124327421188354,
-0.33801427483558655,
0.1475774496793747,
0.25291937589645386,
0.29253485798835754,
-0.25894594192504883,
-0.14388203620910645,
0.09599380195140839,
0.03656087443232536,
-0.6549979448318481,
-0.1946157068014145,
0.038900140672922134,
0.43390142917633057,
-0.1514924168586731,
-0.10141415894031525,
0.225987046957016,
-0.31711041927337646,
0.10880300402641296,
0.05516856536269188,
0.40227222442626953,
-0.11327187716960907,
-0.030477263033390045,
0.2982134521007538,
-0.09445361793041229,
0.0758533701300621,
0.2888762652873993,
0.21159988641738892,
-0.0030282288789749146,
0.21330693364143372,
-0.08310566842556,
0.04972132295370102,
-0.05991744250059128,
0.30895474553108215,
-0.12532179057598114,
-0.12440675497055054,
-0.2226339429616928,
0.2691507637500763,
-0.1552935242652893,
-0.19633661210536957,
0.32665178179740906,
-0.02832387387752533,
-0.26741456985473633,
-0.20959629118442535,
-0.597756564617157,
-0.2025802731513977,
0.33843737840652466,
-0.12175707519054413,
-0.06113151088356972,
0.024283595383167267,
0.45090171694755554,
0.030647682026028633,
0.16034674644470215,
-0.1998889446258545,
0.23167267441749573,
-0.2023940533399582,
0.20827160775661469,
0.28603243827819824,
-0.01229165866971016,
-0.15751293301582336,
0.11341060698032379,
-0.11093996465206146,
0.09077942371368408,
-0.19757427275180817,
-0.07712085545063019,
-0.12022098898887634,
0.2204321026802063,
0.32478493452072144,
-0.4146476984024048,
-0.22244778275489807,
-0.7372862100601196,
-0.24967768788337708,
0.05212967470288277,
0.028632722795009613,
0.1434052288532257,
0.009585488587617874,
0.23504813015460968,
-0.09540414810180664,
0.2745670676231384,
-0.03994003310799599,
0.32951411604881287,
0.19335700571537018,
0.4057549834251404,
-0.131605863571167,
0.32671815156936646,
-0.009461174719035625,
-0.13540229201316833,
0.0131142009049654,
-0.05089440196752548,
0.28995805978775024,
-0.05742646008729935,
0.6205946207046509,
-0.11051106452941895,
-0.044255610555410385,
0.027066705748438835,
0.14211887121200562,
0.018096905201673508,
-0.061810314655303955,
0.3354996144771576,
0.16487213969230652,
-0.024212313815951347,
-0.26410529017448425,
-0.2132459431886673,
-0.11394953727722168,
0.18062730133533478,
-0.20428837835788727,
-0.04696422070264816,
0.6455293893814087,
0.20423316955566406,
0.1332348734140396,
-0.25955113768577576,
-0.017549414187669754,
-0.2535313367843628,
-0.3921937942504883,
0.061693351715803146,
-0.2349589616060257,
-0.040769923478364944,
-0.12461564689874649,
0.33568817377090454,
0.001650795340538025,
0.09950590878725052,
0.21405959129333496,
0.351778507232666,
0.26669490337371826,
0.043691061437129974,
0.16047066450119019,
-0.17092157900333405,
-0.20234987139701843,
-0.0662175863981247,
0.37860655784606934,
0.22481432557106018,
-0.3483099639415741,
0.39781323075294495,
0.06788432598114014,
0.1144857332110405,
0.25013917684555054,
0.12667159736156464,
0.07715807855129242,
-0.21949295699596405,
-0.1399853527545929,
-0.05713135749101639,
0.1511865258216858,
-0.1383664608001709,
-0.27141717076301575,
-0.30896925926208496,
0.05635114759206772,
0.2587433457374573,
0.19642865657806396,
-0.12029562890529633,
-0.0749596580862999,
0.39192354679107666,
0.10097195953130722,
-0.22368453443050385,
0.4680722951889038,
-0.2789294719696045,
0.15133191645145416,
0.11756236851215363,
0.19438660144805908,
-0.00259597972035408,
0.09405761957168579,
-0.49879878759384155,
0.03577272966504097,
-0.5205503702163696,
-0.05581216141581535,
-0.017878888174891472,
0.39849504828453064,
0.3403483033180237,
-0.11760419607162476,
0.33159568905830383,
-0.11050083488225937,
0.08635209500789642,
0.17134159803390503,
0.05799460411071777,
0.14569081366062164,
-0.20984745025634766,
0.4859400987625122,
0.0796208381652832,
-0.42979028820991516,
0.07701009511947632,
-0.17396530508995056,
0.12410712987184525,
0.1104915663599968,
0.4481087625026703,
-0.13656054437160492,
0.09848564118146896,
-0.15721996128559113,
0.032108817249536514,
-0.1452290266752243,
0.3510953187942505,
0.21824121475219727,
0.5691321492195129,
-0.08776050806045532,
-0.2063828706741333,
-0.30887413024902344,
0.41027337312698364,
0.19981621205806732,
-0.08338174968957901,
0.061262305825948715,
0.1454937905073166,
0.35953208804130554,
0.6020908355712891,
-0.25807875394821167,
-0.23854035139083862,
0.08076803386211395,
-0.05949551612138748,
0.06567025184631348,
0.1543278694152832,
-0.24018995463848114,
0.36855098605155945,
-0.12839964032173157,
-0.1714867353439331,
0.2582002282142639,
-0.31682124733924866,
-0.10800972580909729,
-0.2567023038864136,
0.14525003731250763,
-0.09997622668743134,
0.26468926668167114,
0.424032986164093,
-0.04641503095626831,
0.07380485534667969,
0.005906529724597931,
-0.10547968000173569,
-0.18524637818336487,
-0.0544455386698246,
-0.03908761963248253,
-0.1180693581700325,
0.183038592338562,
-0.07899463921785355,
-0.3894796669483185,
0.07684427499771118,
-0.13212300837039948,
-0.08786100894212723,
-0.3873869776725769,
0.2484510838985443,
0.2884966731071472,
-0.15541911125183105,
-0.38098564743995667,
0.10061585158109665,
-0.014935783110558987,
0.37895873188972473,
-0.1933860182762146,
-0.2485031932592392,
-0.13454794883728027,
0.15187981724739075,
0.22215883433818817,
-0.7115592360496521,
0.05267715826630592,
0.11639796942472458,
0.18238353729248047,
0.11141577363014221,
-0.14425884187221527,
-0.4165102243423462,
0.0034096911549568176,
0.10304266959428787,
0.07603929936885834,
-0.0012033898383378983,
-0.09351618587970734,
-0.027177125215530396,
-0.14140236377716064,
-0.16165576875209808,
0.3910859227180481,
-0.11327218264341354,
0.010249288752675056,
-0.33021432161331177,
-0.375652015209198
] |
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.0166611410677433,
0.399308979511261,
-0.12448681890964508,
0.25485357642173767,
-0.27396249771118164,
-0.2752927243709564,
0.2181887924671173,
0.3080701529979706,
-0.06903794407844543,
0.007815755903720856,
-0.12333714216947556,
0.24154700338840485,
-0.10988638550043106,
0.4313026964664459,
0.22610405087471008,
-0.16052746772766113,
-0.23062542080879211,
0.32906588912010193,
0.07516423612833023,
0.12781353294849396,
0.17984184622764587,
0.01081728283315897,
-0.02771022915840149,
0.1978323757648468,
0.1053762435913086,
-0.022412417456507683,
0.03913833200931549,
-0.011053338646888733,
0.0493096187710762,
-0.28079885244369507,
0.21947124600410461,
0.14611348509788513,
0.37114885449409485,
0.10421361774206161,
-0.00011948650353588164,
0.054781973361968994,
0.0042791180312633514,
-0.17003877460956573,
0.014008767902851105,
-0.5010939836502075,
0.1181788221001625,
-0.45906123518943787,
0.21272744238376617,
-0.1323254406452179,
-0.5507674813270569,
-0.3828504979610443,
0.19534136354923248,
-0.2550380229949951,
0.4459575414657593,
-0.013473675586283207,
0.09721764922142029,
0.3948138356208801,
-0.02383476123213768,
0.43012893199920654,
0.15169566869735718,
0.1558130383491516,
-0.2978109121322632,
-0.15469075739383698,
0.32564061880111694,
0.05765601247549057,
-0.1445103883743286,
-0.026069555431604385,
-0.06318286806344986,
0.10818792879581451,
0.16940312087535858,
0.001147962175309658,
-0.2196286916732788,
-0.32779690623283386,
-0.06281672418117523,
0.399366170167923,
0.5945553183555603,
-0.027526818215847015,
-0.2495575249195099,
-0.2670370638370514,
0.03197764232754707,
-0.19983568787574768,
0.07112395018339157,
0.41188761591911316,
-0.2896342873573303,
0.2282143086194992,
-0.33820322155952454,
-0.4331630766391754,
-0.5370649695396423,
0.4045122265815735,
0.3479420244693756,
0.07094396650791168,
-0.09333499521017075,
0.08607039600610733,
-0.162771537899971,
-0.19940190017223358,
0.19738107919692993,
-0.002352636307477951,
0.39074400067329407,
0.3041096031665802,
0.17766518890857697,
-0.3675432503223419,
-0.1347595751285553,
-0.3807201683521271,
0.09895717352628708,
-0.009018760174512863,
0.020653482526540756,
0.3384735584259033,
-0.37440410256385803,
0.21210047602653503,
0.5879604816436768,
-0.23452720046043396,
-0.22414571046829224,
0.2144235074520111,
0.4542487859725952,
-0.24939653277397156,
0.0432516373693943,
0.08235451579093933,
-0.052257854491472244,
0.11467445641756058,
-0.4078923165798187,
-0.1083296611905098,
0.056706495583057404,
-0.32208630442619324,
-0.0730876550078392,
0.034062642604112625,
-0.2571914792060852,
0.04769553989171982,
-0.04375041276216507,
0.17946097254753113,
0.06989093124866486,
0.10436512529850006,
0.28446638584136963,
-0.18182875216007233,
0.11766267567873001,
-0.39729174971580505,
0.061134692281484604,
-0.25400838255882263,
-0.1454836130142212,
0.22000105679035187,
0.41758444905281067,
0.09415102005004883,
0.18390734493732452,
-0.25770047307014465,
0.1028042659163475,
-0.02065717801451683,
0.14762946963310242,
-0.10186316072940826,
0.24993455410003662,
0.24646835029125214,
-0.030419781804084778,
-0.2639298439025879,
-0.09562695026397705,
-0.119114950299263,
-0.32326871156692505,
0.3597041964530945,
-0.2853338420391083,
-0.36305686831474304,
-0.11320130527019501,
-0.0605299137532711,
-0.40566885471343994,
0.09963822364807129,
0.11045603454113007,
0.19050224125385284,
0.025118954479694366,
-0.3158794939517975,
0.025438614189624786,
0.020331725478172302,
-0.3600459694862366,
-0.2895980775356293,
0.21121543645858765,
-0.04225665330886841,
-0.25298967957496643,
0.08363297581672668,
0.07342403382062912,
-0.10136473178863525,
0.062259919941425323,
0.38707679510116577,
-0.39094462990760803,
-0.08913078159093857,
0.06431100517511368,
0.24207405745983124,
0.6808614730834961,
-0.08777859807014465,
-0.37457019090652466,
0.8095403909683228,
-0.08523211628198624,
-0.35043397545814514,
-0.0121513232588768,
0.4251956641674042,
0.11005768179893494,
0.003903194796293974,
-0.07410188019275665,
0.845055878162384,
0.04807925969362259,
0.13011924922466278,
-0.21992962062358856,
-0.5326387882232666,
0.5446044206619263,
0.37697088718414307,
-0.055648963898420334,
0.0064388662576675415,
0.23600268363952637,
0.2765706479549408,
0.3048281967639923,
-0.0953294038772583,
0.11235428601503372,
0.059296514838933945,
0.053882017731666565,
0.23070277273654938,
-0.03485322371125221,
-0.2128131091594696,
-0.029398061335086823,
-0.1252921223640442,
-0.44511812925338745,
0.01704801619052887,
0.023571982979774475,
-0.14780005812644958,
0.17492473125457764,
-0.09533220529556274,
0.1014208048582077,
0.0133183803409338,
0.04360252618789673,
0.07381930202245712,
0.02790389582514763,
0.049212101846933365,
-0.26688146591186523,
-0.093244768679142,
-0.12856322526931763,
-0.18142345547676086,
-0.09822028875350952,
0.33344918489456177,
0.06965789198875427,
-0.06885156780481339,
0.32233095169067383,
0.5017091631889343,
0.0012492500245571136,
-0.11836866289377213,
0.1183098703622818,
0.1488814651966095,
-0.12877686321735382,
0.3108654022216797,
-0.025182276964187622,
0.5072879195213318,
0.24617360532283783,
-0.18755999207496643,
0.20041579008102417,
0.34776434302330017,
0.009959655813872814,
0.14492905139923096,
0.00776282325387001,
0.7716162800788879,
-0.2840050756931305,
-0.10250718146562576,
-0.044463060796260834,
-0.1314362734556198,
0.0763070359826088,
-0.19331026077270508,
-0.285468727350235,
-0.0716615840792656,
0.013610713183879852,
-0.266061395406723,
0.14431506395339966,
-0.038984961807727814,
-0.5130635499954224,
0.14891600608825684,
0.0806601345539093,
-0.03164796158671379,
0.2720549702644348,
0.04707808047533035,
-0.05269020050764084,
-0.1681954562664032,
0.16841210424900055,
0.2464761584997177,
0.4391747713088989,
0.0823371484875679,
-0.16129951179027557,
-0.05114908516407013,
-0.10215341299772263,
-0.1314152330160141,
-0.02501436322927475,
-0.10199250280857086,
0.26863616704940796,
0.10202077776193619,
0.26946085691452026,
0.26818326115608215,
-0.03586437553167343,
0.25450068712234497,
-0.010303804650902748,
0.07453763484954834,
-0.0335334911942482,
0.16708725690841675,
-0.30166754126548767,
-0.38077312707901,
-0.0498780831694603,
-0.01349837426096201,
-0.06966672837734222,
0.24533472955226898,
0.07427364587783813,
0.1491193026304245,
-0.10158349573612213,
-0.2358609139919281,
-0.20409639179706573,
0.3944397270679474,
-0.3479894697666168,
-0.2545349895954132,
-0.029971500858664513,
-0.1484677642583847,
-0.1017737165093422,
0.016280468553304672,
0.3572627902030945,
0.12277758121490479,
0.3335724472999573,
0.3912314772605896,
-0.07780145108699799,
-0.04468671977519989,
-0.21032729744911194,
0.05043724551796913,
0.08046859502792358,
0.2831277549266815,
-0.10115723311901093,
0.0038767606019973755,
0.09026339650154114,
-0.2536839544773102,
0.03191037476062775,
-0.34466204047203064,
-0.0655554011464119,
-0.19267120957374573,
-0.11883755028247833,
-0.017507294192910194,
-0.32316669821739197,
-0.10839546471834183,
-0.631031334400177,
-0.20553524792194366,
0.5200815796852112,
0.06380613148212433,
0.4213789701461792,
0.03221961110830307,
-0.22505705058574677,
0.12849901616573334,
-0.02327510342001915,
-0.0056153554469347,
-0.08609515428543091,
-0.32068949937820435,
0.16095636785030365,
-0.5506548285484314,
-0.48488959670066833,
-0.058053258806467056,
-0.016475804150104523,
-0.06891956925392151,
0.14133641123771667,
-0.6018840670585632,
-0.016309723258018494,
0.11172790080308914,
0.23893052339553833,
-0.029066450893878937,
-0.3738022744655609,
0.32660436630249023,
-0.031582750380039215,
0.10523883998394012,
-0.13301515579223633,
-0.18412858247756958,
-0.1981927454471588,
0.09805648773908615,
0.16473983228206635,
0.36038655042648315,
-0.17186248302459717,
0.49045059084892273,
0.4867071509361267,
0.031825121492147446,
-0.2435642033815384,
0.3236866295337677,
0.1442010998725891,
0.14020711183547974,
0.2634190320968628,
-0.025552239269018173,
0.08859400451183319,
-0.11944100260734558,
-0.15273351967334747,
0.3284187912940979,
0.018948955461382866,
-0.391152024269104,
-0.34893739223480225,
-0.36777830123901367,
-0.3942299485206604,
-0.2331295907497406,
0.16498669981956482,
0.1421857476234436,
0.6201727390289307,
0.046695347875356674,
-0.2608414590358734,
-0.2799126207828522,
-0.5743584036827087,
-0.18832354247570038,
0.033373311161994934,
0.45417821407318115,
0.17945507168769836,
-0.21989323198795319,
-0.32183659076690674,
-0.34830325841903687,
-0.05763247609138489,
0.12599533796310425,
0.5013285279273987,
-0.17607010900974274,
0.23615792393684387,
0.2682362198829651,
-0.0649799108505249,
-0.0827491283416748,
-0.06251531839370728,
0.18408174812793732,
0.1204330176115036,
-0.21595698595046997,
-0.1733558475971222,
0.27787378430366516,
-0.11544865369796753,
0.2914929986000061,
0.15797311067581177,
0.4518985152244568,
-0.12684807181358337,
-0.43446481227874756,
0.07403737306594849,
-0.001867831451818347,
-0.25971677899360657,
-0.1623038351535797,
0.08585673570632935,
-0.0005458593368530273,
-0.16808590292930603,
-0.16179513931274414,
-0.2033611238002777,
0.18950463831424713,
-0.17801566421985626,
0.2198018878698349,
0.03692738339304924,
0.33168691396713257,
0.17515721917152405,
0.021388240158557892,
-0.062215857207775116,
0.184296116232872,
-0.06513462960720062,
0.18519051373004913,
0.46014609932899475,
-0.19891424477100372,
0.2502400875091553,
0.3350358009338379,
0.033097706735134125,
0.00616300106048584,
0.03432246670126915,
0.4424748420715332,
0.44675540924072266,
0.14275552332401276,
0.08311404287815094,
-0.06380142271518707,
-0.2052031010389328,
-0.33139467239379883,
0.0394388847053051,
0.026397623121738434,
-0.3888711929321289,
0.24937616288661957,
-0.11477277427911758,
0.42628616094589233,
-0.14394918084144592,
-0.1177992969751358,
0.019291356205940247,
-0.17398826777935028,
-0.20694372057914734,
0.4962054491043091,
0.3118319809436798,
0.9623209834098816,
-0.2769501209259033,
0.4369775652885437,
-0.0007591377943754196,
-0.07967591285705566,
0.5795755982398987,
-0.3859027624130249,
0.035377003252506256,
-0.2179759442806244,
0.20228177309036255,
-0.11167587339878082,
-0.07959277927875519,
0.1102612242102623,
0.04711657762527466,
0.15165255963802338,
0.10285431891679764,
0.3529247045516968,
-0.15647819638252258,
0.018794283270835876,
0.42419055104255676,
0.3827804625034332,
-0.24764060974121094,
-0.45842427015304565,
-0.018389441072940826,
-0.2846643924713135,
0.1845099925994873,
0.0521555095911026,
-0.5859041810035706,
-0.09935219585895538,
0.19032712280750275,
-0.2218102365732193,
-0.02619483508169651,
-0.0932060033082962,
0.10910718142986298,
0.1207721084356308,
-0.3754255175590515,
0.4350092113018036,
0.4593999981880188,
0.14468519389629364,
0.15060320496559143,
-0.49958503246307373,
-0.33251452445983887,
-0.3276658356189728,
-0.30557939410209656,
0.14674687385559082,
0.20235246419906616,
0.2135426253080368,
-0.18065854907035828,
-0.11238057166337967,
0.0807519406080246,
0.03613229840993881,
-0.6247404217720032,
-0.14627927541732788,
0.049061041325330734,
0.3756270408630371,
-0.13727732002735138,
-0.21921080350875854,
0.16352179646492004,
-0.32955601811408997,
0.12008310854434967,
0.05588705092668533,
0.3473135232925415,
-0.09220188111066818,
-0.07711934298276901,
0.3084155321121216,
-0.1292669028043747,
0.09501253068447113,
0.3675634264945984,
0.17772585153579712,
0.04510693997144699,
0.3061803877353668,
-0.08062249422073364,
0.06714760512113571,
-0.07237400859594345,
0.42557916045188904,
-0.15064853429794312,
-0.10599374771118164,
-0.24453867971897125,
0.24785494804382324,
-0.13264212012290955,
-0.19672204554080963,
0.3327680826187134,
-0.017812684178352356,
-0.2137255072593689,
-0.13648967444896698,
-0.6354275345802307,
-0.2036851942539215,
0.41106951236724854,
-0.12021009624004364,
-0.027987610548734665,
0.12538594007492065,
0.49233850836753845,
-0.03415512666106224,
0.196440652012825,
-0.1920214295387268,
0.2586784362792969,
-0.25826752185821533,
0.25049906969070435,
0.26319587230682373,
-0.024443209171295166,
-0.13391214609146118,
0.05714389309287071,
-0.09819895774126053,
0.1221236065030098,
-0.22535309195518494,
-0.08482959866523743,
-0.08733423054218292,
0.2244146317243576,
0.3185936510562897,
-0.3540012240409851,
-0.31491243839263916,
-0.7644436955451965,
-0.25448498129844666,
0.052877090871334076,
-0.0703580230474472,
0.08331477642059326,
-0.01358775794506073,
0.2956673502922058,
-0.18384487926959991,
0.2990155518054962,
-0.11414313316345215,
0.2512919008731842,
0.061095837503671646,
0.4579068422317505,
-0.20315209031105042,
0.30619627237319946,
0.03425193950533867,
-0.05342422425746918,
-0.16962909698486328,
-0.07552257925271988,
0.2967064380645752,
0.01771656796336174,
0.5531837940216064,
-0.10111859440803528,
-0.05428265780210495,
-0.07679068297147751,
0.11798937618732452,
0.11212456971406937,
-0.16261239349842072,
0.44377604126930237,
0.25621727108955383,
-0.028037054464221,
-0.17090833187103271,
-0.13441072404384613,
0.05056065693497658,
0.1887209415435791,
-0.19456693530082703,
-0.03859073668718338,
0.6310538649559021,
0.20193234086036682,
0.15444928407669067,
-0.23505431413650513,
0.028264079242944717,
-0.21318796277046204,
-0.31820690631866455,
0.1499149352312088,
-0.23676159977912903,
-0.0561610572040081,
-0.1369696706533432,
0.35654374957084656,
0.10275911539793015,
0.02305331453680992,
0.22358649969100952,
0.32329294085502625,
0.14927931129932404,
0.09563450515270233,
0.1313738077878952,
-0.16078157722949982,
-0.1441289484500885,
0.005066603422164917,
0.3178524971008301,
0.26332464814186096,
-0.34172776341438293,
0.473542720079422,
0.016995172947645187,
0.0939851701259613,
0.19794468581676483,
0.15973404049873352,
0.09638398885726929,
-0.17272424697875977,
-0.2211102694272995,
0.0090336874127388,
0.016727417707443237,
-0.07874422520399094,
-0.2220301628112793,
-0.3007408380508423,
0.009092159569263458,
0.27612102031707764,
0.1736832559108734,
-0.10547047108411789,
0.02422935515642166,
0.41500943899154663,
-0.008884787559509277,
-0.22980210185050964,
0.49493131041526794,
-0.27476900815963745,
0.19471698999404907,
0.1332116276025772,
0.10980162769556046,
-0.01706724986433983,
0.13715294003486633,
-0.470630019903183,
-0.03873096778988838,
-0.4303729832172394,
-0.07534746825695038,
-0.031921807676553726,
0.4246704876422882,
0.3504910469055176,
-0.14741116762161255,
0.42880311608314514,
-0.0736389234662056,
0.07250548154115677,
0.134260356426239,
0.08079354465007782,
0.1512715071439743,
-0.2141336351633072,
0.5109360814094543,
0.057175636291503906,
-0.3916724920272827,
0.10184278339147568,
-0.23789724707603455,
0.06556764990091324,
0.06086929887533188,
0.39611563086509705,
-0.011190759018063545,
0.18756359815597534,
-0.1559862345457077,
0.02204413339495659,
-0.1954658031463623,
0.3519827127456665,
0.14415057003498077,
0.4340546429157257,
-0.02151249721646309,
-0.18801602721214294,
-0.3388272523880005,
0.32614436745643616,
0.11113974452018738,
-0.14464271068572998,
-0.029238548129796982,
0.2379915863275528,
0.36073175072669983,
0.5662307143211365,
-0.4303022623062134,
-0.08955153077840805,
0.07916448265314102,
-0.018634498119354248,
0.07888145744800568,
0.07071326673030853,
-0.18034027516841888,
0.3250214159488678,
-0.14650322496891022,
-0.21754446625709534,
0.23013828694820404,
-0.27847638726234436,
-0.09561401605606079,
-0.26709866523742676,
0.12642885744571686,
-0.16328980028629303,
0.3355622887611389,
0.4106149673461914,
-0.04699231684207916,
0.14893165230751038,
-0.012030793353915215,
-0.05277739465236664,
-0.15929530560970306,
-0.059443119913339615,
-0.01921890303492546,
-0.009469233453273773,
0.1541530340909958,
0.07983152568340302,
-0.4466334581375122,
0.22089986503124237,
-0.1681688278913498,
-0.16169463098049164,
-0.41713911294937134,
0.1572965383529663,
0.3395819365978241,
-0.16996362805366516,
-0.40200668573379517,
0.14479270577430725,
0.09511909633874893,
0.35824453830718994,
-0.20508790016174316,
-0.2601105868816376,
-0.1358627825975418,
0.2257997989654541,
0.21834491193294525,
-0.689231812953949,
0.02447059005498886,
0.17869694530963898,
0.12607116997241974,
0.10742107033729553,
-0.13446426391601562,
-0.31049224734306335,
-0.023372948169708252,
0.18232464790344238,
0.003911245614290237,
0.04220903292298317,
-0.04907673969864845,
0.011735479347407818,
-0.11201585829257965,
-0.19426202774047852,
0.3277130126953125,
-0.037101127207279205,
-0.02719723992049694,
-0.37191662192344666,
-0.3669281601905823
] |
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.02584892138838768,
0.3822515606880188,
-0.14741937816143036,
0.18580970168113708,
-0.32080650329589844,
-0.2908135950565338,
0.1759025901556015,
0.3123895525932312,
-0.2786034047603607,
0.07938148081302643,
-0.0625796914100647,
0.29266858100891113,
-0.0952908918261528,
0.4064877927303314,
0.16315512359142303,
-0.2160252034664154,
-0.2121717929840088,
0.3283575177192688,
0.03996557369828224,
0.16072851419448853,
0.3044925034046173,
0.030508246272802353,
-0.06680230796337128,
0.24389202892780304,
0.13394860923290253,
-0.11411387473344803,
0.11441528797149658,
-0.1650366485118866,
0.04759315401315689,
-0.27385786175727844,
0.1451490968465805,
0.1825236976146698,
0.26050299406051636,
0.06819084286689758,
-0.00011851899762405083,
-0.06301284581422806,
0.008069828152656555,
-0.12199345231056213,
0.18052470684051514,
-0.32967931032180786,
0.16983020305633545,
-0.4010593295097351,
0.10109623521566391,
-0.07598685473203659,
-0.6062314510345459,
-0.1920442283153534,
0.22625097632408142,
-0.16149257123470306,
0.23302072286605835,
-0.15367698669433594,
0.11259126663208008,
0.37793803215026855,
0.10146439075469971,
0.44823986291885376,
0.22354570031166077,
0.03624458238482475,
-0.34354496002197266,
-0.33519259095191956,
0.4353993833065033,
0.08314577490091324,
-0.10787748545408249,
0.12736310064792633,
-0.08489670604467392,
-0.01663248986005783,
0.06925056129693985,
-0.049577053636312485,
-0.11093687266111374,
-0.4897409975528717,
0.003260735422372818,
0.4364347457885742,
0.6228166818618774,
-0.06771218031644821,
-0.23187701404094696,
-0.18264275789260864,
0.11057718843221664,
-0.12962478399276733,
0.014973822981119156,
0.2753041088581085,
-0.3189118504524231,
0.18093226850032806,
-0.1930094063282013,
-0.46424049139022827,
-0.5439634323120117,
0.3049424886703491,
0.36717575788497925,
0.04105548933148384,
-0.1337723284959793,
0.007669083774089813,
-0.18465867638587952,
-0.21361778676509857,
0.1772068589925766,
0.06202523037791252,
0.39483070373535156,
0.2782179117202759,
0.3060155510902405,
-0.41166359186172485,
-0.1094631776213646,
-0.23723682761192322,
0.11591193825006485,
-0.04353519529104233,
0.013556186109781265,
0.3441677987575531,
-0.4206794202327728,
0.16619989275932312,
0.44766613841056824,
-0.3055671751499176,
-0.2571881115436554,
0.2101716846227646,
0.6010370254516602,
-0.2004004269838333,
0.10962605476379395,
0.15073654055595398,
0.016362778842449188,
0.10816062241792679,
-0.3722080588340759,
-0.11316054314374924,
0.04034440964460373,
-0.37062448263168335,
-0.1459183543920517,
0.14065352082252502,
-0.2036222219467163,
0.13351979851722717,
0.0404556505382061,
0.1339014619588852,
0.04624118283390999,
0.09962455183267593,
0.21972467005252838,
-0.2955411672592163,
0.1329728364944458,
-0.44026029109954834,
0.12080121785402298,
-0.3411674499511719,
-0.23466560244560242,
0.2266020029783249,
0.3104592263698578,
0.16577163338661194,
0.13072516024112701,
-0.08473581820726395,
0.10263893753290176,
0.05193210393190384,
0.1602880209684372,
-0.06119583547115326,
0.26535698771476746,
0.22815600037574768,
-0.1429544985294342,
-0.2057066112756729,
-0.22077889740467072,
-0.04442957416176796,
-0.25506526231765747,
0.4310937523841858,
-0.2649881839752197,
-0.3226994574069977,
-0.04425204545259476,
-0.0621584914624691,
-0.32813161611557007,
0.04347022622823715,
0.331488698720932,
0.2257239818572998,
0.07235201448202133,
-0.3221588432788849,
0.15311966836452484,
0.053211867809295654,
-0.32429423928260803,
-0.3337929844856262,
0.1474684327840805,
-0.11213810741901398,
-0.12445136904716492,
0.16849707067012787,
0.14529994130134583,
-0.0814068615436554,
0.14597748219966888,
0.3059074282646179,
-0.37734025716781616,
-0.21750229597091675,
0.10776747763156891,
0.1623142808675766,
0.7060902118682861,
-0.09300819039344788,
-0.4636056125164032,
0.7872028946876526,
-0.03509994596242905,
-0.35845762491226196,
0.05880110338330269,
0.5080549120903015,
0.04483276605606079,
-0.11441339552402496,
-0.1989564597606659,
0.6941426396369934,
0.008913066238164902,
0.13443581759929657,
-0.20069412887096405,
-0.46805521845817566,
0.528642475605011,
0.2506701946258545,
-0.10924863815307617,
0.07148140668869019,
0.17066174745559692,
0.25253328680992126,
0.34447988867759705,
-0.06048014387488365,
0.0776815414428711,
0.056526269763708115,
0.13006748259067535,
0.24427461624145508,
0.016542518511414528,
-0.26781341433525085,
0.1944405436515808,
-0.23787137866020203,
-0.5962440967559814,
0.13793803751468658,
0.0044522881507873535,
-0.22707833349704742,
0.2211284637451172,
-0.11973496526479721,
0.19184421002864838,
-0.11304795742034912,
0.07041889429092407,
0.0728209838271141,
-0.06375159323215485,
0.03599293902516365,
-0.19661778211593628,
-0.1304093301296234,
-0.12175390124320984,
-0.15473119914531708,
0.003904270939528942,
0.21222518384456635,
0.03129737079143524,
-0.0897066593170166,
0.349177747964859,
0.5928794145584106,
0.030088812112808228,
-0.08076640218496323,
0.14765343070030212,
0.07509861141443253,
-0.16316726803779602,
0.2906980514526367,
0.01950201392173767,
0.6055517792701721,
0.30232760310173035,
-0.24512584507465363,
0.14311861991882324,
0.38718274235725403,
-0.03192893788218498,
0.22010859847068787,
0.20579132437705994,
0.6911460757255554,
-0.1732669472694397,
-0.20113125443458557,
-0.035998933017253876,
-0.09387657046318054,
-0.055881425738334656,
-0.2427801638841629,
-0.3530626893043518,
0.009233221411705017,
-0.0009061992168426514,
-0.2990613281726837,
0.10237611830234528,
-0.06318837404251099,
-0.5435876846313477,
0.29885315895080566,
0.04944738745689392,
-0.028558164834976196,
0.3031969666481018,
0.005865361541509628,
0.006882332265377045,
-0.03200947493314743,
0.1325024664402008,
0.22786541283130646,
0.29939234256744385,
0.10438570380210876,
-0.18835033476352692,
-0.07720158249139786,
-0.20152547955513,
-0.11348401755094528,
0.053562283515930176,
-0.08953376114368439,
0.24117115139961243,
0.041297707706689835,
0.25652220845222473,
0.41449469327926636,
0.014173313975334167,
0.22227254509925842,
-0.04231695830821991,
0.07571444660425186,
0.0019611939787864685,
0.1507308930158615,
-0.265951544046402,
-0.42359018325805664,
-0.040043726563453674,
0.029292616993188858,
-0.11782164871692657,
0.26229265332221985,
0.1448419690132141,
0.17112033069133759,
-0.07698903232812881,
-0.17337092757225037,
-0.20953403413295746,
0.3818921446800232,
-0.322921484708786,
-0.15607935190200806,
-0.060211461037397385,
-0.11950136721134186,
-0.08179861307144165,
0.05128374323248863,
0.27458134293556213,
-0.06397552043199539,
0.3549930155277252,
0.450751930475235,
-0.007581643760204315,
-0.19119200110435486,
-0.4339691400527954,
0.018504850566387177,
0.05064596235752106,
0.21697181463241577,
-0.0752498060464859,
-0.0754854828119278,
0.12667684257030487,
-0.23562245070934296,
-0.09456303715705872,
-0.40455102920532227,
-0.0439581498503685,
-0.21158626675605774,
-0.1797848343849182,
-0.01803670823574066,
-0.30645617842674255,
-0.08573085814714432,
-0.45181897282600403,
-0.1782671958208084,
0.411113977432251,
-0.11318044364452362,
0.4838881492614746,
0.12946270406246185,
-0.34233319759368896,
0.07171724736690521,
-0.02147046849131584,
0.11715125292539597,
-0.08485885709524155,
-0.2901400029659271,
0.14699073135852814,
-0.5867852568626404,
-0.4462214708328247,
-0.14776882529258728,
-0.02192026749253273,
0.059353940188884735,
0.16546845436096191,
-0.6037140488624573,
-0.040083881467580795,
0.10733233392238617,
0.2574417293071747,
-0.07115963846445084,
-0.3257620334625244,
0.32781821489334106,
0.0800221711397171,
0.043843112885951996,
-0.203488290309906,
-0.15086211264133453,
-0.26045864820480347,
-0.04602668434381485,
0.22029054164886475,
0.332133948802948,
-0.2968665659427643,
0.5189400315284729,
0.305869996547699,
0.06395545601844788,
-0.17344096302986145,
0.2994435429573059,
0.21573442220687866,
0.09459266066551208,
0.3629148006439209,
0.033070407807826996,
0.10786714404821396,
-0.05552874505519867,
-0.02430073916912079,
0.26750868558883667,
0.017069336026906967,
-0.4916905462741852,
-0.2860350012779236,
-0.4513449966907501,
-0.3015531599521637,
-0.21948330104351044,
0.16382022202014923,
0.12655186653137207,
0.7068166732788086,
0.036745067685842514,
-0.27156490087509155,
-0.2608787417411804,
-0.5439241528511047,
-0.05289949104189873,
0.015836961567401886,
0.43377768993377686,
0.14209572970867157,
-0.02885221131145954,
-0.3666352927684784,
-0.3698001205921173,
-0.09496554732322693,
0.14921002089977264,
0.42363250255584717,
-0.28107038140296936,
0.34981194138526917,
0.21009251475334167,
0.0038338976446539164,
-0.14650364220142365,
-0.11729470640420914,
0.2059972584247589,
0.08635061979293823,
-0.15972201526165009,
-0.06303670257329941,
0.35929885506629944,
-0.14135870337486267,
0.3985803723335266,
0.1767805814743042,
0.3208019733428955,
-0.15469792485237122,
-0.45607990026474,
0.1793258786201477,
-0.1133943647146225,
-0.15584421157836914,
-0.15796154737472534,
0.19279411435127258,
0.014871593564748764,
-0.09565327316522598,
-0.0750451311469078,
-0.16369909048080444,
0.058543507009744644,
-0.21204236149787903,
0.15963634848594666,
0.10090789943933487,
0.30269408226013184,
0.21892443299293518,
0.0021817106753587723,
-0.17074447870254517,
0.20892421901226044,
-0.06172379106283188,
0.13068559765815735,
0.4106844365596771,
-0.21671004593372345,
0.04668024182319641,
0.3789792060852051,
0.12623755633831024,
0.029785936698317528,
0.014284218661487103,
0.48600971698760986,
0.48204806447029114,
0.1425085812807083,
0.0966438427567482,
-0.12117345631122589,
-0.1833416372537613,
-0.2815522849559784,
-0.07235944271087646,
0.08428255468606949,
-0.3303740322589874,
0.21980133652687073,
-0.03574378043413162,
0.33972832560539246,
-0.17577309906482697,
-0.19829827547073364,
0.08994312584400177,
-0.0755002498626709,
-0.1988658308982849,
0.4128497838973999,
0.2725476920604706,
1.0386308431625366,
-0.13736775517463684,
0.3834434151649475,
-0.019691452383995056,
-0.19770695269107819,
0.5154659748077393,
-0.2702786922454834,
0.04349399358034134,
-0.19807907938957214,
0.2364216446876526,
-0.11288753151893616,
-0.04409096762537956,
0.12170563638210297,
-0.062314681708812714,
0.03576218709349632,
0.13585011661052704,
0.32398366928100586,
-0.2967236340045929,
0.06868454813957214,
0.33577868342399597,
0.39971399307250977,
-0.26512718200683594,
-0.393795371055603,
-0.024837182834744453,
-0.25762641429901123,
0.26327162981033325,
0.035974714905023575,
-0.6510300040245056,
-0.09083592891693115,
0.26646775007247925,
-0.2422213852405548,
-0.07490658760070801,
-0.25914397835731506,
-0.0026978254318237305,
0.08725212514400482,
-0.363193154335022,
0.5744146108627319,
0.40638235211372375,
0.2704291045665741,
0.2025241106748581,
-0.49369949102401733,
-0.32035067677497864,
-0.24355769157409668,
-0.3420478105545044,
0.19349312782287598,
0.1921101063489914,
0.3104509115219116,
-0.23762598633766174,
-0.14744165539741516,
0.06901978701353073,
0.0732317864894867,
-0.5395256280899048,
-0.23276278376579285,
-0.045640476047992706,
0.4490935206413269,
-0.17303065955638885,
-0.02851530909538269,
0.18949082493782043,
-0.3881252110004425,
0.07088465988636017,
0.07141970098018646,
0.3598952889442444,
-0.181354820728302,
0.0008805543184280396,
0.2582424283027649,
-0.03910040110349655,
0.10799047350883484,
0.20641201734542847,
0.1971379816532135,
0.04759737849235535,
0.2663506269454956,
-0.19168654084205627,
0.03371099382638931,
-0.08517125248908997,
0.30728524923324585,
-0.1627011001110077,
-0.1438986361026764,
-0.2423142045736313,
0.2242259383201599,
-0.22330670058727264,
-0.1870151162147522,
0.3021791875362396,
-0.13817204535007477,
-0.168093740940094,
-0.1998983919620514,
-0.5592113733291626,
-0.22772696614265442,
0.2929150462150574,
-0.1614447981119156,
-0.09622699022293091,
-0.018293367698788643,
0.6015925407409668,
0.01062958873808384,
0.20081114768981934,
-0.21291479468345642,
0.2726168632507324,
-0.2326042205095291,
0.2589341104030609,
0.2685908079147339,
-0.10048461705446243,
-0.20092429220676422,
0.15223754942417145,
-0.0964113175868988,
0.1559232473373413,
-0.20942167937755585,
-0.07532362639904022,
-0.1471346765756607,
0.19753895699977875,
0.27885833382606506,
-0.4151132106781006,
-0.19198571145534515,
-0.6648953557014465,
-0.25729355216026306,
0.120734803378582,
-0.026087971404194832,
0.07009921967983246,
0.07715904712677002,
0.22838015854358673,
-0.20032702386379242,
0.29886576533317566,
0.019267693161964417,
0.2921554446220398,
0.11981092393398285,
0.45127779245376587,
-0.12378145009279251,
0.29363566637039185,
-0.05241992324590683,
-0.13773493468761444,
-0.05345837026834488,
-0.06985052675008774,
0.2850046157836914,
-0.0946614220738411,
0.6047861576080322,
-0.048357993364334106,
-0.1324417144060135,
0.08570539951324463,
0.029893383383750916,
-0.06609207391738892,
-0.11311987787485123,
0.36234158277511597,
0.16693609952926636,
-0.014274658635258675,
-0.18241526186466217,
-0.17858287692070007,
-0.06315289437770844,
0.16172151267528534,
-0.1925421804189682,
-0.05010291188955307,
0.7015513181686401,
0.26075321435928345,
0.30347979068756104,
-0.25654399394989014,
-0.027614448219537735,
-0.3427494764328003,
-0.3237771689891815,
-0.010047253221273422,
-0.22351741790771484,
-0.03609377518296242,
-0.11985407024621964,
0.34812062978744507,
0.024454861879348755,
-0.04603492468595505,
0.24685993790626526,
0.35494276881217957,
0.2359413206577301,
0.0064906105399131775,
0.22516167163848877,
0.0285889133810997,
-0.22061748802661896,
-0.05360989272594452,
0.303688645362854,
0.2582820653915405,
-0.3693695664405823,
0.4333001375198364,
0.08422063291072845,
0.12183453142642975,
0.31503280997276306,
0.17671430110931396,
0.002523183822631836,
-0.2023652046918869,
-0.12964600324630737,
0.023299001157283783,
0.062039464712142944,
-0.23287822306156158,
-0.24340888857841492,
-0.18386168777942657,
0.08273382484912872,
0.23357051610946655,
0.16296911239624023,
-0.10653460025787354,
-0.11869706958532333,
0.47155168652534485,
0.19821861386299133,
-0.19518816471099854,
0.46477410197257996,
-0.30475354194641113,
0.17824411392211914,
0.11934371292591095,
0.2213314026594162,
0.024607816711068153,
0.04591536521911621,
-0.5211936235427856,
-0.04554156959056854,
-0.4762406051158905,
-0.07266131788492203,
0.01630512624979019,
0.37164250016212463,
0.3945472240447998,
-0.180038720369339,
0.32487738132476807,
-0.12164269387722015,
0.0831218808889389,
0.09598992764949799,
0.11076425015926361,
0.0947461873292923,
-0.19654524326324463,
0.4842380881309509,
0.05747358500957489,
-0.4130127429962158,
0.06285667419433594,
-0.16276156902313232,
0.13540798425674438,
0.1741877645254135,
0.41797247529029846,
-0.10497968643903732,
0.08093439787626266,
-0.17229829728603363,
0.0453135147690773,
-0.14309963583946228,
0.2850532531738281,
0.08290433138608932,
0.5021229386329651,
-0.05671711266040802,
-0.22113867104053497,
-0.23733696341514587,
0.4116215705871582,
0.3190978169441223,
-0.08139032870531082,
0.08700568228960037,
0.18057917058467865,
0.3197382986545563,
0.5312247276306152,
-0.22441308200359344,
-0.3075540363788605,
0.1514260619878769,
-0.09811492264270782,
0.038772087544202805,
0.174732506275177,
-0.24536855518817902,
0.2914695739746094,
-0.08228832483291626,
-0.11178332567214966,
0.26059362292289734,
-0.21421809494495392,
-0.06406661868095398,
-0.31921154260635376,
0.18886509537696838,
-0.18935981392860413,
0.37619680166244507,
0.392512708902359,
0.011144294403493404,
0.08736161887645721,
-0.05466241016983986,
-0.15115180611610413,
-0.10099978744983673,
-0.0073142764158546925,
-0.0337226539850235,
-0.07546531409025192,
0.19209939241409302,
-0.07294206321239471,
-0.3759569227695465,
0.02699199505150318,
-0.1672232300043106,
-0.12998375296592712,
-0.3631921410560608,
0.21771258115768433,
0.3509688675403595,
-0.13585956394672394,
-0.308791846036911,
0.1354793906211853,
0.011854088865220547,
0.39432182908058167,
-0.21957406401634216,
-0.19366535544395447,
-0.1383877843618393,
0.08235430717468262,
0.19382382929325104,
-0.5943893194198608,
0.04945390298962593,
0.10759511590003967,
0.24108926951885223,
0.07906622439622879,
-0.09957746416330338,
-0.39607858657836914,
-0.018521644175052643,
0.1131378561258316,
0.11504729837179184,
-0.021886158734560013,
-0.08092004060745239,
-0.01654411293566227,
-0.09301140159368515,
-0.10346519947052002,
0.4703732430934906,
-0.047054484486579895,
0.038922786712646484,
-0.24273799359798431,
-0.33595162630081177
] |
https://github.com/huggingface/datasets/issues/279 | Dataset Preprocessing Cache with .map() function not working as expected | When you're processing a dataset with `.map`, it checks whether it has already done this computation using a hash based on the function and the input (using some fancy serialization with `dill`). If you found that it doesn't work as expected in some cases, let us know !
Given that, you can still force to re-process using `.map(my_func, load_from_cache_file=False)` if you want to.
I am curious about the problem you have with splits. It makes me think about #160 that was an issue of version 0.1.0. What version of `nlp` are you running ? Could you give me more details ? | I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks! | 101 | Dataset Preprocessing Cache with .map() function not working as expected
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks!
When you're processing a dataset with `.map`, it checks whether it has already done this computation using a hash based on the function and the input (using some fancy serialization with `dill`). If you found that it doesn't work as expected in some cases, let us know !
Given that, you can still force to re-process using `.map(my_func, load_from_cache_file=False)` if you want to.
I am curious about the problem you have with splits. It makes me think about #160 that was an issue of version 0.1.0. What version of `nlp` are you running ? Could you give me more details ? | [
0.006410036236047745,
0.12744805216789246,
-0.01766827143728733,
0.07282717525959015,
-0.014893334358930588,
-0.01719386875629425,
-0.00719185546040535,
0.2866297662258148,
0.2888213098049164,
-0.09754003584384918,
0.27223652601242065,
0.4488561451435089,
-0.0316162109375,
-0.09311773627996445,
0.050085633993148804,
0.12417300045490265,
0.12280958890914917,
0.30036550760269165,
-0.03343723714351654,
0.13032245635986328,
-0.3629046678543091,
0.14798735082149506,
-0.301580548286438,
0.11297769844532013,
-0.33481064438819885,
-0.2727017402648926,
0.01725703291594982,
0.09578720480203629,
-0.018856624141335487,
-0.325630784034729,
0.2679964303970337,
0.3375691771507263,
-0.104437917470932,
0.38732197880744934,
-0.00012122098996769637,
-0.04193694889545441,
0.4864034652709961,
-0.02229558303952217,
-0.3611881732940674,
-0.19473795592784882,
-0.2702813446521759,
-0.2420763224363327,
0.19160789251327515,
-0.10748425126075745,
-0.003915175795555115,
0.12687088549137115,
0.09830714762210846,
-0.8171736001968384,
0.36264240741729736,
-0.11879169940948486,
0.12256039679050446,
0.04275353252887726,
-0.37788087129592896,
0.3451078236103058,
0.1409950852394104,
0.24489372968673706,
-0.15061508119106293,
0.015682565048336983,
0.24925647675991058,
-0.37867408990859985,
-0.19759157299995422,
0.2599432170391083,
-0.1872861385345459,
0.09816572070121765,
0.18936845660209656,
-0.09604422003030777,
-0.15069088339805603,
-0.5925685167312622,
0.24822679162025452,
0.09385655075311661,
0.3833964467048645,
-0.22222495079040527,
-0.24843668937683105,
-0.3732965886592865,
-0.20665711164474487,
-0.2435506284236908,
0.42303770780563354,
0.03968150168657303,
0.00000410713255405426,
0.12134243547916412,
-0.8589960932731628,
-0.24179647862911224,
0.19907328486442566,
0.05157013237476349,
0.3050825595855713,
0.1497199833393097,
-0.10753931105136871,
0.1488330215215683,
0.25204092264175415,
-0.043258123099803925,
0.1955893188714981,
-0.38102054595947266,
-0.11688007414340973,
0.5440419912338257,
-0.2710391581058502,
-0.01574026048183441,
-0.11967910081148148,
0.3277144730091095,
0.09307505935430527,
0.08092297613620758,
0.12171091139316559,
0.31188270449638367,
-0.1256462037563324,
0.15976789593696594,
0.4004632830619812,
0.41346922516822815,
0.26397180557250977,
0.13816730678081512,
0.1329963505268097,
-0.2675248682498932,
-0.1418137103319168,
0.08522124588489532,
0.2552708685398102,
-0.24415847659111023,
0.0248960442841053,
0.18360427021980286,
-0.08212639391422272,
-0.28865936398506165,
0.1652616560459137,
-0.20475222170352936,
-0.3881455957889557,
-0.30141326785087585,
0.046603165566921234,
-0.034650854766368866,
0.06427121162414551,
0.3691856265068054,
-0.06798028945922852,
0.023770511150360107,
-0.36674442887306213,
-0.2312956601381302,
-0.032353419810533524,
-0.18591837584972382,
-0.45030921697616577,
0.291748583316803,
0.4802573621273041,
-0.022991202771663666,
0.14795878529548645,
0.0876557007431984,
0.007695060223340988,
-0.25260162353515625,
0.358124703168869,
-0.34464406967163086,
0.5570873618125916,
0.07972163707017899,
-0.15281210839748383,
0.21264901757240295,
0.004482131451368332,
0.2268773764371872,
-0.18949496746063232,
0.24100235104560852,
-0.35874685645103455,
-0.10224445164203644,
0.4592745006084442,
-0.0000664619728922844,
-0.2909379005432129,
0.2537989318370819,
-0.09929556399583817,
0.3521662950515747,
0.4363534450531006,
-0.4755975306034088,
-0.012422211468219757,
0.06944653391838074,
-0.4158197343349457,
-0.22726766765117645,
0.2569482624530792,
0.44109493494033813,
-0.1938144862651825,
-0.11987723410129547,
-0.2141164094209671,
0.01795598305761814,
0.3563324213027954,
0.12710626423358917,
-0.19388364255428314,
0.2086494266986847,
-0.16836322844028473,
0.29002243280410767,
0.38153278827667236,
0.13519152998924255,
-0.4795570373535156,
0.47137802839279175,
0.22840385138988495,
0.22769220173358917,
-0.3854053020477295,
0.03757115453481674,
0.07910095900297165,
-0.12692762911319733,
-0.1764242947101593,
0.3006061315536499,
0.0627404972910881,
0.04137495160102844,
-0.2757349908351898,
-0.3874903619289398,
0.3989238739013672,
-0.16247756779193878,
-0.057576749473810196,
0.4469154477119446,
-0.13171866536140442,
-0.21320272982120514,
0.07780767232179642,
-0.08799603581428528,
0.26697513461112976,
0.07546759396791458,
-0.17612260580062866,
-0.12861089408397675,
0.08327295631170273,
-0.17623141407966614,
-0.49623388051986694,
0.2724437713623047,
-0.32409873604774475,
-0.2273712158203125,
0.10259290784597397,
0.004282310605049133,
0.15409237146377563,
-0.18190598487854004,
-0.11510409414768219,
-0.1337406486272812,
0.01998027414083481,
-0.09289982914924622,
0.26112377643585205,
-0.128567636013031,
-0.1667241007089615,
0.488205224275589,
0.25614866614341736,
-0.10327153652906418,
-0.24714477360248566,
0.00039563700556755066,
0.08742770552635193,
-0.17196793854236603,
-0.2900414764881134,
0.19598153233528137,
0.2051536738872528,
-0.07531023770570755,
-0.19126632809638977,
0.4112716019153595,
0.2673032879829407,
0.20199702680110931,
0.003380049020051956,
0.014501214027404785,
0.12685303390026093,
-0.0009970180690288544,
0.05895420163869858,
-0.035940464586019516,
-0.03757444769144058,
-0.16155430674552917,
-0.05939647555351257,
0.33768919110298157,
-0.1741303950548172,
0.34095439314842224,
0.0023418888449668884,
-0.01082886103540659,
0.11171911656856537,
-0.13573364913463593,
-0.028474990278482437,
-0.3059622645378113,
0.06595095992088318,
-0.047421444207429886,
0.4817922115325928,
0.03739672899246216,
0.07832624018192291,
-0.03467728942632675,
0.2912853956222534,
0.13216137886047363,
0.01239887997508049,
-0.04032675921916962,
0.007651515305042267,
-0.2762727439403534,
0.10637938976287842,
0.23535318672657013,
0.3839116096496582,
0.021585136651992798,
0.3465096950531006,
-0.006952563300728798,
-0.08780476450920105,
-0.04660073295235634,
-0.05628436058759689,
0.03931218385696411,
0.389308899641037,
-0.005982458591461182,
0.09336947649717331,
0.01789272204041481,
-0.15839815139770508,
0.14637507498264313,
0.144457146525383,
-0.11717328429222107,
-0.07464566826820374,
0.24541865289211273,
-0.48934006690979004,
-0.294552743434906,
0.03138364478945732,
-0.04022354632616043,
-0.4356856048107147,
-0.209700807929039,
0.0017252527177333832,
0.14657489955425262,
0.06305338442325592,
0.28001073002815247,
-0.010184787213802338,
0.313821017742157,
-0.31680357456207275,
-0.19294899702072144,
-0.19929763674736023,
-0.35075294971466064,
-0.24579209089279175,
-0.011054163798689842,
0.13491487503051758,
-0.02639652043581009,
0.2472257912158966,
0.03273493051528931,
-0.16744442284107208,
-0.010445965453982353,
-0.008220985531806946,
0.26683759689331055,
0.10253840684890747,
-0.016748564317822456,
-0.2774071991443634,
-0.16066129505634308,
-0.21697813272476196,
0.08768454194068909,
-0.055003002285957336,
-0.4442881941795349,
-0.1832215040922165,
-0.026912549510598183,
0.029726149514317513,
0.007562428712844849,
-0.3920726478099823,
-0.06730049103498459,
-0.09589223563671112,
-0.07541850954294205,
0.09485001862049103,
-0.2142598181962967,
0.20399901270866394,
0.08612978458404541,
-0.08285144716501236,
-0.07849401235580444,
-0.09812914580106735,
-0.2145887166261673,
-0.3659684658050537,
-0.24363026022911072,
0.1614854633808136,
-0.15922307968139648,
-0.16787883639335632,
0.08094236254692078,
0.05093791335821152,
0.16131538152694702,
0.708197832107544,
-0.24564175307750702,
0.08163865655660629,
-0.05144514888525009,
-0.1534799188375473,
0.07925328612327576,
-0.0001609697937965393,
0.4673968553543091,
0.10110409557819366,
0.10885171592235565,
-0.2240372598171234,
-0.3684265911579132,
0.2269669771194458,
0.17116552591323853,
0.24877437949180603,
0.44046202301979065,
0.024673113599419594,
0.10915005207061768,
0.8266457319259644,
0.40550100803375244,
-0.12633074820041656,
0.27482086420059204,
0.2606126070022583,
0.2630577087402344,
-0.2511502504348755,
-0.0069567495957016945,
-0.10725054144859314,
-0.41781553626060486,
-0.02132033184170723,
0.2703511714935303,
0.01449587196111679,
-0.7684544920921326,
-0.21497535705566406,
0.30279114842414856,
-0.32290908694267273,
-0.23635642230510712,
0.05265561118721962,
-0.5057758092880249,
0.5118840932846069,
0.14725567400455475,
0.05122384428977966,
-0.29932254552841187,
-0.2363724708557129,
-0.12834149599075317,
-0.16721762716770172,
0.7289857268333435,
0.0014054002240300179,
-0.4842481315135956,
-0.02213861793279648,
-0.33372044563293457,
0.2105119228363037,
0.13405553996562958,
0.5019218921661377,
-0.3132719397544861,
-0.09185796976089478,
0.07791588455438614,
0.15111632645130157,
0.48568475246429443,
-0.4133757948875427,
-0.013014234602451324,
0.08947306871414185,
-0.14347927272319794,
-0.0367489755153656,
0.1446462720632553,
0.25118309259414673,
0.6791267991065979,
0.3776960074901581,
0.14720149338245392,
-0.0270596444606781,
-0.21702387928962708,
-0.38504353165626526,
0.07469633221626282,
-0.09577248990535736,
-0.35529452562332153,
-0.07398176193237305,
0.27627676725387573,
-0.26444336771965027,
-0.20004090666770935,
-0.07766493409872055,
-0.25066137313842773,
-0.16046638786792755,
-0.03369136154651642,
-0.04177664965391159,
0.07360122352838516,
0.17746806144714355,
0.23504219949245453,
0.3998061716556549,
-0.022843118757009506,
-0.1672777682542801,
0.5847773551940918,
0.21058562397956848,
-0.31361308693885803,
0.43400847911834717,
-0.2198309302330017,
0.2310999184846878,
0.21869605779647827,
-0.02914039045572281,
0.20933589339256287,
0.4655950963497162,
-0.05889660492539406,
-0.12104751914739609,
0.021338677033782005,
-0.2066890448331833,
-0.4833386242389679,
-0.031698502600193024,
0.16944481432437897,
-0.12935064733028412,
-0.3581570088863373,
-0.38362565636634827,
0.3327220678329468,
0.3341456651687622,
-0.38192105293273926,
0.3549834191799164,
-0.2618381381034851,
-0.3019748032093048,
0.32533109188079834,
0.023950517177581787,
1.0048348903656006,
-0.1948835700750351,
-0.12483258545398712,
-0.40323546528816223,
0.10959421098232269,
0.4291093051433563,
-0.3195326328277588,
0.3689868450164795,
-0.2441989779472351,
-0.0008732276037335396,
-0.05880730599164963,
-0.12479758262634277,
0.2702735364437103,
0.7461393475532532,
-0.1136494129896164,
0.37193068861961365,
0.10796278715133667,
0.06013327091932297,
-0.009222421795129776,
0.10001033544540405,
0.25919535756111145,
-0.38438650965690613,
-0.02356620877981186,
0.07237251102924347,
-0.16980351507663727,
0.0663478672504425,
0.0669567734003067,
-0.04249192401766777,
0.007067345082759857,
0.13549883663654327,
-0.1099952757358551,
0.1884271502494812,
-0.1476852148771286,
0.07286104559898376,
-0.10714849829673767,
-0.03968232125043869,
0.33601972460746765,
0.14927053451538086,
0.18809430301189423,
-0.007801428437232971,
-0.22214974462985992,
-0.05171254649758339,
0.318036288022995,
0.2039187103509903,
-0.1083688959479332,
0.18314777314662933,
-0.04066997021436691,
0.0020895786583423615,
-0.12452764809131622,
-0.253097265958786,
-0.2252913862466812,
-0.31478917598724365,
-0.053782038390636444,
0.06206239387392998,
0.16928960382938385,
-0.17643830180168152,
-0.1892225742340088,
0.2640279233455658,
0.14974063634872437,
0.1316511183977127,
0.06895822286605835,
0.12832477688789368,
0.11214844882488251,
0.3821694850921631,
-0.01735736057162285,
-0.18746265769004822,
0.006447974592447281,
0.2096814513206482,
-0.007049489766359329,
-0.19488666951656342,
0.1713559776544571,
-0.07167896628379822,
-0.23656702041625977,
-0.12360242009162903,
-0.2610137164592743,
-0.2897471785545349,
-0.24611327052116394,
-0.09084433317184448,
-0.08715929836034775,
-0.08644703030586243,
0.030212461948394775,
-0.2308710813522339,
-0.053171731531620026,
0.19101619720458984,
-0.19796136021614075,
-0.2889895439147949,
-0.11364267766475677,
-0.06764118373394012,
-0.276887446641922,
0.217624232172966,
0.13260817527770996,
-0.1775796115398407,
0.17861327528953552,
0.5122466683387756,
-0.16153283417224884,
-0.07358711957931519,
0.11604101210832596,
0.30809304118156433,
0.18394885957241058,
0.08730831742286682,
-0.16682961583137512,
-0.2434576451778412,
-0.22753724455833435,
0.07588768005371094,
-0.37679243087768555,
-0.10499550402164459,
0.0864344984292984,
0.2187218964099884,
0.025657296180725098,
-0.46682700514793396,
-0.0737525075674057,
-0.1002890095114708,
0.07878464460372925,
-0.427694171667099,
-0.04280243068933487,
-0.08305461704730988,
-0.0892086923122406,
0.44223830103874207,
0.30843979120254517,
0.020779777318239212,
-0.23666882514953613,
0.1384485960006714,
-0.06561051309108734,
0.15514899790287018,
0.046852774918079376,
0.1583063304424286,
0.20344597101211548,
0.07087673246860504,
-0.25761616230010986,
-0.15238109230995178,
0.0638495534658432,
-0.005550839006900787,
0.22880911827087402,
-0.20151551067829132,
0.28544190526008606,
0.07845555245876312,
0.188436359167099,
0.20132890343666077,
0.048990506678819656,
-0.12465613335371017,
0.2670289874076843,
0.0231151320040226,
-0.030658690258860588,
-0.23315127193927765,
0.817462682723999,
0.23632456362247467,
-0.04707791283726692,
0.29473355412483215,
0.36118283867836,
0.1418650895357132,
0.2163405865430832,
0.010650284588336945,
0.32912230491638184,
-0.49177438020706177,
0.21056276559829712,
0.2103257179260254,
0.18866975605487823,
0.1961786299943924,
0.22237959504127502,
0.13657385110855103,
0.021184653043746948,
0.19926534593105316,
0.4374971091747284,
0.29887521266937256,
0.3040631413459778,
0.4697698950767517,
-0.04941115528345108,
-0.5832749605178833,
0.052854713052511215,
0.4703788757324219,
-0.05832374095916748,
0.36754316091537476,
0.02556212991476059,
0.22905397415161133,
-0.13277678191661835,
-0.40961790084838867,
0.008785774931311607,
0.18527548015117645,
-0.03254129737615585,
-0.1582813709974289,
0.0817117840051651,
-0.0903603732585907,
0.039803653955459595,
-0.011336607858538628,
-0.14559271931648254,
0.13090819120407104,
0.8235418796539307,
0.05222843587398529,
-0.02949942648410797,
-0.08354289829730988,
-0.058717280626297,
-0.055250197649002075,
0.34929612278938293,
-0.05783609673380852,
0.16473513841629028,
-0.43139857053756714,
0.08424724638462067,
0.06665657460689545,
0.3254648745059967,
0.008874397724866867,
0.36602094769477844,
-0.3733347952365875,
-0.05985954776406288,
0.04300399869680405,
0.014613905921578407,
-0.2489277720451355,
0.5730593204498291,
0.20414993166923523,
-0.2849011719226837,
0.19779831171035767,
-0.05765523016452789,
0.14152003824710846,
-0.08842110633850098,
0.11050349473953247,
0.44400298595428467,
-0.008537078276276588,
0.31206780672073364,
0.23482376337051392,
-0.15584057569503784,
0.22597651183605194,
0.054321035742759705,
-0.20923292636871338,
0.10872281342744827,
0.33016473054885864,
-0.204141303896904,
0.1764395833015442,
-0.0717587098479271,
0.015824440866708755,
0.06505846977233887,
0.42507004737854004,
0.288059264421463,
0.04997554421424866,
-0.20273374021053314,
-0.2592551112174988,
-0.49176108837127686,
-0.06182124465703964,
-0.11751586198806763,
0.16780774295330048,
0.0469290167093277,
-0.06593050062656403,
-0.07301675528287888,
0.3085061311721802,
-0.11962179839611053,
-0.3544450104236603,
0.08945148438215256,
0.0075958482921123505,
-0.3419654369354248,
0.06482187658548355,
-0.23470665514469147,
0.1187276542186737,
-0.10042863339185715,
-0.3049353063106537,
0.12478010356426239,
0.18614058196544647,
-0.1550418734550476,
0.07889257371425629,
-0.21648652851581573,
-0.008019426837563515,
0.48573166131973267,
0.20584136247634888,
0.5476555228233337,
0.14505578577518463,
0.06310964375734329,
0.06931298971176147,
-0.3424021303653717,
0.03431420773267746,
-0.04267992451786995,
-0.07440557330846786,
0.05261353403329849,
0.20845049619674683,
-0.5877811908721924,
0.24763526022434235,
-0.23618467152118683,
-0.1315244734287262,
-0.10149149596691132,
0.19911932945251465,
-0.21817386150360107,
-0.2774004638195038,
-0.04755387827754021,
0.14295737445354462,
0.24319617450237274,
0.5879489183425903,
-0.07436543703079224,
0.18855753540992737,
-0.4346535801887512,
0.19659891724586487,
0.1331108659505844,
-0.48083093762397766,
-0.3672076463699341,
0.17183265089988708,
0.11149398237466812,
-0.062183089554309845,
-0.4134120047092438,
-0.3246707618236542,
-0.31022438406944275,
0.25679147243499756,
-0.3081023097038269,
0.0306074358522892,
0.07504592090845108,
-0.3588081896305084,
-0.09286335855722427,
-0.1293267160654068,
0.3822350800037384,
0.2547101378440857,
-0.20541757345199585,
-0.049109071493148804,
-0.20691238343715668
] |
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.05952777713537216,
0.09044869244098663,
-0.06866924464702606,
0.10039068758487701,
0.12072201073169708,
0.07992339879274368,
0.04323694109916687,
0.26247885823249817,
0.2854572832584381,
0.017795786261558533,
0.25152331590652466,
0.3141246736049652,
0.1379656046628952,
-0.07564304023981094,
-0.12311959266662598,
0.17928075790405273,
0.1890162229537964,
0.19804437458515167,
-0.12831565737724304,
0.21751438081264496,
-0.3310682773590088,
0.05076213553547859,
-0.2609409689903259,
0.0022755712270736694,
-0.26566997170448303,
-0.18275904655456543,
0.1562226116657257,
0.025224383920431137,
-0.00418747216463089,
-0.2667360305786133,
0.27649572491645813,
0.33081451058387756,
-0.15849992632865906,
0.5676485896110535,
-0.00011873269249917939,
0.10421493649482727,
0.45986413955688477,
-0.0732591450214386,
-0.23600903153419495,
0.005500540137290955,
-0.3911936283111572,
-0.042336419224739075,
0.15267181396484375,
-0.03994494304060936,
-0.034501489251852036,
0.11001885682344437,
-0.0018391367048025131,
-0.9861100316047668,
0.3587909936904907,
-0.09717065840959549,
0.13504333794116974,
-0.009758534841239452,
-0.39997029304504395,
0.2026425153017044,
0.06718873232603073,
0.21500574052333832,
-0.17968422174453735,
0.0030369628220796585,
0.4216757118701935,
-0.16837738454341888,
-0.1409468948841095,
0.18395133316516876,
-0.20474383234977722,
0.22757205367088318,
0.2218039631843567,
-0.12146886438131332,
-0.06486151367425919,
-0.6551270484924316,
0.4548880159854889,
0.08990761637687683,
0.4829876124858856,
-0.2404879927635193,
-0.33723458647727966,
-0.186224102973938,
-0.20376385748386383,
-0.10016439110040665,
0.4849655330181122,
-0.027662010863423347,
0.060121212154626846,
0.26094770431518555,
-0.8676719665527344,
-0.22697974741458893,
0.10660763084888458,
-0.10022372007369995,
0.1879897117614746,
-0.038094162940979004,
-0.19214358925819397,
0.12355290353298187,
0.13843229413032532,
-0.032631441950798035,
0.30905839800834656,
-0.4443033039569855,
-0.12754502892494202,
0.4259270429611206,
-0.20783905684947968,
0.10904470086097717,
-0.1491020917892456,
0.25480151176452637,
0.1343228816986084,
0.05483047664165497,
0.11862970888614655,
0.4010964632034302,
-0.05581521615386009,
0.12574926018714905,
0.2708114981651306,
0.38045790791511536,
0.19995152950286865,
0.05398579686880112,
0.20719653367996216,
-0.2867133617401123,
-0.18004147708415985,
0.049799203872680664,
0.2067417949438095,
-0.28629735112190247,
0.14969578385353088,
0.09319823980331421,
0.028340768069028854,
-0.37824884057044983,
0.13232731819152832,
-0.16847538948059082,
-0.30226847529411316,
-0.2636655569076538,
-0.030366897583007812,
0.07098953425884247,
0.04518257454037666,
0.328429251909256,
-0.12477931380271912,
-0.0048171840608119965,
-0.27956828474998474,
-0.1862279325723648,
-0.031326182186603546,
-0.26994770765304565,
-0.30302414298057556,
0.30957868695259094,
0.38547608256340027,
-0.17761112749576569,
0.11340965330600739,
0.20704564452171326,
0.11043477058410645,
-0.30463656783103943,
0.40971219539642334,
-0.35243794322013855,
0.6011019945144653,
0.16498690843582153,
-0.1772686392068863,
0.25313830375671387,
0.08846986293792725,
0.3341844081878662,
-0.09591490775346756,
0.34659504890441895,
-0.41387057304382324,
-0.07955662161111832,
0.5190355181694031,
0.012813180685043335,
-0.25682181119918823,
0.2969453036785126,
-0.14903974533081055,
0.2066642791032791,
0.3854329586029053,
-0.338606059551239,
-0.040674515068531036,
0.07820609956979752,
-0.3557201623916626,
-0.2343347668647766,
0.3182884454727173,
0.4376453161239624,
-0.34513983130455017,
-0.024409186094999313,
-0.04541822895407677,
0.030383601784706116,
0.3146100640296936,
-0.05089979246258736,
-0.15410856902599335,
0.2512764632701874,
-0.21330253779888153,
0.08423253893852234,
0.11313406378030777,
0.06641833484172821,
-0.45643338561058044,
0.45959973335266113,
0.2408314198255539,
0.32417628169059753,
-0.3276291787624359,
-0.031034763902425766,
0.06047696992754936,
-0.058432210236787796,
-0.25086355209350586,
0.09460281580686569,
0.09315908700227737,
0.046302370727062225,
-0.1457226723432541,
-0.35079771280288696,
0.25634270906448364,
-0.20952628552913666,
0.0044864751398563385,
0.5632539987564087,
-0.14819645881652832,
-0.464582622051239,
0.037364713847637177,
-0.15065684914588928,
0.2761831283569336,
0.17016154527664185,
-0.10558760166168213,
-0.08807681500911713,
0.08799416571855545,
-0.13983768224716187,
-0.34254300594329834,
0.3794337213039398,
-0.14247623085975647,
-0.34554117918014526,
0.0506209060549736,
-0.009350679814815521,
0.10302487760782242,
-0.1586509793996811,
-0.20775820314884186,
-0.050064075738191605,
0.023533787578344345,
-0.0339239165186882,
0.16576562821865082,
-0.2036348283290863,
-0.11530595272779465,
0.5470620393753052,
0.1891898512840271,
-0.0793975293636322,
-0.15102384984493256,
-0.0350814163684845,
0.2097179889678955,
-0.1502484381198883,
-0.3731403052806854,
-0.024571284651756287,
0.14707158505916595,
-0.13567200303077698,
-0.18946218490600586,
0.4257086515426636,
0.3730859160423279,
0.2214650958776474,
-0.004820235073566437,
0.1351872980594635,
0.05755629390478134,
0.061935510486364365,
0.036693308502435684,
-0.0725550651550293,
0.049820125102996826,
-0.15910953283309937,
-0.051415905356407166,
0.3344891369342804,
-0.09114174544811249,
0.37324732542037964,
-0.010010413825511932,
-0.05445265769958496,
0.14950443804264069,
-0.010228071361780167,
-0.03362655267119408,
-0.27756649255752563,
-0.1447201818227768,
-0.07740025222301483,
0.5285405516624451,
0.0067473407834768295,
0.09398223459720612,
-0.06365736573934555,
0.10635000467300415,
0.14433477818965912,
-0.009743265807628632,
-0.16144272685050964,
-0.08387317508459091,
-0.1745377480983734,
0.0837356299161911,
0.15924137830734253,
0.3290300667285919,
-0.006220547948032618,
0.34098362922668457,
-0.05735526978969574,
0.004837139043956995,
-0.027513496577739716,
-0.09392783790826797,
0.08577298372983932,
0.4193114638328552,
-0.0040595270693302155,
0.029381493106484413,
-0.011594909243285656,
-0.0849880576133728,
0.17038628458976746,
0.1218733862042427,
-0.2071114182472229,
-0.18273448944091797,
0.2091924399137497,
-0.41686296463012695,
-0.05028870329260826,
0.1301649957895279,
-0.01891445741057396,
-0.29837799072265625,
-0.15989595651626587,
-0.04560747742652893,
0.16537556052207947,
0.09136456251144409,
0.2640129029750824,
-0.05856858566403389,
0.26868659257888794,
-0.1954095959663391,
-0.3422113358974457,
-0.1986904889345169,
-0.20568668842315674,
-0.07325773686170578,
0.007953990250825882,
0.12568435072898865,
-0.15416264533996582,
0.2510624825954437,
-0.08870860189199448,
-0.12576018273830414,
-0.1457538604736328,
0.04051238298416138,
0.2885512709617615,
0.08543301373720169,
0.035691339522600174,
-0.37063509225845337,
-0.008975863456726074,
-0.20448316633701324,
0.26173025369644165,
-0.020856402814388275,
-0.4014318585395813,
-0.18303927779197693,
-0.012171304784715176,
0.0049408357590436935,
-0.04734092205762863,
-0.30081695318222046,
-0.05673781782388687,
0.08248154073953629,
-0.03155681490898132,
0.0004641488194465637,
-0.22428637742996216,
0.09529616683721542,
-0.012026817537844181,
0.06994172930717468,
-0.07655839622020721,
-0.008229516446590424,
-0.1531710922718048,
-0.36786147952079773,
-0.49668827652931213,
0.22308772802352905,
-0.1863090991973877,
-0.15672187507152557,
0.2615586221218109,
0.21696463227272034,
0.19645366072654724,
0.7846161127090454,
-0.21753764152526855,
0.019605759531259537,
-0.13015981018543243,
-0.06387634575366974,
0.05542103201150894,
-0.021934861317276955,
0.4251807630062103,
0.18365652859210968,
0.0809687077999115,
-0.2568446397781372,
-0.39094871282577515,
0.16406860947608948,
0.09930600970983505,
0.09629514813423157,
0.47367769479751587,
0.047900646924972534,
-0.01141897588968277,
0.9212651252746582,
0.28912869095802307,
-0.060873400419950485,
0.23338593542575836,
0.17807510495185852,
0.3517635464668274,
-0.3186767101287842,
0.06092006713151932,
-0.17868518829345703,
-0.48752954602241516,
-0.14934739470481873,
0.11197497695684433,
0.03787993639707565,
-0.5454317331314087,
-0.2041720300912857,
0.3990437090396881,
-0.28373807668685913,
-0.14793044328689575,
-0.06201542168855667,
-0.4005838632583618,
0.539152979850769,
0.051231082528829575,
0.18546274304389954,
-0.24672165513038635,
-0.10701943933963776,
0.053312789648771286,
-0.1604476124048233,
0.7593104243278503,
-0.07617197930812836,
-0.40672892332077026,
0.027426503598690033,
-0.3406674563884735,
0.31550347805023193,
0.1099163219332695,
0.3678986132144928,
-0.2778318524360657,
-0.10297384113073349,
0.06400252878665924,
0.1480657011270523,
0.4910815358161926,
-0.42149844765663147,
0.046292439103126526,
0.05970397964119911,
-0.3347884714603424,
0.04659806191921234,
0.07164058089256287,
0.21566647291183472,
0.6267980337142944,
0.14882436394691467,
0.08738940954208374,
0.053123585879802704,
-0.1913239061832428,
-0.505084753036499,
0.12657782435417175,
-0.11797334253787994,
-0.3258693218231201,
-0.11465735733509064,
0.2298455536365509,
-0.27081140875816345,
-0.16995355486869812,
-0.004658643156290054,
-0.2663305103778839,
-0.19300538301467896,
-0.15600022673606873,
-0.18284231424331665,
0.09821056574583054,
0.1806216835975647,
0.2443588227033615,
0.40608835220336914,
-0.06176125630736351,
-0.08406491577625275,
0.6687202453613281,
0.17996352910995483,
0.024722769856452942,
0.4776466190814972,
-0.18667413294315338,
0.0995095744729042,
0.22010737657546997,
-0.12495531886816025,
0.13279691338539124,
0.4130023419857025,
-0.2108192890882492,
-0.20214629173278809,
0.019639721140265465,
-0.24659444391727448,
-0.5624935626983643,
0.001200676430016756,
0.18076060712337494,
-0.03289784863591194,
-0.3743564188480377,
-0.4673771858215332,
0.22246712446212769,
0.33818894624710083,
-0.4176739454269409,
0.4210335612297058,
-0.17404820024967194,
-0.2860771417617798,
0.2021719515323639,
0.07861193269491196,
0.8869549036026001,
-0.33601611852645874,
-0.2119337022304535,
-0.44402873516082764,
0.10283118486404419,
0.018747910857200623,
-0.29729312658309937,
0.3225610852241516,
-0.16319601237773895,
-0.20738494396209717,
-0.12891075015068054,
-0.19979384541511536,
0.37842857837677,
0.6281082034111023,
-0.11031268537044525,
0.3274940550327301,
-0.09224610030651093,
0.25768744945526123,
-0.06043873727321625,
-0.06989085674285889,
0.2925604283809662,
-0.3084753453731537,
0.09037882834672928,
0.12282069027423859,
-0.043243296444416046,
-0.0639641135931015,
0.08246114104986191,
0.07095909118652344,
-0.043747905641794205,
0.19998082518577576,
0.0007836371660232544,
0.11297544091939926,
-0.3217523694038391,
0.04095087945461273,
-0.20486798882484436,
0.033920519053936005,
0.3039807975292206,
0.21360836923122406,
0.228996142745018,
0.01652640476822853,
-0.24035868048667908,
0.045554064214229584,
0.37300845980644226,
0.2545781433582306,
-0.16776636242866516,
0.14423467218875885,
-0.146483913064003,
0.06637001037597656,
-0.12750455737113953,
-0.12300067394971848,
-0.29345381259918213,
-0.2894774079322815,
-0.021494761109352112,
0.004472889006137848,
0.14856316149234772,
-0.2627686560153961,
-0.17256717383861542,
0.19190996885299683,
0.25429829955101013,
0.12641462683677673,
0.07893738895654678,
0.1525598019361496,
0.10949847102165222,
0.4262726604938507,
-0.07859691977500916,
-0.2673991918563843,
-0.024501826614141464,
0.24249044060707092,
-0.06461043655872345,
-0.23312532901763916,
0.12042756378650665,
-0.101859450340271,
-0.21379680931568146,
-0.1323663890361786,
-0.18074598908424377,
-0.17522574961185455,
-0.110277459025383,
-0.049081120640039444,
-0.14082901179790497,
-0.08748200535774231,
0.011082415468990803,
-0.20491954684257507,
-0.015799328684806824,
0.07566610723733902,
-0.1835896074771881,
-0.2050793468952179,
-0.18387557566165924,
-0.11539489030838013,
-0.1625485122203827,
0.30376067757606506,
-0.02632291242480278,
-0.31707993149757385,
0.15271708369255066,
0.35568130016326904,
-0.18141129612922668,
-0.10997441411018372,
0.2332223355770111,
0.19672423601150513,
0.040918223559856415,
0.2854222357273102,
-0.05251530185341835,
-0.2287798821926117,
-0.17435820400714874,
0.04591674730181694,
-0.36060410737991333,
-0.09963499754667282,
0.19992004334926605,
0.22326020896434784,
-0.1286655068397522,
-0.46709999442100525,
0.011444644071161747,
-0.11605668067932129,
-0.002437252551317215,
-0.47804898023605347,
0.1506439447402954,
0.10624072700738907,
-0.060069382190704346,
0.28748053312301636,
0.3222026228904724,
0.008649352937936783,
-0.2631557583808899,
0.056856919080019,
-0.03809812664985657,
0.15410175919532776,
0.011371145024895668,
0.08452116698026657,
0.1962243616580963,
0.02021963894367218,
-0.005764316767454147,
-0.09552564471960068,
0.11706653982400894,
-0.020294412970542908,
0.292227178812027,
-0.22070269286632538,
0.29753240942955017,
0.22768200933933258,
0.2156779021024704,
0.23885518312454224,
-0.07294339686632156,
-0.050869978964328766,
0.13771593570709229,
0.093581922352314,
0.03103264793753624,
-0.2592693567276001,
0.7433464527130127,
0.24274301528930664,
-0.044466905295848846,
0.3320808708667755,
0.3685339689254761,
0.14579597115516663,
0.26593416929244995,
0.06396588683128357,
0.3084392547607422,
-0.45188993215560913,
0.22393780946731567,
0.21705542504787445,
0.18859760463237762,
0.23545856773853302,
0.3087003827095032,
0.2615499496459961,
-0.10817601531744003,
0.3223482370376587,
0.43231430649757385,
0.3706763684749603,
0.36671459674835205,
0.4741813838481903,
-0.16129818558692932,
-0.6234040260314941,
0.1654554009437561,
0.37759965658187866,
-0.2864934504032135,
0.2705134153366089,
0.015828289091587067,
0.004620850086212158,
-0.07070732861757278,
-0.47444143891334534,
-0.12465858459472656,
0.020510351285338402,
-0.05846810340881348,
-0.15476453304290771,
0.24669605493545532,
-0.18909186124801636,
0.19963276386260986,
-0.0538565069437027,
-0.0013486146926879883,
0.09717271476984024,
0.8700405359268188,
-0.0679963231086731,
0.0033364295959472656,
-0.03456728160381317,
-0.08462829142808914,
-0.1373520791530609,
0.35530492663383484,
-0.018970586359500885,
0.09314457327127457,
-0.4131543040275574,
0.032865896821022034,
0.1506251096725464,
0.27579808235168457,
-0.02937280759215355,
0.33241671323776245,
-0.3319461941719055,
-0.007849483750760555,
0.06106524541974068,
-0.009049950167536736,
-0.20360025763511658,
0.5143905878067017,
0.016502507030963898,
-0.2763310372829437,
0.18106071650981903,
-0.004494396969676018,
0.14361636340618134,
-0.11808635294437408,
-0.09254516661167145,
0.5848073959350586,
-0.13718709349632263,
0.15696676075458527,
0.16740593314170837,
-0.11904801428318024,
0.25989437103271484,
-0.011829525232315063,
-0.08296690881252289,
0.04370785504579544,
0.4165824055671692,
-0.2856683135032654,
0.10088464617729187,
0.04329774156212807,
0.031041298061609268,
0.06951415538787842,
0.3478192687034607,
0.30209043622016907,
-0.0002093985676765442,
-0.26230520009994507,
-0.20437899231910706,
-0.47737085819244385,
-0.011913023889064789,
-0.041816357523202896,
0.2782692313194275,
0.013727285899221897,
-0.10415942966938019,
0.024409405887126923,
0.22272177040576935,
0.1266428530216217,
-0.6021298766136169,
0.14702197909355164,
0.09904797375202179,
-0.30597954988479614,
0.032450877130031586,
-0.1631772816181183,
0.09561008214950562,
-0.07241305708885193,
-0.30270445346832275,
0.22401687502861023,
0.25145331025123596,
-0.08952386677265167,
0.08510701358318329,
-0.19307561218738556,
0.00791267678141594,
0.28542017936706543,
0.42475980520248413,
0.43170982599258423,
0.09102888405323029,
0.07024059444665909,
0.12923413515090942,
-0.2891432046890259,
0.0006375983357429504,
-0.006029938813298941,
-0.033843450248241425,
0.00008852407336235046,
0.10676217079162598,
-0.5476577877998352,
0.0628277063369751,
-0.24755257368087769,
-0.18333591520786285,
0.01747439056634903,
0.21717113256454468,
-0.32358673214912415,
-0.24889004230499268,
-0.012249574065208435,
0.1204678863286972,
0.21197794377803802,
0.4282519817352295,
-0.027554966509342194,
0.2745818495750427,
-0.3904281258583069,
0.2230897843837738,
0.139486163854599,
-0.4148367643356323,
-0.4747498333454132,
0.07757033407688141,
0.06309433281421661,
-0.16988465189933777,
-0.4320862293243408,
-0.2826710343360901,
-0.17361964285373688,
0.2840859591960907,
-0.31318625807762146,
-0.03370342776179314,
0.0827469676733017,
-0.48597097396850586,
-0.004907209426164627,
-0.14032290875911713,
0.42620429396629333,
0.19826030731201172,
-0.08944865316152573,
-0.1782265305519104,
-0.158824622631073
] |
https://github.com/huggingface/datasets/issues/279 | Dataset Preprocessing Cache with .map() function not working as expected | Just checking in, the cache sometimes still does not work when I make changes in my processing function in version `1.2.1`. The changes made to my data processing function only propagate to the dataset when I use `load_from_cache_file=False` or clear the cache. Is this a system-specific issue? | I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks! | 47 | Dataset Preprocessing Cache with .map() function not working as expected
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks!
Just checking in, the cache sometimes still does not work when I make changes in my processing function in version `1.2.1`. The changes made to my data processing function only propagate to the dataset when I use `load_from_cache_file=False` or clear the cache. Is this a system-specific issue? | [
-0.04223143309354782,
0.0891580879688263,
-0.08176811039447784,
0.09195522964000702,
0.04232116788625717,
0.06223524361848831,
0.025529485195875168,
0.20980502665042877,
0.3237963914871216,
0.02847106009721756,
0.30006247758865356,
0.2643466591835022,
0.17761968076229095,
-0.08004242926836014,
-0.11281631886959076,
0.18959319591522217,
0.18956699967384338,
0.20837785303592682,
-0.07325750589370728,
0.183768168091774,
-0.3083142638206482,
0.054858915507793427,
-0.22945135831832886,
0.03916141390800476,
-0.25852566957473755,
-0.20653527975082397,
0.143230140209198,
0.006047271192073822,
0.0013987496495246887,
-0.25224778056144714,
0.297394335269928,
0.332809716463089,
-0.12829631567001343,
0.5881771445274353,
-0.00011693024134729058,
0.08422787487506866,
0.45616382360458374,
-0.05053597316145897,
-0.23499195277690887,
-0.009997785091400146,
-0.3796205520629883,
-0.07021759450435638,
0.16023452579975128,
-0.024358220398426056,
-0.010138394311070442,
0.11621763557195663,
0.0201474130153656,
-0.9627581834793091,
0.3745887875556946,
-0.08566007763147354,
0.14807440340518951,
0.005918165668845177,
-0.3695868253707886,
0.153093159198761,
0.049212370067834854,
0.20582793653011322,
-0.1800125688314438,
0.03651713952422142,
0.41698941588401794,
-0.18542002141475677,
-0.13932886719703674,
0.14357072114944458,
-0.1768905222415924,
0.22466573119163513,
0.22470775246620178,
-0.09709550440311432,
-0.07453333586454391,
-0.6531955003738403,
0.46815234422683716,
0.09297484904527664,
0.5025742650032043,
-0.23823457956314087,
-0.3564356565475464,
-0.18861603736877441,
-0.1998538225889206,
-0.12840567529201508,
0.4736371636390686,
-0.05211514234542847,
0.048024412244558334,
0.2472451776266098,
-0.8149887919425964,
-0.2441745102405548,
0.13996225595474243,
-0.06581813097000122,
0.15891888737678528,
-0.06066867709159851,
-0.2202189415693283,
0.1006011813879013,
0.17532572150230408,
-0.03353632986545563,
0.28195929527282715,
-0.4145134389400482,
-0.09306454658508301,
0.42792215943336487,
-0.2198818475008011,
0.08374601602554321,
-0.12302780896425247,
0.25605449080467224,
0.08920474350452423,
-0.006210878491401672,
0.14863942563533783,
0.4178128242492676,
-0.038514167070388794,
0.15052156150341034,
0.2692394554615021,
0.3919084668159485,
0.18364645540714264,
0.029540419578552246,
0.22623151540756226,
-0.30689331889152527,
-0.18179994821548462,
0.02241029217839241,
0.21956263482570648,
-0.3019467890262604,
0.16662412881851196,
0.051904886960983276,
-0.04348880425095558,
-0.3644345998764038,
0.1479138433933258,
-0.16130247712135315,
-0.27013999223709106,
-0.26871004700660706,
-0.024007901549339294,
0.041954368352890015,
0.06241251155734062,
0.36864563822746277,
-0.15675944089889526,
-0.058376289904117584,
-0.28920817375183105,
-0.15359477698802948,
-0.056807003915309906,
-0.2732100784778595,
-0.33071810007095337,
0.33376580476760864,
0.3726417124271393,
-0.19955362379550934,
0.09670812636613846,
0.21275755763053894,
0.11947859823703766,
-0.2556504011154175,
0.4023231863975525,
-0.3718322217464447,
0.6122220158576965,
0.16730399429798126,
-0.19962623715400696,
0.3133721351623535,
0.08863429725170135,
0.3282333016395569,
-0.12334102392196655,
0.319057434797287,
-0.4271487593650818,
-0.07320275902748108,
0.5425623059272766,
0.04262489080429077,
-0.23659925162792206,
0.27248549461364746,
-0.15767186880111694,
0.18314208090305328,
0.3819369971752167,
-0.3411978483200073,
-0.019304275512695312,
0.05590491741895676,
-0.36140429973602295,
-0.2492460310459137,
0.30114495754241943,
0.4044575095176697,
-0.3130491375923157,
-0.006267566233873367,
-0.09665249288082123,
0.008960464969277382,
0.27241572737693787,
0.0020195692777633667,
-0.15141789615154266,
0.25694403052330017,
-0.18907897174358368,
0.07408837974071503,
0.1797260046005249,
0.046238262206315994,
-0.4824352264404297,
0.46190735697746277,
0.26662182807922363,
0.31592294573783875,
-0.3200911283493042,
-0.0344836451113224,
0.07549291104078293,
-0.029252754524350166,
-0.22743535041809082,
0.07332061231136322,
0.11262461543083191,
0.018420236185193062,
-0.13653907179832458,
-0.33545511960983276,
0.23870743811130524,
-0.17278119921684265,
0.009883895516395569,
0.557796061038971,
-0.11663716286420822,
-0.45337337255477905,
-0.0055342018604278564,
-0.11717729270458221,
0.2688833177089691,
0.18670697510242462,
-0.1241808831691742,
-0.08352971076965332,
0.11222636699676514,
-0.11789420992136002,
-0.29577967524528503,
0.38688918948173523,
-0.16080021858215332,
-0.388833612203598,
0.08709913492202759,
-0.0017748251557350159,
0.14892560243606567,
-0.15080398321151733,
-0.1708802878856659,
-0.0603688545525074,
0.034172333776950836,
-0.03985767066478729,
0.20859892666339874,
-0.22141316533088684,
-0.15058374404907227,
0.5996137857437134,
0.22883658111095428,
-0.11190348863601685,
-0.14412426948547363,
-0.09066221863031387,
0.18796886503696442,
-0.19294501841068268,
-0.3765648305416107,
-0.0420684739947319,
0.1240159422159195,
-0.07171224802732468,
-0.18283748626708984,
0.4112229645252228,
0.3644667863845825,
0.23175539076328278,
-0.05719354748725891,
0.14843016862869263,
0.0776226595044136,
0.10538795590400696,
0.03951241448521614,
-0.04384148493409157,
0.04816583916544914,
-0.12594935297966003,
-0.045710958540439606,
0.2844947874546051,
-0.07565219700336456,
0.33321624994277954,
0.025585174560546875,
-0.07850007712841034,
0.1512378305196762,
-0.006895806640386581,
-0.032719071954488754,
-0.2883857190608978,
-0.13718165457248688,
-0.08562743663787842,
0.5550137162208557,
0.0193321593105793,
0.09989261627197266,
-0.07987389713525772,
0.16449671983718872,
0.1588204801082611,
-0.005759634077548981,
-0.10983539372682571,
-0.076503224670887,
-0.22256717085838318,
0.07858540862798691,
0.14217212796211243,
0.30948391556739807,
-0.0031411959789693356,
0.3505506217479706,
-0.09589604288339615,
-0.00819504912942648,
-0.05344678834080696,
-0.12733012437820435,
0.0642363652586937,
0.37828168272972107,
-0.01282528042793274,
0.04471359774470329,
0.055471133440732956,
-0.05883697792887688,
0.1394157111644745,
0.09541743248701096,
-0.23675981163978577,
-0.13918112218379974,
0.2114253044128418,
-0.43828511238098145,
-0.10310995578765869,
0.12161034345626831,
-0.003858070820569992,
-0.28285127878189087,
-0.15960301458835602,
-0.049187175929546356,
0.1624261438846588,
0.0771840512752533,
0.26261237263679504,
-0.04050664231181145,
0.3092959523200989,
-0.2414817065000534,
-0.3057515025138855,
-0.215514674782753,
-0.19715094566345215,
-0.1173088476061821,
0.02550094947218895,
0.06587061285972595,
-0.17969878017902374,
0.21660035848617554,
-0.07365640997886658,
-0.12844981253147125,
-0.1553099900484085,
0.06316021829843521,
0.2894634008407593,
0.16553276777267456,
0.049743812531232834,
-0.3883124887943268,
-0.03444002568721771,
-0.2452542930841446,
0.25552570819854736,
0.003921258728951216,
-0.4348164200782776,
-0.15218156576156616,
-0.05713833123445511,
0.0033033539075404406,
-0.07136806845664978,
-0.30413833260536194,
0.005595177412033081,
0.028459172695875168,
-0.06614400446414948,
0.007872700691223145,
-0.21590019762516022,
0.0964919850230217,
-0.05885447561740875,
0.06309881806373596,
-0.0804714560508728,
0.0026185237802565098,
-0.11127260327339172,
-0.38950425386428833,
-0.5156043171882629,
0.23369869589805603,
-0.21740129590034485,
-0.16436916589736938,
0.2138952910900116,
0.21715503931045532,
0.2134818434715271,
0.8205265402793884,
-0.1731255054473877,
0.019402258098125458,
-0.1311866044998169,
-0.05239312723278999,
0.08172482252120972,
0.04119841754436493,
0.44427913427352905,
0.12783101201057434,
0.046869128942489624,
-0.26901009678840637,
-0.4039575457572937,
0.16872143745422363,
0.09760415554046631,
0.12096759676933289,
0.46206727623939514,
0.026151448488235474,
-0.02626984938979149,
0.9281284809112549,
0.28074920177459717,
-0.1106203943490982,
0.23996296525001526,
0.21952424943447113,
0.35711562633514404,
-0.2936391234397888,
0.07741222530603409,
-0.19299237430095673,
-0.4637967050075531,
-0.15291883051395416,
0.10664105415344238,
0.030770421028137207,
-0.5778456926345825,
-0.23628397285938263,
0.34956711530685425,
-0.2912434935569763,
-0.12496146559715271,
-0.055761195719242096,
-0.31992974877357483,
0.5669845342636108,
0.04199149087071419,
0.16508114337921143,
-0.2623954713344574,
-0.09146025776863098,
0.06530928611755371,
-0.14801542460918427,
0.7365267872810364,
-0.07873185724020004,
-0.35713088512420654,
-0.010197589173913002,
-0.31598591804504395,
0.28971660137176514,
0.09403803199529648,
0.395923912525177,
-0.26714959740638733,
-0.11867687106132507,
0.013047702610492706,
0.10422415286302567,
0.4674053192138672,
-0.4032784104347229,
-0.008958645164966583,
0.07719238102436066,
-0.3594948351383209,
0.0886777937412262,
0.07636046409606934,
0.24634459614753723,
0.6016660332679749,
0.13383756577968597,
0.08708260208368301,
0.08095940202474594,
-0.18448352813720703,
-0.5479583740234375,
0.11276271194219589,
-0.11541830003261566,
-0.3176874816417694,
-0.0939006507396698,
0.23005902767181396,
-0.23882532119750977,
-0.1784866452217102,
-0.025960737839341164,
-0.26039132475852966,
-0.14235825836658478,
-0.12171193957328796,
-0.20997953414916992,
0.09346314519643784,
0.17321866750717163,
0.26434770226478577,
0.39280977845191956,
-0.1045462116599083,
-0.10352572798728943,
0.671606183052063,
0.16520731151103973,
0.017262335866689682,
0.42911002039909363,
-0.19819647073745728,
0.09517881274223328,
0.25375983119010925,
-0.09034361690282822,
0.10817057639360428,
0.40605488419532776,
-0.22224077582359314,
-0.17413967847824097,
0.07731702923774719,
-0.23061330616474152,
-0.5374782681465149,
-0.006893879733979702,
0.13471610844135284,
-0.04796607419848442,
-0.33380746841430664,
-0.49148112535476685,
0.225288987159729,
0.3845278024673462,
-0.41311514377593994,
0.4236248731613159,
-0.21358539164066315,
-0.2590327560901642,
0.21624363958835602,
0.06640689074993134,
0.8740595579147339,
-0.3066949248313904,
-0.17550085484981537,
-0.47665318846702576,
0.11666390299797058,
0.030403537675738335,
-0.31005358695983887,
0.323652446269989,
-0.15576450526714325,
-0.20190323889255524,
-0.1310507357120514,
-0.19798992574214935,
0.37751248478889465,
0.6080788969993591,
-0.0753362700343132,
0.36470359563827515,
-0.037857554852962494,
0.2650951147079468,
-0.033452123403549194,
-0.03609064593911171,
0.2536981999874115,
-0.34182631969451904,
0.0720515325665474,
0.13620710372924805,
0.011028695851564407,
-0.012182444334030151,
0.06115024536848068,
0.07951245456933975,
-0.031326934695243835,
0.16830392181873322,
-0.0111202672123909,
0.07248230278491974,
-0.3772873282432556,
0.057392362505197525,
-0.19061170518398285,
0.052217066287994385,
0.2531178593635559,
0.21590404212474823,
0.26277631521224976,
0.03249958157539368,
-0.2449130415916443,
0.040422238409519196,
0.4043717384338379,
0.23838067054748535,
-0.194303959608078,
0.13015730679035187,
-0.09483500570058823,
0.04160720854997635,
-0.10572633892297745,
-0.10373323410749435,
-0.25940048694610596,
-0.28512075543403625,
-0.031062431633472443,
0.01695653796195984,
0.1296369433403015,
-0.19284428656101227,
-0.17754772305488586,
0.16502419114112854,
0.24731352925300598,
0.12641450762748718,
0.09478287398815155,
0.19029274582862854,
0.14770054817199707,
0.4358256459236145,
-0.1344916671514511,
-0.24793294072151184,
-0.06837537884712219,
0.2577912509441376,
-0.07670409232378006,
-0.27127915620803833,
0.0920247808098793,
-0.13710707426071167,
-0.2443404197692871,
-0.13622348010540009,
-0.23754119873046875,
-0.21995919942855835,
-0.08745504915714264,
-0.05922378972172737,
-0.13086506724357605,
-0.1317461133003235,
0.0175495445728302,
-0.21095487475395203,
0.008001059293746948,
0.08337055891752243,
-0.17739424109458923,
-0.2219509333372116,
-0.1304803192615509,
-0.10153254866600037,
-0.16007158160209656,
0.28143033385276794,
0.013834316283464432,
-0.3935478627681732,
0.16013872623443604,
0.3114468455314636,
-0.19360895454883575,
-0.1269921362400055,
0.2641707956790924,
0.1755342334508896,
0.08223685622215271,
0.2998538315296173,
-0.06276445090770721,
-0.22934117913246155,
-0.16499517858028412,
0.046119894832372665,
-0.35889938473701477,
-0.126724511384964,
0.18887268006801605,
0.2124413251876831,
-0.11740618199110031,
-0.472345232963562,
0.0281110517680645,
-0.11684718728065491,
0.04735241085290909,
-0.47473248839378357,
0.15658481419086456,
0.10657946020364761,
-0.040627673268318176,
0.2895568907260895,
0.2889660596847534,
0.04023340716958046,
-0.280889630317688,
0.08167929947376251,
-0.008399762213230133,
0.14878718554973602,
0.018826289102435112,
0.08198520541191101,
0.17469899356365204,
0.030405014753341675,
-0.01597474329173565,
-0.10045025497674942,
0.0711599662899971,
-0.050338394939899445,
0.2550850212574005,
-0.22071073949337006,
0.3024338483810425,
0.25574854016304016,
0.1917845457792282,
0.2408599853515625,
-0.06531363725662231,
-0.06528601050376892,
0.19117093086242676,
0.10372152179479599,
0.06459186971187592,
-0.2489880919456482,
0.6774764657020569,
0.2197588086128235,
-0.05222106724977493,
0.32226887345314026,
0.3933655917644501,
0.12627340853214264,
0.2538267970085144,
0.042876824736595154,
0.3401600420475006,
-0.48567092418670654,
0.22198382019996643,
0.17815691232681274,
0.2305353730916977,
0.24446862936019897,
0.3148045837879181,
0.3094743490219116,
-0.12062489241361618,
0.33513301610946655,
0.40366363525390625,
0.3411267101764679,
0.40245291590690613,
0.48822706937789917,
-0.16435500979423523,
-0.6150525212287903,
0.21456752717494965,
0.39885053038597107,
-0.27620816230773926,
0.26730701327323914,
-0.03158187121152878,
-0.06248436123132706,
-0.06755223870277405,
-0.41855213046073914,
-0.09390009939670563,
-0.012201357632875443,
-0.055593155324459076,
-0.1606387346982956,
0.2629868984222412,
-0.17795559763908386,
0.19471171498298645,
-0.05090106651186943,
0.0031111612915992737,
0.13506531715393066,
0.8500322103500366,
-0.07478949427604675,
-0.008170977234840393,
0.01729723997414112,
-0.07930035889148712,
-0.17562168836593628,
0.34165897965431213,
0.009419795125722885,
0.09988970309495926,
-0.4530882239341736,
0.011473119258880615,
0.12112577259540558,
0.2790079414844513,
-0.03028484806418419,
0.3566260039806366,
-0.33176812529563904,
-0.01689399778842926,
0.061029382050037384,
-0.03802913427352905,
-0.22700068354606628,
0.4959074854850769,
0.021473154425621033,
-0.2843993604183197,
0.1495719701051712,
0.02575133554637432,
0.11735157668590546,
-0.10889787971973419,
-0.13919301331043243,
0.6097428202629089,
-0.16347044706344604,
0.16190052032470703,
0.16769888997077942,
-0.10083834081888199,
0.293628066778183,
0.004168562591075897,
-0.07983868569135666,
0.07457482814788818,
0.44696468114852905,
-0.26303592324256897,
0.09461604803800583,
-0.0006470007356256247,
0.04387769103050232,
0.09216076135635376,
0.34932005405426025,
0.3144753575325012,
0.03992334380745888,
-0.22348564863204956,
-0.16327732801437378,
-0.4827323853969574,
-0.017831899225711823,
-0.05514048412442207,
0.2705826461315155,
-0.013803916051983833,
-0.08082255721092224,
0.015323586761951447,
0.2147798389196396,
0.12492340058088303,
-0.5909250974655151,
0.12185739725828171,
0.07489638030529022,
-0.2518160343170166,
0.060500361025333405,
-0.198069229722023,
0.10912968218326569,
-0.046044252812862396,
-0.32686376571655273,
0.20527717471122742,
0.1664377599954605,
-0.06130152568221092,
0.07056290656328201,
-0.21737197041511536,
0.03650636598467827,
0.25304508209228516,
0.4496689438819885,
0.44071128964424133,
0.057831790298223495,
0.05647145211696625,
0.11262226849794388,
-0.2935214042663574,
0.005968534853309393,
0.004178757779300213,
-0.03687234967947006,
-0.031941007822752,
0.07661060243844986,
-0.5562332272529602,
0.05301585793495178,
-0.2510072886943817,
-0.18558652698993683,
0.004426546394824982,
0.2043249011039734,
-0.24332545697689056,
-0.27195197343826294,
0.028972148895263672,
0.050587307661771774,
0.27465710043907166,
0.45010659098625183,
-0.031423911452293396,
0.23319272696971893,
-0.40691596269607544,
0.25104621052742004,
0.08780702203512192,
-0.44967979192733765,
-0.39510414004325867,
0.01399450283497572,
0.06113314628601074,
-0.1779446005821228,
-0.4009952247142792,
-0.2629912495613098,
-0.1546335071325302,
0.28520941734313965,
-0.32294023036956787,
-0.07843700051307678,
0.042717065662145615,
-0.4692246615886688,
-0.003149844706058502,
-0.1504492610692978,
0.46650221943855286,
0.20427241921424866,
-0.1098078265786171,
-0.17567890882492065,
-0.16274259984493256
] |
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.012609709054231644,
0.02267642319202423,
-0.08359213918447495,
0.11090651154518127,
0.10393095761537552,
0.09357555955648422,
0.007125716656446457,
0.15889085829257965,
0.32624688744544983,
-0.006993964314460754,
0.24600426852703094,
0.2585704028606415,
0.14196591079235077,
-0.04374760389328003,
-0.09526101499795914,
0.19916297495365143,
0.1659029722213745,
0.1899380385875702,
-0.017559610307216644,
0.17775730788707733,
-0.33791348338127136,
0.06170276552438736,
-0.2909168004989624,
-0.04241979122161865,
-0.2941632568836212,
-0.19838599860668182,
0.12611795961856842,
0.03431525081396103,
-0.04284118115901947,
-0.26304125785827637,
0.30113592743873596,
0.3228379189968109,
-0.14332187175750732,
0.6143493056297302,
-0.0001192959098261781,
0.043315619230270386,
0.3999328017234802,
-0.09737022966146469,
-0.19503933191299438,
-0.042527973651885986,
-0.36420005559921265,
-0.040948156267404556,
0.18668733537197113,
-0.07628188282251358,
-0.07291998714208603,
0.1407182365655899,
-0.0348702073097229,
-1.0032603740692139,
0.40383028984069824,
-0.03958353400230408,
0.13290727138519287,
0.017149370163679123,
-0.4026251435279846,
0.2707400918006897,
0.021868452429771423,
0.15240994095802307,
-0.13578620553016663,
0.07115916907787323,
0.33881163597106934,
-0.23791489005088806,
-0.08769000321626663,
0.1695570945739746,
-0.23066599667072296,
0.2240428328514099,
0.23538175225257874,
-0.06498541682958603,
-0.13968569040298462,
-0.7217979431152344,
0.38002917170524597,
0.05737857520580292,
0.5168447494506836,
-0.2660503089427948,
-0.371795117855072,
-0.1826724112033844,
-0.2236899584531784,
-0.14788325130939484,
0.44789475202560425,
0.015669114887714386,
0.04886249825358391,
0.20761939883232117,
-0.8422003388404846,
-0.1816663146018982,
0.1444847732782364,
-0.05106668174266815,
0.1792806088924408,
0.0006047189235687256,
-0.18454161286354065,
0.1082616001367569,
0.14422187209129333,
-0.0036389194428920746,
0.3374113440513611,
-0.42166465520858765,
-0.05856378749012947,
0.4882792830467224,
-0.24441899359226227,
0.06818234920501709,
-0.15820187330245972,
0.33570095896720886,
0.0762660801410675,
0.05825406685471535,
0.14657534658908844,
0.38051795959472656,
-0.07518365234136581,
0.13834542036056519,
0.25681671500205994,
0.3748098611831665,
0.13409139215946198,
0.08452457934617996,
0.2072889506816864,
-0.3187161386013031,
-0.2340548038482666,
0.020609399303793907,
0.2593967020511627,
-0.2871660590171814,
0.2802872955799103,
0.05120939761400223,
0.016127556562423706,
-0.33264654874801636,
0.15326057374477386,
-0.15256944298744202,
-0.3575711250305176,
-0.31653568148612976,
-0.02895732969045639,
0.1038476973772049,
0.013703112490475178,
0.2877168357372284,
-0.1415005326271057,
-0.039874568581581116,
-0.2923082113265991,
-0.05938984453678131,
-0.036801982671022415,
-0.24175696074962616,
-0.30559438467025757,
0.29983797669410706,
0.3559490740299225,
-0.21856597065925598,
0.15734030306339264,
0.21917617321014404,
0.16408120095729828,
-0.3253125250339508,
0.4204200506210327,
-0.35916364192962646,
0.6152804493904114,
0.1765163540840149,
-0.18646760284900665,
0.26186811923980713,
0.13143619894981384,
0.2853631377220154,
-0.11622389405965805,
0.3068481981754303,
-0.44819021224975586,
-0.09910231083631516,
0.519160270690918,
0.02696128934621811,
-0.2732548713684082,
0.25501197576522827,
-0.13675832748413086,
0.14321276545524597,
0.4081961214542389,
-0.27978941798210144,
-0.0005555823445320129,
0.06152172386646271,
-0.347747266292572,
-0.30596959590911865,
0.3221849501132965,
0.43915051221847534,
-0.27391138672828674,
-0.01652269810438156,
-0.0549774132668972,
0.07935568690299988,
0.24683913588523865,
0.014458389952778816,
-0.1570521593093872,
0.26509889960289,
-0.21328198909759521,
0.08846870064735413,
0.16391119360923767,
0.0004323497414588928,
-0.46774813532829285,
0.39465293288230896,
0.30264753103256226,
0.36267274618148804,
-0.3520168662071228,
0.04348453879356384,
0.029597535729408264,
-0.06506500393152237,
-0.16200761497020721,
0.15326225757598877,
0.09349828213453293,
0.03543071448802948,
-0.12480789422988892,
-0.2823023498058319,
0.27535945177078247,
-0.19800905883312225,
0.0008326545357704163,
0.5466744303703308,
-0.1341932713985443,
-0.4987401068210602,
0.026212960481643677,
-0.13587668538093567,
0.1735255867242813,
0.17525331676006317,
-0.087847501039505,
-0.0739191472530365,
0.13875332474708557,
-0.14024090766906738,
-0.38009047508239746,
0.3710728883743286,
-0.15067149698734283,
-0.3001326322555542,
-0.04926539957523346,
-0.010012121871113777,
0.08200747519731522,
-0.11362063884735107,
-0.20489610731601715,
-0.07437126338481903,
0.03899076581001282,
-0.10650463402271271,
0.25337454676628113,
-0.19039763510227203,
-0.11629737913608551,
0.6129927039146423,
0.23052339255809784,
-0.07501929998397827,
-0.1576409488916397,
-0.04536418244242668,
0.18192638456821442,
-0.13825632631778717,
-0.376012921333313,
-0.0317535474896431,
0.21874308586120605,
-0.10274399816989899,
-0.1763012409210205,
0.43314260244369507,
0.38407161831855774,
0.18367724120616913,
-0.054466381669044495,
0.18201349675655365,
0.07371547073125839,
0.0586111806333065,
0.10193679481744766,
-0.015754424035549164,
0.111046202480793,
-0.1827046275138855,
0.004796706140041351,
0.3525703549385071,
-0.11566758155822754,
0.330757200717926,
0.024287298321723938,
-0.08836974203586578,
0.10982517898082733,
-0.01614132523536682,
-0.05933304876089096,
-0.2415941208600998,
-0.13048888742923737,
-0.07399837672710419,
0.5344318151473999,
0.014976123347878456,
0.07606659829616547,
-0.11011040955781937,
0.114786297082901,
0.13519823551177979,
0.04360581934452057,
-0.15152403712272644,
-0.10552867501974106,
-0.1825638711452484,
0.049504153430461884,
0.16131305694580078,
0.33294063806533813,
-0.04455534741282463,
0.32125139236450195,
-0.039583176374435425,
0.00738004595041275,
-0.02183237485587597,
-0.06971385329961777,
0.09584525972604752,
0.37456443905830383,
-0.048412635922431946,
0.05389533191919327,
0.02239755354821682,
-0.07851831614971161,
0.1887511909008026,
0.08661968261003494,
-0.20956888794898987,
-0.18364490568637848,
0.2747175395488739,
-0.37283825874328613,
-0.07215742766857147,
0.12075977027416229,
-0.14892935752868652,
-0.3147013187408447,
-0.1985546499490738,
-0.08731257170438766,
0.15403638780117035,
0.14802582561969757,
0.23857824504375458,
-0.021144825965166092,
0.17706967890262604,
-0.19632180035114288,
-0.39620664715766907,
-0.21088089048862457,
-0.2509934902191162,
-0.024129021912813187,
0.013031728565692902,
0.058224357664585114,
-0.16284197568893433,
0.2691918611526489,
-0.07931935787200928,
-0.14026004076004028,
-0.1621197611093521,
0.03168346732854843,
0.25211429595947266,
0.06294017285108566,
0.09750811010599136,
-0.3867305815219879,
-0.03239646553993225,
-0.26332688331604004,
0.248011514544487,
-0.015012984164059162,
-0.39946281909942627,
-0.10099206119775772,
-0.05135970935225487,
0.04633912444114685,
-0.028935467824339867,
-0.24536146223545074,
-0.03257741034030914,
-0.05339767783880234,
0.010764051228761673,
-0.01713375747203827,
-0.1349080204963684,
0.10153909772634506,
0.0019314028322696686,
0.05727888271212578,
-0.14150714874267578,
0.04448051378130913,
-0.15058453381061554,
-0.39410877227783203,
-0.5403400659561157,
0.2928720712661743,
-0.17420995235443115,
-0.11586393415927887,
0.323108047246933,
0.14412960410118103,
0.1809592992067337,
0.8046807050704956,
-0.21077387034893036,
-0.08868051320314407,
-0.13956931233406067,
-0.04635746404528618,
0.07050953060388565,
0.08548786491155624,
0.39928776025772095,
0.14132745563983917,
0.09252902865409851,
-0.2513987421989441,
-0.3856615126132965,
0.07273207604885101,
0.09858614951372147,
0.11498327553272247,
0.46128129959106445,
0.030073119327425957,
-0.08496227860450745,
0.9317189455032349,
0.2833196818828583,
-0.09500180184841156,
0.26699763536453247,
0.17025741934776306,
0.34511855244636536,
-0.2881956994533539,
0.07081648707389832,
-0.23673562705516815,
-0.47596684098243713,
-0.18289174139499664,
0.1063377857208252,
0.08791795372962952,
-0.5318132042884827,
-0.22584499418735504,
0.3867979645729065,
-0.3913382291793823,
-0.15998488664627075,
-0.06570769101381302,
-0.397502601146698,
0.5221549868583679,
0.07053422927856445,
0.1518419086933136,
-0.2838060259819031,
-0.12685765326023102,
0.020297139883041382,
-0.1642274111509323,
0.7392292618751526,
-0.09502013772726059,
-0.3028746247291565,
-0.00111091835424304,
-0.33804258704185486,
0.30379417538642883,
0.10555808246135712,
0.3277978003025055,
-0.1865989714860916,
-0.10203783214092255,
0.03401312604546547,
0.1305038034915924,
0.4988675117492676,
-0.45831575989723206,
-0.0022162944078445435,
0.04955596849322319,
-0.33010274171829224,
0.08775494247674942,
0.07776136696338654,
0.21531450748443604,
0.6324644088745117,
0.08399797976016998,
0.06457560509443283,
0.06565269082784653,
-0.1327892541885376,
-0.49316534399986267,
0.1411961317062378,
-0.12038052082061768,
-0.32938575744628906,
-0.14171454310417175,
0.13607722520828247,
-0.24051102995872498,
-0.1840699315071106,
0.022815482690930367,
-0.30118653178215027,
-0.1076301783323288,
-0.08682554960250854,
-0.20122407376766205,
0.1294156014919281,
0.21728146076202393,
0.24653278291225433,
0.45487698912620544,
-0.053846750408411026,
-0.07477419078350067,
0.6173520088195801,
0.13360069692134857,
-0.05640385299921036,
0.5255813598632812,
-0.21115916967391968,
0.08767332881689072,
0.12183958292007446,
-0.02137519046664238,
0.13043029606342316,
0.332842618227005,
-0.19822174310684204,
-0.1787434220314026,
0.05835983157157898,
-0.22085405886173248,
-0.5552142262458801,
-0.03144184872508049,
0.16638608276844025,
0.014575851149857044,
-0.44512230157852173,
-0.5543465614318848,
0.2807053327560425,
0.34442758560180664,
-0.3840259313583374,
0.42446619272232056,
-0.1937873810529709,
-0.25792819261550903,
0.26932233572006226,
0.07669724524021149,
0.9050427079200745,
-0.39990198612213135,
-0.15794071555137634,
-0.4110594391822815,
0.17137669026851654,
0.06248060613870621,
-0.3120303153991699,
0.31490379571914673,
-0.16493938863277435,
-0.20675097405910492,
-0.14016571640968323,
-0.2170417606830597,
0.29494860768318176,
0.5736163854598999,
-0.11269412934780121,
0.3896785080432892,
-0.07856699079275131,
0.23838822543621063,
-0.07192937284708023,
-0.037963151931762695,
0.2574772238731384,
-0.2842620313167572,
0.046897828578948975,
0.1334727704524994,
-0.025585725903511047,
-0.018204379826784134,
0.048594094812870026,
0.11203306168317795,
-0.048061199486255646,
0.12830500304698944,
-0.003654494881629944,
0.06864646822214127,
-0.3537273406982422,
0.06654507666826248,
-0.22216591238975525,
-0.04806569963693619,
0.25161024928092957,
0.20763073861598969,
0.24897608160972595,
0.05587518960237503,
-0.22699496150016785,
0.03648323193192482,
0.38702628016471863,
0.20332176983356476,
-0.1639779508113861,
0.16353176534175873,
-0.12154015898704529,
0.0856487825512886,
-0.13505369424819946,
-0.09167099744081497,
-0.24221597611904144,
-0.3425142168998718,
-0.04377266764640808,
0.07180529832839966,
0.12471125274896622,
-0.2651444673538208,
-0.19702163338661194,
0.18207597732543945,
0.20074474811553955,
0.1349460333585739,
0.07918426394462585,
0.18696369230747223,
0.11483129858970642,
0.47865718603134155,
-0.1105518639087677,
-0.2748798131942749,
-0.05398327484726906,
0.2129802107810974,
0.049076780676841736,
-0.31197914481163025,
0.12496542185544968,
-0.06758320331573486,
-0.24604420363903046,
-0.12267475575208664,
-0.2822340726852417,
-0.2911478579044342,
-0.007623709738254547,
-0.0106209060177207,
-0.06717915087938309,
-0.007606998085975647,
-0.017369640991091728,
-0.2160058617591858,
-0.035117678344249725,
0.10809054970741272,
-0.1765676885843277,
-0.26735806465148926,
-0.15276232361793518,
-0.12977701425552368,
-0.10805322229862213,
0.3174188435077667,
0.008523780852556229,
-0.3597821593284607,
0.16880103945732117,
0.3486443758010864,
-0.18276119232177734,
-0.06187903881072998,
0.20075248181819916,
0.2232428789138794,
0.09663332998752594,
0.27347567677497864,
0.008916852064430714,
-0.23467545211315155,
-0.1388264000415802,
0.04787633568048477,
-0.3410564064979553,
-0.12041126936674118,
0.23244187235832214,
0.21940624713897705,
-0.11287746578454971,
-0.500081479549408,
0.017311327159404755,
-0.14198404550552368,
0.0640333890914917,
-0.49667099118232727,
0.14262031018733978,
0.1659921407699585,
-0.027811072766780853,
0.2998482584953308,
0.3571558892726898,
-0.03194068372249603,
-0.2766464352607727,
0.0705920085310936,
-0.04897649586200714,
0.16476523876190186,
0.049118757247924805,
0.06317780911922455,
0.16806359589099884,
0.04755140841007233,
0.009487348608672619,
-0.12913581728935242,
0.090479776263237,
-0.020795036107301712,
0.27819955348968506,
-0.22811095416545868,
0.28250110149383545,
0.1824585497379303,
0.24791193008422852,
0.2677651643753052,
-0.07815272361040115,
-0.03375175595283508,
0.1696864664554596,
0.0921783521771431,
0.00749824196100235,
-0.24003151059150696,
0.6981934905052185,
0.2228982001543045,
-0.010882068425416946,
0.35338303446769714,
0.326545774936676,
0.18548643589019775,
0.20356731116771698,
0.03932496905326843,
0.3794471323490143,
-0.4553784132003784,
0.22985684871673584,
0.11598756909370422,
0.2000051587820053,
0.2070944905281067,
0.3283665180206299,
0.2765347361564636,
-0.13250672817230225,
0.2599066197872162,
0.40387314558029175,
0.3374181389808655,
0.3234998285770416,
0.39014488458633423,
-0.19102901220321655,
-0.5856963396072388,
0.22034543752670288,
0.38240981101989746,
-0.26211172342300415,
0.31467029452323914,
0.05610422044992447,
-0.024989187717437744,
-0.03809640184044838,
-0.3837392032146454,
-0.08460446447134018,
0.035487860441207886,
-0.0287536159157753,
-0.152973935008049,
0.3428879976272583,
-0.1619921326637268,
0.24021384119987488,
-0.04787348210811615,
0.02081318199634552,
0.017420876771211624,
0.8757123947143555,
-0.0359547883272171,
-0.0011874213814735413,
0.05449698120355606,
-0.03593894839286804,
-0.15319228172302246,
0.38031038641929626,
-0.021007603034377098,
0.02979928068816662,
-0.3976691961288452,
0.04717150330543518,
0.06924170255661011,
0.22904086112976074,
0.02887861616909504,
0.32944849133491516,
-0.3763195276260376,
0.09592103958129883,
0.09287269413471222,
-0.03468753397464752,
-0.16548414528369904,
0.4780677855014801,
0.01812758296728134,
-0.26415398716926575,
0.1079867035150528,
0.024618739262223244,
0.10392896085977554,
-0.11043897271156311,
-0.09602755308151245,
0.6095189452171326,
-0.15412069857120514,
0.14310695230960846,
0.19089534878730774,
-0.12615203857421875,
0.22189636528491974,
0.01658298820257187,
-0.14468763768672943,
0.06330902874469757,
0.4511495530605316,
-0.24220286309719086,
0.0936993882060051,
0.013743757270276546,
0.027531463652849197,
0.07018259167671204,
0.3833504021167755,
0.38013243675231934,
0.14019569754600525,
-0.28528928756713867,
-0.13698895275592804,
-0.5016661882400513,
-0.05053193122148514,
-0.12710392475128174,
0.20023149251937866,
-0.0037909122183918953,
-0.08534693717956543,
0.02879483625292778,
0.29673975706100464,
0.14207324385643005,
-0.5314870476722717,
0.08241970092058182,
0.09861728549003601,
-0.24313852190971375,
-0.027208689600229263,
-0.23609061539173126,
0.0832538828253746,
-0.052272919565439224,
-0.3047013282775879,
0.16198469698429108,
0.13909101486206055,
-0.06210418418049812,
0.04145282506942749,
-0.18699537217617035,
0.0434078611433506,
0.25208455324172974,
0.48848164081573486,
0.4370417892932892,
0.10017343610525131,
0.06235228478908539,
0.13658937811851501,
-0.23716354370117188,
0.006893601268529892,
0.016284126788377762,
-0.023128479719161987,
0.004144828766584396,
0.08107266575098038,
-0.5207992792129517,
0.03738724812865257,
-0.2671988904476166,
-0.16496965289115906,
-0.011317025870084763,
0.14357826113700867,
-0.2195688784122467,
-0.28769612312316895,
0.06595135480165482,
0.07064677774906158,
0.18522082269191742,
0.4934236407279968,
-0.05604797601699829,
0.30823105573654175,
-0.3612114191055298,
0.20461535453796387,
0.12746277451515198,
-0.44975247979164124,
-0.42565858364105225,
0.0842970535159111,
0.04652165621519089,
-0.2532385289669037,
-0.36697620153427124,
-0.34754830598831177,
-0.08038151264190674,
0.29923486709594727,
-0.31924036145210266,
-0.0776263177394867,
0.0949622243642807,
-0.43465226888656616,
-0.02727639302611351,
-0.1388852298259735,
0.4334096610546112,
0.14472703635692596,
-0.07487128674983978,
-0.2155509889125824,
-0.19944171607494354
] |
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.047934237867593765,
0.12618984282016754,
0.01823919266462326,
0.6689180135726929,
0.24453239142894745,
0.15575051307678223,
0.0049347542226314545,
0.2083568423986435,
0.3758639991283417,
-0.05147726833820343,
0.26736199855804443,
-0.3312879502773285,
-0.17346249520778656,
-0.33417922258377075,
0.2296692281961441,
-0.4861278831958771,
0.09306766837835312,
0.058427438139915466,
-0.09685830771923065,
0.021348975598812103,
-0.2210387885570526,
0.28426259756088257,
-0.28608617186546326,
-0.12967433035373688,
-0.24149955809116364,
0.06827638298273087,
-0.06069453805685043,
0.05400705710053444,
-0.16134651005268097,
-0.4543808102607727,
0.10938993096351624,
-0.25727641582489014,
0.11816747486591339,
0.18110257387161255,
-0.00012172196147730574,
0.040037237107753754,
0.4013991951942444,
-0.17075611650943756,
-0.44416335225105286,
0.039255693554878235,
-0.04547303542494774,
-0.34079456329345703,
0.036734163761138916,
-0.26067250967025757,
0.06098288297653198,
-0.10650104284286499,
0.3253651559352875,
-0.08283902704715729,
0.3636324405670166,
0.17929722368717194,
0.1830790787935257,
0.05839966982603073,
0.2596978545188904,
-0.08299864083528519,
0.5757555365562439,
0.06039430573582649,
0.05178748071193695,
0.12043479084968567,
-0.3371911346912384,
-0.36692607402801514,
-0.2666928768157959,
0.29711106419563293,
0.01685977913439274,
0.10160952806472778,
0.3428904712200165,
-0.11834920197725296,
0.01459496095776558,
-0.21514847874641418,
0.21466639637947083,
-0.015584394335746765,
0.6984866857528687,
-0.2225387990474701,
0.05440381169319153,
-0.29872626066207886,
-0.08197605609893799,
0.1372261941432953,
0.36996880173683167,
0.37682044506073,
-0.5374550819396973,
-0.17521047592163086,
-0.18167944252490997,
-0.34899935126304626,
-0.16345667839050293,
0.33827126026153564,
0.05806886404752731,
0.24271070957183838,
-0.04609677195549011,
0.1656009405851364,
0.36606141924858093,
-0.04746382683515549,
-0.27681416273117065,
-0.11192229390144348,
-0.012181535363197327,
0.44622519612312317,
-0.07023480534553528,
0.06821910291910172,
-0.07997331768274307,
-0.06193233281373978,
0.23511576652526855,
-0.27922993898391724,
-0.0940655767917633,
-0.061494871973991394,
0.25387102365493774,
0.07732443511486053,
0.2765709459781647,
0.4570388197898865,
-0.1349075734615326,
-0.19879429042339325,
0.16015063226222992,
0.18069596588611603,
0.018549278378486633,
-0.16259822249412537,
-0.03485294058918953,
-0.16336487233638763,
-0.07738535106182098,
-0.025876425206661224,
-0.1039634495973587,
-0.04693923890590668,
0.020034873858094215,
0.1309572458267212,
-0.09636403620243073,
-0.13396574556827545,
-0.03216898813843727,
0.41890642046928406,
-0.13972453773021698,
0.33823058009147644,
0.29564785957336426,
0.06871721893548965,
-0.38477838039398193,
-0.295085072517395,
-0.14935268461704254,
0.15822187066078186,
-0.5230250954627991,
0.12379559874534607,
0.26629313826560974,
0.2771732807159424,
0.3613071143627167,
-0.12290947884321213,
-0.2683764100074768,
0.0498330295085907,
0.2657950818538666,
-0.18319763243198395,
-0.03237571567296982,
0.21564361453056335,
0.14843761920928955,
0.2886894643306732,
0.1391695886850357,
-0.22817523777484894,
0.00019440054893493652,
0.06192001327872276,
-0.1770707666873932,
-0.19407394528388977,
0.0692581906914711,
0.017681458964943886,
-0.15710210800170898,
0.15428680181503296,
-0.40317121148109436,
0.23672005534172058,
0.2888610363006592,
-0.212856724858284,
-0.09760531038045883,
-0.04226316511631012,
-0.23210309445858002,
-0.2615078091621399,
0.2098647505044937,
0.5494705438613892,
-0.09142802655696869,
-0.2689729630947113,
-0.07590148597955704,
-0.09879232943058014,
0.4090285301208496,
0.23754960298538208,
-0.10521618276834488,
0.29600444436073303,
-0.23157164454460144,
0.09871353209018707,
0.3416326940059662,
-0.17392174899578094,
-0.33195164799690247,
0.13097745180130005,
0.11024217307567596,
0.16385501623153687,
0.05625869706273079,
0.0016745480243116617,
0.011861449107527733,
0.19847527146339417,
0.19970852136611938,
0.3413088917732239,
-0.035260796546936035,
0.2907262444496155,
-0.2670721411705017,
-0.27098846435546875,
0.2600758373737335,
0.008650049567222595,
0.35167476534843445,
0.05551519617438316,
0.09452015161514282,
0.830819308757782,
0.2724245488643646,
-0.06893250346183777,
0.3318050801753998,
0.5638169646263123,
-0.2277192622423172,
0.05730930715799332,
-0.01126883551478386,
-0.0633692592382431,
-0.24862545728683472,
0.19277164340019226,
-0.30672797560691833,
0.30945438146591187,
-0.02148185670375824,
0.13213324546813965,
-0.16403034329414368,
-0.09691454470157623,
-0.056675028055906296,
-0.36996200680732727,
0.08882925659418106,
0.1652466356754303,
0.11012624204158783,
0.21409763395786285,
0.13791552186012268,
0.262728750705719,
-0.011161120608448982,
0.02267480082809925,
-0.6933614611625671,
0.2087743878364563,
-0.1417614221572876,
-0.152197003364563,
-0.010932080447673798,
0.10963761806488037,
0.1333906054496765,
0.1438274383544922,
-0.13231351971626282,
0.12147529423236847,
0.09903743118047714,
-0.04699431359767914,
0.1362224817276001,
-0.025001615285873413,
0.26590022444725037,
-0.18806713819503784,
0.43380820751190186,
0.05866863206028938,
0.16085097193717957,
-0.15430445969104767,
0.04690384492278099,
-0.21383868157863617,
0.07204590737819672,
0.2993030846118927,
0.0846954733133316,
0.034719906747341156,
0.16727255284786224,
0.15033861994743347,
0.15188223123550415,
-0.1656808704137802,
0.40921303629875183,
0.08061893284320831,
0.1114233136177063,
-0.0011587291955947876,
0.026664167642593384,
-0.4050893187522888,
0.4183509349822998,
0.17379716038703918,
0.14272716641426086,
0.2619022727012634,
-0.44561731815338135,
-0.29049476981163025,
0.22474895417690277,
-0.057462919503450394,
0.2343137264251709,
0.08118821680545807,
0.13385699689388275,
0.028996627777814865,
0.1593959480524063,
0.037910353392362595,
0.09362144768238068,
0.05890113115310669,
0.5227372646331787,
0.011513281613588333,
0.01255209743976593,
-0.13416168093681335,
-0.21342790126800537,
0.08087125420570374,
0.031299129128456116,
0.41698142886161804,
-0.19021664559841156,
-0.03903007134795189,
-0.002698838710784912,
-0.5402330160140991,
-0.3053191900253296,
0.261686772108078,
-0.48820292949676514,
-0.2883307933807373,
-0.24136187136173248,
0.28014376759529114,
-0.06628736853599548,
-0.01345226913690567,
0.06859636306762695,
0.1989397555589676,
0.10880288481712341,
-0.149442657828331,
-0.12989068031311035,
-0.28263673186302185,
-0.3521512746810913,
-0.013216715306043625,
0.17804628610610962,
0.045792076736688614,
0.2574235796928406,
0.047495096921920776,
-0.12937715649604797,
-0.22526195645332336,
-0.1390881985425949,
0.19317539036273956,
0.019398480653762817,
0.13235269486904144,
0.08083796501159668,
0.644194483757019,
-0.09161858260631561,
-0.1589270830154419,
0.31237050890922546,
-0.13450272381305695,
-0.11235075443983078,
0.20584477484226227,
0.002116741379722953,
0.18940763175487518,
0.023846957832574844,
-0.03552217036485672,
-0.12397218495607376,
-0.4503406584262848,
0.16867423057556152,
0.16548077762126923,
-0.02025245875120163,
0.3478741943836212,
0.12827099859714508,
0.07828836143016815,
0.17750446498394012,
0.1381353884935379,
-0.19091568887233734,
-0.05106762796640396,
0.24691380560398102,
-0.33097216486930847,
-0.30591267347335815,
-0.07152077555656433,
-0.16015827655792236,
0.22426077723503113,
0.4027503728866577,
-0.6984956860542297,
0.10614901781082153,
-0.12761783599853516,
-0.21900241076946259,
0.049092233180999756,
0.037253838032484055,
0.368399441242218,
-0.19165408611297607,
-0.019381500780582428,
-0.002128247171640396,
-0.0695347785949707,
-0.033537156879901886,
-0.211290180683136,
0.6732006072998047,
0.18784362077713013,
0.35257479548454285,
0.28118011355400085,
0.9196681976318359,
0.21025899052619934,
0.4203181266784668,
0.4592580497264862,
0.18456365168094635,
0.2118266522884369,
-0.13920894265174866,
-0.21654070913791656,
0.05427180603146553,
-0.2958499491214752,
-0.14695614576339722,
0.193008154630661,
0.05399882420897484,
-0.5334840416908264,
-0.33630722761154175,
-0.22295637428760529,
-0.17357781529426575,
-0.33171752095222473,
0.3225136995315552,
-0.00729680061340332,
0.3478624224662781,
-0.05778658390045166,
-0.03294028341770172,
-0.27377450466156006,
-0.45345133543014526,
0.02441592514514923,
0.052549540996551514,
0.03614296391606331,
0.19822049140930176,
-0.07064071297645569,
0.09258247166872025,
-0.7637268304824829,
0.052149269729852676,
0.022450117394328117,
0.25257033109664917,
-0.23398101329803467,
-0.03759746253490448,
-0.053365692496299744,
-0.0019641448743641376,
0.6382453441619873,
-0.12215348333120346,
-0.10831336677074432,
-0.0036729183048009872,
-0.07280083000659943,
-0.63275146484375,
-0.003490690141916275,
-0.014183662831783295,
0.019742736592888832,
0.22992953658103943,
-0.009248033165931702,
-0.439451664686203,
-0.017310258001089096,
0.1475982666015625,
0.2754668891429901,
-0.3025970458984375,
-0.09351510554552078,
-0.36616477370262146,
-0.11953209340572357,
-0.5057443976402283,
-0.12866362929344177,
0.06480952352285385,
0.22246147692203522,
0.38460052013397217,
0.31604883074760437,
0.09972180426120758,
0.08570294082164764,
-0.012087523937225342,
-0.0698758214712143,
0.25824785232543945,
0.12978121638298035,
-0.13680146634578705,
0.28990331292152405,
0.08412637561559677,
-0.24117881059646606,
0.3528224229812622,
0.05038420110940933,
-0.25061044096946716,
0.07915139943361282,
0.14902572333812714,
0.1158471405506134,
0.2734072506427765,
0.09892798215150833,
-0.12371557205915451,
0.1667005568742752,
-0.05851361155509949,
-0.4219196140766144,
0.2355532944202423,
0.2815839946269989,
-0.18547987937927246,
-0.30531445145606995,
-0.5116240382194519,
0.6158607006072998,
0.05597102269530296,
0.030451521277427673,
0.20863108336925507,
0.022399820387363434,
-0.41278135776519775,
0.44134289026260376,
0.26830101013183594,
0.9731236100196838,
-0.20404241979122162,
0.42499858140945435,
0.2317788004875183,
0.1344747692346573,
0.5237076282501221,
-0.5167384147644043,
0.3831544518470764,
-0.3056228458881378,
0.12684525549411774,
-0.013337370939552784,
-0.10856358706951141,
0.0364832878112793,
0.11471937596797943,
0.06540657579898834,
0.32536664605140686,
0.20793648064136505,
0.09614340960979462,
-0.07739405333995819,
0.45882660150527954,
-0.08006728440523148,
-0.342072457075119,
-0.19557972252368927,
0.12200655043125153,
-0.34487712383270264,
0.3898966610431671,
-0.364506334066391,
0.02170928195118904,
0.0776730328798294,
-0.11058748513460159,
-0.49160146713256836,
0.07951517403125763,
-0.3250877261161804,
0.4055940508842468,
-0.32848039269447327,
-0.1371368169784546,
-0.14217092096805573,
0.3159625232219696,
0.059257738292217255,
0.1933971494436264,
-0.24983972311019897,
0.2242748737335205,
-0.39769458770751953,
-0.23567746579647064,
0.020828528329730034,
0.23375335335731506,
0.4087521731853485,
-0.20691221952438354,
-0.2438366711139679,
0.09800377488136292,
-0.19044499099254608,
-0.37694138288497925,
-0.16764628887176514,
-0.10644690692424774,
0.08835647255182266,
-0.014652172103524208,
-0.31727904081344604,
-0.009053334593772888,
-0.14136441051959991,
0.05608152225613594,
0.08245320618152618,
0.013701200485229492,
-0.11961739510297775,
-0.09041149169206619,
0.030632831156253815,
-0.16258752346038818,
0.05373403802514076,
0.44527825713157654,
0.19932758808135986,
-0.1737644374370575,
0.6748780012130737,
0.3185998201370239,
-0.27011656761169434,
-0.058843545615673065,
-0.14549174904823303,
0.02652423083782196,
-0.39161595702171326,
0.08036035299301147,
-0.12232040613889694,
-0.03268934041261673,
-0.23293937742710114,
-0.015879709273576736,
0.2639749050140381,
-0.12890073657035828,
0.25036120414733887,
-0.3973310887813568,
-0.4390518367290497,
0.3276470899581909,
-0.13403767347335815,
0.18060168623924255,
0.26814308762550354,
-0.3036365211009979,
0.14833299815654755,
-0.0007166434079408646,
-0.17669665813446045,
-0.03368639945983887,
-0.2832545340061188,
0.19930225610733032,
0.3010995388031006,
-0.15525761246681213,
0.07127614319324493,
0.1344740390777588,
0.02811877243220806,
0.14065025746822357,
-0.1671307384967804,
-0.12094197422266006,
-0.021527446806430817,
0.1702214777469635,
-0.02118498831987381,
-0.15751145780086517,
0.00798907782882452,
-0.421522319316864,
0.1337193101644516,
-0.310049831867218,
0.09497389197349548,
0.09408218413591385,
-0.023131340742111206,
0.3049461841583252,
0.16527265310287476,
0.05894912779331207,
-0.09553581476211548,
0.45909538865089417,
0.0049066320061683655,
0.4881082773208618,
0.19494396448135376,
0.1460271179676056,
0.21745391190052032,
0.009513549506664276,
-0.5299924612045288,
0.05959620326757431,
-0.10480642318725586,
-0.035454995930194855,
0.12952885031700134,
-0.1712079644203186,
0.015818636864423752,
0.18677663803100586,
-0.040361709892749786,
0.10278234630823135,
-0.11737792938947678,
-0.0446842759847641,
0.2029738426208496,
0.13012681901454926,
-0.12902149558067322,
0.12196069955825806,
0.3430008888244629,
-0.038141876459121704,
-0.25534993410110474,
0.1517667919397354,
0.11667309701442719,
-0.02186013013124466,
-0.046397238969802856,
0.13871270418167114,
0.3468562960624695,
-0.0800422877073288,
0.08237461745738983,
-0.1870737373828888,
0.024710770696401596,
-0.04291197285056114,
-0.13443045318126678,
0.20511199533939362,
0.183724507689476,
0.40192586183547974,
0.0027957335114479065,
0.14150092005729675,
-0.16378340125083923,
0.07540396600961685,
-0.19108527898788452,
-0.32893985509872437,
0.02031482756137848,
0.5687049031257629,
-0.046991005539894104,
0.28436949849128723,
-0.14462773501873016,
0.178004652261734,
0.36120808124542236,
-0.13690340518951416,
-0.3671025335788727,
0.23132304847240448,
-0.144791841506958,
0.06172486022114754,
-0.05804899334907532,
-0.23646673560142517,
-0.20972779393196106,
0.2906804084777832,
0.05285215377807617,
-0.4837183356285095,
0.08078352361917496,
0.19289681315422058,
-0.1719193011522293,
-0.2963338792324066,
0.4201439321041107,
0.1663341224193573,
-0.019270814955234528,
-0.3831957280635834,
0.0990745946764946,
0.14486528933048248,
-0.04473133385181427,
-0.08720110356807709,
0.3097781538963318,
0.4060992896556854,
0.307193785905838,
-0.2704363167285919,
0.009355206973850727,
-0.0059445202350616455,
-0.006355118006467819,
-0.24959930777549744,
0.2559787631034851,
0.4065109193325043,
0.30596795678138733,
0.18039678037166595,
0.0541907399892807,
-0.1025390699505806,
-0.3101823031902313,
0.35936814546585083,
-0.06288810074329376,
-0.12125624716281891,
-0.019210614264011383,
-0.27703458070755005,
0.03510160744190216,
-0.2277393937110901,
0.04942265897989273,
-0.5648449063301086,
0.10318038612604141,
0.2087477594614029,
-0.13252109289169312,
0.11679694801568985,
-0.03639671206474304,
0.0014874264597892761,
-0.16575466096401215,
0.5369609594345093,
0.2511483132839203,
0.11229078471660614,
-0.4637848436832428,
-0.33754757046699524,
-0.5109274983406067,
0.07808143645524979,
-0.36463597416877747,
0.06499850004911423,
-0.055325523018836975,
0.373181015253067,
-0.171768456697464,
0.15667939186096191,
-0.26685935258865356,
0.10987328737974167,
-0.1133808046579361,
0.23890364170074463,
-0.30019551515579224,
-0.2587811052799225,
0.047004442662000656,
0.07872389256954193,
-0.080485038459301,
-0.2608901858329773,
0.08748621493577957,
-0.027488522231578827,
-0.05485668405890465,
-0.22844572365283966,
-0.20256641507148743,
0.08811447024345398,
0.2646348476409912,
0.2633492648601532,
0.1222846508026123,
0.5243081450462341,
0.07498640567064285,
-0.3782123923301697,
-0.2976657450199127,
-0.16730603575706482,
0.043589960783720016,
0.006588689982891083,
-0.08003641664981842,
0.5198345184326172,
-0.2667163610458374,
0.15822330117225647,
-0.438274621963501,
0.47565510869026184,
-0.1714075803756714,
0.10684449225664139,
-0.3627731204032898,
-0.15646681189537048,
0.03455982357263565,
0.22661159932613373,
0.20801550149917603,
0.18166369199752808,
-0.09175583720207214,
0.07733549177646637,
-0.25390756130218506,
-0.130958691239357,
0.3351978063583374,
-0.5924604535102844,
-0.329189658164978,
0.05241278558969498,
-0.05836741626262665,
-0.015294142067432404,
-0.11526071280241013,
-0.5271492004394531,
0.03435278683900833,
0.1688706874847412,
0.08817505091428757,
-0.1708846539258957,
-0.04184320196509361,
-0.06303338706493378,
-0.022889269515872,
-0.08436094224452972,
0.07172220200300217,
-0.12094808369874954,
-0.37930601835250854,
0.13732260465621948,
-0.26241302490234375
] |
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.047934237867593765,
0.12618984282016754,
0.01823919266462326,
0.6689180135726929,
0.24453239142894745,
0.15575051307678223,
0.0049347542226314545,
0.2083568423986435,
0.3758639991283417,
-0.05147726833820343,
0.26736199855804443,
-0.3312879502773285,
-0.17346249520778656,
-0.33417922258377075,
0.2296692281961441,
-0.4861278831958771,
0.09306766837835312,
0.058427438139915466,
-0.09685830771923065,
0.021348975598812103,
-0.2210387885570526,
0.28426259756088257,
-0.28608617186546326,
-0.12967433035373688,
-0.24149955809116364,
0.06827638298273087,
-0.06069453805685043,
0.05400705710053444,
-0.16134651005268097,
-0.4543808102607727,
0.10938993096351624,
-0.25727641582489014,
0.11816747486591339,
0.18110257387161255,
-0.00012172196147730574,
0.040037237107753754,
0.4013991951942444,
-0.17075611650943756,
-0.44416335225105286,
0.039255693554878235,
-0.04547303542494774,
-0.34079456329345703,
0.036734163761138916,
-0.26067250967025757,
0.06098288297653198,
-0.10650104284286499,
0.3253651559352875,
-0.08283902704715729,
0.3636324405670166,
0.17929722368717194,
0.1830790787935257,
0.05839966982603073,
0.2596978545188904,
-0.08299864083528519,
0.5757555365562439,
0.06039430573582649,
0.05178748071193695,
0.12043479084968567,
-0.3371911346912384,
-0.36692607402801514,
-0.2666928768157959,
0.29711106419563293,
0.01685977913439274,
0.10160952806472778,
0.3428904712200165,
-0.11834920197725296,
0.01459496095776558,
-0.21514847874641418,
0.21466639637947083,
-0.015584394335746765,
0.6984866857528687,
-0.2225387990474701,
0.05440381169319153,
-0.29872626066207886,
-0.08197605609893799,
0.1372261941432953,
0.36996880173683167,
0.37682044506073,
-0.5374550819396973,
-0.17521047592163086,
-0.18167944252490997,
-0.34899935126304626,
-0.16345667839050293,
0.33827126026153564,
0.05806886404752731,
0.24271070957183838,
-0.04609677195549011,
0.1656009405851364,
0.36606141924858093,
-0.04746382683515549,
-0.27681416273117065,
-0.11192229390144348,
-0.012181535363197327,
0.44622519612312317,
-0.07023480534553528,
0.06821910291910172,
-0.07997331768274307,
-0.06193233281373978,
0.23511576652526855,
-0.27922993898391724,
-0.0940655767917633,
-0.061494871973991394,
0.25387102365493774,
0.07732443511486053,
0.2765709459781647,
0.4570388197898865,
-0.1349075734615326,
-0.19879429042339325,
0.16015063226222992,
0.18069596588611603,
0.018549278378486633,
-0.16259822249412537,
-0.03485294058918953,
-0.16336487233638763,
-0.07738535106182098,
-0.025876425206661224,
-0.1039634495973587,
-0.04693923890590668,
0.020034873858094215,
0.1309572458267212,
-0.09636403620243073,
-0.13396574556827545,
-0.03216898813843727,
0.41890642046928406,
-0.13972453773021698,
0.33823058009147644,
0.29564785957336426,
0.06871721893548965,
-0.38477838039398193,
-0.295085072517395,
-0.14935268461704254,
0.15822187066078186,
-0.5230250954627991,
0.12379559874534607,
0.26629313826560974,
0.2771732807159424,
0.3613071143627167,
-0.12290947884321213,
-0.2683764100074768,
0.0498330295085907,
0.2657950818538666,
-0.18319763243198395,
-0.03237571567296982,
0.21564361453056335,
0.14843761920928955,
0.2886894643306732,
0.1391695886850357,
-0.22817523777484894,
0.00019440054893493652,
0.06192001327872276,
-0.1770707666873932,
-0.19407394528388977,
0.0692581906914711,
0.017681458964943886,
-0.15710210800170898,
0.15428680181503296,
-0.40317121148109436,
0.23672005534172058,
0.2888610363006592,
-0.212856724858284,
-0.09760531038045883,
-0.04226316511631012,
-0.23210309445858002,
-0.2615078091621399,
0.2098647505044937,
0.5494705438613892,
-0.09142802655696869,
-0.2689729630947113,
-0.07590148597955704,
-0.09879232943058014,
0.4090285301208496,
0.23754960298538208,
-0.10521618276834488,
0.29600444436073303,
-0.23157164454460144,
0.09871353209018707,
0.3416326940059662,
-0.17392174899578094,
-0.33195164799690247,
0.13097745180130005,
0.11024217307567596,
0.16385501623153687,
0.05625869706273079,
0.0016745480243116617,
0.011861449107527733,
0.19847527146339417,
0.19970852136611938,
0.3413088917732239,
-0.035260796546936035,
0.2907262444496155,
-0.2670721411705017,
-0.27098846435546875,
0.2600758373737335,
0.008650049567222595,
0.35167476534843445,
0.05551519617438316,
0.09452015161514282,
0.830819308757782,
0.2724245488643646,
-0.06893250346183777,
0.3318050801753998,
0.5638169646263123,
-0.2277192622423172,
0.05730930715799332,
-0.01126883551478386,
-0.0633692592382431,
-0.24862545728683472,
0.19277164340019226,
-0.30672797560691833,
0.30945438146591187,
-0.02148185670375824,
0.13213324546813965,
-0.16403034329414368,
-0.09691454470157623,
-0.056675028055906296,
-0.36996200680732727,
0.08882925659418106,
0.1652466356754303,
0.11012624204158783,
0.21409763395786285,
0.13791552186012268,
0.262728750705719,
-0.011161120608448982,
0.02267480082809925,
-0.6933614611625671,
0.2087743878364563,
-0.1417614221572876,
-0.152197003364563,
-0.010932080447673798,
0.10963761806488037,
0.1333906054496765,
0.1438274383544922,
-0.13231351971626282,
0.12147529423236847,
0.09903743118047714,
-0.04699431359767914,
0.1362224817276001,
-0.025001615285873413,
0.26590022444725037,
-0.18806713819503784,
0.43380820751190186,
0.05866863206028938,
0.16085097193717957,
-0.15430445969104767,
0.04690384492278099,
-0.21383868157863617,
0.07204590737819672,
0.2993030846118927,
0.0846954733133316,
0.034719906747341156,
0.16727255284786224,
0.15033861994743347,
0.15188223123550415,
-0.1656808704137802,
0.40921303629875183,
0.08061893284320831,
0.1114233136177063,
-0.0011587291955947876,
0.026664167642593384,
-0.4050893187522888,
0.4183509349822998,
0.17379716038703918,
0.14272716641426086,
0.2619022727012634,
-0.44561731815338135,
-0.29049476981163025,
0.22474895417690277,
-0.057462919503450394,
0.2343137264251709,
0.08118821680545807,
0.13385699689388275,
0.028996627777814865,
0.1593959480524063,
0.037910353392362595,
0.09362144768238068,
0.05890113115310669,
0.5227372646331787,
0.011513281613588333,
0.01255209743976593,
-0.13416168093681335,
-0.21342790126800537,
0.08087125420570374,
0.031299129128456116,
0.41698142886161804,
-0.19021664559841156,
-0.03903007134795189,
-0.002698838710784912,
-0.5402330160140991,
-0.3053191900253296,
0.261686772108078,
-0.48820292949676514,
-0.2883307933807373,
-0.24136187136173248,
0.28014376759529114,
-0.06628736853599548,
-0.01345226913690567,
0.06859636306762695,
0.1989397555589676,
0.10880288481712341,
-0.149442657828331,
-0.12989068031311035,
-0.28263673186302185,
-0.3521512746810913,
-0.013216715306043625,
0.17804628610610962,
0.045792076736688614,
0.2574235796928406,
0.047495096921920776,
-0.12937715649604797,
-0.22526195645332336,
-0.1390881985425949,
0.19317539036273956,
0.019398480653762817,
0.13235269486904144,
0.08083796501159668,
0.644194483757019,
-0.09161858260631561,
-0.1589270830154419,
0.31237050890922546,
-0.13450272381305695,
-0.11235075443983078,
0.20584477484226227,
0.002116741379722953,
0.18940763175487518,
0.023846957832574844,
-0.03552217036485672,
-0.12397218495607376,
-0.4503406584262848,
0.16867423057556152,
0.16548077762126923,
-0.02025245875120163,
0.3478741943836212,
0.12827099859714508,
0.07828836143016815,
0.17750446498394012,
0.1381353884935379,
-0.19091568887233734,
-0.05106762796640396,
0.24691380560398102,
-0.33097216486930847,
-0.30591267347335815,
-0.07152077555656433,
-0.16015827655792236,
0.22426077723503113,
0.4027503728866577,
-0.6984956860542297,
0.10614901781082153,
-0.12761783599853516,
-0.21900241076946259,
0.049092233180999756,
0.037253838032484055,
0.368399441242218,
-0.19165408611297607,
-0.019381500780582428,
-0.002128247171640396,
-0.0695347785949707,
-0.033537156879901886,
-0.211290180683136,
0.6732006072998047,
0.18784362077713013,
0.35257479548454285,
0.28118011355400085,
0.9196681976318359,
0.21025899052619934,
0.4203181266784668,
0.4592580497264862,
0.18456365168094635,
0.2118266522884369,
-0.13920894265174866,
-0.21654070913791656,
0.05427180603146553,
-0.2958499491214752,
-0.14695614576339722,
0.193008154630661,
0.05399882420897484,
-0.5334840416908264,
-0.33630722761154175,
-0.22295637428760529,
-0.17357781529426575,
-0.33171752095222473,
0.3225136995315552,
-0.00729680061340332,
0.3478624224662781,
-0.05778658390045166,
-0.03294028341770172,
-0.27377450466156006,
-0.45345133543014526,
0.02441592514514923,
0.052549540996551514,
0.03614296391606331,
0.19822049140930176,
-0.07064071297645569,
0.09258247166872025,
-0.7637268304824829,
0.052149269729852676,
0.022450117394328117,
0.25257033109664917,
-0.23398101329803467,
-0.03759746253490448,
-0.053365692496299744,
-0.0019641448743641376,
0.6382453441619873,
-0.12215348333120346,
-0.10831336677074432,
-0.0036729183048009872,
-0.07280083000659943,
-0.63275146484375,
-0.003490690141916275,
-0.014183662831783295,
0.019742736592888832,
0.22992953658103943,
-0.009248033165931702,
-0.439451664686203,
-0.017310258001089096,
0.1475982666015625,
0.2754668891429901,
-0.3025970458984375,
-0.09351510554552078,
-0.36616477370262146,
-0.11953209340572357,
-0.5057443976402283,
-0.12866362929344177,
0.06480952352285385,
0.22246147692203522,
0.38460052013397217,
0.31604883074760437,
0.09972180426120758,
0.08570294082164764,
-0.012087523937225342,
-0.0698758214712143,
0.25824785232543945,
0.12978121638298035,
-0.13680146634578705,
0.28990331292152405,
0.08412637561559677,
-0.24117881059646606,
0.3528224229812622,
0.05038420110940933,
-0.25061044096946716,
0.07915139943361282,
0.14902572333812714,
0.1158471405506134,
0.2734072506427765,
0.09892798215150833,
-0.12371557205915451,
0.1667005568742752,
-0.05851361155509949,
-0.4219196140766144,
0.2355532944202423,
0.2815839946269989,
-0.18547987937927246,
-0.30531445145606995,
-0.5116240382194519,
0.6158607006072998,
0.05597102269530296,
0.030451521277427673,
0.20863108336925507,
0.022399820387363434,
-0.41278135776519775,
0.44134289026260376,
0.26830101013183594,
0.9731236100196838,
-0.20404241979122162,
0.42499858140945435,
0.2317788004875183,
0.1344747692346573,
0.5237076282501221,
-0.5167384147644043,
0.3831544518470764,
-0.3056228458881378,
0.12684525549411774,
-0.013337370939552784,
-0.10856358706951141,
0.0364832878112793,
0.11471937596797943,
0.06540657579898834,
0.32536664605140686,
0.20793648064136505,
0.09614340960979462,
-0.07739405333995819,
0.45882660150527954,
-0.08006728440523148,
-0.342072457075119,
-0.19557972252368927,
0.12200655043125153,
-0.34487712383270264,
0.3898966610431671,
-0.364506334066391,
0.02170928195118904,
0.0776730328798294,
-0.11058748513460159,
-0.49160146713256836,
0.07951517403125763,
-0.3250877261161804,
0.4055940508842468,
-0.32848039269447327,
-0.1371368169784546,
-0.14217092096805573,
0.3159625232219696,
0.059257738292217255,
0.1933971494436264,
-0.24983972311019897,
0.2242748737335205,
-0.39769458770751953,
-0.23567746579647064,
0.020828528329730034,
0.23375335335731506,
0.4087521731853485,
-0.20691221952438354,
-0.2438366711139679,
0.09800377488136292,
-0.19044499099254608,
-0.37694138288497925,
-0.16764628887176514,
-0.10644690692424774,
0.08835647255182266,
-0.014652172103524208,
-0.31727904081344604,
-0.009053334593772888,
-0.14136441051959991,
0.05608152225613594,
0.08245320618152618,
0.013701200485229492,
-0.11961739510297775,
-0.09041149169206619,
0.030632831156253815,
-0.16258752346038818,
0.05373403802514076,
0.44527825713157654,
0.19932758808135986,
-0.1737644374370575,
0.6748780012130737,
0.3185998201370239,
-0.27011656761169434,
-0.058843545615673065,
-0.14549174904823303,
0.02652423083782196,
-0.39161595702171326,
0.08036035299301147,
-0.12232040613889694,
-0.03268934041261673,
-0.23293937742710114,
-0.015879709273576736,
0.2639749050140381,
-0.12890073657035828,
0.25036120414733887,
-0.3973310887813568,
-0.4390518367290497,
0.3276470899581909,
-0.13403767347335815,
0.18060168623924255,
0.26814308762550354,
-0.3036365211009979,
0.14833299815654755,
-0.0007166434079408646,
-0.17669665813446045,
-0.03368639945983887,
-0.2832545340061188,
0.19930225610733032,
0.3010995388031006,
-0.15525761246681213,
0.07127614319324493,
0.1344740390777588,
0.02811877243220806,
0.14065025746822357,
-0.1671307384967804,
-0.12094197422266006,
-0.021527446806430817,
0.1702214777469635,
-0.02118498831987381,
-0.15751145780086517,
0.00798907782882452,
-0.421522319316864,
0.1337193101644516,
-0.310049831867218,
0.09497389197349548,
0.09408218413591385,
-0.023131340742111206,
0.3049461841583252,
0.16527265310287476,
0.05894912779331207,
-0.09553581476211548,
0.45909538865089417,
0.0049066320061683655,
0.4881082773208618,
0.19494396448135376,
0.1460271179676056,
0.21745391190052032,
0.009513549506664276,
-0.5299924612045288,
0.05959620326757431,
-0.10480642318725586,
-0.035454995930194855,
0.12952885031700134,
-0.1712079644203186,
0.015818636864423752,
0.18677663803100586,
-0.040361709892749786,
0.10278234630823135,
-0.11737792938947678,
-0.0446842759847641,
0.2029738426208496,
0.13012681901454926,
-0.12902149558067322,
0.12196069955825806,
0.3430008888244629,
-0.038141876459121704,
-0.25534993410110474,
0.1517667919397354,
0.11667309701442719,
-0.02186013013124466,
-0.046397238969802856,
0.13871270418167114,
0.3468562960624695,
-0.0800422877073288,
0.08237461745738983,
-0.1870737373828888,
0.024710770696401596,
-0.04291197285056114,
-0.13443045318126678,
0.20511199533939362,
0.183724507689476,
0.40192586183547974,
0.0027957335114479065,
0.14150092005729675,
-0.16378340125083923,
0.07540396600961685,
-0.19108527898788452,
-0.32893985509872437,
0.02031482756137848,
0.5687049031257629,
-0.046991005539894104,
0.28436949849128723,
-0.14462773501873016,
0.178004652261734,
0.36120808124542236,
-0.13690340518951416,
-0.3671025335788727,
0.23132304847240448,
-0.144791841506958,
0.06172486022114754,
-0.05804899334907532,
-0.23646673560142517,
-0.20972779393196106,
0.2906804084777832,
0.05285215377807617,
-0.4837183356285095,
0.08078352361917496,
0.19289681315422058,
-0.1719193011522293,
-0.2963338792324066,
0.4201439321041107,
0.1663341224193573,
-0.019270814955234528,
-0.3831957280635834,
0.0990745946764946,
0.14486528933048248,
-0.04473133385181427,
-0.08720110356807709,
0.3097781538963318,
0.4060992896556854,
0.307193785905838,
-0.2704363167285919,
0.009355206973850727,
-0.0059445202350616455,
-0.006355118006467819,
-0.24959930777549744,
0.2559787631034851,
0.4065109193325043,
0.30596795678138733,
0.18039678037166595,
0.0541907399892807,
-0.1025390699505806,
-0.3101823031902313,
0.35936814546585083,
-0.06288810074329376,
-0.12125624716281891,
-0.019210614264011383,
-0.27703458070755005,
0.03510160744190216,
-0.2277393937110901,
0.04942265897989273,
-0.5648449063301086,
0.10318038612604141,
0.2087477594614029,
-0.13252109289169312,
0.11679694801568985,
-0.03639671206474304,
0.0014874264597892761,
-0.16575466096401215,
0.5369609594345093,
0.2511483132839203,
0.11229078471660614,
-0.4637848436832428,
-0.33754757046699524,
-0.5109274983406067,
0.07808143645524979,
-0.36463597416877747,
0.06499850004911423,
-0.055325523018836975,
0.373181015253067,
-0.171768456697464,
0.15667939186096191,
-0.26685935258865356,
0.10987328737974167,
-0.1133808046579361,
0.23890364170074463,
-0.30019551515579224,
-0.2587811052799225,
0.047004442662000656,
0.07872389256954193,
-0.080485038459301,
-0.2608901858329773,
0.08748621493577957,
-0.027488522231578827,
-0.05485668405890465,
-0.22844572365283966,
-0.20256641507148743,
0.08811447024345398,
0.2646348476409912,
0.2633492648601532,
0.1222846508026123,
0.5243081450462341,
0.07498640567064285,
-0.3782123923301697,
-0.2976657450199127,
-0.16730603575706482,
0.043589960783720016,
0.006588689982891083,
-0.08003641664981842,
0.5198345184326172,
-0.2667163610458374,
0.15822330117225647,
-0.438274621963501,
0.47565510869026184,
-0.1714075803756714,
0.10684449225664139,
-0.3627731204032898,
-0.15646681189537048,
0.03455982357263565,
0.22661159932613373,
0.20801550149917603,
0.18166369199752808,
-0.09175583720207214,
0.07733549177646637,
-0.25390756130218506,
-0.130958691239357,
0.3351978063583374,
-0.5924604535102844,
-0.329189658164978,
0.05241278558969498,
-0.05836741626262665,
-0.015294142067432404,
-0.11526071280241013,
-0.5271492004394531,
0.03435278683900833,
0.1688706874847412,
0.08817505091428757,
-0.1708846539258957,
-0.04184320196509361,
-0.06303338706493378,
-0.022889269515872,
-0.08436094224452972,
0.07172220200300217,
-0.12094808369874954,
-0.37930601835250854,
0.13732260465621948,
-0.26241302490234375
] |
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.047934237867593765,
0.12618984282016754,
0.01823919266462326,
0.6689180135726929,
0.24453239142894745,
0.15575051307678223,
0.0049347542226314545,
0.2083568423986435,
0.3758639991283417,
-0.05147726833820343,
0.26736199855804443,
-0.3312879502773285,
-0.17346249520778656,
-0.33417922258377075,
0.2296692281961441,
-0.4861278831958771,
0.09306766837835312,
0.058427438139915466,
-0.09685830771923065,
0.021348975598812103,
-0.2210387885570526,
0.28426259756088257,
-0.28608617186546326,
-0.12967433035373688,
-0.24149955809116364,
0.06827638298273087,
-0.06069453805685043,
0.05400705710053444,
-0.16134651005268097,
-0.4543808102607727,
0.10938993096351624,
-0.25727641582489014,
0.11816747486591339,
0.18110257387161255,
-0.00012172196147730574,
0.040037237107753754,
0.4013991951942444,
-0.17075611650943756,
-0.44416335225105286,
0.039255693554878235,
-0.04547303542494774,
-0.34079456329345703,
0.036734163761138916,
-0.26067250967025757,
0.06098288297653198,
-0.10650104284286499,
0.3253651559352875,
-0.08283902704715729,
0.3636324405670166,
0.17929722368717194,
0.1830790787935257,
0.05839966982603073,
0.2596978545188904,
-0.08299864083528519,
0.5757555365562439,
0.06039430573582649,
0.05178748071193695,
0.12043479084968567,
-0.3371911346912384,
-0.36692607402801514,
-0.2666928768157959,
0.29711106419563293,
0.01685977913439274,
0.10160952806472778,
0.3428904712200165,
-0.11834920197725296,
0.01459496095776558,
-0.21514847874641418,
0.21466639637947083,
-0.015584394335746765,
0.6984866857528687,
-0.2225387990474701,
0.05440381169319153,
-0.29872626066207886,
-0.08197605609893799,
0.1372261941432953,
0.36996880173683167,
0.37682044506073,
-0.5374550819396973,
-0.17521047592163086,
-0.18167944252490997,
-0.34899935126304626,
-0.16345667839050293,
0.33827126026153564,
0.05806886404752731,
0.24271070957183838,
-0.04609677195549011,
0.1656009405851364,
0.36606141924858093,
-0.04746382683515549,
-0.27681416273117065,
-0.11192229390144348,
-0.012181535363197327,
0.44622519612312317,
-0.07023480534553528,
0.06821910291910172,
-0.07997331768274307,
-0.06193233281373978,
0.23511576652526855,
-0.27922993898391724,
-0.0940655767917633,
-0.061494871973991394,
0.25387102365493774,
0.07732443511486053,
0.2765709459781647,
0.4570388197898865,
-0.1349075734615326,
-0.19879429042339325,
0.16015063226222992,
0.18069596588611603,
0.018549278378486633,
-0.16259822249412537,
-0.03485294058918953,
-0.16336487233638763,
-0.07738535106182098,
-0.025876425206661224,
-0.1039634495973587,
-0.04693923890590668,
0.020034873858094215,
0.1309572458267212,
-0.09636403620243073,
-0.13396574556827545,
-0.03216898813843727,
0.41890642046928406,
-0.13972453773021698,
0.33823058009147644,
0.29564785957336426,
0.06871721893548965,
-0.38477838039398193,
-0.295085072517395,
-0.14935268461704254,
0.15822187066078186,
-0.5230250954627991,
0.12379559874534607,
0.26629313826560974,
0.2771732807159424,
0.3613071143627167,
-0.12290947884321213,
-0.2683764100074768,
0.0498330295085907,
0.2657950818538666,
-0.18319763243198395,
-0.03237571567296982,
0.21564361453056335,
0.14843761920928955,
0.2886894643306732,
0.1391695886850357,
-0.22817523777484894,
0.00019440054893493652,
0.06192001327872276,
-0.1770707666873932,
-0.19407394528388977,
0.0692581906914711,
0.017681458964943886,
-0.15710210800170898,
0.15428680181503296,
-0.40317121148109436,
0.23672005534172058,
0.2888610363006592,
-0.212856724858284,
-0.09760531038045883,
-0.04226316511631012,
-0.23210309445858002,
-0.2615078091621399,
0.2098647505044937,
0.5494705438613892,
-0.09142802655696869,
-0.2689729630947113,
-0.07590148597955704,
-0.09879232943058014,
0.4090285301208496,
0.23754960298538208,
-0.10521618276834488,
0.29600444436073303,
-0.23157164454460144,
0.09871353209018707,
0.3416326940059662,
-0.17392174899578094,
-0.33195164799690247,
0.13097745180130005,
0.11024217307567596,
0.16385501623153687,
0.05625869706273079,
0.0016745480243116617,
0.011861449107527733,
0.19847527146339417,
0.19970852136611938,
0.3413088917732239,
-0.035260796546936035,
0.2907262444496155,
-0.2670721411705017,
-0.27098846435546875,
0.2600758373737335,
0.008650049567222595,
0.35167476534843445,
0.05551519617438316,
0.09452015161514282,
0.830819308757782,
0.2724245488643646,
-0.06893250346183777,
0.3318050801753998,
0.5638169646263123,
-0.2277192622423172,
0.05730930715799332,
-0.01126883551478386,
-0.0633692592382431,
-0.24862545728683472,
0.19277164340019226,
-0.30672797560691833,
0.30945438146591187,
-0.02148185670375824,
0.13213324546813965,
-0.16403034329414368,
-0.09691454470157623,
-0.056675028055906296,
-0.36996200680732727,
0.08882925659418106,
0.1652466356754303,
0.11012624204158783,
0.21409763395786285,
0.13791552186012268,
0.262728750705719,
-0.011161120608448982,
0.02267480082809925,
-0.6933614611625671,
0.2087743878364563,
-0.1417614221572876,
-0.152197003364563,
-0.010932080447673798,
0.10963761806488037,
0.1333906054496765,
0.1438274383544922,
-0.13231351971626282,
0.12147529423236847,
0.09903743118047714,
-0.04699431359767914,
0.1362224817276001,
-0.025001615285873413,
0.26590022444725037,
-0.18806713819503784,
0.43380820751190186,
0.05866863206028938,
0.16085097193717957,
-0.15430445969104767,
0.04690384492278099,
-0.21383868157863617,
0.07204590737819672,
0.2993030846118927,
0.0846954733133316,
0.034719906747341156,
0.16727255284786224,
0.15033861994743347,
0.15188223123550415,
-0.1656808704137802,
0.40921303629875183,
0.08061893284320831,
0.1114233136177063,
-0.0011587291955947876,
0.026664167642593384,
-0.4050893187522888,
0.4183509349822998,
0.17379716038703918,
0.14272716641426086,
0.2619022727012634,
-0.44561731815338135,
-0.29049476981163025,
0.22474895417690277,
-0.057462919503450394,
0.2343137264251709,
0.08118821680545807,
0.13385699689388275,
0.028996627777814865,
0.1593959480524063,
0.037910353392362595,
0.09362144768238068,
0.05890113115310669,
0.5227372646331787,
0.011513281613588333,
0.01255209743976593,
-0.13416168093681335,
-0.21342790126800537,
0.08087125420570374,
0.031299129128456116,
0.41698142886161804,
-0.19021664559841156,
-0.03903007134795189,
-0.002698838710784912,
-0.5402330160140991,
-0.3053191900253296,
0.261686772108078,
-0.48820292949676514,
-0.2883307933807373,
-0.24136187136173248,
0.28014376759529114,
-0.06628736853599548,
-0.01345226913690567,
0.06859636306762695,
0.1989397555589676,
0.10880288481712341,
-0.149442657828331,
-0.12989068031311035,
-0.28263673186302185,
-0.3521512746810913,
-0.013216715306043625,
0.17804628610610962,
0.045792076736688614,
0.2574235796928406,
0.047495096921920776,
-0.12937715649604797,
-0.22526195645332336,
-0.1390881985425949,
0.19317539036273956,
0.019398480653762817,
0.13235269486904144,
0.08083796501159668,
0.644194483757019,
-0.09161858260631561,
-0.1589270830154419,
0.31237050890922546,
-0.13450272381305695,
-0.11235075443983078,
0.20584477484226227,
0.002116741379722953,
0.18940763175487518,
0.023846957832574844,
-0.03552217036485672,
-0.12397218495607376,
-0.4503406584262848,
0.16867423057556152,
0.16548077762126923,
-0.02025245875120163,
0.3478741943836212,
0.12827099859714508,
0.07828836143016815,
0.17750446498394012,
0.1381353884935379,
-0.19091568887233734,
-0.05106762796640396,
0.24691380560398102,
-0.33097216486930847,
-0.30591267347335815,
-0.07152077555656433,
-0.16015827655792236,
0.22426077723503113,
0.4027503728866577,
-0.6984956860542297,
0.10614901781082153,
-0.12761783599853516,
-0.21900241076946259,
0.049092233180999756,
0.037253838032484055,
0.368399441242218,
-0.19165408611297607,
-0.019381500780582428,
-0.002128247171640396,
-0.0695347785949707,
-0.033537156879901886,
-0.211290180683136,
0.6732006072998047,
0.18784362077713013,
0.35257479548454285,
0.28118011355400085,
0.9196681976318359,
0.21025899052619934,
0.4203181266784668,
0.4592580497264862,
0.18456365168094635,
0.2118266522884369,
-0.13920894265174866,
-0.21654070913791656,
0.05427180603146553,
-0.2958499491214752,
-0.14695614576339722,
0.193008154630661,
0.05399882420897484,
-0.5334840416908264,
-0.33630722761154175,
-0.22295637428760529,
-0.17357781529426575,
-0.33171752095222473,
0.3225136995315552,
-0.00729680061340332,
0.3478624224662781,
-0.05778658390045166,
-0.03294028341770172,
-0.27377450466156006,
-0.45345133543014526,
0.02441592514514923,
0.052549540996551514,
0.03614296391606331,
0.19822049140930176,
-0.07064071297645569,
0.09258247166872025,
-0.7637268304824829,
0.052149269729852676,
0.022450117394328117,
0.25257033109664917,
-0.23398101329803467,
-0.03759746253490448,
-0.053365692496299744,
-0.0019641448743641376,
0.6382453441619873,
-0.12215348333120346,
-0.10831336677074432,
-0.0036729183048009872,
-0.07280083000659943,
-0.63275146484375,
-0.003490690141916275,
-0.014183662831783295,
0.019742736592888832,
0.22992953658103943,
-0.009248033165931702,
-0.439451664686203,
-0.017310258001089096,
0.1475982666015625,
0.2754668891429901,
-0.3025970458984375,
-0.09351510554552078,
-0.36616477370262146,
-0.11953209340572357,
-0.5057443976402283,
-0.12866362929344177,
0.06480952352285385,
0.22246147692203522,
0.38460052013397217,
0.31604883074760437,
0.09972180426120758,
0.08570294082164764,
-0.012087523937225342,
-0.0698758214712143,
0.25824785232543945,
0.12978121638298035,
-0.13680146634578705,
0.28990331292152405,
0.08412637561559677,
-0.24117881059646606,
0.3528224229812622,
0.05038420110940933,
-0.25061044096946716,
0.07915139943361282,
0.14902572333812714,
0.1158471405506134,
0.2734072506427765,
0.09892798215150833,
-0.12371557205915451,
0.1667005568742752,
-0.05851361155509949,
-0.4219196140766144,
0.2355532944202423,
0.2815839946269989,
-0.18547987937927246,
-0.30531445145606995,
-0.5116240382194519,
0.6158607006072998,
0.05597102269530296,
0.030451521277427673,
0.20863108336925507,
0.022399820387363434,
-0.41278135776519775,
0.44134289026260376,
0.26830101013183594,
0.9731236100196838,
-0.20404241979122162,
0.42499858140945435,
0.2317788004875183,
0.1344747692346573,
0.5237076282501221,
-0.5167384147644043,
0.3831544518470764,
-0.3056228458881378,
0.12684525549411774,
-0.013337370939552784,
-0.10856358706951141,
0.0364832878112793,
0.11471937596797943,
0.06540657579898834,
0.32536664605140686,
0.20793648064136505,
0.09614340960979462,
-0.07739405333995819,
0.45882660150527954,
-0.08006728440523148,
-0.342072457075119,
-0.19557972252368927,
0.12200655043125153,
-0.34487712383270264,
0.3898966610431671,
-0.364506334066391,
0.02170928195118904,
0.0776730328798294,
-0.11058748513460159,
-0.49160146713256836,
0.07951517403125763,
-0.3250877261161804,
0.4055940508842468,
-0.32848039269447327,
-0.1371368169784546,
-0.14217092096805573,
0.3159625232219696,
0.059257738292217255,
0.1933971494436264,
-0.24983972311019897,
0.2242748737335205,
-0.39769458770751953,
-0.23567746579647064,
0.020828528329730034,
0.23375335335731506,
0.4087521731853485,
-0.20691221952438354,
-0.2438366711139679,
0.09800377488136292,
-0.19044499099254608,
-0.37694138288497925,
-0.16764628887176514,
-0.10644690692424774,
0.08835647255182266,
-0.014652172103524208,
-0.31727904081344604,
-0.009053334593772888,
-0.14136441051959991,
0.05608152225613594,
0.08245320618152618,
0.013701200485229492,
-0.11961739510297775,
-0.09041149169206619,
0.030632831156253815,
-0.16258752346038818,
0.05373403802514076,
0.44527825713157654,
0.19932758808135986,
-0.1737644374370575,
0.6748780012130737,
0.3185998201370239,
-0.27011656761169434,
-0.058843545615673065,
-0.14549174904823303,
0.02652423083782196,
-0.39161595702171326,
0.08036035299301147,
-0.12232040613889694,
-0.03268934041261673,
-0.23293937742710114,
-0.015879709273576736,
0.2639749050140381,
-0.12890073657035828,
0.25036120414733887,
-0.3973310887813568,
-0.4390518367290497,
0.3276470899581909,
-0.13403767347335815,
0.18060168623924255,
0.26814308762550354,
-0.3036365211009979,
0.14833299815654755,
-0.0007166434079408646,
-0.17669665813446045,
-0.03368639945983887,
-0.2832545340061188,
0.19930225610733032,
0.3010995388031006,
-0.15525761246681213,
0.07127614319324493,
0.1344740390777588,
0.02811877243220806,
0.14065025746822357,
-0.1671307384967804,
-0.12094197422266006,
-0.021527446806430817,
0.1702214777469635,
-0.02118498831987381,
-0.15751145780086517,
0.00798907782882452,
-0.421522319316864,
0.1337193101644516,
-0.310049831867218,
0.09497389197349548,
0.09408218413591385,
-0.023131340742111206,
0.3049461841583252,
0.16527265310287476,
0.05894912779331207,
-0.09553581476211548,
0.45909538865089417,
0.0049066320061683655,
0.4881082773208618,
0.19494396448135376,
0.1460271179676056,
0.21745391190052032,
0.009513549506664276,
-0.5299924612045288,
0.05959620326757431,
-0.10480642318725586,
-0.035454995930194855,
0.12952885031700134,
-0.1712079644203186,
0.015818636864423752,
0.18677663803100586,
-0.040361709892749786,
0.10278234630823135,
-0.11737792938947678,
-0.0446842759847641,
0.2029738426208496,
0.13012681901454926,
-0.12902149558067322,
0.12196069955825806,
0.3430008888244629,
-0.038141876459121704,
-0.25534993410110474,
0.1517667919397354,
0.11667309701442719,
-0.02186013013124466,
-0.046397238969802856,
0.13871270418167114,
0.3468562960624695,
-0.0800422877073288,
0.08237461745738983,
-0.1870737373828888,
0.024710770696401596,
-0.04291197285056114,
-0.13443045318126678,
0.20511199533939362,
0.183724507689476,
0.40192586183547974,
0.0027957335114479065,
0.14150092005729675,
-0.16378340125083923,
0.07540396600961685,
-0.19108527898788452,
-0.32893985509872437,
0.02031482756137848,
0.5687049031257629,
-0.046991005539894104,
0.28436949849128723,
-0.14462773501873016,
0.178004652261734,
0.36120808124542236,
-0.13690340518951416,
-0.3671025335788727,
0.23132304847240448,
-0.144791841506958,
0.06172486022114754,
-0.05804899334907532,
-0.23646673560142517,
-0.20972779393196106,
0.2906804084777832,
0.05285215377807617,
-0.4837183356285095,
0.08078352361917496,
0.19289681315422058,
-0.1719193011522293,
-0.2963338792324066,
0.4201439321041107,
0.1663341224193573,
-0.019270814955234528,
-0.3831957280635834,
0.0990745946764946,
0.14486528933048248,
-0.04473133385181427,
-0.08720110356807709,
0.3097781538963318,
0.4060992896556854,
0.307193785905838,
-0.2704363167285919,
0.009355206973850727,
-0.0059445202350616455,
-0.006355118006467819,
-0.24959930777549744,
0.2559787631034851,
0.4065109193325043,
0.30596795678138733,
0.18039678037166595,
0.0541907399892807,
-0.1025390699505806,
-0.3101823031902313,
0.35936814546585083,
-0.06288810074329376,
-0.12125624716281891,
-0.019210614264011383,
-0.27703458070755005,
0.03510160744190216,
-0.2277393937110901,
0.04942265897989273,
-0.5648449063301086,
0.10318038612604141,
0.2087477594614029,
-0.13252109289169312,
0.11679694801568985,
-0.03639671206474304,
0.0014874264597892761,
-0.16575466096401215,
0.5369609594345093,
0.2511483132839203,
0.11229078471660614,
-0.4637848436832428,
-0.33754757046699524,
-0.5109274983406067,
0.07808143645524979,
-0.36463597416877747,
0.06499850004911423,
-0.055325523018836975,
0.373181015253067,
-0.171768456697464,
0.15667939186096191,
-0.26685935258865356,
0.10987328737974167,
-0.1133808046579361,
0.23890364170074463,
-0.30019551515579224,
-0.2587811052799225,
0.047004442662000656,
0.07872389256954193,
-0.080485038459301,
-0.2608901858329773,
0.08748621493577957,
-0.027488522231578827,
-0.05485668405890465,
-0.22844572365283966,
-0.20256641507148743,
0.08811447024345398,
0.2646348476409912,
0.2633492648601532,
0.1222846508026123,
0.5243081450462341,
0.07498640567064285,
-0.3782123923301697,
-0.2976657450199127,
-0.16730603575706482,
0.043589960783720016,
0.006588689982891083,
-0.08003641664981842,
0.5198345184326172,
-0.2667163610458374,
0.15822330117225647,
-0.438274621963501,
0.47565510869026184,
-0.1714075803756714,
0.10684449225664139,
-0.3627731204032898,
-0.15646681189537048,
0.03455982357263565,
0.22661159932613373,
0.20801550149917603,
0.18166369199752808,
-0.09175583720207214,
0.07733549177646637,
-0.25390756130218506,
-0.130958691239357,
0.3351978063583374,
-0.5924604535102844,
-0.329189658164978,
0.05241278558969498,
-0.05836741626262665,
-0.015294142067432404,
-0.11526071280241013,
-0.5271492004394531,
0.03435278683900833,
0.1688706874847412,
0.08817505091428757,
-0.1708846539258957,
-0.04184320196509361,
-0.06303338706493378,
-0.022889269515872,
-0.08436094224452972,
0.07172220200300217,
-0.12094808369874954,
-0.37930601835250854,
0.13732260465621948,
-0.26241302490234375
] |
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.047934237867593765,
0.12618984282016754,
0.01823919266462326,
0.6689180135726929,
0.24453239142894745,
0.15575051307678223,
0.0049347542226314545,
0.2083568423986435,
0.3758639991283417,
-0.05147726833820343,
0.26736199855804443,
-0.3312879502773285,
-0.17346249520778656,
-0.33417922258377075,
0.2296692281961441,
-0.4861278831958771,
0.09306766837835312,
0.058427438139915466,
-0.09685830771923065,
0.021348975598812103,
-0.2210387885570526,
0.28426259756088257,
-0.28608617186546326,
-0.12967433035373688,
-0.24149955809116364,
0.06827638298273087,
-0.06069453805685043,
0.05400705710053444,
-0.16134651005268097,
-0.4543808102607727,
0.10938993096351624,
-0.25727641582489014,
0.11816747486591339,
0.18110257387161255,
-0.00012172196147730574,
0.040037237107753754,
0.4013991951942444,
-0.17075611650943756,
-0.44416335225105286,
0.039255693554878235,
-0.04547303542494774,
-0.34079456329345703,
0.036734163761138916,
-0.26067250967025757,
0.06098288297653198,
-0.10650104284286499,
0.3253651559352875,
-0.08283902704715729,
0.3636324405670166,
0.17929722368717194,
0.1830790787935257,
0.05839966982603073,
0.2596978545188904,
-0.08299864083528519,
0.5757555365562439,
0.06039430573582649,
0.05178748071193695,
0.12043479084968567,
-0.3371911346912384,
-0.36692607402801514,
-0.2666928768157959,
0.29711106419563293,
0.01685977913439274,
0.10160952806472778,
0.3428904712200165,
-0.11834920197725296,
0.01459496095776558,
-0.21514847874641418,
0.21466639637947083,
-0.015584394335746765,
0.6984866857528687,
-0.2225387990474701,
0.05440381169319153,
-0.29872626066207886,
-0.08197605609893799,
0.1372261941432953,
0.36996880173683167,
0.37682044506073,
-0.5374550819396973,
-0.17521047592163086,
-0.18167944252490997,
-0.34899935126304626,
-0.16345667839050293,
0.33827126026153564,
0.05806886404752731,
0.24271070957183838,
-0.04609677195549011,
0.1656009405851364,
0.36606141924858093,
-0.04746382683515549,
-0.27681416273117065,
-0.11192229390144348,
-0.012181535363197327,
0.44622519612312317,
-0.07023480534553528,
0.06821910291910172,
-0.07997331768274307,
-0.06193233281373978,
0.23511576652526855,
-0.27922993898391724,
-0.0940655767917633,
-0.061494871973991394,
0.25387102365493774,
0.07732443511486053,
0.2765709459781647,
0.4570388197898865,
-0.1349075734615326,
-0.19879429042339325,
0.16015063226222992,
0.18069596588611603,
0.018549278378486633,
-0.16259822249412537,
-0.03485294058918953,
-0.16336487233638763,
-0.07738535106182098,
-0.025876425206661224,
-0.1039634495973587,
-0.04693923890590668,
0.020034873858094215,
0.1309572458267212,
-0.09636403620243073,
-0.13396574556827545,
-0.03216898813843727,
0.41890642046928406,
-0.13972453773021698,
0.33823058009147644,
0.29564785957336426,
0.06871721893548965,
-0.38477838039398193,
-0.295085072517395,
-0.14935268461704254,
0.15822187066078186,
-0.5230250954627991,
0.12379559874534607,
0.26629313826560974,
0.2771732807159424,
0.3613071143627167,
-0.12290947884321213,
-0.2683764100074768,
0.0498330295085907,
0.2657950818538666,
-0.18319763243198395,
-0.03237571567296982,
0.21564361453056335,
0.14843761920928955,
0.2886894643306732,
0.1391695886850357,
-0.22817523777484894,
0.00019440054893493652,
0.06192001327872276,
-0.1770707666873932,
-0.19407394528388977,
0.0692581906914711,
0.017681458964943886,
-0.15710210800170898,
0.15428680181503296,
-0.40317121148109436,
0.23672005534172058,
0.2888610363006592,
-0.212856724858284,
-0.09760531038045883,
-0.04226316511631012,
-0.23210309445858002,
-0.2615078091621399,
0.2098647505044937,
0.5494705438613892,
-0.09142802655696869,
-0.2689729630947113,
-0.07590148597955704,
-0.09879232943058014,
0.4090285301208496,
0.23754960298538208,
-0.10521618276834488,
0.29600444436073303,
-0.23157164454460144,
0.09871353209018707,
0.3416326940059662,
-0.17392174899578094,
-0.33195164799690247,
0.13097745180130005,
0.11024217307567596,
0.16385501623153687,
0.05625869706273079,
0.0016745480243116617,
0.011861449107527733,
0.19847527146339417,
0.19970852136611938,
0.3413088917732239,
-0.035260796546936035,
0.2907262444496155,
-0.2670721411705017,
-0.27098846435546875,
0.2600758373737335,
0.008650049567222595,
0.35167476534843445,
0.05551519617438316,
0.09452015161514282,
0.830819308757782,
0.2724245488643646,
-0.06893250346183777,
0.3318050801753998,
0.5638169646263123,
-0.2277192622423172,
0.05730930715799332,
-0.01126883551478386,
-0.0633692592382431,
-0.24862545728683472,
0.19277164340019226,
-0.30672797560691833,
0.30945438146591187,
-0.02148185670375824,
0.13213324546813965,
-0.16403034329414368,
-0.09691454470157623,
-0.056675028055906296,
-0.36996200680732727,
0.08882925659418106,
0.1652466356754303,
0.11012624204158783,
0.21409763395786285,
0.13791552186012268,
0.262728750705719,
-0.011161120608448982,
0.02267480082809925,
-0.6933614611625671,
0.2087743878364563,
-0.1417614221572876,
-0.152197003364563,
-0.010932080447673798,
0.10963761806488037,
0.1333906054496765,
0.1438274383544922,
-0.13231351971626282,
0.12147529423236847,
0.09903743118047714,
-0.04699431359767914,
0.1362224817276001,
-0.025001615285873413,
0.26590022444725037,
-0.18806713819503784,
0.43380820751190186,
0.05866863206028938,
0.16085097193717957,
-0.15430445969104767,
0.04690384492278099,
-0.21383868157863617,
0.07204590737819672,
0.2993030846118927,
0.0846954733133316,
0.034719906747341156,
0.16727255284786224,
0.15033861994743347,
0.15188223123550415,
-0.1656808704137802,
0.40921303629875183,
0.08061893284320831,
0.1114233136177063,
-0.0011587291955947876,
0.026664167642593384,
-0.4050893187522888,
0.4183509349822998,
0.17379716038703918,
0.14272716641426086,
0.2619022727012634,
-0.44561731815338135,
-0.29049476981163025,
0.22474895417690277,
-0.057462919503450394,
0.2343137264251709,
0.08118821680545807,
0.13385699689388275,
0.028996627777814865,
0.1593959480524063,
0.037910353392362595,
0.09362144768238068,
0.05890113115310669,
0.5227372646331787,
0.011513281613588333,
0.01255209743976593,
-0.13416168093681335,
-0.21342790126800537,
0.08087125420570374,
0.031299129128456116,
0.41698142886161804,
-0.19021664559841156,
-0.03903007134795189,
-0.002698838710784912,
-0.5402330160140991,
-0.3053191900253296,
0.261686772108078,
-0.48820292949676514,
-0.2883307933807373,
-0.24136187136173248,
0.28014376759529114,
-0.06628736853599548,
-0.01345226913690567,
0.06859636306762695,
0.1989397555589676,
0.10880288481712341,
-0.149442657828331,
-0.12989068031311035,
-0.28263673186302185,
-0.3521512746810913,
-0.013216715306043625,
0.17804628610610962,
0.045792076736688614,
0.2574235796928406,
0.047495096921920776,
-0.12937715649604797,
-0.22526195645332336,
-0.1390881985425949,
0.19317539036273956,
0.019398480653762817,
0.13235269486904144,
0.08083796501159668,
0.644194483757019,
-0.09161858260631561,
-0.1589270830154419,
0.31237050890922546,
-0.13450272381305695,
-0.11235075443983078,
0.20584477484226227,
0.002116741379722953,
0.18940763175487518,
0.023846957832574844,
-0.03552217036485672,
-0.12397218495607376,
-0.4503406584262848,
0.16867423057556152,
0.16548077762126923,
-0.02025245875120163,
0.3478741943836212,
0.12827099859714508,
0.07828836143016815,
0.17750446498394012,
0.1381353884935379,
-0.19091568887233734,
-0.05106762796640396,
0.24691380560398102,
-0.33097216486930847,
-0.30591267347335815,
-0.07152077555656433,
-0.16015827655792236,
0.22426077723503113,
0.4027503728866577,
-0.6984956860542297,
0.10614901781082153,
-0.12761783599853516,
-0.21900241076946259,
0.049092233180999756,
0.037253838032484055,
0.368399441242218,
-0.19165408611297607,
-0.019381500780582428,
-0.002128247171640396,
-0.0695347785949707,
-0.033537156879901886,
-0.211290180683136,
0.6732006072998047,
0.18784362077713013,
0.35257479548454285,
0.28118011355400085,
0.9196681976318359,
0.21025899052619934,
0.4203181266784668,
0.4592580497264862,
0.18456365168094635,
0.2118266522884369,
-0.13920894265174866,
-0.21654070913791656,
0.05427180603146553,
-0.2958499491214752,
-0.14695614576339722,
0.193008154630661,
0.05399882420897484,
-0.5334840416908264,
-0.33630722761154175,
-0.22295637428760529,
-0.17357781529426575,
-0.33171752095222473,
0.3225136995315552,
-0.00729680061340332,
0.3478624224662781,
-0.05778658390045166,
-0.03294028341770172,
-0.27377450466156006,
-0.45345133543014526,
0.02441592514514923,
0.052549540996551514,
0.03614296391606331,
0.19822049140930176,
-0.07064071297645569,
0.09258247166872025,
-0.7637268304824829,
0.052149269729852676,
0.022450117394328117,
0.25257033109664917,
-0.23398101329803467,
-0.03759746253490448,
-0.053365692496299744,
-0.0019641448743641376,
0.6382453441619873,
-0.12215348333120346,
-0.10831336677074432,
-0.0036729183048009872,
-0.07280083000659943,
-0.63275146484375,
-0.003490690141916275,
-0.014183662831783295,
0.019742736592888832,
0.22992953658103943,
-0.009248033165931702,
-0.439451664686203,
-0.017310258001089096,
0.1475982666015625,
0.2754668891429901,
-0.3025970458984375,
-0.09351510554552078,
-0.36616477370262146,
-0.11953209340572357,
-0.5057443976402283,
-0.12866362929344177,
0.06480952352285385,
0.22246147692203522,
0.38460052013397217,
0.31604883074760437,
0.09972180426120758,
0.08570294082164764,
-0.012087523937225342,
-0.0698758214712143,
0.25824785232543945,
0.12978121638298035,
-0.13680146634578705,
0.28990331292152405,
0.08412637561559677,
-0.24117881059646606,
0.3528224229812622,
0.05038420110940933,
-0.25061044096946716,
0.07915139943361282,
0.14902572333812714,
0.1158471405506134,
0.2734072506427765,
0.09892798215150833,
-0.12371557205915451,
0.1667005568742752,
-0.05851361155509949,
-0.4219196140766144,
0.2355532944202423,
0.2815839946269989,
-0.18547987937927246,
-0.30531445145606995,
-0.5116240382194519,
0.6158607006072998,
0.05597102269530296,
0.030451521277427673,
0.20863108336925507,
0.022399820387363434,
-0.41278135776519775,
0.44134289026260376,
0.26830101013183594,
0.9731236100196838,
-0.20404241979122162,
0.42499858140945435,
0.2317788004875183,
0.1344747692346573,
0.5237076282501221,
-0.5167384147644043,
0.3831544518470764,
-0.3056228458881378,
0.12684525549411774,
-0.013337370939552784,
-0.10856358706951141,
0.0364832878112793,
0.11471937596797943,
0.06540657579898834,
0.32536664605140686,
0.20793648064136505,
0.09614340960979462,
-0.07739405333995819,
0.45882660150527954,
-0.08006728440523148,
-0.342072457075119,
-0.19557972252368927,
0.12200655043125153,
-0.34487712383270264,
0.3898966610431671,
-0.364506334066391,
0.02170928195118904,
0.0776730328798294,
-0.11058748513460159,
-0.49160146713256836,
0.07951517403125763,
-0.3250877261161804,
0.4055940508842468,
-0.32848039269447327,
-0.1371368169784546,
-0.14217092096805573,
0.3159625232219696,
0.059257738292217255,
0.1933971494436264,
-0.24983972311019897,
0.2242748737335205,
-0.39769458770751953,
-0.23567746579647064,
0.020828528329730034,
0.23375335335731506,
0.4087521731853485,
-0.20691221952438354,
-0.2438366711139679,
0.09800377488136292,
-0.19044499099254608,
-0.37694138288497925,
-0.16764628887176514,
-0.10644690692424774,
0.08835647255182266,
-0.014652172103524208,
-0.31727904081344604,
-0.009053334593772888,
-0.14136441051959991,
0.05608152225613594,
0.08245320618152618,
0.013701200485229492,
-0.11961739510297775,
-0.09041149169206619,
0.030632831156253815,
-0.16258752346038818,
0.05373403802514076,
0.44527825713157654,
0.19932758808135986,
-0.1737644374370575,
0.6748780012130737,
0.3185998201370239,
-0.27011656761169434,
-0.058843545615673065,
-0.14549174904823303,
0.02652423083782196,
-0.39161595702171326,
0.08036035299301147,
-0.12232040613889694,
-0.03268934041261673,
-0.23293937742710114,
-0.015879709273576736,
0.2639749050140381,
-0.12890073657035828,
0.25036120414733887,
-0.3973310887813568,
-0.4390518367290497,
0.3276470899581909,
-0.13403767347335815,
0.18060168623924255,
0.26814308762550354,
-0.3036365211009979,
0.14833299815654755,
-0.0007166434079408646,
-0.17669665813446045,
-0.03368639945983887,
-0.2832545340061188,
0.19930225610733032,
0.3010995388031006,
-0.15525761246681213,
0.07127614319324493,
0.1344740390777588,
0.02811877243220806,
0.14065025746822357,
-0.1671307384967804,
-0.12094197422266006,
-0.021527446806430817,
0.1702214777469635,
-0.02118498831987381,
-0.15751145780086517,
0.00798907782882452,
-0.421522319316864,
0.1337193101644516,
-0.310049831867218,
0.09497389197349548,
0.09408218413591385,
-0.023131340742111206,
0.3049461841583252,
0.16527265310287476,
0.05894912779331207,
-0.09553581476211548,
0.45909538865089417,
0.0049066320061683655,
0.4881082773208618,
0.19494396448135376,
0.1460271179676056,
0.21745391190052032,
0.009513549506664276,
-0.5299924612045288,
0.05959620326757431,
-0.10480642318725586,
-0.035454995930194855,
0.12952885031700134,
-0.1712079644203186,
0.015818636864423752,
0.18677663803100586,
-0.040361709892749786,
0.10278234630823135,
-0.11737792938947678,
-0.0446842759847641,
0.2029738426208496,
0.13012681901454926,
-0.12902149558067322,
0.12196069955825806,
0.3430008888244629,
-0.038141876459121704,
-0.25534993410110474,
0.1517667919397354,
0.11667309701442719,
-0.02186013013124466,
-0.046397238969802856,
0.13871270418167114,
0.3468562960624695,
-0.0800422877073288,
0.08237461745738983,
-0.1870737373828888,
0.024710770696401596,
-0.04291197285056114,
-0.13443045318126678,
0.20511199533939362,
0.183724507689476,
0.40192586183547974,
0.0027957335114479065,
0.14150092005729675,
-0.16378340125083923,
0.07540396600961685,
-0.19108527898788452,
-0.32893985509872437,
0.02031482756137848,
0.5687049031257629,
-0.046991005539894104,
0.28436949849128723,
-0.14462773501873016,
0.178004652261734,
0.36120808124542236,
-0.13690340518951416,
-0.3671025335788727,
0.23132304847240448,
-0.144791841506958,
0.06172486022114754,
-0.05804899334907532,
-0.23646673560142517,
-0.20972779393196106,
0.2906804084777832,
0.05285215377807617,
-0.4837183356285095,
0.08078352361917496,
0.19289681315422058,
-0.1719193011522293,
-0.2963338792324066,
0.4201439321041107,
0.1663341224193573,
-0.019270814955234528,
-0.3831957280635834,
0.0990745946764946,
0.14486528933048248,
-0.04473133385181427,
-0.08720110356807709,
0.3097781538963318,
0.4060992896556854,
0.307193785905838,
-0.2704363167285919,
0.009355206973850727,
-0.0059445202350616455,
-0.006355118006467819,
-0.24959930777549744,
0.2559787631034851,
0.4065109193325043,
0.30596795678138733,
0.18039678037166595,
0.0541907399892807,
-0.1025390699505806,
-0.3101823031902313,
0.35936814546585083,
-0.06288810074329376,
-0.12125624716281891,
-0.019210614264011383,
-0.27703458070755005,
0.03510160744190216,
-0.2277393937110901,
0.04942265897989273,
-0.5648449063301086,
0.10318038612604141,
0.2087477594614029,
-0.13252109289169312,
0.11679694801568985,
-0.03639671206474304,
0.0014874264597892761,
-0.16575466096401215,
0.5369609594345093,
0.2511483132839203,
0.11229078471660614,
-0.4637848436832428,
-0.33754757046699524,
-0.5109274983406067,
0.07808143645524979,
-0.36463597416877747,
0.06499850004911423,
-0.055325523018836975,
0.373181015253067,
-0.171768456697464,
0.15667939186096191,
-0.26685935258865356,
0.10987328737974167,
-0.1133808046579361,
0.23890364170074463,
-0.30019551515579224,
-0.2587811052799225,
0.047004442662000656,
0.07872389256954193,
-0.080485038459301,
-0.2608901858329773,
0.08748621493577957,
-0.027488522231578827,
-0.05485668405890465,
-0.22844572365283966,
-0.20256641507148743,
0.08811447024345398,
0.2646348476409912,
0.2633492648601532,
0.1222846508026123,
0.5243081450462341,
0.07498640567064285,
-0.3782123923301697,
-0.2976657450199127,
-0.16730603575706482,
0.043589960783720016,
0.006588689982891083,
-0.08003641664981842,
0.5198345184326172,
-0.2667163610458374,
0.15822330117225647,
-0.438274621963501,
0.47565510869026184,
-0.1714075803756714,
0.10684449225664139,
-0.3627731204032898,
-0.15646681189537048,
0.03455982357263565,
0.22661159932613373,
0.20801550149917603,
0.18166369199752808,
-0.09175583720207214,
0.07733549177646637,
-0.25390756130218506,
-0.130958691239357,
0.3351978063583374,
-0.5924604535102844,
-0.329189658164978,
0.05241278558969498,
-0.05836741626262665,
-0.015294142067432404,
-0.11526071280241013,
-0.5271492004394531,
0.03435278683900833,
0.1688706874847412,
0.08817505091428757,
-0.1708846539258957,
-0.04184320196509361,
-0.06303338706493378,
-0.022889269515872,
-0.08436094224452972,
0.07172220200300217,
-0.12094808369874954,
-0.37930601835250854,
0.13732260465621948,
-0.26241302490234375
] |
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.047934237867593765,
0.12618984282016754,
0.01823919266462326,
0.6689180135726929,
0.24453239142894745,
0.15575051307678223,
0.0049347542226314545,
0.2083568423986435,
0.3758639991283417,
-0.05147726833820343,
0.26736199855804443,
-0.3312879502773285,
-0.17346249520778656,
-0.33417922258377075,
0.2296692281961441,
-0.4861278831958771,
0.09306766837835312,
0.058427438139915466,
-0.09685830771923065,
0.021348975598812103,
-0.2210387885570526,
0.28426259756088257,
-0.28608617186546326,
-0.12967433035373688,
-0.24149955809116364,
0.06827638298273087,
-0.06069453805685043,
0.05400705710053444,
-0.16134651005268097,
-0.4543808102607727,
0.10938993096351624,
-0.25727641582489014,
0.11816747486591339,
0.18110257387161255,
-0.00012172196147730574,
0.040037237107753754,
0.4013991951942444,
-0.17075611650943756,
-0.44416335225105286,
0.039255693554878235,
-0.04547303542494774,
-0.34079456329345703,
0.036734163761138916,
-0.26067250967025757,
0.06098288297653198,
-0.10650104284286499,
0.3253651559352875,
-0.08283902704715729,
0.3636324405670166,
0.17929722368717194,
0.1830790787935257,
0.05839966982603073,
0.2596978545188904,
-0.08299864083528519,
0.5757555365562439,
0.06039430573582649,
0.05178748071193695,
0.12043479084968567,
-0.3371911346912384,
-0.36692607402801514,
-0.2666928768157959,
0.29711106419563293,
0.01685977913439274,
0.10160952806472778,
0.3428904712200165,
-0.11834920197725296,
0.01459496095776558,
-0.21514847874641418,
0.21466639637947083,
-0.015584394335746765,
0.6984866857528687,
-0.2225387990474701,
0.05440381169319153,
-0.29872626066207886,
-0.08197605609893799,
0.1372261941432953,
0.36996880173683167,
0.37682044506073,
-0.5374550819396973,
-0.17521047592163086,
-0.18167944252490997,
-0.34899935126304626,
-0.16345667839050293,
0.33827126026153564,
0.05806886404752731,
0.24271070957183838,
-0.04609677195549011,
0.1656009405851364,
0.36606141924858093,
-0.04746382683515549,
-0.27681416273117065,
-0.11192229390144348,
-0.012181535363197327,
0.44622519612312317,
-0.07023480534553528,
0.06821910291910172,
-0.07997331768274307,
-0.06193233281373978,
0.23511576652526855,
-0.27922993898391724,
-0.0940655767917633,
-0.061494871973991394,
0.25387102365493774,
0.07732443511486053,
0.2765709459781647,
0.4570388197898865,
-0.1349075734615326,
-0.19879429042339325,
0.16015063226222992,
0.18069596588611603,
0.018549278378486633,
-0.16259822249412537,
-0.03485294058918953,
-0.16336487233638763,
-0.07738535106182098,
-0.025876425206661224,
-0.1039634495973587,
-0.04693923890590668,
0.020034873858094215,
0.1309572458267212,
-0.09636403620243073,
-0.13396574556827545,
-0.03216898813843727,
0.41890642046928406,
-0.13972453773021698,
0.33823058009147644,
0.29564785957336426,
0.06871721893548965,
-0.38477838039398193,
-0.295085072517395,
-0.14935268461704254,
0.15822187066078186,
-0.5230250954627991,
0.12379559874534607,
0.26629313826560974,
0.2771732807159424,
0.3613071143627167,
-0.12290947884321213,
-0.2683764100074768,
0.0498330295085907,
0.2657950818538666,
-0.18319763243198395,
-0.03237571567296982,
0.21564361453056335,
0.14843761920928955,
0.2886894643306732,
0.1391695886850357,
-0.22817523777484894,
0.00019440054893493652,
0.06192001327872276,
-0.1770707666873932,
-0.19407394528388977,
0.0692581906914711,
0.017681458964943886,
-0.15710210800170898,
0.15428680181503296,
-0.40317121148109436,
0.23672005534172058,
0.2888610363006592,
-0.212856724858284,
-0.09760531038045883,
-0.04226316511631012,
-0.23210309445858002,
-0.2615078091621399,
0.2098647505044937,
0.5494705438613892,
-0.09142802655696869,
-0.2689729630947113,
-0.07590148597955704,
-0.09879232943058014,
0.4090285301208496,
0.23754960298538208,
-0.10521618276834488,
0.29600444436073303,
-0.23157164454460144,
0.09871353209018707,
0.3416326940059662,
-0.17392174899578094,
-0.33195164799690247,
0.13097745180130005,
0.11024217307567596,
0.16385501623153687,
0.05625869706273079,
0.0016745480243116617,
0.011861449107527733,
0.19847527146339417,
0.19970852136611938,
0.3413088917732239,
-0.035260796546936035,
0.2907262444496155,
-0.2670721411705017,
-0.27098846435546875,
0.2600758373737335,
0.008650049567222595,
0.35167476534843445,
0.05551519617438316,
0.09452015161514282,
0.830819308757782,
0.2724245488643646,
-0.06893250346183777,
0.3318050801753998,
0.5638169646263123,
-0.2277192622423172,
0.05730930715799332,
-0.01126883551478386,
-0.0633692592382431,
-0.24862545728683472,
0.19277164340019226,
-0.30672797560691833,
0.30945438146591187,
-0.02148185670375824,
0.13213324546813965,
-0.16403034329414368,
-0.09691454470157623,
-0.056675028055906296,
-0.36996200680732727,
0.08882925659418106,
0.1652466356754303,
0.11012624204158783,
0.21409763395786285,
0.13791552186012268,
0.262728750705719,
-0.011161120608448982,
0.02267480082809925,
-0.6933614611625671,
0.2087743878364563,
-0.1417614221572876,
-0.152197003364563,
-0.010932080447673798,
0.10963761806488037,
0.1333906054496765,
0.1438274383544922,
-0.13231351971626282,
0.12147529423236847,
0.09903743118047714,
-0.04699431359767914,
0.1362224817276001,
-0.025001615285873413,
0.26590022444725037,
-0.18806713819503784,
0.43380820751190186,
0.05866863206028938,
0.16085097193717957,
-0.15430445969104767,
0.04690384492278099,
-0.21383868157863617,
0.07204590737819672,
0.2993030846118927,
0.0846954733133316,
0.034719906747341156,
0.16727255284786224,
0.15033861994743347,
0.15188223123550415,
-0.1656808704137802,
0.40921303629875183,
0.08061893284320831,
0.1114233136177063,
-0.0011587291955947876,
0.026664167642593384,
-0.4050893187522888,
0.4183509349822998,
0.17379716038703918,
0.14272716641426086,
0.2619022727012634,
-0.44561731815338135,
-0.29049476981163025,
0.22474895417690277,
-0.057462919503450394,
0.2343137264251709,
0.08118821680545807,
0.13385699689388275,
0.028996627777814865,
0.1593959480524063,
0.037910353392362595,
0.09362144768238068,
0.05890113115310669,
0.5227372646331787,
0.011513281613588333,
0.01255209743976593,
-0.13416168093681335,
-0.21342790126800537,
0.08087125420570374,
0.031299129128456116,
0.41698142886161804,
-0.19021664559841156,
-0.03903007134795189,
-0.002698838710784912,
-0.5402330160140991,
-0.3053191900253296,
0.261686772108078,
-0.48820292949676514,
-0.2883307933807373,
-0.24136187136173248,
0.28014376759529114,
-0.06628736853599548,
-0.01345226913690567,
0.06859636306762695,
0.1989397555589676,
0.10880288481712341,
-0.149442657828331,
-0.12989068031311035,
-0.28263673186302185,
-0.3521512746810913,
-0.013216715306043625,
0.17804628610610962,
0.045792076736688614,
0.2574235796928406,
0.047495096921920776,
-0.12937715649604797,
-0.22526195645332336,
-0.1390881985425949,
0.19317539036273956,
0.019398480653762817,
0.13235269486904144,
0.08083796501159668,
0.644194483757019,
-0.09161858260631561,
-0.1589270830154419,
0.31237050890922546,
-0.13450272381305695,
-0.11235075443983078,
0.20584477484226227,
0.002116741379722953,
0.18940763175487518,
0.023846957832574844,
-0.03552217036485672,
-0.12397218495607376,
-0.4503406584262848,
0.16867423057556152,
0.16548077762126923,
-0.02025245875120163,
0.3478741943836212,
0.12827099859714508,
0.07828836143016815,
0.17750446498394012,
0.1381353884935379,
-0.19091568887233734,
-0.05106762796640396,
0.24691380560398102,
-0.33097216486930847,
-0.30591267347335815,
-0.07152077555656433,
-0.16015827655792236,
0.22426077723503113,
0.4027503728866577,
-0.6984956860542297,
0.10614901781082153,
-0.12761783599853516,
-0.21900241076946259,
0.049092233180999756,
0.037253838032484055,
0.368399441242218,
-0.19165408611297607,
-0.019381500780582428,
-0.002128247171640396,
-0.0695347785949707,
-0.033537156879901886,
-0.211290180683136,
0.6732006072998047,
0.18784362077713013,
0.35257479548454285,
0.28118011355400085,
0.9196681976318359,
0.21025899052619934,
0.4203181266784668,
0.4592580497264862,
0.18456365168094635,
0.2118266522884369,
-0.13920894265174866,
-0.21654070913791656,
0.05427180603146553,
-0.2958499491214752,
-0.14695614576339722,
0.193008154630661,
0.05399882420897484,
-0.5334840416908264,
-0.33630722761154175,
-0.22295637428760529,
-0.17357781529426575,
-0.33171752095222473,
0.3225136995315552,
-0.00729680061340332,
0.3478624224662781,
-0.05778658390045166,
-0.03294028341770172,
-0.27377450466156006,
-0.45345133543014526,
0.02441592514514923,
0.052549540996551514,
0.03614296391606331,
0.19822049140930176,
-0.07064071297645569,
0.09258247166872025,
-0.7637268304824829,
0.052149269729852676,
0.022450117394328117,
0.25257033109664917,
-0.23398101329803467,
-0.03759746253490448,
-0.053365692496299744,
-0.0019641448743641376,
0.6382453441619873,
-0.12215348333120346,
-0.10831336677074432,
-0.0036729183048009872,
-0.07280083000659943,
-0.63275146484375,
-0.003490690141916275,
-0.014183662831783295,
0.019742736592888832,
0.22992953658103943,
-0.009248033165931702,
-0.439451664686203,
-0.017310258001089096,
0.1475982666015625,
0.2754668891429901,
-0.3025970458984375,
-0.09351510554552078,
-0.36616477370262146,
-0.11953209340572357,
-0.5057443976402283,
-0.12866362929344177,
0.06480952352285385,
0.22246147692203522,
0.38460052013397217,
0.31604883074760437,
0.09972180426120758,
0.08570294082164764,
-0.012087523937225342,
-0.0698758214712143,
0.25824785232543945,
0.12978121638298035,
-0.13680146634578705,
0.28990331292152405,
0.08412637561559677,
-0.24117881059646606,
0.3528224229812622,
0.05038420110940933,
-0.25061044096946716,
0.07915139943361282,
0.14902572333812714,
0.1158471405506134,
0.2734072506427765,
0.09892798215150833,
-0.12371557205915451,
0.1667005568742752,
-0.05851361155509949,
-0.4219196140766144,
0.2355532944202423,
0.2815839946269989,
-0.18547987937927246,
-0.30531445145606995,
-0.5116240382194519,
0.6158607006072998,
0.05597102269530296,
0.030451521277427673,
0.20863108336925507,
0.022399820387363434,
-0.41278135776519775,
0.44134289026260376,
0.26830101013183594,
0.9731236100196838,
-0.20404241979122162,
0.42499858140945435,
0.2317788004875183,
0.1344747692346573,
0.5237076282501221,
-0.5167384147644043,
0.3831544518470764,
-0.3056228458881378,
0.12684525549411774,
-0.013337370939552784,
-0.10856358706951141,
0.0364832878112793,
0.11471937596797943,
0.06540657579898834,
0.32536664605140686,
0.20793648064136505,
0.09614340960979462,
-0.07739405333995819,
0.45882660150527954,
-0.08006728440523148,
-0.342072457075119,
-0.19557972252368927,
0.12200655043125153,
-0.34487712383270264,
0.3898966610431671,
-0.364506334066391,
0.02170928195118904,
0.0776730328798294,
-0.11058748513460159,
-0.49160146713256836,
0.07951517403125763,
-0.3250877261161804,
0.4055940508842468,
-0.32848039269447327,
-0.1371368169784546,
-0.14217092096805573,
0.3159625232219696,
0.059257738292217255,
0.1933971494436264,
-0.24983972311019897,
0.2242748737335205,
-0.39769458770751953,
-0.23567746579647064,
0.020828528329730034,
0.23375335335731506,
0.4087521731853485,
-0.20691221952438354,
-0.2438366711139679,
0.09800377488136292,
-0.19044499099254608,
-0.37694138288497925,
-0.16764628887176514,
-0.10644690692424774,
0.08835647255182266,
-0.014652172103524208,
-0.31727904081344604,
-0.009053334593772888,
-0.14136441051959991,
0.05608152225613594,
0.08245320618152618,
0.013701200485229492,
-0.11961739510297775,
-0.09041149169206619,
0.030632831156253815,
-0.16258752346038818,
0.05373403802514076,
0.44527825713157654,
0.19932758808135986,
-0.1737644374370575,
0.6748780012130737,
0.3185998201370239,
-0.27011656761169434,
-0.058843545615673065,
-0.14549174904823303,
0.02652423083782196,
-0.39161595702171326,
0.08036035299301147,
-0.12232040613889694,
-0.03268934041261673,
-0.23293937742710114,
-0.015879709273576736,
0.2639749050140381,
-0.12890073657035828,
0.25036120414733887,
-0.3973310887813568,
-0.4390518367290497,
0.3276470899581909,
-0.13403767347335815,
0.18060168623924255,
0.26814308762550354,
-0.3036365211009979,
0.14833299815654755,
-0.0007166434079408646,
-0.17669665813446045,
-0.03368639945983887,
-0.2832545340061188,
0.19930225610733032,
0.3010995388031006,
-0.15525761246681213,
0.07127614319324493,
0.1344740390777588,
0.02811877243220806,
0.14065025746822357,
-0.1671307384967804,
-0.12094197422266006,
-0.021527446806430817,
0.1702214777469635,
-0.02118498831987381,
-0.15751145780086517,
0.00798907782882452,
-0.421522319316864,
0.1337193101644516,
-0.310049831867218,
0.09497389197349548,
0.09408218413591385,
-0.023131340742111206,
0.3049461841583252,
0.16527265310287476,
0.05894912779331207,
-0.09553581476211548,
0.45909538865089417,
0.0049066320061683655,
0.4881082773208618,
0.19494396448135376,
0.1460271179676056,
0.21745391190052032,
0.009513549506664276,
-0.5299924612045288,
0.05959620326757431,
-0.10480642318725586,
-0.035454995930194855,
0.12952885031700134,
-0.1712079644203186,
0.015818636864423752,
0.18677663803100586,
-0.040361709892749786,
0.10278234630823135,
-0.11737792938947678,
-0.0446842759847641,
0.2029738426208496,
0.13012681901454926,
-0.12902149558067322,
0.12196069955825806,
0.3430008888244629,
-0.038141876459121704,
-0.25534993410110474,
0.1517667919397354,
0.11667309701442719,
-0.02186013013124466,
-0.046397238969802856,
0.13871270418167114,
0.3468562960624695,
-0.0800422877073288,
0.08237461745738983,
-0.1870737373828888,
0.024710770696401596,
-0.04291197285056114,
-0.13443045318126678,
0.20511199533939362,
0.183724507689476,
0.40192586183547974,
0.0027957335114479065,
0.14150092005729675,
-0.16378340125083923,
0.07540396600961685,
-0.19108527898788452,
-0.32893985509872437,
0.02031482756137848,
0.5687049031257629,
-0.046991005539894104,
0.28436949849128723,
-0.14462773501873016,
0.178004652261734,
0.36120808124542236,
-0.13690340518951416,
-0.3671025335788727,
0.23132304847240448,
-0.144791841506958,
0.06172486022114754,
-0.05804899334907532,
-0.23646673560142517,
-0.20972779393196106,
0.2906804084777832,
0.05285215377807617,
-0.4837183356285095,
0.08078352361917496,
0.19289681315422058,
-0.1719193011522293,
-0.2963338792324066,
0.4201439321041107,
0.1663341224193573,
-0.019270814955234528,
-0.3831957280635834,
0.0990745946764946,
0.14486528933048248,
-0.04473133385181427,
-0.08720110356807709,
0.3097781538963318,
0.4060992896556854,
0.307193785905838,
-0.2704363167285919,
0.009355206973850727,
-0.0059445202350616455,
-0.006355118006467819,
-0.24959930777549744,
0.2559787631034851,
0.4065109193325043,
0.30596795678138733,
0.18039678037166595,
0.0541907399892807,
-0.1025390699505806,
-0.3101823031902313,
0.35936814546585083,
-0.06288810074329376,
-0.12125624716281891,
-0.019210614264011383,
-0.27703458070755005,
0.03510160744190216,
-0.2277393937110901,
0.04942265897989273,
-0.5648449063301086,
0.10318038612604141,
0.2087477594614029,
-0.13252109289169312,
0.11679694801568985,
-0.03639671206474304,
0.0014874264597892761,
-0.16575466096401215,
0.5369609594345093,
0.2511483132839203,
0.11229078471660614,
-0.4637848436832428,
-0.33754757046699524,
-0.5109274983406067,
0.07808143645524979,
-0.36463597416877747,
0.06499850004911423,
-0.055325523018836975,
0.373181015253067,
-0.171768456697464,
0.15667939186096191,
-0.26685935258865356,
0.10987328737974167,
-0.1133808046579361,
0.23890364170074463,
-0.30019551515579224,
-0.2587811052799225,
0.047004442662000656,
0.07872389256954193,
-0.080485038459301,
-0.2608901858329773,
0.08748621493577957,
-0.027488522231578827,
-0.05485668405890465,
-0.22844572365283966,
-0.20256641507148743,
0.08811447024345398,
0.2646348476409912,
0.2633492648601532,
0.1222846508026123,
0.5243081450462341,
0.07498640567064285,
-0.3782123923301697,
-0.2976657450199127,
-0.16730603575706482,
0.043589960783720016,
0.006588689982891083,
-0.08003641664981842,
0.5198345184326172,
-0.2667163610458374,
0.15822330117225647,
-0.438274621963501,
0.47565510869026184,
-0.1714075803756714,
0.10684449225664139,
-0.3627731204032898,
-0.15646681189537048,
0.03455982357263565,
0.22661159932613373,
0.20801550149917603,
0.18166369199752808,
-0.09175583720207214,
0.07733549177646637,
-0.25390756130218506,
-0.130958691239357,
0.3351978063583374,
-0.5924604535102844,
-0.329189658164978,
0.05241278558969498,
-0.05836741626262665,
-0.015294142067432404,
-0.11526071280241013,
-0.5271492004394531,
0.03435278683900833,
0.1688706874847412,
0.08817505091428757,
-0.1708846539258957,
-0.04184320196509361,
-0.06303338706493378,
-0.022889269515872,
-0.08436094224452972,
0.07172220200300217,
-0.12094808369874954,
-0.37930601835250854,
0.13732260465621948,
-0.26241302490234375
] |
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.3944287598133087,
-0.22759509086608887,
-0.1333639770746231,
0.17218707501888275,
-0.009043887257575989,
-0.18093076348304749,
0.33997905254364014,
0.4980912506580353,
0.30160170793533325,
0.287611186504364,
-0.16288970410823822,
0.4013325870037079,
-0.05137399584054947,
0.0415244922041893,
0.12119422107934952,
-0.2321266531944275,
-0.14264309406280518,
0.48394548892974854,
-0.21105533838272095,
-0.04868210479617119,
-0.2900348901748657,
0.34977293014526367,
-0.160724475979805,
0.014570258557796478,
-0.2572493851184845,
-0.02671104110777378,
-0.4356918931007385,
0.12509486079216003,
-0.08387155085802078,
-0.11413703858852386,
-0.09536565095186234,
0.0882299616932869,
-0.33561959862709045,
0.027513563632965088,
-0.00010767493222374469,
-0.19210633635520935,
0.2097819596529007,
-0.06671972572803497,
0.09793539345264435,
0.020877599716186523,
-0.18860653042793274,
-0.16017290949821472,
-0.01972019113600254,
-0.33240365982055664,
-0.10811173915863037,
0.06034484878182411,
0.03120821714401245,
0.00914694368839264,
0.3878852128982544,
0.2867925763130188,
0.23193895816802979,
0.18781422078609467,
-0.05334523320198059,
0.001145620713941753,
0.5737711787223816,
-0.45231181383132935,
0.1663811355829239,
0.19409961998462677,
0.19045540690422058,
-0.07232817262411118,
0.20125630497932434,
0.285046249628067,
-0.029192423447966576,
-0.14133548736572266,
-0.3117983937263489,
0.0736030712723732,
-0.05499684065580368,
-0.5886831283569336,
0.1100551187992096,
0.5429881811141968,
-0.13682284951210022,
0.005411308258771896,
-0.13683964312076569,
-0.28859344124794006,
0.030814308673143387,
-0.12210432440042496,
-0.08536271005868912,
0.2891899049282074,
-0.10831715166568756,
0.18999704718589783,
-0.09186197072267532,
-0.18364882469177246,
0.0907040387392044,
0.11116693913936615,
-0.17851878702640533,
0.31623753905296326,
-0.026535823941230774,
0.0967659130692482,
-0.06904754042625427,
0.006928611546754837,
-0.30257338285446167,
-0.04385204613208771,
-0.2633661925792694,
-0.0508766733109951,
-0.0054778046905994415,
-0.12635858356952667,
0.02656739577651024,
-0.15448588132858276,
0.014671426266431808,
0.055523671209812164,
0.023597795516252518,
0.07898969948291779,
0.35783708095550537,
0.19736570119857788,
0.060347408056259155,
0.10828535258769989,
0.4745408892631531,
0.20590044558048248,
-0.21360497176647186,
-0.10277187079191208,
-0.09282833337783813,
-0.11922667175531387,
-0.03448093309998512,
0.10584445297718048,
-0.14633703231811523,
-0.01814420148730278,
0.1527649611234665,
0.019874241203069687,
-0.15972737967967987,
-0.08522608131170273,
-0.28399258852005005,
0.09330128878355026,
-0.23678424954414368,
0.4214974045753479,
0.0020284894853830338,
0.08887530863285065,
0.0664040744304657,
0.18706481158733368,
-0.12523579597473145,
-0.4068474769592285,
-0.30488863587379456,
0.14692550897598267,
-0.018341870978474617,
-0.21936480700969696,
0.0506456084549427,
0.09392297267913818,
0.3305942118167877,
0.004026033915579319,
-0.33677029609680176,
-0.06400669366121292,
0.18150225281715393,
-0.12820424139499664,
0.29040423035621643,
0.37325742840766907,
0.12242275476455688,
0.04528554528951645,
0.046348221600055695,
-0.17982766032218933,
-0.07649145275354385,
0.3051798641681671,
-0.22959238290786743,
-0.04941479489207268,
-0.2482263594865799,
0.28429242968559265,
-0.27530473470687866,
0.21394772827625275,
0.3010474741458893,
0.2676573097705841,
-0.002821199595928192,
0.03128189221024513,
0.24521827697753906,
-0.05840573459863663,
0.022455763071775436,
-0.37091735005378723,
0.17699290812015533,
0.1493796557188034,
-0.46843528747558594,
-0.28427714109420776,
-0.040239378809928894,
-0.0014728885143995285,
0.0031719058752059937,
0.2163153886795044,
-0.01849077083170414,
0.2671816349029541,
-0.3092723488807678,
0.5628648400306702,
0.32249343395233154,
-0.3252389430999756,
-0.29901322722435,
0.2551976442337036,
-0.2539638876914978,
-0.002070153132081032,
0.07153749465942383,
-0.027346359565854073,
0.40850889682769775,
0.2399878352880478,
0.27704593539237976,
0.21807532012462616,
-0.007983973249793053,
-0.16788896918296814,
-0.38468044996261597,
-0.16503587365150452,
0.31450772285461426,
-0.05289973318576813,
-0.0659816563129425,
0.1639254242181778,
-0.11223546415567398,
-0.07193992286920547,
0.27544328570365906,
0.119244784116745,
0.001778922975063324,
0.11930877715349197,
0.300259530544281,
-0.23462601006031036,
-0.016670137643814087,
-0.0893276035785675,
-0.273708701133728,
0.08472921699285507,
-0.5236311554908752,
0.16331180930137634,
0.09106191247701645,
-0.19315287470817566,
-0.1754205822944641,
-0.09318067133426666,
0.07212643325328827,
-0.2961352467536926,
0.26240408420562744,
-0.09422186017036438,
0.13096819818019867,
-0.003955349326133728,
-0.059186991304159164,
0.23724688589572906,
0.04411996901035309,
0.1758410781621933,
-0.27825015783309937,
0.19132503867149353,
0.110832080245018,
0.0012169741094112396,
0.13936668634414673,
0.6038907766342163,
0.1739387959241867,
0.027802426367998123,
0.3377896249294281,
0.3833789825439453,
-0.12474019825458527,
-0.01241391897201538,
-0.06200770288705826,
-0.4666876792907715,
-0.06704338639974594,
-0.20060870051383972,
-0.039764776825904846,
0.12234382331371307,
0.08252189308404922,
-0.06693889945745468,
-0.025949731469154358,
0.5820214748382568,
0.2762613892555237,
0.13075342774391174,
0.026603922247886658,
0.15240378677845,
-0.3962777853012085,
-0.4450347125530243,
-0.16953082382678986,
-0.30776941776275635,
0.19282639026641846,
0.16173043847084045,
0.36331772804260254,
0.25647515058517456,
-0.17092686891555786,
0.37906402349472046,
0.5739663243293762,
-0.06925980746746063,
0.3076539933681488,
-0.2247028946876526,
-0.23812371492385864,
-0.17904242873191833,
0.07018949091434479,
0.3703536093235016,
0.19973599910736084,
0.39890003204345703,
0.01556733250617981,
-0.0836397334933281,
0.08342623710632324,
-0.32140955328941345,
0.2073071002960205,
0.12395556271076202,
-0.22949104011058807,
0.14941999316215515,
0.3624711036682129,
-0.1701759248971939,
-0.20125913619995117,
0.5741878747940063,
0.02431287057697773,
-0.049415647983551025,
-0.1920899748802185,
-0.14922091364860535,
-0.3281415104866028,
-0.27903231978416443,
-0.011315836571156979,
-0.2292654812335968,
-0.24549052119255066,
-0.44936931133270264,
0.2525089979171753,
-0.39333924651145935,
-0.1659594625234604,
0.017214706167578697,
0.13104984164237976,
0.35143306851387024,
-0.1337376832962036,
0.00046846456825733185,
-0.012864705175161362,
-0.03706945478916168,
-0.3257404863834381,
0.2296123504638672,
-0.4175541400909424,
0.3865433931350708,
0.3919174373149872,
-0.05755149573087692,
-0.07354483008384705,
0.17456617951393127,
-0.2808058559894562,
0.10780784487724304,
-0.3091470003128052,
0.43514588475227356,
0.1558912992477417,
0.08208785951137543,
-0.07273781299591064,
-0.07757321745157242,
0.1093326285481453,
-0.025962328538298607,
-0.15176893770694733,
-0.09083832055330276,
0.23623430728912354,
0.2325693964958191,
-0.37106573581695557,
-0.44330325722694397,
-0.27001088857650757,
-0.34948745369911194,
0.4619123339653015,
-0.2531076967716217,
0.344871461391449,
0.0024916203692555428,
-0.19018536806106567,
0.23879215121269226,
-0.32172441482543945,
-0.2853173613548279,
-0.16619494557380676,
-0.1441187858581543,
0.2234227955341339,
-0.25784653425216675,
-0.29598814249038696,
0.0591713972389698,
-0.24949896335601807,
0.14693616330623627,
-0.18876980245113373,
-0.328513503074646,
-0.3279087543487549,
0.07300645858049393,
0.058303024619817734,
0.30500346422195435,
-0.055520862340927124,
0.11581270396709442,
-0.23265111446380615,
-0.1398024708032608,
-0.186235249042511,
0.004456732422113419,
0.4342603087425232,
0.0017080511897802353,
0.004330649971961975,
-0.03465579077601433,
0.218308687210083,
-0.04166913405060768,
0.28179100155830383,
0.12016028165817261,
0.42520174384117126,
0.16424575448036194,
-0.06522590667009354,
0.3786023259162903,
0.03592737391591072,
-0.041328661143779755,
0.1757856011390686,
0.21881258487701416,
0.060329362750053406,
0.35314318537712097,
0.09794911742210388,
-0.06091389060020447,
0.06411673128604889,
0.08180642127990723,
-0.4496343433856964,
-0.14712530374526978,
0.12396246194839478,
-0.07094016671180725,
-0.09283243864774704,
-0.00417272187769413,
-0.07171030342578888,
0.02531428262591362,
-0.09890080243349075,
-0.28425219655036926,
-0.12683768570423126,
0.20058755576610565,
-0.03877919539809227,
-0.48788097500801086,
-0.15089739859104156,
-0.46762001514434814,
0.30851060152053833,
0.03557291999459267,
0.2575336694717407,
-0.08585041761398315,
-0.13355571031570435,
0.20472587645053864,
0.008696967735886574,
0.6842467188835144,
-0.21689753234386444,
-0.23901771008968353,
0.25405967235565186,
0.120672807097435,
-0.2901622951030731,
-0.02383318357169628,
-0.561822772026062,
-0.1005835235118866,
0.32302772998809814,
0.07002479583024979,
-0.4161572754383087,
-0.06583709269762039,
0.06311795860528946,
-0.054016727954149246,
-0.2018037587404251,
0.07757212966680527,
-0.22869011759757996,
-0.163247749209404,
0.02136935479938984,
-0.17818501591682434,
0.15927430987358093,
0.3052091896533966,
-0.2303265929222107,
-0.0947500690817833,
-0.020748300477862358,
-0.10849840193986893,
0.2755565047264099,
-0.06353671848773956,
0.4202825129032135,
-0.17278164625167847,
-0.1507948935031891,
-0.10012975335121155,
-0.025115206837654114,
-0.572830080986023,
0.29406821727752686,
-0.29711323976516724,
0.3505963981151581,
0.16862595081329346,
-0.38593095541000366,
0.6130176782608032,
0.3698875606060028,
0.08288891613483429,
0.3258310556411743,
-0.29088470339775085,
0.23228421807289124,
0.030106320977211,
-0.05565926060080528,
0.37348267436027527,
-0.23575280606746674,
-0.00263396673835814,
-0.09466900676488876,
0.20130950212478638,
-0.1164965033531189,
-0.11162164807319641,
-0.09867137670516968,
0.1508997231721878,
-0.14040856063365936,
0.47620683908462524,
-0.06535724550485611,
0.8699266910552979,
-0.10220213234424591,
0.028799619525671005,
0.3639541566371918,
-0.29303228855133057,
0.7299200892448425,
0.12546692788600922,
0.06369923055171967,
-0.3811817765235901,
-0.08555272221565247,
0.01067175529897213,
0.08654242753982544,
-0.1003330871462822,
0.27627870440483093,
-0.3786799907684326,
0.3030675947666168,
-0.21924126148223877,
-0.1692812144756317,
0.21312455832958221,
0.03345838189125061,
0.10232044011354446,
0.1487867534160614,
-0.28391969203948975,
0.19111333787441254,
-0.029039718210697174,
0.05499154329299927,
0.0469130240380764,
-0.20984962582588196,
-0.08387786149978638,
-0.13983072340488434,
-0.09755341708660126,
0.2478511929512024,
-0.2676292359828949,
-0.1409437507390976,
0.4564517140388489,
-0.05698675662279129,
-0.6023693084716797,
0.08122631162405014,
-0.014573335647583008,
0.3054862916469574,
-0.011375302448868752,
0.1296515017747879,
0.1420900523662567,
-0.0746210590004921,
0.3581731915473938,
0.233831986784935,
0.26007530093193054,
-0.04199349507689476,
-0.19174827635288239,
0.21489635109901428,
-0.14354848861694336,
-0.23158429563045502,
-0.3384072780609131,
0.23676146566867828,
0.012848235666751862,
-0.2314339280128479,
-0.4329339563846588,
-0.050671741366386414,
0.2014588564634323,
-0.23517143726348877,
0.18257485330104828,
-0.013425357639789581,
-0.20960365235805511,
-0.12156162410974503,
0.163318932056427,
-0.34532180428504944,
0.005444632843136787,
0.15301476418972015,
0.1750059425830841,
0.24158653616905212,
0.46821653842926025,
0.09462983906269073,
0.06409396976232529,
-0.38182783126831055,
-0.1119728609919548,
0.36999204754829407,
-0.21958011388778687,
0.2393677532672882,
-0.04646998643875122,
-0.16051866114139557,
-0.016903309151530266,
0.1385287046432495,
-0.059116214513778687,
0.034229859709739685,
-0.16417984664440155,
-0.35156604647636414,
-0.04419282078742981,
0.4166792035102844,
0.00036261603236198425,
0.18780909478664398,
-0.0020644888281822205,
-0.022774647921323776,
0.18796077370643616,
0.40296173095703125,
-0.42513349652290344,
0.14611713588237762,
-0.39650705456733704,
0.1516740322113037,
-0.041575126349925995,
-0.3134770095348358,
0.10911343991756439,
0.005909156985580921,
0.18960021436214447,
-0.07120615243911743,
-0.23080210387706757,
-0.3434692323207855,
-0.18954654037952423,
0.052281975746154785,
-0.06762685626745224,
0.21471402049064636,
-0.09183835238218307,
0.07503245770931244,
0.1201310008764267,
0.036037005484104156,
0.22406841814517975,
-0.1922169327735901,
0.18649783730506897,
0.2153770476579666,
0.3040250539779663,
0.2316841185092926,
-0.2960224747657776,
0.18384960293769836,
0.045469917356967926,
-0.030983954668045044,
0.021033858880400658,
-0.15416932106018066,
-0.18968147039413452,
-0.08107210695743561,
0.18927673995494843,
-0.03564723581075668,
-0.004891969263553619,
-0.0027149952948093414,
0.05403581261634827,
-0.15905679762363434,
0.05980650708079338,
-0.2890315353870392,
0.15384390950202942,
0.09115079790353775,
-0.261099249124527,
-0.0006665531545877457,
-0.03652138262987137,
0.31499412655830383,
-0.11589258164167404,
0.1256048083305359,
0.13852155208587646,
0.14089997112751007,
0.10901892185211182,
0.2486695945262909,
0.10672402381896973,
-0.21856394410133362,
0.11038990318775177,
0.1677858531475067,
0.18495842814445496,
-0.15111713111400604,
-0.1075606495141983,
0.3153115212917328,
0.09487886726856232,
-0.025750260800123215,
0.26689210534095764,
0.009215274825692177,
-0.020585201680660248,
-0.11605262756347656,
0.1357221156358719,
0.45132988691329956,
0.21038362383842468,
0.09455624967813492,
0.3860875964164734,
0.018843434751033783,
-0.05400385335087776,
0.47140052914619446,
0.10026512295007706,
0.2675415277481079,
-0.07988777756690979,
0.6582877039909363,
-0.14324256777763367,
-0.2179015874862671,
0.0811087042093277,
0.3425244987010956,
-0.16083231568336487,
-0.22322843968868256,
-0.015712127089500427,
0.05826593190431595,
-0.5974661111831665,
-0.17746028304100037,
0.16420619189739227,
-0.2975628972053528,
0.20715788006782532,
0.08256359398365021,
-0.1652686446905136,
-0.0391673743724823,
-0.490611732006073,
0.0012094862759113312,
0.13943274319171906,
-0.2860250771045685,
0.2783673405647278,
-0.19062761962413788,
0.1866093873977661,
0.3655216693878174,
0.4616248607635498,
0.10542827844619751,
0.12446277588605881,
-0.3238738477230072,
-0.04249929264187813,
-0.029882211238145828,
-0.25190141797065735,
-0.1712527573108673,
0.24335035681724548,
0.2742091119289398,
0.24740996956825256,
0.11316609382629395,
0.26910966634750366,
-0.32046303153038025,
0.1359613984823227,
0.2478090226650238,
0.25348907709121704,
-0.17507736384868622,
0.27544698119163513,
-0.12742066383361816,
-0.16556057333946228,
-0.22030779719352722,
-0.3327861428260803,
-0.7666965126991272,
0.03592097759246826,
-0.0018587727099657059,
-0.15660512447357178,
0.11844918876886368,
0.048225902020931244,
0.1376514583826065,
-0.25968390703201294,
0.14112277328968048,
0.1483081728219986,
0.09000614285469055,
-0.23476342856884003,
-0.22633783519268036,
-0.4332296550273895,
0.04576355963945389,
-0.1479470431804657,
-0.1933625489473343,
0.19029231369495392,
0.27004551887512207,
-0.10341174155473709,
-0.035711370408535004,
-0.5100885033607483,
0.4358825385570526,
-0.3994016647338867,
-0.2590186893939972,
-0.544363260269165,
0.1356119066476822,
-0.10302123427391052,
0.07295696437358856,
0.1266050934791565,
-0.16279667615890503,
0.20997180044651031,
0.05961930379271507,
0.10077179223299026,
0.25355732440948486,
-0.10367706418037415,
0.3059476613998413,
0.06928354501724243,
0.009348921477794647,
0.2776673436164856,
0.1050223559141159,
-0.16153526306152344,
-0.011197114363312721,
-0.1702055037021637,
-0.1551191657781601,
-0.08929675817489624,
-0.005465231835842133,
0.026108194142580032,
0.4342818558216095,
0.24791601300239563,
0.1311110109090805,
0.19500358402729034,
0.1177416667342186,
0.23759125173091888,
0.21820446848869324,
-0.030967792496085167,
0.15260565280914307,
-0.03429661691188812,
0.03602539002895355,
0.15608610212802887,
0.29935041069984436,
0.002967461943626404,
-0.09183790534734726,
-0.05380309000611305,
-0.18453699350357056,
0.39167898893356323,
-0.5110175609588623,
-0.04795185849070549,
-0.07261169701814651,
0.43564438819885254,
0.2411481738090515,
-0.1386783868074417,
-0.6016250252723694,
-0.40455496311187744,
0.31876495480537415,
-0.16870537400245667,
-0.09158436954021454,
0.2373187392950058,
0.17652465403079987,
-0.01553783193230629,
-0.05766572058200836,
0.10027146339416504,
0.26806357502937317,
-0.15650099515914917,
-0.02107524313032627,
-0.2616678476333618
] |
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.2715725898742676,
-0.21357877552509308,
-0.09600050747394562,
0.20489254593849182,
0.03347465768456459,
-0.22537368535995483,
0.262484610080719,
0.5297273397445679,
0.25127145648002625,
0.3464788794517517,
-0.14168542623519897,
0.3634181618690491,
0.018165241926908493,
0.01799258030951023,
0.09457443654537201,
-0.2144182324409485,
-0.12237099558115005,
0.47435784339904785,
-0.22665935754776,
-0.016195423901081085,
-0.27885621786117554,
0.27121928334236145,
-0.20130160450935364,
-0.05250270664691925,
-0.2173067033290863,
-0.029286162927746773,
-0.26245176792144775,
0.08085687458515167,
-0.09695222973823547,
-0.2160424143075943,
-0.16039137542247772,
-0.007935196161270142,
-0.47182539105415344,
0.11353042721748352,
-0.0001081613008864224,
-0.23664364218711853,
0.30385440587997437,
0.03013104386627674,
-0.016531135886907578,
0.05877307802438736,
-0.17608720064163208,
-0.14386238157749176,
-0.03161688521504402,
-0.2702959179878235,
-0.13103297352790833,
0.17107272148132324,
0.05636632442474365,
-0.0414777435362339,
0.2909124195575714,
0.28944259881973267,
0.2498815506696701,
0.32298746705055237,
-0.16775131225585938,
0.05850211903452873,
0.6316817998886108,
-0.48349982500076294,
0.04953902214765549,
0.20308272540569305,
0.13301071524620056,
-0.15085171163082123,
-0.002294681966304779,
0.3154926300048828,
-0.07694185525178909,
0.005061561241745949,
-0.27923697233200073,
0.050055231899023056,
0.03418890759348869,
-0.37193790078163147,
0.12193801999092102,
0.6385517120361328,
-0.22573107481002808,
-0.010933224111795425,
-0.1305672526359558,
-0.29271724820137024,
0.034719839692115784,
-0.18616817891597748,
-0.009598977863788605,
0.21884724497795105,
-0.11216934025287628,
0.08428317308425903,
-0.07665517926216125,
-0.01825091242790222,
0.10957783460617065,
0.021365392953157425,
-0.16052663326263428,
0.29467758536338806,
0.015083127655088902,
0.09940735995769501,
0.0831708312034607,
-0.08429454267024994,
-0.3671051561832428,
-0.04960934817790985,
-0.27790167927742004,
-0.08063670992851257,
-0.27373257279396057,
-0.02919829823076725,
0.10333263874053955,
-0.2223588526248932,
0.09155593812465668,
0.038382600992918015,
0.04510492831468582,
0.12167484313249588,
0.34541594982147217,
0.1836073100566864,
0.012911350466310978,
0.2131349742412567,
0.5253055095672607,
0.19973871111869812,
-0.22580282390117645,
0.019470617175102234,
-0.26154106855392456,
0.011985119432210922,
0.0702880322933197,
0.01632935181260109,
0.01825416088104248,
0.05258161202073097,
0.02143513411283493,
-0.0071944184601306915,
-0.18146318197250366,
-0.05234060436487198,
-0.26027625799179077,
0.057802557945251465,
-0.21409861743450165,
0.39818286895751953,
-0.03541332110762596,
0.08195085823535919,
-0.021464364603161812,
0.18727745115756989,
-0.24360617995262146,
-0.4802749752998352,
-0.2614174485206604,
0.1371791958808899,
-0.04105769842863083,
-0.14563493430614471,
0.09469367563724518,
0.13082163035869598,
0.32093650102615356,
0.05069092661142349,
-0.2557220458984375,
-0.04885756969451904,
0.36026865243911743,
-0.2660950720310211,
0.2530587613582611,
0.28021684288978577,
0.2013671100139618,
0.10340685397386551,
-0.007390476763248444,
-0.12393975257873535,
-0.08780817687511444,
0.23308318853378296,
-0.03073364496231079,
0.018359322100877762,
-0.09715095162391663,
0.3066968619823456,
-0.11255530267953873,
0.1843152940273285,
0.18965330719947815,
0.29966047406196594,
0.025674983859062195,
-0.015272201970219612,
0.11792661249637604,
0.005110183730721474,
-0.07614985853433609,
-0.33658772706985474,
0.07260335981845856,
0.19732844829559326,
-0.36911287903785706,
-0.23446136713027954,
-0.03508445993065834,
0.12526459991931915,
0.13602519035339355,
0.2471337616443634,
-0.018329543992877007,
0.17194145917892456,
-0.20108726620674133,
0.48592817783355713,
0.17032454907894135,
-0.4958883225917816,
-0.3176743686199188,
0.34689077734947205,
-0.24254398047924042,
0.038589343428611755,
0.11143584549427032,
-0.009177863597869873,
0.4340405762195587,
0.2262687236070633,
0.3273109793663025,
0.30906885862350464,
0.05492372065782547,
-0.07480433583259583,
-0.514024019241333,
-0.1311771124601364,
0.36484384536743164,
-0.0378132164478302,
-0.11559513211250305,
-0.051360227167606354,
-0.20636042952537537,
-0.057751018553972244,
0.1394088864326477,
0.1814713031053543,
-0.026304326951503754,
0.13320010900497437,
0.2710835337638855,
-0.3873373866081238,
-0.0003697969950735569,
-0.14409738779067993,
-0.2968894839286804,
0.18138518929481506,
-0.5925253629684448,
0.1939084231853485,
0.21274036169052124,
-0.20416612923145294,
-0.11798685789108276,
-0.042729754000902176,
0.0378250852227211,
-0.22775495052337646,
0.2820471525192261,
-0.1904691457748413,
0.115531787276268,
0.06696593761444092,
0.03255249932408333,
0.18902908265590668,
0.019421258941292763,
0.1492246389389038,
-0.15490390360355377,
0.12686772644519806,
0.03740127012133598,
0.011142134666442871,
0.17957715690135956,
0.4414914548397064,
0.2346167266368866,
0.11800586432218552,
0.195774108171463,
0.35324081778526306,
-0.05561893805861473,
0.025053977966308594,
0.0326962023973465,
-0.42268168926239014,
-0.036821797490119934,
-0.046488478779792786,
-0.10705896466970444,
0.23042260110378265,
0.019571274518966675,
-0.10142560303211212,
-0.07609733194112778,
0.5049565434455872,
0.32208380103111267,
0.24736866354942322,
0.04459596425294876,
0.0596211776137352,
-0.35281503200531006,
-0.4345819652080536,
-0.07007751613855362,
-0.32708996534347534,
0.33538442850112915,
0.04097903519868851,
0.42987528443336487,
0.29623284935951233,
-0.03949904814362526,
0.38538604974746704,
0.566626787185669,
-0.047681599855422974,
0.38342800736427307,
-0.20049718022346497,
-0.19233611226081848,
-0.25097590684890747,
0.033168889582157135,
0.38969025015830994,
0.20124296844005585,
0.3364194631576538,
0.02723906934261322,
-0.14497607946395874,
-0.0013385238125920296,
-0.29316872358322144,
0.22571253776550293,
-0.003083929419517517,
-0.15048015117645264,
0.209381103515625,
0.43818363547325134,
-0.15805362164974213,
-0.2193770408630371,
0.5158031582832336,
0.04323839396238327,
-0.02126280404627323,
-0.12482677400112152,
-0.14865270256996155,
-0.31473079323768616,
-0.2375028133392334,
0.04465750977396965,
-0.1595425009727478,
-0.320747047662735,
-0.4617293179035187,
0.29197442531585693,
-0.3784710466861725,
-0.11896799504756927,
0.07362917065620422,
0.13372884690761566,
0.30251890420913696,
-0.05496354401111603,
-0.046330563724040985,
0.05556649714708328,
0.012743335217237473,
-0.3448804020881653,
0.1689077764749527,
-0.34080493450164795,
0.3934915363788605,
0.3623148798942566,
-0.07537329196929932,
-0.13506673276424408,
0.169096440076828,
-0.32091280817985535,
0.06238473206758499,
-0.13886195421218872,
0.5314763188362122,
0.12365967035293579,
0.06626848876476288,
-0.06345168501138687,
-0.01764684170484543,
0.1697922945022583,
-0.12969271838665009,
-0.17242459952831268,
-0.07883131504058838,
0.20044919848442078,
0.21599948406219482,
-0.24823711812496185,
-0.3728398382663727,
-0.11284273117780685,
-0.4325796365737915,
0.30550283193588257,
-0.2845980226993561,
0.38496458530426025,
0.0027657393366098404,
-0.2537878155708313,
0.21535556018352509,
-0.23401732742786407,
-0.16887052357196808,
-0.13563109934329987,
-0.09484359622001648,
0.17080967128276825,
-0.24985134601593018,
-0.24686072766780853,
-0.13707900047302246,
-0.25383317470550537,
0.10856343805789948,
-0.20120978355407715,
-0.32628124952316284,
-0.3508312404155731,
-0.08110180497169495,
0.1288248598575592,
0.2127404659986496,
-0.12513409554958344,
0.07603424787521362,
-0.14899438619613647,
-0.1821596920490265,
-0.18023061752319336,
-0.053914397954940796,
0.45007574558258057,
0.04668324813246727,
0.04009142518043518,
0.0650266483426094,
0.27933940291404724,
0.05985785648226738,
0.3947972059249878,
0.08126659691333771,
0.3368883728981018,
0.14559093117713928,
-0.08325905352830887,
0.23904354870319366,
-0.050181739032268524,
-0.10909219831228256,
0.1335848569869995,
0.2538374662399292,
0.0705687552690506,
0.31022223830223083,
0.07826951146125793,
-0.10350525379180908,
0.1188373863697052,
0.1034645289182663,
-0.3536413609981537,
-0.1636372059583664,
0.16186025738716125,
-0.14950288832187653,
-0.04937621206045151,
0.058156032115221024,
-0.01290224865078926,
0.011293619871139526,
-0.0950225293636322,
-0.21267808973789215,
-0.23558159172534943,
0.12876221537590027,
-0.12978863716125488,
-0.43964019417762756,
-0.0927494466304779,
-0.5289292335510254,
0.2870887517929077,
0.10762839764356613,
0.26349666714668274,
-0.1335853785276413,
-0.08152227103710175,
0.1261908859014511,
-0.017650697380304337,
0.6705352663993835,
-0.2847555875778198,
-0.09520910680294037,
0.20893248915672302,
0.06586888432502747,
-0.2937110960483551,
0.006952844560146332,
-0.5354695916175842,
-0.09339196979999542,
0.4221342206001282,
0.09084554761648178,
-0.4992760121822357,
0.019510410726070404,
0.08677881956100464,
-0.017573175951838493,
-0.18371012806892395,
0.0018163006752729416,
-0.33057093620300293,
-0.0826738178730011,
0.10900098085403442,
-0.15736854076385498,
0.1065744087100029,
0.3388255834579468,
-0.13723525404930115,
-0.11579927802085876,
-0.09575750678777695,
-0.10019759833812714,
0.279795378446579,
-0.02162623032927513,
0.4361644983291626,
-0.20248086750507355,
0.08198048174381256,
-0.22509557008743286,
-0.10144636034965515,
-0.48687106370925903,
0.2278876155614853,
-0.268847793340683,
0.3672320544719696,
0.08763615041971207,
-0.32225897908210754,
0.4701734185218811,
0.3631208539009094,
0.10495860874652863,
0.37971627712249756,
-0.42113208770751953,
0.2606578469276428,
0.08949863910675049,
-0.07864828407764435,
0.3746204972267151,
-0.08581651747226715,
-0.00361064076423645,
-0.01071633119136095,
0.22403648495674133,
-0.12877537310123444,
-0.14245599508285522,
-0.09258465468883514,
0.10490141063928604,
-0.14711381494998932,
0.4613465666770935,
-0.09700622409582138,
0.8855524063110352,
-0.2199765294790268,
0.015916720032691956,
0.30637574195861816,
-0.3462522625923157,
0.6145244240760803,
0.14819791913032532,
0.13100779056549072,
-0.46158525347709656,
-0.16537238657474518,
0.05202995985746384,
0.05371314659714699,
-0.10756541043519974,
0.23945830762386322,
-0.3754085302352905,
0.27907446026802063,
-0.25477081537246704,
-0.1699654906988144,
0.19225271046161652,
0.11669200658798218,
0.11066285520792007,
0.07040911912918091,
-0.3522310256958008,
0.20067596435546875,
-0.10979755222797394,
0.011176208034157753,
0.11911223083734512,
-0.14645996689796448,
-0.00046356022357940674,
-0.1248835101723671,
-0.10916011035442352,
0.1569407880306244,
-0.2749900817871094,
-0.051669538021087646,
0.48690250515937805,
-0.013732731342315674,
-0.5811046957969666,
0.012961901724338531,
-0.175371453166008,
0.34123337268829346,
0.05772633105516434,
0.18326067924499512,
0.1572469025850296,
0.015973921865224838,
0.44861358404159546,
0.19981840252876282,
0.18613846600055695,
-0.08326724171638489,
-0.2632916271686554,
0.1695684790611267,
-0.15900923311710358,
-0.23126773536205292,
-0.3078420162200928,
0.2483605146408081,
0.06514634191989899,
-0.1973811686038971,
-0.47332918643951416,
-0.1210271418094635,
0.16770242154598236,
-0.2819991111755371,
0.19793105125427246,
-0.17484590411186218,
-0.2156793773174286,
-0.12598279118537903,
0.23289822041988373,
-0.34800076484680176,
0.018758349120616913,
0.22956255078315735,
0.1346796154975891,
0.3314611315727234,
0.40629756450653076,
0.06447571516036987,
0.03380196541547775,
-0.35554230213165283,
0.009297996759414673,
0.286110520362854,
-0.16679032146930695,
0.27714866399765015,
-0.13477955758571625,
-0.20534968376159668,
0.0201194379478693,
0.07664474099874496,
0.02686610445380211,
0.048369672149419785,
-0.11192022264003754,
-0.19959068298339844,
0.04338808357715607,
0.3028690814971924,
0.032354842871427536,
0.10653974115848541,
-0.0033670514822006226,
-0.18011297285556793,
0.13641636073589325,
0.5124996900558472,
-0.41904038190841675,
0.06568204611539841,
-0.4481358826160431,
0.1751638948917389,
-0.04050256311893463,
-0.33857643604278564,
0.06386967748403549,
0.05594613030552864,
0.23853787779808044,
-0.09521834552288055,
-0.228724867105484,
-0.35417747497558594,
-0.2276974767446518,
0.04293772578239441,
-0.15392324328422546,
0.22427409887313843,
-0.11856841295957565,
0.08662162721157074,
0.021283742040395737,
-0.0759800598025322,
0.18346546590328217,
-0.16213594377040863,
0.11491607129573822,
0.13175469636917114,
0.19072751700878143,
0.18566414713859558,
-0.2394370287656784,
0.21900445222854614,
0.004907645285129547,
-0.0542164146900177,
-0.046669214963912964,
-0.1727115958929062,
-0.04549916461110115,
-0.09330018609762192,
0.11479660123586655,
-0.11611280590295792,
-0.06777329742908478,
-0.006093598902225494,
0.03569994494318962,
-0.20345444977283478,
-0.003162860870361328,
-0.146542489528656,
0.25899791717529297,
0.04245823994278908,
-0.24575728178024292,
-0.12359658628702164,
-0.14829280972480774,
0.3284453749656677,
-0.14363515377044678,
0.03517324849963188,
0.12394177913665771,
0.031952135264873505,
0.2316000759601593,
0.21932746469974518,
0.05966674163937569,
-0.1983869969844818,
0.19969868659973145,
0.15618896484375,
0.2040753811597824,
-0.21505498886108398,
-0.1669161468744278,
0.1465054154396057,
0.15896417200565338,
-0.055606696754693985,
0.3031105101108551,
-0.08194170892238617,
0.03397310525178909,
-0.044147878885269165,
0.22924527525901794,
0.4877113699913025,
0.23215076327323914,
0.07327593117952347,
0.3107292354106903,
0.14871184527873993,
-0.03856448456645012,
0.6244722604751587,
-0.05828025937080383,
0.24890074133872986,
0.000856347382068634,
0.6918644309043884,
-0.23705323040485382,
-0.32019197940826416,
0.02446950413286686,
0.2090955525636673,
-0.15686315298080444,
-0.35463833808898926,
0.08195076882839203,
0.09825556725263596,
-0.5680093765258789,
-0.11504572629928589,
0.20390236377716064,
-0.12099234759807587,
0.24694626033306122,
0.1300613135099411,
-0.04053369164466858,
-0.17890480160713196,
-0.432131826877594,
0.04889461398124695,
0.24488869309425354,
-0.35716333985328674,
0.298153281211853,
-0.1213957816362381,
0.2621765732765198,
0.2796625792980194,
0.39220067858695984,
0.17776097357273102,
0.2161095291376114,
-0.36813509464263916,
-0.07628434151411057,
-0.0678263008594513,
-0.14735358953475952,
-0.20592838525772095,
0.2012600302696228,
0.21459147334098816,
0.16836075484752655,
0.22821871936321259,
0.245799720287323,
-0.35380491614341736,
0.078504279255867,
0.29489168524742126,
0.13548190891742706,
-0.18994630873203278,
0.2803792357444763,
-0.1798209547996521,
-0.03041825443506241,
-0.29858729243278503,
-0.18439435958862305,
-0.716697633266449,
0.02510356530547142,
-0.036441732197999954,
-0.2103809118270874,
0.13871261477470398,
-0.0234355665743351,
0.14436239004135132,
-0.24123910069465637,
0.23422452807426453,
0.08596321195363998,
-0.0024154596030712128,
-0.3239736557006836,
-0.09986191987991333,
-0.4623678922653198,
0.11710208654403687,
-0.18235020339488983,
-0.25121185183525085,
0.15966911613941193,
0.35140618681907654,
-0.2212238907814026,
-0.009136531502008438,
-0.33073312044143677,
0.3748610317707062,
-0.38005536794662476,
-0.21986201405525208,
-0.6355612277984619,
0.16694208979606628,
-0.16120056807994843,
-0.11456038057804108,
0.11356985569000244,
-0.3320986330509186,
0.1983608901500702,
0.08989150077104568,
0.10900983959436417,
0.27253395318984985,
-0.14273089170455933,
0.3721245527267456,
0.1770857870578766,
-0.01306820660829544,
0.26494577527046204,
0.2482297122478485,
-0.14379143714904785,
-0.11243394017219543,
-0.06772753596305847,
-0.16960692405700684,
-0.05746903270483017,
-0.07276587933301926,
0.07740988582372665,
0.42617201805114746,
0.25423309206962585,
0.0795842707157135,
0.17398294806480408,
0.30364084243774414,
0.30543577671051025,
0.11751804500818253,
0.0004174504429101944,
0.08380763977766037,
0.06422284245491028,
0.07320834696292877,
0.03699088841676712,
0.3366990387439728,
0.028032343834638596,
-0.027693383395671844,
-0.06123572960495949,
-0.34495195746421814,
0.36647123098373413,
-0.5037403702735901,
-0.07374806702136993,
-0.05160783976316452,
0.44916200637817383,
0.3405849039554596,
-0.09829896688461304,
-0.5108278393745422,
-0.45137515664100647,
0.2980213761329651,
-0.12252753227949142,
-0.14657917618751526,
0.3283299207687378,
0.0530254952609539,
0.029550407081842422,
-0.021166671067476273,
-0.0443439856171608,
0.24745669960975647,
-0.225192129611969,
0.018570657819509506,
-0.17946834862232208
] |
https://github.com/huggingface/datasets/issues/275 | NonMatchingChecksumError when loading pubmed dataset | For some reason the files are not available for unauthenticated users right now (like the download service of this package). Instead of downloading the right files, it downloads the html of the error.
According to the error it should be back again in 24h.
![image](https://user-images.githubusercontent.com/42851186/84751599-096c6580-afbd-11ea-97f3-ee4aef791711.png)
| I get this error when i run `nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')`.
The error is:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-2-7742dea167d0> in <module>()
----> 1 df = nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')
2 df = pd.DataFrame(df)
3 gc.collect()
3 frames
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
431 verify_infos = not save_infos and not ignore_verifications
432 self._download_and_prepare(
--> 433 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
434 )
435 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
468 # Checksums verification
469 if verify_infos:
--> 470 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
471 for split_generator in split_generators:
472 if str(split_generator.split_info.name).lower() == "all":
/usr/local/lib/python3.6/dist-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I'm currently working on google colab.
That is quite strange because yesterday it was fine.
| 45 | NonMatchingChecksumError when loading pubmed dataset
I get this error when i run `nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')`.
The error is:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-2-7742dea167d0> in <module>()
----> 1 df = nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')
2 df = pd.DataFrame(df)
3 gc.collect()
3 frames
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
431 verify_infos = not save_infos and not ignore_verifications
432 self._download_and_prepare(
--> 433 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
434 )
435 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
468 # Checksums verification
469 if verify_infos:
--> 470 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
471 for split_generator in split_generators:
472 if str(split_generator.split_info.name).lower() == "all":
/usr/local/lib/python3.6/dist-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I'm currently working on google colab.
That is quite strange because yesterday it was fine.
For some reason the files are not available for unauthenticated users right now (like the download service of this package). Instead of downloading the right files, it downloads the html of the error.
According to the error it should be back again in 24h.
![image](https://user-images.githubusercontent.com/42851186/84751599-096c6580-afbd-11ea-97f3-ee4aef791711.png)
| [
0.05875718221068382,
0.13019299507141113,
0.03693488612771034,
0.024857211858034134,
0.2648717164993286,
-0.013563349843025208,
0.21680249273777008,
0.5417696237564087,
0.23485314846038818,
0.10361484438180923,
-0.13925404846668243,
0.3025206923484802,
-0.13450513780117035,
-0.46926048398017883,
-0.16947267949581146,
0.03361213207244873,
0.018223769962787628,
0.27824723720550537,
0.08311481773853302,
0.017654061317443848,
-0.27183711528778076,
0.31717631220817566,
-0.2022530436515808,
-0.06744846701622009,
0.18951983749866486,
-0.11085736006498337,
0.1367979198694229,
0.217149019241333,
0.048467643558979034,
-0.3944910168647766,
0.22323299944400787,
0.17930729687213898,
0.10682377219200134,
0.21875005960464478,
-0.00011708811507560313,
0.17658010125160217,
0.3026966452598572,
0.01465543545782566,
-0.24043764173984528,
-0.36756032705307007,
-0.3067489266395569,
-0.5333055257797241,
0.20339781045913696,
-0.3149746060371399,
-0.0939299687743187,
0.0818534791469574,
0.0985170304775238,
-0.06670229136943817,
0.1352665275335312,
0.2718563675880432,
0.185505211353302,
0.4645369052886963,
-0.012146707624197006,
-0.038980141282081604,
0.22106975317001343,
-0.07106883823871613,
-0.11671949923038483,
0.44438958168029785,
0.2470186948776245,
-0.20542044937610626,
-0.4585718512535095,
0.28268688917160034,
-0.22891467809677124,
0.4773518741130829,
-0.04872361570596695,
0.005470749456435442,
0.43405061960220337,
-0.25383460521698,
0.12873965501785278,
0.31720924377441406,
0.12444927543401718,
-0.11026249080896378,
0.040843673050403595,
-0.24435073137283325,
-0.061262503266334534,
-0.10050597041845322,
0.3322417438030243,
0.16426114737987518,
-0.339343786239624,
-0.16424794495105743,
-0.2672496736049652,
0.15482573211193085,
-0.018442265689373016,
0.2772809863090515,
0.4512002766132355,
0.0824003741145134,
0.025992825627326965,
0.07795479893684387,
0.38853317499160767,
-0.14004945755004883,
0.4081316590309143,
-0.18918679654598236,
0.05597821995615959,
0.2718263864517212,
-0.385670006275177,
-0.1050526350736618,
-0.029902443289756775,
0.0830039530992508,
0.21925920248031616,
0.5085958242416382,
0.17396117746829987,
-0.020674455910921097,
0.16010385751724243,
0.17406684160232544,
0.23457907140254974,
-0.032550279051065445,
-0.20497259497642517,
0.3127071261405945,
0.24282272160053253,
0.2654268443584442,
-0.08172956109046936,
0.13259848952293396,
-0.12437670677900314,
-0.2750799059867859,
0.47958576679229736,
-0.15438994765281677,
0.15673790872097015,
-0.32838010787963867,
-0.18533791601657867,
0.2568361163139343,
0.1256314218044281,
-0.03709345683455467,
0.1507800668478012,
0.37948817014694214,
-0.006702308543026447,
0.25134459137916565,
-0.04671729728579521,
-0.09008295089006424,
-0.22859472036361694,
-0.0017526941373944283,
-0.16195735335350037,
0.07882760465145111,
-0.2954713702201843,
0.03644036874175072,
0.2913101017475128,
-0.16165533661842346,
0.3400796353816986,
-0.02619432471692562,
0.14318379759788513,
-0.19258810579776764,
0.27717265486717224,
-0.22583068907260895,
-0.17031022906303406,
0.40022924542427063,
0.07895389199256897,
0.09375662356615067,
0.2599238455295563,
-0.03614439070224762,
-0.30354464054107666,
0.17107480764389038,
-0.18803918361663818,
-0.3761233389377594,
-0.35439398884773254,
0.1679358184337616,
-0.32836002111434937,
-0.11249309778213501,
0.19485065340995789,
-0.1655440628528595,
0.41855472326278687,
-0.5822312831878662,
0.019878201186656952,
-0.3036311864852905,
-0.2127438187599182,
-0.14035886526107788,
-0.004765242338180542,
0.1324809342622757,
0.3329315781593323,
-0.06297793239355087,
-0.06982090324163437,
0.054343726485967636,
0.5059975981712341,
0.34518954157829285,
-0.20035265386104584,
-0.0730765238404274,
-0.18369340896606445,
-0.004275307059288025,
0.6614876985549927,
-0.10246488451957703,
-0.5011337995529175,
0.3050438165664673,
0.057783037424087524,
0.450305700302124,
-0.033371277153491974,
0.16733773052692413,
-0.11887037754058838,
-0.10189609229564667,
0.3278850317001343,
0.08118060231208801,
0.0006624851375818253,
0.2791232168674469,
-0.3819271922111511,
-0.13033786416053772,
0.5268670320510864,
0.22772808372974396,
0.18663279712200165,
-0.006332308053970337,
0.06295716762542725,
0.22063489258289337,
0.18397502601146698,
-0.0855356901884079,
-0.030645618215203285,
0.27081382274627686,
0.018540676683187485,
0.0692935362458229,
0.05810870975255966,
-0.22189298272132874,
-0.3858194649219513,
0.2098037600517273,
-0.3800535798072815,
0.2502175569534302,
0.08590005338191986,
0.022694949060678482,
-0.3482513129711151,
-0.33040139079093933,
-0.21040283143520355,
0.02280585467815399,
0.0646703839302063,
0.3360593616962433,
0.19128958880901337,
0.029781460762023926,
-0.13214638829231262,
0.20024442672729492,
-0.3121548295021057,
0.038458943367004395,
-0.5431314706802368,
0.2622193992137909,
-0.21269896626472473,
-0.18529465794563293,
0.16498726606369019,
0.1927381008863449,
0.08376091718673706,
0.028145806863904,
-0.24969902634620667,
0.3297187089920044,
0.08496127277612686,
-0.004352681338787079,
0.04160088673233986,
0.08348584175109863,
-0.06494294106960297,
-0.09139204025268555,
-0.003359416499733925,
0.45076805353164673,
0.04528437927365303,
-0.009753629565238953,
-0.22597774863243103,
0.3569221496582031,
-0.09161588549613953,
0.14008887112140656,
0.018097221851348877,
0.11193694919347763,
0.29277855157852173,
-0.12066023051738739,
-0.2199430614709854,
-0.12930983304977417,
0.5966846942901611,
0.04193907976150513,
-0.15332479774951935,
0.17370890080928802,
-0.43260669708251953,
-0.29559242725372314,
0.3696344196796417,
-0.025638090446591377,
0.027119111269712448,
0.12841582298278809,
0.06686338782310486,
-0.17375674843788147,
-0.013439333066344261,
0.3423481583595276,
0.5028307437896729,
0.18390823900699615,
-0.10457313060760498,
0.03426235914230347,
-0.35980555415153503,
-0.07767865061759949,
-0.07587333768606186,
0.12115823477506638,
0.4027734100818634,
0.5767918825149536,
0.35055068135261536,
0.009755519218742847,
-0.5195763111114502,
-0.24999698996543884,
0.0892636850476265,
0.5005635023117065,
-0.31458330154418945,
-0.05888596922159195,
-0.2020566612482071,
-0.15006931126117706,
-0.26692748069763184,
-0.22942028939723969,
-0.2996833920478821,
-0.2502126693725586,
-0.09032067656517029,
0.4568488299846649,
0.013585913926362991,
0.33136847615242004,
-0.7557673454284668,
0.09482863545417786,
-0.050943151116371155,
-0.1814253032207489,
-0.1037205159664154,
-0.13163195550441742,
-0.03418099880218506,
-0.03724440187215805,
0.41216954588890076,
0.07760361582040787,
0.4435415267944336,
-0.0992220789194107,
-0.13938578963279724,
-0.21772581338882446,
-0.22938069701194763,
-0.03389924019575119,
-0.07651635259389877,
-0.02308017574250698,
0.28853902220726013,
0.03952905535697937,
-0.14973224699497223,
-0.3457120358943939,
0.36840036511421204,
-0.2874166965484619,
-0.1831313967704773,
0.2736912667751312,
-0.06887339800596237,
0.0477561391890049,
0.08770337700843811,
-0.25555527210235596,
-0.10062191635370255,
-0.4179309606552124,
-0.09216845035552979,
0.213096022605896,
0.1583329737186432,
0.3770291805267334,
-0.18833230435848236,
0.12014296650886536,
0.0769670233130455,
0.35288262367248535,
-0.24673353135585785,
-0.3859328329563141,
0.3995437026023865,
-0.044675227254629135,
-0.28284505009651184,
-0.03730477765202522,
-0.24643869698047638,
0.0727732703089714,
0.08610039204359055,
-0.43586432933807373,
-0.347719669342041,
-0.26991912722587585,
-0.23237289488315582,
-0.03316035866737366,
-0.17303310334682465,
0.3908369541168213,
0.09429378807544708,
-0.13948309421539307,
-0.006136752665042877,
-0.18832515180110931,
0.19982805848121643,
0.07579249143600464,
0.3481650948524475,
-0.15975061058998108,
0.29549944400787354,
-0.13642436265945435,
0.5724863409996033,
0.4148239493370056,
0.051908478140830994,
0.09263577312231064,
0.0320620983839035,
0.3804648816585541,
-0.12182281166315079,
-0.32749295234680176,
-0.08516690135002136,
0.018538013100624084,
0.1922076940536499,
0.11993408203125,
-0.09054563194513321,
-0.2683866620063782,
-0.07598227262496948,
-0.10402902960777283,
-0.16878297924995422,
-0.2750399708747864,
0.14030033349990845,
-0.3935476839542389,
0.31140854954719543,
0.22068814933300018,
-0.004918083548545837,
-0.1749950498342514,
-0.48172417283058167,
-0.15338550508022308,
0.30810242891311646,
-0.15424492955207825,
-0.021761633455753326,
-0.22811533510684967,
0.20594920217990875,
-0.4059179723262787,
0.24460528790950775,
0.3321518003940582,
0.37925848364830017,
-0.09653537720441818,
-0.1378992199897766,
0.17449115216732025,
-0.10740014910697937,
0.2112129032611847,
-0.15681704878807068,
0.022936662659049034,
0.1802370399236679,
-0.19326312839984894,
-0.32915449142456055,
-0.12853345274925232,
-0.07087960839271545,
0.2246675044298172,
0.16284698247909546,
0.38669073581695557,
-0.18938547372817993,
-0.22539305686950684,
0.5273253917694092,
-0.017177080735564232,
-0.13914771378040314,
-0.5009347796440125,
-0.49649345874786377,
-0.32884150743484497,
-0.4223916828632355,
-0.024421900510787964,
-0.0691632553935051,
0.3058445453643799,
-0.060259655117988586,
-0.0070527344942092896,
0.08798583596944809,
0.007744971662759781,
0.24744459986686707,
0.047083593904972076,
0.1417863965034485,
0.29060742259025574,
0.2893090844154358,
0.07485982030630112,
0.2209790050983429,
-0.044957518577575684,
0.42477577924728394,
-0.2667270004749298,
-0.23744457960128784,
0.058317217975854874,
0.023058678954839706,
-0.16519242525100708,
0.06987093389034271,
0.10891249030828476,
-0.054003261029720306,
0.3547827899456024,
0.06940320879220963,
0.16097524762153625,
0.014948699623346329,
0.3398008644580841,
-0.13206733763217926,
-0.48240819573402405,
-0.3375606834888458,
0.2068861424922943,
-0.003405541181564331,
0.0006133392453193665,
0.14193950593471527,
-0.14033550024032593,
-0.014443013817071915,
0.18130339682102203,
0.0700116977095604,
0.9123481512069702,
-0.050208963453769684,
0.2700967788696289,
0.15562960505485535,
-0.12637460231781006,
0.4847863018512726,
-0.19063226878643036,
0.3136149048805237,
-0.44425997138023376,
-0.3440852761268616,
0.033206187188625336,
-0.21505539119243622,
0.001666530966758728,
-0.08467449247837067,
-0.03130524605512619,
0.41705939173698425,
0.3165464997291565,
-0.08886927366256714,
-0.02977541647851467,
0.23895853757858276,
-0.04117020219564438,
-0.17547446489334106,
-0.31650933623313904,
0.13627035915851593,
-0.4005621671676636,
0.3194383382797241,
-0.15105083584785461,
-0.0020370054990053177,
-0.002230364829301834,
-0.16608230769634247,
-0.21453514695167542,
0.2455090880393982,
0.18387764692306519,
0.45140379667282104,
0.5331093668937683,
-0.19798904657363892,
-0.14533284306526184,
0.04268033802509308,
0.07314477115869522,
-0.11077514290809631,
-0.22801870107650757,
0.08417952805757523,
0.47281166911125183,
-0.2130320519208908,
-0.027643967419862747,
0.167772114276886,
0.575076699256897,
-0.16118545830249786,
-0.0488375648856163,
-0.01754859834909439,
-0.1586228609085083,
-0.5636652708053589,
0.01652166247367859,
-0.014408774673938751,
0.22873765230178833,
-0.2249048352241516,
-0.24086140096187592,
-0.006058104336261749,
-0.1177302747964859,
-0.25810039043426514,
0.13442669808864594,
0.1428389698266983,
-0.2220248132944107,
0.19953863322734833,
0.09581373631954193,
-0.30817002058029175,
0.053559593856334686,
0.4131397306919098,
0.19125956296920776,
-0.2264440804719925,
0.4888492524623871,
-0.040287915617227554,
-0.32321697473526,
-0.19993358850479126,
0.0013784542679786682,
-0.07788455486297607,
-0.3243075907230377,
0.23540464043617249,
-0.005052752792835236,
0.2434721440076828,
0.19779729843139648,
0.456369549036026,
0.15388497710227966,
0.1639082133769989,
0.06401161849498749,
-0.4290207028388977,
-0.3424910604953766,
-0.09831582009792328,
-0.05868266895413399,
0.3464600443840027,
0.19336193799972534,
0.025078322738409042,
0.028280163183808327,
-0.014139434322714806,
-0.2789710760116577,
-0.036204323172569275,
-0.6158048510551453,
0.08086475729942322,
0.1627991497516632,
-0.1786707043647766,
0.09856287389993668,
0.08484919369220734,
0.10807712376117706,
0.06227850914001465,
-0.11878995597362518,
-0.2138742208480835,
-0.2060464471578598,
0.16817957162857056,
0.13121291995048523,
-0.1198769062757492,
-0.09784706681966782,
-0.13247357308864594,
-0.15383003652095795,
-0.15584583580493927,
-0.24399763345718384,
0.16781780123710632,
-0.06506063044071198,
-0.010938731022179127,
-0.13126090168952942,
-0.07443610578775406,
0.22800998389720917,
0.1402038335800171,
-0.4103323817253113,
-0.11820903420448303,
0.08093943446874619,
0.009015507996082306,
0.02809506468474865,
0.08395335078239441,
-0.07725916802883148,
0.076651431620121,
0.31415390968322754,
-0.26869189739227295,
0.2941836416721344,
-0.3255680799484253,
-0.13629105687141418,
0.06496966630220413,
0.3370262682437897,
0.21334891021251678,
-0.40814873576164246,
-0.07886414229869843,
0.23576778173446655,
0.1682233065366745,
-0.5343016386032104,
0.011873467825353146,
0.3354954719543457,
0.1092584878206253,
0.01803835853934288,
0.11050919443368912,
-0.14606690406799316,
-0.32630395889282227,
0.3797004818916321,
0.15485194325447083,
0.23264774680137634,
-0.6414138078689575,
-0.007243070751428604,
0.235351100564003,
0.10244522988796234,
-0.14251388609409332,
0.2817775309085846,
0.052331916987895966,
0.11280809342861176,
-0.02914397418498993,
-0.06500668078660965,
0.1464870125055313,
-0.19579416513442993,
0.15314312279224396,
-0.23318257927894592,
-0.2960088551044464,
0.21897290647029877,
0.4795638918876648,
0.23770150542259216,
0.086473248898983,
0.06585583090782166,
0.3420730531215668,
-0.07130587100982666,
0.20494285225868225,
-0.3094727098941803,
0.23022529482841492,
-0.1054367944598198,
-0.09366032481193542,
0.023986145853996277,
-0.0296238511800766,
-0.17092373967170715,
0.2104806751012802,
-0.01337192952632904,
0.20128804445266724,
0.04091127961874008,
0.13339293003082275,
-0.04454275965690613,
-0.5335200428962708,
0.1446579396724701,
0.23603355884552002,
-0.015614360570907593,
-0.2741881310939789,
0.2356104850769043,
0.114198237657547,
-0.07366062700748444,
0.04239692911505699,
0.35673561692237854,
0.3995250165462494,
0.36309918761253357,
-0.007846957072615623,
-0.12930522859096527,
0.11558045446872711,
0.11685702204704285,
0.137637659907341,
0.6320475339889526,
0.39147627353668213,
0.28913813829421997,
0.36634212732315063,
0.015223674476146698,
-0.1995551735162735,
0.25512340664863586,
-0.09978541731834412,
-0.3354570269584656,
0.02639918029308319,
0.7012007832527161,
0.15000788867473602,
-0.005063112825155258,
-0.20528407394886017,
0.190821573138237,
-0.39259451627731323,
-0.24595309793949127,
-0.03747439384460449,
0.06768758594989777,
0.1558876633644104,
-0.1156788244843483,
0.05636748671531677,
-0.10695980489253998,
0.4185028672218323,
0.1445922553539276,
-0.05507628619670868,
-0.3177080750465393,
-0.3510943055152893,
-0.7823408246040344,
0.4147548973560333,
-0.22224289178848267,
-0.004539035260677338,
0.11117476224899292,
0.12392005324363708,
-0.126012921333313,
0.12135890126228333,
0.05275210738182068,
0.08295360207557678,
-0.4774807393550873,
-0.13195644319057465,
-0.026101522147655487,
-0.020177431404590607,
-0.1110381931066513,
-0.4083560109138489,
-0.04655325040221214,
-0.1837361454963684,
0.028331954032182693,
0.10315468162298203,
0.022498108446598053,
-0.023307953029870987,
-0.05763590708374977,
-0.18685196340084076,
0.4520627558231354,
-0.08636727929115295,
0.18592649698257446,
0.48735833168029785,
0.05341413617134094,
-0.016193602234125137,
-0.06143548712134361,
-0.3204169273376465,
-0.24960832297801971,
0.25175267457962036,
0.1122913807630539,
0.33349788188934326,
-0.05136825144290924,
0.07830679416656494,
-0.3139568865299225,
0.18824872374534607,
-0.021477453410625458,
-0.17341679334640503,
-0.07351924479007721,
-0.05970590561628342,
-0.041505709290504456,
0.2270745038986206,
-0.053587689995765686,
0.011546451598405838,
0.21792948246002197,
0.31084921956062317,
-0.3252774477005005,
-0.23501767218112946,
0.5604352951049805,
-0.4640590250492096,
-0.3845105767250061,
0.011447492055594921,
0.19404618442058563,
-0.2139996588230133,
-0.20467177033424377,
-0.7420549988746643,
0.041730187833309174,
0.35193175077438354,
0.10893850773572922,
-0.09042596071958542,
0.12551145255565643,
-0.5100411176681519,
0.054863762110471725,
0.01010734960436821,
-0.05205969512462616,
0.1499001383781433,
-0.2129957377910614,
-0.18070805072784424,
-0.2111460566520691
] |
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.27264276146888733,
0.10239814221858978,
-0.07613078504800797,
0.038973305374383926,
-0.33897119760513306,
-0.12711802124977112,
0.6120794415473938,
0.14190560579299927,
0.23385146260261536,
0.03640781342983246,
0.09452303498983383,
-0.02755175344645977,
-0.07654080539941788,
0.8012988567352295,
0.396631121635437,
-0.044337376952171326,
0.21177732944488525,
0.058730464428663254,
0.08764059841632843,
-0.033294543623924255,
-0.3133229613304138,
0.3008319139480591,
-0.08162731677293777,
0.00840827077627182,
-0.5192533731460571,
-0.42109793424606323,
-0.21403492987155914,
0.13622228801250458,
-0.056496985256671906,
-0.09087258577346802,
0.02328544296324253,
0.3214836120605469,
-0.06836386024951935,
0.7272162437438965,
-0.00012029660138068721,
0.05504569411277771,
0.045721616595983505,
-0.12409218400716782,
-0.23834273219108582,
-0.24501560628414154,
-0.029781224206089973,
0.2153984159231186,
-0.18174497783184052,
-0.17276528477668762,
-0.05625493824481964,
0.012505266815423965,
-0.01566244475543499,
-0.08837364614009857,
0.05340612679719925,
0.15368154644966125,
0.057776667177677155,
0.10690486431121826,
-0.12648090720176697,
0.024995146319270134,
0.3883242607116699,
0.21690733730793,
-0.3077531158924103,
0.24215209484100342,
0.45303285121917725,
-0.10506390780210495,
0.09347035735845566,
0.37448227405548096,
0.10027123987674713,
-0.13245563209056854,
0.2871439754962921,
0.2010129690170288,
0.23145544528961182,
-0.2365601658821106,
-0.1251804232597351,
0.3853829801082611,
0.15421003103256226,
-0.1849047839641571,
-0.44270411133766174,
-0.4211251139640808,
-0.35952726006507874,
-0.38468611240386963,
0.183317169547081,
0.05606740713119507,
-0.17145974934101105,
0.13230881094932556,
-0.05736730247735977,
-0.5777277946472168,
-0.057594750076532364,
0.009336505085229874,
-0.24546264111995697,
0.6067346334457397,
0.19005516171455383,
-0.007056303322315216,
0.35563695430755615,
0.05118066072463989,
-0.3422849774360657,
-0.29461291432380676,
-0.042557064443826675,
-0.31998148560523987,
0.21934935450553894,
-0.2322889119386673,
-0.053132154047489166,
-0.13319125771522522,
0.0561140775680542,
0.174808070063591,
0.27686887979507446,
0.15260380506515503,
-0.16416987776756287,
0.1510075032711029,
0.39165735244750977,
0.2029717117547989,
0.2193078100681305,
0.31852638721466064,
0.41963648796081543,
0.1732519567012787,
0.0714321881532669,
0.10752616822719574,
-0.04246227815747261,
-0.020619671791791916,
-0.3254276216030121,
-0.1253996193408966,
0.0022389721125364304,
-0.24483440816402435,
-0.052666082978248596,
0.009428982622921467,
-0.10569724440574646,
-0.033777765929698944,
0.1963539868593216,
0.15844985842704773,
0.28536859154701233,
-0.013264823704957962,
-0.045059993863105774,
0.21404358744621277,
-0.33296632766723633,
-0.41930049657821655,
-0.06976460665464401,
-0.01687958464026451,
-0.1600259244441986,
0.365395724773407,
0.32472994923591614,
0.0730302557349205,
0.027449367567896843,
-0.21863290667533875,
0.0043943822383880615,
0.04649218171834946,
0.1876649558544159,
-0.2817600965499878,
0.3472292721271515,
0.22629311680793762,
-0.016525613144040108,
-0.0629671961069107,
-0.11086289584636688,
-0.3562138080596924,
-0.35616010427474976,
0.31670427322387695,
0.0032067373394966125,
-0.1998971700668335,
0.3542376756668091,
0.061093769967556,
-0.24827468395233154,
-0.08608873188495636,
-0.44903287291526794,
0.5363020896911621,
-0.05868368595838547,
-0.4931677579879761,
0.1699601411819458,
-0.1751808375120163,
-0.5471001863479614,
0.08174199610948563,
0.09914371371269226,
0.32350361347198486,
-0.5793901085853577,
-0.21484971046447754,
-0.10321906954050064,
0.10398870706558228,
0.08876170963048935,
0.3730236887931824,
-0.19056427478790283,
0.08986369520425797,
-0.16983585059642792,
0.9594695568084717,
-0.09935737401247025,
0.19754301011562347,
-0.16753454506397247,
0.2848425805568695,
-0.32566630840301514,
-0.009038610383868217,
0.021829135715961456,
0.04263466224074364,
0.11315731704235077,
-0.2048591673374176,
0.08689554035663605,
0.29471176862716675,
0.06203407794237137,
-0.060058075934648514,
-0.27603793144226074,
-0.1112532839179039,
0.39118510484695435,
0.028965525329113007,
-0.000951819121837616,
-0.476518452167511,
-0.15123268961906433,
-0.2698192000389099,
0.17407721281051636,
-0.23581087589263916,
-0.1551564335823059,
0.030881457030773163,
0.38740110397338867,
0.037519440054893494,
-0.009670831263065338,
0.33523061871528625,
-0.4020666182041168,
0.2687511146068573,
-0.012289075180888176,
0.17680121958255768,
-0.19553242623806,
-0.21270892024040222,
0.04979648441076279,
0.18786343932151794,
0.0376364067196846,
-0.13818295300006866,
-0.09236527979373932,
0.2016940414905548,
0.06069130077958107,
0.18772166967391968,
-0.04580458626151085,
-0.42936375737190247,
-0.36047759652137756,
-0.034817397594451904,
-0.3426392376422882,
0.17187324166297913,
-0.02856420911848545,
-0.0352945514023304,
0.043940454721450806,
0.07762055844068527,
-0.09348336607217789,
-0.27856263518333435,
0.028699053451418877,
0.27297720313072205,
-0.0015409630723297596,
0.35092198848724365,
0.32725921273231506,
0.6057783961296082,
0.2587486207485199,
-0.33105605840682983,
0.0790194571018219,
0.05079393833875656,
-0.13626407086849213,
-0.24290809035301208,
-0.2827904224395752,
0.5357285141944885,
-0.29185956716537476,
0.2532326281070709,
0.04084234684705734,
-0.2861540615558624,
-0.10220422595739365,
-0.0917569249868393,
-0.24356406927108765,
0.09727980196475983,
0.33141079545021057,
-0.44707557559013367,
0.09339968860149384,
0.07283050566911697,
-0.2139516919851303,
0.2892519235610962,
0.34978824853897095,
-0.3756162226200104,
0.2537582516670227,
0.09150274097919464,
0.0730309709906578,
-0.39838114380836487,
0.15582546591758728,
-0.03367450088262558,
0.33242273330688477,
0.19430626928806305,
0.30822914838790894,
-0.12997065484523773,
-0.000034322962164878845,
-0.3080717921257019,
0.34710419178009033,
0.09730906039476395,
-0.23001229763031006,
0.2968507409095764,
-0.13939529657363892,
-0.21483980119228363,
-0.2560613751411438,
0.0761810690164566,
0.18251225352287292,
0.0446549728512764,
-0.26244470477104187,
0.2580505609512329,
0.05243434011936188,
-0.24767214059829712,
-0.11752434074878693,
-0.28699928522109985,
-0.31773677468299866,
-0.05459418147802353,
0.2922191023826599,
-0.1741597205400467,
-0.3121165335178375,
0.15482091903686523,
0.11756907403469086,
0.5219108462333679,
-0.34695538878440857,
-0.4283791482448578,
-0.10553523898124695,
-0.24664337933063507,
-0.3328724205493927,
0.0004455074667930603,
0.6615574955940247,
0.15184473991394043,
0.2738097608089447,
-0.0665469542145729,
-0.2734891176223755,
0.018517518416047096,
-0.35130244493484497,
0.20384646952152252,
-0.21122875809669495,
0.37075483798980713,
-0.18827027082443237,
0.14625509083271027,
0.12490981817245483,
-0.192910298705101,
-0.09400714188814163,
-0.7298648953437805,
-0.14020249247550964,
-0.16542300581932068,
0.08745493739843369,
-0.08372749388217926,
-0.31103017926216125,
-0.5655396580696106,
-0.2192699909210205,
-0.07602910697460175,
0.4412035346031189,
0.07930569350719452,
0.07646059989929199,
0.3570253849029541,
0.19043096899986267,
0.02228967472910881,
0.3863986134529114,
-0.255283385515213,
-0.15553443133831024,
-0.08336992561817169,
0.30253225564956665,
0.07705032080411911,
-0.09850981831550598,
0.01115269586443901,
-0.18823149800300598,
0.03944018483161926,
0.015148650854825974,
-0.7059184908866882,
0.3068475127220154,
0.29036664962768555,
0.2597411572933197,
0.09256802499294281,
-0.3836500942707062,
0.2497781366109848,
-0.19923585653305054,
-0.033101677894592285,
0.007221471518278122,
-0.13477715849876404,
0.35199594497680664,
0.11038608103990555,
0.025062881410121918,
0.08066988736391068,
-0.18398919701576233,
0.10302597284317017,
0.6840963363647461,
-0.24827569723129272,
0.0036133304238319397,
0.021355241537094116,
0.18164707720279694,
-0.01313815638422966,
-0.1698090136051178,
-0.12966705858707428,
-0.2448468804359436,
-0.2465706765651703,
-0.45850253105163574,
0.5736469626426697,
-0.05931459367275238,
-0.5932353138923645,
-0.1298753321170807,
-0.09800748527050018,
0.008136864751577377,
-0.33837130665779114,
0.44114503264427185,
0.2071644514799118,
0.34762880206108093,
0.023094631731510162,
-0.1251218616962433,
-0.18637655675411224,
-0.19506797194480896,
0.05060971528291702,
-0.2279553860425949,
0.22617867588996887,
0.0466558076441288,
-0.1756550520658493,
-0.13431578874588013,
-0.3552808165550232,
0.34892958402633667,
0.25511932373046875,
0.17490263283252716,
-0.3630930781364441,
-0.07558812946081161,
0.022709771990776062,
-0.22196897864341736,
0.33170318603515625,
-0.17793342471122742,
-0.009399577975273132,
0.263095885515213,
0.03962919861078262,
0.2976766526699066,
-0.03516077995300293,
-0.3403719365596771,
-0.056759148836135864,
0.59993976354599,
0.5400310754776001,
-0.23751625418663025,
0.10115954279899597,
0.09148003160953522,
0.1242344081401825,
-0.11085677146911621,
0.21907635033130646,
-0.12448465824127197,
-0.15752649307250977,
-0.05398111790418625,
0.14336614310741425,
0.16325336694717407,
-0.14060263335704803,
-0.2619323134422302,
0.16163256764411926,
0.3779698610305786,
0.22005760669708252,
0.2634658217430115,
0.04311893880367279,
0.18487149477005005,
-0.07373246550559998,
0.08359605073928833,
0.4948537349700928,
-0.05579282343387604,
0.3722932040691376,
0.5668674111366272,
0.05743516609072685,
0.4507502317428589,
0.23353660106658936,
-0.16804245114326477,
0.3974839150905609,
0.8063242435455322,
0.1405191868543625,
0.06111988052725792,
0.07956419885158539,
0.07675691694021225,
-0.36867406964302063,
0.16794899106025696,
0.3405250310897827,
0.03158850222826004,
-0.27283063530921936,
-0.3024201989173889,
0.43114152550697327,
0.16697627305984497,
-0.10419311374425888,
0.3814053237438202,
-0.2048696130514145,
-0.26114189624786377,
0.5249558687210083,
-0.16674745082855225,
1.1697313785552979,
0.13682496547698975,
0.299349308013916,
0.08099700510501862,
0.4191165566444397,
0.19005805253982544,
-0.48842132091522217,
0.14853893220424652,
0.018190447241067886,
0.039729006588459015,
-0.1441790610551834,
-0.13872219622135162,
0.047332849353551865,
0.15482105314731598,
-0.3110105097293854,
0.11738543212413788,
0.39085423946380615,
-0.023433338850736618,
-0.029419636353850365,
0.3881388008594513,
0.12132317572832108,
-0.08995114266872406,
0.22960515320301056,
0.03451162576675415,
0.14061805605888367,
-0.027119237929582596,
0.04358300566673279,
-0.29336750507354736,
-0.4227815568447113,
-0.1069847121834755,
-0.2674904465675354,
-0.07565684616565704,
-0.303530216217041,
0.06499312818050385,
-0.10642239451408386,
-0.3392094373703003,
0.14191082119941711,
-0.02070540562272072,
-0.27131223678588867,
0.038825396448373795,
-0.1473769098520279,
0.15149560570716858,
-0.20226159691810608,
0.085938461124897,
0.14814551174640656,
-0.08725149184465408,
0.2579502761363983,
0.14090168476104736,
-0.2104298323392868,
-0.14714178442955017,
-0.07716712355613708,
-0.20184218883514404,
-0.4417012333869934,
-0.3046224117279053,
0.06850932538509369,
-0.1561022698879242,
0.17711235582828522,
0.23173421621322632,
-0.26455679535865784,
-0.15440721809864044,
0.09706161916255951,
-0.019570276141166687,
-0.27397164702415466,
0.018658269196748734,
0.0106247179210186,
-0.23780769109725952,
-0.2421088069677353,
0.2205880582332611,
-0.1942063570022583,
0.3820823132991791,
0.4124898612499237,
0.34962376952171326,
0.08176256716251373,
-0.2193911075592041,
0.25419145822525024,
-0.17682990431785583,
-0.2578892707824707,
0.14944756031036377,
-0.055213142186403275,
-0.13528777658939362,
-0.32299667596817017,
0.4571171700954437,
0.44449567794799805,
-0.025733284652233124,
-0.08926409482955933,
-0.08309238404035568,
0.20626111328601837,
0.284072607755661,
0.24988894164562225,
0.4437868893146515,
-0.08976074308156967,
-0.00792958028614521,
-0.09504660218954086,
0.21255727112293243,
-0.24109385907649994,
0.05427549034357071,
-0.26053816080093384,
0.018840041011571884,
-0.09556232392787933,
-0.17356181144714355,
0.16202601790428162,
-0.10368092358112335,
-0.03033854253590107,
0.2714053988456726,
0.04786058887839317,
-0.0993204340338707,
-0.002333488315343857,
0.21611438691616058,
0.043417539447546005,
-0.04598218947649002,
-0.03247646987438202,
0.09885655343532562,
0.16137555241584778,
0.016263850033283234,
0.028270158916711807,
-0.09494827687740326,
0.10343904793262482,
-0.25278574228286743,
0.06377434730529785,
0.017148617655038834,
-0.2364720106124878,
0.18096686899662018,
0.02994769811630249,
0.42961764335632324,
-0.08236414939165115,
0.20041227340698242,
-0.07349070906639099,
-0.0253969244658947,
0.0024156589061021805,
0.2037968933582306,
0.04480947554111481,
-0.02303711324930191,
0.13326126337051392,
-0.15044836699962616,
0.10106642544269562,
-0.03395141661167145,
0.47991788387298584,
0.30693191289901733,
-0.3384394943714142,
0.06593747437000275,
-0.0241234228014946,
0.10520027577877045,
-0.1385965347290039,
-0.2768114507198334,
0.17255999147891998,
-0.19984829425811768,
0.009590264409780502,
0.44957131147384644,
0.7169882655143738,
0.0763072520494461,
-0.012505173683166504,
-0.028908178210258484,
-0.11710938066244125,
0.17829346656799316,
0.09389927983283997,
0.29326966404914856,
-0.31954678893089294,
0.13398109376430511,
0.05405103415250778,
0.21507614850997925,
0.2383483648300171,
-0.05193152278661728,
0.06294256448745728,
-0.0008561033755540848,
-0.08676989376544952,
0.2609274089336395,
-0.24248209595680237,
-0.4443644881248474,
-0.19591929018497467,
0.18454548716545105,
0.1359020173549652,
0.3729005753993988,
0.009673871099948883,
0.7265558838844299,
-0.5254346132278442,
-0.1399839073419571,
-0.16815590858459473,
0.11445039510726929,
-0.1295725405216217,
0.05287378653883934,
-0.4104501008987427,
-0.2534969449043274,
-0.7404453754425049,
0.24860534071922302,
-0.034916240721940994,
0.03422483056783676,
-0.2049787938594818,
0.22944015264511108,
-0.16140131652355194,
0.18505439162254333,
0.18645203113555908,
-0.41326984763145447,
0.24571040272712708,
-0.3718051314353943,
0.33575403690338135,
0.17537695169448853,
0.08001367747783661,
0.1787540167570114,
0.20186208188533783,
0.2501913011074066,
-0.26732516288757324,
-0.286414235830307,
0.06128667667508125,
-0.18970011174678802,
-0.0508236400783062,
-0.03771716356277466,
0.31494468450546265,
0.13425672054290771,
-0.01986023783683777,
0.41707029938697815,
0.020116755738854408,
-0.04885118082165718,
0.2668669819831848,
0.3733462393283844,
0.2590523660182953,
-0.13695015013217926,
0.408830851316452,
-0.21470613777637482,
-0.2509362995624542,
-0.2189851701259613,
-0.20407551527023315,
-0.2603698968887329,
0.14234471321105957,
0.3417736291885376,
-0.23626965284347534,
0.07391119748353958,
-0.04585276171565056,
0.022653911262750626,
-0.19437019526958466,
0.6136361360549927,
0.13495588302612305,
0.30155643820762634,
-0.45370569825172424,
-0.18685108423233032,
-0.45649391412734985,
0.06264235079288483,
-0.26757729053497314,
0.1378537118434906,
0.15337342023849487,
0.0983278676867485,
0.37560737133026123,
0.33721989393234253,
-0.08962112665176392,
0.0860823541879654,
-0.36308106780052185,
0.18579699099063873,
-0.36471259593963623,
0.20505459606647491,
-0.2918785810470581,
0.04239121824502945,
0.04486231505870819,
-0.15484261512756348,
0.13354650139808655,
-0.13258495926856995,
-0.16128170490264893,
0.09111715853214264,
-0.26346608996391296,
0.11952421069145203,
0.708961009979248,
0.2730458378791809,
-0.138556569814682,
0.5048613548278809,
0.04496282339096069,
0.071045882999897,
0.03080778941512108,
-0.2031419724225998,
-0.19387614727020264,
0.10185787826776505,
-0.304217666387558,
0.2639803886413574,
-0.22789904475212097,
-0.13102705776691437,
-0.0010579127119854093,
-0.2271566390991211,
-0.05901191756129265,
-0.020483791828155518,
-0.18817085027694702,
-0.28768405318260193,
-0.37682726979255676,
-0.10037926584482193,
0.3555048406124115,
0.581774890422821,
-0.06896340847015381,
-0.21676339209079742,
-0.19725747406482697,
0.021835090592503548,
0.5056436061859131,
0.07838374376296997,
-0.0010331198573112488,
0.01622597873210907,
0.062012720853090286,
0.622660756111145,
0.10652200132608414,
-0.41340625286102295,
-0.10987982898950577,
0.21437391638755798,
0.18306419253349304,
-0.1542508751153946,
0.0011520003899931908,
0.1577073037624359,
-0.009702138602733612,
-0.02847476676106453,
0.5589553713798523,
0.03018462471663952,
-0.19190503656864166,
0.07093535363674164,
-0.2202950417995453
] |
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.4496193826198578,
-0.03256111592054367,
-0.24153488874435425,
0.011326104402542114,
0.01966717094182968,
-0.2363712191581726,
0.3253326416015625,
0.2554730474948883,
0.3786720335483551,
0.13758963346481323,
-0.1407313197851181,
0.12346850335597992,
-0.2844299077987671,
0.6086758375167847,
0.2480924129486084,
-0.1724562644958496,
0.1320280283689499,
0.14125856757164001,
0.022988315671682358,
-0.03596861660480499,
-0.3278512954711914,
0.1621130108833313,
0.015688277781009674,
-0.10666374862194061,
0.09940105676651001,
-0.051835797727108,
-0.145586296916008,
0.11187282204627991,
-0.2036283165216446,
-0.23971618711948395,
0.019588278606534004,
0.24893870949745178,
0.08734680712223053,
0.3737567663192749,
-0.00009904240141622722,
-0.1411963701248169,
0.14712390303611755,
-0.17506426572799683,
-0.1681002825498581,
-0.17707963287830353,
0.008781392127275467,
-0.158925399184227,
-0.35056060552597046,
-0.07190446555614471,
-0.20974275469779968,
-0.18477943539619446,
-0.07472766935825348,
-0.2173966020345688,
-0.025999128818511963,
0.1759340763092041,
0.33317700028419495,
0.16255204379558563,
-0.07659947127103806,
-0.1970888376235962,
0.31865885853767395,
0.20531995594501495,
-0.30262553691864014,
0.10414387285709381,
0.5350346565246582,
0.05754220485687256,
0.2266923487186432,
0.1472872644662857,
-0.13924477994441986,
-0.08710980415344238,
0.10388640314340591,
0.016398247331380844,
0.3358010947704315,
-0.14567837119102478,
-0.03258833289146423,
0.4370431900024414,
0.27435502409935,
-0.22263741493225098,
-0.14066928625106812,
-0.17406851053237915,
-0.2891649603843689,
-0.5619828104972839,
-0.17799359560012817,
0.0258650965988636,
-0.11503702402114868,
0.1747482568025589,
0.12535303831100464,
-0.23637638986110687,
-0.11890330910682678,
0.10200272500514984,
-0.13718059659004211,
0.5368199348449707,
0.1239045262336731,
-0.1856372356414795,
0.26360058784484863,
-0.22586031258106232,
-0.22719193994998932,
-0.3083101809024811,
-0.033456575125455856,
-0.22048385441303253,
0.024958856403827667,
-0.3071703314781189,
0.0811234787106514,
-0.026381708681583405,
0.24977973103523254,
0.061200130730867386,
0.4035756587982178,
0.37410062551498413,
-0.04223492741584778,
-0.03191938251256943,
0.07855524122714996,
0.16759845614433289,
-0.026160091161727905,
0.11106202006340027,
0.11657305061817169,
0.12753984332084656,
0.09288720786571503,
0.251077800989151,
-0.019871007651090622,
0.22661428153514862,
-0.31013938784599304,
0.10709851235151291,
-0.2500461935997009,
-0.19844403862953186,
-0.1738283485174179,
0.10369092971086502,
0.08536119014024734,
-0.004556519910693169,
0.10780088603496552,
0.3054642677307129,
-0.008341921493411064,
0.0905195102095604,
-0.22021788358688354,
0.13062703609466553,
-0.12802639603614807,
-0.43331700563430786,
-0.14333420991897583,
0.13601171970367432,
-0.18820084631443024,
-0.06057856231927872,
0.24250446259975433,
0.20055611431598663,
0.05583035200834274,
0.06556282937526703,
0.22429487109184265,
0.2239503562450409,
0.41621455550193787,
-0.39345264434814453,
0.26772451400756836,
-0.02385399118065834,
-0.013510338962078094,
-0.23244333267211914,
-0.027121756225824356,
-0.2948927581310272,
-0.4005903899669647,
0.12512391805648804,
0.17659983038902283,
-0.09665536135435104,
-0.0518554151058197,
0.28997161984443665,
-0.2850765585899353,
-0.22686466574668884,
-0.1316845715045929,
0.6907500624656677,
-0.3521033525466919,
-0.24084140360355377,
-0.00024947524070739746,
-0.0981626957654953,
-0.3826604187488556,
-0.16781580448150635,
-0.06826374679803848,
0.22304990887641907,
-0.7102311253547668,
-0.0014370381832122803,
-0.0881652981042862,
0.08764077723026276,
0.12219163775444031,
0.14798830449581146,
-0.12217484414577484,
-0.05697456747293472,
-0.17860989272594452,
0.42854171991348267,
-0.007387153804302216,
0.06345559656620026,
-0.13865818083286285,
0.04797198623418808,
-0.17623864114284515,
-0.0238591730594635,
0.08303667604923248,
0.24482128024101257,
0.26639485359191895,
-0.1704755425453186,
-0.205672949552536,
0.35597413778305054,
0.10173506289720535,
-0.04718203842639923,
-0.28085780143737793,
-0.22308315336704254,
0.3721274137496948,
0.2732970118522644,
0.02457551844418049,
-0.3738013207912445,
-0.02006884664297104,
-0.1720561534166336,
0.21086713671684265,
-0.3505476713180542,
-0.19193881750106812,
0.13635078072547913,
0.36976513266563416,
-0.0901838093996048,
0.027172701433300972,
-0.11428499221801758,
-0.3181372284889221,
0.2242150604724884,
-0.16261036694049835,
0.252993106842041,
0.13913705945014954,
-0.010243142023682594,
-0.1896645724773407,
0.2022198587656021,
0.14744901657104492,
-0.09282970428466797,
0.26756253838539124,
0.3086659610271454,
0.04511755332350731,
0.14654219150543213,
0.004036109894514084,
-0.17007632553577423,
-0.08285883069038391,
-0.21456825733184814,
-0.04821617528796196,
0.16887864470481873,
0.04465389996767044,
-0.08213888853788376,
0.07336455583572388,
0.0036317557096481323,
0.058269742876291275,
-0.048338547348976135,
0.0967121571302414,
-0.010171223431825638,
0.05688552185893059,
0.10587446391582489,
0.3047044575214386,
0.4284173250198364,
0.11857864260673523,
-0.18440429866313934,
0.23368556797504425,
0.358905166387558,
0.04562991484999657,
-0.16278308629989624,
-0.1102420762181282,
0.7311080694198608,
0.021625271067023277,
0.08308503776788712,
-0.017576463520526886,
-0.09846503287553787,
0.16341298818588257,
-0.012995544821023941,
-0.03427853435277939,
-0.06884007155895233,
0.6526176333427429,
-0.042735714465379715,
0.2194087654352188,
0.055144958198070526,
-0.23673196136951447,
0.3291022777557373,
0.2710440754890442,
-0.32130002975463867,
0.3904018998146057,
0.16437970101833344,
0.021710962057113647,
-0.325835645198822,
0.23713171482086182,
0.08658619225025177,
0.3153604567050934,
0.3786848783493042,
0.20127958059310913,
-0.0551145002245903,
-0.039565764367580414,
-0.12765678763389587,
0.5137771964073181,
-0.1240726113319397,
-0.1921025663614273,
0.14317341148853302,
0.1666231006383896,
-0.26958298683166504,
-0.2591988146305084,
-0.027448493987321854,
-0.08196217566728592,
0.05179435759782791,
0.023128245025873184,
0.08825179189443588,
-0.16530729830265045,
-0.1684928834438324,
0.1481921523809433,
-0.2837998867034912,
-0.3677745759487152,
-0.11337269842624664,
0.20648282766342163,
-0.10175016522407532,
-0.3563193678855896,
0.1745758205652237,
0.05030202493071556,
0.43899229168891907,
-0.3019815981388092,
-0.3839162588119507,
-0.08204162865877151,
-0.13430187106132507,
-0.16649577021598816,
0.2428557574748993,
0.2744908332824707,
0.04891860485076904,
0.33001214265823364,
-0.009103360585868359,
0.07316252589225769,
-0.043030135333538055,
-0.34797728061676025,
0.17181110382080078,
-0.05937013775110245,
0.19500654935836792,
0.06254182755947113,
0.10530254989862442,
0.1494201123714447,
-0.07894575595855713,
0.027824925258755684,
-0.5253403782844543,
-0.09801891446113586,
-0.11366849392652512,
-0.13267430663108826,
0.001822764752432704,
-0.24414534866809845,
-0.14847183227539062,
-0.4197816550731659,
-0.417162150144577,
0.15122127532958984,
0.2760445177555084,
0.10071514546871185,
0.11917818337678909,
0.23996785283088684,
0.08590126037597656,
0.2548602521419525,
-0.12752948701381683,
-0.3787021040916443,
-0.2274726778268814,
0.35529616475105286,
-0.1580534279346466,
-0.13724207878112793,
-0.3094336688518524,
-0.30708807706832886,
0.11155793070793152,
0.011998641304671764,
-0.40528541803359985,
0.12840452790260315,
0.17927108705043793,
0.2972588539123535,
0.02156943269073963,
-0.23988007009029388,
0.3363252580165863,
0.09316917508840561,
-0.17023704946041107,
-0.16677764058113098,
-0.1932847648859024,
0.1437273621559143,
-0.1239263042807579,
0.05415567755699158,
0.025741999968886375,
-0.14173081517219543,
0.12665103375911713,
0.6686887741088867,
-0.3144364655017853,
-0.12966176867485046,
0.31661391258239746,
0.21045567095279694,
0.11629678308963776,
-0.13073143362998962,
-0.1326124519109726,
-0.2857694625854492,
-0.005099311470985413,
-0.21975527703762054,
0.49922245740890503,
-0.03305196762084961,
-0.6249353289604187,
-0.18222731351852417,
-0.011846808716654778,
0.12655672430992126,
0.03618263825774193,
0.34414008259773254,
0.26901960372924805,
0.17928552627563477,
0.052571941167116165,
-0.025792192667722702,
-0.48496875166893005,
-0.19256508350372314,
0.1623874306678772,
-0.3692140579223633,
-0.10430405288934708,
-0.1446266919374466,
-0.3234773576259613,
0.25035810470581055,
-0.37762290239334106,
0.497139036655426,
0.2345060557126999,
-0.13974465429782867,
-0.2826569378376007,
-0.11465826630592346,
-0.14583253860473633,
-0.15708084404468536,
0.10016392916440964,
-0.3264563977718353,
-0.05543496459722519,
0.21933741867542267,
-0.08011274039745331,
0.009402556344866753,
0.1120510995388031,
-0.33851587772369385,
-0.23007960617542267,
0.44367942214012146,
0.28354379534721375,
-0.36005133390426636,
0.11661573499441147,
0.021960292011499405,
0.28475549817085266,
-0.017644546926021576,
0.05404474958777428,
-0.08348546177148819,
-0.2652909755706787,
-0.02218044176697731,
0.14553648233413696,
0.02094189263880253,
-0.04758266359567642,
0.009708475321531296,
0.03487936034798622,
0.11635809391736984,
0.17145892977714539,
0.3515787124633789,
0.01412416435778141,
0.05548376590013504,
0.04878038540482521,
0.10674524307250977,
-0.023395299911499023,
-0.03052058070898056,
0.15367576479911804,
0.3748408555984497,
-0.1545540988445282,
-0.026554293930530548,
0.029690267518162727,
-0.2578398287296295,
0.16938546299934387,
0.44539371132850647,
0.16845141351222992,
0.18752092123031616,
-0.26787474751472473,
0.07853961735963821,
-0.3695301115512848,
-0.003959310241043568,
0.07492104172706604,
0.11941703408956528,
-0.09367205947637558,
-0.38856667280197144,
0.28777509927749634,
0.03607533499598503,
-0.19673076272010803,
0.359697550535202,
-0.38177740573883057,
-0.1403759866952896,
0.5071078538894653,
0.1715397834777832,
1.069743275642395,
0.1382472962141037,
0.2277499884366989,
0.2690105438232422,
-0.11231671273708344,
0.17693138122558594,
-0.10136781632900238,
0.014101196080446243,
-0.09035833925008774,
-0.10908419638872147,
-0.004030076786875725,
-0.11640001088380814,
0.012545663863420486,
0.23084887862205505,
-0.38142696022987366,
0.21438711881637573,
0.18741409480571747,
-0.043395306915044785,
0.1430399864912033,
0.23987534642219543,
0.1523895561695099,
-0.13144680857658386,
-0.08729811012744904,
0.30383703112602234,
0.08884330093860626,
-0.23565328121185303,
-0.08984677493572235,
-0.24454598128795624,
-0.167867511510849,
0.014743786305189133,
-0.3042562007904053,
0.022269796580076218,
-0.26166900992393494,
-0.024637345224618912,
-0.2143443524837494,
-0.38729047775268555,
-0.010474825277924538,
0.04375879466533661,
-0.13702325522899628,
0.12695129215717316,
-0.11298982799053192,
0.08242666721343994,
-0.0416596382856369,
0.2649956941604614,
0.17309202253818512,
-0.2701747715473175,
0.06557830423116684,
-0.09696952998638153,
-0.15053296089172363,
0.0545450821518898,
0.0900314450263977,
-0.2973231077194214,
-0.4159226417541504,
-0.06746457517147064,
0.23152509331703186,
-0.03994457796216011,
0.09126697480678558,
0.05263623222708702,
-0.053316302597522736,
-0.2608889043331146,
0.2784077227115631,
0.15914887189865112,
-0.11420721560716629,
-0.0011994391679763794,
0.011547759175300598,
-0.11318989843130112,
-0.35274738073349,
0.09433351457118988,
-0.03671784698963165,
0.11038513481616974,
0.2188694179058075,
0.27833524346351624,
-0.16156886518001556,
-0.39928770065307617,
0.2303353250026703,
-0.4040113389492035,
-0.2551639676094055,
0.23465009033679962,
-0.1682870239019394,
-0.4499286413192749,
-0.29944223165512085,
0.18277998268604279,
0.3982260227203369,
0.026737865060567856,
0.03625013306736946,
-0.14062458276748657,
-0.1324993073940277,
-0.026372581720352173,
0.19789005815982819,
0.20397302508354187,
-0.2525267004966736,
-0.24089036881923676,
-0.12476915866136551,
0.03010539710521698,
-0.5307037830352783,
0.0459258034825325,
-0.210452139377594,
-0.10872063040733337,
-0.1318974643945694,
-0.1910291612148285,
-0.00013049703557044268,
0.05293702706694603,
0.17014311254024506,
0.13026867806911469,
-0.3670072555541992,
-0.33626657724380493,
-0.24664969742298126,
0.0947992205619812,
-0.18985804915428162,
0.020323310047388077,
0.17460665106773376,
0.07297463715076447,
0.025457557290792465,
0.023537809029221535,
-0.1450497806072235,
0.004744112491607666,
0.01427224650979042,
0.044072944670915604,
0.16072280704975128,
-0.017969518899917603,
-0.10783057659864426,
0.11824368685483932,
0.16257090866565704,
0.48229700326919556,
0.028403542935848236,
0.205941841006279,
0.005525205750018358,
-0.17508503794670105,
0.13491836190223694,
0.19154199957847595,
0.0970897376537323,
-0.05270981788635254,
0.3109692335128784,
0.15186187624931335,
-0.08502788841724396,
0.2378426492214203,
0.43494707345962524,
0.06670140475034714,
-0.2614821791648865,
0.16746515035629272,
0.24048000574111938,
0.35861727595329285,
-0.35053402185440063,
-0.3663562834262848,
0.2699553370475769,
-0.05710513889789581,
0.20113930106163025,
0.26349884271621704,
0.5090159773826599,
0.05599415302276611,
0.369381308555603,
-0.04327792674303055,
-0.020840603858232498,
0.09141692519187927,
-0.003950185142457485,
0.18690763413906097,
-0.16547033190727234,
0.035019710659980774,
0.11755072325468063,
0.19320011138916016,
0.15324169397354126,
0.1545320451259613,
0.08829913288354874,
0.29969722032546997,
-0.0034259259700775146,
0.1333686113357544,
-0.034618474543094635,
-0.26290035247802734,
0.21509569883346558,
0.3194667100906372,
0.07757733762264252,
0.4573177099227905,
0.21477781236171722,
0.40423405170440674,
-0.3567393720149994,
0.011296369135379791,
-0.28249841928482056,
0.11342591047286987,
-0.043353743851184845,
0.03050995245575905,
-0.09572546184062958,
-0.25501367449760437,
-0.6515781879425049,
0.10207687318325043,
0.05943841487169266,
-0.10263299942016602,
-0.021779365837574005,
0.10167793929576874,
0.18458722531795502,
0.06760046631097794,
0.018112527206540108,
-0.16487687826156616,
0.14800001680850983,
-0.34132373332977295,
0.19094803929328918,
0.3641982078552246,
0.07046075910329819,
0.16553249955177307,
0.2569619417190552,
0.1940619796514511,
-0.03387431055307388,
-0.44999417662620544,
0.0075201308354735374,
-0.2952577769756317,
-0.02734900638461113,
-0.40369713306427,
0.29546210169792175,
0.1795182079076767,
0.08728908002376556,
0.5714365839958191,
0.21343077719211578,
-0.3286539316177368,
0.1666836142539978,
0.29623377323150635,
-0.023502007126808167,
-0.25222083926200867,
0.4653351902961731,
0.11421199142932892,
-0.1969919204711914,
-0.3033171594142914,
-0.11753075569868088,
-0.27486327290534973,
0.0919518992304802,
0.336184024810791,
-0.0773765966296196,
0.1398291289806366,
-0.12191808968782425,
0.17880935966968536,
-0.188462495803833,
0.4774322211742401,
0.05185365304350853,
0.39418017864227295,
-0.32099542021751404,
-0.1259218454360962,
-0.4690101146697998,
0.2998863458633423,
-0.24836665391921997,
0.024124888703227043,
-0.07139302790164948,
0.09258092194795609,
0.5485863089561462,
0.4447721838951111,
-0.05763104557991028,
0.23186026513576508,
-0.21672511100769043,
0.25892913341522217,
-0.5738070011138916,
0.26761484146118164,
-0.011865481734275818,
0.0888419896364212,
0.14419452846050262,
-0.3371601700782776,
-0.03355717286467552,
0.0031606219708919525,
0.26093095541000366,
-0.13283923268318176,
-0.3144962191581726,
0.05351030454039574,
0.38949915766716003,
0.4873793125152588,
-0.06532410532236099,
0.370475172996521,
-0.27177783846855164,
-0.21417170763015747,
0.1481596827507019,
0.004130001179873943,
-0.08751662075519562,
0.006609424948692322,
0.08123159408569336,
0.21709252893924713,
-0.29440781474113464,
-0.23097090423107147,
0.03867051377892494,
0.0070219384506344795,
0.019876040518283844,
0.004748832900077105,
-0.2540014386177063,
-0.057408496737480164,
-0.14791086316108704,
-0.10702920705080032,
-0.03978080675005913,
0.4793079197406769,
-0.05683738738298416,
-0.009118270128965378,
-0.14388447999954224,
0.04604253172874451,
0.4239747226238251,
0.07319094985723495,
-0.2884409427642822,
-0.05709481239318848,
-0.027156144380569458,
0.24365508556365967,
0.036444272845983505,
-0.28757885098457336,
0.10554050654172897,
0.19280244410037994,
0.2369609773159027,
-0.06719820946455002,
0.16316485404968262,
-0.05425930395722389,
0.08807642757892609,
-0.07869656383991241,
0.4497816562652588,
0.11182750761508942,
-0.16345080733299255,
-0.049863383173942566,
-0.2840098738670349
] |
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.000057388097047805786,
-0.14250023663043976,
-0.10484316945075989,
-0.11375904083251953,
-0.020864441990852356,
-0.27573007345199585,
0.3570462465286255,
0.16198910772800446,
-0.17019501328468323,
-0.11541064083576202,
-0.10624045878648758,
0.374196857213974,
-0.23276928067207336,
0.024785926565527916,
0.22765789926052094,
-0.1631379872560501,
0.11561078578233719,
0.020650990307331085,
0.17515629529953003,
0.037742145359516144,
-0.08029603958129883,
-0.18629907071590424,
-0.09968918561935425,
0.01580902189016342,
-0.15434454381465912,
-0.006552642211318016,
-0.23252810537815094,
-0.06639573723077774,
0.017445826902985573,
-0.1567317545413971,
-0.4168612062931061,
0.1775115579366684,
-0.006495857611298561,
-0.05871262401342392,
-0.000105389000964351,
0.041064925491809845,
0.05086590722203255,
-0.1544799506664276,
-0.06360596418380737,
-0.2922307252883911,
-0.17180559039115906,
-0.5856847167015076,
-0.00518417451530695,
-0.21386726200580597,
0.16897663474082947,
-0.2611021101474762,
0.30336612462997437,
-0.015454791486263275,
0.2199573516845703,
0.04244820773601532,
0.23387330770492554,
0.16196538507938385,
0.05709826573729515,
0.31448403000831604,
0.17907890677452087,
0.7218416929244995,
-0.17565026879310608,
-0.026227854192256927,
0.37595587968826294,
-0.19800624251365662,
-0.17143097519874573,
0.5319555997848511,
0.07072717696428299,
-0.17268803715705872,
0.10479660332202911,
-0.15542207658290863,
-0.074254609644413,
-0.18622654676437378,
-0.18268197774887085,
0.2696187496185303,
0.5540598630905151,
-0.09467921406030655,
-0.39567363262176514,
-0.2771696448326111,
0.10153623670339584,
0.21204407513141632,
-0.14912277460098267,
0.46957656741142273,
-0.08470460772514343,
0.2618878483772278,
-0.14117366075515747,
-0.41724756360054016,
-0.22692744433879852,
0.40050208568573,
-0.010741002857685089,
-0.11447329819202423,
0.11392755061388016,
0.10642632097005844,
0.1271231323480606,
-0.1394752711057663,
0.24053426086902618,
-0.0852414071559906,
0.1974170058965683,
0.1384703665971756,
0.11991788446903229,
-0.14774392545223236,
0.09294046461582184,
-0.07566320151090622,
0.1010374203324318,
-0.13798776268959045,
0.014192367903888226,
0.1652178168296814,
-0.6861978769302368,
0.37200021743774414,
0.13847538828849792,
-0.3171005845069885,
-0.34663692116737366,
0.15517231822013855,
0.2985227704048157,
-0.057959578931331635,
-0.026865802705287933,
-0.037867411971092224,
0.016913164407014847,
0.044088225811719894,
-0.32684484124183655,
0.0000944230705499649,
0.10693493485450745,
-0.015392318367958069,
-0.09738066047430038,
-0.2925388813018799,
-0.24316498637199402,
0.058112308382987976,
-0.02610054239630699,
-0.07544048875570297,
0.2316325157880783,
0.2951602041721344,
-0.01032618060708046,
0.2380756437778473,
0.005102414637804031,
-0.6885836124420166,
0.06887868046760559,
0.08224189281463623,
-0.4507431387901306,
0.11295700818300247,
0.019686192274093628,
0.576987624168396,
0.10568473488092422,
0.022471196949481964,
0.07950747758150101,
-0.058927375823259354,
0.11541968584060669,
-0.3274693787097931,
0.09448648989200592,
0.014610260725021362,
-0.3158085346221924,
-0.28220757842063904,
-0.001003161072731018,
0.22869302332401276,
-0.19302892684936523,
-0.09520155936479568,
0.013752192258834839,
-0.20002111792564392,
-0.1908561885356903,
0.12177523225545883,
-0.07179056107997894,
0.039787329733371735,
0.3123767673969269,
0.9068836569786072,
-0.3320867121219635,
-0.4840669333934784,
-0.037231408059597015,
-0.036526091396808624,
-0.3246375322341919,
-0.15300938487052917,
-0.10833133012056351,
0.2535994052886963,
-0.42064613103866577,
-0.14578938484191895,
0.02145656943321228,
-0.07829169929027557,
-0.0730271264910698,
0.2533954381942749,
-0.30217689275741577,
-0.06193652004003525,
0.07331465929746628,
-0.14392951130867004,
0.4224868416786194,
-0.29670795798301697,
-0.21420544385910034,
0.1942332237958908,
0.04232415556907654,
0.25263115763664246,
-0.043890051543712616,
0.3999972343444824,
-0.01888715662062168,
-0.1381502002477646,
0.12124072015285492,
0.711315393447876,
-0.15096792578697205,
0.05194582790136337,
-0.1938299983739853,
-0.36008623242378235,
0.26589295268058777,
0.4229554533958435,
0.013050153851509094,
-0.32058045268058777,
0.6397948265075684,
-0.000615815632045269,
0.10155642032623291,
-0.27745258808135986,
0.1214609369635582,
-0.19341138005256653,
0.2937176525592804,
-0.05628745257854462,
-0.142730250954628,
-0.27560004591941833,
-0.2272174060344696,
0.0019214823842048645,
-0.2704662084579468,
0.2816793620586395,
-0.1663465052843094,
-0.0009557493031024933,
0.20897862315177917,
-0.13932353258132935,
0.09564188122749329,
0.0041687507182359695,
0.20372046530246735,
0.101141057908535,
-0.41691771149635315,
0.25004842877388,
-0.09020806849002838,
0.02519216760993004,
-0.09754292666912079,
0.038837727159261703,
0.18151532113552094,
0.2594427168369293,
0.01380189135670662,
0.11615652590990067,
0.09846028685569763,
0.5246052742004395,
-0.22382545471191406,
0.0367363877594471,
0.03219549357891083,
-0.0006300881505012512,
0.19920103251934052,
0.4802197217941284,
-0.013226784765720367,
0.3972020149230957,
0.4809136390686035,
-0.6762462854385376,
0.3488887548446655,
-0.16103708744049072,
0.2448393702507019,
-0.1503300815820694,
-0.0425940677523613,
0.20941683650016785,
0.24884064495563507,
0.08534586429595947,
-0.07931318134069443,
0.06880920380353928,
0.08538883924484253,
0.04717608913779259,
-0.3372049927711487,
-0.16118624806404114,
-0.055051494389772415,
0.19434937834739685,
0.004932381212711334,
0.03765694797039032,
-0.3816789984703064,
0.1459183394908905,
0.5345169901847839,
0.23161807656288147,
0.17994529008865356,
0.16686423122882843,
-0.2088235318660736,
-0.3059068024158478,
0.24508263170719147,
-0.21788237988948822,
0.07306036353111267,
0.28381192684173584,
-0.2241443693637848,
0.06247907876968384,
-0.21292656660079956,
0.016899220645427704,
0.15207529067993164,
0.06433793157339096,
0.40037980675697327,
0.05814411863684654,
0.379850834608078,
0.05604427680373192,
-0.06564917415380478,
-0.4201524555683136,
-0.02211303822696209,
-0.27254465222358704,
0.17469951510429382,
-0.009488395415246487,
-0.18936555087566376,
-0.615286648273468,
-0.18430887162685394,
-0.03982982784509659,
-0.4452589750289917,
-0.059503890573978424,
0.06663072109222412,
-0.2852562367916107,
-0.17061498761177063,
0.0751238614320755,
0.005399938672780991,
0.3785514831542969,
-0.3618396520614624,
-0.09957010298967361,
0.1389789581298828,
-0.260455459356308,
-0.15464717149734497,
0.08434523642063141,
0.45434606075286865,
0.061096709221601486,
0.24025364220142365,
0.24544422328472137,
-0.047696102410554886,
-0.133087620139122,
-0.4327586591243744,
0.2702724039554596,
0.05787668004631996,
0.18861310184001923,
-0.0020112842321395874,
-0.5663675665855408,
0.09092460572719574,
-0.06574860960245132,
0.20208673179149628,
0.08892763406038284,
-0.00424576923251152,
-0.06646241992712021,
-0.041693877428770065,
0.12432927638292313,
-0.2534281611442566,
0.09377006441354752,
-0.4923431873321533,
-0.5119807720184326,
0.3841018080711365,
-0.14364102482795715,
0.16565966606140137,
0.5681461691856384,
0.09953831136226654,
-0.09538733214139938,
-0.017269739881157875,
0.2712107300758362,
0.030044592916965485,
0.3557387590408325,
-0.05964643880724907,
-0.00017091142944991589,
-0.18747901916503906,
-0.28811365365982056,
-0.2174287885427475,
0.1192450225353241,
0.3493943214416504,
-0.34743982553482056,
-0.32426056265830994,
0.09537958353757858,
0.15616892278194427,
0.03912108391523361,
0.002788631245493889,
0.09059710800647736,
0.001648481236770749,
-0.005602365359663963,
-0.038849446922540665,
0.001058816909790039,
-0.06858599931001663,
0.3693792521953583,
0.16960600018501282,
0.3322426378726959,
0.010456768795847893,
0.4449984133243561,
0.39844298362731934,
-0.07358233630657196,
-0.11300905048847198,
0.41049325466156006,
0.34180179238319397,
0.20316514372825623,
-0.1458227038383484,
-0.2318655401468277,
0.46181410551071167,
-0.09981003403663635,
-0.03040766343474388,
0.2845414876937866,
-0.022318512201309204,
-0.5936279296875,
-0.23098327219486237,
-0.08084816485643387,
-0.44454652070999146,
-0.19343002140522003,
0.3490702509880066,
-0.13693144917488098,
0.4724569618701935,
0.1747797429561615,
-0.514297604560852,
-0.2779097259044647,
-0.08629489690065384,
0.06226615235209465,
0.04676520824432373,
0.23081067204475403,
0.07125146687030792,
-0.38006091117858887,
-0.08878621459007263,
0.09412887692451477,
0.08369331806898117,
0.22389353811740875,
0.2547120451927185,
-0.17679078876972198,
-0.12743794918060303,
0.03431851416826248,
0.1126120314002037,
0.10101442039012909,
-0.30758076906204224,
-0.4294195771217346,
0.13116705417633057,
0.06978897005319595,
-0.23177121579647064,
-0.04986439272761345,
-0.14885176718235016,
-0.005981490947306156,
0.18503321707248688,
0.2465437352657318,
-0.0023719966411590576,
-0.14173413813114166,
-0.006456796079874039,
0.31722795963287354,
0.04069079831242561,
-0.2438867688179016,
0.12231460213661194,
0.16552838683128357,
-0.23723112046718597,
-0.22889375686645508,
-0.13118253648281097,
0.026688138023018837,
0.24318501353263855,
0.11057107150554657,
0.04402150213718414,
-0.007771626114845276,
0.1166660487651825,
0.1760060042142868,
-0.18601453304290771,
0.01628190465271473,
-0.1535494476556778,
-0.009497631341218948,
0.20169825851917267,
-0.12320512533187866,
0.28990328311920166,
0.1724206507205963,
-0.24645745754241943,
-0.03424163907766342,
-0.20413683354854584,
0.5062910318374634,
0.39877450466156006,
0.5554391741752625,
0.13408732414245605,
-0.2353617250919342,
-0.10005258023738861,
-0.40590015053749084,
0.07845421135425568,
0.17039217054843903,
-0.08798202872276306,
0.09282500296831131,
-0.2557074725627899,
0.17793002724647522,
-0.1484363079071045,
-0.24349527060985565,
-0.0016539692878723145,
0.11467021703720093,
-0.3192111849784851,
0.4626780152320862,
0.26785650849342346,
0.9083015322685242,
0.17393726110458374,
0.3773844838142395,
0.06320266425609589,
-0.13929951190948486,
0.401154100894928,
-0.5117284059524536,
0.1901799887418747,
-0.24072478711605072,
0.03618023172020912,
0.023782311007380486,
0.05003290995955467,
0.0928928330540657,
0.142045259475708,
-0.09947948902845383,
-0.08329859375953674,
0.6208555698394775,
0.11335828900337219,
0.14243429899215698,
0.23518699407577515,
-0.040204159915447235,
-0.5092384815216064,
-0.059282831847667694,
0.1355789452791214,
-0.17568276822566986,
-0.2223028540611267,
-0.14404428005218506,
-0.342035174369812,
0.08194185793399811,
0.2642245292663574,
-0.2147078663110733,
-0.0011322088539600372,
-0.31605419516563416,
0.17083962261676788,
0.09727124869823456,
0.02745005488395691,
0.47828876972198486,
0.06529562175273895,
0.10304823517799377,
-0.16767647862434387,
0.021500254049897194,
-0.11214615404605865,
0.10283714532852173,
0.12899993360042572,
-0.06453002989292145,
-0.29938381910324097,
0.5649159550666809,
-0.08502055704593658,
-0.23677419126033783,
0.08304743468761444,
0.02657928690314293,
-0.0678921639919281,
-0.32878875732421875,
-0.1408790498971939,
0.3525547981262207,
0.06926999986171722,
-0.20426203310489655,
0.338369220495224,
0.033639680594205856,
0.005678396672010422,
0.15857593715190887,
0.14956673979759216,
-0.007270997390151024,
0.25499245524406433,
0.09071074426174164,
0.0957421362400055,
-0.041147101670503616,
-0.16024446487426758,
-0.17215433716773987,
-0.06823451817035675,
0.002059236168861389,
-0.03950372338294983,
0.026654481887817383,
-0.2097664773464203,
0.4513893127441406,
-0.16559405624866486,
-0.06786022335290909,
-0.2193894386291504,
0.164777010679245,
-0.1918233335018158,
-0.19113750755786896,
0.041648611426353455,
0.1102280467748642,
0.012857627123594284,
-0.05677615478634834,
-0.3587936460971832,
-0.022773955017328262,
0.40081268548965454,
-0.42941606044769287,
-0.05830203369259834,
-0.05659833550453186,
0.15040019154548645,
-0.013582884334027767,
0.45691680908203125,
-0.3693554401397705,
-0.062100596725940704,
0.22851279377937317,
0.2409583032131195,
-0.07236386835575104,
-0.33102571964263916,
-0.14566758275032043,
0.0843314677476883,
0.14106398820877075,
0.16944041848182678,
-0.27513086795806885,
-0.1677793264389038,
-0.075637586414814,
0.1569444090127945,
0.27805835008621216,
0.09474209696054459,
-0.0844772607088089,
-0.3365347385406494,
-0.14364135265350342,
-0.14293836057186127,
-0.3242320418357849,
-0.14539504051208496,
-0.2079687863588333,
0.42228537797927856,
-0.6543208956718445,
0.26951903104782104,
0.2933259606361389,
0.09659774601459503,
-0.12450684607028961,
0.3523564338684082,
0.2550241947174072,
0.09503073990345001,
0.08719707280397415,
0.10928238928318024,
-0.2875732183456421,
0.2659042775630951,
-0.15450091660022736,
0.001340758055448532,
0.31092172861099243,
0.4030640721321106,
0.15975454449653625,
-0.06661172211170197,
0.14760030806064606,
-0.17238283157348633,
-0.2406175583600998,
0.01507805846631527,
0.3615276515483856,
0.26200923323631287,
-0.20344078540802002,
0.0838933140039444,
0.5660725831985474,
-0.16361349821090698,
0.188248410820961,
0.14680001139640808,
0.829046905040741,
0.21138882637023926,
0.1585371047258377,
-0.3222102224826813,
0.03156517446041107,
-0.1468391865491867,
-0.0865761935710907,
-0.045918699353933334,
0.18194524943828583,
0.07934385538101196,
0.06892110407352448,
0.2830912172794342,
0.4801355004310608,
0.38314300775527954,
-0.3467302620410919,
0.14105626940727234,
-0.07985381782054901,
0.1351422518491745,
0.5679850578308105,
-0.09497209638357162,
0.2906672954559326,
0.12865474820137024,
0.13389559090137482,
0.19713100790977478,
-0.3649287819862366,
0.15649068355560303,
-0.09543558210134506,
-0.0901188850402832,
-0.02475758083164692,
0.29119250178337097,
0.15422797203063965,
-0.0017624329775571823,
-0.37245064973831177,
-0.039303798228502274,
-0.4641980230808258,
0.0071823373436927795,
-0.06937693059444427,
0.0064610205590724945,
0.03739533945918083,
0.2287447601556778,
0.1294105052947998,
-0.1567292958498001,
0.19978737831115723,
0.25051993131637573,
0.42165517807006836,
-0.23811914026737213,
0.04690475016832352,
0.03421897441148758,
0.08216273784637451,
0.11365389823913574,
0.13887593150138855,
-0.025581631809473038,
0.038030922412872314,
-0.38683760166168213,
-0.060293640941381454,
-0.37899523973464966,
-0.02234441414475441,
-0.14588575065135956,
0.04316891357302666,
0.14389768242835999,
0.3281208872795105,
0.35922005772590637,
0.0785147175192833,
-0.1413397192955017,
0.04558723792433739,
0.05479874834418297,
-0.24892640113830566,
-0.31266599893569946,
-0.09545304626226425,
0.1773022711277008,
0.030504032969474792,
-0.023133866488933563,
0.0370858758687973,
-0.25344812870025635,
-0.4080212116241455,
0.4324475824832916,
-0.10378633439540863,
-0.0051230620592832565,
-0.0782962515950203,
0.07439959794282913,
-0.17611777782440186,
-0.036730896681547165,
0.4093005955219269,
0.10284994542598724,
0.1296522468328476,
-0.19556039571762085,
-0.2923833131790161,
-0.024753384292125702,
0.10403236746788025,
-0.4462161958217621,
-0.06454342603683472,
0.28293225169181824,
0.35475635528564453,
0.34759199619293213,
-0.2640644907951355,
0.14053423702716827,
0.2678467631340027,
-0.22275227308273315,
-0.13042807579040527,
0.17787544429302216,
-0.10760609805583954,
0.21739046275615692,
-0.12893331050872803,
0.04391808807849884,
-0.08149641752243042,
-0.13112716376781464,
0.08348474651575089,
-0.4303361177444458,
-0.13384199142456055,
-0.05983736738562584,
0.28615593910217285,
0.3971822261810303,
0.1749393343925476,
0.004467472434043884,
0.03697852045297623,
-0.3076259195804596,
-0.11685074865818024,
-0.07472456991672516,
-0.07885728776454926,
-0.05538686364889145,
-0.09850029647350311,
0.7773547172546387,
-0.28626105189323425,
0.16906912624835968,
-0.02445564791560173,
0.23678961396217346,
-0.045064777135849,
-0.24279171228408813,
-0.0508059486746788,
0.0319434329867363,
-0.13855057954788208,
-0.06908578425645828,
0.10783423483371735,
0.417498916387558,
0.0375690832734108,
-0.1575310379266739,
-0.05314410850405693,
-0.14852388203144073,
-0.04622747004032135,
-0.2435234636068344,
-0.20733404159545898,
0.28688183426856995,
0.051574304699897766,
-0.1594630479812622,
0.31076502799987793,
-0.4379977285861969,
-0.23906877636909485,
0.33726954460144043,
0.06926386803388596,
0.09162469208240509,
0.30002251267433167,
0.26531460881233215,
-0.3702751696109772,
-0.17167972028255463,
-0.24945783615112305,
-0.24908143281936646,
-0.11871702969074249,
-0.12531226873397827,
-0.1293734461069107
] |
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.000057388097047805786,
-0.14250023663043976,
-0.10484316945075989,
-0.11375904083251953,
-0.020864441990852356,
-0.27573007345199585,
0.3570462465286255,
0.16198910772800446,
-0.17019501328468323,
-0.11541064083576202,
-0.10624045878648758,
0.374196857213974,
-0.23276928067207336,
0.024785926565527916,
0.22765789926052094,
-0.1631379872560501,
0.11561078578233719,
0.020650990307331085,
0.17515629529953003,
0.037742145359516144,
-0.08029603958129883,
-0.18629907071590424,
-0.09968918561935425,
0.01580902189016342,
-0.15434454381465912,
-0.006552642211318016,
-0.23252810537815094,
-0.06639573723077774,
0.017445826902985573,
-0.1567317545413971,
-0.4168612062931061,
0.1775115579366684,
-0.006495857611298561,
-0.05871262401342392,
-0.000105389000964351,
0.041064925491809845,
0.05086590722203255,
-0.1544799506664276,
-0.06360596418380737,
-0.2922307252883911,
-0.17180559039115906,
-0.5856847167015076,
-0.00518417451530695,
-0.21386726200580597,
0.16897663474082947,
-0.2611021101474762,
0.30336612462997437,
-0.015454791486263275,
0.2199573516845703,
0.04244820773601532,
0.23387330770492554,
0.16196538507938385,
0.05709826573729515,
0.31448403000831604,
0.17907890677452087,
0.7218416929244995,
-0.17565026879310608,
-0.026227854192256927,
0.37595587968826294,
-0.19800624251365662,
-0.17143097519874573,
0.5319555997848511,
0.07072717696428299,
-0.17268803715705872,
0.10479660332202911,
-0.15542207658290863,
-0.074254609644413,
-0.18622654676437378,
-0.18268197774887085,
0.2696187496185303,
0.5540598630905151,
-0.09467921406030655,
-0.39567363262176514,
-0.2771696448326111,
0.10153623670339584,
0.21204407513141632,
-0.14912277460098267,
0.46957656741142273,
-0.08470460772514343,
0.2618878483772278,
-0.14117366075515747,
-0.41724756360054016,
-0.22692744433879852,
0.40050208568573,
-0.010741002857685089,
-0.11447329819202423,
0.11392755061388016,
0.10642632097005844,
0.1271231323480606,
-0.1394752711057663,
0.24053426086902618,
-0.0852414071559906,
0.1974170058965683,
0.1384703665971756,
0.11991788446903229,
-0.14774392545223236,
0.09294046461582184,
-0.07566320151090622,
0.1010374203324318,
-0.13798776268959045,
0.014192367903888226,
0.1652178168296814,
-0.6861978769302368,
0.37200021743774414,
0.13847538828849792,
-0.3171005845069885,
-0.34663692116737366,
0.15517231822013855,
0.2985227704048157,
-0.057959578931331635,
-0.026865802705287933,
-0.037867411971092224,
0.016913164407014847,
0.044088225811719894,
-0.32684484124183655,
0.0000944230705499649,
0.10693493485450745,
-0.015392318367958069,
-0.09738066047430038,
-0.2925388813018799,
-0.24316498637199402,
0.058112308382987976,
-0.02610054239630699,
-0.07544048875570297,
0.2316325157880783,
0.2951602041721344,
-0.01032618060708046,
0.2380756437778473,
0.005102414637804031,
-0.6885836124420166,
0.06887868046760559,
0.08224189281463623,
-0.4507431387901306,
0.11295700818300247,
0.019686192274093628,
0.576987624168396,
0.10568473488092422,
0.022471196949481964,
0.07950747758150101,
-0.058927375823259354,
0.11541968584060669,
-0.3274693787097931,
0.09448648989200592,
0.014610260725021362,
-0.3158085346221924,
-0.28220757842063904,
-0.001003161072731018,
0.22869302332401276,
-0.19302892684936523,
-0.09520155936479568,
0.013752192258834839,
-0.20002111792564392,
-0.1908561885356903,
0.12177523225545883,
-0.07179056107997894,
0.039787329733371735,
0.3123767673969269,
0.9068836569786072,
-0.3320867121219635,
-0.4840669333934784,
-0.037231408059597015,
-0.036526091396808624,
-0.3246375322341919,
-0.15300938487052917,
-0.10833133012056351,
0.2535994052886963,
-0.42064613103866577,
-0.14578938484191895,
0.02145656943321228,
-0.07829169929027557,
-0.0730271264910698,
0.2533954381942749,
-0.30217689275741577,
-0.06193652004003525,
0.07331465929746628,
-0.14392951130867004,
0.4224868416786194,
-0.29670795798301697,
-0.21420544385910034,
0.1942332237958908,
0.04232415556907654,
0.25263115763664246,
-0.043890051543712616,
0.3999972343444824,
-0.01888715662062168,
-0.1381502002477646,
0.12124072015285492,
0.711315393447876,
-0.15096792578697205,
0.05194582790136337,
-0.1938299983739853,
-0.36008623242378235,
0.26589295268058777,
0.4229554533958435,
0.013050153851509094,
-0.32058045268058777,
0.6397948265075684,
-0.000615815632045269,
0.10155642032623291,
-0.27745258808135986,
0.1214609369635582,
-0.19341138005256653,
0.2937176525592804,
-0.05628745257854462,
-0.142730250954628,
-0.27560004591941833,
-0.2272174060344696,
0.0019214823842048645,
-0.2704662084579468,
0.2816793620586395,
-0.1663465052843094,
-0.0009557493031024933,
0.20897862315177917,
-0.13932353258132935,
0.09564188122749329,
0.0041687507182359695,
0.20372046530246735,
0.101141057908535,
-0.41691771149635315,
0.25004842877388,
-0.09020806849002838,
0.02519216760993004,
-0.09754292666912079,
0.038837727159261703,
0.18151532113552094,
0.2594427168369293,
0.01380189135670662,
0.11615652590990067,
0.09846028685569763,
0.5246052742004395,
-0.22382545471191406,
0.0367363877594471,
0.03219549357891083,
-0.0006300881505012512,
0.19920103251934052,
0.4802197217941284,
-0.013226784765720367,
0.3972020149230957,
0.4809136390686035,
-0.6762462854385376,
0.3488887548446655,
-0.16103708744049072,
0.2448393702507019,
-0.1503300815820694,
-0.0425940677523613,
0.20941683650016785,
0.24884064495563507,
0.08534586429595947,
-0.07931318134069443,
0.06880920380353928,
0.08538883924484253,
0.04717608913779259,
-0.3372049927711487,
-0.16118624806404114,
-0.055051494389772415,
0.19434937834739685,
0.004932381212711334,
0.03765694797039032,
-0.3816789984703064,
0.1459183394908905,
0.5345169901847839,
0.23161807656288147,
0.17994529008865356,
0.16686423122882843,
-0.2088235318660736,
-0.3059068024158478,
0.24508263170719147,
-0.21788237988948822,
0.07306036353111267,
0.28381192684173584,
-0.2241443693637848,
0.06247907876968384,
-0.21292656660079956,
0.016899220645427704,
0.15207529067993164,
0.06433793157339096,
0.40037980675697327,
0.05814411863684654,
0.379850834608078,
0.05604427680373192,
-0.06564917415380478,
-0.4201524555683136,
-0.02211303822696209,
-0.27254465222358704,
0.17469951510429382,
-0.009488395415246487,
-0.18936555087566376,
-0.615286648273468,
-0.18430887162685394,
-0.03982982784509659,
-0.4452589750289917,
-0.059503890573978424,
0.06663072109222412,
-0.2852562367916107,
-0.17061498761177063,
0.0751238614320755,
0.005399938672780991,
0.3785514831542969,
-0.3618396520614624,
-0.09957010298967361,
0.1389789581298828,
-0.260455459356308,
-0.15464717149734497,
0.08434523642063141,
0.45434606075286865,
0.061096709221601486,
0.24025364220142365,
0.24544422328472137,
-0.047696102410554886,
-0.133087620139122,
-0.4327586591243744,
0.2702724039554596,
0.05787668004631996,
0.18861310184001923,
-0.0020112842321395874,
-0.5663675665855408,
0.09092460572719574,
-0.06574860960245132,
0.20208673179149628,
0.08892763406038284,
-0.00424576923251152,
-0.06646241992712021,
-0.041693877428770065,
0.12432927638292313,
-0.2534281611442566,
0.09377006441354752,
-0.4923431873321533,
-0.5119807720184326,
0.3841018080711365,
-0.14364102482795715,
0.16565966606140137,
0.5681461691856384,
0.09953831136226654,
-0.09538733214139938,
-0.017269739881157875,
0.2712107300758362,
0.030044592916965485,
0.3557387590408325,
-0.05964643880724907,
-0.00017091142944991589,
-0.18747901916503906,
-0.28811365365982056,
-0.2174287885427475,
0.1192450225353241,
0.3493943214416504,
-0.34743982553482056,
-0.32426056265830994,
0.09537958353757858,
0.15616892278194427,
0.03912108391523361,
0.002788631245493889,
0.09059710800647736,
0.001648481236770749,
-0.005602365359663963,
-0.038849446922540665,
0.001058816909790039,
-0.06858599931001663,
0.3693792521953583,
0.16960600018501282,
0.3322426378726959,
0.010456768795847893,
0.4449984133243561,
0.39844298362731934,
-0.07358233630657196,
-0.11300905048847198,
0.41049325466156006,
0.34180179238319397,
0.20316514372825623,
-0.1458227038383484,
-0.2318655401468277,
0.46181410551071167,
-0.09981003403663635,
-0.03040766343474388,
0.2845414876937866,
-0.022318512201309204,
-0.5936279296875,
-0.23098327219486237,
-0.08084816485643387,
-0.44454652070999146,
-0.19343002140522003,
0.3490702509880066,
-0.13693144917488098,
0.4724569618701935,
0.1747797429561615,
-0.514297604560852,
-0.2779097259044647,
-0.08629489690065384,
0.06226615235209465,
0.04676520824432373,
0.23081067204475403,
0.07125146687030792,
-0.38006091117858887,
-0.08878621459007263,
0.09412887692451477,
0.08369331806898117,
0.22389353811740875,
0.2547120451927185,
-0.17679078876972198,
-0.12743794918060303,
0.03431851416826248,
0.1126120314002037,
0.10101442039012909,
-0.30758076906204224,
-0.4294195771217346,
0.13116705417633057,
0.06978897005319595,
-0.23177121579647064,
-0.04986439272761345,
-0.14885176718235016,
-0.005981490947306156,
0.18503321707248688,
0.2465437352657318,
-0.0023719966411590576,
-0.14173413813114166,
-0.006456796079874039,
0.31722795963287354,
0.04069079831242561,
-0.2438867688179016,
0.12231460213661194,
0.16552838683128357,
-0.23723112046718597,
-0.22889375686645508,
-0.13118253648281097,
0.026688138023018837,
0.24318501353263855,
0.11057107150554657,
0.04402150213718414,
-0.007771626114845276,
0.1166660487651825,
0.1760060042142868,
-0.18601453304290771,
0.01628190465271473,
-0.1535494476556778,
-0.009497631341218948,
0.20169825851917267,
-0.12320512533187866,
0.28990328311920166,
0.1724206507205963,
-0.24645745754241943,
-0.03424163907766342,
-0.20413683354854584,
0.5062910318374634,
0.39877450466156006,
0.5554391741752625,
0.13408732414245605,
-0.2353617250919342,
-0.10005258023738861,
-0.40590015053749084,
0.07845421135425568,
0.17039217054843903,
-0.08798202872276306,
0.09282500296831131,
-0.2557074725627899,
0.17793002724647522,
-0.1484363079071045,
-0.24349527060985565,
-0.0016539692878723145,
0.11467021703720093,
-0.3192111849784851,
0.4626780152320862,
0.26785650849342346,
0.9083015322685242,
0.17393726110458374,
0.3773844838142395,
0.06320266425609589,
-0.13929951190948486,
0.401154100894928,
-0.5117284059524536,
0.1901799887418747,
-0.24072478711605072,
0.03618023172020912,
0.023782311007380486,
0.05003290995955467,
0.0928928330540657,
0.142045259475708,
-0.09947948902845383,
-0.08329859375953674,
0.6208555698394775,
0.11335828900337219,
0.14243429899215698,
0.23518699407577515,
-0.040204159915447235,
-0.5092384815216064,
-0.059282831847667694,
0.1355789452791214,
-0.17568276822566986,
-0.2223028540611267,
-0.14404428005218506,
-0.342035174369812,
0.08194185793399811,
0.2642245292663574,
-0.2147078663110733,
-0.0011322088539600372,
-0.31605419516563416,
0.17083962261676788,
0.09727124869823456,
0.02745005488395691,
0.47828876972198486,
0.06529562175273895,
0.10304823517799377,
-0.16767647862434387,
0.021500254049897194,
-0.11214615404605865,
0.10283714532852173,
0.12899993360042572,
-0.06453002989292145,
-0.29938381910324097,
0.5649159550666809,
-0.08502055704593658,
-0.23677419126033783,
0.08304743468761444,
0.02657928690314293,
-0.0678921639919281,
-0.32878875732421875,
-0.1408790498971939,
0.3525547981262207,
0.06926999986171722,
-0.20426203310489655,
0.338369220495224,
0.033639680594205856,
0.005678396672010422,
0.15857593715190887,
0.14956673979759216,
-0.007270997390151024,
0.25499245524406433,
0.09071074426174164,
0.0957421362400055,
-0.041147101670503616,
-0.16024446487426758,
-0.17215433716773987,
-0.06823451817035675,
0.002059236168861389,
-0.03950372338294983,
0.026654481887817383,
-0.2097664773464203,
0.4513893127441406,
-0.16559405624866486,
-0.06786022335290909,
-0.2193894386291504,
0.164777010679245,
-0.1918233335018158,
-0.19113750755786896,
0.041648611426353455,
0.1102280467748642,
0.012857627123594284,
-0.05677615478634834,
-0.3587936460971832,
-0.022773955017328262,
0.40081268548965454,
-0.42941606044769287,
-0.05830203369259834,
-0.05659833550453186,
0.15040019154548645,
-0.013582884334027767,
0.45691680908203125,
-0.3693554401397705,
-0.062100596725940704,
0.22851279377937317,
0.2409583032131195,
-0.07236386835575104,
-0.33102571964263916,
-0.14566758275032043,
0.0843314677476883,
0.14106398820877075,
0.16944041848182678,
-0.27513086795806885,
-0.1677793264389038,
-0.075637586414814,
0.1569444090127945,
0.27805835008621216,
0.09474209696054459,
-0.0844772607088089,
-0.3365347385406494,
-0.14364135265350342,
-0.14293836057186127,
-0.3242320418357849,
-0.14539504051208496,
-0.2079687863588333,
0.42228537797927856,
-0.6543208956718445,
0.26951903104782104,
0.2933259606361389,
0.09659774601459503,
-0.12450684607028961,
0.3523564338684082,
0.2550241947174072,
0.09503073990345001,
0.08719707280397415,
0.10928238928318024,
-0.2875732183456421,
0.2659042775630951,
-0.15450091660022736,
0.001340758055448532,
0.31092172861099243,
0.4030640721321106,
0.15975454449653625,
-0.06661172211170197,
0.14760030806064606,
-0.17238283157348633,
-0.2406175583600998,
0.01507805846631527,
0.3615276515483856,
0.26200923323631287,
-0.20344078540802002,
0.0838933140039444,
0.5660725831985474,
-0.16361349821090698,
0.188248410820961,
0.14680001139640808,
0.829046905040741,
0.21138882637023926,
0.1585371047258377,
-0.3222102224826813,
0.03156517446041107,
-0.1468391865491867,
-0.0865761935710907,
-0.045918699353933334,
0.18194524943828583,
0.07934385538101196,
0.06892110407352448,
0.2830912172794342,
0.4801355004310608,
0.38314300775527954,
-0.3467302620410919,
0.14105626940727234,
-0.07985381782054901,
0.1351422518491745,
0.5679850578308105,
-0.09497209638357162,
0.2906672954559326,
0.12865474820137024,
0.13389559090137482,
0.19713100790977478,
-0.3649287819862366,
0.15649068355560303,
-0.09543558210134506,
-0.0901188850402832,
-0.02475758083164692,
0.29119250178337097,
0.15422797203063965,
-0.0017624329775571823,
-0.37245064973831177,
-0.039303798228502274,
-0.4641980230808258,
0.0071823373436927795,
-0.06937693059444427,
0.0064610205590724945,
0.03739533945918083,
0.2287447601556778,
0.1294105052947998,
-0.1567292958498001,
0.19978737831115723,
0.25051993131637573,
0.42165517807006836,
-0.23811914026737213,
0.04690475016832352,
0.03421897441148758,
0.08216273784637451,
0.11365389823913574,
0.13887593150138855,
-0.025581631809473038,
0.038030922412872314,
-0.38683760166168213,
-0.060293640941381454,
-0.37899523973464966,
-0.02234441414475441,
-0.14588575065135956,
0.04316891357302666,
0.14389768242835999,
0.3281208872795105,
0.35922005772590637,
0.0785147175192833,
-0.1413397192955017,
0.04558723792433739,
0.05479874834418297,
-0.24892640113830566,
-0.31266599893569946,
-0.09545304626226425,
0.1773022711277008,
0.030504032969474792,
-0.023133866488933563,
0.0370858758687973,
-0.25344812870025635,
-0.4080212116241455,
0.4324475824832916,
-0.10378633439540863,
-0.0051230620592832565,
-0.0782962515950203,
0.07439959794282913,
-0.17611777782440186,
-0.036730896681547165,
0.4093005955219269,
0.10284994542598724,
0.1296522468328476,
-0.19556039571762085,
-0.2923833131790161,
-0.024753384292125702,
0.10403236746788025,
-0.4462161958217621,
-0.06454342603683472,
0.28293225169181824,
0.35475635528564453,
0.34759199619293213,
-0.2640644907951355,
0.14053423702716827,
0.2678467631340027,
-0.22275227308273315,
-0.13042807579040527,
0.17787544429302216,
-0.10760609805583954,
0.21739046275615692,
-0.12893331050872803,
0.04391808807849884,
-0.08149641752243042,
-0.13112716376781464,
0.08348474651575089,
-0.4303361177444458,
-0.13384199142456055,
-0.05983736738562584,
0.28615593910217285,
0.3971822261810303,
0.1749393343925476,
0.004467472434043884,
0.03697852045297623,
-0.3076259195804596,
-0.11685074865818024,
-0.07472456991672516,
-0.07885728776454926,
-0.05538686364889145,
-0.09850029647350311,
0.7773547172546387,
-0.28626105189323425,
0.16906912624835968,
-0.02445564791560173,
0.23678961396217346,
-0.045064777135849,
-0.24279171228408813,
-0.0508059486746788,
0.0319434329867363,
-0.13855057954788208,
-0.06908578425645828,
0.10783423483371735,
0.417498916387558,
0.0375690832734108,
-0.1575310379266739,
-0.05314410850405693,
-0.14852388203144073,
-0.04622747004032135,
-0.2435234636068344,
-0.20733404159545898,
0.28688183426856995,
0.051574304699897766,
-0.1594630479812622,
0.31076502799987793,
-0.4379977285861969,
-0.23906877636909485,
0.33726954460144043,
0.06926386803388596,
0.09162469208240509,
0.30002251267433167,
0.26531460881233215,
-0.3702751696109772,
-0.17167972028255463,
-0.24945783615112305,
-0.24908143281936646,
-0.11871702969074249,
-0.12531226873397827,
-0.1293734461069107
] |
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.000057388097047805786,
-0.14250023663043976,
-0.10484316945075989,
-0.11375904083251953,
-0.020864441990852356,
-0.27573007345199585,
0.3570462465286255,
0.16198910772800446,
-0.17019501328468323,
-0.11541064083576202,
-0.10624045878648758,
0.374196857213974,
-0.23276928067207336,
0.024785926565527916,
0.22765789926052094,
-0.1631379872560501,
0.11561078578233719,
0.020650990307331085,
0.17515629529953003,
0.037742145359516144,
-0.08029603958129883,
-0.18629907071590424,
-0.09968918561935425,
0.01580902189016342,
-0.15434454381465912,
-0.006552642211318016,
-0.23252810537815094,
-0.06639573723077774,
0.017445826902985573,
-0.1567317545413971,
-0.4168612062931061,
0.1775115579366684,
-0.006495857611298561,
-0.05871262401342392,
-0.000105389000964351,
0.041064925491809845,
0.05086590722203255,
-0.1544799506664276,
-0.06360596418380737,
-0.2922307252883911,
-0.17180559039115906,
-0.5856847167015076,
-0.00518417451530695,
-0.21386726200580597,
0.16897663474082947,
-0.2611021101474762,
0.30336612462997437,
-0.015454791486263275,
0.2199573516845703,
0.04244820773601532,
0.23387330770492554,
0.16196538507938385,
0.05709826573729515,
0.31448403000831604,
0.17907890677452087,
0.7218416929244995,
-0.17565026879310608,
-0.026227854192256927,
0.37595587968826294,
-0.19800624251365662,
-0.17143097519874573,
0.5319555997848511,
0.07072717696428299,
-0.17268803715705872,
0.10479660332202911,
-0.15542207658290863,
-0.074254609644413,
-0.18622654676437378,
-0.18268197774887085,
0.2696187496185303,
0.5540598630905151,
-0.09467921406030655,
-0.39567363262176514,
-0.2771696448326111,
0.10153623670339584,
0.21204407513141632,
-0.14912277460098267,
0.46957656741142273,
-0.08470460772514343,
0.2618878483772278,
-0.14117366075515747,
-0.41724756360054016,
-0.22692744433879852,
0.40050208568573,
-0.010741002857685089,
-0.11447329819202423,
0.11392755061388016,
0.10642632097005844,
0.1271231323480606,
-0.1394752711057663,
0.24053426086902618,
-0.0852414071559906,
0.1974170058965683,
0.1384703665971756,
0.11991788446903229,
-0.14774392545223236,
0.09294046461582184,
-0.07566320151090622,
0.1010374203324318,
-0.13798776268959045,
0.014192367903888226,
0.1652178168296814,
-0.6861978769302368,
0.37200021743774414,
0.13847538828849792,
-0.3171005845069885,
-0.34663692116737366,
0.15517231822013855,
0.2985227704048157,
-0.057959578931331635,
-0.026865802705287933,
-0.037867411971092224,
0.016913164407014847,
0.044088225811719894,
-0.32684484124183655,
0.0000944230705499649,
0.10693493485450745,
-0.015392318367958069,
-0.09738066047430038,
-0.2925388813018799,
-0.24316498637199402,
0.058112308382987976,
-0.02610054239630699,
-0.07544048875570297,
0.2316325157880783,
0.2951602041721344,
-0.01032618060708046,
0.2380756437778473,
0.005102414637804031,
-0.6885836124420166,
0.06887868046760559,
0.08224189281463623,
-0.4507431387901306,
0.11295700818300247,
0.019686192274093628,
0.576987624168396,
0.10568473488092422,
0.022471196949481964,
0.07950747758150101,
-0.058927375823259354,
0.11541968584060669,
-0.3274693787097931,
0.09448648989200592,
0.014610260725021362,
-0.3158085346221924,
-0.28220757842063904,
-0.001003161072731018,
0.22869302332401276,
-0.19302892684936523,
-0.09520155936479568,
0.013752192258834839,
-0.20002111792564392,
-0.1908561885356903,
0.12177523225545883,
-0.07179056107997894,
0.039787329733371735,
0.3123767673969269,
0.9068836569786072,
-0.3320867121219635,
-0.4840669333934784,
-0.037231408059597015,
-0.036526091396808624,
-0.3246375322341919,
-0.15300938487052917,
-0.10833133012056351,
0.2535994052886963,
-0.42064613103866577,
-0.14578938484191895,
0.02145656943321228,
-0.07829169929027557,
-0.0730271264910698,
0.2533954381942749,
-0.30217689275741577,
-0.06193652004003525,
0.07331465929746628,
-0.14392951130867004,
0.4224868416786194,
-0.29670795798301697,
-0.21420544385910034,
0.1942332237958908,
0.04232415556907654,
0.25263115763664246,
-0.043890051543712616,
0.3999972343444824,
-0.01888715662062168,
-0.1381502002477646,
0.12124072015285492,
0.711315393447876,
-0.15096792578697205,
0.05194582790136337,
-0.1938299983739853,
-0.36008623242378235,
0.26589295268058777,
0.4229554533958435,
0.013050153851509094,
-0.32058045268058777,
0.6397948265075684,
-0.000615815632045269,
0.10155642032623291,
-0.27745258808135986,
0.1214609369635582,
-0.19341138005256653,
0.2937176525592804,
-0.05628745257854462,
-0.142730250954628,
-0.27560004591941833,
-0.2272174060344696,
0.0019214823842048645,
-0.2704662084579468,
0.2816793620586395,
-0.1663465052843094,
-0.0009557493031024933,
0.20897862315177917,
-0.13932353258132935,
0.09564188122749329,
0.0041687507182359695,
0.20372046530246735,
0.101141057908535,
-0.41691771149635315,
0.25004842877388,
-0.09020806849002838,
0.02519216760993004,
-0.09754292666912079,
0.038837727159261703,
0.18151532113552094,
0.2594427168369293,
0.01380189135670662,
0.11615652590990067,
0.09846028685569763,
0.5246052742004395,
-0.22382545471191406,
0.0367363877594471,
0.03219549357891083,
-0.0006300881505012512,
0.19920103251934052,
0.4802197217941284,
-0.013226784765720367,
0.3972020149230957,
0.4809136390686035,
-0.6762462854385376,
0.3488887548446655,
-0.16103708744049072,
0.2448393702507019,
-0.1503300815820694,
-0.0425940677523613,
0.20941683650016785,
0.24884064495563507,
0.08534586429595947,
-0.07931318134069443,
0.06880920380353928,
0.08538883924484253,
0.04717608913779259,
-0.3372049927711487,
-0.16118624806404114,
-0.055051494389772415,
0.19434937834739685,
0.004932381212711334,
0.03765694797039032,
-0.3816789984703064,
0.1459183394908905,
0.5345169901847839,
0.23161807656288147,
0.17994529008865356,
0.16686423122882843,
-0.2088235318660736,
-0.3059068024158478,
0.24508263170719147,
-0.21788237988948822,
0.07306036353111267,
0.28381192684173584,
-0.2241443693637848,
0.06247907876968384,
-0.21292656660079956,
0.016899220645427704,
0.15207529067993164,
0.06433793157339096,
0.40037980675697327,
0.05814411863684654,
0.379850834608078,
0.05604427680373192,
-0.06564917415380478,
-0.4201524555683136,
-0.02211303822696209,
-0.27254465222358704,
0.17469951510429382,
-0.009488395415246487,
-0.18936555087566376,
-0.615286648273468,
-0.18430887162685394,
-0.03982982784509659,
-0.4452589750289917,
-0.059503890573978424,
0.06663072109222412,
-0.2852562367916107,
-0.17061498761177063,
0.0751238614320755,
0.005399938672780991,
0.3785514831542969,
-0.3618396520614624,
-0.09957010298967361,
0.1389789581298828,
-0.260455459356308,
-0.15464717149734497,
0.08434523642063141,
0.45434606075286865,
0.061096709221601486,
0.24025364220142365,
0.24544422328472137,
-0.047696102410554886,
-0.133087620139122,
-0.4327586591243744,
0.2702724039554596,
0.05787668004631996,
0.18861310184001923,
-0.0020112842321395874,
-0.5663675665855408,
0.09092460572719574,
-0.06574860960245132,
0.20208673179149628,
0.08892763406038284,
-0.00424576923251152,
-0.06646241992712021,
-0.041693877428770065,
0.12432927638292313,
-0.2534281611442566,
0.09377006441354752,
-0.4923431873321533,
-0.5119807720184326,
0.3841018080711365,
-0.14364102482795715,
0.16565966606140137,
0.5681461691856384,
0.09953831136226654,
-0.09538733214139938,
-0.017269739881157875,
0.2712107300758362,
0.030044592916965485,
0.3557387590408325,
-0.05964643880724907,
-0.00017091142944991589,
-0.18747901916503906,
-0.28811365365982056,
-0.2174287885427475,
0.1192450225353241,
0.3493943214416504,
-0.34743982553482056,
-0.32426056265830994,
0.09537958353757858,
0.15616892278194427,
0.03912108391523361,
0.002788631245493889,
0.09059710800647736,
0.001648481236770749,
-0.005602365359663963,
-0.038849446922540665,
0.001058816909790039,
-0.06858599931001663,
0.3693792521953583,
0.16960600018501282,
0.3322426378726959,
0.010456768795847893,
0.4449984133243561,
0.39844298362731934,
-0.07358233630657196,
-0.11300905048847198,
0.41049325466156006,
0.34180179238319397,
0.20316514372825623,
-0.1458227038383484,
-0.2318655401468277,
0.46181410551071167,
-0.09981003403663635,
-0.03040766343474388,
0.2845414876937866,
-0.022318512201309204,
-0.5936279296875,
-0.23098327219486237,
-0.08084816485643387,
-0.44454652070999146,
-0.19343002140522003,
0.3490702509880066,
-0.13693144917488098,
0.4724569618701935,
0.1747797429561615,
-0.514297604560852,
-0.2779097259044647,
-0.08629489690065384,
0.06226615235209465,
0.04676520824432373,
0.23081067204475403,
0.07125146687030792,
-0.38006091117858887,
-0.08878621459007263,
0.09412887692451477,
0.08369331806898117,
0.22389353811740875,
0.2547120451927185,
-0.17679078876972198,
-0.12743794918060303,
0.03431851416826248,
0.1126120314002037,
0.10101442039012909,
-0.30758076906204224,
-0.4294195771217346,
0.13116705417633057,
0.06978897005319595,
-0.23177121579647064,
-0.04986439272761345,
-0.14885176718235016,
-0.005981490947306156,
0.18503321707248688,
0.2465437352657318,
-0.0023719966411590576,
-0.14173413813114166,
-0.006456796079874039,
0.31722795963287354,
0.04069079831242561,
-0.2438867688179016,
0.12231460213661194,
0.16552838683128357,
-0.23723112046718597,
-0.22889375686645508,
-0.13118253648281097,
0.026688138023018837,
0.24318501353263855,
0.11057107150554657,
0.04402150213718414,
-0.007771626114845276,
0.1166660487651825,
0.1760060042142868,
-0.18601453304290771,
0.01628190465271473,
-0.1535494476556778,
-0.009497631341218948,
0.20169825851917267,
-0.12320512533187866,
0.28990328311920166,
0.1724206507205963,
-0.24645745754241943,
-0.03424163907766342,
-0.20413683354854584,
0.5062910318374634,
0.39877450466156006,
0.5554391741752625,
0.13408732414245605,
-0.2353617250919342,
-0.10005258023738861,
-0.40590015053749084,
0.07845421135425568,
0.17039217054843903,
-0.08798202872276306,
0.09282500296831131,
-0.2557074725627899,
0.17793002724647522,
-0.1484363079071045,
-0.24349527060985565,
-0.0016539692878723145,
0.11467021703720093,
-0.3192111849784851,
0.4626780152320862,
0.26785650849342346,
0.9083015322685242,
0.17393726110458374,
0.3773844838142395,
0.06320266425609589,
-0.13929951190948486,
0.401154100894928,
-0.5117284059524536,
0.1901799887418747,
-0.24072478711605072,
0.03618023172020912,
0.023782311007380486,
0.05003290995955467,
0.0928928330540657,
0.142045259475708,
-0.09947948902845383,
-0.08329859375953674,
0.6208555698394775,
0.11335828900337219,
0.14243429899215698,
0.23518699407577515,
-0.040204159915447235,
-0.5092384815216064,
-0.059282831847667694,
0.1355789452791214,
-0.17568276822566986,
-0.2223028540611267,
-0.14404428005218506,
-0.342035174369812,
0.08194185793399811,
0.2642245292663574,
-0.2147078663110733,
-0.0011322088539600372,
-0.31605419516563416,
0.17083962261676788,
0.09727124869823456,
0.02745005488395691,
0.47828876972198486,
0.06529562175273895,
0.10304823517799377,
-0.16767647862434387,
0.021500254049897194,
-0.11214615404605865,
0.10283714532852173,
0.12899993360042572,
-0.06453002989292145,
-0.29938381910324097,
0.5649159550666809,
-0.08502055704593658,
-0.23677419126033783,
0.08304743468761444,
0.02657928690314293,
-0.0678921639919281,
-0.32878875732421875,
-0.1408790498971939,
0.3525547981262207,
0.06926999986171722,
-0.20426203310489655,
0.338369220495224,
0.033639680594205856,
0.005678396672010422,
0.15857593715190887,
0.14956673979759216,
-0.007270997390151024,
0.25499245524406433,
0.09071074426174164,
0.0957421362400055,
-0.041147101670503616,
-0.16024446487426758,
-0.17215433716773987,
-0.06823451817035675,
0.002059236168861389,
-0.03950372338294983,
0.026654481887817383,
-0.2097664773464203,
0.4513893127441406,
-0.16559405624866486,
-0.06786022335290909,
-0.2193894386291504,
0.164777010679245,
-0.1918233335018158,
-0.19113750755786896,
0.041648611426353455,
0.1102280467748642,
0.012857627123594284,
-0.05677615478634834,
-0.3587936460971832,
-0.022773955017328262,
0.40081268548965454,
-0.42941606044769287,
-0.05830203369259834,
-0.05659833550453186,
0.15040019154548645,
-0.013582884334027767,
0.45691680908203125,
-0.3693554401397705,
-0.062100596725940704,
0.22851279377937317,
0.2409583032131195,
-0.07236386835575104,
-0.33102571964263916,
-0.14566758275032043,
0.0843314677476883,
0.14106398820877075,
0.16944041848182678,
-0.27513086795806885,
-0.1677793264389038,
-0.075637586414814,
0.1569444090127945,
0.27805835008621216,
0.09474209696054459,
-0.0844772607088089,
-0.3365347385406494,
-0.14364135265350342,
-0.14293836057186127,
-0.3242320418357849,
-0.14539504051208496,
-0.2079687863588333,
0.42228537797927856,
-0.6543208956718445,
0.26951903104782104,
0.2933259606361389,
0.09659774601459503,
-0.12450684607028961,
0.3523564338684082,
0.2550241947174072,
0.09503073990345001,
0.08719707280397415,
0.10928238928318024,
-0.2875732183456421,
0.2659042775630951,
-0.15450091660022736,
0.001340758055448532,
0.31092172861099243,
0.4030640721321106,
0.15975454449653625,
-0.06661172211170197,
0.14760030806064606,
-0.17238283157348633,
-0.2406175583600998,
0.01507805846631527,
0.3615276515483856,
0.26200923323631287,
-0.20344078540802002,
0.0838933140039444,
0.5660725831985474,
-0.16361349821090698,
0.188248410820961,
0.14680001139640808,
0.829046905040741,
0.21138882637023926,
0.1585371047258377,
-0.3222102224826813,
0.03156517446041107,
-0.1468391865491867,
-0.0865761935710907,
-0.045918699353933334,
0.18194524943828583,
0.07934385538101196,
0.06892110407352448,
0.2830912172794342,
0.4801355004310608,
0.38314300775527954,
-0.3467302620410919,
0.14105626940727234,
-0.07985381782054901,
0.1351422518491745,
0.5679850578308105,
-0.09497209638357162,
0.2906672954559326,
0.12865474820137024,
0.13389559090137482,
0.19713100790977478,
-0.3649287819862366,
0.15649068355560303,
-0.09543558210134506,
-0.0901188850402832,
-0.02475758083164692,
0.29119250178337097,
0.15422797203063965,
-0.0017624329775571823,
-0.37245064973831177,
-0.039303798228502274,
-0.4641980230808258,
0.0071823373436927795,
-0.06937693059444427,
0.0064610205590724945,
0.03739533945918083,
0.2287447601556778,
0.1294105052947998,
-0.1567292958498001,
0.19978737831115723,
0.25051993131637573,
0.42165517807006836,
-0.23811914026737213,
0.04690475016832352,
0.03421897441148758,
0.08216273784637451,
0.11365389823913574,
0.13887593150138855,
-0.025581631809473038,
0.038030922412872314,
-0.38683760166168213,
-0.060293640941381454,
-0.37899523973464966,
-0.02234441414475441,
-0.14588575065135956,
0.04316891357302666,
0.14389768242835999,
0.3281208872795105,
0.35922005772590637,
0.0785147175192833,
-0.1413397192955017,
0.04558723792433739,
0.05479874834418297,
-0.24892640113830566,
-0.31266599893569946,
-0.09545304626226425,
0.1773022711277008,
0.030504032969474792,
-0.023133866488933563,
0.0370858758687973,
-0.25344812870025635,
-0.4080212116241455,
0.4324475824832916,
-0.10378633439540863,
-0.0051230620592832565,
-0.0782962515950203,
0.07439959794282913,
-0.17611777782440186,
-0.036730896681547165,
0.4093005955219269,
0.10284994542598724,
0.1296522468328476,
-0.19556039571762085,
-0.2923833131790161,
-0.024753384292125702,
0.10403236746788025,
-0.4462161958217621,
-0.06454342603683472,
0.28293225169181824,
0.35475635528564453,
0.34759199619293213,
-0.2640644907951355,
0.14053423702716827,
0.2678467631340027,
-0.22275227308273315,
-0.13042807579040527,
0.17787544429302216,
-0.10760609805583954,
0.21739046275615692,
-0.12893331050872803,
0.04391808807849884,
-0.08149641752243042,
-0.13112716376781464,
0.08348474651575089,
-0.4303361177444458,
-0.13384199142456055,
-0.05983736738562584,
0.28615593910217285,
0.3971822261810303,
0.1749393343925476,
0.004467472434043884,
0.03697852045297623,
-0.3076259195804596,
-0.11685074865818024,
-0.07472456991672516,
-0.07885728776454926,
-0.05538686364889145,
-0.09850029647350311,
0.7773547172546387,
-0.28626105189323425,
0.16906912624835968,
-0.02445564791560173,
0.23678961396217346,
-0.045064777135849,
-0.24279171228408813,
-0.0508059486746788,
0.0319434329867363,
-0.13855057954788208,
-0.06908578425645828,
0.10783423483371735,
0.417498916387558,
0.0375690832734108,
-0.1575310379266739,
-0.05314410850405693,
-0.14852388203144073,
-0.04622747004032135,
-0.2435234636068344,
-0.20733404159545898,
0.28688183426856995,
0.051574304699897766,
-0.1594630479812622,
0.31076502799987793,
-0.4379977285861969,
-0.23906877636909485,
0.33726954460144043,
0.06926386803388596,
0.09162469208240509,
0.30002251267433167,
0.26531460881233215,
-0.3702751696109772,
-0.17167972028255463,
-0.24945783615112305,
-0.24908143281936646,
-0.11871702969074249,
-0.12531226873397827,
-0.1293734461069107
] |
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.4892081022262573,
0.3927333950996399,
-0.027126796543598175,
0.1367766410112381,
0.14856098592281342,
0.1173221543431282,
0.2704392969608307,
0.5356112122535706,
0.061165664345026016,
-0.19250954687595367,
-0.12850865721702576,
-0.07269570231437683,
-0.060459740459918976,
0.043556004762649536,
0.19969475269317627,
-0.39665573835372925,
-0.03506904095411301,
0.3276585340499878,
0.15104904770851135,
0.1637253314256668,
-0.1724829226732254,
0.14923688769340515,
-0.3593587279319763,
0.14447547495365143,
-0.31866970658302307,
-0.31283968687057495,
-0.11833219975233078,
0.10847323387861252,
-0.38392212986946106,
-0.4500907063484192,
0.33584216237068176,
0.057832442224025726,
0.3932606279850006,
0.26505938172340393,
-0.00011744797666324303,
0.11161701381206512,
0.1905764788389206,
-0.19770722091197968,
-0.43375882506370544,
-0.40069037675857544,
-0.04417199268937111,
-0.23025859892368317,
0.0015393630601465702,
-0.22278264164924622,
0.1908574104309082,
-0.4440505802631378,
0.10074089467525482,
0.20614171028137207,
0.2961955666542053,
0.3937443792819977,
0.18610645830631256,
0.36950838565826416,
0.32499071955680847,
-0.1696382462978363,
0.48553481698036194,
0.19414997100830078,
-0.09957689046859741,
0.48990124464035034,
0.08046258985996246,
-0.16946740448474884,
-0.05875920504331589,
0.1225322037935257,
-0.255566269159317,
0.3563007116317749,
-0.010296635329723358,
0.14731574058532715,
0.28812626004219055,
-0.12100255489349365,
0.1599361151456833,
0.19333621859550476,
0.6528943777084351,
-0.3635423183441162,
-0.3038647174835205,
0.005465343594551086,
0.2109958827495575,
-0.352116197347641,
0.037499234080314636,
0.443918913602829,
-0.5277147889137268,
0.10566683113574982,
-0.34871017932891846,
-0.09626264870166779,
-0.08070819079875946,
0.3184591233730316,
-0.02374795451760292,
-0.03409341722726822,
-0.005472130142152309,
0.1258227378129959,
0.07786652445793152,
0.07930527627468109,
0.43590259552001953,
0.02079947106540203,
-0.10233405232429504,
0.18005423247814178,
-0.28717541694641113,
0.1098177582025528,
-0.12219487875699997,
0.27008122205734253,
0.21933770179748535,
-0.05378220975399017,
0.13389864563941956,
-0.16523298621177673,
0.24588266015052795,
0.11962410807609558,
0.18689462542533875,
0.28880977630615234,
-0.14296990633010864,
-0.22606205940246582,
0.082918182015419,
0.09142927080392838,
0.1849021315574646,
-0.08143940567970276,
-0.08128385990858078,
-0.32622969150543213,
0.29959359765052795,
-0.010332688689231873,
0.26764780282974243,
-0.11574035882949829,
-0.47147172689437866,
-0.08964277058839798,
-0.29141005873680115,
-0.1754259169101715,
0.0908312052488327,
0.37340041995048523,
-0.15830287337303162,
-0.03751854598522186,
0.047947466373443604,
0.22709576785564423,
-0.1774008870124817,
-0.1854199320077896,
-0.15698157250881195,
0.056750476360321045,
-0.2840721011161804,
-0.10207728296518326,
0.35714611411094666,
0.19621728360652924,
0.4431750476360321,
0.0573265478014946,
-0.09201465547084808,
0.09069818258285522,
0.16813504695892334,
-0.20381945371627808,
0.009952358901500702,
0.4029397666454315,
0.16104203462600708,
-0.008135292679071426,
0.05793300271034241,
-0.002174545079469681,
-0.08430688828229904,
0.22674766182899475,
0.030599623918533325,
-0.32208865880966187,
-0.19976289570331573,
0.12545959651470184,
-0.25751441717147827,
-0.09709480404853821,
-0.2935260236263275,
-0.12291482090950012,
0.06953202933073044,
-0.22989137470722198,
-0.1656840443611145,
-0.25500810146331787,
-0.013439439237117767,
-0.3429095149040222,
0.28891533613204956,
0.19613468647003174,
-0.5239381194114685,
-0.06063041836023331,
-0.2506812810897827,
-0.18616892397403717,
0.3700197637081146,
0.12994639575481415,
-0.3432067930698395,
0.5634211301803589,
-0.234649658203125,
0.30711954832077026,
0.6222025156021118,
-0.28784820437431335,
-0.7235475778579712,
0.2745611071586609,
-0.18675681948661804,
-0.09054654836654663,
0.00176229327917099,
0.2890399694442749,
0.28612127900123596,
-0.04637594893574715,
0.007354959845542908,
0.24261637032032013,
-0.08954224735498428,
0.014512339606881142,
-0.2099619358778,
-0.13548725843429565,
0.2433943748474121,
0.23874728381633759,
-0.09775520861148834,
0.11145450919866562,
0.04551957547664642,
0.2303028702735901,
0.44037866592407227,
0.04535260051488876,
0.24133211374282837,
0.060336336493492126,
0.19274678826332092,
-0.056249067187309265,
-0.09807129949331284,
-0.09563685953617096,
-0.46474844217300415,
0.05758373439311981,
-0.4637884795665741,
-0.01989157497882843,
-0.5254123210906982,
-0.23770293593406677,
-0.5607113838195801,
0.07050070911645889,
-0.3272238075733185,
-0.033638257533311844,
0.09521141648292542,
0.06527148932218552,
0.19292181730270386,
-0.01092873327434063,
-0.04101044684648514,
0.28271937370300293,
0.1616540551185608,
0.14527885615825653,
0.1667369157075882,
0.33779218792915344,
-0.2518799602985382,
-0.4513128995895386,
0.22205623984336853,
0.22950169444084167,
0.2298683226108551,
0.011824525892734528,
-0.003103739582002163,
0.3668794631958008,
-0.19245117902755737,
-0.14022186398506165,
-0.055509865283966064,
-0.4057024121284485,
0.1735839694738388,
-0.2317458838224411,
0.149990051984787,
-0.05211223289370537,
0.14243419468402863,
0.05765493959188461,
0.19177329540252686,
0.050012409687042236,
-0.15578290820121765,
-0.04028739780187607,
0.016780465841293335,
0.25008660554885864,
0.2090710997581482,
-0.037902433425188065,
0.3518642485141754,
0.11673043668270111,
0.18620547652244568,
-0.03365907818078995,
0.38551104068756104,
-0.1243390440940857,
-0.06479601562023163,
-0.05991058796644211,
0.49248284101486206,
-0.1291567087173462,
0.26082929968833923,
0.02922963537275791,
-0.15641015768051147,
-0.1048167496919632,
0.06985772401094437,
-0.03983179107308388,
0.477727472782135,
0.21221911907196045,
0.04846591502428055,
0.01144974771887064,
-0.11630014330148697,
-0.10071487724781036,
0.10457147657871246,
0.12278289347887039,
0.14948220551013947,
0.12621651589870453,
0.12273816764354706,
-0.13580185174942017,
-0.2230205237865448,
-0.2798747718334198,
0.2818373441696167,
0.5004073977470398,
-0.23726853728294373,
-0.17150205373764038,
-0.2075825333595276,
-0.1684466302394867,
-0.21636030077934265,
-0.35632163286209106,
-0.0726940780878067,
-0.32097914814949036,
0.017965201288461685,
0.12790055572986603,
0.0845927745103836,
0.1943119466304779,
-0.01902116648852825,
-0.15910689532756805,
0.05223460495471954,
-0.20810741186141968,
-0.03985704854130745,
-0.2335076630115509,
-0.3417907953262329,
0.014731790870428085,
0.1301267296075821,
0.11674041301012039,
0.36353206634521484,
-0.3642131984233856,
0.008044525980949402,
-0.336652010679245,
-0.0863482877612114,
0.15994206070899963,
-0.10550318658351898,
0.17394521832466125,
0.34992286562919617,
0.563479483127594,
-0.32197344303131104,
-0.17883935570716858,
0.13709412515163422,
-0.013437568210065365,
-0.23222461342811584,
0.18214192986488342,
-0.08344170451164246,
0.08989949524402618,
-0.01916203275322914,
-0.4091544449329376,
-0.5689955353736877,
-0.3764415979385376,
0.19926373660564423,
-0.10538853704929352,
0.13561713695526123,
0.11782673001289368,
0.14524699747562408,
0.2287505716085434,
-0.06644169986248016,
0.19763778150081635,
-0.05141906067728996,
-0.242948979139328,
0.3138311505317688,
-0.1990077793598175,
-0.3422820270061493,
0.15892603993415833,
-0.08463900536298752,
0.15057897567749023,
0.303514301776886,
-0.5758481621742249,
-0.057427119463682175,
-0.032252319157123566,
0.5895153284072876,
0.11977291107177734,
0.038749128580093384,
0.3558402955532074,
0.022758159786462784,
-0.06570126116275787,
0.009442377835512161,
-0.05451599508523941,
0.03671868517994881,
-0.29665857553482056,
0.41220715641975403,
-0.08283982425928116,
-0.054418131709098816,
0.006092783063650131,
0.8633521795272827,
-0.00955178402364254,
-0.06443804502487183,
0.3446917235851288,
-0.14574985206127167,
0.08650186657905579,
0.020729877054691315,
-0.2893953025341034,
-0.01761840470135212,
-0.13517466187477112,
0.24538369476795197,
0.16691413521766663,
-0.1340159773826599,
-0.19064222276210785,
-0.25103482604026794,
-0.1637037694454193,
-0.3817253112792969,
-0.31900352239608765,
-0.16727188229560852,
0.3672528564929962,
0.4683559238910675,
0.13463765382766724,
0.11672805994749069,
0.0041075460612773895,
-0.24496260285377502,
0.11113694310188293,
0.13380461931228638,
-0.06933140009641647,
0.21520590782165527,
-0.008710779249668121,
-0.20162230730056763,
-0.32521140575408936,
0.3502573072910309,
0.15558046102523804,
0.31062376499176025,
-0.10719224810600281,
0.05702570080757141,
0.03288082405924797,
-0.028216782957315445,
0.7746016979217529,
0.10836797207593918,
0.13242554664611816,
-0.19347362220287323,
0.22642531991004944,
-0.22810916602611542,
-0.06884275376796722,
-0.1239713579416275,
0.5027520060539246,
0.15995186567306519,
0.060591042041778564,
-0.4501763880252838,
-0.006993536837399006,
0.5193060636520386,
0.34878209233283997,
-0.04907707870006561,
-0.354265421628952,
-0.2506870925426483,
-0.4769188463687897,
-0.20185084640979767,
0.010335125029087067,
-0.010658455081284046,
0.29067954421043396,
0.05579274147748947,
0.11901769042015076,
0.12480732798576355,
0.13257718086242676,
-0.008342765271663666,
-0.02558347024023533,
0.2934415638446808,
-0.05177094414830208,
0.10461266338825226,
0.14401517808437347,
0.22566793859004974,
0.2276584953069687,
0.3823159337043762,
0.029033709317445755,
-0.31414058804512024,
-0.008919399231672287,
-0.16111807525157928,
0.03949293494224548,
0.16358791291713715,
-0.11092203855514526,
-0.10152531415224075,
0.2779717743396759,
-0.05074991285800934,
0.03973524272441864,
0.1668098419904709,
0.41432127356529236,
-0.38675135374069214,
-0.22496260702610016,
-0.17813746631145477,
0.4710518717765808,
0.11227339506149292,
0.1021014153957367,
-0.20867347717285156,
0.026714619249105453,
0.0215776190161705,
0.17185990512371063,
-0.1007809266448021,
0.8868632316589355,
0.01075189933180809,
0.26028692722320557,
0.5808553695678711,
-0.3665030598640442,
0.2276778221130371,
-0.1868794709444046,
0.120486319065094,
-0.29282766580581665,
-0.006436477415263653,
-0.1172909066081047,
-0.11761206388473511,
-0.02634900063276291,
0.19642843306064606,
-0.2615433931350708,
0.22001135349273682,
-0.1568213552236557,
-0.046859171241521835,
0.16098952293395996,
0.05897706747055054,
-0.16023683547973633,
-0.15132616460323334,
-0.315947562456131,
0.04557596147060394,
-0.3485879898071289,
0.22276875376701355,
-0.18176758289337158,
-0.27238667011260986,
-0.0910797044634819,
-0.06869874894618988,
-0.26955118775367737,
0.02518424019217491,
-0.3381211757659912,
0.036459602415561676,
0.19158776104450226,
-0.2730434238910675,
-0.07936179637908936,
0.13096722960472107,
0.14979466795921326,
0.06337466835975647,
-0.20678970217704773,
0.17408443987369537,
0.0971405953168869,
-0.1893506646156311,
0.1945963352918625,
0.09825769066810608,
0.2922697365283966,
-0.12352822721004486,
-0.3940223753452301,
0.29474151134490967,
-0.13240844011306763,
0.10249628126621246,
-0.0647176131606102,
-0.05420520901679993,
0.25224030017852783,
-0.3372141420841217,
-0.10611747205257416,
-0.21110984683036804,
-0.03212964907288551,
-0.2772427499294281,
0.0872604250907898,
0.051940031349658966,
-0.24268212914466858,
0.23577561974525452,
-0.19994767010211945,
-0.23728182911872864,
-0.1814814805984497,
0.36516574025154114,
-0.042154744267463684,
-0.004311185330152512,
0.5533018112182617,
0.31921645998954773,
-0.3143990635871887,
-0.2441103160381317,
-0.28288933634757996,
-0.06291893124580383,
-0.9106283783912659,
0.1967286616563797,
0.23734420537948608,
0.26545947790145874,
-0.09828032553195953,
0.535498321056366,
0.1293092519044876,
-0.10341047495603561,
0.11702995002269745,
-0.43002110719680786,
-0.3058289587497711,
0.1651000827550888,
0.307909220457077,
0.11836886405944824,
0.39513933658599854,
0.25113946199417114,
0.21111580729484558,
-0.07036002725362778,
-0.26070427894592285,
-0.07417509704828262,
-0.167824849486351,
0.1773354858160019,
-0.21261116862297058,
-0.09438212960958481,
0.08208974450826645,
0.10415919125080109,
0.09972133487462997,
0.12108249962329865,
-0.07119762897491455,
-0.16384005546569824,
-0.0792054682970047,
0.15965072810649872,
-0.059379495680332184,
-0.24331529438495636,
0.17055881023406982,
-0.11616168171167374,
-0.11386175453662872,
0.12571772933006287,
0.13280771672725677,
0.21167626976966858,
0.01660900190472603,
0.11399668455123901,
0.05679497495293617,
-0.06839603930711746,
-0.2562175691127777,
0.13027726113796234,
-0.0985373705625534,
0.18059208989143372,
0.06659016758203506,
0.29274511337280273,
-0.0802244246006012,
-0.05970121920108795,
-0.06881200522184372,
-0.2073366940021515,
0.03620948642492294,
-0.25901758670806885,
0.2924409508705139,
-0.5262506604194641,
-0.005149997770786285,
-0.03158492594957352,
0.4530520439147949,
0.05917107313871384,
-0.10127067565917969,
-0.13705210387706757,
0.26823756098747253,
0.15234965085983276,
-0.4767336845397949,
0.0096804890781641,
0.09317392110824585,
0.14186863601207733,
-0.010811902582645416,
0.21865491569042206,
-0.10740916430950165,
-0.1157517284154892,
-0.03133329004049301,
0.17954444885253906,
0.34521257877349854,
-0.005291275680065155,
-0.18989324569702148,
0.5471895933151245,
-0.014444097876548767,
0.17631804943084717,
0.23274333775043488,
0.3172606825828552,
0.017039716243743896,
0.33299100399017334,
-0.5497563481330872,
0.13687704503536224,
-0.178932785987854,
0.04634472355246544,
-0.08187601715326309,
-0.32553619146347046,
0.1990223526954651,
0.3870964050292969,
0.09408287703990936,
-0.09937690943479538,
-0.15490718185901642,
0.6332027912139893,
0.09304150193929672,
0.2031227946281433,
-0.07617516070604324,
0.2235233187675476,
-0.17462033033370972,
0.14398488402366638,
-0.1785454899072647,
-0.15318506956100464,
-0.20553986728191376,
0.002844899892807007,
-0.10265649855136871,
-0.21156446635723114,
0.18800431489944458,
0.23449456691741943,
-0.06531351804733276,
-0.5137711763381958,
0.29277223348617554,
0.16844835877418518,
-0.21324649453163147,
-0.2507571578025818,
0.25956082344055176,
0.2752046585083008,
-0.1626129448413849,
0.22502370178699493,
0.45636072754859924,
0.43245401978492737,
0.2736493647098541,
-0.3166605532169342,
-0.10963593423366547,
-0.03872055932879448,
-0.06933298707008362,
-0.06255489587783813,
0.1097138524055481,
0.3515845537185669,
0.4193805158138275,
0.3758329749107361,
0.11254331469535828,
-0.08241984248161316,
0.236131489276886,
0.20100906491279602,
-0.10009932518005371,
0.07340353727340698,
0.4880068302154541,
-0.24082189798355103,
-0.3282158076763153,
-0.12924960255622864,
-0.011094868183135986,
-0.364689439535141,
0.08409617841243744,
0.13754203915596008,
0.14159652590751648,
0.0554555207490921,
-0.19485804438591003,
0.04361844062805176,
-0.28018641471862793,
0.4929972290992737,
0.4946090579032898,
0.4332980513572693,
-0.46488112211227417,
0.031110115349292755,
-0.6018993258476257,
0.22124728560447693,
-0.31575196981430054,
-0.3498486280441284,
0.08533944934606552,
0.10896752774715424,
-0.10488501936197281,
0.36073577404022217,
0.27577799558639526,
0.0039313193410634995,
-0.017948713153600693,
0.17348957061767578,
-0.24041670560836792,
-0.1857457309961319,
0.03779271990060806,
0.17272427678108215,
-0.06356652081012726,
-0.39678171277046204,
0.2733365595340729,
-0.17530567944049835,
-0.010003246366977692,
-0.30562692880630493,
-0.39991459250450134,
0.2437000870704651,
0.18939770758152008,
0.11431047320365906,
-0.052798233926296234,
0.4787847101688385,
0.10114216059446335,
-0.03483689948916435,
-0.012419212609529495,
0.15262039005756378,
-0.0452955961227417,
0.0007041618227958679,
0.12066727876663208,
0.3290971517562866,
-0.10678542405366898,
0.30488014221191406,
-0.3448430001735687,
0.3387082517147064,
0.048727698624134064,
0.09681859612464905,
-0.12379443645477295,
-0.009946540929377079,
-0.11823557317256927,
-0.02956226095557213,
0.14713236689567566,
-0.1387365758419037,
-0.17169725894927979,
0.09176219254732132,
-0.5352001786231995,
-0.4105947017669678,
0.515788733959198,
-0.4964689314365387,
-0.19944965839385986,
0.06379584223031998,
0.2571897506713867,
-0.0001195669174194336,
-0.22477245330810547,
-0.5702168941497803,
0.26951026916503906,
0.3066812753677368,
0.08650505542755127,
-0.1899312287569046,
0.12506093084812164,
-0.13418619334697723,
0.10827983915805817,
0.1559743583202362,
0.3093644380569458,
-0.08180774003267288,
-0.39862483739852905,
-0.12571588158607483,
-0.21069243550300598
] |
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.018603365868330002,
0.06781987845897675,
-0.0675337016582489,
0.1767386794090271,
-0.003945652395486832,
0.18629568815231323,
0.4544259011745453,
0.3805295526981354,
-0.08497399091720581,
0.009617961943149567,
0.15798088908195496,
0.29816344380378723,
-0.19395914673805237,
0.11714685708284378,
0.19690336287021637,
-0.37869709730148315,
-0.11625228077173233,
0.21967875957489014,
0.22028422355651855,
-0.02077239751815796,
0.2683160603046417,
-0.08780930936336517,
-0.30139970779418945,
0.12893852591514587,
-0.3250904679298401,
-0.44627800583839417,
-0.16248883306980133,
-0.05607588589191437,
-0.2404278963804245,
-0.22450196743011475,
0.23573924601078033,
-0.2476494312286377,
0.022950436919927597,
0.26719626784324646,
-0.00011698008893290535,
0.08588269352912903,
0.20455461740493774,
-0.12312383949756622,
-0.06245582923293114,
-0.20402555167675018,
-0.3563691973686218,
-0.09652293473482132,
0.3687441647052765,
-0.15157601237297058,
-0.01690002903342247,
-0.28951793909072876,
0.11564986407756805,
-0.12467190623283386,
0.5587255954742432,
0.47058022022247314,
0.09777504205703735,
0.06059209257364273,
0.1509515345096588,
0.0747922733426094,
-0.011689670383930206,
0.3118748962879181,
-0.10744008421897888,
0.07410536706447601,
-0.17679768800735474,
-0.11088699847459793,
-0.1365484893321991,
0.07059772312641144,
0.1753380000591278,
0.20464639365673065,
0.04387510195374489,
0.010682761669158936,
-0.3863060474395752,
-0.4449475407600403,
-0.1725611686706543,
0.5125131011009216,
0.5099631547927856,
-0.31272634863853455,
-0.3157455027103424,
-0.3438543677330017,
0.037356071174144745,
-0.2178647518157959,
-0.10184098035097122,
0.5787156820297241,
-0.12155237793922424,
0.10027381032705307,
-0.14389358460903168,
-0.19827990233898163,
-0.30058610439300537,
0.16990935802459717,
0.03576163947582245,
0.39287352561950684,
-0.09283654391765594,
0.0900416150689125,
0.25470805168151855,
0.26491305232048035,
0.2147776186466217,
0.04459477216005325,
-0.00779598206281662,
0.3059447109699249,
-0.26383307576179504,
-0.28980979323387146,
-0.11924565583467484,
-0.4262009561061859,
0.12044819444417953,
0.25078555941581726,
0.13361209630966187,
-0.06224074959754944,
-0.19785119593143463,
0.1702113002538681,
0.44369861483573914,
0.23495835065841675,
0.17606566846370697,
0.4938231408596039,
0.00343501940369606,
-0.05560055375099182,
0.0040597133338451385,
-0.15366491675376892,
-0.0026443805545568466,
-0.2552219331264496,
-0.0048014502972364426,
0.11848047375679016,
0.1445334106683731,
0.09705384075641632,
-0.28748175501823425,
-0.3272710144519806,
-0.3107087314128876,
-0.14245764911174774,
0.13995786011219025,
0.12617184221744537,
0.05062359943985939,
-0.0749761238694191,
-0.3134500980377197,
0.24432340264320374,
-0.38535743951797485,
-0.15056197345256805,
-0.1096620261669159,
0.19728834927082062,
-0.40328556299209595,
0.10874861478805542,
0.10177145898342133,
0.007763553410768509,
0.39677220582962036,
-0.09830065816640854,
0.0068022944033145905,
-0.3800591826438904,
0.32356932759284973,
-0.00608843145892024,
0.2312977910041809,
0.422941118478775,
0.1666383147239685,
0.024441802874207497,
0.09215898811817169,
0.12392635643482208,
-0.33567014336586,
-0.033138029277324677,
-0.375934898853302,
-0.4590526521205902,
-0.008535800501704216,
0.028856970369815826,
-0.011236248537898064,
0.21264202892780304,
-0.21172136068344116,
0.38779640197753906,
0.06553583592176437,
-0.03927435725927353,
0.20406487584114075,
0.030932284891605377,
-0.1864059865474701,
-0.31860917806625366,
0.26201337575912476,
-0.035557836294174194,
-0.37654492259025574,
-0.08409051597118378,
-0.35319745540618896,
-0.010514635592699051,
-0.03754445165395737,
0.16687795519828796,
-0.3595995604991913,
0.5219771862030029,
-0.0765574499964714,
0.4839739203453064,
0.7543492317199707,
-0.24175269901752472,
-0.09823019057512283,
0.28664907813072205,
0.11206729710102081,
-0.2819013297557831,
-0.11413118988275528,
-0.04691694676876068,
0.2763126790523529,
0.14342492818832397,
-0.32792165875434875,
0.40148913860321045,
-0.31334444880485535,
-0.1627569943666458,
0.29225319623947144,
-0.22284461557865143,
0.23790469765663147,
-0.0628533810377121,
-0.0785863846540451,
-0.2706495523452759,
0.2040356993675232,
0.26984673738479614,
0.4687475562095642,
0.015190541744232178,
0.17628589272499084,
0.18044835329055786,
0.046878524124622345,
0.12267380952835083,
-0.10348347574472427,
-0.35996586084365845,
-0.36741575598716736,
-0.03638188913464546,
0.12090213596820831,
-0.11677804589271545,
0.013648748397827148,
-0.2652079463005066,
-0.18703055381774902,
-0.15210019052028656,
0.021210644394159317,
-0.29050183296203613,
0.05007649213075638,
-0.37729009985923767,
0.1867765486240387,
-0.10278904438018799,
-0.43935060501098633,
0.07196096330881119,
-0.17442196607589722,
0.2400342971086502,
-0.4450747072696686,
0.10220523923635483,
0.09193670749664307,
-0.06680073589086533,
0.0983601063489914,
0.2759673297405243,
-0.03193116933107376,
-0.11381947249174118,
0.021502960473299026,
0.5539045929908752,
0.5597571134567261,
-0.008686713874340057,
-0.2220504879951477,
0.021694302558898926,
0.40296924114227295,
-0.45078057050704956,
0.14249186217784882,
-0.058894310146570206,
-0.03638807684183121,
-0.0020124055445194244,
-0.44577983021736145,
0.3606334626674652,
-0.33324092626571655,
0.3146030008792877,
0.1735800802707672,
0.14517603814601898,
0.03544590622186661,
-0.19155386090278625,
-0.2770095467567444,
-0.029292386025190353,
-0.26913389563560486,
-0.36893001198768616,
0.21416810154914856,
-0.028261655941605568,
-0.15070730447769165,
0.054014869034290314,
0.445614755153656,
-0.20175181329250336,
0.1850416660308838,
-0.13726872205734253,
0.06449675559997559,
-0.014751667156815529,
0.164878711104393,
0.4185725748538971,
0.29000458121299744,
-0.006122765596956015,
0.4006567895412445,
-0.07904966175556183,
-0.2734701335430145,
-0.07566486299037933,
0.11545675247907639,
0.2213156670331955,
0.4420471489429474,
-0.03293895721435547,
-0.39733150601387024,
-0.08685396611690521,
-0.005666177719831467,
0.03538426384329796,
0.17229107022285461,
0.06157470494508743,
-0.2826002240180969,
0.11213254183530807,
-0.3698830008506775,
-0.1115294024348259,
-0.4540901184082031,
-0.25724929571151733,
-0.08542872965335846,
-0.23043708503246307,
-0.14611096680164337,
-0.15688157081604004,
-0.03090847097337246,
-0.024791086092591286,
-0.15844254195690155,
-0.07588540017604828,
-0.1544739007949829,
0.14947892725467682,
0.39114245772361755,
-0.26399174332618713,
-0.1655929684638977,
0.039947886019945145,
0.11624652147293091,
0.5957340598106384,
0.27618467807769775,
0.06916544586420059,
-0.16880358755588531,
0.11827021837234497,
-0.29011809825897217,
0.22026042640209198,
-0.2356199473142624,
0.008545009419322014,
0.2044389545917511,
0.16586439311504364,
0.04784266650676727,
-0.29531624913215637,
-0.21436230838298798,
-0.1857387274503708,
-0.15272048115730286,
-0.08755260705947876,
0.23345816135406494,
0.09794973582029343,
-0.17646946012973785,
-0.705202579498291,
-0.281089723110199,
-0.19379286468029022,
0.2698374390602112,
-0.2516149878501892,
0.22132499516010284,
0.2111860066652298,
0.1571696400642395,
0.3712315857410431,
0.1077607199549675,
-0.09275699406862259,
0.18067577481269836,
0.26213663816452026,
0.02432728186249733,
-0.47079169750213623,
-0.20821842551231384,
0.2600363790988922,
-0.02800884284079075,
0.21695569157600403,
0.02947569079697132,
-0.17111653089523315,
0.15496797859668732,
-0.18481869995594025,
-0.06378261744976044,
-0.0715661495923996,
-0.02151131071150303,
0.2696674168109894,
-0.18753395974636078,
0.23745693266391754,
-0.16067713499069214,
0.11277501285076141,
0.15087944269180298,
-0.07872862368822098,
0.1865570843219757,
0.029536563903093338,
0.3088378608226776,
0.2784067392349243,
0.7139966487884521,
0.26298463344573975,
-0.1093323826789856,
-0.275241494178772,
-0.14568601548671722,
0.09790203720331192,
0.1112566590309143,
-0.0715988278388977,
0.0010457450989633799,
-0.08922140300273895,
-0.1402035802602768,
0.03153330832719803,
0.22970795631408691,
-0.24940015375614166,
0.05157480388879776,
0.04182681813836098,
-0.3889922797679901,
-0.4456569254398346,
0.3325711190700531,
-0.44908809661865234,
0.24677136540412903,
-0.06560556590557098,
0.045118242502212524,
0.0855964869260788,
-0.04428432136774063,
-0.3033313453197479,
0.12364926934242249,
0.24241995811462402,
0.02507787197828293,
-0.38185733556747437,
-0.07733547687530518,
-0.2065928876399994,
-0.10824030637741089,
0.11951552331447601,
0.1951921433210373,
-0.12964904308319092,
-0.015336450189352036,
0.2284475415945053,
0.26357772946357727,
0.27360787987709045,
-0.1642373949289322,
-0.09486313164234161,
-0.11137288808822632,
0.11484964191913605,
-0.35095086693763733,
0.13599799573421478,
-0.22492632269859314,
0.3831520080566406,
0.06230008602142334,
-0.05454598367214203,
-0.37644752860069275,
-0.4656878113746643,
0.45160171389579773,
-0.05901337414979935,
-0.14053630828857422,
0.1336727887392044,
-0.12436600029468536,
-0.23351910710334778,
0.03564774990081787,
0.09203238785266876,
0.3854588568210602,
-0.1581968516111374,
-0.06390830129384995,
0.05876440182328224,
-0.12798860669136047,
-0.07622312009334564,
0.18287163972854614,
-0.021405959501862526,
0.28967928886413574,
0.07412834465503693,
-0.13207341730594635,
0.39655181765556335,
0.09846235811710358,
-0.03762742877006531,
0.3037123382091522,
-0.1442086547613144,
-0.14239494502544403,
0.16430455446243286,
-0.08013900369405746,
0.6287437081336975,
0.2862628102302551,
0.054574452340602875,
0.03916288912296295,
-0.08323464542627335,
-0.21811865270137787,
-0.2484399974346161,
0.30923405289649963,
0.2322084605693817,
-0.1357230395078659,
-0.22327174246311188,
-0.5992252826690674,
0.3932136595249176,
0.10758137702941895,
-0.0406714603304863,
0.5002286434173584,
0.22755788266658783,
-0.3482244908809662,
0.40416455268859863,
0.22374263405799866,
0.6722365021705627,
0.09737427532672882,
0.10019499808549881,
0.1406402289867401,
-0.24438926577568054,
0.5452378392219543,
-0.4555906653404236,
0.1662273108959198,
-0.18402579426765442,
-0.13895297050476074,
-0.1402612179517746,
-0.25848788022994995,
0.011902343481779099,
0.3969430923461914,
0.043956924229860306,
0.26098838448524475,
-0.10268136858940125,
0.0034609250724315643,
-0.16641351580619812,
0.37935733795166016,
-0.10909699648618698,
-0.07126258313655853,
0.033445533365011215,
0.04779485613107681,
-0.14486709237098694,
-0.028488140553236008,
0.047086820006370544,
-0.11839917302131653,
-0.24467308819293976,
0.06455107033252716,
-0.3849603533744812,
-0.02476741373538971,
-0.19154031574726105,
0.1807475984096527,
-0.028959494084119797,
-0.16216859221458435,
0.29415905475616455,
0.2815646827220917,
0.050490450114011765,
-0.06855164468288422,
-0.0369410440325737,
0.2560132145881653,
-0.21466335654258728,
-0.017347289249300957,
-0.12568125128746033,
-0.04431017488241196,
0.4262988865375519,
0.16207003593444824,
-0.2744215428829193,
0.03170906752347946,
-0.18382194638252258,
-0.11254709959030151,
0.08722537755966187,
0.3421584367752075,
0.174680694937706,
-0.35438862442970276,
-0.10897423326969147,
0.14388751983642578,
0.01485411450266838,
0.03919294849038124,
0.059670496731996536,
0.02583259344100952,
-0.2507348358631134,
0.18310409784317017,
-0.01851259544491768,
-0.18730950355529785,
0.08043739199638367,
-0.1562565267086029,
0.09684614092111588,
0.1265895962715149,
0.34596192836761475,
0.04430786892771721,
0.016620103269815445,
-0.23444321751594543,
0.3440569341182709,
0.5174095630645752,
-0.3070371150970459,
-0.046517591923475266,
-0.4088941514492035,
0.14942900836467743,
0.0895438864827156,
-0.1740434616804123,
0.038089729845523834,
0.33333584666252136,
-0.3144911825656891,
-0.44444939494132996,
0.02788032405078411,
0.34179747104644775,
-0.1780242770910263,
0.34788385033607483,
-0.24382254481315613,
0.1185719221830368,
0.07069810479879379,
0.42309507727622986,
-0.16127601265907288,
0.19149833917617798,
0.15696991980075836,
0.3527003824710846,
0.04303063452243805,
0.10546084493398666,
0.24811558425426483,
-0.13562799990177155,
-0.08017873764038086,
0.07665742188692093,
0.09691055119037628,
-0.1624697744846344,
-0.14401476085186005,
0.15749141573905945,
-0.0706929862499237,
0.030763739719986916,
-0.21504846215248108,
-0.26502907276153564,
-0.21865519881248474,
-0.04733065515756607,
0.004287002608180046,
-0.09766687452793121,
0.18377628922462463,
0.42652249336242676,
0.30826064944267273,
0.16020481288433075,
-0.22029359638690948,
0.07266487926244736,
-0.07701835036277771,
0.34985029697418213,
0.07863722741603851,
0.26025646924972534,
0.14350992441177368,
0.09982757270336151,
-0.26082441210746765,
-0.02799217402935028,
0.2979623079299927,
-0.4033300280570984,
-0.03942167013883591,
0.20674613118171692,
0.22813531756401062,
-0.6105561852455139,
0.37946945428848267,
0.46856844425201416,
0.1127324253320694,
0.1652248352766037,
0.08984336256980896,
0.06358800083398819,
0.14680543541908264,
0.23767957091331482,
0.2606692612171173,
0.18592004477977753,
-0.009955957531929016,
0.29440703988075256,
0.12091478705406189,
0.6356115341186523,
-0.39715081453323364,
-0.07452769577503204,
0.12078659981489182,
0.015104807913303375,
0.3635281026363373,
0.4176054298877716,
-0.29860326647758484,
-0.11512033641338348,
0.2397639900445938,
-0.349840372800827,
0.30018287897109985,
0.16398926079273224,
0.08710460364818573,
0.5904925465583801,
0.047649066895246506,
0.0470103845000267,
0.399153470993042,
-0.086830273270607,
-0.53188157081604,
0.0537843257188797,
0.1008652076125145,
-0.08931965380907059,
-0.08043748140335083,
0.5899491310119629,
-0.061410557478666306,
-0.27442893385887146,
-0.04727311432361603,
0.14674513041973114,
0.0745282918214798,
-0.02030559629201889,
-0.4402686357498169,
-0.0016305148601531982,
-0.26779699325561523,
-0.10466042160987854,
0.18563127517700195,
-0.30940908193588257,
0.353985995054245,
0.06242410093545914,
0.10024341940879822,
-0.02994498796761036,
0.2893142104148865,
0.2652164697647095,
0.07791998982429504,
-0.01674966886639595,
0.009803544729948044,
-0.1636149138212204,
-0.045619264245033264,
-0.09232752025127411,
0.17611292004585266,
0.14909549057483673,
-0.08622796833515167,
-0.37441518902778625,
0.10671369731426239,
0.28826799988746643,
-0.1811637580394745,
0.1844591200351715,
0.21095027029514313,
-0.09573759138584137,
0.05812995135784149,
0.1442093551158905,
0.09980281442403793,
-0.035947248339653015,
-0.001719944179058075,
0.13332346081733704,
0.06717506796121597,
-0.4371820092201233,
0.45073187351226807,
-0.10032553970813751,
-0.1818162500858307,
-0.11517299711704254,
-0.0030974000692367554,
-0.2519978880882263,
-0.1963946670293808,
0.5572981238365173,
-0.34285885095596313,
0.09526948630809784,
-0.16597390174865723,
0.0025318842381238937,
-0.11938394606113434,
0.604944109916687,
0.048549726605415344,
0.28724366426467896,
-0.23063944280147552,
-0.2353111356496811,
-0.34840741753578186,
-0.17246490716934204,
-0.26167306303977966,
-0.14311039447784424,
0.11644700914621353,
0.3252495229244232,
-0.20032000541687012,
0.1976136416196823,
-0.05239802598953247,
0.022370444610714912,
0.13385091722011566,
0.2788347005844116,
-0.055645350366830826,
-0.22805245220661163,
-0.3200218677520752,
0.19413143396377563,
-0.0833844244480133,
-0.24655389785766602,
-0.029668714851140976,
-0.0917256772518158,
-0.274473637342453,
0.14141440391540527,
-0.10916025936603546,
0.5010821223258972,
0.47888046503067017,
-0.07082602381706238,
0.16269585490226746,
0.4706992208957672,
0.2141718566417694,
0.0618867427110672,
-0.3631541430950165,
0.06310062110424042,
-0.32237380743026733,
0.4241425693035126,
-0.07200603187084198,
0.23870539665222168,
-0.3206014335155487,
0.06453081965446472,
-0.18233869969844818,
0.11542833596467972,
0.04565081745386124,
-0.1840980350971222,
-0.23061780631542206,
-0.05142594128847122,
-0.3432808220386505,
0.18583714962005615,
0.8144028782844543,
0.45279747247695923,
-0.3223569691181183,
-0.006582120433449745,
0.15158453583717346,
-0.122731052339077,
-0.07486334443092346,
-0.42572394013404846,
-0.12992069125175476,
0.18796361982822418,
0.176519513130188,
0.43258658051490784,
-0.08113802224397659,
-0.789035439491272,
-0.23772519826889038,
0.21454906463623047,
-0.24280011653900146,
0.05749986693263054,
0.07962465286254883,
0.367828905582428,
-0.13397887349128723,
-0.03476416692137718,
0.4012283980846405,
0.1358879804611206,
-0.3040010929107666,
0.0704721212387085,
-0.3225424289703369
] |
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.060099076479673386,
0.05920219421386719,
-0.061562057584524155,
0.11397039890289307,
-0.013391286134719849,
0.2231488823890686,
0.43412888050079346,
0.34234580397605896,
-0.08726136386394501,
0.0904240682721138,
0.11232925951480865,
0.32582607865333557,
-0.25177615880966187,
0.11685816198587418,
0.17987100780010223,
-0.36912956833839417,
-0.06624037772417068,
0.1591634750366211,
0.2443256974220276,
0.03081776201725006,
0.2214924395084381,
-0.1523118019104004,
-0.3721361756324768,
0.07190310209989548,
-0.2917361259460449,
-0.4570460617542267,
-0.24639493227005005,
-0.0541372075676918,
-0.27537065744400024,
-0.23689617216587067,
0.17016874253749847,
-0.0853738784790039,
-0.006451562978327274,
0.2993588447570801,
-0.00011711733532138169,
-0.0006967037916183472,
0.22161398828029633,
-0.11507431417703629,
-0.15204469859600067,
-0.2749584913253784,
-0.2659641206264496,
0.002403050661087036,
0.3048645853996277,
-0.20199580490589142,
0.018709495663642883,
-0.26793602108955383,
0.10415327548980713,
-0.11388524621725082,
0.525375485420227,
0.40250229835510254,
0.09737713634967804,
-0.018744491040706635,
0.05934019759297371,
0.12936457991600037,
0.07494524866342545,
0.27727222442626953,
-0.06506180763244629,
0.17165477573871613,
-0.18230578303337097,
-0.09564188867807388,
-0.13511386513710022,
0.04886719584465027,
0.1610795557498932,
0.22620326280593872,
0.10254481434822083,
0.02398950420320034,
-0.3529036343097687,
-0.4566061198711395,
-0.17250314354896545,
0.509436845779419,
0.4698423445224762,
-0.33142635226249695,
-0.35922694206237793,
-0.3861277401447296,
0.1277306228876114,
-0.26421043276786804,
-0.13123667240142822,
0.5653491616249084,
-0.09737314283847809,
-0.05509025231003761,
-0.1545504927635193,
-0.1297813355922699,
-0.25608158111572266,
0.13921737670898438,
0.08537833392620087,
0.5397909879684448,
-0.03236240893602371,
0.07690978050231934,
0.3139473497867584,
0.20437316596508026,
0.4018694758415222,
-0.024770718067884445,
-0.011732161045074463,
0.3584606647491455,
-0.25612494349479675,
-0.3121018409729004,
-0.13031935691833496,
-0.42341023683547974,
0.11904708296060562,
0.2578408718109131,
0.1716754138469696,
-0.08561559021472931,
-0.1789422482252121,
0.10597459971904755,
0.4475730359554291,
0.24215827882289886,
0.18644979596138,
0.47353848814964294,
0.0036862269043922424,
0.01585029996931553,
0.05500252917408943,
-0.15196961164474487,
-0.030426040291786194,
-0.28506341576576233,
-0.05408952012658119,
0.12595120072364807,
0.042341940104961395,
0.10311099886894226,
-0.3341117203235626,
-0.3942472040653229,
-0.31496188044548035,
-0.19226208329200745,
0.17695288360118866,
0.15305477380752563,
0.03304416313767433,
-0.05517253279685974,
-0.31209540367126465,
0.25188714265823364,
-0.3018953502178192,
-0.004585186019539833,
-0.12498082220554352,
0.1991768479347229,
-0.40281572937965393,
0.09094005078077316,
0.13776466250419617,
0.02725371904671192,
0.39331716299057007,
-0.07447166740894318,
0.08510594815015793,
-0.3233605623245239,
0.2844257354736328,
0.013546202331781387,
0.2084345519542694,
0.3916260004043579,
0.19600512087345123,
0.03417069464921951,
0.03795371577143669,
0.17216990888118744,
-0.35726088285446167,
0.0106586255133152,
-0.3762228190898895,
-0.38633641600608826,
0.059065863490104675,
0.035924337804317474,
-0.0429656058549881,
0.1375056803226471,
-0.3059718608856201,
0.38506972789764404,
0.002813011407852173,
-0.08429798483848572,
0.18368303775787354,
-0.03547002375125885,
-0.1883963793516159,
-0.3066428601741791,
0.26356327533721924,
-0.04239638149738312,
-0.3014153838157654,
-0.08503296971321106,
-0.31182023882865906,
0.03487205505371094,
0.00922316312789917,
0.22538213431835175,
-0.36134615540504456,
0.4354800879955292,
-0.07879838347434998,
0.42663657665252686,
0.709678590297699,
-0.16683802008628845,
-0.08304845541715622,
0.13563963770866394,
0.07302573323249817,
-0.24751624464988708,
-0.05864255875349045,
-0.0254103671759367,
0.2792953550815582,
0.08227919042110443,
-0.25813934206962585,
0.4794847369194031,
-0.33176758885383606,
-0.06840813905000687,
0.29645246267318726,
-0.2519000470638275,
0.30399560928344727,
0.002651013433933258,
-0.1129341572523117,
-0.2537750005722046,
0.1864837110042572,
0.34164851903915405,
0.5174596905708313,
0.0002924688160419464,
0.12405230104923248,
0.12213253974914551,
0.03477092832326889,
0.23333904147148132,
-0.06848384439945221,
-0.3601825535297394,
-0.29260286688804626,
-0.07240301370620728,
0.16962461173534393,
-0.09011588990688324,
0.029357537627220154,
-0.29040849208831787,
-0.24477797746658325,
-0.23009736835956573,
0.026719026267528534,
-0.26597023010253906,
0.05622352659702301,
-0.3088191747665405,
0.25873130559921265,
-0.14219139516353607,
-0.4538699984550476,
-0.022831382229924202,
-0.26234257221221924,
0.15787412226200104,
-0.4556035101413727,
0.22603364288806915,
0.09709709137678146,
-0.1513533890247345,
0.12351149320602417,
0.35154372453689575,
-0.06762322038412094,
-0.1001841351389885,
-0.013902084901928902,
0.6143965721130371,
0.5653512477874756,
-0.09559528529644012,
-0.17022371292114258,
0.02942316234111786,
0.4321301579475403,
-0.3713904619216919,
0.16432808339595795,
-0.07342012226581573,
0.007384064607322216,
0.006760790944099426,
-0.420654296875,
0.4240076541900635,
-0.529316782951355,
0.38250023126602173,
0.21835194528102875,
0.055413223803043365,
0.016122816130518913,
-0.09533724188804626,
-0.31663310527801514,
0.02213580161333084,
-0.20150552690029144,
-0.367596298456192,
0.1182447075843811,
-0.06441093236207962,
-0.20699121057987213,
0.026012204587459564,
0.4118817150592804,
-0.19969876110553741,
0.10810747742652893,
-0.136019766330719,
0.013238832354545593,
-0.04035068303346634,
0.11190581321716309,
0.4428795278072357,
0.2646597623825073,
0.0628819391131401,
0.3699394464492798,
-0.09811370819807053,
-0.2832740843296051,
-0.09415490180253983,
0.11233106255531311,
0.2549901604652405,
0.43643707036972046,
0.011018581688404083,
-0.2843097150325775,
-0.0864051803946495,
-0.024016639217734337,
-0.0805044174194336,
0.18778198957443237,
0.08373712748289108,
-0.25611940026283264,
0.06383451819419861,
-0.3536815643310547,
-0.1584833562374115,
-0.46817418932914734,
-0.32021498680114746,
-0.05686132237315178,
-0.25560444593429565,
-0.12271660566329956,
-0.0339343436062336,
-0.054200418293476105,
0.008823486976325512,
-0.1515863537788391,
-0.03954578936100006,
-0.1244678795337677,
0.18579937517642975,
0.3445301055908203,
-0.31507065892219543,
-0.13216465711593628,
0.03292063623666763,
0.13630014657974243,
0.6758503317832947,
0.35861340165138245,
0.03770417720079422,
-0.1696944236755371,
0.10667319595813751,
-0.2268463373184204,
0.19140014052391052,
-0.18845318257808685,
-0.00377686507999897,
0.1433350294828415,
0.12773865461349487,
-0.04253194108605385,
-0.4658040702342987,
-0.1937800645828247,
-0.21292586624622345,
-0.15234406292438507,
0.03678107634186745,
0.22463704645633698,
0.11643863469362259,
-0.15512289106845856,
-0.6601369976997375,
-0.34316566586494446,
-0.1810242384672165,
0.19332288205623627,
-0.20737068355083466,
0.2268761396408081,
0.2438797503709793,
0.18594324588775635,
0.32747161388397217,
0.014622457325458527,
-0.11730265617370605,
0.19149571657180786,
0.2556428909301758,
0.04356057569384575,
-0.4491833746433258,
-0.1671503782272339,
0.18767346441745758,
-0.06652602553367615,
0.09794649481773376,
0.09237617999315262,
-0.10886882245540619,
0.1633358895778656,
-0.20559276640415192,
-0.05495723709464073,
-0.05828694999217987,
0.02793950028717518,
0.27600064873695374,
-0.16865089535713196,
0.23735187947750092,
-0.12998831272125244,
0.1291242241859436,
0.12755706906318665,
-0.0030872561037540436,
0.2730182409286499,
0.008501715958118439,
0.32969504594802856,
0.24659579992294312,
0.7530812621116638,
0.2361806035041809,
-0.08670437335968018,
-0.2982814610004425,
-0.13201071321964264,
0.05755145475268364,
0.022603563964366913,
-0.08016333729028702,
0.12196549028158188,
-0.001323893666267395,
-0.1696755588054657,
0.08687262237071991,
0.16649049520492554,
-0.3392602205276489,
0.06560904532670975,
0.07365640997886658,
-0.38669154047966003,
-0.4350096583366394,
0.3419036567211151,
-0.4380699396133423,
0.178255096077919,
-0.061376843601465225,
-0.01733442023396492,
0.022490382194519043,
-0.09498456120491028,
-0.3401079773902893,
0.09858187288045883,
0.2204698622226715,
0.03093550354242325,
-0.40480610728263855,
-0.2065957933664322,
-0.2126455008983612,
-0.15744324028491974,
0.19242088496685028,
0.2665267586708069,
-0.026468198746442795,
-0.021181419491767883,
0.2608848810195923,
0.2814454734325409,
0.2959350347518921,
-0.1504770666360855,
-0.05250159651041031,
-0.0398285835981369,
0.12456175684928894,
-0.32955801486968994,
0.06933315098285675,
-0.3494672179222107,
0.36217764019966125,
0.10066770017147064,
0.025378722697496414,
-0.3897855877876282,
-0.4066641628742218,
0.43395838141441345,
-0.0061203190125525,
-0.13574913144111633,
0.12987153232097626,
-0.17023207247257233,
-0.19859826564788818,
-0.011147307232022285,
0.11986076086759567,
0.3398827910423279,
-0.0983908399939537,
-0.1400342434644699,
0.13237279653549194,
-0.07185307145118713,
-0.08284500241279602,
0.13599243760108948,
0.048600632697343826,
0.3254578709602356,
0.21512538194656372,
-0.11585761606693268,
0.4347851872444153,
0.022969119250774384,
0.007250221446156502,
0.2126637101173401,
-0.12155835330486298,
-0.11246606707572937,
0.14882248640060425,
-0.08209671080112457,
0.5192815661430359,
0.33486467599868774,
0.1167120635509491,
0.001960769295692444,
-0.08885322511196136,
-0.17211484909057617,
-0.22034908831119537,
0.22006401419639587,
0.1969328075647354,
-0.1628998965024948,
-0.2322627454996109,
-0.784541130065918,
0.38250842690467834,
0.14931337535381317,
-0.07872916758060455,
0.4942552447319031,
0.22275583446025848,
-0.3529704511165619,
0.5404197573661804,
0.26006993651390076,
0.7107945680618286,
0.0270937941968441,
0.10878408700227737,
0.24516206979751587,
-0.2199293076992035,
0.5987616181373596,
-0.3728722929954529,
0.1955489218235016,
-0.23580364882946014,
-0.23172694444656372,
-0.050506237894296646,
-0.24861064553260803,
-0.042244382202625275,
0.38545846939086914,
-0.019298415631055832,
0.3094726502895355,
-0.09202224761247635,
-0.12202896177768707,
-0.2474122792482376,
0.41142216324806213,
-0.23568665981292725,
-0.03785471245646477,
0.06772683560848236,
0.029426272958517075,
-0.1675003170967102,
-0.06038963422179222,
0.10659465938806534,
-0.0735354870557785,
-0.27488279342651367,
0.1142619252204895,
-0.37943941354751587,
-0.03450041264295578,
-0.14393644034862518,
0.18845407664775848,
-0.14707675576210022,
-0.15393051505088806,
0.2308845818042755,
0.15992237627506256,
0.09166054427623749,
-0.06489963829517365,
-0.019739748910069466,
0.2676510512828827,
-0.09607856720685959,
-0.02899916283786297,
-0.09119162708520889,
0.014268423430621624,
0.47091442346572876,
0.20436257123947144,
-0.2958538234233856,
-0.035039111971855164,
-0.08294617384672165,
-0.18436099588871002,
0.0005774348974227905,
0.281036913394928,
0.20538675785064697,
-0.2860051691532135,
-0.13917140662670135,
0.20517706871032715,
0.03273586556315422,
0.025557871907949448,
0.06589670479297638,
-0.019837379455566406,
-0.2188270092010498,
0.21004322171211243,
-0.05398557707667351,
-0.17610493302345276,
0.07701495289802551,
-0.14604410529136658,
0.08020907640457153,
0.1033799946308136,
0.3675253987312317,
0.05142649635672569,
0.0021326690912246704,
-0.20663532614707947,
0.3037538230419159,
0.43836480379104614,
-0.28629451990127563,
0.04947333037853241,
-0.3851533532142639,
0.14462657272815704,
0.08245878666639328,
-0.143552765250206,
0.09010818600654602,
0.4006582200527191,
-0.31120702624320984,
-0.46134379506111145,
0.0929725170135498,
0.43247950077056885,
-0.03833207115530968,
0.33950647711753845,
-0.278498113155365,
0.15135203301906586,
0.019041510298848152,
0.31904640793800354,
-0.18888071179389954,
0.18617190420627594,
0.18026745319366455,
0.4271772801876068,
-0.04824049025774002,
0.0949820876121521,
0.1235109493136406,
-0.12728258967399597,
-0.06728079915046692,
0.03961043432354927,
0.10758936405181885,
-0.1702585220336914,
-0.151464581489563,
0.13831251859664917,
-0.05588001012802124,
0.03552304953336716,
-0.20464536547660828,
-0.3283619284629822,
-0.2501083314418793,
-0.12947607040405273,
-0.06132438778877258,
-0.06784312427043915,
0.20689567923545837,
0.4533396363258362,
0.45322495698928833,
0.12273572385311127,
-0.09720586240291595,
0.16519081592559814,
-0.1471460461616516,
0.22503626346588135,
0.03594299405813217,
0.3269492983818054,
0.1799122840166092,
0.09982889890670776,
-0.3032550811767578,
-0.08182700723409653,
0.20345741510391235,
-0.3801211416721344,
-0.06861060112714767,
0.1789454221725464,
0.26686227321624756,
-0.47111591696739197,
0.4318474531173706,
0.5926180481910706,
0.18063262104988098,
0.057729966938495636,
0.1817920207977295,
0.06982254981994629,
0.12195189297199249,
0.2370392233133316,
0.1880248486995697,
0.2561095356941223,
0.003500811755657196,
0.316712349653244,
0.03518619015812874,
0.47662293910980225,
-0.4306509494781494,
-0.07014069706201553,
0.13116443157196045,
-0.06631278991699219,
0.366807758808136,
0.49853360652923584,
-0.23655709624290466,
-0.2182096689939499,
0.22212538123130798,
-0.38017958402633667,
0.24524781107902527,
0.1780259758234024,
0.12863382697105408,
0.6150352954864502,
0.08192860335111618,
-0.0128323994576931,
0.3417758345603943,
-0.058804094791412354,
-0.4968166947364807,
0.1731152981519699,
0.09135232865810394,
-0.02011333405971527,
0.0038303881883621216,
0.597802996635437,
-0.07840030640363693,
-0.1626097708940506,
-0.014351190999150276,
0.17052629590034485,
0.11518868058919907,
-0.06373918801546097,
-0.43694421648979187,
-0.06144566833972931,
-0.34739911556243896,
-0.06094352900981903,
0.11262457072734833,
-0.2696659564971924,
0.32366037368774414,
0.08725909888744354,
0.04000936076045036,
-0.1954781413078308,
0.3290703296661377,
0.2906007766723633,
0.13569147884845734,
-0.08512434363365173,
-0.07892554253339767,
-0.13413383066654205,
-0.044185079634189606,
0.041945282369852066,
0.20853254199028015,
0.1113717257976532,
-0.0033137090504169464,
-0.41207143664360046,
0.10050124675035477,
0.2396111935377121,
-0.2206002026796341,
0.18486785888671875,
0.22301766276359558,
0.026947014033794403,
0.06348831951618195,
0.13784494996070862,
0.12301166355609894,
-0.058853261172771454,
-0.00593162328004837,
0.17543593049049377,
0.012287026271224022,
-0.4112175405025482,
0.4289700984954834,
-0.046076901257038116,
-0.1350555419921875,
-0.04459676146507263,
0.014431126415729523,
-0.33576899766921997,
-0.1644349992275238,
0.32477736473083496,
-0.33928921818733215,
0.05559312552213669,
-0.163682758808136,
0.0027706660330295563,
-0.0965685099363327,
0.5712153911590576,
0.10233983397483826,
0.2575374245643616,
-0.16598032414913177,
-0.24229541420936584,
-0.3547654449939728,
-0.2354464828968048,
-0.18375514447689056,
-0.16355380415916443,
0.15178173780441284,
0.42012518644332886,
-0.24219828844070435,
0.21163171529769897,
-0.13461355865001678,
0.07613571733236313,
0.04546025022864342,
0.35581234097480774,
-0.1069987565279007,
-0.22011055052280426,
-0.33419400453567505,
0.2212851196527481,
-0.10734589397907257,
-0.24159222841262817,
-0.04876494035124779,
-0.06508564949035645,
-0.2900024652481079,
0.16406045854091644,
-0.09778065979480743,
0.48974311351776123,
0.47738128900527954,
-0.1549907624721527,
0.13316863775253296,
0.4795994162559509,
0.2026749551296234,
0.09958027303218842,
-0.4411293864250183,
-0.0005306797102093697,
-0.40716925263404846,
0.37404754757881165,
-0.03431270644068718,
0.2950654625892639,
-0.3066808581352234,
-0.0082552470266819,
-0.1573830395936966,
0.17803744971752167,
-0.022582270205020905,
-0.24556121230125427,
-0.36209985613822937,
-0.04120863229036331,
-0.32705843448638916,
0.2329271286725998,
0.6373432874679565,
0.45340174436569214,
-0.30583325028419495,
0.003918100148439407,
0.16172252595424652,
-0.094098299741745,
-0.012662515044212341,
-0.4618823528289795,
-0.17610260844230652,
0.10947924852371216,
0.13716520369052887,
0.4254472851753235,
-0.11045538634061813,
-0.6365726590156555,
-0.16916704177856445,
0.17600283026695251,
-0.14364361763000488,
0.12490956485271454,
0.1179799884557724,
0.3617660403251648,
-0.08889015018939972,
-0.05115284398198128,
0.33498910069465637,
0.10079364478588104,
-0.2868114411830902,
-0.02849418669939041,
-0.3389166593551636
] |
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.010855849832296371,
0.10391606390476227,
-0.07164081186056137,
0.17237184941768646,
-0.009353239089250565,
0.1751481592655182,
0.4139038324356079,
0.3510567545890808,
-0.1455841064453125,
0.02154332399368286,
0.18125635385513306,
0.28466901183128357,
-0.1473981738090515,
0.11088228970766068,
0.1814134418964386,
-0.38728612661361694,
-0.11156066507101059,
0.22994586825370789,
0.2616371214389801,
-0.04211517795920372,
0.28746551275253296,
-0.05571586638689041,
-0.2707217335700989,
0.10467823594808578,
-0.3476291000843048,
-0.4612330496311188,
-0.19707782566547394,
-0.03716465085744858,
-0.2252805382013321,
-0.22957004606723785,
0.22839273512363434,
-0.273303359746933,
0.038595739752054214,
0.2595725953578949,
-0.00011577823897823691,
0.06299924850463867,
0.2459525316953659,
-0.10788554698228836,
-0.10205478966236115,
-0.200786754488945,
-0.3612450659275055,
-0.08098703622817993,
0.4162448048591614,
-0.13008105754852295,
0.008889365941286087,
-0.24973727762699127,
0.1623067706823349,
-0.17351943254470825,
0.500852108001709,
0.4594460427761078,
0.09989438205957413,
0.03513242304325104,
0.18790002167224884,
0.0838824212551117,
-0.008649945259094238,
0.33384156227111816,
-0.11219744384288788,
0.0764559954404831,
-0.11137373745441437,
-0.07661739736795425,
-0.1672826111316681,
0.04348507151007652,
0.1838376522064209,
0.206133171916008,
0.08074336498975754,
-0.027349229902029037,
-0.3851656913757324,
-0.4645873010158539,
-0.14274796843528748,
0.545002281665802,
0.6056334376335144,
-0.3358951807022095,
-0.29803895950317383,
-0.30454331636428833,
0.04508857801556587,
-0.1760811060667038,
-0.12780752778053284,
0.6296443939208984,
-0.11713652312755585,
0.08766072988510132,
-0.1201946958899498,
-0.23911823332309723,
-0.3045322000980377,
0.1572999656200409,
0.02268751710653305,
0.38953402638435364,
-0.10936707258224487,
0.056240878999233246,
0.1918925940990448,
0.24632005393505096,
0.2808930277824402,
0.04171008989214897,
-0.01212088018655777,
0.26088789105415344,
-0.1790403425693512,
-0.24314914643764496,
-0.09092383831739426,
-0.377004474401474,
0.09933123737573624,
0.23428578674793243,
0.13217654824256897,
-0.06478411704301834,
-0.1741930991411209,
0.16822873055934906,
0.4464680254459381,
0.17327669262886047,
0.24416300654411316,
0.4896543323993683,
0.03797423094511032,
-0.039864640682935715,
-0.00231841579079628,
-0.17060279846191406,
-0.012430825270712376,
-0.19790813326835632,
-0.024788040667772293,
0.07103626430034637,
0.15378792583942413,
0.09011031687259674,
-0.2858220636844635,
-0.3360191285610199,
-0.2909918427467346,
-0.16204969584941864,
0.12427379935979843,
0.1403428614139557,
0.07502765953540802,
-0.07264799624681473,
-0.3455607295036316,
0.22316505014896393,
-0.38754844665527344,
-0.1767750084400177,
-0.12359263002872467,
0.23558714985847473,
-0.38997340202331543,
0.10468119382858276,
0.11199970543384552,
0.010703057050704956,
0.4004693925380707,
-0.10864870995283127,
0.019135303795337677,
-0.37155017256736755,
0.30696138739585876,
0.041092582046985626,
0.21160124242305756,
0.4237736761569977,
0.21384987235069275,
0.020228637382388115,
0.061788853257894516,
0.1171502023935318,
-0.3336218297481537,
-0.022101297974586487,
-0.3795631527900696,
-0.46289488673210144,
-0.061620280146598816,
0.039680011570453644,
-0.025028688833117485,
0.19056153297424316,
-0.1604069173336029,
0.37141522765159607,
0.05124573037028313,
-0.04800254479050636,
0.20136454701423645,
0.08199410140514374,
-0.1747278869152069,
-0.35749784111976624,
0.24172931909561157,
0.0053397417068481445,
-0.42722731828689575,
-0.07310032844543457,
-0.3806419372558594,
-0.03147827461361885,
-0.05574394017457962,
0.14545705914497375,
-0.37867140769958496,
0.5079540014266968,
-0.09993264079093933,
0.45728588104248047,
0.7189481854438782,
-0.2783370018005371,
-0.07060568779706955,
0.3035818338394165,
0.15371115505695343,
-0.2755768299102783,
-0.11141610890626907,
-0.05185661092400551,
0.2611773610115051,
0.15615688264369965,
-0.4373103082180023,
0.355657160282135,
-0.30760708451271057,
-0.13068029284477234,
0.3071199357509613,
-0.21155118942260742,
0.21887452900409698,
-0.0768824890255928,
-0.08400343358516693,
-0.2523694932460785,
0.27869197726249695,
0.3431991934776306,
0.47872018814086914,
0.02705259621143341,
0.18310093879699707,
0.23426860570907593,
0.06575809419155121,
0.14689475297927856,
-0.04900383576750755,
-0.34277117252349854,
-0.3662566542625427,
-0.052493296563625336,
0.1418793946504593,
-0.11802893877029419,
-0.025952428579330444,
-0.2883363366127014,
-0.14907941222190857,
-0.13507923483848572,
0.04922666400671005,
-0.292178750038147,
0.06407880038022995,
-0.3532395362854004,
0.19587591290473938,
-0.1191389262676239,
-0.42626717686653137,
0.08736038953065872,
-0.22956952452659607,
0.2660537362098694,
-0.4764242470264435,
0.1153513491153717,
0.07138057053089142,
-0.08158016204833984,
0.10574029386043549,
0.2592466175556183,
-0.051060810685157776,
-0.13670949637889862,
0.026624629274010658,
0.5864789485931396,
0.5731499791145325,
0.040446970611810684,
-0.21188512444496155,
0.031981781125068665,
0.4351484179496765,
-0.4945232570171356,
0.1646817922592163,
-0.03570219874382019,
-0.04062968119978905,
0.019737347960472107,
-0.49181804060935974,
0.3089129328727722,
-0.3423791527748108,
0.2918803095817566,
0.24414311349391937,
0.12468884140253067,
0.05347680300474167,
-0.17090480029582977,
-0.29781877994537354,
-0.0349748395383358,
-0.2654482424259186,
-0.34221240878105164,
0.21621690690517426,
-0.024849334731698036,
-0.1540779173374176,
0.11240254342556,
0.4354671239852905,
-0.18892386555671692,
0.20564040541648865,
-0.11167550832033157,
0.07654616981744766,
-0.040640078485012054,
0.20764204859733582,
0.4278668463230133,
0.24964496493339539,
0.0174671970307827,
0.4108245372772217,
-0.088934026658535,
-0.2685607373714447,
-0.06610943377017975,
0.11270668357610703,
0.23609711229801178,
0.42926502227783203,
-0.06785180419683456,
-0.39763906598091125,
-0.07748642563819885,
-0.018765056505799294,
0.0069761984050273895,
0.14406515657901764,
0.0676458328962326,
-0.2933168411254883,
0.10570164769887924,
-0.39161646366119385,
-0.14747095108032227,
-0.4270646870136261,
-0.2854633331298828,
-0.08070723712444305,
-0.26037874817848206,
-0.1695377379655838,
-0.14855408668518066,
0.01224832609295845,
-0.04614453762769699,
-0.1673998385667801,
-0.07696063816547394,
-0.17104391753673553,
0.17954367399215698,
0.3728761374950409,
-0.2571857273578644,
-0.1507110297679901,
0.06034218147397041,
0.15105119347572327,
0.6260818839073181,
0.25064030289649963,
0.020122801885008812,
-0.15158574283123016,
0.06280868500471115,
-0.32852575182914734,
0.24199704825878143,
-0.2055964320898056,
-0.015237541869282722,
0.21067997813224792,
0.186045303940773,
0.014025066047906876,
-0.3126122057437897,
-0.26654282212257385,
-0.19002734124660492,
-0.1723768264055252,
-0.08175162971019745,
0.1955079436302185,
0.054710183292627335,
-0.16280882060527802,
-0.715564489364624,
-0.2830570936203003,
-0.20169474184513092,
0.2924622595310211,
-0.24033471941947937,
0.2397521734237671,
0.17481227219104767,
0.13965971767902374,
0.35567912459373474,
0.11541412025690079,
-0.01462414301931858,
0.20106853544712067,
0.23053354024887085,
0.006179008632898331,
-0.4905732572078705,
-0.24064092338085175,
0.3171945810317993,
-0.009963443502783775,
0.22750261425971985,
0.006226236931979656,
-0.20012623071670532,
0.1807938814163208,
-0.20702046155929565,
-0.06614572554826736,
-0.05529989302158356,
-0.00827852077782154,
0.2614949643611908,
-0.1543387621641159,
0.24387450516223907,
-0.17873767018318176,
0.12144017219543457,
0.09436320513486862,
-0.1324968934059143,
0.19738884270191193,
0.005529729649424553,
0.2760891318321228,
0.2678915560245514,
0.6091408729553223,
0.25508058071136475,
-0.08768288791179657,
-0.26532676815986633,
-0.14003433287143707,
0.14003527164459229,
0.12631569802761078,
-0.04117630794644356,
0.03606969490647316,
-0.10347065329551697,
-0.12278954684734344,
0.04870573803782463,
0.26322752237319946,
-0.27937567234039307,
0.05875445157289505,
0.007395513355731964,
-0.39545682072639465,
-0.4270704984664917,
0.2944311797618866,
-0.4454827904701233,
0.2239474356174469,
-0.05564805120229721,
0.03238798677921295,
0.10708464682102203,
-0.07389898598194122,
-0.31577223539352417,
0.1743042916059494,
0.2323838174343109,
0.04936445876955986,
-0.32762637734413147,
-0.07963740825653076,
-0.18812787532806396,
-0.14334510266780853,
0.13018426299095154,
0.18069353699684143,
-0.12620601058006287,
-0.009460678324103355,
0.21018901467323303,
0.22274500131607056,
0.23879361152648926,
-0.1617354154586792,
-0.07712545990943909,
-0.11367905139923096,
0.12909728288650513,
-0.34100958704948425,
0.1779455542564392,
-0.24921049177646637,
0.408502459526062,
0.06213603913784027,
-0.10248668491840363,
-0.3521377146244049,
-0.45464909076690674,
0.4207286834716797,
-0.05944810435175896,
-0.10695694386959076,
0.158454030752182,
-0.14398173987865448,
-0.2525481879711151,
0.017216434702277184,
0.023168161511421204,
0.36403584480285645,
-0.17855240404605865,
-0.051458775997161865,
0.039121393114328384,
-0.09440064430236816,
-0.08462691307067871,
0.1701565980911255,
-0.025551462545990944,
0.29404690861701965,
0.012692258693277836,
-0.14915509521961212,
0.3754698932170868,
0.11250699311494827,
0.030352424830198288,
0.2963513135910034,
-0.14794501662254333,
-0.19082507491111755,
0.2248421609401703,
-0.08473363518714905,
0.5996388792991638,
0.2911284565925598,
0.08614576607942581,
0.012929074466228485,
-0.08896641433238983,
-0.2382877618074417,
-0.1926458179950714,
0.25590986013412476,
0.18343056738376617,
-0.10587722808122635,
-0.19300776720046997,
-0.6062169075012207,
0.3586287498474121,
0.10573659837245941,
-0.03288697451353073,
0.5307191610336304,
0.29498639702796936,
-0.3071542978286743,
0.36709797382354736,
0.19333812594413757,
0.6510207056999207,
0.1368880718946457,
0.0759345144033432,
0.13570864498615265,
-0.3133864402770996,
0.5474338531494141,
-0.4472084641456604,
0.16984067857265472,
-0.17818476259708405,
-0.1392391324043274,
-0.16145792603492737,
-0.24074725806713104,
0.008485522121191025,
0.39036524295806885,
0.003003232181072235,
0.26524266600608826,
-0.1245303750038147,
-0.03530081734061241,
-0.14797058701515198,
0.4279196262359619,
-0.16975931823253632,
-0.050048138946294785,
0.05452016741037369,
0.04883209615945816,
-0.15916556119918823,
-0.03197309002280235,
0.037780094891786575,
-0.10542670637369156,
-0.22675339877605438,
0.10052584111690521,
-0.423362135887146,
-0.01174899097532034,
-0.12563100457191467,
0.20074792206287384,
-0.06050247326493263,
-0.16972754895687103,
0.3008083403110504,
0.30424320697784424,
0.07807336002588272,
-0.08988460898399353,
-0.08147694915533066,
0.2929384410381317,
-0.21994096040725708,
-0.07078314572572708,
-0.11927258223295212,
-0.004161610268056393,
0.4283139109611511,
0.1577155590057373,
-0.28713443875312805,
0.018619228154420853,
-0.1946069449186325,
-0.11653473973274231,
0.09951157867908478,
0.34227174520492554,
0.1866002231836319,
-0.2813451290130615,
-0.05502176284790039,
0.15291433036327362,
-0.013290952891111374,
0.030043672770261765,
0.06662937998771667,
0.044744573533535004,
-0.20661938190460205,
0.1536608636379242,
0.026899071410298347,
-0.19330434501171112,
0.037967558950185776,
-0.14513510465621948,
0.09765473008155823,
0.12239591777324677,
0.30407169461250305,
0.10594002902507782,
-0.04301894083619118,
-0.2244167923927307,
0.36828914284706116,
0.4998830556869507,
-0.2677208483219147,
-0.06370482593774796,
-0.42575350403785706,
0.16016019880771637,
0.09210945665836334,
-0.1946083903312683,
0.020668834447860718,
0.3484404981136322,
-0.3426212668418884,
-0.4485456347465515,
0.05721721798181534,
0.3609345555305481,
-0.19811755418777466,
0.3023912012577057,
-0.24483558535575867,
0.057295363396406174,
0.10901592671871185,
0.37574511766433716,
-0.1645893156528473,
0.22102995216846466,
0.17909979820251465,
0.32169172167778015,
0.07076962292194366,
0.10658074915409088,
0.22272266447544098,
-0.1663646399974823,
-0.08577924966812134,
0.027471227571368217,
0.14516408741474152,
-0.1592143476009369,
-0.13381853699684143,
0.1577707976102829,
-0.11651986092329025,
0.03362080082297325,
-0.2108558714389801,
-0.25794070959091187,
-0.21656005084514618,
-0.029082167893648148,
0.016750887036323547,
-0.08077115565538406,
0.1555975377559662,
0.40940189361572266,
0.28606992959976196,
0.12069426476955414,
-0.220831960439682,
0.03815160319209099,
-0.06964778900146484,
0.38426172733306885,
0.04175388440489769,
0.2855738401412964,
0.1301594078540802,
0.0843053013086319,
-0.2262098640203476,
0.016882188618183136,
0.27529871463775635,
-0.37707749009132385,
0.004854608327150345,
0.24194735288619995,
0.23936814069747925,
-0.6506144404411316,
0.38169029355049133,
0.4083285629749298,
0.12481167167425156,
0.1871681660413742,
0.07620734721422195,
0.059598952531814575,
0.16143424808979034,
0.16746219992637634,
0.21754571795463562,
0.21547582745552063,
0.0014714673161506653,
0.30661192536354065,
0.14694254100322723,
0.5802823901176453,
-0.35495108366012573,
-0.06541977822780609,
0.20212401449680328,
0.016342822462320328,
0.3350752294063568,
0.4409964382648468,
-0.2998601496219635,
-0.128774031996727,
0.247085303068161,
-0.3163166642189026,
0.2875592112541199,
0.2036585807800293,
0.07500405609607697,
0.6348122954368591,
0.06647217273712158,
0.03716210648417473,
0.44659143686294556,
-0.05898632854223251,
-0.5137968063354492,
0.019000425934791565,
0.09777805954217911,
-0.10535954684019089,
-0.08197294175624847,
0.5677700638771057,
-0.039214830845594406,
-0.2483871728181839,
-0.04749784618616104,
0.12345872819423676,
0.06996040791273117,
-0.006069796159863472,
-0.42089080810546875,
-0.0004838332533836365,
-0.24757397174835205,
-0.1170148104429245,
0.18215714395046234,
-0.29997140169143677,
0.3403626084327698,
0.06998417526483536,
0.0929245874285698,
-0.03932691365480423,
0.3636165261268616,
0.21262052655220032,
0.07401318848133087,
-0.0034261494874954224,
0.032867856323719025,
-0.1711399406194687,
-0.06524138152599335,
-0.11634920537471771,
0.1826278567314148,
0.1764797568321228,
-0.07687918841838837,
-0.3350027799606323,
0.11817212402820587,
0.3057115972042084,
-0.2009139508008957,
0.18479572236537933,
0.20097249746322632,
-0.1196330189704895,
0.07352019846439362,
0.11324258148670197,
0.11038199067115784,
-0.0363604761660099,
0.010140549391508102,
0.1846970170736313,
0.07539953291416168,
-0.412601113319397,
0.3575335144996643,
-0.14876338839530945,
-0.19228479266166687,
-0.1361563503742218,
0.009497478604316711,
-0.27467089891433716,
-0.18557524681091309,
0.5705318450927734,
-0.35071760416030884,
0.06341688334941864,
-0.17474043369293213,
0.011593680828809738,
-0.09909981489181519,
0.5687587857246399,
0.07023759931325912,
0.31518277525901794,
-0.16612669825553894,
-0.28579944372177124,
-0.34183719754219055,
-0.1547006070613861,
-0.273369163274765,
-0.19083291292190552,
0.11863478273153305,
0.3484732508659363,
-0.22032123804092407,
0.17137683928012848,
-0.07506923377513885,
0.044924888759851456,
0.09843046218156815,
0.2884824275970459,
-0.057217732071876526,
-0.24400006234645844,
-0.25534719228744507,
0.1981174200773239,
-0.13027453422546387,
-0.21693813800811768,
0.002358715981245041,
-0.11722305417060852,
-0.2558829188346863,
0.12788033485412598,
-0.12610188126564026,
0.5148493051528931,
0.4746750593185425,
-0.11358591914176941,
0.13917356729507446,
0.4700130820274353,
0.17890605330467224,
0.0078663881868124,
-0.3639885187149048,
0.0673501193523407,
-0.28792765736579895,
0.4713398218154907,
-0.08281147480010986,
0.19498655200004578,
-0.32800745964050293,
0.044857438653707504,
-0.1578528881072998,
0.14213301241397858,
0.034707002341747284,
-0.1326417773962021,
-0.28428366780281067,
-0.03887709230184555,
-0.3516288995742798,
0.21116693317890167,
0.7949637770652771,
0.4312688410282135,
-0.32260116934776306,
-0.04992752522230148,
0.15033559501171112,
-0.12830370664596558,
-0.09803742170333862,
-0.39854690432548523,
-0.09303483366966248,
0.16712330281734467,
0.15795275568962097,
0.40696629881858826,
-0.09274379909038544,
-0.7600868940353394,
-0.22481834888458252,
0.19736650586128235,
-0.2541639506816864,
-0.003032548353075981,
0.03450552374124527,
0.37358707189559937,
-0.10248716175556183,
-0.06690886616706848,
0.4098193645477295,
0.15005332231521606,
-0.3145955801010132,
0.08253213763237,
-0.3006184697151184
] |
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.09331844747066498,
-0.018012143671512604,
-0.04407792165875435,
0.20460958778858185,
0.018559783697128296,
0.22938421368598938,
0.3818901777267456,
0.31006720662117004,
-0.052347488701343536,
0.056058451533317566,
0.17316684126853943,
0.2897084057331085,
-0.25346171855926514,
0.1429707258939743,
0.18269631266593933,
-0.3846266269683838,
-0.04094908386468887,
0.12388412654399872,
0.21326248347759247,
0.03404412418603897,
0.22808265686035156,
-0.15668067336082458,
-0.3243977427482605,
0.08330652862787247,
-0.37877506017684937,
-0.46078506112098694,
-0.24209122359752655,
0.011334531009197235,
-0.2463061660528183,
-0.22690466046333313,
0.21153169870376587,
-0.22302159667015076,
0.032552845776081085,
0.31776994466781616,
-0.00011655381240416318,
-0.015661034733057022,
0.2516828775405884,
-0.14305034279823303,
-0.14284513890743256,
-0.16849811375141144,
-0.3076053559780121,
-0.06144968420267105,
0.292765349149704,
-0.19626939296722412,
0.016493000090122223,
-0.16572624444961548,
0.1286051869392395,
-0.09317736327648163,
0.4861189126968384,
0.43587031960487366,
0.10815568268299103,
-0.07512561976909637,
0.16646526753902435,
0.07563576102256775,
0.11324277520179749,
0.28193116188049316,
-0.09770146757364273,
0.11791124939918518,
-0.17264145612716675,
-0.07621583342552185,
-0.21152657270431519,
0.05354819446802139,
0.18237565457820892,
0.15667377412319183,
0.12568438053131104,
-0.08416814357042313,
-0.4509289860725403,
-0.4550996720790863,
-0.12960094213485718,
0.4934631884098053,
0.5426619648933411,
-0.3339477479457855,
-0.30452972650527954,
-0.3151066303253174,
0.07164842635393143,
-0.22396762669086456,
-0.10044477134943008,
0.657910943031311,
-0.09952676296234131,
0.032645609229803085,
-0.21738554537296295,
-0.24420684576034546,
-0.29797112941741943,
0.13798627257347107,
0.04402866214513779,
0.41497111320495605,
-0.07046534866094589,
0.06224846467375755,
0.3162669837474823,
0.21785937249660492,
0.2886412739753723,
0.052134864032268524,
-0.054453570395708084,
0.2982504367828369,
-0.2664630115032196,
-0.30063778162002563,
-0.15050101280212402,
-0.37688562273979187,
0.18791282176971436,
0.28977930545806885,
0.13688892126083374,
-0.0967511460185051,
-0.13700424134731293,
0.09684856235980988,
0.45552772283554077,
0.269103080034256,
0.1787382960319519,
0.5023191571235657,
-0.03261781483888626,
0.023678159341216087,
-0.006618112325668335,
-0.1938537061214447,
-0.12317989766597748,
-0.26496902108192444,
-0.08597561717033386,
0.05281476676464081,
-0.010835256427526474,
0.04016544297337532,
-0.27103161811828613,
-0.3356517255306244,
-0.36712169647216797,
-0.11592592298984528,
0.11288047581911087,
0.21405208110809326,
0.0547788068652153,
-0.08694450557231903,
-0.3301883935928345,
0.2288997769355774,
-0.3444640040397644,
-0.07703986018896103,
-0.1473354995250702,
0.2890578508377075,
-0.44305098056793213,
0.12140712887048721,
0.1500442773103714,
0.021120239049196243,
0.38252726197242737,
-0.1478673666715622,
0.033254362642765045,
-0.3363253176212311,
0.19044256210327148,
-0.026132769882678986,
0.16685345768928528,
0.3849906921386719,
0.13372722268104553,
0.046486563980579376,
0.034387219697237015,
0.24364073574543,
-0.33239808678627014,
0.02219991758465767,
-0.44312775135040283,
-0.4673002362251282,
0.10608701407909393,
0.015360959805548191,
-0.074893519282341,
0.1824663132429123,
-0.24128809571266174,
0.2949681282043457,
0.004921704530715942,
-0.057735685259103775,
0.16393260657787323,
0.013581495732069016,
-0.1646174192428589,
-0.3053276538848877,
0.2806360721588135,
-0.02708660066127777,
-0.33634549379348755,
-0.02583424001932144,
-0.32410287857055664,
0.004952935501933098,
0.04513682425022125,
0.2634805142879486,
-0.3417489528656006,
0.4615696966648102,
-0.11729343235492706,
0.38665175437927246,
0.6255981922149658,
-0.26659688353538513,
-0.0927593931555748,
0.21992260217666626,
0.07376568019390106,
-0.2708793580532074,
-0.06501752883195877,
-0.06748335063457489,
0.30045652389526367,
0.09945783019065857,
-0.30130040645599365,
0.40733253955841064,
-0.2726258337497711,
-0.10132817178964615,
0.19033938646316528,
-0.2702426016330719,
0.2623760998249054,
-0.012560298666357994,
-0.10033133625984192,
-0.26141878962516785,
0.2502725124359131,
0.4529341459274292,
0.4291931986808777,
0.04575619101524353,
0.1852957159280777,
0.2299853265285492,
0.043648526072502136,
0.17431136965751648,
-0.1062081977725029,
-0.29317012429237366,
-0.34146422147750854,
-0.06248830631375313,
0.12571145594120026,
-0.07338178157806396,
0.0498066209256649,
-0.24404276907444,
-0.25456228852272034,
-0.17272238433361053,
0.07643889635801315,
-0.3039548993110657,
0.05008389800786972,
-0.4049411416053772,
0.3367560803890228,
-0.09298758208751678,
-0.28548043966293335,
0.02103983238339424,
-0.30299293994903564,
0.19376565515995026,
-0.3741205930709839,
0.17804843187332153,
0.02878945879638195,
-0.06636139750480652,
0.1689428836107254,
0.34353435039520264,
-0.05265066772699356,
-0.05930156633257866,
0.020559389144182205,
0.5714374780654907,
0.5855072736740112,
-0.11784790456295013,
-0.13751515746116638,
0.015659049153327942,
0.4043169915676117,
-0.49503156542778015,
0.15445995330810547,
-0.11349019408226013,
-0.015380487777292728,
0.002059563994407654,
-0.5048495531082153,
0.2872422933578491,
-0.44817444682121277,
0.3501090407371521,
0.2593265771865845,
0.11637455970048904,
-0.004246354103088379,
-0.1661790907382965,
-0.20563744008541107,
0.018675237894058228,
-0.18712899088859558,
-0.35571491718292236,
0.1887669563293457,
-0.031269364058971405,
-0.16773271560668945,
0.02177669107913971,
0.5045214295387268,
-0.2093382626771927,
0.06272556632757187,
-0.11325012892484665,
-0.004435092210769653,
-0.06865058839321136,
0.18485422432422638,
0.3737933933734894,
0.18042846024036407,
0.07573109865188599,
0.3668140470981598,
-0.1050652340054512,
-0.25592881441116333,
-0.059230413287878036,
0.051270656287670135,
0.23124796152114868,
0.47070473432540894,
-0.01246757060289383,
-0.30370017886161804,
-0.12056810408830643,
0.04913514852523804,
-0.039538074284791946,
0.2080676257610321,
0.13528870046138763,
-0.2522883117198944,
0.05776544660329819,
-0.3520680069923401,
-0.13496088981628418,
-0.5467682480812073,
-0.22394414246082306,
-0.13222399353981018,
-0.27805933356285095,
-0.11992979049682617,
-0.09838643670082092,
-0.021255871281027794,
-0.01853065751492977,
-0.1862567812204361,
0.0012152642011642456,
-0.1477629691362381,
0.18173916637897491,
0.3582044839859009,
-0.35151082277297974,
-0.1967381238937378,
0.04761222377419472,
0.16678708791732788,
0.6737979650497437,
0.28712406754493713,
0.09110485762357712,
-0.12306760996580124,
0.02872263640165329,
-0.24738621711730957,
0.18659189343452454,
-0.1735794097185135,
-0.01396346278488636,
0.1336764395236969,
0.16736844182014465,
-0.04903489351272583,
-0.3744684159755707,
-0.1865418255329132,
-0.24793146550655365,
-0.18759898841381073,
0.03657182678580284,
0.271595299243927,
0.15226806700229645,
-0.16943873465061188,
-0.7023667097091675,
-0.2842539846897125,
-0.24416372179985046,
0.2758948504924774,
-0.1915769875049591,
0.1825145184993744,
0.15253594517707825,
0.19241204857826233,
0.3374587893486023,
-0.014865173026919365,
-0.1065969243645668,
0.20257577300071716,
0.2754475474357605,
0.004536435008049011,
-0.41939878463745117,
-0.2563295364379883,
0.2754093408584595,
-0.02003929764032364,
0.13501569628715515,
0.09305765479803085,
-0.19247321784496307,
0.2536008656024933,
-0.23025201261043549,
-0.1527383029460907,
-0.030548974871635437,
0.00030862726271152496,
0.29787927865982056,
-0.19197292625904083,
0.2687249183654785,
-0.1498725712299347,
0.10615874826908112,
0.12939970195293427,
-0.13586226105690002,
0.2764899432659149,
-0.019510407000780106,
0.25276923179626465,
0.2697941064834595,
0.7958999872207642,
0.24563190340995789,
0.02495959773659706,
-0.3783942759037018,
-0.0816766619682312,
0.12543240189552307,
0.058140337467193604,
-0.01646360009908676,
0.1688448041677475,
-0.09301126003265381,
-0.1885494887828827,
0.08940023183822632,
0.24493354558944702,
-0.2968892455101013,
0.055852122604846954,
0.03948820009827614,
-0.3108977973461151,
-0.4277213215827942,
0.3284147381782532,
-0.387910395860672,
0.19000011682510376,
-0.11484183371067047,
0.0036375075578689575,
0.07479897141456604,
-0.1614018976688385,
-0.3007827699184418,
0.1252625584602356,
0.2318619191646576,
0.09324341267347336,
-0.4762071967124939,
-0.17688068747520447,
-0.23146414756774902,
-0.18615205585956573,
0.16720052063465118,
0.2446667104959488,
-0.0827636867761612,
-0.07847486436367035,
0.21899066865444183,
0.25064554810523987,
0.2507937550544739,
-0.09502378851175308,
-0.03877437859773636,
-0.036683544516563416,
0.1550467610359192,
-0.2871449291706085,
0.11778171360492706,
-0.3360716998577118,
0.29842332005500793,
0.09746316075325012,
-0.09038199484348297,
-0.4383295774459839,
-0.4115646183490753,
0.4284507930278778,
-0.012499124743044376,
-0.1128591001033783,
0.14446339011192322,
-0.14085239171981812,
-0.1821880042552948,
-0.04622362554073334,
0.09680105745792389,
0.36869165301322937,
-0.09267343580722809,
-0.19244644045829773,
0.1678459197282791,
-0.06477825343608856,
-0.031896524131298065,
0.13611164689064026,
-0.003485831432044506,
0.3259032964706421,
0.05833099037408829,
-0.1247311681509018,
0.38448503613471985,
0.15586750209331512,
0.0751599371433258,
0.31253862380981445,
-0.13880649209022522,
-0.1505507528781891,
0.18164196610450745,
-0.0805363729596138,
0.5899170637130737,
0.3286973237991333,
0.13702276349067688,
0.026352614164352417,
-0.09422416239976883,
-0.2090473622083664,
-0.270094633102417,
0.30848389863967896,
0.10496249049901962,
-0.1736939400434494,
-0.31261396408081055,
-0.6472587585449219,
0.33250829577445984,
0.18011774122714996,
-0.042464710772037506,
0.431341290473938,
0.26091164350509644,
-0.3862369954586029,
0.44322049617767334,
0.2118074595928192,
0.7920418977737427,
0.012737561017274857,
0.14754344522953033,
0.1756332516670227,
-0.27058079838752747,
0.6010879874229431,
-0.41574907302856445,
0.21808397769927979,
-0.23152723908424377,
-0.1738535761833191,
-0.049646250903606415,
-0.26883870363235474,
-0.03395988047122955,
0.43277794122695923,
-0.006656169891357422,
0.2928549647331238,
-0.06401054561138153,
0.01159968227148056,
-0.26147225499153137,
0.4319435656070709,
-0.09348591417074203,
-0.06703256070613861,
0.07831671833992004,
0.04381771385669708,
-0.13532821834087372,
-0.010201659053564072,
0.049706198275089264,
-0.07175564020872116,
-0.2648785710334778,
0.10495494306087494,
-0.3984520435333252,
0.041127659380435944,
-0.10096192359924316,
0.17649073898792267,
-0.12267176806926727,
-0.14095281064510345,
0.33356133103370667,
0.17613168060779572,
0.025563344359397888,
-0.007610321044921875,
-0.09461057931184769,
0.2742566168308258,
-0.18840938806533813,
-0.14894187450408936,
-0.040704406797885895,
0.057201117277145386,
0.4263286292552948,
0.15376010537147522,
-0.2795606851577759,
0.041129499673843384,
-0.19634005427360535,
-0.14615574479103088,
-0.04037833213806152,
0.31162041425704956,
0.15426890552043915,
-0.3274495303630829,
-0.17012269794940948,
0.18625184893608093,
0.04582327976822853,
-0.005372766405344009,
0.06349272280931473,
-0.02474864572286606,
-0.1771567463874817,
0.15705257654190063,
-0.02699916437268257,
-0.12441502511501312,
0.04412266984581947,
-0.13269692659378052,
0.04760485887527466,
0.07935597002506256,
0.36460912227630615,
0.07177437841892242,
-0.03712119907140732,
-0.22472086548805237,
0.29828959703445435,
0.4597318470478058,
-0.3562624454498291,
-0.007819327525794506,
-0.3759951889514923,
0.14225594699382782,
0.10809429734945297,
-0.1250564306974411,
0.11672911047935486,
0.32185500860214233,
-0.2142825722694397,
-0.45226404070854187,
0.004052046686410904,
0.4776448607444763,
-0.1817851960659027,
0.2796478569507599,
-0.29639264941215515,
0.17024284601211548,
-0.004110248759388924,
0.39818987250328064,
-0.18848372995853424,
0.20167841017246246,
0.09946838766336441,
0.35577598214149475,
0.042250096797943115,
0.09186708927154541,
0.1398097723722458,
-0.12596717476844788,
-0.10746406018733978,
0.03697960823774338,
0.14035381376743317,
-0.14370712637901306,
-0.08989483118057251,
0.15397466719150543,
-0.04611089080572128,
0.06167398393154144,
-0.22604334354400635,
-0.3256385326385498,
-0.174523264169693,
-0.07235264778137207,
0.005328930914402008,
-0.04443351551890373,
0.1831967830657959,
0.4326808452606201,
0.35816898941993713,
0.1834307610988617,
-0.18961434066295624,
0.1988261491060257,
-0.09629067778587341,
0.2902740240097046,
0.03510923311114311,
0.24742195010185242,
0.20765827596187592,
0.12593282759189606,
-0.26550978422164917,
-0.008930616080760956,
0.23364806175231934,
-0.3311529755592346,
0.000061817467212677,
0.18743355572223663,
0.2726077139377594,
-0.46876370906829834,
0.3732597231864929,
0.4829464554786682,
0.17075085639953613,
0.054336898028850555,
0.24561476707458496,
0.06583195179700851,
0.13642854988574982,
0.19679127633571625,
0.2603054642677307,
0.15902844071388245,
-0.010203752666711807,
0.3061124384403229,
0.08873516321182251,
0.5125870108604431,
-0.4226803183555603,
-0.03173074871301651,
0.15964819490909576,
0.0053545888513326645,
0.35063496232032776,
0.4653627276420593,
-0.23535604774951935,
-0.17762666940689087,
0.25437989830970764,
-0.3389163613319397,
0.32597824931144714,
0.2159123569726944,
0.16562293469905853,
0.6236853003501892,
0.04479479789733887,
0.06629768759012222,
0.3561083972454071,
-0.13596662878990173,
-0.5598912835121155,
0.16388073563575745,
0.0862867459654808,
-0.050728991627693176,
-0.21310997009277344,
0.6076285243034363,
-0.059178296476602554,
-0.21036846935749054,
-0.04596495255827904,
0.14844496548175812,
0.05353480949997902,
0.01840575970709324,
-0.3480507731437683,
-0.11280655115842819,
-0.2202853113412857,
-0.03550054505467415,
0.16825369000434875,
-0.3167334794998169,
0.39556726813316345,
0.023352786898612976,
0.05068632587790489,
-0.07781244814395905,
0.31855452060699463,
0.3223927319049835,
0.161241352558136,
-0.051693402230739594,
-0.03849878907203674,
-0.18337981402873993,
-0.12029840052127838,
0.05491693317890167,
0.10423363000154495,
0.13933148980140686,
-0.008013289421796799,
-0.3288947641849518,
0.025801226496696472,
0.2802726626396179,
-0.1753757894039154,
0.21655230224132538,
0.3208753764629364,
0.026130311191082,
-0.046778056770563126,
0.15684489905834198,
0.093731589615345,
-0.05060989409685135,
-0.04794396087527275,
0.19924472272396088,
0.010978300124406815,
-0.3903978765010834,
0.30621030926704407,
-0.05602509528398514,
-0.18200021982192993,
-0.08713363856077194,
0.021207362413406372,
-0.26223868131637573,
-0.12150593101978302,
0.3463391065597534,
-0.2991252839565277,
0.0790506899356842,
-0.16138722002506256,
0.0048942770808935165,
-0.05721449479460716,
0.628512442111969,
0.13396471738815308,
0.2206524908542633,
-0.22744601964950562,
-0.288006067276001,
-0.3233339488506317,
-0.16009464859962463,
-0.3285853862762451,
-0.19750110805034637,
0.1390625238418579,
0.3364282250404358,
-0.2651442885398865,
0.17104652523994446,
-0.18043218553066254,
0.08042843639850616,
0.13381388783454895,
0.2941439151763916,
-0.12289786338806152,
-0.22381345927715302,
-0.25817787647247314,
0.14294768869876862,
-0.11188635230064392,
-0.2786239683628082,
0.002092476934194565,
0.014958634041249752,
-0.29385027289390564,
0.19197113811969757,
-0.02574332058429718,
0.4331861734390259,
0.478718101978302,
-0.21020779013633728,
0.1381002813577652,
0.5317721366882324,
0.24466079473495483,
0.03736557811498642,
-0.3966122567653656,
0.010310282930731773,
-0.3066250681877136,
0.35140764713287354,
-0.05836395546793938,
0.2431870698928833,
-0.3306995630264282,
0.03084794618189335,
-0.17172735929489136,
0.18544434010982513,
0.022396117448806763,
-0.12885276973247528,
-0.33400893211364746,
-0.05164936184883118,
-0.34993976354599,
0.22408844530582428,
0.7802202701568604,
0.472425252199173,
-0.31363019347190857,
-0.05463680624961853,
0.16969279944896698,
-0.09948185086250305,
-0.08105465769767761,
-0.41019174456596375,
-0.17437392473220825,
0.16504310071468353,
0.13397514820098877,
0.393922358751297,
-0.1402807980775833,
-0.7208999991416931,
-0.16388478875160217,
0.1605282425880432,
-0.10279829055070877,
0.09483097493648529,
0.09756441414356232,
0.26382458209991455,
-0.12343037128448486,
0.0006559230387210846,
0.4191995859146118,
0.07783898711204529,
-0.30939504504203796,
0.056699495762586594,
-0.30028343200683594
] |
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.040321771055459976,
0.02868291735649109,
-0.05983377993106842,
0.16467401385307312,
-0.039139047265052795,
0.20289018750190735,
0.4111507534980774,
0.3333022892475128,
-0.08382657170295715,
0.04181875288486481,
0.15812590718269348,
0.30084478855133057,
-0.19782353937625885,
0.15138091146945953,
0.1966463327407837,
-0.3646211624145508,
-0.058005280792713165,
0.1984986960887909,
0.22895805537700653,
-0.0036904998123645782,
0.25620126724243164,
-0.10712899267673492,
-0.3044232428073883,
0.12092803418636322,
-0.32318100333213806,
-0.46185311675071716,
-0.22958870232105255,
-0.031139425933361053,
-0.2734035849571228,
-0.19202086329460144,
0.20997101068496704,
-0.1823354959487915,
0.03209163621068001,
0.30542442202568054,
-0.00011610495130298659,
-0.010880861431360245,
0.24656641483306885,
-0.10877057164907455,
-0.11473795771598816,
-0.22363676130771637,
-0.37851303815841675,
-0.03036421351134777,
0.3681843876838684,
-0.13753944635391235,
0.005615513771772385,
-0.25173234939575195,
0.12258967012166977,
-0.1782119870185852,
0.508732795715332,
0.4407337009906769,
0.11155961453914642,
0.0035521015524864197,
0.176753431558609,
0.10351619124412537,
0.042403414845466614,
0.35954153537750244,
-0.10656993836164474,
0.09570814669132233,
-0.15450841188430786,
-0.10494901239871979,
-0.12685462832450867,
0.04060213267803192,
0.16669094562530518,
0.19255240261554718,
0.10879870504140854,
-0.035980019718408585,
-0.36446601152420044,
-0.49005940556526184,
-0.12549877166748047,
0.5456267595291138,
0.60051029920578,
-0.3356676697731018,
-0.33388131856918335,
-0.27988025546073914,
0.07615529745817184,
-0.22879023849964142,
-0.1258220374584198,
0.6406731605529785,
-0.11848114430904388,
0.029166288673877716,
-0.14757661521434784,
-0.2527889907360077,
-0.28962868452072144,
0.139794260263443,
0.047670237720012665,
0.4324972331523895,
-0.08437331020832062,
0.05834634602069855,
0.26399439573287964,
0.2229854017496109,
0.3153958320617676,
-0.003420453518629074,
-0.08135399222373962,
0.2925683856010437,
-0.24249501526355743,
-0.2924630641937256,
-0.17155948281288147,
-0.39744076132774353,
0.13248369097709656,
0.29862046241760254,
0.13614098727703094,
-0.08381710946559906,
-0.19492103159427643,
0.13451284170150757,
0.46787235140800476,
0.20583473145961761,
0.23960727453231812,
0.479048490524292,
-0.001680169254541397,
-0.02633470855653286,
0.01808946207165718,
-0.18623751401901245,
-0.020824071019887924,
-0.2293931096792221,
-0.029344089329242706,
0.07501750439405441,
0.12169763445854187,
0.06604543328285217,
-0.25642573833465576,
-0.3403441905975342,
-0.3157753348350525,
-0.18481415510177612,
0.10665000975131989,
0.1325049251317978,
0.08282490074634552,
-0.08000745624303818,
-0.3198453187942505,
0.27926507592201233,
-0.3513965606689453,
-0.1381855607032776,
-0.12972134351730347,
0.21638751029968262,
-0.4161949157714844,
0.1454455703496933,
0.11283324658870697,
-0.0038960129022598267,
0.39223751425743103,
-0.08318307995796204,
0.02014937251806259,
-0.3755841553211212,
0.2846875488758087,
0.017129668965935707,
0.18918639421463013,
0.37796923518180847,
0.1809568554162979,
0.04406164586544037,
0.05984591320157051,
0.13182441890239716,
-0.3288021385669708,
-0.004824355244636536,
-0.39713191986083984,
-0.42488396167755127,
-0.03210531920194626,
0.028271902352571487,
-0.041499681770801544,
0.1902058869600296,
-0.26723453402519226,
0.35101982951164246,
-0.002894081175327301,
-0.054686594754457474,
0.20169202983379364,
0.027716349810361862,
-0.17592473328113556,
-0.3253221809864044,
0.25098925828933716,
0.01488107442855835,
-0.38576847314834595,
-0.03916951268911362,
-0.37690457701683044,
-0.0401923842728138,
-0.018491029739379883,
0.16504336893558502,
-0.3774425685405731,
0.48332786560058594,
-0.11272714287042618,
0.4063953757286072,
0.6908683776855469,
-0.19897466897964478,
-0.03407933562994003,
0.23109130561351776,
0.12390729784965515,
-0.2687207758426666,
-0.11322282999753952,
-0.05450570210814476,
0.30316364765167236,
0.1168355643749237,
-0.4216470420360565,
0.38430947065353394,
-0.307701975107193,
-0.12684793770313263,
0.2832002341747284,
-0.2548280656337738,
0.24401549994945526,
-0.06546463817358017,
-0.08254173398017883,
-0.25432416796684265,
0.253876268863678,
0.3207099437713623,
0.49200597405433655,
0.028029728680849075,
0.18014436960220337,
0.19091305136680603,
0.061657894402742386,
0.21790921688079834,
-0.0664328783750534,
-0.30250266194343567,
-0.3309568762779236,
-0.07930456101894379,
0.1560164839029312,
-0.07121197879314423,
0.005827024579048157,
-0.26461514830589294,
-0.2066114842891693,
-0.17261356115341187,
0.035185009241104126,
-0.33874061703681946,
0.05947025865316391,
-0.3565596640110016,
0.22108978033065796,
-0.1259915828704834,
-0.4023616909980774,
0.02179126814007759,
-0.235951766371727,
0.24210037291049957,
-0.435048907995224,
0.1747664511203766,
0.064715676009655,
-0.08167753368616104,
0.12863704562187195,
0.2814123034477234,
-0.07140547782182693,
-0.11383745074272156,
-0.0043462952598929405,
0.5958955883979797,
0.5878081321716309,
-0.026442788541316986,
-0.13469091057777405,
0.04325936734676361,
0.40559449791908264,
-0.5084709525108337,
0.21291261911392212,
-0.05998469516634941,
0.016007792204618454,
0.008107267320156097,
-0.45837321877479553,
0.3185172975063324,
-0.45486441254615784,
0.3451867401599884,
0.20450858771800995,
0.12809234857559204,
0.015454774722456932,
-0.1400160938501358,
-0.2886721193790436,
0.026416361331939697,
-0.23690231144428253,
-0.38427734375,
0.18044011294841766,
-0.04825299233198166,
-0.16476087272167206,
0.06235617771744728,
0.4256390333175659,
-0.21522115170955658,
0.12373517453670502,
-0.11507480591535568,
0.009507626295089722,
-0.04332356154918671,
0.13877584040164948,
0.4403602182865143,
0.21068410575389862,
0.05267653986811638,
0.35904058814048767,
-0.09932989627122879,
-0.24843081831932068,
-0.05966471508145332,
0.13574790954589844,
0.225834459066391,
0.43771854043006897,
-0.05570423603057861,
-0.40134933590888977,
-0.09798182547092438,
0.002690177410840988,
-0.02148432470858097,
0.16222958266735077,
0.08480377495288849,
-0.2820228934288025,
0.07944891601800919,
-0.38133472204208374,
-0.14990060031414032,
-0.5209009051322937,
-0.2775149643421173,
-0.10699759423732758,
-0.2646979093551636,
-0.16758295893669128,
-0.09833988547325134,
0.003045249730348587,
-0.026530606672167778,
-0.1790216565132141,
-0.05681224167346954,
-0.17165187001228333,
0.20673255622386932,
0.35746192932128906,
-0.3144453763961792,
-0.1490800678730011,
0.05074520781636238,
0.2032427340745926,
0.6589838862419128,
0.2827358841896057,
0.05394309014081955,
-0.10182756185531616,
0.005201002582907677,
-0.2792685925960541,
0.22230330109596252,
-0.18854635953903198,
-0.010369691997766495,
0.15800829231739044,
0.18674874305725098,
0.0028784722089767456,
-0.38139545917510986,
-0.25664642453193665,
-0.24401259422302246,
-0.177808478474617,
-0.018232528120279312,
0.20755818486213684,
0.09968021512031555,
-0.1586858481168747,
-0.7297606468200684,
-0.29716089367866516,
-0.18672063946723938,
0.24421818554401398,
-0.25536519289016724,
0.21988725662231445,
0.20174193382263184,
0.15176914632320404,
0.3269977569580078,
0.021453306078910828,
-0.06577334553003311,
0.20235666632652283,
0.2355845868587494,
-0.000492386519908905,
-0.44092023372650146,
-0.199934720993042,
0.3105663061141968,
-0.030850084498524666,
0.19857975840568542,
0.03157477825880051,
-0.17949539422988892,
0.2157319039106369,
-0.18783269822597504,
-0.06762686371803284,
-0.05776514112949371,
-0.005910241976380348,
0.29335153102874756,
-0.1467362642288208,
0.25939780473709106,
-0.15763160586357117,
0.08947612345218658,
0.11739890277385712,
-0.1268904209136963,
0.2416573166847229,
0.025677530094981194,
0.3007256090641022,
0.20903699100017548,
0.7162436842918396,
0.21691985428333282,
-0.04961172118782997,
-0.30788254737854004,
-0.1198219284415245,
0.12274540215730667,
0.08320026844739914,
-0.06935635209083557,
0.060177791863679886,
-0.056551024317741394,
-0.12304645776748657,
0.05713139474391937,
0.22249731421470642,
-0.3131633698940277,
0.0492437481880188,
0.019800670444965363,
-0.38517215847969055,
-0.43638741970062256,
0.29140686988830566,
-0.43924516439437866,
0.18465390801429749,
-0.08337170630693436,
0.01553923636674881,
0.09900498390197754,
-0.08828764408826828,
-0.338796466588974,
0.17838823795318604,
0.25239038467407227,
0.06755031645298004,
-0.39323654770851135,
-0.13682204484939575,
-0.17243227362632751,
-0.16029556095600128,
0.13636386394500732,
0.22373510897159576,
-0.08130296319723129,
-0.010578684508800507,
0.20969617366790771,
0.2643868923187256,
0.2860429286956787,
-0.14419499039649963,
-0.08684200048446655,
-0.06860727071762085,
0.1527087539434433,
-0.3193496763706207,
0.10822872817516327,
-0.2728942334651947,
0.37313398718833923,
0.047841768711805344,
-0.062420204281806946,
-0.35230308771133423,
-0.46239033341407776,
0.4459834098815918,
-0.022501265630126,
-0.10897696018218994,
0.13174977898597717,
-0.12187851965427399,
-0.20836424827575684,
0.016591543331742287,
0.07180563360452652,
0.3153069019317627,
-0.15713444352149963,
-0.13445274531841278,
0.11000780761241913,
-0.08137111365795135,
-0.05635776370763779,
0.15612474083900452,
-0.022292226552963257,
0.3218560516834259,
0.09128374606370926,
-0.10566169023513794,
0.3978518843650818,
0.09259583055973053,
0.02041865512728691,
0.2542867660522461,
-0.1303011178970337,
-0.17568457126617432,
0.15564954280853271,
-0.12783931195735931,
0.5831707715988159,
0.28375422954559326,
0.12742172181606293,
0.039048463106155396,
-0.10546237230300903,
-0.21308182179927826,
-0.2523537874221802,
0.24076756834983826,
0.204850435256958,
-0.1252409666776657,
-0.23709872364997864,
-0.6877887845039368,
0.3460373282432556,
0.12995100021362305,
-0.04631925746798515,
0.5394687652587891,
0.28738969564437866,
-0.33302074670791626,
0.4225706458091736,
0.2015984058380127,
0.7477275729179382,
0.07628551870584488,
0.07329407334327698,
0.17544952034950256,
-0.3295336961746216,
0.5686730742454529,
-0.3917844295501709,
0.14846818149089813,
-0.20931975543498993,
-0.18464937806129456,
-0.12174849957227707,
-0.2601589858531952,
-0.002402357757091522,
0.37963181734085083,
-0.020653728395700455,
0.30909430980682373,
-0.122018963098526,
-0.03883138671517372,
-0.18526966869831085,
0.436994731426239,
-0.1578679382801056,
-0.03863280639052391,
0.11717540770769119,
0.04970811307430267,
-0.17018593847751617,
-0.03154177591204643,
0.0686156153678894,
-0.09705950319766998,
-0.23836606740951538,
0.08978861570358276,
-0.4137589931488037,
-0.003986004739999771,
-0.0936347022652626,
0.17431630194187164,
-0.11657628417015076,
-0.1285838931798935,
0.33103570342063904,
0.20149312913417816,
0.07694999873638153,
-0.046999622136354446,
-0.08624722063541412,
0.2644333243370056,
-0.15505817532539368,
-0.08023479580879211,
-0.11832457780838013,
0.007897726260125637,
0.42446643114089966,
0.17772337794303894,
-0.3372209072113037,
-0.0016752108931541443,
-0.14748398959636688,
-0.1404351443052292,
0.03170593082904816,
0.3100643754005432,
0.20730432868003845,
-0.307929664850235,
-0.05977116897702217,
0.20926865935325623,
0.0176888145506382,
0.030095141381025314,
0.07010698318481445,
0.032398078590631485,
-0.1881755143404007,
0.20461952686309814,
-0.005717858672142029,
-0.16750533878803253,
0.0380120575428009,
-0.17537212371826172,
0.06190374866127968,
0.1214929074048996,
0.35585272312164307,
0.06765072047710419,
-0.037421684712171555,
-0.23572000861167908,
0.3150266110897064,
0.4389846622943878,
-0.32371610403060913,
-0.027406364679336548,
-0.44231459498405457,
0.18740002810955048,
0.12536436319351196,
-0.20002371072769165,
0.05561867356300354,
0.3773563802242279,
-0.28827965259552,
-0.45612943172454834,
0.08607331663370132,
0.3866673707962036,
-0.1715877801179886,
0.31588083505630493,
-0.26767006516456604,
0.09841278195381165,
0.055210180580616,
0.38801681995391846,
-0.18367692828178406,
0.24034841358661652,
0.2049378752708435,
0.3693642020225525,
0.06575088948011398,
0.09621238708496094,
0.19039463996887207,
-0.16573217511177063,
-0.0842861458659172,
0.0015348847955465317,
0.13751740753650665,
-0.1580260694026947,
-0.12334643304347992,
0.15133032202720642,
-0.09740819036960602,
0.017409412190318108,
-0.18994662165641785,
-0.29512864351272583,
-0.23185044527053833,
-0.05452897399663925,
-0.03320346027612686,
-0.06778188794851303,
0.17075257003307343,
0.4092102646827698,
0.37387022376060486,
0.13425391912460327,
-0.21210886538028717,
0.12073526531457901,
-0.08661219477653503,
0.32350218296051025,
0.03028113767504692,
0.29241442680358887,
0.1557212918996811,
0.07963132858276367,
-0.26414206624031067,
0.004311598837375641,
0.25128018856048584,
-0.3833703100681305,
0.020156975835561752,
0.22846414148807526,
0.24739152193069458,
-0.542963981628418,
0.402904212474823,
0.46168211102485657,
0.15104767680168152,
0.12516573071479797,
0.16137409210205078,
0.07373780757188797,
0.16382867097854614,
0.19374814629554749,
0.22261039912700653,
0.2313714623451233,
-0.025392213836312294,
0.2896287143230438,
0.08568963408470154,
0.5033314824104309,
-0.39933913946151733,
-0.0661391019821167,
0.18732354044914246,
-0.025237414985895157,
0.39621779322624207,
0.43889492750167847,
-0.2788350582122803,
-0.16009846329689026,
0.2630690336227417,
-0.31446895003318787,
0.257874995470047,
0.15247175097465515,
0.0974409282207489,
0.5958576798439026,
0.07111333310604095,
0.014082852751016617,
0.43748190999031067,
-0.04861483722925186,
-0.5118052959442139,
0.12021858990192413,
0.08198617398738861,
-0.10598207265138626,
-0.07827578485012054,
0.6175237894058228,
-0.052576955407857895,
-0.2081810086965561,
-0.04922017082571983,
0.13590145111083984,
0.09032085537910461,
0.017596673220396042,
-0.4294460713863373,
-0.05283999443054199,
-0.26673781871795654,
-0.08939027786254883,
0.15850774943828583,
-0.29506075382232666,
0.32041776180267334,
0.07350801676511765,
0.07175992429256439,
-0.07714478671550751,
0.3561192452907562,
0.28114110231399536,
0.10605794191360474,
-0.034650132060050964,
-0.0461558997631073,
-0.13544078171253204,
-0.09426994621753693,
-0.009774193167686462,
0.2205355018377304,
0.15718719363212585,
-0.04359491914510727,
-0.35758882761001587,
0.10804776102304459,
0.2932518422603607,
-0.19909116625785828,
0.24992847442626953,
0.23949985206127167,
-0.061145633459091187,
0.0016485843807458878,
0.13251057267189026,
0.11824363470077515,
-0.023855339735746384,
-0.015528563410043716,
0.17638461291790009,
0.06158068776130676,
-0.41816648840904236,
0.34361255168914795,
-0.09685806930065155,
-0.14697644114494324,
-0.11981259286403656,
0.024331986904144287,
-0.2717854976654053,
-0.14484994113445282,
0.4898408353328705,
-0.2937387526035309,
0.049890778958797455,
-0.17401790618896484,
0.011580966413021088,
-0.07375982403755188,
0.5757771730422974,
0.10351739823818207,
0.2875744700431824,
-0.18912164866924286,
-0.27786463499069214,
-0.3347233235836029,
-0.17710164189338684,
-0.24440687894821167,
-0.16438312828540802,
0.11530449241399765,
0.34534698724746704,
-0.19904881715774536,
0.17235325276851654,
-0.09624633193016052,
0.05536520853638649,
0.12450964003801346,
0.3176034986972809,
-0.07206124067306519,
-0.2481210082769394,
-0.26123493909835815,
0.19507980346679688,
-0.11447163671255112,
-0.23095595836639404,
-0.00033622607588768005,
-0.0747900977730751,
-0.27155643701553345,
0.16877038776874542,
-0.06199129670858383,
0.5020118355751038,
0.4536442458629608,
-0.1745004653930664,
0.1170867457985878,
0.5048571228981018,
0.21035051345825195,
0.04130198061466217,
-0.37596243619918823,
0.05233389884233475,
-0.3360319435596466,
0.4153877794742584,
-0.05409795418381691,
0.22031335532665253,
-0.31312090158462524,
0.01946648582816124,
-0.1805739551782608,
0.15909002721309662,
-0.002538088709115982,
-0.15743081271648407,
-0.3457919657230377,
-0.06791272759437561,
-0.33832022547721863,
0.1855577528476715,
0.7595592141151428,
0.42158398032188416,
-0.3276265859603882,
-0.032350651919841766,
0.16780592501163483,
-0.09361165016889572,
-0.07497537136077881,
-0.3846348822116852,
-0.12076729536056519,
0.11813364923000336,
0.15828683972358704,
0.3857814371585846,
-0.08686719089746475,
-0.7019296288490295,
-0.18412737548351288,
0.18196037411689758,
-0.18547925353050232,
0.08952319622039795,
0.09270584583282471,
0.3579920530319214,
-0.09053010493516922,
-0.045503661036491394,
0.39203354716300964,
0.1428619623184204,
-0.2787572145462036,
0.04897144064307213,
-0.29140758514404297
] |
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.05911967158317566,
-0.08479117602109909,
0.051376838237047195,
0.08934842795133591,
0.05012231320142746,
0.06170959025621414,
0.32124605774879456,
0.4181888997554779,
-0.04780903458595276,
-0.09947517514228821,
-0.10500576347112656,
0.2905611991882324,
0.0789177417755127,
-0.14244228601455688,
0.22023391723632812,
-0.08854816854000092,
0.3397550880908966,
0.027373284101486206,
0.17828193306922913,
-0.20898297429084778,
-0.007720597088336945,
0.0045569781213998795,
-0.15893086791038513,
0.040878526866436005,
-0.40965035557746887,
-0.06494570523500443,
-0.19326110184192657,
-0.11585930734872818,
-0.37638455629348755,
-0.4542701542377472,
0.017773577943444252,
0.11248452961444855,
0.4515712857246399,
0.23573976755142212,
-0.0001270274369744584,
-0.30086565017700195,
0.015437174588441849,
-0.0012037977576255798,
0.011203378438949585,
0.3585987985134125,
0.19096139073371887,
-0.5831571817398071,
-0.12455505132675171,
-0.25491493940353394,
0.26530230045318604,
-0.5587724447250366,
-0.29600319266319275,
0.22782427072525024,
-0.010379396378993988,
-0.11841604858636856,
0.09640326350927353,
-0.14085990190505981,
-0.060327451676130295,
0.4277181923389435,
0.09496527165174484,
0.02583080530166626,
-0.0870465561747551,
-0.23614075779914856,
-0.14812815189361572,
-0.24969616532325745,
-0.019383378326892853,
0.20226110517978668,
-0.04803531616926193,
-0.2493414431810379,
0.346199095249176,
-0.033411771059036255,
-0.17995771765708923,
-0.022580940276384354,
0.3381361961364746,
0.22315064072608948,
0.36863717436790466,
-0.0917310044169426,
0.07642034441232681,
-0.26638472080230713,
-0.15127065777778625,
-0.13329127430915833,
-0.15262636542320251,
0.1295679658651352,
0.3435026705265045,
-0.0665261447429657,
-0.39928558468818665,
-0.08628282696008682,
0.20937058329582214,
0.2339634895324707,
-0.23377694189548492,
0.5117803812026978,
0.03492005914449692,
0.22417303919792175,
-0.2702217400074005,
-0.1453222781419754,
-0.1040046438574791,
-0.18281583487987518,
-0.1459909975528717,
0.4562894105911255,
-0.3604279160499573,
-0.38795700669288635,
0.08032847940921783,
-0.07795729488134384,
0.43373188376426697,
-0.2686178684234619,
-0.38367754220962524,
0.02868948131799698,
-0.006412135437130928,
-0.20137745141983032,
0.14446771144866943,
0.5048398375511169,
-0.265699177980423,
0.43785834312438965,
-0.09575335681438446,
-0.1229645162820816,
-0.4596579968929291,
-0.1897004246711731,
0.047117073088884354,
0.17094610631465912,
0.23458968102931976,
-0.2991545796394348,
-0.2995206117630005,
-0.03883122652769089,
0.2762618064880371,
0.2337452918291092,
-0.47531747817993164,
0.057648666203022,
-0.14133690297603607,
0.3265319764614105,
-0.127571702003479,
0.3444325625896454,
-0.3865055441856384,
0.18685734272003174,
-0.13302434980869293,
0.015349977649748325,
-0.1350691020488739,
-0.18003661930561066,
0.09897400438785553,
0.17257091403007507,
-0.24827435612678528,
0.2382361739873886,
0.3281416594982147,
0.12043122202157974,
-0.14697645604610443,
-0.08602677285671234,
0.42678987979888916,
-0.17270760238170624,
0.393649697303772,
0.1442783921957016,
0.1197035163640976,
0.3475680947303772,
-0.04413044825196266,
-0.12564560770988464,
-0.19792455434799194,
0.1588638722896576,
-0.5327584147453308,
-0.19502682983875275,
-0.05608029663562775,
0.021750405430793762,
0.005869841203093529,
-0.026353605091571808,
-0.36281275749206543,
0.3748991787433624,
0.4107341170310974,
-0.06625203788280487,
0.17581312358379364,
-0.3005605936050415,
-0.37779486179351807,
-0.21447786688804626,
-0.013327717781066895,
-0.07812462747097015,
-0.10852544009685516,
-0.007201649248600006,
0.2633262872695923,
0.3220472037792206,
0.3666018843650818,
0.6014494299888611,
-0.22513693571090698,
0.5065834522247314,
-0.24515601992607117,
0.3823336958885193,
0.4053669273853302,
-0.30211448669433594,
-0.7379571795463562,
0.3207942843437195,
0.1591740846633911,
0.2684873342514038,
-0.16128861904144287,
-0.018844757229089737,
0.5017417669296265,
0.09207052737474442,
0.05278395116329193,
0.2601006031036377,
-0.05028478801250458,
0.1213391050696373,
-0.31012701988220215,
-0.1889880746603012,
0.3550935983657837,
-0.5069993734359741,
0.19823478162288666,
0.05771215260028839,
0.03668392822146416,
0.4232870936393738,
0.4101301431655884,
0.06884677708148956,
0.29239144921302795,
0.2346356064081192,
-0.022850919514894485,
0.08898624777793884,
0.26902398467063904,
0.07330034673213959,
0.09403951466083527,
-0.08586595952510834,
-0.0804767832159996,
-0.11078409850597382,
0.1996038258075714,
-0.4010840654373169,
-0.19319108128547668,
-0.06629680097103119,
-0.09751652181148529,
-0.306663453578949,
0.0048550814390182495,
-0.10042704641819,
0.11778216063976288,
-0.04412892833352089,
0.21179868280887604,
0.10142640024423599,
-0.08258386701345444,
0.0912318304181099,
0.09645436704158783,
0.15638945996761322,
0.1161210760474205,
0.18236255645751953,
-0.2617766857147217,
0.2670947015285492,
0.1819370985031128,
-0.03767995163798332,
-0.21081361174583435,
0.09187139570713043,
0.10519329458475113,
0.03651129826903343,
0.1522088646888733,
0.390608012676239,
0.17170298099517822,
0.09538121521472931,
0.4608203172683716,
-0.03809468075633049,
0.011727745644748211,
-0.14514023065567017,
0.1543005108833313,
0.33069702982902527,
0.3767088055610657,
0.11662662774324417,
0.013811320066452026,
-0.2462920993566513,
0.18226106464862823,
0.019083987921476364,
0.13453248143196106,
-0.2554035186767578,
-0.20804928243160248,
0.21563521027565002,
-0.019212260842323303,
0.02406374365091324,
0.11250071227550507,
0.34272122383117676,
0.47784489393234253,
-0.10713459551334381,
-0.13532418012619019,
0.12465692311525345,
-0.6855460405349731,
-0.5055297017097473,
0.15784528851509094,
0.05310101434588432,
0.24582549929618835,
0.09888841956853867,
0.2933291494846344,
0.02776489406824112,
0.19589118659496307,
0.1115768551826477,
0.18519198894500732,
-0.06813870370388031,
-0.00985510554164648,
0.17791977524757385,
0.4578203856945038,
0.12719839811325073,
-0.25024542212486267,
0.2510233521461487,
0.02229916863143444,
0.4215031862258911,
-0.09490852802991867,
0.13411712646484375,
-0.21858537197113037,
-0.050642553716897964,
0.01370011456310749,
-0.06598571687936783,
-0.1964888870716095,
-0.43112149834632874,
-0.0915188193321228,
-0.031483303755521774,
0.3101441264152527,
-0.16400156915187836,
-0.10094137489795685,
0.01414462924003601,
0.12986810505390167,
0.117855504155159,
0.13072845339775085,
-0.04813922569155693,
-0.3677670359611511,
-0.04373941570520401,
-0.08232394605875015,
-0.09464221447706223,
0.26720061898231506,
0.13293670117855072,
-0.06954386830329895,
-0.41357117891311646,
-0.7815629243850708,
0.06334762275218964,
-0.1783965528011322,
0.06645996868610382,
-0.045736417174339294,
0.007566384971141815,
-0.4851563572883606,
0.16964974999427795,
-0.0277931597083807,
0.026742713525891304,
-0.19898651540279388,
-0.05234697461128235,
-0.34822171926498413,
0.12791280448436737,
0.15934789180755615,
-0.02517569810152054,
-0.016343535855412483,
0.0750916451215744,
-0.03678484261035919,
0.046604011207818985,
0.06857684254646301,
0.038010213524103165,
-0.20963071286678314,
-0.10176268965005875,
-0.0553877167403698,
-0.15679584443569183,
-0.5051305294036865,
-0.2839394211769104,
0.2793956696987152,
-0.14031463861465454,
-0.23298321664333344,
-0.031714409589767456,
-0.17853467166423798,
0.14001749455928802,
0.0878266766667366,
-0.55144864320755,
0.15839292109012604,
-0.21242794394493103,
0.19166016578674316,
-0.26028573513031006,
0.01726573333144188,
0.17556476593017578,
-0.13362780213356018,
0.07332538068294525,
0.00452432781457901,
0.009566772729158401,
-0.31304052472114563,
0.1630246639251709,
0.45659956336021423,
-0.07779208570718765,
0.47333553433418274,
0.2586418092250824,
0.8525638580322266,
0.015796508640050888,
0.032810430973768234,
0.21354499459266663,
-0.2784920334815979,
0.14360296726226807,
-0.2989121675491333,
-0.12927374243736267,
0.1617760807275772,
-0.17413625121116638,
0.18075241148471832,
0.4305213689804077,
0.17389020323753357,
-0.1181301698088646,
0.638839840888977,
-0.2887895107269287,
0.10471246391534805,
-0.09596548974514008,
0.2121327817440033,
-0.2236873209476471,
0.264128714799881,
0.23356547951698303,
-0.16420882940292358,
-0.6363508105278015,
-0.5240100026130676,
0.01573694869875908,
0.12684471905231476,
-0.061562977731227875,
0.13311205804347992,
-0.7828911542892456,
-0.06536215543746948,
-0.6774393916130066,
0.2748371362686157,
0.09826569259166718,
0.27370521426200867,
0.35631152987480164,
0.04079343378543854,
0.11432374268770218,
0.043132178485393524,
0.5410211086273193,
-0.14186535775661469,
-0.2233976274728775,
-0.08547773957252502,
-0.023105233907699585,
-0.27650701999664307,
-0.20002394914627075,
-0.0021076686680316925,
0.22030042111873627,
0.44531816244125366,
0.6754162311553955,
0.022268235683441162,
-0.18873120844364166,
-0.03479330614209175,
0.5779746174812317,
-0.16473661363124847,
-0.05801287293434143,
-0.3751468360424042,
-0.049884673207998276,
-0.3190494477748871,
0.01737596094608307,
-0.23421737551689148,
0.20882681012153625,
0.014280346222221851,
-0.26638028025627136,
-0.2042875438928604,
-0.2549256682395935,
-0.09576423466205597,
0.11313240230083466,
0.3051754832267761,
0.3400225043296814,
0.060196150094270706,
-0.2264736294746399,
0.23531889915466309,
0.007680724374949932,
-0.04527175426483154,
0.1082850992679596,
0.06937960535287857,
-0.14581343531608582,
0.0627233013510704,
0.3206306993961334,
0.09082908928394318,
0.018807493150234222,
0.5403693914413452,
-0.3301043212413788,
0.14533188939094543,
-0.08386647701263428,
0.40728598833084106,
0.36139538884162903,
0.11808032542467117,
-0.4515101909637451,
-0.3181847333908081,
0.18577143549919128,
0.16503965854644775,
-0.06916329264640808,
0.31945401430130005,
0.08456936478614807,
-0.1370803713798523,
0.4602779746055603,
0.0660703182220459,
0.9790542721748352,
-0.10605502128601074,
0.2866683006286621,
0.00008893013000488281,
-0.0036143548786640167,
0.3213834762573242,
-0.5782902240753174,
0.03960521146655083,
-0.24362608790397644,
0.19784460961818695,
0.03674440085887909,
0.07390248775482178,
-0.026067815721035004,
0.1841709464788437,
0.030751418322324753,
0.05589403584599495,
0.013466037809848785,
0.45947813987731934,
-0.37877383828163147,
0.4584659934043884,
0.12931911647319794,
-0.0789739191532135,
0.07714343070983887,
0.01613343134522438,
-0.10079985857009888,
-0.26208898425102234,
-0.17633295059204102,
0.20341435074806213,
-0.14379851520061493,
-0.29425448179244995,
-0.024579674005508423,
-0.2759604752063751,
-0.013633295893669128,
0.37812525033950806,
-0.03935876116156578,
-0.24653346836566925,
0.024282414466142654,
0.07880610972642899,
0.12353383004665375,
0.47104412317276,
0.019632771611213684,
0.15719826519489288,
0.017372198402881622,
0.23138582706451416,
0.20039044320583344,
-0.19124136865139008,
-0.017861275002360344,
0.041143499314785004,
-0.23711082339286804,
-0.06144022196531296,
-0.03818157687783241,
-0.3024939298629761,
-0.3547361195087433,
0.15590691566467285,
0.587948739528656,
-0.3762471079826355,
-0.10717372596263885,
0.07623881846666336,
-0.08698467910289764,
-0.13806483149528503,
0.03694688901305199,
-0.17183245718479156,
0.061156805604696274,
0.2732659578323364,
0.28217369318008423,
-0.42576172947883606,
-0.07564009726047516,
0.3695722818374634,
0.3958674371242523,
0.07058357447385788,
0.7585436105728149,
-0.28511834144592285,
-0.10893514752388,
-0.033667851239442825,
0.2628876566886902,
0.1575574427843094,
0.15217921137809753,
-0.2588041126728058,
-0.0959911048412323,
0.13000689446926117,
0.04613468796014786,
0.023439351469278336,
-0.19750113785266876,
-0.0054339393973350525,
-0.2912543714046478,
-0.20119304955005646,
-0.5601055026054382,
0.031235579401254654,
-0.3721831440925598,
0.1879940629005432,
0.27163052558898926,
0.17450696229934692,
-0.3227253258228302,
0.5348675847053528,
-0.13824497163295746,
0.07519856095314026,
0.17268428206443787,
0.1798042356967926,
-0.1967368870973587,
0.028332414105534554,
-0.09268933534622192,
-0.032315872609615326,
-0.05695272237062454,
0.155747652053833,
0.08882766962051392,
-0.1387360543012619,
-0.3546197712421417,
0.1914495825767517,
0.2820281684398651,
-0.1457914113998413,
-0.06356000900268555,
0.020025886595249176,
-0.1527111530303955,
-0.3770667314529419,
0.28155991435050964,
-0.041629254817962646,
0.11197157204151154,
0.10020259767770767,
0.29322826862335205,
-0.26684606075286865,
-0.0689946860074997,
-0.02810584008693695,
0.19563999772071838,
-0.0062507688999176025,
0.09285058081150055,
0.17380936443805695,
0.2828684151172638,
-0.07996750622987747,
-0.45425406098365784,
0.07022561132907867,
0.2185206115245819,
0.028732087463140488,
0.42319241166114807,
0.146066814661026,
0.10630664229393005,
0.07024024426937103,
-0.25059443712234497,
0.16186457872390747,
0.06352097541093826,
-0.41216856241226196,
0.3658711016178131,
0.009376591071486473,
-0.06015847623348236,
-0.12420523166656494,
0.32086411118507385,
-0.12238023430109024,
-0.13527384400367737,
0.004824645817279816,
0.4468998610973358,
0.23529577255249023,
-0.41041797399520874,
-0.06779059767723083,
0.40931689739227295,
-0.19093240797519684,
-0.04467686638236046,
0.2629774510860443,
-0.07583034783601761,
0.0785234197974205,
0.2926715314388275,
0.06258852779865265,
0.04271651804447174,
0.39373689889907837,
0.37232789397239685,
0.27664729952812195,
0.306533545255661,
0.0783282071352005,
0.025758858770132065,
-0.29419687390327454,
-0.13978759944438934,
0.3273918926715851,
-0.15839746594429016,
0.09058508276939392,
0.11753697693347931,
0.07445680350065231,
0.5569460988044739,
-0.35107743740081787,
0.03871065378189087,
0.4113404154777527,
-0.31157147884368896,
-0.22218728065490723,
-0.0707545131444931,
-0.03381120413541794,
0.08181837201118469,
0.10929280519485474,
-0.11413420736789703,
-0.2129829078912735,
-0.09529580175876617,
-0.1276644915342331,
-0.2052709311246872,
-0.20592395961284637,
0.1625525951385498,
0.1398722231388092,
0.12890583276748657,
-0.23990808427333832,
0.01781022548675537,
-0.34685832262039185,
0.11774103343486786,
-0.15735183656215668,
0.11329428106546402,
0.27944648265838623,
0.21934819221496582,
-0.047294776886701584,
-0.021196890622377396,
0.14541082084178925,
0.04779302328824997,
-0.011661103926599026,
0.07663721591234207,
0.17305351793766022,
-0.4105401337146759,
-0.08476372063159943,
-0.09953577816486359,
-0.05779397860169411,
-0.35217949748039246,
0.32049670815467834,
-0.08876758813858032,
0.07768528163433075,
0.17812122404575348,
-0.06604763120412827,
-0.25642433762550354,
-0.10467807948589325,
0.18996980786323547,
-0.37078532576560974,
0.11652710288763046,
0.35875752568244934,
0.034652452915906906,
0.3313945531845093,
-0.3841504454612732,
0.02684609591960907,
-0.323053240776062,
0.38207995891571045,
0.5605055093765259,
-0.3645082712173462,
-0.2622024416923523,
-0.28136131167411804,
-0.20820966362953186,
0.2300589233636856,
-0.4183400273323059,
-0.009949922561645508,
-0.172851100564003,
0.28262487053871155,
-0.12166213244199753,
-0.3347281813621521,
-0.0016159862279891968,
-0.1150323674082756,
-0.07742289453744888,
0.12133561074733734,
-0.01673898659646511,
-0.01716696098446846,
-0.3584659695625305,
0.15422800183296204,
-0.20322340726852417,
-0.04235706105828285,
0.296951025724411,
0.1775437444448471,
-0.11464142799377441,
-0.1453527808189392,
0.08861805498600006,
-0.014299790374934673,
-0.04893748462200165,
0.35471636056900024,
0.23884797096252441,
0.3356855809688568,
-0.06481356173753738,
0.2596983015537262,
0.018422916531562805,
0.03760266676545143,
-0.11067002266645432,
0.21438926458358765,
-0.2533372640609741,
0.03718731179833412,
0.10521961003541946,
-0.0239919014275074,
0.20821848511695862,
0.0152591522783041,
0.06501339375972748,
-0.2231428474187851,
-0.18527507781982422,
0.16009844839572906,
-0.11264807730913162,
0.032960157841444016,
-0.12470991164445877,
0.5538577437400818,
0.05682772397994995,
0.22750326991081238,
0.0008590817451477051,
-0.24337616562843323,
0.20343607664108276,
-0.5507054924964905,
-0.21118682622909546,
-0.21413198113441467,
0.003544718027114868,
0.25495901703834534,
-0.29777395725250244,
-0.31301021575927734,
-0.0792183056473732,
0.5161018967628479,
-0.010720212012529373,
-0.03689863532781601,
0.23896785080432892,
0.0862855464220047,
0.18690228462219238,
-0.14391811192035675,
0.3211918771266937,
-0.2282097041606903,
0.008853370323777199,
0.06089511141180992,
-0.04039113223552704
] |
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.053269270807504654,
-0.2086368203163147,
0.017832625657320023,
0.19117774069309235,
0.014383217319846153,
0.008745647966861725,
0.23980095982551575,
0.3740536868572235,
-0.11492244899272919,
-0.013811647891998291,
-0.0801737904548645,
0.18066921830177307,
0.14083297550678253,
-0.112971231341362,
0.19782450795173645,
-0.10907366871833801,
0.2893791198730469,
-0.011822924017906189,
0.17266127467155457,
-0.19848383963108063,
0.06419603526592255,
0.01234994176775217,
-0.20447102189064026,
0.02655937522649765,
-0.40991732478141785,
-0.011964360252022743,
-0.1431383639574051,
-0.12345171719789505,
-0.4040335416793823,
-0.5144374966621399,
-0.052694808691740036,
0.08115071058273315,
0.3815962076187134,
0.2726806402206421,
-0.0001266949693672359,
-0.3327268362045288,
0.07534047216176987,
0.011636035516858101,
-0.01236589252948761,
0.2677367925643921,
0.16763260960578918,
-0.5629208087921143,
-0.1614195853471756,
-0.25321346521377563,
0.2919101119041443,
-0.5190220475196838,
-0.2093336284160614,
0.3381918668746948,
0.041958972811698914,
-0.15536095201969147,
0.08470197021961212,
-0.13419970870018005,
0.03372914716601372,
0.4106491208076477,
0.14613738656044006,
0.09478900581598282,
-0.044550321996212006,
-0.19317620992660522,
-0.12520571053028107,
-0.18618734180927277,
-0.014873109757900238,
0.17044532299041748,
0.08462278544902802,
-0.21875174343585968,
0.35215869545936584,
-0.07896672934293747,
-0.1837904155254364,
-0.044031307101249695,
0.22508805990219116,
0.20200589299201965,
0.37809303402900696,
-0.12139926105737686,
0.01790018007159233,
-0.27203330397605896,
-0.16476963460445404,
-0.06602125614881516,
-0.17578727006912231,
0.18078574538230896,
0.2901875078678131,
-0.03196561709046364,
-0.3919958174228668,
-0.050546735525131226,
0.11635993421077728,
0.23943687975406647,
-0.19160638749599457,
0.5306620597839355,
0.03733569383621216,
0.17462438344955444,
-0.2876829206943512,
-0.17114192247390747,
-0.07721024006605148,
-0.2316000759601593,
-0.16406340897083282,
0.46287083625793457,
-0.33474430441856384,
-0.3571231961250305,
0.04544717073440552,
-0.05537796765565872,
0.5116999745368958,
-0.3004140257835388,
-0.3079541027545929,
-0.017954878509044647,
-0.03000958263874054,
-0.1349731683731079,
0.10175581276416779,
0.5036150813102722,
-0.3205173909664154,
0.4058416783809662,
-0.14635629951953888,
-0.06891103833913803,
-0.5243213176727295,
-0.1801227629184723,
0.058173008263111115,
0.09739379584789276,
0.12472555041313171,
-0.262688010931015,
-0.3689332604408264,
-0.06546836346387863,
0.22462871670722961,
0.2283160239458084,
-0.5162185430526733,
0.05016973242163658,
-0.04624191299080849,
0.353132963180542,
-0.18779219686985016,
0.39859893918037415,
-0.3270297050476074,
0.2114163339138031,
-0.13615255057811737,
0.04256219416856766,
-0.11616867780685425,
-0.13553842902183533,
0.09621715545654297,
0.15382520854473114,
-0.23410998284816742,
0.19819624722003937,
0.34657683968544006,
0.09364829212427139,
0.014688879251480103,
-0.09685397148132324,
0.4784104526042938,
-0.20838414132595062,
0.36299577355384827,
0.12199385464191437,
0.1408424824476242,
0.305655300617218,
-0.0901966542005539,
-0.09577721357345581,
-0.12010818719863892,
0.14095449447631836,
-0.5012381076812744,
-0.16902022063732147,
0.011677155271172523,
0.0399586446583271,
0.04636108875274658,
-0.02601023018360138,
-0.37902718782424927,
0.3396326005458832,
0.4450385272502899,
-0.04859292507171631,
0.24750757217407227,
-0.27332234382629395,
-0.36723968386650085,
-0.1775033324956894,
0.015388315543532372,
-0.0809684544801712,
-0.06500117480754852,
-0.01240617036819458,
0.34793809056282043,
0.24102991819381714,
0.34923186898231506,
0.6582417488098145,
-0.2303018420934677,
0.5145466923713684,
-0.2676451802253723,
0.5004499554634094,
0.4632596969604492,
-0.410601943731308,
-0.779595136642456,
0.35920578241348267,
0.21772260963916779,
0.19099131226539612,
-0.09057625383138657,
-0.06226722151041031,
0.44033288955688477,
0.17096850275993347,
0.1503647267818451,
0.2609789967536926,
-0.006748704239726067,
0.08912280201911926,
-0.4096231460571289,
-0.1871407926082611,
0.3767552375793457,
-0.5307528972625732,
0.21353532373905182,
-0.000049076974391937256,
0.048806898295879364,
0.46169665455818176,
0.4493003189563751,
0.06905483454465866,
0.2840157449245453,
0.26045578718185425,
-0.056147199124097824,
0.03188278153538704,
0.28227415680885315,
0.02265895903110504,
0.24659588932991028,
-0.055662550032138824,
-0.2750282287597656,
-0.06778454035520554,
0.24607813358306885,
-0.39166170358657837,
-0.21387779712677002,
0.0052282921969890594,
-0.13893140852451324,
-0.27942949533462524,
0.023417804390192032,
-0.09323598444461823,
0.10232192277908325,
-0.038318634033203125,
0.23169724643230438,
0.11003836244344711,
-0.14329621195793152,
0.09355320781469345,
0.1334497183561325,
0.16457797586917877,
0.04020126536488533,
0.15889368951320648,
-0.2989465296268463,
0.27477192878723145,
0.15093843638896942,
0.03816862404346466,
-0.28964531421661377,
0.05617310479283333,
0.11204010993242264,
0.007936947047710419,
0.15989220142364502,
0.30295342206954956,
0.2006726861000061,
0.020967494696378708,
0.3990188539028168,
0.05197172611951828,
0.05530046299099922,
-0.15162859857082367,
0.195358544588089,
0.274139404296875,
0.40938031673431396,
0.06393198668956757,
0.08304135501384735,
-0.2988690435886383,
0.18383392691612244,
0.016415763646364212,
0.14657288789749146,
-0.21071192622184753,
-0.1486242711544037,
0.2459666132926941,
0.09252925217151642,
0.04467783495783806,
0.08473190665245056,
0.3287915289402008,
0.4958304464817047,
-0.09700164198875427,
-0.09513276070356369,
0.09257902950048447,
-0.6602834463119507,
-0.5403520464897156,
0.14899632334709167,
-0.04970812797546387,
0.22394217550754547,
0.09999949485063553,
0.34723329544067383,
0.019930724054574966,
0.22986525297164917,
0.09709731489419937,
0.20534326136112213,
-0.08589567244052887,
0.018572436645627022,
0.2559397518634796,
0.5013881921768188,
0.15280558168888092,
-0.266023188829422,
0.20251399278640747,
-0.04294762760400772,
0.3088426887989044,
-0.11249232292175293,
0.08505532890558243,
-0.133555069565773,
-0.1435677707195282,
-0.002319575287401676,
-0.03949085995554924,
-0.19666993618011475,
-0.4011037349700928,
-0.09010369330644608,
-0.07314497232437134,
0.36249852180480957,
-0.20259641110897064,
-0.04692116752266884,
0.011672288179397583,
0.15434785187244415,
0.17032630741596222,
0.08429466187953949,
0.05608814209699631,
-0.36765018105506897,
-0.059316813945770264,
-0.09912469238042831,
-0.06199663132429123,
0.23751071095466614,
0.16652588546276093,
-0.06456765532493591,
-0.34583333134651184,
-0.8534323573112488,
0.08256799727678299,
-0.08412060886621475,
0.0708763599395752,
-0.03756257891654968,
-0.04241570830345154,
-0.45490849018096924,
0.1427478790283203,
-0.03375985100865364,
0.08442911505699158,
-0.2855614423751831,
-0.15273810923099518,
-0.3064071536064148,
0.11083409190177917,
0.08386601507663727,
0.032712843269109726,
-0.07812969386577606,
-0.005461316555738449,
0.028835594654083252,
0.06393247842788696,
0.04123501852154732,
0.03315351530909538,
-0.23439332842826843,
-0.005521811079233885,
-0.029566088691353798,
-0.04940877854824066,
-0.49379047751426697,
-0.234934464097023,
0.2614580988883972,
-0.18648532032966614,
-0.287146657705307,
-0.13790568709373474,
-0.21276570856571198,
0.16745221614837646,
0.12354090809822083,
-0.5751294493675232,
0.1784174144268036,
-0.2078159898519516,
0.1914498209953308,
-0.2898377776145935,
0.041971296072006226,
0.07119306921958923,
-0.1305159032344818,
0.0412762388586998,
-0.06556470692157745,
0.06275050342082977,
-0.34460288286209106,
0.13738363981246948,
0.5308551788330078,
-0.10191114991903305,
0.4415525794029236,
0.33889856934547424,
0.9411717653274536,
0.0710764080286026,
0.05974093824625015,
0.2623283267021179,
-0.21298480033874512,
0.10007837414741516,
-0.29721370339393616,
-0.1126084104180336,
0.18117447197437286,
-0.08571936190128326,
0.19752022624015808,
0.448056697845459,
0.14312389492988586,
-0.14498110115528107,
0.6234245300292969,
-0.4005107879638672,
0.03461740165948868,
-0.04876447841525078,
0.12758205831050873,
-0.2185368537902832,
0.2929037809371948,
0.20640355348587036,
-0.19971460103988647,
-0.5666325092315674,
-0.49090516567230225,
-0.025202035903930664,
0.1508869081735611,
-0.08974526077508926,
0.1794929802417755,
-0.6895114183425903,
-0.10211611539125443,
-0.6798049211502075,
0.22899635136127472,
0.19071780145168304,
0.22689199447631836,
0.2893174886703491,
0.12283743172883987,
0.09867186844348907,
-0.00004643527790904045,
0.5573990941047668,
-0.09543924778699875,
-0.1696854680776596,
-0.10019540786743164,
-0.0893314853310585,
-0.21871130168437958,
-0.1574794501066208,
0.046002935618162155,
0.1913292109966278,
0.48658207058906555,
0.6134020686149597,
-0.03694349527359009,
-0.20329077541828156,
-0.0758211612701416,
0.5636319518089294,
-0.13563400506973267,
-0.09072276949882507,
-0.33913153409957886,
-0.005641955882310867,
-0.32262787222862244,
-0.010170094668865204,
-0.14415617287158966,
0.22907058894634247,
-0.010587911121547222,
-0.3273716866970062,
-0.2876746654510498,
-0.2229076325893402,
-0.14036227762699127,
0.08093774318695068,
0.3359946012496948,
0.28167322278022766,
0.04255063459277153,
-0.29740965366363525,
0.23044604063034058,
0.06290480494499207,
-0.06459427624940872,
0.1954265981912613,
0.015280283987522125,
-0.1770285964012146,
0.08287794142961502,
0.29112520813941956,
0.09389840811491013,
-0.014790370129048824,
0.5646327137947083,
-0.27614709734916687,
0.13827696442604065,
-0.05335559323430061,
0.47503966093063354,
0.3200356960296631,
0.13913197815418243,
-0.48492270708084106,
-0.28049027919769287,
0.2338913381099701,
0.10955609381198883,
-0.051028091460466385,
0.2023661881685257,
0.05031357705593109,
-0.1862107813358307,
0.38877564668655396,
0.02814503386616707,
1.009418249130249,
-0.0559258759021759,
0.3413277566432953,
-0.015067290514707565,
0.034181877970695496,
0.23087051510810852,
-0.50238037109375,
0.03936033323407173,
-0.2651951014995575,
0.24726329743862152,
0.036776989698410034,
-0.020033225417137146,
-0.13461703062057495,
0.21808646619319916,
0.011437121778726578,
0.04845677316188812,
0.022508278489112854,
0.3262207806110382,
-0.3503056764602661,
0.5328890681266785,
0.07841535657644272,
-0.011507866904139519,
0.044058673083782196,
0.0034808963537216187,
-0.09421136975288391,
-0.19453705847263336,
-0.22121301293373108,
0.13402646780014038,
-0.1591310203075409,
-0.2852485775947571,
-0.08463206142187119,
-0.19293448328971863,
-0.11190076917409897,
0.45393335819244385,
-0.03698473796248436,
-0.2596118748188019,
0.04455632343888283,
0.09518679231405258,
0.0801418125629425,
0.5051611661911011,
-0.003987826406955719,
0.16676916182041168,
-0.06453893333673477,
0.19650137424468994,
0.2081841081380844,
-0.12674379348754883,
0.08216045796871185,
-0.044402144849300385,
-0.2410302460193634,
-0.07912597805261612,
-0.017951492220163345,
-0.2659713625907898,
-0.31129395961761475,
0.2222389131784439,
0.4669782519340515,
-0.3620290756225586,
-0.1344532072544098,
0.13785909116268158,
-0.17791390419006348,
-0.10515405237674713,
0.043693140149116516,
-0.14803162217140198,
0.019448932260274887,
0.1870410442352295,
0.3336389660835266,
-0.47344228625297546,
-0.07331319153308868,
0.33935317397117615,
0.39180228114128113,
0.06282397359609604,
0.7738112211227417,
-0.3206631541252136,
-0.13908228278160095,
-0.021764306351542473,
0.24826201796531677,
0.08135353773832321,
0.12821146845817566,
-0.19154368340969086,
-0.09267312288284302,
0.11579431593418121,
-0.009256559424102306,
0.0023909322917461395,
-0.1650204211473465,
-0.026117749512195587,
-0.29746806621551514,
-0.23089978098869324,
-0.5808985233306885,
0.039086587727069855,
-0.4215114414691925,
0.23899167776107788,
0.2948332726955414,
0.22633236646652222,
-0.27642157673835754,
0.4198247194290161,
-0.14292308688163757,
0.07621584087610245,
0.08431032299995422,
0.14677400887012482,
-0.3328533470630646,
-0.021070770919322968,
-0.13390593230724335,
0.11986108124256134,
-0.06710623949766159,
0.1427740752696991,
0.03208152949810028,
-0.14778754115104675,
-0.32291680574417114,
0.18288640677928925,
0.3324047029018402,
-0.16048486530780792,
-0.09705142676830292,
0.010318033397197723,
-0.13277313113212585,
-0.32210129499435425,
0.2611091732978821,
-0.059933170676231384,
0.11925287544727325,
0.14993184804916382,
0.30065351724624634,
-0.1675351858139038,
-0.06557725369930267,
0.053856685757637024,
0.22757378220558167,
0.0984324961900711,
0.1034611389040947,
0.17027994990348816,
0.2892484962940216,
-0.09209789335727692,
-0.513887882232666,
0.04837958514690399,
0.30648350715637207,
0.0442461296916008,
0.3689001798629761,
0.166670560836792,
0.0799834281206131,
0.011288737878203392,
-0.20199395716190338,
0.10306486487388611,
0.04121103137731552,
-0.33770570158958435,
0.3317941427230835,
0.0025520771741867065,
-0.06455737352371216,
-0.051705487072467804,
0.25513431429862976,
-0.24530507624149323,
-0.13780269026756287,
-0.05388692766427994,
0.4683298170566559,
0.2841569483280182,
-0.40589261054992676,
-0.0885317325592041,
0.31158167123794556,
-0.20140832662582397,
-0.07778391242027283,
0.15216577053070068,
-0.006110236048698425,
0.06565948575735092,
0.2132093459367752,
0.09858101606369019,
0.12295512855052948,
0.3483349680900574,
0.37479665875434875,
0.3071371018886566,
0.21259307861328125,
0.057387880980968475,
0.1475171446800232,
-0.1972600519657135,
-0.2420945018529892,
0.31809547543525696,
-0.11582733690738678,
0.1136653870344162,
0.07949605584144592,
0.04698118567466736,
0.5698667764663696,
-0.32639187574386597,
0.09167502820491791,
0.3821567893028259,
-0.27957844734191895,
-0.24620169401168823,
-0.03925331309437752,
-0.0029504895210266113,
0.029073253273963928,
0.06110552325844765,
-0.04868970438838005,
-0.14768663048744202,
-0.22082114219665527,
-0.034371159970760345,
-0.18838249146938324,
-0.19187654554843903,
0.29295822978019714,
0.2847607433795929,
0.14947561919689178,
-0.29950013756752014,
0.04082132875919342,
-0.28906214237213135,
0.15019819140434265,
-0.19445419311523438,
0.2535017728805542,
0.32927051186561584,
0.262498676776886,
-0.17548203468322754,
-0.06082327291369438,
0.12307378649711609,
0.070624440908432,
-0.08771036565303802,
0.0532667376101017,
0.22753621637821198,
-0.4091372489929199,
-0.03222036361694336,
-0.11015159636735916,
-0.06639571487903595,
-0.30876436829566956,
0.33659788966178894,
-0.24563723802566528,
0.027153443545103073,
0.15500938892364502,
-0.11660055816173553,
-0.2735731303691864,
-0.1233111023902893,
0.21199047565460205,
-0.5336231589317322,
0.12187324464321136,
0.40873658657073975,
0.012875063344836235,
0.351957231760025,
-0.3962768614292145,
0.03063555434346199,
-0.35640138387680054,
0.42195233702659607,
0.5847309231758118,
-0.14076006412506104,
-0.22088287770748138,
-0.21872176229953766,
-0.11225764453411102,
0.2641618549823761,
-0.3131753206253052,
0.055246397852897644,
-0.2011156976222992,
0.33032262325286865,
-0.22820106148719788,
-0.3678627014160156,
0.06400054693222046,
-0.1404261440038681,
-0.07279926538467407,
0.10408307611942291,
-0.043461065739393234,
-0.0415736623108387,
-0.3713263273239136,
0.10058771073818207,
-0.16299355030059814,
-0.05387476459145546,
0.21027332544326782,
0.023920737206935883,
-0.1234041377902031,
-0.13363710045814514,
0.1404179334640503,
0.024197537451982498,
0.015528719872236252,
0.3350542187690735,
0.25557008385658264,
0.36145442724227905,
-0.13832519948482513,
0.26979270577430725,
0.1320338249206543,
-0.05608968064188957,
-0.06951486319303513,
0.2591326832771301,
-0.24245759844779968,
0.014212511479854584,
0.11624429374933243,
-0.07696782052516937,
0.2797967791557312,
-0.019858431071043015,
0.062499597668647766,
-0.28200793266296387,
-0.09781989455223083,
0.12972930073738098,
-0.17839518189430237,
-0.005088554695248604,
-0.12769153714179993,
0.5228878259658813,
0.04185926914215088,
0.19025009870529175,
0.020648464560508728,
-0.25211015343666077,
0.22566094994544983,
-0.4897981882095337,
-0.12731468677520752,
-0.24831266701221466,
-0.044154465198516846,
0.2793739140033722,
-0.2569739818572998,
-0.3915029466152191,
-0.07386498153209686,
0.5597870945930481,
0.10513834655284882,
-0.09787203371524811,
0.25205498933792114,
0.14548707008361816,
0.16534166038036346,
-0.17395377159118652,
0.3162580132484436,
-0.22407600283622742,
0.04365602135658264,
0.11748011410236359,
-0.03356958553195
] |
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.11238902807235718,
-0.1193455159664154,
0.011290132999420166,
0.20274583995342255,
-0.004324126988649368,
-0.08417962491512299,
0.25018101930618286,
0.438435822725296,
-0.16868269443511963,
-0.07945170998573303,
-0.018409427255392075,
0.17917317152023315,
0.1267871856689453,
-0.4135741591453552,
0.2721520662307739,
-0.08150170743465424,
0.2910657525062561,
-0.02463117241859436,
0.07197025418281555,
-0.1968756914138794,
0.034756675362586975,
0.041662298142910004,
-0.13580283522605896,
0.07298000156879425,
-0.4001584053039551,
-0.044991105794906616,
-0.1299627721309662,
-0.07194655388593674,
-0.23610709607601166,
-0.5674787163734436,
-0.07457350939512253,
0.012131812050938606,
0.4288650155067444,
0.21151384711265564,
-0.00012896195403300226,
-0.279914915561676,
0.14519715309143066,
0.04758431762456894,
-0.12981392443180084,
0.29284995794296265,
0.22640708088874817,
-0.624527096748352,
-0.09858904033899307,
-0.18129074573516846,
0.2950389087200165,
-0.6420501470565796,
-0.22691096365451813,
0.08217112720012665,
0.1848839819431305,
-0.13531436026096344,
0.0848265215754509,
-0.09381590783596039,
-0.10724300146102905,
0.39423584938049316,
0.17671111226081848,
0.1288813352584839,
-0.08183754980564117,
-0.2256765514612198,
-0.1874343454837799,
-0.17470557987689972,
-0.05088970810174942,
0.1627078801393509,
0.06343785673379898,
-0.14710302650928497,
0.3064798414707184,
-0.07142297923564911,
-0.22416609525680542,
0.06346860527992249,
0.27544882893562317,
0.2621808648109436,
0.41695964336395264,
-0.015647992491722107,
-0.005996612831950188,
-0.23013588786125183,
-0.2018088847398758,
-0.038913220167160034,
-0.09311557561159134,
0.234633669257164,
0.29061487317085266,
-0.017524875700473785,
-0.2741986811161041,
0.026341095566749573,
0.09475907683372498,
0.19758416712284088,
-0.22988836467266083,
0.44505971670150757,
0.04016290232539177,
0.21792897582054138,
-0.2753771245479584,
-0.15453870594501495,
-0.058671485632658005,
-0.21450607478618622,
-0.17983798682689667,
0.4322638511657715,
-0.19286538660526276,
-0.2621164619922638,
-0.051530152559280396,
-0.2579563856124878,
0.4600999653339386,
-0.07624161243438721,
-0.14753074944019318,
0.1732752025127411,
-0.041557472199201584,
-0.2559192478656769,
0.042411454021930695,
0.49797943234443665,
-0.18882763385772705,
0.40860405564308167,
-0.07886400818824768,
-0.016327790915966034,
-0.45597386360168457,
-0.14773377776145935,
-0.01413842011243105,
0.08400984853506088,
0.1918053925037384,
-0.18388310074806213,
-0.4125385284423828,
-0.07391121983528137,
0.24710461497306824,
0.2568502724170685,
-0.5777152180671692,
0.010562138631939888,
-0.15314456820487976,
0.27124717831611633,
-0.1933002918958664,
0.4041863679885864,
-0.26577675342559814,
0.22528156638145447,
-0.12825480103492737,
0.007667121477425098,
-0.06053231284022331,
-0.3740161061286926,
0.09740974009037018,
0.2564540505409241,
-0.2381277084350586,
0.1824517697095871,
0.3605072498321533,
0.06975270062685013,
-0.004230402410030365,
-0.09864680469036102,
0.5601622462272644,
-0.17234687507152557,
0.37144988775253296,
0.1005748063325882,
0.09550110995769501,
0.3552553951740265,
0.00519898533821106,
0.005940631031990051,
-0.11799637228250504,
0.16847488284111023,
-0.45938241481781006,
-0.12196235358715057,
0.024770937860012054,
-0.02499053254723549,
0.04219371825456619,
0.059816356748342514,
-0.2653070092201233,
0.2889685332775116,
0.35265523195266724,
0.0013092868030071259,
0.20101341605186462,
-0.25858718156814575,
-0.2672611176967621,
-0.21028286218643188,
-0.015737082809209824,
-0.15178601443767548,
-0.14707204699516296,
0.0005062893033027649,
0.267263799905777,
0.41023606061935425,
0.32009822130203247,
0.678288996219635,
-0.30266764760017395,
0.35601770877838135,
-0.24698510766029358,
0.48180150985717773,
0.43563181161880493,
-0.2668086588382721,
-0.70899498462677,
0.3641350567340851,
0.30647480487823486,
0.13555537164211273,
-0.11351694911718369,
-0.11155810207128525,
0.45559751987457275,
0.1529846489429474,
0.06372343748807907,
0.3180859684944153,
0.08958297967910767,
0.05318823456764221,
-0.36666858196258545,
-0.1303330510854721,
0.29265666007995605,
-0.5646036267280579,
0.10386911034584045,
-0.03133492171764374,
0.11210852861404419,
0.3461741805076599,
0.41834473609924316,
0.05857110023498535,
0.3294254243373871,
0.3610939383506775,
-0.12274438142776489,
-0.027574002742767334,
0.36816513538360596,
0.069642573595047,
0.2804947793483734,
-0.14163166284561157,
-0.3820171356201172,
-0.05809062719345093,
0.0012401267886161804,
-0.33464014530181885,
-0.21333780884742737,
0.07413862645626068,
-0.026293475180864334,
-0.23584294319152832,
-0.02144387736916542,
-0.04177189618349075,
0.06215624138712883,
0.022286873310804367,
0.24094398319721222,
0.07592052966356277,
-0.0031604617834091187,
0.13227565586566925,
0.12772417068481445,
0.13559722900390625,
0.14461717009544373,
0.2024884819984436,
-0.24236194789409637,
0.19481870532035828,
0.12120494246482849,
-0.02060803584754467,
-0.25028952956199646,
0.044386763125658035,
0.09822197258472443,
-0.06881655752658844,
0.25377100706100464,
0.2087552845478058,
0.2937295734882355,
-0.07045986503362656,
0.5168302655220032,
0.2028338611125946,
0.022697359323501587,
-0.1259237676858902,
0.12287908792495728,
0.43756431341171265,
0.40349486470222473,
0.18178650736808777,
0.04096665233373642,
-0.17428232729434967,
0.19050900638103485,
0.11966374516487122,
0.02806568332016468,
-0.20072761178016663,
-0.2002357691526413,
0.33228835463523865,
0.1952180713415146,
0.08209506422281265,
0.13258835673332214,
0.3306993246078491,
0.3930946886539459,
-0.22067445516586304,
-0.04461943358182907,
0.12691956758499146,
-0.7217389345169067,
-0.5281838178634644,
0.17523492872714996,
-0.12433858215808868,
0.12786145508289337,
0.0770355612039566,
0.3478263020515442,
-0.09486355632543564,
0.19670403003692627,
0.10626398026943207,
0.29838138818740845,
-0.08002527058124542,
0.13229964673519135,
0.16779504716396332,
0.41403207182884216,
0.09811562299728394,
-0.251846045255661,
0.10625070333480835,
-0.01785028912127018,
0.20407609641551971,
-0.055260077118873596,
0.1663459688425064,
-0.23658208549022675,
-0.005216680467128754,
-0.09085134416818619,
-0.14071732759475708,
-0.40340912342071533,
-0.40848052501678467,
-0.06564240157604218,
-0.1708032637834549,
0.2646421790122986,
-0.16357506811618805,
-0.09704235196113586,
0.03255769610404968,
0.2891855537891388,
0.139777272939682,
0.07468803226947784,
0.0765785202383995,
-0.47378039360046387,
-0.08969594538211823,
-0.07976467162370682,
-0.1329772025346756,
0.2211562544107437,
0.21874138712882996,
-0.059992846101522446,
-0.4326707422733307,
-0.7699639201164246,
0.14134404063224792,
-0.04974702000617981,
0.009264449588954449,
-0.021306797862052917,
-0.050667837262153625,
-0.4660762548446655,
0.1676151156425476,
0.018614010885357857,
0.05612128973007202,
-0.20464187860488892,
-0.07092735171318054,
-0.25411924719810486,
0.16412296891212463,
0.1320963352918625,
0.011977143585681915,
0.07093163579702377,
0.0585373230278492,
0.007406037300825119,
0.15636341273784637,
0.060903117060661316,
0.15623818337917328,
-0.12969578802585602,
-0.05506494641304016,
-0.006598460953682661,
-0.1961805671453476,
-0.43931180238723755,
-0.1822180151939392,
0.3604341149330139,
-0.20645540952682495,
-0.3408966362476349,
-0.1987122893333435,
-0.21360187232494354,
0.18343763053417206,
0.2203742265701294,
-0.5550180673599243,
0.3347570598125458,
-0.204440638422966,
0.1652969866991043,
-0.31109508872032166,
-0.012441230937838554,
0.09151315689086914,
-0.050984591245651245,
-0.009837688878178596,
-0.03354256600141525,
0.11196351051330566,
-0.30223968625068665,
0.019332025200128555,
0.6221039891242981,
-0.012838926166296005,
0.41154345870018005,
0.2607513964176178,
1.0486239194869995,
-0.022900734096765518,
0.13110874593257904,
0.2479882687330246,
-0.20067532360553741,
-0.003907252103090286,
-0.258723646402359,
0.042310990393161774,
0.0611594058573246,
-0.15474236011505127,
0.17541268467903137,
0.48362046480178833,
0.2739487886428833,
-0.16843391954898834,
0.6691884994506836,
-0.27701154351234436,
0.04234762489795685,
-0.1178959459066391,
0.2433493733406067,
-0.35381603240966797,
0.25274553894996643,
0.22532960772514343,
-0.1377013772726059,
-0.6037972569465637,
-0.43506792187690735,
0.0791638046503067,
-0.007893845438957214,
-0.035280413925647736,
0.10695008188486099,
-0.6138988137245178,
0.06492309272289276,
-0.7611914873123169,
0.33994561433792114,
0.05831710621714592,
0.24439695477485657,
0.3503582775592804,
-0.037392158061265945,
0.08865285664796829,
0.010469740256667137,
0.4196237325668335,
-0.03639321029186249,
-0.2047562152147293,
-0.12323684990406036,
-0.0005618073046207428,
-0.4640893042087555,
-0.13369441032409668,
-0.01288297027349472,
0.12188895791769028,
0.3096963167190552,
0.5771068930625916,
-0.0824640765786171,
-0.246514692902565,
-0.19930142164230347,
0.5381541848182678,
-0.1532353013753891,
0.04884839802980423,
-0.37414655089378357,
-0.06718491017818451,
-0.3274959325790405,
-0.05264083296060562,
-0.16334474086761475,
0.2704226076602936,
-0.006816892884671688,
-0.32053056359291077,
-0.31820327043533325,
-0.3208773732185364,
-0.1378481537103653,
-0.005196215584874153,
0.4126266539096832,
0.1711205095052719,
-0.06148044764995575,
-0.24336451292037964,
0.36586445569992065,
0.04136168211698532,
-0.0728582888841629,
0.32688459753990173,
-0.04058252274990082,
-0.09464266151189804,
0.014399065636098385,
0.25701776146888733,
0.13784581422805786,
-0.030817467719316483,
0.4664028584957123,
-0.1954166442155838,
0.11280805617570877,
-0.01423268299549818,
0.3922349214553833,
0.2835199534893036,
0.14535856246948242,
-0.4813139736652374,
-0.25784412026405334,
0.2884393632411957,
0.19524312019348145,
-0.036128103733062744,
0.3587242364883423,
-0.0895763635635376,
-0.12821140885353088,
0.47653883695602417,
0.21434256434440613,
1.0645097494125366,
-0.11152879893779755,
0.3996552526950836,
-0.017052587121725082,
-0.015462853014469147,
0.17064490914344788,
-0.5571746826171875,
0.053709324449300766,
-0.28333887457847595,
0.2938230037689209,
0.012675037607550621,
0.03170423582196236,
-0.03742995113134384,
0.31893694400787354,
0.0832899808883667,
-0.008817476220428944,
0.014457061886787415,
0.2932933270931244,
-0.34221649169921875,
0.42351317405700684,
-0.0014366041868925095,
-0.07549746334552765,
0.0006074476987123489,
-0.009998727589845657,
-0.07050381600856781,
-0.1627052128314972,
-0.17906597256660461,
0.09286080300807953,
-0.22791658341884613,
-0.312433660030365,
-0.03659478947520256,
-0.15969586372375488,
-0.09729507565498352,
0.39519035816192627,
-0.015033338218927383,
-0.3361240029335022,
0.007635794579982758,
0.018850240856409073,
0.012641370296478271,
0.3787161111831665,
0.0008670277893543243,
0.15693342685699463,
-0.1339183747768402,
0.26947882771492004,
0.16501693427562714,
-0.22936244308948517,
0.02452961541712284,
0.005040392279624939,
-0.15888354182243347,
-0.11810029298067093,
-0.05450519919395447,
-0.30098211765289307,
-0.17614825069904327,
0.2057032734155655,
0.5047762989997864,
-0.34520137310028076,
0.03275751695036888,
0.08740285038948059,
-0.2508905827999115,
-0.1133786290884018,
0.01933504454791546,
-0.16555151343345642,
0.06344358623027802,
0.09029355645179749,
0.4422691762447357,
-0.3927362859249115,
-0.039551105350255966,
0.3326488733291626,
0.3317209780216217,
0.026877135038375854,
0.7461214065551758,
-0.2636692225933075,
-0.13106253743171692,
-0.05170430615544319,
0.29819345474243164,
0.16010141372680664,
-0.019589882344007492,
-0.1013849675655365,
-0.18953391909599304,
0.037771210074424744,
-0.020609479397535324,
0.054859891533851624,
-0.16414311528205872,
0.026519902050495148,
-0.36826878786087036,
-0.17948395013809204,
-0.5608601570129395,
0.053369298577308655,
-0.4516376852989197,
0.22382259368896484,
0.14083915948867798,
0.019911564886569977,
-0.2691282033920288,
0.3149077594280243,
-0.09879875183105469,
0.07318086177110672,
0.26848000288009644,
0.168935626745224,
-0.5337042808532715,
-0.0469270795583725,
-0.06778458505868912,
0.19738750159740448,
-0.07386094331741333,
0.21522055566310883,
0.09421584010124207,
-0.10974057018756866,
-0.29694539308547974,
0.19105477631092072,
0.210025817155838,
-0.2378121167421341,
-0.09308110922574997,
0.04625380039215088,
-0.06685253977775574,
-0.42753034830093384,
0.15658840537071228,
-0.18131858110427856,
0.10882850736379623,
-0.022395063191652298,
0.44023215770721436,
-0.16514939069747925,
-0.1376393735408783,
0.044542860239744186,
0.17238621413707733,
0.18137392401695251,
0.09751071780920029,
0.18964669108390808,
0.2859799563884735,
-0.08793659508228302,
-0.506822943687439,
0.036445241421461105,
0.29515767097473145,
0.034200139343738556,
0.42528054118156433,
0.10275251418352127,
-0.007354609668254852,
0.06303654611110687,
-0.16090621054172516,
0.15719464421272278,
0.07944252341985703,
-0.4598765969276428,
0.25214698910713196,
-0.004413660615682602,
-0.07563619315624237,
-0.08856669068336487,
0.13119934499263763,
-0.2073742002248764,
-0.27147945761680603,
-0.06023264676332474,
0.42273610830307007,
0.21316730976104736,
-0.3525824546813965,
-0.1477338671684265,
0.31298398971557617,
-0.22615458071231842,
-0.026944778859615326,
0.21111859381198883,
0.10315358638763428,
0.08944392949342728,
0.3192689120769501,
-0.07474389672279358,
0.178297221660614,
0.3176261782646179,
0.3104429244995117,
0.30525434017181396,
0.4638383388519287,
0.048107363283634186,
0.04052825644612312,
-0.1779920905828476,
-0.20767341554164886,
0.38319605588912964,
-0.024064987897872925,
0.13755536079406738,
0.19925105571746826,
0.17872804403305054,
0.5734668374061584,
-0.3003480136394501,
-0.014181530103087425,
0.30120930075645447,
-0.21913760900497437,
-0.25939318537712097,
-0.11383644491434097,
-0.014999747276306152,
0.056712016463279724,
0.03227083757519722,
-0.05179217830300331,
-0.17271962761878967,
-0.11939018964767456,
0.000240229070186615,
-0.07666529715061188,
-0.2563020586967468,
0.2634262442588806,
0.23162716627120972,
0.12739823758602142,
-0.20748429000377655,
0.01059974730014801,
-0.2688126564025879,
0.17091993987560272,
-0.12404052913188934,
0.20043551921844482,
0.3524908721446991,
0.13649024069309235,
-0.18792536854743958,
-0.02572488784790039,
0.08137579262256622,
0.11561822891235352,
-0.08428937941789627,
0.06697715818881989,
0.25079891085624695,
-0.4366213083267212,
-0.05287567526102066,
-0.1223691925406456,
-0.013523519039154053,
-0.39292165637016296,
0.25018614530563354,
-0.2340850830078125,
0.09145300090312958,
0.13315939903259277,
-0.15894152224063873,
-0.2784510552883148,
-0.16426126658916473,
0.13041290640830994,
-0.37572354078292847,
0.13077206909656525,
0.4261537492275238,
-0.006274593994021416,
0.29644685983657837,
-0.3734606206417084,
-0.0024553202092647552,
-0.4488927721977234,
0.3881145715713501,
0.5730138421058655,
-0.22114577889442444,
-0.14717984199523926,
-0.2637924551963806,
-0.029432613402605057,
0.2714199721813202,
-0.3679638206958771,
0.027343103662133217,
-0.1536201536655426,
0.35865455865859985,
-0.13162323832511902,
-0.2930260896682739,
0.16904690861701965,
-0.09834495186805725,
-0.02091592736542225,
0.15743693709373474,
-0.10027734190225601,
0.004404108971357346,
-0.16873571276664734,
0.2540203630924225,
-0.23253852128982544,
-0.1018427312374115,
0.2121310830116272,
0.13383257389068604,
-0.14434164762496948,
-0.12488816678524017,
-0.03201471269130707,
0.1201634407043457,
0.06695710122585297,
0.4428335726261139,
0.3170434236526489,
0.23944613337516785,
-0.05815183371305466,
0.15450617671012878,
0.035500481724739075,
0.009113873355090618,
0.06971045583486557,
0.35314086079597473,
-0.2202852964401245,
-0.034511055797338486,
0.10500454902648926,
0.00726008415222168,
0.18617133796215057,
0.06119103729724884,
0.06734517216682434,
-0.20351268351078033,
-0.2058461755514145,
0.049439020454883575,
-0.22241520881652832,
-0.03055306151509285,
-0.21144236624240875,
0.5169643759727478,
0.08884724229574203,
0.16199417412281036,
-0.008801579475402832,
-0.30117717385292053,
0.15389297902584076,
-0.5309005379676819,
-0.18463461101055145,
-0.11542701721191406,
-0.02008970081806183,
0.28488582372665405,
-0.19326940178871155,
-0.3655532896518707,
-0.10285808145999908,
0.5226109623908997,
0.07693788409233093,
-0.07047521322965622,
0.047126904129981995,
0.1259966492652893,
0.1774284392595291,
-0.2241215854883194,
0.4204757511615753,
-0.26452893018722534,
0.04592181742191315,
0.02798224613070488,
-0.0734163448214531
] |
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.07269112765789032,
-0.1665189564228058,
0.033773273229599,
0.16053014993667603,
-0.013517327606678009,
-0.03793690353631973,
0.2875693738460541,
0.3828715682029724,
-0.09261240065097809,
-0.05337910354137421,
-0.10732578486204147,
0.19670647382736206,
0.08289177715778351,
-0.16333669424057007,
0.2538657784461975,
-0.0917041152715683,
0.31835681200027466,
0.005669675767421722,
0.16419541835784912,
-0.2462659329175949,
0.06871714442968369,
-0.003468763083219528,
-0.16300922632217407,
0.08090650290250778,
-0.44387272000312805,
-0.0409446582198143,
-0.14054304361343384,
-0.08895117789506912,
-0.3230457901954651,
-0.4877050220966339,
0.05445411056280136,
0.0904536247253418,
0.4469439387321472,
0.2833978235721588,
-0.00012806725862901658,
-0.31168332695961,
0.05288419872522354,
0.014643264934420586,
0.03976312652230263,
0.27555614709854126,
0.19655555486679077,
-0.591802716255188,
-0.10922542959451675,
-0.2343677580356598,
0.22299399971961975,
-0.5260522961616516,
-0.22258751094341278,
0.2866097390651703,
0.0634341835975647,
-0.12166952341794968,
0.08499424904584885,
-0.1538691222667694,
-0.024435587227344513,
0.43185314536094666,
0.1089162603020668,
0.05610819160938263,
-0.06490438431501389,
-0.15242232382297516,
-0.1710948348045349,
-0.21753615140914917,
0.018257126212120056,
0.18566875159740448,
0.0337626114487648,
-0.2018294781446457,
0.3348083198070526,
-0.09028442949056625,
-0.17664769291877747,
-0.022714857012033463,
0.21693488955497742,
0.2312103509902954,
0.37569206953048706,
-0.06552127003669739,
0.03662404417991638,
-0.24374011158943176,
-0.1951202005147934,
-0.06473730504512787,
-0.15029874444007874,
0.20630531013011932,
0.33838385343551636,
-0.0508696474134922,
-0.40596920251846313,
-0.010919998399913311,
0.11912362277507782,
0.21046169102191925,
-0.2516648471355438,
0.5392638444900513,
0.04598608613014221,
0.191255122423172,
-0.3162841200828552,
-0.1431555300951004,
-0.09205623716115952,
-0.2071802020072937,
-0.13333576917648315,
0.44137465953826904,
-0.32577794790267944,
-0.36503955721855164,
0.042678795754909515,
-0.07337502390146255,
0.4625691771507263,
-0.2051340937614441,
-0.3422222137451172,
0.07487643510103226,
-0.04279562830924988,
-0.20196276903152466,
0.0850393995642662,
0.49578091502189636,
-0.2846675515174866,
0.42259377241134644,
-0.06328567862510681,
-0.048074159771203995,
-0.5810623168945312,
-0.1435701847076416,
0.010380571708083153,
0.103158138692379,
0.15770789980888367,
-0.2445175051689148,
-0.4083053469657898,
-0.1312684267759323,
0.24243319034576416,
0.21824820339679718,
-0.5596010684967041,
0.060937024652957916,
-0.09112418442964554,
0.35515275597572327,
-0.23587296903133392,
0.3478895425796509,
-0.3164411783218384,
0.16953624784946442,
-0.154806986451149,
0.0510539747774601,
-0.10694939643144608,
-0.19148364663124084,
0.07590802013874054,
0.1784045249223709,
-0.2429092973470688,
0.19465260207653046,
0.33950644731521606,
0.05004049837589264,
-0.04521544277667999,
-0.11400394141674042,
0.49134594202041626,
-0.19749273359775543,
0.3377675712108612,
0.10623112320899963,
0.11371476948261261,
0.28762200474739075,
-0.05618118867278099,
-0.07677789032459259,
-0.15264742076396942,
0.10963894426822662,
-0.48032981157302856,
-0.1649414747953415,
0.021757401525974274,
0.015740545466542244,
-0.012823762372136116,
-0.016628768295049667,
-0.38451966643333435,
0.31877511739730835,
0.3729163706302643,
-0.013545103371143341,
0.17544904351234436,
-0.2576169967651367,
-0.3746814727783203,
-0.18835845589637756,
0.0029014665633440018,
-0.13878892362117767,
-0.05373642221093178,
-0.017046555876731873,
0.32740867137908936,
0.263815313577652,
0.39021116495132446,
0.6496695280075073,
-0.2520270347595215,
0.5214614868164062,
-0.28129005432128906,
0.41898131370544434,
0.4458962380886078,
-0.4095211625099182,
-0.7466175556182861,
0.33054545521736145,
0.23252730071544647,
0.21595460176467896,
-0.16961070895195007,
-0.10101472586393356,
0.45513665676116943,
0.12787768244743347,
0.07427112758159637,
0.3066433072090149,
0.04336545616388321,
0.12882599234580994,
-0.3877941370010376,
-0.18895477056503296,
0.393089234828949,
-0.48217666149139404,
0.234590083360672,
0.04101024195551872,
0.07403033971786499,
0.4521016478538513,
0.4246043562889099,
0.11163517087697983,
0.2516743242740631,
0.2537010908126831,
-0.002256292849779129,
0.04241624474525452,
0.3129784166812897,
0.017744556069374084,
0.2182939052581787,
-0.06058549880981445,
-0.30317604541778564,
-0.04544363170862198,
0.21021173894405365,
-0.3845497965812683,
-0.16224882006645203,
-0.016268644481897354,
-0.13136836886405945,
-0.3390321135520935,
0.007726557552814484,
-0.10167700052261353,
0.15280677378177643,
0.01779785007238388,
0.2814909815788269,
0.06046447902917862,
-0.0813474953174591,
0.08353893458843231,
0.1748131960630417,
0.2153216302394867,
0.08705052733421326,
0.20728358626365662,
-0.25245511531829834,
0.266924649477005,
0.16364756226539612,
-0.003098919289186597,
-0.26743459701538086,
0.03861886262893677,
0.08811985701322556,
0.03199279308319092,
0.2041611671447754,
0.2901290953159332,
0.2043851912021637,
-0.0191817544400692,
0.43992307782173157,
0.09065918624401093,
0.01960616186261177,
-0.12770625948905945,
0.1646961122751236,
0.3998299837112427,
0.4183763563632965,
0.05560757964849472,
0.060791976749897,
-0.2680598795413971,
0.1888647824525833,
0.022560130804777145,
0.15577425062656403,
-0.21369558572769165,
-0.13847897946834564,
0.2503267526626587,
0.06918421387672424,
0.04044859856367111,
0.08319823443889618,
0.3396414518356323,
0.4841015040874481,
-0.13331012427806854,
-0.07970374077558517,
0.12168540060520172,
-0.6560311317443848,
-0.5411947965621948,
0.19862297177314758,
-0.062344130128622055,
0.1635151207447052,
0.09019190818071365,
0.31185904145240784,
0.015001398511230946,
0.25287559628486633,
0.13632431626319885,
0.20165424048900604,
-0.10878384113311768,
0.06372270733118057,
0.20564189553260803,
0.4870430529117584,
0.1158728152513504,
-0.24426069855690002,
0.1812298595905304,
-0.042748160660266876,
0.3363182544708252,
-0.042473528534173965,
0.09072282910346985,
-0.19332481920719147,
-0.09873224794864655,
-0.05185803025960922,
-0.03707423433661461,
-0.27877166867256165,
-0.38233867287635803,
-0.11474862694740295,
-0.06114903464913368,
0.37036457657814026,
-0.1481207013130188,
-0.05321606248617172,
0.015110641717910767,
0.11421321332454681,
0.17712107300758362,
0.13223625719547272,
0.03677019476890564,
-0.4259365499019623,
-0.0662372037768364,
-0.08458587527275085,
-0.06180414929986,
0.2719153165817261,
0.14136849343776703,
-0.05141487717628479,
-0.41335704922676086,
-0.818474531173706,
0.08474431186914444,
-0.04842983931303024,
0.06959589570760727,
-0.028560347855091095,
-0.04963810741901398,
-0.46962106227874756,
0.17749477922916412,
-0.011236120946705341,
0.04171387106180191,
-0.21677905321121216,
-0.13012215495109558,
-0.36630040407180786,
0.2011478692293167,
0.15515893697738647,
0.036547545343637466,
-0.10277402400970459,
0.052915412932634354,
0.0019791126251220703,
0.08639693260192871,
0.05239139124751091,
0.027868207544088364,
-0.2423267960548401,
-0.0767749771475792,
-0.04370061308145523,
-0.12854304909706116,
-0.4691096544265747,
-0.27265146374702454,
0.2572523057460785,
-0.18445320427417755,
-0.2743247151374817,
-0.11496223509311676,
-0.1867670714855194,
0.1754225343465805,
0.10729564726352692,
-0.5669480562210083,
0.23611171543598175,
-0.18208454549312592,
0.18826571106910706,
-0.25801002979278564,
-0.06546948105096817,
0.10834024101495743,
-0.1316746473312378,
0.06685295701026917,
-0.02613578923046589,
0.07762065529823303,
-0.3353712558746338,
0.07285895198583603,
0.5143272280693054,
-0.05410446226596832,
0.46423962712287903,
0.27920159697532654,
0.9787616729736328,
0.028343968093395233,
0.03379792720079422,
0.22154991328716278,
-0.242874413728714,
0.02533021569252014,
-0.2796730101108551,
-0.08838115632534027,
0.21395529806613922,
-0.10284340381622314,
0.18997974693775177,
0.4913727045059204,
0.1769777536392212,
-0.1503152698278427,
0.5999454259872437,
-0.40780189633369446,
0.01940610259771347,
-0.09211458265781403,
0.12832841277122498,
-0.244644433259964,
0.27501165866851807,
0.21088290214538574,
-0.20892220735549927,
-0.5871838331222534,
-0.5047996044158936,
0.006857303902506828,
0.19208738207817078,
-0.05355925112962723,
0.18379837274551392,
-0.7017817497253418,
-0.04726356640458107,
-0.6418159604072571,
0.24497918784618378,
0.1216789111495018,
0.20358148217201233,
0.33313044905662537,
0.11061381548643112,
0.09692883491516113,
0.002803729148581624,
0.5349243879318237,
-0.08996373414993286,
-0.12341871857643127,
-0.13035747408866882,
-0.08319820463657379,
-0.2667238712310791,
-0.20348873734474182,
0.05026688799262047,
0.2079889476299286,
0.4221161901950836,
0.6396844983100891,
-0.01817428320646286,
-0.24088925123214722,
-0.13249269127845764,
0.5823593735694885,
-0.1514616459608078,
-0.036633603274822235,
-0.3615650534629822,
0.009744301438331604,
-0.3141712248325348,
0.023152150213718414,
-0.22939474880695343,
0.20830176770687103,
-0.03950103372335434,
-0.31198909878730774,
-0.2788807451725006,
-0.22690212726593018,
-0.13326804339885712,
0.09342609345912933,
0.3569125533103943,
0.2507151961326599,
0.05037606135010719,
-0.25936833024024963,
0.26538899540901184,
0.12227867543697357,
-0.09390775859355927,
0.1829501837491989,
0.044724125415086746,
-0.14946171641349792,
0.11095140874385834,
0.2913936674594879,
0.11252954602241516,
-0.02185729146003723,
0.5225077867507935,
-0.27033087611198425,
0.13540489971637726,
-0.04017649218440056,
0.4362836182117462,
0.29507943987846375,
0.18748967349529266,
-0.4897303283214569,
-0.2730545103549957,
0.21503537893295288,
0.15906023979187012,
-0.05256016552448273,
0.2352222055196762,
-0.0011443495750427246,
-0.1771451234817505,
0.41976338624954224,
0.07528539001941681,
1.0324594974517822,
-0.08168141543865204,
0.34041106700897217,
-0.006302632391452789,
0.041505709290504456,
0.297621488571167,
-0.5319023132324219,
0.049312349408864975,
-0.2820635139942169,
0.2580891251564026,
0.026202740147709846,
0.024056222289800644,
-0.13062062859535217,
0.2523036599159241,
0.05437124893069267,
0.0716090127825737,
0.04178440570831299,
0.34702929854393005,
-0.3743637502193451,
0.5021026730537415,
0.14549049735069275,
-0.03482125699520111,
-0.007634935900568962,
-0.008857017382979393,
-0.14931397140026093,
-0.17165160179138184,
-0.219596266746521,
0.12033163011074066,
-0.15084753930568695,
-0.254494309425354,
-0.011573053896427155,
-0.21797069907188416,
-0.06008361652493477,
0.42556655406951904,
-0.016385521739721298,
-0.2838236689567566,
0.026874925941228867,
0.06573834270238876,
0.07740354537963867,
0.4879695177078247,
-0.00898912362754345,
0.18614763021469116,
-0.049903661012649536,
0.2513028085231781,
0.20684053003787994,
-0.1604180485010147,
0.058146581053733826,
-0.06260710209608078,
-0.24373888969421387,
-0.13746029138565063,
-0.025948476046323776,
-0.27792197465896606,
-0.2813146114349365,
0.181730717420578,
0.459237277507782,
-0.30546820163726807,
-0.09201087057590485,
0.10782909393310547,
-0.1723332703113556,
-0.12593849003314972,
0.0388394370675087,
-0.1479887068271637,
0.0421096570789814,
0.20730596780776978,
0.3386695086956024,
-0.43181079626083374,
-0.06121497228741646,
0.36612623929977417,
0.39791545271873474,
0.06290901452302933,
0.7458978891372681,
-0.2787284553050995,
-0.12605586647987366,
-0.054561797529459,
0.2708774209022522,
0.07438895851373672,
0.11989643424749374,
-0.19028154015541077,
-0.09994126111268997,
0.1631205826997757,
0.020852424204349518,
0.06997159123420715,
-0.19126856327056885,
-0.03216871619224548,
-0.2584812641143799,
-0.21951843798160553,
-0.5605756044387817,
0.046247635036706924,
-0.4587101638317108,
0.2077326774597168,
0.23988699913024902,
0.2475406676530838,
-0.2975122034549713,
0.3902420401573181,
-0.12942275404930115,
0.1252298653125763,
0.09799104183912277,
0.1446114480495453,
-0.3916124999523163,
-0.00556538999080658,
-0.11230985820293427,
0.09538058936595917,
-0.08358462899923325,
0.16556201875209808,
0.06778664886951447,
-0.1269429326057434,
-0.32808250188827515,
0.1974896639585495,
0.287469744682312,
-0.1786659061908722,
-0.04337017238140106,
0.04777891933917999,
-0.14998281002044678,
-0.3028779923915863,
0.24851718544960022,
-0.06079594045877457,
0.1575934737920761,
0.07634730637073517,
0.33791103959083557,
-0.2188214659690857,
-0.10006923973560333,
-0.0007013902068138123,
0.21621505916118622,
0.06462813168764114,
0.08485674113035202,
0.14305290579795837,
0.26706722378730774,
-0.0898602083325386,
-0.4806741178035736,
0.00826660543680191,
0.2503557503223419,
0.08062975853681564,
0.3912356495857239,
0.159160315990448,
0.04107772931456566,
0.060368120670318604,
-0.20622394979000092,
0.1170322448015213,
0.050466928631067276,
-0.3848748505115509,
0.37465158104896545,
-0.006026856601238251,
-0.05515579879283905,
-0.04403695836663246,
0.27438417077064514,
-0.26539573073387146,
-0.1859816312789917,
-0.0595589354634285,
0.46612104773521423,
0.29510051012039185,
-0.4041036367416382,
-0.09198582172393799,
0.36614441871643066,
-0.224164679646492,
-0.06418973207473755,
0.09712225198745728,
-0.009846366941928864,
0.09346705675125122,
0.26803526282310486,
0.054873667657375336,
0.11331644654273987,
0.36950594186782837,
0.39238861203193665,
0.2883473336696625,
0.26034051179885864,
0.07779392600059509,
0.10326948016881943,
-0.25539106130599976,
-0.26535728573799133,
0.31033793091773987,
-0.1531156301498413,
0.08998008072376251,
0.052886903285980225,
0.10004305839538574,
0.5368422865867615,
-0.3541669249534607,
0.04801950603723526,
0.4134223759174347,
-0.26407232880592346,
-0.23323221504688263,
-0.06277598440647125,
-0.023408208042383194,
0.06824614107608795,
0.09587490558624268,
-0.07185421884059906,
-0.153999924659729,
-0.23464137315750122,
-0.03701804578304291,
-0.18332327902317047,
-0.19524532556533813,
0.19805407524108887,
0.2319134771823883,
0.19820308685302734,
-0.2359381765127182,
0.016951406374573708,
-0.3175598382949829,
0.12712931632995605,
-0.220094233751297,
0.20206789672374725,
0.3063051998615265,
0.22416749596595764,
-0.1465410590171814,
-0.07885028421878815,
0.11303479969501495,
0.10727500915527344,
-0.05006257817149162,
0.07205374538898468,
0.23178423941135406,
-0.4880778193473816,
-0.04156528413295746,
-0.1164265051484108,
-0.051777347922325134,
-0.30744341015815735,
0.305853009223938,
-0.1977776736021042,
0.048135366290807724,
0.12422062456607819,
-0.10568001866340637,
-0.23005923628807068,
-0.1648838222026825,
0.21803125739097595,
-0.43994268774986267,
0.13302278518676758,
0.3766919672489166,
0.061716366559267044,
0.3358033299446106,
-0.4036954939365387,
0.01988186314702034,
-0.370134562253952,
0.3990877866744995,
0.5262001156806946,
-0.12096651643514633,
-0.21545739471912384,
-0.26463812589645386,
-0.11088025569915771,
0.2902739644050598,
-0.3585965931415558,
0.050590626895427704,
-0.18125958740711212,
0.263367623090744,
-0.19185087084770203,
-0.36117416620254517,
0.025247938930988312,
-0.07904331386089325,
-0.00802621990442276,
0.1392815113067627,
-0.0423986054956913,
-0.034202251583337784,
-0.4120829105377197,
0.10875242203474045,
-0.19114786386489868,
-0.07484669983386993,
0.2083023488521576,
0.06542059034109116,
-0.13040508329868317,
-0.11320525407791138,
0.07138106226921082,
0.019046269357204437,
0.037206679582595825,
0.39660805463790894,
0.26084816455841064,
0.3634544014930725,
-0.0893922746181488,
0.24999430775642395,
0.11791693419218063,
-0.012681165710091591,
-0.06520445644855499,
0.2503349483013153,
-0.2663956582546234,
0.0027407631278038025,
0.1508229672908783,
-0.02779858186841011,
0.210928276181221,
0.014536557719111443,
0.1021500825881958,
-0.23042456805706024,
-0.12752996385097504,
0.06396166980266571,
-0.13749206066131592,
-0.03613724932074547,
-0.123875193297863,
0.5886523127555847,
0.048727698624134064,
0.17675116658210754,
-0.02597852796316147,
-0.21673206984996796,
0.19249802827835083,
-0.5318943858146667,
-0.1194511353969574,
-0.26145943999290466,
-0.0022513195872306824,
0.24524909257888794,
-0.2696593701839447,
-0.3578726351261139,
-0.07671145349740982,
0.5602197051048279,
0.07363244891166687,
-0.024723082780838013,
0.18556922674179077,
0.17730379104614258,
0.1805524230003357,
-0.14978067576885223,
0.3128385543823242,
-0.27670201659202576,
0.03375048190355301,
0.06838622689247131,
-0.023037955164909363
] |
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.009911850094795227,
0.17618778347969055,
0.0797635018825531,
0.033219195902347565,
-0.01876416802406311,
-0.09835223853588104,
-0.04397714510560036,
0.3858540952205658,
0.23286229372024536,
-0.17839615046977997,
0.15334439277648926,
0.7815696001052856,
-0.18905842304229736,
-0.2719968259334564,
0.056634657084941864,
-0.15590611100196838,
0.00684172660112381,
0.11283059418201447,
0.338462769985199,
0.017907030880451202,
-0.22156745195388794,
0.36634349822998047,
-0.20355470478534698,
0.2977564036846161,
-0.4966283440589905,
-0.21667541563510895,
0.20677535235881805,
-0.04722113162279129,
-0.12316907197237015,
-0.5728652477264404,
0.18703943490982056,
-0.07400459051132202,
-0.1319383829832077,
0.06161869689822197,
-0.00011744163930416107,
-0.1495583951473236,
0.3925051689147949,
0.02706455998122692,
-0.1482357531785965,
-0.23680900037288666,
0.17055663466453552,
-0.09398548305034637,
0.13261224329471588,
-0.02327008545398712,
-0.029541606083512306,
-0.07699138671159744,
0.10836632549762726,
-0.10980702936649323,
0.3249572515487671,
-0.03442222625017166,
0.19127702713012695,
0.30618786811828613,
0.13825732469558716,
0.010818570852279663,
0.0969168096780777,
-0.1552184373140335,
-0.16840915381908417,
-0.0005964431911706924,
0.09011950343847275,
-0.265320748090744,
-0.2927822172641754,
0.4738676846027374,
0.00865715928375721,
-0.058262553066015244,
0.06942357867956161,
0.021325644105672836,
-0.17859327793121338,
-0.07572025805711746,
0.09370629489421844,
-0.02710726112127304,
0.09554572403430939,
-0.18595218658447266,
-0.044574663043022156,
-0.4417171776294708,
-0.1290048360824585,
-0.4550063908100128,
0.18273892998695374,
-0.14791840314865112,
-0.23841503262519836,
-0.044095125049352646,
-0.009039732627570629,
-0.3884578049182892,
0.1388707160949707,
0.3053472340106964,
0.12892870604991913,
0.6000416278839111,
-0.057279132306575775,
0.2780376970767975,
0.28198114037513733,
-0.08804044872522354,
-0.23828160762786865,
0.15676997601985931,
-0.1878783404827118,
0.43565255403518677,
-0.34436461329460144,
-0.11781004816293716,
0.22056987881660461,
0.05353765934705734,
-0.06403093039989471,
0.3975781202316284,
-0.0016299216076731682,
0.24292296171188354,
-0.12060648947954178,
0.16440440714359283,
0.04771692678332329,
0.45910707116127014,
0.30474475026130676,
0.5499497056007385,
0.010525748133659363,
-0.3980911672115326,
-0.03758549317717552,
-0.05038372427225113,
-0.07537049800157547,
-0.26227787137031555,
0.03182390704751015,
0.05095253139734268,
-0.11718140542507172,
-0.10476778447628021,
-0.13309217989444733,
0.060889795422554016,
-0.26869890093803406,
0.06473678350448608,
0.22085925936698914,
0.19584855437278748,
0.13529449701309204,
0.15045040845870972,
-0.13207674026489258,
0.17244140803813934,
-0.18776309490203857,
-0.1661204695701599,
-0.24814286828041077,
0.07978573441505432,
-0.3150072395801544,
0.18196238577365875,
0.09730525314807892,
0.2771177887916565,
0.48032262921333313,
-0.16881373524665833,
-0.0587521493434906,
0.06284675747156143,
0.12489375472068787,
-0.00923234224319458,
0.23225107789039612,
0.07257474213838577,
-0.14736150205135345,
0.32906073331832886,
0.31269705295562744,
-0.1413334310054779,
-0.2816562056541443,
-0.05163019150495529,
-0.2734327018260956,
-0.3626497983932495,
-0.1152622252702713,
0.12547577917575836,
-0.06226459890604019,
-0.13849472999572754,
-0.2719877064228058,
0.24202853441238403,
0.4594835042953491,
-0.18899042904376984,
0.11018342524766922,
-0.19901151955127716,
-0.3264875113964081,
-0.2962646186351776,
0.03071264736354351,
0.2880880832672119,
0.04842733219265938,
-0.3790307641029358,
-0.19732022285461426,
0.15270237624645233,
0.4366892874240875,
0.5128077268600464,
-0.3213968276977539,
0.15187367796897888,
-0.26180121302604675,
0.8142929673194885,
0.5736559629440308,
-0.2508249282836914,
-0.4575698971748352,
0.03586412966251373,
-0.1898690164089203,
0.08280724287033081,
-0.2472427487373352,
-0.0829210951924324,
-0.011943619698286057,
-0.14294536411762238,
0.17918702960014343,
0.24893973767757416,
-0.008139284327626228,
0.007634246721863747,
-0.38457566499710083,
-0.04298616200685501,
0.36107057332992554,
-0.04021046683192253,
0.13590162992477417,
-0.11010181158781052,
-0.2231203317642212,
0.013850283809006214,
0.001965261995792389,
-0.015099156647920609,
0.34473466873168945,
-0.07404790073633194,
0.11379535496234894,
-0.1738635003566742,
0.07570668309926987,
0.041116029024124146,
-0.37375301122665405,
0.15236982703208923,
-0.2930893301963806,
0.15114030241966248,
-0.20104239881038666,
0.021356817334890366,
-0.12877744436264038,
0.04449695348739624,
-0.3398892879486084,
-0.23302802443504333,
0.12846793234348297,
0.00465112179517746,
0.19840775430202484,
0.03442961350083351,
-0.014597315341234207,
-0.061044953763484955,
0.06276113539934158,
0.15491004288196564,
-0.13033315539360046,
-0.05654396116733551,
-0.04677678644657135,
-0.275235652923584,
-0.2991563379764557,
0.16003262996673584,
0.23997357487678528,
-0.025426767766475677,
-0.26036015152931213,
0.29413342475891113,
0.007031245157122612,
0.04866497591137886,
-0.12077499181032181,
-0.06057220697402954,
0.09702886641025543,
-0.13870996236801147,
-0.1103154644370079,
0.12425406277179718,
-0.019869280979037285,
-0.2519941031932831,
0.31832629442214966,
0.3542829751968384,
0.18840819597244263,
0.06003709137439728,
-0.28683000802993774,
0.2985999286174774,
0.061098404228687286,
-0.01738354191184044,
0.13141284883022308,
-0.271495521068573,
0.06667328625917435,
-0.12505866587162018,
0.29385557770729065,
-0.1201205849647522,
-0.02170790731906891,
0.3552842438220978,
0.32174769043922424,
0.3191151022911072,
0.060161836445331573,
0.11061729490756989,
-0.2048504650592804,
-0.2746069133281708,
0.0948239415884018,
0.12427519261837006,
0.15679149329662323,
0.18599830567836761,
0.04236772656440735,
-0.058703526854515076,
-0.10603693127632141,
-0.08836466819047928,
0.13407129049301147,
0.012187480926513672,
0.06867904961109161,
0.15963464975357056,
0.06015898659825325,
0.11714334785938263,
-0.3626597225666046,
0.009321454912424088,
0.10926095396280289,
0.31288912892341614,
-0.11231575906276703,
-0.06857354193925858,
-0.3171987235546112,
-0.09657785296440125,
0.1861840784549713,
-0.34860959649086,
-0.24346613883972168,
-0.45386746525764465,
0.1318594068288803,
0.13968296349048615,
-0.1204628050327301,
0.4497217535972595,
-0.18037240207195282,
0.24645915627479553,
0.029110489413142204,
-0.09016578644514084,
-0.31709611415863037,
-0.500176727771759,
-0.3929177224636078,
-0.002068564295768738,
0.1086926981806755,
-0.06565147638320923,
0.19884377717971802,
0.17002171277999878,
0.03880329802632332,
-0.07996894419193268,
-0.3938220143318176,
0.2245362251996994,
-0.12875834107398987,
0.048669904470443726,
0.24079856276512146,
-0.20670093595981598,
-0.44355446100234985,
-0.3115970194339752,
0.1795257329940796,
-0.34777748584747314,
-0.3655570149421692,
-0.12697601318359375,
0.044309649616479874,
-0.1161487028002739,
-0.1567026674747467,
-0.04878906160593033,
-0.1834060400724411,
-0.28318992257118225,
0.27697286009788513,
0.024691063910722733,
0.18116486072540283,
0.42587602138519287,
-0.34760552644729614,
0.05340448021888733,
-0.3079635500907898,
-0.12469953298568726,
-0.5135579109191895,
0.09017990529537201,
0.3106083273887634,
-0.32009372115135193,
-0.13873426616191864,
-0.17292632162570953,
-0.1581389605998993,
0.3402468264102936,
0.041067466139793396,
-0.19394545257091522,
0.11227352172136307,
-0.0858658105134964,
0.16101619601249695,
-0.10779835283756256,
-0.062369205057621,
0.4786887466907501,
0.09708612412214279,
-0.003203514963388443,
-0.1829605996608734,
-0.16469065845012665,
0.41147950291633606,
-0.06806861609220505,
0.3304802179336548,
0.08736763894557953,
0.10527409613132477,
0.2931070327758789,
0.8183512091636658,
0.2056206911802292,
-0.10437114536762238,
0.48814043402671814,
0.2336605191230774,
0.0024522654712200165,
-0.20409074425697327,
-0.24899452924728394,
0.10886980593204498,
-0.021735355257987976,
0.33505475521087646,
0.05009211227297783,
0.008599426597356796,
-0.41724854707717896,
0.12043771147727966,
0.15182986855506897,
-0.1542118489742279,
-0.2865460216999054,
0.1852337270975113,
-0.38361185789108276,
0.13475589454174042,
0.17770497500896454,
0.04425846040248871,
-0.5306251049041748,
-0.13457801938056946,
0.1172005832195282,
-0.25686532258987427,
0.3932614028453827,
0.08267480880022049,
-0.5393274426460266,
0.05163106322288513,
-0.7337315678596497,
0.2864338159561157,
0.24137386679649353,
0.39541080594062805,
-0.1988527625799179,
-0.17362046241760254,
0.041854195296764374,
0.07487165927886963,
0.345220148563385,
-0.1550500988960266,
-0.055280886590480804,
0.16759417951107025,
0.06943473219871521,
-0.1352933645248413,
0.1023072898387909,
0.2772548496723175,
0.5168842673301697,
0.45414838194847107,
0.3920667767524719,
-0.38812053203582764,
-0.25622057914733887,
-0.16759441792964935,
-0.17444656789302826,
-0.018657110631465912,
0.03659047186374664,
0.029322337359189987,
0.11371325701475143,
-0.17213071882724762,
0.1507241278886795,
0.27614879608154297,
0.338830828666687,
0.39486584067344666,
0.17621615529060364,
-0.11653243005275726,
-0.12748320400714874,
-0.1879197210073471,
0.13666903972625732,
0.36158373951911926,
0.032666273415088654,
0.04741683229804039,
0.21893006563186646,
0.11869332194328308,
-0.2655071020126343,
0.16447043418884277,
0.25094228982925415,
-0.1118043065071106,
0.16112014651298523,
0.28357043862342834,
0.12172836065292358,
0.27629369497299194,
0.03527161106467247,
0.4669426679611206,
-0.439646452665329,
0.20554830133914948,
0.1118127852678299,
0.4023247957229614,
0.06568989902734756,
-0.05350754037499428,
-0.20247375965118408,
-0.08513143658638,
0.32677266001701355,
0.1251053363084793,
-0.21785594522953033,
0.5619801878929138,
-0.030540212988853455,
-0.34341883659362793,
0.45479124784469604,
0.10107150673866272,
0.8719285726547241,
0.27255719900131226,
0.20116105675697327,
0.23683416843414307,
0.05637010931968689,
0.6379822492599487,
0.03707457333803177,
0.1459992676973343,
-0.3191588521003723,
0.36650967597961426,
0.03573952615261078,
-0.03795981407165527,
-0.1278342604637146,
0.09608028829097748,
-0.04991242289543152,
0.20488864183425903,
0.23945583403110504,
0.2010638564825058,
0.248294398188591,
0.11101669073104858,
-0.0012670289725065231,
-0.35418999195098877,
0.18311165273189545,
0.08416620641946793,
-0.3797294497489929,
0.36355629563331604,
0.04326522350311279,
-0.14761480689048767,
-0.028320109471678734,
-0.34953516721725464,
-0.2687566876411438,
0.11712478846311569,
-0.46198323369026184,
0.39097267389297485,
0.4313521981239319,
-0.20794959366321564,
0.1729608178138733,
-0.14051954448223114,
0.17857223749160767,
-0.0679999440908432,
-0.12569986283779144,
0.3717612326145172,
0.28187426924705505,
-0.05783015489578247,
0.0317203551530838,
-0.13060516119003296,
0.27976298332214355,
0.030442051589488983,
0.001975700259208679,
-0.1016218438744545,
-0.14831073582172394,
-0.47475308179855347,
-0.40603581070899963,
0.02603645622730255,
0.17965003848075867,
0.11155916005373001,
-0.2101285606622696,
0.13397055864334106,
-0.0188682209700346,
-0.24504896998405457,
0.08942176401615143,
0.1031859815120697,
-0.1743166446685791,
-0.03131350874900818,
0.10778339207172394,
-0.13057266175746918,
0.08922013640403748,
0.29228293895721436,
-0.20331981778144836,
-0.1827048659324646,
0.5570833683013916,
-0.19182324409484863,
-0.18153543770313263,
-0.15928992629051208,
-0.17469744384288788,
0.2314821034669876,
-0.46457767486572266,
0.10097423940896988,
-0.08941226452589035,
-0.12167628109455109,
0.041082751005887985,
0.33082371950149536,
0.187730073928833,
0.17358902096748352,
0.07088319957256317,
-0.2569063901901245,
-0.2817663848400116,
0.16321909427642822,
-0.5082811117172241,
0.06361754238605499,
0.00040738657116889954,
0.3584067225456238,
-0.28872257471084595,
0.3904944062232971,
-0.2625270485877991,
0.09431251883506775,
-0.0914551392197609,
0.09051129221916199,
-0.05649241805076599,
-0.3398314416408539,
-0.0600881427526474,
0.008368197828531265,
-0.006850941106677055,
0.41537463665008545,
-0.2501576542854309,
-0.164799302816391,
-0.23396290838718414,
0.1227044090628624,
0.33535200357437134,
-0.3256461024284363,
-0.04769663140177727,
0.24043713510036469,
0.0712323859333992,
-0.14163494110107422,
-0.05117891728878021,
-0.034412916749715805,
-0.09871168434619904,
0.10778345912694931,
0.09028013050556183,
0.04849917069077492,
0.24480722844600677,
0.17203551530838013,
0.0000042244791984558105,
0.011608392000198364,
0.10337276756763458,
0.3003521263599396,
-0.056695252656936646,
0.0499827116727829,
0.009672263637185097,
0.05495506525039673,
-0.05470168590545654,
-0.10611497610807419,
0.1037997305393219,
-0.4290775656700134,
-0.27676743268966675,
-0.152322456240654,
0.0514533668756485,
0.0842212662100792,
-0.0090162493288517,
-0.408621609210968,
0.556329607963562,
0.1777573674917221,
-0.16446295380592346,
-0.073064424097538,
0.4187651574611664,
0.23043155670166016,
0.05824696645140648,
0.06152049079537392,
0.2833520770072937,
-0.09697099030017853,
0.08293343335390091,
0.021381698548793793,
0.4993331730365753,
-0.40744322538375854,
0.1961522102355957,
-0.007525306195020676,
-0.05386385694146156,
0.03897891938686371,
0.5023403167724609,
0.1022217720746994,
0.2201758474111557,
0.031536445021629333,
-0.06836199015378952,
0.30544513463974,
0.09963265061378479,
0.2393581122159958,
-0.10120419412851334,
-0.395954430103302,
-0.3370903432369232,
0.3917890787124634,
-0.04883599281311035,
0.22348865866661072,
0.022382788360118866,
0.5310404896736145,
-0.02210870385169983,
-0.42057451605796814,
0.14573778212070465,
0.5340760946273804,
-0.34414249658584595,
-0.34283486008644104,
-0.4735890328884125,
0.007298551499843597,
-0.3503245711326599,
0.02351870760321617,
-0.026537451893091202,
-0.041302748024463654,
0.007149688899517059,
-0.07907332479953766,
-0.15817849338054657,
-0.3293397128582001,
-0.23597145080566406,
0.05745459347963333,
0.29125872254371643,
-0.24715059995651245,
0.40188145637512207,
-0.4688883423805237,
-0.21708130836486816,
-0.26544663310050964,
0.19908185303211212,
0.2948342263698578,
0.24473686516284943,
-0.41608789563179016,
-0.22379674017429352,
0.011964086443185806,
0.12716048955917358,
-0.12253853678703308,
0.31431493163108826,
0.24124889075756073,
-0.38681456446647644,
0.14211077988147736,
-0.04010903462767601,
-0.11037386208772659,
0.03106118179857731,
0.13896983861923218,
0.2229580283164978,
0.3279426693916321,
0.16591955721378326,
-0.1513468325138092,
-0.07004347443580627,
-0.05142935365438461,
0.07747542858123779,
-0.22369316220283508,
0.13349168002605438,
0.02282578870654106,
0.042299337685108185,
0.1793937087059021,
-0.3248320519924164,
0.08635003119707108,
0.1088382750749588,
0.41869065165519714,
0.3605179786682129,
-0.26783043146133423,
-0.40158596634864807,
-0.4270043969154358,
-0.3972662687301636,
0.19654077291488647,
-0.05414490029215813,
-0.047371797263622284,
-0.04059194400906563,
0.058617040514945984,
0.04444076865911484,
-0.020000264048576355,
-0.19495682418346405,
0.4008173942565918,
0.13667991757392883,
0.17456290125846863,
-0.377607136964798,
0.4529929757118225,
0.09525051712989807,
-0.07812048494815826,
0.23466211557388306,
-0.30719295144081116,
0.014845959842205048,
0.10009229183197021,
0.056665822863578796,
-0.1513729840517044,
-0.12513765692710876,
-0.040740568190813065,
0.20701277256011963,
0.2774704098701477,
0.33225399255752563,
0.20222043991088867,
0.06408832967281342,
0.18390008807182312,
-0.38966959714889526,
-0.3934144973754883,
-0.24132734537124634,
-0.10816434770822525,
-0.18652395904064178,
0.43140289187431335,
-0.029628029093146324,
0.233259379863739,
-0.41990286111831665,
0.012596803717315197,
-0.029273895546793938,
0.07565505802631378,
-0.17471405863761902,
0.32516640424728394,
-0.2844861149787903,
0.2631874084472656,
-0.05177651345729828,
0.3642563819885254,
-0.015290111303329468,
0.43932071328163147,
-0.41979414224624634,
-0.434835821390152,
0.5731074810028076,
-0.7418985962867737,
-0.2233954668045044,
0.2329637110233307,
0.007688656449317932,
0.5054775476455688,
-0.36830082535743713,
-0.1933443248271942,
-0.25314339995384216,
0.21366918087005615,
-0.04100775718688965,
-0.24649004638195038,
0.050612401217222214,
-0.045193616300821304,
-0.09691548347473145,
-0.042786162346601486,
0.6299058198928833,
0.1238589808344841,
-0.13194967806339264,
0.14684230089187622,
-0.1718580424785614
] |
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.009911850094795227,
0.17618778347969055,
0.0797635018825531,
0.033219195902347565,
-0.01876416802406311,
-0.09835223853588104,
-0.04397714510560036,
0.3858540952205658,
0.23286229372024536,
-0.17839615046977997,
0.15334439277648926,
0.7815696001052856,
-0.18905842304229736,
-0.2719968259334564,
0.056634657084941864,
-0.15590611100196838,
0.00684172660112381,
0.11283059418201447,
0.338462769985199,
0.017907030880451202,
-0.22156745195388794,
0.36634349822998047,
-0.20355470478534698,
0.2977564036846161,
-0.4966283440589905,
-0.21667541563510895,
0.20677535235881805,
-0.04722113162279129,
-0.12316907197237015,
-0.5728652477264404,
0.18703943490982056,
-0.07400459051132202,
-0.1319383829832077,
0.06161869689822197,
-0.00011744163930416107,
-0.1495583951473236,
0.3925051689147949,
0.02706455998122692,
-0.1482357531785965,
-0.23680900037288666,
0.17055663466453552,
-0.09398548305034637,
0.13261224329471588,
-0.02327008545398712,
-0.029541606083512306,
-0.07699138671159744,
0.10836632549762726,
-0.10980702936649323,
0.3249572515487671,
-0.03442222625017166,
0.19127702713012695,
0.30618786811828613,
0.13825732469558716,
0.010818570852279663,
0.0969168096780777,
-0.1552184373140335,
-0.16840915381908417,
-0.0005964431911706924,
0.09011950343847275,
-0.265320748090744,
-0.2927822172641754,
0.4738676846027374,
0.00865715928375721,
-0.058262553066015244,
0.06942357867956161,
0.021325644105672836,
-0.17859327793121338,
-0.07572025805711746,
0.09370629489421844,
-0.02710726112127304,
0.09554572403430939,
-0.18595218658447266,
-0.044574663043022156,
-0.4417171776294708,
-0.1290048360824585,
-0.4550063908100128,
0.18273892998695374,
-0.14791840314865112,
-0.23841503262519836,
-0.044095125049352646,
-0.009039732627570629,
-0.3884578049182892,
0.1388707160949707,
0.3053472340106964,
0.12892870604991913,
0.6000416278839111,
-0.057279132306575775,
0.2780376970767975,
0.28198114037513733,
-0.08804044872522354,
-0.23828160762786865,
0.15676997601985931,
-0.1878783404827118,
0.43565255403518677,
-0.34436461329460144,
-0.11781004816293716,
0.22056987881660461,
0.05353765934705734,
-0.06403093039989471,
0.3975781202316284,
-0.0016299216076731682,
0.24292296171188354,
-0.12060648947954178,
0.16440440714359283,
0.04771692678332329,
0.45910707116127014,
0.30474475026130676,
0.5499497056007385,
0.010525748133659363,
-0.3980911672115326,
-0.03758549317717552,
-0.05038372427225113,
-0.07537049800157547,
-0.26227787137031555,
0.03182390704751015,
0.05095253139734268,
-0.11718140542507172,
-0.10476778447628021,
-0.13309217989444733,
0.060889795422554016,
-0.26869890093803406,
0.06473678350448608,
0.22085925936698914,
0.19584855437278748,
0.13529449701309204,
0.15045040845870972,
-0.13207674026489258,
0.17244140803813934,
-0.18776309490203857,
-0.1661204695701599,
-0.24814286828041077,
0.07978573441505432,
-0.3150072395801544,
0.18196238577365875,
0.09730525314807892,
0.2771177887916565,
0.48032262921333313,
-0.16881373524665833,
-0.0587521493434906,
0.06284675747156143,
0.12489375472068787,
-0.00923234224319458,
0.23225107789039612,
0.07257474213838577,
-0.14736150205135345,
0.32906073331832886,
0.31269705295562744,
-0.1413334310054779,
-0.2816562056541443,
-0.05163019150495529,
-0.2734327018260956,
-0.3626497983932495,
-0.1152622252702713,
0.12547577917575836,
-0.06226459890604019,
-0.13849472999572754,
-0.2719877064228058,
0.24202853441238403,
0.4594835042953491,
-0.18899042904376984,
0.11018342524766922,
-0.19901151955127716,
-0.3264875113964081,
-0.2962646186351776,
0.03071264736354351,
0.2880880832672119,
0.04842733219265938,
-0.3790307641029358,
-0.19732022285461426,
0.15270237624645233,
0.4366892874240875,
0.5128077268600464,
-0.3213968276977539,
0.15187367796897888,
-0.26180121302604675,
0.8142929673194885,
0.5736559629440308,
-0.2508249282836914,
-0.4575698971748352,
0.03586412966251373,
-0.1898690164089203,
0.08280724287033081,
-0.2472427487373352,
-0.0829210951924324,
-0.011943619698286057,
-0.14294536411762238,
0.17918702960014343,
0.24893973767757416,
-0.008139284327626228,
0.007634246721863747,
-0.38457566499710083,
-0.04298616200685501,
0.36107057332992554,
-0.04021046683192253,
0.13590162992477417,
-0.11010181158781052,
-0.2231203317642212,
0.013850283809006214,
0.001965261995792389,
-0.015099156647920609,
0.34473466873168945,
-0.07404790073633194,
0.11379535496234894,
-0.1738635003566742,
0.07570668309926987,
0.041116029024124146,
-0.37375301122665405,
0.15236982703208923,
-0.2930893301963806,
0.15114030241966248,
-0.20104239881038666,
0.021356817334890366,
-0.12877744436264038,
0.04449695348739624,
-0.3398892879486084,
-0.23302802443504333,
0.12846793234348297,
0.00465112179517746,
0.19840775430202484,
0.03442961350083351,
-0.014597315341234207,
-0.061044953763484955,
0.06276113539934158,
0.15491004288196564,
-0.13033315539360046,
-0.05654396116733551,
-0.04677678644657135,
-0.275235652923584,
-0.2991563379764557,
0.16003262996673584,
0.23997357487678528,
-0.025426767766475677,
-0.26036015152931213,
0.29413342475891113,
0.007031245157122612,
0.04866497591137886,
-0.12077499181032181,
-0.06057220697402954,
0.09702886641025543,
-0.13870996236801147,
-0.1103154644370079,
0.12425406277179718,
-0.019869280979037285,
-0.2519941031932831,
0.31832629442214966,
0.3542829751968384,
0.18840819597244263,
0.06003709137439728,
-0.28683000802993774,
0.2985999286174774,
0.061098404228687286,
-0.01738354191184044,
0.13141284883022308,
-0.271495521068573,
0.06667328625917435,
-0.12505866587162018,
0.29385557770729065,
-0.1201205849647522,
-0.02170790731906891,
0.3552842438220978,
0.32174769043922424,
0.3191151022911072,
0.060161836445331573,
0.11061729490756989,
-0.2048504650592804,
-0.2746069133281708,
0.0948239415884018,
0.12427519261837006,
0.15679149329662323,
0.18599830567836761,
0.04236772656440735,
-0.058703526854515076,
-0.10603693127632141,
-0.08836466819047928,
0.13407129049301147,
0.012187480926513672,
0.06867904961109161,
0.15963464975357056,
0.06015898659825325,
0.11714334785938263,
-0.3626597225666046,
0.009321454912424088,
0.10926095396280289,
0.31288912892341614,
-0.11231575906276703,
-0.06857354193925858,
-0.3171987235546112,
-0.09657785296440125,
0.1861840784549713,
-0.34860959649086,
-0.24346613883972168,
-0.45386746525764465,
0.1318594068288803,
0.13968296349048615,
-0.1204628050327301,
0.4497217535972595,
-0.18037240207195282,
0.24645915627479553,
0.029110489413142204,
-0.09016578644514084,
-0.31709611415863037,
-0.500176727771759,
-0.3929177224636078,
-0.002068564295768738,
0.1086926981806755,
-0.06565147638320923,
0.19884377717971802,
0.17002171277999878,
0.03880329802632332,
-0.07996894419193268,
-0.3938220143318176,
0.2245362251996994,
-0.12875834107398987,
0.048669904470443726,
0.24079856276512146,
-0.20670093595981598,
-0.44355446100234985,
-0.3115970194339752,
0.1795257329940796,
-0.34777748584747314,
-0.3655570149421692,
-0.12697601318359375,
0.044309649616479874,
-0.1161487028002739,
-0.1567026674747467,
-0.04878906160593033,
-0.1834060400724411,
-0.28318992257118225,
0.27697286009788513,
0.024691063910722733,
0.18116486072540283,
0.42587602138519287,
-0.34760552644729614,
0.05340448021888733,
-0.3079635500907898,
-0.12469953298568726,
-0.5135579109191895,
0.09017990529537201,
0.3106083273887634,
-0.32009372115135193,
-0.13873426616191864,
-0.17292632162570953,
-0.1581389605998993,
0.3402468264102936,
0.041067466139793396,
-0.19394545257091522,
0.11227352172136307,
-0.0858658105134964,
0.16101619601249695,
-0.10779835283756256,
-0.062369205057621,
0.4786887466907501,
0.09708612412214279,
-0.003203514963388443,
-0.1829605996608734,
-0.16469065845012665,
0.41147950291633606,
-0.06806861609220505,
0.3304802179336548,
0.08736763894557953,
0.10527409613132477,
0.2931070327758789,
0.8183512091636658,
0.2056206911802292,
-0.10437114536762238,
0.48814043402671814,
0.2336605191230774,
0.0024522654712200165,
-0.20409074425697327,
-0.24899452924728394,
0.10886980593204498,
-0.021735355257987976,
0.33505475521087646,
0.05009211227297783,
0.008599426597356796,
-0.41724854707717896,
0.12043771147727966,
0.15182986855506897,
-0.1542118489742279,
-0.2865460216999054,
0.1852337270975113,
-0.38361185789108276,
0.13475589454174042,
0.17770497500896454,
0.04425846040248871,
-0.5306251049041748,
-0.13457801938056946,
0.1172005832195282,
-0.25686532258987427,
0.3932614028453827,
0.08267480880022049,
-0.5393274426460266,
0.05163106322288513,
-0.7337315678596497,
0.2864338159561157,
0.24137386679649353,
0.39541080594062805,
-0.1988527625799179,
-0.17362046241760254,
0.041854195296764374,
0.07487165927886963,
0.345220148563385,
-0.1550500988960266,
-0.055280886590480804,
0.16759417951107025,
0.06943473219871521,
-0.1352933645248413,
0.1023072898387909,
0.2772548496723175,
0.5168842673301697,
0.45414838194847107,
0.3920667767524719,
-0.38812053203582764,
-0.25622057914733887,
-0.16759441792964935,
-0.17444656789302826,
-0.018657110631465912,
0.03659047186374664,
0.029322337359189987,
0.11371325701475143,
-0.17213071882724762,
0.1507241278886795,
0.27614879608154297,
0.338830828666687,
0.39486584067344666,
0.17621615529060364,
-0.11653243005275726,
-0.12748320400714874,
-0.1879197210073471,
0.13666903972625732,
0.36158373951911926,
0.032666273415088654,
0.04741683229804039,
0.21893006563186646,
0.11869332194328308,
-0.2655071020126343,
0.16447043418884277,
0.25094228982925415,
-0.1118043065071106,
0.16112014651298523,
0.28357043862342834,
0.12172836065292358,
0.27629369497299194,
0.03527161106467247,
0.4669426679611206,
-0.439646452665329,
0.20554830133914948,
0.1118127852678299,
0.4023247957229614,
0.06568989902734756,
-0.05350754037499428,
-0.20247375965118408,
-0.08513143658638,
0.32677266001701355,
0.1251053363084793,
-0.21785594522953033,
0.5619801878929138,
-0.030540212988853455,
-0.34341883659362793,
0.45479124784469604,
0.10107150673866272,
0.8719285726547241,
0.27255719900131226,
0.20116105675697327,
0.23683416843414307,
0.05637010931968689,
0.6379822492599487,
0.03707457333803177,
0.1459992676973343,
-0.3191588521003723,
0.36650967597961426,
0.03573952615261078,
-0.03795981407165527,
-0.1278342604637146,
0.09608028829097748,
-0.04991242289543152,
0.20488864183425903,
0.23945583403110504,
0.2010638564825058,
0.248294398188591,
0.11101669073104858,
-0.0012670289725065231,
-0.35418999195098877,
0.18311165273189545,
0.08416620641946793,
-0.3797294497489929,
0.36355629563331604,
0.04326522350311279,
-0.14761480689048767,
-0.028320109471678734,
-0.34953516721725464,
-0.2687566876411438,
0.11712478846311569,
-0.46198323369026184,
0.39097267389297485,
0.4313521981239319,
-0.20794959366321564,
0.1729608178138733,
-0.14051954448223114,
0.17857223749160767,
-0.0679999440908432,
-0.12569986283779144,
0.3717612326145172,
0.28187426924705505,
-0.05783015489578247,
0.0317203551530838,
-0.13060516119003296,
0.27976298332214355,
0.030442051589488983,
0.001975700259208679,
-0.1016218438744545,
-0.14831073582172394,
-0.47475308179855347,
-0.40603581070899963,
0.02603645622730255,
0.17965003848075867,
0.11155916005373001,
-0.2101285606622696,
0.13397055864334106,
-0.0188682209700346,
-0.24504896998405457,
0.08942176401615143,
0.1031859815120697,
-0.1743166446685791,
-0.03131350874900818,
0.10778339207172394,
-0.13057266175746918,
0.08922013640403748,
0.29228293895721436,
-0.20331981778144836,
-0.1827048659324646,
0.5570833683013916,
-0.19182324409484863,
-0.18153543770313263,
-0.15928992629051208,
-0.17469744384288788,
0.2314821034669876,
-0.46457767486572266,
0.10097423940896988,
-0.08941226452589035,
-0.12167628109455109,
0.041082751005887985,
0.33082371950149536,
0.187730073928833,
0.17358902096748352,
0.07088319957256317,
-0.2569063901901245,
-0.2817663848400116,
0.16321909427642822,
-0.5082811117172241,
0.06361754238605499,
0.00040738657116889954,
0.3584067225456238,
-0.28872257471084595,
0.3904944062232971,
-0.2625270485877991,
0.09431251883506775,
-0.0914551392197609,
0.09051129221916199,
-0.05649241805076599,
-0.3398314416408539,
-0.0600881427526474,
0.008368197828531265,
-0.006850941106677055,
0.41537463665008545,
-0.2501576542854309,
-0.164799302816391,
-0.23396290838718414,
0.1227044090628624,
0.33535200357437134,
-0.3256461024284363,
-0.04769663140177727,
0.24043713510036469,
0.0712323859333992,
-0.14163494110107422,
-0.05117891728878021,
-0.034412916749715805,
-0.09871168434619904,
0.10778345912694931,
0.09028013050556183,
0.04849917069077492,
0.24480722844600677,
0.17203551530838013,
0.0000042244791984558105,
0.011608392000198364,
0.10337276756763458,
0.3003521263599396,
-0.056695252656936646,
0.0499827116727829,
0.009672263637185097,
0.05495506525039673,
-0.05470168590545654,
-0.10611497610807419,
0.1037997305393219,
-0.4290775656700134,
-0.27676743268966675,
-0.152322456240654,
0.0514533668756485,
0.0842212662100792,
-0.0090162493288517,
-0.408621609210968,
0.556329607963562,
0.1777573674917221,
-0.16446295380592346,
-0.073064424097538,
0.4187651574611664,
0.23043155670166016,
0.05824696645140648,
0.06152049079537392,
0.2833520770072937,
-0.09697099030017853,
0.08293343335390091,
0.021381698548793793,
0.4993331730365753,
-0.40744322538375854,
0.1961522102355957,
-0.007525306195020676,
-0.05386385694146156,
0.03897891938686371,
0.5023403167724609,
0.1022217720746994,
0.2201758474111557,
0.031536445021629333,
-0.06836199015378952,
0.30544513463974,
0.09963265061378479,
0.2393581122159958,
-0.10120419412851334,
-0.395954430103302,
-0.3370903432369232,
0.3917890787124634,
-0.04883599281311035,
0.22348865866661072,
0.022382788360118866,
0.5310404896736145,
-0.02210870385169983,
-0.42057451605796814,
0.14573778212070465,
0.5340760946273804,
-0.34414249658584595,
-0.34283486008644104,
-0.4735890328884125,
0.007298551499843597,
-0.3503245711326599,
0.02351870760321617,
-0.026537451893091202,
-0.041302748024463654,
0.007149688899517059,
-0.07907332479953766,
-0.15817849338054657,
-0.3293397128582001,
-0.23597145080566406,
0.05745459347963333,
0.29125872254371643,
-0.24715059995651245,
0.40188145637512207,
-0.4688883423805237,
-0.21708130836486816,
-0.26544663310050964,
0.19908185303211212,
0.2948342263698578,
0.24473686516284943,
-0.41608789563179016,
-0.22379674017429352,
0.011964086443185806,
0.12716048955917358,
-0.12253853678703308,
0.31431493163108826,
0.24124889075756073,
-0.38681456446647644,
0.14211077988147736,
-0.04010903462767601,
-0.11037386208772659,
0.03106118179857731,
0.13896983861923218,
0.2229580283164978,
0.3279426693916321,
0.16591955721378326,
-0.1513468325138092,
-0.07004347443580627,
-0.05142935365438461,
0.07747542858123779,
-0.22369316220283508,
0.13349168002605438,
0.02282578870654106,
0.042299337685108185,
0.1793937087059021,
-0.3248320519924164,
0.08635003119707108,
0.1088382750749588,
0.41869065165519714,
0.3605179786682129,
-0.26783043146133423,
-0.40158596634864807,
-0.4270043969154358,
-0.3972662687301636,
0.19654077291488647,
-0.05414490029215813,
-0.047371797263622284,
-0.04059194400906563,
0.058617040514945984,
0.04444076865911484,
-0.020000264048576355,
-0.19495682418346405,
0.4008173942565918,
0.13667991757392883,
0.17456290125846863,
-0.377607136964798,
0.4529929757118225,
0.09525051712989807,
-0.07812048494815826,
0.23466211557388306,
-0.30719295144081116,
0.014845959842205048,
0.10009229183197021,
0.056665822863578796,
-0.1513729840517044,
-0.12513765692710876,
-0.040740568190813065,
0.20701277256011963,
0.2774704098701477,
0.33225399255752563,
0.20222043991088867,
0.06408832967281342,
0.18390008807182312,
-0.38966959714889526,
-0.3934144973754883,
-0.24132734537124634,
-0.10816434770822525,
-0.18652395904064178,
0.43140289187431335,
-0.029628029093146324,
0.233259379863739,
-0.41990286111831665,
0.012596803717315197,
-0.029273895546793938,
0.07565505802631378,
-0.17471405863761902,
0.32516640424728394,
-0.2844861149787903,
0.2631874084472656,
-0.05177651345729828,
0.3642563819885254,
-0.015290111303329468,
0.43932071328163147,
-0.41979414224624634,
-0.434835821390152,
0.5731074810028076,
-0.7418985962867737,
-0.2233954668045044,
0.2329637110233307,
0.007688656449317932,
0.5054775476455688,
-0.36830082535743713,
-0.1933443248271942,
-0.25314339995384216,
0.21366918087005615,
-0.04100775718688965,
-0.24649004638195038,
0.050612401217222214,
-0.045193616300821304,
-0.09691548347473145,
-0.042786162346601486,
0.6299058198928833,
0.1238589808344841,
-0.13194967806339264,
0.14684230089187622,
-0.1718580424785614
] |
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.3230103850364685,
-0.12566998600959778,
-0.12979565560817719,
-0.3137855529785156,
0.052387066185474396,
0.19275787472724915,
0.031581804156303406,
0.08298201113939285,
0.18523317575454712,
0.0769864171743393,
0.6435585618019104,
0.7557861804962158,
-0.089021697640419,
0.409541517496109,
0.24462343752384186,
0.032614149153232574,
0.02826572209596634,
0.22548142075538635,
0.014326333999633789,
0.029933109879493713,
-0.31132733821868896,
-0.331604927778244,
0.04404206573963165,
-0.14167022705078125,
-0.2610888183116913,
-0.10558528453111649,
0.09172350913286209,
-0.28812283277511597,
-0.26725783944129944,
-0.4562530219554901,
-0.07569962739944458,
0.052578214555978775,
-0.007645502686500549,
-0.25056323409080505,
-0.00011566057946765795,
-0.2479667067527771,
0.17165502905845642,
0.04295843094587326,
-0.10686242580413818,
-0.09991534054279327,
-0.6523425579071045,
-0.46455907821655273,
0.23346498608589172,
-0.141196608543396,
-0.03079516626894474,
-0.09863921254873276,
0.03519180417060852,
-0.3240499794483185,
-0.06231960654258728,
-0.09793904423713684,
0.21189472079277039,
-0.1266072690486908,
0.18476569652557373,
-0.050319112837314606,
0.25210410356521606,
0.4834829568862915,
-0.369220107793808,
-0.24725300073623657,
0.03249825909733772,
0.06744230538606644,
0.17428942024707794,
0.3334386944770813,
0.29095008969306946,
-0.2479882389307022,
0.41523268818855286,
0.10510249435901642,
0.03741626441478729,
-0.16112813353538513,
-0.09024471789598465,
0.1184944212436676,
0.7849727869033813,
-0.27549096941947937,
-0.2820773422718048,
0.004974834620952606,
0.12086242437362671,
-0.3142985701560974,
-0.0033538565039634705,
-0.0835782065987587,
0.14032785594463348,
0.021211596205830574,
0.2073625922203064,
-0.5490003228187561,
-0.0674220398068428,
0.12888817489147186,
0.12519621849060059,
0.3817363381385803,
0.06204521656036377,
0.11592034995555878,
-0.11732122302055359,
-0.158869206905365,
0.017290761694312096,
-0.027565449476242065,
-0.2013935148715973,
0.5192963480949402,
-0.22264768183231354,
-0.2803495228290558,
0.229475736618042,
-0.3392002284526825,
0.03923872858285904,
0.18318909406661987,
0.1848757266998291,
0.017474183812737465,
-0.3253740072250366,
0.17470741271972656,
0.13227131962776184,
-0.02810400351881981,
0.20364302396774292,
0.18258985877037048,
0.006713632494211197,
-0.4320653975009918,
-0.04066283628344536,
-0.36515185236930847,
0.2856075167655945,
-0.09943205863237381,
0.2918943166732788,
0.047470077872276306,
0.4299737811088562,
-0.14702850580215454,
0.20401877164840698,
-0.14689688384532928,
0.1710052490234375,
-0.037490151822566986,
0.005303726531565189,
0.08828707039356232,
0.29634761810302734,
-0.10052501410245895,
-0.036840278655290604,
0.27567416429519653,
0.33909791707992554,
0.040443215519189835,
-0.050253499299287796,
-0.3233453333377838,
0.07568176090717316,
0.34531691670417786,
0.027161363512277603,
0.2046007513999939,
0.11693450808525085,
-0.02361133322119713,
-0.07656252384185791,
0.05355533957481384,
0.27328628301620483,
-0.037328556180000305,
0.26735422015190125,
0.21967874467372894,
-0.1547064483165741,
0.13502183556556702,
-0.007507637143135071,
0.49949032068252563,
-0.26319175958633423,
0.3902086913585663,
-0.13045960664749146,
-0.29423788189888,
-0.1127520352602005,
0.1767224371433258,
0.09515716135501862,
-0.3213919997215271,
-0.2972113788127899,
0.37485790252685547,
-0.08899467438459396,
-0.16987256705760956,
0.2799263596534729,
0.33271360397338867,
-0.24854309856891632,
-0.30374541878700256,
-0.0681346133351326,
0.14087365567684174,
-0.19924479722976685,
0.01878976821899414,
-0.42185142636299133,
-0.07454369962215424,
-0.22383591532707214,
-0.416745126247406,
-0.1549997180700302,
0.3106943666934967,
0.00013204477727413177,
0.3453453779220581,
0.838085949420929,
0.052307840436697006,
-0.11645983159542084,
0.14946870505809784,
-0.4384101629257202,
-0.10041671246290207,
-0.2182469367980957,
0.5195285081863403,
0.22254236042499542,
0.1640651971101761,
-0.09571659564971924,
0.3228786587715149,
-0.24405649304389954,
-0.07221227139234543,
0.08374662697315216,
-0.031925663352012634,
0.186467707157135,
0.07978186011314392,
-0.11553433537483215,
0.07232311367988586,
0.354731023311615,
-0.33992427587509155,
-0.07577528804540634,
0.22871319949626923,
0.15480147302150726,
0.062421467155218124,
0.6634558439254761,
-0.1903359740972519,
-0.14944340288639069,
-0.254169225692749,
-0.3794175684452057,
0.044626325368881226,
0.01830502599477768,
-0.23273083567619324,
-0.0779552161693573,
-0.36385780572891235,
0.13582086563110352,
0.39314839243888855,
-0.04654897376894951,
0.1942267119884491,
0.038886018097400665,
-0.2910774350166321,
-0.24593131244182587,
-0.12712223827838898,
-0.24294614791870117,
-0.2864040732383728,
-0.05380129814147949,
0.021813789382576942,
0.06025520712137222,
-0.06079024076461792,
0.17657198011875153,
-0.09100363403558731,
-0.36591240763664246,
0.10238520801067352,
0.040897637605667114,
0.08841639012098312,
-0.2122458815574646,
0.2533629238605499,
0.1685372292995453,
0.2339468002319336,
0.5139038562774658,
0.22324684262275696,
0.05110783874988556,
-0.25049352645874023,
0.012636937201023102,
0.1277921497821808,
-0.09994552284479141,
-0.22338950634002686,
-0.18533533811569214,
0.22134000062942505,
0.07010319828987122,
0.14392831921577454,
-0.20152528584003448,
0.17729733884334564,
0.28231295943260193,
0.0923546850681305,
-0.09558185189962387,
-0.146755188703537,
-0.33777499198913574,
-0.0845680683851242,
-0.09949570894241333,
-0.12597233057022095,
-0.028134506195783615,
0.2752660810947418,
0.326628178358078,
-0.036525510251522064,
0.07844839990139008,
0.22834512591362,
-0.16949963569641113,
0.11580150574445724,
0.3157920241355896,
-0.19050920009613037,
0.3854660987854004,
0.25566786527633667,
-0.022261422127485275,
-0.017680702731013298,
-0.021128728985786438,
0.08073385059833527,
0.2407304346561432,
-0.13787336647510529,
0.27071020007133484,
-0.016586072742938995,
0.3332595229148865,
-0.06788549572229385,
-0.052777960896492004,
-0.05666210502386093,
0.118971087038517,
0.09977149218320847,
-0.044887617230415344,
-0.2961108386516571,
0.11919014155864716,
0.09213054925203323,
-0.004259672947227955,
-0.06341829895973206,
-0.1733608990907669,
-0.3518208861351013,
0.2331579178571701,
-0.05141894146800041,
-0.2088758796453476,
0.1475670039653778,
-0.3344327509403229,
0.25922253727912903,
0.029575863853096962,
-0.34125378727912903,
-0.05221065878868103,
-0.20544598996639252,
0.20899716019630432,
0.05291135236620903,
-0.09200029820203781,
-0.15564320981502533,
0.5642310380935669,
0.562084436416626,
0.3921133279800415,
-0.5298603773117065,
-0.4843093454837799,
-0.014124952256679535,
0.08184182643890381,
-0.16597098112106323,
0.0243256613612175,
0.010607384145259857,
-0.2986762523651123,
-0.2159094214439392,
0.05155988410115242,
0.07902730256319046,
-0.21168623864650726,
-0.14313754439353943,
-0.12340522557497025,
-0.09024568647146225,
-0.09769371151924133,
-0.16583788394927979,
-0.01066320389509201,
-0.30485594272613525,
0.4907073974609375,
0.08693791925907135,
0.13834789395332336,
-0.018754974007606506,
0.13125528395175934,
-0.06781330704689026,
-0.16831184923648834,
-0.3420355021953583,
-0.1610829085111618,
0.14265590906143188,
0.3432583212852478,
-0.41805529594421387,
0.05584819242358208,
0.2637421786785126,
-0.13182291388511658,
-0.020290162414312363,
0.43146252632141113,
-0.26495152711868286,
0.092745840549469,
-0.0009442884474992752,
0.6025667190551758,
-0.18074184656143188,
-0.023150881752371788,
0.5678802728652954,
0.27968788146972656,
-0.045187078416347504,
-0.05303915590047836,
-0.10389325022697449,
0.14860239624977112,
0.48607540130615234,
0.20475603640079498,
-0.048646651208400726,
0.34898483753204346,
-0.27986833453178406,
0.6352142095565796,
-0.2009715586900711,
-0.014774445444345474,
0.22489921748638153,
-0.21064293384552002,
0.17442092299461365,
-0.17102888226509094,
0.06277135014533997,
-0.2686364948749542,
0.02955586463212967,
-0.2321029156446457,
-0.1637754589319229,
0.019074339419603348,
-0.22148333489894867,
0.02463209629058838,
0.007815897464752197,
0.010609522461891174,
-0.055073462426662445,
0.18679854273796082,
-0.60589998960495,
0.5232607126235962,
-0.1445966362953186,
-0.17368146777153015,
-0.5607346296310425,
-0.009855269454419613,
0.015952156856656075,
-0.14419054985046387,
0.465431272983551,
-0.4178937077522278,
-0.46120351552963257,
-0.21740293502807617,
-0.3871830403804779,
0.18705806136131287,
0.08089038729667664,
-0.07359369099140167,
-0.21958224475383759,
-0.18955272436141968,
-0.14421795308589935,
0.22872000932693481,
0.35130858421325684,
-0.6429319977760315,
-0.16470175981521606,
-0.14237383008003235,
0.2122730016708374,
-0.09740737080574036,
0.05929933115839958,
0.17403610050678253,
0.36194121837615967,
-0.21749313175678253,
0.5275083780288696,
-0.20492002367973328,
0.24443785846233368,
0.38063663244247437,
-0.09481470286846161,
-0.20390017330646515,
-0.09966577589511871,
0.024412427097558975,
-0.0027059391140937805,
-0.04462457448244095,
0.0897795781493187,
-0.06822177767753601,
-0.21145635843276978,
0.30429375171661377,
-0.4484108090400696,
-0.2740825414657593,
0.07580534368753433,
-0.17226584255695343,
0.12260852754116058,
0.2490200400352478,
0.2360476702451706,
0.28404074907302856,
0.014226110652089119,
0.01963772624731064,
-0.025928696617484093,
0.34489771723747253,
0.025977712124586105,
-0.18317675590515137,
-0.1373797357082367,
-0.42839232087135315,
0.7307028770446777,
0.1598426103591919,
0.07839176058769226,
0.7191224694252014,
-0.06681209802627563,
-0.11801907420158386,
-0.376564621925354,
-0.09427609294652939,
0.2884328067302704,
-0.18747510015964508,
-0.08569671958684921,
-0.29080507159233093,
0.5907082557678223,
-0.05304727330803871,
-0.07410942018032074,
0.6676123738288879,
0.08844548463821411,
-0.22067660093307495,
0.5987033247947693,
0.2209467589855194,
0.9525297284126282,
-0.1935122162103653,
-0.1417451649904251,
-0.05804222822189331,
-0.2504086494445801,
0.2143837958574295,
-0.17269450426101685,
-0.08335060626268387,
-0.1577388048171997,
-0.2897278666496277,
-0.08914326876401901,
-0.11880996823310852,
0.09139099717140198,
0.36188435554504395,
-0.2552143633365631,
-0.2974042594432831,
-0.1148674413561821,
0.47635164856910706,
-0.07309872657060623,
0.17063535749912262,
0.240048348903656,
-0.2808710038661957,
0.11826790869235992,
0.08720654249191284,
-0.022559940814971924,
-0.10195453464984894,
-0.24901053309440613,
-0.22411896288394928,
0.07248073816299438,
-0.22204019129276276,
-0.10717416554689407,
-0.14134196937084198,
-0.35636523365974426,
-0.0249498188495636,
-0.12817081809043884,
-0.011054396629333496,
0.12941718101501465,
-0.10549716651439667,
-0.04663781076669693,
0.043286073952913284,
-0.07831235229969025,
0.26174089312553406,
0.3378773331642151,
0.3220252990722656,
-0.03899155557155609,
-0.007521074265241623,
-0.0083566103130579,
-0.06790252774953842,
-0.18643718957901,
0.3520045280456543,
-0.24884958565235138,
-0.4843159317970276,
-0.13395993411540985,
-0.007556654512882233,
-0.022086381912231445,
-0.23106417059898376,
-0.3893100321292877,
0.19509214162826538,
-0.1880645602941513,
-0.08043539524078369,
0.11919008195400238,
0.05649440735578537,
-0.059861209243535995,
0.21808433532714844,
0.3378438353538513,
-0.057293154299259186,
0.08129267394542694,
-0.03875540941953659,
-0.11287293583154678,
0.04400034248828888,
0.2099783718585968,
-0.23395505547523499,
-0.0743984580039978,
-0.1285291612148285,
0.056418582797050476,
0.334058552980423,
-0.4564083516597748,
-0.16278620064258575,
0.20215588808059692,
0.03252635896205902,
-0.14768444001674652,
0.20819920301437378,
-0.17216791212558746,
0.4044399559497833,
-0.28233641386032104,
-0.030927348881959915,
-0.34422042965888977,
0.19316628575325012,
-0.07702456414699554,
0.2968858778476715,
-0.24077820777893066,
-0.11000639200210571,
-0.14865349233150482,
0.4155275821685791,
-0.2784256339073181,
-0.22377467155456543,
0.3204045295715332,
0.3578746020793915,
0.0001110415905714035,
0.49097880721092224,
0.06589629501104355,
-0.27637529373168945,
0.13710619509220123,
-0.05230101943016052,
-0.03678077459335327,
-0.1670791208744049,
0.12411139905452728,
0.18681254982948303,
0.06574210524559021,
-0.2053636610507965,
-0.2564496397972107,
-0.2793380618095398,
-0.1318933069705963,
-0.14343750476837158,
-0.14246225357055664,
-0.22374668717384338,
-0.2377745658159256,
-0.15279388427734375,
0.03413026034832001,
0.18996882438659668,
-0.1506696343421936,
0.19632399082183838,
0.14094319939613342,
0.19330915808677673,
-0.0990130677819252,
0.10347947478294373,
-0.06585719436407089,
0.09529608488082886,
0.13806377351284027,
0.04591752216219902,
0.014825403690338135,
-0.06120844930410385,
0.22451728582382202,
0.0737917572259903,
0.004650089889764786,
-0.02721210941672325,
0.25371432304382324,
-0.19633519649505615,
-0.1477660983800888,
0.24092428386211395,
0.029695602133870125,
0.24074889719486237,
-0.21753104031085968,
0.12101222574710846,
0.4524829387664795,
-0.06254632025957108,
0.14847959578037262,
0.14802294969558716,
0.296968936920166,
0.43237316608428955,
0.01502181589603424,
0.09625648707151413,
-0.31432458758354187,
-0.3172517418861389,
0.15613017976284027,
0.4448060691356659,
0.13583362102508545,
0.09621409326791763,
0.25418394804000854,
0.3600875437259674,
0.18062525987625122,
0.24444599449634552,
0.1413000077009201,
0.22948333621025085,
0.46510079503059387,
-0.25775033235549927,
0.20783209800720215,
-0.3314012885093689,
0.27172601222991943,
-0.03678567707538605,
0.15308965742588043,
0.01345338299870491,
0.5024027824401855,
-0.09646383672952652,
0.13391311466693878,
-0.231401264667511,
0.042086146771907806,
0.039556872099637985,
-0.16674456000328064,
0.14571499824523926,
0.14098018407821655,
-0.11016412079334259,
0.013368777930736542,
-0.1592704951763153,
0.10538822412490845,
-0.0872294008731842,
0.3674435615539551,
-0.0022108927369117737,
0.3381568491458893,
0.2733393609523773,
0.4702841341495514,
0.2463739812374115,
0.21390029788017273,
-0.11488963663578033,
-0.12128587812185287,
-0.4095306992530823,
-0.07484674453735352,
0.047968704253435135,
0.22441105544567108,
-0.19023282825946808,
0.21986901760101318,
-0.2684760093688965,
0.6971406936645508,
-0.022111479192972183,
-0.27508750557899475,
0.0647158995270729,
0.09962848573923111,
0.20453637838363647,
0.001191549003124237,
-0.07830934971570969,
0.15924379229545593,
-0.025653991848230362,
0.17311733961105347,
0.04044605419039726,
0.24467702209949493,
-0.15403586626052856,
0.14211425185203552,
0.2685217261314392,
-0.5370786786079407,
-0.03970715403556824,
0.08508828282356262,
0.21157515048980713,
-0.3055972158908844,
0.3663334548473358,
-0.04443895071744919,
-0.12619899213314056,
-0.12287764251232147,
0.050360627472400665,
-0.15251004695892334,
0.13848096132278442,
0.2217729538679123,
0.0412508100271225,
-0.26448410749435425,
-0.15196344256401062,
-0.3876907527446747,
0.0165584534406662,
-0.07006849348545074,
-0.15635550022125244,
0.3834625780582428,
0.040352798998355865,
0.28110185265541077,
0.08014030754566193,
0.36049067974090576,
-0.4743572473526001,
0.09031707048416138,
0.18195867538452148,
0.0026809461414813995,
-0.21827800571918488,
0.035539090633392334,
0.10784520208835602,
-0.17950068414211273,
0.0957137867808342,
0.08290010690689087,
0.30811038613319397,
0.004347126930952072,
-0.23742128908634186,
-0.2536132335662842,
-0.07985156774520874,
0.01573578640818596,
0.5547652840614319,
-0.24454247951507568,
0.256875216960907,
-0.2621220052242279,
0.21611054241657257,
0.018889721482992172,
-0.2626233696937561,
-0.20594780147075653,
0.1162949651479721,
-0.06006905063986778,
0.2213895618915558,
0.11595950275659561,
-0.09374266862869263,
-0.3625071346759796,
-0.08978540450334549,
-0.34674227237701416,
-0.28692007064819336,
-0.23978985846042633,
0.2558824419975281,
-0.14160215854644775,
-0.06300514191389084,
0.013602777384221554,
-0.08358361572027206,
0.013817407190799713,
0.14786049723625183,
0.08458751440048218,
-0.08590389788150787,
0.14579486846923828,
0.12017519026994705,
-0.07498189061880112,
0.12344954162836075,
0.13086912035942078,
0.2448740005493164,
0.10801569372415543,
-0.610040009021759,
-0.25640353560447693,
0.41322600841522217,
-0.10118865221738815,
0.3508419990539551,
0.35176903009414673,
-0.08469942212104797,
0.21254341304302216,
-0.19007809460163116,
0.5408405065536499,
-0.3125441372394562,
0.3141438364982605,
-0.39815253019332886,
-0.3060060739517212
] |
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.2954554259777069,
0.048049867153167725,
-0.06860875338315964,
-0.18945564329624176,
0.056231871247291565,
0.2561272084712982,
0.08070984482765198,
0.11000293493270874,
0.19616177678108215,
-0.020773664116859436,
0.43143588304519653,
0.5331405997276306,
-0.1051030084490776,
0.21243302524089813,
0.13328158855438232,
0.065645232796669,
-0.040039531886577606,
0.34225407242774963,
-0.024669982492923737,
0.052604369819164276,
-0.2568828761577606,
-0.36277490854263306,
0.012160278856754303,
-0.22624291479587555,
-0.20123247802257538,
-0.05310242623090744,
0.09253469854593277,
-0.20654022693634033,
-0.049984149634838104,
-0.43497946858406067,
0.06971095502376556,
0.05478724092245102,
-0.06116363778710365,
-0.07750675827264786,
-0.00012185194646008313,
-0.008279308676719666,
0.22867931425571442,
-0.018181204795837402,
-0.022022858262062073,
-0.08861562609672546,
-0.6228860020637512,
-0.4504072368144989,
0.14038242399692535,
-0.14621080458164215,
-0.11619557440280914,
-0.2814851701259613,
0.06432273238897324,
-0.4899311363697052,
-0.030401840806007385,
0.1176668331027031,
0.1175912469625473,
-0.033911094069480896,
0.308386892080307,
0.03277010843157768,
0.3443824052810669,
0.21786251664161682,
-0.20830132067203522,
-0.205797016620636,
-0.0556957870721817,
-0.005126774311065674,
0.24421727657318115,
0.1893959492444992,
0.16785919666290283,
-0.3340604603290558,
0.4431709349155426,
0.1553867608308792,
-0.02495456486940384,
-0.24538776278495789,
-0.32942017912864685,
0.08959976583719254,
0.635752260684967,
-0.4809349477291107,
-0.4458315372467041,
-0.2342635989189148,
0.31208905577659607,
-0.2901145815849304,
0.06074409559369087,
-0.13333900272846222,
0.21045631170272827,
-0.01644188165664673,
0.2804884612560272,
-0.3896573483943939,
0.014442086219787598,
0.2269134819507599,
0.06193787604570389,
0.47667914628982544,
0.16617508232593536,
0.09683451056480408,
-0.14526619017124176,
-0.13353289663791656,
0.14431661367416382,
-0.3300931453704834,
-0.06665073335170746,
0.5027743577957153,
-0.2417936474084854,
-0.21392256021499634,
-0.0244857519865036,
-0.4381338059902191,
-0.0016755834221839905,
0.16434672474861145,
0.14356620609760284,
0.020687082782387733,
-0.23615966737270355,
0.10205164551734924,
0.25052130222320557,
0.15086576342582703,
-0.011964380741119385,
0.24776236712932587,
-0.12251026928424835,
-0.4533707797527313,
-0.07157466560602188,
-0.20390570163726807,
0.3690461814403534,
-0.1363203227519989,
0.32727351784706116,
-0.010966967791318893,
0.33304351568222046,
0.15705278515815735,
0.14187005162239075,
0.027892369776964188,
-0.05645275488495827,
-0.07010243833065033,
0.08543512970209122,
-0.04425216466188431,
0.19404388964176178,
-0.04919283092021942,
-0.11297351866960526,
0.41100823879241943,
0.28652068972587585,
0.21742363274097443,
-0.049589063972234726,
-0.21261700987815857,
0.15126904845237732,
0.2483239471912384,
-0.07674715667963028,
0.0651063397526741,
0.21828995645046234,
0.05678386241197586,
0.10739995539188385,
0.25711789727211,
0.36206796765327454,
-0.048357754945755005,
0.17963911592960358,
0.2562602162361145,
-0.13081200420856476,
0.11768179386854172,
-0.022375430911779404,
0.26819074153900146,
-0.28872284293174744,
0.4301700294017792,
-0.16664129495620728,
-0.3181442320346832,
-0.01806589402258396,
0.0798424705862999,
0.02679257094860077,
-0.3733136057853699,
-0.3221893310546875,
0.5601468682289124,
0.05316127836704254,
-0.3258932828903198,
0.3006870746612549,
0.07653605192899704,
-0.41471704840660095,
-0.3155432343482971,
0.04788654297590256,
0.20206935703754425,
-0.04473250359296799,
-0.04814368486404419,
-0.3672374486923218,
-0.05819744989275932,
-0.2894316017627716,
-0.35913753509521484,
-0.13615727424621582,
0.13738039135932922,
-0.06811763346195221,
0.3618084788322449,
0.7887746095657349,
-0.12643122673034668,
-0.3442746698856354,
0.045232534408569336,
-0.3030264377593994,
0.1571146696805954,
-0.3750823736190796,
0.5562775135040283,
-0.1387430727481842,
0.15086886286735535,
0.06260278075933456,
0.5208091139793396,
-0.2876545488834381,
-0.05489959940314293,
0.14330074191093445,
0.02513393945991993,
0.09285525977611542,
0.18535290658473969,
-0.10415318608283997,
0.08625350147485733,
0.29288747906684875,
-0.3613353967666626,
-0.12550944089889526,
0.22932660579681396,
0.07871776074171066,
0.25017958879470825,
0.286756306886673,
-0.14078229665756226,
-0.22653886675834656,
-0.3820774257183075,
-0.45589035749435425,
0.1355389654636383,
0.1613519936800003,
-0.15188196301460266,
-0.0022722408175468445,
-0.24030180275440216,
0.05197707563638687,
0.384232759475708,
-0.02914491668343544,
0.10293734073638916,
-0.03540083393454552,
-0.13795748353004456,
-0.1275208592414856,
-0.11520896852016449,
-0.1917721927165985,
-0.08804495632648468,
0.023412881419062614,
0.12668728828430176,
-0.08154386281967163,
-0.015608912333846092,
0.2958848178386688,
-0.10389935970306396,
-0.45342713594436646,
0.1745178997516632,
-0.08100876957178116,
0.1316814422607422,
-0.23031461238861084,
0.2882101237773895,
0.2810449004173279,
0.3076571226119995,
0.3753384053707123,
0.35966676473617554,
0.1202729120850563,
-0.20222771167755127,
-0.04924347251653671,
0.25728029012680054,
-0.029328472912311554,
-0.15268966555595398,
-0.15355515480041504,
0.5156171321868896,
0.10864782333374023,
0.22386115789413452,
-0.2337498515844345,
0.0411442369222641,
0.18700069189071655,
0.100028857588768,
-0.2504217028617859,
-0.10376274585723877,
-0.382813960313797,
0.028527192771434784,
0.09362950921058655,
0.002460576593875885,
-0.03577589988708496,
0.2042011022567749,
0.06993641704320908,
-0.024018259719014168,
0.16000184416770935,
0.20193666219711304,
-0.22764474153518677,
0.10791326314210892,
0.07749693095684052,
-0.06241362914443016,
0.3290603756904602,
0.22270618379116058,
0.012617334723472595,
0.04264877736568451,
0.10928969830274582,
0.16020993888378143,
0.19159755110740662,
-0.07387204468250275,
0.39046788215637207,
0.1353825330734253,
0.38215509057044983,
0.1553182601928711,
0.09207119792699814,
0.051826391369104385,
-0.028552858158946037,
0.08554206788539886,
-0.17347538471221924,
-0.1233808845281601,
0.1931571066379547,
0.15122643113136292,
-0.1907944679260254,
-0.07273202389478683,
-0.1309422105550766,
-0.25700926780700684,
-0.042208991944789886,
0.02835018001496792,
-0.20326067507266998,
0.08376071602106094,
-0.3669869601726532,
0.19005051255226135,
0.1666794866323471,
-0.6432446241378784,
0.05073884129524231,
-0.08939021080732346,
0.23841601610183716,
-0.0036566052585840225,
-0.01640300266444683,
-0.17455722391605377,
0.3104878067970276,
0.7045739889144897,
0.352660596370697,
-0.4002378284931183,
-0.5986952185630798,
-0.13946005702018738,
0.032625339925289154,
0.06101592630147934,
-0.05643938481807709,
-0.1356818526983261,
-0.21873992681503296,
-0.2760377824306488,
0.05296368896961212,
0.0978599414229393,
-0.12571872770786285,
-0.2376386523246765,
-0.07661744207143784,
0.001232634880580008,
-0.0057816337794065475,
-0.011828452348709106,
-0.22959838807582855,
-0.25441083312034607,
0.3818809986114502,
0.22829048335552216,
0.0037644430994987488,
0.025177251547574997,
0.13356339931488037,
-0.17415368556976318,
0.09611023217439651,
-0.3459213376045227,
-0.06774215400218964,
0.008276816457509995,
0.4669155478477478,
-0.29175567626953125,
0.22230277955532074,
-0.05652841925621033,
-0.428200900554657,
-0.16813811659812927,
0.5416520833969116,
-0.2858799397945404,
0.033553093671798706,
-0.06858103722333908,
0.44423556327819824,
-0.005477771162986755,
0.041552819311618805,
0.4493018090724945,
0.13076063990592957,
0.10191325843334198,
-0.039739493280649185,
-0.1687309592962265,
0.0195707306265831,
0.38575801253318787,
0.13713988661766052,
0.02654307521879673,
0.25262224674224854,
-0.4078221321105957,
0.8244688510894775,
-0.09646189212799072,
-0.0982210785150528,
0.2135767936706543,
-0.3015333116054535,
0.2136489599943161,
-0.19886156916618347,
-0.039192985743284225,
-0.35400354862213135,
0.11872047185897827,
-0.2392912060022354,
-0.11377696692943573,
-0.13786956667900085,
-0.33846136927604675,
0.011531632393598557,
-0.10345332324504852,
-0.07150480151176453,
-0.11369210481643677,
0.27760592103004456,
-0.709652304649353,
0.5136854648590088,
-0.11672179400920868,
-0.16270995140075684,
-0.5571872591972351,
-0.010529350489377975,
-0.13447442650794983,
-0.257778525352478,
0.2695595920085907,
-0.35888615250587463,
-0.28978532552719116,
-0.1367046982049942,
-0.3390551507472992,
0.15997636318206787,
0.3289822041988373,
0.010924468748271465,
0.06942993402481079,
-0.2846182882785797,
-0.2018524557352066,
0.12558303773403168,
0.10079297423362732,
-0.7038961052894592,
-0.3776727318763733,
-0.06033763289451599,
0.1350763887166977,
-0.3127746284008026,
0.032195162028074265,
0.2692118287086487,
0.3959923982620239,
-0.295023113489151,
0.33278512954711914,
-0.09700702130794525,
0.26714131236076355,
0.20797215402126312,
-0.05191551521420479,
-0.18702459335327148,
0.04549837112426758,
-0.04064028710126877,
0.10941872745752335,
-0.032596029341220856,
0.13954848051071167,
-0.07816149294376373,
-0.20294879376888275,
0.493539035320282,
-0.2078266739845276,
-0.5050932168960571,
0.25326859951019287,
0.009910114109516144,
0.16360259056091309,
0.3125104010105133,
0.3241732716560364,
0.3094303607940674,
0.12048689275979996,
-0.1788274198770523,
0.06440419703722,
0.4180518090724945,
-0.11419014632701874,
-0.22285029292106628,
-0.31802207231521606,
-0.12682826817035675,
0.6585424542427063,
0.02179933339357376,
0.09644529968500137,
0.4333217442035675,
-0.10493732988834381,
-0.14043445885181427,
-0.4417458772659302,
0.05132414773106575,
0.45648348331451416,
-0.09330286085605621,
-0.1556732952594757,
-0.5510120391845703,
0.6145583987236023,
-0.06463238596916199,
-0.04333556070923805,
0.5349656343460083,
0.20637327432632446,
-0.15988828241825104,
0.5062617659568787,
0.265084832906723,
0.7346940636634827,
-0.020422153174877167,
0.03015090338885784,
0.19334867596626282,
-0.08943383395671844,
0.16311560571193695,
-0.0851098969578743,
-0.02005854621529579,
-0.1575654149055481,
-0.43081170320510864,
-0.003891764208674431,
-0.15197500586509705,
-0.11660198122262955,
0.3548958897590637,
-0.0452917255461216,
-0.29734137654304504,
-0.1605759710073471,
0.31142908334732056,
-0.15065988898277283,
0.18678398430347443,
0.07807693630456924,
-0.24342763423919678,
0.050779860466718674,
0.05683283507823944,
0.13018916547298431,
-0.052523571997880936,
-0.16616225242614746,
-0.12707190215587616,
-0.2141222059726715,
-0.1048298180103302,
-0.19636213779449463,
0.0009947456419467926,
-0.3412138819694519,
0.10047537088394165,
-0.23867130279541016,
-0.08429676294326782,
0.18196991086006165,
0.1106557846069336,
0.0588776133954525,
-0.05770578607916832,
0.011399668641388416,
0.36906054615974426,
0.36243414878845215,
0.31423842906951904,
0.07896676659584045,
-0.0832294449210167,
0.021989930421113968,
0.12612470984458923,
-0.11394854635000229,
0.33944860100746155,
-0.1307382434606552,
-0.5961121916770935,
-0.19446446001529694,
0.06594272702932358,
-0.1254808008670807,
-0.1974852979183197,
-0.3827863335609436,
0.2993814945220947,
-0.06938442587852478,
-0.026739884167909622,
0.04898243397474289,
-0.007394164800643921,
-0.03173860162496567,
0.18843835592269897,
0.0982951745390892,
-0.2052391767501831,
0.0361773744225502,
0.038770176470279694,
0.0022944658994674683,
0.20708519220352173,
0.4687128961086273,
-0.34932953119277954,
0.05314096808433533,
0.02498123049736023,
0.09864609688520432,
0.40682458877563477,
-0.16343459486961365,
-0.11598459631204605,
-0.00787620060145855,
-0.06297477334737778,
-0.10932382196187973,
0.13939638435840607,
-0.16832487285137177,
0.29235920310020447,
-0.16292506456375122,
-0.15952977538108826,
-0.38640254735946655,
0.24197302758693695,
0.028937947005033493,
0.4287542700767517,
-0.04438219219446182,
-0.12346617877483368,
-0.38967207074165344,
0.4389355480670929,
-0.19000881910324097,
-0.32307910919189453,
0.36099013686180115,
0.1855747401714325,
0.23307543992996216,
0.44519370794296265,
0.3107375502586365,
-0.34015557169914246,
0.058280691504478455,
-0.1498091071844101,
0.12304725497961044,
-0.11353319138288498,
0.016652867197990417,
0.15902747213840485,
0.045339543372392654,
-0.23916447162628174,
-0.24311938881874084,
-0.39710813760757446,
-0.03812197223305702,
-0.3407486081123352,
-0.16648174822330475,
-0.07473939657211304,
-0.11299940943717957,
-0.14360636472702026,
0.13044655323028564,
0.14072132110595703,
-0.19497856497764587,
0.1896742880344391,
0.0770140066742897,
0.05303600803017616,
0.0062445164658129215,
0.23682890832424164,
-0.15697892010211945,
0.12549355626106262,
0.11313670128583908,
0.06505192071199417,
0.26354995369911194,
-0.0008803941309452057,
0.1680142730474472,
0.012824330478906631,
0.12158119678497314,
0.3147470951080322,
0.3299048840999603,
0.036471422761678696,
-0.19276544451713562,
0.22882486879825592,
-0.0919208899140358,
0.11209014058113098,
-0.2940257787704468,
0.06712274998426437,
0.3260785937309265,
-0.1971900314092636,
0.19431908428668976,
0.20659062266349792,
0.20972895622253418,
0.6998460292816162,
-0.28049296140670776,
0.002572275698184967,
-0.3698573112487793,
-0.19451704621315002,
0.21734753251075745,
0.47855353355407715,
0.22565452754497528,
-0.12845315039157867,
0.2805365324020386,
0.5443066358566284,
0.3776434659957886,
0.31053537130355835,
0.1697673201560974,
0.2846692204475403,
0.25135040283203125,
-0.3804255723953247,
0.08951359987258911,
-0.38869404792785645,
0.2942372262477875,
-0.01755724847316742,
0.27010753750801086,
0.054699379950761795,
0.5864536762237549,
-0.01857566088438034,
0.10988780111074448,
-0.3700769543647766,
0.021476147696375847,
0.22357577085494995,
-0.10242537409067154,
-0.03757242485880852,
0.37062710523605347,
-0.0738494023680687,
-0.02633379027247429,
-0.2514864504337311,
0.12836457788944244,
-0.15460965037345886,
0.26083260774612427,
0.029945392161607742,
0.34022605419158936,
0.1871614307165146,
0.4017395079135895,
0.2882915437221527,
0.275687575340271,
-0.12405428290367126,
-0.09713620692491531,
-0.452960729598999,
-0.19254282116889954,
0.0492263063788414,
0.29180726408958435,
-0.11117184162139893,
0.06180623918771744,
-0.39061522483825684,
0.49111101031303406,
0.07299655675888062,
-0.22806741297245026,
-0.005803197622299194,
-0.10851427912712097,
0.10915141552686691,
-0.10930056869983673,
-0.016030874103307724,
0.10795434564352036,
-0.04055769369006157,
0.1022975742816925,
0.06667662411928177,
0.23670855164527893,
-0.1701483577489853,
0.17638882994651794,
0.28179848194122314,
-0.22249197959899902,
0.038245417177677155,
0.1261458694934845,
0.2049911618232727,
-0.30522292852401733,
0.3017692565917969,
-0.07096832245588303,
-0.011132938787341118,
-0.016095418483018875,
0.015035547316074371,
0.04766841232776642,
0.12267696857452393,
0.1894763559103012,
0.08890141546726227,
-0.19113881886005402,
-0.03554949909448624,
-0.5502500534057617,
0.011776797473430634,
-0.02976938709616661,
-0.13081514835357666,
0.28019511699676514,
0.0537482425570488,
0.29173722863197327,
-0.024514976888895035,
0.23991841077804565,
-0.4458998143672943,
0.024129249155521393,
0.08056353032588959,
0.03400392457842827,
-0.16970716416835785,
-0.38789600133895874,
-0.0658748522400856,
0.05255788564682007,
0.06643500179052353,
-0.111625537276268,
0.29871809482574463,
-0.026848813518881798,
-0.13480862975120544,
-0.33005160093307495,
-0.10460062325000763,
-0.022962816059589386,
0.4856197237968445,
-0.29913458228111267,
0.2528916597366333,
-0.3834986090660095,
0.22975587844848633,
-0.04804946109652519,
-0.41509896516799927,
-0.469964861869812,
0.3128095269203186,
-0.21318171918392181,
0.26140445470809937,
-0.1266084611415863,
-0.06085222586989403,
-0.18677133321762085,
-0.1711275428533554,
-0.2456919550895691,
-0.5278003811836243,
-0.28257596492767334,
0.16863353550434113,
-0.34799614548683167,
0.154852032661438,
-0.0018808552995324135,
0.17253230512142181,
0.08497241884469986,
0.32822901010513306,
0.2667158246040344,
-0.07908862829208374,
0.24113281071186066,
0.05847950279712677,
0.15235523879528046,
-0.004625363741070032,
-0.15859636664390564,
0.20980370044708252,
0.22155676782131195,
-0.48397496342658997,
-0.07093582302331924,
0.41478514671325684,
-0.09011126309633255,
0.26096421480178833,
0.12886466085910797,
0.013630855828523636,
0.14828824996948242,
-0.2505510449409485,
0.4501887559890747,
-0.341074138879776,
0.2928004264831543,
-0.2522796392440796,
-0.09464355558156967
] |
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.15856386721134186,
0.1218312680721283,
-0.019914599135518074,
-0.2379768341779709,
0.11595175415277481,
0.2459179162979126,
0.055838923901319504,
0.2358241230249405,
-0.056764040142297745,
-0.026944220066070557,
0.5227225422859192,
0.7792690992355347,
-0.11489415913820267,
0.2621577978134155,
0.44617828726768494,
0.018078818917274475,
0.09262486547231674,
0.3316134810447693,
0.06321612745523453,
0.05303128808736801,
-0.20231658220291138,
-0.5101903676986694,
-0.015450559556484222,
-0.10478770732879639,
-0.2550477385520935,
0.06405192613601685,
-0.07270653545856476,
-0.26987919211387634,
-0.19696995615959167,
-0.6185673475265503,
0.05524805188179016,
-0.005297072231769562,
0.04881113022565842,
-0.2824993133544922,
-0.00012575108848977834,
-0.099025659263134,
0.12382420897483826,
0.09376221150159836,
-0.14928297698497772,
0.007087677717208862,
-0.18201324343681335,
-0.5508112907409668,
0.34773194789886475,
-0.25052985548973083,
-0.02778419479727745,
-0.36419907212257385,
0.0755021870136261,
0.009284742176532745,
-0.09520746767520905,
0.05794991925358772,
0.0997854471206665,
0.0939670205116272,
0.2876737713813782,
0.10711457580327988,
0.36236879229545593,
0.27982592582702637,
-0.33399498462677,
-0.042894940823316574,
-0.022063255310058594,
-0.21518336236476898,
0.16901889443397522,
0.11275698244571686,
0.12656269967556,
-0.2649112045764923,
0.3952738642692566,
0.24035805463790894,
0.038408029824495316,
-0.07232867926359177,
-0.22713232040405273,
-0.10691117495298386,
0.6156905293464661,
-0.6202870011329651,
-0.3876194953918457,
-0.2214723527431488,
0.30828770995140076,
-0.4906710684299469,
-0.061459027230739594,
0.04483174532651901,
0.10504618287086487,
0.04377486929297447,
0.3411900997161865,
-0.48583921790122986,
-0.12451712787151337,
0.33690303564071655,
0.1579584777355194,
0.527452826499939,
0.3024935722351074,
0.1550375074148178,
-0.13680195808410645,
0.027953844517469406,
0.1394294798374176,
0.0006353519856929779,
-0.09889686107635498,
0.547414243221283,
-0.19164250791072845,
-0.32885411381721497,
0.16039809584617615,
-0.32755908370018005,
0.06376343965530396,
0.22596503794193268,
0.07232566922903061,
-0.02582865208387375,
-0.15927401185035706,
0.13156017661094666,
0.22631607949733734,
0.03331135958433151,
-0.024891063570976257,
0.2305518388748169,
-0.053137414157390594,
-0.40146100521087646,
0.06751559674739838,
-0.19417765736579895,
0.18351320922374725,
-0.02403513714671135,
0.527088463306427,
-0.09943383187055588,
0.524109423160553,
0.09161877632141113,
0.26415422558784485,
-0.12291962653398514,
-0.07961902022361755,
0.028932997956871986,
0.001567593775689602,
0.13885076344013214,
0.19107475876808167,
-0.047642968595027924,
-0.18431775271892548,
0.4463226795196533,
0.260283499956131,
0.022914011031389236,
-0.058569181710481644,
-0.11584216356277466,
0.12103986740112305,
0.2123057246208191,
0.05376457795500755,
0.19822263717651367,
0.12853379547595978,
-0.009936927817761898,
-0.021550238132476807,
0.13862545788288116,
0.17772619426250458,
-0.09430250525474548,
0.17931169271469116,
0.3338983654975891,
-0.044751789420843124,
0.07005065679550171,
-0.015123207122087479,
0.20968849956989288,
-0.2649385929107666,
0.4940432012081146,
-0.042701371014118195,
-0.3354872167110443,
-0.1827123761177063,
0.07921817898750305,
-0.0760880708694458,
-0.38119661808013916,
-0.38969606161117554,
0.2810359001159668,
0.15292909741401672,
-0.20521199703216553,
0.32105907797813416,
0.10227298736572266,
-0.20743979513645172,
-0.31839728355407715,
0.014102363958954811,
0.005057930946350098,
0.02059200033545494,
-0.07319731265306473,
-0.2081425040960312,
-0.10687360167503357,
-0.2547844648361206,
-0.31431207060813904,
-0.24013030529022217,
0.3415871858596802,
0.026547716930508614,
0.3168652653694153,
0.9826911687850952,
-0.09471984952688217,
-0.31025344133377075,
-0.004401086363941431,
-0.2885473966598511,
-0.13767234981060028,
-0.28108274936676025,
0.5194312930107117,
-0.0004587676376104355,
0.19117331504821777,
-0.1188184916973114,
0.4386407136917114,
-0.2460007667541504,
0.06243384629487991,
0.1339837908744812,
-0.06223433464765549,
0.3955078721046448,
0.22146640717983246,
-0.06691087782382965,
0.05658378824591637,
0.24031391739845276,
-0.18985460698604584,
0.07850764691829681,
0.1749497801065445,
0.1417321264743805,
-0.023439761251211166,
0.5813655853271484,
-0.14802797138690948,
-0.15876495838165283,
-0.3559049069881439,
-0.5103589296340942,
0.04819834232330322,
0.06147962063550949,
-0.049839138984680176,
-0.26680225133895874,
-0.33652591705322266,
0.1379477083683014,
0.41082513332366943,
-0.21857227385044098,
0.08282244205474854,
-0.03374496474862099,
-0.2657913863658905,
0.03135444223880768,
-0.03906261920928955,
-0.3062024414539337,
-0.2801215648651123,
0.08271927386522293,
0.23967544734477997,
0.07051217555999756,
0.113192617893219,
0.15329398214817047,
-0.24906092882156372,
-0.39302125573158264,
0.28649991750717163,
0.024167276918888092,
0.13504552841186523,
-0.11266578733921051,
0.21596619486808777,
0.21238279342651367,
0.19002066552639008,
0.2170921266078949,
0.2195717990398407,
0.07736577838659286,
-0.2173907607793808,
-0.008111206814646721,
0.0241396427154541,
-0.0064252526499331,
-0.10758733749389648,
-0.07679695636034012,
0.2526223659515381,
0.11839345097541809,
0.1508033275604248,
-0.055113114416599274,
0.1701212376356125,
0.2972313165664673,
0.1012452244758606,
-0.1686335653066635,
-0.036154475063085556,
-0.39485877752304077,
0.08251246809959412,
0.013298217207193375,
-0.020506558939814568,
-0.1242796927690506,
0.17151638865470886,
0.3190538287162781,
-0.1497214138507843,
0.1284433901309967,
0.193891704082489,
-0.20116421580314636,
0.01622944325208664,
0.25852492451667786,
-0.1799704134464264,
0.2840508222579956,
0.22471141815185547,
-0.007128562778234482,
0.17359384894371033,
-0.14914219081401825,
0.17779700458049774,
0.15074285864830017,
-0.008272714912891388,
0.37916189432144165,
0.08276684582233429,
0.4918837547302246,
0.06266027688980103,
0.04098670184612274,
-0.01647973619401455,
0.132598876953125,
0.274220734834671,
-0.1277940571308136,
-0.21259340643882751,
0.1566525101661682,
-0.06562114506959915,
-0.11279579997062683,
-0.2664121091365814,
-0.14766326546669006,
-0.30672958493232727,
0.07486532628536224,
0.0802917331457138,
-0.07187952101230621,
0.06584696471691132,
-0.45384907722473145,
-0.03310970962047577,
0.04242479056119919,
-0.6114926934242249,
0.03387296944856644,
-0.2173401266336441,
0.1986376941204071,
-0.04201897606253624,
0.0002148328348994255,
-0.02238624170422554,
0.44360390305519104,
0.515474796295166,
0.3509567975997925,
-0.448428750038147,
-0.563755214214325,
-0.026012971997261047,
-0.06252067536115646,
-0.056865207850933075,
0.0072708651423454285,
-0.03345984220504761,
-0.12157227843999863,
-0.24439272284507751,
0.1578597128391266,
0.05209941416978836,
-0.17049451172351837,
-0.0017592310905456543,
-0.1390078067779541,
-0.07466230541467667,
-0.1779545396566391,
-0.11606047302484512,
-0.25365227460861206,
-0.20014126598834991,
0.41217362880706787,
0.31102466583251953,
0.16609841585159302,
0.10232963413000107,
0.06474249809980392,
-0.03939246013760567,
-0.1045553982257843,
-0.2717066705226898,
0.04655100777745247,
0.2692856192588806,
0.37719398736953735,
-0.2905595898628235,
-0.07008737325668335,
0.12235032021999359,
-0.3589475154876709,
-0.01336703822016716,
0.3452504277229309,
-0.26812535524368286,
-0.10456308722496033,
-0.13152627646923065,
0.6544307470321655,
-0.18099510669708252,
0.06111070513725281,
0.4917137920856476,
0.1800759732723236,
0.12596619129180908,
0.06454875320196152,
-0.05752801522612572,
0.05817648023366928,
0.47515714168548584,
0.05369294062256813,
-0.1974344551563263,
0.35452520847320557,
-0.16389869153499603,
0.6824055910110474,
-0.2674228549003601,
-0.032455261796712875,
0.289065957069397,
-0.45218756794929504,
0.12435093522071838,
-0.17546463012695312,
-0.05181504786014557,
-0.3754044473171234,
-0.04024560749530792,
-0.19113348424434662,
-0.19868285953998566,
-0.05920805782079697,
-0.2571844756603241,
-0.02696477249264717,
-0.07670208811759949,
-0.03467033803462982,
-0.14327718317508698,
0.2570270597934723,
-0.6129857301712036,
0.4767410457134247,
-0.023436496034264565,
-0.16368398070335388,
-0.593467116355896,
-0.0892285630106926,
-0.16046203672885895,
-0.10271506011486053,
0.16458287835121155,
-0.29886457324028015,
-0.49197348952293396,
-0.43001651763916016,
-0.39207106828689575,
0.01949141174554825,
0.1957017034292221,
0.16555063426494598,
0.037729907780885696,
-0.26861611008644104,
-0.031110316514968872,
0.0775841623544693,
0.24063825607299805,
-0.3599344491958618,
-0.16890470683574677,
0.02841133251786232,
0.284074068069458,
-0.28315383195877075,
-0.05341443419456482,
0.14231248199939728,
0.2584652304649353,
-0.2029881328344345,
0.37656792998313904,
-0.2487461268901825,
0.156136155128479,
0.4884980022907257,
0.04601007699966431,
-0.1258968561887741,
0.03595414757728577,
-0.21192504465579987,
-0.14575371146202087,
-0.12958553433418274,
-0.010205313563346863,
-0.10285431891679764,
-0.10489889979362488,
0.2832598388195038,
-0.12690488994121552,
-0.34733524918556213,
0.05218522995710373,
-0.08328871428966522,
0.2079719603061676,
0.18581074476242065,
0.1545909196138382,
0.35816311836242676,
-0.15834839642047882,
-0.03778235614299774,
-0.01890702359378338,
0.41072478890419006,
0.036946799606084824,
-0.36778345704078674,
-0.2743690609931946,
-0.2612391412258148,
0.8111657500267029,
-0.05337415635585785,
0.04211648553609848,
0.6886086463928223,
-0.25107908248901367,
-0.08837682008743286,
-0.31546032428741455,
0.023792583495378494,
0.39555129408836365,
-0.22137215733528137,
-0.20909857749938965,
-0.4495910108089447,
0.6590726971626282,
-0.06080492213368416,
0.0022970661520957947,
0.2921186685562134,
0.17649665474891663,
-0.20200955867767334,
0.6029341816902161,
0.028951868414878845,
0.7561172842979431,
-0.16064999997615814,
0.15962599217891693,
0.33667516708374023,
-0.20070889592170715,
0.28062543272972107,
-0.11726584285497665,
-0.06488857418298721,
-0.30311262607574463,
-0.14779677987098694,
-0.03947335481643677,
-0.22228723764419556,
0.0863233208656311,
0.18382374942302704,
-0.11417186260223389,
-0.15443304181098938,
-0.10096774995326996,
0.39156922698020935,
-0.029187439009547234,
0.3354988992214203,
0.05537336319684982,
-0.21203787624835968,
-0.15365198254585266,
-0.015315175987780094,
-0.109856978058815,
-0.11938440799713135,
-0.16789335012435913,
-0.15533767640590668,
-0.28728044033050537,
-0.27756571769714355,
-0.114681176841259,
-0.04278120398521423,
-0.26013773679733276,
0.03985338658094406,
-0.02531598135828972,
-0.18990404903888702,
0.06469409167766571,
0.05958354473114014,
-0.06658846139907837,
-0.1198207288980484,
-0.002089455723762512,
0.2460802048444748,
0.2279054820537567,
0.23593538999557495,
0.10825632512569427,
0.018383938819169998,
0.1020185723900795,
-0.030978186056017876,
-0.24484094977378845,
0.29573920369148254,
-0.16050638258457184,
-0.5123878121376038,
-0.0357949435710907,
0.015374619513750076,
0.10526279360055923,
-0.23303689062595367,
-0.3621775209903717,
0.14114128053188324,
-0.14203502237796783,
-0.11774420738220215,
0.04394979402422905,
0.03836175426840782,
-0.006555802188813686,
0.19055217504501343,
0.2257850170135498,
-0.11663217097520828,
0.04576307535171509,
0.0029497817158699036,
-0.0380193293094635,
0.18240885436534882,
0.45066165924072266,
-0.21037405729293823,
-0.003963366150856018,
0.0047602057456970215,
0.04155527055263519,
0.2939315736293793,
-0.48685741424560547,
-0.25833019614219666,
0.2763183116912842,
0.1503433734178543,
-0.17294374108314514,
0.10778801143169403,
-0.2781792879104614,
0.26932260394096375,
-0.23988233506679535,
-0.08993662893772125,
-0.39138948917388916,
0.3100815415382385,
0.07208627462387085,
0.2564845681190491,
0.09135477989912033,
0.3130812644958496,
-0.24481186270713806,
0.28520694375038147,
-0.15283948183059692,
-0.21535292267799377,
0.3948771357536316,
0.3118821680545807,
-0.01827964186668396,
0.35550177097320557,
0.06666986644268036,
-0.3369533121585846,
0.10577107965946198,
-0.07932984083890915,
0.19605931639671326,
-0.11483573913574219,
0.033392321318387985,
0.19066350162029266,
0.13417953252792358,
-0.25455328822135925,
-0.27063924074172974,
-0.3031240701675415,
-0.027735501527786255,
-0.1833397001028061,
-0.1302250176668167,
-0.2740219533443451,
-0.21453313529491425,
0.1525450348854065,
0.2862396240234375,
0.2720692455768585,
-0.14309586584568024,
0.12444528192281723,
0.028287872672080994,
0.11056797951459885,
-0.04097645357251167,
0.2331157922744751,
-0.21324129402637482,
0.20296218991279602,
-0.006632436998188496,
0.005565188825130463,
-0.05142305791378021,
-0.14761275053024292,
0.30388015508651733,
-0.13429921865463257,
0.08422191441059113,
-0.12516885995864868,
0.2900966703891754,
-0.02211352437734604,
-0.17565381526947021,
0.23964916169643402,
0.17069074511528015,
0.12197945266962051,
-0.38733330368995667,
0.1735081672668457,
0.3757999837398529,
-0.2174307256937027,
0.15063102543354034,
0.22362734377384186,
0.19726355373859406,
0.6157664656639099,
-0.2723187208175659,
0.022101249545812607,
-0.19723452627658844,
-0.13296537101268768,
0.07011862099170685,
0.630100429058075,
0.08388172090053558,
-0.0011545158922672272,
0.1873222440481186,
0.45947331190109253,
0.08961933851242065,
0.2704046368598938,
0.1308712661266327,
0.2527281641960144,
0.3327937424182892,
-0.40728670358657837,
0.19035378098487854,
-0.2755205035209656,
0.039607033133506775,
-0.042499393224716187,
0.3121148645877838,
-0.11318502575159073,
0.37511736154556274,
0.23978760838508606,
0.40419238805770874,
-0.17173407971858978,
0.12882637977600098,
0.19296154379844666,
-0.021271388977766037,
0.057484518736600876,
0.260985791683197,
0.015400402247905731,
0.015207119286060333,
-0.19810913503170013,
-0.04709203913807869,
-0.33497512340545654,
0.023803628981113434,
0.03175235539674759,
0.19608059525489807,
0.1262894719839096,
0.6106850504875183,
0.3089275658130646,
0.15002527832984924,
-0.11028820276260376,
-0.10664600878953934,
-0.3961717486381531,
-0.18407794833183289,
-0.19288598001003265,
0.08074132353067398,
0.028290841728448868,
0.1530744582414627,
-0.38659778237342834,
0.5614278316497803,
-0.0692833662033081,
-0.23056869208812714,
0.08210313320159912,
0.009992421604692936,
0.24774736166000366,
0.1952473223209381,
-0.11868277192115784,
0.0815071165561676,
-0.008297977969050407,
0.09474899619817734,
0.14387618005275726,
0.18825872242450714,
-0.20915603637695312,
0.4624905586242676,
0.29588741064071655,
-0.6133109927177429,
0.020360983908176422,
0.14280351996421814,
0.07566069811582565,
-0.19683226943016052,
0.3214889168739319,
0.16618607938289642,
-0.05559973791241646,
-0.24380093812942505,
-0.007066591642796993,
0.013825575821101665,
0.15968415141105652,
0.29414182901382446,
0.2848104238510132,
-0.16666904091835022,
-0.08294613659381866,
-0.5021367073059082,
-0.013131223618984222,
-0.1394723802804947,
-0.23699821531772614,
0.4343598783016205,
0.05983351171016693,
0.16779690980911255,
0.05578470602631569,
0.2752937376499176,
-0.20919713377952576,
0.06860915571451187,
0.1043536514043808,
0.12135058641433716,
-0.2491120547056198,
-0.22000949084758759,
0.15547578036785126,
-0.14985233545303345,
-0.047301579266786575,
-0.001217171549797058,
0.11408708989620209,
-0.07107649743556976,
-0.3338572382926941,
-0.1559707224369049,
0.04471060261130333,
0.11175775527954102,
0.4848417341709137,
-0.3177313506603241,
0.432546466588974,
-0.07349206507205963,
0.2076076865196228,
-0.16442981362342834,
-0.30241528153419495,
-0.3349880874156952,
0.17365354299545288,
-0.197471022605896,
0.14411447942256927,
0.1021316722035408,
-0.02773192897439003,
-0.2601098120212555,
-0.11214592307806015,
-0.39946508407592773,
-0.40512514114379883,
-0.16752047836780548,
0.2998755872249603,
-0.05238362401723862,
0.11328840255737305,
-0.09259587526321411,
-0.11970443278551102,
-0.061627648770809174,
0.2605070173740387,
0.010366380214691162,
-0.1340818852186203,
0.20295508205890656,
-0.06307947635650635,
0.018717657774686813,
0.10502015799283981,
0.08107686042785645,
0.08594004064798355,
-0.023625513538718224,
-0.5783274173736572,
-0.18106599152088165,
0.42278990149497986,
-0.06856194138526917,
0.21022135019302368,
0.3711642920970917,
0.0659889280796051,
0.21144716441631317,
-0.21805275976657867,
0.6425331830978394,
-0.49583861231803894,
0.2859467566013336,
-0.444003164768219,
-0.2989969253540039
] |
https://github.com/huggingface/datasets/issues/256 | [Feature request] Add a feature to dataset | Maybe you can use `with_indices`?
```python
new_info = list of length dataset['train']
def some_function(indice, x):
# adds new_info[index of x] as a field to x
x['new_info'] = new_info_x[indice]
return x
dataset['train'] = dataset['train'].map(some_function, with_indices=True)
``` | Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? | 35 | [Feature request] Add a feature to dataset
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
Maybe you can use `with_indices`?
```python
new_info = list of length dataset['train']
def some_function(indice, x):
# adds new_info[index of x] as a field to x
x['new_info'] = new_info_x[indice]
return x
dataset['train'] = dataset['train'].map(some_function, with_indices=True)
``` | [
-0.10782445967197418,
-0.09503670036792755,
-0.12450140714645386,
-0.15144787728786469,
0.18715624511241913,
0.3007177412509918,
0.1838347166776657,
0.2558492422103882,
0.32104337215423584,
0.15874093770980835,
0.5283860564231873,
0.6252444386482239,
-0.23471397161483765,
0.32788071036338806,
0.1876334547996521,
-0.05337589979171753,
0.014195725321769714,
0.22495725750923157,
0.08466675877571106,
0.061388492584228516,
-0.361774206161499,
-0.45333215594291687,
-0.006954364478588104,
-0.1957273930311203,
-0.18811960518360138,
-0.09189756214618683,
0.09725134074687958,
-0.33556973934173584,
-0.1313219666481018,
-0.5429761409759521,
-0.030196398496627808,
-0.11675316095352173,
-0.09235715866088867,
0.052403874695301056,
-0.00011864181578857824,
-0.042202480137348175,
0.22121256589889526,
0.13399703800678253,
-0.05581321939826012,
-0.1594059020280838,
-0.5856688022613525,
-0.5728532075881958,
0.18259014189243317,
-0.3350248634815216,
-0.04295063018798828,
-0.22906719148159027,
0.05934841185808182,
-0.4260806143283844,
-0.18033050000667572,
0.05726034566760063,
0.16376429796218872,
-0.0679825022816658,
0.23376090824604034,
-0.036001451313495636,
0.45585164427757263,
0.15368685126304626,
-0.31628936529159546,
-0.20174206793308258,
0.006071522831916809,
0.00414141733199358,
0.25464510917663574,
0.28261440992355347,
0.1268412172794342,
-0.35485175251960754,
0.39189445972442627,
0.14017115533351898,
0.15555238723754883,
-0.2356145977973938,
-0.29178565740585327,
0.080462746322155,
0.5871173739433289,
-0.2631473243236542,
-0.404574453830719,
-0.0798129290342331,
0.2646797001361847,
-0.49207332730293274,
-0.07414720207452774,
-0.14042606949806213,
0.19637367129325867,
-0.06944967806339264,
0.20919422805309296,
-0.43327948451042175,
0.014271505177021027,
0.29404217004776,
0.21386325359344482,
0.5456331372261047,
0.11433470249176025,
0.09206531941890717,
-0.042327795177698135,
-0.16449671983718872,
0.07411163300275803,
-0.06184893846511841,
-0.008135337382555008,
0.47733694314956665,
-0.20431964099407196,
-0.2738354206085205,
0.12721507251262665,
-0.4587990343570709,
0.044262632727622986,
0.11551716923713684,
-0.04193132370710373,
-0.056599780917167664,
-0.17576444149017334,
0.16065043210983276,
0.1501171886920929,
0.10764740407466888,
0.005229830741882324,
0.2677214741706848,
-0.10153818130493164,
-0.3580121099948883,
-0.04434145614504814,
-0.27044302225112915,
0.2254667431116104,
-0.06495928019285202,
0.34454256296157837,
0.047936875373125076,
0.27503639459609985,
0.09163999557495117,
0.10365072637796402,
0.012058816850185394,
-0.16639769077301025,
-0.12385206669569016,
0.08398561179637909,
0.12303575873374939,
0.2344738245010376,
0.005436763167381287,
-0.12297965586185455,
0.33726418018341064,
0.3458981215953827,
0.311201810836792,
-0.10744278877973557,
-0.2126319855451584,
0.15473519265651703,
0.13930119574069977,
-0.07659496366977692,
0.08563762903213501,
0.18231964111328125,
-0.026980958878993988,
0.15824761986732483,
0.1024150550365448,
0.22722627222537994,
-0.18289785087108612,
0.2606952488422394,
0.21108993887901306,
-0.18375706672668457,
0.2089572250843048,
0.05182516947388649,
0.11678753793239594,
-0.3144630193710327,
0.3690933287143707,
-0.2824333608150482,
-0.34893810749053955,
-0.08264197409152985,
0.15238596498966217,
0.12727361917495728,
-0.3446599841117859,
-0.19757452607154846,
0.4396516680717468,
0.03706510365009308,
-0.18947912752628326,
0.34923985600471497,
0.20721974968910217,
-0.434192419052124,
-0.31297165155410767,
-0.027672771364450455,
0.14559730887413025,
0.012093432247638702,
-0.044806234538555145,
-0.22123992443084717,
0.09285007417201996,
-0.26087963581085205,
-0.21460303664207458,
-0.1981479525566101,
0.2057475745677948,
-0.06801728159189224,
0.3534966707229614,
0.859660267829895,
-0.10931684076786041,
-0.33110231161117554,
0.14190681278705597,
-0.3039415180683136,
-0.05117006227374077,
-0.1390278935432434,
0.5475513935089111,
0.10056765377521515,
0.017881810665130615,
0.07484418898820877,
0.2675638198852539,
-0.13412050902843475,
-0.08106434345245361,
0.0801987498998642,
-0.07130199670791626,
0.3110402822494507,
0.07570666074752808,
-0.1374981850385666,
0.08273081481456757,
0.21402031183242798,
-0.4347313642501831,
0.010431509464979172,
0.18272171914577484,
0.03535185009241104,
0.14711791276931763,
0.48658278584480286,
-0.06227767467498779,
-0.13924601674079895,
-0.4023258090019226,
-0.31506794691085815,
0.08501159399747849,
0.2560742199420929,
-0.13155625760555267,
-0.05649206042289734,
-0.3838043808937073,
0.04119069129228592,
0.3376159071922302,
-0.09309546649456024,
0.1920473277568817,
0.01809823513031006,
-0.2580016553401947,
-0.27710193395614624,
-0.114254891872406,
-0.38490045070648193,
-0.2202650010585785,
0.002568548545241356,
0.03402198851108551,
0.04296711087226868,
-0.038332950323820114,
0.25499048829078674,
-0.0694073736667633,
-0.4769136905670166,
0.1799541711807251,
0.013504784554243088,
0.06661970168352127,
-0.2032771110534668,
0.17553845047950745,
0.22847168147563934,
0.027920372784137726,
0.30766481161117554,
0.3209228515625,
0.1065983772277832,
-0.21988126635551453,
-0.08064255863428116,
0.27857938408851624,
-0.010855184867978096,
-0.13450780510902405,
-0.11628331989049911,
0.2652430832386017,
-0.009051043540239334,
0.27041059732437134,
-0.17314547300338745,
0.05392441898584366,
0.19701546430587769,
0.09343375265598297,
-0.23762673139572144,
-0.19930392503738403,
-0.3792419135570526,
0.004247775301337242,
-0.1010407954454422,
-0.1289857178926468,
-0.037063512951135635,
0.08359001576900482,
0.3455301523208618,
-0.10417486727237701,
0.1496625691652298,
0.1654147207736969,
-0.173733651638031,
0.23146677017211914,
0.0443173423409462,
-0.22118541598320007,
0.2762587070465088,
0.25379806756973267,
-0.01672259345650673,
0.03874719515442848,
0.08605091273784637,
0.18444038927555084,
0.2718242406845093,
-0.007290378212928772,
0.2178817242383957,
0.04036625474691391,
0.31670093536376953,
0.07693005353212357,
0.046899937093257904,
-0.18509531021118164,
0.06648527830839157,
0.1358945518732071,
-0.14576493203639984,
-0.1815275251865387,
0.1890416145324707,
-0.013939375057816505,
-0.07008729875087738,
-0.19629813730716705,
-0.12675419449806213,
-0.2679458558559418,
0.02773924730718136,
-0.003864981234073639,
-0.17718666791915894,
0.19430410861968994,
-0.39625996351242065,
0.09610585868358612,
0.2864939868450165,
-0.6227657198905945,
0.09142763912677765,
-0.09023263305425644,
0.2919762134552002,
0.02251725271344185,
-0.023435035720467567,
-0.15010428428649902,
0.3781116008758545,
0.5751975774765015,
0.3162938356399536,
-0.3572925925254822,
-0.42564794421195984,
-0.10765688121318817,
0.0035942979156970978,
0.00033809617161750793,
-0.060245588421821594,
0.04092544689774513,
-0.3032837510108948,
-0.29622840881347656,
0.06069215387105942,
0.13358688354492188,
-0.1346256136894226,
-0.20707149803638458,
0.0026510332245379686,
0.0664108395576477,
-0.05389196798205376,
-0.12747833132743835,
-0.14594601094722748,
-0.3532826006412506,
0.4266148805618286,
0.1954137533903122,
0.14052216708660126,
0.061118368059396744,
0.1954495906829834,
-0.04333392158150673,
0.07803746312856674,
-0.2725582718849182,
-0.11933735758066177,
0.052747320383787155,
0.41068586707115173,
-0.1730511486530304,
0.10698670148849487,
0.035122256726026535,
-0.42682909965515137,
-0.22572597861289978,
0.38090360164642334,
-0.28950339555740356,
-0.0058317286893725395,
-0.1255994588136673,
0.538992702960968,
-0.13417957723140717,
0.34054824709892273,
0.48506829142570496,
0.22279764711856842,
0.029460279271006584,
0.02103561908006668,
-0.19615603983402252,
0.02190762758255005,
0.42014777660369873,
0.11486706137657166,
0.023869091644883156,
0.3983841836452484,
-0.2614212930202484,
0.6585184931755066,
0.031671587377786636,
-0.032382894307374954,
0.20639611780643463,
-0.3531016707420349,
0.155941441655159,
-0.2816551625728607,
-0.2252148985862732,
-0.3181138038635254,
-0.0033164024353027344,
-0.2853694558143616,
-0.27817851305007935,
-0.11555976420640945,
-0.3026207983493805,
0.13441728055477142,
-0.0703779086470604,
0.045207008719444275,
-0.03131604194641113,
0.327620267868042,
-0.633579432964325,
0.42300495505332947,
-0.17747381329536438,
-0.08645330369472504,
-0.5579725503921509,
-0.028127899393439293,
-0.05671178922057152,
-0.17179016768932343,
0.33563828468322754,
-0.45896512269973755,
-0.3039742112159729,
-0.3026866614818573,
-0.3731926381587982,
0.09120090305805206,
0.34209585189819336,
0.030297912657260895,
0.030382979661226273,
-0.24657446146011353,
-0.19401149451732635,
0.2199256867170334,
0.3768094778060913,
-0.6040038466453552,
-0.3728712797164917,
0.07225191593170166,
0.18964888155460358,
-0.20595431327819824,
0.10578982532024384,
0.13498717546463013,
0.38450494408607483,
-0.21287456154823303,
0.6205477714538574,
-0.15306411683559418,
0.2649078667163849,
0.3790743350982666,
0.03361248970031738,
-0.1378074437379837,
-0.07590821385383606,
-0.09623698890209198,
0.08342359215021133,
-0.027892472222447395,
0.18274810910224915,
-0.031094465404748917,
-0.1528671532869339,
0.35581523180007935,
-0.3106117248535156,
-0.3990322947502136,
0.04455564171075821,
-0.02765326201915741,
0.029153257608413696,
0.24086567759513855,
0.32041898369789124,
0.29746896028518677,
0.03641926124691963,
-0.06029629707336426,
-0.15779493749141693,
0.3897453546524048,
-0.12093174457550049,
-0.20562511682510376,
-0.28244033455848694,
-0.13460277020931244,
0.719804048538208,
0.13173040747642517,
0.12657685577869415,
0.6759869456291199,
-0.16259674727916718,
-0.009566165506839752,
-0.4439990818500519,
-0.10296402871608734,
0.5182792544364929,
-0.12298595160245895,
-0.2245122194290161,
-0.5432348847389221,
0.6463309526443481,
-0.00480429083108902,
-0.02829461544752121,
0.5440323948860168,
0.2531408667564392,
-0.13545186817646027,
0.5383804440498352,
0.11782318353652954,
0.8974002599716187,
-0.13866885006427765,
0.04283249378204346,
0.12145037949085236,
-0.07174161076545715,
0.2672674357891083,
-0.10205662250518799,
0.025775883346796036,
-0.16645805537700653,
-0.47321996092796326,
-0.005655348300933838,
-0.1722017079591751,
-0.04943986237049103,
0.2197190672159195,
-0.17598497867584229,
-0.07354545593261719,
-0.2605412006378174,
0.4527992904186249,
-0.11419203877449036,
0.11354398727416992,
0.044523999094963074,
-0.18081949651241302,
0.006224127486348152,
0.058720700442790985,
0.15786683559417725,
-0.141496479511261,
-0.11138118803501129,
-0.214601069688797,
-0.1542644053697586,
-0.1647498458623886,
-0.10840876400470734,
-0.07963015884160995,
-0.38265523314476013,
0.22154833376407623,
-0.23016494512557983,
-0.1839785873889923,
0.17916905879974365,
-0.11378957331180573,
-0.01462177187204361,
0.0445287749171257,
0.01964796707034111,
0.1710764467716217,
0.46105945110321045,
0.30576640367507935,
0.08220776170492172,
-0.05105949938297272,
0.055020272731781006,
0.11929628998041153,
-0.2421341836452484,
0.38048937916755676,
-0.13335606455802917,
-0.6124716401100159,
-0.11940039694309235,
0.13560360670089722,
-0.031510911881923676,
-0.3286570906639099,
-0.416554719209671,
0.31461915373802185,
-0.11657868325710297,
-0.09958396852016449,
0.09754723310470581,
0.05068960413336754,
-0.16806422173976898,
0.2601740062236786,
0.25283578038215637,
-0.10141482204198837,
0.07540258765220642,
0.08318036049604416,
-0.03911267966032028,
0.21924304962158203,
0.39504873752593994,
-0.36132001876831055,
-0.08344514667987823,
-0.059559740126132965,
0.13187837600708008,
0.4349040389060974,
-0.13643252849578857,
-0.11470815539360046,
0.012586143799126148,
0.027343809604644775,
-0.22944745421409607,
0.08169645816087723,
-0.20323236286640167,
0.4445800185203552,
-0.3331823945045471,
-0.12998396158218384,
-0.5196354985237122,
0.3745313882827759,
0.03927084803581238,
0.2512500584125519,
-0.27027925848960876,
-0.06735707819461823,
-0.3912760019302368,
0.19432735443115234,
-0.24370312690734863,
-0.09802775830030441,
0.2978031635284424,
0.27289843559265137,
0.11469125747680664,
0.39287927746772766,
0.257761150598526,
-0.21834006905555725,
0.15424376726150513,
-0.08650490641593933,
0.06228461116552353,
-0.205112487077713,
-0.029249725863337517,
0.13380125164985657,
0.02989615499973297,
-0.2434540092945099,
-0.24044452607631683,
-0.38569021224975586,
-0.058335017412900925,
-0.26346075534820557,
-0.21877031028270721,
-0.038852035999298096,
-0.14610320329666138,
0.016024388372898102,
0.0778338611125946,
0.10177159309387207,
-0.07191107422113419,
0.17525555193424225,
0.041701581329107285,
0.13981322944164276,
0.031197354197502136,
0.14634108543395996,
-0.11060798168182373,
0.18953928351402283,
0.019301380962133408,
0.02421756461262703,
0.05647828057408333,
-0.04909268021583557,
0.3163786828517914,
-0.09125879406929016,
0.11301648616790771,
0.251369446516037,
0.30213823914527893,
0.04823749512434006,
-0.27884605526924133,
0.28147372603416443,
0.0508214570581913,
0.21317845582962036,
-0.33024170994758606,
-0.0028985170647501945,
0.3826177716255188,
-0.06308922171592712,
0.2883569002151489,
0.2152552604675293,
0.12684009969234467,
0.4774863123893738,
-0.19028402864933014,
-0.08661342412233353,
-0.3725791573524475,
-0.19182266294956207,
0.15188774466514587,
0.5361397862434387,
0.254422664642334,
-0.1971866637468338,
0.17848949134349823,
0.4863783121109009,
0.3134155571460724,
0.4343242049217224,
0.264136403799057,
0.2552042007446289,
0.4459420442581177,
-0.2635876536369324,
0.12865503132343292,
-0.22624830901622772,
0.29115357995033264,
-0.017859473824501038,
0.12147483229637146,
-0.016997605562210083,
0.5025037527084351,
-0.06561162322759628,
0.11539243161678314,
-0.1599331945180893,
0.14410001039505005,
0.08186881989240646,
-0.047890037298202515,
-0.03957841545343399,
0.4195743501186371,
0.011025413870811462,
-0.060454048216342926,
-0.26546069979667664,
0.026690814644098282,
-0.21860601007938385,
0.18476632237434387,
0.0014633461833000183,
0.347941517829895,
0.19774991273880005,
0.4370710849761963,
0.36954790353775024,
0.4313194155693054,
-0.13437815010547638,
-0.19090703129768372,
-0.2854822874069214,
-0.07315924763679504,
-0.14572785794734955,
0.24913381040096283,
-0.05513470247387886,
0.09631898999214172,
-0.37944504618644714,
0.5683106184005737,
-0.04565008357167244,
-0.26614418625831604,
-0.0055394042283296585,
-0.014286570250988007,
0.14349991083145142,
0.0050983428955078125,
-0.1383126825094223,
0.11909252405166626,
-0.0962357372045517,
0.2658429443836212,
0.009952101856470108,
0.24203380942344666,
-0.277189701795578,
0.15423382818698883,
0.2391844391822815,
-0.4078322947025299,
-0.12459298968315125,
0.0260884091258049,
0.1542282998561859,
-0.19145767390727997,
0.4852941334247589,
0.007621307857334614,
-0.013768297620117664,
-0.02142731472849846,
0.050380147993564606,
-0.0738636702299118,
0.028606288135051727,
0.2243569940328598,
0.09719690680503845,
-0.2534860670566559,
0.021724916994571686,
-0.31396907567977905,
0.0183781236410141,
-0.06399069726467133,
-0.05597715079784393,
0.32107222080230713,
0.10840760171413422,
0.20416560769081116,
-0.0006592832505702972,
0.25461894273757935,
-0.4506436884403229,
0.10942324995994568,
0.2318437546491623,
0.08016923069953918,
-0.25064706802368164,
-0.26507699489593506,
0.08355125039815903,
0.027951490134000778,
0.025448888540267944,
-0.08696804940700531,
0.1255200356245041,
0.04048416018486023,
-0.20183373987674713,
-0.2339790314435959,
-0.1614362895488739,
0.029567403718829155,
0.5203280448913574,
-0.22103604674339294,
0.26489442586898804,
-0.2581799626350403,
0.12992754578590393,
-0.05477936938405037,
-0.28840771317481995,
-0.3066638112068176,
0.28253623843193054,
-0.030852098017930984,
0.1520637720823288,
-0.04009953886270523,
-0.06604260206222534,
-0.24539177119731903,
-0.0955057442188263,
-0.325192928314209,
-0.517181396484375,
-0.23708923161029816,
0.19826391339302063,
-0.21439582109451294,
0.007814371027052402,
-0.16096162796020508,
0.09793183207511902,
-0.06720034033060074,
0.2412959486246109,
0.2947176694869995,
-0.0845286101102829,
0.2829105854034424,
0.0013378439471125603,
-0.01734597235918045,
0.02208748832345009,
0.032464198768138885,
0.22646772861480713,
0.16706399619579315,
-0.4723058044910431,
-0.27586036920547485,
0.42746701836586,
-0.07081348448991776,
0.04584239050745964,
0.19430865347385406,
0.0271456278860569,
0.26291579008102417,
-0.14147473871707916,
0.45394036173820496,
-0.3408810794353485,
0.36873582005500793,
-0.3093942701816559,
-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.15247127413749695,
-0.06869067251682281,
-0.1469653695821762,
-0.2211092859506607,
-0.30814194679260254,
0.04516668617725372,
0.2210412472486496,
0.3083457350730896,
-0.08783447742462158,
0.32144272327423096,
0.15475265681743622,
0.32217466831207275,
-0.18453913927078247,
0.20332001149654388,
-0.07251934707164764,
-0.07253419607877731,
-0.1344352662563324,
0.20645537972450256,
-0.04168710857629776,
0.10553698241710663,
-0.15164384245872498,
-0.09283110499382019,
-0.1631125658750534,
0.03646668419241905,
0.00013918569311499596,
-0.15900932252407074,
0.19281350076198578,
-0.3438688814640045,
-0.2319958657026291,
-0.26377320289611816,
0.24204955995082855,
0.5169219970703125,
0.0783412829041481,
-0.10507459193468094,
-0.00010500229836907238,
-0.19779787957668304,
0.2854299545288086,
0.025228669866919518,
-0.32004594802856445,
0.042735569179058075,
-0.2964934706687927,
-0.0042871758341789246,
0.09996640682220459,
-0.025343798100948334,
0.058318644762039185,
-0.02850373461842537,
-0.12375408411026001,
-0.1715596616268158,
0.018393315374851227,
0.29119032621383667,
0.32156306505203247,
0.2354646921157837,
-0.37383463978767395,
-0.03798932582139969,
0.18038307130336761,
0.6441888213157654,
-0.24913664162158966,
-0.19395922124385834,
0.43278831243515015,
-0.13875098526477814,
0.05430995300412178,
0.4814009964466095,
-0.13519518077373505,
0.06587132811546326,
0.21648246049880981,
-0.2131252884864807,
-0.17434453964233398,
-0.5935274362564087,
0.11514992266893387,
0.35805782675743103,
0.7855477333068848,
-0.14815202355384827,
-0.15148907899856567,
-0.06955771893262863,
-0.07389412820339203,
-0.22122450172901154,
-0.20486828684806824,
0.07939552515745163,
-0.4128400981426239,
0.2999527156352997,
-0.30559927225112915,
-0.2568865418434143,
-0.13694322109222412,
-0.05621897429227829,
0.018855296075344086,
0.05796057730913162,
0.025300245732069016,
0.03019760549068451,
0.23653794825077057,
0.1984407752752304,
0.31148451566696167,
0.1610807478427887,
0.04007287696003914,
0.2651878595352173,
-0.17974692583084106,
-0.38878801465034485,
-0.011525116860866547,
-0.2442958652973175,
0.43769150972366333,
0.3863365650177002,
0.0665554478764534,
0.004987610504031181,
0.03851497545838356,
0.09948964416980743,
0.540630578994751,
-0.02756597101688385,
0.34642431139945984,
-0.029067695140838623,
0.1584668904542923,
-0.03940146043896675,
0.14273348450660706,
-0.04182223975658417,
0.4167375862598419,
0.025368642061948776,
0.05896114185452461,
0.11281780153512955,
0.468858540058136,
-0.23802882432937622,
-0.43636372685432434,
0.06379671394824982,
-0.2282159924507141,
-0.10351193696260452,
-0.17434163391590118,
0.017910286784172058,
0.49648627638816833,
-0.12123245745897293,
-0.2533373236656189,
-0.025421276688575745,
-0.2252066284418106,
-0.4202354848384857,
-0.09881211817264557,
0.11546975374221802,
-0.10273074358701706,
-0.280154287815094,
0.157858744263649,
-0.04884526506066322,
0.33152925968170166,
-0.10671870410442352,
0.14422711730003357,
0.020320534706115723,
0.37136733531951904,
-0.09950831532478333,
0.4219813346862793,
0.35682111978530884,
-0.28717702627182007,
-0.06215960532426834,
-0.10544177889823914,
0.16765357553958893,
-0.2552565038204193,
0.44636958837509155,
-0.0001665055751800537,
-0.2190551608800888,
-0.28392690420150757,
0.1990804374217987,
0.09799125045537949,
-0.10390634834766388,
-0.003237880766391754,
0.33595719933509827,
-0.28228673338890076,
0.15485477447509766,
0.10225383937358856,
-0.061040475964546204,
-0.1628771871328354,
-0.010247139260172844,
-0.11155939847230911,
0.20413394272327423,
-0.40113961696624756,
0.06567810475826263,
-0.34491801261901855,
-0.3245489299297333,
0.14613167941570282,
-0.09181250631809235,
-0.3562161326408386,
0.1757977306842804,
-0.19459231197834015,
0.2514716386795044,
0.20058660209178925,
-0.04437689855694771,
-0.23767027258872986,
0.36385393142700195,
-0.08641773462295532,
0.09281742572784424,
-0.2469605803489685,
0.18490271270275116,
0.10595370829105377,
-0.14914150536060333,
-0.32979685068130493,
0.04775729030370712,
-0.1587996780872345,
-0.19685232639312744,
-0.03131435066461563,
-0.39382994174957275,
0.35642319917678833,
-0.07550066709518433,
0.3161654472351074,
0.22201412916183472,
0.2586924731731415,
-0.17616164684295654,
0.3409664034843445,
0.08201705664396286,
0.17537641525268555,
0.10094960778951645,
0.6998939514160156,
-0.18351413309574127,
0.004001283086836338,
-0.3151402771472931,
-0.2812787592411041,
-0.05162658914923668,
-0.13881264626979828,
-0.12762880325317383,
0.1939437836408615,
-0.5064940452575684,
-0.014520780183374882,
-0.04483639448881149,
-0.06564319133758545,
-0.24651917815208435,
0.0782187283039093,
-0.23712632060050964,
0.03407401219010353,
-0.3830649256706238,
-0.5653281211853027,
0.014514828100800514,
-0.20146043598651886,
0.0020714919082820415,
-0.1319379359483719,
-0.14684447646141052,
0.23931244015693665,
0.11317753046751022,
0.14520400762557983,
0.19616691768169403,
0.06579995155334473,
-0.06608995795249939,
-0.08903227001428604,
0.20033758878707886,
0.278439998626709,
-0.29509133100509644,
-0.0846458300948143,
0.03591141104698181,
0.09922708570957184,
-0.1669372171163559,
-0.011225352063775063,
0.13641957938671112,
-0.03300963342189789,
0.10667317360639572,
-0.24761441349983215,
0.374372661113739,
-0.2114715427160263,
0.2994428277015686,
-0.16554616391658783,
0.0740620344877243,
0.2526145875453949,
-0.23435650765895844,
-0.12350547313690186,
-0.179703950881958,
-0.02992696687579155,
0.02716612070798874,
-0.021090351045131683,
-0.17401504516601562,
-0.29607540369033813,
0.1143340989947319,
-0.05259523168206215,
0.1503942757844925,
-0.06752804666757584,
0.282857209444046,
0.1135302484035492,
-0.12670990824699402,
0.1603180319070816,
0.1715133786201477,
0.39101213216781616,
0.1552305519580841,
-0.07335470616817474,
-0.024597758427262306,
0.45575183629989624,
0.03828822821378708,
0.10788977146148682,
0.18329021334648132,
-0.13432717323303223,
-0.019993208348751068,
-0.04288624972105026,
-0.08447359502315521,
-0.37887340784072876,
-0.05677904188632965,
-0.028335297480225563,
0.0868193581700325,
-0.016833946108818054,
-0.05512308329343796,
-0.20230811834335327,
-0.5482844114303589,
0.0757296085357666,
0.19052541255950928,
-0.14024092257022858,
-0.13961930572986603,
0.2762283682823181,
0.16739822924137115,
-0.27931416034698486,
0.23970647156238556,
-0.07185280323028564,
0.6686882972717285,
-0.3121204376220703,
0.32650232315063477,
0.027734912931919098,
-0.010818826034665108,
0.05749664828181267,
0.24586397409439087,
-0.16570447385311127,
0.37217065691947937,
0.6059102416038513,
0.20864950120449066,
-0.1610230952501297,
-0.49740397930145264,
-0.2689964473247528,
0.18128061294555664,
0.01889808475971222,
0.24957183003425598,
0.28590720891952515,
0.10402277112007141,
0.012929819524288177,
0.0437634103000164,
-0.3359828591346741,
-0.20384298264980316,
-0.305573433637619,
-0.3022103011608124,
0.05538518354296684,
0.33139246702194214,
-0.22986185550689697,
-0.0797363743185997,
-0.282441109418869,
-0.206918865442276,
0.10348781198263168,
-0.06935974955558777,
0.22199493646621704,
0.04093850776553154,
-0.2276330590248108,
-0.11302889883518219,
-0.1559119075536728,
-0.291801780462265,
-0.24315094947814941,
-0.44992101192474365,
-0.2808910608291626,
-0.2144707590341568,
-0.23961080610752106,
0.04522651806473732,
0.2854369878768921,
0.03090989962220192,
0.15763339400291443,
-0.14079847931861877,
-0.35386961698532104,
-0.019397059455513954,
0.2619762718677521,
-0.07103650271892548,
-0.0738762691617012,
0.1476154625415802,
0.05991889163851738,
-0.06545040011405945,
-0.025644758716225624,
-0.14643649756908417,
0.0759127289056778,
0.15968754887580872,
0.00614359974861145,
0.166852205991745,
0.19871139526367188,
0.05614522472023964,
0.6262667775154114,
0.14652490615844727,
0.07187804579734802,
0.294655978679657,
0.0982775017619133,
0.25439146161079407,
-0.14546287059783936,
-0.2613232433795929,
0.15030662715435028,
0.02774689346551895,
-0.1762801557779312,
0.3424511253833771,
-0.17527002096176147,
-0.3346107602119446,
0.13411003351211548,
-0.09567870199680328,
0.027436651289463043,
-0.21737928688526154,
0.09905902296304703,
0.002768155187368393,
0.20486441254615784,
0.10396024584770203,
-0.046943120658397675,
-0.13341492414474487,
-0.11006145179271698,
-0.05124218016862869,
-0.02318323403596878,
0.5291541218757629,
-0.10405341535806656,
-0.7140023112297058,
-0.08836885541677475,
-0.39179131388664246,
0.11260125041007996,
0.10151910036802292,
0.13684818148612976,
-0.015584960579872131,
0.0694454237818718,
0.0883985161781311,
0.32377490401268005,
0.4941774606704712,
-0.12657155096530914,
-0.10960894823074341,
0.09955549240112305,
-0.18793264031410217,
0.22182703018188477,
0.06909158825874329,
0.12239953875541687,
0.5511658191680908,
-0.06330610811710358,
-0.05561792850494385,
-0.05655139684677124,
-0.3648305833339691,
0.50334632396698,
0.4331113398075104,
-0.2701100707054138,
-0.07433903962373734,
0.13397641479969025,
-0.45396268367767334,
-0.1623755693435669,
0.18741989135742188,
0.358450710773468,
-0.01778913289308548,
0.10468525439500809,
-0.21196730434894562,
0.014727736823260784,
-0.20319226384162903,
0.22605189681053162,
-0.1402357816696167,
0.09246818721294403,
0.16951675713062286,
0.0972861498594284,
-0.03373449295759201,
0.0443914532661438,
0.3359934389591217,
0.1440194547176361,
-0.23375746607780457,
-0.1483152061700821,
-0.05029807984828949,
-0.48311683535575867,
0.5759850144386292,
0.4025343656539917,
0.06612829118967056,
0.4806565046310425,
-0.16112808883190155,
0.10671070218086243,
-0.14301134645938873,
0.03510009124875069,
-0.07897353917360306,
-0.3594432771205902,
-0.2998988628387451,
-0.3773579001426697,
0.1452079713344574,
-0.23905505239963531,
-0.13542985916137695,
0.5034407377243042,
0.06632842868566513,
-0.3376883566379547,
0.26006239652633667,
0.12797504663467407,
0.8335614204406738,
0.21015097200870514,
-0.1658751517534256,
-0.31974315643310547,
0.3667949438095093,
0.4445439577102661,
-0.06614331901073456,
0.1481737345457077,
-0.1517113447189331,
-0.46509507298469543,
-0.09869011491537094,
0.09116105735301971,
0.2458021640777588,
0.1708967685699463,
0.3036309480667114,
0.14250171184539795,
-0.33313673734664917,
0.23829758167266846,
0.09685618430376053,
0.20404259860515594,
0.20447932183742523,
0.0866403579711914,
0.27964159846305847,
0.14445443451404572,
-0.15371891856193542,
0.13642442226409912,
-0.014669016003608704,
0.014742379076778889,
0.4568226635456085,
-0.1832941621541977,
-0.08785192668437958,
-0.2767699062824249,
-0.23192600905895233,
0.1737445443868637,
-0.16774357855319977,
-0.22517414391040802,
0.03703916445374489,
-0.04128939285874367,
0.2246522456407547,
-0.16241391003131866,
-0.007250973954796791,
0.26161107420921326,
0.43054670095443726,
0.26134610176086426,
-0.18218553066253662,
0.08929324895143509,
0.06743280589580536,
-0.21702876687049866,
-0.17402061820030212,
0.19983094930648804,
-0.08822719007730484,
-0.6302382349967957,
0.045118674635887146,
-0.037080131471157074,
0.13949882984161377,
-0.2621921896934509,
-0.1778283268213272,
0.07976607978343964,
0.19987688958644867,
-0.26623156666755676,
0.17913705110549927,
0.41972625255584717,
-0.1594325304031372,
0.3291674256324768,
0.14194169640541077,
-0.11083832383155823,
-0.13112406432628632,
-0.19657182693481445,
0.2485969364643097,
-0.2229696363210678,
0.24358248710632324,
-0.16650980710983276,
-0.2172175496816635,
-0.3615175187587738,
0.09784591943025589,
0.04207693785429001,
-0.29944780468940735,
0.33115074038505554,
-0.15712173283100128,
0.12121982872486115,
-0.07682362198829651,
0.31861749291419983,
-0.2623770236968994,
-0.07797447592020035,
-0.14588426053524017,
-0.11703027784824371,
-0.1096847653388977,
-0.12496736645698547,
-0.23242710530757904,
0.2765316069126129,
-0.31720471382141113,
0.07091924548149109,
-0.29928043484687805,
0.09492747485637665,
-0.3520219027996063,
0.013193667866289616,
0.20192919671535492,
0.33091530203819275,
0.21085956692695618,
0.41986721754074097,
-0.1643507182598114,
-0.1381741762161255,
-0.025409821420907974,
0.09089428186416626,
0.10136236250400543,
-0.2763556241989136,
-0.2395838350057602,
0.12835735082626343,
-0.15293386578559875,
-0.2567758560180664,
0.07819711416959763,
0.18440888822078705,
-0.23508411645889282,
0.011489477008581161,
0.2410908341407776,
0.08124710619449615,
0.2036154568195343,
0.3696848452091217,
0.21261660754680634,
-0.31433814764022827,
-0.14658938348293304,
0.2053961455821991,
0.11152178049087524,
0.0902656763792038,
0.03731004148721695,
0.1750398427248001,
0.10161057114601135,
-0.0006022900342941284,
-0.013576487079262733,
0.08517532795667648,
-0.05805389583110809,
-0.036802567541599274,
-0.17073708772659302,
0.1592191755771637,
0.1380583792924881,
0.19066016376018524,
0.11466804146766663,
0.06743678450584412,
-0.2013959288597107,
0.08745759725570679,
0.22944608330726624,
0.30019110441207886,
-0.3757336437702179,
0.04771549999713898,
0.2190164178609848,
-0.03728813678026199,
0.04800370708107948,
0.11764992773532867,
0.33796170353889465,
0.27581509947776794,
0.1944611370563507,
-0.14271369576454163,
0.1466781198978424,
-0.043358996510505676,
0.1966167539358139,
0.5363404750823975,
0.07790660858154297,
-0.09129303693771362,
0.20901161432266235,
0.224944069981575,
0.0897132083773613,
0.24294903874397278,
-0.23686379194259644,
0.7157304883003235,
0.44752466678619385,
0.11865007132291794,
0.04491671174764633,
-0.39070022106170654,
0.30616235733032227,
0.3439211845397949,
-0.08166548609733582,
0.032626450061798096,
0.3975996971130371,
0.054934948682785034,
-0.021674569696187973,
-0.3226871192455292,
-0.1790694147348404,
0.2538166642189026,
0.009351074695587158,
-0.03729541227221489,
-0.2358715683221817,
-0.15257766842842102,
0.05261421203613281,
0.20899520814418793,
-0.02671005204319954,
-0.11314171552658081,
0.27018800377845764,
-0.13516095280647278,
-0.09691733121871948,
-0.0530758872628212,
0.2112284004688263,
-0.3297097980976105,
0.27649378776550293,
-0.12268126010894775,
-0.5608583092689514,
-0.34462112188339233,
-0.067345529794693,
0.3321215808391571,
0.3554743230342865,
-0.29084542393684387,
-0.10428003966808319,
0.10988515615463257,
-0.10221577435731888,
-0.36072301864624023,
0.005353132262825966,
-0.28862887620925903,
0.17039823532104492,
-0.0004719868302345276,
0.13740237057209015,
0.11338761448860168,
0.09339771419763565,
-0.06881410628557205,
0.03512149676680565,
0.3826906681060791,
0.10452356934547424,
-0.7485453486442566,
0.07542644441127777,
0.313343346118927,
-0.1835145205259323,
0.022479848936200142,
-0.057337112724781036,
0.34562036395072937,
-0.0509050115942955,
0.437370240688324,
-0.021235927939414978,
0.1652188003063202,
0.019916635006666183,
0.14346608519554138,
-0.4360469579696655,
-0.03861195221543312,
0.07424724102020264,
-0.23860546946525574,
-0.32695794105529785,
-0.1742449700832367,
-0.5445417165756226,
-0.05266229063272476,
-0.08856029808521271,
0.0918080136179924,
0.5256838798522949,
-0.0007515866309404373,
0.055199138820171356,
0.26350390911102295,
-0.048215821385383606,
-0.2776603698730469,
0.10351613163948059,
0.04000712186098099,
-0.39057475328445435,
0.04180523753166199,
-0.11880722641944885,
0.39937716722488403,
0.11242727935314178,
-0.3543587028980255,
0.016486700624227524,
-0.21468904614448547,
0.05139923095703125,
-0.23784585297107697,
-0.21603116393089294,
0.4501122832298279,
0.2699850797653198,
0.39346617460250854,
0.07972020655870438,
-0.09021569788455963,
-0.012565063312649727,
-0.1407453864812851,
-0.1495802104473114,
0.008123758248984814,
-0.2722080945968628,
0.0070367977023124695,
0.11928229033946991,
0.23221293091773987,
0.06870634853839874,
0.37683165073394775,
-0.21696878969669342,
0.3306800127029419,
-0.20011228322982788,
0.15200968086719513,
-0.3559267520904541,
-0.02005365677177906,
-0.03778032958507538,
0.008259661495685577,
0.2659200429916382,
0.1712702512741089,
-0.1545170545578003,
0.0960390567779541,
-0.36046260595321655,
-0.0338163822889328,
0.2870177626609802,
-0.45511388778686523,
-0.2992479205131531,
-0.17189493775367737,
0.3613573908805847,
0.15548524260520935,
-0.562626838684082,
-0.33707788586616516,
-0.07432866841554642,
0.2759283483028412,
-0.17158466577529907,
0.22447067499160767,
0.34132149815559387,
-0.13812156021595,
0.015498030930757523,
0.13426823914051056,
0.22555065155029297,
0.3296637237071991,
0.010961635038256645,
-0.04395417124032974,
-0.20933745801448822
] |
https://github.com/huggingface/datasets/issues/252 | NonMatchingSplitsSizesError error when reading the IMDB dataset | I just tried on my side and I didn't encounter your problem.
Apparently the script doesn't generate all the examples on your side.
Can you provide the version of `nlp` you're using ?
Can you try to clear your cache and re-run the code ? | Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks! | 45 | NonMatchingSplitsSizesError error when reading the IMDB dataset
Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks!
I just tried on my side and I didn't encounter your problem.
Apparently the script doesn't generate all the examples on your side.
Can you provide the version of `nlp` you're using ?
Can you try to clear your cache and re-run the code ? | [
-0.5058616399765015,
-0.12881018221378326,
0.018225107342004776,
0.34976834058761597,
0.14970475435256958,
0.20425540208816528,
0.046491511166095734,
0.42144641280174255,
0.2376459538936615,
0.07440637052059174,
-0.11682289838790894,
0.18232491612434387,
-0.261381059885025,
-0.10192305594682693,
-0.15735368430614471,
0.09799864888191223,
-0.11061818152666092,
0.2100699245929718,
0.07444214820861816,
0.06530744582414627,
-0.40281060338020325,
0.27408677339553833,
-0.38298797607421875,
-0.07002146542072296,
-0.3913932740688324,
-0.1332283467054367,
0.14591635763645172,
0.15154528617858887,
0.19135847687721252,
-0.384267121553421,
0.34816619753837585,
0.010944142937660217,
0.15339836478233337,
0.16258354485034943,
-0.0001161558466264978,
0.010485835373401642,
0.6431309580802917,
-0.28725242614746094,
-0.2771598696708679,
-0.27866697311401367,
-0.28904736042022705,
-0.29569944739341736,
0.29983827471733093,
-0.35568052530288696,
-0.09214356541633606,
-0.006996371783316135,
0.3332275152206421,
-0.46664920449256897,
0.10930388420820236,
0.16323351860046387,
0.1778460144996643,
0.1451750546693802,
-0.11867286264896393,
0.1979515254497528,
0.0227690227329731,
-0.11543528735637665,
-0.10673879086971283,
0.07675017416477203,
-0.02457626909017563,
-0.07225561887025833,
-0.11632969230413437,
0.23091097176074982,
-0.4465892016887665,
0.16891394555568695,
0.3901180326938629,
0.17549780011177063,
0.33320412039756775,
-0.2765013575553894,
0.07517452538013458,
0.20439773797988892,
0.5286699533462524,
-0.17592301964759827,
-0.2950548827648163,
-0.3949415981769562,
0.028566133230924606,
-0.24268724024295807,
0.16411568224430084,
0.34928202629089355,
-0.23489756882190704,
-0.0012557320296764374,
-0.3458952307701111,
0.02429928258061409,
-0.22278296947479248,
0.16897356510162354,
0.39572030305862427,
0.10430478304624557,
0.11116808652877808,
0.07972878217697144,
0.2857823371887207,
-0.058101214468479156,
0.4545833468437195,
-0.08506248146295547,
0.1459571123123169,
0.14440390467643738,
-0.2710448205471039,
-0.07598800957202911,
-0.21710669994354248,
0.27463462948799133,
0.008275508880615234,
0.3213573098182678,
0.1967967003583908,
0.05168132483959198,
0.1436014175415039,
0.3109811246395111,
0.24493180215358734,
0.017076566815376282,
0.1431284099817276,
0.33435624837875366,
0.04980472847819328,
0.15742115676403046,
-0.1261141449213028,
-0.03626967966556549,
0.08530551195144653,
-0.03145706281065941,
0.08145169913768768,
0.15716552734375,
0.2686859369277954,
-0.2099476009607315,
-0.5460668802261353,
-0.0010154889896512032,
-0.23328951001167297,
-0.1651889979839325,
0.0959906056523323,
0.2754749655723572,
-0.15367920696735382,
0.3319394886493683,
0.04225260019302368,
0.14243680238723755,
-0.34922027587890625,
-0.12168273329734802,
-0.23689842224121094,
0.1727503538131714,
-0.2033301293849945,
0.07712927460670471,
0.315879225730896,
0.10439884662628174,
0.4351961612701416,
-0.19862215220928192,
-0.11535394191741943,
-0.04209049046039581,
0.4212345480918884,
-0.19036391377449036,
-0.07459444552659988,
0.22260966897010803,
0.19707739353179932,
0.16234660148620605,
0.08705976605415344,
-0.05072995275259018,
-0.31885826587677,
0.18133091926574707,
0.0028081610798835754,
-0.3774324655532837,
0.015083186328411102,
0.17903631925582886,
-0.19090278446674347,
-0.08627466857433319,
-0.03475462645292282,
0.11344054341316223,
0.13027025759220123,
-0.4634087383747101,
-0.2054535150527954,
-0.10737556219100952,
-0.270217627286911,
-0.12326647341251373,
-0.016521593555808067,
0.5770244598388672,
0.033828746527433395,
-0.06373374164104462,
-0.14413300156593323,
0.008088434115052223,
0.5104398727416992,
0.38604608178138733,
-0.05088445171713829,
-0.167051762342453,
-0.36514320969581604,
0.33896732330322266,
0.22719737887382507,
-0.4194651246070862,
-0.4263269007205963,
0.4837435185909271,
0.0064371004700660706,
0.2578953802585602,
0.3255820870399475,
0.4054277837276459,
0.12047908455133438,
-0.03258951008319855,
0.052141886204481125,
0.4240188002586365,
-0.1317690908908844,
-0.014283666387200356,
-0.28745928406715393,
-0.29504409432411194,
0.6005899906158447,
0.14942367374897003,
0.06876461207866669,
-0.04363665729761124,
0.018751144409179688,
0.46655911207199097,
0.3268425166606903,
-0.0016482174396514893,
-0.01088884100317955,
0.1649564504623413,
-0.24784378707408905,
0.32264626026153564,
-0.17363013327121735,
-0.1761590540409088,
-0.5091280937194824,
0.07417913526296616,
-0.11290918290615082,
0.09082962572574615,
-0.17630435526371002,
-0.17812611162662506,
-0.08824414014816284,
-0.3431606888771057,
-0.23587743937969208,
0.0028422698378562927,
0.10642418265342712,
0.2504606246948242,
-0.060439787805080414,
0.1397743821144104,
-0.1747397780418396,
0.5486716032028198,
0.002362685278058052,
0.0829424187541008,
-0.8483412861824036,
0.32391437888145447,
-0.17331133782863617,
-0.2676152288913727,
0.3004833459854126,
0.2964940369129181,
0.2826036810874939,
-0.15306712687015533,
-0.11416511982679367,
0.38941866159439087,
0.09103495627641678,
0.3174046277999878,
-0.16694805026054382,
-0.03195296227931976,
0.2927331030368805,
-0.36313384771347046,
0.14231809973716736,
0.27244967222213745,
0.13418777287006378,
-0.1109844222664833,
-0.03921467065811157,
0.2899007797241211,
-0.33003562688827515,
0.21391186118125916,
0.07908979058265686,
0.06293436139822006,
0.16034458577632904,
-0.14501699805259705,
-0.07457000762224197,
-0.4325861930847168,
0.45346587896347046,
0.1690414994955063,
-0.07186068594455719,
0.06221761554479599,
-0.3637714385986328,
-0.12391876429319382,
0.4598464369773865,
0.11397325992584229,
0.01681595668196678,
0.04694470763206482,
-0.051349200308322906,
-0.16675841808319092,
0.1503906399011612,
0.19136746227741241,
0.2858826518058777,
0.35707128047943115,
-0.11386336386203766,
0.08582627773284912,
-0.09416116029024124,
-0.1824408769607544,
0.10859008133411407,
0.15418550372123718,
0.26791197061538696,
0.33022332191467285,
-0.11676167696714401,
-0.056367840617895126,
-0.40070226788520813,
-0.24563723802566528,
0.016141565516591072,
0.3377131521701813,
-0.26687607169151306,
-0.1578790843486786,
-0.4097845256328583,
-0.48011744022369385,
-0.05684175342321396,
-0.0843893438577652,
-0.14012381434440613,
-0.4054645895957947,
-0.11674664914608002,
0.50666743516922,
0.09027738869190216,
0.20096978545188904,
-0.3860330879688263,
-0.05657319724559784,
-0.03842674940824509,
-0.14503365755081177,
-0.1585080474615097,
-0.3335529863834381,
-0.07117223739624023,
-0.04579496011137962,
0.3911578953266144,
0.22970370948314667,
0.36297327280044556,
-0.4176104962825775,
-0.0948801338672638,
0.06533697247505188,
0.05407106131315231,
-0.1577541083097458,
-0.08008990436792374,
0.07565747201442719,
0.06884514540433884,
0.07905042916536331,
0.156669020652771,
-0.3845469355583191,
0.28425589203834534,
-0.27417150139808655,
-0.0760486051440239,
0.19505195319652557,
0.19364292919635773,
0.0419282428920269,
0.03538991138339043,
-0.36085057258605957,
-0.38797008991241455,
-0.43971380591392517,
0.01911475881934166,
0.28493747115135193,
0.10200919210910797,
0.16516593098640442,
-0.0089081060141325,
0.022369537502527237,
0.05462305247783661,
0.1785694807767868,
-0.12420817464590073,
0.025240812450647354,
0.3226627707481384,
-0.029078803956508636,
-0.11723747849464417,
0.0563458614051342,
0.05499807000160217,
0.15209993720054626,
-0.022355373948812485,
-0.43820714950561523,
-0.1349187046289444,
-0.14882054924964905,
0.11167162656784058,
-0.09015217423439026,
-0.20118731260299683,
0.3662032186985016,
0.13442093133926392,
-0.022054849192500114,
-0.028164977207779884,
-0.2943352460861206,
0.016757287085056305,
0.06942107528448105,
0.283718466758728,
-0.014131952077150345,
0.5791605114936829,
-0.06438601762056351,
0.38046103715896606,
0.49873411655426025,
0.04556391015648842,
0.268554151058197,
-0.19427163898944855,
0.23928700387477875,
-0.07486844807863235,
-0.39638271927833557,
0.0430060513317585,
-0.06591230630874634,
-0.090309739112854,
0.10268925130367279,
-0.20373639464378357,
-0.2834109663963318,
-0.24746564030647278,
-0.3123927116394043,
-0.4928133189678192,
-0.2052924782037735,
-0.04197797179222107,
-0.36904722452163696,
0.06717151403427124,
0.11420832574367523,
0.15709459781646729,
-0.1367003619670868,
-0.4786136746406555,
-0.002998730633407831,
0.1720232367515564,
0.20185407996177673,
0.04542698711156845,
0.0023710764944553375,
0.11249228566884995,
-0.42857033014297485,
0.41041404008865356,
0.08919253945350647,
0.48090675473213196,
-0.12759512662887573,
0.0004143640398979187,
0.10623752325773239,
-0.03964864835143089,
0.5215789675712585,
-0.3476821482181549,
0.1147933229804039,
0.07725659012794495,
-0.11838506162166595,
-0.6588268280029297,
0.08736692368984222,
-0.13857796788215637,
0.3216617703437805,
0.4780516028404236,
0.31148552894592285,
-0.23110345005989075,
-0.18514645099639893,
0.1953783482313156,
0.14984971284866333,
-0.12070512771606445,
-0.23557503521442413,
-0.20585395395755768,
-0.1715177595615387,
-0.4106169044971466,
-0.17136693000793457,
-0.04747944325208664,
0.29163631796836853,
0.13337840139865875,
-0.06958022713661194,
0.05028003454208374,
-0.1940113604068756,
0.3145999610424042,
0.060562390834093094,
0.27794894576072693,
0.1074613630771637,
0.2539290487766266,
0.3060089647769928,
0.31583917140960693,
0.11119217425584793,
0.45032525062561035,
-0.014343991875648499,
0.046165671199560165,
-0.07414501905441284,
-0.108951635658741,
0.11592881381511688,
0.17146971821784973,
0.08840830624103546,
-0.13650000095367432,
-0.030831631273031235,
-0.06223517656326294,
-0.17010712623596191,
-0.10185079276561737,
0.3103111684322357,
-0.07304828613996506,
-0.18008369207382202,
-0.5892115831375122,
0.47530022263526917,
0.22448886930942535,
0.06447356939315796,
-0.05210603028535843,
0.05236857384443283,
-0.24500302970409393,
0.4438101649284363,
0.14619717001914978,
0.778234601020813,
0.23157070577144623,
0.10153310000896454,
0.023329395800828934,
0.0174872949719429,
0.5530235767364502,
-0.09263056516647339,
0.40830814838409424,
-0.483538419008255,
-0.12686248123645782,
-0.06918506324291229,
-0.14241957664489746,
0.02825760841369629,
-0.00349566712975502,
-0.26026442646980286,
0.4872857332229614,
-0.127793088555336,
-0.39517831802368164,
-0.23525701463222504,
0.4670632481575012,
-0.3740268647670746,
-0.0687001496553421,
-0.052218854427337646,
0.11086669564247131,
-0.23586754500865936,
0.29754170775413513,
0.09008008241653442,
-0.17186178267002106,
-0.047992683947086334,
-0.06039005517959595,
-0.3981962203979492,
0.21061909198760986,
-0.21927323937416077,
0.29227375984191895,
-0.2318611443042755,
-0.15821419656276703,
-0.04134305566549301,
0.1540190428495407,
0.11756862699985504,
-0.25763368606567383,
-0.24675685167312622,
-0.17269691824913025,
-0.0243186354637146,
-0.24386638402938843,
0.03164604306221008,
0.12614543735980988,
0.39649438858032227,
-0.1396341621875763,
-0.1136617660522461,
0.01961805298924446,
0.07920031994581223,
-0.23061740398406982,
0.21631461381912231,
-0.1996917873620987,
0.024710029363632202,
-0.16470032930374146,
-0.5514366030693054,
-0.029141634702682495,
-0.1771271526813507,
-0.1453779935836792,
0.0900888442993164,
-0.09608128666877747,
-0.18411625921726227,
0.07291402667760849,
0.06232544034719467,
-0.2890545129776001,
-0.0627714991569519,
0.5095922350883484,
0.18227475881576538,
0.10066670179367065,
0.4814755618572235,
0.0086042620241642,
-0.28073644638061523,
-0.27133166790008545,
0.10447730869054794,
-0.1335475593805313,
-0.44085073471069336,
0.13959428668022156,
-0.013083596713840961,
0.2914964556694031,
0.23849041759967804,
0.07681259512901306,
0.29629331827163696,
0.11486309766769409,
-0.0730929747223854,
-0.4691399335861206,
-0.28071025013923645,
0.15273478627204895,
-0.20835290849208832,
0.3305928707122803,
-0.11062008887529373,
0.24013113975524902,
0.03889167308807373,
0.07922058552503586,
-0.26346248388290405,
-0.01908300817012787,
-0.31927159428596497,
0.10413350909948349,
0.25879791378974915,
-0.22273334860801697,
0.0652063637971878,
0.11405214667320251,
0.11876468360424042,
0.08913248777389526,
-0.10066400468349457,
-0.13672928512096405,
-0.04415438696742058,
0.14903737604618073,
0.06984235346317291,
-0.2456950694322586,
-0.3087031841278076,
-0.11426921933889389,
-0.185402974486351,
-0.11465052515268326,
-0.3026447296142578,
0.2923475205898285,
-0.09454795718193054,
0.515942394733429,
-0.025602024048566818,
-0.18945348262786865,
-0.014908598735928535,
0.208500474691391,
-0.31100401282310486,
0.33278438448905945,
-0.16510772705078125,
0.19613119959831238,
0.07027754187583923,
0.09524761140346527,
-0.031940434128046036,
-0.07853242009878159,
-0.05739738047122955,
0.01786770671606064,
0.2745215594768524,
-0.28783291578292847,
0.033060867339372635,
0.2350529283285141,
0.17434218525886536,
0.4963504374027252,
-0.04236546531319618,
-0.2141537070274353,
0.006215906236320734,
0.16510792076587677,
-0.4446527361869812,
0.11293768137693405,
0.5683698654174805,
0.028219133615493774,
-0.017522893846035004,
0.28859564661979675,
0.20169180631637573,
-0.026985257863998413,
-0.07953731715679169,
0.0491541251540184,
0.5171208381652832,
-0.30170607566833496,
0.13687583804130554,
0.14697054028511047,
0.04299703612923622,
-0.12275180220603943,
0.16442354023456573,
0.21189799904823303,
0.3436453342437744,
0.5141327977180481,
-0.19191071391105652,
0.3020535409450531,
-0.2119121253490448,
0.19079852104187012,
-0.30469122529029846,
-0.3163408935070038,
-0.11834949254989624,
0.2924261689186096,
0.015543676912784576,
0.1833093911409378,
-0.001010499894618988,
0.2147722840309143,
-0.20411379635334015,
0.12571454048156738,
-0.22978542745113373,
0.13506817817687988,
-0.16725707054138184,
-0.03253374993801117,
-0.13844463229179382,
-0.09183789789676666,
-0.3104107081890106,
-0.019424153491854668,
-0.009829342365264893,
0.12131264805793762,
0.16993677616119385,
0.2625786364078522,
0.03484591841697693,
-0.3329247236251831,
0.06705644726753235,
0.06070844456553459,
0.1977011114358902,
-0.3414987027645111,
0.15062233805656433,
0.042754482477903366,
0.1671665459871292,
0.12540072202682495,
0.5256475806236267,
0.5326802730560303,
0.3818292021751404,
-0.4976463317871094,
0.10001033544540405,
0.0787343978881836,
-0.07441467046737671,
0.005149435251951218,
0.415167897939682,
0.24170880019664764,
0.12784813344478607,
0.380285382270813,
0.06875533610582352,
-0.07183120399713516,
0.3295056223869324,
0.08493965864181519,
-0.06180170550942421,
-0.05011023208498955,
0.46062615513801575,
-0.1114087700843811,
0.08408173173666,
-0.2616663873195648,
0.09434989094734192,
-0.382158488035202,
-0.27049702405929565,
0.3131416440010071,
-0.27780380845069885,
0.20219972729682922,
0.06264907866716385,
0.04186536371707916,
-0.3012950122356415,
0.44370773434638977,
0.32396385073661804,
-0.014916613698005676,
-0.3931870758533478,
-0.04517494887113571,
-0.6925988793373108,
0.14870278537273407,
-0.17574767768383026,
-0.11781822144985199,
0.05300265550613403,
0.388667494058609,
-0.2979036271572113,
0.0005523562431335449,
-0.06225389242172241,
0.5312163829803467,
-0.135066419839859,
0.10482765734195709,
-0.11336572468280792,
-0.20269563794136047,
-0.15233276784420013,
-0.17489472031593323,
-0.11979547142982483,
-0.24344581365585327,
0.040549058467149734,
-0.31625843048095703,
0.04632946103811264,
-0.15815304219722748,
-0.07246094942092896,
0.00855320692062378,
0.6363351345062256,
0.030106596648693085,
0.322802871465683,
0.6062831878662109,
-0.15318626165390015,
-0.04710698872804642,
-0.17056527733802795,
-0.3430221378803253,
-0.2737979590892792,
0.09749993681907654,
0.337198406457901,
0.40556949377059937,
-0.3082166910171509,
0.30001533031463623,
-0.27147847414016724,
0.2924046516418457,
-0.10043897479772568,
-0.1348371058702469,
-0.23408173024654388,
0.038498036563396454,
-0.17717179656028748,
0.07956242561340332,
-0.11134928464889526,
0.19574111700057983,
0.10678485035896301,
0.26460936665534973,
-0.2957316040992737,
-0.19542069733142853,
0.6806668043136597,
-0.24252764880657196,
-0.1901586800813675,
0.0020954450592398643,
0.13622808456420898,
0.1533728837966919,
-0.03697749227285385,
-0.39615052938461304,
0.023958973586559296,
0.3804267942905426,
-0.0542757585644722,
-0.03326607123017311,
0.10674907267093658,
-0.030081845819950104,
-0.20039840042591095,
-0.06963510811328888,
-0.23875007033348083,
0.3049542307853699,
-0.28760284185409546,
0.11369851231575012,
-0.10271984338760376
] |
https://github.com/huggingface/datasets/issues/252 | NonMatchingSplitsSizesError error when reading the IMDB dataset | Hi ! The cache is at ~/.cache/huggingface
You can just delete this folder if needed :) | Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks! | 16 | NonMatchingSplitsSizesError error when reading the IMDB dataset
Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks!
Hi ! The cache is at ~/.cache/huggingface
You can just delete this folder if needed :) | [
-0.5058616399765015,
-0.12881018221378326,
0.018225107342004776,
0.34976834058761597,
0.14970475435256958,
0.20425540208816528,
0.046491511166095734,
0.42144641280174255,
0.2376459538936615,
0.07440637052059174,
-0.11682289838790894,
0.18232491612434387,
-0.261381059885025,
-0.10192305594682693,
-0.15735368430614471,
0.09799864888191223,
-0.11061818152666092,
0.2100699245929718,
0.07444214820861816,
0.06530744582414627,
-0.40281060338020325,
0.27408677339553833,
-0.38298797607421875,
-0.07002146542072296,
-0.3913932740688324,
-0.1332283467054367,
0.14591635763645172,
0.15154528617858887,
0.19135847687721252,
-0.384267121553421,
0.34816619753837585,
0.010944142937660217,
0.15339836478233337,
0.16258354485034943,
-0.0001161558466264978,
0.010485835373401642,
0.6431309580802917,
-0.28725242614746094,
-0.2771598696708679,
-0.27866697311401367,
-0.28904736042022705,
-0.29569944739341736,
0.29983827471733093,
-0.35568052530288696,
-0.09214356541633606,
-0.006996371783316135,
0.3332275152206421,
-0.46664920449256897,
0.10930388420820236,
0.16323351860046387,
0.1778460144996643,
0.1451750546693802,
-0.11867286264896393,
0.1979515254497528,
0.0227690227329731,
-0.11543528735637665,
-0.10673879086971283,
0.07675017416477203,
-0.02457626909017563,
-0.07225561887025833,
-0.11632969230413437,
0.23091097176074982,
-0.4465892016887665,
0.16891394555568695,
0.3901180326938629,
0.17549780011177063,
0.33320412039756775,
-0.2765013575553894,
0.07517452538013458,
0.20439773797988892,
0.5286699533462524,
-0.17592301964759827,
-0.2950548827648163,
-0.3949415981769562,
0.028566133230924606,
-0.24268724024295807,
0.16411568224430084,
0.34928202629089355,
-0.23489756882190704,
-0.0012557320296764374,
-0.3458952307701111,
0.02429928258061409,
-0.22278296947479248,
0.16897356510162354,
0.39572030305862427,
0.10430478304624557,
0.11116808652877808,
0.07972878217697144,
0.2857823371887207,
-0.058101214468479156,
0.4545833468437195,
-0.08506248146295547,
0.1459571123123169,
0.14440390467643738,
-0.2710448205471039,
-0.07598800957202911,
-0.21710669994354248,
0.27463462948799133,
0.008275508880615234,
0.3213573098182678,
0.1967967003583908,
0.05168132483959198,
0.1436014175415039,
0.3109811246395111,
0.24493180215358734,
0.017076566815376282,
0.1431284099817276,
0.33435624837875366,
0.04980472847819328,
0.15742115676403046,
-0.1261141449213028,
-0.03626967966556549,
0.08530551195144653,
-0.03145706281065941,
0.08145169913768768,
0.15716552734375,
0.2686859369277954,
-0.2099476009607315,
-0.5460668802261353,
-0.0010154889896512032,
-0.23328951001167297,
-0.1651889979839325,
0.0959906056523323,
0.2754749655723572,
-0.15367920696735382,
0.3319394886493683,
0.04225260019302368,
0.14243680238723755,
-0.34922027587890625,
-0.12168273329734802,
-0.23689842224121094,
0.1727503538131714,
-0.2033301293849945,
0.07712927460670471,
0.315879225730896,
0.10439884662628174,
0.4351961612701416,
-0.19862215220928192,
-0.11535394191741943,
-0.04209049046039581,
0.4212345480918884,
-0.19036391377449036,
-0.07459444552659988,
0.22260966897010803,
0.19707739353179932,
0.16234660148620605,
0.08705976605415344,
-0.05072995275259018,
-0.31885826587677,
0.18133091926574707,
0.0028081610798835754,
-0.3774324655532837,
0.015083186328411102,
0.17903631925582886,
-0.19090278446674347,
-0.08627466857433319,
-0.03475462645292282,
0.11344054341316223,
0.13027025759220123,
-0.4634087383747101,
-0.2054535150527954,
-0.10737556219100952,
-0.270217627286911,
-0.12326647341251373,
-0.016521593555808067,
0.5770244598388672,
0.033828746527433395,
-0.06373374164104462,
-0.14413300156593323,
0.008088434115052223,
0.5104398727416992,
0.38604608178138733,
-0.05088445171713829,
-0.167051762342453,
-0.36514320969581604,
0.33896732330322266,
0.22719737887382507,
-0.4194651246070862,
-0.4263269007205963,
0.4837435185909271,
0.0064371004700660706,
0.2578953802585602,
0.3255820870399475,
0.4054277837276459,
0.12047908455133438,
-0.03258951008319855,
0.052141886204481125,
0.4240188002586365,
-0.1317690908908844,
-0.014283666387200356,
-0.28745928406715393,
-0.29504409432411194,
0.6005899906158447,
0.14942367374897003,
0.06876461207866669,
-0.04363665729761124,
0.018751144409179688,
0.46655911207199097,
0.3268425166606903,
-0.0016482174396514893,
-0.01088884100317955,
0.1649564504623413,
-0.24784378707408905,
0.32264626026153564,
-0.17363013327121735,
-0.1761590540409088,
-0.5091280937194824,
0.07417913526296616,
-0.11290918290615082,
0.09082962572574615,
-0.17630435526371002,
-0.17812611162662506,
-0.08824414014816284,
-0.3431606888771057,
-0.23587743937969208,
0.0028422698378562927,
0.10642418265342712,
0.2504606246948242,
-0.060439787805080414,
0.1397743821144104,
-0.1747397780418396,
0.5486716032028198,
0.002362685278058052,
0.0829424187541008,
-0.8483412861824036,
0.32391437888145447,
-0.17331133782863617,
-0.2676152288913727,
0.3004833459854126,
0.2964940369129181,
0.2826036810874939,
-0.15306712687015533,
-0.11416511982679367,
0.38941866159439087,
0.09103495627641678,
0.3174046277999878,
-0.16694805026054382,
-0.03195296227931976,
0.2927331030368805,
-0.36313384771347046,
0.14231809973716736,
0.27244967222213745,
0.13418777287006378,
-0.1109844222664833,
-0.03921467065811157,
0.2899007797241211,
-0.33003562688827515,
0.21391186118125916,
0.07908979058265686,
0.06293436139822006,
0.16034458577632904,
-0.14501699805259705,
-0.07457000762224197,
-0.4325861930847168,
0.45346587896347046,
0.1690414994955063,
-0.07186068594455719,
0.06221761554479599,
-0.3637714385986328,
-0.12391876429319382,
0.4598464369773865,
0.11397325992584229,
0.01681595668196678,
0.04694470763206482,
-0.051349200308322906,
-0.16675841808319092,
0.1503906399011612,
0.19136746227741241,
0.2858826518058777,
0.35707128047943115,
-0.11386336386203766,
0.08582627773284912,
-0.09416116029024124,
-0.1824408769607544,
0.10859008133411407,
0.15418550372123718,
0.26791197061538696,
0.33022332191467285,
-0.11676167696714401,
-0.056367840617895126,
-0.40070226788520813,
-0.24563723802566528,
0.016141565516591072,
0.3377131521701813,
-0.26687607169151306,
-0.1578790843486786,
-0.4097845256328583,
-0.48011744022369385,
-0.05684175342321396,
-0.0843893438577652,
-0.14012381434440613,
-0.4054645895957947,
-0.11674664914608002,
0.50666743516922,
0.09027738869190216,
0.20096978545188904,
-0.3860330879688263,
-0.05657319724559784,
-0.03842674940824509,
-0.14503365755081177,
-0.1585080474615097,
-0.3335529863834381,
-0.07117223739624023,
-0.04579496011137962,
0.3911578953266144,
0.22970370948314667,
0.36297327280044556,
-0.4176104962825775,
-0.0948801338672638,
0.06533697247505188,
0.05407106131315231,
-0.1577541083097458,
-0.08008990436792374,
0.07565747201442719,
0.06884514540433884,
0.07905042916536331,
0.156669020652771,
-0.3845469355583191,
0.28425589203834534,
-0.27417150139808655,
-0.0760486051440239,
0.19505195319652557,
0.19364292919635773,
0.0419282428920269,
0.03538991138339043,
-0.36085057258605957,
-0.38797008991241455,
-0.43971380591392517,
0.01911475881934166,
0.28493747115135193,
0.10200919210910797,
0.16516593098640442,
-0.0089081060141325,
0.022369537502527237,
0.05462305247783661,
0.1785694807767868,
-0.12420817464590073,
0.025240812450647354,
0.3226627707481384,
-0.029078803956508636,
-0.11723747849464417,
0.0563458614051342,
0.05499807000160217,
0.15209993720054626,
-0.022355373948812485,
-0.43820714950561523,
-0.1349187046289444,
-0.14882054924964905,
0.11167162656784058,
-0.09015217423439026,
-0.20118731260299683,
0.3662032186985016,
0.13442093133926392,
-0.022054849192500114,
-0.028164977207779884,
-0.2943352460861206,
0.016757287085056305,
0.06942107528448105,
0.283718466758728,
-0.014131952077150345,
0.5791605114936829,
-0.06438601762056351,
0.38046103715896606,
0.49873411655426025,
0.04556391015648842,
0.268554151058197,
-0.19427163898944855,
0.23928700387477875,
-0.07486844807863235,
-0.39638271927833557,
0.0430060513317585,
-0.06591230630874634,
-0.090309739112854,
0.10268925130367279,
-0.20373639464378357,
-0.2834109663963318,
-0.24746564030647278,
-0.3123927116394043,
-0.4928133189678192,
-0.2052924782037735,
-0.04197797179222107,
-0.36904722452163696,
0.06717151403427124,
0.11420832574367523,
0.15709459781646729,
-0.1367003619670868,
-0.4786136746406555,
-0.002998730633407831,
0.1720232367515564,
0.20185407996177673,
0.04542698711156845,
0.0023710764944553375,
0.11249228566884995,
-0.42857033014297485,
0.41041404008865356,
0.08919253945350647,
0.48090675473213196,
-0.12759512662887573,
0.0004143640398979187,
0.10623752325773239,
-0.03964864835143089,
0.5215789675712585,
-0.3476821482181549,
0.1147933229804039,
0.07725659012794495,
-0.11838506162166595,
-0.6588268280029297,
0.08736692368984222,
-0.13857796788215637,
0.3216617703437805,
0.4780516028404236,
0.31148552894592285,
-0.23110345005989075,
-0.18514645099639893,
0.1953783482313156,
0.14984971284866333,
-0.12070512771606445,
-0.23557503521442413,
-0.20585395395755768,
-0.1715177595615387,
-0.4106169044971466,
-0.17136693000793457,
-0.04747944325208664,
0.29163631796836853,
0.13337840139865875,
-0.06958022713661194,
0.05028003454208374,
-0.1940113604068756,
0.3145999610424042,
0.060562390834093094,
0.27794894576072693,
0.1074613630771637,
0.2539290487766266,
0.3060089647769928,
0.31583917140960693,
0.11119217425584793,
0.45032525062561035,
-0.014343991875648499,
0.046165671199560165,
-0.07414501905441284,
-0.108951635658741,
0.11592881381511688,
0.17146971821784973,
0.08840830624103546,
-0.13650000095367432,
-0.030831631273031235,
-0.06223517656326294,
-0.17010712623596191,
-0.10185079276561737,
0.3103111684322357,
-0.07304828613996506,
-0.18008369207382202,
-0.5892115831375122,
0.47530022263526917,
0.22448886930942535,
0.06447356939315796,
-0.05210603028535843,
0.05236857384443283,
-0.24500302970409393,
0.4438101649284363,
0.14619717001914978,
0.778234601020813,
0.23157070577144623,
0.10153310000896454,
0.023329395800828934,
0.0174872949719429,
0.5530235767364502,
-0.09263056516647339,
0.40830814838409424,
-0.483538419008255,
-0.12686248123645782,
-0.06918506324291229,
-0.14241957664489746,
0.02825760841369629,
-0.00349566712975502,
-0.26026442646980286,
0.4872857332229614,
-0.127793088555336,
-0.39517831802368164,
-0.23525701463222504,
0.4670632481575012,
-0.3740268647670746,
-0.0687001496553421,
-0.052218854427337646,
0.11086669564247131,
-0.23586754500865936,
0.29754170775413513,
0.09008008241653442,
-0.17186178267002106,
-0.047992683947086334,
-0.06039005517959595,
-0.3981962203979492,
0.21061909198760986,
-0.21927323937416077,
0.29227375984191895,
-0.2318611443042755,
-0.15821419656276703,
-0.04134305566549301,
0.1540190428495407,
0.11756862699985504,
-0.25763368606567383,
-0.24675685167312622,
-0.17269691824913025,
-0.0243186354637146,
-0.24386638402938843,
0.03164604306221008,
0.12614543735980988,
0.39649438858032227,
-0.1396341621875763,
-0.1136617660522461,
0.01961805298924446,
0.07920031994581223,
-0.23061740398406982,
0.21631461381912231,
-0.1996917873620987,
0.024710029363632202,
-0.16470032930374146,
-0.5514366030693054,
-0.029141634702682495,
-0.1771271526813507,
-0.1453779935836792,
0.0900888442993164,
-0.09608128666877747,
-0.18411625921726227,
0.07291402667760849,
0.06232544034719467,
-0.2890545129776001,
-0.0627714991569519,
0.5095922350883484,
0.18227475881576538,
0.10066670179367065,
0.4814755618572235,
0.0086042620241642,
-0.28073644638061523,
-0.27133166790008545,
0.10447730869054794,
-0.1335475593805313,
-0.44085073471069336,
0.13959428668022156,
-0.013083596713840961,
0.2914964556694031,
0.23849041759967804,
0.07681259512901306,
0.29629331827163696,
0.11486309766769409,
-0.0730929747223854,
-0.4691399335861206,
-0.28071025013923645,
0.15273478627204895,
-0.20835290849208832,
0.3305928707122803,
-0.11062008887529373,
0.24013113975524902,
0.03889167308807373,
0.07922058552503586,
-0.26346248388290405,
-0.01908300817012787,
-0.31927159428596497,
0.10413350909948349,
0.25879791378974915,
-0.22273334860801697,
0.0652063637971878,
0.11405214667320251,
0.11876468360424042,
0.08913248777389526,
-0.10066400468349457,
-0.13672928512096405,
-0.04415438696742058,
0.14903737604618073,
0.06984235346317291,
-0.2456950694322586,
-0.3087031841278076,
-0.11426921933889389,
-0.185402974486351,
-0.11465052515268326,
-0.3026447296142578,
0.2923475205898285,
-0.09454795718193054,
0.515942394733429,
-0.025602024048566818,
-0.18945348262786865,
-0.014908598735928535,
0.208500474691391,
-0.31100401282310486,
0.33278438448905945,
-0.16510772705078125,
0.19613119959831238,
0.07027754187583923,
0.09524761140346527,
-0.031940434128046036,
-0.07853242009878159,
-0.05739738047122955,
0.01786770671606064,
0.2745215594768524,
-0.28783291578292847,
0.033060867339372635,
0.2350529283285141,
0.17434218525886536,
0.4963504374027252,
-0.04236546531319618,
-0.2141537070274353,
0.006215906236320734,
0.16510792076587677,
-0.4446527361869812,
0.11293768137693405,
0.5683698654174805,
0.028219133615493774,
-0.017522893846035004,
0.28859564661979675,
0.20169180631637573,
-0.026985257863998413,
-0.07953731715679169,
0.0491541251540184,
0.5171208381652832,
-0.30170607566833496,
0.13687583804130554,
0.14697054028511047,
0.04299703612923622,
-0.12275180220603943,
0.16442354023456573,
0.21189799904823303,
0.3436453342437744,
0.5141327977180481,
-0.19191071391105652,
0.3020535409450531,
-0.2119121253490448,
0.19079852104187012,
-0.30469122529029846,
-0.3163408935070038,
-0.11834949254989624,
0.2924261689186096,
0.015543676912784576,
0.1833093911409378,
-0.001010499894618988,
0.2147722840309143,
-0.20411379635334015,
0.12571454048156738,
-0.22978542745113373,
0.13506817817687988,
-0.16725707054138184,
-0.03253374993801117,
-0.13844463229179382,
-0.09183789789676666,
-0.3104107081890106,
-0.019424153491854668,
-0.009829342365264893,
0.12131264805793762,
0.16993677616119385,
0.2625786364078522,
0.03484591841697693,
-0.3329247236251831,
0.06705644726753235,
0.06070844456553459,
0.1977011114358902,
-0.3414987027645111,
0.15062233805656433,
0.042754482477903366,
0.1671665459871292,
0.12540072202682495,
0.5256475806236267,
0.5326802730560303,
0.3818292021751404,
-0.4976463317871094,
0.10001033544540405,
0.0787343978881836,
-0.07441467046737671,
0.005149435251951218,
0.415167897939682,
0.24170880019664764,
0.12784813344478607,
0.380285382270813,
0.06875533610582352,
-0.07183120399713516,
0.3295056223869324,
0.08493965864181519,
-0.06180170550942421,
-0.05011023208498955,
0.46062615513801575,
-0.1114087700843811,
0.08408173173666,
-0.2616663873195648,
0.09434989094734192,
-0.382158488035202,
-0.27049702405929565,
0.3131416440010071,
-0.27780380845069885,
0.20219972729682922,
0.06264907866716385,
0.04186536371707916,
-0.3012950122356415,
0.44370773434638977,
0.32396385073661804,
-0.014916613698005676,
-0.3931870758533478,
-0.04517494887113571,
-0.6925988793373108,
0.14870278537273407,
-0.17574767768383026,
-0.11781822144985199,
0.05300265550613403,
0.388667494058609,
-0.2979036271572113,
0.0005523562431335449,
-0.06225389242172241,
0.5312163829803467,
-0.135066419839859,
0.10482765734195709,
-0.11336572468280792,
-0.20269563794136047,
-0.15233276784420013,
-0.17489472031593323,
-0.11979547142982483,
-0.24344581365585327,
0.040549058467149734,
-0.31625843048095703,
0.04632946103811264,
-0.15815304219722748,
-0.07246094942092896,
0.00855320692062378,
0.6363351345062256,
0.030106596648693085,
0.322802871465683,
0.6062831878662109,
-0.15318626165390015,
-0.04710698872804642,
-0.17056527733802795,
-0.3430221378803253,
-0.2737979590892792,
0.09749993681907654,
0.337198406457901,
0.40556949377059937,
-0.3082166910171509,
0.30001533031463623,
-0.27147847414016724,
0.2924046516418457,
-0.10043897479772568,
-0.1348371058702469,
-0.23408173024654388,
0.038498036563396454,
-0.17717179656028748,
0.07956242561340332,
-0.11134928464889526,
0.19574111700057983,
0.10678485035896301,
0.26460936665534973,
-0.2957316040992737,
-0.19542069733142853,
0.6806668043136597,
-0.24252764880657196,
-0.1901586800813675,
0.0020954450592398643,
0.13622808456420898,
0.1533728837966919,
-0.03697749227285385,
-0.39615052938461304,
0.023958973586559296,
0.3804267942905426,
-0.0542757585644722,
-0.03326607123017311,
0.10674907267093658,
-0.030081845819950104,
-0.20039840042591095,
-0.06963510811328888,
-0.23875007033348083,
0.3049542307853699,
-0.28760284185409546,
0.11369851231575012,
-0.10271984338760376
] |
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.21658001840114594,
-0.016485445201396942,
-0.12069708108901978,
0.35101252794265747,
0.2939457893371582,
-0.023854795843362808,
0.08669041097164154,
0.4066433608531952,
-0.19985435903072357,
0.021646812558174133,
0.22105182707309723,
0.20121291279792786,
-0.23070664703845978,
-0.008300848305225372,
0.11137526482343674,
-0.19988062977790833,
0.25772586464881897,
0.30907127261161804,
0.21963410079479218,
-0.195206418633461,
-0.44480907917022705,
0.1668984293937683,
-0.020273562520742416,
0.07947743684053421,
-0.18549789488315582,
-0.3484349846839905,
0.0012612584978342056,
0.30414968729019165,
-0.27669185400009155,
-0.3347339928150177,
0.042907364666461945,
-0.02169693633913994,
0.061425983905792236,
0.17914867401123047,
-0.00011480376997496933,
-0.1664891541004181,
0.3816401958465576,
-0.12867434322834015,
-0.4447019696235657,
-0.052481845021247864,
-0.27772948145866394,
-0.5376023054122925,
0.11462371796369553,
-0.3695811927318573,
0.11700720340013504,
-0.47661030292510986,
-0.20998257398605347,
-0.22514012455940247,
0.5323173999786377,
0.35922878980636597,
0.23350407183170319,
0.26303595304489136,
0.2306549996137619,
-0.07524361461400986,
0.3409654200077057,
0.09867829084396362,
-0.2740066945552826,
-0.0909319669008255,
0.08401592820882797,
0.19145692884922028,
0.07316936552524567,
0.1320599764585495,
0.14267322421073914,
-0.11036168038845062,
0.41378113627433777,
-0.16415740549564362,
-0.028322316706180573,
-0.5333048105239868,
-0.032906726002693176,
-0.04506095498800278,
0.4773079454898834,
-0.35319799184799194,
-0.30110159516334534,
-0.3424130976200104,
0.16124264895915985,
-0.13955791294574738,
0.23889309167861938,
0.43220025300979614,
-0.1544615924358368,
-0.11362607777118683,
-0.19337525963783264,
-0.1405060738325119,
-0.2878139913082123,
0.18132200837135315,
0.41243645548820496,
0.08534807711839676,
0.15998627245426178,
0.05045842379331589,
-0.002754978835582733,
-0.10998214781284332,
0.16729329526424408,
-0.33421534299850464,
-0.07499463856220245,
0.3552263677120209,
-0.19915078580379486,
-0.19652427732944489,
-0.044368721544742584,
0.031373489648103714,
0.0599541962146759,
0.23172341287136078,
-0.24609233438968658,
0.004456955939531326,
-0.01184664387255907,
0.0019152164459228516,
0.14711855351924896,
0.1913508027791977,
0.1334289014339447,
0.06528245657682419,
0.10374858230352402,
-0.03922334313392639,
0.28997623920440674,
0.050845786929130554,
-0.002380829071626067,
0.04067065194249153,
-0.18650610744953156,
0.05195726454257965,
-0.004036944359540939,
-0.06701973080635071,
-0.023956192657351494,
0.13877539336681366,
-0.37346652150154114,
-0.25004976987838745,
0.04233334958553314,
0.21878686547279358,
0.13104088604450226,
0.20032700896263123,
-0.06771634519100189,
0.2659158706665039,
-0.2425880879163742,
-0.2212199568748474,
-0.08900868147611618,
0.17858991026878357,
-0.3464144468307495,
-0.008723592385649681,
0.40412387251853943,
0.36786895990371704,
0.3285508155822754,
-0.05587233603000641,
-0.15685828030109406,
0.08042962849140167,
0.36980119347572327,
-0.17256379127502441,
-0.16495230793952942,
0.36645328998565674,
0.1163087785243988,
0.3178187906742096,
-0.22829397022724152,
-0.006545107811689377,
-0.1832161396741867,
0.07335604727268219,
0.0013035982847213745,
-0.24342821538448334,
-0.07428684085607529,
0.22571881115436554,
-0.37861520051956177,
0.35599610209465027,
0.00950370728969574,
0.08509109914302826,
0.11430229991674423,
-0.2616058588027954,
-0.10594756156206131,
0.00041703134775161743,
-0.040185727179050446,
-0.3765691816806793,
0.22220896184444427,
0.35578805208206177,
-0.27297884225845337,
-0.1173567995429039,
-0.23923717439174652,
-0.43224430084228516,
-0.17214515805244446,
0.014352578669786453,
-0.10997049510478973,
0.4447322487831116,
-0.18863236904144287,
0.059048786759376526,
0.5762627124786377,
-0.17363236844539642,
-0.38625022768974304,
-0.0011029966408386827,
0.037816502153873444,
-0.16118894517421722,
0.1443193554878235,
0.09668310731649399,
0.039711352437734604,
-0.2814244329929352,
-0.3508949279785156,
0.3981655240058899,
-0.06083489954471588,
0.08639704436063766,
-0.320701539516449,
-0.09578806161880493,
0.17196300625801086,
0.23559363186359406,
-0.00989510491490364,
0.09999740868806839,
0.24887874722480774,
0.23561351001262665,
-0.018362194299697876,
-0.14808054268360138,
0.24856819212436676,
0.32265186309814453,
0.3735436499118805,
-0.3224754333496094,
0.08438026905059814,
0.06099770963191986,
-0.49091827869415283,
0.005899857729673386,
-0.4745104908943176,
0.09892977774143219,
-0.12336021661758423,
0.004431761801242828,
-0.2629869282245636,
-0.09008906036615372,
-0.06471025943756104,
-0.3086579442024231,
0.1512106955051422,
-0.07899229228496552,
0.19190585613250732,
-0.10692575573921204,
-0.34201645851135254,
0.5311257839202881,
-0.1893763542175293,
0.0688481554389,
-0.5045067071914673,
0.21865656971931458,
-0.16548524796962738,
-0.12189656496047974,
0.31628653407096863,
0.5913735628128052,
0.18593847751617432,
-0.12979727983474731,
-0.15710917115211487,
0.3761416971683502,
-0.007289102766662836,
0.1002148911356926,
0.13146646320819855,
0.1088220477104187,
0.33483049273490906,
-0.14765985310077667,
0.3715440332889557,
-0.28931280970573425,
0.10898038744926453,
-0.21426013112068176,
-0.36198312044143677,
0.2575715184211731,
-0.09456968307495117,
0.19034743309020996,
0.21095649898052216,
-0.004095900803804398,
0.24786809086799622,
-0.09052674472332001,
0.03912867605686188,
-0.12223973125219345,
0.2752205431461334,
0.24159105122089386,
0.3407290279865265,
0.21059603989124298,
0.19737163186073303,
0.23095592856407166,
0.2959485650062561,
-0.058461353182792664,
-0.1581471562385559,
0.20840749144554138,
-0.04778169095516205,
-0.1669331192970276,
0.21962516009807587,
0.45658746361732483,
0.5612213015556335,
0.21580564975738525,
-0.3815123736858368,
0.16130363941192627,
0.09729035198688507,
-0.17909719049930573,
0.1301809549331665,
0.20571066439151764,
0.26722440123558044,
0.03889376297593117,
0.21779796481132507,
0.08330051600933075,
0.09176411479711533,
-0.012623462826013565,
0.0895327553153038,
0.3389059007167816,
-0.17259912192821503,
-0.15635809302330017,
-0.031914375722408295,
-0.3260665833950043,
-0.1701604276895523,
0.3311549127101898,
-0.281726598739624,
-0.37849733233451843,
-0.0004055723547935486,
-0.1697893738746643,
-0.022907134145498276,
0.2918815314769745,
0.21621614694595337,
0.26180577278137207,
-0.18836484849452972,
0.09763739258050919,
-0.37572917342185974,
-0.38884952664375305,
-0.17205318808555603,
0.11144444346427917,
0.12186592817306519,
0.32951587438583374,
0.5941364169120789,
-0.015419472008943558,
0.12339949607849121,
-0.16696874797344208,
-0.10629872977733612,
0.07040082663297653,
-0.04349648207426071,
0.1907854974269867,
0.007904283702373505,
0.20608124136924744,
-0.05160771310329437,
-0.2771475911140442,
0.1803608536720276,
-0.08720983564853668,
-0.26096197962760925,
-0.013424336910247803,
-0.14766709506511688,
-0.07188998907804489,
-0.06799030303955078,
-0.5194203853607178,
-0.4250136911869049,
-0.21480892598628998,
0.13278520107269287,
0.31000620126724243,
0.1828397810459137,
-0.08413470536470413,
0.1412302702665329,
-0.018151964992284775,
-0.001971425022929907,
-0.061551548540592194,
0.006666373927146196,
0.019467342644929886,
0.20242635905742645,
-0.2755374312400818,
-0.462999552488327,
0.017261158674955368,
-0.23236022889614105,
0.1478993445634842,
0.15142318606376648,
-0.35619431734085083,
-0.08580358326435089,
-0.10027875751256943,
0.2035037726163864,
0.04860644042491913,
0.2767557203769684,
0.326911985874176,
0.1419505774974823,
0.03590037673711777,
-0.17444682121276855,
-0.3353274166584015,
0.10888253152370453,
-0.19084954261779785,
0.5968195199966431,
-0.005299583077430725,
0.19314435124397278,
-0.39186495542526245,
0.8372853398323059,
0.46796277165412903,
-0.1322750300168991,
0.2019907683134079,
0.0645502507686615,
0.2530496418476105,
-0.033325403928756714,
-0.21555735170841217,
0.5519692897796631,
0.18658702075481415,
0.13398337364196777,
-0.008695408701896667,
0.1465129554271698,
-0.20783646404743195,
-0.2886022925376892,
0.17195285856723785,
-0.7883491516113281,
-0.10101382434368134,
-0.11523383855819702,
-0.1320887804031372,
0.27299538254737854,
0.08846360445022583,
-0.07578132301568985,
-0.09280437231063843,
-0.15192142128944397,
0.021183546632528305,
0.019013457000255585,
0.12560391426086426,
-0.04084696248173714,
-0.2778854966163635,
-0.1165958046913147,
-0.16610482335090637,
0.16098786890506744,
-0.10690545290708542,
0.21666905283927917,
-0.08798559755086899,
0.005394846200942993,
0.07568126916885376,
-0.012186102569103241,
0.6508089900016785,
-0.4458160996437073,
-0.25025373697280884,
0.14289097487926483,
0.4055553674697876,
-0.381419837474823,
0.10120855271816254,
-0.14556923508644104,
0.15856702625751495,
0.10666915774345398,
0.2751346528530121,
-0.42586827278137207,
-0.03857620432972908,
0.14013972878456116,
0.3697841465473175,
-0.16054511070251465,
-0.17719030380249023,
-0.09752902388572693,
-0.2522130608558655,
-0.22503802180290222,
-0.34249910712242126,
-0.6088350415229797,
0.1231251135468483,
0.042000912129879,
0.2845873236656189,
0.029956668615341187,
-0.03809300810098648,
0.061632875353097916,
0.13067714869976044,
0.4030521810054779,
-0.14724737405776978,
0.25743263959884644,
0.02969110757112503,
0.18816398084163666,
0.21629543602466583,
0.3045300543308258,
-0.08672088384628296,
-0.07208526134490967,
0.04615287855267525,
-0.110990509390831,
0.3767860531806946,
0.2177402377128601,
-0.0714941993355751,
-0.2043236494064331,
-0.08840573579072952,
0.08222205936908722,
0.04220857471227646,
0.013413265347480774,
0.16632670164108276,
-0.215195432305336,
-0.2809145450592041,
-0.3256165087223053,
0.4102793037891388,
0.16306349635124207,
-0.07944722473621368,
0.199806809425354,
-0.12936556339263916,
-0.014904586598277092,
0.5705704092979431,
0.18078388273715973,
1.1641913652420044,
0.01621534675359726,
-0.14892998337745667,
0.3272438049316406,
-0.31858474016189575,
0.7361057996749878,
-0.9293336868286133,
0.037928998470306396,
-0.42587488889694214,
0.21471381187438965,
0.12358249723911285,
-0.22807565331459045,
0.2144615352153778,
0.08307522535324097,
-0.12612061202526093,
0.18802934885025024,
0.13530780375003815,
0.10120964050292969,
-0.1147562563419342,
0.649327278137207,
-0.03982263803482056,
-0.4592413306236267,
-0.5051494240760803,
0.10287651419639587,
-0.28912442922592163,
0.07602392137050629,
-0.1944548487663269,
-0.19792962074279785,
-0.33222225308418274,
-0.20972840487957,
-0.18911540508270264,
0.14024776220321655,
-0.12208155542612076,
0.10482944548130035,
0.08215424418449402,
-0.5340116620063782,
0.11893923580646515,
0.18710121512413025,
0.4441750645637512,
0.06934024393558502,
-0.21727067232131958,
0.3504203259944916,
0.03560403734445572,
0.012237167917191982,
0.14341667294502258,
0.1561439037322998,
0.19425007700920105,
-0.22305646538734436,
0.018499799072742462,
0.10972484946250916,
-0.3166898190975189,
0.19069091975688934,
-0.25798261165618896,
-0.2314598709344864,
0.2656134366989136,
-0.16805867850780487,
-0.014196733012795448,
0.1864641308784485,
-0.17958645522594452,
-0.1864558458328247,
0.17892594635486603,
0.05223408713936806,
0.023072348907589912,
0.22072526812553406,
-0.008088860660791397,
-0.025474436581134796,
-0.25910359621047974,
0.18501943349838257,
0.2551269233226776,
-0.4933573007583618,
0.2920074164867401,
0.014366377145051956,
-0.1413038969039917,
-0.33681872487068176,
0.3393171429634094,
-0.021715043112635612,
-0.5498059391975403,
-0.04711032658815384,
0.15496312081813812,
-0.17323985695838928,
-0.12250447273254395,
-0.06462526321411133,
0.12887272238731384,
0.1655779629945755,
0.1828320026397705,
-0.3124123811721802,
-0.381477028131485,
0.26857876777648926,
-0.14783219993114471,
0.14925390481948853,
-0.31258875131607056,
-0.05335037782788277,
0.13076886534690857,
0.20593950152397156,
-0.30759644508361816,
-0.2742980420589447,
-0.08506651222705841,
0.11118785291910172,
0.06901708245277405,
-0.00015445426106452942,
-0.13109371066093445,
-0.3503122925758362,
0.107638418674469,
-0.10608993470668793,
-0.33472758531570435,
-0.1759786605834961,
0.028970077633857727,
0.15211088955402374,
0.08702420443296432,
-0.14029879868030548,
-0.13828937709331512,
-0.08909913152456284,
-0.020552553236484528,
-0.17375284433364868,
-0.08081331849098206,
-0.2732883393764496,
-0.08856424689292908,
0.017412561923265457,
0.1678900569677353,
0.11533810198307037,
-0.2374776154756546,
-0.026261746883392334,
-0.08536593616008759,
0.24760763347148895,
0.08343133330345154,
-0.10693448781967163,
0.12690994143486023,
-0.029701586812734604,
-0.21374273300170898,
-0.11611031740903854,
0.009991452097892761,
0.1641685664653778,
0.18888720870018005,
-0.178989440202713,
0.03285066410899162,
0.06281179189682007,
0.335751473903656,
0.2211787849664688,
-0.28550559282302856,
-0.003906911239027977,
0.25878340005874634,
0.1599663943052292,
-0.30511778593063354,
0.13550978899002075,
0.568817675113678,
0.11621707677841187,
-0.1926427036523819,
0.15132057666778564,
0.12911638617515564,
-0.05867680162191391,
-0.05562007427215576,
0.1372755467891693,
0.5175214409828186,
-0.17220857739448547,
0.31152230501174927,
0.21806177496910095,
0.03187604621052742,
0.011281643062829971,
0.0352402925491333,
0.172683447599411,
0.0470053032040596,
0.6041732430458069,
-0.0963328555226326,
0.5378550291061401,
0.276620090007782,
0.1715884506702423,
-0.017958730459213257,
-0.2979871928691864,
0.05162368714809418,
0.08350924402475357,
0.051403071731328964,
-0.06470935791730881,
0.055691301822662354,
0.47501543164253235,
0.05232827365398407,
-0.2881975471973419,
-0.19496777653694153,
0.08890983462333679,
-0.09535134583711624,
0.40371572971343994,
-0.17887188494205475,
-0.21176669001579285,
-0.09866850078105927,
-0.17450645565986633,
0.0179089717566967,
-0.19831903278827667,
0.3648063838481903,
0.1855042278766632,
-0.12409505248069763,
-0.1778622418642044,
0.4243934750556946,
0.07729355990886688,
0.22278615832328796,
-0.028725625947117805,
0.24809938669204712,
0.014133907854557037,
-0.09708833694458008,
-0.1475277543067932,
0.29298609495162964,
0.3658088743686676,
0.4779541790485382,
-0.18984167277812958,
0.062161702662706375,
0.2308993637561798,
-0.08863270282745361,
0.07799789309501648,
0.414131760597229,
0.3960829973220825,
0.17100511491298676,
0.11786751449108124,
0.13629978895187378,
-0.13131758570671082,
-0.040767837315797806,
0.28025609254837036,
0.0961473137140274,
-0.03166037052869797,
0.187777578830719,
-0.23657840490341187,
-0.42429959774017334,
-0.08513570576906204,
-0.041472770273685455,
-0.32122042775154114,
-0.10037141293287277,
0.04865606129169464,
0.24688419699668884,
0.031216781586408615,
-0.2885245084762573,
0.06209731101989746,
-0.18069984018802643,
0.554512083530426,
0.15999969840049744,
0.09341858327388763,
-0.4730510115623474,
-0.3395543098449707,
-0.6459327936172485,
-0.11856492608785629,
-0.25529032945632935,
0.018762385472655296,
-0.055257149040699005,
0.01705189235508442,
0.0001140013337135315,
0.29677748680114746,
0.11373896151781082,
0.5873934626579285,
-0.04560472443699837,
-0.032373152673244476,
-0.5817578434944153,
-0.05945846065878868,
0.06665178388357162,
0.031034115701913834,
-0.1627265065908432,
-0.05094202607870102,
0.11582432687282562,
-0.09944644570350647,
0.0204729363322258,
-0.0383136048913002,
-0.38487139344215393,
0.35408082604408264,
0.2101808339357376,
0.36708831787109375,
0.23555569350719452,
0.3461517095565796,
-0.07352414727210999,
-0.07129164785146713,
-0.09967820346355438,
-0.24405761063098907,
0.11772118508815765,
0.27832910418510437,
0.042776450514793396,
0.19066448509693146,
-0.04081391543149948,
0.14757201075553894,
-0.46160393953323364,
-0.003580986987799406,
-0.15046703815460205,
0.2950778007507324,
-0.19723382592201233,
0.07024380564689636,
-0.05665694922208786,
0.21863384544849396,
0.15412071347236633,
-0.11128997057676315,
-0.11312896013259888,
0.2915026843547821,
-0.40342098474502563,
-0.1097395271062851,
0.46483540534973145,
-0.11772208660840988,
-0.04574139788746834,
0.2879970371723175,
0.29584264755249023,
-0.17531463503837585,
-0.05715788155794144,
-0.5936278700828552,
-0.015809088945388794,
0.35344451665878296,
-0.27116233110427856,
-0.014872681349515915,
0.07990382611751556,
-0.1544131636619568,
-0.17258167266845703,
0.03434653952717781,
0.12759742140769958,
-0.15528568625450134,
-0.13535253703594208,
0.1812078058719635,
0.06277874112129211
] |
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 <[email protected]> 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 <[email protected]> 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.07914237678050995,
-0.005442716181278229,
0.043364811688661575,
0.030961774289608,
0.35946136713027954,
-0.11144109070301056,
-0.00664747878909111,
0.11713941395282745,
0.06864368915557861,
0.13081631064414978,
0.1577528864145279,
0.0367620512843132,
-0.18263664841651917,
0.12470684200525284,
0.4915659427642822,
-0.09635975956916809,
0.029152758419513702,
0.12171077728271484,
-0.08228854835033417,
0.09331592917442322,
-0.11592120677232742,
-0.21491017937660217,
-0.06493323296308517,
-0.16433240473270416,
-0.2909957468509674,
-0.12106416374444962,
-0.12079538404941559,
0.07994701713323593,
0.03114849142730236,
-0.20018194615840912,
0.3986591100692749,
0.191817507147789,
0.13692866265773773,
-0.013521365821361542,
-0.00011791341239586473,
-0.0179082490503788,
0.34973961114883423,
-0.29587969183921814,
-0.3403172492980957,
-0.20648370683193207,
-0.3478740155696869,
-0.3250797688961029,
0.13562612235546112,
-0.028909221291542053,
-0.31640392541885376,
-0.11959774047136307,
0.262653648853302,
-0.44090864062309265,
0.44504135847091675,
0.1855325996875763,
0.11022977530956268,
-0.013128839433193207,
0.13428765535354614,
0.39620551466941833,
0.052561741322278976,
-0.10166206955909729,
-0.19995242357254028,
-0.11106301844120026,
0.08364266157150269,
0.008216619491577148,
0.04631718620657921,
0.24449071288108826,
-0.10638478398323059,
-0.031243350356817245,
0.6360675692558289,
-0.050643645226955414,
-0.46495330333709717,
-0.21413034200668335,
-0.08441781252622604,
0.1957266628742218,
0.6592327356338501,
-0.2575162649154663,
-0.5362499952316284,
-0.37429553270339966,
0.021673031151294708,
-0.4770925045013428,
0.18693764507770538,
0.1748293787240982,
-0.05896995961666107,
0.2702479362487793,
-0.47975674271583557,
-0.30379870533943176,
0.04408285766839981,
0.19161218404769897,
0.2693201005458832,
0.025283269584178925,
-0.020784083753824234,
0.16677939891815186,
0.016176924109458923,
-0.18721161782741547,
0.17194552719593048,
-0.0714348703622818,
-0.12037192285060883,
0.21916602551937103,
-0.30668333172798157,
0.11906775832176208,
0.015552405267953873,
0.2072257399559021,
0.12553352117538452,
0.14930793642997742,
0.5070605278015137,
0.23521244525909424,
0.12814642488956451,
0.07647783309221268,
-0.0187278650701046,
0.4619314968585968,
0.00786251574754715,
-0.06266282498836517,
0.1022460013628006,
-0.1494990438222885,
-0.2285332828760147,
-0.17560485005378723,
0.17214421927928925,
0.23493626713752747,
0.283981591463089,
0.170058935880661,
0.08650258183479309,
-0.38027143478393555,
0.1799585223197937,
-0.10818589478731155,
-0.2296741008758545,
-0.2214452177286148,
0.12307441979646683,
0.3695174753665924,
-0.12524665892124176,
0.2958107590675354,
-0.2560267150402069,
0.03216133639216423,
-0.10353659838438034,
-0.366844117641449,
-0.1925477832555771,
0.008249551989138126,
-0.0521770678460598,
0.39534837007522583,
0.19421441853046417,
-0.48760056495666504,
0.13449960947036743,
-0.04389972612261772,
-0.07593241333961487,
-0.012757617980241776,
0.284900963306427,
-0.17949537932872772,
0.2617851793766022,
0.18588362634181976,
-0.005322430282831192,
0.012310059741139412,
-0.05145542696118355,
-0.0501554049551487,
-0.2150115966796875,
0.21341517567634583,
-0.14832669496536255,
-0.7214867472648621,
0.27373769879341125,
0.05655789002776146,
-0.4841586947441101,
-0.15954428911209106,
-0.3712064325809479,
0.5935308933258057,
0.2733151614665985,
-0.015645675361156464,
0.11794362962245941,
0.0013979338109493256,
-0.1824929267168045,
-0.3100675642490387,
0.23777619004249573,
0.2972566485404968,
-0.0023032575845718384,
-0.13328640162944794,
0.16392086446285248,
0.08473488688468933,
0.27122971415519714,
0.22017517685890198,
-0.3504529297351837,
0.0753713920712471,
0.06945087015628815,
-0.17820537090301514,
0.6408800482749939,
-0.1535961627960205,
-0.538737416267395,
-0.019220273941755295,
0.27348315715789795,
0.2440689653158188,
0.1072869673371315,
0.3159651756286621,
0.0151735320687294,
-0.06073590740561485,
-0.06618322432041168,
0.41880160570144653,
-0.16444118320941925,
-0.013538431376218796,
-0.31206315755844116,
-0.42851704359054565,
0.5561184883117676,
0.05918439105153084,
0.011228922754526138,
0.06355313211679459,
0.05418834835290909,
0.553482711315155,
-0.14239484071731567,
-0.15680307149887085,
0.05727571249008179,
0.4245162606239319,
-0.07280988991260529,
-0.13832196593284607,
-0.07481355220079422,
-0.19537672400474548,
-0.7898907661437988,
0.14331892132759094,
-0.1094546765089035,
-0.09454251825809479,
-0.0670006275177002,
-0.23575694859027863,
0.44084665179252625,
-0.15684479475021362,
-0.026869285851716995,
-0.12559549510478973,
-0.012603990733623505,
0.029776252806186676,
0.5305261015892029,
-0.131966233253479,
-0.4664222002029419,
0.5715908408164978,
0.11201609671115875,
0.14406408369541168,
-0.3560895025730133,
-0.12068648636341095,
0.06727873533964157,
-0.3497927784919739,
0.10397648811340332,
0.27000388503074646,
0.160133957862854,
-0.17134875059127808,
-0.16263282299041748,
0.19479134678840637,
-0.24081042408943176,
0.3363528847694397,
-0.12400458008050919,
0.38261252641677856,
0.08670023828744888,
-0.1623905748128891,
0.048039115965366364,
0.11885979771614075,
-0.035573191940784454,
0.051750630140304565,
-0.006992734968662262,
0.24905920028686523,
0.07209385931491852,
0.0005584433674812317,
0.09506215155124664,
-0.24667954444885254,
0.04464518278837204,
-0.04819916933774948,
-0.08359325677156448,
0.0030470341444015503,
0.4813483655452728,
-0.1932510882616043,
0.4335247576236725,
0.38453537225723267,
-0.25309377908706665,
0.35961484909057617,
0.6983609795570374,
0.04573354497551918,
0.217819482088089,
0.14189475774765015,
0.08751451969146729,
-0.5609425902366638,
0.25648319721221924,
-0.19575972855091095,
0.1106264591217041,
0.17822539806365967,
0.3006596565246582,
-0.07450828701257706,
0.036293283104896545,
-0.1051022857427597,
0.17545965313911438,
-0.10841317474842072,
0.025779353454709053,
-0.2941848933696747,
0.334144651889801,
0.03560377657413483,
-0.08226410299539566,
0.157663032412529,
0.06330688297748566,
0.2589778006076813,
-0.09235988557338715,
-0.056817539036273956,
-0.3436986804008484,
-0.39305350184440613,
0.012711714021861553,
-0.15657098591327667,
-0.4962465763092041,
-0.09806637465953827,
-0.0486268475651741,
0.18844333291053772,
0.05837162956595421,
0.04018186777830124,
-0.3619213402271271,
0.2649354636669159,
-0.2749910354614258,
-0.38411787152290344,
-0.38286328315734863,
-0.16505460441112518,
-0.3346538245677948,
-0.05459962040185928,
0.1334371268749237,
-0.3610692322254181,
0.26185405254364014,
0.16983525454998016,
0.04113404452800751,
-0.10506632179021835,
-0.2228541374206543,
-0.03113161027431488,
0.12556588649749756,
0.220182865858078,
-0.1370447725057602,
0.12044402956962585,
-0.06604123115539551,
-0.08604493737220764,
0.22798624634742737,
-0.37522032856941223,
-0.10635243356227875,
-0.04953359439969063,
-0.0477900430560112,
0.24643202126026154,
-0.07402755320072174,
-0.17658600211143494,
-0.444784015417099,
-0.2995259463787079,
0.2155090570449829,
0.024121399968862534,
0.019564099609851837,
0.0071490732952952385,
-0.2222801297903061,
-0.016538191586732864,
0.030846163630485535,
0.057509198784828186,
-0.23352491855621338,
-0.5710595846176147,
0.30070778727531433,
0.12042950838804245,
-0.330660879611969,
-0.17249290645122528,
-0.09107521921396255,
-0.049776341766119,
0.3589239716529846,
-0.46841996908187866,
-0.176301047205925,
-0.16308149695396423,
0.05981726571917534,
0.13351589441299438,
-0.3932553231716156,
0.39179620146751404,
-0.0955047532916069,
0.024695752188563347,
0.0015862621366977692,
-0.34342193603515625,
-0.030146770179271698,
0.06869454681873322,
0.4674534201622009,
0.3109150528907776,
0.10023220628499985,
0.3690010607242584,
0.6891121864318848,
0.1336452066898346,
0.02585585042834282,
0.4306871294975281,
0.2653577923774719,
0.30635562539100647,
-0.1425512731075287,
-0.22825497388839722,
0.3457770049571991,
-0.120014488697052,
-0.028258811682462692,
-0.03420853614807129,
0.28292423486709595,
-0.1994738131761551,
-0.2714643180370331,
-0.01960143819451332,
-0.2883557975292206,
-0.18584315478801727,
0.2942030429840088,
-0.33000221848487854,
0.1574179232120514,
0.31393179297447205,
-0.017791781574487686,
-0.15965445339679718,
-0.5740089416503906,
-0.03127102926373482,
0.24707235395908356,
0.27900806069374084,
0.45401114225387573,
-0.5400012731552124,
-0.14974896609783173,
-0.619351327419281,
0.5108367800712585,
0.10881705582141876,
0.27136677503585815,
-0.28662171959877014,
0.03023315966129303,
0.010311506688594818,
-0.3335000276565552,
0.16138678789138794,
-0.07279340922832489,
-0.2789880037307739,
-0.10651390254497528,
-0.13539135456085205,
-0.1662476807832718,
0.04318718984723091,
0.20154936611652374,
0.3970448672771454,
0.005510522052645683,
0.05905625969171524,
-0.28872525691986084,
-0.19801467657089233,
-0.1678367555141449,
0.09473228454589844,
-0.2160208821296692,
0.04998467490077019,
-0.15663981437683105,
-0.29465654492378235,
-0.17534057796001434,
0.026625104248523712,
-0.34784558415412903,
0.04475042596459389,
0.057437531650066376,
0.08069117367267609,
-0.18452861905097961,
0.2739919126033783,
0.08410939574241638,
-0.17476586997509003,
0.19753322005271912,
0.09909236431121826,
0.13539539277553558,
0.27456194162368774,
0.13153426349163055,
-0.1907169371843338,
0.43766558170318604,
0.0030058789998292923,
-0.11529776453971863,
-0.27829495072364807,
0.2551511526107788,
0.24791079759597778,
0.11653891205787659,
-0.18419413268566132,
0.2385433316230774,
0.3922939598560333,
-0.1852266639471054,
-0.3070903420448303,
0.21622809767723083,
-0.17511476576328278,
0.11185679584741592,
-0.29029133915901184,
-0.7748066186904907,
0.3710678815841675,
0.17726512253284454,
-0.006860397756099701,
0.4467773139476776,
-0.33811068534851074,
-0.22206884622573853,
0.21099281311035156,
0.26043784618377686,
1.0849559307098389,
-0.24216030538082123,
0.3112490177154541,
-0.004806004464626312,
0.019626878201961517,
0.6438978314399719,
-0.24340182542800903,
0.24111026525497437,
-0.17574664950370789,
-0.24397040903568268,
-0.02549796737730503,
-0.14190605282783508,
0.0019549354910850525,
-0.03492273390293121,
-0.08018288016319275,
0.5324955582618713,
0.30901026725769043,
0.09175076335668564,
0.040631987154483795,
0.22571060061454773,
-0.12184745818376541,
-0.2654397785663605,
-0.6026579141616821,
0.13119596242904663,
-0.5431950092315674,
0.1662696748971939,
-0.08905282616615295,
-0.020831439644098282,
0.19790172576904297,
-0.20854803919792175,
-0.10693579912185669,
-0.009903784841299057,
-0.5662984251976013,
-0.022929050028324127,
-0.027667950838804245,
-0.339478075504303,
-0.44113582372665405,
0.18826010823249817,
0.03724326193332672,
-0.17790475487709045,
-0.073292575776577,
0.003506924957036972,
-0.05589815229177475,
0.12711532413959503,
0.09731700271368027,
0.12756431102752686,
0.4872748851776123,
-0.03711540997028351,
0.03527184575796127,
0.022714093327522278,
-0.07152436673641205,
-0.5310296416282654,
-0.07684414833784103,
-0.14203332364559174,
0.08754982799291611,
0.05535248667001724,
-0.12871550023555756,
0.25094878673553467,
-0.020751288160681725,
-0.03142919763922691,
0.056588396430015564,
0.3216860294342041,
-0.000859889667481184,
0.07045704126358032,
0.051184702664613724,
-0.1460159420967102,
-0.01673014461994171,
0.3425774574279785,
0.030094390735030174,
-0.20301324129104614,
0.3337710201740265,
-0.10361920297145844,
-0.15353399515151978,
-0.01647830568253994,
0.05576962232589722,
-0.027833297848701477,
0.0011400878429412842,
-0.07712261378765106,
-0.21091558039188385,
-0.013679563999176025,
-0.13931186497211456,
0.16724391281604767,
0.11110285669565201,
-0.22541359066963196,
-0.10484597831964493,
-0.22110117971897125,
-0.6179191470146179,
0.339114785194397,
0.1685274839401245,
0.10299642384052277,
0.3037686347961426,
-0.09360961616039276,
0.037921346724033356,
0.3011043071746826,
-0.2404962182044983,
-0.22884789109230042,
-0.14205029606819153,
0.20127256214618683,
0.22919875383377075,
-0.1686752438545227,
0.3836628496646881,
-0.11696542799472809,
-0.09063087403774261,
-0.029036376625299454,
-0.36703184247016907,
-0.20137488842010498,
-0.060591328889131546,
0.15169543027877808,
0.1776125729084015,
-0.3068908154964447,
-0.4292009770870209,
-0.19459284842014313,
0.31830987334251404,
-0.26834535598754883,
0.03359290957450867,
0.21062466502189636,
0.0352400541305542,
0.14168579876422882,
-0.13283485174179077,
0.07792680710554123,
-0.14012238383293152,
0.09890776127576828,
0.11960585415363312,
0.1859520673751831,
-0.08012954145669937,
0.21558678150177002,
-0.008647691458463669,
0.11036880314350128,
0.006618910003453493,
-0.12068630009889603,
0.28809618949890137,
0.18178951740264893,
0.15284490585327148,
-0.345980167388916,
0.09091010689735413,
-0.025872355327010155,
0.14171522855758667,
-0.04276628792285919,
-0.13296017050743103,
0.2724703252315521,
0.27163881063461304,
0.04208485782146454,
-0.025203892961144447,
0.07081927359104156,
0.19470222294330597,
0.16547012329101562,
-0.10979200899600983,
0.21654608845710754,
0.1546691507101059,
0.17390146851539612,
0.08193142712116241,
-0.0681850016117096,
0.6233012676239014,
-0.4634338617324829,
-0.06102961674332619,
-0.34580197930336,
-0.011176422238349915,
-0.17960207164287567,
0.3205384910106659,
0.3976682424545288,
0.029405318200588226,
0.4939379096031189,
0.15479663014411926,
0.28781411051750183,
0.31030574440956116,
0.1773989051580429,
-0.11196935921907425,
-0.24882261455059052,
-0.0878346711397171,
0.5038479566574097,
0.1372716724872589,
0.3859371244907379,
0.0950913354754448,
0.3510250747203827,
0.11139757186174393,
-0.4690273106098175,
0.3331848084926605,
0.20703904330730438,
-0.04709461331367493,
-0.2459060400724411,
0.007309418171644211,
0.1810508668422699,
0.07215830683708191,
0.11409445106983185,
0.11877736449241638,
-0.1582903116941452,
0.39631539583206177,
0.19786463677883148,
0.2835298478603363,
-0.29037171602249146,
0.15383443236351013,
0.411033570766449,
0.23815438151359558,
-0.05646995082497597,
0.6531964540481567,
0.022359579801559448,
-0.10396485030651093,
0.10264497995376587,
0.2962404787540436,
0.2218843251466751,
0.02708088979125023,
-0.2486170530319214,
0.3493119478225708,
0.056806232780218124,
-0.019457489252090454,
-0.4021541476249695,
0.3465339243412018,
0.17067736387252808,
-0.011762067675590515,
0.19785241782665253,
0.0572635754942894,
-0.005411618854850531,
0.42231249809265137,
-0.04545026645064354,
0.10036098957061768,
-0.17071391642093658,
0.3791217803955078,
0.2329503446817398,
-0.1478308141231537,
0.00688299722969532,
0.21157562732696533,
-0.19290900230407715,
0.08956336975097656,
0.32853540778160095,
-0.01565461978316307,
0.2073536515235901,
-0.15555214881896973,
0.060451336205005646,
0.21840737760066986,
0.42919325828552246,
0.24906885623931885,
0.3821173906326294,
-0.16179023683071136,
0.15744735300540924,
-0.5565521717071533,
-0.02107825130224228,
0.008830904960632324,
0.18619759380817413,
0.0010193679481744766,
0.2689853012561798,
0.08288648724555969,
0.2567797303199768,
-0.06063567101955414,
0.16989637911319733,
0.26542478799819946,
-0.10538884997367859,
-0.29545044898986816,
-0.13355043530464172,
-0.00177716463804245,
0.2544236481189728,
0.05943281203508377,
-0.24198976159095764,
0.24423541128635406,
0.014311804436147213,
-0.08045055717229843,
-0.26807618141174316,
-0.16146254539489746,
0.11662417650222778,
0.2480134665966034,
0.24337509274482727,
0.3024021089076996,
0.20822632312774658,
0.0650368332862854,
0.03961124271154404,
-0.2174953818321228,
-0.13979114592075348,
-0.24298085272312164,
0.05141870677471161,
-0.28826847672462463,
0.08406241983175278,
-0.4057178795337677,
0.08797107636928558,
-0.32549700140953064,
0.13946087658405304,
-0.06825793534517288,
-0.17873451113700867,
-0.09084232896566391,
-0.07741803675889969,
-0.06236899644136429,
-0.02140285260975361,
-0.06983818858861923,
0.5901697874069214,
-0.062192611396312714,
-0.04108910262584686,
-0.3418334722518921,
0.07700919359922409,
0.43598800897598267,
-0.449108749628067,
0.09844686090946198,
0.05085672810673714,
0.09313148260116577,
0.6444483399391174,
-0.225703164935112,
-0.6652415990829468,
0.011179804801940918,
0.3136853873729706,
-0.26413869857788086,
-0.03762846440076828,
0.1506175994873047,
-0.0427323617041111,
0.1526155173778534,
-0.15119342505931854,
0.14686182141304016,
-0.08753111958503723,
-0.196292445063591,
0.14621956646442413,
-0.05820715054869652
] |
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 <[email protected]> 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 <[email protected]> wrote:
> this also happened to me with nlp.load_datasets('glue', 'mnli')
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/nlp/issues/245#issuecomment-640083980>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYDIHMVQD2EDX2HTZUXG5DRVJTWRANCNFSM4NVG3AKQ>
> .
>
| [
0.3236769437789917,
-0.3612537682056427,
-0.09375040233135223,
0.17786206305027008,
-0.0011136941611766815,
0.10074936598539352,
0.33618444204330444,
0.449954628944397,
0.5752965807914734,
0.014867007732391357,
-0.12565448880195618,
0.13467815518379211,
-0.14737413823604584,
0.2773216664791107,
0.33337998390197754,
-0.053047679364681244,
0.10838038474321365,
0.31975048780441284,
-0.1676013320684433,
-0.2568300664424896,
-0.03263837471604347,
0.3825787305831909,
-0.14461302757263184,
0.19946548342704773,
-0.28053390979766846,
0.24851638078689575,
0.0017216037958860397,
-0.09634100645780563,
-0.03161931782960892,
-0.5869408249855042,
0.20443370938301086,
0.20650121569633484,
0.2146633416414261,
0.04102370887994766,
-0.0001139118685387075,
0.043877013027668,
0.19964449107646942,
-0.1350758671760559,
-0.2542114555835724,
-0.12165839970111847,
-0.10567601770162582,
-0.2028762251138687,
0.045861415565013885,
-0.10591477155685425,
-0.3367512822151184,
0.15860413014888763,
0.046821027994155884,
0.00708356499671936,
0.16406258940696716,
0.15194346010684967,
0.17462968826293945,
-0.0413375198841095,
0.003840893507003784,
0.00024254154413938522,
0.09865263849496841,
-0.35794180631637573,
0.00702427513897419,
0.04189849644899368,
-0.04498925805091858,
-0.19236794114112854,
0.2850553095340729,
0.4425397515296936,
0.1635226458311081,
0.3538922667503357,
0.08915652334690094,
-0.10861755907535553,
0.29010337591171265,
-0.2414475679397583,
0.05704464390873909,
0.1071271002292633,
0.157833069562912,
-0.1571207344532013,
-0.24079112708568573,
-0.11643816530704498,
-0.05656162649393082,
0.10065722465515137,
-0.005957223474979401,
0.027623260393738747,
0.21763674914836884,
0.2936670482158661,
-0.01936729997396469,
-0.09277702867984772,
-0.16660144925117493,
0.08752448111772537,
0.04443838447332382,
0.5951554775238037,
0.05255750194191933,
0.13232943415641785,
0.3667910099029541,
0.08864639699459076,
-0.42316076159477234,
0.2890285849571228,
-0.2783510684967041,
0.1741923838853836,
-0.5723796486854553,
-0.1834569126367569,
0.19603922963142395,
-0.002869516611099243,
-0.21506619453430176,
0.10167303681373596,
0.025421861559152603,
0.02758380025625229,
0.3623884618282318,
-0.051707275211811066,
-0.018416937440633774,
0.32787561416625977,
0.532133162021637,
0.35786107182502747,
0.027929630130529404,
-0.1615816354751587,
0.0433751605451107,
0.16716930270195007,
-0.32545211911201477,
-0.2536091208457947,
0.05579042062163353,
0.20358982682228088,
0.0716068223118782,
-0.35348987579345703,
-0.3213394284248352,
-0.06896516680717468,
-0.39757734537124634,
0.11827552318572998,
0.10451039671897888,
0.013810388743877411,
0.2748115062713623,
0.028539732098579407,
-0.1252363920211792,
-0.005990680307149887,
-0.11779429763555527,
-0.38688409328460693,
-0.2563752830028534,
0.13177338242530823,
-0.17771457135677338,
0.01841171272099018,
0.40443575382232666,
0.1601777970790863,
0.16646388173103333,
-0.292144775390625,
-0.36222773790359497,
-0.04228205606341362,
0.1334695816040039,
-0.04349376633763313,
0.18527773022651672,
0.34856948256492615,
-0.28408005833625793,
0.37847673892974854,
0.24288885295391083,
-0.5122995376586914,
-0.14108571410179138,
-0.2726309299468994,
-0.02923937886953354,
-0.07268904894590378,
0.06737194955348969,
0.14270082116127014,
-0.30557703971862793,
-0.06546884030103683,
-0.0006731376051902771,
0.3467409312725067,
-0.04100034385919571,
0.12588419020175934,
0.04871629923582077,
-0.23691906034946442,
0.0019329674541950226,
0.25379282236099243,
0.22849947214126587,
0.24465662240982056,
-0.45920270681381226,
-0.09783828258514404,
0.3145688772201538,
-0.01792481169104576,
-0.1690031886100769,
0.1724623739719391,
0.21617625653743744,
0.14936606585979462,
-0.06026601791381836,
0.20516778528690338,
0.3542279303073883,
-0.30272582173347473,
-0.3342142403125763,
0.10459005832672119,
-0.28814971446990967,
-0.4994364380836487,
0.032340943813323975,
0.060902632772922516,
-0.0006797779351472855,
0.10404478758573532,
-0.042171187698841095,
-0.34075331687927246,
0.12075474113225937,
0.0356195867061615,
-0.5237576961517334,
0.2544217109680176,
0.5446699261665344,
-0.016373788937926292,
-0.025428134948015213,
-0.12888607382774353,
-0.34309443831443787,
0.19785559177398682,
0.14037716388702393,
0.05447147414088249,
0.036712005734443665,
0.15441614389419556,
0.17454217374324799,
-0.12684160470962524,
0.08580406755208969,
-0.09543530642986298,
-0.17722508311271667,
0.19450244307518005,
0.013030819594860077,
0.3939722776412964,
0.5494515299797058,
0.06488391757011414,
-0.399976521730423,
-0.20422187447547913,
0.03571343421936035,
-0.2271704375743866,
0.17650339007377625,
0.4278757572174072,
0.39454805850982666,
-0.04702496901154518,
0.0751006007194519,
-0.011027254164218903,
0.28155070543289185,
0.009615916758775711,
-0.21090997755527496,
0.23462529480457306,
0.08188188821077347,
-0.24157339334487915,
0.07868677377700806,
0.29264771938323975,
0.2893488109111786,
-0.09177561849355698,
0.032261356711387634,
0.22111710906028748,
-0.20145615935325623,
-0.05460284650325775,
0.08865448087453842,
0.29562658071517944,
-0.08880233764648438,
-0.4509788751602173,
-0.25709447264671326,
0.5002955794334412,
-0.0395481139421463,
-0.020869016647338867,
-0.07503228634595871,
0.07552343606948853,
-0.05294446274638176,
0.1584230214357376,
-0.1140921413898468,
0.15477806329727173,
-0.03772629424929619,
-0.05912952870130539,
-0.467159241437912,
-0.05292888730764389,
0.22411859035491943,
-0.43858057260513306,
-0.007665123790502548,
0.13175445795059204,
-0.046288371086120605,
0.3177294135093689,
0.22819554805755615,
0.1615164428949356,
0.09794753789901733,
-0.20214873552322388,
-0.20776015520095825,
-0.09145282953977585,
0.2668095529079437,
0.29076874256134033,
-0.01921635866165161,
0.19565483927726746,
0.056212928146123886,
-0.23100131750106812,
-0.5293565392494202,
-0.03980351239442825,
0.013005688786506653,
-0.09802074730396271,
-0.2299809455871582,
-0.13324183225631714,
0.3371712267398834,
-0.3350442945957184,
-0.1945854127407074,
0.2070709466934204,
-0.06920459121465683,
0.37862250208854675,
-0.6263083219528198,
-0.06222347915172577,
-0.11877095699310303,
-0.12420904636383057,
-0.27603474259376526,
-0.052022986114025116,
0.010321816429495811,
-0.2586914896965027,
0.35586875677108765,
0.04935786873102188,
0.08481544256210327,
0.08254726976156235,
-0.0007391907274723053,
0.16189317405223846,
-0.14972826838493347,
0.20431023836135864,
-0.300150990486145,
-0.12423394620418549,
-0.25058799982070923,
-0.00016635842621326447,
-0.22512651979923248,
0.34160834550857544,
0.03140478953719139,
-0.16156721115112305,
-0.4707099199295044,
0.20105402171611786,
-0.3075321912765503,
-0.05090949684381485,
-0.3116735816001892,
0.1930033415555954,
0.22377456724643707,
0.15178748965263367,
-0.20707371830940247,
0.13810350000858307,
0.10404618084430695,
-0.10741429030895233,
-0.10880305618047714,
0.11961489915847778,
0.031483203172683716,
0.0655655637383461,
-0.46396559476852417,
-0.4390852153301239,
-0.013932866975665092,
0.04091669246554375,
0.40105438232421875,
0.0659216046333313,
-0.12235088646411896,
0.049696967005729675,
-0.24709907174110413,
-0.12648867070674896,
-0.17555555701255798,
0.16636832058429718,
-0.18759529292583466,
-0.2554455101490021,
0.24791960418224335,
0.1119256466627121,
-0.326698362827301,
-0.2127222865819931,
0.08012726157903671,
0.07626773416996002,
-0.7130563855171204,
-0.20004843175411224,
-0.11349207162857056,
-0.14745120704174042,
-0.05904792994260788,
0.08652348816394806,
-0.1103302538394928,
0.19841045141220093,
0.1098320335149765,
-0.02925841696560383,
-0.15767738223075867,
-0.3824410140514374,
0.6548928022384644,
0.3079107701778412,
0.09668953716754913,
-0.4028111696243286,
0.07457010447978973,
0.05198413506150246,
0.17514562606811523,
0.1673048734664917,
-0.16686564683914185,
-0.006051845848560333,
-0.10989917069673538,
-0.04088346287608147,
0.15313641726970673,
-0.3298504650592804,
0.4263611137866974,
0.23925387859344482,
0.07831594347953796,
0.27850645780563354,
0.00042209774255752563,
0.04812498390674591,
-0.029270906001329422,
0.490491658449173,
-0.14701524376869202,
0.04515235498547554,
-0.23982922732830048,
-0.11434312164783478,
-0.15328139066696167,
0.030299648642539978,
0.010627634823322296,
-0.20775561034679413,
-0.12809649109840393,
0.14922448992729187,
-0.16171906888484955,
-0.037258826196193695,
0.27529093623161316,
-0.7325529456138611,
-0.07514510303735733,
-0.09447243064641953,
-0.028463900089263916,
0.04528409615159035,
0.44044065475463867,
-0.10819805413484573,
-0.11886095255613327,
0.17016059160232544,
-0.00820230133831501,
0.6488147974014282,
0.06172554939985275,
0.49407505989074707,
0.31025785207748413,
0.1985444724559784,
-0.3425166606903076,
-0.38013750314712524,
-0.43936607241630554,
-0.17255249619483948,
0.5286620855331421,
0.15605443716049194,
-0.2542397975921631,
-0.2872357666492462,
0.21373093128204346,
-0.10232770442962646,
-0.19476117193698883,
0.0963846817612648,
-0.420390248298645,
-0.23837223649024963,
0.33224713802337646,
-0.037344031035900116,
0.1644621342420578,
0.05956018343567848,
-0.0016738809645175934,
0.07826957106590271,
0.23689033091068268,
-0.46082064509391785,
0.4027179479598999,
0.3578066825866699,
0.12857791781425476,
0.35036271810531616,
0.024371761828660965,
0.37490415573120117,
0.11767169833183289,
-0.46493810415267944,
0.236498162150383,
-0.1561972200870514,
-0.04619298875331879,
0.17196285724639893,
-0.2602120339870453,
0.34168723225593567,
-0.06599177420139313,
-0.10732243955135345,
-0.048986829817295074,
-0.38393306732177734,
0.28621596097946167,
-0.3703194558620453,
0.30199822783470154,
0.3484680652618408,
0.24248570203781128,
0.020128846168518066,
-0.15553121268749237,
0.12221971899271011,
-0.11809822916984558,
-0.26283904910087585,
-0.211348295211792,
-0.01615375280380249,
-0.4556926190853119,
0.08491966128349304,
-0.21041038632392883,
0.6448173522949219,
0.045351624488830566,
0.0006919801235198975,
0.10229916870594025,
-0.34347468614578247,
0.5957661867141724,
-0.11621249467134476,
0.13951759040355682,
-0.2881873846054077,
-0.08220304548740387,
0.06939632445573807,
0.06554317474365234,
-0.1502901315689087,
0.42535150051116943,
-0.15432775020599365,
0.42215755581855774,
0.18519403040409088,
0.007249705493450165,
0.03674495965242386,
0.14724674820899963,
0.5044360160827637,
0.13582219183444977,
-0.20589017868041992,
0.1806865632534027,
-0.22780360281467438,
0.13816775381565094,
-0.10229190438985825,
-0.02002321183681488,
0.1115604043006897,
-0.27110809087753296,
-0.20803993940353394,
-0.14581508934497833,
-0.30248913168907166,
-0.08702020347118378,
0.4241003692150116,
0.10370288789272308,
-0.16669969260692596,
0.03688488155603409,
0.5649838447570801,
0.23046563565731049,
-0.2195443958044052,
-0.0636170357465744,
0.1668863296508789,
0.3394560217857361,
0.09629503637552261,
0.2072872817516327,
0.31981438398361206,
0.0012473873794078827,
-0.2308746874332428,
-0.016640499234199524,
0.08016335964202881,
0.17380842566490173,
-0.34814995527267456,
-0.10174195468425751,
-0.046893998980522156,
-0.12306772917509079,
0.22461582720279694,
0.287522554397583,
0.13450174033641815,
-0.2777552604675293,
0.1477760523557663,
0.04211042821407318,
-0.4823467433452606,
0.08805523812770844,
0.1862146407365799,
-0.446696013212204,
0.12845087051391602,
0.4110444486141205,
-0.3931843936443329,
0.319915235042572,
0.28903713822364807,
-0.07670179009437561,
-0.008669141680002213,
-0.26833322644233704,
0.08292987197637558,
0.02079274319112301,
-0.5002560615539551,
0.15103654563426971,
0.06824246793985367,
-0.3127126693725586,
-0.06179949268698692,
0.3585748076438904,
0.3742305636405945,
-0.04572358727455139,
-0.045919571071863174,
0.0495661124587059,
-0.12660667300224304,
-0.03153613209724426,
-0.052550721913576126,
0.29492413997650146,
-0.0991954356431961,
0.2035389095544815,
-0.0005555525422096252,
0.24771882593631744,
-0.3138471245765686,
-0.1842353492975235,
-0.36278706789016724,
0.1797090619802475,
-0.007426178082823753,
-0.008049573749303818,
-0.22068656980991364,
-0.08024908602237701,
0.20637375116348267,
-0.20195822417736053,
-0.07713630050420761,
-0.23787730932235718,
0.049076054245233536,
0.10978668928146362,
-0.06195404380559921,
0.04754268378019333,
-0.24244025349617004,
0.07746124267578125,
0.040033161640167236,
0.01093880645930767,
-0.06157431751489639,
0.06705906987190247,
0.09701233357191086,
0.8924071788787842,
0.10893663018941879,
-0.03452491760253906,
0.12641382217407227,
-0.04720526188611984,
-0.09084081649780273,
-0.13989074528217316,
-0.03531460091471672,
0.22051650285720825,
0.25972598791122437,
0.07087559998035431,
-0.24794240295886993,
0.10922564566135406,
-0.4701383709907532,
0.06706011295318604,
-0.10033852607011795,
-0.3349018692970276,
0.17072702944278717,
-0.11029085516929626,
0.2450983226299286,
-0.0020982474088668823,
-0.05650239437818527,
-0.07533779740333557,
0.19672611355781555,
0.2744041681289673,
-0.14405955374240875,
0.29913783073425293,
0.3024625778198242,
0.12852990627288818,
0.20637574791908264,
0.27660566568374634,
-0.08614085614681244,
-0.09184479713439941,
0.044616732746362686,
0.1708592176437378,
0.25332072377204895,
-0.15568192303180695,
0.014833392575383186,
0.23541802167892456,
-0.3778323829174042,
-0.1394175887107849,
0.233890101313591,
-0.5454509854316711,
-0.25998538732528687,
-0.06353217363357544,
0.3590613603591919,
0.47308364510536194,
0.24429041147232056,
0.22485388815402985,
-0.11749657243490219,
0.5504234433174133,
-0.1005651205778122,
0.11489903926849365,
-0.19030016660690308,
0.15680843591690063,
-0.026905320584774017,
0.422830730676651,
-0.22543421387672424,
-0.2896818220615387,
-0.14281851053237915,
0.0741950049996376,
0.012341754510998726,
-0.4227364659309387,
-0.3647424280643463,
0.07755839079618454,
-0.27781543135643005,
0.09376963973045349,
0.02724289894104004,
-0.06893499195575714,
0.42622190713882446,
-0.015630632638931274,
0.029314391314983368,
-0.3624058663845062,
-0.6591201424598694,
0.08273090422153473,
0.2454967498779297,
-0.030819939449429512,
0.3564579486846924,
0.013535253703594208,
-0.023416362702846527,
0.08269399404525757,
0.4850858449935913,
-0.02170814946293831,
-0.15393702685832977,
-0.1377490907907486,
-0.2947843074798584,
-0.19909723103046417,
-0.17983478307724,
-0.19977372884750366,
0.11430677026510239,
-0.06895345449447632,
-0.20472604036331177,
0.22563207149505615,
0.13329379260540009,
-0.033867985010147095,
0.4815892279148102,
-0.30655765533447266,
-0.1352899670600891,
-0.1985163390636444,
0.4735819101333618,
0.05333252251148224,
-0.08433880656957626,
-0.04198858141899109,
0.004211656749248505,
-0.2606089115142822,
-0.1726102977991104,
0.010212788358330727,
-0.06900621205568314,
0.2692812383174896,
-0.31078916788101196,
0.0877804234623909,
0.08726009726524353,
0.48144933581352234,
-0.28419187664985657,
0.1334255337715149,
-0.15048417448997498,
0.15816794335842133,
-0.18487530946731567,
-0.14636093378067017,
-0.036306846886873245,
-0.16399912536144257,
-0.12060655653476715,
-0.058960020542144775,
0.1612274944782257,
-0.07762625813484192,
0.050392746925354004,
0.35956963896751404,
-0.11823917180299759,
-0.0655154213309288,
-0.3488408029079437,
0.34651756286621094,
0.06192444637417793,
0.36269140243530273,
0.2391088902950287,
-0.12598630785942078,
0.1356222778558731,
0.11258184909820557,
0.08265519887208939,
0.10623206943273544,
0.1661253422498703,
-0.09636037051677704,
0.27698010206222534,
0.19938376545906067,
0.08972764015197754,
0.4974398910999298,
0.056762874126434326,
0.17370836436748505,
-0.2943831980228424,
-0.3370409309864044,
-0.36085063219070435,
-0.10455336421728134,
-0.2991921007633209,
0.40716445446014404,
-0.0568980872631073,
0.005760185420513153,
0.10979511588811874,
-0.12080241739749908,
0.1738741546869278,
0.3284972310066223,
-0.233224555850029,
0.1424812227487564,
-0.06964564323425293,
-0.021369848400354385,
-0.01136109046638012,
-0.15444046258926392,
0.15083611011505127,
-0.06890170276165009,
-0.15474039316177368,
-0.5150070786476135,
0.6079292297363281,
-0.17488978803157806,
-0.12970635294914246,
-0.07439370453357697,
0.3857114315032959,
0.32967713475227356,
-0.13160891830921173,
-0.5880601406097412,
-0.22726675868034363,
0.4960271716117859,
0.19417238235473633,
-0.4108330011367798,
0.3343150317668915,
0.13902877271175385,
0.214457705616951,
0.09442731738090515,
-0.08707515895366669,
0.3029441237449646,
0.04614262282848358,
-0.03722051903605461,
-0.2824230194091797
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | It should be in the datasets card (the README.md and on the hub) in my opinion. What do you think @yjernite? | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 21 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
It should be in the datasets card (the README.md and on the hub) in my opinion. What do you think @yjernite? | [
0.3236769437789917,
-0.3612537682056427,
-0.09375040233135223,
0.17786206305027008,
-0.0011136941611766815,
0.10074936598539352,
0.33618444204330444,
0.449954628944397,
0.5752965807914734,
0.014867007732391357,
-0.12565448880195618,
0.13467815518379211,
-0.14737413823604584,
0.2773216664791107,
0.33337998390197754,
-0.053047679364681244,
0.10838038474321365,
0.31975048780441284,
-0.1676013320684433,
-0.2568300664424896,
-0.03263837471604347,
0.3825787305831909,
-0.14461302757263184,
0.19946548342704773,
-0.28053390979766846,
0.24851638078689575,
0.0017216037958860397,
-0.09634100645780563,
-0.03161931782960892,
-0.5869408249855042,
0.20443370938301086,
0.20650121569633484,
0.2146633416414261,
0.04102370887994766,
-0.0001139118685387075,
0.043877013027668,
0.19964449107646942,
-0.1350758671760559,
-0.2542114555835724,
-0.12165839970111847,
-0.10567601770162582,
-0.2028762251138687,
0.045861415565013885,
-0.10591477155685425,
-0.3367512822151184,
0.15860413014888763,
0.046821027994155884,
0.00708356499671936,
0.16406258940696716,
0.15194346010684967,
0.17462968826293945,
-0.0413375198841095,
0.003840893507003784,
0.00024254154413938522,
0.09865263849496841,
-0.35794180631637573,
0.00702427513897419,
0.04189849644899368,
-0.04498925805091858,
-0.19236794114112854,
0.2850553095340729,
0.4425397515296936,
0.1635226458311081,
0.3538922667503357,
0.08915652334690094,
-0.10861755907535553,
0.29010337591171265,
-0.2414475679397583,
0.05704464390873909,
0.1071271002292633,
0.157833069562912,
-0.1571207344532013,
-0.24079112708568573,
-0.11643816530704498,
-0.05656162649393082,
0.10065722465515137,
-0.005957223474979401,
0.027623260393738747,
0.21763674914836884,
0.2936670482158661,
-0.01936729997396469,
-0.09277702867984772,
-0.16660144925117493,
0.08752448111772537,
0.04443838447332382,
0.5951554775238037,
0.05255750194191933,
0.13232943415641785,
0.3667910099029541,
0.08864639699459076,
-0.42316076159477234,
0.2890285849571228,
-0.2783510684967041,
0.1741923838853836,
-0.5723796486854553,
-0.1834569126367569,
0.19603922963142395,
-0.002869516611099243,
-0.21506619453430176,
0.10167303681373596,
0.025421861559152603,
0.02758380025625229,
0.3623884618282318,
-0.051707275211811066,
-0.018416937440633774,
0.32787561416625977,
0.532133162021637,
0.35786107182502747,
0.027929630130529404,
-0.1615816354751587,
0.0433751605451107,
0.16716930270195007,
-0.32545211911201477,
-0.2536091208457947,
0.05579042062163353,
0.20358982682228088,
0.0716068223118782,
-0.35348987579345703,
-0.3213394284248352,
-0.06896516680717468,
-0.39757734537124634,
0.11827552318572998,
0.10451039671897888,
0.013810388743877411,
0.2748115062713623,
0.028539732098579407,
-0.1252363920211792,
-0.005990680307149887,
-0.11779429763555527,
-0.38688409328460693,
-0.2563752830028534,
0.13177338242530823,
-0.17771457135677338,
0.01841171272099018,
0.40443575382232666,
0.1601777970790863,
0.16646388173103333,
-0.292144775390625,
-0.36222773790359497,
-0.04228205606341362,
0.1334695816040039,
-0.04349376633763313,
0.18527773022651672,
0.34856948256492615,
-0.28408005833625793,
0.37847673892974854,
0.24288885295391083,
-0.5122995376586914,
-0.14108571410179138,
-0.2726309299468994,
-0.02923937886953354,
-0.07268904894590378,
0.06737194955348969,
0.14270082116127014,
-0.30557703971862793,
-0.06546884030103683,
-0.0006731376051902771,
0.3467409312725067,
-0.04100034385919571,
0.12588419020175934,
0.04871629923582077,
-0.23691906034946442,
0.0019329674541950226,
0.25379282236099243,
0.22849947214126587,
0.24465662240982056,
-0.45920270681381226,
-0.09783828258514404,
0.3145688772201538,
-0.01792481169104576,
-0.1690031886100769,
0.1724623739719391,
0.21617625653743744,
0.14936606585979462,
-0.06026601791381836,
0.20516778528690338,
0.3542279303073883,
-0.30272582173347473,
-0.3342142403125763,
0.10459005832672119,
-0.28814971446990967,
-0.4994364380836487,
0.032340943813323975,
0.060902632772922516,
-0.0006797779351472855,
0.10404478758573532,
-0.042171187698841095,
-0.34075331687927246,
0.12075474113225937,
0.0356195867061615,
-0.5237576961517334,
0.2544217109680176,
0.5446699261665344,
-0.016373788937926292,
-0.025428134948015213,
-0.12888607382774353,
-0.34309443831443787,
0.19785559177398682,
0.14037716388702393,
0.05447147414088249,
0.036712005734443665,
0.15441614389419556,
0.17454217374324799,
-0.12684160470962524,
0.08580406755208969,
-0.09543530642986298,
-0.17722508311271667,
0.19450244307518005,
0.013030819594860077,
0.3939722776412964,
0.5494515299797058,
0.06488391757011414,
-0.399976521730423,
-0.20422187447547913,
0.03571343421936035,
-0.2271704375743866,
0.17650339007377625,
0.4278757572174072,
0.39454805850982666,
-0.04702496901154518,
0.0751006007194519,
-0.011027254164218903,
0.28155070543289185,
0.009615916758775711,
-0.21090997755527496,
0.23462529480457306,
0.08188188821077347,
-0.24157339334487915,
0.07868677377700806,
0.29264771938323975,
0.2893488109111786,
-0.09177561849355698,
0.032261356711387634,
0.22111710906028748,
-0.20145615935325623,
-0.05460284650325775,
0.08865448087453842,
0.29562658071517944,
-0.08880233764648438,
-0.4509788751602173,
-0.25709447264671326,
0.5002955794334412,
-0.0395481139421463,
-0.020869016647338867,
-0.07503228634595871,
0.07552343606948853,
-0.05294446274638176,
0.1584230214357376,
-0.1140921413898468,
0.15477806329727173,
-0.03772629424929619,
-0.05912952870130539,
-0.467159241437912,
-0.05292888730764389,
0.22411859035491943,
-0.43858057260513306,
-0.007665123790502548,
0.13175445795059204,
-0.046288371086120605,
0.3177294135093689,
0.22819554805755615,
0.1615164428949356,
0.09794753789901733,
-0.20214873552322388,
-0.20776015520095825,
-0.09145282953977585,
0.2668095529079437,
0.29076874256134033,
-0.01921635866165161,
0.19565483927726746,
0.056212928146123886,
-0.23100131750106812,
-0.5293565392494202,
-0.03980351239442825,
0.013005688786506653,
-0.09802074730396271,
-0.2299809455871582,
-0.13324183225631714,
0.3371712267398834,
-0.3350442945957184,
-0.1945854127407074,
0.2070709466934204,
-0.06920459121465683,
0.37862250208854675,
-0.6263083219528198,
-0.06222347915172577,
-0.11877095699310303,
-0.12420904636383057,
-0.27603474259376526,
-0.052022986114025116,
0.010321816429495811,
-0.2586914896965027,
0.35586875677108765,
0.04935786873102188,
0.08481544256210327,
0.08254726976156235,
-0.0007391907274723053,
0.16189317405223846,
-0.14972826838493347,
0.20431023836135864,
-0.300150990486145,
-0.12423394620418549,
-0.25058799982070923,
-0.00016635842621326447,
-0.22512651979923248,
0.34160834550857544,
0.03140478953719139,
-0.16156721115112305,
-0.4707099199295044,
0.20105402171611786,
-0.3075321912765503,
-0.05090949684381485,
-0.3116735816001892,
0.1930033415555954,
0.22377456724643707,
0.15178748965263367,
-0.20707371830940247,
0.13810350000858307,
0.10404618084430695,
-0.10741429030895233,
-0.10880305618047714,
0.11961489915847778,
0.031483203172683716,
0.0655655637383461,
-0.46396559476852417,
-0.4390852153301239,
-0.013932866975665092,
0.04091669246554375,
0.40105438232421875,
0.0659216046333313,
-0.12235088646411896,
0.049696967005729675,
-0.24709907174110413,
-0.12648867070674896,
-0.17555555701255798,
0.16636832058429718,
-0.18759529292583466,
-0.2554455101490021,
0.24791960418224335,
0.1119256466627121,
-0.326698362827301,
-0.2127222865819931,
0.08012726157903671,
0.07626773416996002,
-0.7130563855171204,
-0.20004843175411224,
-0.11349207162857056,
-0.14745120704174042,
-0.05904792994260788,
0.08652348816394806,
-0.1103302538394928,
0.19841045141220093,
0.1098320335149765,
-0.02925841696560383,
-0.15767738223075867,
-0.3824410140514374,
0.6548928022384644,
0.3079107701778412,
0.09668953716754913,
-0.4028111696243286,
0.07457010447978973,
0.05198413506150246,
0.17514562606811523,
0.1673048734664917,
-0.16686564683914185,
-0.006051845848560333,
-0.10989917069673538,
-0.04088346287608147,
0.15313641726970673,
-0.3298504650592804,
0.4263611137866974,
0.23925387859344482,
0.07831594347953796,
0.27850645780563354,
0.00042209774255752563,
0.04812498390674591,
-0.029270906001329422,
0.490491658449173,
-0.14701524376869202,
0.04515235498547554,
-0.23982922732830048,
-0.11434312164783478,
-0.15328139066696167,
0.030299648642539978,
0.010627634823322296,
-0.20775561034679413,
-0.12809649109840393,
0.14922448992729187,
-0.16171906888484955,
-0.037258826196193695,
0.27529093623161316,
-0.7325529456138611,
-0.07514510303735733,
-0.09447243064641953,
-0.028463900089263916,
0.04528409615159035,
0.44044065475463867,
-0.10819805413484573,
-0.11886095255613327,
0.17016059160232544,
-0.00820230133831501,
0.6488147974014282,
0.06172554939985275,
0.49407505989074707,
0.31025785207748413,
0.1985444724559784,
-0.3425166606903076,
-0.38013750314712524,
-0.43936607241630554,
-0.17255249619483948,
0.5286620855331421,
0.15605443716049194,
-0.2542397975921631,
-0.2872357666492462,
0.21373093128204346,
-0.10232770442962646,
-0.19476117193698883,
0.0963846817612648,
-0.420390248298645,
-0.23837223649024963,
0.33224713802337646,
-0.037344031035900116,
0.1644621342420578,
0.05956018343567848,
-0.0016738809645175934,
0.07826957106590271,
0.23689033091068268,
-0.46082064509391785,
0.4027179479598999,
0.3578066825866699,
0.12857791781425476,
0.35036271810531616,
0.024371761828660965,
0.37490415573120117,
0.11767169833183289,
-0.46493810415267944,
0.236498162150383,
-0.1561972200870514,
-0.04619298875331879,
0.17196285724639893,
-0.2602120339870453,
0.34168723225593567,
-0.06599177420139313,
-0.10732243955135345,
-0.048986829817295074,
-0.38393306732177734,
0.28621596097946167,
-0.3703194558620453,
0.30199822783470154,
0.3484680652618408,
0.24248570203781128,
0.020128846168518066,
-0.15553121268749237,
0.12221971899271011,
-0.11809822916984558,
-0.26283904910087585,
-0.211348295211792,
-0.01615375280380249,
-0.4556926190853119,
0.08491966128349304,
-0.21041038632392883,
0.6448173522949219,
0.045351624488830566,
0.0006919801235198975,
0.10229916870594025,
-0.34347468614578247,
0.5957661867141724,
-0.11621249467134476,
0.13951759040355682,
-0.2881873846054077,
-0.08220304548740387,
0.06939632445573807,
0.06554317474365234,
-0.1502901315689087,
0.42535150051116943,
-0.15432775020599365,
0.42215755581855774,
0.18519403040409088,
0.007249705493450165,
0.03674495965242386,
0.14724674820899963,
0.5044360160827637,
0.13582219183444977,
-0.20589017868041992,
0.1806865632534027,
-0.22780360281467438,
0.13816775381565094,
-0.10229190438985825,
-0.02002321183681488,
0.1115604043006897,
-0.27110809087753296,
-0.20803993940353394,
-0.14581508934497833,
-0.30248913168907166,
-0.08702020347118378,
0.4241003692150116,
0.10370288789272308,
-0.16669969260692596,
0.03688488155603409,
0.5649838447570801,
0.23046563565731049,
-0.2195443958044052,
-0.0636170357465744,
0.1668863296508789,
0.3394560217857361,
0.09629503637552261,
0.2072872817516327,
0.31981438398361206,
0.0012473873794078827,
-0.2308746874332428,
-0.016640499234199524,
0.08016335964202881,
0.17380842566490173,
-0.34814995527267456,
-0.10174195468425751,
-0.046893998980522156,
-0.12306772917509079,
0.22461582720279694,
0.287522554397583,
0.13450174033641815,
-0.2777552604675293,
0.1477760523557663,
0.04211042821407318,
-0.4823467433452606,
0.08805523812770844,
0.1862146407365799,
-0.446696013212204,
0.12845087051391602,
0.4110444486141205,
-0.3931843936443329,
0.319915235042572,
0.28903713822364807,
-0.07670179009437561,
-0.008669141680002213,
-0.26833322644233704,
0.08292987197637558,
0.02079274319112301,
-0.5002560615539551,
0.15103654563426971,
0.06824246793985367,
-0.3127126693725586,
-0.06179949268698692,
0.3585748076438904,
0.3742305636405945,
-0.04572358727455139,
-0.045919571071863174,
0.0495661124587059,
-0.12660667300224304,
-0.03153613209724426,
-0.052550721913576126,
0.29492413997650146,
-0.0991954356431961,
0.2035389095544815,
-0.0005555525422096252,
0.24771882593631744,
-0.3138471245765686,
-0.1842353492975235,
-0.36278706789016724,
0.1797090619802475,
-0.007426178082823753,
-0.008049573749303818,
-0.22068656980991364,
-0.08024908602237701,
0.20637375116348267,
-0.20195822417736053,
-0.07713630050420761,
-0.23787730932235718,
0.049076054245233536,
0.10978668928146362,
-0.06195404380559921,
0.04754268378019333,
-0.24244025349617004,
0.07746124267578125,
0.040033161640167236,
0.01093880645930767,
-0.06157431751489639,
0.06705906987190247,
0.09701233357191086,
0.8924071788787842,
0.10893663018941879,
-0.03452491760253906,
0.12641382217407227,
-0.04720526188611984,
-0.09084081649780273,
-0.13989074528217316,
-0.03531460091471672,
0.22051650285720825,
0.25972598791122437,
0.07087559998035431,
-0.24794240295886993,
0.10922564566135406,
-0.4701383709907532,
0.06706011295318604,
-0.10033852607011795,
-0.3349018692970276,
0.17072702944278717,
-0.11029085516929626,
0.2450983226299286,
-0.0020982474088668823,
-0.05650239437818527,
-0.07533779740333557,
0.19672611355781555,
0.2744041681289673,
-0.14405955374240875,
0.29913783073425293,
0.3024625778198242,
0.12852990627288818,
0.20637574791908264,
0.27660566568374634,
-0.08614085614681244,
-0.09184479713439941,
0.044616732746362686,
0.1708592176437378,
0.25332072377204895,
-0.15568192303180695,
0.014833392575383186,
0.23541802167892456,
-0.3778323829174042,
-0.1394175887107849,
0.233890101313591,
-0.5454509854316711,
-0.25998538732528687,
-0.06353217363357544,
0.3590613603591919,
0.47308364510536194,
0.24429041147232056,
0.22485388815402985,
-0.11749657243490219,
0.5504234433174133,
-0.1005651205778122,
0.11489903926849365,
-0.19030016660690308,
0.15680843591690063,
-0.026905320584774017,
0.422830730676651,
-0.22543421387672424,
-0.2896818220615387,
-0.14281851053237915,
0.0741950049996376,
0.012341754510998726,
-0.4227364659309387,
-0.3647424280643463,
0.07755839079618454,
-0.27781543135643005,
0.09376963973045349,
0.02724289894104004,
-0.06893499195575714,
0.42622190713882446,
-0.015630632638931274,
0.029314391314983368,
-0.3624058663845062,
-0.6591201424598694,
0.08273090422153473,
0.2454967498779297,
-0.030819939449429512,
0.3564579486846924,
0.013535253703594208,
-0.023416362702846527,
0.08269399404525757,
0.4850858449935913,
-0.02170814946293831,
-0.15393702685832977,
-0.1377490907907486,
-0.2947843074798584,
-0.19909723103046417,
-0.17983478307724,
-0.19977372884750366,
0.11430677026510239,
-0.06895345449447632,
-0.20472604036331177,
0.22563207149505615,
0.13329379260540009,
-0.033867985010147095,
0.4815892279148102,
-0.30655765533447266,
-0.1352899670600891,
-0.1985163390636444,
0.4735819101333618,
0.05333252251148224,
-0.08433880656957626,
-0.04198858141899109,
0.004211656749248505,
-0.2606089115142822,
-0.1726102977991104,
0.010212788358330727,
-0.06900621205568314,
0.2692812383174896,
-0.31078916788101196,
0.0877804234623909,
0.08726009726524353,
0.48144933581352234,
-0.28419187664985657,
0.1334255337715149,
-0.15048417448997498,
0.15816794335842133,
-0.18487530946731567,
-0.14636093378067017,
-0.036306846886873245,
-0.16399912536144257,
-0.12060655653476715,
-0.058960020542144775,
0.1612274944782257,
-0.07762625813484192,
0.050392746925354004,
0.35956963896751404,
-0.11823917180299759,
-0.0655154213309288,
-0.3488408029079437,
0.34651756286621094,
0.06192444637417793,
0.36269140243530273,
0.2391088902950287,
-0.12598630785942078,
0.1356222778558731,
0.11258184909820557,
0.08265519887208939,
0.10623206943273544,
0.1661253422498703,
-0.09636037051677704,
0.27698010206222534,
0.19938376545906067,
0.08972764015197754,
0.4974398910999298,
0.056762874126434326,
0.17370836436748505,
-0.2943831980228424,
-0.3370409309864044,
-0.36085063219070435,
-0.10455336421728134,
-0.2991921007633209,
0.40716445446014404,
-0.0568980872631073,
0.005760185420513153,
0.10979511588811874,
-0.12080241739749908,
0.1738741546869278,
0.3284972310066223,
-0.233224555850029,
0.1424812227487564,
-0.06964564323425293,
-0.021369848400354385,
-0.01136109046638012,
-0.15444046258926392,
0.15083611011505127,
-0.06890170276165009,
-0.15474039316177368,
-0.5150070786476135,
0.6079292297363281,
-0.17488978803157806,
-0.12970635294914246,
-0.07439370453357697,
0.3857114315032959,
0.32967713475227356,
-0.13160891830921173,
-0.5880601406097412,
-0.22726675868034363,
0.4960271716117859,
0.19417238235473633,
-0.4108330011367798,
0.3343150317668915,
0.13902877271175385,
0.214457705616951,
0.09442731738090515,
-0.08707515895366669,
0.3029441237449646,
0.04614262282848358,
-0.03722051903605461,
-0.2824230194091797
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | I checked both before I got to looking at issues, so that would be fine as well.
Some additional thoughts on this: Is there a specific reason why the "test" split even has a "label" column if it isn't tagged. Shouldn't there just not be any. Seems more transparent | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 49 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
I checked both before I got to looking at issues, so that would be fine as well.
Some additional thoughts on this: Is there a specific reason why the "test" split even has a "label" column if it isn't tagged. Shouldn't there just not be any. Seems more transparent | [
0.3236769437789917,
-0.3612537682056427,
-0.09375040233135223,
0.17786206305027008,
-0.0011136941611766815,
0.10074936598539352,
0.33618444204330444,
0.449954628944397,
0.5752965807914734,
0.014867007732391357,
-0.12565448880195618,
0.13467815518379211,
-0.14737413823604584,
0.2773216664791107,
0.33337998390197754,
-0.053047679364681244,
0.10838038474321365,
0.31975048780441284,
-0.1676013320684433,
-0.2568300664424896,
-0.03263837471604347,
0.3825787305831909,
-0.14461302757263184,
0.19946548342704773,
-0.28053390979766846,
0.24851638078689575,
0.0017216037958860397,
-0.09634100645780563,
-0.03161931782960892,
-0.5869408249855042,
0.20443370938301086,
0.20650121569633484,
0.2146633416414261,
0.04102370887994766,
-0.0001139118685387075,
0.043877013027668,
0.19964449107646942,
-0.1350758671760559,
-0.2542114555835724,
-0.12165839970111847,
-0.10567601770162582,
-0.2028762251138687,
0.045861415565013885,
-0.10591477155685425,
-0.3367512822151184,
0.15860413014888763,
0.046821027994155884,
0.00708356499671936,
0.16406258940696716,
0.15194346010684967,
0.17462968826293945,
-0.0413375198841095,
0.003840893507003784,
0.00024254154413938522,
0.09865263849496841,
-0.35794180631637573,
0.00702427513897419,
0.04189849644899368,
-0.04498925805091858,
-0.19236794114112854,
0.2850553095340729,
0.4425397515296936,
0.1635226458311081,
0.3538922667503357,
0.08915652334690094,
-0.10861755907535553,
0.29010337591171265,
-0.2414475679397583,
0.05704464390873909,
0.1071271002292633,
0.157833069562912,
-0.1571207344532013,
-0.24079112708568573,
-0.11643816530704498,
-0.05656162649393082,
0.10065722465515137,
-0.005957223474979401,
0.027623260393738747,
0.21763674914836884,
0.2936670482158661,
-0.01936729997396469,
-0.09277702867984772,
-0.16660144925117493,
0.08752448111772537,
0.04443838447332382,
0.5951554775238037,
0.05255750194191933,
0.13232943415641785,
0.3667910099029541,
0.08864639699459076,
-0.42316076159477234,
0.2890285849571228,
-0.2783510684967041,
0.1741923838853836,
-0.5723796486854553,
-0.1834569126367569,
0.19603922963142395,
-0.002869516611099243,
-0.21506619453430176,
0.10167303681373596,
0.025421861559152603,
0.02758380025625229,
0.3623884618282318,
-0.051707275211811066,
-0.018416937440633774,
0.32787561416625977,
0.532133162021637,
0.35786107182502747,
0.027929630130529404,
-0.1615816354751587,
0.0433751605451107,
0.16716930270195007,
-0.32545211911201477,
-0.2536091208457947,
0.05579042062163353,
0.20358982682228088,
0.0716068223118782,
-0.35348987579345703,
-0.3213394284248352,
-0.06896516680717468,
-0.39757734537124634,
0.11827552318572998,
0.10451039671897888,
0.013810388743877411,
0.2748115062713623,
0.028539732098579407,
-0.1252363920211792,
-0.005990680307149887,
-0.11779429763555527,
-0.38688409328460693,
-0.2563752830028534,
0.13177338242530823,
-0.17771457135677338,
0.01841171272099018,
0.40443575382232666,
0.1601777970790863,
0.16646388173103333,
-0.292144775390625,
-0.36222773790359497,
-0.04228205606341362,
0.1334695816040039,
-0.04349376633763313,
0.18527773022651672,
0.34856948256492615,
-0.28408005833625793,
0.37847673892974854,
0.24288885295391083,
-0.5122995376586914,
-0.14108571410179138,
-0.2726309299468994,
-0.02923937886953354,
-0.07268904894590378,
0.06737194955348969,
0.14270082116127014,
-0.30557703971862793,
-0.06546884030103683,
-0.0006731376051902771,
0.3467409312725067,
-0.04100034385919571,
0.12588419020175934,
0.04871629923582077,
-0.23691906034946442,
0.0019329674541950226,
0.25379282236099243,
0.22849947214126587,
0.24465662240982056,
-0.45920270681381226,
-0.09783828258514404,
0.3145688772201538,
-0.01792481169104576,
-0.1690031886100769,
0.1724623739719391,
0.21617625653743744,
0.14936606585979462,
-0.06026601791381836,
0.20516778528690338,
0.3542279303073883,
-0.30272582173347473,
-0.3342142403125763,
0.10459005832672119,
-0.28814971446990967,
-0.4994364380836487,
0.032340943813323975,
0.060902632772922516,
-0.0006797779351472855,
0.10404478758573532,
-0.042171187698841095,
-0.34075331687927246,
0.12075474113225937,
0.0356195867061615,
-0.5237576961517334,
0.2544217109680176,
0.5446699261665344,
-0.016373788937926292,
-0.025428134948015213,
-0.12888607382774353,
-0.34309443831443787,
0.19785559177398682,
0.14037716388702393,
0.05447147414088249,
0.036712005734443665,
0.15441614389419556,
0.17454217374324799,
-0.12684160470962524,
0.08580406755208969,
-0.09543530642986298,
-0.17722508311271667,
0.19450244307518005,
0.013030819594860077,
0.3939722776412964,
0.5494515299797058,
0.06488391757011414,
-0.399976521730423,
-0.20422187447547913,
0.03571343421936035,
-0.2271704375743866,
0.17650339007377625,
0.4278757572174072,
0.39454805850982666,
-0.04702496901154518,
0.0751006007194519,
-0.011027254164218903,
0.28155070543289185,
0.009615916758775711,
-0.21090997755527496,
0.23462529480457306,
0.08188188821077347,
-0.24157339334487915,
0.07868677377700806,
0.29264771938323975,
0.2893488109111786,
-0.09177561849355698,
0.032261356711387634,
0.22111710906028748,
-0.20145615935325623,
-0.05460284650325775,
0.08865448087453842,
0.29562658071517944,
-0.08880233764648438,
-0.4509788751602173,
-0.25709447264671326,
0.5002955794334412,
-0.0395481139421463,
-0.020869016647338867,
-0.07503228634595871,
0.07552343606948853,
-0.05294446274638176,
0.1584230214357376,
-0.1140921413898468,
0.15477806329727173,
-0.03772629424929619,
-0.05912952870130539,
-0.467159241437912,
-0.05292888730764389,
0.22411859035491943,
-0.43858057260513306,
-0.007665123790502548,
0.13175445795059204,
-0.046288371086120605,
0.3177294135093689,
0.22819554805755615,
0.1615164428949356,
0.09794753789901733,
-0.20214873552322388,
-0.20776015520095825,
-0.09145282953977585,
0.2668095529079437,
0.29076874256134033,
-0.01921635866165161,
0.19565483927726746,
0.056212928146123886,
-0.23100131750106812,
-0.5293565392494202,
-0.03980351239442825,
0.013005688786506653,
-0.09802074730396271,
-0.2299809455871582,
-0.13324183225631714,
0.3371712267398834,
-0.3350442945957184,
-0.1945854127407074,
0.2070709466934204,
-0.06920459121465683,
0.37862250208854675,
-0.6263083219528198,
-0.06222347915172577,
-0.11877095699310303,
-0.12420904636383057,
-0.27603474259376526,
-0.052022986114025116,
0.010321816429495811,
-0.2586914896965027,
0.35586875677108765,
0.04935786873102188,
0.08481544256210327,
0.08254726976156235,
-0.0007391907274723053,
0.16189317405223846,
-0.14972826838493347,
0.20431023836135864,
-0.300150990486145,
-0.12423394620418549,
-0.25058799982070923,
-0.00016635842621326447,
-0.22512651979923248,
0.34160834550857544,
0.03140478953719139,
-0.16156721115112305,
-0.4707099199295044,
0.20105402171611786,
-0.3075321912765503,
-0.05090949684381485,
-0.3116735816001892,
0.1930033415555954,
0.22377456724643707,
0.15178748965263367,
-0.20707371830940247,
0.13810350000858307,
0.10404618084430695,
-0.10741429030895233,
-0.10880305618047714,
0.11961489915847778,
0.031483203172683716,
0.0655655637383461,
-0.46396559476852417,
-0.4390852153301239,
-0.013932866975665092,
0.04091669246554375,
0.40105438232421875,
0.0659216046333313,
-0.12235088646411896,
0.049696967005729675,
-0.24709907174110413,
-0.12648867070674896,
-0.17555555701255798,
0.16636832058429718,
-0.18759529292583466,
-0.2554455101490021,
0.24791960418224335,
0.1119256466627121,
-0.326698362827301,
-0.2127222865819931,
0.08012726157903671,
0.07626773416996002,
-0.7130563855171204,
-0.20004843175411224,
-0.11349207162857056,
-0.14745120704174042,
-0.05904792994260788,
0.08652348816394806,
-0.1103302538394928,
0.19841045141220093,
0.1098320335149765,
-0.02925841696560383,
-0.15767738223075867,
-0.3824410140514374,
0.6548928022384644,
0.3079107701778412,
0.09668953716754913,
-0.4028111696243286,
0.07457010447978973,
0.05198413506150246,
0.17514562606811523,
0.1673048734664917,
-0.16686564683914185,
-0.006051845848560333,
-0.10989917069673538,
-0.04088346287608147,
0.15313641726970673,
-0.3298504650592804,
0.4263611137866974,
0.23925387859344482,
0.07831594347953796,
0.27850645780563354,
0.00042209774255752563,
0.04812498390674591,
-0.029270906001329422,
0.490491658449173,
-0.14701524376869202,
0.04515235498547554,
-0.23982922732830048,
-0.11434312164783478,
-0.15328139066696167,
0.030299648642539978,
0.010627634823322296,
-0.20775561034679413,
-0.12809649109840393,
0.14922448992729187,
-0.16171906888484955,
-0.037258826196193695,
0.27529093623161316,
-0.7325529456138611,
-0.07514510303735733,
-0.09447243064641953,
-0.028463900089263916,
0.04528409615159035,
0.44044065475463867,
-0.10819805413484573,
-0.11886095255613327,
0.17016059160232544,
-0.00820230133831501,
0.6488147974014282,
0.06172554939985275,
0.49407505989074707,
0.31025785207748413,
0.1985444724559784,
-0.3425166606903076,
-0.38013750314712524,
-0.43936607241630554,
-0.17255249619483948,
0.5286620855331421,
0.15605443716049194,
-0.2542397975921631,
-0.2872357666492462,
0.21373093128204346,
-0.10232770442962646,
-0.19476117193698883,
0.0963846817612648,
-0.420390248298645,
-0.23837223649024963,
0.33224713802337646,
-0.037344031035900116,
0.1644621342420578,
0.05956018343567848,
-0.0016738809645175934,
0.07826957106590271,
0.23689033091068268,
-0.46082064509391785,
0.4027179479598999,
0.3578066825866699,
0.12857791781425476,
0.35036271810531616,
0.024371761828660965,
0.37490415573120117,
0.11767169833183289,
-0.46493810415267944,
0.236498162150383,
-0.1561972200870514,
-0.04619298875331879,
0.17196285724639893,
-0.2602120339870453,
0.34168723225593567,
-0.06599177420139313,
-0.10732243955135345,
-0.048986829817295074,
-0.38393306732177734,
0.28621596097946167,
-0.3703194558620453,
0.30199822783470154,
0.3484680652618408,
0.24248570203781128,
0.020128846168518066,
-0.15553121268749237,
0.12221971899271011,
-0.11809822916984558,
-0.26283904910087585,
-0.211348295211792,
-0.01615375280380249,
-0.4556926190853119,
0.08491966128349304,
-0.21041038632392883,
0.6448173522949219,
0.045351624488830566,
0.0006919801235198975,
0.10229916870594025,
-0.34347468614578247,
0.5957661867141724,
-0.11621249467134476,
0.13951759040355682,
-0.2881873846054077,
-0.08220304548740387,
0.06939632445573807,
0.06554317474365234,
-0.1502901315689087,
0.42535150051116943,
-0.15432775020599365,
0.42215755581855774,
0.18519403040409088,
0.007249705493450165,
0.03674495965242386,
0.14724674820899963,
0.5044360160827637,
0.13582219183444977,
-0.20589017868041992,
0.1806865632534027,
-0.22780360281467438,
0.13816775381565094,
-0.10229190438985825,
-0.02002321183681488,
0.1115604043006897,
-0.27110809087753296,
-0.20803993940353394,
-0.14581508934497833,
-0.30248913168907166,
-0.08702020347118378,
0.4241003692150116,
0.10370288789272308,
-0.16669969260692596,
0.03688488155603409,
0.5649838447570801,
0.23046563565731049,
-0.2195443958044052,
-0.0636170357465744,
0.1668863296508789,
0.3394560217857361,
0.09629503637552261,
0.2072872817516327,
0.31981438398361206,
0.0012473873794078827,
-0.2308746874332428,
-0.016640499234199524,
0.08016335964202881,
0.17380842566490173,
-0.34814995527267456,
-0.10174195468425751,
-0.046893998980522156,
-0.12306772917509079,
0.22461582720279694,
0.287522554397583,
0.13450174033641815,
-0.2777552604675293,
0.1477760523557663,
0.04211042821407318,
-0.4823467433452606,
0.08805523812770844,
0.1862146407365799,
-0.446696013212204,
0.12845087051391602,
0.4110444486141205,
-0.3931843936443329,
0.319915235042572,
0.28903713822364807,
-0.07670179009437561,
-0.008669141680002213,
-0.26833322644233704,
0.08292987197637558,
0.02079274319112301,
-0.5002560615539551,
0.15103654563426971,
0.06824246793985367,
-0.3127126693725586,
-0.06179949268698692,
0.3585748076438904,
0.3742305636405945,
-0.04572358727455139,
-0.045919571071863174,
0.0495661124587059,
-0.12660667300224304,
-0.03153613209724426,
-0.052550721913576126,
0.29492413997650146,
-0.0991954356431961,
0.2035389095544815,
-0.0005555525422096252,
0.24771882593631744,
-0.3138471245765686,
-0.1842353492975235,
-0.36278706789016724,
0.1797090619802475,
-0.007426178082823753,
-0.008049573749303818,
-0.22068656980991364,
-0.08024908602237701,
0.20637375116348267,
-0.20195822417736053,
-0.07713630050420761,
-0.23787730932235718,
0.049076054245233536,
0.10978668928146362,
-0.06195404380559921,
0.04754268378019333,
-0.24244025349617004,
0.07746124267578125,
0.040033161640167236,
0.01093880645930767,
-0.06157431751489639,
0.06705906987190247,
0.09701233357191086,
0.8924071788787842,
0.10893663018941879,
-0.03452491760253906,
0.12641382217407227,
-0.04720526188611984,
-0.09084081649780273,
-0.13989074528217316,
-0.03531460091471672,
0.22051650285720825,
0.25972598791122437,
0.07087559998035431,
-0.24794240295886993,
0.10922564566135406,
-0.4701383709907532,
0.06706011295318604,
-0.10033852607011795,
-0.3349018692970276,
0.17072702944278717,
-0.11029085516929626,
0.2450983226299286,
-0.0020982474088668823,
-0.05650239437818527,
-0.07533779740333557,
0.19672611355781555,
0.2744041681289673,
-0.14405955374240875,
0.29913783073425293,
0.3024625778198242,
0.12852990627288818,
0.20637574791908264,
0.27660566568374634,
-0.08614085614681244,
-0.09184479713439941,
0.044616732746362686,
0.1708592176437378,
0.25332072377204895,
-0.15568192303180695,
0.014833392575383186,
0.23541802167892456,
-0.3778323829174042,
-0.1394175887107849,
0.233890101313591,
-0.5454509854316711,
-0.25998538732528687,
-0.06353217363357544,
0.3590613603591919,
0.47308364510536194,
0.24429041147232056,
0.22485388815402985,
-0.11749657243490219,
0.5504234433174133,
-0.1005651205778122,
0.11489903926849365,
-0.19030016660690308,
0.15680843591690063,
-0.026905320584774017,
0.422830730676651,
-0.22543421387672424,
-0.2896818220615387,
-0.14281851053237915,
0.0741950049996376,
0.012341754510998726,
-0.4227364659309387,
-0.3647424280643463,
0.07755839079618454,
-0.27781543135643005,
0.09376963973045349,
0.02724289894104004,
-0.06893499195575714,
0.42622190713882446,
-0.015630632638931274,
0.029314391314983368,
-0.3624058663845062,
-0.6591201424598694,
0.08273090422153473,
0.2454967498779297,
-0.030819939449429512,
0.3564579486846924,
0.013535253703594208,
-0.023416362702846527,
0.08269399404525757,
0.4850858449935913,
-0.02170814946293831,
-0.15393702685832977,
-0.1377490907907486,
-0.2947843074798584,
-0.19909723103046417,
-0.17983478307724,
-0.19977372884750366,
0.11430677026510239,
-0.06895345449447632,
-0.20472604036331177,
0.22563207149505615,
0.13329379260540009,
-0.033867985010147095,
0.4815892279148102,
-0.30655765533447266,
-0.1352899670600891,
-0.1985163390636444,
0.4735819101333618,
0.05333252251148224,
-0.08433880656957626,
-0.04198858141899109,
0.004211656749248505,
-0.2606089115142822,
-0.1726102977991104,
0.010212788358330727,
-0.06900621205568314,
0.2692812383174896,
-0.31078916788101196,
0.0877804234623909,
0.08726009726524353,
0.48144933581352234,
-0.28419187664985657,
0.1334255337715149,
-0.15048417448997498,
0.15816794335842133,
-0.18487530946731567,
-0.14636093378067017,
-0.036306846886873245,
-0.16399912536144257,
-0.12060655653476715,
-0.058960020542144775,
0.1612274944782257,
-0.07762625813484192,
0.050392746925354004,
0.35956963896751404,
-0.11823917180299759,
-0.0655154213309288,
-0.3488408029079437,
0.34651756286621094,
0.06192444637417793,
0.36269140243530273,
0.2391088902950287,
-0.12598630785942078,
0.1356222778558731,
0.11258184909820557,
0.08265519887208939,
0.10623206943273544,
0.1661253422498703,
-0.09636037051677704,
0.27698010206222534,
0.19938376545906067,
0.08972764015197754,
0.4974398910999298,
0.056762874126434326,
0.17370836436748505,
-0.2943831980228424,
-0.3370409309864044,
-0.36085063219070435,
-0.10455336421728134,
-0.2991921007633209,
0.40716445446014404,
-0.0568980872631073,
0.005760185420513153,
0.10979511588811874,
-0.12080241739749908,
0.1738741546869278,
0.3284972310066223,
-0.233224555850029,
0.1424812227487564,
-0.06964564323425293,
-0.021369848400354385,
-0.01136109046638012,
-0.15444046258926392,
0.15083611011505127,
-0.06890170276165009,
-0.15474039316177368,
-0.5150070786476135,
0.6079292297363281,
-0.17488978803157806,
-0.12970635294914246,
-0.07439370453357697,
0.3857114315032959,
0.32967713475227356,
-0.13160891830921173,
-0.5880601406097412,
-0.22726675868034363,
0.4960271716117859,
0.19417238235473633,
-0.4108330011367798,
0.3343150317668915,
0.13902877271175385,
0.214457705616951,
0.09442731738090515,
-0.08707515895366669,
0.3029441237449646,
0.04614262282848358,
-0.03722051903605461,
-0.2824230194091797
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | I'm a little confused with the data size.
`sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
| I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 64 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
I'm a little confused with the data size.
`sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
| [
0.3236769437789917,
-0.3612537682056427,
-0.09375040233135223,
0.17786206305027008,
-0.0011136941611766815,
0.10074936598539352,
0.33618444204330444,
0.449954628944397,
0.5752965807914734,
0.014867007732391357,
-0.12565448880195618,
0.13467815518379211,
-0.14737413823604584,
0.2773216664791107,
0.33337998390197754,
-0.053047679364681244,
0.10838038474321365,
0.31975048780441284,
-0.1676013320684433,
-0.2568300664424896,
-0.03263837471604347,
0.3825787305831909,
-0.14461302757263184,
0.19946548342704773,
-0.28053390979766846,
0.24851638078689575,
0.0017216037958860397,
-0.09634100645780563,
-0.03161931782960892,
-0.5869408249855042,
0.20443370938301086,
0.20650121569633484,
0.2146633416414261,
0.04102370887994766,
-0.0001139118685387075,
0.043877013027668,
0.19964449107646942,
-0.1350758671760559,
-0.2542114555835724,
-0.12165839970111847,
-0.10567601770162582,
-0.2028762251138687,
0.045861415565013885,
-0.10591477155685425,
-0.3367512822151184,
0.15860413014888763,
0.046821027994155884,
0.00708356499671936,
0.16406258940696716,
0.15194346010684967,
0.17462968826293945,
-0.0413375198841095,
0.003840893507003784,
0.00024254154413938522,
0.09865263849496841,
-0.35794180631637573,
0.00702427513897419,
0.04189849644899368,
-0.04498925805091858,
-0.19236794114112854,
0.2850553095340729,
0.4425397515296936,
0.1635226458311081,
0.3538922667503357,
0.08915652334690094,
-0.10861755907535553,
0.29010337591171265,
-0.2414475679397583,
0.05704464390873909,
0.1071271002292633,
0.157833069562912,
-0.1571207344532013,
-0.24079112708568573,
-0.11643816530704498,
-0.05656162649393082,
0.10065722465515137,
-0.005957223474979401,
0.027623260393738747,
0.21763674914836884,
0.2936670482158661,
-0.01936729997396469,
-0.09277702867984772,
-0.16660144925117493,
0.08752448111772537,
0.04443838447332382,
0.5951554775238037,
0.05255750194191933,
0.13232943415641785,
0.3667910099029541,
0.08864639699459076,
-0.42316076159477234,
0.2890285849571228,
-0.2783510684967041,
0.1741923838853836,
-0.5723796486854553,
-0.1834569126367569,
0.19603922963142395,
-0.002869516611099243,
-0.21506619453430176,
0.10167303681373596,
0.025421861559152603,
0.02758380025625229,
0.3623884618282318,
-0.051707275211811066,
-0.018416937440633774,
0.32787561416625977,
0.532133162021637,
0.35786107182502747,
0.027929630130529404,
-0.1615816354751587,
0.0433751605451107,
0.16716930270195007,
-0.32545211911201477,
-0.2536091208457947,
0.05579042062163353,
0.20358982682228088,
0.0716068223118782,
-0.35348987579345703,
-0.3213394284248352,
-0.06896516680717468,
-0.39757734537124634,
0.11827552318572998,
0.10451039671897888,
0.013810388743877411,
0.2748115062713623,
0.028539732098579407,
-0.1252363920211792,
-0.005990680307149887,
-0.11779429763555527,
-0.38688409328460693,
-0.2563752830028534,
0.13177338242530823,
-0.17771457135677338,
0.01841171272099018,
0.40443575382232666,
0.1601777970790863,
0.16646388173103333,
-0.292144775390625,
-0.36222773790359497,
-0.04228205606341362,
0.1334695816040039,
-0.04349376633763313,
0.18527773022651672,
0.34856948256492615,
-0.28408005833625793,
0.37847673892974854,
0.24288885295391083,
-0.5122995376586914,
-0.14108571410179138,
-0.2726309299468994,
-0.02923937886953354,
-0.07268904894590378,
0.06737194955348969,
0.14270082116127014,
-0.30557703971862793,
-0.06546884030103683,
-0.0006731376051902771,
0.3467409312725067,
-0.04100034385919571,
0.12588419020175934,
0.04871629923582077,
-0.23691906034946442,
0.0019329674541950226,
0.25379282236099243,
0.22849947214126587,
0.24465662240982056,
-0.45920270681381226,
-0.09783828258514404,
0.3145688772201538,
-0.01792481169104576,
-0.1690031886100769,
0.1724623739719391,
0.21617625653743744,
0.14936606585979462,
-0.06026601791381836,
0.20516778528690338,
0.3542279303073883,
-0.30272582173347473,
-0.3342142403125763,
0.10459005832672119,
-0.28814971446990967,
-0.4994364380836487,
0.032340943813323975,
0.060902632772922516,
-0.0006797779351472855,
0.10404478758573532,
-0.042171187698841095,
-0.34075331687927246,
0.12075474113225937,
0.0356195867061615,
-0.5237576961517334,
0.2544217109680176,
0.5446699261665344,
-0.016373788937926292,
-0.025428134948015213,
-0.12888607382774353,
-0.34309443831443787,
0.19785559177398682,
0.14037716388702393,
0.05447147414088249,
0.036712005734443665,
0.15441614389419556,
0.17454217374324799,
-0.12684160470962524,
0.08580406755208969,
-0.09543530642986298,
-0.17722508311271667,
0.19450244307518005,
0.013030819594860077,
0.3939722776412964,
0.5494515299797058,
0.06488391757011414,
-0.399976521730423,
-0.20422187447547913,
0.03571343421936035,
-0.2271704375743866,
0.17650339007377625,
0.4278757572174072,
0.39454805850982666,
-0.04702496901154518,
0.0751006007194519,
-0.011027254164218903,
0.28155070543289185,
0.009615916758775711,
-0.21090997755527496,
0.23462529480457306,
0.08188188821077347,
-0.24157339334487915,
0.07868677377700806,
0.29264771938323975,
0.2893488109111786,
-0.09177561849355698,
0.032261356711387634,
0.22111710906028748,
-0.20145615935325623,
-0.05460284650325775,
0.08865448087453842,
0.29562658071517944,
-0.08880233764648438,
-0.4509788751602173,
-0.25709447264671326,
0.5002955794334412,
-0.0395481139421463,
-0.020869016647338867,
-0.07503228634595871,
0.07552343606948853,
-0.05294446274638176,
0.1584230214357376,
-0.1140921413898468,
0.15477806329727173,
-0.03772629424929619,
-0.05912952870130539,
-0.467159241437912,
-0.05292888730764389,
0.22411859035491943,
-0.43858057260513306,
-0.007665123790502548,
0.13175445795059204,
-0.046288371086120605,
0.3177294135093689,
0.22819554805755615,
0.1615164428949356,
0.09794753789901733,
-0.20214873552322388,
-0.20776015520095825,
-0.09145282953977585,
0.2668095529079437,
0.29076874256134033,
-0.01921635866165161,
0.19565483927726746,
0.056212928146123886,
-0.23100131750106812,
-0.5293565392494202,
-0.03980351239442825,
0.013005688786506653,
-0.09802074730396271,
-0.2299809455871582,
-0.13324183225631714,
0.3371712267398834,
-0.3350442945957184,
-0.1945854127407074,
0.2070709466934204,
-0.06920459121465683,
0.37862250208854675,
-0.6263083219528198,
-0.06222347915172577,
-0.11877095699310303,
-0.12420904636383057,
-0.27603474259376526,
-0.052022986114025116,
0.010321816429495811,
-0.2586914896965027,
0.35586875677108765,
0.04935786873102188,
0.08481544256210327,
0.08254726976156235,
-0.0007391907274723053,
0.16189317405223846,
-0.14972826838493347,
0.20431023836135864,
-0.300150990486145,
-0.12423394620418549,
-0.25058799982070923,
-0.00016635842621326447,
-0.22512651979923248,
0.34160834550857544,
0.03140478953719139,
-0.16156721115112305,
-0.4707099199295044,
0.20105402171611786,
-0.3075321912765503,
-0.05090949684381485,
-0.3116735816001892,
0.1930033415555954,
0.22377456724643707,
0.15178748965263367,
-0.20707371830940247,
0.13810350000858307,
0.10404618084430695,
-0.10741429030895233,
-0.10880305618047714,
0.11961489915847778,
0.031483203172683716,
0.0655655637383461,
-0.46396559476852417,
-0.4390852153301239,
-0.013932866975665092,
0.04091669246554375,
0.40105438232421875,
0.0659216046333313,
-0.12235088646411896,
0.049696967005729675,
-0.24709907174110413,
-0.12648867070674896,
-0.17555555701255798,
0.16636832058429718,
-0.18759529292583466,
-0.2554455101490021,
0.24791960418224335,
0.1119256466627121,
-0.326698362827301,
-0.2127222865819931,
0.08012726157903671,
0.07626773416996002,
-0.7130563855171204,
-0.20004843175411224,
-0.11349207162857056,
-0.14745120704174042,
-0.05904792994260788,
0.08652348816394806,
-0.1103302538394928,
0.19841045141220093,
0.1098320335149765,
-0.02925841696560383,
-0.15767738223075867,
-0.3824410140514374,
0.6548928022384644,
0.3079107701778412,
0.09668953716754913,
-0.4028111696243286,
0.07457010447978973,
0.05198413506150246,
0.17514562606811523,
0.1673048734664917,
-0.16686564683914185,
-0.006051845848560333,
-0.10989917069673538,
-0.04088346287608147,
0.15313641726970673,
-0.3298504650592804,
0.4263611137866974,
0.23925387859344482,
0.07831594347953796,
0.27850645780563354,
0.00042209774255752563,
0.04812498390674591,
-0.029270906001329422,
0.490491658449173,
-0.14701524376869202,
0.04515235498547554,
-0.23982922732830048,
-0.11434312164783478,
-0.15328139066696167,
0.030299648642539978,
0.010627634823322296,
-0.20775561034679413,
-0.12809649109840393,
0.14922448992729187,
-0.16171906888484955,
-0.037258826196193695,
0.27529093623161316,
-0.7325529456138611,
-0.07514510303735733,
-0.09447243064641953,
-0.028463900089263916,
0.04528409615159035,
0.44044065475463867,
-0.10819805413484573,
-0.11886095255613327,
0.17016059160232544,
-0.00820230133831501,
0.6488147974014282,
0.06172554939985275,
0.49407505989074707,
0.31025785207748413,
0.1985444724559784,
-0.3425166606903076,
-0.38013750314712524,
-0.43936607241630554,
-0.17255249619483948,
0.5286620855331421,
0.15605443716049194,
-0.2542397975921631,
-0.2872357666492462,
0.21373093128204346,
-0.10232770442962646,
-0.19476117193698883,
0.0963846817612648,
-0.420390248298645,
-0.23837223649024963,
0.33224713802337646,
-0.037344031035900116,
0.1644621342420578,
0.05956018343567848,
-0.0016738809645175934,
0.07826957106590271,
0.23689033091068268,
-0.46082064509391785,
0.4027179479598999,
0.3578066825866699,
0.12857791781425476,
0.35036271810531616,
0.024371761828660965,
0.37490415573120117,
0.11767169833183289,
-0.46493810415267944,
0.236498162150383,
-0.1561972200870514,
-0.04619298875331879,
0.17196285724639893,
-0.2602120339870453,
0.34168723225593567,
-0.06599177420139313,
-0.10732243955135345,
-0.048986829817295074,
-0.38393306732177734,
0.28621596097946167,
-0.3703194558620453,
0.30199822783470154,
0.3484680652618408,
0.24248570203781128,
0.020128846168518066,
-0.15553121268749237,
0.12221971899271011,
-0.11809822916984558,
-0.26283904910087585,
-0.211348295211792,
-0.01615375280380249,
-0.4556926190853119,
0.08491966128349304,
-0.21041038632392883,
0.6448173522949219,
0.045351624488830566,
0.0006919801235198975,
0.10229916870594025,
-0.34347468614578247,
0.5957661867141724,
-0.11621249467134476,
0.13951759040355682,
-0.2881873846054077,
-0.08220304548740387,
0.06939632445573807,
0.06554317474365234,
-0.1502901315689087,
0.42535150051116943,
-0.15432775020599365,
0.42215755581855774,
0.18519403040409088,
0.007249705493450165,
0.03674495965242386,
0.14724674820899963,
0.5044360160827637,
0.13582219183444977,
-0.20589017868041992,
0.1806865632534027,
-0.22780360281467438,
0.13816775381565094,
-0.10229190438985825,
-0.02002321183681488,
0.1115604043006897,
-0.27110809087753296,
-0.20803993940353394,
-0.14581508934497833,
-0.30248913168907166,
-0.08702020347118378,
0.4241003692150116,
0.10370288789272308,
-0.16669969260692596,
0.03688488155603409,
0.5649838447570801,
0.23046563565731049,
-0.2195443958044052,
-0.0636170357465744,
0.1668863296508789,
0.3394560217857361,
0.09629503637552261,
0.2072872817516327,
0.31981438398361206,
0.0012473873794078827,
-0.2308746874332428,
-0.016640499234199524,
0.08016335964202881,
0.17380842566490173,
-0.34814995527267456,
-0.10174195468425751,
-0.046893998980522156,
-0.12306772917509079,
0.22461582720279694,
0.287522554397583,
0.13450174033641815,
-0.2777552604675293,
0.1477760523557663,
0.04211042821407318,
-0.4823467433452606,
0.08805523812770844,
0.1862146407365799,
-0.446696013212204,
0.12845087051391602,
0.4110444486141205,
-0.3931843936443329,
0.319915235042572,
0.28903713822364807,
-0.07670179009437561,
-0.008669141680002213,
-0.26833322644233704,
0.08292987197637558,
0.02079274319112301,
-0.5002560615539551,
0.15103654563426971,
0.06824246793985367,
-0.3127126693725586,
-0.06179949268698692,
0.3585748076438904,
0.3742305636405945,
-0.04572358727455139,
-0.045919571071863174,
0.0495661124587059,
-0.12660667300224304,
-0.03153613209724426,
-0.052550721913576126,
0.29492413997650146,
-0.0991954356431961,
0.2035389095544815,
-0.0005555525422096252,
0.24771882593631744,
-0.3138471245765686,
-0.1842353492975235,
-0.36278706789016724,
0.1797090619802475,
-0.007426178082823753,
-0.008049573749303818,
-0.22068656980991364,
-0.08024908602237701,
0.20637375116348267,
-0.20195822417736053,
-0.07713630050420761,
-0.23787730932235718,
0.049076054245233536,
0.10978668928146362,
-0.06195404380559921,
0.04754268378019333,
-0.24244025349617004,
0.07746124267578125,
0.040033161640167236,
0.01093880645930767,
-0.06157431751489639,
0.06705906987190247,
0.09701233357191086,
0.8924071788787842,
0.10893663018941879,
-0.03452491760253906,
0.12641382217407227,
-0.04720526188611984,
-0.09084081649780273,
-0.13989074528217316,
-0.03531460091471672,
0.22051650285720825,
0.25972598791122437,
0.07087559998035431,
-0.24794240295886993,
0.10922564566135406,
-0.4701383709907532,
0.06706011295318604,
-0.10033852607011795,
-0.3349018692970276,
0.17072702944278717,
-0.11029085516929626,
0.2450983226299286,
-0.0020982474088668823,
-0.05650239437818527,
-0.07533779740333557,
0.19672611355781555,
0.2744041681289673,
-0.14405955374240875,
0.29913783073425293,
0.3024625778198242,
0.12852990627288818,
0.20637574791908264,
0.27660566568374634,
-0.08614085614681244,
-0.09184479713439941,
0.044616732746362686,
0.1708592176437378,
0.25332072377204895,
-0.15568192303180695,
0.014833392575383186,
0.23541802167892456,
-0.3778323829174042,
-0.1394175887107849,
0.233890101313591,
-0.5454509854316711,
-0.25998538732528687,
-0.06353217363357544,
0.3590613603591919,
0.47308364510536194,
0.24429041147232056,
0.22485388815402985,
-0.11749657243490219,
0.5504234433174133,
-0.1005651205778122,
0.11489903926849365,
-0.19030016660690308,
0.15680843591690063,
-0.026905320584774017,
0.422830730676651,
-0.22543421387672424,
-0.2896818220615387,
-0.14281851053237915,
0.0741950049996376,
0.012341754510998726,
-0.4227364659309387,
-0.3647424280643463,
0.07755839079618454,
-0.27781543135643005,
0.09376963973045349,
0.02724289894104004,
-0.06893499195575714,
0.42622190713882446,
-0.015630632638931274,
0.029314391314983368,
-0.3624058663845062,
-0.6591201424598694,
0.08273090422153473,
0.2454967498779297,
-0.030819939449429512,
0.3564579486846924,
0.013535253703594208,
-0.023416362702846527,
0.08269399404525757,
0.4850858449935913,
-0.02170814946293831,
-0.15393702685832977,
-0.1377490907907486,
-0.2947843074798584,
-0.19909723103046417,
-0.17983478307724,
-0.19977372884750366,
0.11430677026510239,
-0.06895345449447632,
-0.20472604036331177,
0.22563207149505615,
0.13329379260540009,
-0.033867985010147095,
0.4815892279148102,
-0.30655765533447266,
-0.1352899670600891,
-0.1985163390636444,
0.4735819101333618,
0.05333252251148224,
-0.08433880656957626,
-0.04198858141899109,
0.004211656749248505,
-0.2606089115142822,
-0.1726102977991104,
0.010212788358330727,
-0.06900621205568314,
0.2692812383174896,
-0.31078916788101196,
0.0877804234623909,
0.08726009726524353,
0.48144933581352234,
-0.28419187664985657,
0.1334255337715149,
-0.15048417448997498,
0.15816794335842133,
-0.18487530946731567,
-0.14636093378067017,
-0.036306846886873245,
-0.16399912536144257,
-0.12060655653476715,
-0.058960020542144775,
0.1612274944782257,
-0.07762625813484192,
0.050392746925354004,
0.35956963896751404,
-0.11823917180299759,
-0.0655154213309288,
-0.3488408029079437,
0.34651756286621094,
0.06192444637417793,
0.36269140243530273,
0.2391088902950287,
-0.12598630785942078,
0.1356222778558731,
0.11258184909820557,
0.08265519887208939,
0.10623206943273544,
0.1661253422498703,
-0.09636037051677704,
0.27698010206222534,
0.19938376545906067,
0.08972764015197754,
0.4974398910999298,
0.056762874126434326,
0.17370836436748505,
-0.2943831980228424,
-0.3370409309864044,
-0.36085063219070435,
-0.10455336421728134,
-0.2991921007633209,
0.40716445446014404,
-0.0568980872631073,
0.005760185420513153,
0.10979511588811874,
-0.12080241739749908,
0.1738741546869278,
0.3284972310066223,
-0.233224555850029,
0.1424812227487564,
-0.06964564323425293,
-0.021369848400354385,
-0.01136109046638012,
-0.15444046258926392,
0.15083611011505127,
-0.06890170276165009,
-0.15474039316177368,
-0.5150070786476135,
0.6079292297363281,
-0.17488978803157806,
-0.12970635294914246,
-0.07439370453357697,
0.3857114315032959,
0.32967713475227356,
-0.13160891830921173,
-0.5880601406097412,
-0.22726675868034363,
0.4960271716117859,
0.19417238235473633,
-0.4108330011367798,
0.3343150317668915,
0.13902877271175385,
0.214457705616951,
0.09442731738090515,
-0.08707515895366669,
0.3029441237449646,
0.04614262282848358,
-0.03722051903605461,
-0.2824230194091797
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | > I'm a little confused with the data size.
> `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
> From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
> Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
Have you figured out this problem? AFAIK, the original sst-2 dataset is totally different from the GLUE/sst-2. Do you think so? | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 89 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
> I'm a little confused with the data size.
> `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
> From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
> Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
Have you figured out this problem? AFAIK, the original sst-2 dataset is totally different from the GLUE/sst-2. Do you think so? | [
0.3236769437789917,
-0.3612537682056427,
-0.09375040233135223,
0.17786206305027008,
-0.0011136941611766815,
0.10074936598539352,
0.33618444204330444,
0.449954628944397,
0.5752965807914734,
0.014867007732391357,
-0.12565448880195618,
0.13467815518379211,
-0.14737413823604584,
0.2773216664791107,
0.33337998390197754,
-0.053047679364681244,
0.10838038474321365,
0.31975048780441284,
-0.1676013320684433,
-0.2568300664424896,
-0.03263837471604347,
0.3825787305831909,
-0.14461302757263184,
0.19946548342704773,
-0.28053390979766846,
0.24851638078689575,
0.0017216037958860397,
-0.09634100645780563,
-0.03161931782960892,
-0.5869408249855042,
0.20443370938301086,
0.20650121569633484,
0.2146633416414261,
0.04102370887994766,
-0.0001139118685387075,
0.043877013027668,
0.19964449107646942,
-0.1350758671760559,
-0.2542114555835724,
-0.12165839970111847,
-0.10567601770162582,
-0.2028762251138687,
0.045861415565013885,
-0.10591477155685425,
-0.3367512822151184,
0.15860413014888763,
0.046821027994155884,
0.00708356499671936,
0.16406258940696716,
0.15194346010684967,
0.17462968826293945,
-0.0413375198841095,
0.003840893507003784,
0.00024254154413938522,
0.09865263849496841,
-0.35794180631637573,
0.00702427513897419,
0.04189849644899368,
-0.04498925805091858,
-0.19236794114112854,
0.2850553095340729,
0.4425397515296936,
0.1635226458311081,
0.3538922667503357,
0.08915652334690094,
-0.10861755907535553,
0.29010337591171265,
-0.2414475679397583,
0.05704464390873909,
0.1071271002292633,
0.157833069562912,
-0.1571207344532013,
-0.24079112708568573,
-0.11643816530704498,
-0.05656162649393082,
0.10065722465515137,
-0.005957223474979401,
0.027623260393738747,
0.21763674914836884,
0.2936670482158661,
-0.01936729997396469,
-0.09277702867984772,
-0.16660144925117493,
0.08752448111772537,
0.04443838447332382,
0.5951554775238037,
0.05255750194191933,
0.13232943415641785,
0.3667910099029541,
0.08864639699459076,
-0.42316076159477234,
0.2890285849571228,
-0.2783510684967041,
0.1741923838853836,
-0.5723796486854553,
-0.1834569126367569,
0.19603922963142395,
-0.002869516611099243,
-0.21506619453430176,
0.10167303681373596,
0.025421861559152603,
0.02758380025625229,
0.3623884618282318,
-0.051707275211811066,
-0.018416937440633774,
0.32787561416625977,
0.532133162021637,
0.35786107182502747,
0.027929630130529404,
-0.1615816354751587,
0.0433751605451107,
0.16716930270195007,
-0.32545211911201477,
-0.2536091208457947,
0.05579042062163353,
0.20358982682228088,
0.0716068223118782,
-0.35348987579345703,
-0.3213394284248352,
-0.06896516680717468,
-0.39757734537124634,
0.11827552318572998,
0.10451039671897888,
0.013810388743877411,
0.2748115062713623,
0.028539732098579407,
-0.1252363920211792,
-0.005990680307149887,
-0.11779429763555527,
-0.38688409328460693,
-0.2563752830028534,
0.13177338242530823,
-0.17771457135677338,
0.01841171272099018,
0.40443575382232666,
0.1601777970790863,
0.16646388173103333,
-0.292144775390625,
-0.36222773790359497,
-0.04228205606341362,
0.1334695816040039,
-0.04349376633763313,
0.18527773022651672,
0.34856948256492615,
-0.28408005833625793,
0.37847673892974854,
0.24288885295391083,
-0.5122995376586914,
-0.14108571410179138,
-0.2726309299468994,
-0.02923937886953354,
-0.07268904894590378,
0.06737194955348969,
0.14270082116127014,
-0.30557703971862793,
-0.06546884030103683,
-0.0006731376051902771,
0.3467409312725067,
-0.04100034385919571,
0.12588419020175934,
0.04871629923582077,
-0.23691906034946442,
0.0019329674541950226,
0.25379282236099243,
0.22849947214126587,
0.24465662240982056,
-0.45920270681381226,
-0.09783828258514404,
0.3145688772201538,
-0.01792481169104576,
-0.1690031886100769,
0.1724623739719391,
0.21617625653743744,
0.14936606585979462,
-0.06026601791381836,
0.20516778528690338,
0.3542279303073883,
-0.30272582173347473,
-0.3342142403125763,
0.10459005832672119,
-0.28814971446990967,
-0.4994364380836487,
0.032340943813323975,
0.060902632772922516,
-0.0006797779351472855,
0.10404478758573532,
-0.042171187698841095,
-0.34075331687927246,
0.12075474113225937,
0.0356195867061615,
-0.5237576961517334,
0.2544217109680176,
0.5446699261665344,
-0.016373788937926292,
-0.025428134948015213,
-0.12888607382774353,
-0.34309443831443787,
0.19785559177398682,
0.14037716388702393,
0.05447147414088249,
0.036712005734443665,
0.15441614389419556,
0.17454217374324799,
-0.12684160470962524,
0.08580406755208969,
-0.09543530642986298,
-0.17722508311271667,
0.19450244307518005,
0.013030819594860077,
0.3939722776412964,
0.5494515299797058,
0.06488391757011414,
-0.399976521730423,
-0.20422187447547913,
0.03571343421936035,
-0.2271704375743866,
0.17650339007377625,
0.4278757572174072,
0.39454805850982666,
-0.04702496901154518,
0.0751006007194519,
-0.011027254164218903,
0.28155070543289185,
0.009615916758775711,
-0.21090997755527496,
0.23462529480457306,
0.08188188821077347,
-0.24157339334487915,
0.07868677377700806,
0.29264771938323975,
0.2893488109111786,
-0.09177561849355698,
0.032261356711387634,
0.22111710906028748,
-0.20145615935325623,
-0.05460284650325775,
0.08865448087453842,
0.29562658071517944,
-0.08880233764648438,
-0.4509788751602173,
-0.25709447264671326,
0.5002955794334412,
-0.0395481139421463,
-0.020869016647338867,
-0.07503228634595871,
0.07552343606948853,
-0.05294446274638176,
0.1584230214357376,
-0.1140921413898468,
0.15477806329727173,
-0.03772629424929619,
-0.05912952870130539,
-0.467159241437912,
-0.05292888730764389,
0.22411859035491943,
-0.43858057260513306,
-0.007665123790502548,
0.13175445795059204,
-0.046288371086120605,
0.3177294135093689,
0.22819554805755615,
0.1615164428949356,
0.09794753789901733,
-0.20214873552322388,
-0.20776015520095825,
-0.09145282953977585,
0.2668095529079437,
0.29076874256134033,
-0.01921635866165161,
0.19565483927726746,
0.056212928146123886,
-0.23100131750106812,
-0.5293565392494202,
-0.03980351239442825,
0.013005688786506653,
-0.09802074730396271,
-0.2299809455871582,
-0.13324183225631714,
0.3371712267398834,
-0.3350442945957184,
-0.1945854127407074,
0.2070709466934204,
-0.06920459121465683,
0.37862250208854675,
-0.6263083219528198,
-0.06222347915172577,
-0.11877095699310303,
-0.12420904636383057,
-0.27603474259376526,
-0.052022986114025116,
0.010321816429495811,
-0.2586914896965027,
0.35586875677108765,
0.04935786873102188,
0.08481544256210327,
0.08254726976156235,
-0.0007391907274723053,
0.16189317405223846,
-0.14972826838493347,
0.20431023836135864,
-0.300150990486145,
-0.12423394620418549,
-0.25058799982070923,
-0.00016635842621326447,
-0.22512651979923248,
0.34160834550857544,
0.03140478953719139,
-0.16156721115112305,
-0.4707099199295044,
0.20105402171611786,
-0.3075321912765503,
-0.05090949684381485,
-0.3116735816001892,
0.1930033415555954,
0.22377456724643707,
0.15178748965263367,
-0.20707371830940247,
0.13810350000858307,
0.10404618084430695,
-0.10741429030895233,
-0.10880305618047714,
0.11961489915847778,
0.031483203172683716,
0.0655655637383461,
-0.46396559476852417,
-0.4390852153301239,
-0.013932866975665092,
0.04091669246554375,
0.40105438232421875,
0.0659216046333313,
-0.12235088646411896,
0.049696967005729675,
-0.24709907174110413,
-0.12648867070674896,
-0.17555555701255798,
0.16636832058429718,
-0.18759529292583466,
-0.2554455101490021,
0.24791960418224335,
0.1119256466627121,
-0.326698362827301,
-0.2127222865819931,
0.08012726157903671,
0.07626773416996002,
-0.7130563855171204,
-0.20004843175411224,
-0.11349207162857056,
-0.14745120704174042,
-0.05904792994260788,
0.08652348816394806,
-0.1103302538394928,
0.19841045141220093,
0.1098320335149765,
-0.02925841696560383,
-0.15767738223075867,
-0.3824410140514374,
0.6548928022384644,
0.3079107701778412,
0.09668953716754913,
-0.4028111696243286,
0.07457010447978973,
0.05198413506150246,
0.17514562606811523,
0.1673048734664917,
-0.16686564683914185,
-0.006051845848560333,
-0.10989917069673538,
-0.04088346287608147,
0.15313641726970673,
-0.3298504650592804,
0.4263611137866974,
0.23925387859344482,
0.07831594347953796,
0.27850645780563354,
0.00042209774255752563,
0.04812498390674591,
-0.029270906001329422,
0.490491658449173,
-0.14701524376869202,
0.04515235498547554,
-0.23982922732830048,
-0.11434312164783478,
-0.15328139066696167,
0.030299648642539978,
0.010627634823322296,
-0.20775561034679413,
-0.12809649109840393,
0.14922448992729187,
-0.16171906888484955,
-0.037258826196193695,
0.27529093623161316,
-0.7325529456138611,
-0.07514510303735733,
-0.09447243064641953,
-0.028463900089263916,
0.04528409615159035,
0.44044065475463867,
-0.10819805413484573,
-0.11886095255613327,
0.17016059160232544,
-0.00820230133831501,
0.6488147974014282,
0.06172554939985275,
0.49407505989074707,
0.31025785207748413,
0.1985444724559784,
-0.3425166606903076,
-0.38013750314712524,
-0.43936607241630554,
-0.17255249619483948,
0.5286620855331421,
0.15605443716049194,
-0.2542397975921631,
-0.2872357666492462,
0.21373093128204346,
-0.10232770442962646,
-0.19476117193698883,
0.0963846817612648,
-0.420390248298645,
-0.23837223649024963,
0.33224713802337646,
-0.037344031035900116,
0.1644621342420578,
0.05956018343567848,
-0.0016738809645175934,
0.07826957106590271,
0.23689033091068268,
-0.46082064509391785,
0.4027179479598999,
0.3578066825866699,
0.12857791781425476,
0.35036271810531616,
0.024371761828660965,
0.37490415573120117,
0.11767169833183289,
-0.46493810415267944,
0.236498162150383,
-0.1561972200870514,
-0.04619298875331879,
0.17196285724639893,
-0.2602120339870453,
0.34168723225593567,
-0.06599177420139313,
-0.10732243955135345,
-0.048986829817295074,
-0.38393306732177734,
0.28621596097946167,
-0.3703194558620453,
0.30199822783470154,
0.3484680652618408,
0.24248570203781128,
0.020128846168518066,
-0.15553121268749237,
0.12221971899271011,
-0.11809822916984558,
-0.26283904910087585,
-0.211348295211792,
-0.01615375280380249,
-0.4556926190853119,
0.08491966128349304,
-0.21041038632392883,
0.6448173522949219,
0.045351624488830566,
0.0006919801235198975,
0.10229916870594025,
-0.34347468614578247,
0.5957661867141724,
-0.11621249467134476,
0.13951759040355682,
-0.2881873846054077,
-0.08220304548740387,
0.06939632445573807,
0.06554317474365234,
-0.1502901315689087,
0.42535150051116943,
-0.15432775020599365,
0.42215755581855774,
0.18519403040409088,
0.007249705493450165,
0.03674495965242386,
0.14724674820899963,
0.5044360160827637,
0.13582219183444977,
-0.20589017868041992,
0.1806865632534027,
-0.22780360281467438,
0.13816775381565094,
-0.10229190438985825,
-0.02002321183681488,
0.1115604043006897,
-0.27110809087753296,
-0.20803993940353394,
-0.14581508934497833,
-0.30248913168907166,
-0.08702020347118378,
0.4241003692150116,
0.10370288789272308,
-0.16669969260692596,
0.03688488155603409,
0.5649838447570801,
0.23046563565731049,
-0.2195443958044052,
-0.0636170357465744,
0.1668863296508789,
0.3394560217857361,
0.09629503637552261,
0.2072872817516327,
0.31981438398361206,
0.0012473873794078827,
-0.2308746874332428,
-0.016640499234199524,
0.08016335964202881,
0.17380842566490173,
-0.34814995527267456,
-0.10174195468425751,
-0.046893998980522156,
-0.12306772917509079,
0.22461582720279694,
0.287522554397583,
0.13450174033641815,
-0.2777552604675293,
0.1477760523557663,
0.04211042821407318,
-0.4823467433452606,
0.08805523812770844,
0.1862146407365799,
-0.446696013212204,
0.12845087051391602,
0.4110444486141205,
-0.3931843936443329,
0.319915235042572,
0.28903713822364807,
-0.07670179009437561,
-0.008669141680002213,
-0.26833322644233704,
0.08292987197637558,
0.02079274319112301,
-0.5002560615539551,
0.15103654563426971,
0.06824246793985367,
-0.3127126693725586,
-0.06179949268698692,
0.3585748076438904,
0.3742305636405945,
-0.04572358727455139,
-0.045919571071863174,
0.0495661124587059,
-0.12660667300224304,
-0.03153613209724426,
-0.052550721913576126,
0.29492413997650146,
-0.0991954356431961,
0.2035389095544815,
-0.0005555525422096252,
0.24771882593631744,
-0.3138471245765686,
-0.1842353492975235,
-0.36278706789016724,
0.1797090619802475,
-0.007426178082823753,
-0.008049573749303818,
-0.22068656980991364,
-0.08024908602237701,
0.20637375116348267,
-0.20195822417736053,
-0.07713630050420761,
-0.23787730932235718,
0.049076054245233536,
0.10978668928146362,
-0.06195404380559921,
0.04754268378019333,
-0.24244025349617004,
0.07746124267578125,
0.040033161640167236,
0.01093880645930767,
-0.06157431751489639,
0.06705906987190247,
0.09701233357191086,
0.8924071788787842,
0.10893663018941879,
-0.03452491760253906,
0.12641382217407227,
-0.04720526188611984,
-0.09084081649780273,
-0.13989074528217316,
-0.03531460091471672,
0.22051650285720825,
0.25972598791122437,
0.07087559998035431,
-0.24794240295886993,
0.10922564566135406,
-0.4701383709907532,
0.06706011295318604,
-0.10033852607011795,
-0.3349018692970276,
0.17072702944278717,
-0.11029085516929626,
0.2450983226299286,
-0.0020982474088668823,
-0.05650239437818527,
-0.07533779740333557,
0.19672611355781555,
0.2744041681289673,
-0.14405955374240875,
0.29913783073425293,
0.3024625778198242,
0.12852990627288818,
0.20637574791908264,
0.27660566568374634,
-0.08614085614681244,
-0.09184479713439941,
0.044616732746362686,
0.1708592176437378,
0.25332072377204895,
-0.15568192303180695,
0.014833392575383186,
0.23541802167892456,
-0.3778323829174042,
-0.1394175887107849,
0.233890101313591,
-0.5454509854316711,
-0.25998538732528687,
-0.06353217363357544,
0.3590613603591919,
0.47308364510536194,
0.24429041147232056,
0.22485388815402985,
-0.11749657243490219,
0.5504234433174133,
-0.1005651205778122,
0.11489903926849365,
-0.19030016660690308,
0.15680843591690063,
-0.026905320584774017,
0.422830730676651,
-0.22543421387672424,
-0.2896818220615387,
-0.14281851053237915,
0.0741950049996376,
0.012341754510998726,
-0.4227364659309387,
-0.3647424280643463,
0.07755839079618454,
-0.27781543135643005,
0.09376963973045349,
0.02724289894104004,
-0.06893499195575714,
0.42622190713882446,
-0.015630632638931274,
0.029314391314983368,
-0.3624058663845062,
-0.6591201424598694,
0.08273090422153473,
0.2454967498779297,
-0.030819939449429512,
0.3564579486846924,
0.013535253703594208,
-0.023416362702846527,
0.08269399404525757,
0.4850858449935913,
-0.02170814946293831,
-0.15393702685832977,
-0.1377490907907486,
-0.2947843074798584,
-0.19909723103046417,
-0.17983478307724,
-0.19977372884750366,
0.11430677026510239,
-0.06895345449447632,
-0.20472604036331177,
0.22563207149505615,
0.13329379260540009,
-0.033867985010147095,
0.4815892279148102,
-0.30655765533447266,
-0.1352899670600891,
-0.1985163390636444,
0.4735819101333618,
0.05333252251148224,
-0.08433880656957626,
-0.04198858141899109,
0.004211656749248505,
-0.2606089115142822,
-0.1726102977991104,
0.010212788358330727,
-0.06900621205568314,
0.2692812383174896,
-0.31078916788101196,
0.0877804234623909,
0.08726009726524353,
0.48144933581352234,
-0.28419187664985657,
0.1334255337715149,
-0.15048417448997498,
0.15816794335842133,
-0.18487530946731567,
-0.14636093378067017,
-0.036306846886873245,
-0.16399912536144257,
-0.12060655653476715,
-0.058960020542144775,
0.1612274944782257,
-0.07762625813484192,
0.050392746925354004,
0.35956963896751404,
-0.11823917180299759,
-0.0655154213309288,
-0.3488408029079437,
0.34651756286621094,
0.06192444637417793,
0.36269140243530273,
0.2391088902950287,
-0.12598630785942078,
0.1356222778558731,
0.11258184909820557,
0.08265519887208939,
0.10623206943273544,
0.1661253422498703,
-0.09636037051677704,
0.27698010206222534,
0.19938376545906067,
0.08972764015197754,
0.4974398910999298,
0.056762874126434326,
0.17370836436748505,
-0.2943831980228424,
-0.3370409309864044,
-0.36085063219070435,
-0.10455336421728134,
-0.2991921007633209,
0.40716445446014404,
-0.0568980872631073,
0.005760185420513153,
0.10979511588811874,
-0.12080241739749908,
0.1738741546869278,
0.3284972310066223,
-0.233224555850029,
0.1424812227487564,
-0.06964564323425293,
-0.021369848400354385,
-0.01136109046638012,
-0.15444046258926392,
0.15083611011505127,
-0.06890170276165009,
-0.15474039316177368,
-0.5150070786476135,
0.6079292297363281,
-0.17488978803157806,
-0.12970635294914246,
-0.07439370453357697,
0.3857114315032959,
0.32967713475227356,
-0.13160891830921173,
-0.5880601406097412,
-0.22726675868034363,
0.4960271716117859,
0.19417238235473633,
-0.4108330011367798,
0.3343150317668915,
0.13902877271175385,
0.214457705616951,
0.09442731738090515,
-0.08707515895366669,
0.3029441237449646,
0.04614262282848358,
-0.03722051903605461,
-0.2824230194091797
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | @yc1999 Sorry, I didn't solve this conflict. In the end, I just use a local data file provided by the previous work I followed(for consistent comparison), not use `datasets` package.
Related information: https://github.com/thunlp/OpenAttack/issues/146#issuecomment-766323571 | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 33 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
@yc1999 Sorry, I didn't solve this conflict. In the end, I just use a local data file provided by the previous work I followed(for consistent comparison), not use `datasets` package.
Related information: https://github.com/thunlp/OpenAttack/issues/146#issuecomment-766323571 | [
0.3236769437789917,
-0.3612537682056427,
-0.09375040233135223,
0.17786206305027008,
-0.0011136941611766815,
0.10074936598539352,
0.33618444204330444,
0.449954628944397,
0.5752965807914734,
0.014867007732391357,
-0.12565448880195618,
0.13467815518379211,
-0.14737413823604584,
0.2773216664791107,
0.33337998390197754,
-0.053047679364681244,
0.10838038474321365,
0.31975048780441284,
-0.1676013320684433,
-0.2568300664424896,
-0.03263837471604347,
0.3825787305831909,
-0.14461302757263184,
0.19946548342704773,
-0.28053390979766846,
0.24851638078689575,
0.0017216037958860397,
-0.09634100645780563,
-0.03161931782960892,
-0.5869408249855042,
0.20443370938301086,
0.20650121569633484,
0.2146633416414261,
0.04102370887994766,
-0.0001139118685387075,
0.043877013027668,
0.19964449107646942,
-0.1350758671760559,
-0.2542114555835724,
-0.12165839970111847,
-0.10567601770162582,
-0.2028762251138687,
0.045861415565013885,
-0.10591477155685425,
-0.3367512822151184,
0.15860413014888763,
0.046821027994155884,
0.00708356499671936,
0.16406258940696716,
0.15194346010684967,
0.17462968826293945,
-0.0413375198841095,
0.003840893507003784,
0.00024254154413938522,
0.09865263849496841,
-0.35794180631637573,
0.00702427513897419,
0.04189849644899368,
-0.04498925805091858,
-0.19236794114112854,
0.2850553095340729,
0.4425397515296936,
0.1635226458311081,
0.3538922667503357,
0.08915652334690094,
-0.10861755907535553,
0.29010337591171265,
-0.2414475679397583,
0.05704464390873909,
0.1071271002292633,
0.157833069562912,
-0.1571207344532013,
-0.24079112708568573,
-0.11643816530704498,
-0.05656162649393082,
0.10065722465515137,
-0.005957223474979401,
0.027623260393738747,
0.21763674914836884,
0.2936670482158661,
-0.01936729997396469,
-0.09277702867984772,
-0.16660144925117493,
0.08752448111772537,
0.04443838447332382,
0.5951554775238037,
0.05255750194191933,
0.13232943415641785,
0.3667910099029541,
0.08864639699459076,
-0.42316076159477234,
0.2890285849571228,
-0.2783510684967041,
0.1741923838853836,
-0.5723796486854553,
-0.1834569126367569,
0.19603922963142395,
-0.002869516611099243,
-0.21506619453430176,
0.10167303681373596,
0.025421861559152603,
0.02758380025625229,
0.3623884618282318,
-0.051707275211811066,
-0.018416937440633774,
0.32787561416625977,
0.532133162021637,
0.35786107182502747,
0.027929630130529404,
-0.1615816354751587,
0.0433751605451107,
0.16716930270195007,
-0.32545211911201477,
-0.2536091208457947,
0.05579042062163353,
0.20358982682228088,
0.0716068223118782,
-0.35348987579345703,
-0.3213394284248352,
-0.06896516680717468,
-0.39757734537124634,
0.11827552318572998,
0.10451039671897888,
0.013810388743877411,
0.2748115062713623,
0.028539732098579407,
-0.1252363920211792,
-0.005990680307149887,
-0.11779429763555527,
-0.38688409328460693,
-0.2563752830028534,
0.13177338242530823,
-0.17771457135677338,
0.01841171272099018,
0.40443575382232666,
0.1601777970790863,
0.16646388173103333,
-0.292144775390625,
-0.36222773790359497,
-0.04228205606341362,
0.1334695816040039,
-0.04349376633763313,
0.18527773022651672,
0.34856948256492615,
-0.28408005833625793,
0.37847673892974854,
0.24288885295391083,
-0.5122995376586914,
-0.14108571410179138,
-0.2726309299468994,
-0.02923937886953354,
-0.07268904894590378,
0.06737194955348969,
0.14270082116127014,
-0.30557703971862793,
-0.06546884030103683,
-0.0006731376051902771,
0.3467409312725067,
-0.04100034385919571,
0.12588419020175934,
0.04871629923582077,
-0.23691906034946442,
0.0019329674541950226,
0.25379282236099243,
0.22849947214126587,
0.24465662240982056,
-0.45920270681381226,
-0.09783828258514404,
0.3145688772201538,
-0.01792481169104576,
-0.1690031886100769,
0.1724623739719391,
0.21617625653743744,
0.14936606585979462,
-0.06026601791381836,
0.20516778528690338,
0.3542279303073883,
-0.30272582173347473,
-0.3342142403125763,
0.10459005832672119,
-0.28814971446990967,
-0.4994364380836487,
0.032340943813323975,
0.060902632772922516,
-0.0006797779351472855,
0.10404478758573532,
-0.042171187698841095,
-0.34075331687927246,
0.12075474113225937,
0.0356195867061615,
-0.5237576961517334,
0.2544217109680176,
0.5446699261665344,
-0.016373788937926292,
-0.025428134948015213,
-0.12888607382774353,
-0.34309443831443787,
0.19785559177398682,
0.14037716388702393,
0.05447147414088249,
0.036712005734443665,
0.15441614389419556,
0.17454217374324799,
-0.12684160470962524,
0.08580406755208969,
-0.09543530642986298,
-0.17722508311271667,
0.19450244307518005,
0.013030819594860077,
0.3939722776412964,
0.5494515299797058,
0.06488391757011414,
-0.399976521730423,
-0.20422187447547913,
0.03571343421936035,
-0.2271704375743866,
0.17650339007377625,
0.4278757572174072,
0.39454805850982666,
-0.04702496901154518,
0.0751006007194519,
-0.011027254164218903,
0.28155070543289185,
0.009615916758775711,
-0.21090997755527496,
0.23462529480457306,
0.08188188821077347,
-0.24157339334487915,
0.07868677377700806,
0.29264771938323975,
0.2893488109111786,
-0.09177561849355698,
0.032261356711387634,
0.22111710906028748,
-0.20145615935325623,
-0.05460284650325775,
0.08865448087453842,
0.29562658071517944,
-0.08880233764648438,
-0.4509788751602173,
-0.25709447264671326,
0.5002955794334412,
-0.0395481139421463,
-0.020869016647338867,
-0.07503228634595871,
0.07552343606948853,
-0.05294446274638176,
0.1584230214357376,
-0.1140921413898468,
0.15477806329727173,
-0.03772629424929619,
-0.05912952870130539,
-0.467159241437912,
-0.05292888730764389,
0.22411859035491943,
-0.43858057260513306,
-0.007665123790502548,
0.13175445795059204,
-0.046288371086120605,
0.3177294135093689,
0.22819554805755615,
0.1615164428949356,
0.09794753789901733,
-0.20214873552322388,
-0.20776015520095825,
-0.09145282953977585,
0.2668095529079437,
0.29076874256134033,
-0.01921635866165161,
0.19565483927726746,
0.056212928146123886,
-0.23100131750106812,
-0.5293565392494202,
-0.03980351239442825,
0.013005688786506653,
-0.09802074730396271,
-0.2299809455871582,
-0.13324183225631714,
0.3371712267398834,
-0.3350442945957184,
-0.1945854127407074,
0.2070709466934204,
-0.06920459121465683,
0.37862250208854675,
-0.6263083219528198,
-0.06222347915172577,
-0.11877095699310303,
-0.12420904636383057,
-0.27603474259376526,
-0.052022986114025116,
0.010321816429495811,
-0.2586914896965027,
0.35586875677108765,
0.04935786873102188,
0.08481544256210327,
0.08254726976156235,
-0.0007391907274723053,
0.16189317405223846,
-0.14972826838493347,
0.20431023836135864,
-0.300150990486145,
-0.12423394620418549,
-0.25058799982070923,
-0.00016635842621326447,
-0.22512651979923248,
0.34160834550857544,
0.03140478953719139,
-0.16156721115112305,
-0.4707099199295044,
0.20105402171611786,
-0.3075321912765503,
-0.05090949684381485,
-0.3116735816001892,
0.1930033415555954,
0.22377456724643707,
0.15178748965263367,
-0.20707371830940247,
0.13810350000858307,
0.10404618084430695,
-0.10741429030895233,
-0.10880305618047714,
0.11961489915847778,
0.031483203172683716,
0.0655655637383461,
-0.46396559476852417,
-0.4390852153301239,
-0.013932866975665092,
0.04091669246554375,
0.40105438232421875,
0.0659216046333313,
-0.12235088646411896,
0.049696967005729675,
-0.24709907174110413,
-0.12648867070674896,
-0.17555555701255798,
0.16636832058429718,
-0.18759529292583466,
-0.2554455101490021,
0.24791960418224335,
0.1119256466627121,
-0.326698362827301,
-0.2127222865819931,
0.08012726157903671,
0.07626773416996002,
-0.7130563855171204,
-0.20004843175411224,
-0.11349207162857056,
-0.14745120704174042,
-0.05904792994260788,
0.08652348816394806,
-0.1103302538394928,
0.19841045141220093,
0.1098320335149765,
-0.02925841696560383,
-0.15767738223075867,
-0.3824410140514374,
0.6548928022384644,
0.3079107701778412,
0.09668953716754913,
-0.4028111696243286,
0.07457010447978973,
0.05198413506150246,
0.17514562606811523,
0.1673048734664917,
-0.16686564683914185,
-0.006051845848560333,
-0.10989917069673538,
-0.04088346287608147,
0.15313641726970673,
-0.3298504650592804,
0.4263611137866974,
0.23925387859344482,
0.07831594347953796,
0.27850645780563354,
0.00042209774255752563,
0.04812498390674591,
-0.029270906001329422,
0.490491658449173,
-0.14701524376869202,
0.04515235498547554,
-0.23982922732830048,
-0.11434312164783478,
-0.15328139066696167,
0.030299648642539978,
0.010627634823322296,
-0.20775561034679413,
-0.12809649109840393,
0.14922448992729187,
-0.16171906888484955,
-0.037258826196193695,
0.27529093623161316,
-0.7325529456138611,
-0.07514510303735733,
-0.09447243064641953,
-0.028463900089263916,
0.04528409615159035,
0.44044065475463867,
-0.10819805413484573,
-0.11886095255613327,
0.17016059160232544,
-0.00820230133831501,
0.6488147974014282,
0.06172554939985275,
0.49407505989074707,
0.31025785207748413,
0.1985444724559784,
-0.3425166606903076,
-0.38013750314712524,
-0.43936607241630554,
-0.17255249619483948,
0.5286620855331421,
0.15605443716049194,
-0.2542397975921631,
-0.2872357666492462,
0.21373093128204346,
-0.10232770442962646,
-0.19476117193698883,
0.0963846817612648,
-0.420390248298645,
-0.23837223649024963,
0.33224713802337646,
-0.037344031035900116,
0.1644621342420578,
0.05956018343567848,
-0.0016738809645175934,
0.07826957106590271,
0.23689033091068268,
-0.46082064509391785,
0.4027179479598999,
0.3578066825866699,
0.12857791781425476,
0.35036271810531616,
0.024371761828660965,
0.37490415573120117,
0.11767169833183289,
-0.46493810415267944,
0.236498162150383,
-0.1561972200870514,
-0.04619298875331879,
0.17196285724639893,
-0.2602120339870453,
0.34168723225593567,
-0.06599177420139313,
-0.10732243955135345,
-0.048986829817295074,
-0.38393306732177734,
0.28621596097946167,
-0.3703194558620453,
0.30199822783470154,
0.3484680652618408,
0.24248570203781128,
0.020128846168518066,
-0.15553121268749237,
0.12221971899271011,
-0.11809822916984558,
-0.26283904910087585,
-0.211348295211792,
-0.01615375280380249,
-0.4556926190853119,
0.08491966128349304,
-0.21041038632392883,
0.6448173522949219,
0.045351624488830566,
0.0006919801235198975,
0.10229916870594025,
-0.34347468614578247,
0.5957661867141724,
-0.11621249467134476,
0.13951759040355682,
-0.2881873846054077,
-0.08220304548740387,
0.06939632445573807,
0.06554317474365234,
-0.1502901315689087,
0.42535150051116943,
-0.15432775020599365,
0.42215755581855774,
0.18519403040409088,
0.007249705493450165,
0.03674495965242386,
0.14724674820899963,
0.5044360160827637,
0.13582219183444977,
-0.20589017868041992,
0.1806865632534027,
-0.22780360281467438,
0.13816775381565094,
-0.10229190438985825,
-0.02002321183681488,
0.1115604043006897,
-0.27110809087753296,
-0.20803993940353394,
-0.14581508934497833,
-0.30248913168907166,
-0.08702020347118378,
0.4241003692150116,
0.10370288789272308,
-0.16669969260692596,
0.03688488155603409,
0.5649838447570801,
0.23046563565731049,
-0.2195443958044052,
-0.0636170357465744,
0.1668863296508789,
0.3394560217857361,
0.09629503637552261,
0.2072872817516327,
0.31981438398361206,
0.0012473873794078827,
-0.2308746874332428,
-0.016640499234199524,
0.08016335964202881,
0.17380842566490173,
-0.34814995527267456,
-0.10174195468425751,
-0.046893998980522156,
-0.12306772917509079,
0.22461582720279694,
0.287522554397583,
0.13450174033641815,
-0.2777552604675293,
0.1477760523557663,
0.04211042821407318,
-0.4823467433452606,
0.08805523812770844,
0.1862146407365799,
-0.446696013212204,
0.12845087051391602,
0.4110444486141205,
-0.3931843936443329,
0.319915235042572,
0.28903713822364807,
-0.07670179009437561,
-0.008669141680002213,
-0.26833322644233704,
0.08292987197637558,
0.02079274319112301,
-0.5002560615539551,
0.15103654563426971,
0.06824246793985367,
-0.3127126693725586,
-0.06179949268698692,
0.3585748076438904,
0.3742305636405945,
-0.04572358727455139,
-0.045919571071863174,
0.0495661124587059,
-0.12660667300224304,
-0.03153613209724426,
-0.052550721913576126,
0.29492413997650146,
-0.0991954356431961,
0.2035389095544815,
-0.0005555525422096252,
0.24771882593631744,
-0.3138471245765686,
-0.1842353492975235,
-0.36278706789016724,
0.1797090619802475,
-0.007426178082823753,
-0.008049573749303818,
-0.22068656980991364,
-0.08024908602237701,
0.20637375116348267,
-0.20195822417736053,
-0.07713630050420761,
-0.23787730932235718,
0.049076054245233536,
0.10978668928146362,
-0.06195404380559921,
0.04754268378019333,
-0.24244025349617004,
0.07746124267578125,
0.040033161640167236,
0.01093880645930767,
-0.06157431751489639,
0.06705906987190247,
0.09701233357191086,
0.8924071788787842,
0.10893663018941879,
-0.03452491760253906,
0.12641382217407227,
-0.04720526188611984,
-0.09084081649780273,
-0.13989074528217316,
-0.03531460091471672,
0.22051650285720825,
0.25972598791122437,
0.07087559998035431,
-0.24794240295886993,
0.10922564566135406,
-0.4701383709907532,
0.06706011295318604,
-0.10033852607011795,
-0.3349018692970276,
0.17072702944278717,
-0.11029085516929626,
0.2450983226299286,
-0.0020982474088668823,
-0.05650239437818527,
-0.07533779740333557,
0.19672611355781555,
0.2744041681289673,
-0.14405955374240875,
0.29913783073425293,
0.3024625778198242,
0.12852990627288818,
0.20637574791908264,
0.27660566568374634,
-0.08614085614681244,
-0.09184479713439941,
0.044616732746362686,
0.1708592176437378,
0.25332072377204895,
-0.15568192303180695,
0.014833392575383186,
0.23541802167892456,
-0.3778323829174042,
-0.1394175887107849,
0.233890101313591,
-0.5454509854316711,
-0.25998538732528687,
-0.06353217363357544,
0.3590613603591919,
0.47308364510536194,
0.24429041147232056,
0.22485388815402985,
-0.11749657243490219,
0.5504234433174133,
-0.1005651205778122,
0.11489903926849365,
-0.19030016660690308,
0.15680843591690063,
-0.026905320584774017,
0.422830730676651,
-0.22543421387672424,
-0.2896818220615387,
-0.14281851053237915,
0.0741950049996376,
0.012341754510998726,
-0.4227364659309387,
-0.3647424280643463,
0.07755839079618454,
-0.27781543135643005,
0.09376963973045349,
0.02724289894104004,
-0.06893499195575714,
0.42622190713882446,
-0.015630632638931274,
0.029314391314983368,
-0.3624058663845062,
-0.6591201424598694,
0.08273090422153473,
0.2454967498779297,
-0.030819939449429512,
0.3564579486846924,
0.013535253703594208,
-0.023416362702846527,
0.08269399404525757,
0.4850858449935913,
-0.02170814946293831,
-0.15393702685832977,
-0.1377490907907486,
-0.2947843074798584,
-0.19909723103046417,
-0.17983478307724,
-0.19977372884750366,
0.11430677026510239,
-0.06895345449447632,
-0.20472604036331177,
0.22563207149505615,
0.13329379260540009,
-0.033867985010147095,
0.4815892279148102,
-0.30655765533447266,
-0.1352899670600891,
-0.1985163390636444,
0.4735819101333618,
0.05333252251148224,
-0.08433880656957626,
-0.04198858141899109,
0.004211656749248505,
-0.2606089115142822,
-0.1726102977991104,
0.010212788358330727,
-0.06900621205568314,
0.2692812383174896,
-0.31078916788101196,
0.0877804234623909,
0.08726009726524353,
0.48144933581352234,
-0.28419187664985657,
0.1334255337715149,
-0.15048417448997498,
0.15816794335842133,
-0.18487530946731567,
-0.14636093378067017,
-0.036306846886873245,
-0.16399912536144257,
-0.12060655653476715,
-0.058960020542144775,
0.1612274944782257,
-0.07762625813484192,
0.050392746925354004,
0.35956963896751404,
-0.11823917180299759,
-0.0655154213309288,
-0.3488408029079437,
0.34651756286621094,
0.06192444637417793,
0.36269140243530273,
0.2391088902950287,
-0.12598630785942078,
0.1356222778558731,
0.11258184909820557,
0.08265519887208939,
0.10623206943273544,
0.1661253422498703,
-0.09636037051677704,
0.27698010206222534,
0.19938376545906067,
0.08972764015197754,
0.4974398910999298,
0.056762874126434326,
0.17370836436748505,
-0.2943831980228424,
-0.3370409309864044,
-0.36085063219070435,
-0.10455336421728134,
-0.2991921007633209,
0.40716445446014404,
-0.0568980872631073,
0.005760185420513153,
0.10979511588811874,
-0.12080241739749908,
0.1738741546869278,
0.3284972310066223,
-0.233224555850029,
0.1424812227487564,
-0.06964564323425293,
-0.021369848400354385,
-0.01136109046638012,
-0.15444046258926392,
0.15083611011505127,
-0.06890170276165009,
-0.15474039316177368,
-0.5150070786476135,
0.6079292297363281,
-0.17488978803157806,
-0.12970635294914246,
-0.07439370453357697,
0.3857114315032959,
0.32967713475227356,
-0.13160891830921173,
-0.5880601406097412,
-0.22726675868034363,
0.4960271716117859,
0.19417238235473633,
-0.4108330011367798,
0.3343150317668915,
0.13902877271175385,
0.214457705616951,
0.09442731738090515,
-0.08707515895366669,
0.3029441237449646,
0.04614262282848358,
-0.03722051903605461,
-0.2824230194091797
] |
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.09607753157615662,
-0.031377971172332764,
-0.07758238911628723,
0.2640610337257385,
0.42571407556533813,
-0.07900085300207138,
-0.08543708920478821,
0.15145064890384674,
0.08581534028053284,
0.1757877618074417,
0.1594250202178955,
0.11346825212240219,
-0.024907972663640976,
-0.19148215651512146,
0.1588653177022934,
-0.2088533639907837,
0.19392602145671844,
0.17276103794574738,
-0.1549515724182129,
-0.015184622257947922,
-0.2860030233860016,
0.35002079606056213,
0.024488024413585663,
0.15659838914871216,
-0.1144627183675766,
-0.1852875053882599,
-0.2307465374469757,
0.2669428884983063,
-0.33313775062561035,
-0.5159597992897034,
-0.09309417009353638,
-0.14117561280727386,
0.40583866834640503,
-0.3424742817878723,
-0.00010933079465758055,
-0.07211494445800781,
0.3982740640640259,
-0.16644683480262756,
0.05478407070040703,
0.11661543697118759,
-0.01547350361943245,
-0.33436593413352966,
-0.176016166806221,
-0.24869635701179504,
0.37810999155044556,
0.3489081561565399,
0.07319054752588272,
-0.3212684094905853,
0.024205826222896576,
0.2659871280193329,
0.23782512545585632,
0.2477608323097229,
0.1781284511089325,
0.2954210042953491,
0.2441832423210144,
-0.3906761407852173,
-0.028495194390416145,
0.34950438141822815,
0.2638506591320038,
-0.23853817582130432,
0.13456523418426514,
0.24733994901180267,
-0.2612062096595764,
0.14233219623565674,
-0.27316057682037354,
0.3587576150894165,
0.16235464811325073,
-0.5745047330856323,
-0.07329139113426208,
0.13750439882278442,
-0.08252302557229996,
-0.2108454704284668,
-0.23247282207012177,
-0.021466195583343506,
0.3149493932723999,
-0.3452880382537842,
0.4538145065307617,
0.3430706560611725,
-0.1391335129737854,
0.20289556682109833,
0.23957189917564392,
-0.0055098989978432655,
0.13211283087730408,
0.2591428756713867,
0.019059322774410248,
0.17141172289848328,
-0.19499684870243073,
-0.033863700926303864,
0.3158785104751587,
-0.2977004647254944,
-0.27579352259635925,
-0.1427662968635559,
-0.17715685069561005,
0.07203199714422226,
-0.03561362996697426,
-0.08120446652173996,
-0.2842749357223511,
0.1435832679271698,
0.0846671313047409,
-0.013462841510772705,
0.0946582779288292,
-0.05734287202358246,
0.08996286988258362,
0.11085376143455505,
0.020827854052186012,
0.2417101413011551,
-0.14708244800567627,
-0.0004217782989144325,
0.42326682806015015,
0.10886018723249435,
0.33182549476623535,
0.018172938376665115,
-0.1834583729505539,
-0.29160961508750916,
-0.164936363697052,
0.27084264159202576,
0.2871670126914978,
-0.06480425596237183,
-0.3927214741706848,
0.08097081631422043,
-0.10124222934246063,
0.06559188663959503,
-0.22239895164966583,
0.07617682218551636,
-0.18084368109703064,
0.20430892705917358,
-0.18883343040943146,
0.34699589014053345,
-0.2571711540222168,
-0.35193711519241333,
0.014991162344813347,
0.33897608518600464,
-0.1232423186302185,
-0.02855215035378933,
0.19558149576187134,
-0.028384380042552948,
-0.04042275995016098,
-0.06022867187857628,
-0.15891382098197937,
0.02559119462966919,
-0.24340906739234924,
-0.08014610409736633,
0.05788588523864746,
0.2219349443912506,
0.11366580426692963,
0.18838076293468475,
0.09872427582740784,
-0.6630217432975769,
-0.23514464497566223,
0.05864102393388748,
-0.14152154326438904,
0.04482222720980644,
-0.1568874716758728,
0.15356405079364777,
-0.2686421871185303,
-0.19826166331768036,
-0.004966244101524353,
-0.05214826390147209,
0.04201766103506088,
0.11564649641513824,
0.08025990426540375,
-0.03186904639005661,
0.037601765245199203,
-0.3339197039604187,
0.1539803147315979,
0.4237537384033203,
-0.3073553144931793,
0.08815531432628632,
0.034354034811258316,
-0.2626704275608063,
0.27004992961883545,
0.37273821234703064,
0.29507213830947876,
-0.1970287561416626,
-0.2710658311843872,
0.5628248453140259,
0.29697152972221375,
-0.45102477073669434,
-0.5493006706237793,
0.5310094952583313,
-0.17517399787902832,
-0.016425663605332375,
0.08717243373394012,
0.15768925845623016,
0.23525254428386688,
0.10921447724103928,
0.1837356835603714,
0.5050606727600098,
-0.08011889457702637,
0.0982314869761467,
-0.3659403920173645,
-0.46183905005455017,
0.37618130445480347,
0.06762944161891937,
-0.2985520660877228,
-0.07299184054136276,
0.1556466817855835,
-0.44042056798934937,
0.225635826587677,
0.028715552762150764,
0.23879671096801758,
0.1448228359222412,
0.22140687704086304,
-0.1668156385421753,
-0.004206263925880194,
-0.1305454969406128,
-0.16857501864433289,
0.00799381360411644,
-0.10551904886960983,
0.25925132632255554,
-0.6571524739265442,
-0.21875165402889252,
-0.046798910945653915,
-0.14350946247577667,
-0.25252455472946167,
-0.10950642824172974,
0.18559212982654572,
0.07440909743309021,
0.3862219452857971,
0.23732440173625946,
-0.13185593485832214,
0.5412455797195435,
0.03611607849597931,
0.10055497288703918,
-0.2505454123020172,
0.38680294156074524,
-0.13733282685279846,
-0.22595609724521637,
0.06241928040981293,
0.3521328568458557,
0.1498403251171112,
-0.11489280313253403,
-0.02196141704916954,
0.2945456802845001,
-0.14496363699436188,
0.045877598226070404,
0.1562282145023346,
-0.09293366968631744,
0.3510421812534332,
-0.3313712179660797,
0.18791477382183075,
0.28393763303756714,
0.2087196558713913,
0.011668264865875244,
0.4055992662906647,
0.2408418357372284,
0.07734121382236481,
0.23597189784049988,
0.18076486885547638,
0.2210741937160492,
0.22782790660858154,
0.024414990097284317,
-0.20619958639144897,
-0.4619485139846802,
0.2684992849826813,
0.03317458927631378,
0.12589451670646667,
-0.06796549260616302,
-0.23847508430480957,
-0.05892845243215561,
0.6475171446800232,
-0.13615469634532928,
0.1365407109260559,
-0.018666349351406097,
-0.30907222628593445,
0.32965290546417236,
-0.11493414640426636,
0.28588005900382996,
0.41028499603271484,
-0.028452511876821518,
-0.10261206328868866,
0.20411691069602966,
0.07722127437591553,
-0.10808468610048294,
0.07495380938053131,
-0.08331845700740814,
-0.14472238719463348,
-0.033768609166145325,
-0.22384102642536163,
0.08573230355978012,
-0.23101282119750977,
0.012782435864210129,
-0.08084723353385925,
0.22514979541301727,
-0.1622380167245865,
-0.17880477011203766,
-0.5618282556533813,
-0.47075286507606506,
-0.2029825747013092,
-0.21179409325122833,
-0.5013455152511597,
-0.21584072709083557,
-0.13239265978336334,
-0.24134182929992676,
-0.023419829085469246,
-0.03383803367614746,
-0.14165668189525604,
-0.13578461110591888,
-0.08208385854959488,
-0.19614280760288239,
0.10376358032226562,
-0.14614324271678925,
-0.434004008769989,
0.11213111877441406,
0.32207876443862915,
0.12119962275028229,
0.18147356808185577,
-0.33217740058898926,
0.3115794062614441,
-0.19616597890853882,
-0.05531182140111923,
0.10366231948137283,
-0.13458572328090668,
0.24022293090820312,
0.09636706858873367,
-0.012690916657447815,
0.265697181224823,
-0.2591378688812256,
0.25705158710479736,
-0.07767664641141891,
-0.13772286474704742,
0.12003235518932343,
0.18955343961715698,
-0.40343910455703735,
-0.09659725427627563,
-0.13971558213233948,
-0.7030836939811707,
-0.2230282723903656,
0.06153331324458122,
-0.12932929396629333,
0.013376247137784958,
-0.19524894654750824,
-0.23667511343955994,
0.11218985170125961,
-0.1453753411769867,
-0.030458765104413033,
-0.14518721401691437,
-0.001822829246520996,
0.5186716914176941,
-0.16278699040412903,
-0.45222464203834534,
0.15558476746082306,
-0.19127710163593292,
-0.03316575661301613,
-0.18880681693553925,
-0.3169984817504883,
0.0377696193754673,
-0.4247044622898102,
-0.020687982439994812,
0.11688809096813202,
0.19116751849651337,
0.16161412000656128,
-0.17680217325687408,
0.11681199073791504,
0.1030663326382637,
-0.11067679524421692,
-0.21660658717155457,
0.2738519608974457,
0.2781442403793335,
0.15004894137382507,
0.18787601590156555,
0.13566504418849945,
0.009065821766853333,
0.19349758327007294,
0.04913533106446266,
0.5423481464385986,
-0.21356259286403656,
0.3014673888683319,
0.3107928931713104,
-0.09276086091995239,
0.006524060852825642,
-0.197757750749588,
0.20895132422447205,
0.1855597198009491,
0.016628367826342583,
-0.2993299067020416,
-0.16785061359405518,
0.26939713954925537,
-0.33534014225006104,
-0.3381196856498718,
0.050913698971271515,
-0.03875625133514404,
-0.05625595897436142,
0.0822184681892395,
-0.055004771798849106,
0.13783305883407593,
-0.2853703498840332,
0.14536605775356293,
0.46594351530075073,
-0.21767479181289673,
0.16470888257026672,
-0.14233392477035522,
-0.698532223701477,
-0.30429157614707947,
0.15655285120010376,
0.3822275698184967,
0.6439920663833618,
-0.0699911043047905,
-0.01515250839293003,
0.18501272797584534,
-0.18843570351600647,
0.40233951807022095,
-0.48892414569854736,
-0.15867672860622406,
0.21945315599441528,
0.4156278669834137,
0.11417321115732193,
-0.12480860948562622,
-0.4630337357521057,
-0.08999895304441452,
0.3163919150829315,
0.10487262159585953,
-0.010783888399600983,
0.011773557402193546,
0.11320751160383224,
0.17226478457450867,
-0.09744567424058914,
-0.11951198428869247,
-0.4737187325954437,
-0.4600507318973541,
-0.2901912033557892,
0.02440451830625534,
0.0629180371761322,
0.3556579053401947,
0.20493699610233307,
0.25043538212776184,
-0.019310740754008293,
-0.13135674595832825,
0.027361854910850525,
0.16372261941432953,
0.14672508835792542,
-0.03840136155486107,
0.011271536350250244,
-0.17450997233390808,
0.21395303308963776,
-0.1999608725309372,
0.4932182729244232,
0.12384776771068573,
-0.10257095098495483,
0.052739426493644714,
-0.4481794834136963,
0.42381712794303894,
0.1645691990852356,
-0.05121485888957977,
-0.07257957011461258,
0.06449645012617111,
0.13998936116695404,
-0.2324616014957428,
-0.0716220885515213,
0.43076637387275696,
0.08138850331306458,
-0.2889290452003479,
0.05547468364238739,
0.30267632007598877,
0.18563733994960785,
0.20760495960712433,
-0.05271902680397034,
0.16989630460739136,
-0.09226357191801071,
0.0060468195006251335,
-0.03356286883354187,
0.8596193194389343,
0.13930630683898926,
0.04824056103825569,
0.08053019642829895,
-0.48871415853500366,
0.4115583300590515,
-0.07282066345214844,
0.07824015617370605,
-0.23328563570976257,
-0.26928216218948364,
-0.07483899593353271,
0.20213115215301514,
0.5368657112121582,
0.017887502908706665,
-0.4103856086730957,
0.21232087910175323,
0.25946325063705444,
0.17330731451511383,
0.22731371223926544,
0.41006702184677124,
-0.41286957263946533,
-0.34614118933677673,
-0.2607560157775879,
0.14674849808216095,
-0.050929710268974304,
0.15753775835037231,
-0.0025420961901545525,
-0.18086521327495575,
0.15108861029148102,
-0.1643083244562149,
-0.37969136238098145,
0.14817947149276733,
-0.5830649137496948,
-0.10590960085391998,
-0.11594964563846588,
-0.05055655539035797,
0.0276007279753685,
-0.032533932477235794,
0.4301754832267761,
0.07881423830986023,
0.14622199535369873,
0.028776392340660095,
0.5023573637008667,
-0.1347954124212265,
0.26344913244247437,
0.06491590291261673,
0.02936914935708046,
-0.16923969984054565,
-0.2536669373512268,
0.0503200888633728,
0.10352817177772522,
0.09317280352115631,
0.045743584632873535,
0.03097286820411682,
-0.16556385159492493,
-0.009998533874750137,
-0.17818570137023926,
-0.0597798228263855,
0.1339133381843567,
0.19692595303058624,
0.13731515407562256,
0.05390223115682602,
-0.16220681369304657,
0.21585455536842346,
-0.05047253891825676,
-0.2069849967956543,
-0.11498574912548065,
0.09628963470458984,
-0.0865575447678566,
-0.3387645184993744,
-0.00004456564784049988,
-0.08951982855796814,
-0.31441688537597656,
-0.1773143708705902,
-0.049866683781147,
-0.2948676645755768,
-0.10955975949764252,
-0.24908138811588287,
0.0947764664888382,
-0.0037869513034820557,
-0.14600756764411926,
0.00996619462966919,
0.2050773799419403,
-0.017567075788974762,
0.05671550706028938,
-0.6207981705665588,
-0.27902981638908386,
0.2701209783554077,
0.11701932549476624,
-0.05110340937972069,
0.025099053978919983,
0.04355993866920471,
0.12526020407676697,
-0.21932320296764374,
-0.2847449779510498,
0.10456234216690063,
-0.048024099320173264,
0.009142322465777397,
0.5306366682052612,
-0.07971792668104172,
0.14519543945789337,
0.10643242299556732,
0.12818211317062378,
0.36853957176208496,
-0.010017536580562592,
-0.18604707717895508,
-0.07284057140350342,
0.07237917929887772,
0.07004868239164352,
-0.26264891028404236,
0.2065207064151764,
-0.14369437098503113,
0.009093059226870537,
-0.001901702955365181,
0.10961981117725372,
-0.04206150397658348,
-0.07865193486213684,
0.2050003856420517,
-0.1244247555732727,
0.11314922571182251,
-0.019208529964089394,
0.2128060758113861,
-0.30432629585266113,
0.5440455675125122,
0.19881358742713928,
0.18852171301841736,
-0.11736848205327988,
0.1726163625717163,
0.12180189043283463,
-0.13423967361450195,
-0.30077409744262695,
0.02013949491083622,
0.19695863127708435,
-0.34342074394226074,
0.06762249767780304,
0.004233979154378176,
0.14575383067131042,
0.4197665750980377,
-0.13850262761116028,
-0.12659499049186707,
0.5794143676757812,
0.2061556875705719,
-0.1375909149646759,
0.13667595386505127,
0.2641609311103821,
-0.08641759306192398,
0.0020646676421165466,
0.24701914191246033,
0.28738871216773987,
0.14105559885501862,
0.2585163116455078,
-0.07540592551231384,
0.6104862093925476,
-0.01101686805486679,
-0.012119347229599953,
0.19573479890823364,
0.03420206531882286,
0.13932959735393524,
-0.013900244608521461,
0.06413447856903076,
-0.03792228549718857,
0.296203076839447,
-0.312960147857666,
0.014259624294936657,
0.3813517391681671,
0.25220561027526855,
-0.16196948289871216,
-0.14295101165771484,
0.0050677284598350525,
0.0638163760304451,
-0.061371609568595886,
0.30578187108039856,
0.21153831481933594,
0.45597249269485474,
-0.14304223656654358,
-0.13311101496219635,
-0.003683554008603096,
0.22210143506526947,
-0.024474114179611206,
0.03299301490187645,
0.09958584606647491,
0.12237071245908737,
-0.5756685137748718,
0.2016313225030899,
0.029746752232313156,
-0.19719024002552032,
0.27010607719421387,
0.2281944751739502,
-0.07450595498085022,
-0.3943830728530884,
-0.19919919967651367,
0.019858468323946,
0.1872204840183258,
-0.3332836627960205,
0.2501331567764282,
0.17008262872695923,
0.14096787571907043,
-0.020706772804260254,
-0.007200373336672783,
0.5386068820953369,
0.41171395778656006,
-0.4177432358264923,
0.06788301467895508,
-0.2541179656982422,
0.0018236376345157623,
0.0017786845564842224,
0.19283796846866608,
0.36740466952323914,
0.3436049222946167,
0.1835332065820694,
0.1475745290517807,
-0.09708986431360245,
-0.12521615624427795,
0.0820959061384201,
0.06589990854263306,
0.1669125109910965,
0.2621809244155884,
-0.12371261417865753,
0.22542715072631836,
-0.4461049437522888,
-0.14138150215148926,
-0.6944620609283447,
-0.007802742533385754,
0.20119673013687134,
-0.18336732685565948,
0.20144537091255188,
-0.10614126920700073,
0.08253416419029236,
0.08946649730205536,
0.28431835770606995,
0.47249165177345276,
0.16242849826812744,
-0.14314305782318115,
-0.18142440915107727,
-0.7731504440307617,
0.10704716295003891,
-0.20135483145713806,
-0.3078993856906891,
-0.14619097113609314,
0.06860346347093582,
-0.17061200737953186,
0.3500734567642212,
0.06150474399328232,
0.7089378237724304,
-0.09088534861803055,
0.03477296978235245,
-0.14423684775829315,
-0.04009293392300606,
0.07910428941249847,
-0.07475630939006805,
-0.03707057982683182,
-0.3391440510749817,
0.1330929845571518,
-0.06519769132137299,
0.016150042414665222,
-0.10798409581184387,
-0.15411636233329773,
-0.35098567605018616,
0.05003698170185089,
0.2432791143655777,
0.3958934545516968,
0.6262519359588623,
-0.1579277515411377,
-0.08461563289165497,
-0.3797345459461212,
-0.08116708695888519,
-0.19521833956241608,
0.22091081738471985,
-0.05061546340584755,
-0.030930107459425926,
-0.08457110077142715,
0.16168548166751862,
-0.5174285769462585,
0.20824380218982697,
0.04109472781419754,
0.23995333909988403,
-0.04593142122030258,
0.09102008491754532,
0.26386192440986633,
0.035109952092170715,
0.053126800805330276,
0.17807114124298096,
-0.08145244419574738,
0.1501331329345703,
0.05378952622413635,
-0.32575443387031555,
0.1363997459411621,
-0.16207338869571686,
-0.24246834218502045,
0.1962376832962036,
0.2875560522079468,
0.23239544034004211,
0.09413393586874008,
-0.3354714810848236,
-0.08600690960884094,
0.07477778196334839,
-0.16682496666908264,
-0.2506379783153534,
0.307860404253006,
-0.070682093501091,
-0.21630312502384186,
-0.03885360062122345,
0.1073547974228859,
0.07008197158575058,
-0.24263213574886322,
0.14631366729736328,
-0.37468254566192627
] |
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.06596536934375763,
0.06928089261054993,
-0.0075028035789728165,
0.14659932255744934,
0.4890398383140564,
-0.13624098896980286,
-0.005773220211267471,
0.07956137508153915,
0.05745290592312813,
0.31636232137680054,
0.15498417615890503,
0.12631496787071228,
-0.06716319918632507,
-0.17417733371257782,
0.07771208882331848,
-0.29716756939888,
0.19267749786376953,
0.2051757276058197,
-0.0492808073759079,
-0.03394479304552078,
-0.4367745816707611,
0.3971397876739502,
0.07370834052562714,
0.2630500793457031,
-0.02193513512611389,
-0.08675511926412582,
-0.15293067693710327,
0.23977461457252502,
-0.3016104996204376,
-0.5756044387817383,
-0.12371037155389786,
-0.1266355812549591,
0.3628614842891693,
-0.2685565650463104,
-0.00011571259528864175,
-0.012200381606817245,
0.32005470991134644,
-0.26031896471977234,
0.13760986924171448,
0.17118136584758759,
0.028887301683425903,
-0.29480478167533875,
-0.1516176164150238,
-0.17748373746871948,
0.35088542103767395,
0.28269410133361816,
0.1608462780714035,
-0.4594706892967224,
-0.1264062374830246,
0.28556180000305176,
0.148749440908432,
0.30860844254493713,
0.14809907972812653,
0.4098856449127197,
0.1059754341840744,
-0.37542039155960083,
-0.10380575060844421,
0.35547786951065063,
0.28983011841773987,
-0.2861035466194153,
-0.12150762230157852,
0.18851332366466522,
-0.27296993136405945,
0.08025282621383667,
-0.3073834180831909,
0.3867281675338745,
0.15437328815460205,
-0.5894978046417236,
-0.11912741512060165,
0.07876453548669815,
-0.1083667054772377,
-0.27374887466430664,
-0.34482619166374207,
-0.11081386357545853,
0.1624772846698761,
-0.3434242606163025,
0.3828713595867157,
0.3813193738460541,
-0.19834032654762268,
0.3759186267852783,
0.32339999079704285,
0.027124498039484024,
0.12974362075328827,
0.17889165878295898,
-0.11494181305170059,
0.3030939996242523,
-0.04841803014278412,
0.005220286548137665,
0.32939276099205017,
-0.1760677546262741,
-0.21788856387138367,
-0.09270693361759186,
-0.02819531038403511,
-0.07834818214178085,
-0.007780995219945908,
-0.02757938951253891,
-0.17305821180343628,
0.08976830542087555,
0.06500988453626633,
0.0243770070374012,
0.13493679463863373,
0.01605483517050743,
-0.037759192287921906,
0.190332293510437,
-0.007163159549236298,
0.15370826423168182,
-0.19606614112854004,
0.11052735149860382,
0.5007563233375549,
0.0054313503205776215,
0.39201611280441284,
0.08568950742483139,
-0.09160767495632172,
-0.33368614315986633,
-0.14815273880958557,
0.376251220703125,
0.37348729372024536,
0.048829954117536545,
-0.3270633816719055,
0.12451160699129105,
-0.09322062134742737,
0.0808940976858139,
-0.26832136511802673,
-0.01883023977279663,
-0.13057073950767517,
0.40930289030075073,
-0.18845704197883606,
0.34447622299194336,
-0.4128129482269287,
-0.3085862100124359,
0.0623200498521328,
0.26549291610717773,
-0.05761239677667618,
-0.021678177639842033,
0.19536279141902924,
-0.006377268582582474,
-0.04892352968454361,
-0.064778171479702,
-0.06683750450611115,
0.09141679108142853,
-0.16264872252941132,
-0.10586543381214142,
0.15049849450588226,
0.2132137566804886,
0.11116644740104675,
0.07662462443113327,
0.1605851650238037,
-0.7501694560050964,
-0.36767345666885376,
0.13202612102031708,
-0.11368351429700851,
-0.03273927792906761,
-0.1624799519777298,
0.04197230935096741,
-0.2905905246734619,
-0.2683291733264923,
0.04320884123444557,
0.08936329185962677,
-0.012850664556026459,
0.05838044360280037,
0.14237035810947418,
-0.06582385301589966,
-0.12564703822135925,
-0.28857091069221497,
0.1912129670381546,
0.5120857954025269,
-0.2714206874370575,
0.11977797746658325,
0.2272905707359314,
-0.28879278898239136,
0.1852329969406128,
0.3578082025051117,
0.2416883111000061,
-0.33237361907958984,
-0.1923469603061676,
0.4748021364212036,
0.24837598204612732,
-0.5571572780609131,
-0.5454274415969849,
0.4257732331752777,
-0.12350240349769592,
-0.03896651417016983,
0.1891019642353058,
-0.014495514333248138,
0.18784520030021667,
0.029191818088293076,
0.15255624055862427,
0.5387170910835266,
-0.19745445251464844,
0.19255100190639496,
-0.29402002692222595,
-0.49474260210990906,
0.314142107963562,
0.14263203740119934,
-0.17361989617347717,
-0.08229241520166397,
0.12914685904979706,
-0.4585205614566803,
0.17232808470726013,
-0.11129456758499146,
0.2787627577781677,
0.028267409652471542,
0.33193960785865784,
-0.21118982136249542,
0.03807655721902847,
-0.0915709137916565,
-0.04154591262340546,
-0.011097356677055359,
-0.02371395006775856,
0.21214255690574646,
-0.6939571499824524,
-0.2628234028816223,
0.07375603169202805,
-0.12024099379777908,
-0.21305246651172638,
-0.05977744236588478,
0.0705624520778656,
0.13115787506103516,
0.33127692341804504,
0.35301780700683594,
-0.2560484707355499,
0.44441235065460205,
0.02911072038114071,
0.05963459983468056,
-0.18609772622585297,
0.29953259229660034,
-0.03321721404790878,
-0.1852254569530487,
-0.03280195593833923,
0.4689342975616455,
0.027845516800880432,
-0.11686249077320099,
-0.013039406388998032,
0.2994941174983978,
0.0071415952406823635,
0.08742813020944595,
0.09967943280935287,
0.03509202599525452,
0.4462958574295044,
-0.2842260003089905,
0.13988925516605377,
0.43770912289619446,
0.1405513733625412,
0.16815108060836792,
0.29215580224990845,
0.43543195724487305,
0.04503509774804115,
0.1407739520072937,
0.21761326491832733,
0.1677333414554596,
0.2079702913761139,
0.08859081566333771,
-0.41422581672668457,
-0.4824959635734558,
0.13219815492630005,
0.084602952003479,
0.20979420840740204,
-0.003813689574599266,
-0.3643811345100403,
-0.13608533143997192,
0.7756451368331909,
-0.1477789282798767,
0.16501902043819427,
0.07730232179164886,
-0.10303962975740433,
0.34320273995399475,
-0.11691300570964813,
0.216527059674263,
0.45813316106796265,
-0.09909519553184509,
-0.06002480164170265,
0.2631983458995819,
0.08645014464855194,
-0.08633357286453247,
0.060158826410770416,
-0.0021351277828216553,
-0.20386561751365662,
0.03362686187028885,
-0.18103855848312378,
0.060292936861515045,
-0.23868775367736816,
-0.0007923915982246399,
-0.07269497960805893,
0.13444207608699799,
-0.15661026537418365,
0.018895966932177544,
-0.595806360244751,
-0.31802982091903687,
-0.29057684540748596,
-0.15697740018367767,
-0.3728322386741638,
-0.17783300578594208,
-0.0826047882437706,
-0.2205181121826172,
-0.1535077840089798,
-0.009858375415205956,
-0.3806837499141693,
-0.058336034417152405,
-0.1645461618900299,
-0.3551078140735626,
0.28799474239349365,
-0.1519504338502884,
-0.37651118636131287,
0.04586321488022804,
0.29718783497810364,
-0.07450372725725174,
0.052741967141628265,
-0.3912447392940521,
0.21988320350646973,
-0.11617278307676315,
-0.1598161906003952,
0.10455396771430969,
-0.012611888349056244,
0.13502179086208344,
0.07287489622831345,
-0.26139581203460693,
0.13423456251621246,
-0.3289487957954407,
0.2606322169303894,
-0.10184554755687714,
-0.05074591934680939,
0.057963013648986816,
0.1840217411518097,
-0.3369167447090149,
-0.08881442248821259,
-0.047734297811985016,
-0.634959876537323,
-0.26218968629837036,
0.108583465218544,
-0.21646279096603394,
-0.02964041382074356,
-0.3215065896511078,
-0.2497013658285141,
-0.03218778222799301,
-0.08244074136018753,
-0.09888658672571182,
-0.04847809299826622,
-0.040888044983148575,
0.48047035932540894,
-0.21169337630271912,
-0.38198816776275635,
0.1253909319639206,
-0.26140308380126953,
-0.09493885934352875,
-0.008432308211922646,
-0.25963470339775085,
-0.12060856074094772,
-0.4150761365890503,
0.06790024042129517,
0.08164408802986145,
0.21131768822669983,
0.18883751332759857,
-0.06624599546194077,
0.18891051411628723,
0.028525888919830322,
-0.2133287489414215,
-0.20139604806900024,
0.3152656853199005,
0.12870436906814575,
0.19945958256721497,
0.16979020833969116,
0.22298264503479004,
-0.1316206157207489,
0.17205391824245453,
0.1581791639328003,
0.5512164831161499,
-0.20447860658168793,
0.38490939140319824,
0.29943978786468506,
0.07942363619804382,
0.03524474799633026,
-0.16225728392601013,
0.12206929922103882,
0.2517009377479553,
0.08815845847129822,
-0.30628758668899536,
-0.16598469018936157,
0.20798304677009583,
-0.3473239541053772,
-0.5740137696266174,
0.16008882224559784,
-0.11924822628498077,
0.035902831703424454,
-0.05198746919631958,
0.04144759476184845,
0.1185072809457779,
-0.16472861170768738,
0.15011188387870789,
0.4650923013687134,
-0.08521796017885208,
0.26896047592163086,
-0.02883135713636875,
-0.5663642287254333,
-0.32294324040412903,
0.011827357113361359,
0.366690069437027,
0.751046895980835,
-0.03677897900342941,
-0.05803544074296951,
0.13670134544372559,
-0.2418796718120575,
0.2690560221672058,
-0.455569863319397,
-0.17157308757305145,
0.07084451615810394,
0.33211636543273926,
0.04978153854608536,
-0.08531849831342697,
-0.3413791358470917,
-0.09957429021596909,
0.09290264546871185,
0.01795584335923195,
0.0016852393746376038,
-0.004817655775696039,
0.04947250336408615,
0.15624183416366577,
-0.04991422966122627,
0.0009694360196590424,
-0.49997007846832275,
-0.583429217338562,
-0.27355462312698364,
0.03564833104610443,
0.1798689216375351,
0.20006151497364044,
0.24407674372196198,
0.311357706785202,
-0.09078992158174515,
-0.13108864426612854,
0.12079323828220367,
0.139307901263237,
0.08242625743150711,
-0.11104121804237366,
-0.0769582986831665,
-0.21786534786224365,
0.09862250089645386,
-0.1395828127861023,
0.559842586517334,
0.11881272494792938,
-0.39391812682151794,
0.0808042585849762,
-0.3913770914077759,
0.4750376045703888,
0.22057446837425232,
-0.04822506010532379,
-0.15263712406158447,
0.02959742769598961,
0.05468729883432388,
-0.32512742280960083,
-0.1033272072672844,
0.37579065561294556,
0.1071186289191246,
-0.31140658259391785,
-0.04233316332101822,
0.2519548535346985,
0.15877576172351837,
0.1981961578130722,
0.0016089193522930145,
0.2698320746421814,
-0.08528061211109161,
0.12100383639335632,
0.1067470908164978,
0.7687663435935974,
0.11353833973407745,
0.0985364317893982,
0.14861103892326355,
-0.48760080337524414,
0.32081422209739685,
-0.008652538061141968,
0.08975800126791,
-0.1735139787197113,
-0.2528035640716553,
-0.11899704486131668,
0.23381972312927246,
0.5631160736083984,
-0.07957489788532257,
-0.3419639468193054,
0.19240853190422058,
0.3476179242134094,
0.10653066635131836,
0.326529324054718,
0.39448902010917664,
-0.5686740279197693,
-0.39116859436035156,
-0.3675349950790405,
0.037581756711006165,
0.02537919580936432,
0.12020604312419891,
0.049000177532434464,
-0.19874949753284454,
0.15205304324626923,
-0.2151770293712616,
-0.35688871145248413,
0.02659865841269493,
-0.5614296197891235,
-0.06910999119281769,
-0.10167613625526428,
-0.13719159364700317,
0.08281996846199036,
0.12399464845657349,
0.5200181007385254,
0.04276531562209129,
0.19076839089393616,
-0.03253241255879402,
0.4909975528717041,
-0.08638744056224823,
0.28429657220840454,
-0.005327427759766579,
-0.02083624340593815,
-0.0911150723695755,
-0.24476876854896545,
0.030483733862638474,
0.1265694499015808,
0.015104323625564575,
0.04853759706020355,
0.021335318684577942,
-0.13587088882923126,
0.07949933409690857,
-0.16741518676280975,
-0.21601927280426025,
0.07476280629634857,
0.30422618985176086,
0.053366243839263916,
-0.031026162207126617,
-0.003737332299351692,
0.19651436805725098,
-0.17727819085121155,
-0.24354329705238342,
-0.05394192412495613,
-0.05637676268815994,
-0.21467998623847961,
-0.37885531783103943,
-0.06939613074064255,
-0.18190309405326843,
-0.2666614055633545,
-0.0569932758808136,
0.0404924601316452,
-0.2393932342529297,
-0.00855206698179245,
-0.28232645988464355,
0.03700508922338486,
-0.08032366633415222,
-0.1316889375448227,
-0.04846290871500969,
0.14407342672348022,
-0.03176906704902649,
0.07222941517829895,
-0.6231853365898132,
-0.24283799529075623,
0.3059755563735962,
0.10474088042974472,
-0.14493629336357117,
0.11050904542207718,
0.13055898249149323,
0.01269194670021534,
-0.3582843244075775,
-0.19653138518333435,
0.13186725974082947,
0.060973070561885834,
-0.0028748586773872375,
0.49723899364471436,
-0.003471989184617996,
0.09573040902614594,
0.12361322343349457,
0.004277341067790985,
0.37769246101379395,
0.011891922913491726,
-0.05825202167034149,
-0.18051746487617493,
0.12877357006072998,
0.08751673996448517,
-0.26726359128952026,
0.31878143548965454,
-0.13040578365325928,
0.0047071631997823715,
-0.10049514472484589,
0.16127760708332062,
0.17796066403388977,
-0.21462662518024445,
0.28108349442481995,
-0.1274712234735489,
0.22427400946617126,
-0.0038693472743034363,
0.12453217059373856,
-0.18656933307647705,
0.6320703625679016,
0.22639407217502594,
0.27959492802619934,
-0.10153611749410629,
0.24691033363342285,
0.2319064736366272,
-0.024961628019809723,
-0.24583540856838226,
0.09196390211582184,
0.12800274789333344,
-0.22202716767787933,
0.10555897653102875,
-0.057925086468458176,
0.12618254125118256,
0.3847445547580719,
-0.11868742853403091,
-0.12199649959802628,
0.5793877243995667,
0.09306178987026215,
-0.0575108602643013,
0.12113858014345169,
0.2755745053291321,
-0.06880099326372147,
0.026489991694688797,
0.38820406794548035,
0.40897780656814575,
0.17655140161514282,
0.24062122404575348,
-0.12539023160934448,
0.5952465534210205,
0.001120327040553093,
0.11837093532085419,
0.3623160719871521,
-0.04728627949953079,
0.18799902498722076,
-0.070834681391716,
0.014251571148633957,
0.06846586614847183,
0.2516632676124573,
-0.3138509690761566,
-0.004432318732142448,
0.385050892829895,
0.25708281993865967,
-0.20020157098770142,
-0.20423099398612976,
0.011569403111934662,
-0.11481973528862,
-0.020235955715179443,
0.3192634582519531,
0.29761964082717896,
0.3538498282432556,
-0.21452800929546356,
-0.025005072355270386,
-0.0047702789306640625,
0.24877893924713135,
0.045797139406204224,
-0.09790097177028656,
0.17635567486286163,
0.10711576789617538,
-0.5134835243225098,
0.2841789722442627,
-0.04603883996605873,
-0.17741252481937408,
0.35431045293807983,
0.25237929821014404,
0.08536294847726822,
-0.2463076263666153,
-0.14915892481803894,
-0.04642639309167862,
0.3513021767139435,
-0.2995993196964264,
0.194940984249115,
0.2979387044906616,
0.11315664649009705,
0.027372537180781364,
-0.11218477040529251,
0.5564969778060913,
0.3554890751838684,
-0.47299110889434814,
0.11468829959630966,
-0.346069872379303,
0.09187337756156921,
0.000027062371373176575,
0.11664050817489624,
0.3284035325050354,
0.40901991724967957,
0.18224146962165833,
0.07900328189134598,
0.04787035286426544,
-0.13975128531455994,
0.07072558254003525,
0.04420945793390274,
0.10398182272911072,
0.37874671816825867,
0.01449512504041195,
0.3178904950618744,
-0.2724894881248474,
-0.10723661631345749,
-0.4920470714569092,
-0.021880049258470535,
0.19370707869529724,
-0.09319981932640076,
0.18540534377098083,
0.016115888953208923,
0.018090497702360153,
0.2927776873111725,
0.1242402195930481,
0.325120747089386,
0.1901242733001709,
0.0053426967933773994,
-0.11244762688875198,
-0.7355493307113647,
0.16766953468322754,
-0.05779961124062538,
-0.4195207953453064,
-0.11058929562568665,
-0.09163995832204819,
-0.09296499937772751,
0.42350804805755615,
-0.18732275068759918,
0.7202268838882446,
0.014637931250035763,
0.0641389787197113,
-0.047211404889822006,
-0.14102256298065186,
0.14666634798049927,
-0.06345415860414505,
-0.07974117994308472,
-0.3795464038848877,
0.03561336547136307,
-0.05264166742563248,
-0.04315674304962158,
-0.14622141420841217,
-0.08945313096046448,
-0.45862066745758057,
-0.008464731276035309,
0.17162883281707764,
0.5348657369613647,
0.634355902671814,
-0.2648264169692993,
-0.05159488320350647,
-0.34334900975227356,
-0.021751582622528076,
-0.33862030506134033,
0.21851041913032532,
-0.10613551735877991,
0.0010010730475187302,
-0.263577938079834,
-0.017987240105867386,
-0.4536590576171875,
0.24372561275959015,
0.07081741839647293,
0.2721254825592041,
0.04455341398715973,
0.15151885151863098,
0.2206401526927948,
-0.05369177460670471,
0.02638203650712967,
0.3207269608974457,
-0.06571461260318756,
0.15666073560714722,
0.15683723986148834,
-0.3324785530567169,
0.13849548995494843,
-0.20538859069347382,
-0.2074965536594391,
0.14610524475574493,
0.2187727689743042,
0.16763794422149658,
0.12322536110877991,
-0.3770211637020111,
0.03379792720079422,
-0.018949832767248154,
-0.13877171277999878,
-0.3186843693256378,
0.2775362730026245,
-0.09343686699867249,
-0.3046441376209259,
-0.14729520678520203,
0.22299440205097198,
0.047705430537462234,
-0.2741554081439972,
0.11334072053432465,
-0.4106859564781189
] |
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.12789808213710785,
0.06803509593009949,
0.018163111060857773,
0.16125652194023132,
0.14942027628421783,
-0.09384414553642273,
0.28779107332229614,
0.07379543781280518,
0.20830635726451874,
-0.05746328830718994,
0.10429219156503677,
0.3704170286655426,
-0.15248997509479523,
0.11149147897958755,
-0.01271186675876379,
-0.04838880896568298,
-0.026026777923107147,
0.17643505334854126,
-0.058485597372055054,
-0.18720102310180664,
-0.3069528043270111,
0.07847369462251663,
-0.4576539397239685,
-0.369067907333374,
-0.2645191550254822,
0.08991917222738266,
-0.09915173053741455,
0.134138822555542,
-0.08303755521774292,
-0.45872732996940613,
0.15707792341709137,
0.5054247379302979,
0.16285762190818787,
0.18232309818267822,
-0.00011504536087159067,
-0.26569563150405884,
0.40348631143569946,
-0.10312622040510178,
-0.44383230805397034,
-0.39133840799331665,
-0.3945770859718323,
-0.030479229986667633,
0.13799506425857544,
-0.017715327441692352,
-0.2774764597415924,
0.026426006108522415,
0.38824132084846497,
-0.267333447933197,
0.26693734526634216,
0.04184270650148392,
0.17288906872272491,
-0.12490225583314896,
0.0030798129737377167,
0.13873717188835144,
0.010473214089870453,
0.06959202140569687,
-0.02282952144742012,
0.4524676501750946,
0.13822636008262634,
-0.2738257348537445,
-0.06894517689943314,
0.10721512138843536,
0.031256303191185,
0.10483035445213318,
0.48225077986717224,
0.12794913351535797,
-0.2176276445388794,
-0.400513619184494,
-0.10749904066324234,
0.24439403414726257,
0.5826348066329956,
-0.17216530442237854,
-0.2514909505844116,
-0.35254713892936707,
0.26454734802246094,
-0.10003042221069336,
0.12447161972522736,
0.3805084824562073,
-0.13450896739959717,
-0.09593212604522705,
-0.0022375527769327164,
0.1671113222837448,
-0.13715222477912903,
0.07108679413795471,
0.08564615249633789,
0.5879833698272705,
-0.013878225348889828,
0.02566395327448845,
0.07930400967597961,
0.2684374451637268,
0.20621873438358307,
-0.25055739283561707,
-0.06963182985782623,
0.14748325943946838,
-0.31698495149612427,
-0.11941833794116974,
0.16328750550746918,
0.5273428559303284,
0.09311699122190475,
0.187190443277359,
0.2267654836177826,
0.06748014688491821,
-0.15240775048732758,
0.008962403982877731,
0.3967234790325165,
0.5014608502388,
0.012953154742717743,
0.08890371769666672,
0.33930152654647827,
0.010245108976960182,
-0.1401100605726242,
0.2734241187572479,
-0.060456302016973495,
-0.3183392584323883,
0.153653085231781,
0.09681837260723114,
0.1490701586008072,
-0.2396644651889801,
-0.4463086724281311,
-0.2819100022315979,
-0.29350823163986206,
-0.04257570579648018,
0.025524120777845383,
0.24488434195518494,
-0.3041346073150635,
0.13732650876045227,
-0.20991039276123047,
0.17816199362277985,
-0.11226446181535721,
-0.0667252391576767,
-0.044247351586818695,
-0.11899048089981079,
-0.36724579334259033,
0.15537329018115997,
0.17796504497528076,
0.07100219279527664,
0.15430879592895508,
0.2629646062850952,
-0.22305594384670258,
-0.09332329779863358,
0.03187163919210434,
-0.33387091755867004,
0.03400813415646553,
-0.012516457587480545,
0.10989245772361755,
-0.0834868922829628,
-0.21222402155399323,
-0.09923714399337769,
-0.36352428793907166,
0.10933370888233185,
-0.22316354513168335,
-0.10212540626525879,
-0.1164177805185318,
0.13944992423057556,
-0.3203216791152954,
-0.14174769818782806,
-0.43928131461143494,
0.34631165862083435,
0.06612794101238251,
-0.08564174175262451,
-0.1390952169895172,
-0.2519536018371582,
-0.30007630586624146,
-0.35981062054634094,
-0.1437499076128006,
0.5643337368965149,
-0.333956241607666,
0.08831599354743958,
-0.07750651985406876,
0.2793794274330139,
0.32617175579071045,
0.31181931495666504,
-0.04331192374229431,
0.2612887918949127,
-0.2711886763572693,
-0.034849345684051514,
0.09159336984157562,
-0.07655780017375946,
-0.14798730611801147,
0.15606947243213654,
-0.2097705602645874,
0.36434927582740784,
-0.005924828350543976,
0.2887928783893585,
0.026955323293805122,
-0.28576475381851196,
0.21222533285617828,
0.581751823425293,
0.11252470314502716,
0.14555034041404724,
-0.22289623320102692,
-0.1160709410905838,
0.16065087914466858,
0.13416051864624023,
-0.15292517840862274,
0.2557579576969147,
-0.07974966615438461,
-0.1022740975022316,
0.2364654839038849,
0.058781638741493225,
-0.37616610527038574,
0.06547077000141144,
0.4298812448978424,
0.056626640260219574,
-0.0059007806703448296,
0.09191408008337021,
-0.8025330901145935,
0.26533830165863037,
-0.1356782466173172,
0.21970488131046295,
-0.10070829093456268,
-0.17107781767845154,
-0.05981558561325073,
-0.1929311752319336,
-0.3671400547027588,
0.04322625696659088,
0.10956636071205139,
0.3891426920890808,
0.27215519547462463,
0.26493048667907715,
0.14290092885494232,
0.5052406787872314,
0.022642487660050392,
-0.1303788125514984,
-0.40896934270858765,
0.40760743618011475,
-0.058001741766929626,
-0.13949677348136902,
0.3009551167488098,
0.2322882115840912,
0.010630443692207336,
-0.2568790018558502,
-0.10995393246412277,
0.34787002205848694,
0.19225533306598663,
0.14909815788269043,
0.14226780831813812,
-0.006386294960975647,
0.07905757427215576,
0.06358906626701355,
0.22845230996608734,
0.230383038520813,
-0.03064969927072525,
-0.14227700233459473,
-0.023764371871948242,
0.48321372270584106,
-0.14083388447761536,
0.2432551085948944,
0.10688118636608124,
-0.09188240766525269,
0.0576852485537529,
0.05615225061774254,
-0.009857808239758015,
-0.18489810824394226,
0.2872166335582733,
0.22416235506534576,
0.3984707295894623,
0.4891129732131958,
-0.6162040829658508,
0.26853346824645996,
0.674149751663208,
0.11728706955909729,
0.05457155779004097,
0.04224633425474167,
0.12816046178340912,
-0.29233840107917786,
0.24354325234889984,
0.31094133853912354,
0.5828958749771118,
0.17280752956867218,
-0.12159433960914612,
-0.04871280491352081,
-0.13230982422828674,
-0.25663232803344727,
0.008225739002227783,
-0.04970593750476837,
0.2310313582420349,
0.06837015599012375,
0.3204987347126007,
0.27185550332069397,
-0.22423401474952698,
-0.11447980999946594,
-0.1183801218867302,
0.03554895520210266,
-0.1283753216266632,
0.17326393723487854,
-0.24314938485622406,
-0.3185334801673889,
-0.35505178570747375,
-0.09981820732355118,
-0.33054038882255554,
-0.24067305028438568,
0.07259473204612732,
0.2184055894613266,
0.05714404210448265,
-0.1266392469406128,
0.1862882673740387,
0.2984221279621124,
-0.06907536834478378,
-0.45958060026168823,
-0.18096697330474854,
-0.04505292326211929,
-0.37602266669273376,
-0.0321737639605999,
0.43372783064842224,
0.25273841619491577,
0.482134073972702,
-0.1345926970243454,
-0.20568183064460754,
0.1416741907596588,
-0.2974396049976349,
-0.13052552938461304,
-0.3035551905632019,
0.3335777819156647,
-0.08232152462005615,
-0.09865342080593109,
-0.024281799793243408,
-0.0864909291267395,
0.011955511756241322,
-0.009167266078293324,
-0.032462965697050095,
0.009523699060082436,
0.06952432543039322,
0.0021094749681651592,
-0.04886713624000549,
-0.34148645401000977,
-0.28315362334251404,
-0.14405988156795502,
0.08791130781173706,
0.27363327145576477,
0.13327831029891968,
0.3045845925807953,
-0.07927403599023819,
-0.24785883724689484,
0.13714848458766937,
0.044961877167224884,
-0.08069704473018646,
-0.08782447129487991,
0.34281936287879944,
-0.16083504259586334,
-0.23617763817310333,
-0.3503183126449585,
-0.11388878524303436,
-0.07062052190303802,
0.10050687193870544,
-0.33239996433258057,
-0.28483840823173523,
-0.3624159097671509,
0.010044887661933899,
-0.07570146769285202,
-0.28654900193214417,
0.36449751257896423,
0.0775030329823494,
0.06958375126123428,
0.18889564275741577,
-0.004141548648476601,
0.1965329647064209,
0.2920992970466614,
0.37725114822387695,
0.1817641258239746,
0.018390126526355743,
-0.03392220288515091,
0.4845989942550659,
-0.01262012030929327,
-0.41455546021461487,
0.2060728222131729,
0.15878665447235107,
0.34229522943496704,
-0.4762474596500397,
-0.0683019831776619,
0.23204538226127625,
0.19107167422771454,
-0.10547731816768646,
0.519132673740387,
-0.04053255170583725,
-0.04474085569381714,
-0.11589997261762619,
0.3423364758491516,
-0.20251697301864624,
-0.22993090748786926,
0.03644753247499466,
-0.23571768403053284,
-0.2254301905632019,
0.10374964773654938,
0.09211497753858566,
0.05345899984240532,
-0.3630150556564331,
-0.20383192598819733,
0.14841502904891968,
0.1867222636938095,
0.06844054907560349,
0.2117999941110611,
0.04994429275393486,
-0.5956822037696838,
0.10554369539022446,
0.01345289871096611,
0.05382104963064194,
0.025020767003297806,
-0.07656775414943695,
0.272862046957016,
-0.0241452194750309,
0.24141815304756165,
-0.02487255074083805,
0.21684560179710388,
-0.005712495185434818,
0.08499695360660553,
0.08628178387880325,
-0.3125593364238739,
-0.29672548174858093,
0.08636828511953354,
0.18976432085037231,
0.20329996943473816,
-0.4483339190483093,
-0.11497812718153,
0.025938207283616066,
0.1493920385837555,
0.0077362582087516785,
-0.5178691148757935,
-0.5376976728439331,
0.01750132441520691,
0.16575606167316437,
-0.1861439049243927,
-0.03601473569869995,
0.135491281747818,
-0.5030949711799622,
-0.17360202968120575,
-0.01760321669280529,
-0.21947357058525085,
0.21784791350364685,
0.2394249588251114,
0.21161070466041565,
0.06995422393083572,
0.06522925198078156,
0.08449825644493103,
0.1672162413597107,
0.20789210498332977,
0.3494341969490051,
-0.0006080977618694305,
-0.22741594910621643,
-0.19796186685562134,
-0.1107969731092453,
0.017691031098365784,
0.2727662920951843,
-0.09006170928478241,
-0.21789789199829102,
-0.6402571201324463,
0.05756423622369766,
-0.24213269352912903,
0.20267368853092194,
0.21560683846473694,
-0.11611570417881012,
-0.5116723775863647,
-0.43022021651268005,
0.5949910879135132,
0.12571102380752563,
-0.2779103219509125,
0.45548298954963684,
-0.04011954367160797,
-0.47836241126060486,
0.48304444551467896,
0.21970990300178528,
0.7067089080810547,
-0.2930574417114258,
0.04724995419383049,
0.29379403591156006,
0.09226959943771362,
0.5350891351699829,
0.16951364278793335,
0.38811707496643066,
-0.5430068969726562,
-0.2523649334907532,
0.02065424434840679,
-0.08755888044834137,
-0.07993289083242416,
0.3004678189754486,
-0.4050036072731018,
0.5030624270439148,
-0.02559959515929222,
0.15385864675045013,
0.04216666519641876,
0.5493947267532349,
-0.09575553238391876,
-0.05772839114069939,
-0.35144227743148804,
0.06979500502347946,
-0.1942264884710312,
0.4118390679359436,
-0.2053397297859192,
-0.15898048877716064,
0.05300802364945412,
0.1006593406200409,
-0.11761019378900528,
0.3257845938205719,
-0.35432198643684387,
-0.07403631508350372,
-0.07025699317455292,
-0.21413472294807434,
0.10646221041679382,
0.450843870639801,
0.0795261412858963,
0.23600181937217712,
-0.14523935317993164,
0.05265481770038605,
0.08450500667095184,
0.1127118468284607,
0.10704633593559265,
-0.2086251825094223,
0.37680312991142273,
0.20336470007896423,
0.007197394967079163,
-0.3862653374671936,
0.12449036538600922,
-0.3595883846282959,
-0.4590844511985779,
0.12551715970039368,
-0.17708052694797516,
0.29420167207717896,
-0.241212859749794,
0.189484640955925,
0.028681162744760513,
0.000460602343082428,
0.12556736171245575,
0.020513352006673813,
0.18144719302654266,
0.38077765703201294,
-0.020260412245988846,
-0.4196609556674957,
-0.03345154598355293,
0.166219562292099,
0.0007935613393783569,
0.25143763422966003,
0.36384907364845276,
-0.04069899767637253,
-0.035781554877758026,
-0.2425655722618103,
-0.21627938747406006,
-0.4363139271736145,
-0.11387857794761658,
0.29434436559677124,
0.0920981764793396,
0.17395628988742828,
0.11550790816545486,
0.24730230867862701,
0.05702538043260574,
0.05258132517337799,
0.08016768097877502,
-0.4885746240615845,
0.19310365617275238,
-0.028779305517673492,
-0.13976718485355377,
0.13698796927928925,
-0.07470487058162689,
0.23657919466495514,
0.06570802628993988,
0.05166970193386078,
-0.29571571946144104,
-0.167557030916214,
-0.11781224608421326,
-0.025815993547439575,
-0.1618577092885971,
-0.1259121596813202,
0.04135330766439438,
0.08271484076976776,
0.07512781023979187,
-0.08218730986118317,
-0.03532446548342705,
-0.18889090418815613,
0.10417036712169647,
0.12739908695220947,
0.07882901281118393,
0.1892598271369934,
-0.13165223598480225,
-0.45766764879226685,
-0.144869863986969,
-0.3531973958015442,
0.1129235029220581,
0.04598088562488556,
0.07414097338914871,
0.0992608517408371,
0.2913092076778412,
0.3127300441265106,
0.18480251729488373,
0.26874351501464844,
-0.4418788254261017,
-0.00934600830078125,
0.1626240462064743,
0.12643593549728394,
0.06363583356142044,
0.16829344630241394,
-0.2337186634540558,
-0.04215424507856369,
0.058038122951984406,
0.2631939649581909,
-0.05121105909347534,
-0.19489501416683197,
0.0028900615870952606,
-0.13890476524829865,
0.18379034101963043,
0.6173473596572876,
0.015210247598588467,
-0.5521915555000305,
0.15069332718849182,
0.15565384924411774,
-0.24414518475532532,
0.21165330708026886,
-0.054728928953409195,
0.43765291571617126,
-0.010482776910066605,
0.2724590599536896,
0.28757283091545105,
0.1769687533378601,
-0.1432027965784073,
-0.01719769462943077,
0.3120470941066742,
0.05534803867340088,
0.3701549470424652,
0.07855354994535446,
0.12383551895618439,
0.0375576913356781,
0.15840449929237366,
-0.10392710566520691,
-0.16509470343589783,
0.21372060477733612,
-0.016312897205352783,
0.31387585401535034,
-0.17961567640304565,
-0.09924578666687012,
0.13611066341400146,
-0.15025782585144043,
-0.03854921832680702,
0.8459666967391968,
-0.016135111451148987,
0.16084307432174683,
0.32277610898017883,
0.38654404878616333,
-0.38524988293647766,
-0.12796857953071594,
-0.4479807913303375,
-0.12925657629966736,
-0.041517503559589386,
-0.06600868701934814,
-0.043492719531059265,
0.021512821316719055,
-0.18416070938110352,
0.14295260608196259,
-0.13115687668323517,
-0.11422748863697052,
-0.02744581550359726,
0.12467183917760849,
-0.16555242240428925,
-0.5515326857566833,
0.4079732894897461,
-0.03897733986377716,
0.37587878108024597,
-0.09090882539749146,
0.22647817432880402,
-0.2193034440279007,
0.09742015600204468,
0.11956767737865448,
0.08587666600942612,
0.17305505275726318,
0.7899262309074402,
-0.3634609282016754,
-0.2163257747888565,
-0.165263831615448,
0.08567376434803009,
-0.0864148885011673,
0.2728655934333801,
-0.015123523771762848,
-0.13412357866764069,
0.47164928913116455,
0.07519565522670746,
-0.07717890292406082,
0.27714526653289795,
0.38304293155670166,
0.08131393790245056,
-0.06716234982013702,
0.4809929430484772,
0.05377226695418358,
0.023943044245243073,
-0.04305877536535263,
0.24627143144607544,
-0.3554506003856659,
-0.15717713534832,
-0.07620219886302948,
0.018897326663136482,
-0.15880507230758667,
-0.22147586941719055,
0.0629831999540329,
-0.09467160701751709,
0.4574965536594391,
0.291387677192688,
0.23966017365455627,
-0.35421764850616455,
-0.23833060264587402,
-0.6219894289970398,
0.171986386179924,
0.06919559836387634,
-0.023501377552747726,
-0.23157386481761932,
0.3624776601791382,
-0.3814340829849243,
-0.008728258311748505,
-0.42019450664520264,
0.35392308235168457,
-0.0965949073433876,
0.038114000111818314,
-0.574028491973877,
0.0038930587470531464,
-0.5121838450431824,
-0.219648540019989,
-0.08177924156188965,
-0.41475236415863037,
-0.053451333194971085,
-0.3010082542896271,
-0.06599941849708557,
-0.041164398193359375,
0.3028206527233124,
0.08586911857128143,
0.4274730682373047,
0.30337703227996826,
0.10916133224964142,
0.3528418242931366,
0.05523721128702164,
-0.07557811588048935,
-0.3462195098400116,
-0.0992269366979599,
-0.36386269330978394,
0.25363877415657043,
0.10998106002807617,
0.1332288682460785,
0.0013371612876653671,
0.3380190134048462,
-0.18647143244743347,
0.44350767135620117,
0.025187969207763672,
0.19686369597911835,
-0.3721696138381958,
-0.20783255994319916,
-0.14902940392494202,
0.06542229652404785,
-0.1195826604962349,
0.10910822451114655,
0.058215998113155365,
0.048596449196338654,
-0.23535926640033722,
-0.1628769338130951,
0.4360441565513611,
-0.14769785106182098,
-0.21438056230545044,
-0.06880781799554825,
0.27429819107055664,
0.12841962277889252,
-0.2526894211769104,
-0.43344929814338684,
0.06096724420785904,
0.2695485055446625,
-0.005993969738483429,
0.14710325002670288,
0.39410170912742615,
-0.006193818524479866,
0.1405075639486313,
-0.19483935832977295,
0.049696844071149826,
-0.13015401363372803,
-0.2397855818271637,
-0.0945943295955658,
-0.22265614569187164
] |
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.11379395425319672,
0.17885449528694153,
0.018952585756778717,
0.1695960909128189,
0.14818410575389862,
-0.06933777779340744,
0.21049858629703522,
0.11594623327255249,
0.16639630496501923,
0.0036023706197738647,
0.12946602702140808,
0.3810073435306549,
-0.16160701215267181,
0.10549844056367874,
-0.04211576282978058,
-0.0011643879115581512,
-0.011005580425262451,
0.18283645808696747,
0.023403391242027283,
-0.2169201374053955,
-0.303274005651474,
0.09481726586818695,
-0.49228835105895996,
-0.4265713691711426,
-0.2638106644153595,
0.05053205043077469,
-0.04944942891597748,
0.07281700521707535,
-0.08217950165271759,
-0.4266444444656372,
0.08840416371822357,
0.5214288234710693,
0.12974393367767334,
0.20864275097846985,
-0.00011583463492570445,
-0.27808132767677307,
0.3429805040359497,
-0.13841043412685394,
-0.40349119901657104,
-0.4584888815879822,
-0.42352646589279175,
0.0029789218679070473,
0.0892837792634964,
-0.017119944095611572,
-0.29048237204551697,
0.11056158691644669,
0.4717690646648407,
-0.2651776075363159,
0.25561270117759705,
0.16044412553310394,
0.17069745063781738,
-0.13255855441093445,
-0.006909918040037155,
0.16139326989650726,
0.008453503251075745,
0.11360684037208557,
-0.07889176905155182,
0.36573728919029236,
0.059948794543743134,
-0.23728904128074646,
-0.10263203829526901,
0.12624642252922058,
-0.012331197038292885,
0.0853775218129158,
0.41084155440330505,
0.1294185072183609,
-0.20255979895591736,
-0.4190254211425781,
-0.04824521392583847,
0.28519922494888306,
0.5857831239700317,
-0.14894866943359375,
-0.288429319858551,
-0.31779080629348755,
0.270614355802536,
-0.06861986964941025,
0.16447415947914124,
0.47628265619277954,
-0.18378165364265442,
-0.07727155089378357,
0.009502753615379333,
0.21651798486709595,
-0.16723643243312836,
0.12563273310661316,
0.05509530007839203,
0.5633864402770996,
0.02056828886270523,
-0.04643027484416962,
0.040321364998817444,
0.1976747065782547,
0.26653072237968445,
-0.20731908082962036,
-0.014918182045221329,
0.10456628352403641,
-0.2946232557296753,
-0.1331089735031128,
0.13274061679840088,
0.4168831408023834,
0.14233210682868958,
0.1887684017419815,
0.18841683864593506,
0.12478385120630264,
-0.14091528952121735,
0.027752593159675598,
0.36606377363204956,
0.44431257247924805,
0.04693155735731125,
0.08828423917293549,
0.4415363669395447,
0.0005819379584863782,
-0.14010308682918549,
0.2631992995738983,
-0.04518072307109833,
-0.24479509890079498,
0.13522160053253174,
0.09173885732889175,
0.18280142545700073,
-0.24483834207057953,
-0.4639568626880646,
-0.20881076157093048,
-0.28683143854141235,
-0.04727203771471977,
-0.07362595200538635,
0.23721209168434143,
-0.2772252857685089,
0.1708793044090271,
-0.2723610997200012,
0.23965051770210266,
-0.09439702332019806,
-0.06687068194150925,
-0.05132950469851494,
-0.14786475896835327,
-0.3596414029598236,
0.17182746529579163,
0.17158354818820953,
0.04330127686262131,
0.15750467777252197,
0.2333865910768509,
-0.23060114681720734,
-0.13134625554084778,
0.06312257796525955,
-0.38461634516716003,
0.07070288807153702,
-0.0532534159719944,
0.12675578892230988,
-0.06794612109661102,
-0.20075513422489166,
-0.22584743797779083,
-0.3948824107646942,
0.07321742922067642,
-0.18758755922317505,
-0.041599638760089874,
-0.08119156956672668,
0.1269269436597824,
-0.3006805181503296,
-0.160151407122612,
-0.37782686948776245,
0.41544049978256226,
0.10396910458803177,
-0.03998991847038269,
-0.12125851958990097,
-0.22154797613620758,
-0.32282593846321106,
-0.308176726102829,
-0.20479066669940948,
0.5929173231124878,
-0.25095459818840027,
0.13471627235412598,
-0.01442631147801876,
0.3353869318962097,
0.3446998596191406,
0.34230464696884155,
0.09490299224853516,
0.18372716009616852,
-0.20548856258392334,
0.031585656106472015,
0.09781966358423233,
-0.13028965890407562,
-0.11564016342163086,
0.12164828181266785,
-0.1305004358291626,
0.3174390494823456,
-0.0036308541893959045,
0.24522435665130615,
0.07085832208395004,
-0.29528895020484924,
0.13270419836044312,
0.5699857473373413,
0.0917886421084404,
0.16612403094768524,
-0.20988093316555023,
-0.12399850785732269,
0.15350273251533508,
0.08691805601119995,
-0.07332487404346466,
0.2437753975391388,
-0.026379458606243134,
-0.06938536465167999,
0.19956323504447937,
0.038173966109752655,
-0.35440942645072937,
0.11357241868972778,
0.4417843520641327,
0.02597682923078537,
0.017402242869138718,
0.03216227889060974,
-0.676128625869751,
0.20365184545516968,
-0.08103108406066895,
0.28077879548072815,
-0.13864919543266296,
-0.18944494426250458,
-0.03126139938831329,
-0.2177095264196396,
-0.35112112760543823,
0.01804472506046295,
0.12515927851200104,
0.461076021194458,
0.2965366244316101,
0.33133476972579956,
0.11297677457332611,
0.44522061944007874,
0.027772335335612297,
-0.15774601697921753,
-0.4701622426509857,
0.34229952096939087,
-0.0647965669631958,
-0.16054776310920715,
0.29367294907569885,
0.26502758264541626,
-0.011513851583003998,
-0.20746926963329315,
-0.08900707960128784,
0.3012992739677429,
0.20347493886947632,
0.1466958373785019,
0.19649949669837952,
-0.004754647612571716,
0.057186029851436615,
-0.04782488942146301,
0.12565650045871735,
0.33278539776802063,
-0.07415201514959335,
-0.09177552908658981,
-0.04371558129787445,
0.42655545473098755,
-0.1051943451166153,
0.24555379152297974,
0.060308076441287994,
-0.06336897611618042,
0.14090701937675476,
0.010124068707227707,
0.03380627930164337,
-0.2565670609474182,
0.314115434885025,
0.188461035490036,
0.4168972969055176,
0.4318353235721588,
-0.6472994685173035,
0.2532043755054474,
0.6687130928039551,
0.13112413883209229,
0.1337902843952179,
0.04708553105592728,
0.10586436092853546,
-0.26049166917800903,
0.19742891192436218,
0.32419145107269287,
0.4786662459373474,
0.171110600233078,
-0.08000791072845459,
-0.07539059221744537,
-0.1365273892879486,
-0.31839755177497864,
0.010921455919742584,
-0.051234811544418335,
0.1863216906785965,
0.11051330715417862,
0.3885013461112976,
0.21454420685768127,
-0.30575641989707947,
-0.0753760039806366,
-0.0978044867515564,
0.015089031308889389,
-0.10579071938991547,
0.17744825780391693,
-0.3200421929359436,
-0.2972356975078583,
-0.38058385252952576,
-0.07748004794120789,
-0.3543397784233093,
-0.2322283685207367,
0.12335893511772156,
0.2657914161682129,
0.0365586094558239,
-0.0707647055387497,
0.15330393612384796,
0.278475284576416,
-0.0448836050927639,
-0.44757890701293945,
-0.20643900334835052,
-0.08436784148216248,
-0.355639785528183,
-0.04007597640156746,
0.460666686296463,
0.24197141826152802,
0.47478973865509033,
-0.19622249901294708,
-0.20926639437675476,
0.06628437340259552,
-0.3068494498729706,
-0.08876688778400421,
-0.30298948287963867,
0.3668179214000702,
-0.09317706525325775,
-0.12271115183830261,
-0.030036676675081253,
-0.0684269592165947,
-0.004123784601688385,
0.03556323051452637,
-0.0885951817035675,
0.11383886635303497,
0.028828443959355354,
-0.03520607948303223,
-0.011494334787130356,
-0.3158373534679413,
-0.23809795081615448,
-0.16397742927074432,
0.11473062634468079,
0.3120843172073364,
0.1828114092350006,
0.30574995279312134,
-0.09691186249256134,
-0.3069819509983063,
0.11507740616798401,
0.0978919267654419,
-0.0968041718006134,
-0.03914063423871994,
0.41574034094810486,
-0.18580745160579681,
-0.2301393300294876,
-0.33224284648895264,
-0.15928338468074799,
-0.10929520428180695,
0.11760025471448898,
-0.29035305976867676,
-0.2713468074798584,
-0.39095839858055115,
0.05726061388850212,
-0.02905397117137909,
-0.3220250904560089,
0.4101307988166809,
0.06309475004673004,
0.05248009413480759,
0.1303125023841858,
0.000993933528661728,
0.20093269646167755,
0.2924928367137909,
0.37570202350616455,
0.17868617177009583,
-0.00035963207483291626,
0.017693493515253067,
0.43010348081588745,
0.09234786033630371,
-0.37380537390708923,
0.22872813045978546,
0.13664987683296204,
0.3163931369781494,
-0.4368562400341034,
-0.028984228149056435,
0.26675400137901306,
0.2625017762184143,
-0.081997349858284,
0.5508412718772888,
-0.016409117728471756,
-0.0700128898024559,
-0.09534093737602234,
0.2730451822280884,
-0.2342889904975891,
-0.21628114581108093,
0.025558138266205788,
-0.2762468755245209,
-0.14694824814796448,
0.12631893157958984,
0.14955031871795654,
0.08502079546451569,
-0.44249993562698364,
-0.23435699939727783,
0.12432536482810974,
0.13465255498886108,
0.06921662390232086,
0.2602698802947998,
0.07623373717069626,
-0.6774924397468567,
0.1283605694770813,
0.004722018726170063,
0.1181294322013855,
0.014970723539590836,
-0.08967834711074829,
0.2548971176147461,
-0.03828664496541023,
0.19863349199295044,
-0.10412711650133133,
0.16073305904865265,
-0.06852667778730392,
0.11130312085151672,
0.06220284104347229,
-0.2332199364900589,
-0.3385123014450073,
0.019941197708249092,
0.12854531407356262,
0.2212199866771698,
-0.433519184589386,
-0.09375369548797607,
0.0029253195971250534,
0.1344001293182373,
0.02825860306620598,
-0.4729936122894287,
-0.5182265043258667,
-0.04306044429540634,
0.20436997711658478,
-0.1321987807750702,
-0.04231864586472511,
0.1051005870103836,
-0.4083649814128876,
-0.17321808636188507,
-0.04168587177991867,
-0.23626941442489624,
0.3166961967945099,
0.30831989645957947,
0.232136070728302,
0.024830201640725136,
0.02488107979297638,
0.06789977848529816,
0.09191160649061203,
0.22810721397399902,
0.3187689185142517,
0.007566986605525017,
-0.2902912199497223,
-0.19192615151405334,
-0.19614388048648834,
0.02288450300693512,
0.27324211597442627,
-0.06385014206171036,
-0.15827402472496033,
-0.6268543004989624,
0.045140355825424194,
-0.28553301095962524,
0.20332783460617065,
0.21781712770462036,
-0.09050203859806061,
-0.47626298666000366,
-0.37623023986816406,
0.5591687560081482,
0.1271013468503952,
-0.2329285442829132,
0.36571455001831055,
-0.043195679783821106,
-0.4890768527984619,
0.5494601726531982,
0.3100155293941498,
0.7622917890548706,
-0.2927522659301758,
0.030071787536144257,
0.23636937141418457,
0.0642995536327362,
0.5886326432228088,
0.14540408551692963,
0.42017221450805664,
-0.5156995058059692,
-0.26897236704826355,
-0.028115984052419662,
-0.04442691057920456,
-0.11504615098237991,
0.28564149141311646,
-0.44193434715270996,
0.47608131170272827,
0.014062337577342987,
0.1571817398071289,
0.018743939697742462,
0.5202625393867493,
-0.16113872826099396,
-0.057636599987745285,
-0.3130171298980713,
0.09544367343187332,
-0.20469792187213898,
0.3586156964302063,
-0.14189499616622925,
-0.12247098982334137,
0.0769275426864624,
0.094654381275177,
-0.16011419892311096,
0.3148656189441681,
-0.3392430245876312,
-0.0466802716255188,
0.04138359799981117,
-0.27785003185272217,
0.07198752462863922,
0.41865307092666626,
0.19133275747299194,
0.2318604737520218,
-0.16486558318138123,
0.05273403972387314,
0.18181844055652618,
0.09413060545921326,
0.1307237148284912,
-0.240759938955307,
0.4110294580459595,
0.21036717295646667,
0.03688570111989975,
-0.3947612941265106,
0.19934909045696259,
-0.3416978716850281,
-0.491068571805954,
0.09180985391139984,
-0.24263332784175873,
0.3264854848384857,
-0.20107191801071167,
0.14210659265518188,
0.011490147560834885,
-0.026200439780950546,
0.12757523357868195,
-0.046831078827381134,
0.24898125231266022,
0.3928258419036865,
-0.012046024203300476,
-0.43475836515426636,
-0.027420707046985626,
0.13086502254009247,
0.02688673511147499,
0.2842254936695099,
0.3605414032936096,
-0.033177733421325684,
-0.06605590134859085,
-0.2653255760669708,
-0.17218941450119019,
-0.5158196091651917,
-0.09475655108690262,
0.29796913266181946,
0.03572027385234833,
0.1108245700597763,
0.10813771933317184,
0.28122130036354065,
-0.03838326036930084,
0.010208174586296082,
0.06101725623011589,
-0.47039908170700073,
0.21520453691482544,
-0.0067408084869384766,
-0.06765498220920563,
0.09686841070652008,
-0.09512105584144592,
0.2797605097293854,
-0.0007644128054380417,
0.09798023104667664,
-0.2943919003009796,
-0.2169238030910492,
-0.1794058084487915,
0.0438164621591568,
-0.14726562798023224,
-0.06505250185728073,
0.04978114739060402,
0.0632481724023819,
0.0525723472237587,
-0.02846170961856842,
-0.016355937346816063,
-0.19104662537574768,
0.0360109880566597,
0.12801441550254822,
0.07515208423137665,
0.18783745169639587,
-0.11149890720844269,
-0.40708112716674805,
-0.18924866616725922,
-0.44327741861343384,
0.03956601396203041,
0.08884499222040176,
0.02929900586605072,
0.1543978750705719,
0.18245914578437805,
0.2711309492588043,
0.1931782066822052,
0.1698930859565735,
-0.4526245892047882,
-0.03655591607093811,
0.1458546668291092,
0.16099101305007935,
0.0773921012878418,
0.18308988213539124,
-0.24892568588256836,
-0.012200474739074707,
0.07747228443622589,
0.20768630504608154,
-0.06409953534603119,
-0.21602074801921844,
-0.040185362100601196,
-0.06090978905558586,
0.1401110589504242,
0.6141611337661743,
0.042242784053087234,
-0.587252140045166,
0.19727709889411926,
0.15556591749191284,
-0.2832270562648773,
0.19960780441761017,
-0.09180323779582977,
0.4179369807243347,
0.02508286014199257,
0.2798299193382263,
0.26908770203590393,
0.08119547367095947,
-0.11955948173999786,
-0.0003816727548837662,
0.30484193563461304,
-0.04199827462434769,
0.3419767916202545,
0.036452069878578186,
0.21215327084064484,
0.038688164204359055,
0.1549912393093109,
-0.17111334204673767,
-0.1503053605556488,
0.22968319058418274,
0.06488607823848724,
0.28507643938064575,
-0.18672394752502441,
-0.1570703536272049,
0.15218833088874817,
-0.09781773388385773,
0.04136711731553078,
0.7915151119232178,
-0.007006809115409851,
0.21068280935287476,
0.38845396041870117,
0.44529253244400024,
-0.3818202018737793,
-0.09551476687192917,
-0.5060693025588989,
-0.13139386475086212,
-0.03535737842321396,
-0.09416267275810242,
-0.10144101083278656,
0.006801731884479523,
-0.12481370568275452,
0.08568687736988068,
-0.0818605124950409,
-0.05897118151187897,
0.01747797429561615,
0.1732759177684784,
-0.17361007630825043,
-0.6126015782356262,
0.4208393096923828,
-0.0890989825129509,
0.39698338508605957,
-0.12267144024372101,
0.27712053060531616,
-0.20974569022655487,
0.04110050946474075,
0.11428561806678772,
0.1573394536972046,
0.1676444113254547,
0.7388734221458435,
-0.34038153290748596,
-0.1936325877904892,
-0.26827260851860046,
0.06406247615814209,
-0.05717715993523598,
0.29445627331733704,
-0.012330196797847748,
-0.08725765347480774,
0.4612792134284973,
0.06939216703176498,
-0.06574755907058716,
0.27577638626098633,
0.4123500883579254,
0.08467014133930206,
-0.038226835429668427,
0.43249082565307617,
0.10083837062120438,
0.02945268154144287,
-0.027844764292240143,
0.14072006940841675,
-0.3330124616622925,
-0.10363781452178955,
-0.02335938811302185,
0.00211030594073236,
-0.12464108318090439,
-0.2778751254081726,
0.05767446011304855,
-0.04927099868655205,
0.4179219603538513,
0.2882554829120636,
0.19793465733528137,
-0.28824353218078613,
-0.20998695492744446,
-0.5732442140579224,
0.24515849351882935,
-0.022960606962442398,
-0.017884710803627968,
-0.2719833254814148,
0.36996152997016907,
-0.3169702887535095,
-0.004687972366809845,
-0.47000449895858765,
0.34478136897087097,
-0.1375872790813446,
0.08389300853013992,
-0.5932188630104065,
-0.01896338164806366,
-0.5143900513648987,
-0.22275981307029724,
-0.08780781924724579,
-0.4162074029445648,
-0.033026162534952164,
-0.27584800124168396,
-0.06263045221567154,
0.009584162384271622,
0.30214959383010864,
0.05746449902653694,
0.4434824585914612,
0.26207199692726135,
0.17335104942321777,
0.3690352439880371,
-0.04310930520296097,
-0.024049190804362297,
-0.31462281942367554,
-0.032263778150081635,
-0.47415322065353394,
0.2322257161140442,
0.10998241603374481,
0.16361954808235168,
-0.04513535648584366,
0.3210478723049164,
-0.15691536664962769,
0.5310443639755249,
-0.004238732159137726,
0.1621018350124359,
-0.3588058054447174,
-0.14239796996116638,
-0.16092008352279663,
0.07543284446001053,
-0.13203713297843933,
0.118378184735775,
0.043726056814193726,
0.003647454082965851,
-0.25474369525909424,
-0.2821335196495056,
0.3977830410003662,
-0.23989629745483398,
-0.2634277939796448,
-0.11078226566314697,
0.2522282302379608,
0.16576027870178223,
-0.25897347927093506,
-0.4841286242008209,
0.06080109626054764,
0.22510270774364471,
0.03165239095687866,
0.1219402551651001,
0.33861044049263,
0.022023122757673264,
0.1309373527765274,
-0.20101016759872437,
0.1215449720621109,
-0.06637083739042282,
-0.3270967900753021,
-0.12180092930793762,
-0.23555004596710205
] |
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.11650663614273071,
0.12424987554550171,
-0.08600346744060516,
0.05706354230642319,
0.017675351351499557,
0.14669129252433777,
0.1669219434261322,
0.30946359038352966,
-0.20071355998516083,
0.021816380321979523,
0.060288965702056885,
0.5790072083473206,
-0.0935090109705925,
0.08411640673875809,
0.2967386543750763,
-0.06326800584793091,
0.07989399135112762,
0.3547495901584625,
0.4398042559623718,
-0.17095571756362915,
-0.3041888177394867,
0.33386558294296265,
-0.08771350979804993,
0.013870835304260254,
-0.33899256587028503,
-0.13993853330612183,
-0.1987461894750595,
0.15173599123954773,
-0.3689010441303253,
-0.24407599866390228,
0.48672789335250854,
-0.07338856160640717,
0.1036616787314415,
0.5475571751594543,
-0.00011407749116187915,
0.010212548077106476,
0.3725017309188843,
-0.1520184427499771,
-0.4637058973312378,
-0.5580251216888428,
-0.009793441742658615,
-0.4027787148952484,
0.11497395485639572,
-0.3410843014717102,
-0.1230618804693222,
-0.32428476214408875,
0.20140300691127777,
-0.1395287811756134,
-0.11613084375858307,
0.4508827030658722,
0.17983728647232056,
0.061832576990127563,
0.1842111200094223,
-0.08671891689300537,
0.00012543797492980957,
0.276214599609375,
-0.24014034867286682,
0.20989394187927246,
0.5791470408439636,
-0.031257133930921555,
0.26881787180900574,
-0.04652199149131775,
-0.06592679023742676,
-0.2932346761226654,
0.25912341475486755,
0.15986354649066925,
0.015618864446878433,
-0.4965943396091461,
0.026163313537836075,
0.07965254038572311,
0.7736669182777405,
-0.5069000124931335,
-0.34755465388298035,
0.07921350747346878,
0.1948913037776947,
0.0815226137638092,
0.026132483035326004,
0.3870612680912018,
-0.0036241142079234123,
-0.14681784808635712,
-0.4909802973270416,
-0.38367849588394165,
-0.13943132758140564,
0.3541182279586792,
0.21877291798591614,
0.24535202980041504,
-0.03379546105861664,
0.04224749654531479,
-0.01601501926779747,
-0.05356820672750473,
-0.13028831779956818,
-0.18596969544887543,
-0.12865856289863586,
0.25328952074050903,
-0.05366740748286247,
-0.5121895670890808,
0.1687164455652237,
-0.007686547935009003,
-0.08953650295734406,
0.06112804263830185,
-0.032623499631881714,
-0.2746410369873047,
-0.2865625321865082,
0.18327686190605164,
0.20465388894081116,
-0.11063529551029205,
0.2796587347984314,
0.0797308087348938,
0.07748337090015411,
0.0558379627764225,
0.07856877148151398,
-0.06780099868774414,
-0.033566173166036606,
0.015615868382155895,
-0.12776318192481995,
-0.09943216294050217,
0.3245652914047241,
-0.07417797297239304,
0.07186095416545868,
0.0012807128950953484,
-0.19816923141479492,
-0.1333116739988327,
0.11727079749107361,
0.29368317127227783,
-0.07195767015218735,
-0.28001299500465393,
-0.02514958754181862,
0.20711416006088257,
-0.41142019629478455,
-0.01166054978966713,
-0.16452379524707794,
0.49445751309394836,
-0.20560160279273987,
-0.02622866816818714,
0.38757893443107605,
0.10167045891284943,
0.33388495445251465,
-0.013087340630590916,
-0.3687388300895691,
-0.15569277107715607,
0.39184653759002686,
-0.21217405796051025,
-0.17901217937469482,
0.22895413637161255,
0.11604608595371246,
0.11397773772478104,
-0.03786228224635124,
-0.36688780784606934,
-0.38329124450683594,
0.19166448712348938,
-0.23506081104278564,
-0.3481484055519104,
-0.2838728129863739,
0.1933901160955429,
0.06136854737997055,
-0.23428452014923096,
-0.314606636762619,
0.27518782019615173,
0.30977505445480347,
-0.3435208797454834,
0.06339658051729202,
0.07586358487606049,
-0.134301096200943,
-0.23051340878009796,
-0.09996882826089859,
0.3998723030090332,
-0.4836794137954712,
-0.07219943404197693,
-0.3215022385120392,
-0.009419221431016922,
0.1910141408443451,
-0.0352817066013813,
-0.20967534184455872,
0.5171996355056763,
-0.13384786248207092,
0.1112850159406662,
0.515387773513794,
-0.18933235108852386,
-0.18746130168437958,
0.2695930302143097,
-0.19403022527694702,
-0.2928600311279297,
0.07255613803863525,
0.250730037689209,
-0.041415099054574966,
-0.16878642141819,
0.13270863890647888,
0.09178616851568222,
-0.12619182467460632,
0.049473896622657776,
0.08353820443153381,
-0.006045270711183548,
0.05104028806090355,
0.11938102543354034,
-0.2383526712656021,
0.10864423960447311,
0.1355070322751999,
0.25907468795776367,
0.09780184924602509,
-0.03122704103589058,
0.17799147963523865,
0.4847254157066345,
0.38853058218955994,
-0.005946949124336243,
-0.022813720628619194,
-0.0708327367901802,
-0.33621448278427124,
-0.08187180757522583,
-0.23700065910816193,
0.404316782951355,
0.03376596421003342,
-0.002796262502670288,
-0.47163352370262146,
-0.19266776740550995,
0.033481061458587646,
-0.11761479079723358,
0.08502430468797684,
0.016210567206144333,
0.39784514904022217,
0.10037966072559357,
-0.2538129389286041,
0.07752447575330734,
-0.17115604877471924,
0.06652265787124634,
-0.8675044775009155,
0.34719622135162354,
-0.2013234943151474,
-0.2094377875328064,
0.24705356359481812,
0.23108190298080444,
-0.01762165129184723,
-0.14729692041873932,
0.15028545260429382,
0.22656893730163574,
-0.14524173736572266,
0.33610567450523376,
0.2227085828781128,
0.12884213030338287,
0.28853458166122437,
-0.2038084715604782,
0.14635662734508514,
0.0493762269616127,
0.19623450934886932,
-0.021721668541431427,
-0.0831136628985405,
0.05355578660964966,
0.1434139758348465,
-0.05503042787313461,
0.16171789169311523,
-0.04391315579414368,
0.1402130424976349,
-0.17860843241214752,
0.07698745280504227,
-0.24211697280406952,
0.1755622774362564,
0.07551084458827972,
0.13160783052444458,
0.04862532392144203,
-0.0772266685962677,
0.23074853420257568,
0.30670586228370667,
0.05310080572962761,
0.04318886622786522,
0.15799450874328613,
0.03988104686141014,
-0.09149583429098129,
-0.16357773542404175,
0.28643599152565,
0.43378961086273193,
0.13054390251636505,
-0.17257380485534668,
-0.04459787905216217,
-0.10544025897979736,
-0.23387348651885986,
0.17621305584907532,
-0.14458659291267395,
0.18157000839710236,
0.05537591874599457,
0.2064574956893921,
-0.09188280999660492,
-0.1981731355190277,
-0.45030659437179565,
0.25827527046203613,
0.2915618121623993,
0.012532893568277359,
0.23301921784877777,
-0.04836025834083557,
-0.2889659106731415,
-0.10235703736543655,
-0.219997376203537,
-0.027930304408073425,
-0.1097455769777298,
0.04495132341980934,
0.21489793062210083,
0.21191422641277313,
-0.12067090719938278,
-0.19590140879154205,
0.1891414374113083,
-0.08827850222587585,
-0.35751399397850037,
-0.08856146782636642,
-0.2564787268638611,
-0.18699002265930176,
0.10573503375053406,
0.03482475131750107,
0.14010006189346313,
0.24952447414398193,
-0.1843918263912201,
0.010568393394351006,
-0.166046142578125,
-0.2570819556713104,
0.0180804580450058,
-0.15953195095062256,
0.1950276792049408,
0.17406266927719116,
0.05979246646165848,
-0.2608330249786377,
-0.42547160387039185,
0.0775657594203949,
-0.01162627898156643,
-0.4032614827156067,
0.0009184442460536957,
-0.17337004840373993,
-0.12209730595350266,
-0.040748585015535355,
-0.711997389793396,
-0.3251390755176544,
-0.21316099166870117,
-0.015592850744724274,
0.16318120062351227,
0.19772666692733765,
0.4130184054374695,
-0.07574549317359924,
0.1082073301076889,
0.1723182201385498,
0.2316487729549408,
-0.06923393160104752,
-0.36342841386795044,
0.3943195044994354,
-0.5005176663398743,
-0.28425073623657227,
0.1889236569404602,
-0.461821973323822,
0.23753449320793152,
-0.17418283224105835,
-0.5138137936592102,
0.016808226704597473,
-0.29809874296188354,
0.0059209465980529785,
0.13436734676361084,
0.23399457335472107,
0.4963957667350769,
-0.027937481179833412,
-0.05390598624944687,
-0.10333120822906494,
-0.45800352096557617,
0.022857382893562317,
0.42395684123039246,
0.6483792066574097,
-0.09557917714118958,
0.176687091588974,
-0.43665510416030884,
0.13951069116592407,
0.3806612491607666,
-0.022997315973043442,
0.4596583843231201,
-0.06421401351690292,
0.284216970205307,
-0.28907206654548645,
-0.3776218891143799,
0.2021716833114624,
0.2846028208732605,
-0.09684192389249802,
0.19153863191604614,
0.08896537870168686,
-0.19004949927330017,
-0.1813448667526245,
-0.1297159045934677,
-0.43872231245040894,
-0.06704134494066238,
-0.16066999733448029,
-0.01544632762670517,
0.2671152353286743,
0.08936920762062073,
-0.06376733630895615,
-0.1456252634525299,
-0.2757140100002289,
-0.22359076142311096,
0.47275519371032715,
0.19740954041481018,
0.12087248265743256,
-0.27663055062294006,
-0.06120770797133446,
-0.30730709433555603,
-0.03779548406600952,
0.02388523332774639,
0.29377713799476624,
-0.2029542773962021,
0.2554224133491516,
0.06292016804218292,
-0.012339765205979347,
0.5490010976791382,
-0.2908588647842407,
-0.20555166900157928,
0.26330041885375977,
-0.058042146265506744,
-0.22411437332630157,
0.18051347136497498,
-0.10403358191251755,
0.6076476573944092,
0.24335362017154694,
0.5753424167633057,
-0.31156542897224426,
0.2990724444389343,
0.12145085632801056,
0.370184063911438,
-0.2317987084388733,
-0.2861902117729187,
-0.19550134241580963,
-0.4630239009857178,
-0.1389048546552658,
-0.30914467573165894,
-0.3363454043865204,
0.47525498270988464,
0.23033088445663452,
0.17040182650089264,
0.3116014301776886,
-0.11960583180189133,
0.28410547971725464,
0.11535464227199554,
0.2576379179954529,
0.23350408673286438,
0.42463985085487366,
-0.10522864758968353,
-0.06710547208786011,
0.3669823110103607,
0.6004719138145447,
0.20311051607131958,
-0.09567323327064514,
0.12841995060443878,
-0.03640354052186012,
0.39536693692207336,
-0.013246536254882812,
0.2669260799884796,
-0.10981940478086472,
0.02109413594007492,
-0.2184126228094101,
-0.11553152650594711,
-0.02340986579656601,
-0.019396809861063957,
-0.22414657473564148,
-0.688864529132843,
-0.39393049478530884,
0.24238058924674988,
-0.010685478337109089,
0.3002971410751343,
0.2865821123123169,
0.1424812376499176,
-0.22004325687885284,
0.47148627042770386,
-0.21347543597221375,
0.8308828473091125,
-0.0526556670665741,
-0.0279703326523304,
0.04540909081697464,
0.15106643736362457,
0.7034144401550293,
-0.5142803192138672,
0.41265058517456055,
-0.3891032338142395,
-0.02690858393907547,
0.051578350365161896,
-0.17580018937587738,
0.17506414651870728,
0.41788262128829956,
-0.43252646923065186,
0.19300518929958344,
-0.08226742595434189,
-0.11858388781547546,
-0.17026686668395996,
0.4646315574645996,
-0.12328127771615982,
-0.3681623339653015,
-0.3878655433654785,
0.12439025938510895,
-0.15596184134483337,
0.38852453231811523,
-0.09368190914392471,
-0.017325788736343384,
-0.5373470187187195,
-0.023767467588186264,
-0.21049746870994568,
-0.022060707211494446,
0.31865617632865906,
0.2498062252998352,
0.5425418615341187,
-0.39588606357574463,
0.16806137561798096,
0.15377365052700043,
0.5115234851837158,
0.3233717381954193,
-0.21308322250843048,
-0.0431414358317852,
-0.008564271032810211,
-0.41504374146461487,
0.08617420494556427,
0.023317359387874603,
0.3259398937225342,
0.0027126334607601166,
-0.24869376420974731,
0.15543797612190247,
-0.09102325141429901,
-0.05307038500905037,
-0.09715497493743896,
-0.14653386175632477,
-0.24172978103160858,
-0.27598991990089417,
-0.3625268340110779,
0.25870025157928467,
-0.1688542515039444,
-0.14154571294784546,
0.07883629947900772,
0.2971159815788269,
-0.13539175689220428,
0.11851563304662704,
0.020256949588656425,
-0.18127796053886414,
-0.22068999707698822,
0.23206570744514465,
0.35091689229011536,
-0.17117753624916077,
0.45930802822113037,
0.21996073424816132,
-0.08074340224266052,
-0.23452678322792053,
0.1070890948176384,
0.12530595064163208,
-0.12980131804943085,
0.2112327665090561,
0.36168575286865234,
0.150472030043602,
0.28391513228416443,
0.3608107268810272,
-0.16636337339878082,
0.16324903070926666,
0.07301373779773712,
-0.3863007128238678,
-0.436652809381485,
0.24695736169815063,
0.024427754804491997,
0.09015451371669769,
0.13847869634628296,
0.38774967193603516,
0.2723519504070282,
0.035062264651060104,
-0.26488202810287476,
-0.045566946268081665,
-0.3696911334991455,
0.2637796998023987,
0.24916128814220428,
0.060501813888549805,
-0.21608515083789825,
-0.05757081136107445,
0.05101490020751953,
-0.2033001035451889,
-0.029042545706033707,
-0.15440812706947327,
-0.22161312401294708,
0.15202638506889343,
0.1260635256767273,
0.015447665937244892,
-0.12458024173974991,
-0.22966721653938293,
-0.2332468330860138,
-0.019939694553613663,
-0.26050764322280884,
0.17805328965187073,
0.10190975666046143,
0.15461845695972443,
0.09359762817621231,
-0.326978474855423,
-0.10735610127449036,
-0.014843553304672241,
-0.0619533509016037,
0.3862450122833252,
0.08435270190238953,
0.04523342475295067,
0.11616657674312592,
0.04253847897052765,
-0.4028133153915405,
0.07011200487613678,
-0.15169362723827362,
0.08376204967498779,
0.1490863859653473,
-0.15714487433433533,
0.26674264669418335,
0.021798351779580116,
0.10998314619064331,
0.34660619497299194,
-0.13597358763217926,
0.14051741361618042,
0.26055365800857544,
0.11154522746801376,
-0.16209092736244202,
-0.044080495834350586,
0.32794609665870667,
0.043479979038238525,
-0.012226954102516174,
0.3146597743034363,
-0.13310478627681732,
0.131069615483284,
-0.14787793159484863,
0.18498817086219788,
0.3246777355670929,
-0.06314752995967865,
0.25773435831069946,
0.1364099681377411,
0.001292441040277481,
-0.09770168364048004,
0.2594444453716278,
0.18815255165100098,
-0.0853218212723732,
0.182377889752388,
0.045088592916727066,
0.3973943889141083,
0.3023518919944763,
0.2861185073852539,
0.21092689037322998,
-0.2249993085861206,
0.050446487963199615,
-0.20212393999099731,
0.25073280930519104,
-0.04192614555358887,
0.08260214328765869,
0.21872550249099731,
-0.19586828351020813,
0.3018075227737427,
-0.17804083228111267,
0.10303837060928345,
-0.32084864377975464,
-0.06560018658638,
-0.11257041245698929,
-0.2674711048603058,
0.25465869903564453,
-0.08748054504394531,
0.02925620786845684,
-0.10721787810325623,
-0.15491357445716858,
-0.05317872762680054,
-0.05561190843582153,
-0.3274426758289337,
0.4158908724784851,
-0.01481134444475174,
0.020926713943481445,
-0.10051344335079193,
0.31730467081069946,
-0.16874577105045319,
-0.12283185124397278,
-0.12241150438785553,
0.3447616696357727,
0.30761319398880005,
0.346965491771698,
0.1381109207868576,
0.2645438611507416,
-0.07761797308921814,
-0.19061802327632904,
0.1139085441827774,
0.49975791573524475,
0.45840635895729065,
-0.10555970668792725,
0.02512764185667038,
0.059028320014476776,
-0.024465061724185944,
0.13379645347595215,
0.5156474113464355,
0.03815007954835892,
0.16639694571495056,
0.44952714443206787,
-0.1199103444814682,
-0.12360430508852005,
-0.25661730766296387,
0.2996981143951416,
-0.40785929560661316,
-0.12763521075248718,
0.5206471085548401,
0.040347009897232056,
-0.009024430066347122,
-0.3289634883403778,
0.07926294207572937,
-0.04677299037575722,
0.2938726842403412,
0.370154470205307,
0.12014235556125641,
-0.2625783383846283,
-0.24848151206970215,
-0.3296501636505127,
-0.06240657716989517,
-0.1111391931772232,
-0.16207723319530487,
-0.225221186876297,
0.36316558718681335,
0.02614525705575943,
0.18046003580093384,
-0.36288267374038696,
0.28943806886672974,
-0.14855602383613586,
0.07487603276968002,
-0.14089812338352203,
-0.3381899893283844,
-0.15416370332241058,
0.19007037580013275,
-0.08194974064826965,
-0.08714449405670166,
-0.018498245626688004,
-0.2756529152393341,
-0.011309370398521423,
-0.4327602982521057,
-0.21586285531520844,
0.21756578981876373,
0.3473261594772339,
0.1009332612156868,
0.07363896816968918,
0.3765217661857605,
-0.2977443039417267,
-0.1872081607580185,
-0.19394990801811218,
-0.22783595323562622,
-0.09511993080377579,
0.27850231528282166,
0.28277164697647095,
0.37742599844932556,
-0.301546186208725,
0.36142972111701965,
-0.14139345288276672,
0.09885422885417938,
-0.03094802424311638,
0.1174742579460144,
-0.09106145799160004,
0.012101275846362114,
-0.29160863161087036,
-0.0935947373509407,
0.07177788764238358,
0.2724189758300781,
0.0033911168575286865,
0.32026514410972595,
-0.09971462190151215,
-0.4491751492023468,
0.46735331416130066,
-0.2092687040567398,
-0.18863165378570557,
-0.027948427945375443,
0.027369923889636993,
-0.2985513210296631,
-0.2551027238368988,
-0.24643060564994812,
0.07022599130868912,
0.355366975069046,
-0.281326562166214,
0.018216293305158615,
0.09182597696781158,
-0.1916157454252243,
0.047814738005399704,
-0.026989884674549103,
0.17802514135837555,
0.10363848507404327,
0.008864754810929298,
-0.11351379752159119,
0.04193812608718872
] |
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.11650663614273071,
0.12424987554550171,
-0.08600346744060516,
0.05706354230642319,
0.017675351351499557,
0.14669129252433777,
0.1669219434261322,
0.30946359038352966,
-0.20071355998516083,
0.021816380321979523,
0.060288965702056885,
0.5790072083473206,
-0.0935090109705925,
0.08411640673875809,
0.2967386543750763,
-0.06326800584793091,
0.07989399135112762,
0.3547495901584625,
0.4398042559623718,
-0.17095571756362915,
-0.3041888177394867,
0.33386558294296265,
-0.08771350979804993,
0.013870835304260254,
-0.33899256587028503,
-0.13993853330612183,
-0.1987461894750595,
0.15173599123954773,
-0.3689010441303253,
-0.24407599866390228,
0.48672789335250854,
-0.07338856160640717,
0.1036616787314415,
0.5475571751594543,
-0.00011407749116187915,
0.010212548077106476,
0.3725017309188843,
-0.1520184427499771,
-0.4637058973312378,
-0.5580251216888428,
-0.009793441742658615,
-0.4027787148952484,
0.11497395485639572,
-0.3410843014717102,
-0.1230618804693222,
-0.32428476214408875,
0.20140300691127777,
-0.1395287811756134,
-0.11613084375858307,
0.4508827030658722,
0.17983728647232056,
0.061832576990127563,
0.1842111200094223,
-0.08671891689300537,
0.00012543797492980957,
0.276214599609375,
-0.24014034867286682,
0.20989394187927246,
0.5791470408439636,
-0.031257133930921555,
0.26881787180900574,
-0.04652199149131775,
-0.06592679023742676,
-0.2932346761226654,
0.25912341475486755,
0.15986354649066925,
0.015618864446878433,
-0.4965943396091461,
0.026163313537836075,
0.07965254038572311,
0.7736669182777405,
-0.5069000124931335,
-0.34755465388298035,
0.07921350747346878,
0.1948913037776947,
0.0815226137638092,
0.026132483035326004,
0.3870612680912018,
-0.0036241142079234123,
-0.14681784808635712,
-0.4909802973270416,
-0.38367849588394165,
-0.13943132758140564,
0.3541182279586792,
0.21877291798591614,
0.24535202980041504,
-0.03379546105861664,
0.04224749654531479,
-0.01601501926779747,
-0.05356820672750473,
-0.13028831779956818,
-0.18596969544887543,
-0.12865856289863586,
0.25328952074050903,
-0.05366740748286247,
-0.5121895670890808,
0.1687164455652237,
-0.007686547935009003,
-0.08953650295734406,
0.06112804263830185,
-0.032623499631881714,
-0.2746410369873047,
-0.2865625321865082,
0.18327686190605164,
0.20465388894081116,
-0.11063529551029205,
0.2796587347984314,
0.0797308087348938,
0.07748337090015411,
0.0558379627764225,
0.07856877148151398,
-0.06780099868774414,
-0.033566173166036606,
0.015615868382155895,
-0.12776318192481995,
-0.09943216294050217,
0.3245652914047241,
-0.07417797297239304,
0.07186095416545868,
0.0012807128950953484,
-0.19816923141479492,
-0.1333116739988327,
0.11727079749107361,
0.29368317127227783,
-0.07195767015218735,
-0.28001299500465393,
-0.02514958754181862,
0.20711416006088257,
-0.41142019629478455,
-0.01166054978966713,
-0.16452379524707794,
0.49445751309394836,
-0.20560160279273987,
-0.02622866816818714,
0.38757893443107605,
0.10167045891284943,
0.33388495445251465,
-0.013087340630590916,
-0.3687388300895691,
-0.15569277107715607,
0.39184653759002686,
-0.21217405796051025,
-0.17901217937469482,
0.22895413637161255,
0.11604608595371246,
0.11397773772478104,
-0.03786228224635124,
-0.36688780784606934,
-0.38329124450683594,
0.19166448712348938,
-0.23506081104278564,
-0.3481484055519104,
-0.2838728129863739,
0.1933901160955429,
0.06136854737997055,
-0.23428452014923096,
-0.314606636762619,
0.27518782019615173,
0.30977505445480347,
-0.3435208797454834,
0.06339658051729202,
0.07586358487606049,
-0.134301096200943,
-0.23051340878009796,
-0.09996882826089859,
0.3998723030090332,
-0.4836794137954712,
-0.07219943404197693,
-0.3215022385120392,
-0.009419221431016922,
0.1910141408443451,
-0.0352817066013813,
-0.20967534184455872,
0.5171996355056763,
-0.13384786248207092,
0.1112850159406662,
0.515387773513794,
-0.18933235108852386,
-0.18746130168437958,
0.2695930302143097,
-0.19403022527694702,
-0.2928600311279297,
0.07255613803863525,
0.250730037689209,
-0.041415099054574966,
-0.16878642141819,
0.13270863890647888,
0.09178616851568222,
-0.12619182467460632,
0.049473896622657776,
0.08353820443153381,
-0.006045270711183548,
0.05104028806090355,
0.11938102543354034,
-0.2383526712656021,
0.10864423960447311,
0.1355070322751999,
0.25907468795776367,
0.09780184924602509,
-0.03122704103589058,
0.17799147963523865,
0.4847254157066345,
0.38853058218955994,
-0.005946949124336243,
-0.022813720628619194,
-0.0708327367901802,
-0.33621448278427124,
-0.08187180757522583,
-0.23700065910816193,
0.404316782951355,
0.03376596421003342,
-0.002796262502670288,
-0.47163352370262146,
-0.19266776740550995,
0.033481061458587646,
-0.11761479079723358,
0.08502430468797684,
0.016210567206144333,
0.39784514904022217,
0.10037966072559357,
-0.2538129389286041,
0.07752447575330734,
-0.17115604877471924,
0.06652265787124634,
-0.8675044775009155,
0.34719622135162354,
-0.2013234943151474,
-0.2094377875328064,
0.24705356359481812,
0.23108190298080444,
-0.01762165129184723,
-0.14729692041873932,
0.15028545260429382,
0.22656893730163574,
-0.14524173736572266,
0.33610567450523376,
0.2227085828781128,
0.12884213030338287,
0.28853458166122437,
-0.2038084715604782,
0.14635662734508514,
0.0493762269616127,
0.19623450934886932,
-0.021721668541431427,
-0.0831136628985405,
0.05355578660964966,
0.1434139758348465,
-0.05503042787313461,
0.16171789169311523,
-0.04391315579414368,
0.1402130424976349,
-0.17860843241214752,
0.07698745280504227,
-0.24211697280406952,
0.1755622774362564,
0.07551084458827972,
0.13160783052444458,
0.04862532392144203,
-0.0772266685962677,
0.23074853420257568,
0.30670586228370667,
0.05310080572962761,
0.04318886622786522,
0.15799450874328613,
0.03988104686141014,
-0.09149583429098129,
-0.16357773542404175,
0.28643599152565,
0.43378961086273193,
0.13054390251636505,
-0.17257380485534668,
-0.04459787905216217,
-0.10544025897979736,
-0.23387348651885986,
0.17621305584907532,
-0.14458659291267395,
0.18157000839710236,
0.05537591874599457,
0.2064574956893921,
-0.09188280999660492,
-0.1981731355190277,
-0.45030659437179565,
0.25827527046203613,
0.2915618121623993,
0.012532893568277359,
0.23301921784877777,
-0.04836025834083557,
-0.2889659106731415,
-0.10235703736543655,
-0.219997376203537,
-0.027930304408073425,
-0.1097455769777298,
0.04495132341980934,
0.21489793062210083,
0.21191422641277313,
-0.12067090719938278,
-0.19590140879154205,
0.1891414374113083,
-0.08827850222587585,
-0.35751399397850037,
-0.08856146782636642,
-0.2564787268638611,
-0.18699002265930176,
0.10573503375053406,
0.03482475131750107,
0.14010006189346313,
0.24952447414398193,
-0.1843918263912201,
0.010568393394351006,
-0.166046142578125,
-0.2570819556713104,
0.0180804580450058,
-0.15953195095062256,
0.1950276792049408,
0.17406266927719116,
0.05979246646165848,
-0.2608330249786377,
-0.42547160387039185,
0.0775657594203949,
-0.01162627898156643,
-0.4032614827156067,
0.0009184442460536957,
-0.17337004840373993,
-0.12209730595350266,
-0.040748585015535355,
-0.711997389793396,
-0.3251390755176544,
-0.21316099166870117,
-0.015592850744724274,
0.16318120062351227,
0.19772666692733765,
0.4130184054374695,
-0.07574549317359924,
0.1082073301076889,
0.1723182201385498,
0.2316487729549408,
-0.06923393160104752,
-0.36342841386795044,
0.3943195044994354,
-0.5005176663398743,
-0.28425073623657227,
0.1889236569404602,
-0.461821973323822,
0.23753449320793152,
-0.17418283224105835,
-0.5138137936592102,
0.016808226704597473,
-0.29809874296188354,
0.0059209465980529785,
0.13436734676361084,
0.23399457335472107,
0.4963957667350769,
-0.027937481179833412,
-0.05390598624944687,
-0.10333120822906494,
-0.45800352096557617,
0.022857382893562317,
0.42395684123039246,
0.6483792066574097,
-0.09557917714118958,
0.176687091588974,
-0.43665510416030884,
0.13951069116592407,
0.3806612491607666,
-0.022997315973043442,
0.4596583843231201,
-0.06421401351690292,
0.284216970205307,
-0.28907206654548645,
-0.3776218891143799,
0.2021716833114624,
0.2846028208732605,
-0.09684192389249802,
0.19153863191604614,
0.08896537870168686,
-0.19004949927330017,
-0.1813448667526245,
-0.1297159045934677,
-0.43872231245040894,
-0.06704134494066238,
-0.16066999733448029,
-0.01544632762670517,
0.2671152353286743,
0.08936920762062073,
-0.06376733630895615,
-0.1456252634525299,
-0.2757140100002289,
-0.22359076142311096,
0.47275519371032715,
0.19740954041481018,
0.12087248265743256,
-0.27663055062294006,
-0.06120770797133446,
-0.30730709433555603,
-0.03779548406600952,
0.02388523332774639,
0.29377713799476624,
-0.2029542773962021,
0.2554224133491516,
0.06292016804218292,
-0.012339765205979347,
0.5490010976791382,
-0.2908588647842407,
-0.20555166900157928,
0.26330041885375977,
-0.058042146265506744,
-0.22411437332630157,
0.18051347136497498,
-0.10403358191251755,
0.6076476573944092,
0.24335362017154694,
0.5753424167633057,
-0.31156542897224426,
0.2990724444389343,
0.12145085632801056,
0.370184063911438,
-0.2317987084388733,
-0.2861902117729187,
-0.19550134241580963,
-0.4630239009857178,
-0.1389048546552658,
-0.30914467573165894,
-0.3363454043865204,
0.47525498270988464,
0.23033088445663452,
0.17040182650089264,
0.3116014301776886,
-0.11960583180189133,
0.28410547971725464,
0.11535464227199554,
0.2576379179954529,
0.23350408673286438,
0.42463985085487366,
-0.10522864758968353,
-0.06710547208786011,
0.3669823110103607,
0.6004719138145447,
0.20311051607131958,
-0.09567323327064514,
0.12841995060443878,
-0.03640354052186012,
0.39536693692207336,
-0.013246536254882812,
0.2669260799884796,
-0.10981940478086472,
0.02109413594007492,
-0.2184126228094101,
-0.11553152650594711,
-0.02340986579656601,
-0.019396809861063957,
-0.22414657473564148,
-0.688864529132843,
-0.39393049478530884,
0.24238058924674988,
-0.010685478337109089,
0.3002971410751343,
0.2865821123123169,
0.1424812376499176,
-0.22004325687885284,
0.47148627042770386,
-0.21347543597221375,
0.8308828473091125,
-0.0526556670665741,
-0.0279703326523304,
0.04540909081697464,
0.15106643736362457,
0.7034144401550293,
-0.5142803192138672,
0.41265058517456055,
-0.3891032338142395,
-0.02690858393907547,
0.051578350365161896,
-0.17580018937587738,
0.17506414651870728,
0.41788262128829956,
-0.43252646923065186,
0.19300518929958344,
-0.08226742595434189,
-0.11858388781547546,
-0.17026686668395996,
0.4646315574645996,
-0.12328127771615982,
-0.3681623339653015,
-0.3878655433654785,
0.12439025938510895,
-0.15596184134483337,
0.38852453231811523,
-0.09368190914392471,
-0.017325788736343384,
-0.5373470187187195,
-0.023767467588186264,
-0.21049746870994568,
-0.022060707211494446,
0.31865617632865906,
0.2498062252998352,
0.5425418615341187,
-0.39588606357574463,
0.16806137561798096,
0.15377365052700043,
0.5115234851837158,
0.3233717381954193,
-0.21308322250843048,
-0.0431414358317852,
-0.008564271032810211,
-0.41504374146461487,
0.08617420494556427,
0.023317359387874603,
0.3259398937225342,
0.0027126334607601166,
-0.24869376420974731,
0.15543797612190247,
-0.09102325141429901,
-0.05307038500905037,
-0.09715497493743896,
-0.14653386175632477,
-0.24172978103160858,
-0.27598991990089417,
-0.3625268340110779,
0.25870025157928467,
-0.1688542515039444,
-0.14154571294784546,
0.07883629947900772,
0.2971159815788269,
-0.13539175689220428,
0.11851563304662704,
0.020256949588656425,
-0.18127796053886414,
-0.22068999707698822,
0.23206570744514465,
0.35091689229011536,
-0.17117753624916077,
0.45930802822113037,
0.21996073424816132,
-0.08074340224266052,
-0.23452678322792053,
0.1070890948176384,
0.12530595064163208,
-0.12980131804943085,
0.2112327665090561,
0.36168575286865234,
0.150472030043602,
0.28391513228416443,
0.3608107268810272,
-0.16636337339878082,
0.16324903070926666,
0.07301373779773712,
-0.3863007128238678,
-0.436652809381485,
0.24695736169815063,
0.024427754804491997,
0.09015451371669769,
0.13847869634628296,
0.38774967193603516,
0.2723519504070282,
0.035062264651060104,
-0.26488202810287476,
-0.045566946268081665,
-0.3696911334991455,
0.2637796998023987,
0.24916128814220428,
0.060501813888549805,
-0.21608515083789825,
-0.05757081136107445,
0.05101490020751953,
-0.2033001035451889,
-0.029042545706033707,
-0.15440812706947327,
-0.22161312401294708,
0.15202638506889343,
0.1260635256767273,
0.015447665937244892,
-0.12458024173974991,
-0.22966721653938293,
-0.2332468330860138,
-0.019939694553613663,
-0.26050764322280884,
0.17805328965187073,
0.10190975666046143,
0.15461845695972443,
0.09359762817621231,
-0.326978474855423,
-0.10735610127449036,
-0.014843553304672241,
-0.0619533509016037,
0.3862450122833252,
0.08435270190238953,
0.04523342475295067,
0.11616657674312592,
0.04253847897052765,
-0.4028133153915405,
0.07011200487613678,
-0.15169362723827362,
0.08376204967498779,
0.1490863859653473,
-0.15714487433433533,
0.26674264669418335,
0.021798351779580116,
0.10998314619064331,
0.34660619497299194,
-0.13597358763217926,
0.14051741361618042,
0.26055365800857544,
0.11154522746801376,
-0.16209092736244202,
-0.044080495834350586,
0.32794609665870667,
0.043479979038238525,
-0.012226954102516174,
0.3146597743034363,
-0.13310478627681732,
0.131069615483284,
-0.14787793159484863,
0.18498817086219788,
0.3246777355670929,
-0.06314752995967865,
0.25773435831069946,
0.1364099681377411,
0.001292441040277481,
-0.09770168364048004,
0.2594444453716278,
0.18815255165100098,
-0.0853218212723732,
0.182377889752388,
0.045088592916727066,
0.3973943889141083,
0.3023518919944763,
0.2861185073852539,
0.21092689037322998,
-0.2249993085861206,
0.050446487963199615,
-0.20212393999099731,
0.25073280930519104,
-0.04192614555358887,
0.08260214328765869,
0.21872550249099731,
-0.19586828351020813,
0.3018075227737427,
-0.17804083228111267,
0.10303837060928345,
-0.32084864377975464,
-0.06560018658638,
-0.11257041245698929,
-0.2674711048603058,
0.25465869903564453,
-0.08748054504394531,
0.02925620786845684,
-0.10721787810325623,
-0.15491357445716858,
-0.05317872762680054,
-0.05561190843582153,
-0.3274426758289337,
0.4158908724784851,
-0.01481134444475174,
0.020926713943481445,
-0.10051344335079193,
0.31730467081069946,
-0.16874577105045319,
-0.12283185124397278,
-0.12241150438785553,
0.3447616696357727,
0.30761319398880005,
0.346965491771698,
0.1381109207868576,
0.2645438611507416,
-0.07761797308921814,
-0.19061802327632904,
0.1139085441827774,
0.49975791573524475,
0.45840635895729065,
-0.10555970668792725,
0.02512764185667038,
0.059028320014476776,
-0.024465061724185944,
0.13379645347595215,
0.5156474113464355,
0.03815007954835892,
0.16639694571495056,
0.44952714443206787,
-0.1199103444814682,
-0.12360430508852005,
-0.25661730766296387,
0.2996981143951416,
-0.40785929560661316,
-0.12763521075248718,
0.5206471085548401,
0.040347009897232056,
-0.009024430066347122,
-0.3289634883403778,
0.07926294207572937,
-0.04677299037575722,
0.2938726842403412,
0.370154470205307,
0.12014235556125641,
-0.2625783383846283,
-0.24848151206970215,
-0.3296501636505127,
-0.06240657716989517,
-0.1111391931772232,
-0.16207723319530487,
-0.225221186876297,
0.36316558718681335,
0.02614525705575943,
0.18046003580093384,
-0.36288267374038696,
0.28943806886672974,
-0.14855602383613586,
0.07487603276968002,
-0.14089812338352203,
-0.3381899893283844,
-0.15416370332241058,
0.19007037580013275,
-0.08194974064826965,
-0.08714449405670166,
-0.018498245626688004,
-0.2756529152393341,
-0.011309370398521423,
-0.4327602982521057,
-0.21586285531520844,
0.21756578981876373,
0.3473261594772339,
0.1009332612156868,
0.07363896816968918,
0.3765217661857605,
-0.2977443039417267,
-0.1872081607580185,
-0.19394990801811218,
-0.22783595323562622,
-0.09511993080377579,
0.27850231528282166,
0.28277164697647095,
0.37742599844932556,
-0.301546186208725,
0.36142972111701965,
-0.14139345288276672,
0.09885422885417938,
-0.03094802424311638,
0.1174742579460144,
-0.09106145799160004,
0.012101275846362114,
-0.29160863161087036,
-0.0935947373509407,
0.07177788764238358,
0.2724189758300781,
0.0033911168575286865,
0.32026514410972595,
-0.09971462190151215,
-0.4491751492023468,
0.46735331416130066,
-0.2092687040567398,
-0.18863165378570557,
-0.027948427945375443,
0.027369923889636993,
-0.2985513210296631,
-0.2551027238368988,
-0.24643060564994812,
0.07022599130868912,
0.355366975069046,
-0.281326562166214,
0.018216293305158615,
0.09182597696781158,
-0.1916157454252243,
0.047814738005399704,
-0.026989884674549103,
0.17802514135837555,
0.10363848507404327,
0.008864754810929298,
-0.11351379752159119,
0.04193812608718872
] |
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.2172081619501114,
-0.13527575135231018,
0.14042700827121735,
0.16189949214458466,
0.1744055151939392,
0.06719111651182175,
-0.030321631580591202,
0.2645496726036072,
0.436760812997818,
0.3824986219406128,
0.40033474564552307,
0.12437263876199722,
-0.25700056552886963,
-0.4931713342666626,
-0.19989846646785736,
-0.1357428878545761,
0.06771987676620483,
0.45222505927085876,
0.5661279559135437,
-0.25192713737487793,
-0.2824741005897522,
-0.09532815963029861,
-0.3659343123435974,
0.2246672362089157,
-0.26902058720588684,
0.055260974913835526,
0.022138984873890877,
-0.2626544237136841,
-0.18086278438568115,
-0.5885031223297119,
0.17385107278823853,
-0.18839260935783386,
-0.23312877118587494,
0.23774221539497375,
-0.00012839816918130964,
-0.2515502870082855,
0.41556644439697266,
-0.0837017297744751,
0.25237950682640076,
-0.4310389757156372,
-0.41886135935783386,
-0.1371324360370636,
0.23613514006137848,
-0.2389811873435974,
0.018732309341430664,
0.20300094783306122,
0.15170718729496002,
-0.16453227400779724,
0.06861717998981476,
0.1861710101366043,
0.012134924530982971,
0.29367730021476746,
-0.10588737577199936,
-0.061105985194444656,
0.022768307477235794,
-0.13133838772773743,
-0.027575470507144928,
0.04138732701539993,
-0.19263511896133423,
-0.21396762132644653,
-0.0495750829577446,
0.523077130317688,
-0.39526814222335815,
0.12015631794929504,
0.634587824344635,
0.09058541804552078,
0.23154687881469727,
-0.21044734120368958,
0.014782566577196121,
0.2737216055393219,
-0.1209862008690834,
-0.11754939705133438,
-0.027836117893457413,
-0.07351166009902954,
0.3021913468837738,
-0.34314966201782227,
0.18524020910263062,
0.0706932321190834,
-0.014290908351540565,
-0.21163281798362732,
-0.30992037057876587,
-0.23575431108474731,
-0.274738609790802,
-0.04520709067583084,
-0.047242045402526855,
0.3264421224594116,
0.07715881615877151,
-0.06478940695524216,
0.2856427729129791,
-0.14467783272266388,
-0.09321387857198715,
-0.18928532302379608,
-0.12890492379665375,
0.19410823285579681,
-0.08561012148857117,
-0.2921290993690491,
0.18141299486160278,
-0.3983612656593323,
0.24138608574867249,
-0.48228681087493896,
0.1300206184387207,
-0.16159316897392273,
0.01253251451998949,
0.02052595093846321,
0.2635140120983124,
0.42105671763420105,
0.2929513156414032,
0.21045683324337006,
-0.2632244825363159,
0.18330809473991394,
0.18790948390960693,
-0.030386365950107574,
0.13825370371341705,
0.19800269603729248,
0.4277038276195526,
0.21829339861869812,
-0.002574598416686058,
-0.30605873465538025,
-0.3787774443626404,
0.36670827865600586,
-0.6508227586746216,
-0.15543565154075623,
0.17796602845191956,
0.09617878496646881,
-0.1908065229654312,
0.1977977752685547,
-0.12019512057304382,
0.1526346206665039,
-0.2993702292442322,
-0.22512099146842957,
-0.24214670062065125,
0.10630498826503754,
-0.29503947496414185,
-0.010945994406938553,
0.1267605423927307,
0.1687352955341339,
0.20338377356529236,
-0.0032159164547920227,
0.46914905309677124,
0.14475470781326294,
-0.003000768832862377,
-0.4175773561000824,
0.36531129479408264,
0.2870761454105377,
0.001698508858680725,
-0.0793108344078064,
0.3670935332775116,
-0.14234739542007446,
-0.11156180500984192,
0.4028785228729248,
-0.1367296278476715,
-0.14106644690036774,
0.14874985814094543,
0.04095781594514847,
-0.5017947554588318,
-0.010037314146757126,
-0.12011145800352097,
0.43367576599121094,
-0.18260201811790466,
0.04532698169350624,
0.11144682765007019,
-0.08207468688488007,
-0.16787166893482208,
-0.07206472754478455,
0.3950440287590027,
0.6641333103179932,
-0.03115265443921089,
-0.15087741613388062,
0.034299783408641815,
0.15367363393306732,
0.20910373330116272,
-0.02247781679034233,
0.12606342136859894,
0.29541605710983276,
0.021026214584708214,
0.21905963122844696,
0.16167911887168884,
-0.5407565832138062,
-0.08255308866500854,
-0.11912881582975388,
-0.08885607123374939,
-0.045251838862895966,
-0.03992842882871628,
-0.012578328140079975,
-0.14459562301635742,
-0.07708471268415451,
0.1568501591682434,
-0.4318299889564514,
-0.08282223343849182,
0.0029678326100111008,
-0.3594421148300171,
-0.20307141542434692,
0.24268738925457,
-0.2542193531990051,
0.19529904425144196,
0.12293464690446854,
-0.3715898394584656,
0.6814709305763245,
-0.06561019271612167,
-0.037716615945100784,
0.028672978281974792,
-0.21802814304828644,
0.2738718092441559,
-0.021869756281375885,
-0.17361541092395782,
0.0716453418135643,
0.13279394805431366,
-0.01821892522275448,
-0.4321431517601013,
0.1299903392791748,
0.2906801104545593,
-0.2665615677833557,
-0.20600193738937378,
-0.14741085469722748,
-0.2199854701757431,
-0.19806626439094543,
0.012501697987318039,
-0.2633134722709656,
0.009122777730226517,
0.18021194636821747,
-0.2141343057155609,
-0.28511062264442444,
-0.17545004189014435,
0.08871237188577652,
0.14574939012527466,
-0.14548008143901825,
0.11120323836803436,
-0.1030416414141655,
0.07960978150367737,
0.44814223051071167,
0.493763267993927,
0.33030200004577637,
0.016116203740239143,
0.20670226216316223,
0.010452130809426308,
-0.13259728252887726,
0.03502565622329712,
0.053959548473358154,
0.17249460518360138,
-0.43147340416908264,
0.13359534740447998,
0.18340013921260834,
-0.0259709432721138,
0.09592793136835098,
-0.13453936576843262,
0.03906087577342987,
0.0892210528254509,
0.2943093776702881,
-0.23724713921546936,
-0.12048952281475067,
-0.3590609133243561,
-0.07625284045934677,
0.15675540268421173,
-0.2641415596008301,
-0.021587904542684555,
0.055470969527959824,
-0.05854829400777817,
-0.03924334794282913,
-0.13430100679397583,
-0.27031782269477844,
0.22942861914634705,
0.22749555110931396,
0.16676685214042664,
0.08865344524383545,
0.06643323600292206,
-0.20243161916732788,
-0.04732879251241684,
-0.48314306139945984,
0.23713846504688263,
0.17029651999473572,
-0.0470602922141552,
0.08297134935855865,
-0.27286553382873535,
-0.14483802020549774,
0.053109753876924515,
0.41245943307876587,
-0.2057667374610901,
-0.04805232584476471,
-0.006830364000052214,
0.04760701209306717,
0.09825354069471359,
0.05628117546439171,
-0.09622668474912643,
0.2895219027996063,
-0.33352240920066833,
0.08283643424510956,
0.04709465801715851,
-0.1901102066040039,
-0.16286902129650116,
0.03261853754520416,
-0.3311600685119629,
-0.0770110934972763,
0.2044580578804016,
-0.18966762721538544,
-0.06714697182178497,
0.15454690158367157,
-0.03886949270963669,
0.2940192222595215,
-0.04482761025428772,
-0.029598603025078773,
-0.13415008783340454,
-0.08877985179424286,
-0.22490790486335754,
-0.024991080164909363,
-0.3071598410606384,
0.2817924916744232,
0.1091587170958519,
-0.18894712626934052,
-0.13185015320777893,
0.16483312845230103,
-0.17325910925865173,
0.17265266180038452,
-0.20860548317432404,
-0.0028174426406621933,
0.024670489132404327,
-0.02319803088903427,
-0.5214914083480835,
0.09408806264400482,
0.15559695661067963,
-0.11032592505216599,
0.0398595929145813,
0.061458081007003784,
0.10273222625255585,
0.3387359082698822,
-0.27066898345947266,
-0.3621062934398651,
0.2669714391231537,
0.032642465084791183,
0.012154217809438705,
-0.0966368243098259,
0.1388610154390335,
-0.026236649602651596,
0.08837445080280304,
0.3146153390407562,
-0.26637664437294006,
-0.25837430357933044,
-0.17628362774848938,
-0.28777390718460083,
0.2703224718570709,
0.010318050161004066,
-0.10036487877368927,
0.31936660408973694,
-0.1577475517988205,
0.12302185595035553,
-0.4959374666213989,
-0.37082451581954956,
-0.614566445350647,
0.18393665552139282,
-0.4545833468437195,
-0.15912264585494995,
-0.0006664767861366272,
0.11899812519550323,
-0.07649167627096176,
0.0033765044063329697,
-0.08857032656669617,
0.07328858971595764,
0.24264845252037048,
-0.40847650170326233,
0.4219227135181427,
-0.25832271575927734,
-0.21406900882720947,
-0.10206571221351624,
0.4282723069190979,
0.3861438035964966,
0.22283726930618286,
-0.029498890042304993,
0.15570557117462158,
0.33107900619506836,
-0.030148759484291077,
-0.02439633384346962,
0.17027421295642853,
0.550682544708252,
-0.014458796009421349,
0.127445787191391,
-0.26513534784317017,
0.14736242592334747,
-0.027989011257886887,
-0.16485805809497833,
0.014629743993282318,
-0.28975820541381836,
0.0721382275223732,
0.09702861309051514,
0.2634502053260803,
-0.020043689757585526,
0.1203496977686882,
0.011450661346316338,
-0.3101595342159271,
-0.11343057453632355,
0.06941470503807068,
0.5498428344726562,
0.010072899982333183,
0.11184853315353394,
-0.30501291155815125,
-0.38058000802993774,
0.17554132640361786,
0.1460656374692917,
0.21115916967391968,
-0.17781996726989746,
0.05927155911922455,
0.19559404253959656,
0.294150173664093,
0.4730265140533447,
-0.12436655908823013,
0.16178929805755615,
0.3088494837284088,
0.2017328143119812,
0.24597810208797455,
0.16906338930130005,
-0.3690789043903351,
-0.42820125818252563,
0.1055859625339508,
-0.10164663195610046,
-0.43018579483032227,
-0.15709960460662842,
0.39827069640159607,
-0.08553750067949295,
-0.1856926530599594,
-0.1426795870065689,
-0.6614428758621216,
0.19826138019561768,
0.19894182682037354,
0.42208972573280334,
0.09530043601989746,
0.4285654127597809,
0.20117388665676117,
0.26416897773742676,
0.09672292321920395,
-0.011139469221234322,
0.35450565814971924,
0.05938016250729561,
0.21952515840530396,
0.09096486121416092,
-0.04813285544514656,
0.40851834416389465,
-0.19146335124969482,
0.22223372757434845,
0.059027913957834244,
-0.10556827485561371,
-0.507174551486969,
0.09683389961719513,
0.09931562095880508,
0.5091097354888916,
0.12250930070877075,
0.28019973635673523,
0.07547449320554733,
-0.22580412030220032,
0.28716662526130676,
-0.21178723871707916,
0.3690885007381439,
0.2239634096622467,
-0.11886373162269592,
0.11578724533319473,
-0.14643405377864838,
0.2851330041885376,
0.19577345252037048,
0.04805430769920349,
-0.31509125232696533,
0.43768852949142456,
0.014454861171543598,
0.14092916250228882,
0.4275516867637634,
0.95756596326828,
0.07306062430143356,
0.043624646961688995,
0.25490766763687134,
-0.03264274075627327,
0.744151771068573,
-0.21485589444637299,
0.08979295939207077,
-0.06835119426250458,
0.21483780443668365,
0.02292671985924244,
-0.002236798405647278,
0.060736022889614105,
-0.043958649039268494,
-0.2171158343553543,
0.6109158396720886,
-0.173309788107872,
-0.11760380864143372,
0.02468929998576641,
-0.027093227952718735,
0.10401473939418793,
-0.16345684230327606,
-0.08123469352722168,
-0.07236353307962418,
-0.05229594558477402,
0.2282651662826538,
-0.010794002562761307,
-0.055117882788181305,
0.23779931664466858,
-0.20941300690174103,
-0.29743874073028564,
-0.0019064433872699738,
0.02696685865521431,
-0.5267812013626099,
0.14646250009536743,
-0.2675231099128723,
0.3607986867427826,
0.03210229426622391,
0.46352195739746094,
0.41841018199920654,
-0.18074695765972137,
0.10511618852615356,
-0.1527438461780548,
-0.006737807299941778,
-0.14569023251533508,
0.2480381429195404,
0.09907575696706772,
-0.020511474460363388,
-0.5675652027130127,
0.3666435480117798,
-0.24065470695495605,
0.19315852224826813,
-0.10599450767040253,
-0.1459561288356781,
0.5476582050323486,
-0.036655034869909286,
0.10459809005260468,
0.05696319788694382,
0.3916785418987274,
0.07116423547267914,
0.05389519780874252,
0.07446300238370895,
-0.01936291716992855,
-0.1514962911605835,
0.09091530740261078,
-0.5053489208221436,
0.163058340549469,
0.09837072342634201,
0.2054319679737091,
-0.44333550333976746,
0.39069804549217224,
-0.41399601101875305,
0.07976818084716797,
-0.0992843359708786,
-0.060958996415138245,
0.2084016650915146,
-0.13743533194065094,
0.0007631639018654823,
0.36733317375183105,
-0.08686810731887817,
0.07700536400079727,
0.4477490484714508,
0.13020554184913635,
0.2307729721069336,
-0.03810808062553406,
0.06822633743286133,
-0.12081319838762283,
0.23977190256118774,
-0.29808756709098816,
-0.1675775945186615,
0.037304848432540894,
0.3075712025165558,
0.3301413953304291,
-0.014356808736920357,
-0.1338280439376831,
-0.19419853389263153,
-0.5053746104240417,
0.15809020400047302,
-0.43431803584098816,
0.1574811190366745,
0.20920057594776154,
-0.13374346494674683,
-0.1719529628753662,
0.10557892918586731,
-0.23207908868789673,
-0.013411389663815498,
-0.14554312825202942,
0.23515060544013977,
0.03847764432430267,
0.1823839247226715,
-0.23042699694633484,
-0.059902504086494446,
0.16588035225868225,
-0.05324219539761543,
-0.16792292892932892,
0.15519475936889648,
0.09452702105045319,
0.5458925366401672,
-0.06375770270824432,
0.41769811511039734,
-0.2863669991493225,
-0.2815249264240265,
0.23753324151039124,
0.22738058865070343,
-0.11168722808361053,
-0.09166474640369415,
0.05896409600973129,
-0.08631210029125214,
0.15686063468456268,
0.07994427531957626,
0.1232960894703865,
0.12096528708934784,
-0.017210133373737335,
0.18093173205852509,
0.1952175796031952,
-0.0611528642475605,
-0.34738126397132874,
-0.21226391196250916,
0.022535109892487526,
-0.39778634905815125,
0.26052212715148926,
0.059574343264102936,
-0.2505081295967102,
0.05349110811948776,
-0.1754828691482544,
0.6088401675224304,
0.029005300253629684,
0.23864535987377167,
-0.14072316884994507,
-0.019469641149044037,
0.2878543734550476,
0.18510878086090088,
0.15939019620418549,
-0.20718730986118317,
0.010495630092918873,
0.15259262919425964,
-0.27478355169296265,
0.03430887311697006,
0.3500220477581024,
-0.0032987743616104126,
0.20547553896903992,
0.3160891532897949,
0.1943972408771515,
0.5569958686828613,
-0.3445816934108734,
0.19174565374851227,
-0.3911088705062866,
0.03673848137259483,
-0.4599296450614929,
0.3406832814216614,
0.17214640974998474,
0.08621577173471451,
-0.017071552574634552,
0.338798850774765,
-0.17746350169181824,
-0.16927315294742584,
0.1306649148464203,
-0.20185533165931702,
0.016558943316340446,
0.1536886990070343,
-0.3063330352306366,
0.055961333215236664,
-0.01624540239572525,
-0.03212357312440872,
0.3299395442008972,
0.031007010489702225,
-0.022486895322799683,
-0.08655264973640442,
-0.1718526929616928,
0.2852017879486084,
-0.2707396149635315,
0.5228372812271118,
0.32057154178619385,
-0.03407436981797218,
-0.005612583830952644,
0.09219425171613693,
-0.007832556962966919,
0.31104129552841187,
0.732450544834137,
0.03610512986779213,
0.18166419863700867,
0.13033950328826904,
-0.30694910883903503,
-0.1171538382768631,
-0.0029301978647708893,
0.031573276966810226,
0.14525920152664185,
0.42662742733955383,
-0.20964239537715912,
-0.09888006746768951,
-0.11294900625944138,
-0.022370874881744385,
0.39307358860969543,
-0.07005937397480011,
0.17036128044128418,
-0.17088207602500916,
0.5136825442314148,
0.34835997223854065,
0.12149379402399063,
-0.16428513824939728,
-0.05702624469995499,
-0.4837380647659302,
0.48917156457901,
-0.15863706171512604,
0.18536365032196045,
-0.10415499657392502,
-0.21719513833522797,
-0.00225088931620121,
0.06892502307891846,
0.147496297955513,
0.22316193580627441,
-0.31484153866767883,
-0.688714325428009,
0.07003365457057953,
-0.8960810899734497,
0.2602877914905548,
-0.056040775030851364,
0.1209876537322998,
0.2514040470123291,
0.033954404294490814,
-0.46367570757865906,
0.2557694911956787,
-0.22053636610507965,
0.19597050547599792,
-0.25559625029563904,
-0.25989457964897156,
-0.21256576478481293,
0.06279610842466354,
-0.059400931000709534,
-0.19813987612724304,
0.0503525510430336,
0.2090267539024353,
0.10862739384174347,
-0.23276811838150024,
-0.09535668790340424,
0.26431113481521606,
-0.1359294354915619,
-0.013214200735092163,
0.9460543394088745,
0.03358333930373192,
0.2863442897796631,
0.33997005224227905,
0.055416710674762726,
-0.0282282717525959,
0.15829692780971527,
0.3654698133468628,
-0.13598474860191345,
-0.1616925597190857,
0.05979303643107414,
0.12845034897327423,
-0.3944312334060669,
0.16751253604888916,
-0.08594902604818344,
0.4445447623729706,
0.0825096070766449,
-0.2452307492494583,
-0.45012134313583374,
0.2783800959587097,
-0.03883448243141174,
0.14938238263130188,
-0.25212565064430237,
-0.12940028309822083,
0.0998462438583374,
0.12449812889099121,
-0.3044619858264923,
-0.014317529276013374,
0.3623262047767639,
-0.5114164352416992,
-0.12458904087543488,
-0.30229446291923523,
0.31397318840026855,
0.09409955888986588,
-0.3380865752696991,
-1.1964465379714966,
-0.058251406997442245,
0.2086954265832901,
0.31924721598625183,
-0.2933109700679779,
-0.17053622007369995,
-0.40879422426223755,
0.02903139218688011,
-0.09392373263835907,
0.21714109182357788,
0.09208965301513672,
0.045915886759757996,
0.3510316014289856,
-0.42741113901138306
] |
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.08402593433856964,
-0.02219177782535553,
-0.07268697768449783,
0.04233922064304352,
0.19818371534347534,
0.06649196892976761,
0.4571821987628937,
0.08013811707496643,
0.10337932407855988,
0.08837540447711945,
-0.16412517428398132,
0.2453232854604721,
-0.19553036987781525,
-0.08169730752706528,
-0.06151346117258072,
-0.2790237367153168,
-0.03297073394060135,
-0.06759808957576752,
0.028704684227705002,
0.13708287477493286,
-0.21844294667243958,
0.1371099352836609,
-0.2122429758310318,
0.21034787595272064,
-0.18341997265815735,
-0.155873104929924,
-0.2034408152103424,
0.23280030488967896,
-0.3381268382072449,
-0.3609950840473175,
0.18646582961082458,
-0.10970549285411835,
0.24803274869918823,
0.015680521726608276,
-0.00010717274562921375,
0.10856467485427856,
0.17798912525177002,
-0.06570907682180405,
-0.4063575863838196,
-0.1557626575231552,
-0.11275815218687057,
-0.317150741815567,
0.16040362417697906,
-0.39091965556144714,
0.3036188781261444,
0.34981322288513184,
0.04432985931634903,
0.045605242252349854,
0.117469921708107,
0.48481592535972595,
0.2677161395549774,
0.44895535707473755,
0.3633486330509186,
-0.07207279652357101,
-0.04706218093633652,
-0.20575283467769623,
0.012758271768689156,
0.37783411145210266,
-0.10258503258228302,
-0.17611336708068848,
0.09094096720218658,
0.0736367255449295,
-0.14862464368343353,
0.32257339358329773,
-0.193752259016037,
-0.005293526686728001,
0.30847418308258057,
-0.2554347813129425,
-0.07744554430246353,
0.25744208693504333,
0.03294401615858078,
0.08301946520805359,
-0.3229754865169525,
0.024158619344234467,
0.2695618271827698,
-0.36274269223213196,
0.0999654158949852,
0.43507400155067444,
-0.33513814210891724,
-0.09220905601978302,
-0.24659954011440277,
-0.16574841737747192,
-0.15898481011390686,
0.390508234500885,
-0.3112713694572449,
0.5100573897361755,
0.10473613440990448,
0.10575217008590698,
0.4342148005962372,
-0.20319989323616028,
-0.2787929177284241,
-0.053084924817085266,
0.04596758633852005,
0.19603954255580902,
-0.3286786675453186,
0.018972866237163544,
-0.030164368450641632,
-0.23249801993370056,
0.1584400236606598,
0.13010267913341522,
-0.02344386652112007,
-0.2342739701271057,
-0.19085972011089325,
0.20343667268753052,
0.04834260419011116,
0.06421071290969849,
-0.28859764337539673,
0.1249968633055687,
0.1028149425983429,
0.22912289202213287,
0.22897005081176758,
0.039216991513967514,
-0.11887626349925995,
-0.0918315127491951,
-0.11672210693359375,
0.08612333238124847,
0.2541344165802002,
0.09224864840507507,
-0.45950832962989807,
-0.199417382478714,
-0.5215694904327393,
-0.019995832815766335,
0.2925753593444824,
0.14654767513275146,
-0.11265543103218079,
0.34015053510665894,
0.17328386008739471,
0.3975915312767029,
-0.2035050392150879,
-0.33436837792396545,
-0.13727229833602905,
0.1671382039785385,
-0.12311403453350067,
-0.041909731924533844,
0.4352342188358307,
-0.05952206626534462,
0.3110083341598511,
-0.01594526506960392,
-0.08545622229576111,
-0.0951860249042511,
0.11144344508647919,
-0.09508702158927917,
-0.3110279440879822,
0.2561812102794647,
0.17043793201446533,
0.07221002131700516,
0.16979335248470306,
-0.13139945268630981,
-0.05205091834068298,
0.00587259978055954,
-0.33911675214767456,
-0.43124738335609436,
-0.30352726578712463,
0.2793094217777252,
0.0968349277973175,
-0.10500235855579376,
0.14019975066184998,
-0.40076515078544617,
0.2124020755290985,
-0.03303130716085434,
-0.06387829035520554,
-0.2944982051849365,
-0.09886253625154495,
-0.2295628786087036,
0.25936123728752136,
0.2700579762458801,
0.18030394613742828,
-0.0016137436032295227,
-0.3492773771286011,
-0.1656961888074875,
0.25332537293434143,
0.546646773815155,
-0.2035304456949234,
0.15084800124168396,
-0.18046961724758148,
0.03481553494930267,
0.5982279181480408,
-0.41645708680152893,
-0.097713403403759,
0.22240875661373138,
-0.33464181423187256,
0.04438681900501251,
0.007630206644535065,
0.17985007166862488,
0.06427109241485596,
0.10571226477622986,
0.32371312379837036,
0.514892041683197,
-0.17978988587856293,
0.07943877577781677,
-0.1894712746143341,
-0.2525603771209717,
0.18896201252937317,
0.37766391038894653,
0.05214117467403412,
0.07108131796121597,
-0.12936332821846008,
0.4729544520378113,
0.45861026644706726,
0.005411926656961441,
0.06879507750272751,
0.08226969838142395,
0.14546917378902435,
-0.0901707261800766,
-0.3268405795097351,
-0.03324994817376137,
-0.3870309591293335,
0.12790727615356445,
0.0395670086145401,
0.10327286273241043,
-0.026721298694610596,
0.08823812752962112,
-0.10366043448448181,
0.04945041239261627,
-0.19201819598674774,
-0.12529303133487701,
0.149580180644989,
0.203447163105011,
0.09192751348018646,
0.0242258720099926,
0.023437101393938065,
0.5169650316238403,
-0.030806446447968483,
0.13072268664836884,
-0.48537611961364746,
0.2479041963815689,
-0.36647501587867737,
-0.043088506907224655,
0.026626020669937134,
0.021789077669382095,
-0.06374728679656982,
0.04763062670826912,
-0.09675034880638123,
0.3046732544898987,
-0.03968508169054985,
-0.4234546422958374,
-0.10475105792284012,
-0.10427741706371307,
0.11548303067684174,
-0.11447588354349136,
0.13060900568962097,
0.33647412061691284,
0.06668758392333984,
-0.049995653331279755,
-0.3063909411430359,
0.3337820768356323,
0.030765149742364883,
0.09002913534641266,
-0.0031025074422359467,
0.3673844635486603,
0.3018738031387329,
-0.020218592137098312,
-0.037255287170410156,
-0.1680348813533783,
0.33377954363822937,
0.037274375557899475,
0.04853310063481331,
-0.22524653375148773,
-0.31696510314941406,
-0.16648000478744507,
0.30116838216781616,
0.04149022325873375,
0.030545257031917572,
0.0421515554189682,
0.18877926468849182,
0.0492154136300087,
-0.11622358858585358,
0.004849310964345932,
0.4669991135597229,
0.08540737628936768,
0.10949751734733582,
-0.022692503407597542,
-0.18930475413799286,
-0.2992958426475525,
0.06442615389823914,
-0.019087322056293488,
0.20575106143951416,
-0.059155821800231934,
0.13096722960472107,
-0.10995634645223618,
-0.040130604058504105,
-0.49577566981315613,
0.28540199995040894,
0.47156596183776855,
-0.20183350145816803,
0.0635066032409668,
-0.3473851680755615,
-0.5306872129440308,
-0.2337203472852707,
-0.20725484192371368,
-0.3806077837944031,
-0.339534729719162,
-0.16524487733840942,
0.4490947127342224,
0.08724868297576904,
0.02022876963019371,
-0.016367100179195404,
-0.23107074201107025,
0.27137458324432373,
-0.0395490899682045,
0.2037118375301361,
-0.07126924395561218,
-0.2772783935070038,
0.15111730992794037,
0.33647775650024414,
-0.021461481228470802,
0.25275224447250366,
-0.10023569315671921,
-0.17335432767868042,
-0.26810386776924133,
0.01585473120212555,
-0.22356095910072327,
0.09388408064842224,
-0.2643555700778961,
0.25119155645370483,
0.36712270975112915,
0.04603969305753708,
-0.2325371950864792,
0.21556340157985687,
-0.018951209262013435,
-0.14204314351081848,
0.3279954195022583,
0.006150469183921814,
0.09732874482870102,
-0.14993548393249512,
-0.30683621764183044,
-0.3677205741405487,
-0.45965325832366943,
0.2124163806438446,
-0.05588770657777786,
0.21250978112220764,
0.3740653693675995,
0.04551044479012489,
0.1976519227027893,
0.03390185162425041,
-0.13301202654838562,
0.03633939474821091,
0.04785127565264702,
0.15722142159938812,
-0.18953639268875122,
-0.30111396312713623,
-0.07816246151924133,
0.20414064824581146,
0.2132154405117035,
0.0037157367914915085,
-0.37802523374557495,
-0.025708910077810287,
0.030842052772641182,
0.274625301361084,
-0.19093367457389832,
-0.043815188109874725,
0.2122444212436676,
-0.3453691005706787,
-0.041161198168992996,
0.2166716754436493,
0.043026041239500046,
0.08033490926027298,
0.21866092085838318,
0.45158645510673523,
-0.14153283834457397,
0.5075711011886597,
0.04848464950919151,
0.39511799812316895,
0.2567918002605438,
-0.01946323737502098,
0.3725384473800659,
-0.02102630026638508,
-0.06965172290802002,
0.021603941917419434,
-0.4024849236011505,
-0.00677444227039814,
-0.12186506390571594,
0.15624797344207764,
-0.028097078204154968,
-0.10814940929412842,
-0.34823131561279297,
-0.17430415749549866,
0.09584642946720123,
0.10263039916753769,
-0.20526136457920074,
0.09995447099208832,
-0.24396094679832458,
0.02690127119421959,
0.010568242520093918,
-0.09340997040271759,
-0.03576384484767914,
-0.17128720879554749,
-0.3353482186794281,
0.3295472264289856,
-0.20561856031417847,
-0.00751382065936923,
-0.06466403603553772,
-0.1637694537639618,
-0.25381383299827576,
0.038105301558971405,
0.17867271602153778,
0.5281774401664734,
0.03131750598549843,
0.11330684274435043,
0.15177007019519806,
-0.05792170390486717,
0.3662668466567993,
0.043177541345357895,
0.11232908815145493,
0.31039857864379883,
0.1655445247888565,
-0.5614232420921326,
-0.3184337019920349,
-0.3913875222206116,
0.2710345983505249,
0.7224536538124084,
0.22563424706459045,
-0.132927805185318,
-0.08333603292703629,
0.3776693046092987,
0.1377880573272705,
-0.09112066775560379,
-0.17005306482315063,
-0.3710443675518036,
-0.32177048921585083,
-0.45755401253700256,
0.05405627563595772,
-0.06567167490720749,
0.33949556946754456,
0.10823633521795273,
0.2655138373374939,
0.12299065291881561,
0.001991432160139084,
-0.13144460320472717,
-0.09602926671504974,
-0.16691890358924866,
0.25198453664779663,
0.12031927704811096,
-0.20486243069171906,
0.11008861660957336,
-0.012151798233389854,
0.5492675304412842,
-0.053735312074422836,
-0.21998509764671326,
0.2330358326435089,
-0.04173526540398598,
0.017732881009578705,
0.04703986644744873,
0.16859817504882812,
0.11726124584674835,
0.09612558037042618,
0.1955205202102661,
0.3162570893764496,
0.17790725827217102,
0.2874186336994171,
-0.2669259309768677,
-0.28420138359069824,
-0.2203264981508255,
0.4090632200241089,
0.06504456698894501,
0.19391129910945892,
0.24376553297042847,
-0.5065388083457947,
0.06952004879713058,
-0.03853015974164009,
0.14288856089115143,
0.5448476076126099,
-0.16018982231616974,
0.2056906372308731,
0.3697626292705536,
-0.14225587248802185,
0.49981823563575745,
-0.3342643976211548,
0.17927058041095734,
-0.19360335171222687,
0.2306196689605713,
0.08422654867172241,
0.027097124606370926,
-0.03355874866247177,
0.16266033053398132,
-0.22062036395072937,
0.1645323634147644,
0.12993410229682922,
-0.055314864963293076,
0.181540384888649,
0.5320366621017456,
0.009405811317265034,
-0.34164074063301086,
-0.2274576723575592,
0.20656296610832214,
-0.1639430671930313,
0.3153640925884247,
-0.0948612317442894,
-0.07713243365287781,
0.10907736420631409,
-0.16552555561065674,
-0.3335943818092346,
0.28149840235710144,
-0.08341966569423676,
0.5441381335258484,
-0.07002721726894379,
-0.05367538332939148,
-0.06540428102016449,
0.22002875804901123,
0.07941313832998276,
-0.13874955475330353,
-0.05445117503404617,
-0.0917542427778244,
-0.08849035948514938,
-0.2747749090194702,
-0.13513873517513275,
0.02277427911758423,
0.2547704875469208,
-0.3102385103702545,
-0.35998278856277466,
0.20842313766479492,
0.04348739609122276,
-0.27683037519454956,
0.1300099790096283,
0.2966112494468689,
-0.10796970129013062,
0.11719420552253723,
0.07997988164424896,
-0.06041611731052399,
0.10194793343544006,
-0.09148161113262177,
0.13782872259616852,
0.18445290625095367,
-0.27234119176864624,
0.038407668471336365,
-0.07254990935325623,
-0.12654536962509155,
0.030276155099272728,
0.544825553894043,
0.07951152324676514,
0.01466790959239006,
0.4382508397102356,
0.2637677788734436,
0.04875639081001282,
-0.3331160247325897,
0.12422508746385574,
-0.20902174711227417,
-0.21657612919807434,
-0.032998356968164444,
0.0389133058488369,
0.2234705239534378,
0.05925772711634636,
0.10320019721984863,
0.14492401480674744,
0.17718994617462158,
0.15251882374286652,
-0.6146882772445679,
-0.4120772182941437,
-0.050766974687576294,
-0.11351749300956726,
-0.10179738700389862,
-0.09726947546005249,
0.20154407620429993,
0.2837578058242798,
0.03645048663020134,
-0.29311758279800415,
0.02957075648009777,
-0.394064337015152,
0.07470506429672241,
0.44344577193260193,
-0.29558464884757996,
-0.009802776388823986,
0.20643483102321625,
0.22121363878250122,
-0.19654349982738495,
-0.14492827653884888,
-0.24741750955581665,
-0.02684793435037136,
0.06838030368089676,
0.016964439302682877,
-0.19805273413658142,
0.15768663585186005,
-0.351207435131073,
-0.24849605560302734,
0.19244138896465302,
-0.07229198515415192,
0.03838730603456497,
0.07087691873311996,
0.12218189239501953,
-0.16020821034908295,
0.1678963303565979,
-0.08345049619674683,
0.014652170240879059,
-0.27050819993019104,
0.07710866630077362,
0.11173000186681747,
0.3172304928302765,
0.21723933517932892,
-0.004561655223369598,
-0.6347712874412537,
-0.17394471168518066,
-0.2452748566865921,
-0.08426142483949661,
0.09532313793897629,
-0.3559567928314209,
-0.014028066769242287,
-0.22922341525554657,
0.061665184795856476,
0.22969964146614075,
-0.11127638816833496,
0.04356503486633301,
0.3644264340400696,
0.25061947107315063,
-0.15715737640857697,
-0.013790884986519814,
0.2758880853652954,
0.02771826460957527,
0.009881097823381424,
0.2398209124803543,
-0.10482598841190338,
-0.07613798975944519,
0.15756633877754211,
0.07760519534349442,
0.10168026387691498,
0.09764692187309265,
-0.009248834103345871,
0.3073761463165283,
-0.19900751113891602,
-0.053832296282052994,
0.036505017429590225,
-0.004383835941553116,
0.2784196436405182,
0.31349849700927734,
-0.2719896137714386,
0.2696484923362732,
-0.07016941159963608,
0.05118291825056076,
0.14697237312793732,
-0.20849916338920593,
-0.3138243854045868,
-0.01410268247127533,
-0.24583569169044495,
-0.029513955116271973,
-0.15945589542388916,
0.3483741283416748,
-0.3062145709991455,
-0.2602592408657074,
-0.39525526762008667,
0.527289628982544,
-0.1780478060245514,
0.05312829837203026,
-0.3437134027481079,
-0.09361013770103455,
-0.27327993512153625,
0.1869678646326065,
0.0505937896668911,
0.07760997116565704,
0.4932878911495209,
0.324449360370636,
-0.15094289183616638,
-0.5531563758850098,
-0.18600234389305115,
0.2678644061088562,
0.015663757920265198,
-0.35005220770835876,
0.2893449664115906,
0.4177258610725403,
-0.27849912643432617,
-0.009165629744529724,
0.09575964510440826,
0.5214705467224121,
0.2982962131500244,
0.1787404716014862,
0.10023193806409836,
-0.047297153621912,
-0.032536398619413376,
-0.025405477732419968,
-0.05735576152801514,
0.4776995778083801,
0.21050776541233063,
0.38306981325149536,
0.09772950410842896,
-0.2219572365283966,
0.17007732391357422,
0.09212397038936615,
-0.10505898296833038,
-0.1036490947008133,
0.4112376868724823,
-0.02189994603395462,
0.0097770094871521,
-0.23978352546691895,
0.06705708801746368,
-0.5321541428565979,
0.08143363147974014,
0.026707541197538376,
0.13209572434425354,
0.1471252739429474,
0.04539630934596062,
0.05070865899324417,
0.009732551872730255,
0.5457181930541992,
0.30347785353660583,
0.21150422096252441,
-0.2945055365562439,
-0.28238213062286377,
-0.6838549971580505,
0.09728627651929855,
-0.5811128616333008,
-0.10109870880842209,
-0.04636863246560097,
0.23086221516132355,
-0.20033064484596252,
0.21887336671352386,
0.03419400751590729,
0.034541480243206024,
0.18187840282917023,
0.27352309226989746,
-0.36003628373146057,
-0.0847812294960022,
0.21785058081150055,
-0.018978549167513847,
0.03384310379624367,
-0.3433592617511749,
0.06985104829072952,
-0.2905699610710144,
0.089047871530056,
-0.2007325142621994,
-0.07836286723613739,
0.1026037335395813,
0.2820730209350586,
0.0038194283843040466,
0.1270773559808731,
0.49727123975753784,
0.192816823720932,
-0.3524477481842041,
-0.22494888305664062,
0.20275844633579254,
-0.16100594401359558,
0.013192389160394669,
0.203626811504364,
0.40222176909446716,
-0.1029101237654686,
0.14341489970684052,
-0.34613677859306335,
0.5090778470039368,
-0.12394339591264725,
-0.17005400359630585,
-0.07957220077514648,
0.054473377764225006,
0.05632884055376053,
0.11478615552186966,
0.22201117873191833,
0.035059623420238495,
-0.025366581976413727,
0.039400674402713776,
-0.3940596580505371,
-0.21150238811969757,
0.3609003722667694,
-0.09750676900148392,
-0.26557955145835876,
-0.18048988282680511,
0.2269531786441803,
-0.32093167304992676,
0.2880323529243469,
-0.5555564165115356,
0.12516239285469055,
0.2969518303871155,
-0.08232884854078293,
-0.5224140882492065,
0.12004746496677399,
0.12428818643093109,
-0.1698409765958786,
-0.007211040705442429,
0.00020613521337509155,
0.08076609671115875,
-0.4523904025554657,
0.23109707236289978,
-0.11049646139144897
] |
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.08402593433856964,
-0.02219177782535553,
-0.07268697768449783,
0.04233922064304352,
0.19818371534347534,
0.06649196892976761,
0.4571821987628937,
0.08013811707496643,
0.10337932407855988,
0.08837540447711945,
-0.16412517428398132,
0.2453232854604721,
-0.19553036987781525,
-0.08169730752706528,
-0.06151346117258072,
-0.2790237367153168,
-0.03297073394060135,
-0.06759808957576752,
0.028704684227705002,
0.13708287477493286,
-0.21844294667243958,
0.1371099352836609,
-0.2122429758310318,
0.21034787595272064,
-0.18341997265815735,
-0.155873104929924,
-0.2034408152103424,
0.23280030488967896,
-0.3381268382072449,
-0.3609950840473175,
0.18646582961082458,
-0.10970549285411835,
0.24803274869918823,
0.015680521726608276,
-0.00010717274562921375,
0.10856467485427856,
0.17798912525177002,
-0.06570907682180405,
-0.4063575863838196,
-0.1557626575231552,
-0.11275815218687057,
-0.317150741815567,
0.16040362417697906,
-0.39091965556144714,
0.3036188781261444,
0.34981322288513184,
0.04432985931634903,
0.045605242252349854,
0.117469921708107,
0.48481592535972595,
0.2677161395549774,
0.44895535707473755,
0.3633486330509186,
-0.07207279652357101,
-0.04706218093633652,
-0.20575283467769623,
0.012758271768689156,
0.37783411145210266,
-0.10258503258228302,
-0.17611336708068848,
0.09094096720218658,
0.0736367255449295,
-0.14862464368343353,
0.32257339358329773,
-0.193752259016037,
-0.005293526686728001,
0.30847418308258057,
-0.2554347813129425,
-0.07744554430246353,
0.25744208693504333,
0.03294401615858078,
0.08301946520805359,
-0.3229754865169525,
0.024158619344234467,
0.2695618271827698,
-0.36274269223213196,
0.0999654158949852,
0.43507400155067444,
-0.33513814210891724,
-0.09220905601978302,
-0.24659954011440277,
-0.16574841737747192,
-0.15898481011390686,
0.390508234500885,
-0.3112713694572449,
0.5100573897361755,
0.10473613440990448,
0.10575217008590698,
0.4342148005962372,
-0.20319989323616028,
-0.2787929177284241,
-0.053084924817085266,
0.04596758633852005,
0.19603954255580902,
-0.3286786675453186,
0.018972866237163544,
-0.030164368450641632,
-0.23249801993370056,
0.1584400236606598,
0.13010267913341522,
-0.02344386652112007,
-0.2342739701271057,
-0.19085972011089325,
0.20343667268753052,
0.04834260419011116,
0.06421071290969849,
-0.28859764337539673,
0.1249968633055687,
0.1028149425983429,
0.22912289202213287,
0.22897005081176758,
0.039216991513967514,
-0.11887626349925995,
-0.0918315127491951,
-0.11672210693359375,
0.08612333238124847,
0.2541344165802002,
0.09224864840507507,
-0.45950832962989807,
-0.199417382478714,
-0.5215694904327393,
-0.019995832815766335,
0.2925753593444824,
0.14654767513275146,
-0.11265543103218079,
0.34015053510665894,
0.17328386008739471,
0.3975915312767029,
-0.2035050392150879,
-0.33436837792396545,
-0.13727229833602905,
0.1671382039785385,
-0.12311403453350067,
-0.041909731924533844,
0.4352342188358307,
-0.05952206626534462,
0.3110083341598511,
-0.01594526506960392,
-0.08545622229576111,
-0.0951860249042511,
0.11144344508647919,
-0.09508702158927917,
-0.3110279440879822,
0.2561812102794647,
0.17043793201446533,
0.07221002131700516,
0.16979335248470306,
-0.13139945268630981,
-0.05205091834068298,
0.00587259978055954,
-0.33911675214767456,
-0.43124738335609436,
-0.30352726578712463,
0.2793094217777252,
0.0968349277973175,
-0.10500235855579376,
0.14019975066184998,
-0.40076515078544617,
0.2124020755290985,
-0.03303130716085434,
-0.06387829035520554,
-0.2944982051849365,
-0.09886253625154495,
-0.2295628786087036,
0.25936123728752136,
0.2700579762458801,
0.18030394613742828,
-0.0016137436032295227,
-0.3492773771286011,
-0.1656961888074875,
0.25332537293434143,
0.546646773815155,
-0.2035304456949234,
0.15084800124168396,
-0.18046961724758148,
0.03481553494930267,
0.5982279181480408,
-0.41645708680152893,
-0.097713403403759,
0.22240875661373138,
-0.33464181423187256,
0.04438681900501251,
0.007630206644535065,
0.17985007166862488,
0.06427109241485596,
0.10571226477622986,
0.32371312379837036,
0.514892041683197,
-0.17978988587856293,
0.07943877577781677,
-0.1894712746143341,
-0.2525603771209717,
0.18896201252937317,
0.37766391038894653,
0.05214117467403412,
0.07108131796121597,
-0.12936332821846008,
0.4729544520378113,
0.45861026644706726,
0.005411926656961441,
0.06879507750272751,
0.08226969838142395,
0.14546917378902435,
-0.0901707261800766,
-0.3268405795097351,
-0.03324994817376137,
-0.3870309591293335,
0.12790727615356445,
0.0395670086145401,
0.10327286273241043,
-0.026721298694610596,
0.08823812752962112,
-0.10366043448448181,
0.04945041239261627,
-0.19201819598674774,
-0.12529303133487701,
0.149580180644989,
0.203447163105011,
0.09192751348018646,
0.0242258720099926,
0.023437101393938065,
0.5169650316238403,
-0.030806446447968483,
0.13072268664836884,
-0.48537611961364746,
0.2479041963815689,
-0.36647501587867737,
-0.043088506907224655,
0.026626020669937134,
0.021789077669382095,
-0.06374728679656982,
0.04763062670826912,
-0.09675034880638123,
0.3046732544898987,
-0.03968508169054985,
-0.4234546422958374,
-0.10475105792284012,
-0.10427741706371307,
0.11548303067684174,
-0.11447588354349136,
0.13060900568962097,
0.33647412061691284,
0.06668758392333984,
-0.049995653331279755,
-0.3063909411430359,
0.3337820768356323,
0.030765149742364883,
0.09002913534641266,
-0.0031025074422359467,
0.3673844635486603,
0.3018738031387329,
-0.020218592137098312,
-0.037255287170410156,
-0.1680348813533783,
0.33377954363822937,
0.037274375557899475,
0.04853310063481331,
-0.22524653375148773,
-0.31696510314941406,
-0.16648000478744507,
0.30116838216781616,
0.04149022325873375,
0.030545257031917572,
0.0421515554189682,
0.18877926468849182,
0.0492154136300087,
-0.11622358858585358,
0.004849310964345932,
0.4669991135597229,
0.08540737628936768,
0.10949751734733582,
-0.022692503407597542,
-0.18930475413799286,
-0.2992958426475525,
0.06442615389823914,
-0.019087322056293488,
0.20575106143951416,
-0.059155821800231934,
0.13096722960472107,
-0.10995634645223618,
-0.040130604058504105,
-0.49577566981315613,
0.28540199995040894,
0.47156596183776855,
-0.20183350145816803,
0.0635066032409668,
-0.3473851680755615,
-0.5306872129440308,
-0.2337203472852707,
-0.20725484192371368,
-0.3806077837944031,
-0.339534729719162,
-0.16524487733840942,
0.4490947127342224,
0.08724868297576904,
0.02022876963019371,
-0.016367100179195404,
-0.23107074201107025,
0.27137458324432373,
-0.0395490899682045,
0.2037118375301361,
-0.07126924395561218,
-0.2772783935070038,
0.15111730992794037,
0.33647775650024414,
-0.021461481228470802,
0.25275224447250366,
-0.10023569315671921,
-0.17335432767868042,
-0.26810386776924133,
0.01585473120212555,
-0.22356095910072327,
0.09388408064842224,
-0.2643555700778961,
0.25119155645370483,
0.36712270975112915,
0.04603969305753708,
-0.2325371950864792,
0.21556340157985687,
-0.018951209262013435,
-0.14204314351081848,
0.3279954195022583,
0.006150469183921814,
0.09732874482870102,
-0.14993548393249512,
-0.30683621764183044,
-0.3677205741405487,
-0.45965325832366943,
0.2124163806438446,
-0.05588770657777786,
0.21250978112220764,
0.3740653693675995,
0.04551044479012489,
0.1976519227027893,
0.03390185162425041,
-0.13301202654838562,
0.03633939474821091,
0.04785127565264702,
0.15722142159938812,
-0.18953639268875122,
-0.30111396312713623,
-0.07816246151924133,
0.20414064824581146,
0.2132154405117035,
0.0037157367914915085,
-0.37802523374557495,
-0.025708910077810287,
0.030842052772641182,
0.274625301361084,
-0.19093367457389832,
-0.043815188109874725,
0.2122444212436676,
-0.3453691005706787,
-0.041161198168992996,
0.2166716754436493,
0.043026041239500046,
0.08033490926027298,
0.21866092085838318,
0.45158645510673523,
-0.14153283834457397,
0.5075711011886597,
0.04848464950919151,
0.39511799812316895,
0.2567918002605438,
-0.01946323737502098,
0.3725384473800659,
-0.02102630026638508,
-0.06965172290802002,
0.021603941917419434,
-0.4024849236011505,
-0.00677444227039814,
-0.12186506390571594,
0.15624797344207764,
-0.028097078204154968,
-0.10814940929412842,
-0.34823131561279297,
-0.17430415749549866,
0.09584642946720123,
0.10263039916753769,
-0.20526136457920074,
0.09995447099208832,
-0.24396094679832458,
0.02690127119421959,
0.010568242520093918,
-0.09340997040271759,
-0.03576384484767914,
-0.17128720879554749,
-0.3353482186794281,
0.3295472264289856,
-0.20561856031417847,
-0.00751382065936923,
-0.06466403603553772,
-0.1637694537639618,
-0.25381383299827576,
0.038105301558971405,
0.17867271602153778,
0.5281774401664734,
0.03131750598549843,
0.11330684274435043,
0.15177007019519806,
-0.05792170390486717,
0.3662668466567993,
0.043177541345357895,
0.11232908815145493,
0.31039857864379883,
0.1655445247888565,
-0.5614232420921326,
-0.3184337019920349,
-0.3913875222206116,
0.2710345983505249,
0.7224536538124084,
0.22563424706459045,
-0.132927805185318,
-0.08333603292703629,
0.3776693046092987,
0.1377880573272705,
-0.09112066775560379,
-0.17005306482315063,
-0.3710443675518036,
-0.32177048921585083,
-0.45755401253700256,
0.05405627563595772,
-0.06567167490720749,
0.33949556946754456,
0.10823633521795273,
0.2655138373374939,
0.12299065291881561,
0.001991432160139084,
-0.13144460320472717,
-0.09602926671504974,
-0.16691890358924866,
0.25198453664779663,
0.12031927704811096,
-0.20486243069171906,
0.11008861660957336,
-0.012151798233389854,
0.5492675304412842,
-0.053735312074422836,
-0.21998509764671326,
0.2330358326435089,
-0.04173526540398598,
0.017732881009578705,
0.04703986644744873,
0.16859817504882812,
0.11726124584674835,
0.09612558037042618,
0.1955205202102661,
0.3162570893764496,
0.17790725827217102,
0.2874186336994171,
-0.2669259309768677,
-0.28420138359069824,
-0.2203264981508255,
0.4090632200241089,
0.06504456698894501,
0.19391129910945892,
0.24376553297042847,
-0.5065388083457947,
0.06952004879713058,
-0.03853015974164009,
0.14288856089115143,
0.5448476076126099,
-0.16018982231616974,
0.2056906372308731,
0.3697626292705536,
-0.14225587248802185,
0.49981823563575745,
-0.3342643976211548,
0.17927058041095734,
-0.19360335171222687,
0.2306196689605713,
0.08422654867172241,
0.027097124606370926,
-0.03355874866247177,
0.16266033053398132,
-0.22062036395072937,
0.1645323634147644,
0.12993410229682922,
-0.055314864963293076,
0.181540384888649,
0.5320366621017456,
0.009405811317265034,
-0.34164074063301086,
-0.2274576723575592,
0.20656296610832214,
-0.1639430671930313,
0.3153640925884247,
-0.0948612317442894,
-0.07713243365287781,
0.10907736420631409,
-0.16552555561065674,
-0.3335943818092346,
0.28149840235710144,
-0.08341966569423676,
0.5441381335258484,
-0.07002721726894379,
-0.05367538332939148,
-0.06540428102016449,
0.22002875804901123,
0.07941313832998276,
-0.13874955475330353,
-0.05445117503404617,
-0.0917542427778244,
-0.08849035948514938,
-0.2747749090194702,
-0.13513873517513275,
0.02277427911758423,
0.2547704875469208,
-0.3102385103702545,
-0.35998278856277466,
0.20842313766479492,
0.04348739609122276,
-0.27683037519454956,
0.1300099790096283,
0.2966112494468689,
-0.10796970129013062,
0.11719420552253723,
0.07997988164424896,
-0.06041611731052399,
0.10194793343544006,
-0.09148161113262177,
0.13782872259616852,
0.18445290625095367,
-0.27234119176864624,
0.038407668471336365,
-0.07254990935325623,
-0.12654536962509155,
0.030276155099272728,
0.544825553894043,
0.07951152324676514,
0.01466790959239006,
0.4382508397102356,
0.2637677788734436,
0.04875639081001282,
-0.3331160247325897,
0.12422508746385574,
-0.20902174711227417,
-0.21657612919807434,
-0.032998356968164444,
0.0389133058488369,
0.2234705239534378,
0.05925772711634636,
0.10320019721984863,
0.14492401480674744,
0.17718994617462158,
0.15251882374286652,
-0.6146882772445679,
-0.4120772182941437,
-0.050766974687576294,
-0.11351749300956726,
-0.10179738700389862,
-0.09726947546005249,
0.20154407620429993,
0.2837578058242798,
0.03645048663020134,
-0.29311758279800415,
0.02957075648009777,
-0.394064337015152,
0.07470506429672241,
0.44344577193260193,
-0.29558464884757996,
-0.009802776388823986,
0.20643483102321625,
0.22121363878250122,
-0.19654349982738495,
-0.14492827653884888,
-0.24741750955581665,
-0.02684793435037136,
0.06838030368089676,
0.016964439302682877,
-0.19805273413658142,
0.15768663585186005,
-0.351207435131073,
-0.24849605560302734,
0.19244138896465302,
-0.07229198515415192,
0.03838730603456497,
0.07087691873311996,
0.12218189239501953,
-0.16020821034908295,
0.1678963303565979,
-0.08345049619674683,
0.014652170240879059,
-0.27050819993019104,
0.07710866630077362,
0.11173000186681747,
0.3172304928302765,
0.21723933517932892,
-0.004561655223369598,
-0.6347712874412537,
-0.17394471168518066,
-0.2452748566865921,
-0.08426142483949661,
0.09532313793897629,
-0.3559567928314209,
-0.014028066769242287,
-0.22922341525554657,
0.061665184795856476,
0.22969964146614075,
-0.11127638816833496,
0.04356503486633301,
0.3644264340400696,
0.25061947107315063,
-0.15715737640857697,
-0.013790884986519814,
0.2758880853652954,
0.02771826460957527,
0.009881097823381424,
0.2398209124803543,
-0.10482598841190338,
-0.07613798975944519,
0.15756633877754211,
0.07760519534349442,
0.10168026387691498,
0.09764692187309265,
-0.009248834103345871,
0.3073761463165283,
-0.19900751113891602,
-0.053832296282052994,
0.036505017429590225,
-0.004383835941553116,
0.2784196436405182,
0.31349849700927734,
-0.2719896137714386,
0.2696484923362732,
-0.07016941159963608,
0.05118291825056076,
0.14697237312793732,
-0.20849916338920593,
-0.3138243854045868,
-0.01410268247127533,
-0.24583569169044495,
-0.029513955116271973,
-0.15945589542388916,
0.3483741283416748,
-0.3062145709991455,
-0.2602592408657074,
-0.39525526762008667,
0.527289628982544,
-0.1780478060245514,
0.05312829837203026,
-0.3437134027481079,
-0.09361013770103455,
-0.27327993512153625,
0.1869678646326065,
0.0505937896668911,
0.07760997116565704,
0.4932878911495209,
0.324449360370636,
-0.15094289183616638,
-0.5531563758850098,
-0.18600234389305115,
0.2678644061088562,
0.015663757920265198,
-0.35005220770835876,
0.2893449664115906,
0.4177258610725403,
-0.27849912643432617,
-0.009165629744529724,
0.09575964510440826,
0.5214705467224121,
0.2982962131500244,
0.1787404716014862,
0.10023193806409836,
-0.047297153621912,
-0.032536398619413376,
-0.025405477732419968,
-0.05735576152801514,
0.4776995778083801,
0.21050776541233063,
0.38306981325149536,
0.09772950410842896,
-0.2219572365283966,
0.17007732391357422,
0.09212397038936615,
-0.10505898296833038,
-0.1036490947008133,
0.4112376868724823,
-0.02189994603395462,
0.0097770094871521,
-0.23978352546691895,
0.06705708801746368,
-0.5321541428565979,
0.08143363147974014,
0.026707541197538376,
0.13209572434425354,
0.1471252739429474,
0.04539630934596062,
0.05070865899324417,
0.009732551872730255,
0.5457181930541992,
0.30347785353660583,
0.21150422096252441,
-0.2945055365562439,
-0.28238213062286377,
-0.6838549971580505,
0.09728627651929855,
-0.5811128616333008,
-0.10109870880842209,
-0.04636863246560097,
0.23086221516132355,
-0.20033064484596252,
0.21887336671352386,
0.03419400751590729,
0.034541480243206024,
0.18187840282917023,
0.27352309226989746,
-0.36003628373146057,
-0.0847812294960022,
0.21785058081150055,
-0.018978549167513847,
0.03384310379624367,
-0.3433592617511749,
0.06985104829072952,
-0.2905699610710144,
0.089047871530056,
-0.2007325142621994,
-0.07836286723613739,
0.1026037335395813,
0.2820730209350586,
0.0038194283843040466,
0.1270773559808731,
0.49727123975753784,
0.192816823720932,
-0.3524477481842041,
-0.22494888305664062,
0.20275844633579254,
-0.16100594401359558,
0.013192389160394669,
0.203626811504364,
0.40222176909446716,
-0.1029101237654686,
0.14341489970684052,
-0.34613677859306335,
0.5090778470039368,
-0.12394339591264725,
-0.17005400359630585,
-0.07957220077514648,
0.054473377764225006,
0.05632884055376053,
0.11478615552186966,
0.22201117873191833,
0.035059623420238495,
-0.025366581976413727,
0.039400674402713776,
-0.3940596580505371,
-0.21150238811969757,
0.3609003722667694,
-0.09750676900148392,
-0.26557955145835876,
-0.18048988282680511,
0.2269531786441803,
-0.32093167304992676,
0.2880323529243469,
-0.5555564165115356,
0.12516239285469055,
0.2969518303871155,
-0.08232884854078293,
-0.5224140882492065,
0.12004746496677399,
0.12428818643093109,
-0.1698409765958786,
-0.007211040705442429,
0.00020613521337509155,
0.08076609671115875,
-0.4523904025554657,
0.23109707236289978,
-0.11049646139144897
] |
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.2511937916278839,
-0.1868029236793518,
0.05262890085577965,
0.08167773485183716,
-0.010631870478391647,
0.09125601500272751,
0.30547770857810974,
-0.03919796273112297,
0.12936528027057648,
-0.1488107591867447,
-0.268949031829834,
0.19393979012966156,
-0.06050247699022293,
0.22089968621730804,
0.5498039722442627,
-0.006287973374128342,
-0.0692310705780983,
0.20221373438835144,
-0.0570148229598999,
-0.10582832992076874,
-0.1856537163257599,
0.22076120972633362,
-0.13702701032161713,
0.17038628458976746,
-0.12144804745912552,
-0.02254595048725605,
-0.06619645655155182,
0.5867702960968018,
-0.14263492822647095,
-0.46990013122558594,
0.33833086490631104,
0.13358280062675476,
0.2301872819662094,
0.34513670206069946,
-0.00011740774061763659,
-0.24251972138881683,
0.08668959885835648,
-0.25883549451828003,
-0.2761322855949402,
-0.28547561168670654,
0.185997873544693,
-0.5186660885810852,
0.2983284294605255,
-0.3381858170032501,
-0.013424212113022804,
0.08142980933189392,
0.2943902611732483,
-0.126016303896904,
0.5597593188285828,
0.061291757971048355,
0.1011526882648468,
0.2022676318883896,
-0.24724505841732025,
0.07984708994626999,
-0.13325291872024536,
0.19417566061019897,
0.02775716967880726,
0.10694071650505066,
0.35069504380226135,
-0.29719653725624084,
-0.03040040284395218,
-0.0905303806066513,
0.1101556271314621,
-0.08725787699222565,
0.5247398614883423,
0.19061744213104248,
-0.2882423400878906,
-0.12822225689888,
-0.1692812442779541,
0.21190935373306274,
0.4062783122062683,
-0.3414674997329712,
-0.1741291880607605,
-0.39762693643569946,
0.11346805095672607,
-0.17957639694213867,
0.25338900089263916,
0.1868119239807129,
-0.2927103340625763,
0.01895001530647278,
-0.2960910201072693,
-0.12775734066963196,
-0.26048392057418823,
0.19483496248722076,
0.37701019644737244,
0.031242597848176956,
-0.15058383345603943,
0.11210529506206512,
0.20198915898799896,
-0.2020058035850525,
-0.2376161366701126,
0.08168305456638336,
0.14842770993709564,
0.6347585320472717,
-0.3498254120349884,
-0.22184468805789948,
-0.18094053864479065,
0.17088347673416138,
0.2634720504283905,
0.03138206899166107,
0.3042985796928406,
-0.01904948055744171,
-0.17808948457241058,
0.07344620674848557,
0.33162394165992737,
0.06215299293398857,
0.4791778326034546,
-0.19504715502262115,
-0.08322787284851074,
-0.060264572501182556,
-0.09062673151493073,
-0.02789899706840515,
-0.3807086646556854,
0.06101587414741516,
-0.13432282209396362,
-0.2206491231918335,
0.027176249772310257,
-0.18327756226062775,
0.10382054001092911,
-0.3341503441333771,
0.3256411552429199,
-0.17063520848751068,
0.1045820415019989,
0.20520907640457153,
-0.04137883335351944,
-0.2097409963607788,
-0.0840178057551384,
0.0338134728372097,
-0.07525010406970978,
-0.25284409523010254,
-0.03280835971236229,
-0.03978220000863075,
-0.17268794775009155,
0.09845530986785889,
0.3442992866039276,
-0.2336004376411438,
0.42957285046577454,
-0.08073979616165161,
0.06001320481300354,
0.023357369005680084,
-0.06948920339345932,
0.12546895444393158,
-0.2132776379585266,
-0.26061663031578064,
0.22509825229644775,
-0.08941657841205597,
0.17064762115478516,
-0.3729165196418762,
-0.18357788026332855,
-0.008838169276714325,
-0.22097468376159668,
-0.04548437520861626,
-0.3162703216075897,
0.051149673759937286,
-0.2137240171432495,
-0.41070297360420227,
-0.21107757091522217,
0.4020386338233948,
-0.10216105729341507,
-0.24334825575351715,
-0.048199839890003204,
0.23075325787067413,
-0.19705328345298767,
-0.09704471379518509,
0.0752110704779625,
0.24379603564739227,
-0.4955694377422333,
-0.312112957239151,
0.16052937507629395,
-0.1799180656671524,
-0.11822301894426346,
0.2004852145910263,
-0.26545992493629456,
0.03575139865279198,
-0.1790161430835724,
0.2451017051935196,
0.6685571670532227,
-0.36152589321136475,
-0.2545459568500519,
0.1291521042585373,
-0.33755040168762207,
0.050391681492328644,
-0.051107652485370636,
0.2312559187412262,
0.27277034521102905,
-0.026181263849139214,
0.11953555047512054,
0.756342887878418,
0.03043803758919239,
-0.04576697573065758,
-0.014619071036577225,
0.012816907837986946,
0.19135385751724243,
0.08804622292518616,
-0.37545046210289,
0.19402210414409637,
0.15280283987522125,
0.16382530331611633,
0.1648668646812439,
-0.02000395581126213,
-0.14105205237865448,
-0.011568054556846619,
-0.0874643474817276,
0.37336575984954834,
-0.011961573734879494,
0.09379834681749344,
-0.7424092888832092,
0.2507956922054291,
-0.32279178500175476,
0.026596058160066605,
0.3197609782218933,
-0.057291798293590546,
-0.5034215450286865,
-0.15676499903202057,
-0.12506943941116333,
0.13943856954574585,
0.003526829183101654,
0.12848061323165894,
0.11616376042366028,
-0.15004239976406097,
-0.3917634189128876,
0.4788063168525696,
-0.2969142496585846,
0.25986596941947937,
-0.4144132733345032,
0.027962150052189827,
0.2513422667980194,
-0.08677714318037033,
0.05784355849027634,
0.3452282249927521,
0.16673412919044495,
-0.0923566073179245,
0.08540397137403488,
0.35434916615486145,
-0.19660036265850067,
0.31609565019607544,
0.3858177661895752,
-0.07989303767681122,
-0.01192544586956501,
0.05903949961066246,
0.24745486676692963,
-0.18684135377407074,
0.10454860329627991,
-0.23731648921966553,
-0.37555238604545593,
0.20339131355285645,
-0.1266900897026062,
0.11381827294826508,
0.058687977492809296,
-0.22126857936382294,
0.09943424165248871,
-0.05098702013492584,
-0.2495698183774948,
0.022864438593387604,
0.13932441174983978,
0.1846896857023239,
0.5775022506713867,
0.029377885162830353,
-0.12295350432395935,
-0.09379861503839493,
0.5493201017379761,
-0.06944485008716583,
0.09780697524547577,
0.23144742846488953,
-0.09451866894960403,
-0.23995694518089294,
0.1245625913143158,
-0.1773860603570938,
0.2780829668045044,
0.2319314032793045,
-0.07778654992580414,
0.04740872606635094,
-0.15717272460460663,
0.046016812324523926,
-0.06323272734880447,
-0.059831663966178894,
-0.07554013282060623,
-0.24135267734527588,
0.24601012468338013,
-0.15205849707126617,
-0.41410624980926514,
0.1202450841665268,
-0.0843701958656311,
-0.08878990262746811,
-0.1791382133960724,
0.03278423100709915,
0.025851087644696236,
-0.3187445104122162,
-0.2578943073749542,
-0.2606235444545746,
-0.5657706260681152,
0.10988979786634445,
-0.3193964958190918,
-0.16999952495098114,
0.5434670448303223,
-0.04263291507959366,
0.08944761753082275,
0.6790087223052979,
-0.15814758837223053,
-0.1685846745967865,
0.11333779990673065,
-0.05979318544268608,
-0.2973836064338684,
-0.03805854171514511,
0.13494981825351715,
0.25626879930496216,
0.4579537510871887,
-0.009197956882417202,
0.16602221131324768,
0.1255871057510376,
-0.22809678316116333,
0.0864352285861969,
-0.1482442319393158,
0.23355832695960999,
0.1508987843990326,
0.19805452227592468,
-0.12742146849632263,
-0.0572061613202095,
0.052349891513586044,
-0.13856717944145203,
-0.17902380228042603,
-0.24043571949005127,
0.0019237152300775051,
0.2437562346458435,
-0.03726416081190109,
-0.13209268450737,
-0.4951513409614563,
-0.20633311569690704,
0.5470713973045349,
0.36379921436309814,
0.10085734724998474,
0.2450047880411148,
-0.3379797041416168,
0.43631845712661743,
-0.2013401985168457,
-0.02989380992949009,
-0.243127703666687,
-0.5314005613327026,
0.11105369031429291,
-0.22127413749694824,
-0.18704545497894287,
0.1094571202993393,
0.04110952466726303,
0.11783218383789062,
-0.26801127195358276,
-0.20268762111663818,
-0.2860259711742401,
0.2530055046081543,
-0.021473478525877,
-0.0531170517206192,
0.06862428039312363,
0.19881191849708557,
-0.32254156470298767,
0.11685428023338318,
-0.09868025034666061,
-0.3786764442920685,
0.19312068819999695,
0.38677823543548584,
0.24450528621673584,
0.22834745049476624,
0.13129493594169617,
-0.015844788402318954,
0.6685087084770203,
0.027527738362550735,
-0.10567708313465118,
0.3860662281513214,
-0.0057336557656526566,
0.22161057591438293,
0.018944822251796722,
-0.4455035328865051,
0.09687251597642899,
0.22945481538772583,
0.23099757730960846,
0.4019133448600769,
0.23499467968940735,
0.06012071669101715,
-0.29356709122657776,
0.004524450749158859,
-0.17966333031654358,
0.13437847793102264,
-0.10143204033374786,
0.2586897015571594,
-0.05572213977575302,
0.1442108303308487,
-0.13770867884159088,
-0.5438348650932312,
-0.29912206530570984,
-0.250363290309906,
0.1944403052330017,
0.15761235356330872,
0.26642903685569763,
-0.7415151596069336,
0.08207738399505615,
-0.4755268692970276,
0.22808535397052765,
0.04251259192824364,
0.14764957129955292,
-0.004253573715686798,
-0.008555613458156586,
0.2061498463153839,
0.16839800775051117,
0.5750073194503784,
0.25437596440315247,
-0.14793118834495544,
-0.05841126665472984,
0.09461520612239838,
-0.4649527370929718,
0.30179089307785034,
0.14238382875919342,
0.32813361287117004,
0.32238060235977173,
0.5257139801979065,
-0.23889243602752686,
-0.2450679987668991,
0.16136568784713745,
0.01095649879425764,
-0.35797643661499023,
-0.3428828716278076,
-0.3559778928756714,
-0.10836384445428848,
-0.014248455874621868,
-0.10778998583555222,
-0.1859329342842102,
0.15852776169776917,
0.17609471082687378,
0.06440144777297974,
0.12746624648571014,
0.026516404002904892,
0.07253225892782211,
0.2033691555261612,
-0.03365364670753479,
0.4635397791862488,
-0.18958339095115662,
0.3946453928947449,
0.2590385675430298,
-0.5374869704246521,
0.6323100924491882,
-0.4285525381565094,
-0.3377109467983246,
-0.1661488115787506,
-0.0027464446611702442,
0.5326379537582397,
0.2596345543861389,
0.4100416600704193,
0.11357748508453369,
-0.15311108529567719,
-0.11274825036525726,
-0.27995383739471436,
0.20604482293128967,
0.21882334351539612,
-0.08878534287214279,
-0.17243537306785583,
-0.41153088212013245,
0.6642171144485474,
-0.12536916136741638,
-0.014211714267730713,
0.17172986268997192,
0.19198459386825562,
-0.22118079662322998,
0.09170661866664886,
-0.15316125750541687,
0.9541108012199402,
-0.3873252272605896,
0.35260751843452454,
0.11970563977956772,
-0.009999558329582214,
0.7712215185165405,
-0.18179285526275635,
-0.1625918298959732,
-0.36577168107032776,
0.029169078916311264,
-0.08124540746212006,
-0.09404265880584717,
0.21807849407196045,
0.6166023015975952,
-0.1423182636499405,
0.3255704343318939,
0.1767975240945816,
-0.09277090430259705,
0.10795478522777557,
0.4875277280807495,
0.18434707820415497,
-0.5538487434387207,
-0.7102070450782776,
0.06035121530294418,
-0.33408308029174805,
0.2049706131219864,
-0.16552162170410156,
-0.09053297340869904,
0.03481176123023033,
-0.20155751705169678,
0.06625977158546448,
0.014889359474182129,
-0.20541717112064362,
-0.29795897006988525,
0.3345993459224701,
-0.324086993932724,
0.041494179517030716,
0.5139362812042236,
0.1572248339653015,
-0.031050559133291245,
-0.008865861222147942,
-0.006347320973873138,
-0.09182777255773544,
-0.030101638287305832,
-0.2045820951461792,
0.30193498730659485,
0.25180360674858093,
-0.11729580163955688,
-0.03177115321159363,
0.022239025682210922,
0.11663679778575897,
-0.21175558865070343,
-0.2835065722465515,
0.23799042403697968,
0.19962343573570251,
-0.3022344708442688,
-0.5194172859191895,
-0.002324625849723816,
0.21108293533325195,
0.08645118772983551,
0.023931100964546204,
0.20176787674427032,
-0.07063330709934235,
-0.11390068382024765,
0.43790000677108765,
-0.04184837266802788,
0.12888196110725403,
0.4388933479785919,
-0.3553404211997986,
-0.47148749232292175,
0.4188658595085144,
0.22820787131786346,
0.11880834400653839,
0.001989521086215973,
0.16962003707885742,
0.07910438627004623,
-0.13070523738861084,
-0.16766668856143951,
0.4686758518218994,
-0.013889074325561523,
-0.07966876029968262,
0.1723971664905548,
0.161880761384964,
-0.14815127849578857,
0.12804608047008514,
-0.19390259683132172,
-0.3550582826137543,
0.10703098773956299,
-0.02647348865866661,
-0.034785110503435135,
0.4684087932109833,
-0.03691883385181427,
0.23164084553718567,
0.2830181121826172,
-0.1894061267375946,
0.16141760349273682,
-0.25171151757240295,
0.1376010775566101,
0.5653262138366699,
-0.17130637168884277,
0.012840982526540756,
0.13651081919670105,
0.018144911155104637,
0.057830244302749634,
-0.12796899676322937,
-0.12722742557525635,
-0.25238966941833496,
0.19877171516418457,
0.1550896167755127,
-0.10448723286390305,
-0.1222681775689125,
-0.18353010714054108,
-0.07821209728717804,
-0.11624620854854584,
0.01861407980322838,
0.14674410223960876,
0.12449835240840912,
0.3703170120716095,
0.07197746634483337,
0.22261008620262146,
-0.0038900449872016907,
0.029005518183112144,
0.1488189846277237,
0.2056487798690796,
0.13843029737472534,
-0.0402178019285202,
-0.17970594763755798,
0.03342314809560776,
-0.24606461822986603,
0.22190764546394348,
0.559780478477478,
0.0894269272685051,
0.08146288990974426,
-0.08000139892101288,
0.09240281581878662,
-0.07620617747306824,
0.03494934365153313,
0.1303814947605133,
-0.17928768694400787,
0.14317022264003754,
0.23285993933677673,
0.05748457461595535,
-0.1401289999485016,
-0.1264335811138153,
0.6219963431358337,
-0.10618379712104797,
-0.06477366387844086,
0.2504395842552185,
-0.1310267299413681,
0.29225924611091614,
-0.11907261610031128,
-0.21399402618408203,
0.43408143520355225,
0.15132302045822144,
-0.12026575207710266,
-0.1343468427658081,
-0.22512222826480865,
-0.24153585731983185,
0.2751109302043915,
0.3698023557662964,
0.12391772866249084,
0.06801822781562805,
-0.1743522584438324,
0.13090285658836365,
-0.2866809368133545,
0.13940465450286865,
0.32284271717071533,
-0.444807231426239,
-0.1280965656042099,
0.3435071110725403,
0.28702884912490845,
0.5161545872688293,
-0.2524104118347168,
0.9262966513633728,
-0.2093733251094818,
-0.1474725753068924,
-0.08282386511564255,
0.11014355719089508,
0.12064453214406967,
-0.1401916891336441,
-0.18657872080802917,
-0.020241349935531616,
-0.12502142786979675,
-0.07591169327497482,
-0.20391026139259338,
-0.45269155502319336,
-0.21748799085617065,
-0.12416425347328186,
0.16285490989685059,
-0.06012841314077377,
-0.2560819685459137,
0.22506773471832275,
-0.08954393118619919,
-0.0897461399435997,
0.23541611433029175,
-0.08403055369853973,
0.23721833527088165,
0.4916703701019287,
0.12200037389993668,
-0.1269645392894745,
0.20954738557338715,
0.06390629708766937,
0.13985419273376465,
-0.01756950095295906,
0.04401802271604538,
0.007454106584191322,
0.0787414014339447,
0.01327977329492569,
0.06040627881884575,
0.11713512241840363,
0.046508386731147766,
-0.04964370280504227,
-0.01852342113852501,
0.17799095809459686,
-0.018203165382146835,
-0.4296703636646271,
0.17415423691272736,
-0.19356639683246613,
-0.13364949822425842,
-0.46573877334594727,
0.2527322471141815,
-0.5220646262168884,
-0.12877583503723145,
0.06206629052758217,
0.25692054629325867,
0.09894255548715591,
-0.26575785875320435,
0.029851239174604416,
-0.21851332485675812,
0.5074790120124817,
0.21223418414592743,
0.03208070993423462,
0.09515190869569778,
-0.23404854536056519,
-0.5880169868469238,
0.199369877576828,
0.16457927227020264,
-0.27122175693511963,
0.018988190218806267,
0.06461228430271149,
-0.0401034876704216,
0.1994284689426422,
-0.09023736417293549,
-0.05190472677350044,
-0.15301372110843658,
-0.08055269718170166,
-0.26618438959121704,
-0.2601543962955475,
-0.10913118720054626,
0.2602449357509613,
0.055683523416519165,
0.02859867364168167,
-0.08167175948619843,
0.20176291465759277,
-0.18710169196128845,
-0.13376757502555847,
0.05898040533065796,
-0.011731669306755066,
-0.012500129640102386,
0.11309471726417542,
-0.24795842170715332,
0.38011714816093445,
0.13108083605766296,
0.016237838193774223,
0.12624941766262054,
0.002431911416351795,
-0.26384443044662476,
0.05473838746547699,
-0.07138267159461975,
0.30614084005355835,
-0.20069818198680878,
0.0520075224339962,
-0.15536589920520782,
0.12865109741687775,
-0.08898921310901642,
-0.15103019773960114,
-0.1771155297756195,
-0.11246055364608765,
-0.10704649984836578,
-0.03721163794398308,
0.19365273416042328,
0.5496386885643005,
-0.06957711279392242,
0.19621409475803375,
-0.08951185643672943,
0.18128690123558044,
0.48636332154273987,
-0.48675987124443054,
-0.09125065058469772,
0.16946826875209808,
0.21917161345481873,
0.11145690083503723,
-0.3302905261516571,
-0.42944011092185974,
0.1502029001712799,
0.3653630316257477,
0.001104472205042839,
0.06914561986923218,
0.41497117280960083,
-0.48034968972206116,
-0.02951369620859623,
-0.0905226543545723,
-0.016654491424560547,
0.2801736295223236,
0.1656372845172882,
0.08428068459033966,
-0.07443380355834961
] |
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.16326119005680084,
-0.21372857689857483,
0.06531195342540741,
0.16295360028743744,
-0.06249062716960907,
0.09282540529966354,
0.25121578574180603,
-0.043067071586847305,
0.14747291803359985,
-0.14725185930728912,
-0.20299547910690308,
0.1871047466993332,
-0.10824799537658691,
0.37453413009643555,
0.6062442064285278,
-0.07163552939891815,
-0.11528966575860977,
0.17533338069915771,
-0.051535576581954956,
-0.03770647570490837,
-0.19810575246810913,
0.2560163736343384,
-0.12575586140155792,
0.20883184671401978,
-0.1571900099515915,
0.0645790621638298,
-0.1292651742696762,
0.6166016459465027,
-0.043227262794971466,
-0.46532538533210754,
0.45857158303260803,
0.16447919607162476,
0.30752822756767273,
0.3923661410808563,
-0.00011831418669316918,
-0.23410676419734955,
0.13206277787685394,
-0.2658725082874298,
-0.2585253119468689,
-0.4351498484611511,
0.11572980135679245,
-0.41351228952407837,
0.35766854882240295,
-0.25808897614479065,
-0.07578378915786743,
0.10122287273406982,
0.2567008137702942,
-0.07171360403299332,
0.5230125784873962,
0.08411366492509842,
0.07940073311328888,
0.175288587808609,
-0.19734351336956024,
0.0069303568452596664,
-0.0799252912402153,
0.2747308611869812,
0.1185421571135521,
0.25473302602767944,
0.4028341770172119,
-0.31939905881881714,
-0.010998137295246124,
-0.15887071192264557,
0.07885654270648956,
-0.07656508684158325,
0.5086480379104614,
0.13938766717910767,
-0.38387978076934814,
-0.10769744217395782,
-0.1860264539718628,
0.26056158542633057,
0.4418688714504242,
-0.4110245108604431,
-0.16385237872600555,
-0.34940657019615173,
0.11573008447885513,
-0.081940658390522,
0.2004317343235016,
0.24703530967235565,
-0.23331861197948456,
-0.0007750317454338074,
-0.32481008768081665,
-0.08140795677900314,
-0.2789478302001953,
0.26529660820961,
0.42474672198295593,
-0.0282350555062294,
-0.1757754236459732,
0.13227245211601257,
0.14658766984939575,
-0.18426765501499176,
-0.2298355996608734,
0.04103103280067444,
0.12780582904815674,
0.5799486637115479,
-0.2658238112926483,
-0.22679629921913147,
-0.16166839003562927,
0.19542749226093292,
0.308989554643631,
0.07298774272203445,
0.2669949531555176,
0.008543994277715683,
-0.2398352175951004,
0.08319264650344849,
0.3722083270549774,
0.05666192248463631,
0.4918213188648224,
-0.16845926642417908,
-0.13711827993392944,
0.019394809380173683,
-0.11305481195449829,
-0.027967430651187897,
-0.44326454401016235,
0.04358798637986183,
-0.2443503439426422,
-0.20977064967155457,
0.05359835922718048,
-0.21778014302253723,
0.04560656100511551,
-0.30997905135154724,
0.28707456588745117,
-0.14718712866306305,
0.1001880019903183,
0.2248864769935608,
-0.006534818559885025,
-0.17654207348823547,
-0.041952598839998245,
0.13134995102882385,
-0.08768244087696075,
-0.2424851357936859,
0.015461403876543045,
-0.02599625289440155,
-0.15021395683288574,
0.1816098392009735,
0.3011448383331299,
-0.1626349687576294,
0.47799602150917053,
-0.11165151000022888,
0.003214910626411438,
-0.07901236414909363,
-0.07859301567077637,
0.2046211063861847,
-0.27472352981567383,
-0.22805367410182953,
0.29845675826072693,
-0.11991147696971893,
0.2767026424407959,
-0.2447410672903061,
-0.1950596123933792,
-0.016199596226215363,
-0.1980811059474945,
-0.09980842471122742,
-0.26044273376464844,
0.029850631952285767,
-0.2414758950471878,
-0.429025799036026,
-0.30824360251426697,
0.41734379529953003,
-0.18800514936447144,
-0.24434727430343628,
-0.06525786966085434,
0.22109408676624298,
-0.2627900540828705,
-0.10887672752141953,
0.14350655674934387,
0.32038235664367676,
-0.5170238018035889,
-0.3434065580368042,
0.15137979388237,
-0.08548800647258759,
-0.1692570149898529,
0.14773645997047424,
-0.31765350699424744,
0.152489572763443,
-0.2047581970691681,
0.22173772752285004,
0.5584903359413147,
-0.2829343378543854,
-0.12329332530498505,
0.2048126757144928,
-0.347390353679657,
-0.05996265262365341,
-0.062330879271030426,
0.21365858614444733,
0.24724401533603668,
-0.018247179687023163,
0.030617602169513702,
0.699008047580719,
0.04606402665376663,
-0.04945950210094452,
0.04433001950383186,
-0.05560541898012161,
0.11617174744606018,
0.12398466467857361,
-0.43935027718544006,
0.20055145025253296,
0.13850435614585876,
0.15597204864025116,
0.12808695435523987,
-0.006327394396066666,
-0.16632606089115143,
0.014678951352834702,
-0.0424184612929821,
0.3889627456665039,
-0.01862780749797821,
0.0057166218757629395,
-0.6861986517906189,
0.2428300976753235,
-0.3102073669433594,
-0.11798657476902008,
0.35374927520751953,
-0.07474769651889801,
-0.5600337386131287,
-0.11995308101177216,
-0.05217427387833595,
0.14236371219158173,
-0.03101310133934021,
0.07152394205331802,
0.23519235849380493,
-0.15593761205673218,
-0.4199751615524292,
0.3658931255340576,
-0.2654150426387787,
0.22196321189403534,
-0.44220566749572754,
0.07150693237781525,
0.299252986907959,
-0.11903159320354462,
0.1711469441652298,
0.34485891461372375,
0.18592935800552368,
-0.1832343339920044,
0.1324014663696289,
0.4043012857437134,
-0.0898129791021347,
0.30380141735076904,
0.3436332941055298,
-0.11675570905208588,
-0.04572025686502457,
0.01800040528178215,
0.2573494613170624,
-0.07227678596973419,
0.16223357617855072,
-0.23562240600585938,
-0.39416658878326416,
0.2469719797372818,
-0.16628235578536987,
0.19555717706680298,
0.08559729158878326,
-0.14042164385318756,
0.07530471682548523,
-0.10765622556209564,
-0.2879718840122223,
0.030881501734256744,
0.12613244354724884,
0.16420365869998932,
0.5432066917419434,
0.015149213373661041,
-0.07429303973913193,
-0.13753744959831238,
0.45891478657722473,
-0.16215816140174866,
0.04833793640136719,
0.275779664516449,
-0.2151988446712494,
-0.16496577858924866,
0.09675183892250061,
-0.11399887502193451,
0.31007885932922363,
0.21747776865959167,
-0.1915285587310791,
0.12095215916633606,
-0.1546863466501236,
0.016793884336948395,
-0.07760611921548843,
0.009664833545684814,
-0.07242260128259659,
-0.2934224605560303,
0.02898314781486988,
-0.1682446151971817,
-0.3165304362773895,
0.007310137152671814,
-0.08371997624635696,
-0.05273929238319397,
-0.2797638177871704,
0.08461872488260269,
-0.02380778267979622,
-0.3330252468585968,
-0.3326053023338318,
-0.3089468479156494,
-0.40921586751937866,
0.11759461462497711,
-0.37577831745147705,
-0.08988083899021149,
0.5219325423240662,
-0.06749287992715836,
0.07894720137119293,
0.5729547142982483,
-0.1967443972826004,
-0.14011844992637634,
0.1492646485567093,
-0.12344382703304291,
-0.3371571898460388,
-0.058183006942272186,
0.21754388511180878,
0.3872225284576416,
0.48302972316741943,
-0.09627057611942291,
0.16980959475040436,
0.14312760531902313,
-0.15509864687919617,
0.07612369954586029,
-0.11705709993839264,
0.1787736564874649,
0.22817523777484894,
0.20395350456237793,
-0.11202295124530792,
-0.09225042164325714,
0.06992579251527786,
-0.1441308557987213,
-0.09470421820878983,
-0.21469636261463165,
0.0065221842378377914,
0.14879567921161652,
-0.06929859519004822,
-0.2026626169681549,
-0.39260435104370117,
-0.20460255444049835,
0.5442580580711365,
0.3179159462451935,
0.09456710517406464,
0.14861971139907837,
-0.20049387216567993,
0.5334941744804382,
-0.2726587951183319,
-0.09559772163629532,
-0.15342196822166443,
-0.5053132176399231,
0.04332662373781204,
-0.1828356385231018,
-0.23921431601047516,
0.17315781116485596,
-0.0023850835859775543,
0.08039367198944092,
-0.2721157670021057,
-0.21416495740413666,
-0.3095809519290924,
0.16588708758354187,
-0.12431517243385315,
0.01111673191189766,
0.06369426846504211,
0.19316892325878143,
-0.3519291579723358,
0.14231999218463898,
-0.08009655028581619,
-0.37167346477508545,
0.17278334498405457,
0.30585965514183044,
0.12594842910766602,
0.3053843379020691,
0.2932283878326416,
-0.08386954665184021,
0.5675317049026489,
0.12912629544734955,
-0.1714804470539093,
0.34436699748039246,
-0.04026706516742706,
0.1789766252040863,
0.06799251586198807,
-0.3560134172439575,
0.0380215160548687,
0.17957957088947296,
0.22006811201572418,
0.4753515124320984,
0.2660541832447052,
0.18119072914123535,
-0.2931442856788635,
-0.07267630845308304,
-0.16380569338798523,
0.09776939451694489,
-0.049273572862148285,
0.11757250875234604,
-0.03603499382734299,
0.0642566829919815,
-0.1507178544998169,
-0.45463594794273376,
-0.2977871000766754,
-0.25109317898750305,
0.25597167015075684,
0.17129789292812347,
0.2918238341808319,
-0.6364763975143433,
0.07136556506156921,
-0.3645470440387726,
0.2603876292705536,
0.020470483228564262,
0.140549436211586,
0.006777767091989517,
0.03541949391365051,
0.21483774483203888,
0.17906513810157776,
0.47447526454925537,
0.2818931043148041,
-0.1275414675474167,
-0.08299301564693451,
0.014543741941452026,
-0.5307661294937134,
0.2800443172454834,
0.0936901867389679,
0.33893463015556335,
0.3042066693305969,
0.5084877014160156,
-0.2509048283100128,
-0.22832144796848297,
0.19436198472976685,
0.049124639481306076,
-0.3041260838508606,
-0.391426146030426,
-0.2928216755390167,
-0.105287566781044,
-0.15624459087848663,
-0.14473626017570496,
-0.15887044370174408,
0.09107765555381775,
0.12527509033679962,
0.07374362647533417,
0.10210824012756348,
-0.06542305648326874,
0.10059263557195663,
0.12420278787612915,
0.025987671688199043,
0.4303334057331085,
-0.2099972665309906,
0.352007120847702,
0.2423619031906128,
-0.50841224193573,
0.6294355392456055,
-0.27647921442985535,
-0.33679327368736267,
-0.20209184288978577,
-0.0018831947818398476,
0.522984504699707,
0.09896384179592133,
0.37659379839897156,
0.07718031108379364,
-0.07112355530261993,
-0.12964268028736115,
-0.309715211391449,
0.233236163854599,
0.13512541353702545,
-0.09116249531507492,
-0.12057345360517502,
-0.44872409105300903,
0.6946139931678772,
-0.10617689788341522,
0.015946805477142334,
0.07893026620149612,
0.1630147397518158,
-0.19947168231010437,
0.13256900012493134,
-0.1868535876274109,
0.747362494468689,
-0.3751451373100281,
0.3902582824230194,
0.13024550676345825,
0.0035091526806354523,
0.7170400619506836,
-0.0950673520565033,
-0.24417047202587128,
-0.3508581817150116,
0.10995430499315262,
-0.14574865996837616,
-0.1118384599685669,
0.15438570082187653,
0.6320891976356506,
-0.20974881947040558,
0.3886803090572357,
0.10370738804340363,
-0.0029978901147842407,
0.1480758935213089,
0.5094799995422363,
0.15458418428897858,
-0.5113891959190369,
-0.6902393698692322,
0.05672209709882736,
-0.29976409673690796,
0.25711768865585327,
-0.11797450482845306,
-0.09644100815057755,
-0.017441444098949432,
-0.20259989798069,
-0.015773490071296692,
0.05931001156568527,
-0.2245120257139206,
-0.3230774998664856,
0.22935330867767334,
-0.2782454490661621,
0.1624458134174347,
0.5821111798286438,
0.12423902750015259,
-0.025937046855688095,
-0.09180319309234619,
-0.05314553156495094,
-0.17755022644996643,
-0.09155405312776566,
-0.19871219992637634,
0.23407623171806335,
0.20427167415618896,
-0.042668748646974564,
-0.0167221799492836,
-0.019192874431610107,
0.19432257115840912,
-0.1067335456609726,
-0.279477059841156,
0.21976196765899658,
0.12900632619857788,
-0.3557668924331665,
-0.628594696521759,
-0.021686241030693054,
0.1941070705652237,
0.09406526386737823,
-0.011000746861100197,
0.2376994788646698,
-0.06376056373119354,
-0.11854494363069534,
0.4086725115776062,
-0.043562643229961395,
0.10402749478816986,
0.39028510451316833,
-0.34020206332206726,
-0.3956828713417053,
0.47089532017707825,
0.2909398376941681,
0.22216425836086273,
0.002817433327436447,
0.21712234616279602,
0.21110224723815918,
-0.21193799376487732,
-0.14505407214164734,
0.5018595457077026,
0.07193513214588165,
0.01721225306391716,
0.16966022551059723,
0.14556023478507996,
-0.14448225498199463,
0.16084542870521545,
-0.26074111461639404,
-0.36152589321136475,
0.12321978807449341,
0.023434534668922424,
0.022999847307801247,
0.4183303117752075,
0.03865518793463707,
0.24114331603050232,
0.22139672935009003,
-0.1426660567522049,
0.19204162061214447,
-0.18994908034801483,
0.07882033288478851,
0.555752158164978,
-0.053767457604408264,
0.010327688418328762,
0.12894365191459656,
-0.023226285353302956,
0.05559391528367996,
-0.02898203209042549,
-0.08954313397407532,
-0.2642664313316345,
0.21327170729637146,
0.18990829586982727,
-0.1070600226521492,
-0.14782392978668213,
-0.18727420270442963,
-0.034132059663534164,
-0.1136227399110794,
-0.012284650467336178,
0.11210481077432632,
0.13203921914100647,
0.31770583987236023,
0.06299726665019989,
0.21327754855155945,
-0.0523701086640358,
0.06454268097877502,
0.04923326522111893,
0.22956758737564087,
0.13814404606819153,
-0.04919813573360443,
-0.06079147756099701,
0.0187433660030365,
-0.30086272954940796,
0.22917959094047546,
0.6159536838531494,
0.04216758906841278,
0.05429784581065178,
-0.04866247624158859,
0.10308870673179626,
-0.1313530057668686,
0.09905324131250381,
0.16448725759983063,
-0.11996369063854218,
0.1464223861694336,
0.30288198590278625,
0.018176749348640442,
-0.10554277896881104,
0.029366401955485344,
0.5654891729354858,
-0.08959893137216568,
-0.08291404694318771,
0.2293395847082138,
-0.16960982978343964,
0.30178380012512207,
-0.17734037339687347,
-0.20497766137123108,
0.38125184178352356,
0.2803020477294922,
-0.055213842540979385,
-0.11865745484828949,
-0.15816086530685425,
-0.24888254702091217,
0.14530432224273682,
0.35153982043266296,
0.14398537576198578,
-0.08572189509868622,
-0.20175322890281677,
0.21222054958343506,
-0.33048757910728455,
0.1439913958311081,
0.39511194825172424,
-0.44312211871147156,
-0.1952233761548996,
0.3206196427345276,
0.333793580532074,
0.453118234872818,
-0.3040761947631836,
0.9252215623855591,
-0.22914491593837738,
-0.09722096472978592,
-0.14219854772090912,
0.11823421716690063,
0.1555023491382599,
-0.1779164969921112,
-0.21839366853237152,
0.05113694816827774,
-0.06418908387422562,
-0.08021634817123413,
-0.16750305891036987,
-0.49030739068984985,
-0.2019682228565216,
-0.13635171949863434,
0.12418867647647858,
-0.11704869568347931,
-0.2363886535167694,
0.24890494346618652,
-0.18510004878044128,
-0.07985956221818924,
0.21283991634845734,
-0.03386297821998596,
0.257538378238678,
0.5040979385375977,
0.08443578332662582,
-0.047629181295633316,
0.19654424488544464,
0.011971933767199516,
0.17206452786922455,
-0.03355511277914047,
0.0778157040476799,
0.05947218835353851,
0.06235426291823387,
-0.062002167105674744,
0.11888699233531952,
0.13646455109119415,
0.04334269464015961,
-0.004625573754310608,
-0.06813980638980865,
0.15303587913513184,
-0.002529773861169815,
-0.44995424151420593,
0.21424543857574463,
-0.20778143405914307,
-0.08220210671424866,
-0.48685339093208313,
0.26831525564193726,
-0.5577455163002014,
-0.1333111822605133,
0.04422283172607422,
0.2668984532356262,
0.09385690093040466,
-0.2231745719909668,
0.012700080871582031,
-0.22354444861412048,
0.5138812065124512,
0.19056805968284607,
0.10778644680976868,
0.032413236796855927,
-0.2708285450935364,
-0.549353301525116,
0.12317116558551788,
0.09535956382751465,
-0.32978901267051697,
0.023941313847899437,
-0.009384529665112495,
-0.09095712751150131,
0.17946745455265045,
-0.21855761110782623,
-0.066804438829422,
-0.20225773751735687,
-0.02624981850385666,
-0.194245845079422,
-0.3171679973602295,
-0.19571225345134735,
0.35537269711494446,
0.05703529715538025,
0.08779186755418777,
-0.15571309626102448,
0.15835992991924286,
-0.22109609842300415,
-0.1377214938402176,
0.13679084181785583,
-0.00436796061694622,
-0.08020590245723724,
-0.021577276289463043,
-0.21142441034317017,
0.43623945116996765,
0.14454922080039978,
0.11899148672819138,
0.008804012089967728,
-0.0007140780799090862,
-0.23263397812843323,
0.09279495477676392,
-0.09735387563705444,
0.2749660909175873,
-0.2632640302181244,
0.06230656057596207,
-0.17645807564258575,
0.06021980196237564,
-0.09631550312042236,
-0.12512819468975067,
-0.0828750878572464,
-0.06680428981781006,
-0.17805223166942596,
-0.006145307328552008,
0.23773853480815887,
0.5563534498214722,
-0.10588732361793518,
0.230535626411438,
0.03344243764877319,
0.15369732677936554,
0.4228225350379944,
-0.4647774398326874,
-0.06686310470104218,
0.21595869958400726,
0.22182290256023407,
-0.009812459349632263,
-0.32322555780410767,
-0.4180399775505066,
0.2003142237663269,
0.34680286049842834,
0.04228591173887253,
0.1356089562177658,
0.4116925597190857,
-0.36179858446121216,
-0.05513061583042145,
-0.07707571983337402,
0.08785287290811539,
0.26766228675842285,
0.1341019570827484,
0.08728824555873871,
-0.10152048617601395
] |
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.1764671802520752,
-0.14044591784477234,
0.08491955697536469,
-0.018280789256095886,
-0.07171449810266495,
0.07580334693193436,
0.34370753169059753,
-0.03493029996752739,
0.19549065828323364,
-0.08000186085700989,
-0.20744489133358002,
0.28856784105300903,
-0.05533919483423233,
0.31747880578041077,
0.6837015748023987,
-0.008231006562709808,
-0.11098351329565048,
0.2270631194114685,
-0.11070103943347931,
-0.07272487878799438,
-0.1884523630142212,
0.24829883873462677,
-0.1515672653913498,
0.14278843998908997,
-0.09049788862466812,
0.032735176384449005,
-0.13684327900409698,
0.5879559516906738,
-0.03475774824619293,
-0.46278393268585205,
0.38017523288726807,
0.18507637083530426,
0.27056801319122314,
0.2915581464767456,
-0.00011991956853307784,
-0.3151118755340576,
0.2196163535118103,
-0.22838924825191498,
-0.19920749962329865,
-0.38862985372543335,
0.2290252447128296,
-0.4995836019515991,
0.3296046853065491,
-0.2545451521873474,
0.02291020005941391,
0.04803045094013214,
0.3462795913219452,
-0.04693476855754852,
0.4474571943283081,
0.1120048388838768,
0.06824862211942673,
0.23576870560646057,
-0.20868989825248718,
0.016588624566793442,
-0.12611106038093567,
0.20234903693199158,
0.03649159520864487,
0.09822286665439606,
0.47450748085975647,
-0.376758873462677,
-0.020459569990634918,
-0.22928884625434875,
0.11504465341567993,
-0.22555144131183624,
0.5860812067985535,
0.16504766047000885,
-0.299373060464859,
-0.17189522087574005,
-0.1495639681816101,
0.26306113600730896,
0.42059049010276794,
-0.38515979051589966,
-0.15772083401679993,
-0.35617589950561523,
0.160245880484581,
-0.09329017251729965,
0.2420266568660736,
0.21689154207706451,
-0.1988193690776825,
-0.0408761166036129,
-0.300901859998703,
-0.08359075337648392,
-0.30489271879196167,
0.2369070053100586,
0.43490520119667053,
0.07357782870531082,
-0.07486923038959503,
0.1235283613204956,
0.2585082948207855,
-0.25150054693222046,
-0.16754016280174255,
0.12066511809825897,
0.09021706879138947,
0.6502208113670349,
-0.2848992943763733,
-0.3007369339466095,
-0.18031558394432068,
0.15863372385501862,
0.3465587794780731,
0.08710505068302155,
0.23400841653347015,
-0.03795219957828522,
-0.2315879613161087,
0.06325283646583557,
0.41352325677871704,
0.07228779792785645,
0.5410385727882385,
-0.20672930777072906,
-0.1094600260257721,
-0.07465663552284241,
-0.00713217630982399,
-0.03877555578947067,
-0.34368398785591125,
0.06668777763843536,
-0.21019592881202698,
-0.20719468593597412,
-0.003997752442955971,
-0.2105836272239685,
0.0884234681725502,
-0.30162906646728516,
0.3965153992176056,
-0.20215685665607452,
0.03371730074286461,
0.2337687909603119,
-0.026279255747795105,
-0.19907864928245544,
-0.006627973169088364,
0.1639598309993744,
-0.024070240557193756,
-0.28336000442504883,
0.027740348130464554,
0.029036041349172592,
-0.14417049288749695,
0.12921909987926483,
0.30831602215766907,
-0.11916358768939972,
0.42920106649398804,
-0.1462310552597046,
0.11517933011054993,
0.034417301416397095,
-0.18534128367900848,
0.20043617486953735,
-0.2792138457298279,
-0.21166028082370758,
0.29904431104660034,
-0.15028877556324005,
0.12452399730682373,
-0.31653088331222534,
-0.178005188703537,
0.056684475392103195,
-0.11736174672842026,
-0.022280745208263397,
-0.33550411462783813,
-0.0008659129962325096,
-0.15766386687755585,
-0.5109566450119019,
-0.21104031801223755,
0.4058324992656708,
-0.2044934630393982,
-0.25495824217796326,
-0.09434830397367477,
0.14545363187789917,
-0.2338825911283493,
-0.09564412385225296,
0.0803917944431305,
0.23958861827850342,
-0.5089071989059448,
-0.31443971395492554,
0.1347634494304657,
-0.05573003366589546,
-0.09099160879850388,
0.12362606823444366,
-0.22575335204601288,
0.01135418564081192,
-0.1373371183872223,
0.264873206615448,
0.6306742429733276,
-0.3635215163230896,
-0.17081311345100403,
0.16602547466754913,
-0.28472959995269775,
-0.012698824517428875,
-0.07833186537027359,
0.2403736561536789,
0.2574867010116577,
-0.043333061039447784,
-0.007262237370014191,
0.7859998941421509,
0.020399954169988632,
-0.030374517664313316,
0.019957412034273148,
-0.04552479460835457,
0.18738281726837158,
0.13665330410003662,
-0.34325307607650757,
0.2071153074502945,
0.16151857376098633,
0.11164894700050354,
0.19579973816871643,
0.01616896316409111,
-0.16043338179588318,
-0.038694292306900024,
-0.07260613143444061,
0.37852078676223755,
0.016535267233848572,
0.03755871206521988,
-0.692494809627533,
0.2066669762134552,
-0.41881081461906433,
-0.014901190996170044,
0.3599672317504883,
-0.052797891199588776,
-0.5092005729675293,
-0.11824870854616165,
-0.00012610852718353271,
0.17533637583255768,
-0.035024069249629974,
0.08832722157239914,
0.14143292605876923,
-0.1319972276687622,
-0.46861502528190613,
0.4200882017612457,
-0.26564672589302063,
0.21593879163265228,
-0.38399064540863037,
0.09863745421171188,
0.2503141164779663,
-0.18720246851444244,
0.18510685861110687,
0.3410761058330536,
0.1777302473783493,
-0.1337013691663742,
0.10101041197776794,
0.36268800497055054,
-0.19582341611385345,
0.2949702739715576,
0.41557255387306213,
-0.08861084282398224,
-0.052945658564567566,
0.0855376273393631,
0.25794997811317444,
-0.11008451879024506,
0.04297032579779625,
-0.27111178636550903,
-0.3920048177242279,
0.2096697986125946,
-0.11772997677326202,
0.18334175646305084,
0.03824351727962494,
-0.135916605591774,
0.06670353561639786,
-0.1294795125722885,
-0.3018999397754669,
0.059398800134658813,
0.09138262271881104,
0.13989605009555817,
0.5469383001327515,
-0.0844845324754715,
-0.1183324009180069,
-0.04949728399515152,
0.5501149296760559,
-0.11400085687637329,
0.07796037942171097,
0.25121554732322693,
-0.10554663091897964,
-0.14686471223831177,
0.1260046809911728,
-0.19088783860206604,
0.25965791940689087,
0.22837549448013306,
-0.22714689373970032,
0.07373643666505814,
-0.20616725087165833,
0.04595287889242172,
-0.08462274819612503,
-0.1173194944858551,
-0.0527101568877697,
-0.2695627212524414,
0.17402461171150208,
-0.188240185379982,
-0.4044701159000397,
0.0869707465171814,
-0.14704319834709167,
-0.06930946558713913,
-0.20848222076892853,
0.01532982848584652,
0.002215074375271797,
-0.3238932192325592,
-0.22590363025665283,
-0.26588577032089233,
-0.49109524488449097,
0.05261997878551483,
-0.34980636835098267,
-0.1062772125005722,
0.5295966267585754,
-0.052072301506996155,
0.15739178657531738,
0.6836386919021606,
-0.14989933371543884,
-0.06607119739055634,
0.0718422532081604,
-0.02698182314634323,
-0.2955062687397003,
-0.05981963500380516,
0.14935271441936493,
0.28598904609680176,
0.40510135889053345,
-0.0493488572537899,
0.19536595046520233,
0.1278507113456726,
-0.23629266023635864,
0.0749819353222847,
-0.1610621064901352,
0.15668782591819763,
0.1923016905784607,
0.18003226816654205,
-0.09953868389129639,
-0.07370789349079132,
0.047081299126148224,
-0.19552229344844818,
-0.14397279918193817,
-0.1943655014038086,
0.013750514015555382,
0.05185891315340996,
-0.11143645644187927,
-0.16014045476913452,
-0.46443721652030945,
-0.209098681807518,
0.5759683847427368,
0.44888800382614136,
0.132364422082901,
0.18349546194076538,
-0.23225107789039612,
0.47054293751716614,
-0.2687545120716095,
-0.09736146777868271,
-0.13508842885494232,
-0.4322136342525482,
0.1380237489938736,
-0.23099975287914276,
-0.26514020562171936,
0.2041744589805603,
0.08503168076276779,
0.07297767698764801,
-0.36943668127059937,
-0.18066492676734924,
-0.2982809245586395,
0.23050275444984436,
-0.06450812518596649,
0.014479054138064384,
0.08362588286399841,
0.22016264498233795,
-0.30170154571533203,
0.16907848417758942,
-0.11467228084802628,
-0.4005320370197296,
0.19274629652500153,
0.4177708029747009,
0.21123464405536652,
0.30160802602767944,
0.19858580827713013,
-0.12167952954769135,
0.49306005239486694,
0.0962473452091217,
-0.16695381700992584,
0.3587191104888916,
-0.051083944737911224,
0.2181680053472519,
0.038996435701847076,
-0.4225405156612396,
0.06702125072479248,
0.2781132459640503,
0.26943129301071167,
0.40799635648727417,
0.190921813249588,
0.06481397897005081,
-0.3097715973854065,
-0.037684548646211624,
-0.037449635565280914,
0.14918000996112823,
-0.09806520491838455,
0.25440531969070435,
-0.12425141781568527,
0.07800360023975372,
-0.11707581579685211,
-0.5316736698150635,
-0.3109460175037384,
-0.19868473708629608,
0.2032080739736557,
0.22602564096450806,
0.2644040584564209,
-0.7062587141990662,
0.08572171628475189,
-0.5139960646629333,
0.219841867685318,
-0.014595008455216885,
0.11830564588308334,
-0.03375706076622009,
0.0045156218111515045,
0.16518424451351166,
0.15201333165168762,
0.5225437879562378,
0.1951165646314621,
-0.19387011229991913,
-0.03984466940164566,
0.10119374096393585,
-0.5167874097824097,
0.29032832384109497,
0.057481732219457626,
0.26784297823905945,
0.34125933051109314,
0.4525686800479889,
-0.17916055023670197,
-0.19648979604244232,
0.2660776972770691,
-0.012856307439506054,
-0.3577563762664795,
-0.43036356568336487,
-0.3104017674922943,
-0.10453449189662933,
-0.11242040991783142,
-0.16670092940330505,
-0.19237205386161804,
0.13978759944438934,
0.154927060008049,
-0.01690315082669258,
0.154611274600029,
-0.06443783640861511,
0.09797397255897522,
0.17278167605400085,
-0.029972199350595474,
0.5414875745773315,
-0.20673130452632904,
0.31151047348976135,
0.203203946352005,
-0.4954356551170349,
0.5356369018554688,
-0.33476540446281433,
-0.340383917093277,
-0.18914780020713806,
-0.06642722338438034,
0.6380000710487366,
0.18678691983222961,
0.4127134382724762,
0.0716610699892044,
-0.17011049389839172,
-0.13244973123073578,
-0.2060513198375702,
0.15229755640029907,
0.18082717061042786,
-0.08185604214668274,
-0.062070082873106,
-0.3783702850341797,
0.6578394174575806,
-0.14843812584877014,
0.015241198241710663,
0.1428593397140503,
0.13147896528244019,
-0.20739854872226715,
0.16788767278194427,
-0.17566311359405518,
0.9181855320930481,
-0.40137380361557007,
0.3045077323913574,
0.06582646071910858,
-0.0023996494710445404,
0.6905843615531921,
-0.12637639045715332,
-0.15758046507835388,
-0.4469194710254669,
0.031815964728593826,
-0.12453551590442657,
-0.11170761287212372,
0.1562148630619049,
0.6060440540313721,
-0.29041627049446106,
0.33302587270736694,
0.10226298868656158,
-0.1566513478755951,
0.08574549108743668,
0.5474112033843994,
0.19547973573207855,
-0.552177369594574,
-0.6150875091552734,
0.05078216642141342,
-0.27130943536758423,
0.21744157373905182,
-0.12250310182571411,
-0.14447084069252014,
0.01769985631108284,
-0.15260079503059387,
0.020932823419570923,
0.15391254425048828,
-0.14134076237678528,
-0.3787107467651367,
0.3384370803833008,
-0.1711132526397705,
0.12888464331626892,
0.5490390658378601,
0.17901644110679626,
0.021110225468873978,
-0.014078190550208092,
-0.027871843427419662,
-0.13635674118995667,
-0.09822338819503784,
-0.20088456571102142,
0.3473670482635498,
0.2184484750032425,
-0.10026337951421738,
-0.08787514269351959,
0.028442788869142532,
0.16983303427696228,
-0.20469039678573608,
-0.2876240015029907,
0.21397177875041962,
0.17740851640701294,
-0.31183597445487976,
-0.5614947080612183,
0.06107458472251892,
0.1731773167848587,
0.11749590933322906,
-0.0024519823491573334,
0.27496689558029175,
-0.02686571702361107,
-0.06745146960020065,
0.44898101687431335,
0.032736025750637054,
0.12775248289108276,
0.36428725719451904,
-0.3437955379486084,
-0.4746577739715576,
0.3770824670791626,
0.3455300033092499,
0.18677161633968353,
0.02834666520357132,
0.10174184292554855,
0.12650920450687408,
-0.12534140050411224,
-0.15239839255809784,
0.46365371346473694,
-0.003567814826965332,
-0.0824795812368393,
0.2397332340478897,
0.09790146350860596,
-0.1180921271443367,
0.09511162340641022,
-0.1770331710577011,
-0.4044646918773651,
0.07996078580617905,
0.03426121175289154,
-0.003044329583644867,
0.44009777903556824,
0.029263531789183617,
0.23412084579467773,
0.2732703387737274,
-0.1530267298221588,
0.08129566162824631,
-0.20514528453350067,
0.10957752168178558,
0.642236590385437,
-0.11817482858896255,
0.01584128476679325,
0.12959153950214386,
-0.0390511229634285,
0.0026291273534297943,
-0.07991795986890793,
-0.05906427651643753,
-0.22870634496212006,
0.20006661117076874,
0.22071686387062073,
-0.06376896053552628,
-0.19220486283302307,
-0.22227078676223755,
-0.10119026899337769,
-0.17059607803821564,
-0.020117398351430893,
0.1290995180606842,
0.039328448474407196,
0.3361456096172333,
0.14205749332904816,
0.16373825073242188,
0.05622582882642746,
0.0069025736302137375,
0.14094430208206177,
0.2213813066482544,
0.08761639893054962,
-0.014738820493221283,
-0.12369806319475174,
0.038800306618213654,
-0.20339639484882355,
0.23366913199424744,
0.5907530188560486,
0.12117507308721542,
0.10969172418117523,
-0.06944307684898376,
0.056830454617738724,
-0.12753640115261078,
0.011658972129225731,
0.09617418795824051,
-0.18265672028064728,
0.19297683238983154,
0.2257421612739563,
0.009845213033258915,
-0.13600611686706543,
-0.031072774901986122,
0.6075594425201416,
-0.00047369301319122314,
-0.10093468427658081,
0.2780643105506897,
-0.16592705249786377,
0.20912429690361023,
-0.04506920278072357,
-0.17108985781669617,
0.4275473356246948,
0.1424683928489685,
-0.1523723006248474,
-0.18491436541080475,
-0.2427365779876709,
-0.2652878165245056,
0.2519280016422272,
0.3314613401889801,
0.13315755128860474,
-0.02820761501789093,
-0.21606063842773438,
0.15812882781028748,
-0.2844085395336151,
0.07290581613779068,
0.35563090443611145,
-0.3562239110469818,
-0.14224426448345184,
0.35301536321640015,
0.3848424255847931,
0.4920436441898346,
-0.18131297826766968,
0.9246281385421753,
-0.16086271405220032,
-0.17582888901233673,
-0.1373133659362793,
0.14745506644248962,
0.10820682346820831,
-0.11519642174243927,
-0.2877686619758606,
0.030165009200572968,
-0.07291347533464432,
-0.12022282183170319,
-0.15345391631126404,
-0.4575321078300476,
-0.1800718903541565,
-0.1211274266242981,
0.15828633308410645,
-0.019068384543061256,
-0.2579400837421417,
0.22069957852363586,
-0.08391032367944717,
-0.05150318145751953,
0.2033432573080063,
-0.15974082052707672,
0.30063557624816895,
0.4441351294517517,
0.13426505029201508,
-0.06689327955245972,
0.3013828694820404,
0.13330401480197906,
0.2255011349916458,
-0.0017811339348554611,
0.03670341521501541,
0.14650371670722961,
0.08348053693771362,
-0.035627856850624084,
0.13136860728263855,
0.08633850514888763,
0.013292713090777397,
-0.013952582143247128,
-0.08098073303699493,
0.16866476833820343,
0.02393324486911297,
-0.3790721595287323,
0.20585501194000244,
-0.14662609994411469,
-0.15224558115005493,
-0.5125373601913452,
0.25951337814331055,
-0.5331436395645142,
-0.19097216427326202,
0.05407003313302994,
0.28617236018180847,
0.0584588348865509,
-0.32612332701683044,
0.014925193041563034,
-0.23371779918670654,
0.4653109312057495,
0.22234995663166046,
0.017187893390655518,
0.09722606837749481,
-0.27382221817970276,
-0.47090402245521545,
0.19583162665367126,
0.14038051664829254,
-0.28559988737106323,
0.006215742789208889,
0.06370585411787033,
-0.08303498476743698,
0.12769664824008942,
-0.018934816122055054,
-0.11041505634784698,
-0.15458431839942932,
-0.12863071262836456,
-0.26020148396492004,
-0.22901298105716705,
-0.11742565035820007,
0.2523978054523468,
0.08273248374462128,
0.14469915628433228,
-0.11544358730316162,
0.14315743744373322,
-0.2001926600933075,
-0.1366024911403656,
0.12379845976829529,
-0.01767769828438759,
-0.02452528476715088,
0.10671918094158173,
-0.27341094613075256,
0.4452269971370697,
0.13415995240211487,
0.043843865394592285,
0.09751871228218079,
-0.03145113214850426,
-0.2656060755252838,
0.05960432067513466,
-0.12176477909088135,
0.2434994876384735,
-0.19830851256847382,
0.08611053228378296,
-0.1347762495279312,
0.0999794602394104,
-0.14677175879478455,
-0.1571560800075531,
-0.10599803179502487,
-0.0811954140663147,
-0.16914638876914978,
0.0005238892626948655,
0.17260870337486267,
0.41379210352897644,
-0.07056857645511627,
0.1774502694606781,
-0.0448199063539505,
0.1875448077917099,
0.4689185917377472,
-0.4195556044578552,
-0.12464143335819244,
0.15516583621501923,
0.1519245058298111,
-0.06559228152036667,
-0.31301629543304443,
-0.4497193694114685,
0.1387549340724945,
0.22846554219722748,
0.05157417058944702,
0.09158380329608917,
0.41123470664024353,
-0.5065763592720032,
-0.0404481440782547,
-0.10211485624313354,
-0.03951415419578552,
0.3436339199542999,
0.09743139147758484,
-0.006092429161071777,
-0.07712428271770477
] |
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.2800407111644745,
-0.2268892377614975,
0.12016209959983826,
0.11589747667312622,
-0.06247664988040924,
-0.011173591017723083,
0.29930922389030457,
-0.036204706877470016,
0.08475787937641144,
-0.0956161767244339,
-0.2538754642009735,
0.31674498319625854,
-0.07992316782474518,
0.3306139409542084,
0.589180052280426,
0.1280137300491333,
0.0025305747985839844,
0.2043103724718094,
-0.001219525933265686,
-0.05879789590835571,
-0.2672673463821411,
0.37348511815071106,
-0.1716810166835785,
0.11104514449834824,
-0.04108720272779465,
0.19172492623329163,
-0.1079314649105072,
0.5931822061538696,
-0.06794600188732147,
-0.6077475547790527,
0.48773670196533203,
0.19383302330970764,
0.37086793780326843,
0.40906527638435364,
-0.00012339437671471387,
-0.31331926584243774,
0.26949453353881836,
-0.2316977083683014,
-0.3273880183696747,
-0.3374848961830139,
0.12491432577371597,
-0.4609065651893616,
0.3682495653629303,
-0.23264995217323303,
-0.06764715909957886,
0.12876631319522858,
0.23500275611877441,
-0.08527927100658417,
0.47627347707748413,
0.08236981183290482,
0.015970807522535324,
0.27657580375671387,
-0.3785417079925537,
0.05095304921269417,
0.02509884163737297,
0.25650060176849365,
0.00958305411040783,
0.08974480628967285,
0.43417850136756897,
-0.3698427081108093,
0.09351921081542969,
-0.03850632905960083,
0.04293438047170639,
-0.13255828619003296,
0.6434709429740906,
0.19184136390686035,
-0.3280698359012604,
-0.1321468949317932,
-0.23903793096542358,
0.239761620759964,
0.3419501483440399,
-0.42342451214790344,
-0.32563984394073486,
-0.4911603629589081,
0.13157504796981812,
-0.15634949505329132,
0.24537396430969238,
0.0697215348482132,
-0.1712661236524582,
-0.06486472487449646,
-0.3384972810745239,
-0.13900890946388245,
-0.31181150674819946,
0.2429277002811432,
0.2955794036388397,
0.22809496521949768,
-0.22060556709766388,
0.15832485258579254,
0.23519082367420197,
-0.2058349847793579,
-0.08868850022554398,
0.10071570426225662,
0.10647813975811005,
0.5646870732307434,
-0.3737163543701172,
-0.2899186611175537,
-0.11654645949602127,
0.10073964297771454,
0.2578740119934082,
0.13445225358009338,
0.1770179122686386,
-0.03596580773591995,
-0.1233954057097435,
0.09136693179607391,
0.39031392335891724,
-0.0014646593481302261,
0.5357537865638733,
-0.15987662971019745,
-0.0851840078830719,
0.025178618729114532,
0.05509466305375099,
-0.08502715826034546,
-0.4656984210014343,
-0.013429943472146988,
-0.27899155020713806,
-0.20539158582687378,
0.16227605938911438,
-0.20371660590171814,
0.08752670884132385,
-0.2311062067747116,
0.34274226427078247,
-0.10163457691669464,
0.1443828046321869,
0.22770991921424866,
-0.03532761335372925,
-0.1291598081588745,
-0.02052249014377594,
0.16015425324440002,
-0.07326401025056839,
-0.19874456524848938,
0.05908334627747536,
-0.049143578857183456,
-0.18319560587406158,
0.0938049852848053,
0.33273249864578247,
-0.09044808149337769,
0.4279945194721222,
-0.14873331785202026,
0.1311015784740448,
-0.010218996554613113,
-0.12468644231557846,
0.24250058829784393,
-0.1801874041557312,
-0.12581481039524078,
0.28807634115219116,
-0.01899818703532219,
0.11539903283119202,
-0.31178802251815796,
-0.22955814003944397,
-0.05229334533214569,
-0.15299218893051147,
-0.06167030707001686,
-0.37804779410362244,
-0.026893075555562973,
-0.32803356647491455,
-0.49071529507637024,
-0.26765161752700806,
0.27436769008636475,
-0.1532914936542511,
-0.23388685286045074,
-0.030335359275341034,
0.15200723707675934,
-0.2674460709095001,
-0.10861185193061829,
0.1839233636856079,
0.2969827651977539,
-0.4266982674598694,
-0.30216214060783386,
0.042035263031721115,
-0.012394439429044724,
-0.1056092157959938,
0.13872091472148895,
-0.2472096085548401,
-0.05426298826932907,
-0.15707936882972717,
0.2555837631225586,
0.5747662782669067,
-0.48370903730392456,
-0.13884003460407257,
0.22923290729522705,
-0.2719874083995819,
0.013199212029576302,
0.06393888592720032,
0.24635174870491028,
0.17478743195533752,
0.010458194650709629,
-0.06256788969039917,
0.7491370439529419,
0.034771628677845,
-0.06528693437576294,
0.07933835685253143,
-0.020167533308267593,
0.15665099024772644,
0.13463129103183746,
-0.3383795917034149,
0.15313343703746796,
0.09221857041120529,
0.19802610576152802,
0.17431753873825073,
-0.09805245697498322,
-0.07396694272756577,
0.0341930165886879,
0.11237719655036926,
0.41715043783187866,
0.0026157177053391933,
0.037387534976005554,
-0.6957996487617493,
0.2870241701602936,
-0.2856895327568054,
-0.0026065371930599213,
0.29080870747566223,
-0.08496439456939697,
-0.4383997619152069,
-0.11230476200580597,
-0.10521045327186584,
0.1792890578508377,
-0.08189108967781067,
0.169684499502182,
0.2380026876926422,
-0.19645339250564575,
-0.4215334951877594,
0.3596048355102539,
-0.12289314717054367,
0.2609521746635437,
-0.4864850640296936,
0.04442743957042694,
0.24456332623958588,
-0.17973953485488892,
0.11385777592658997,
0.34585896134376526,
0.21493098139762878,
-0.15126444399356842,
0.19701123237609863,
0.3514067530632019,
-0.10655301064252853,
0.32535868883132935,
0.3652244210243225,
0.014991998672485352,
-0.05110126733779907,
0.12663887441158295,
0.24545808136463165,
-0.12205307185649872,
0.07218319177627563,
-0.13804374635219574,
-0.34223905205726624,
0.3357028067111969,
-0.16492199897766113,
0.24531561136245728,
-0.0025176741182804108,
-0.1462327539920807,
0.05325070768594742,
-0.08916868269443512,
-0.4279448986053467,
-0.002703368663787842,
0.03522105515003204,
0.11982826888561249,
0.39819249510765076,
-0.013511931523680687,
-0.07691311091184616,
-0.09738745540380478,
0.610342800617218,
-0.10325422883033752,
0.03767786920070648,
0.23136547207832336,
-0.10375197976827621,
-0.19619563221931458,
0.1441420465707779,
-0.0011315643787384033,
0.3079434335231781,
0.1700054407119751,
-0.18863944709300995,
0.046492137014865875,
-0.08740389347076416,
0.07124318182468414,
-0.033430807292461395,
0.00017173588275909424,
0.01662016287446022,
-0.28346654772758484,
0.2029099464416504,
-0.1489424705505371,
-0.31708598136901855,
0.05813762918114662,
-0.0794907659292221,
-0.10553528368473053,
-0.2577173411846161,
0.13300906121730804,
0.0025693047791719437,
-0.3521050810813904,
-0.22811418771743774,
-0.30586880445480347,
-0.4979851245880127,
0.08253170549869537,
-0.39207202196121216,
-0.08140084147453308,
0.583775520324707,
-0.06717485189437866,
0.13211755454540253,
0.5852787494659424,
-0.1560715138912201,
-0.19869230687618256,
0.0728474110364914,
-0.01841782033443451,
-0.2793129086494446,
-0.12371231615543365,
0.059583358466625214,
0.1815282553434372,
0.33962634205818176,
-0.0761956200003624,
0.1956445425748825,
0.08061077445745468,
-0.28365328907966614,
0.07866829633712769,
-0.19906456768512726,
0.18724802136421204,
0.35215064883232117,
0.11347323656082153,
-0.1329297572374344,
0.008325333707034588,
0.10633060336112976,
-0.15379375219345093,
-0.1182946041226387,
-0.07441558688879013,
0.0029160368721932173,
0.07503294944763184,
-0.12075896561145782,
-0.08567433804273605,
-0.33399784564971924,
-0.14054952561855316,
0.5175917148590088,
0.324098140001297,
0.11710184067487717,
0.19432368874549866,
-0.21627317368984222,
0.4645291566848755,
-0.30837637186050415,
-0.008929697796702385,
-0.13561968505382538,
-0.5117288827896118,
0.03206918388605118,
-0.14159336686134338,
-0.13791276514530182,
0.17673853039741516,
0.11912909150123596,
0.1214165985584259,
-0.35180050134658813,
-0.19299066066741943,
-0.42881274223327637,
0.21981921792030334,
0.02151927724480629,
0.03498351573944092,
0.12493176013231277,
0.22291815280914307,
-0.22140152752399445,
0.1917726695537567,
-0.14153975248336792,
-0.4419383704662323,
0.07362157851457596,
0.4186239540576935,
0.23341330885887146,
0.26500165462493896,
0.2457137107849121,
-0.020860590040683746,
0.521427571773529,
0.15158694982528687,
-0.18956094980239868,
0.3977137506008148,
-0.04355664551258087,
0.2010839879512787,
0.1313117891550064,
-0.389254093170166,
0.060492049902677536,
0.2669023275375366,
0.2402646392583847,
0.3672434687614441,
0.17530399560928345,
0.14850100874900818,
-0.2690674066543579,
0.07156829535961151,
-0.1303423047065735,
0.17850463092327118,
-0.12906889617443085,
0.23227329552173615,
-0.04313613474369049,
0.04533526673913002,
-0.14909416437149048,
-0.44441407918930054,
-0.2447851002216339,
-0.18724305927753448,
0.2459132969379425,
0.2474554181098938,
0.30238619446754456,
-0.6653095483779907,
-0.08876000344753265,
-0.4830063581466675,
0.19676226377487183,
-0.09480922669172287,
0.14883288741111755,
0.07120029628276825,
0.0455651581287384,
0.16871382296085358,
0.05449388921260834,
0.647731602191925,
0.07249807566404343,
-0.1894102394580841,
-0.05386688932776451,
0.013294681906700134,
-0.6558188199996948,
0.2496965080499649,
0.06324447691440582,
0.26188671588897705,
0.3039631247520447,
0.5747791528701782,
-0.18605749309062958,
-0.290887713432312,
0.15416476130485535,
-0.03024916909635067,
-0.3178247809410095,
-0.3237404525279999,
-0.3765396773815155,
-0.14855748414993286,
-0.14103321731090546,
-0.21144333481788635,
-0.17808620631694794,
0.14674271643161774,
0.22639456391334534,
0.04759438708424568,
0.12169766426086426,
0.024902496486902237,
0.05782443657517433,
0.29436782002449036,
-0.05841118097305298,
0.5272746682167053,
-0.1376095563173294,
0.2554578185081482,
0.1654536873102188,
-0.37567102909088135,
0.6000043153762817,
-0.2558780312538147,
-0.4437698721885681,
-0.15654432773590088,
0.11671853065490723,
0.6394875645637512,
0.19682610034942627,
0.32343533635139465,
0.14901146292686462,
-0.09358859807252884,
-0.10954020917415619,
-0.33841854333877563,
0.13362209498882294,
0.24349534511566162,
-0.043151699006557465,
0.06639601290225983,
-0.38703128695487976,
0.5882585048675537,
-0.10434816777706146,
-0.03446807339787483,
-0.10320030152797699,
0.20371323823928833,
-0.222471222281456,
0.174263596534729,
-0.1180255189538002,
0.8925433158874512,
-0.4042234420776367,
0.39915597438812256,
0.19491064548492432,
-0.008340045809745789,
0.7712129950523376,
-0.07109113037586212,
-0.19524918496608734,
-0.44219309091567993,
0.22968095541000366,
-0.1013709232211113,
-0.10517436265945435,
0.1328970491886139,
0.4739495515823364,
-0.2339799702167511,
0.3612968623638153,
0.13415928184986115,
-0.19846835732460022,
0.06031287461519241,
0.5681429505348206,
0.20757080614566803,
-0.5780227184295654,
-0.6750754117965698,
0.019689500331878662,
-0.32625728845596313,
0.28488248586654663,
-0.10954876989126205,
-0.08889570832252502,
-0.04817792773246765,
-0.15421132743358612,
0.04464864730834961,
0.11386983841657639,
-0.04319220036268234,
-0.4616304636001587,
0.3202894628047943,
-0.30916282534599304,
0.1571863293647766,
0.5623399615287781,
0.20444244146347046,
0.04613237828016281,
-0.003100557252764702,
-0.028661135584115982,
-0.09351209551095963,
-0.10510624200105667,
-0.19757884740829468,
0.19080068171024323,
0.08552530407905579,
-0.09972935169935226,
-0.07414969056844711,
-0.06598163396120071,
0.2464987337589264,
-0.17732325196266174,
-0.13601428270339966,
0.21079017221927643,
0.12824952602386475,
-0.30422288179397583,
-0.5435218214988708,
-0.02278342843055725,
0.1489756852388382,
0.09474404156208038,
-0.02217889204621315,
0.258308470249176,
-0.1068246141076088,
-0.12021728605031967,
0.30548638105392456,
-0.03127370402216911,
0.1551932543516159,
0.41838693618774414,
-0.3858991265296936,
-0.3637021780014038,
0.33824780583381653,
0.38333210349082947,
0.20174290239810944,
0.015798475593328476,
0.09013601392507553,
0.09293586015701294,
-0.09880894422531128,
-0.12921088933944702,
0.49749085307121277,
-0.10880431532859802,
0.0067567951045930386,
0.10917177051305771,
0.1795961707830429,
-0.1827738881111145,
0.1114078015089035,
-0.19404497742652893,
-0.23641137778759003,
0.08535130321979523,
0.03327276185154915,
0.023359501734375954,
0.4362828731536865,
-0.1379798799753189,
0.15521930158138275,
0.0948854386806488,
-0.12141133099794388,
0.10921689867973328,
-0.2049255222082138,
0.18282672762870789,
0.4841088652610779,
-0.19276753067970276,
0.06055990606546402,
0.07248148322105408,
-0.061208248138427734,
-0.059207551181316376,
-0.06547828018665314,
-0.05389562249183655,
-0.25604504346847534,
0.22777637839317322,
0.2528780400753021,
-0.09923999756574631,
-0.11356674879789352,
-0.20438572764396667,
-0.14388525485992432,
-0.20038269460201263,
0.028884023427963257,
0.15655571222305298,
0.14493516087532043,
0.37540531158447266,
-0.0055712126195430756,
0.07534214109182358,
0.0791371688246727,
0.03010999597609043,
0.1033787876367569,
0.13224253058433533,
0.07794555276632309,
0.09889495372772217,
-0.07017569988965988,
0.021039240062236786,
-0.20545649528503418,
0.22629302740097046,
0.5412861704826355,
0.11874230951070786,
0.08732547610998154,
-0.16803281009197235,
0.017701998353004456,
-0.10149234533309937,
0.15154902637004852,
0.1994531899690628,
-0.17980168759822845,
0.0797242820262909,
0.1812308430671692,
-0.008395014330744743,
-0.05125707760453224,
-0.13403847813606262,
0.41741567850112915,
-0.021749913692474365,
-0.059721969068050385,
0.35592493414878845,
-0.17280924320220947,
0.29911375045776367,
-0.14055070281028748,
-0.1669454276561737,
0.435836523771286,
0.2823689579963684,
-0.12057973444461823,
-0.15963611006736755,
-0.19515272974967957,
-0.23293478786945343,
0.26519155502319336,
0.3151318430900574,
0.04826657846570015,
0.024041224271059036,
-0.2267838418483734,
0.12745565176010132,
-0.20086893439292908,
0.19386136531829834,
0.30031806230545044,
-0.3114255368709564,
-0.13483405113220215,
0.24872997403144836,
0.32202208042144775,
0.4606931209564209,
-0.2512056827545166,
0.8900495171546936,
-0.20825111865997314,
-0.13270032405853271,
-0.16701479256153107,
0.17012161016464233,
0.13144433498382568,
-0.27430009841918945,
-0.29924413561820984,
0.0876147523522377,
-0.026514779776334763,
-0.07217636704444885,
-0.16988450288772583,
-0.5302125811576843,
-0.20902526378631592,
-0.0866335928440094,
0.21202999353408813,
-0.09657780826091766,
-0.252530574798584,
0.23648422956466675,
-0.11750297993421555,
-0.10240717977285385,
0.22977779805660248,
-0.13540764153003693,
0.27585369348526,
0.3882065713405609,
0.09754153341054916,
0.050896186381578445,
0.2564312815666199,
0.03382714092731476,
0.2085307389497757,
0.0011935215443372726,
0.02483375184237957,
0.042441681027412415,
-0.0014727935194969177,
-0.09368681907653809,
0.22201301157474518,
0.04120898246765137,
-0.0067535387352108955,
0.01349425595253706,
-0.12611740827560425,
0.08290056139230728,
-0.032938580960035324,
-0.31178945302963257,
0.2223147749900818,
-0.20632588863372803,
-0.08749834448099136,
-0.4465421438217163,
0.4152694642543793,
-0.6194019913673401,
-0.13291828334331512,
0.2620140612125397,
0.3689606487751007,
0.1095532551407814,
-0.25745874643325806,
-0.004685520194470882,
-0.22741548717021942,
0.4847801923751831,
0.11430129408836365,
0.08273086696863174,
0.05587390065193176,
-0.18724969029426575,
-0.4674098789691925,
0.13308483362197876,
0.0694473460316658,
-0.3638955056667328,
0.04653074964880943,
0.15304802358150482,
-0.1559290885925293,
0.08245791494846344,
-0.10722474753856659,
-0.050137098878622055,
-0.1673269122838974,
0.02089567482471466,
-0.21432755887508392,
-0.19702264666557312,
-0.11900615692138672,
0.24081826210021973,
0.12044206261634827,
0.07520506531000137,
-0.1501963883638382,
0.09257201850414276,
-0.2727145552635193,
-0.13404153287410736,
0.1492193192243576,
0.06373761594295502,
0.0014250613749027252,
0.20920832455158234,
-0.25944823026657104,
0.4553113281726837,
0.09309329837560654,
-0.052320998162031174,
-0.037529002875089645,
-0.07080694288015366,
-0.30937036871910095,
0.10263663530349731,
-0.23823761940002441,
0.25468602776527405,
-0.2111205756664276,
0.18254193663597107,
-0.24702422320842743,
0.04960889369249344,
-0.05566057190299034,
-0.21573621034622192,
-0.009198566898703575,
-0.005039677023887634,
-0.21007519960403442,
0.09723860770463943,
0.1297478824853897,
0.4095245599746704,
-0.027215823531150818,
0.2013867348432541,
-0.14163392782211304,
0.07134260982275009,
0.4824340045452118,
-0.5757657885551453,
-0.09965437650680542,
0.18039897084236145,
0.23155471682548523,
-0.10074599832296371,
-0.41906407475471497,
-0.5331845283508301,
0.21772417426109314,
0.2580071985721588,
0.07074806094169617,
-0.004404781386256218,
0.3593481481075287,
-0.4332226812839508,
-0.063108429312706,
-0.1109694391489029,
-0.029266320168972015,
0.29621100425720215,
0.07803431153297424,
0.043572526425123215,
-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.011553861200809479,
0.09108477830886841,
-0.055644240230321884,
0.29022401571273804,
0.14863035082817078,
0.16529732942581177,
-0.06323684751987457,
0.3174016773700714,
-0.11661383509635925,
0.03942932188510895,
-0.15431523323059082,
0.008751400746405125,
0.026757927611470222,
0.08450104296207428,
0.13103631138801575,
-0.547264575958252,
-0.22359690070152283,
0.15271487832069397,
-0.13122041523456573,
-0.14125391840934753,
-0.0423431321978569,
0.4258196949958801,
-0.11378784477710724,
-0.17473609745502472,
-0.06000419333577156,
-0.13748587667942047,
-0.19747233390808105,
-0.05506984889507294,
-0.20634213089942932,
-0.5448321104049683,
0.44541695713996887,
0.004982016980648041,
0.18939141929149628,
0.34701159596443176,
-0.00010940981155727059,
-0.01785234361886978,
0.4102257490158081,
-0.1208096444606781,
-0.2488904446363449,
-0.39947420358657837,
0.17930281162261963,
-0.3214277923107147,
-0.09998108446598053,
-0.3226764500141144,
-0.22828522324562073,
-0.1305263489484787,
0.16689838469028473,
-0.22700729966163635,
0.043161749839782715,
0.3165641725063324,
0.27359798550605774,
-0.025514671579003334,
0.2802662253379822,
-0.13305076956748962,
-0.18314743041992188,
-0.2402026206254959,
-0.09089755266904831,
0.23933769762516022,
0.16672763228416443,
0.2533947229385376,
-0.0951278880238533,
0.15294644236564636,
0.050276271998882294,
0.013414676301181316,
-0.10940269380807877,
-0.2209979146718979,
0.04897114634513855,
-0.27206185460090637,
0.3356463611125946,
0.055303364992141724,
0.7832083106040955,
-0.28178659081459045,
-0.16184179484844208,
0.1612849235534668,
0.2839294672012329,
-0.21231436729431152,
0.2203887701034546,
0.42824193835258484,
-0.1392526775598526,
0.0007197707891464233,
-0.32490989565849304,
-0.09991493076086044,
-0.18179035186767578,
0.2037823647260666,
0.020982816815376282,
0.008732326328754425,
-0.08046568185091019,
-0.010057687759399414,
0.21736936271190643,
0.10147842019796371,
0.07938182353973389,
-0.0789978876709938,
-0.2777700126171112,
0.2961803674697876,
-0.28324413299560547,
0.020596317946910858,
-0.14629828929901123,
0.5204562544822693,
0.025379646569490433,
-0.362129807472229,
-0.13540054857730865,
-0.10544847697019577,
0.0756668746471405,
0.027679968625307083,
-0.05333763733506203,
0.33945152163505554,
0.10876926779747009,
0.02851966768503189,
0.07979924231767654,
0.13018545508384705,
0.07434166967868805,
-0.04996688663959503,
-0.13964764773845673,
-0.22278542816638947,
-0.2987944185733795,
0.2747345566749573,
-0.12344969063997269,
-0.3272606134414673,
-0.1521589308977127,
0.0012153983116149902,
-0.208730548620224,
-0.03460137918591499,
-0.09959424287080765,
0.4414266049861908,
-0.15790237486362457,
0.15262044966220856,
0.08801524341106415,
0.1817052811384201,
-0.19471165537834167,
-0.3660135269165039,
-0.14901012182235718,
0.20088304579257965,
-0.4686205983161926,
-0.32053181529045105,
0.2491358071565628,
-0.3165852129459381,
0.4326322078704834,
-0.08860339224338531,
0.10732407122850418,
-0.10228805989027023,
-0.1421981006860733,
-0.2225242704153061,
-0.2582619786262512,
0.18804486095905304,
0.06787745654582977,
0.265139102935791,
0.012080607935786247,
-0.03282845765352249,
-0.00765005499124527,
-0.24501842260360718,
-0.12951001524925232,
-0.19092783331871033,
-0.07252620160579681,
0.17847773432731628,
-0.010352576151490211,
-0.13389372825622559,
-0.5229310393333435,
0.04997531324625015,
0.19104821979999542,
0.038063328713178635,
-0.0024338066577911377,
-0.2078719586133957,
-0.23150035738945007,
-0.208598330616951,
0.117169089615345,
0.544819176197052,
-0.018813004717230797,
0.028378605842590332,
-0.04356691986322403,
-0.011956583708524704,
0.49969565868377686,
0.37207669019699097,
-0.09973915666341782,
0.17216816544532776,
-0.20958615839481354,
0.14264658093452454,
0.16642817854881287,
-0.5432876944541931,
-0.22140491008758545,
0.2418849766254425,
-0.04924897104501724,
0.09035482257604599,
0.032922640442848206,
-0.42528000473976135,
0.20099692046642303,
-0.1309155523777008,
0.11172933876514435,
0.27592748403549194,
0.09924577921628952,
0.1265612095594406,
-0.24118532240390778,
-0.12675899267196655,
0.2473008781671524,
0.1046612411737442,
0.16901765763759613,
-0.10204514116048813,
0.26045575737953186,
0.18707886338233948,
0.26134732365608215,
-0.12082535028457642,
0.35966596007347107,
0.24704107642173767,
-0.26252278685569763,
-0.30720555782318115,
0.10502216219902039,
0.19859355688095093,
-0.3305428922176361,
0.20660057663917542,
-0.2245485931634903,
0.2911966145038605,
0.053263209760189056,
-0.021892976015806198,
-0.3256206512451172,
-0.20640866458415985,
-0.2410367876291275,
-0.20117612183094025,
0.17742007970809937,
-0.042909324169158936,
0.32807111740112305,
0.16727881133556366,
0.11972139775753021,
0.35329535603523254,
-0.30633115768432617,
-0.10966157913208008,
-0.10674026608467102,
0.10267005115747452,
-0.2434280961751938,
-0.07219027727842331,
0.32417410612106323,
0.2424541711807251,
0.2653387188911438,
-0.15683703124523163,
-0.13989323377609253,
0.07293380796909332,
-0.14702969789505005,
0.4155643582344055,
-0.11656003445386887,
-0.12037433683872223,
0.36946314573287964,
-0.38100048899650574,
0.4082125723361969,
0.3177170753479004,
0.06451466679573059,
-0.07451333105564117,
0.3047281503677368,
-0.2446967214345932,
0.05164617300033569,
0.007779411971569061,
0.08690787851810455,
-0.12712937593460083,
0.3317699134349823,
-0.0915147066116333,
0.17783795297145844,
-0.03593440353870392,
0.5329705476760864,
-0.09439802169799805,
0.25456175208091736,
-0.1527448445558548,
-0.19702008366584778,
0.02761150896549225,
0.42649349570274353,
0.0807592123746872,
-0.1145148053765297,
0.17100736498832703,
-0.12888461351394653,
-0.17582935094833374,
0.27580949664115906,
0.11890377104282379,
0.110228031873703,
0.16510047018527985,
0.17313401401042938,
0.13116537034511566,
0.13358093798160553,
-0.21879121661186218,
0.25292524695396423,
-0.2158297747373581,
0.17182864248752594,
0.33530566096305847,
0.16610945761203766,
-0.002951384522020817,
-0.43208760023117065,
-0.028696933761239052,
0.2143988013267517,
0.17780810594558716,
-0.0685262605547905,
-0.09973708540201187,
-0.24677670001983643,
-0.40813589096069336,
-0.3134785294532776,
-0.11854396015405655,
0.03713270649313927,
0.01724674366414547,
-0.19682547450065613,
0.11412109434604645,
-0.0407048724591732,
-0.007626505568623543,
-0.27487173676490784,
-0.3112751841545105,
-0.19947700202465057,
-0.2850927412509918,
-0.17256556451320648,
0.005930393002927303,
-0.40908488631248474,
0.12316164374351501,
0.14126457273960114,
0.059434469789266586,
0.3566998839378357,
-0.3356066048145294,
-0.0827375054359436,
-0.22347460687160492,
-0.07055413722991943,
0.25133582949638367,
-0.0651979148387909,
-0.1545361876487732,
0.022168464958667755,
0.20069800317287445,
-0.22271740436553955,
-0.19328561425209045,
0.015568280592560768,
-0.12744452059268951,
-0.18748337030410767,
0.014690998941659927,
-0.23348380625247955,
-0.15572011470794678,
-0.15952736139297485,
-0.6133767366409302,
-0.47461941838264465,
-0.4864414632320404,
0.059995125979185104,
-0.14135189354419708,
0.19657455384731293,
0.393581360578537,
-0.2014532834291458,
0.16573798656463623,
0.1373181939125061,
0.14365431666374207,
-0.20284807682037354,
-0.026271510869264603,
0.11786225438117981,
-0.3232530951499939,
-0.4543692171573639,
0.11731834709644318,
0.02386080101132393,
0.4150669276714325,
0.16472208499908447,
-0.30463969707489014,
0.3316364884376526,
-0.032270826399326324,
0.12915284931659698,
0.09138016402721405,
0.14185945689678192,
0.4941835403442383,
-0.09971076995134354,
-0.002217015251517296,
0.0292072594165802,
0.11091925203800201,
-0.006735414266586304,
0.2292223572731018,
0.4109458327293396,
-0.2725362479686737,
0.15089194476604462,
0.16940580308437347,
0.3010314702987671,
0.39882025122642517,
-0.2326141744852066,
0.6556062698364258,
0.3299929201602936,
0.16604745388031006,
-0.07856100052595139,
-0.22316010296344757,
0.42405423521995544,
-0.024202734231948853,
0.05045256018638611,
0.39433956146240234,
-0.16810840368270874,
-0.5607061982154846,
-0.11067616939544678,
-0.41605904698371887,
-0.4069873094558716,
-0.06559883058071136,
-0.00586291030049324,
0.11797960102558136,
0.40663543343544006,
0.041216667741537094,
0.1797282099723816,
0.2586697041988373,
-0.2891935110092163,
0.15880203247070312,
0.2221115678548813,
0.030702844262123108,
0.2962256968021393,
-0.0844784528017044,
-0.13709992170333862,
-0.7133890390396118,
0.31576138734817505,
0.28924065828323364,
0.1681808978319168,
-0.14718323945999146,
0.38114669919013977,
0.013209231197834015,
-0.19391821324825287,
0.5401841998100281,
-0.21462741494178772,
0.11722248792648315,
0.03856590390205383,
0.03946775197982788,
-0.0822889432311058,
0.010347258299589157,
0.06700979173183441,
0.11764682084321976,
0.4223923981189728,
0.058951616287231445,
-0.4840067923069,
-0.08813294023275375,
-0.021805167198181152,
0.4767237901687622,
0.1708543300628662,
-0.21849969029426575,
-0.049994662404060364,
-0.5328353047370911,
-0.23358061909675598,
0.007856704294681549,
0.01804952509701252,
0.36885279417037964,
-0.023413337767124176,
-0.0077784135937690735,
0.1783483624458313,
0.07187853008508682,
0.18671472370624542,
0.14257927238941193,
0.2800198197364807,
0.292277067899704,
0.2006501406431198,
0.329708069562912,
0.0043783970177173615,
0.19219517707824707,
0.3183085024356842,
-0.14868007600307465,
0.14024534821510315,
-0.05302517116069794,
0.11649249494075775,
0.13675034046173096,
0.2045927792787552,
0.030132606625556946,
-0.06275158375501633,
-0.14156407117843628,
-0.19799776375293732,
0.14650864899158478,
0.08352591842412949,
0.09638822823762894,
0.12574370205402374,
-0.5703753232955933,
-0.3882582187652588,
0.2796274721622467,
-0.32025107741355896,
0.15958155691623688,
0.15448127686977386,
0.3057814836502075,
-0.3391076624393463,
0.2559325695037842,
0.07954602688550949,
0.7368467450141907,
-0.04026847332715988,
0.07664331048727036,
0.028607169166207314,
0.07719914615154266,
0.2957969307899475,
-0.3393847346305847,
0.17917923629283905,
-0.2431402951478958,
0.11969912797212601,
-0.0036813467741012573,
0.07773396372795105,
-0.020391643047332764,
0.13655737042427063,
-0.3911970555782318,
0.5633792281150818,
0.07773399353027344,
-0.04482734575867653,
0.06428160518407822,
0.3738429844379425,
-0.1419714093208313,
-0.3766847848892212,
-0.40039122104644775,
0.18190650641918182,
-0.3179164528846741,
0.3305782675743103,
-0.20887863636016846,
-0.08868288993835449,
0.10623514652252197,
-0.10210873186588287,
-0.3304601013660431,
0.4157046377658844,
-0.2829909324645996,
0.025363467633724213,
-0.09548601508140564,
-0.1803959608078003,
0.4980289041996002,
0.2474800944328308,
0.33054858446121216,
0.37445637583732605,
-0.23709514737129211,
0.12063206732273102,
0.10322176665067673,
-0.5300794243812561,
0.2447049766778946,
0.02162737399339676,
0.054735906422138214,
-0.3400764465332031,
-0.21754670143127441,
0.09308867901563644,
-0.041182927787303925,
-0.05254003405570984,
0.2623301148414612,
-0.14253553748130798,
-0.3336835503578186,
0.010511195287108421,
-0.3549554944038391,
0.2626422643661499,
-0.0046566687524318695,
0.03924984112381935,
0.12762640416622162,
-0.08342678844928741,
-0.17889612913131714,
0.11126819252967834,
0.1640385091304779,
-0.21929241716861725,
-0.09325593709945679,
0.3113943934440613,
0.12256033718585968,
-0.3694090247154236,
0.4701075553894043,
0.2693338394165039,
-0.24350854754447937,
-0.19013330340385437,
-0.6724627017974854,
-0.29658812284469604,
-0.36009645462036133,
-0.008136915974318981,
-0.006863183341920376,
0.0362960547208786,
-0.1432049572467804,
0.3669493794441223,
-0.028917625546455383,
-0.007344238460063934,
0.2249271124601364,
-0.3883947730064392,
-0.2859404385089874,
0.06967347860336304,
-0.15974506735801697,
0.028575235977768898,
0.23872917890548706,
0.28289076685905457,
0.19142653048038483,
0.11299890279769897,
-0.2709113657474518,
-0.04517974704504013,
-0.37413185834884644,
0.0734550803899765,
0.29133591055870056,
-0.10154356807470322,
0.33288195729255676,
0.11200191080570221,
0.10917001962661743,
0.25574296712875366,
-0.2520962953567505,
-0.2090449333190918,
-0.11032965779304504,
0.08477606624364853,
0.15797698497772217,
0.08173811435699463,
0.32286620140075684,
-0.38325971364974976,
-0.14949481189250946,
-0.02848183363676071,
0.12609481811523438,
0.301839143037796,
-0.03393682837486267,
0.1260334551334381,
0.24066972732543945,
0.06285443902015686,
-0.08676408231258392,
0.14244911074638367,
0.1167197898030281,
0.09449993818998337,
-0.02113628201186657,
0.14237254858016968,
0.06792045384645462,
-0.0810723677277565,
-0.14363034069538116,
-0.014486052095890045,
0.11095019429922104,
0.049967095255851746,
0.15437178313732147,
-0.036877475678920746,
0.10275089740753174,
-0.005485543981194496,
-0.04549410194158554,
0.007429059594869614,
-0.023452021181583405,
-0.035800397396087646,
0.3045826256275177,
0.20666134357452393,
-0.27016884088516235,
0.17608076333999634,
-0.01842283457517624,
0.1721578985452652,
0.004592172801494598,
0.013946883380413055,
0.32610663771629333,
-0.29987090826034546,
0.19545277953147888,
0.09732850641012192,
0.3590955436229706,
-0.13008585572242737,
-0.15505187213420868,
-0.028224628418684006,
0.06127508357167244,
0.0415278822183609,
0.22455331683158875,
-0.14635691046714783,
0.00869801640510559,
0.13488902151584625,
-0.08931276947259903,
-0.011678164824843407,
0.2734457552433014,
0.29537808895111084,
-0.06546098738908768,
-0.2115871161222458,
0.0072162821888923645,
0.3011552095413208,
0.29554587602615356,
0.2288527488708496,
0.11974608898162842,
0.1959206461906433,
0.17329683899879456,
-0.20004898309707642,
-0.32755154371261597,
0.37516775727272034,
-0.07891704142093658,
0.039330631494522095,
-0.1925191879272461,
-0.2186931073665619,
-0.0818454697728157,
0.1360604166984558,
-0.187226340174675,
-0.06594279408454895,
0.19626100361347198,
0.21847881376743317,
-0.2186943143606186,
-0.40774422883987427,
-0.0435328483581543,
0.016044432297348976,
0.1576143503189087,
-0.21698713302612305,
0.4991552233695984,
0.27053308486938477,
-0.05466039478778839,
-0.16325192153453827,
0.31408560276031494,
0.44854459166526794,
0.20072557032108307,
-0.1284496933221817,
0.0977758914232254,
0.12251980602741241,
-0.010440932586789131,
-0.0364382378757,
0.4297572374343872,
0.3452334403991699,
0.11359117925167084,
0.2829175591468811,
0.1092248260974884,
-0.2205704301595688,
-0.09852920472621918,
0.0933232307434082,
-0.056721772998571396,
0.12509042024612427,
0.4512260854244232,
0.004477113485336304,
0.07499101012945175,
-0.33516886830329895,
0.048538487404584885,
-0.48050642013549805,
0.4305053949356079,
0.49336767196655273,
-0.19419139623641968,
-0.012612484395503998,
-0.10424799472093582,
0.08645521849393845,
0.09255847334861755,
0.3288399279117584,
0.2744675576686859,
0.49594002962112427,
-0.41771844029426575,
-0.3438931703567505,
-0.33430370688438416,
0.18633440136909485,
-0.29574868083000183,
0.17978431284427643,
-0.2519390285015106,
0.05943405628204346,
0.14345747232437134,
0.10078191757202148,
-0.12724940478801727,
0.36669260263442993,
0.18580883741378784,
0.22374515235424042,
-0.12960787117481232,
0.11506594717502594,
-0.16300857067108154,
0.0071015674620866776,
-0.006841439753770828,
-0.4851982295513153,
-0.14542728662490845,
-0.07270503044128418,
0.06646911054849625,
-0.2589693069458008,
0.08463354408740997,
0.044182565063238144,
-0.15183010697364807,
0.13502183556556702,
0.027905892580747604,
0.6574350595474243,
-0.23934003710746765,
-0.19509437680244446,
-0.29613175988197327,
-0.20162251591682434,
-0.18503473699092865,
-0.028659477829933167,
0.09899340569972992,
0.35261744260787964,
0.06631577759981155,
0.15086397528648376,
-0.1567128598690033,
0.4380100965499878,
0.16986224055290222,
0.34537240862846375,
-0.13653166592121124,
0.10780972242355347,
-0.3517177999019623,
-0.12050867825746536,
0.046676669269800186,
0.5064761638641357,
0.02186564728617668,
-0.1784389168024063,
-0.2926492691040039,
-0.5317479968070984,
0.5479219555854797,
-0.8124215602874756,
-0.25763779878616333,
0.07841786742210388,
0.09572137892246246,
-0.011472508311271667,
-0.26593536138534546,
-0.5267426371574402,
0.255278617143631,
0.09849098324775696,
-0.07824143022298813,
-0.32754912972450256,
0.11571666598320007,
-0.0942823588848114,
-0.06467591971158981,
-0.05263512581586838,
0.3443562984466553,
0.18938621878623962,
-0.27996161580085754,
-0.19547490775585175,
-0.31563854217529297
] |
https://github.com/huggingface/datasets/issues/233 | Fail to download c4 english corpus | @lhoestq I am facing `IsADirectoryError` while downloading with this command.
Can you pls look into it & help me.
I'm using version 0.4.0 of `nlp`.
```
dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
```
Here's the complete stack trace.
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown sizetotal: Unknown size) to /home/devops/.cache/huggingface/datasets/c4/en/2.3.0/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7...
---------------------------------------------------------------------------
IsADirectoryError Traceback (most recent call last)
<ipython-input-11-f622e6705e03> in <module>
----> 1 dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
964 pipeline = beam_utils.BeamPipeline(runner=beam_runner, options=beam_options,)
965 super(BeamBasedBuilder, self)._download_and_prepare(
--> 966 dl_manager, verify_infos=False, pipeline=pipeline,
967 ) # TODO handle verify_infos in beam datasets
968 # Run pipeline
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
516 split_dict = SplitDict(dataset_name=self.name)
517 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 518 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
519 # Checksums verification
520 if verify_infos:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/datasets/c4/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7/c4.py in _split_generators(self, dl_manager, pipeline)
187 if self.config.realnewslike:
188 files_to_download["realnews_domains"] = _REALNEWS_DOMAINS_URL
--> 189 file_paths = dl_manager.download_and_extract(files_to_download)
190
191 if self.config.webtextlike:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download_and_extract(self, url_or_urls)
218 extracted_path(s): `str`, extracted paths of given URL(s).
219 """
--> 220 return self.extract(self.download(url_or_urls))
221
222 def get_recorded_sizes_checksums(self):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download(self, url_or_urls)
156 lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
157 )
--> 158 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
159 return downloaded_path_or_paths
160
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in _record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths)
106 flattened_downloaded_path_or_paths = flatten_nested(downloaded_path_or_paths)
107 for url, path in zip(flattened_urls_or_urls, flattened_downloaded_path_or_paths):
--> 108 self._recorded_sizes_checksums[url] = get_size_checksum_dict(path)
109
110 def download_custom(self, url_or_urls, custom_download):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/info_utils.py in get_size_checksum_dict(path)
77 """Compute the file size and the sha256 checksum of a file"""
78 m = sha256()
---> 79 with open(path, "rb") as f:
80 for chunk in iter(lambda: f.read(1 << 20), b""):
81 m.update(chunk)
IsADirectoryError: [Errno 21] Is a directory: '/'
```
Can anyone please try to see what I am doing wrong or is this a bug? | i run following code to download c4 English corpus.
```
dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner'
, data_dir='/mypath')
```
and i met failure as follows
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0...
Traceback (most recent call last):
File "download_corpus.py", line 38, in <module>
, data_dir='/home/adam/data/corpus/en/c4')
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare
dl_manager, verify_infos=False, pipeline=pipeline,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators
dl_manager.download_checksums(_CHECKSUMS_URL)
AttributeError: 'DownloadManager' object has no attribute 'download_checksums
```
can i get any advice? | 341 | Fail to download c4 english corpus
i run following code to download c4 English corpus.
```
dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner'
, data_dir='/mypath')
```
and i met failure as follows
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0...
Traceback (most recent call last):
File "download_corpus.py", line 38, in <module>
, data_dir='/home/adam/data/corpus/en/c4')
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare
dl_manager, verify_infos=False, pipeline=pipeline,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators
dl_manager.download_checksums(_CHECKSUMS_URL)
AttributeError: 'DownloadManager' object has no attribute 'download_checksums
```
can i get any advice?
@lhoestq I am facing `IsADirectoryError` while downloading with this command.
Can you pls look into it & help me.
I'm using version 0.4.0 of `nlp`.
```
dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
```
Here's the complete stack trace.
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown sizetotal: Unknown size) to /home/devops/.cache/huggingface/datasets/c4/en/2.3.0/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7...
---------------------------------------------------------------------------
IsADirectoryError Traceback (most recent call last)
<ipython-input-11-f622e6705e03> in <module>
----> 1 dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
964 pipeline = beam_utils.BeamPipeline(runner=beam_runner, options=beam_options,)
965 super(BeamBasedBuilder, self)._download_and_prepare(
--> 966 dl_manager, verify_infos=False, pipeline=pipeline,
967 ) # TODO handle verify_infos in beam datasets
968 # Run pipeline
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
516 split_dict = SplitDict(dataset_name=self.name)
517 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 518 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
519 # Checksums verification
520 if verify_infos:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/datasets/c4/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7/c4.py in _split_generators(self, dl_manager, pipeline)
187 if self.config.realnewslike:
188 files_to_download["realnews_domains"] = _REALNEWS_DOMAINS_URL
--> 189 file_paths = dl_manager.download_and_extract(files_to_download)
190
191 if self.config.webtextlike:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download_and_extract(self, url_or_urls)
218 extracted_path(s): `str`, extracted paths of given URL(s).
219 """
--> 220 return self.extract(self.download(url_or_urls))
221
222 def get_recorded_sizes_checksums(self):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download(self, url_or_urls)
156 lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
157 )
--> 158 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
159 return downloaded_path_or_paths
160
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in _record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths)
106 flattened_downloaded_path_or_paths = flatten_nested(downloaded_path_or_paths)
107 for url, path in zip(flattened_urls_or_urls, flattened_downloaded_path_or_paths):
--> 108 self._recorded_sizes_checksums[url] = get_size_checksum_dict(path)
109
110 def download_custom(self, url_or_urls, custom_download):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/info_utils.py in get_size_checksum_dict(path)
77 """Compute the file size and the sha256 checksum of a file"""
78 m = sha256()
---> 79 with open(path, "rb") as f:
80 for chunk in iter(lambda: f.read(1 << 20), b""):
81 m.update(chunk)
IsADirectoryError: [Errno 21] Is a directory: '/'
```
Can anyone please try to see what I am doing wrong or is this a bug? | [
0.011553861200809479,
0.09108477830886841,
-0.055644240230321884,
0.29022401571273804,
0.14863035082817078,
0.16529732942581177,
-0.06323684751987457,
0.3174016773700714,
-0.11661383509635925,
0.03942932188510895,
-0.15431523323059082,
0.008751400746405125,
0.026757927611470222,
0.08450104296207428,
0.13103631138801575,
-0.547264575958252,
-0.22359690070152283,
0.15271487832069397,
-0.13122041523456573,
-0.14125391840934753,
-0.0423431321978569,
0.4258196949958801,
-0.11378784477710724,
-0.17473609745502472,
-0.06000419333577156,
-0.13748587667942047,
-0.19747233390808105,
-0.05506984889507294,
-0.20634213089942932,
-0.5448321104049683,
0.44541695713996887,
0.004982016980648041,
0.18939141929149628,
0.34701159596443176,
-0.00010940981155727059,
-0.01785234361886978,
0.4102257490158081,
-0.1208096444606781,
-0.2488904446363449,
-0.39947420358657837,
0.17930281162261963,
-0.3214277923107147,
-0.09998108446598053,
-0.3226764500141144,
-0.22828522324562073,
-0.1305263489484787,
0.16689838469028473,
-0.22700729966163635,
0.043161749839782715,
0.3165641725063324,
0.27359798550605774,
-0.025514671579003334,
0.2802662253379822,
-0.13305076956748962,
-0.18314743041992188,
-0.2402026206254959,
-0.09089755266904831,
0.23933769762516022,
0.16672763228416443,
0.2533947229385376,
-0.0951278880238533,
0.15294644236564636,
0.050276271998882294,
0.013414676301181316,
-0.10940269380807877,
-0.2209979146718979,
0.04897114634513855,
-0.27206185460090637,
0.3356463611125946,
0.055303364992141724,
0.7832083106040955,
-0.28178659081459045,
-0.16184179484844208,
0.1612849235534668,
0.2839294672012329,
-0.21231436729431152,
0.2203887701034546,
0.42824193835258484,
-0.1392526775598526,
0.0007197707891464233,
-0.32490989565849304,
-0.09991493076086044,
-0.18179035186767578,
0.2037823647260666,
0.020982816815376282,
0.008732326328754425,
-0.08046568185091019,
-0.010057687759399414,
0.21736936271190643,
0.10147842019796371,
0.07938182353973389,
-0.0789978876709938,
-0.2777700126171112,
0.2961803674697876,
-0.28324413299560547,
0.020596317946910858,
-0.14629828929901123,
0.5204562544822693,
0.025379646569490433,
-0.362129807472229,
-0.13540054857730865,
-0.10544847697019577,
0.0756668746471405,
0.027679968625307083,
-0.05333763733506203,
0.33945152163505554,
0.10876926779747009,
0.02851966768503189,
0.07979924231767654,
0.13018545508384705,
0.07434166967868805,
-0.04996688663959503,
-0.13964764773845673,
-0.22278542816638947,
-0.2987944185733795,
0.2747345566749573,
-0.12344969063997269,
-0.3272606134414673,
-0.1521589308977127,
0.0012153983116149902,
-0.208730548620224,
-0.03460137918591499,
-0.09959424287080765,
0.4414266049861908,
-0.15790237486362457,
0.15262044966220856,
0.08801524341106415,
0.1817052811384201,
-0.19471165537834167,
-0.3660135269165039,
-0.14901012182235718,
0.20088304579257965,
-0.4686205983161926,
-0.32053181529045105,
0.2491358071565628,
-0.3165852129459381,
0.4326322078704834,
-0.08860339224338531,
0.10732407122850418,
-0.10228805989027023,
-0.1421981006860733,
-0.2225242704153061,
-0.2582619786262512,
0.18804486095905304,
0.06787745654582977,
0.265139102935791,
0.012080607935786247,
-0.03282845765352249,
-0.00765005499124527,
-0.24501842260360718,
-0.12951001524925232,
-0.19092783331871033,
-0.07252620160579681,
0.17847773432731628,
-0.010352576151490211,
-0.13389372825622559,
-0.5229310393333435,
0.04997531324625015,
0.19104821979999542,
0.038063328713178635,
-0.0024338066577911377,
-0.2078719586133957,
-0.23150035738945007,
-0.208598330616951,
0.117169089615345,
0.544819176197052,
-0.018813004717230797,
0.028378605842590332,
-0.04356691986322403,
-0.011956583708524704,
0.49969565868377686,
0.37207669019699097,
-0.09973915666341782,
0.17216816544532776,
-0.20958615839481354,
0.14264658093452454,
0.16642817854881287,
-0.5432876944541931,
-0.22140491008758545,
0.2418849766254425,
-0.04924897104501724,
0.09035482257604599,
0.032922640442848206,
-0.42528000473976135,
0.20099692046642303,
-0.1309155523777008,
0.11172933876514435,
0.27592748403549194,
0.09924577921628952,
0.1265612095594406,
-0.24118532240390778,
-0.12675899267196655,
0.2473008781671524,
0.1046612411737442,
0.16901765763759613,
-0.10204514116048813,
0.26045575737953186,
0.18707886338233948,
0.26134732365608215,
-0.12082535028457642,
0.35966596007347107,
0.24704107642173767,
-0.26252278685569763,
-0.30720555782318115,
0.10502216219902039,
0.19859355688095093,
-0.3305428922176361,
0.20660057663917542,
-0.2245485931634903,
0.2911966145038605,
0.053263209760189056,
-0.021892976015806198,
-0.3256206512451172,
-0.20640866458415985,
-0.2410367876291275,
-0.20117612183094025,
0.17742007970809937,
-0.042909324169158936,
0.32807111740112305,
0.16727881133556366,
0.11972139775753021,
0.35329535603523254,
-0.30633115768432617,
-0.10966157913208008,
-0.10674026608467102,
0.10267005115747452,
-0.2434280961751938,
-0.07219027727842331,
0.32417410612106323,
0.2424541711807251,
0.2653387188911438,
-0.15683703124523163,
-0.13989323377609253,
0.07293380796909332,
-0.14702969789505005,
0.4155643582344055,
-0.11656003445386887,
-0.12037433683872223,
0.36946314573287964,
-0.38100048899650574,
0.4082125723361969,
0.3177170753479004,
0.06451466679573059,
-0.07451333105564117,
0.3047281503677368,
-0.2446967214345932,
0.05164617300033569,
0.007779411971569061,
0.08690787851810455,
-0.12712937593460083,
0.3317699134349823,
-0.0915147066116333,
0.17783795297145844,
-0.03593440353870392,
0.5329705476760864,
-0.09439802169799805,
0.25456175208091736,
-0.1527448445558548,
-0.19702008366584778,
0.02761150896549225,
0.42649349570274353,
0.0807592123746872,
-0.1145148053765297,
0.17100736498832703,
-0.12888461351394653,
-0.17582935094833374,
0.27580949664115906,
0.11890377104282379,
0.110228031873703,
0.16510047018527985,
0.17313401401042938,
0.13116537034511566,
0.13358093798160553,
-0.21879121661186218,
0.25292524695396423,
-0.2158297747373581,
0.17182864248752594,
0.33530566096305847,
0.16610945761203766,
-0.002951384522020817,
-0.43208760023117065,
-0.028696933761239052,
0.2143988013267517,
0.17780810594558716,
-0.0685262605547905,
-0.09973708540201187,
-0.24677670001983643,
-0.40813589096069336,
-0.3134785294532776,
-0.11854396015405655,
0.03713270649313927,
0.01724674366414547,
-0.19682547450065613,
0.11412109434604645,
-0.0407048724591732,
-0.007626505568623543,
-0.27487173676490784,
-0.3112751841545105,
-0.19947700202465057,
-0.2850927412509918,
-0.17256556451320648,
0.005930393002927303,
-0.40908488631248474,
0.12316164374351501,
0.14126457273960114,
0.059434469789266586,
0.3566998839378357,
-0.3356066048145294,
-0.0827375054359436,
-0.22347460687160492,
-0.07055413722991943,
0.25133582949638367,
-0.0651979148387909,
-0.1545361876487732,
0.022168464958667755,
0.20069800317287445,
-0.22271740436553955,
-0.19328561425209045,
0.015568280592560768,
-0.12744452059268951,
-0.18748337030410767,
0.014690998941659927,
-0.23348380625247955,
-0.15572011470794678,
-0.15952736139297485,
-0.6133767366409302,
-0.47461941838264465,
-0.4864414632320404,
0.059995125979185104,
-0.14135189354419708,
0.19657455384731293,
0.393581360578537,
-0.2014532834291458,
0.16573798656463623,
0.1373181939125061,
0.14365431666374207,
-0.20284807682037354,
-0.026271510869264603,
0.11786225438117981,
-0.3232530951499939,
-0.4543692171573639,
0.11731834709644318,
0.02386080101132393,
0.4150669276714325,
0.16472208499908447,
-0.30463969707489014,
0.3316364884376526,
-0.032270826399326324,
0.12915284931659698,
0.09138016402721405,
0.14185945689678192,
0.4941835403442383,
-0.09971076995134354,
-0.002217015251517296,
0.0292072594165802,
0.11091925203800201,
-0.006735414266586304,
0.2292223572731018,
0.4109458327293396,
-0.2725362479686737,
0.15089194476604462,
0.16940580308437347,
0.3010314702987671,
0.39882025122642517,
-0.2326141744852066,
0.6556062698364258,
0.3299929201602936,
0.16604745388031006,
-0.07856100052595139,
-0.22316010296344757,
0.42405423521995544,
-0.024202734231948853,
0.05045256018638611,
0.39433956146240234,
-0.16810840368270874,
-0.5607061982154846,
-0.11067616939544678,
-0.41605904698371887,
-0.4069873094558716,
-0.06559883058071136,
-0.00586291030049324,
0.11797960102558136,
0.40663543343544006,
0.041216667741537094,
0.1797282099723816,
0.2586697041988373,
-0.2891935110092163,
0.15880203247070312,
0.2221115678548813,
0.030702844262123108,
0.2962256968021393,
-0.0844784528017044,
-0.13709992170333862,
-0.7133890390396118,
0.31576138734817505,
0.28924065828323364,
0.1681808978319168,
-0.14718323945999146,
0.38114669919013977,
0.013209231197834015,
-0.19391821324825287,
0.5401841998100281,
-0.21462741494178772,
0.11722248792648315,
0.03856590390205383,
0.03946775197982788,
-0.0822889432311058,
0.010347258299589157,
0.06700979173183441,
0.11764682084321976,
0.4223923981189728,
0.058951616287231445,
-0.4840067923069,
-0.08813294023275375,
-0.021805167198181152,
0.4767237901687622,
0.1708543300628662,
-0.21849969029426575,
-0.049994662404060364,
-0.5328353047370911,
-0.23358061909675598,
0.007856704294681549,
0.01804952509701252,
0.36885279417037964,
-0.023413337767124176,
-0.0077784135937690735,
0.1783483624458313,
0.07187853008508682,
0.18671472370624542,
0.14257927238941193,
0.2800198197364807,
0.292277067899704,
0.2006501406431198,
0.329708069562912,
0.0043783970177173615,
0.19219517707824707,
0.3183085024356842,
-0.14868007600307465,
0.14024534821510315,
-0.05302517116069794,
0.11649249494075775,
0.13675034046173096,
0.2045927792787552,
0.030132606625556946,
-0.06275158375501633,
-0.14156407117843628,
-0.19799776375293732,
0.14650864899158478,
0.08352591842412949,
0.09638822823762894,
0.12574370205402374,
-0.5703753232955933,
-0.3882582187652588,
0.2796274721622467,
-0.32025107741355896,
0.15958155691623688,
0.15448127686977386,
0.3057814836502075,
-0.3391076624393463,
0.2559325695037842,
0.07954602688550949,
0.7368467450141907,
-0.04026847332715988,
0.07664331048727036,
0.028607169166207314,
0.07719914615154266,
0.2957969307899475,
-0.3393847346305847,
0.17917923629283905,
-0.2431402951478958,
0.11969912797212601,
-0.0036813467741012573,
0.07773396372795105,
-0.020391643047332764,
0.13655737042427063,
-0.3911970555782318,
0.5633792281150818,
0.07773399353027344,
-0.04482734575867653,
0.06428160518407822,
0.3738429844379425,
-0.1419714093208313,
-0.3766847848892212,
-0.40039122104644775,
0.18190650641918182,
-0.3179164528846741,
0.3305782675743103,
-0.20887863636016846,
-0.08868288993835449,
0.10623514652252197,
-0.10210873186588287,
-0.3304601013660431,
0.4157046377658844,
-0.2829909324645996,
0.025363467633724213,
-0.09548601508140564,
-0.1803959608078003,
0.4980289041996002,
0.2474800944328308,
0.33054858446121216,
0.37445637583732605,
-0.23709514737129211,
0.12063206732273102,
0.10322176665067673,
-0.5300794243812561,
0.2447049766778946,
0.02162737399339676,
0.054735906422138214,
-0.3400764465332031,
-0.21754670143127441,
0.09308867901563644,
-0.041182927787303925,
-0.05254003405570984,
0.2623301148414612,
-0.14253553748130798,
-0.3336835503578186,
0.010511195287108421,
-0.3549554944038391,
0.2626422643661499,
-0.0046566687524318695,
0.03924984112381935,
0.12762640416622162,
-0.08342678844928741,
-0.17889612913131714,
0.11126819252967834,
0.1640385091304779,
-0.21929241716861725,
-0.09325593709945679,
0.3113943934440613,
0.12256033718585968,
-0.3694090247154236,
0.4701075553894043,
0.2693338394165039,
-0.24350854754447937,
-0.19013330340385437,
-0.6724627017974854,
-0.29658812284469604,
-0.36009645462036133,
-0.008136915974318981,
-0.006863183341920376,
0.0362960547208786,
-0.1432049572467804,
0.3669493794441223,
-0.028917625546455383,
-0.007344238460063934,
0.2249271124601364,
-0.3883947730064392,
-0.2859404385089874,
0.06967347860336304,
-0.15974506735801697,
0.028575235977768898,
0.23872917890548706,
0.28289076685905457,
0.19142653048038483,
0.11299890279769897,
-0.2709113657474518,
-0.04517974704504013,
-0.37413185834884644,
0.0734550803899765,
0.29133591055870056,
-0.10154356807470322,
0.33288195729255676,
0.11200191080570221,
0.10917001962661743,
0.25574296712875366,
-0.2520962953567505,
-0.2090449333190918,
-0.11032965779304504,
0.08477606624364853,
0.15797698497772217,
0.08173811435699463,
0.32286620140075684,
-0.38325971364974976,
-0.14949481189250946,
-0.02848183363676071,
0.12609481811523438,
0.301839143037796,
-0.03393682837486267,
0.1260334551334381,
0.24066972732543945,
0.06285443902015686,
-0.08676408231258392,
0.14244911074638367,
0.1167197898030281,
0.09449993818998337,
-0.02113628201186657,
0.14237254858016968,
0.06792045384645462,
-0.0810723677277565,
-0.14363034069538116,
-0.014486052095890045,
0.11095019429922104,
0.049967095255851746,
0.15437178313732147,
-0.036877475678920746,
0.10275089740753174,
-0.005485543981194496,
-0.04549410194158554,
0.007429059594869614,
-0.023452021181583405,
-0.035800397396087646,
0.3045826256275177,
0.20666134357452393,
-0.27016884088516235,
0.17608076333999634,
-0.01842283457517624,
0.1721578985452652,
0.004592172801494598,
0.013946883380413055,
0.32610663771629333,
-0.29987090826034546,
0.19545277953147888,
0.09732850641012192,
0.3590955436229706,
-0.13008585572242737,
-0.15505187213420868,
-0.028224628418684006,
0.06127508357167244,
0.0415278822183609,
0.22455331683158875,
-0.14635691046714783,
0.00869801640510559,
0.13488902151584625,
-0.08931276947259903,
-0.011678164824843407,
0.2734457552433014,
0.29537808895111084,
-0.06546098738908768,
-0.2115871161222458,
0.0072162821888923645,
0.3011552095413208,
0.29554587602615356,
0.2288527488708496,
0.11974608898162842,
0.1959206461906433,
0.17329683899879456,
-0.20004898309707642,
-0.32755154371261597,
0.37516775727272034,
-0.07891704142093658,
0.039330631494522095,
-0.1925191879272461,
-0.2186931073665619,
-0.0818454697728157,
0.1360604166984558,
-0.187226340174675,
-0.06594279408454895,
0.19626100361347198,
0.21847881376743317,
-0.2186943143606186,
-0.40774422883987427,
-0.0435328483581543,
0.016044432297348976,
0.1576143503189087,
-0.21698713302612305,
0.4991552233695984,
0.27053308486938477,
-0.05466039478778839,
-0.16325192153453827,
0.31408560276031494,
0.44854459166526794,
0.20072557032108307,
-0.1284496933221817,
0.0977758914232254,
0.12251980602741241,
-0.010440932586789131,
-0.0364382378757,
0.4297572374343872,
0.3452334403991699,
0.11359117925167084,
0.2829175591468811,
0.1092248260974884,
-0.2205704301595688,
-0.09852920472621918,
0.0933232307434082,
-0.056721772998571396,
0.12509042024612427,
0.4512260854244232,
0.004477113485336304,
0.07499101012945175,
-0.33516886830329895,
0.048538487404584885,
-0.48050642013549805,
0.4305053949356079,
0.49336767196655273,
-0.19419139623641968,
-0.012612484395503998,
-0.10424799472093582,
0.08645521849393845,
0.09255847334861755,
0.3288399279117584,
0.2744675576686859,
0.49594002962112427,
-0.41771844029426575,
-0.3438931703567505,
-0.33430370688438416,
0.18633440136909485,
-0.29574868083000183,
0.17978431284427643,
-0.2519390285015106,
0.05943405628204346,
0.14345747232437134,
0.10078191757202148,
-0.12724940478801727,
0.36669260263442993,
0.18580883741378784,
0.22374515235424042,
-0.12960787117481232,
0.11506594717502594,
-0.16300857067108154,
0.0071015674620866776,
-0.006841439753770828,
-0.4851982295513153,
-0.14542728662490845,
-0.07270503044128418,
0.06646911054849625,
-0.2589693069458008,
0.08463354408740997,
0.044182565063238144,
-0.15183010697364807,
0.13502183556556702,
0.027905892580747604,
0.6574350595474243,
-0.23934003710746765,
-0.19509437680244446,
-0.29613175988197327,
-0.20162251591682434,
-0.18503473699092865,
-0.028659477829933167,
0.09899340569972992,
0.35261744260787964,
0.06631577759981155,
0.15086397528648376,
-0.1567128598690033,
0.4380100965499878,
0.16986224055290222,
0.34537240862846375,
-0.13653166592121124,
0.10780972242355347,
-0.3517177999019623,
-0.12050867825746536,
0.046676669269800186,
0.5064761638641357,
0.02186564728617668,
-0.1784389168024063,
-0.2926492691040039,
-0.5317479968070984,
0.5479219555854797,
-0.8124215602874756,
-0.25763779878616333,
0.07841786742210388,
0.09572137892246246,
-0.011472508311271667,
-0.26593536138534546,
-0.5267426371574402,
0.255278617143631,
0.09849098324775696,
-0.07824143022298813,
-0.32754912972450256,
0.11571666598320007,
-0.0942823588848114,
-0.06467591971158981,
-0.05263512581586838,
0.3443562984466553,
0.18938621878623962,
-0.27996161580085754,
-0.19547490775585175,
-0.31563854217529297
] |