html_url
stringlengths
48
51
title
stringlengths
5
268
comment
stringlengths
70
51.8k
body
stringlengths
0
29.8k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/435
ImportWarning for pyarrow 1.0.0
This was fixed in #434 We'll do a release later this week to include this fix. Thanks for reporting
The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files
19
ImportWarning for pyarrow 1.0.0 The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files This was fixed in #434 We'll do a release later this week to include this fix. Thanks for reporting
[ -0.08307572454214096, -0.11023090779781342, -0.08677283674478531, -0.1396402269601822, 0.24311871826648712, -0.2674660086631775, 0.3366217613220215, 0.32819896936416626, -0.1044740080833435, 0.16092300415039062, -0.04599084332585335, 0.21845556795597076, -0.11118257790803909, 0.06283395737409592, 0.02758028358221054, -0.25680407881736755, 0.09777060896158218, 0.23599110543727875, 0.005641271360218525, -0.016945650801062584, 0.00046296429354697466, 0.2912733852863312, -0.1947275996208191, 0.3622003495693207, -0.2395533323287964, 0.027006836608052254, 0.08857128769159317, 0.12426478415727615, -0.27903226017951965, -0.5286545753479004, 0.1933577060699463, -0.16319037973880768, -0.07320472598075867, -0.004033966455608606, -0.00010106387344421819, 0.14389851689338684, 0.4179384410381317, 0.1709834784269333, 0.16104698181152344, -0.018863892182707787, 0.47651395201683044, -0.3481639325618744, 0.3162205219268799, 0.0011409948347136378, -0.21272723376750946, -0.3874780535697937, 0.20128239691257477, 0.6739888191223145, 0.2996216416358948, 0.053193993866443634, 0.3520936667919159, 0.5651537775993347, 0.30679479241371155, 0.212605819106102, 0.3988426625728607, -0.17212402820587158, -0.05756841599941254, 0.23346199095249176, 0.09912699460983276, -0.44532859325408936, -0.2211330085992813, 0.10635674744844437, -0.02440374158322811, -0.09820789098739624, 0.0148001154884696, -0.048062730580568314, 0.04874706640839577, -0.10124093294143677, -0.2533304691314697, 0.03156162053346634, -0.12687112390995026, -0.2548311650753021, -0.11187396943569183, -0.07827534526586533, 0.06063104048371315, -0.49171850085258484, 0.2599354684352875, 0.23892901837825775, -0.063947394490242, 0.21546410024166107, 0.09594803303480148, 0.03264504298567772, -0.1715606302022934, 0.13902133703231812, 0.08034055680036545, 0.5061999559402466, 0.032000597566366196, -0.03658095374703407, 0.14152348041534424, -0.12131144851446152, -0.010536503046751022, 0.18067459762096405, -0.06568041443824768, -0.015071507543325424, -0.055566586554050446, -0.05177115276455879, 0.24172717332839966, 0.2598070800304413, 0.12693746387958527, -0.1598726063966751, -0.05395253375172615, 0.16683906316757202, 0.13089968264102936, 0.22792856395244598, 0.06294530630111694, 0.028273245319724083, 0.10082276910543442, -0.3034641742706299, 0.39839062094688416, 0.07914824783802032, 0.14989104866981506, 0.09879335761070251, 0.15991896390914917, -0.32887062430381775, 0.05729799345135689, -0.05957145243883133, 0.23229816555976868, -0.1589357554912567, -0.18308362364768982, -0.1484585851430893, -0.2489204704761505, 0.00967724621295929, -0.09966418147087097, 0.2695368230342865, -0.09730920195579529, -0.019608577713370323, 0.09864511340856552, 0.26224014163017273, -0.35046395659446716, -0.23327800631523132, -0.25483348965644836, 0.06580386310815811, -0.32515186071395874, -0.09976531565189362, 0.18243438005447388, -0.06334497779607773, 0.3893652856349945, 0.29990753531455994, -0.019789552316069603, 0.13125202059745789, -0.029319772496819496, 0.22581136226654053, -0.006486339494585991, 0.22674143314361572, 0.004919488914310932, -0.02798539400100708, -0.04678788036108017, -0.11390861123800278, -0.06600994616746902, 0.07415876537561417, 0.05685993283987045, -0.13014592230319977, -0.383926659822464, 0.3116227686405182, -0.20908157527446747, -0.10451924055814743, 0.028263838961720467, 0.05130605027079582, 0.12867403030395508, -0.05487072467803955, -0.011707860045135021, -0.14568093419075012, 0.039303433150053024, -0.10205486416816711, -0.06989464163780212, 0.07305062562227249, -0.1338862180709839, -0.19446492195129395, 0.2042919397354126, -0.4161700904369354, 0.27499154210090637, 0.369295597076416, -0.29702508449554443, -0.07890862971544266, -0.2009681910276413, 0.32478880882263184, -0.023563746362924576, -0.09669486433267593, -0.18882012367248535, 0.023576298728585243, -0.26683372259140015, -0.03482719510793686, 0.07549399137496948, -0.12176629155874252, -0.20406965911388397, 0.07215061783790588, 0.07073289901018143, 0.3919305205345154, 0.12857383489608765, 0.2569902241230011, -0.48706871271133423, -0.250365674495697, 0.15346083045005798, 0.003328374121338129, -0.07070692628622055, -0.24642670154571533, -0.04041270166635513, -0.19093099236488342, 0.3194950222969055, -0.13725300133228302, -0.03492390364408493, 0.04685390740633011, 0.0672127828001976, 0.06902569532394409, -0.09616927057504654, 0.036653805524110794, -0.1779848337173462, 0.021493328735232353, -0.3616144359111786, 0.3930593430995941, -0.14528408646583557, -0.32269251346588135, -0.07861049473285675, 0.03590874373912811, -0.154484361410141, -0.15567219257354736, 0.30846476554870605, -0.058961186558008194, -0.02151031233370304, 0.2313106805086136, 0.060300812125205994, -0.16989418864250183, -0.005838282871991396, 0.12544819712638855, 0.051852695643901825, 0.14113914966583252, -0.3814893364906311, -0.3912000060081482, 0.19739051163196564, -0.01126063708215952, 0.14131306111812592, 0.0031075789593160152, 0.11312960833311081, 0.08957025408744812, -0.1998308151960373, 0.3266764283180237, -0.3180725872516632, -0.05018872395157814, 0.13426867127418518, -0.37293440103530884, 0.023428838700056076, 0.0651891678571701, -0.17656224966049194, -0.014842557720839977, 0.25171512365341187, 0.47276026010513306, 0.28111347556114197, -0.14025957882404327, -0.0036965978797525167, -0.13842040300369263, 0.14024381339550018, -0.12338871508836746, 0.09424840658903122, -0.017968833446502686, 0.05675347521901131, 0.16915090382099152, 0.061151280999183655, -0.11070527881383896, -0.3336113691329956, 0.0328674279153347, 0.3761788308620453, 0.037998687475919724, 0.1958344578742981, 0.006967424880713224, -0.028111441060900688, -0.13881704211235046, 0.2378654181957245, -0.4669160544872284, -0.01575937122106552, 0.27539029717445374, 0.02000395953655243, 0.2059602290391922, -0.22436021268367767, -0.41250309348106384, 0.04819010943174362, 0.06073274463415146, -0.002675080206245184, 0.14013789594173431, 0.41119319200515747, -0.22799097001552582, -0.7777082324028015, 0.23537085950374603, -0.08129440993070602, 0.009521870873868465, -0.29078036546707153, 0.06646548956632614, -0.2939152419567108, -0.3391765356063843, -0.07557527720928192, -0.2050061970949173, -0.35895776748657227, -0.09814424812793732, 0.3100820779800415, 0.1755019724369049, -0.26317745447158813, 0.31516537070274353, 0.3475988507270813, -0.06424806267023087, -0.07567897439002991, -0.12023967504501343, -0.11547916382551193, -0.20510463416576385, -0.2663135528564453, 0.19594603776931763, 0.062470391392707825, 0.045827656984329224, 0.1699763685464859, -0.11398380994796753, -0.06645815074443817, 0.012989994138479233, -0.5971783995628357, 0.06560199707746506, -0.21219372749328613, 0.12071485817432404, 0.19330757856369019, 0.11670176684856415, -0.01557545829564333, -0.24160584807395935, 0.22963137924671173, -0.31967055797576904, -0.4370691180229187, -0.05985734984278679, -0.15931491553783417, 0.1028263121843338, -0.3726229667663574, -0.15481406450271606, -0.19046710431575775, -0.3148065507411957, 0.18479716777801514, 0.05594158545136452, 0.016165263950824738, 0.3104844093322754, 0.16408386826515198, 0.09337370097637177, -0.31759706139564514, 0.046976834535598755, -0.024412432685494423, -0.15497812628746033, 0.16934219002723694, -0.22494111955165863, -0.4008028507232666, 0.03340631723403931, 0.010663220658898354, 0.09757208824157715, -0.31472599506378174, -0.41043248772621155, -0.3181374967098236, -0.04039352387189865, 0.5853020548820496, 0.36855459213256836, -0.07700593024492264, 0.2899484634399414, 0.1316106617450714, -0.29708898067474365, -0.05238284170627594, -0.30681106448173523, 0.03303595259785652, -0.18842154741287231, 0.023134231567382812, -0.1692144274711609, 0.08825995773077011, -0.0709628015756607, 0.6686912178993225, -0.3755647540092468, -0.12220059335231781, 0.5347418189048767, -0.04926159232854843, 0.3575071692466736, 0.016934126615524292, -0.016253579407930374, 0.06151285767555237, 0.06712161749601364, 0.2661391794681549, 0.1894720047712326, -0.10995221883058548, -0.41918402910232544, -0.04548152908682823, -0.41664794087409973, -0.03615729883313179, -0.2257390022277832, -0.005376274697482586, 0.5628572702407837, -0.014067935757339, 0.1647188365459442, 0.012068076059222221, 0.017396844923496246, -0.26951563358306885, 0.259431391954422, 0.0008522072457708418, -0.1660766899585724, -0.06064867973327637, -0.1289086937904358, -0.06384291499853134, -0.31012287735939026, 0.05701451003551483, 0.23506516218185425, -0.057089339941740036, -0.02457180991768837, -0.25837981700897217, 0.13420553505420685, -0.10568061470985413, 0.40050357580184937, 0.29346245527267456, 0.16656452417373657, 0.2135397046804428, 0.07015294581651688, -0.20364244282245636, -0.17049086093902588, -0.15568454563617706, -0.021195655688643456, 0.38357123732566833, 0.05286065861582756, -0.43895798921585083, -0.17544260621070862, 0.30047670006752014, 0.2820097506046295, 0.0027456926181912422, -0.015315163880586624, -0.5284619331359863, -0.21852357685565948, -0.1631639301776886, 0.12464360147714615, 0.09851899743080139, 0.23085255920886993, -0.18326765298843384, 0.062419675290584564, 0.038094956427812576, -0.11953483521938324, -0.18242551386356354, 0.37105274200439453, 0.03099566325545311, -0.13675668835639954, -0.007448083255439997, -0.08815360069274902, -0.03576624020934105, -0.05791807919740677, 0.3514459729194641, 0.04640771448612213, -0.2605159878730774, -0.1223318800330162, 0.22316589951515198, 0.052323296666145325, 0.1710091382265091, 0.005761932116001844, 0.19163133203983307, -0.12438049167394638, 0.028149984776973724, 0.11987563222646713, 0.1390531212091446, 0.34975335001945496, -0.03504841402173042, 0.20926450192928314, 0.2415168583393097, 0.3253234326839447, -0.05782635509967804, 0.06410128623247147, -0.03398345783352852, 0.23010459542274475, -0.1437181979417801, 0.22098539769649506, 0.04516548663377762, 0.8207979202270508, 0.033035267144441605, 0.27022454142570496, 0.6261538863182068, -0.23622384667396545, 0.32509079575538635, 0.11724347621202469, 0.20002779364585876, -0.35811761021614075, 0.0033048733603209257, 0.26008689403533936, -0.022862160578370094, 0.08475162833929062, -0.11780945211648941, 0.018181946128606796, 0.02878069505095482, 0.11126548796892166, -0.00928033608943224, 0.024855472147464752, 0.17817819118499756, 0.12078703194856644, -0.012758089229464531, -0.3865143954753876, 0.18476589024066925, -0.009846162982285023, 0.24345442652702332, -0.17259317636489868, -0.3018135130405426, 0.2809738218784332, -0.3456582725048065, 0.004491227678954601, 0.3744014501571655, 0.017819689586758614, 0.1027279645204544, 0.26069605350494385, -0.20440396666526794, -0.11828338354825974, 0.08586229383945465, -0.0166330449283123, -0.09522880613803864, -0.11010465025901794, 0.30508753657341003, 0.07270043343305588, -0.25838735699653625, -0.14428088068962097, 0.3166056275367737, 0.056027721613645554, -0.2428622841835022, -0.3549966514110565, 0.20141354203224182, 0.04693548381328583, -0.023746630176901817, -0.16755317151546478, 0.031503770500421524, -0.015252386219799519, -0.04136694222688675, 0.14999791979789734, -0.046761732548475266, 0.10183894634246826, -0.2062680423259735, 0.25746551156044006, 0.055767323821783066, -0.02198721654713154, -0.031620047986507416, 0.21303777396678925, -0.17930281162261963, -0.26444822549819946, 0.42023324966430664, -0.10429442673921585, 0.06948179751634598, 0.3385538160800934, 0.383792906999588, -0.31168240308761597, -0.21220268309116364, -0.227796733379364, 0.0619230717420578, -0.5709691047668457, -0.007539186626672745, 0.2905119061470032, -0.1169244572520256, 0.05153850466012955, 0.3112248182296753, -0.018990539014339447, -0.0013940025819465518, 0.05556574463844299, -0.03047218732535839, -0.1131913810968399, 0.1001548245549202, -0.057381805032491684, -0.016594670712947845, 0.43993818759918213, 0.43645671010017395, 0.14728353917598724, -0.10395670682191849, -0.41132962703704834, 0.06733238697052002, -0.11255083978176117, 0.13810110092163086, -0.2909933924674988, -0.23182541131973267, 0.236001119017601, 0.12901118397712708, 0.27401676774024963, 0.08681847900152206, -0.11107685416936874, -0.3384961783885956, -0.1322937160730362, 0.001845601829700172, -0.004881592001765966, -0.07170969247817993, 0.1792273223400116, 0.2255893349647522, 0.08202768862247467, 0.12440256029367447, 0.30968931317329407, -0.029508577659726143, -0.15038886666297913, 0.2898210287094116, 0.1425183266401291, 0.03530927374958992, 0.14658275246620178, -0.2073168307542801, -0.14824682474136353, 0.27730733156204224, 0.11305424571037292, -0.028623778373003006, -0.14407239854335785, 0.026836780831217766, 0.29788243770599365, -0.06214229762554169, -0.11099617183208466, 0.17891162633895874, 0.13441705703735352, -0.22989900410175323, -0.32431745529174805, -0.2257211059331894, 0.2501014769077301, 0.1445123553276062, -0.22579659521579742, -0.17278797924518585, 0.38195323944091797, 0.34309622645378113, -0.49434328079223633, -0.09078222513198853, -0.031652625650167465, 0.13632355630397797, 0.08021793514490128, 0.035016581416130066, -0.019927721470594406, -0.0952979028224945, 0.1967449188232422, 0.37013769149780273, 0.15144379436969757, 0.022352365776896477, -0.2284720242023468, 0.07449965924024582, -0.2980051338672638, -0.12117180228233337, 0.4549674689769745, 0.14979873597621918, 0.24901022017002106, 0.024707479402422905, -0.1215815618634224, 0.05981263145804405, -0.29833897948265076, 0.17507030069828033, -0.16130664944648743, -0.13639234006404877, -0.11715681850910187, 0.37931469082832336, 0.2954328656196594, -0.1782369315624237, 0.1823403239250183, 0.40031662583351135, 0.274502694606781, -0.13605345785617828, -0.051578059792518616, 0.6059241890907288, -0.1846618503332138, -0.04627503082156181, -0.06225423514842987, 0.12437956035137177, 0.03859161213040352, 0.23326753079891205, -0.03192318603396416, 0.04914737120270729, 0.20328931510448456, 0.0685301348567009, -0.18216511607170105, -0.358214408159256, 0.01035457942634821, 0.0803234875202179, 0.2148052155971527, -0.022547859698534012, 0.29840344190597534, 0.2142089158296585, -0.19256354868412018, -0.1964106559753418, 0.29846832156181335, 0.43374234437942505, 0.18355536460876465, -0.05435976758599281, -0.1605570912361145, -0.2027057707309723, 0.032856572419404984, -0.20842742919921875, 0.17026254534721375, 0.221586212515831, 0.5038285255432129, 0.15465886890888214, 0.1907961368560791, -0.37055662274360657, 0.03324045240879059, 0.1691540777683258, -0.024702347815036774, 0.06291385740041733, 0.06388411670923233, -0.029771214351058006, -0.2653670310974121, -0.36808404326438904, -0.15423032641410828, -0.3825879693031311, 0.2647897005081177, 0.09803900122642517, 0.264937162399292, -0.015040810219943523, -0.48611944913864136, 0.14171935617923737, 0.18460097908973694, 0.6637269854545593, 0.20696528255939484, 0.2684611678123474, -0.10883880406618118, -0.09988810867071152, -0.43463200330734253, 0.3114921450614929, -0.30653539299964905, 0.04218004643917084, -0.052269622683525085, 0.021455230191349983, -0.10136402398347855, 0.22825832664966583, 0.004561471287161112, 0.07578156888484955, -0.09980508685112, -0.23230676352977753, -0.3131773769855499, 0.317243367433548, 0.08761798590421677, -0.26024413108825684, 0.10488629341125488, -0.1456598937511444, 0.23332525789737701, -0.4985126554965973, 0.25983962416648865, -0.2432783842086792, -0.009071585722267628, -0.18881402909755707, 0.31205081939697266, 0.22287271916866302, 0.12769711017608643, 0.15133188664913177, -0.013323023915290833, -0.06283216923475266, -0.14174756407737732, -0.3774043321609497, -0.24694544076919556, 0.14448007941246033, -0.008526662364602089, 0.165446937084198, 0.0690765306353569, -0.11877419799566269, -0.20459893345832825, 0.4295693337917328, -0.0040789199993014336, 0.07801578938961029, 0.16642017662525177, 0.25787219405174255, 0.11757771670818329, -0.07065609097480774, -0.22398661077022552, 0.05184879153966904, 0.020097792148590088, -0.20555095374584198, -0.43417155742645264, -0.5926015973091125, 0.347640722990036, -0.455038458108902, 0.05701924487948418, 0.06460556387901306, 0.14823949337005615, 0.1230560764670372, -0.3943465054035187, -0.47165772318840027, 0.3042541742324829, 0.10116883367300034, 0.19490936398506165, -0.2898896038532257, 0.18866701424121857, 0.0005850797751918435, -0.08152282983064651, -0.05912531912326813, 0.11336761713027954, 0.2314944565296173, -0.22647973895072937, 0.089316226541996, -0.1714511215686798 ]
https://github.com/huggingface/datasets/issues/435
ImportWarning for pyarrow 1.0.0
I dont know if the fix was made but the problem is still present : Instaled with pip : NLP 0.3.0 // pyarrow 1.0.0 OS : archlinux with kernel zen 5.8.5
The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files
31
ImportWarning for pyarrow 1.0.0 The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files I dont know if the fix was made but the problem is still present : Instaled with pip : NLP 0.3.0 // pyarrow 1.0.0 OS : archlinux with kernel zen 5.8.5
[ -0.14631354808807373, -0.08252345025539398, -0.04976484552025795, -0.08211401104927063, 0.15667153894901276, -0.21917743980884552, 0.11781056225299835, 0.41890689730644226, -0.25025320053100586, 0.129067063331604, 0.07649241387844086, 0.28078579902648926, -0.20306481420993805, -0.11709915101528168, 0.060949429869651794, -0.17672710120677948, 0.12942121922969818, 0.26139315962791443, -0.04325764626264572, -0.011817697435617447, -0.11813178658485413, 0.37940698862075806, -0.35793980956077576, 0.44107872247695923, -0.17414666712284088, 0.008025970309972763, 0.1847313940525055, 0.10682300478219986, -0.27454501390457153, -0.7176747918128967, 0.37033557891845703, -0.25565439462661743, 0.11873576790094376, -0.14531782269477844, -0.0001122297762776725, 0.10987027734518051, 0.484483003616333, 0.12642794847488403, 0.2048357129096985, -0.28691744804382324, 0.3934239149093628, -0.7273045778274536, 0.32189199328422546, -0.0929815024137497, -0.0015568217495456338, -0.3426618278026581, 0.2967846989631653, 0.7822844982147217, 0.3996647894382477, 0.17587119340896606, 0.21563982963562012, 0.5306106805801392, 0.3595181405544281, 0.38602402806282043, 0.3381437659263611, -0.23136280477046967, -0.0678989514708519, 0.2951611280441284, 0.05319270119071007, -0.5167247653007507, -0.04438716918230057, 0.15093141794204712, -0.1811765879392624, -0.11926992982625961, 0.016909673810005188, -0.15570451319217682, 0.29614758491516113, -0.2603824734687805, -0.38141074776649475, 0.08686336129903793, -0.20230574905872345, -0.24438896775245667, -0.19004227221012115, -0.09651394188404083, 0.20095445215702057, -0.44927453994750977, 0.37536385655403137, 0.2514258921146393, -0.09266345947980881, 0.2638772428035736, 0.10204903781414032, 0.14376439154148102, -0.20708049833774567, 0.25018420815467834, 0.16161927580833435, 0.7215542793273926, 0.17723460495471954, 0.1274004727602005, 0.1793176531791687, -0.09065315127372742, 0.25332751870155334, 0.1564490646123886, -0.1677653044462204, 0.24138841032981873, -0.09136157482862473, -0.12017882615327835, 0.10222925245761871, 0.39620301127433777, 0.04922375828027725, -0.17263145744800568, -0.1069488376379013, -0.03383024036884308, 0.20057912170886993, 0.16126564145088196, 0.12806837260723114, -0.026097802445292473, 0.2030239999294281, -0.23246604204177856, 0.2462066411972046, 0.15907393395900726, 0.14450912177562714, 0.0729057565331459, -0.025189142674207687, -0.38793089985847473, 0.14516623318195343, -0.0661642774939537, 0.37075814604759216, -0.19803486764431, -0.2538050711154938, -0.2639266848564148, -0.3639078736305237, 0.01959613710641861, -0.021947411820292473, 0.127543106675148, -0.11622007936239243, 0.1894853115081787, 0.05785314366221428, 0.19391629099845886, -0.30546891689300537, -0.18740038573741913, -0.04253978654742241, 0.11297682672739029, -0.35204842686653137, -0.01354768592864275, 0.08328093588352203, -0.12247797101736069, 0.49795660376548767, 0.22464101016521454, -0.151814803481102, 0.029738856479525566, 0.07912462204694748, 0.10717152059078217, 0.03686022013425827, 0.26149019598960876, -0.06842389702796936, -0.017973119392991066, 0.0009732066537253559, -0.08202573657035828, -0.23504528403282166, 0.26387548446655273, -0.013376927934587002, -0.27354225516319275, -0.46033990383148193, 0.20244558155536652, -0.3389330506324768, -0.12792548537254333, 0.1861552894115448, 0.06156402826309204, 0.17767426371574402, -0.3524860143661499, 0.041945215314626694, -0.3899521827697754, 0.1260891705751419, 0.013642337173223495, -0.12447825074195862, -0.04134906828403473, -0.007040930911898613, -0.1972956359386444, -0.0320967398583889, -0.422333687543869, 0.3923664391040802, 0.3698946237564087, -0.3251796364784241, -0.022358877584338188, -0.097862109541893, 0.22790312767028809, 0.22458718717098236, -0.3489605784416199, -0.31376081705093384, 0.05636383220553398, -0.1993914246559143, -0.11434636265039444, 0.24629409611225128, -0.02725481428205967, -0.18281373381614685, -0.01914026401937008, -0.040966615080833435, 0.3157663643360138, 0.08235711604356766, 0.13199585676193237, -0.48625481128692627, -0.2567750811576843, 0.14076223969459534, -0.02239011600613594, 0.023717740550637245, -0.15701131522655487, -0.04418109729886055, -0.0445423349738121, 0.34315186738967896, -0.016679007560014725, 0.033964067697525024, -0.014107368886470795, 0.017516568303108215, 0.11120627820491791, -0.1198914498090744, 0.0779937207698822, -0.013468297198414803, -0.02267945557832718, -0.5015804171562195, 0.36835405230522156, -0.19193868339061737, -0.35514459013938904, -0.10083997994661331, -0.007090281695127487, -0.044731151312589645, -0.10069216787815094, 0.16121171414852142, -0.14297673106193542, 0.07151436060667038, 0.25341466069221497, -0.0067577301524579525, -0.3259926438331604, -0.025591202080249786, 0.10060758143663406, 0.0014617320848628879, 0.11086839437484741, -0.3691422641277313, -0.5070379376411438, 0.028635675087571144, 0.20586168766021729, 0.2018127143383026, 0.11197729408740997, 0.09819497168064117, -0.030325526371598244, -0.30821576714515686, 0.28590741753578186, -0.4791697859764099, -0.19523145258426666, 0.11722774803638458, -0.4769579768180847, 0.04365126043558121, -0.014215958304703236, -0.16871750354766846, 0.10052879899740219, 0.4360944926738739, 0.44999760389328003, 0.1965031921863556, -0.05310342460870743, -0.14988812804222107, -0.05458052083849907, 0.14065241813659668, -0.16405314207077026, 0.025962727144360542, -0.0036242648493498564, 0.1470000147819519, 0.19470199942588806, 0.10014140605926514, -0.010952943004667759, -0.12981359660625458, -0.12075474858283997, 0.3967897891998291, 0.06221085041761398, 0.055340398102998734, 0.030193030834197998, 0.012403858825564384, -0.11788296699523926, 0.33874645829200745, -0.3547403812408447, 0.08355588465929031, 0.30392447113990784, -0.0718049481511116, 0.3368053436279297, -0.18030643463134766, -0.2905808389186859, 0.15463705360889435, 0.16772663593292236, 0.08243701606988907, 0.2134036421775818, 0.40928518772125244, -0.1627025008201599, -0.6508201956748962, 0.1368493139743805, -0.06870416551828384, 0.1575959473848343, -0.19141113758087158, 0.0635443925857544, -0.27767959237098694, -0.40181490778923035, -0.18635164201259613, -0.29300639033317566, -0.33647841215133667, -0.1061573326587677, 0.16844327747821808, 0.34113141894340515, -0.07111446559429169, 0.32803261280059814, 0.338456392288208, -0.17547081410884857, -0.24441687762737274, -0.0481756292283535, -0.15087097883224487, -0.2504647672176361, -0.37521976232528687, 0.06708279997110367, 0.20004548132419586, 0.1900671273469925, 0.16156861186027527, -0.14503122866153717, -0.22012172639369965, 0.08467260003089905, -0.49073389172554016, 0.007579287514090538, -0.2482960969209671, 0.19811300933361053, 0.19546818733215332, -0.009468114003539085, -0.12593255937099457, -0.29106634855270386, 0.15336643159389496, -0.3169592320919037, -0.37137630581855774, -0.1456783264875412, -0.34502890706062317, 0.2003510445356369, -0.30355921387672424, -0.03708428144454956, -0.43369176983833313, -0.27298444509506226, 0.18493394553661346, 0.08836834132671356, 0.07821039110422134, 0.322136789560318, 0.0923091471195221, 0.15174278616905212, -0.27811360359191895, -0.16424337029457092, 0.12563958764076233, -0.0698496401309967, 0.19683454930782318, -0.036219194531440735, -0.22000549733638763, 0.14047160744667053, -0.026114968582987785, 0.1026240885257721, -0.23047061264514923, -0.425800085067749, -0.2739190459251404, -0.028199268504977226, 0.616557776927948, 0.24065034091472626, -0.10698055475950241, 0.43140754103660583, 0.0798543244600296, -0.15544486045837402, 0.015634659677743912, -0.1081206277012825, -0.019561097025871277, -0.21965889632701874, 0.1145348846912384, -0.013499344699084759, 0.16430507600307465, 0.028432773426175117, 0.752427875995636, -0.20219825208187103, -0.08653578907251358, 0.5082696080207825, -0.04274909943342209, 0.2506537437438965, 0.15850938856601715, 0.011620988138020039, -0.07519029080867767, 0.24296320974826813, 0.15515758097171783, 0.016474172472953796, -0.11867238581180573, -0.31673747301101685, 0.10065900534391403, -0.41920995712280273, 0.00811078306287527, -0.07880764454603195, -0.003751585027202964, 0.42235419154167175, 0.1017470434308052, 0.26470428705215454, -0.10919362306594849, -0.05164641514420509, -0.41518500447273254, 0.18224099278450012, 0.13365431129932404, -0.1440279483795166, -0.004065006971359253, -0.06609705835580826, -0.3085954785346985, -0.438986212015152, 0.015116896480321884, 0.3585352599620819, -0.0007140733068808913, 0.01564094051718712, -0.13331444561481476, 0.28482580184936523, -0.06494130939245224, 0.24608123302459717, 0.14472278952598572, 0.08270857483148575, 0.23157738149166107, 0.16171781718730927, -0.24956484138965607, -0.1933175027370453, -0.113594189286232, -0.03079204633831978, 0.48786887526512146, 0.03402218595147133, -0.3158232867717743, -0.19146493077278137, 0.6278873085975647, 0.2776317596435547, 0.007830724120140076, -0.15954408049583435, -0.5531589984893799, -0.3403337001800537, -0.0945030003786087, 0.13572899997234344, 0.0595884844660759, 0.22822453081607819, -0.08561602979898453, 0.14255663752555847, -0.02332940883934498, 0.11384528875350952, -0.24027428030967712, 0.2719140350818634, 0.030583269894123077, -0.14174297451972961, -0.08021412044763565, -0.1551511287689209, -0.22090521454811096, 0.004570417571812868, 0.26990798115730286, 0.22858764231204987, -0.292370080947876, -0.2940797209739685, 0.37493717670440674, 0.04009721428155899, 0.08916731923818588, 0.0762600228190422, 0.19069471955299377, -0.13890324532985687, 0.027994828298687935, 0.1909879446029663, 0.010769844986498356, 0.3302236795425415, 0.009562712162733078, 0.205278217792511, 0.2049923986196518, 0.3583037853240967, 0.07590749859809875, 0.02030513621866703, 0.11601529270410538, 0.06303685903549194, -0.31317591667175293, 0.18937942385673523, 0.11925318092107773, 0.7727363109588623, 0.04688771069049835, 0.27681103348731995, 0.7808108925819397, 0.03812096267938614, 0.38216614723205566, 0.25577595829963684, 0.14067496359348297, -0.3187013566493988, 0.0656810775399208, 0.17765073478221893, -0.0057659815065562725, 0.16087673604488373, -0.1035437360405922, -0.0871678814291954, 0.15066248178482056, 0.31703564524650574, -0.10861096531152725, 0.14549416303634644, 0.17819447815418243, -0.12006568163633347, 0.013112714514136314, -0.45513662695884705, 0.043202728033065796, -0.07286630570888519, 0.3411376178264618, -0.17381340265274048, -0.30980977416038513, 0.26176589727401733, -0.24209794402122498, -0.06314843893051147, 0.2948921024799347, 0.07290267944335938, 0.1800822615623474, 0.18674740195274353, -0.09796638786792755, -0.01696285605430603, 0.22307977080345154, -0.004703457932919264, -0.16083784401416779, -0.024356722831726074, 0.2252330631017685, 0.07776203006505966, -0.3879627287387848, -0.07551835477352142, 0.33318233489990234, 0.05397244170308113, -0.2730441093444824, -0.3842211663722992, 0.11627832800149918, 0.004766685888171196, 0.022651895880699158, -0.05306370183825493, -0.00946117378771305, 0.04676269367337227, 0.09045255184173584, 0.04588373005390167, -0.060307860374450684, 0.05284499377012253, -0.12393748760223389, 0.17231890559196472, -0.008558573201298714, -0.07097163796424866, -0.02104879543185234, 0.05375674366950989, -0.37237119674682617, -0.101307712495327, 0.39566701650619507, 0.017361663281917572, 0.08255685865879059, 0.5533762574195862, 0.1342073529958725, -0.17259809374809265, -0.16856274008750916, 0.08882085233926773, -0.12049324810504913, -0.5595659017562866, -0.06490826606750488, 0.3915901780128479, 0.005368536803871393, 0.05243118107318878, 0.3142743706703186, 0.1729957014322281, 0.07282567024230957, -0.14096425473690033, -0.15776270627975464, -0.159902423620224, 0.23119774460792542, -0.03034849464893341, -0.22180390357971191, 0.33061647415161133, 0.43561840057373047, 0.1888478696346283, -0.24541589617729187, -0.29711878299713135, 0.024344587698578835, -0.13341690599918365, 0.22125986218452454, -0.24712832272052765, -0.10504110157489777, 0.05766009911894798, 0.08808955550193787, 0.11661427468061447, 0.03580377250909805, -0.05574941635131836, -0.2365223467350006, -0.18903625011444092, 0.09930345416069031, 0.08744511008262634, -0.17119069397449493, 0.0329069048166275, 0.14433352649211884, 0.17435544729232788, 0.1258203089237213, -0.025264885276556015, 0.02631557732820511, -0.07805800437927246, 0.3505368232727051, 0.15152186155319214, 0.18355950713157654, -0.08832287043333054, -0.043366145342588425, -0.33939167857170105, 0.2155548334121704, 0.0755549743771553, 0.1742340475320816, 0.05594702810049057, 0.08062677830457687, 0.10382698476314545, -0.22359400987625122, -0.13624350726604462, 0.04653853178024292, 0.06848122179508209, -0.2091193050146103, -0.30514559149742126, -0.12131787836551666, 0.15999506413936615, 0.22683574259281158, -0.2400154173374176, -0.21933063864707947, 0.3959600031375885, 0.2351081818342209, -0.3919549584388733, 0.025628194212913513, -0.05907975137233734, 0.073211669921875, -0.11733271181583405, -0.031287018209695816, 0.044725075364112854, -0.21965709328651428, 0.29549485445022583, 0.2880697250366211, 0.1427745372056961, -0.11839767545461655, -0.11739393323659897, 0.20029596984386444, -0.06274373829364777, -0.036954741925001144, 0.40635162591934204, 0.04679029807448387, 0.3146165609359741, -0.11460563540458679, -0.12961886823177338, 0.26572269201278687, -0.2911001741886139, 0.29437583684921265, -0.3425344228744507, -0.16961845755577087, -0.22829608619213104, 0.3689380884170532, 0.24356304109096527, -0.24195314943790436, 0.28544172644615173, 0.37301233410835266, 0.25428828597068787, -0.11983360350131989, 0.0358053557574749, 0.6180189847946167, -0.14890387654304504, -0.12169687449932098, -0.25725141167640686, 0.20553706586360931, 0.0619051493704319, 0.25561025738716125, 0.02129841037094593, 0.19016021490097046, 0.2496863156557083, 0.20222671329975128, -0.25797274708747864, -0.35246604681015015, -0.05198853090405464, 0.33205461502075195, 0.20056000351905823, -0.13076820969581604, 0.2552773058414459, 0.12831933796405792, -0.19246624410152435, -0.25677233934402466, 0.45308026671409607, 0.6163253784179688, 0.26572123169898987, 0.10320226848125458, -0.22096601128578186, -0.267363041639328, 0.0752575695514679, -0.18730324506759644, 0.2475881725549698, 0.2774345576763153, 0.7746661305427551, -0.010769525542855263, 0.09448087215423584, -0.2811930477619171, -0.011721491813659668, 0.15501704812049866, -0.24542362987995148, -0.014271330088376999, -0.015977881848812103, 0.05520845949649811, -0.31997111439704895, -0.22739200294017792, 0.11109448969364166, -0.32477113604545593, 0.39305782318115234, 0.09140840917825699, 0.3334455192089081, -0.0036910821218043566, -0.4467836320400238, 0.0685935690999031, 0.09602595865726471, 0.4824591279029846, 0.2509268522262573, 0.13222059607505798, -0.23483853042125702, -0.17131637036800385, -0.5863727331161499, 0.2388717383146286, -0.4293243885040283, -0.06943727284669876, 0.11203783750534058, -0.10984990745782852, -0.3579771816730499, 0.2536030113697052, -0.12136497348546982, 0.15745480358600616, -0.11950250715017319, -0.21464011073112488, -0.18706601858139038, 0.3027912378311157, 0.21912707388401031, -0.23421946167945862, -0.028915584087371826, -0.25435060262680054, 0.25483131408691406, -0.590112566947937, 0.08147980272769928, -0.2319287359714508, -0.034266237169504166, -0.06908363103866577, 0.5230579376220703, 0.1959623247385025, 0.1945033222436905, 0.30078643560409546, 0.0861574113368988, 0.12749814987182617, -0.19842134416103363, -0.39191097021102905, -0.3851025104522705, 0.2205192595720291, -0.0796591117978096, 0.15767449140548706, -0.14546899497509003, -0.08244633674621582, -0.2672024667263031, 0.4386243224143982, -0.19763407111167908, 0.03266771510243416, 0.2748302221298218, 0.15249912440776825, 0.04484792798757553, 0.07655052095651627, -0.14383822679519653, -0.014223909005522728, 0.09465926140546799, -0.19707618653774261, -0.531470775604248, -0.45984217524528503, 0.2082962691783905, -0.5019975304603577, 0.05285166576504707, 0.020666183903813362, 0.23187938332557678, 0.1214504987001419, -0.43939974904060364, -0.4035781919956207, 0.16222403943538666, 0.27161705493927, 0.22007401287555695, -0.16768795251846313, 0.24313697218894958, 0.19530916213989258, 0.024698562920093536, -0.012545335106551647, -0.14467117190361023, 0.12019599974155426, -0.3154444396495819, 0.1479802280664444, -0.2379940152168274 ]
https://github.com/huggingface/datasets/issues/433
How to reuse functionality of a (generic) dataset?
Hi @ArneBinder, we have a few "generic" datasets which are intended to load data files with a predefined format: - csv: https://github.com/huggingface/nlp/tree/master/datasets/csv - json: https://github.com/huggingface/nlp/tree/master/datasets/json - text: https://github.com/huggingface/nlp/tree/master/datasets/text You can find more details about this way to load datasets here in the documentation: https://huggingface.co/nlp/loading_datasets.html#from-local-files Maybe your brat loading script could be shared in a similar fashion?
I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format? In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library.
56
How to reuse functionality of a (generic) dataset? I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format? In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library. Hi @ArneBinder, we have a few "generic" datasets which are intended to load data files with a predefined format: - csv: https://github.com/huggingface/nlp/tree/master/datasets/csv - json: https://github.com/huggingface/nlp/tree/master/datasets/json - text: https://github.com/huggingface/nlp/tree/master/datasets/text You can find more details about this way to load datasets here in the documentation: https://huggingface.co/nlp/loading_datasets.html#from-local-files Maybe your brat loading script could be shared in a similar fashion?
[ -0.16599513590335846, -0.1904750019311905, 0.11394311487674713, 0.38088858127593994, 0.21837162971496582, -0.0047783758491277695, 0.1885107457637787, 0.11226724088191986, -0.11108913272619247, -0.21326860785484314, -0.19556593894958496, 0.28855177760124207, -0.039795417338609695, 0.5394514203071594, 0.1926315724849701, -0.13461175560951233, -0.21173569560050964, 0.21866188943386078, -0.11622867733240128, -0.026285160332918167, 0.03940877690911293, -0.19431614875793457, 0.06868302822113037, -0.11595043540000916, -0.3702637851238251, 0.1318923681974411, -0.23842865228652954, -0.0179266519844532, 0.2592286169528961, -0.23462752997875214, 0.5442937612533569, 0.34451791644096375, 0.45950257778167725, 0.2523486018180847, -0.00012519613665062934, 0.033016055822372437, -0.03918498754501343, -0.14482833445072174, -0.29244762659072876, -0.1255931407213211, -0.21343541145324707, -0.22338901460170746, 0.08980293571949005, -0.24378299713134766, -0.32223451137542725, -0.38772061467170715, 0.15890945494174957, -0.5658189058303833, 0.457459419965744, -0.09784512221813202, 0.03066236339509487, -0.08066857606172562, -0.20104508101940155, -0.10277746617794037, -0.1274455189704895, 0.39953285455703735, -0.004882721696048975, 0.40215864777565, 0.6236602067947388, 0.3071170151233673, 0.11425888538360596, 0.018616454675793648, 0.189225971698761, 0.09230455756187439, 0.29610350728034973, -0.13040310144424438, -0.032115425914525986, 0.037383317947387695, 0.0351920947432518, 0.37314173579216003, 0.9288985133171082, -0.38710087537765503, -0.057318639010190964, -0.10395044088363647, -0.0022315154783427715, -0.29162681102752686, -0.27408963441848755, 0.17821179330348969, 0.17065313458442688, 0.1169879287481308, -0.2853209674358368, -0.3464594781398773, -0.2974860370159149, 0.12132138013839722, 0.2955735921859741, 0.024734651669859886, -0.08608013391494751, 0.2227662056684494, -0.20298199355602264, -0.08768929541110992, 0.0028406621422618628, -0.2409486025571823, -0.15466149151325226, 0.04819761961698532, 0.12506625056266785, -0.12669336795806885, -0.4318879246711731, 0.12427812069654465, 0.3226204514503479, 0.4385857582092285, 0.3070446848869324, 0.24883614480495453, -0.347571462392807, 0.05439051240682602, 0.43373075127601624, 0.07278767228126526, 0.39208507537841797, 0.2755160629749298, 0.08987518399953842, 0.2174171358346939, -0.4256957471370697, -0.16050316393375397, -0.47328078746795654, 0.4096362590789795, 0.2828022539615631, -0.04783995449542999, 0.025860683992505074, -0.24131833016872406, -0.005771369207650423, -0.05537942796945572, -0.31466999650001526, -0.17108610272407532, 0.22007325291633606, 0.07878106832504272, -0.12681923806667328, 0.19432277977466583, -0.07608986645936966, 0.25407809019088745, -0.06054802983999252, -0.3372289836406708, 0.0072380960918962955, 0.03850163519382477, -0.3324471712112427, 0.17061839997768402, 0.3277174234390259, -0.40357279777526855, 0.20550090074539185, 0.30746808648109436, -0.14984557032585144, -0.11529836058616638, 0.36843594908714294, 0.11043151468038559, -0.2815556824207306, -0.5091329216957092, -0.15930761396884918, 0.09367813169956207, 0.21872174739837646, 0.1501328945159912, -0.33803433179855347, 0.03354974836111069, -0.12402761727571487, -0.332288533449173, -0.1301245391368866, 0.015854379162192345, -0.2962241470813751, 0.031348563730716705, -0.10646578669548035, 0.42954307794570923, -0.0012111675459891558, -0.3559825122356415, -0.21097970008850098, -0.1043991893529892, -0.2914380133152008, -0.068079374730587, 0.16570255160331726, 0.25905880331993103, -0.5212162733078003, -0.12868976593017578, -0.11514274030923843, 0.0005080300034023821, 0.41492995619773865, 0.24992336332798004, -0.4169624447822571, 0.21721205115318298, -0.12380588799715042, -0.18360541760921478, 0.4553338885307312, -0.07979529350996017, -0.010838903486728668, -0.12291937321424484, 0.20099152624607086, 0.1629827916622162, 0.08261723071336746, 0.0667770728468895, 0.1893795132637024, -0.24760253727436066, -0.34426993131637573, 0.5017468333244324, 0.10475199669599533, -0.24573206901550293, -0.07677202671766281, -0.21225754916667938, 0.11834993213415146, 0.03983665630221367, -0.23080997169017792, 0.13012927770614624, 0.08505534380674362, 0.2706215977668762, 0.02012377791106701, -0.2445555329322815, 0.11472359299659729, -0.13402777910232544, 0.021021084859967232, 0.3941361904144287, 0.10710109770298004, -0.24272647500038147, -0.5016250610351562, 0.1725224256515503, -0.3441230058670044, -0.27799633145332336, 0.5025936365127563, -0.5051971077919006, -0.375637024641037, -0.24389737844467163, -0.14941711723804474, -0.02312229946255684, 0.011769020929932594, 0.5268940925598145, 0.1075819879770279, -0.07938393950462341, -0.10466369241476059, 0.11273344606161118, -0.11624481528997421, -0.020603233948349953, -0.09465093165636063, 0.2827683389186859, 0.13378320634365082, 0.0327417254447937, 0.08084997534751892, 0.536993145942688, 0.03915189579129219, -0.052233144640922546, 0.16951002180576324, 0.2841658294200897, 0.13770818710327148, 0.17230649292469025, 0.08901792019605637, 0.11356084048748016, 0.12533463537693024, 0.12432463467121124, 0.415735125541687, -0.06233926862478256, 0.3338622450828552, -0.1436806619167328, -0.4933605492115021, 0.23440535366535187, 0.08539850264787674, 0.003241143189370632, 0.09422837197780609, -0.09903495758771896, 0.12699028849601746, -0.1194886863231659, -0.1638171225786209, -0.1160493716597557, -0.161851167678833, 0.16686294972896576, -0.04906172677874565, 0.33707311749458313, -0.3186073899269104, -0.05876905098557472, 0.23349611461162567, -0.16766679286956787, 0.21270515024662018, -0.12482964247465134, -0.1789679378271103, -0.11506868898868561, 0.37555229663848877, -0.16962964832782745, 0.08149273693561554, 0.051055241376161575, 0.2505187392234802, -0.009339454583823681, -0.07317349314689636, 0.059673894196748734, 0.24544914066791534, -0.19965513050556183, 0.19396883249282837, -0.2038094848394394, 0.12295303493738174, 0.07256976515054703, 0.040291883051395416, -0.05329201743006706, 0.28826817870140076, 0.03535177931189537, -0.10955687612295151, 0.17360606789588928, -0.7263830304145813, -0.295549213886261, -0.36417949199676514, 0.030819259583950043, 0.0220964252948761, 0.03434876352548599, -0.2832490801811218, 0.05230563506484032, 0.12935134768486023, 0.1510516256093979, 0.10382645577192307, 0.521967351436615, -0.3055051863193512, -0.08181747794151306, 0.054411448538303375, -0.32738420367240906, -0.3867364823818207, 0.013374402187764645, 0.45937299728393555, 0.3856516182422638, 0.4869644343852997, -0.02038326859474182, 0.07977566123008728, -0.4213523268699646, -0.22472679615020752, 0.20085856318473816, 0.22267282009124756, -0.07481464743614197, 0.17452049255371094, 0.016682995483279228, -0.37185195088386536, -0.28647539019584656, 0.19825826585292816, 0.11779755353927612, 0.2160823941230774, -0.10235050320625305, -0.4804207384586334, 0.16403791308403015, -0.17671531438827515, -0.04174979031085968, -0.07909207046031952, -0.20075996220111847, 0.2851945757865906, -0.005826922599226236, -0.030238669365644455, 0.37051862478256226, -0.27988201379776, 0.20288509130477905, -0.1104385033249855, 0.2872951328754425, -0.23973196744918823, -0.24744512140750885, 0.26289430260658264, -0.14475156366825104, -0.14902879297733307, -0.14190739393234253, -0.33198490738868713, 0.15676060318946838, 0.5356481671333313, -0.2468816339969635, -0.3932580053806305, -0.10057548433542252, -0.2145649641752243, 0.29229021072387695, 0.22706899046897888, 0.08910750597715378, 0.008878221735358238, 0.1633802205324173, -0.03813738748431206, -0.11594928056001663, 0.24373288452625275, -0.08338693529367447, 0.1644110232591629, 0.4508982300758362, 0.04242634028196335, 0.22400018572807312, 0.32124224305152893, 0.21811740100383759, -0.47165897488594055, 0.47672805190086365, -0.10400363802909851, 0.426432728767395, 0.032202884554862976, 0.04942358285188675, 0.24937503039836884, -0.09989546984434128, 0.1182437464594841, 0.22403812408447266, 0.019833186641335487, 0.14883609116077423, -0.1424524337053299, 0.08322262763977051, -0.06747723370790482, -0.4802444875240326, 0.1267700046300888, -0.26302891969680786, 0.5065645575523376, 0.20040979981422424, -0.166642963886261, -0.2821268141269684, 0.011812226846814156, 0.20481449365615845, 0.11156460642814636, 0.15186935663223267, 0.11141430586576462, -0.3922575116157532, 0.11459080874919891, 0.17443466186523438, 0.5108850598335266, 0.0906025692820549, 0.027852604165673256, 0.2118864506483078, 0.00013767665950581431, -0.00550278602167964, 0.06444086134433746, -0.01071604248136282, -0.25851011276245117, 0.06176203116774559, 0.01705031469464302, -0.23409344255924225, -0.3129955530166626, 0.0051868208684027195, -0.14821068942546844, 0.21566753089427948, 0.06138388440012932, 0.0937310978770256, -0.5858942270278931, -0.11343444138765335, 0.30568012595176697, 0.40819159150123596, -0.10276465862989426, 0.15593017637729645, 0.24475891888141632, -0.08407136052846909, -0.3423594832420349, -0.1207064539194107, -0.2220967411994934, 0.10915926843881607, 0.07748407870531082, 0.1068614274263382, -0.40605178475379944, 0.178998202085495, 0.3230229914188385, 0.14360159635543823, 0.5515430569648743, 0.1673402339220047, 0.10250318795442581, 0.14226700365543365, 0.06296813488006592, 0.12545661628246307, 0.5182176828384399, -0.2743416130542755, -0.4875456988811493, -0.11233268678188324, 0.05273238569498062, 0.3552326261997223, 0.1335088014602661, 0.26867133378982544, -0.2644346058368683, -0.20753295719623566, -0.3050483167171478, -0.24659648537635803, 0.28150105476379395, -0.02144644781947136, -0.008953822776675224, -0.43677809834480286, -1.0036548376083374, 0.17732661962509155, 0.23417559266090393, -0.022163862362504005, 0.1960063874721527, 0.04429592192173004, -0.056162845343351364, 0.08397141098976135, 0.14821617305278778, 0.8185901641845703, -0.23422478139400482, 0.2623123824596405, 0.2913030982017517, 0.29998698830604553, 0.6729319095611572, -0.15923184156417847, -0.2336210161447525, -0.31550636887550354, 0.07766426354646683, 0.012422340922057629, -0.05489085242152214, 0.4027074873447418, 0.2620363235473633, -0.17704959213733673, 0.3238629102706909, 0.23287640511989594, 0.41491609811782837, 0.04721483588218689, 0.20623482763767242, -0.4215633273124695, -0.2640071213245392, 0.0007390056271106005, -0.02666524052619934, -0.31076309084892273, -0.022258952260017395, -0.22237005829811096, 0.13190685212612152, 0.1768975555896759, 0.10927026718854904, -0.2893410921096802, -0.0679774135351181, -0.21110911667346954, 0.01539603341370821, -0.143398255109787, -0.45984363555908203, 0.4378581643104553, 0.4143344461917877, 0.26069703698158264, 0.2978547215461731, -0.12508565187454224, 0.0351933129131794, -0.13675078749656677, -0.05745960772037506, -0.27233925461769104, 0.05987641215324402, 0.215169295668602, 0.11797615140676498, -0.046216126531362534, 0.12319528311491013, 0.36750686168670654, 0.15010814368724823, -0.19399313628673553, -0.20788933336734772, 0.3192479908466339, -0.34714677929878235, -0.2080497443675995, 0.1136157363653183, 0.011693444103002548, -0.00004790036109625362, -0.03545135632157326, 0.21707095205783844, -0.05859694257378578, 0.036592576652765274, -0.07997950911521912, 0.050631046295166016, -0.011811630800366402, -0.21648162603378296, 0.28624820709228516, -0.24482819437980652, 0.38015371561050415, 0.05343865230679512, 0.09602637588977814, -0.12397643178701401, 0.15428929030895233, 0.20045186579227448, -0.3535529673099518, -0.047287456691265106, 0.048147495836019516, -0.20108138024806976, 0.12576062977313995, 0.24551968276500702, -0.11044979095458984, 0.04162581264972687, 0.10671917349100113, -0.2709900140762329, -0.06219128146767616, 0.25525543093681335, 0.08479335904121399, 0.39133524894714355, 0.03351873159408569, -0.011419500224292278, -0.23393450677394867, -0.0763866975903511, -0.17166101932525635, 0.25200074911117554, 0.2532106339931488, 0.20209798216819763, -0.07556861639022827, 0.06589141488075256, -0.08735661953687668, -0.04374297335743904, -0.0359816700220108, 0.1191648542881012, -0.10458625108003616, -0.03198806941509247, -0.5068334341049194, 0.22024144232273102, -0.020825887098908424, -0.18087327480316162, -0.06647826731204987, -0.3200276792049408, 0.07483277469873428, -0.4403781294822693, 0.1769108921289444, 0.04938323795795441, -0.07204005867242813, 0.21946746110916138, 0.56476891040802, 0.05701962485909462, -0.209733247756958, 0.0016649317694827914, 0.12666894495487213, 0.41001880168914795, 0.3731321692466736, 0.08522482961416245, -0.14603263139724731, -0.11676807701587677, 0.0035765923094004393, 0.2336929440498352, 0.8808074593544006, -0.04255618527531624, 0.2894624173641205, 0.13790927827358246, 0.06675463169813156, 0.16705957055091858, 0.3605259954929352, 0.4735853672027588, -0.09060482680797577, 0.23890754580497742, 0.3097984194755554, 0.002391656395047903, -0.08278435468673706, 0.09480024129152298, 0.1694343537092209, -0.08900672942399979, -0.13276036083698273, 0.3536588251590729, 0.18406273424625397, 0.20662377774715424, -0.15263545513153076, -0.3317943811416626, 0.17108015716075897, 0.050329677760601044, 0.4426058828830719, 0.2776342034339905, 0.012995156459510326, -0.37711459398269653, -0.03324040770530701, 0.3894668519496918, 0.27867525815963745, -0.4481982886791229, 0.2374076396226883, 0.20647358894348145, 0.059775035828351974, 0.2543244957923889, 0.39619186520576477, -0.5807129144668579, -0.010807668790221214, 0.3840746581554413, 0.23699285089969635, 0.35253772139549255, -0.09826656430959702, 0.298210471868515, 0.10656891018152237, 0.02880648896098137, -0.07409480214118958, 0.13535642623901367, -0.02430536039173603, -0.18850558996200562, -0.22557947039604187, -0.3066180646419525, -0.27145156264305115, 0.005142432637512684, -0.28446540236473083, -0.03925931081175804, -0.24307328462600708, -0.005569611210376024, 0.09137976169586182, -0.4289431571960449, 0.08852285146713257, 0.1282109171152115, 0.11098133772611618, -0.027296094223856926, 0.17623896896839142, 0.2643400728702545, -0.2772350609302521, 0.304017573595047, 0.346922367811203, 0.1574384570121765, 0.0013456210726872087, -0.07842104136943817, 0.20379489660263062, -0.2044152170419693, 0.1393669992685318, -0.17199911177158356, 0.08421151340007782, 0.1782960593700409, -0.345836341381073, 0.24693432450294495, -0.017918385565280914, 0.059367381036281586, -0.0808805599808693, -0.09425274282693863, -0.22528909146785736, -0.5750334858894348, 0.4838291108608246, 0.24679367244243622, -0.17666961252689362, 0.19535286724567413, 0.1366724967956543, -0.23763298988342285, -0.41505810618400574, 0.33145034313201904, 0.3181430697441101, -0.012796076014637947, -0.17893262207508087, -0.002914219396188855, 0.1667662411928177, 0.2657192647457123, 0.10690877586603165, -0.10332287102937698, -0.0076267411932349205, -0.32087913155555725, -0.7505286335945129, 0.20088304579257965, -0.15509667992591858, -0.5893999934196472, 0.21481750905513763, -0.1606939136981964, 0.27754974365234375, 0.1601591259241104, -0.2683611512184143, -0.005094595719128847, 0.11152449250221252, -0.1754329651594162, -0.13350822031497955, -0.5121637582778931, -0.015177268534898758, -0.036365725100040436, -0.15689675509929657, -0.36663568019866943, -0.07446465641260147, 0.014649308286607265, -0.13923928141593933, -0.025370052084326744, -0.1672610342502594, 0.1073855459690094, -0.4111948609352112, 0.07960912585258484, 0.08112134039402008, 0.31326669454574585, 0.21240544319152832, -0.10553601384162903, -0.2097654640674591, 0.07142169773578644, 0.02010706625878811, 0.3408656716346741, -0.10468225181102753, 0.09429196268320084, -0.5658503770828247, -0.059827569872140884, -0.2669113874435425, -0.1238190233707428, 0.08611190319061279, 0.1740017533302307, -0.1259278804063797, -0.027449091896414757, -0.35479405522346497, -0.1046491265296936, 0.32444852590560913, 0.6672963500022888, -0.22036691009998322, 0.03891308605670929, -0.08828017860651016, 0.2342381477355957, 0.3661124110221863, -0.21473553776741028, -0.3655216097831726, -0.19023863971233368, 0.07046715170145035, -0.2707989811897278, 0.04724588245153427, -0.35621321201324463, 0.12229764461517334, 0.28291499614715576, -0.03113356977701187, -0.10607949644327164, -0.0718565508723259, 0.19539615511894226, -0.1844017654657364, -0.19833911955356598, 0.45959874987602234, 0.10700447857379913, -0.12658926844596863, -0.013008719310164452, -0.13453060388565063 ]
https://github.com/huggingface/datasets/issues/433
How to reuse functionality of a (generic) dataset?
> Maybe your brat loading script could be shared in a similar fashion? @thomwolf that was also my first idea and I think I will tackle that in the next days. I separated the code and created a real abstract class `AbstractBrat` to allow to inherit from that (I've just seen that the dataset_loader loads the first non abstract class), now `Brat` is very similar in its functionality to https://github.com/huggingface/nlp/tree/master/datasets/text but inherits from `AbstractBrat`. However, it is still not clear to me how to add a specific dataset (as explained in https://huggingface.co/nlp/add_dataset.html) to your repo that uses this format/abstract class, i.e. re-using the `features` entry of the `DatasetInfo` object and `_generate_examples()`. Again, by doing so, the only remaining entries/functions to define would be `_DESCRIPTION`, `_CITATION`, `homepage` and `_URL` (which is all copy-paste stuff) and `_split_generators()`. In a lack of better ideas, I tried sth like below, but of course it does not work outside `nlp` (`AbstractBrat` is currently defined in [datasets/brat.py](https://github.com/ArneBinder/nlp/blob/5e81fb8710546ee7be3353a7f02a3045e9a8351e/datasets/brat/brat.py)): ```python from __future__ import absolute_import, division, print_function import os import nlp from datasets.brat.brat import AbstractBrat _CITATION = """ @inproceedings{lauscher2018b, title = {An argument-annotated corpus of scientific publications}, booktitle = {Proceedings of the 5th Workshop on Mining Argumentation}, publisher = {Association for Computational Linguistics}, author = {Lauscher, Anne and Glava\v{s}, Goran and Ponzetto, Simone Paolo}, address = {Brussels, Belgium}, year = {2018}, pages = {40–46} } """ _DESCRIPTION = """\ This dataset is an extension of the Dr. Inventor corpus (Fisas et al., 2015, 2016) with an annotation layer containing fine-grained argumentative components and relations. It is the first argument-annotated corpus of scientific publications (in English), which allows for joint analyses of argumentation and other rhetorical dimensions of scientific writing. """ _URL = "http://data.dws.informatik.uni-mannheim.de/sci-arg/compiled_corpus.zip" class Sciarg(AbstractBrat): VERSION = nlp.Version("1.0.0") def _info(self): brat_features = super()._info().features return nlp.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, # nlp.features.FeatureConnectors features=brat_features, # If there's a common (input, target) tuple from the features, # specify them here. They'll be used if as_supervised=True in # builder.as_dataset. #supervised_keys=None, # Homepage of the dataset for documentation homepage="https://github.com/anlausch/ArguminSci", citation=_CITATION, ) def _split_generators(self, dl_manager): """Returns SplitGenerators.""" # TODO: Downloads the data and defines the splits # dl_manager is a nlp.download.DownloadManager that can be used to # download and extract URLs dl_dir = dl_manager.download_and_extract(_URL) data_dir = os.path.join(dl_dir, "compiled_corpus") print(f'data_dir: {data_dir}') return [ nlp.SplitGenerator( name=nlp.Split.TRAIN, # These kwargs will be passed to _generate_examples gen_kwargs={ "directory": data_dir, }, ), ] ``` Nevertheless, many thanks for tackling the dataset accessibility problem with this great library!
I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format? In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library.
416
How to reuse functionality of a (generic) dataset? I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format? In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library. > Maybe your brat loading script could be shared in a similar fashion? @thomwolf that was also my first idea and I think I will tackle that in the next days. I separated the code and created a real abstract class `AbstractBrat` to allow to inherit from that (I've just seen that the dataset_loader loads the first non abstract class), now `Brat` is very similar in its functionality to https://github.com/huggingface/nlp/tree/master/datasets/text but inherits from `AbstractBrat`. However, it is still not clear to me how to add a specific dataset (as explained in https://huggingface.co/nlp/add_dataset.html) to your repo that uses this format/abstract class, i.e. re-using the `features` entry of the `DatasetInfo` object and `_generate_examples()`. Again, by doing so, the only remaining entries/functions to define would be `_DESCRIPTION`, `_CITATION`, `homepage` and `_URL` (which is all copy-paste stuff) and `_split_generators()`. In a lack of better ideas, I tried sth like below, but of course it does not work outside `nlp` (`AbstractBrat` is currently defined in [datasets/brat.py](https://github.com/ArneBinder/nlp/blob/5e81fb8710546ee7be3353a7f02a3045e9a8351e/datasets/brat/brat.py)): ```python from __future__ import absolute_import, division, print_function import os import nlp from datasets.brat.brat import AbstractBrat _CITATION = """ @inproceedings{lauscher2018b, title = {An argument-annotated corpus of scientific publications}, booktitle = {Proceedings of the 5th Workshop on Mining Argumentation}, publisher = {Association for Computational Linguistics}, author = {Lauscher, Anne and Glava\v{s}, Goran and Ponzetto, Simone Paolo}, address = {Brussels, Belgium}, year = {2018}, pages = {40–46} } """ _DESCRIPTION = """\ This dataset is an extension of the Dr. Inventor corpus (Fisas et al., 2015, 2016) with an annotation layer containing fine-grained argumentative components and relations. It is the first argument-annotated corpus of scientific publications (in English), which allows for joint analyses of argumentation and other rhetorical dimensions of scientific writing. """ _URL = "http://data.dws.informatik.uni-mannheim.de/sci-arg/compiled_corpus.zip" class Sciarg(AbstractBrat): VERSION = nlp.Version("1.0.0") def _info(self): brat_features = super()._info().features return nlp.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, # nlp.features.FeatureConnectors features=brat_features, # If there's a common (input, target) tuple from the features, # specify them here. They'll be used if as_supervised=True in # builder.as_dataset. #supervised_keys=None, # Homepage of the dataset for documentation homepage="https://github.com/anlausch/ArguminSci", citation=_CITATION, ) def _split_generators(self, dl_manager): """Returns SplitGenerators.""" # TODO: Downloads the data and defines the splits # dl_manager is a nlp.download.DownloadManager that can be used to # download and extract URLs dl_dir = dl_manager.download_and_extract(_URL) data_dir = os.path.join(dl_dir, "compiled_corpus") print(f'data_dir: {data_dir}') return [ nlp.SplitGenerator( name=nlp.Split.TRAIN, # These kwargs will be passed to _generate_examples gen_kwargs={ "directory": data_dir, }, ), ] ``` Nevertheless, many thanks for tackling the dataset accessibility problem with this great library!
[ -0.05277552455663681, -0.018387746065855026, 0.14753185212612152, 0.40424036979675293, 0.21433717012405396, -0.03731599822640419, 0.13150610029697418, 0.10714799165725708, -0.2023019939661026, -0.23726926743984222, -0.1918671429157257, 0.40558943152427673, -0.0635213777422905, 0.5268571376800537, 0.4249489903450012, -0.25872182846069336, -0.19759328663349152, 0.18040381371974945, 0.00042003695853054523, -0.0935179591178894, -0.0021074297837913036, -0.13745920360088348, 0.13697406649589539, -0.09391479939222336, -0.22262942790985107, 0.16698530316352844, -0.2874791622161865, -0.03239041939377785, 0.11071323603391647, -0.25282835960388184, 0.531370222568512, 0.3521874248981476, 0.4683421552181244, 0.2782880663871765, -0.00012507651990745217, 0.017928509041666985, -0.08334651589393616, -0.10716143250465393, -0.2715187966823578, -0.16620486974716187, -0.20189496874809265, -0.25149717926979065, 0.0697823017835617, -0.26224130392074585, -0.3338696360588074, -0.2891654968261719, 0.08324337005615234, -0.4201812446117401, 0.42805925011634827, 0.014224098064005375, 0.012890750542283058, -0.13318374752998352, -0.13332486152648926, -0.12840941548347473, 0.02822594717144966, 0.44987258315086365, -0.10068769007921219, 0.34568649530410767, 0.5528983473777771, 0.2936883270740509, 0.12929050624370575, 0.02839714288711548, 0.1609405279159546, 0.10653974860906601, 0.38374248147010803, -0.05841204896569252, -0.07056200504302979, -0.03894861787557602, 0.01899545080959797, 0.2638925611972809, 0.8025798797607422, -0.410822331905365, -0.08721021562814713, -0.172979474067688, 0.024767644703388214, -0.4295547306537628, -0.25732943415641785, 0.05998269096016884, 0.16249847412109375, 0.08519429713487625, -0.30999502539634705, -0.360708087682724, -0.3834713399410248, 0.2709824740886688, 0.33525601029396057, 0.03965698182582855, -0.056654755026102066, 0.22156095504760742, -0.1515270173549652, -0.029804116114974022, -0.030186105519533157, -0.19711212813854218, -0.1586647927761078, 0.1109793409705162, 0.17120307683944702, -0.1918715089559555, -0.30478379130363464, 0.023014867678284645, 0.4192991852760315, 0.4918839931488037, 0.14514777064323425, 0.20817796885967255, -0.35222533345222473, -0.021329177543520927, 0.40073269605636597, 0.1259273737668991, 0.27799591422080994, 0.36522555351257324, 0.042737413197755814, 0.19573873281478882, -0.36449548602104187, -0.17038261890411377, -0.44905441999435425, 0.5557585954666138, 0.2351507991552353, -0.14517377316951752, 0.06880766153335571, -0.23940762877464294, 0.14073248207569122, -0.10550050437450409, -0.3880716860294342, -0.138813778758049, 0.22008050978183746, 0.04732321575284004, 0.02243812382221222, 0.09217557311058044, 0.05557922646403313, 0.2978411614894867, -0.011463950388133526, -0.27263718843460083, -0.004947896581143141, 0.09233639389276505, -0.4189283549785614, 0.2664707601070404, 0.3285474181175232, -0.31030529737472534, 0.16517122089862823, 0.3441128134727478, -0.08104091137647629, -0.17081743478775024, 0.36200788617134094, 0.1349383145570755, -0.31557154655456543, -0.483186274766922, -0.23367218673229218, 0.20068298280239105, 0.24841178953647614, 0.20310918986797333, -0.2982761263847351, -0.043786242604255676, -0.015571467578411102, -0.39518308639526367, -0.18221129477024078, 0.012125100940465927, -0.37100115418434143, -0.0800735279917717, -0.21522346138954163, 0.42850372195243835, -0.0043482109904289246, -0.3384578824043274, -0.19763894379138947, -0.023247232660651207, -0.32840171456336975, -0.07837840169668198, 0.19338345527648926, 0.2733837962150574, -0.38102445006370544, -0.1718328446149826, -0.25327062606811523, 0.005971712991595268, 0.4354269802570343, 0.16144689917564392, -0.40030187368392944, 0.2875465750694275, -0.10489954054355621, -0.1292128711938858, 0.4984533190727234, -0.033425066620111465, -0.020987432450056076, -0.05893375724554062, 0.18580767512321472, 0.17976702749729156, 0.041648685932159424, 0.07607434689998627, 0.25361448526382446, -0.1743205487728119, -0.37453481554985046, 0.5141630172729492, 0.08622299879789352, -0.2672061622142792, -0.03737902641296387, -0.1952519714832306, 0.1279141753911972, 0.0897819846868515, -0.17021416127681732, 0.1609874665737152, -0.03143243491649628, 0.2894900143146515, -0.0177521500736475, -0.21484103798866272, 0.12000290304422379, -0.17493580281734467, 0.14737802743911743, 0.39411959052085876, 0.10859011858701706, -0.3249787986278534, -0.4225754141807556, 0.19136741757392883, -0.29475152492523193, -0.04804696515202522, 0.44720759987831116, -0.40888547897338867, -0.4264889359474182, -0.18435221910476685, -0.1645277589559555, -0.1849026381969452, 0.007696401793509722, 0.5292384624481201, 0.09935715049505234, -0.1695840060710907, -0.1643247753381729, 0.1189451739192009, -0.1181560680270195, -0.016859909519553185, -0.1055918037891388, 0.2538265287876129, 0.06435412913560867, 0.04358220100402832, 0.01408451609313488, 0.5441194772720337, 0.11635648459196091, -0.07545920461416245, 0.15647010505199432, 0.12068839371204376, 0.037099696695804596, 0.08267432451248169, 0.1455656737089157, 0.10178066790103912, 0.11784698069095612, 0.11472999304533005, 0.40782466530799866, 0.008894914761185646, 0.3467358350753784, -0.16888627409934998, -0.46442484855651855, 0.13404904305934906, 0.23375268280506134, 0.03267725557088852, 0.06124543398618698, -0.11393366008996964, 0.17010940611362457, -0.1843964159488678, -0.06123483180999756, -0.11800243705511093, -0.07617558538913727, 0.25104907155036926, -0.08768876641988754, 0.33452868461608887, -0.29149606823921204, 0.14176855981349945, 0.14106637239456177, -0.23460352420806885, 0.15247635543346405, 0.004516409244388342, -0.22248175740242004, -0.1769355982542038, 0.38323360681533813, 0.0758582055568695, 0.16442342102527618, 0.037847597151994705, 0.24313537776470184, 0.06948288530111313, -0.11000023037195206, 0.04443836957216263, 0.21124093234539032, -0.16738572716712952, 0.18499411642551422, -0.23792123794555664, 0.1198144406080246, 0.16960032284259796, 0.08003327250480652, -0.04127012565732002, 0.34977877140045166, 0.14140065014362335, -0.1712506264448166, 0.2018592208623886, -0.6481916904449463, -0.3009233772754669, -0.3514772653579712, -0.04370410367846489, 0.01397872343659401, 0.05452743172645569, -0.1946786493062973, 0.04678715392947197, 0.1307188719511032, 0.13429731130599976, 0.11311326920986176, 0.48151618242263794, -0.37665966153144836, -0.12162119895219803, 0.080185167491436, -0.29951679706573486, -0.3330666124820709, 0.0063181049190461636, 0.41224589943885803, 0.37692102789878845, 0.554541289806366, 0.08703839778900146, 0.029054734855890274, -0.4986233413219452, -0.2839493751525879, 0.2014658898115158, 0.09056324511766434, -0.039764516055583954, 0.1327049285173416, -0.048512935638427734, -0.3301456868648529, -0.304216593503952, 0.15905235707759857, 0.09618017077445984, 0.1809399425983429, -0.06008099392056465, -0.49927303194999695, 0.1211426854133606, -0.1876281201839447, -0.12244237959384918, -0.15089969336986542, -0.19926242530345917, 0.2833752930164337, 0.05986263230443001, 0.07010413706302643, 0.331173837184906, -0.3769753873348236, 0.23945352435112, -0.045057326555252075, 0.2134196013212204, -0.33684903383255005, -0.10468471795320511, 0.29012712836265564, -0.1467801183462143, -0.1852172315120697, -0.0646863728761673, -0.3328314423561096, 0.10028400272130966, 0.5816027522087097, -0.1899225413799286, -0.43330883979797363, -0.07092656195163727, -0.1931765228509903, 0.33521175384521484, 0.20237503945827484, 0.1774219274520874, -0.03027544729411602, 0.148248091340065, -0.02465638890862465, -0.22927425801753998, 0.33471110463142395, -0.06982339918613434, 0.2151486575603485, 0.31798842549324036, 0.13644739985466003, 0.14777864515781403, 0.49584105610847473, 0.19946368038654327, -0.397555410861969, 0.44189879298210144, -0.07556068897247314, 0.2939324676990509, 0.09199286252260208, -0.02757919207215309, 0.2489291876554489, -0.12030650675296783, 0.09493815153837204, 0.193162739276886, 0.044802550226449966, 0.02506829798221588, -0.028333591297268867, 0.009234934113919735, -0.003529599402099848, -0.4363783299922943, 0.19964423775672913, -0.1517343968153, 0.523736298084259, 0.1381768137216568, -0.23558074235916138, -0.37910565733909607, 0.049614015966653824, 0.19346721470355988, 0.13374191522598267, 0.0738765224814415, 0.16435883939266205, -0.4970506727695465, 0.07581081986427307, 0.14062829315662384, 0.41422685980796814, 0.08560403436422348, -0.022596018388867378, 0.17820420861244202, 0.03157201409339905, 0.09148427098989487, 0.09267060458660126, -0.04813452064990997, -0.2960960566997528, 0.00752228032797575, 0.12447886168956757, -0.34748414158821106, -0.2607429027557373, 0.056499164551496506, -0.11450076103210449, 0.1813008338212967, 0.1208544671535492, -0.008593386970460415, -0.6265870332717896, -0.08597692102193832, 0.4911952614784241, 0.3378351330757141, -0.11739884316921234, 0.022537345066666603, 0.3983530104160309, -0.16196021437644958, -0.4426523745059967, -0.14787572622299194, -0.1674223691225052, 0.09007582068443298, 0.1807970404624939, 0.12001129984855652, -0.3284374475479126, 0.22975412011146545, 0.3346858322620392, 0.12290114164352417, 0.4285553991794586, 0.21789394319057465, 0.08595655113458633, 0.09955871850252151, 0.0065954565070569515, 0.04190745949745178, 0.45216992497444153, -0.28632819652557373, -0.46475860476493835, -0.12306054681539536, 0.043988291174173355, 0.2652987539768219, 0.16089420020580292, 0.3431626856327057, -0.08932603895664215, -0.222725048661232, -0.5019607543945312, -0.2145172506570816, 0.21093472838401794, -0.04187431186437607, -0.05498596653342247, -0.3572915196418762, -1.077763557434082, 0.3356919288635254, 0.18096403777599335, -0.0971047580242157, 0.17610308527946472, 0.13289417326450348, -0.13495764136314392, 0.12479522824287415, 0.029526362195611, 0.932196319103241, -0.17726093530654907, 0.2380489557981491, 0.3661988377571106, 0.2965846359729767, 0.7135198712348938, -0.14194515347480774, -0.2076856791973114, -0.34344351291656494, 0.21427620947360992, 0.04966330900788307, -0.05958283320069313, 0.29619354009628296, 0.2053496241569519, -0.15600404143333435, 0.25183361768722534, 0.20365627110004425, 0.42912399768829346, 0.12842273712158203, 0.223003551363945, -0.25042471289634705, -0.3115476071834564, -0.13226759433746338, 0.01156795397400856, -0.3206801414489746, 0.037614598870277405, -0.17384900152683258, -0.003934658132493496, 0.017044687643647194, 0.15631450712680817, -0.44135648012161255, 0.013679957948625088, -0.2030913084745407, 0.019174447283148766, -0.09730540961027145, -0.4997600317001343, 0.4716835618019104, 0.18648020923137665, 0.30572929978370667, 0.20795437693595886, -0.18517129123210907, 0.03954332694411278, -0.20622727274894714, -0.08012623339891434, -0.20036974549293518, 0.0007409343961626291, 0.24395368993282318, 0.010617172345519066, -0.029810873791575432, 0.09815914183855057, 0.3809090256690979, -0.02128477953374386, -0.15285278856754303, -0.2496739774942398, 0.39484328031539917, -0.35854944586753845, -0.2738024890422821, 0.27337732911109924, 0.0186453927308321, -0.08117429912090302, -0.02422163262963295, 0.3156311511993408, -0.1783580780029297, -0.07473322749137878, -0.19930605590343475, 0.13236793875694275, -0.011883769184350967, -0.3328545093536377, 0.3187781274318695, -0.291567862033844, 0.34012699127197266, 0.12811504304409027, 0.11227833479642868, -0.05932389199733734, 0.028458254411816597, 0.2757188677787781, -0.4038211405277252, -0.12673941254615784, 0.10866494476795197, -0.2364015281200409, 0.08197189122438431, 0.17656581103801727, -0.10157852619886398, 0.08402658253908157, 0.0360073558986187, -0.2625141739845276, -0.12779805064201355, 0.15536755323410034, 0.0030013946816325188, 0.3532761335372925, 0.045755673199892044, -0.010078871622681618, -0.17740119993686676, 0.0435958132147789, -0.17356298863887787, 0.17672669887542725, 0.16015243530273438, 0.18438003957271576, 0.2037213146686554, 0.057678453624248505, -0.10158330202102661, -0.10939965397119522, -0.07875902205705643, 0.0701260045170784, -0.14799867570400238, -0.009760379791259766, -0.5596268177032471, 0.2132185846567154, 0.05718984827399254, -0.1296141892671585, -0.037195660173892975, -0.2645624577999115, 0.12837260961532593, -0.3482791781425476, 0.22464187443256378, -0.029361329972743988, -0.04609568417072296, 0.15977102518081665, 0.5605437159538269, -0.012761538848280907, -0.2915022075176239, 0.009755111299455166, 0.13208544254302979, 0.4077628254890442, 0.44120916724205017, 0.061219654977321625, -0.1038740947842598, -0.12450411915779114, -0.027141543105244637, 0.20847123861312866, 0.7594007849693298, 0.07025206834077835, 0.32138851284980774, 0.13916543126106262, 0.11811716854572296, 0.21129846572875977, 0.18489889800548553, 0.4557938873767853, -0.09182306379079819, 0.2779640257358551, 0.20867379009723663, -0.007170222233980894, -0.08957239240407944, 0.1609560251235962, 0.25442928075790405, -0.1813846230506897, -0.15001514554023743, 0.37504950165748596, 0.17494097352027893, 0.2845795452594757, -0.1489911675453186, -0.26457658410072327, 0.2097463458776474, 0.027486588805913925, 0.39040911197662354, 0.19392530620098114, -0.012040598317980766, -0.2825765609741211, -0.04122430458664894, 0.40002357959747314, 0.2880564332008362, -0.45128244161605835, 0.22340568900108337, 0.2511094808578491, 0.18729352951049805, 0.18098782002925873, 0.5107918977737427, -0.43333694338798523, -0.04054707661271095, 0.41040879487991333, 0.36062613129615784, 0.28958630561828613, -0.08490858972072601, 0.2871323227882385, 0.12327302992343903, 0.06525760143995285, 0.079349085688591, 0.22524411976337433, 0.09827762842178345, -0.07021797448396683, -0.23903709650039673, -0.24903957545757294, -0.32121536135673523, -0.0558164156973362, -0.34825605154037476, -0.16665543615818024, -0.1457802802324295, -0.05251975357532501, -0.03415059670805931, -0.42286819219589233, 0.058216266334056854, 0.15035192668437958, -0.03188816457986832, -0.03373543545603752, 0.1851819008588791, 0.12674583494663239, -0.36338672041893005, 0.22551357746124268, 0.39720019698143005, 0.10976157337427139, 0.015225161798298359, -0.0066318027675151825, 0.29505956172943115, -0.14891095459461212, 0.16321170330047607, -0.13756577670574188, 0.021686753258109093, 0.17223024368286133, -0.25958141684532166, 0.13580317795276642, -0.0716032162308693, 0.05571641027927399, -0.18946464359760284, -0.012652669101953506, -0.18542827665805817, -0.43775370717048645, 0.6592111587524414, 0.2342049777507782, -0.2106868177652359, 0.10655750334262848, 0.21380501985549927, -0.1598931849002838, -0.3499528765678406, 0.45185011625289917, 0.3653378188610077, -0.03474120423197746, -0.2207181304693222, -0.001092300983145833, 0.19044093787670135, 0.2138691246509552, 0.07751443237066269, -0.10511720925569534, -0.08657408505678177, -0.262545645236969, -0.7192502617835999, 0.22764037549495697, -0.17335626482963562, -0.6922204494476318, 0.26227137446403503, -0.14134253561496735, 0.34195464849472046, 0.10141321271657944, -0.29398712515830994, -0.034893106669187546, 0.0552138015627861, -0.23138965666294098, -0.17378389835357666, -0.44387537240982056, 0.025859177112579346, 0.05151524394750595, -0.10293721407651901, -0.24710015952587128, -0.07379096001386642, 0.0714302659034729, -0.136335551738739, 0.03530920669436455, -0.19819632172584534, 0.11845963448286057, -0.47535544633865356, 0.11288736760616302, 0.1332099884748459, 0.26945868134498596, 0.18839265406131744, -0.06590048968791962, -0.24413569271564484, 0.055375564843416214, -0.13522815704345703, 0.28596749901771545, -0.10125352442264557, 0.04796762019395828, -0.5305742025375366, 0.006874443497508764, -0.29222434759140015, -0.1701013743877411, -0.007944967597723007, 0.07040559500455856, -0.1326501965522766, 0.10368131846189499, -0.3454543650150299, -0.0599825344979763, 0.36039572954177856, 0.5799033045768738, -0.23216509819030762, 0.02235596440732479, -0.15164867043495178, 0.19397470355033875, 0.32614898681640625, -0.23401661217212677, -0.4163011312484741, -0.06220664083957672, 0.043280068784952164, -0.25084877014160156, 0.03158162534236908, -0.5333892107009888, 0.0338171049952507, 0.2631508708000183, -0.02095271274447441, -0.10018887370824814, -0.029916973784565926, 0.22623875737190247, -0.2082655131816864, -0.161411315202713, 0.4423399567604065, 0.07936921715736389, -0.07374314963817596, 0.0107917170971632, -0.1659831553697586 ]
https://github.com/huggingface/datasets/issues/426
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
Yes, that would be nice. We could take a look at what tensorflow `tf.data` does under the hood for instance.
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
20
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? Yes, that would be nice. We could take a look at what tensorflow `tf.data` does under the hood for instance.
[ -0.27594509720802307, -0.2842458486557007, -0.20223022997379303, -0.11666129529476166, -0.2691856324672699, 0.10101306438446045, 0.23259402811527252, 0.3550623059272766, -0.016504142433404922, 0.061669208109378815, -0.1445143222808838, 0.33245283365249634, -0.13535064458847046, 0.411558598279953, 0.013081546872854233, -0.2661809027194977, 0.017581595107913017, 0.1032484620809555, -0.12816861271858215, 0.10989023000001907, 0.07626670598983765, -0.0655461773276329, -0.11530786752700806, -0.09268461912870407, -0.13229787349700928, -0.10245508700609207, -0.09757164120674133, -0.2020663172006607, 0.1825314164161682, -0.05919687822461128, 0.08191942423582077, 0.4362565577030182, -0.19553233683109283, 0.3209604024887085, -0.00010351857054047287, -0.03305280581116676, 0.023035146296024323, 0.14118251204490662, 0.05547761172056198, 0.19510000944137573, -0.24072694778442383, -0.3496340215206146, 0.015476183965802193, -0.2446850836277008, 0.11410904675722122, 0.14492985606193542, 0.22967971861362457, -0.25204405188560486, 0.15109840035438538, -0.1482698619365692, 0.16500431299209595, 0.32445642352104187, -0.1013413593173027, 0.35490891337394714, -0.1160895824432373, 0.28812122344970703, -0.13325630128383636, -0.2739546597003937, 0.4300312399864197, -0.1658622771501541, -0.19330482184886932, 0.4834122657775879, -0.20489558577537537, 0.18410511314868927, 0.18683916330337524, -0.06592391431331635, 0.07732826471328735, -0.40978050231933594, -0.18180593848228455, 0.40872547030448914, -0.06758838146924973, -0.23071816563606262, -0.4504493474960327, -0.2789037823677063, -0.12640756368637085, -0.40701085329055786, -0.2271307408809662, 0.08587376028299332, -0.2099233865737915, -0.023310750722885132, -0.41207996010780334, -0.3114110231399536, 0.19978339970111847, -0.0812530666589737, 0.16165629029273987, 0.36139264702796936, 0.2724670469760895, 0.13113363087177277, 0.1919368952512741, -0.19693119823932648, -0.0564667284488678, -0.2537742555141449, 0.311047226190567, 0.0066752308048307896, -0.6924261450767517, -0.18429335951805115, 0.016712581738829613, -0.28677162528038025, -0.03928060829639435, -0.07068996876478195, 0.15345877408981323, 0.3635826110839844, 0.0018450646894052625, 0.27567222714424133, 0.009638186544179916, -0.37592753767967224, 0.06305856257677078, -0.01253292616456747, 0.13329386711120605, -0.41870173811912537, -0.23085440695285797, 0.29322007298469543, 0.12677770853042603, -0.08347804844379425, -0.2717573046684265, 0.04740091785788536, -0.09809532016515732, 0.26262345910072327, 0.04921497032046318, -0.4000427722930908, 0.08907897770404816, -0.19157005846500397, 0.18279601633548737, -0.036447640508413315, -0.0701013058423996, 0.3581651449203491, -0.16252517700195312, -0.24836233258247375, -0.1925840526819229, -0.15613456070423126, -0.07636251300573349, -0.006903359666466713, 0.06263002753257751, 0.13615334033966064, 0.1571868509054184, 0.12194065004587173, -0.1967087984085083, 0.047960881143808365, 0.13933232426643372, 0.30479082465171814, 0.32257264852523804, -0.12546592950820923, 0.03924908488988876, 0.17078328132629395, -0.13733327388763428, -0.1019916832447052, -0.14540325105190277, 0.08597203344106674, -0.32197991013526917, -0.04478093609213829, -0.3592565953731537, -0.20220351219177246, -0.07830122858285904, 0.1522815078496933, 0.15805579721927643, -0.0834566205739975, -0.239224374294281, 0.7270876169204712, 0.12217460572719574, -0.013926216401159763, -0.3829067349433899, -0.11735714226961136, -0.5056700110435486, -0.2212933748960495, 0.3403019309043884, -0.0071706934832036495, -0.0925389900803566, -0.024439217522740364, -0.21030132472515106, -0.036456331610679626, 0.20229636132717133, 0.34313058853149414, -0.1650477647781372, 0.202975332736969, -0.01611156389117241, 0.4196084141731262, 0.5856343507766724, -0.13465313613414764, 0.13609126210212708, 0.37727218866348267, -0.17533282935619354, 0.05190813168883324, 0.23914359509944916, 0.1840679794549942, 0.15065324306488037, -0.12630847096443176, 0.1601596176624298, 0.48925745487213135, -0.31310129165649414, 0.25839754939079285, 0.056852154433727264, -0.2214290201663971, 0.1675427109003067, 0.1637318730354309, 0.0658373311161995, 0.003661224152892828, -0.10343196988105774, -0.3204094171524048, 0.31902435421943665, -0.31288886070251465, 0.056921377778053284, 0.048336002975702286, -0.10539011657238007, -0.03485545516014099, -0.12590451538562775, -0.34791162610054016, -0.31730538606643677, 0.10933918505907059, 0.086577408015728, -0.0670090913772583, 0.15339216589927673, -0.3714456260204315, 0.4874788522720337, 0.12219379097223282, 0.17557375133037567, 0.23964320123195648, 0.1801888346672058, 0.23717646300792694, 0.08780226856470108, -0.23538431525230408, -0.2851772606372833, 0.10881086438894272, -0.13837331533432007, -0.14279711246490479, -0.10611294955015182, 0.2467598021030426, 0.28574758768081665, -0.10149815678596497, -0.021431131288409233, 0.13317027688026428, -0.15474390983581543, -0.12685991823673248, 0.1578124314546585, -0.02274003066122532, -0.07295668125152588, 0.3669103682041168, 0.4954017996788025, 0.5253912210464478, 0.18018490076065063, 0.10836128145456314, -0.13010729849338531, -0.20871970057487488, -0.14308854937553406, -0.2054140865802765, -0.1446281224489212, 0.46660116314888, -0.06685703992843628, 0.3619408905506134, 0.16258853673934937, -0.01466378290206194, 0.23803402483463287, 0.05492090433835983, -0.07700484991073608, 0.2333349734544754, 0.07340268045663834, -0.10576458275318146, -0.03970881178975105, 0.18771885335445404, -0.442564994096756, 0.32635051012039185, 0.5805597305297852, 0.10857537388801575, -0.03624141961336136, 0.13268542289733887, 0.23283042013645172, -0.010291876271367073, 0.11810190230607986, 0.13482077419757843, 0.1647728532552719, 0.19193102419376373, 0.12337633222341537, -0.09267861396074295, -0.014028016477823257, 0.007535386364907026, 0.1509765088558197, 0.22679880261421204, 0.2975918650627136, 0.07327695190906525, 0.07103532552719116, -0.1913866400718689, -0.11671437323093414, -0.3844875395298004, 0.2422844022512436, 0.03362433239817619, 0.022234749048948288, -0.07533355802297592, -0.2187241017818451, -0.08396552503108978, 0.020021609961986542, 0.1564754694700241, -0.10848706215620041, -0.2796202600002289, 0.037578921765089035, 0.21103768050670624, -0.17239443957805634, 0.1639956682920456, 0.1517234444618225, 0.12165957689285278, -0.07952650636434555, -0.04443059861660004, -0.17311522364616394, -0.11280052363872528, 0.11540307849645615, 0.0780867412686348, 0.3604661524295807, 0.20933492481708527, 0.4150379002094269, 0.22971469163894653, 0.10161957889795303, -0.30859801173210144, -0.3013165295124054, -0.0605730339884758, -0.23260624706745148, 0.07069174945354462, -0.019726181402802467, 0.014012380503118038, -0.2078687697649002, -0.42406895756721497, 0.13497653603553772, 0.12339847534894943, -0.11079253256320953, -0.14946377277374268, 0.0558033250272274, 0.06306317448616028, -0.07423726469278336, -0.20532064139842987, -0.5143828392028809, -0.43763548135757446, 0.3669535517692566, -0.32444459199905396, 0.34976670145988464, -0.19919714331626892, 0.024094797670841217, -0.009649553336203098, -0.1741124838590622, 0.08378075808286667, 0.15516307950019836, -0.4178403913974762, 0.11653545498847961, -0.07669559866189957, -0.1169128492474556, -0.3409135043621063, -0.03338727727532387, 0.07159718126058578, 0.4641481041908264, -0.21371106803417206, -0.05857354775071144, -0.2273506224155426, 0.1493423879146576, 0.16505612432956696, -0.08180759847164154, 0.10734832286834717, -0.01588956080377102, -0.11213786154985428, 0.07741987705230713, -0.16446255147457123, 0.05168967321515083, -0.0614810436964035, -0.29597413539886475, 0.2579028010368347, 0.3612658381462097, 0.12350049614906311, 0.7081286311149597, 0.11436395347118378, -0.23188237845897675, -0.040828511118888855, 0.07273828238248825, -0.26884400844573975, 0.20384067296981812, -0.4948345124721527, -0.07088041305541992, -0.1688324511051178, 0.1085115373134613, 0.0931624174118042, -0.10847348719835281, -0.41970622539520264, -0.03433382138609886, 0.2127259373664856, -0.18201692402362823, -0.1730899065732956, 0.2890787720680237, -0.3016261160373688, 0.30597949028015137, 0.04044579342007637, -0.2821759879589081, -0.4290567636489868, 0.0758817046880722, -0.15357044339179993, 0.0001313936518272385, 0.2750866115093231, -0.18267719447612762, -0.39425426721572876, -0.21494799852371216, -0.4903291165828705, 0.3338412344455719, 0.18734517693519592, 0.10521802306175232, -0.017546992748975754, 0.027265269309282303, -0.053417518734931946, -0.15338727831840515, 0.5795546174049377, -0.36850428581237793, -0.2850634753704071, 0.2537965476512909, -0.4896866977214813, -0.0196861419826746, 0.2228049486875534, -0.025972452014684677, 0.4166378080844879, 0.3337056040763855, 0.41090723872184753, -0.237655907869339, -0.4871219992637634, 0.15589238703250885, 0.021949592977762222, -0.07201255112886429, 0.02668149396777153, -0.025353487581014633, -0.04491806775331497, -0.11768287420272827, -0.009769090451300144, -0.06589960306882858, -0.02805958315730095, -0.01875974051654339, -0.18685433268547058, -0.16463226079940796, 0.0536767840385437, 0.3366561532020569, 0.02158205583691597, -0.14567768573760986, 0.3455347716808319, 0.2921154201030731, -0.2915530800819397, 0.11417308449745178, -0.08748140186071396, -0.101422518491745, -0.18535132706165314, -0.12975940108299255, -0.03132183849811554, -0.036864664405584335, 0.522208571434021, 0.09309275448322296, 0.15358421206474304, 0.3920104503631592, -0.10964546352624893, 0.4256868064403534, -0.24883808195590973, 0.16633480787277222, 0.39163610339164734, 0.25797322392463684, -0.2799403667449951, -0.3690027892589569, 0.22463621199131012, 0.2787816524505615, 0.020580362528562546, 0.5443372130393982, -0.29624730348587036, -0.020333806052803993, 0.20757164061069489, 0.0824858695268631, 0.5658167004585266, -0.38104820251464844, 0.020844511687755585, -0.27613070607185364, 0.19979478418827057, 0.43205663561820984, -0.4796612560749054, 0.19673508405685425, 0.06663700938224792, -0.3153507113456726, 0.0637308806180954, -0.005826366133987904, 0.11731340736150742, 0.42645350098609924, -0.19518227875232697, 0.07366842031478882, 0.317818820476532, -0.036403801292181015, -0.08255191892385483, 0.46223434805870056, 0.2771173119544983, -0.37804195284843445, -0.09199963510036469, 0.10737986117601395, -0.07451009750366211, -0.348704069852829, 0.06420739740133286, -0.27501794695854187, 0.16034960746765137, 0.33693352341651917, -0.3123578727245331, -0.10060998797416687, -0.03292695805430412, 0.41285812854766846, -0.27162525057792664, -0.03568160533905029, -0.09807749092578888, 0.14450223743915558, -0.06219196319580078, -0.05152273550629616, -0.08870681375265121, 0.036699000746011734, -0.14064666628837585, 0.31959256529808044, -0.20937053859233856, -0.3096979558467865, 0.23032547533512115, -0.12140271812677383, -0.1893576830625534, 0.0026273683179169893, 0.13802267611026764, -0.5908485651016235, -0.13972660899162292, 0.09341347962617874, 0.09455956518650055, 0.45481178164482117, 0.11223508417606354, 0.37583398818969727, -0.3117883503437042, -0.0755104199051857, 0.14180201292037964, 0.20967571437358856, -0.15271098911762238, 0.5664060711860657, 0.06698688864707947, -0.13767704367637634, 0.05432802811264992, 0.03885350748896599, 0.3187233805656433, 0.03866249695420265, 0.270673543214798, 0.154133602976799, -0.1378088742494583, -0.27288955450057983, -0.10658161342144012, -0.21550075709819794, 0.08488200604915619, 0.2780231833457947, -0.15319405496120453, -0.1919219046831131, 0.102003313601017, -0.15205004811286926, -0.15951061248779297, 0.11643997579813004, -0.29002147912979126, -0.15236742794513702, -0.10318806022405624, 0.09986864030361176, -0.11880596727132797, 0.21558111906051636, -0.07947774231433868, 0.1791786253452301, -0.05374607443809509, 0.5050329566001892, -0.3481149673461914, -0.13495534658432007, -0.1647224724292755, 0.19815053045749664, 0.33973896503448486, 0.022119620814919472, -0.06132548674941063, 0.22106759250164032, 0.17819716036319733, 0.1315310150384903, -0.18267615139484406, -0.31127268075942993, 0.17955410480499268, 0.05973951146006584, -0.13201291859149933, 0.057890404015779495, 0.1754208654165268, 0.15221288800239563, -0.3791615068912506, -0.361177921295166, 0.014517529867589474, -0.09044182300567627, -0.02868884615600109, 0.07970539480447769, 0.14711320400238037, -0.2112828493118286, 0.23495924472808838, -0.05540596321225166, 0.1310696303844452, -0.019343458116054535, -0.13855569064617157, 0.37669283151626587, 0.1650499403476715, -0.1514664739370346, 0.15220080316066742, -0.09716224670410156, 0.11881331354379654, -0.1742067188024521, 0.20694153010845184, 0.06353651732206345, -0.24306446313858032, -0.09120858460664749, 0.2783661484718323, 0.3514903783798218, 0.13907530903816223, 0.23027747869491577, 0.05718161538243294, 0.17350342869758606, -0.16075937449932098, -0.1503111869096756, 0.5617014169692993, 0.0002523563744034618, 0.34414243698120117, -0.08693710714578629, 0.11125534027814865, 0.485291063785553, 0.10472612828016281, -0.06869500130414963, -0.12323257327079773, -0.34257781505584717, 0.09757319837808609, 0.0001648568140808493, 0.2361600697040558, -0.03996916487812996, -0.10336042940616608, 0.02764085680246353, 0.13772040605545044, 0.11111829429864883, 0.07761796563863754, 0.7436553835868835, -0.1332685798406601, 0.14661389589309692, 0.23586265742778778, -0.21851009130477905, 0.15542198717594147, 0.15089192986488342, 0.07065954059362411, 0.2849656045436859, 0.10424524545669556, 0.08362408727407455, 0.11575891077518463, -0.525851309299469, -0.16221679747104645, 0.6554824113845825, -0.05178645998239517, -0.33509311079978943, -0.05954812094569206, -0.06371884047985077, -0.05539777874946594, 0.07723893225193024, 0.1890803426504135, 0.10396378487348557, 0.5785475969314575, 0.06316383183002472, 0.42333248257637024, 0.021711129695177078, 0.1380324363708496, -0.17561158537864685, 0.3721528649330139, -0.0519326850771904, -0.1600179821252823, 0.14399921894073486, -0.21311962604522705, -0.2313867062330246, 0.32235628366470337, 0.11828180402517319, 0.25783154368400574, -0.06061116233468056, 0.34211528301239014, -0.2579094469547272, -0.03638448566198349, -0.23797982931137085, 0.234089657664299, -0.021660931408405304, 0.019926123321056366, 0.4125623404979706, 0.12308303266763687, -0.14531607925891876, -0.2635038197040558, -0.04518577456474304, 0.09622680395841599, -0.4112081527709961, 0.08776380121707916, 0.13377398252487183, -0.1602262705564499, 0.01400014292448759, 0.002057859441265464, -0.397723913192749, -0.2798146605491638, 0.7091531753540039, -0.5511265993118286, -0.033520862460136414, 0.012438751757144928, 0.12369899451732635, -0.21537566184997559, 0.6456466317176819, 0.08275400102138519, 0.3928980231285095, 0.005626717582345009, -0.1644989252090454, -0.4179259240627289, -0.2629407048225403, -0.06635531038045883, 0.11596605181694031, 0.12310006469488144, 0.4917392432689667, 0.218332439661026, 0.31762704253196716, 0.003225975437089801, -0.46191683411598206, 0.024365412071347237, 0.0811450332403183, -0.4527284801006317, 0.1186482235789299, -0.37041330337524414, -0.062286872416734695, 0.17526715993881226, -0.3342033624649048, 0.2675740122795105, 0.11064452677965164, 0.1272590607404709, -0.21274308860301971, 0.1328643411397934, 0.49381688237190247, 0.15213170647621155, 0.012598530389368534, 0.009824780747294426, 0.30863580107688904, -0.3062482178211212, 0.0071039097383618355, -0.11481153964996338, 0.09621698409318924, -0.1907644420862198, 0.003296520793810487, -0.0433025062084198, 0.32260605692863464, -0.21782006323337555, 0.05979089066386223, -0.05459688603878021, 0.10389406234025955, -0.1082262471318245, -0.17842203378677368, 0.15695920586585999, 0.011396906338632107, 0.16660147905349731, 0.17708294093608856, -0.015179293230175972, 0.34874093532562256, -0.00628820713609457, 0.09536278992891312, -0.10453281551599503, -0.08236923813819885, 0.2420099973678589, -0.455522358417511, -0.2231687605381012, -0.2831251323223114, 0.06697194278240204, -0.03491697460412979, 0.42195460200309753, -0.3687779903411865, -0.3382132649421692, 0.2574603259563446, -0.08740776777267456, -0.045555587857961655, 0.5557899475097656, 0.0016175403725355864, -0.245280921459198, -0.15540778636932373, -0.2612406313419342, -0.009433096274733543, -0.35343992710113525, -0.14837145805358887, -0.2303103357553482 ]
https://github.com/huggingface/datasets/issues/426
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
So `tf.data.Dataset.map()` returns a `ParallelMapDataset` if `num_parallel_calls is not None` [link](https://github.com/tensorflow/tensorflow/blob/2b96f3662bd776e277f86997659e61046b56c315/tensorflow/python/data/ops/dataset_ops.py#L1623). There, `num_parallel_calls` is turned into a tensor and and fed to `gen_dataset_ops.parallel_map_dataset` where it looks like tensorflow takes over. We could start with something simple like a thread or process pool that `imap`s over some shards.
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
47
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? So `tf.data.Dataset.map()` returns a `ParallelMapDataset` if `num_parallel_calls is not None` [link](https://github.com/tensorflow/tensorflow/blob/2b96f3662bd776e277f86997659e61046b56c315/tensorflow/python/data/ops/dataset_ops.py#L1623). There, `num_parallel_calls` is turned into a tensor and and fed to `gen_dataset_ops.parallel_map_dataset` where it looks like tensorflow takes over. We could start with something simple like a thread or process pool that `imap`s over some shards.
[ -0.3959481418132782, -0.35890495777130127, -0.1633281707763672, -0.10432029515504837, -0.28035488724708557, 0.13152678310871124, 0.2860787808895111, 0.29823052883148193, 0.023387040942907333, 0.05506052449345589, -0.16390174627304077, 0.3279613256454468, -0.09400985389947891, 0.34428274631500244, -0.11410157382488251, -0.11086849123239517, -0.050691843032836914, 0.05591189116239548, -0.022344887256622314, 0.06904567033052444, -0.0700981616973877, -0.03514793887734413, -0.11026866734027863, -0.214275062084198, -0.1099681705236435, -0.10818865150213242, -0.030302871018648148, -0.12129127979278564, 0.23247858881950378, -0.024566812440752983, 0.10267799347639084, 0.46131786704063416, -0.2688802480697632, 0.3424682021141052, -0.0001032941072480753, 0.04182820022106171, -0.030008438974618912, 0.08687406033277512, 0.09926485270261765, 0.1611693948507309, -0.21208305656909943, -0.2810766398906708, -0.051121145486831665, -0.2975959777832031, 0.0698215514421463, 0.1315266191959381, 0.20370382070541382, -0.2799988389015198, 0.20394383370876312, -0.12030983716249466, 0.14407923817634583, 0.4225910007953644, -0.023960161954164505, 0.29869696497917175, -0.23564854264259338, 0.1569124460220337, -0.13931719958782196, -0.16242581605911255, 0.342773973941803, -0.20625828206539154, -0.12681230902671814, 0.48843833804130554, -0.2593214213848114, 0.276318222284317, 0.1230531856417656, -0.04308919236063957, 0.022626833990216255, -0.46180260181427, -0.1920100450515747, 0.322164386510849, -0.16078801453113556, -0.19757477939128876, -0.46458500623703003, -0.3551498055458069, -0.1647726595401764, -0.361113578081131, -0.19933536648750305, 0.05829927697777748, -0.2181829959154129, -0.016747765243053436, -0.353260338306427, -0.21855942904949188, 0.10697752237319946, -0.13908442854881287, 0.01768098585307598, 0.3166695535182953, 0.3593291938304901, 0.1542658507823944, 0.22298389673233032, -0.161096453666687, -0.1056813895702362, -0.1764623075723648, 0.3239942193031311, 0.10192209482192993, -0.7124088406562805, -0.2153792381286621, 0.031566206365823746, -0.3484642803668976, -0.0871075689792633, -0.09172910451889038, 0.07137081027030945, 0.3659610450267792, 0.020659061148762703, 0.29577043652534485, -0.03126487508416176, -0.41603997349739075, 0.04682067409157753, 0.044354040175676346, 0.10934325307607651, -0.41341570019721985, -0.1735183745622635, 0.2978520691394806, 0.09148483723402023, -0.08638141304254532, -0.2096255123615265, 0.04680827632546425, -0.05894625559449196, 0.26897817850112915, -0.014642326161265373, -0.3458244800567627, 0.056917477399110794, -0.1112900823354721, 0.13203629851341248, -0.03793125972151756, -0.06666642427444458, 0.2931637167930603, -0.07310190796852112, -0.2985047399997711, -0.362637996673584, -0.07115011662244797, -0.12184128165245056, -0.018844403326511383, -0.0068022338673472404, 0.18278181552886963, 0.17651227116584778, 0.1731298714876175, -0.27086690068244934, 0.014701266773045063, 0.13031992316246033, 0.30934327840805054, 0.34302911162376404, -0.18828962743282318, -0.036269284784793854, 0.23790766298770905, -0.15227608382701874, -0.13484157621860504, -0.01871161349117756, 0.10122237354516983, -0.24873223900794983, -0.021621908992528915, -0.36826300621032715, -0.2509818971157074, 0.003286530263721943, 0.1618470549583435, 0.03166208788752556, -0.12133845686912537, -0.24772295355796814, 0.6351502537727356, 0.17333056032657623, 0.05398106202483177, -0.4437558352947235, -0.10529683530330658, -0.6214125156402588, -0.206753209233284, 0.3430377244949341, 0.08387724310159683, -0.14774258434772491, 0.005699720233678818, -0.11971744149923325, -0.05737093463540077, 0.16284742951393127, 0.34189361333847046, -0.08948449790477753, 0.07963532209396362, 0.0038426292594522238, 0.47801873087882996, 0.36858129501342773, -0.1520615518093109, 0.020994719117879868, 0.30775532126426697, -0.21158987283706665, 0.06379280984401703, 0.20980069041252136, 0.19106893241405487, 0.2824661433696747, -0.20523744821548462, 0.180411696434021, 0.507691502571106, -0.25388556718826294, 0.2780783772468567, -0.051706768572330475, -0.2002614140510559, -0.02446899190545082, 0.3239069879055023, 0.14615856111049652, -0.02612333744764328, -0.12424381822347641, -0.3164176940917969, 0.33253049850463867, -0.18008485436439514, 0.04459552466869354, 0.0815761536359787, 0.033472467213869095, 0.06635155528783798, -0.09547470510005951, -0.3216055631637573, -0.34594622254371643, 0.2422725260257721, 0.14382304251194, 0.08254506438970566, 0.09482481330633163, -0.3457747995853424, 0.42372727394104004, 0.10980714857578278, 0.14535850286483765, 0.25967615842819214, 0.2118765413761139, 0.11206511408090591, -0.007361457683146, -0.26296916604042053, -0.28269511461257935, 0.240876242518425, -0.20676131546497345, -0.10243245214223862, -0.15787677466869354, 0.3324165642261505, 0.2522999048233032, -0.15476971864700317, -0.11251112073659897, 0.1080852821469307, -0.09614699333906174, -0.14810849726200104, 0.15526534616947174, 0.042134616523981094, 0.0071303704753518105, 0.40321803092956543, 0.3985297679901123, 0.5866160988807678, 0.21423017978668213, 0.17647840082645416, -0.11875712126493454, -0.2487884908914566, -0.14478889107704163, -0.18255668878555298, -0.08065236359834671, 0.4537774324417114, 0.017767393961548805, 0.427516907453537, 0.1542963981628418, 0.003185609821230173, 0.173397958278656, 0.01059394609183073, -0.027599740773439407, 0.23792777955532074, 0.10781681537628174, -0.12304583936929703, -0.06270173192024231, 0.19274580478668213, -0.28682687878608704, 0.38831305503845215, 0.506111741065979, 0.11745109409093857, -0.113885298371315, 0.08055511116981506, 0.2276955097913742, 0.02408067137002945, 0.06780701875686646, 0.2511101961135864, 0.24526762962341309, 0.1791771650314331, 0.14807367324829102, -0.001103641465306282, -0.07172136008739471, 0.019503153860569, 0.1289651095867157, 0.2748681902885437, 0.3190978765487671, -0.020806487649679184, 0.06974323093891144, -0.1868712157011032, -0.12359040230512619, -0.4200429320335388, 0.2997813820838928, 0.11241715401411057, 0.0483124703168869, -0.05754917860031128, -0.10749403387308121, 0.12696556746959686, 0.01627258025109768, 0.13758262991905212, -0.07277297973632812, -0.3041386008262634, 0.018180297687649727, 0.36672255396842957, -0.06631113588809967, 0.13690465688705444, 0.19250649213790894, 0.04637671262025833, -0.08030127733945847, -0.11214084178209305, -0.17693832516670227, -0.2440682053565979, 0.20808881521224976, 0.08853121846914291, 0.37395796179771423, 0.1900409460067749, 0.4317305088043213, 0.17477312684059143, -0.0021740002557635307, -0.15368221700191498, -0.2592748701572418, -0.05430980026721954, -0.286355584859848, -0.01916884072124958, -0.03167222812771797, 0.11410842090845108, -0.22287708520889282, -0.30588310956954956, 0.17245164513587952, 0.004610792733728886, -0.06884051114320755, -0.11391045898199081, -0.012707069516181946, 0.08935299515724182, -0.0477355532348156, -0.25033584237098694, -0.5684008002281189, -0.409223347902298, 0.3266501724720001, -0.23243799805641174, 0.37758350372314453, -0.054700691252946854, 0.036139413714408875, -0.0018446269677951932, -0.10802021622657776, -0.005989591125398874, 0.08417276293039322, -0.2796824276447296, 0.10813833773136139, -0.034262120723724365, -0.13211853802204132, -0.2544581890106201, -0.024661751464009285, 0.07966919243335724, 0.5135449767112732, -0.16191929578781128, -0.13219065964221954, -0.22445479035377502, 0.11937963217496872, 0.12746717035770416, -0.07577542960643768, 0.19376489520072937, 0.023846996948122978, -0.113433837890625, 0.06194433197379112, -0.0049560656771063805, 0.1277589499950409, -0.07989619672298431, -0.38438907265663147, 0.2287483960390091, 0.36101317405700684, 0.19522958993911743, 0.7414987683296204, 0.18903997540473938, -0.31782567501068115, -0.09586472809314728, 0.02908473089337349, -0.285787969827652, 0.16052281856536865, -0.43283191323280334, -0.08146630227565765, -0.07682757824659348, 0.04750038683414459, 0.04606533795595169, -0.14173300564289093, -0.403962105512619, -0.06713581830263138, 0.19641393423080444, -0.2161606103181839, -0.2535504102706909, 0.2536224126815796, -0.15751564502716064, 0.2934395670890808, 0.03091226890683174, -0.2456316500902176, -0.46248316764831543, 0.037078626453876495, -0.16106055676937103, 0.0008603239548392594, 0.31016308069229126, -0.2374068945646286, -0.30368927121162415, -0.10449577122926712, -0.5077469348907471, 0.3355197310447693, 0.07792265713214874, 0.1264088749885559, 0.041226550936698914, -0.021639639511704445, 0.020404402166604996, -0.15833766758441925, 0.6184373497962952, -0.3220210075378418, -0.2553035616874695, 0.21620160341262817, -0.4241090416908264, -0.17543084919452667, 0.18108093738555908, -0.044971443712711334, 0.34809014201164246, 0.3188779354095459, 0.43499284982681274, -0.3314708173274994, -0.4567178189754486, 0.1255398988723755, -0.028090208768844604, -0.09775587171316147, -0.061061736196279526, -0.11444797366857529, -0.0743117555975914, -0.19760510325431824, 0.0487019307911396, -0.004486673045903444, -0.045344673097133636, -0.009250519797205925, -0.13803821802139282, -0.15293779969215393, 0.018939398229122162, 0.28573599457740784, 0.10535203665494919, -0.10776638984680176, 0.2979785203933716, 0.38807228207588196, -0.1602470427751541, -0.0859043076634407, 0.03240220621228218, -0.02306888811290264, -0.08514651656150818, -0.16263717412948608, -0.05772729963064194, 0.052409496158361435, 0.40325629711151123, 0.05327489599585533, 0.1544160693883896, 0.2574470639228821, -0.13860435783863068, 0.44070374965667725, -0.2465183585882187, 0.1414550542831421, 0.2674778997898102, 0.28064393997192383, -0.2167596071958542, -0.41761264204978943, 0.22836729884147644, 0.28245803713798523, 0.035674989223480225, 0.5328617691993713, -0.25362375378608704, 0.006877939682453871, 0.3022964298725128, 0.10988438129425049, 0.5154482126235962, -0.4857496917247772, -0.037298522889614105, -0.20268674194812775, 0.3226897716522217, 0.3930732011795044, -0.5588088035583496, 0.23243020474910736, -0.029380319640040398, -0.36768049001693726, 0.08223440498113632, -0.041612692177295685, 0.11304027587175369, 0.42611250281333923, -0.1032336875796318, 0.057792115956544876, 0.3466843366622925, -0.0036737171467393637, -0.07816635072231293, 0.3455252945423126, 0.20279079675674438, -0.39035218954086304, -0.03522874787449837, 0.13110142946243286, -0.020605947822332382, -0.2782936692237854, 0.04261811450123787, -0.15418529510498047, 0.16440948843955994, 0.31330224871635437, -0.36480873823165894, -0.11994391679763794, -0.10138243436813354, 0.35641512274742126, -0.2605823576450348, 0.015446613542735577, -0.11930801719427109, 0.13402487337589264, -0.07765498012304306, -0.04521404579281807, -0.06826065480709076, 0.08284440636634827, -0.07097047567367554, 0.2556940019130707, -0.06393710523843765, -0.3214077353477478, 0.24986331164836884, -0.12514984607696533, -0.25171181559562683, -0.06535166501998901, 0.15045419335365295, -0.4629356265068054, -0.1572735607624054, 0.0920550748705864, 0.10184867680072784, 0.486656129360199, 0.1113804429769516, 0.40114131569862366, -0.31419646739959717, -0.032985009253025055, 0.14621330797672272, 0.12907400727272034, -0.18243496119976044, 0.6450850367546082, -0.14329738914966583, -0.14515088498592377, 0.05702716484665871, 0.11644020676612854, 0.38429325819015503, -0.04621867835521698, 0.21325093507766724, 0.1516084522008896, -0.1438690721988678, -0.2672666609287262, -0.14008720219135284, -0.1376992166042328, 0.07166118174791336, 0.21397273242473602, -0.11587725579738617, -0.18282470107078552, 0.15621012449264526, -0.22691187262535095, -0.18323519825935364, 0.16157951951026917, -0.3105661869049072, -0.2790355086326599, -0.11833684891462326, 0.10625859349966049, -0.05227619409561157, 0.23759052157402039, -0.08727070689201355, 0.18049272894859314, -0.08684824407100677, 0.42610079050064087, -0.37058165669441223, -0.02144407480955124, -0.1634516716003418, 0.16510890424251556, 0.32536736130714417, -0.024626394733786583, 0.015283988788723946, 0.14704638719558716, 0.17588084936141968, 0.19756831228733063, -0.1980697065591812, -0.30650630593299866, 0.15625038743019104, 0.04775707423686981, -0.12288066744804382, 0.014831424690783024, 0.1809360533952713, 0.08752806484699249, -0.4422791600227356, -0.37742435932159424, 0.1015632301568985, -0.00863717868924141, -0.0991133600473404, 0.0038007590919733047, 0.3627703785896301, -0.0334007553756237, 0.14551962912082672, -0.005868145730346441, 0.06340815126895905, -0.07658643275499344, -0.12441866099834442, 0.3410065472126007, 0.19389119744300842, -0.11760004609823227, 0.1448969542980194, -0.1172143742442131, 0.16000179946422577, -0.11598380655050278, 0.2434903234243393, 0.04486868530511856, -0.2600499987602234, -0.09803036600351334, 0.4227244257926941, 0.35294198989868164, 0.22676144540309906, 0.09674122929573059, 0.07209324836730957, 0.22893941402435303, -0.17389395833015442, -0.11638481169939041, 0.6512265801429749, 0.01669788919389248, 0.4703911542892456, -0.01576460525393486, 0.08511674404144287, 0.5125300288200378, -0.036524586379528046, 0.003891601227223873, 0.0008234778651967645, -0.32974934577941895, 0.07687423378229141, -0.06887932866811752, 0.2154848575592041, -0.10737451910972595, -0.05406928062438965, -0.09200740605592728, 0.14574621617794037, 0.14219896495342255, -0.0178031325340271, 0.8452953696250916, -0.13183504343032837, 0.05420470982789993, 0.17471666634082794, -0.26613369584083557, 0.1045222282409668, 0.12426009029150009, 0.07839453220367432, 0.3264677822589874, 0.05459772050380707, 0.07711820304393768, 0.0885586366057396, -0.46754634380340576, -0.1652887761592865, 0.6315931081771851, -0.07642631977796555, -0.24111710488796234, -0.04661009833216667, -0.02627124823629856, -0.08564107120037079, -0.010362916626036167, 0.20477165281772614, 0.06208803504705429, 0.5979968309402466, 0.08511178940534592, 0.43135735392570496, 0.06767510622739792, -0.017910342663526535, -0.09406057745218277, 0.38158363103866577, -0.09178674966096878, -0.14649347960948944, 0.1808096468448639, -0.20791840553283691, -0.21647411584854126, 0.23285678029060364, 0.10202952474355698, 0.18162290751934052, -0.06675341725349426, 0.4536268711090088, -0.2325473576784134, -0.009597604162991047, -0.2429829090833664, 0.24013186991214752, -0.15554167330265045, 0.11961033940315247, 0.3448842167854309, 0.11267107725143433, -0.1828778237104416, -0.34772825241088867, -0.08739966154098511, 0.0183537770062685, -0.2619008719921112, 0.15967988967895508, 0.09099739789962769, -0.26788511872291565, 0.022400973364710808, 0.06592823565006256, -0.32292094826698303, -0.29469674825668335, 0.5998607277870178, -0.5497961640357971, -0.06027403846383095, 0.07827557623386383, 0.13139411807060242, -0.2361159324645996, 0.6309192776679993, 0.04592481628060341, 0.39572709798812866, -0.03250927850604057, -0.09843417257070541, -0.4964114725589752, -0.14138537645339966, -0.1640995442867279, 0.06147819012403488, 0.0978119820356369, 0.4516777992248535, 0.22575856745243073, 0.3760366141796112, 0.0037351304199546576, -0.3737083673477173, 0.009311588481068611, 0.17768731713294983, -0.45793092250823975, 0.10844845324754715, -0.41925308108329773, -0.20529583096504211, 0.1998189389705658, -0.3315635025501251, 0.24845647811889648, 0.06719930469989777, 0.11896831542253494, -0.16506534814834595, 0.11831044405698776, 0.5072963833808899, 0.0071779959835112095, 0.06850043684244156, 0.006912691053003073, 0.3343532383441925, -0.24958936870098114, 0.027046112343668938, -0.1677873432636261, 0.12006595730781555, -0.2708980441093445, 0.011997128836810589, -0.03570523113012314, 0.32536256313323975, -0.1558251529932022, -0.10593928396701813, -0.06966210901737213, -0.0041541485115885735, -0.11985046416521072, -0.21383732557296753, 0.08234351128339767, 0.01794879138469696, 0.17027723789215088, 0.2766761779785156, -0.10189773142337799, 0.44295763969421387, 0.06408080458641052, 0.1211884543299675, -0.11469467729330063, -0.12873680889606476, 0.300287127494812, -0.46909868717193604, -0.24098868668079376, -0.34124955534935, 0.07182542979717255, -0.17410725355148315, 0.37930187582969666, -0.3779059052467346, -0.2622275948524475, 0.22996726632118225, -0.08290240913629532, -0.08098986744880676, 0.5007373690605164, 0.1311318427324295, -0.3234911859035492, -0.13775281608104706, -0.26307567954063416, -0.04669388383626938, -0.3111959397792816, -0.08744078129529953, -0.16571877896785736 ]
https://github.com/huggingface/datasets/issues/426
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
Multiprocessing was added in #552 . You can set the number of processes with `.map(..., num_proc=...)`. It also works for `filter` Closing this one, but feel free to reo-open if you have other questions
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
34
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? Multiprocessing was added in #552 . You can set the number of processes with `.map(..., num_proc=...)`. It also works for `filter` Closing this one, but feel free to reo-open if you have other questions
[ -0.31180915236473083, -0.2080805003643036, -0.17793233692646027, -0.1730467677116394, -0.34365028142929077, -0.1113172098994255, 0.19715510308742523, 0.2835273742675781, 0.039257749915122986, 0.07929804176092148, -0.07674511522054672, 0.3925561010837555, -0.05090495944023132, 0.35081708431243896, -0.040817663073539734, -0.1657487452030182, 0.07918091118335724, 0.1307995319366455, -0.11498947441577911, 0.06480179727077484, -0.06831876188516617, 0.05583714321255684, -0.16731198132038116, -0.07109886407852173, -0.18491031229496002, -0.13211287558078766, -0.14065438508987427, -0.016699492931365967, 0.0662531852722168, -0.24193628132343292, 0.03186572343111038, 0.4328880310058594, -0.17550452053546906, 0.07039660960435867, -0.00009809881885303184, -0.2013363391160965, 0.20069843530654907, 0.17781367897987366, -0.101416677236557, 0.32998034358024597, -0.27821382880210876, -0.433295875787735, 0.03836967796087265, -0.24761247634887695, 0.14912296831607819, 0.2048671394586563, 0.2674974501132965, -0.245467871427536, 0.19227004051208496, -0.1812831610441208, 0.23171567916870117, 0.20431609451770782, -0.11518052220344543, 0.23205074667930603, -0.10504930466413498, 0.1807970404624939, -0.09229757636785507, -0.27464547753334045, 0.3728888928890228, -0.16939103603363037, -0.3322257995605469, 0.5420417785644531, -0.2429719716310501, 0.1591806411743164, 0.13803108036518097, -0.0897846519947052, 0.13106955587863922, -0.37271085381507874, -0.11799010634422302, 0.2599782645702362, -0.053914424031972885, -0.13539178669452667, -0.3391510248184204, -0.2734779417514801, -0.20564022660255432, -0.45678073167800903, -0.21214109659194946, 0.08968087285757065, -0.2025434523820877, -0.11866796761751175, -0.3784823715686798, -0.279865562915802, 0.26430174708366394, -0.19410733878612518, 0.23180228471755981, 0.38398391008377075, 0.22918814420700073, 0.06884737312793732, 0.17879948019981384, -0.2928029000759125, -0.1345086395740509, -0.22451554238796234, 0.09036464244127274, 0.00940299779176712, -0.5751146674156189, -0.13058353960514069, 0.09208808839321136, 0.07423820346593857, 0.07725457102060318, 0.03945348039269447, 0.08628019690513611, 0.3419398069381714, 0.1756998747587204, 0.25254473090171814, 0.03411892056465149, -0.34200721979141235, 0.2699640095233917, -0.04827360808849335, 0.09755987673997879, -0.26774996519088745, -0.20286664366722107, 0.3006496727466583, 0.17569087445735931, -0.11668827384710312, -0.18955788016319275, 0.06903907656669617, -0.08177294582128525, 0.11618759483098984, 0.053116247057914734, -0.3807056248188019, 0.19336406886577606, -0.1785687804222107, 0.11732116341590881, 0.12444562464952469, 0.017526276409626007, 0.28645065426826477, -0.225784569978714, -0.21211682260036469, -0.26770254969596863, -0.2029416412115097, -0.15252158045768738, 0.007456365041434765, -0.06091513857245445, 0.0846329927444458, 0.14583368599414825, 0.2318815439939499, -0.03292291983962059, 0.0872347354888916, 0.06805256754159927, 0.3604515790939331, 0.25508344173431396, -0.08515598624944687, 0.08561499416828156, 0.17472361028194427, -0.04975450038909912, -0.10488446056842804, -0.18602913618087769, 0.00500459223985672, -0.33728718757629395, -0.047594547271728516, -0.21842119097709656, -0.09545417875051498, -0.026066331192851067, 0.21722657978534698, 0.12907767295837402, -0.031236421316862106, -0.1767546832561493, 0.595127522945404, 0.011326723732054234, -0.14511536061763763, -0.3826848268508911, -0.06070433184504509, -0.3916885256767273, -0.23387406766414642, 0.2800225019454956, 0.10818487405776978, 0.047265034168958664, 0.040640801191329956, -0.2878507673740387, -0.028380347415804863, 0.3236941993236542, 0.2599790394306183, -0.1431950181722641, -0.014988396316766739, -0.04363790899515152, 0.5232228636741638, 0.5169827938079834, -0.02682703174650669, 0.053001198917627335, 0.40434280037879944, -0.13246649503707886, -0.055330656468868256, 0.286244660615921, 0.22779344022274017, 0.22586984932422638, -0.06350092589855194, 0.04824548959732056, 0.5034411549568176, -0.24820950627326965, 0.29106077551841736, -0.09094494581222534, -0.10397253185510635, 0.09812474250793457, 0.10331852734088898, 0.027224110439419746, 0.03126797452569008, 0.027979064732789993, -0.20897914469242096, 0.41577231884002686, -0.23041322827339172, 0.17091549932956696, 0.021493030712008476, -0.05771269649267197, -0.15295229852199554, -0.12219902127981186, -0.3011997938156128, -0.2843003273010254, 0.09867002815008163, -0.17949755489826202, -0.007939687930047512, 0.18248197436332703, -0.3726179003715515, 0.33921805024147034, 0.11650963127613068, 0.09805002063512802, 0.13064062595367432, 0.27332603931427, 0.3272751271724701, 0.0731172040104866, -0.30915573239326477, -0.15739375352859497, 0.16968096792697906, 0.017495647072792053, -0.19165582954883575, -0.1207505539059639, 0.20650188624858856, 0.09378820657730103, -0.15174563229084015, 0.16741113364696503, 0.1059085875749588, 0.04968901351094246, -0.03461324796080589, 0.19245804846286774, 0.016988417133688927, -0.04596087709069252, 0.3286036550998688, 0.6206994652748108, 0.2523432970046997, 0.10509277880191803, 0.17444851994514465, -0.009199108928442001, -0.13139797747135162, -0.010349778458476067, -0.1294965296983719, -0.1501307189464569, 0.49557918310165405, 0.042268067598342896, 0.3763102889060974, 0.22617381811141968, 0.07796011120080948, 0.27081558108329773, -0.04746437072753906, -0.0896141529083252, 0.16306717693805695, 0.16361717879772186, -0.02121155522763729, -0.11455783993005753, 0.26523205637931824, -0.42783477902412415, 0.3981325626373291, 0.4963062107563019, 0.12931038439273834, -0.042588647454977036, 0.0880846232175827, 0.25109589099884033, -0.14944879710674286, 0.18891054391860962, 0.1442227065563202, 0.21221961081027985, 0.29624107480049133, 0.18685774505138397, -0.14146916568279266, -0.10816195607185364, -0.03511960431933403, 0.18746669590473175, 0.1344645619392395, 0.23699085414409637, 0.07469306886196136, 0.10961896181106567, -0.28498539328575134, -0.21900524199008942, -0.38902735710144043, 0.1656535118818283, -0.06170853599905968, 0.08153980225324631, -0.08099057525396347, -0.21831907331943512, -0.15576036274433136, -0.03165769949555397, 0.21919584274291992, -0.21915940940380096, -0.33720433712005615, 0.10163142532110214, 0.16401280462741852, -0.2236170470714569, 0.1987195760011673, 0.11815237253904343, 0.16232365369796753, -0.18388023972511292, 0.13282497227191925, -0.1803705245256424, -0.11766970157623291, -0.007628853432834148, 0.13613151013851166, 0.3037854731082916, 0.37854716181755066, 0.46649909019470215, 0.1868598461151123, 0.07074104249477386, -0.3563059866428375, -0.18309354782104492, -0.05959654971957207, -0.1524491310119629, 0.0921870619058609, -0.025097733363509178, -0.038661181926727295, -0.2330758273601532, -0.39065104722976685, 0.15926586091518402, 0.04928183928132057, -0.15214420855045319, -0.13262610137462616, 0.016596905887126923, -0.035267483443021774, -0.05127264931797981, -0.2436922937631607, -0.42697247862815857, -0.42753469944000244, 0.358669638633728, -0.1808326542377472, 0.3601452708244324, -0.33180421590805054, -0.07437273859977722, -0.030360350385308266, -0.24774670600891113, 0.07954256981611252, 0.08812598139047623, -0.28296416997909546, 0.08574913442134857, -0.07664656639099121, -0.19642502069473267, -0.2926121950149536, -0.09881249070167542, 0.042691972106695175, 0.3463362157344818, -0.08477647602558136, -0.0028073943685740232, -0.21959920227527618, 0.15388017892837524, 0.26124367117881775, -0.05881420522928238, 0.16578839719295502, 0.05103510245680809, -0.22152870893478394, 0.11237520724534988, -0.24121077358722687, 0.15038922429084778, -0.1320759505033493, -0.14096257090568542, 0.1440400332212448, 0.3033941388130188, -0.015279172919690609, 0.531575620174408, 0.11512026190757751, -0.11210663616657257, 0.021554412320256233, 0.1098574548959732, -0.18576687574386597, 0.17432811856269836, -0.44033727049827576, 0.0002035532088484615, -0.11812175810337067, 0.03276360034942627, 0.1311003416776657, -0.11729659140110016, -0.5028037428855896, -0.027268672361969948, 0.05822603777050972, -0.19815534353256226, -0.1705222874879837, 0.20181186497211456, -0.19893276691436768, 0.27834606170654297, 0.08017998188734055, -0.3016015589237213, -0.3575440049171448, 0.07432953268289566, -0.26809605956077576, -0.02703297697007656, 0.21399366855621338, -0.18875017762184143, -0.47727611660957336, -0.18428538739681244, -0.5468438863754272, 0.31805065274238586, 0.13745194673538208, 0.11324335634708405, -0.05436406657099724, -0.00378404906950891, -0.05917380750179291, -0.17515335977077484, 0.4736833870410919, -0.3019968867301941, -0.1694517433643341, 0.29560112953186035, -0.33680886030197144, 0.031515639275312424, 0.21253584325313568, -0.07062708586454391, 0.45954760909080505, 0.4683879315853119, 0.26173946261405945, -0.3323930501937866, -0.3635454773902893, 0.1668347716331482, 0.06840331107378006, -0.09425076842308044, 0.020263997837901115, -0.12934452295303345, -0.06941309571266174, -0.207835853099823, 0.11281994730234146, -0.0865994244813919, 0.13330264389514923, -0.03642095625400543, -0.1267882138490677, -0.13072964549064636, 0.007930166088044643, 0.3029809296131134, 0.0826520174741745, -0.03281230852007866, 0.26580893993377686, 0.23775766789913177, -0.3488392233848572, 0.22704361379146576, -0.15229645371437073, -0.019971981644630432, -0.18435651063919067, 0.13444627821445465, -0.06265348196029663, -0.06927479058504105, 0.5562537312507629, 0.25021621584892273, 0.1834811270236969, 0.3105384111404419, -0.0753905400633812, 0.4139235019683838, -0.15326087176799774, 0.01144742127507925, 0.33464786410331726, 0.1599072813987732, -0.20390838384628296, -0.22294197976589203, 0.2769015431404114, 0.2694518268108368, -0.12536592781543732, 0.3823760449886322, -0.24210995435714722, -0.0711117684841156, 0.25614187121391296, 0.12500064074993134, 0.6941611170768738, -0.25479915738105774, 0.04514578357338905, -0.2514954209327698, 0.145106703042984, 0.3248782455921173, -0.28042614459991455, 0.2194977104663849, -0.05861911550164223, -0.18636265397071838, 0.14322994649410248, 0.019223207607865334, 0.19099916517734528, 0.46858498454093933, -0.26561182737350464, 0.1729699671268463, 0.2839282751083374, -0.17429181933403015, -0.078282929956913, 0.4526761472225189, 0.14737078547477722, -0.40949317812919617, -0.16836199164390564, 0.160909965634346, -0.047813985496759415, -0.35706499218940735, 0.038035303354263306, -0.2977583110332489, 0.18695984780788422, 0.17041079699993134, -0.30531051754951477, -0.01628643088042736, 0.1349390596151352, 0.37028539180755615, -0.26351043581962585, -0.010327781550586224, -0.22824057936668396, 0.08045002818107605, -0.16402378678321838, 0.028227757662534714, 0.013841944746673107, 0.1121843084692955, -0.13298097252845764, 0.24834685027599335, -0.17284247279167175, -0.25326526165008545, 0.19582685828208923, -0.2532755434513092, -0.1808163970708847, -0.033478107303380966, 0.06692071259021759, -0.5287501215934753, -0.14466319978237152, 0.15387772023677826, 0.09375384449958801, 0.3899879455566406, 0.03030790016055107, 0.3620774447917938, -0.4090330898761749, -0.18282604217529297, 0.1932813823223114, 0.23135338723659515, -0.22004380822181702, 0.5411831140518188, 0.1586206555366516, -0.10134626924991608, -0.0034010366071015596, 0.08322426676750183, 0.2891550362110138, 0.006169489584863186, 0.24808743596076965, 0.06552989780902863, -0.20691269636154175, -0.32574835419654846, -0.20691372454166412, -0.22690917551517487, 0.05337384715676308, 0.30176103115081787, -0.13788440823554993, -0.21424850821495056, 0.061209242790937424, -0.12858088314533234, -0.12593494355678558, 0.13658997416496277, -0.217275008559227, -0.1887904852628708, -0.14223329722881317, 0.09681233763694763, -0.23314131796360016, 0.1975516676902771, -0.0019943108782172203, 0.05190763995051384, 0.036659374833106995, 0.4807848036289215, -0.43443313241004944, -0.12753386795520782, -0.31877610087394714, 0.23303577303886414, 0.27375128865242004, -0.04720510542392731, -0.18614482879638672, 0.24893902242183685, 0.23555798828601837, 0.12250753492116928, -0.1975661814212799, -0.35291486978530884, 0.21409623324871063, 0.038699839264154434, -0.1522495001554489, 0.06883562356233597, 0.07611625641584396, 0.1387799084186554, -0.31819668412208557, -0.30290156602859497, -0.13156521320343018, -0.18980175256729126, -0.07963051646947861, 0.07646661251783371, 0.22175124287605286, -0.2593086063861847, 0.33507752418518066, 0.02144172042608261, 0.08406420052051544, -0.13677218556404114, -0.22129511833190918, 0.34796392917633057, 0.16341012716293335, -0.2223723828792572, 0.23424860835075378, -0.0871865451335907, 0.0017216131091117859, -0.13127224147319794, 0.2663228511810303, 0.04079458862543106, -0.2608647048473358, -0.019350659102201462, 0.37146541476249695, 0.35685858130455017, 0.23907318711280823, 0.15673257410526276, 0.09422106295824051, 0.24893130362033844, -0.32490384578704834, -0.16936969757080078, 0.5596206784248352, -0.03390758857131004, 0.3383581340312958, -0.15672768652439117, 0.21891440451145172, 0.24029378592967987, 0.08322428911924362, 0.04722846671938896, -0.08509910106658936, -0.34236735105514526, -0.022366566583514214, -0.09068526327610016, 0.3015959560871124, -0.07772614806890488, 0.11497575044631958, 0.12277980893850327, 0.18773284554481506, 0.1768869310617447, -0.016962196677923203, 0.7731492519378662, -0.05366496741771698, 0.2881837785243988, 0.15299387276172638, -0.12935304641723633, 0.1669364720582962, 0.19242775440216064, 0.07116421312093735, 0.19933445751667023, 0.13279491662979126, 0.15432339906692505, 0.03727533295750618, -0.4504740834236145, -0.21498163044452667, 0.6825036406517029, -0.1505434811115265, -0.3235413730144501, -0.09154628962278366, -0.11691393703222275, -0.16023874282836914, 0.09446500986814499, 0.12781311571598053, 0.17653995752334595, 0.6568735241889954, 0.015062800608575344, 0.36606401205062866, -0.07144920527935028, 0.16607622802257538, -0.15782111883163452, 0.3040831387042999, -0.2052641361951828, -0.2164439857006073, 0.14202657341957092, -0.18921047449111938, -0.06551679968833923, 0.3563251495361328, 0.2488280087709427, 0.28482314944267273, -0.14410963654518127, 0.27260228991508484, -0.29566821455955505, -0.05943640321493149, -0.37890127301216125, 0.24861371517181396, 0.014597688801586628, 0.04570493474602699, 0.4520912170410156, 0.1537102460861206, -0.207393616437912, -0.2555694580078125, 0.05293073132634163, 0.010849456302821636, -0.23080360889434814, 0.19992728531360626, 0.15418589115142822, -0.1907089650630951, -0.061172664165496826, 0.05794447660446167, -0.49015486240386963, -0.25927600264549255, 0.5490933060646057, -0.4322649836540222, -0.01961744762957096, -0.1755622923374176, 0.152859628200531, -0.2001219540834427, 0.6736972332000732, 0.00278885243460536, 0.34335580468177795, -0.026460006833076477, -0.2550082504749298, -0.5719373226165771, -0.3019401729106903, -0.09005874395370483, -0.05638108775019646, 0.18245692551136017, 0.5611230134963989, 0.16246221959590912, 0.27249154448509216, -0.13719148933887482, -0.2531251311302185, -0.07214763015508652, 0.058338847011327744, -0.4192558228969574, 0.23775647580623627, -0.1238059550523758, -0.07895144075155258, 0.15404300391674042, -0.3220902681350708, 0.31573405861854553, 0.016087761148810387, 0.2028985321521759, -0.09456750005483627, 0.02614409849047661, 0.4906814992427826, 0.19405297935009003, -0.15698190033435822, 0.14602656662464142, 0.31121018528938293, -0.337352454662323, -0.0026020656805485487, -0.14946335554122925, 0.10653407126665115, -0.16622108221054077, -0.09496412426233292, 0.04399286210536957, 0.3311825394630432, -0.16196034848690033, 0.25680482387542725, -0.044105105102062225, 0.21646326780319214, -0.20967130362987518, -0.0430675745010376, 0.18071186542510986, 0.029911402612924576, 0.14887255430221558, 0.2463064044713974, -0.1401851773262024, 0.27373793721199036, -0.007809131871908903, 0.03374135494232178, -0.14305727183818817, -0.21259638667106628, 0.24097585678100586, -0.3951698839664459, -0.24289122223854065, -0.3473043441772461, 0.21902956068515778, 0.04085272178053856, 0.32732540369033813, -0.2465284913778305, -0.34460338950157166, 0.21228909492492676, -0.03486679866909981, -0.01911393366754055, 0.4801187813282013, -0.13468483090400696, -0.28613781929016113, -0.16346375644207, -0.2962389588356018, 0.04627358540892601, -0.2897835373878479, -0.16702038049697876, -0.2816140651702881 ]
https://github.com/huggingface/datasets/issues/426
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
@lhoestq Great feature implemented! Do you have plans to add it to official tutorials [Processing data in a Dataset](https://huggingface.co/docs/datasets/processing.html?highlight=save#augmenting-the-dataset)? It took me sometime to find this parallel processing api.
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
29
[FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? @lhoestq Great feature implemented! Do you have plans to add it to official tutorials [Processing data in a Dataset](https://huggingface.co/docs/datasets/processing.html?highlight=save#augmenting-the-dataset)? It took me sometime to find this parallel processing api.
[ -0.2608763873577118, -0.4052208364009857, -0.167119562625885, 0.024264903739094734, -0.34769946336746216, 0.10837904363870621, 0.09586942940950394, 0.10010924935340881, 0.00977533869445324, 0.07798178493976593, -0.12978798151016235, 0.26878464221954346, 0.028804423287510872, 0.5679565668106079, 0.035218920558691025, -0.30848944187164307, 0.07579702138900757, 0.12604685127735138, -0.04775821045041084, 0.19724375009536743, 0.019763652235269547, 0.15983963012695312, -0.27881571650505066, -0.1252325475215912, -0.24529092013835907, -0.1634080857038498, -0.19110338389873505, -0.019652288407087326, -0.05949750542640686, -0.15034668147563934, 0.046167198568582535, 0.4871738851070404, -0.2316056191921234, 0.23612867295742035, -0.00010790782107505947, -0.20297470688819885, 0.15033160150051117, 0.229871928691864, -0.05376700311899185, 0.20070219039916992, -0.1934657245874405, -0.477765291929245, -0.014705654233694077, -0.07633709907531738, 0.0592205673456192, 0.11958202719688416, 0.1778102070093155, -0.26913172006607056, 0.1904296875, -0.37261271476745605, 0.12446171790361404, 0.3582199513912201, -0.05452623590826988, 0.270407497882843, -0.2098025381565094, 0.46460071206092834, -0.07393057644367218, -0.19201047718524933, 0.4698047637939453, -0.14419595897197723, -0.19066224992275238, 0.5513609051704407, -0.21676646173000336, 0.1467212289571762, 0.20115400850772858, -0.04676615819334984, -0.18241342902183533, -0.4495764672756195, -0.15063054859638214, 0.353819876909256, -0.024054504930973053, -0.13829725980758667, -0.5037170648574829, -0.4508940577507019, -0.13390475511550903, -0.40863996744155884, -0.17068596184253693, 0.11095378547906876, -0.1954033076763153, 0.030999528244137764, -0.48848840594291687, -0.36457914113998413, 0.27956828474998474, -0.18786416947841644, 0.29828792810440063, 0.2111882120370865, 0.004194264300167561, 0.09641891717910767, 0.2584792375564575, -0.19326508045196533, -0.25652870535850525, -0.27721232175827026, 0.1194256991147995, 0.033773310482501984, -0.6784652471542358, -0.060389693826436996, -0.006560852285474539, 0.1300583928823471, 0.1923830360174179, 0.12901195883750916, 0.10125596076250076, 0.3147672712802887, -0.022961467504501343, 0.22534172236919403, 0.10740192234516144, -0.3512951731681824, 0.17503340542316437, -0.1152893453836441, 0.13110069930553436, -0.19044019281864166, -0.029814118519425392, 0.20257532596588135, 0.21382731199264526, -0.051817141473293304, -0.41356244683265686, 0.0292813777923584, 0.02773670107126236, 0.10041561722755432, 0.07463262230157852, -0.37556490302085876, 0.1856488585472107, -0.29914170503616333, 0.1410415917634964, 0.04199441149830818, -0.009586328640580177, 0.33973103761672974, -0.14180780947208405, -0.13328398764133453, -0.23400536179542542, -0.23821143805980682, -0.09717045724391937, -0.051624845713377, -0.03319764509797096, 0.2781027853488922, 0.12049971520900726, 0.04428190365433693, -0.05068247392773628, 0.14772820472717285, 0.14398260414600372, 0.2672162353992462, 0.2075038105249405, -0.12425541132688522, 0.06952609121799469, 0.18338941037654877, -0.07269155979156494, -0.03839601203799248, -0.11696582287549973, 0.2222469449043274, -0.2571868598461151, -0.09597035497426987, -0.22058171033859253, -0.20751625299453735, -0.1869588941335678, 0.07734808325767517, 0.10482599586248398, -0.10925905406475067, -0.47877079248428345, 0.7779140472412109, 0.07130914181470871, -0.011500556953251362, -0.29457730054855347, 0.022748734802007675, -0.5353254675865173, -0.1817249059677124, 0.3416649103164673, 0.1284206360578537, -0.04856573045253754, -0.03654058650135994, -0.22283490002155304, -0.10784390568733215, 0.24035437405109406, 0.44142457842826843, -0.2017015814781189, 0.12921370565891266, -0.17854389548301697, 0.48366057872772217, 0.5142182111740112, -0.1295250952243805, 0.08300108462572098, 0.37425345182418823, -0.1477963775396347, 0.0708046481013298, 0.3142758011817932, 0.19002892076969147, 0.20826269686222076, 0.027614058926701546, 0.14447274804115295, 0.5401507019996643, -0.1980229616165161, 0.22309713065624237, 0.005955416709184647, -0.18978190422058105, 0.22617094218730927, 0.16229970753192902, -0.15246495604515076, 0.08584804087877274, -0.07611077278852463, -0.5189329385757446, 0.4866417646408081, -0.297456830739975, 0.15626029670238495, 0.058901913464069366, -0.13139551877975464, 0.09266036748886108, -0.06697472184896469, -0.32717350125312805, -0.3598516583442688, 0.06885451078414917, -0.04177844896912575, -0.04910838231444359, 0.08304715156555176, -0.3939547836780548, 0.4155665636062622, 0.09817176312208176, 0.0268564336001873, 0.008658600971102715, 0.1069580465555191, 0.1812455803155899, 0.15198029577732086, -0.23609350621700287, -0.3061075210571289, 0.3358490765094757, -0.0799679309129715, -0.012365847826004028, -0.35268929600715637, 0.21383407711982727, 0.25085538625717163, -0.05532534047961235, 0.04190445318818092, 0.12120642513036728, -0.05146084725856781, -0.12647855281829834, 0.14276503026485443, -0.003184470348060131, -0.04930545762181282, 0.2550182640552521, 0.655081033706665, 0.2654027044773102, 0.2627616226673126, 0.07855640351772308, 0.023095404729247093, -0.27532753348350525, 0.03824693709611893, -0.21530500054359436, -0.16839729249477386, 0.5540848970413208, -0.04102407023310661, 0.40230414271354675, 0.0917554497718811, -0.013163059018552303, 0.23495976626873016, 0.07330116629600525, -0.07017595320940018, 0.2105984091758728, 0.1526687890291214, -0.08113262057304382, 0.027083132416009903, 0.14318875968456268, -0.4629766345024109, 0.3415262997150421, 0.44022253155708313, 0.005871255416423082, -0.20786605775356293, 0.08403734862804413, 0.18721957504749298, -0.11107755452394485, 0.196788027882576, 0.02382062003016472, 0.18814921379089355, 0.18847447633743286, 0.050334811210632324, -0.04544259235262871, 0.10284849256277084, -0.06637246161699295, 0.1176733747124672, 0.32051482796669006, 0.21684791147708893, -0.02652515284717083, 0.16707485914230347, -0.2363257110118866, -0.2827827036380768, -0.2901483178138733, 0.17368623614311218, -0.10771031677722931, 0.019660430029034615, -0.06152781471610069, -0.18522009253501892, -0.1912413388490677, -0.04619484767317772, 0.04788708686828613, -0.30567991733551025, -0.30417659878730774, -0.08128045499324799, 0.3092374801635742, -0.05187176913022995, 0.07619810849428177, 0.2212899625301361, 0.21300673484802246, -0.19765469431877136, -0.008133847266435623, -0.2818005383014679, 0.01248982734978199, 0.12855304777622223, 0.031392257660627365, 0.3022119402885437, 0.3320911228656769, 0.4555436372756958, 0.12329491972923279, 0.09103270620107651, -0.44556933641433716, -0.20407657325267792, -0.01796458661556244, -0.27676162123680115, 0.13668560981750488, 0.12262193858623505, 0.12018018960952759, -0.1607811152935028, -0.27908840775489807, 0.19724270701408386, 0.1088808923959732, -0.21220797300338745, -0.26809415221214294, 0.0608801431953907, -0.024981973692774773, -0.02411258965730667, -0.149021178483963, -0.47957363724708557, -0.3343915343284607, 0.5942113399505615, -0.2876605987548828, 0.2276884913444519, -0.33080706000328064, -0.11933030933141708, -0.0027464027516543865, -0.3504946231842041, 0.06652823835611343, 0.019051235169172287, -0.4718959331512451, 0.020882366225123405, 0.01185761857777834, -0.11374875158071518, -0.24908533692359924, -0.019860152155160904, -0.06454039365053177, 0.23783230781555176, -0.0836322233080864, -0.10059989988803864, -0.358882874250412, 0.2384418100118637, 0.21210871636867523, 0.09817977249622345, 0.2778331935405731, -0.07961280643939972, -0.07055719196796417, 0.13386015594005585, -0.4800577461719513, 0.03979405388236046, -0.000913755560759455, -0.16053330898284912, 0.2632182240486145, 0.3609153926372528, 0.0008576253894716501, 0.7097069025039673, 0.2304421365261078, -0.04740290716290474, 0.1350756734609604, 0.12800419330596924, -0.16661015152931213, 0.056813694536685944, -0.5510417819023132, -0.03511769697070122, -0.1622919738292694, 0.07030630856752396, 0.024874769151210785, -0.034696366637945175, -0.24920305609703064, -0.09008853137493134, 0.016269685700535774, -0.3376838266849518, -0.09108677506446838, 0.08674643933773041, -0.04715438559651375, 0.2308439165353775, 0.0760255977511406, -0.3100883960723877, -0.260721892118454, 0.05415615066885948, -0.20187057554721832, 0.13854792714118958, 0.3485729694366455, -0.1705935299396515, -0.5018060803413391, -0.13230478763580322, -0.6374374628067017, 0.44334495067596436, 0.2480609118938446, 0.039876725524663925, 0.008630426600575447, 0.06634359806776047, 0.1311948597431183, -0.19644761085510254, 0.724382758140564, -0.2557777762413025, -0.36009150743484497, 0.22711525857448578, -0.5849371552467346, 0.08723020553588867, 0.19748947024345398, 0.07061458379030228, 0.4089241623878479, 0.43235281109809875, 0.4398615062236786, -0.31287431716918945, -0.4502796530723572, 0.20788075029850006, 0.10225027799606323, -0.06412642449140549, -0.010884243994951248, -0.15863226354122162, -0.07439034432172775, -0.2673553228378296, 0.1051841452717781, -0.04299362376332283, 0.07704965025186539, 0.0950402319431305, -0.045587752014398575, -0.07072287797927856, 0.01834498904645443, 0.19131353497505188, -0.0161744374781847, -0.06983571499586105, 0.24217411875724792, 0.299871027469635, -0.0922841802239418, 0.09461886435747147, -0.06918198615312576, 0.15996700525283813, -0.12372296303510666, -0.19600524008274078, -0.07253224402666092, -0.03381491079926491, 0.6675155758857727, 0.24533440172672272, 0.22986754775047302, 0.36703869700431824, 0.097897969186306, 0.3856656551361084, -0.40255817770957947, 0.02535441517829895, 0.4367719888687134, 0.22923532128334045, -0.39203202724456787, -0.3054979145526886, 0.35324543714523315, 0.3055293560028076, -0.016956280916929245, 0.5018377304077148, -0.014423726126551628, 0.004128631204366684, 0.1329771876335144, -0.014276443980634212, 0.7471272945404053, -0.3258095681667328, 0.13323676586151123, -0.3017100691795349, 0.04639871418476105, 0.38421496748924255, -0.3119765520095825, 0.20140966773033142, -0.10738284885883331, -0.23718751966953278, 0.04423923417925835, 0.012799043208360672, 0.3001088500022888, 0.2647266983985901, -0.12615181505680084, 0.31285372376441956, 0.26692602038383484, -0.09074287861585617, -0.12108113616704941, 0.46415597200393677, 0.1661950647830963, -0.4408358037471771, -0.24534568190574646, 0.073063425719738, -0.029326293617486954, -0.17367129027843475, 0.04854729026556015, -0.2938823997974396, 0.20224638283252716, 0.14787568151950836, -0.3816898465156555, -0.09094032645225525, -0.08112125098705292, 0.26814988255500793, -0.1340632289648056, -0.12422636151313782, -0.04414801672101021, 0.06124880909919739, -0.04844940826296806, -0.05566499009728432, -0.05689111724495888, 0.034033384174108505, -0.2474517971277237, 0.23476815223693848, -0.24759134650230408, -0.2561883330345154, 0.10873472690582275, -0.1369176208972931, -0.18500322103500366, -0.12278548628091812, 0.12354699522256851, -0.5898902416229248, -0.28546154499053955, 0.20595379173755646, 0.004939685110002756, 0.25784575939178467, -0.018939098343253136, 0.32195141911506653, -0.15040068328380585, -0.16497980058193207, 0.06699398159980774, 0.39536190032958984, -0.18209025263786316, 0.42124006152153015, 0.10832668840885162, -0.10378982871770859, -0.04649975523352623, 0.11547344923019409, 0.1658523976802826, -0.17086251080036163, 0.1820627897977829, 0.19659611582756042, -0.18346159160137177, -0.20097139477729797, -0.15374013781547546, -0.13374055922031403, 0.04665904864668846, 0.2491375356912613, -0.004617234226316214, -0.09089010208845139, 0.009366647340357304, 0.03124379925429821, -0.12580347061157227, -0.06459026038646698, -0.1487531214952469, -0.3159016966819763, -0.12746384739875793, 0.10003573447465897, -0.2690616846084595, 0.13804607093334198, 0.09214716404676437, 0.0871022567152977, 0.0886881947517395, 0.5282366871833801, -0.2911812365055084, 0.0323018953204155, -0.06001606211066246, 0.13118816912174225, 0.4815719425678253, -0.020729759708046913, -0.028611481189727783, 0.22528620064258575, 0.11070100963115692, 0.1718190610408783, -0.21505212783813477, -0.25308915972709656, 0.21049189567565918, 0.0922304019331932, -0.08674823492765427, 0.03804633021354675, 0.09126222133636475, 0.1559920758008957, -0.2978247106075287, -0.356559693813324, 0.022543245926499367, -0.08213610202074051, 0.019382011145353317, 0.02034340426325798, 0.16839554905891418, -0.27221497893333435, 0.18225911259651184, 0.032092925161123276, 0.14878728985786438, -0.08594559878110886, -0.16205082833766937, 0.2506084740161896, 0.09972453862428665, -0.16016094386577606, 0.18330051004886627, -0.04291385039687157, 0.31445980072021484, -0.2085181623697281, 0.20270539820194244, -0.010751167312264442, -0.2946524918079376, -0.07233379036188126, 0.46259763836860657, 0.33775919675827026, 0.2870205044746399, 0.26204371452331543, 0.0770762637257576, 0.11315234750509262, -0.22610735893249512, -0.14192530512809753, 0.6985282301902771, 0.027723124250769615, 0.23453661799430847, -0.028705215081572533, 0.2569649815559387, 0.5741377472877502, 0.021092692390084267, -0.048877228051424026, -0.0279532540589571, -0.2640930414199829, 0.08176429569721222, -0.21538470685482025, 0.25477659702301025, -0.020600488409399986, 0.21077336370944977, 0.25711581110954285, 0.1407167762517929, 0.1333978921175003, -0.040063515305519104, 0.7664594650268555, -0.12304859608411789, 0.291415274143219, 0.17564445734024048, -0.3377147316932678, 0.23824478685855865, 0.15969759225845337, 0.13089755177497864, 0.1412181407213211, 0.0603814572095871, 0.35760459303855896, -0.024196619167923927, -0.5762876272201538, -0.2208377867937088, 0.7770319581031799, -0.09920945018529892, -0.2864765226840973, 0.14798183739185333, -0.0764126181602478, -0.009332981891930103, 0.13941138982772827, 0.15873534977436066, 0.03670257329940796, 0.8322876691818237, -0.14246214926242828, 0.32062140107154846, -0.18600670993328094, 0.05008305236697197, -0.0696888193488121, 0.33753228187561035, -0.09121080487966537, -0.1996355503797531, 0.06033845245838165, -0.15614376962184906, -0.13572075963020325, 0.47733795642852783, 0.2478215992450714, 0.13398252427577972, -0.09340184926986694, 0.2575249671936035, -0.43076157569885254, 0.030496999621391296, -0.18874451518058777, 0.3448914587497711, -0.16048046946525574, 0.023877114057540894, 0.450790137052536, 0.05616189166903496, -0.11086654663085938, -0.28681209683418274, -0.0931771770119667, 0.1409202218055725, -0.4509792923927307, 0.16365566849708557, -0.13767100870609283, -0.10649585723876953, -0.1212153360247612, 0.02330191060900688, -0.4255387783050537, -0.17504219710826874, 0.6109219193458557, -0.5048501491546631, -0.11795827001333237, -0.057642947882413864, 0.09092319756746292, -0.15989916026592255, 0.5806359052658081, 0.30982646346092224, 0.2996731102466583, -0.050288256257772446, -0.192774698138237, -0.5379376411437988, -0.45397379994392395, -0.01667816750705242, 0.0847630649805069, 0.12837830185890198, 0.44047459959983826, 0.236476331949234, 0.3570865988731384, 0.04513085260987282, -0.32174938917160034, 0.08707178384065628, 0.0873018279671669, -0.38876062631607056, 0.23698490858078003, -0.17453348636627197, -0.15426653623580933, 0.16266091167926788, -0.21016810834407806, 0.3319193422794342, 0.0708284080028534, 0.012204308994114399, -0.17520850896835327, 0.2532276511192322, 0.25492244958877563, -0.09060180187225342, -0.11705236881971359, 0.21099941432476044, 0.31749993562698364, -0.2899768650531769, -0.023889755830168724, -0.08142844587564468, 0.06248753145337105, -0.193770170211792, 0.07047722488641739, -0.021517422050237656, 0.42097002267837524, -0.2175205945968628, 0.10945086181163788, -0.05966731905937195, 0.26231056451797485, -0.11405642330646515, -0.09235426783561707, 0.06592278927564621, 0.10227885097265244, 0.04512007161974907, 0.12898875772953033, -0.0045117405243217945, 0.32545652985572815, 0.03585287183523178, 0.08319184184074402, -0.15442778170108795, -0.09351739287376404, 0.28181272745132446, -0.483824223279953, -0.2623061537742615, -0.3023214340209961, 0.0809226855635643, 0.18151843547821045, 0.22340542078018188, -0.5047799348831177, -0.2906189262866974, 0.18537384271621704, 0.0037674084305763245, -0.0025370570365339518, 0.6374949812889099, -0.13427476584911346, -0.3422388434410095, -0.17192241549491882, -0.18005287647247314, 0.030383197590708733, -0.30910468101501465, -0.03354545682668686, -0.18729723989963531 ]
https://github.com/huggingface/datasets/issues/425
Correct data structure for PAN-X task in XTREME dataset?
Hi @lhoestq I made the proposed changes to the `xtreme.py` script. I noticed that I also need to change the schema in the `dataset_infos.json` file. More specifically the `"features"` part of the PAN-X.LANG dataset: ```json "features":{ "word":{ "dtype":"string", "id":null, "_type":"Value" }, "ner_tag":{ "dtype":"string", "id":null, "_type":"Value" }, "lang":{ "dtype":"string", "id":null, "_type":"Value" } } ``` To fit the code above the fields `"word"`, `"ner_tag"`, and `"lang"` would become `"words"`, `ner_tags"` and `"langs"`. In addition the `dtype` should be changed from `"string"` to `"list"`. I made this changes but when trying to test this locally with `dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')` I face the issue that the `dataset_info.json` file is always overwritten by a downloaded version with the old settings, which then throws an error because the schema does not match. This makes it hard to test the changes locally. Do you have any suggestions on how to deal with that?
Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR.
148
Correct data structure for PAN-X task in XTREME dataset? Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR. Hi @lhoestq I made the proposed changes to the `xtreme.py` script. I noticed that I also need to change the schema in the `dataset_infos.json` file. More specifically the `"features"` part of the PAN-X.LANG dataset: ```json "features":{ "word":{ "dtype":"string", "id":null, "_type":"Value" }, "ner_tag":{ "dtype":"string", "id":null, "_type":"Value" }, "lang":{ "dtype":"string", "id":null, "_type":"Value" } } ``` To fit the code above the fields `"word"`, `"ner_tag"`, and `"lang"` would become `"words"`, `ner_tags"` and `"langs"`. In addition the `dtype` should be changed from `"string"` to `"list"`. I made this changes but when trying to test this locally with `dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')` I face the issue that the `dataset_info.json` file is always overwritten by a downloaded version with the old settings, which then throws an error because the schema does not match. This makes it hard to test the changes locally. Do you have any suggestions on how to deal with that?
[ -0.04464266449213028, -0.19605210423469543, -0.021391933783888817, 0.371661514043808, 0.039040084928274155, -0.27633070945739746, -0.02063722535967827, 0.1579519510269165, -0.07178051024675369, -0.06624244898557663, -0.16135306656360626, 0.26270654797554016, 0.0014277062145993114, 0.1680825799703598, 0.4264345169067383, -0.14670278131961823, 0.04844255745410919, -0.06990545243024826, 0.27868586778640747, -0.052614662796258926, -0.1090930849313736, 0.15061049163341522, -0.3253745436668396, 0.054469913244247437, -0.3497878909111023, 0.08372754603624344, -0.06782159209251404, 0.3462396562099457, -0.27583909034729004, -0.4933691918849945, 0.590154767036438, 0.061042800545692444, 0.3375477194786072, 0.3253477215766907, -0.0001185823421110399, 0.007394324988126755, 0.04914972558617592, -0.29767942428588867, 0.06300023198127747, -0.5153085589408875, -0.21160531044006348, -0.6882327198982239, -0.07075067609548569, -0.18635223805904388, -0.24942466616630554, -0.06915031373500824, 0.23590943217277527, 0.16131553053855896, 0.32868772745132446, 0.40413030982017517, 0.066755510866642, 0.11867215484380722, -0.011228535324335098, 0.16462384164333344, 0.40690532326698303, 0.39126068353652954, -0.29841071367263794, -0.055471453815698624, 0.5836412906646729, 0.15009425580501556, -0.20072369277477264, 0.22613616287708282, 0.06657782942056656, -0.09574078768491745, 0.21683211624622345, 0.31174901127815247, 0.11062171310186386, -0.4583888351917267, -0.20303450524806976, 0.282892107963562, 0.2304353564977646, -0.25538399815559387, -0.20350728929042816, -0.27793049812316895, -0.057283781468868256, -0.29004722833633423, -0.02802765741944313, 0.3609634339809418, -0.08088470250368118, -0.009098979644477367, 0.2543644309043884, -0.002982668112963438, -0.111481674015522, 0.20313766598701477, -0.010519908741116524, 0.4096224009990692, -0.0134636415168643, -0.10751790553331375, -0.13960686326026917, -0.11620784550905228, 0.701856255531311, -0.010426257736980915, 0.15768633782863617, 0.11971088498830795, -0.6041286587715149, 0.08037969470024109, -0.1363229900598526, -0.2818926274776459, 0.1663050651550293, -0.048437464982271194, 0.20986545085906982, 0.1589152067899704, 0.14852486550807953, 0.014587187208235264, 0.3213749825954437, 0.20039556920528412, 0.2381374090909958, 0.031010327860713005, -0.13071268796920776, 0.07348063588142395, 0.08580300956964493, -0.09635822474956512, -0.3183750510215759, 0.06530464440584183, 0.2368333786725998, -0.022806517779827118, 0.2889067828655243, -0.196237251162529, -0.3680238425731659, -0.019991375505924225, -0.12843091785907745, 0.0725800096988678, 0.1414785385131836, 0.06118028238415718, 0.008060116320848465, 0.5874363780021667, -0.07428835332393646, 0.17870861291885376, -0.2538334131240845, 0.029141558334231377, -0.14729994535446167, 0.1694101095199585, -0.6243590116500854, -0.10618709027767181, 0.25825759768486023, 0.09196075052022934, 0.19703973829746246, -0.00640327762812376, 0.12181979417800903, -0.3322499394416809, 0.1758815199136734, -0.2791441082954407, 0.2651098668575287, -0.015867359936237335, 0.24573861062526703, -0.12957225739955902, -0.30932411551475525, -0.009520281106233597, -0.1647399514913559, 0.21943770349025726, -0.7123696208000183, -0.02457338012754917, 0.045095011591911316, 0.07545921206474304, -0.21419388055801392, 0.14357410371303558, -0.5043219923973083, 0.03225931525230408, 0.06304427236318588, 0.21816885471343994, 0.10690420866012573, -0.33061307668685913, -0.214290589094162, -0.07204851508140564, 0.08307024091482162, 0.13265612721443176, -0.12915079295635223, 0.09738156199455261, 0.06310055404901505, 0.00025627430295571685, 0.10419746488332748, 0.21627990901470184, -0.010966440662741661, 0.2841823697090149, -0.18863455951213837, 0.5723388195037842, 0.419582337141037, -0.8037276864051819, -0.3378545045852661, 0.08750900626182556, -0.16561448574066162, 0.0018313112668693066, -0.07771468907594681, 0.29997095465660095, 0.2168302685022354, -0.10970824956893921, 0.2860373258590698, 0.4717787206172943, -0.06015495955944061, 0.11296431720256805, -0.1055833101272583, 0.26627668738365173, -0.1180933341383934, 0.321599543094635, 0.042097803205251694, -0.2685289978981018, -0.1594623178243637, 0.0751420259475708, 0.19486172497272491, -0.11582835763692856, 0.0870855376124382, 0.4314538836479187, 0.08927331119775772, -0.05138436704874039, -0.05062393471598625, 0.03832465782761574, -0.7624896764755249, 0.11410082131624222, -0.42896050214767456, 0.3793439567089081, 0.010656852275133133, -0.06719519942998886, -0.17284278571605682, -0.05107659101486206, -0.29626235365867615, -0.19065363705158234, 0.10716108232736588, -0.12099944055080414, -0.12378052622079849, -0.30345097184181213, -0.07628485560417175, 0.3974149227142334, -0.2260984629392624, 0.07376278191804886, -0.578018844127655, 0.3407835066318512, 0.1180042251944542, -0.06648506224155426, -0.012310493737459183, 0.4472556412220001, 0.19225004315376282, -0.04829718917608261, 0.1684594303369522, 0.22092176973819733, 0.21488994359970093, -0.15717469155788422, -0.06123402342200279, -0.002026520436629653, 0.13349342346191406, -0.5777857303619385, 0.06592754274606705, 0.2230999618768692, -0.001422565896064043, -0.2143048197031021, -0.1243550106883049, 0.5517564415931702, 0.18477042019367218, 0.20728403329849243, 0.028973320499062538, 0.07074955105781555, 0.21222321689128876, -0.17136169970035553, -0.23443348705768585, -0.10390438139438629, 0.15454870462417603, 0.1233178973197937, 0.03054722212255001, 0.09956599026918411, -0.5023413896560669, 0.020011471584439278, 0.3077205717563629, 0.02743048034608364, 0.1898185759782791, 0.20472769439220428, -0.15310917794704437, -0.07916553318500519, 0.03745676949620247, 0.3701198697090149, 0.35908687114715576, 0.0914270207285881, 0.10988570004701614, 0.13040734827518463, -0.032941319048404694, 0.07248856872320175, -0.03588365390896797, 0.06175386160612106, 0.15101803839206696, 0.211965411901474, 0.17851610481739044, -0.08419463783502579, -0.08589618653059006, -0.2191499024629593, 0.0321781300008297, 0.1521632820367813, -0.3295000195503235, 0.07806958258152008, 0.03682161867618561, -0.4502653181552887, -0.14737479388713837, 0.04417235404253006, -0.1361568719148636, -0.3193354904651642, -0.03792202100157738, -0.057156048715114594, 0.23877482116222382, 0.0840669795870781, -0.4746869206428528, -0.21508675813674927, -0.19860151410102844, -0.34062862396240234, -0.058314159512519836, 0.07429340481758118, -0.1382392793893814, -0.026754168793559074, 0.2119733691215515, 0.5459086298942566, -0.031271468847990036, -0.4353150725364685, 0.39016038179397583, -0.3872424364089966, -0.20231188833713531, 0.3016563951969147, -0.26382142305374146, 0.31215837597846985, 0.21715417504310608, -0.10408530384302139, -0.40460294485092163, 0.1959165632724762, 0.1874924898147583, -0.3214799463748932, -0.3141261041164398, 0.31686174869537354, -0.1772637814283371, -0.09167516976594925, -0.02644365094602108, -0.4063463509082794, -0.5237723588943481, -0.20548726618289948, 0.011993926018476486, 0.2230314016342163, 0.3162440061569214, 0.21513783931732178, -0.2596661448478699, -0.14515088498592377, -0.13218092918395996, -0.19551119208335876, 0.0069595989771187305, -0.5726143717765808, 0.456842303276062, -0.2441943883895874, -0.205152690410614, -0.08597999811172485, -0.2658787667751312, 0.47131991386413574, 0.37802854180336, -0.06849353760480881, -0.03754006326198578, 0.1413384974002838, 0.035182446241378784, 0.17770926654338837, -0.06221945956349373, 0.29641181230545044, -0.21413573622703552, 0.04570550099015236, -0.02778959646821022, -0.008123260922729969, 0.07852572947740555, 0.32014456391334534, 0.2304374724626541, -0.026517730206251144, -0.2571675181388855, 0.11034755408763885, 0.06357788294553757, 0.15529058873653412, 0.046334147453308105, 0.43679338693618774, 0.0053786626085639, 0.11456842720508575, 0.08478370308876038, 0.022408144548535347, -0.16403041779994965, 0.060146186500787735, 0.2332696169614792, -0.000989624997600913, 0.235787495970726, -0.15477243065834045, -0.07209774106740952, 0.12637107074260712, -0.13299907743930817, -0.2151201367378235, 0.5398619771003723, -0.139754056930542, 0.410523384809494, -0.17096176743507385, 0.026816636323928833, -0.0614323765039444, -0.4580696225166321, -0.25712984800338745, 0.08615041524171829, 0.17971499264240265, 0.15540537238121033, -0.6861752867698669, 0.3985414505004883, -0.38882866501808167, -0.02063354104757309, 0.1728513538837433, 0.5378322005271912, 0.21202577650547028, 0.08040604740381241, 0.15717308223247528, -0.03739925101399422, 0.31122511625289917, -0.2897283732891083, -0.14624309539794922, 0.10926075279712677, 0.10011496394872665, -0.3250236213207245, -0.04307325556874275, -0.2508809268474579, 0.026530900970101357, 0.4807169735431671, 0.4030666649341583, -0.302034854888916, -0.44885721802711487, -0.014215526171028614, 0.047435641288757324, -0.20959943532943726, -0.1977832019329071, -0.2662707269191742, -0.45051923394203186, -0.09220199286937714, -0.09107784926891327, 0.5540916323661804, -0.011967490427196026, 0.28598958253860474, 0.02891922928392887, -0.2357482761144638, 0.2654162347316742, 0.3301900327205658, -0.037114545702934265, 0.5644024014472961, -0.23958198726177216, 0.00573766091838479, -0.06575573980808258, -0.08432995527982712, 0.2901475131511688, 0.48032522201538086, -0.18594017624855042, -0.15045343339443207, 0.18000414967536926, -0.22384560108184814, 0.4223890006542206, 0.1663798838853836, 0.18850314617156982, 0.01889634318649769, -0.2950080931186676, -0.0011856041382998228, -0.13589197397232056, 0.13620223104953766, 0.38857969641685486, -0.10829756408929825, -0.41880789399147034, -0.3653251528739929, 0.17683617770671844, 0.308877557516098, 0.10559810698032379, -0.23104411363601685, -0.17216089367866516, -0.2617766857147217, -0.1415577530860901, 0.46636852622032166, 1.0166804790496826, 0.030185000970959663, 0.43357038497924805, 0.17269045114517212, 0.08972635120153427, 0.06072790175676346, -0.44448667764663696, 0.20499399304389954, -0.3482044041156769, -0.3285880386829376, -0.20364518463611603, -0.25741419196128845, -0.06209051236510277, 0.2026151716709137, 0.03191158547997475, 0.6626030802726746, 0.22569093108177185, -0.04479014500975609, 0.022951379418373108, 0.21597029268741608, 0.00936813559383154, -0.38673946261405945, -0.37452471256256104, 0.004031623713672161, -0.28633490204811096, 0.014986290596425533, -0.15357734262943268, -0.20838315784931183, -0.05914849042892456, 0.19947579503059387, 0.1399664431810379, 0.28194597363471985, 0.09344639629125595, -0.18290574848651886, 0.42392727732658386, -0.5605937242507935, -0.05334736779332161, 0.24287335574626923, 0.07730419188737869, -0.32219064235687256, 0.003152495715767145, 0.23612277209758759, 0.4050416648387909, 0.1009967252612114, 0.39132335782051086, -0.3321992754936218, 0.2601027488708496, 0.04982786625623703, 0.12219029664993286, -0.24286030232906342, 0.1581602841615677, -0.03726305812597275, -0.4174318015575409, 0.04797251895070076, -0.17502562701702118, -0.274973064661026, -0.20879949629306793, 0.026937680318951607, -0.14437000453472137, -0.04973886162042618, 0.05494082346558571, 0.2594359219074249, -0.09028734266757965, 0.1481015980243683, 0.11329233646392822, -0.25920602679252625, 0.19909222424030304, 0.0831906646490097, 0.29767486453056335, -0.3125306963920593, 0.03761090710759163, 0.2482125461101532, 0.015134850516915321, -0.09923625737428665, 0.18058158457279205, 0.4821501076221466, -0.6173612475395203, 0.03374776244163513, -0.2434496283531189, -0.013798211701214314, -0.016300907358527184, 0.1851172149181366, 0.0020545395091176033, -0.26249903440475464, 0.1627749502658844, -0.2828575074672699, -0.34099283814430237, 0.3751988410949707, 0.11637815088033676, 0.2782913148403168, -0.19798493385314941, 0.009825811721384525, 0.15099342167377472, -0.22004389762878418, -0.23904985189437866, 0.17531631886959076, -0.17947137355804443, 0.19612377882003784, -0.11576490104198456, -0.09629117697477341, 0.08040323108434677, -0.09420125186443329, -0.024969909340143204, 0.26647016406059265, -0.14584435522556305, -0.05785389244556427, 0.01793401874601841, 0.12439136952161789, 0.1327526718378067, -0.115770623087883, 0.12489106506109238, 0.12000419944524765, -0.051540691405534744, -0.13733728229999542, -0.11356811970472336, 0.18000173568725586, 0.022833947092294693, 0.2303542196750641, -0.2976280152797699, 0.0392741821706295, -0.12316631525754929, 0.2310584932565689, 0.18953821063041687, 0.12020540237426758, 0.06575049459934235, 0.2072513848543167, -0.05111869424581528, 0.024866001680493355, -0.518206775188446, 0.20642633736133575, 0.19672636687755585, 0.36884355545043945, 0.21520045399665833, -0.15535660088062286, 0.10563815385103226, -0.03227805718779564, 0.1498681604862213, 0.3083643913269043, -0.26997214555740356, -0.0058442289009690285, 0.241904616355896, 0.14836733043193817, -0.1588442623615265, -0.0049727968871593475, 0.3671056032180786, 0.007890619337558746, 0.008068476803600788, 0.4790728986263275, 0.3525027930736542, 0.13681620359420776, -0.1463463306427002, 0.06332693248987198, 0.23557493090629578, -0.25352710485458374, 0.06761220842599869, 0.40521273016929626, -0.005103017669171095, 0.13945770263671875, 0.5995872616767883, 0.03328805789351463, -0.11432942748069763, 0.6000958681106567, 0.30118587613105774, 0.7809868454933167, 0.19955986738204956, 0.17875508964061737, -0.0658114030957222, -0.10446465760469437, -0.4129889905452728, 0.25482916831970215, 0.12739567458629608, 0.17695306241512299, 0.03835279121994972, 0.14328759908676147, 0.14535708725452423, -0.18604719638824463, -0.09647724032402039, 0.1134999543428421, -0.3404925465583801, 0.022929711267352104, -0.33178746700286865, -0.23424360156059265, -0.12177404761314392, -0.11770022660493851, -0.17227362096309662, 0.0367380790412426, 0.06148865446448326, 0.13393916189670563, -0.007461723405867815, -0.06121246889233589, 0.08235403150320053, 0.28523561358451843, 0.04782400280237198, -0.1977074295282364, 0.5288458466529846, 0.03390171006321907, -0.0469573512673378, -0.1587122231721878, 0.2742467522621155, 0.2531484365463257, 0.23150303959846497, -0.05197351798415184, -0.10700352489948273, 0.33872684836387634, -0.11022824048995972, -0.029693329706788063, 0.10047408938407898, 0.20050637423992157, 0.2549160420894623, 0.1804334819316864, 0.06518206000328064, -0.004352333024144173, 0.3010016977787018, 0.0695360079407692, -0.19286563992500305, 0.24358557164669037, 0.28016042709350586, 0.18614508211612701, -0.28904592990875244, -0.12946179509162903, -0.22410224378108978, -0.3388960659503937, -0.16420964896678925, 0.31421273946762085, -0.1428404003381729, 0.24048152565956116, -0.13081538677215576, 0.05084571987390518, 0.04204905033111572, 0.19686707854270935, 0.11872238665819168, 0.11401598155498505, -0.4945986568927765, -0.08852329850196838, -0.7457128763198853, 0.20055319368839264, -0.3096914291381836, -0.2826569974422455, 0.2355698049068451, 0.026604747399687767, -0.047462064772844315, 0.30229970812797546, -0.23467451333999634, 0.22896665334701538, 0.06854809820652008, 0.3347981870174408, -0.6064155101776123, 0.06857939809560776, 0.2317821979522705, 0.3589983582496643, 0.053191304206848145, -0.12498144060373306, -0.2764682173728943, 0.2186528593301773, -0.07028917223215103, -0.07276002317667007, -0.06854403018951416, -0.1896737962961197, -0.055826570838689804, 0.2673405408859253, -0.21242354810237885, 0.15677668154239655, -0.07460633665323257, -0.1744624823331833, -0.27474549412727356, -0.0597098283469677, -0.16448555886745453, 0.021056216210126877, 0.1005389392375946, 0.3167761564254761, 0.0033466005697846413, 0.15478681027889252, -0.39150696992874146, -0.29847899079322815, 0.013277285732328892, 0.08274855464696884, -0.3641842007637024, 0.4328104555606842, -0.23216208815574646, 0.14379489421844482, 0.03772290423512459, 0.22597214579582214, 0.07463199645280838, -0.0033206725493073463, -0.1593923568725586, -0.44558486342430115, 0.26130253076553345, 0.26990118622779846, -0.1986565887928009, -0.1195022389292717, 0.004335246980190277, 0.10739351809024811, 0.12586960196495056, -0.44796523451805115, 0.1364089697599411, 0.17997051775455475, -0.045121874660253525, -0.09457539021968842, 0.08399660885334015, -0.02371646836400032, -0.07817786186933517, -0.13010534644126892, 0.12380406260490417, -0.02628343179821968, -0.11458509415388107, -0.2040129005908966, -0.15853142738342285 ]
https://github.com/huggingface/datasets/issues/425
Correct data structure for PAN-X task in XTREME dataset?
Hi ! You have to point to your local script. First clone the repo and then: ```python dataset = load_dataset("./datasets/xtreme", "PAN-X.en") ``` The "xtreme" directory contains "xtreme.py". You also have to change the features definition in the `_info` method. You could use: ```python features = nlp.Features({ "words": [nlp.Value("string")], "ner_tags": [nlp.Value("string")], "langs": [nlp.Value("string")], }) ``` Hope this helps ! Let me know if you have other questions.
Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR.
66
Correct data structure for PAN-X task in XTREME dataset? Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR. Hi ! You have to point to your local script. First clone the repo and then: ```python dataset = load_dataset("./datasets/xtreme", "PAN-X.en") ``` The "xtreme" directory contains "xtreme.py". You also have to change the features definition in the `_info` method. You could use: ```python features = nlp.Features({ "words": [nlp.Value("string")], "ner_tags": [nlp.Value("string")], "langs": [nlp.Value("string")], }) ``` Hope this helps ! Let me know if you have other questions.
[ -0.04464266449213028, -0.19605210423469543, -0.021391933783888817, 0.371661514043808, 0.039040084928274155, -0.27633070945739746, -0.02063722535967827, 0.1579519510269165, -0.07178051024675369, -0.06624244898557663, -0.16135306656360626, 0.26270654797554016, 0.0014277062145993114, 0.1680825799703598, 0.4264345169067383, -0.14670278131961823, 0.04844255745410919, -0.06990545243024826, 0.27868586778640747, -0.052614662796258926, -0.1090930849313736, 0.15061049163341522, -0.3253745436668396, 0.054469913244247437, -0.3497878909111023, 0.08372754603624344, -0.06782159209251404, 0.3462396562099457, -0.27583909034729004, -0.4933691918849945, 0.590154767036438, 0.061042800545692444, 0.3375477194786072, 0.3253477215766907, -0.0001185823421110399, 0.007394324988126755, 0.04914972558617592, -0.29767942428588867, 0.06300023198127747, -0.5153085589408875, -0.21160531044006348, -0.6882327198982239, -0.07075067609548569, -0.18635223805904388, -0.24942466616630554, -0.06915031373500824, 0.23590943217277527, 0.16131553053855896, 0.32868772745132446, 0.40413030982017517, 0.066755510866642, 0.11867215484380722, -0.011228535324335098, 0.16462384164333344, 0.40690532326698303, 0.39126068353652954, -0.29841071367263794, -0.055471453815698624, 0.5836412906646729, 0.15009425580501556, -0.20072369277477264, 0.22613616287708282, 0.06657782942056656, -0.09574078768491745, 0.21683211624622345, 0.31174901127815247, 0.11062171310186386, -0.4583888351917267, -0.20303450524806976, 0.282892107963562, 0.2304353564977646, -0.25538399815559387, -0.20350728929042816, -0.27793049812316895, -0.057283781468868256, -0.29004722833633423, -0.02802765741944313, 0.3609634339809418, -0.08088470250368118, -0.009098979644477367, 0.2543644309043884, -0.002982668112963438, -0.111481674015522, 0.20313766598701477, -0.010519908741116524, 0.4096224009990692, -0.0134636415168643, -0.10751790553331375, -0.13960686326026917, -0.11620784550905228, 0.701856255531311, -0.010426257736980915, 0.15768633782863617, 0.11971088498830795, -0.6041286587715149, 0.08037969470024109, -0.1363229900598526, -0.2818926274776459, 0.1663050651550293, -0.048437464982271194, 0.20986545085906982, 0.1589152067899704, 0.14852486550807953, 0.014587187208235264, 0.3213749825954437, 0.20039556920528412, 0.2381374090909958, 0.031010327860713005, -0.13071268796920776, 0.07348063588142395, 0.08580300956964493, -0.09635822474956512, -0.3183750510215759, 0.06530464440584183, 0.2368333786725998, -0.022806517779827118, 0.2889067828655243, -0.196237251162529, -0.3680238425731659, -0.019991375505924225, -0.12843091785907745, 0.0725800096988678, 0.1414785385131836, 0.06118028238415718, 0.008060116320848465, 0.5874363780021667, -0.07428835332393646, 0.17870861291885376, -0.2538334131240845, 0.029141558334231377, -0.14729994535446167, 0.1694101095199585, -0.6243590116500854, -0.10618709027767181, 0.25825759768486023, 0.09196075052022934, 0.19703973829746246, -0.00640327762812376, 0.12181979417800903, -0.3322499394416809, 0.1758815199136734, -0.2791441082954407, 0.2651098668575287, -0.015867359936237335, 0.24573861062526703, -0.12957225739955902, -0.30932411551475525, -0.009520281106233597, -0.1647399514913559, 0.21943770349025726, -0.7123696208000183, -0.02457338012754917, 0.045095011591911316, 0.07545921206474304, -0.21419388055801392, 0.14357410371303558, -0.5043219923973083, 0.03225931525230408, 0.06304427236318588, 0.21816885471343994, 0.10690420866012573, -0.33061307668685913, -0.214290589094162, -0.07204851508140564, 0.08307024091482162, 0.13265612721443176, -0.12915079295635223, 0.09738156199455261, 0.06310055404901505, 0.00025627430295571685, 0.10419746488332748, 0.21627990901470184, -0.010966440662741661, 0.2841823697090149, -0.18863455951213837, 0.5723388195037842, 0.419582337141037, -0.8037276864051819, -0.3378545045852661, 0.08750900626182556, -0.16561448574066162, 0.0018313112668693066, -0.07771468907594681, 0.29997095465660095, 0.2168302685022354, -0.10970824956893921, 0.2860373258590698, 0.4717787206172943, -0.06015495955944061, 0.11296431720256805, -0.1055833101272583, 0.26627668738365173, -0.1180933341383934, 0.321599543094635, 0.042097803205251694, -0.2685289978981018, -0.1594623178243637, 0.0751420259475708, 0.19486172497272491, -0.11582835763692856, 0.0870855376124382, 0.4314538836479187, 0.08927331119775772, -0.05138436704874039, -0.05062393471598625, 0.03832465782761574, -0.7624896764755249, 0.11410082131624222, -0.42896050214767456, 0.3793439567089081, 0.010656852275133133, -0.06719519942998886, -0.17284278571605682, -0.05107659101486206, -0.29626235365867615, -0.19065363705158234, 0.10716108232736588, -0.12099944055080414, -0.12378052622079849, -0.30345097184181213, -0.07628485560417175, 0.3974149227142334, -0.2260984629392624, 0.07376278191804886, -0.578018844127655, 0.3407835066318512, 0.1180042251944542, -0.06648506224155426, -0.012310493737459183, 0.4472556412220001, 0.19225004315376282, -0.04829718917608261, 0.1684594303369522, 0.22092176973819733, 0.21488994359970093, -0.15717469155788422, -0.06123402342200279, -0.002026520436629653, 0.13349342346191406, -0.5777857303619385, 0.06592754274606705, 0.2230999618768692, -0.001422565896064043, -0.2143048197031021, -0.1243550106883049, 0.5517564415931702, 0.18477042019367218, 0.20728403329849243, 0.028973320499062538, 0.07074955105781555, 0.21222321689128876, -0.17136169970035553, -0.23443348705768585, -0.10390438139438629, 0.15454870462417603, 0.1233178973197937, 0.03054722212255001, 0.09956599026918411, -0.5023413896560669, 0.020011471584439278, 0.3077205717563629, 0.02743048034608364, 0.1898185759782791, 0.20472769439220428, -0.15310917794704437, -0.07916553318500519, 0.03745676949620247, 0.3701198697090149, 0.35908687114715576, 0.0914270207285881, 0.10988570004701614, 0.13040734827518463, -0.032941319048404694, 0.07248856872320175, -0.03588365390896797, 0.06175386160612106, 0.15101803839206696, 0.211965411901474, 0.17851610481739044, -0.08419463783502579, -0.08589618653059006, -0.2191499024629593, 0.0321781300008297, 0.1521632820367813, -0.3295000195503235, 0.07806958258152008, 0.03682161867618561, -0.4502653181552887, -0.14737479388713837, 0.04417235404253006, -0.1361568719148636, -0.3193354904651642, -0.03792202100157738, -0.057156048715114594, 0.23877482116222382, 0.0840669795870781, -0.4746869206428528, -0.21508675813674927, -0.19860151410102844, -0.34062862396240234, -0.058314159512519836, 0.07429340481758118, -0.1382392793893814, -0.026754168793559074, 0.2119733691215515, 0.5459086298942566, -0.031271468847990036, -0.4353150725364685, 0.39016038179397583, -0.3872424364089966, -0.20231188833713531, 0.3016563951969147, -0.26382142305374146, 0.31215837597846985, 0.21715417504310608, -0.10408530384302139, -0.40460294485092163, 0.1959165632724762, 0.1874924898147583, -0.3214799463748932, -0.3141261041164398, 0.31686174869537354, -0.1772637814283371, -0.09167516976594925, -0.02644365094602108, -0.4063463509082794, -0.5237723588943481, -0.20548726618289948, 0.011993926018476486, 0.2230314016342163, 0.3162440061569214, 0.21513783931732178, -0.2596661448478699, -0.14515088498592377, -0.13218092918395996, -0.19551119208335876, 0.0069595989771187305, -0.5726143717765808, 0.456842303276062, -0.2441943883895874, -0.205152690410614, -0.08597999811172485, -0.2658787667751312, 0.47131991386413574, 0.37802854180336, -0.06849353760480881, -0.03754006326198578, 0.1413384974002838, 0.035182446241378784, 0.17770926654338837, -0.06221945956349373, 0.29641181230545044, -0.21413573622703552, 0.04570550099015236, -0.02778959646821022, -0.008123260922729969, 0.07852572947740555, 0.32014456391334534, 0.2304374724626541, -0.026517730206251144, -0.2571675181388855, 0.11034755408763885, 0.06357788294553757, 0.15529058873653412, 0.046334147453308105, 0.43679338693618774, 0.0053786626085639, 0.11456842720508575, 0.08478370308876038, 0.022408144548535347, -0.16403041779994965, 0.060146186500787735, 0.2332696169614792, -0.000989624997600913, 0.235787495970726, -0.15477243065834045, -0.07209774106740952, 0.12637107074260712, -0.13299907743930817, -0.2151201367378235, 0.5398619771003723, -0.139754056930542, 0.410523384809494, -0.17096176743507385, 0.026816636323928833, -0.0614323765039444, -0.4580696225166321, -0.25712984800338745, 0.08615041524171829, 0.17971499264240265, 0.15540537238121033, -0.6861752867698669, 0.3985414505004883, -0.38882866501808167, -0.02063354104757309, 0.1728513538837433, 0.5378322005271912, 0.21202577650547028, 0.08040604740381241, 0.15717308223247528, -0.03739925101399422, 0.31122511625289917, -0.2897283732891083, -0.14624309539794922, 0.10926075279712677, 0.10011496394872665, -0.3250236213207245, -0.04307325556874275, -0.2508809268474579, 0.026530900970101357, 0.4807169735431671, 0.4030666649341583, -0.302034854888916, -0.44885721802711487, -0.014215526171028614, 0.047435641288757324, -0.20959943532943726, -0.1977832019329071, -0.2662707269191742, -0.45051923394203186, -0.09220199286937714, -0.09107784926891327, 0.5540916323661804, -0.011967490427196026, 0.28598958253860474, 0.02891922928392887, -0.2357482761144638, 0.2654162347316742, 0.3301900327205658, -0.037114545702934265, 0.5644024014472961, -0.23958198726177216, 0.00573766091838479, -0.06575573980808258, -0.08432995527982712, 0.2901475131511688, 0.48032522201538086, -0.18594017624855042, -0.15045343339443207, 0.18000414967536926, -0.22384560108184814, 0.4223890006542206, 0.1663798838853836, 0.18850314617156982, 0.01889634318649769, -0.2950080931186676, -0.0011856041382998228, -0.13589197397232056, 0.13620223104953766, 0.38857969641685486, -0.10829756408929825, -0.41880789399147034, -0.3653251528739929, 0.17683617770671844, 0.308877557516098, 0.10559810698032379, -0.23104411363601685, -0.17216089367866516, -0.2617766857147217, -0.1415577530860901, 0.46636852622032166, 1.0166804790496826, 0.030185000970959663, 0.43357038497924805, 0.17269045114517212, 0.08972635120153427, 0.06072790175676346, -0.44448667764663696, 0.20499399304389954, -0.3482044041156769, -0.3285880386829376, -0.20364518463611603, -0.25741419196128845, -0.06209051236510277, 0.2026151716709137, 0.03191158547997475, 0.6626030802726746, 0.22569093108177185, -0.04479014500975609, 0.022951379418373108, 0.21597029268741608, 0.00936813559383154, -0.38673946261405945, -0.37452471256256104, 0.004031623713672161, -0.28633490204811096, 0.014986290596425533, -0.15357734262943268, -0.20838315784931183, -0.05914849042892456, 0.19947579503059387, 0.1399664431810379, 0.28194597363471985, 0.09344639629125595, -0.18290574848651886, 0.42392727732658386, -0.5605937242507935, -0.05334736779332161, 0.24287335574626923, 0.07730419188737869, -0.32219064235687256, 0.003152495715767145, 0.23612277209758759, 0.4050416648387909, 0.1009967252612114, 0.39132335782051086, -0.3321992754936218, 0.2601027488708496, 0.04982786625623703, 0.12219029664993286, -0.24286030232906342, 0.1581602841615677, -0.03726305812597275, -0.4174318015575409, 0.04797251895070076, -0.17502562701702118, -0.274973064661026, -0.20879949629306793, 0.026937680318951607, -0.14437000453472137, -0.04973886162042618, 0.05494082346558571, 0.2594359219074249, -0.09028734266757965, 0.1481015980243683, 0.11329233646392822, -0.25920602679252625, 0.19909222424030304, 0.0831906646490097, 0.29767486453056335, -0.3125306963920593, 0.03761090710759163, 0.2482125461101532, 0.015134850516915321, -0.09923625737428665, 0.18058158457279205, 0.4821501076221466, -0.6173612475395203, 0.03374776244163513, -0.2434496283531189, -0.013798211701214314, -0.016300907358527184, 0.1851172149181366, 0.0020545395091176033, -0.26249903440475464, 0.1627749502658844, -0.2828575074672699, -0.34099283814430237, 0.3751988410949707, 0.11637815088033676, 0.2782913148403168, -0.19798493385314941, 0.009825811721384525, 0.15099342167377472, -0.22004389762878418, -0.23904985189437866, 0.17531631886959076, -0.17947137355804443, 0.19612377882003784, -0.11576490104198456, -0.09629117697477341, 0.08040323108434677, -0.09420125186443329, -0.024969909340143204, 0.26647016406059265, -0.14584435522556305, -0.05785389244556427, 0.01793401874601841, 0.12439136952161789, 0.1327526718378067, -0.115770623087883, 0.12489106506109238, 0.12000419944524765, -0.051540691405534744, -0.13733728229999542, -0.11356811970472336, 0.18000173568725586, 0.022833947092294693, 0.2303542196750641, -0.2976280152797699, 0.0392741821706295, -0.12316631525754929, 0.2310584932565689, 0.18953821063041687, 0.12020540237426758, 0.06575049459934235, 0.2072513848543167, -0.05111869424581528, 0.024866001680493355, -0.518206775188446, 0.20642633736133575, 0.19672636687755585, 0.36884355545043945, 0.21520045399665833, -0.15535660088062286, 0.10563815385103226, -0.03227805718779564, 0.1498681604862213, 0.3083643913269043, -0.26997214555740356, -0.0058442289009690285, 0.241904616355896, 0.14836733043193817, -0.1588442623615265, -0.0049727968871593475, 0.3671056032180786, 0.007890619337558746, 0.008068476803600788, 0.4790728986263275, 0.3525027930736542, 0.13681620359420776, -0.1463463306427002, 0.06332693248987198, 0.23557493090629578, -0.25352710485458374, 0.06761220842599869, 0.40521273016929626, -0.005103017669171095, 0.13945770263671875, 0.5995872616767883, 0.03328805789351463, -0.11432942748069763, 0.6000958681106567, 0.30118587613105774, 0.7809868454933167, 0.19955986738204956, 0.17875508964061737, -0.0658114030957222, -0.10446465760469437, -0.4129889905452728, 0.25482916831970215, 0.12739567458629608, 0.17695306241512299, 0.03835279121994972, 0.14328759908676147, 0.14535708725452423, -0.18604719638824463, -0.09647724032402039, 0.1134999543428421, -0.3404925465583801, 0.022929711267352104, -0.33178746700286865, -0.23424360156059265, -0.12177404761314392, -0.11770022660493851, -0.17227362096309662, 0.0367380790412426, 0.06148865446448326, 0.13393916189670563, -0.007461723405867815, -0.06121246889233589, 0.08235403150320053, 0.28523561358451843, 0.04782400280237198, -0.1977074295282364, 0.5288458466529846, 0.03390171006321907, -0.0469573512673378, -0.1587122231721878, 0.2742467522621155, 0.2531484365463257, 0.23150303959846497, -0.05197351798415184, -0.10700352489948273, 0.33872684836387634, -0.11022824048995972, -0.029693329706788063, 0.10047408938407898, 0.20050637423992157, 0.2549160420894623, 0.1804334819316864, 0.06518206000328064, -0.004352333024144173, 0.3010016977787018, 0.0695360079407692, -0.19286563992500305, 0.24358557164669037, 0.28016042709350586, 0.18614508211612701, -0.28904592990875244, -0.12946179509162903, -0.22410224378108978, -0.3388960659503937, -0.16420964896678925, 0.31421273946762085, -0.1428404003381729, 0.24048152565956116, -0.13081538677215576, 0.05084571987390518, 0.04204905033111572, 0.19686707854270935, 0.11872238665819168, 0.11401598155498505, -0.4945986568927765, -0.08852329850196838, -0.7457128763198853, 0.20055319368839264, -0.3096914291381836, -0.2826569974422455, 0.2355698049068451, 0.026604747399687767, -0.047462064772844315, 0.30229970812797546, -0.23467451333999634, 0.22896665334701538, 0.06854809820652008, 0.3347981870174408, -0.6064155101776123, 0.06857939809560776, 0.2317821979522705, 0.3589983582496643, 0.053191304206848145, -0.12498144060373306, -0.2764682173728943, 0.2186528593301773, -0.07028917223215103, -0.07276002317667007, -0.06854403018951416, -0.1896737962961197, -0.055826570838689804, 0.2673405408859253, -0.21242354810237885, 0.15677668154239655, -0.07460633665323257, -0.1744624823331833, -0.27474549412727356, -0.0597098283469677, -0.16448555886745453, 0.021056216210126877, 0.1005389392375946, 0.3167761564254761, 0.0033466005697846413, 0.15478681027889252, -0.39150696992874146, -0.29847899079322815, 0.013277285732328892, 0.08274855464696884, -0.3641842007637024, 0.4328104555606842, -0.23216208815574646, 0.14379489421844482, 0.03772290423512459, 0.22597214579582214, 0.07463199645280838, -0.0033206725493073463, -0.1593923568725586, -0.44558486342430115, 0.26130253076553345, 0.26990118622779846, -0.1986565887928009, -0.1195022389292717, 0.004335246980190277, 0.10739351809024811, 0.12586960196495056, -0.44796523451805115, 0.1364089697599411, 0.17997051775455475, -0.045121874660253525, -0.09457539021968842, 0.08399660885334015, -0.02371646836400032, -0.07817786186933517, -0.13010534644126892, 0.12380406260490417, -0.02628343179821968, -0.11458509415388107, -0.2040129005908966, -0.15853142738342285 ]
https://github.com/huggingface/datasets/issues/425
Correct data structure for PAN-X task in XTREME dataset?
Thanks, I am making progress. I got a new error `NonMatchingSplitsSizesError ` (see traceback below), which I suspect is due to the fact that number of rows in the dataset changed (one row per word --> one row per sentence) as well as the number of bytes due to the slightly updated data structure. ```python NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=1756492, num_examples=80536, dataset_name='xtreme'), 'recorded': SplitInfo(name='validation', num_bytes=1837109, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='test', num_bytes=1752572, num_examples=80326, dataset_name='xtreme'), 'recorded': SplitInfo(name='test', num_bytes=1833214, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='train', num_bytes=3496832, num_examples=160394, dataset_name='xtreme'), 'recorded': SplitInfo(name='train', num_bytes=3658428, num_examples=20000, dataset_name='xtreme')}] ``` I can fix the error by replacing the values in the `datasets_infos.json` file, which I tested for English. However, to update this for all 40 datasets manually is slightly painful. Is there a better way to update the expected values for all datasets?
Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR.
130
Correct data structure for PAN-X task in XTREME dataset? Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR. Thanks, I am making progress. I got a new error `NonMatchingSplitsSizesError ` (see traceback below), which I suspect is due to the fact that number of rows in the dataset changed (one row per word --> one row per sentence) as well as the number of bytes due to the slightly updated data structure. ```python NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=1756492, num_examples=80536, dataset_name='xtreme'), 'recorded': SplitInfo(name='validation', num_bytes=1837109, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='test', num_bytes=1752572, num_examples=80326, dataset_name='xtreme'), 'recorded': SplitInfo(name='test', num_bytes=1833214, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='train', num_bytes=3496832, num_examples=160394, dataset_name='xtreme'), 'recorded': SplitInfo(name='train', num_bytes=3658428, num_examples=20000, dataset_name='xtreme')}] ``` I can fix the error by replacing the values in the `datasets_infos.json` file, which I tested for English. However, to update this for all 40 datasets manually is slightly painful. Is there a better way to update the expected values for all datasets?
[ -0.04464266449213028, -0.19605210423469543, -0.021391933783888817, 0.371661514043808, 0.039040084928274155, -0.27633070945739746, -0.02063722535967827, 0.1579519510269165, -0.07178051024675369, -0.06624244898557663, -0.16135306656360626, 0.26270654797554016, 0.0014277062145993114, 0.1680825799703598, 0.4264345169067383, -0.14670278131961823, 0.04844255745410919, -0.06990545243024826, 0.27868586778640747, -0.052614662796258926, -0.1090930849313736, 0.15061049163341522, -0.3253745436668396, 0.054469913244247437, -0.3497878909111023, 0.08372754603624344, -0.06782159209251404, 0.3462396562099457, -0.27583909034729004, -0.4933691918849945, 0.590154767036438, 0.061042800545692444, 0.3375477194786072, 0.3253477215766907, -0.0001185823421110399, 0.007394324988126755, 0.04914972558617592, -0.29767942428588867, 0.06300023198127747, -0.5153085589408875, -0.21160531044006348, -0.6882327198982239, -0.07075067609548569, -0.18635223805904388, -0.24942466616630554, -0.06915031373500824, 0.23590943217277527, 0.16131553053855896, 0.32868772745132446, 0.40413030982017517, 0.066755510866642, 0.11867215484380722, -0.011228535324335098, 0.16462384164333344, 0.40690532326698303, 0.39126068353652954, -0.29841071367263794, -0.055471453815698624, 0.5836412906646729, 0.15009425580501556, -0.20072369277477264, 0.22613616287708282, 0.06657782942056656, -0.09574078768491745, 0.21683211624622345, 0.31174901127815247, 0.11062171310186386, -0.4583888351917267, -0.20303450524806976, 0.282892107963562, 0.2304353564977646, -0.25538399815559387, -0.20350728929042816, -0.27793049812316895, -0.057283781468868256, -0.29004722833633423, -0.02802765741944313, 0.3609634339809418, -0.08088470250368118, -0.009098979644477367, 0.2543644309043884, -0.002982668112963438, -0.111481674015522, 0.20313766598701477, -0.010519908741116524, 0.4096224009990692, -0.0134636415168643, -0.10751790553331375, -0.13960686326026917, -0.11620784550905228, 0.701856255531311, -0.010426257736980915, 0.15768633782863617, 0.11971088498830795, -0.6041286587715149, 0.08037969470024109, -0.1363229900598526, -0.2818926274776459, 0.1663050651550293, -0.048437464982271194, 0.20986545085906982, 0.1589152067899704, 0.14852486550807953, 0.014587187208235264, 0.3213749825954437, 0.20039556920528412, 0.2381374090909958, 0.031010327860713005, -0.13071268796920776, 0.07348063588142395, 0.08580300956964493, -0.09635822474956512, -0.3183750510215759, 0.06530464440584183, 0.2368333786725998, -0.022806517779827118, 0.2889067828655243, -0.196237251162529, -0.3680238425731659, -0.019991375505924225, -0.12843091785907745, 0.0725800096988678, 0.1414785385131836, 0.06118028238415718, 0.008060116320848465, 0.5874363780021667, -0.07428835332393646, 0.17870861291885376, -0.2538334131240845, 0.029141558334231377, -0.14729994535446167, 0.1694101095199585, -0.6243590116500854, -0.10618709027767181, 0.25825759768486023, 0.09196075052022934, 0.19703973829746246, -0.00640327762812376, 0.12181979417800903, -0.3322499394416809, 0.1758815199136734, -0.2791441082954407, 0.2651098668575287, -0.015867359936237335, 0.24573861062526703, -0.12957225739955902, -0.30932411551475525, -0.009520281106233597, -0.1647399514913559, 0.21943770349025726, -0.7123696208000183, -0.02457338012754917, 0.045095011591911316, 0.07545921206474304, -0.21419388055801392, 0.14357410371303558, -0.5043219923973083, 0.03225931525230408, 0.06304427236318588, 0.21816885471343994, 0.10690420866012573, -0.33061307668685913, -0.214290589094162, -0.07204851508140564, 0.08307024091482162, 0.13265612721443176, -0.12915079295635223, 0.09738156199455261, 0.06310055404901505, 0.00025627430295571685, 0.10419746488332748, 0.21627990901470184, -0.010966440662741661, 0.2841823697090149, -0.18863455951213837, 0.5723388195037842, 0.419582337141037, -0.8037276864051819, -0.3378545045852661, 0.08750900626182556, -0.16561448574066162, 0.0018313112668693066, -0.07771468907594681, 0.29997095465660095, 0.2168302685022354, -0.10970824956893921, 0.2860373258590698, 0.4717787206172943, -0.06015495955944061, 0.11296431720256805, -0.1055833101272583, 0.26627668738365173, -0.1180933341383934, 0.321599543094635, 0.042097803205251694, -0.2685289978981018, -0.1594623178243637, 0.0751420259475708, 0.19486172497272491, -0.11582835763692856, 0.0870855376124382, 0.4314538836479187, 0.08927331119775772, -0.05138436704874039, -0.05062393471598625, 0.03832465782761574, -0.7624896764755249, 0.11410082131624222, -0.42896050214767456, 0.3793439567089081, 0.010656852275133133, -0.06719519942998886, -0.17284278571605682, -0.05107659101486206, -0.29626235365867615, -0.19065363705158234, 0.10716108232736588, -0.12099944055080414, -0.12378052622079849, -0.30345097184181213, -0.07628485560417175, 0.3974149227142334, -0.2260984629392624, 0.07376278191804886, -0.578018844127655, 0.3407835066318512, 0.1180042251944542, -0.06648506224155426, -0.012310493737459183, 0.4472556412220001, 0.19225004315376282, -0.04829718917608261, 0.1684594303369522, 0.22092176973819733, 0.21488994359970093, -0.15717469155788422, -0.06123402342200279, -0.002026520436629653, 0.13349342346191406, -0.5777857303619385, 0.06592754274606705, 0.2230999618768692, -0.001422565896064043, -0.2143048197031021, -0.1243550106883049, 0.5517564415931702, 0.18477042019367218, 0.20728403329849243, 0.028973320499062538, 0.07074955105781555, 0.21222321689128876, -0.17136169970035553, -0.23443348705768585, -0.10390438139438629, 0.15454870462417603, 0.1233178973197937, 0.03054722212255001, 0.09956599026918411, -0.5023413896560669, 0.020011471584439278, 0.3077205717563629, 0.02743048034608364, 0.1898185759782791, 0.20472769439220428, -0.15310917794704437, -0.07916553318500519, 0.03745676949620247, 0.3701198697090149, 0.35908687114715576, 0.0914270207285881, 0.10988570004701614, 0.13040734827518463, -0.032941319048404694, 0.07248856872320175, -0.03588365390896797, 0.06175386160612106, 0.15101803839206696, 0.211965411901474, 0.17851610481739044, -0.08419463783502579, -0.08589618653059006, -0.2191499024629593, 0.0321781300008297, 0.1521632820367813, -0.3295000195503235, 0.07806958258152008, 0.03682161867618561, -0.4502653181552887, -0.14737479388713837, 0.04417235404253006, -0.1361568719148636, -0.3193354904651642, -0.03792202100157738, -0.057156048715114594, 0.23877482116222382, 0.0840669795870781, -0.4746869206428528, -0.21508675813674927, -0.19860151410102844, -0.34062862396240234, -0.058314159512519836, 0.07429340481758118, -0.1382392793893814, -0.026754168793559074, 0.2119733691215515, 0.5459086298942566, -0.031271468847990036, -0.4353150725364685, 0.39016038179397583, -0.3872424364089966, -0.20231188833713531, 0.3016563951969147, -0.26382142305374146, 0.31215837597846985, 0.21715417504310608, -0.10408530384302139, -0.40460294485092163, 0.1959165632724762, 0.1874924898147583, -0.3214799463748932, -0.3141261041164398, 0.31686174869537354, -0.1772637814283371, -0.09167516976594925, -0.02644365094602108, -0.4063463509082794, -0.5237723588943481, -0.20548726618289948, 0.011993926018476486, 0.2230314016342163, 0.3162440061569214, 0.21513783931732178, -0.2596661448478699, -0.14515088498592377, -0.13218092918395996, -0.19551119208335876, 0.0069595989771187305, -0.5726143717765808, 0.456842303276062, -0.2441943883895874, -0.205152690410614, -0.08597999811172485, -0.2658787667751312, 0.47131991386413574, 0.37802854180336, -0.06849353760480881, -0.03754006326198578, 0.1413384974002838, 0.035182446241378784, 0.17770926654338837, -0.06221945956349373, 0.29641181230545044, -0.21413573622703552, 0.04570550099015236, -0.02778959646821022, -0.008123260922729969, 0.07852572947740555, 0.32014456391334534, 0.2304374724626541, -0.026517730206251144, -0.2571675181388855, 0.11034755408763885, 0.06357788294553757, 0.15529058873653412, 0.046334147453308105, 0.43679338693618774, 0.0053786626085639, 0.11456842720508575, 0.08478370308876038, 0.022408144548535347, -0.16403041779994965, 0.060146186500787735, 0.2332696169614792, -0.000989624997600913, 0.235787495970726, -0.15477243065834045, -0.07209774106740952, 0.12637107074260712, -0.13299907743930817, -0.2151201367378235, 0.5398619771003723, -0.139754056930542, 0.410523384809494, -0.17096176743507385, 0.026816636323928833, -0.0614323765039444, -0.4580696225166321, -0.25712984800338745, 0.08615041524171829, 0.17971499264240265, 0.15540537238121033, -0.6861752867698669, 0.3985414505004883, -0.38882866501808167, -0.02063354104757309, 0.1728513538837433, 0.5378322005271912, 0.21202577650547028, 0.08040604740381241, 0.15717308223247528, -0.03739925101399422, 0.31122511625289917, -0.2897283732891083, -0.14624309539794922, 0.10926075279712677, 0.10011496394872665, -0.3250236213207245, -0.04307325556874275, -0.2508809268474579, 0.026530900970101357, 0.4807169735431671, 0.4030666649341583, -0.302034854888916, -0.44885721802711487, -0.014215526171028614, 0.047435641288757324, -0.20959943532943726, -0.1977832019329071, -0.2662707269191742, -0.45051923394203186, -0.09220199286937714, -0.09107784926891327, 0.5540916323661804, -0.011967490427196026, 0.28598958253860474, 0.02891922928392887, -0.2357482761144638, 0.2654162347316742, 0.3301900327205658, -0.037114545702934265, 0.5644024014472961, -0.23958198726177216, 0.00573766091838479, -0.06575573980808258, -0.08432995527982712, 0.2901475131511688, 0.48032522201538086, -0.18594017624855042, -0.15045343339443207, 0.18000414967536926, -0.22384560108184814, 0.4223890006542206, 0.1663798838853836, 0.18850314617156982, 0.01889634318649769, -0.2950080931186676, -0.0011856041382998228, -0.13589197397232056, 0.13620223104953766, 0.38857969641685486, -0.10829756408929825, -0.41880789399147034, -0.3653251528739929, 0.17683617770671844, 0.308877557516098, 0.10559810698032379, -0.23104411363601685, -0.17216089367866516, -0.2617766857147217, -0.1415577530860901, 0.46636852622032166, 1.0166804790496826, 0.030185000970959663, 0.43357038497924805, 0.17269045114517212, 0.08972635120153427, 0.06072790175676346, -0.44448667764663696, 0.20499399304389954, -0.3482044041156769, -0.3285880386829376, -0.20364518463611603, -0.25741419196128845, -0.06209051236510277, 0.2026151716709137, 0.03191158547997475, 0.6626030802726746, 0.22569093108177185, -0.04479014500975609, 0.022951379418373108, 0.21597029268741608, 0.00936813559383154, -0.38673946261405945, -0.37452471256256104, 0.004031623713672161, -0.28633490204811096, 0.014986290596425533, -0.15357734262943268, -0.20838315784931183, -0.05914849042892456, 0.19947579503059387, 0.1399664431810379, 0.28194597363471985, 0.09344639629125595, -0.18290574848651886, 0.42392727732658386, -0.5605937242507935, -0.05334736779332161, 0.24287335574626923, 0.07730419188737869, -0.32219064235687256, 0.003152495715767145, 0.23612277209758759, 0.4050416648387909, 0.1009967252612114, 0.39132335782051086, -0.3321992754936218, 0.2601027488708496, 0.04982786625623703, 0.12219029664993286, -0.24286030232906342, 0.1581602841615677, -0.03726305812597275, -0.4174318015575409, 0.04797251895070076, -0.17502562701702118, -0.274973064661026, -0.20879949629306793, 0.026937680318951607, -0.14437000453472137, -0.04973886162042618, 0.05494082346558571, 0.2594359219074249, -0.09028734266757965, 0.1481015980243683, 0.11329233646392822, -0.25920602679252625, 0.19909222424030304, 0.0831906646490097, 0.29767486453056335, -0.3125306963920593, 0.03761090710759163, 0.2482125461101532, 0.015134850516915321, -0.09923625737428665, 0.18058158457279205, 0.4821501076221466, -0.6173612475395203, 0.03374776244163513, -0.2434496283531189, -0.013798211701214314, -0.016300907358527184, 0.1851172149181366, 0.0020545395091176033, -0.26249903440475464, 0.1627749502658844, -0.2828575074672699, -0.34099283814430237, 0.3751988410949707, 0.11637815088033676, 0.2782913148403168, -0.19798493385314941, 0.009825811721384525, 0.15099342167377472, -0.22004389762878418, -0.23904985189437866, 0.17531631886959076, -0.17947137355804443, 0.19612377882003784, -0.11576490104198456, -0.09629117697477341, 0.08040323108434677, -0.09420125186443329, -0.024969909340143204, 0.26647016406059265, -0.14584435522556305, -0.05785389244556427, 0.01793401874601841, 0.12439136952161789, 0.1327526718378067, -0.115770623087883, 0.12489106506109238, 0.12000419944524765, -0.051540691405534744, -0.13733728229999542, -0.11356811970472336, 0.18000173568725586, 0.022833947092294693, 0.2303542196750641, -0.2976280152797699, 0.0392741821706295, -0.12316631525754929, 0.2310584932565689, 0.18953821063041687, 0.12020540237426758, 0.06575049459934235, 0.2072513848543167, -0.05111869424581528, 0.024866001680493355, -0.518206775188446, 0.20642633736133575, 0.19672636687755585, 0.36884355545043945, 0.21520045399665833, -0.15535660088062286, 0.10563815385103226, -0.03227805718779564, 0.1498681604862213, 0.3083643913269043, -0.26997214555740356, -0.0058442289009690285, 0.241904616355896, 0.14836733043193817, -0.1588442623615265, -0.0049727968871593475, 0.3671056032180786, 0.007890619337558746, 0.008068476803600788, 0.4790728986263275, 0.3525027930736542, 0.13681620359420776, -0.1463463306427002, 0.06332693248987198, 0.23557493090629578, -0.25352710485458374, 0.06761220842599869, 0.40521273016929626, -0.005103017669171095, 0.13945770263671875, 0.5995872616767883, 0.03328805789351463, -0.11432942748069763, 0.6000958681106567, 0.30118587613105774, 0.7809868454933167, 0.19955986738204956, 0.17875508964061737, -0.0658114030957222, -0.10446465760469437, -0.4129889905452728, 0.25482916831970215, 0.12739567458629608, 0.17695306241512299, 0.03835279121994972, 0.14328759908676147, 0.14535708725452423, -0.18604719638824463, -0.09647724032402039, 0.1134999543428421, -0.3404925465583801, 0.022929711267352104, -0.33178746700286865, -0.23424360156059265, -0.12177404761314392, -0.11770022660493851, -0.17227362096309662, 0.0367380790412426, 0.06148865446448326, 0.13393916189670563, -0.007461723405867815, -0.06121246889233589, 0.08235403150320053, 0.28523561358451843, 0.04782400280237198, -0.1977074295282364, 0.5288458466529846, 0.03390171006321907, -0.0469573512673378, -0.1587122231721878, 0.2742467522621155, 0.2531484365463257, 0.23150303959846497, -0.05197351798415184, -0.10700352489948273, 0.33872684836387634, -0.11022824048995972, -0.029693329706788063, 0.10047408938407898, 0.20050637423992157, 0.2549160420894623, 0.1804334819316864, 0.06518206000328064, -0.004352333024144173, 0.3010016977787018, 0.0695360079407692, -0.19286563992500305, 0.24358557164669037, 0.28016042709350586, 0.18614508211612701, -0.28904592990875244, -0.12946179509162903, -0.22410224378108978, -0.3388960659503937, -0.16420964896678925, 0.31421273946762085, -0.1428404003381729, 0.24048152565956116, -0.13081538677215576, 0.05084571987390518, 0.04204905033111572, 0.19686707854270935, 0.11872238665819168, 0.11401598155498505, -0.4945986568927765, -0.08852329850196838, -0.7457128763198853, 0.20055319368839264, -0.3096914291381836, -0.2826569974422455, 0.2355698049068451, 0.026604747399687767, -0.047462064772844315, 0.30229970812797546, -0.23467451333999634, 0.22896665334701538, 0.06854809820652008, 0.3347981870174408, -0.6064155101776123, 0.06857939809560776, 0.2317821979522705, 0.3589983582496643, 0.053191304206848145, -0.12498144060373306, -0.2764682173728943, 0.2186528593301773, -0.07028917223215103, -0.07276002317667007, -0.06854403018951416, -0.1896737962961197, -0.055826570838689804, 0.2673405408859253, -0.21242354810237885, 0.15677668154239655, -0.07460633665323257, -0.1744624823331833, -0.27474549412727356, -0.0597098283469677, -0.16448555886745453, 0.021056216210126877, 0.1005389392375946, 0.3167761564254761, 0.0033466005697846413, 0.15478681027889252, -0.39150696992874146, -0.29847899079322815, 0.013277285732328892, 0.08274855464696884, -0.3641842007637024, 0.4328104555606842, -0.23216208815574646, 0.14379489421844482, 0.03772290423512459, 0.22597214579582214, 0.07463199645280838, -0.0033206725493073463, -0.1593923568725586, -0.44558486342430115, 0.26130253076553345, 0.26990118622779846, -0.1986565887928009, -0.1195022389292717, 0.004335246980190277, 0.10739351809024811, 0.12586960196495056, -0.44796523451805115, 0.1364089697599411, 0.17997051775455475, -0.045121874660253525, -0.09457539021968842, 0.08399660885334015, -0.02371646836400032, -0.07817786186933517, -0.13010534644126892, 0.12380406260490417, -0.02628343179821968, -0.11458509415388107, -0.2040129005908966, -0.15853142738342285 ]
https://github.com/huggingface/datasets/issues/425
Correct data structure for PAN-X task in XTREME dataset?
One more thing about features. I mentioned ```python features = nlp.Features({ "words": [nlp.Value("string")], "ner_tags": [nlp.Value("string")], "langs": [nlp.Value("string")], }) ``` but it's actually not consistent with the way we write datasets. Something like this is simpler to read and more consistent with the way we define datasets: ```python features = nlp.Features({ "words": nlp.Sequence(nlp.Value("string")), "ner_tags": nlp.Sequence(nlp.Value("string")), "langs": nlp.Sequence(nlp.Value("string")), }) ``` Sorry about that
Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR.
61
Correct data structure for PAN-X task in XTREME dataset? Hi 🤗 team! ## Description of the problem Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows: ```python from nlp import load_dataset # AmazonPhotos.zip is located in data/ dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data') dataset_train = dataset['train'] ``` However, I am not sure that `load_dataset()` is returning the correct data structure for NER. Currently, every row in `dataset_train` is of the form ```python {'word': str, 'ner_tag': str, 'lang': str} ``` but I think we actually want something like ```python {'words': List[str], 'ner_tags': List[str], 'langs': List[str]} ``` so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples. Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages. ## Proposed solution Replace ```python with open(filepath) as f: data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE) for id_, row in enumerate(data): if row: lang, word = row[0].split(":")[0], row[0].split(":")[1] tag = row[1] yield id_, {"word": word, "ner_tag": tag, "lang": lang} ``` from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like ```python guid_index = 1 with open(filepath, encoding="utf-8") as f: words = [] ner_tags = [] langs = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n": if words: yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs} guid_index += 1 words = [] ner_tags = [] else: # pan-x data is tab separated splits = line.split("\t") # strip out en: prefix langs.append(splits[0][:2]) words.append(splits[0][3:]) if len(splits) > 1: labels.append(splits[-1].replace("\n", "")) else: # examples have no label in test set labels.append("O") ``` If you agree, me or @lvwerra would be happy to implement this and create a PR. One more thing about features. I mentioned ```python features = nlp.Features({ "words": [nlp.Value("string")], "ner_tags": [nlp.Value("string")], "langs": [nlp.Value("string")], }) ``` but it's actually not consistent with the way we write datasets. Something like this is simpler to read and more consistent with the way we define datasets: ```python features = nlp.Features({ "words": nlp.Sequence(nlp.Value("string")), "ner_tags": nlp.Sequence(nlp.Value("string")), "langs": nlp.Sequence(nlp.Value("string")), }) ``` Sorry about that
[ -0.04464266449213028, -0.19605210423469543, -0.021391933783888817, 0.371661514043808, 0.039040084928274155, -0.27633070945739746, -0.02063722535967827, 0.1579519510269165, -0.07178051024675369, -0.06624244898557663, -0.16135306656360626, 0.26270654797554016, 0.0014277062145993114, 0.1680825799703598, 0.4264345169067383, -0.14670278131961823, 0.04844255745410919, -0.06990545243024826, 0.27868586778640747, -0.052614662796258926, -0.1090930849313736, 0.15061049163341522, -0.3253745436668396, 0.054469913244247437, -0.3497878909111023, 0.08372754603624344, -0.06782159209251404, 0.3462396562099457, -0.27583909034729004, -0.4933691918849945, 0.590154767036438, 0.061042800545692444, 0.3375477194786072, 0.3253477215766907, -0.0001185823421110399, 0.007394324988126755, 0.04914972558617592, -0.29767942428588867, 0.06300023198127747, -0.5153085589408875, -0.21160531044006348, -0.6882327198982239, -0.07075067609548569, -0.18635223805904388, -0.24942466616630554, -0.06915031373500824, 0.23590943217277527, 0.16131553053855896, 0.32868772745132446, 0.40413030982017517, 0.066755510866642, 0.11867215484380722, -0.011228535324335098, 0.16462384164333344, 0.40690532326698303, 0.39126068353652954, -0.29841071367263794, -0.055471453815698624, 0.5836412906646729, 0.15009425580501556, -0.20072369277477264, 0.22613616287708282, 0.06657782942056656, -0.09574078768491745, 0.21683211624622345, 0.31174901127815247, 0.11062171310186386, -0.4583888351917267, -0.20303450524806976, 0.282892107963562, 0.2304353564977646, -0.25538399815559387, -0.20350728929042816, -0.27793049812316895, -0.057283781468868256, -0.29004722833633423, -0.02802765741944313, 0.3609634339809418, -0.08088470250368118, -0.009098979644477367, 0.2543644309043884, -0.002982668112963438, -0.111481674015522, 0.20313766598701477, -0.010519908741116524, 0.4096224009990692, -0.0134636415168643, -0.10751790553331375, -0.13960686326026917, -0.11620784550905228, 0.701856255531311, -0.010426257736980915, 0.15768633782863617, 0.11971088498830795, -0.6041286587715149, 0.08037969470024109, -0.1363229900598526, -0.2818926274776459, 0.1663050651550293, -0.048437464982271194, 0.20986545085906982, 0.1589152067899704, 0.14852486550807953, 0.014587187208235264, 0.3213749825954437, 0.20039556920528412, 0.2381374090909958, 0.031010327860713005, -0.13071268796920776, 0.07348063588142395, 0.08580300956964493, -0.09635822474956512, -0.3183750510215759, 0.06530464440584183, 0.2368333786725998, -0.022806517779827118, 0.2889067828655243, -0.196237251162529, -0.3680238425731659, -0.019991375505924225, -0.12843091785907745, 0.0725800096988678, 0.1414785385131836, 0.06118028238415718, 0.008060116320848465, 0.5874363780021667, -0.07428835332393646, 0.17870861291885376, -0.2538334131240845, 0.029141558334231377, -0.14729994535446167, 0.1694101095199585, -0.6243590116500854, -0.10618709027767181, 0.25825759768486023, 0.09196075052022934, 0.19703973829746246, -0.00640327762812376, 0.12181979417800903, -0.3322499394416809, 0.1758815199136734, -0.2791441082954407, 0.2651098668575287, -0.015867359936237335, 0.24573861062526703, -0.12957225739955902, -0.30932411551475525, -0.009520281106233597, -0.1647399514913559, 0.21943770349025726, -0.7123696208000183, -0.02457338012754917, 0.045095011591911316, 0.07545921206474304, -0.21419388055801392, 0.14357410371303558, -0.5043219923973083, 0.03225931525230408, 0.06304427236318588, 0.21816885471343994, 0.10690420866012573, -0.33061307668685913, -0.214290589094162, -0.07204851508140564, 0.08307024091482162, 0.13265612721443176, -0.12915079295635223, 0.09738156199455261, 0.06310055404901505, 0.00025627430295571685, 0.10419746488332748, 0.21627990901470184, -0.010966440662741661, 0.2841823697090149, -0.18863455951213837, 0.5723388195037842, 0.419582337141037, -0.8037276864051819, -0.3378545045852661, 0.08750900626182556, -0.16561448574066162, 0.0018313112668693066, -0.07771468907594681, 0.29997095465660095, 0.2168302685022354, -0.10970824956893921, 0.2860373258590698, 0.4717787206172943, -0.06015495955944061, 0.11296431720256805, -0.1055833101272583, 0.26627668738365173, -0.1180933341383934, 0.321599543094635, 0.042097803205251694, -0.2685289978981018, -0.1594623178243637, 0.0751420259475708, 0.19486172497272491, -0.11582835763692856, 0.0870855376124382, 0.4314538836479187, 0.08927331119775772, -0.05138436704874039, -0.05062393471598625, 0.03832465782761574, -0.7624896764755249, 0.11410082131624222, -0.42896050214767456, 0.3793439567089081, 0.010656852275133133, -0.06719519942998886, -0.17284278571605682, -0.05107659101486206, -0.29626235365867615, -0.19065363705158234, 0.10716108232736588, -0.12099944055080414, -0.12378052622079849, -0.30345097184181213, -0.07628485560417175, 0.3974149227142334, -0.2260984629392624, 0.07376278191804886, -0.578018844127655, 0.3407835066318512, 0.1180042251944542, -0.06648506224155426, -0.012310493737459183, 0.4472556412220001, 0.19225004315376282, -0.04829718917608261, 0.1684594303369522, 0.22092176973819733, 0.21488994359970093, -0.15717469155788422, -0.06123402342200279, -0.002026520436629653, 0.13349342346191406, -0.5777857303619385, 0.06592754274606705, 0.2230999618768692, -0.001422565896064043, -0.2143048197031021, -0.1243550106883049, 0.5517564415931702, 0.18477042019367218, 0.20728403329849243, 0.028973320499062538, 0.07074955105781555, 0.21222321689128876, -0.17136169970035553, -0.23443348705768585, -0.10390438139438629, 0.15454870462417603, 0.1233178973197937, 0.03054722212255001, 0.09956599026918411, -0.5023413896560669, 0.020011471584439278, 0.3077205717563629, 0.02743048034608364, 0.1898185759782791, 0.20472769439220428, -0.15310917794704437, -0.07916553318500519, 0.03745676949620247, 0.3701198697090149, 0.35908687114715576, 0.0914270207285881, 0.10988570004701614, 0.13040734827518463, -0.032941319048404694, 0.07248856872320175, -0.03588365390896797, 0.06175386160612106, 0.15101803839206696, 0.211965411901474, 0.17851610481739044, -0.08419463783502579, -0.08589618653059006, -0.2191499024629593, 0.0321781300008297, 0.1521632820367813, -0.3295000195503235, 0.07806958258152008, 0.03682161867618561, -0.4502653181552887, -0.14737479388713837, 0.04417235404253006, -0.1361568719148636, -0.3193354904651642, -0.03792202100157738, -0.057156048715114594, 0.23877482116222382, 0.0840669795870781, -0.4746869206428528, -0.21508675813674927, -0.19860151410102844, -0.34062862396240234, -0.058314159512519836, 0.07429340481758118, -0.1382392793893814, -0.026754168793559074, 0.2119733691215515, 0.5459086298942566, -0.031271468847990036, -0.4353150725364685, 0.39016038179397583, -0.3872424364089966, -0.20231188833713531, 0.3016563951969147, -0.26382142305374146, 0.31215837597846985, 0.21715417504310608, -0.10408530384302139, -0.40460294485092163, 0.1959165632724762, 0.1874924898147583, -0.3214799463748932, -0.3141261041164398, 0.31686174869537354, -0.1772637814283371, -0.09167516976594925, -0.02644365094602108, -0.4063463509082794, -0.5237723588943481, -0.20548726618289948, 0.011993926018476486, 0.2230314016342163, 0.3162440061569214, 0.21513783931732178, -0.2596661448478699, -0.14515088498592377, -0.13218092918395996, -0.19551119208335876, 0.0069595989771187305, -0.5726143717765808, 0.456842303276062, -0.2441943883895874, -0.205152690410614, -0.08597999811172485, -0.2658787667751312, 0.47131991386413574, 0.37802854180336, -0.06849353760480881, -0.03754006326198578, 0.1413384974002838, 0.035182446241378784, 0.17770926654338837, -0.06221945956349373, 0.29641181230545044, -0.21413573622703552, 0.04570550099015236, -0.02778959646821022, -0.008123260922729969, 0.07852572947740555, 0.32014456391334534, 0.2304374724626541, -0.026517730206251144, -0.2571675181388855, 0.11034755408763885, 0.06357788294553757, 0.15529058873653412, 0.046334147453308105, 0.43679338693618774, 0.0053786626085639, 0.11456842720508575, 0.08478370308876038, 0.022408144548535347, -0.16403041779994965, 0.060146186500787735, 0.2332696169614792, -0.000989624997600913, 0.235787495970726, -0.15477243065834045, -0.07209774106740952, 0.12637107074260712, -0.13299907743930817, -0.2151201367378235, 0.5398619771003723, -0.139754056930542, 0.410523384809494, -0.17096176743507385, 0.026816636323928833, -0.0614323765039444, -0.4580696225166321, -0.25712984800338745, 0.08615041524171829, 0.17971499264240265, 0.15540537238121033, -0.6861752867698669, 0.3985414505004883, -0.38882866501808167, -0.02063354104757309, 0.1728513538837433, 0.5378322005271912, 0.21202577650547028, 0.08040604740381241, 0.15717308223247528, -0.03739925101399422, 0.31122511625289917, -0.2897283732891083, -0.14624309539794922, 0.10926075279712677, 0.10011496394872665, -0.3250236213207245, -0.04307325556874275, -0.2508809268474579, 0.026530900970101357, 0.4807169735431671, 0.4030666649341583, -0.302034854888916, -0.44885721802711487, -0.014215526171028614, 0.047435641288757324, -0.20959943532943726, -0.1977832019329071, -0.2662707269191742, -0.45051923394203186, -0.09220199286937714, -0.09107784926891327, 0.5540916323661804, -0.011967490427196026, 0.28598958253860474, 0.02891922928392887, -0.2357482761144638, 0.2654162347316742, 0.3301900327205658, -0.037114545702934265, 0.5644024014472961, -0.23958198726177216, 0.00573766091838479, -0.06575573980808258, -0.08432995527982712, 0.2901475131511688, 0.48032522201538086, -0.18594017624855042, -0.15045343339443207, 0.18000414967536926, -0.22384560108184814, 0.4223890006542206, 0.1663798838853836, 0.18850314617156982, 0.01889634318649769, -0.2950080931186676, -0.0011856041382998228, -0.13589197397232056, 0.13620223104953766, 0.38857969641685486, -0.10829756408929825, -0.41880789399147034, -0.3653251528739929, 0.17683617770671844, 0.308877557516098, 0.10559810698032379, -0.23104411363601685, -0.17216089367866516, -0.2617766857147217, -0.1415577530860901, 0.46636852622032166, 1.0166804790496826, 0.030185000970959663, 0.43357038497924805, 0.17269045114517212, 0.08972635120153427, 0.06072790175676346, -0.44448667764663696, 0.20499399304389954, -0.3482044041156769, -0.3285880386829376, -0.20364518463611603, -0.25741419196128845, -0.06209051236510277, 0.2026151716709137, 0.03191158547997475, 0.6626030802726746, 0.22569093108177185, -0.04479014500975609, 0.022951379418373108, 0.21597029268741608, 0.00936813559383154, -0.38673946261405945, -0.37452471256256104, 0.004031623713672161, -0.28633490204811096, 0.014986290596425533, -0.15357734262943268, -0.20838315784931183, -0.05914849042892456, 0.19947579503059387, 0.1399664431810379, 0.28194597363471985, 0.09344639629125595, -0.18290574848651886, 0.42392727732658386, -0.5605937242507935, -0.05334736779332161, 0.24287335574626923, 0.07730419188737869, -0.32219064235687256, 0.003152495715767145, 0.23612277209758759, 0.4050416648387909, 0.1009967252612114, 0.39132335782051086, -0.3321992754936218, 0.2601027488708496, 0.04982786625623703, 0.12219029664993286, -0.24286030232906342, 0.1581602841615677, -0.03726305812597275, -0.4174318015575409, 0.04797251895070076, -0.17502562701702118, -0.274973064661026, -0.20879949629306793, 0.026937680318951607, -0.14437000453472137, -0.04973886162042618, 0.05494082346558571, 0.2594359219074249, -0.09028734266757965, 0.1481015980243683, 0.11329233646392822, -0.25920602679252625, 0.19909222424030304, 0.0831906646490097, 0.29767486453056335, -0.3125306963920593, 0.03761090710759163, 0.2482125461101532, 0.015134850516915321, -0.09923625737428665, 0.18058158457279205, 0.4821501076221466, -0.6173612475395203, 0.03374776244163513, -0.2434496283531189, -0.013798211701214314, -0.016300907358527184, 0.1851172149181366, 0.0020545395091176033, -0.26249903440475464, 0.1627749502658844, -0.2828575074672699, -0.34099283814430237, 0.3751988410949707, 0.11637815088033676, 0.2782913148403168, -0.19798493385314941, 0.009825811721384525, 0.15099342167377472, -0.22004389762878418, -0.23904985189437866, 0.17531631886959076, -0.17947137355804443, 0.19612377882003784, -0.11576490104198456, -0.09629117697477341, 0.08040323108434677, -0.09420125186443329, -0.024969909340143204, 0.26647016406059265, -0.14584435522556305, -0.05785389244556427, 0.01793401874601841, 0.12439136952161789, 0.1327526718378067, -0.115770623087883, 0.12489106506109238, 0.12000419944524765, -0.051540691405534744, -0.13733728229999542, -0.11356811970472336, 0.18000173568725586, 0.022833947092294693, 0.2303542196750641, -0.2976280152797699, 0.0392741821706295, -0.12316631525754929, 0.2310584932565689, 0.18953821063041687, 0.12020540237426758, 0.06575049459934235, 0.2072513848543167, -0.05111869424581528, 0.024866001680493355, -0.518206775188446, 0.20642633736133575, 0.19672636687755585, 0.36884355545043945, 0.21520045399665833, -0.15535660088062286, 0.10563815385103226, -0.03227805718779564, 0.1498681604862213, 0.3083643913269043, -0.26997214555740356, -0.0058442289009690285, 0.241904616355896, 0.14836733043193817, -0.1588442623615265, -0.0049727968871593475, 0.3671056032180786, 0.007890619337558746, 0.008068476803600788, 0.4790728986263275, 0.3525027930736542, 0.13681620359420776, -0.1463463306427002, 0.06332693248987198, 0.23557493090629578, -0.25352710485458374, 0.06761220842599869, 0.40521273016929626, -0.005103017669171095, 0.13945770263671875, 0.5995872616767883, 0.03328805789351463, -0.11432942748069763, 0.6000958681106567, 0.30118587613105774, 0.7809868454933167, 0.19955986738204956, 0.17875508964061737, -0.0658114030957222, -0.10446465760469437, -0.4129889905452728, 0.25482916831970215, 0.12739567458629608, 0.17695306241512299, 0.03835279121994972, 0.14328759908676147, 0.14535708725452423, -0.18604719638824463, -0.09647724032402039, 0.1134999543428421, -0.3404925465583801, 0.022929711267352104, -0.33178746700286865, -0.23424360156059265, -0.12177404761314392, -0.11770022660493851, -0.17227362096309662, 0.0367380790412426, 0.06148865446448326, 0.13393916189670563, -0.007461723405867815, -0.06121246889233589, 0.08235403150320053, 0.28523561358451843, 0.04782400280237198, -0.1977074295282364, 0.5288458466529846, 0.03390171006321907, -0.0469573512673378, -0.1587122231721878, 0.2742467522621155, 0.2531484365463257, 0.23150303959846497, -0.05197351798415184, -0.10700352489948273, 0.33872684836387634, -0.11022824048995972, -0.029693329706788063, 0.10047408938407898, 0.20050637423992157, 0.2549160420894623, 0.1804334819316864, 0.06518206000328064, -0.004352333024144173, 0.3010016977787018, 0.0695360079407692, -0.19286563992500305, 0.24358557164669037, 0.28016042709350586, 0.18614508211612701, -0.28904592990875244, -0.12946179509162903, -0.22410224378108978, -0.3388960659503937, -0.16420964896678925, 0.31421273946762085, -0.1428404003381729, 0.24048152565956116, -0.13081538677215576, 0.05084571987390518, 0.04204905033111572, 0.19686707854270935, 0.11872238665819168, 0.11401598155498505, -0.4945986568927765, -0.08852329850196838, -0.7457128763198853, 0.20055319368839264, -0.3096914291381836, -0.2826569974422455, 0.2355698049068451, 0.026604747399687767, -0.047462064772844315, 0.30229970812797546, -0.23467451333999634, 0.22896665334701538, 0.06854809820652008, 0.3347981870174408, -0.6064155101776123, 0.06857939809560776, 0.2317821979522705, 0.3589983582496643, 0.053191304206848145, -0.12498144060373306, -0.2764682173728943, 0.2186528593301773, -0.07028917223215103, -0.07276002317667007, -0.06854403018951416, -0.1896737962961197, -0.055826570838689804, 0.2673405408859253, -0.21242354810237885, 0.15677668154239655, -0.07460633665323257, -0.1744624823331833, -0.27474549412727356, -0.0597098283469677, -0.16448555886745453, 0.021056216210126877, 0.1005389392375946, 0.3167761564254761, 0.0033466005697846413, 0.15478681027889252, -0.39150696992874146, -0.29847899079322815, 0.013277285732328892, 0.08274855464696884, -0.3641842007637024, 0.4328104555606842, -0.23216208815574646, 0.14379489421844482, 0.03772290423512459, 0.22597214579582214, 0.07463199645280838, -0.0033206725493073463, -0.1593923568725586, -0.44558486342430115, 0.26130253076553345, 0.26990118622779846, -0.1986565887928009, -0.1195022389292717, 0.004335246980190277, 0.10739351809024811, 0.12586960196495056, -0.44796523451805115, 0.1364089697599411, 0.17997051775455475, -0.045121874660253525, -0.09457539021968842, 0.08399660885334015, -0.02371646836400032, -0.07817786186933517, -0.13010534644126892, 0.12380406260490417, -0.02628343179821968, -0.11458509415388107, -0.2040129005908966, -0.15853142738342285 ]
https://github.com/huggingface/datasets/issues/418
Addition of google drive links to dl_manager
I think the problem is the way you wrote your urls. Try the following structure to see `https://drive.google.com/uc?export=download&id=your_file_id` . @lhoestq
Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown. This is the script for me: ```python class EmoConfig(nlp.BuilderConfig): """BuilderConfig for SQUAD.""" def __init__(self, **kwargs): """BuilderConfig for EmoContext. Args: **kwargs: keyword arguments forwarded to super. """ super(EmoConfig, self).__init__(**kwargs) _TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing" _TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing" class EmoDataset(nlp.GeneratorBasedBuilder): """ SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """ VERSION = nlp.Version("1.0.0") force = False def _info(self): return nlp.DatasetInfo( description=_DESCRIPTION, features=nlp.Features( { "text": nlp.Value("string"), "label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]), } ), supervised_keys=None, homepage="https://www.aclweb.org/anthology/S19-2005/", citation=_CITATION, ) def _get_drive_url(self, url): base_url = 'https://drive.google.com/uc?id=' split_url = url.split('/') return base_url + split_url[5] def _split_generators(self, dl_manager): """Returns SplitGenerators.""" if(not os.path.exists("emo-train.json") or self.force): gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True) if(not os.path.exists("emo-test.json") or self.force): gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True) return [ nlp.SplitGenerator( name=nlp.Split.TRAIN, gen_kwargs={ "filepath": "emo-train.json", "split": "train", }, ), nlp.SplitGenerator( name=nlp.Split.TEST, gen_kwargs={"filepath": "emo-test.json", "split": "test"}, ), ] def _generate_examples(self, filepath, split): """ Yields examples. """ with open(filepath, 'rb') as f: data = json.load(f) for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()): yield id_, { "text": text, "label": label, } ``` Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database.
20
Addition of google drive links to dl_manager Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown. This is the script for me: ```python class EmoConfig(nlp.BuilderConfig): """BuilderConfig for SQUAD.""" def __init__(self, **kwargs): """BuilderConfig for EmoContext. Args: **kwargs: keyword arguments forwarded to super. """ super(EmoConfig, self).__init__(**kwargs) _TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing" _TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing" class EmoDataset(nlp.GeneratorBasedBuilder): """ SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """ VERSION = nlp.Version("1.0.0") force = False def _info(self): return nlp.DatasetInfo( description=_DESCRIPTION, features=nlp.Features( { "text": nlp.Value("string"), "label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]), } ), supervised_keys=None, homepage="https://www.aclweb.org/anthology/S19-2005/", citation=_CITATION, ) def _get_drive_url(self, url): base_url = 'https://drive.google.com/uc?id=' split_url = url.split('/') return base_url + split_url[5] def _split_generators(self, dl_manager): """Returns SplitGenerators.""" if(not os.path.exists("emo-train.json") or self.force): gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True) if(not os.path.exists("emo-test.json") or self.force): gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True) return [ nlp.SplitGenerator( name=nlp.Split.TRAIN, gen_kwargs={ "filepath": "emo-train.json", "split": "train", }, ), nlp.SplitGenerator( name=nlp.Split.TEST, gen_kwargs={"filepath": "emo-test.json", "split": "test"}, ), ] def _generate_examples(self, filepath, split): """ Yields examples. """ with open(filepath, 'rb') as f: data = json.load(f) for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()): yield id_, { "text": text, "label": label, } ``` Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database. I think the problem is the way you wrote your urls. Try the following structure to see `https://drive.google.com/uc?export=download&id=your_file_id` . @lhoestq
[ -0.09869388490915298, 0.05165697634220123, -0.1309199035167694, -0.05589666962623596, 0.06394009292125702, -0.09535481035709381, 0.36793389916419983, 0.2208101451396942, 0.2062915414571762, 0.22497819364070892, -0.07506561279296875, 0.36557745933532715, -0.2819616198539734, 0.14167733490467072, 0.14772465825080872, 0.11733218282461166, -0.2243506759405136, 0.20253267884254456, 0.2756344974040985, -0.16394364833831787, -0.2751334309577942, 0.3278070092201233, -0.03187902271747589, -0.008126752451062202, 0.05023087188601494, 0.050559453666210175, -0.13912227749824524, 0.1980680674314499, -0.11889566481113434, -0.29995405673980713, -0.4197380840778351, 0.16710439324378967, 0.16023993492126465, -0.09745681285858154, -0.0001042656585923396, -0.14807774126529694, 0.2225683480501175, -0.20845356583595276, -0.4087226092815399, -0.2936672568321228, 0.2981955111026764, -0.17242692410945892, 0.10730807483196259, -0.26513999700546265, -0.004575786646455526, -0.09832486510276794, 0.20411892235279083, 0.13540437817573547, 0.26551520824432373, 0.303234338760376, 0.2717004120349884, 0.07904943823814392, 0.11347091943025589, 0.029892925173044205, 0.3312549293041229, -0.03548923507332802, -0.0682806745171547, 0.35271400213241577, 0.3344663977622986, -0.3054530918598175, -0.16186733543872833, 0.2883867919445038, -0.005472269374877214, -0.010992174036800861, 0.21951286494731903, 0.11134199053049088, 0.578061580657959, -0.33116859197616577, 0.10661425441503525, 0.032749075442552567, 0.02361946366727352, -0.041323766112327576, -0.08505112677812576, -0.28421342372894287, 0.08381418138742447, -0.28745731711387634, 0.2766527533531189, 0.14956606924533844, -0.23348383605480194, -0.05435657501220703, -0.1294783502817154, -0.02550416626036167, -0.015469826757907867, 0.05405951663851738, -0.08892609179019928, 0.41385480761528015, -0.038938943296670914, -0.2830839455127716, 0.38612523674964905, -0.03815257176756859, -0.09715698659420013, -0.15326255559921265, -0.03946929797530174, 0.07660207152366638, -0.0374772734940052, -0.2887784540653229, 0.15674760937690735, 0.04664067551493645, 0.09379835426807404, 0.24899142980575562, 0.04606439918279648, 0.032891880720853806, 0.23562416434288025, 0.07529324293136597, 0.1630273461341858, 0.4459591507911682, -0.0003137865278404206, 0.04006665199995041, 0.35389697551727295, 0.41765156388282776, 0.1608980894088745, 0.1501171737909317, -0.12023309618234634, -0.18616166710853577, -0.1416509598493576, 0.14086121320724487, -0.15757806599140167, 0.09060167521238327, -0.43104293942451477, -0.1330980360507965, -0.3732335567474365, 0.0073385052382946014, -0.0343620628118515, 0.43782877922058105, -0.04874907061457634, -0.13966292142868042, 0.2441137433052063, 0.23740096390247345, -0.04237270727753639, 0.0900173932313919, -0.125478595495224, 0.25561538338661194, -0.21680906414985657, -0.05202268064022064, 0.33103835582733154, 0.07708078622817993, 0.4212234914302826, -0.25716066360473633, -0.1213403195142746, -0.22413326799869537, 0.13889427483081818, 0.08599601686000824, -0.013925321400165558, -0.06411236524581909, 0.4167034327983856, 0.01552219595760107, -0.1533251851797104, -0.4158221185207367, -0.07122506946325302, 0.038811612874269485, 0.03470728546380997, -0.03710704296827316, -0.1740764081478119, 0.335526704788208, -0.08622906357049942, -0.09424585849046707, -0.0037769584450870752, 0.22714753448963165, -0.15021567046642303, 0.04360153526067734, 0.0858759880065918, 0.31828737258911133, -0.08277767151594162, -0.000988526502624154, 0.16852225363254547, 0.29862287640571594, -0.09494438767433167, -0.28771311044692993, -0.183992400765419, 0.16736745834350586, -0.11325452476739883, -0.06327097117900848, -0.044930730015039444, 0.24556857347488403, -0.3794000446796417, 0.2419208586215973, 0.30434954166412354, -0.28963837027549744, -0.20502838492393494, 0.21484516561031342, -0.3752194344997406, -0.17490419745445251, 0.030270297080278397, 0.014300505630671978, 0.41080427169799805, -0.004255207255482674, -0.14323005080223083, 0.4827909469604492, 0.0771712139248848, 0.24286632239818573, -0.304013729095459, -0.4660177230834961, -0.18291309475898743, 0.20750300586223602, 0.1516643911600113, -0.11844585835933685, 0.1088406965136528, -0.08774417638778687, 0.30027204751968384, -0.15627455711364746, 0.18656009435653687, 0.10289207845926285, 0.08243036270141602, 0.0962023064494133, 0.09026601910591125, 0.12775617837905884, -0.4553060829639435, -0.024584302678704262, -0.14911195635795593, 0.24003952741622925, -0.3181629478931427, -0.16543585062026978, -0.22851254045963287, -0.1823609173297882, -0.20870424807071686, -0.3032345771789551, 0.29762232303619385, 0.2181772142648697, 0.058915529400110245, 0.2489137500524521, 0.07916741073131561, -0.07833774387836456, 0.16629134118556976, 0.13523629307746887, 0.04830488935112953, 0.3308420181274414, -0.3822071850299835, -0.11544514447450638, 0.1777769923210144, 0.05338432639837265, 0.16276973485946655, -0.009796414524316788, 0.017779169604182243, 0.20223009586334229, -0.23383492231369019, 0.4560253322124481, 0.034299999475479126, -0.018488623201847076, 0.2643810212612152, -0.0018956194398924708, 0.3286042809486389, 0.3785982131958008, 0.1253693699836731, -0.042321428656578064, -0.13353991508483887, 0.3993208110332489, 0.2978723347187042, 0.1315344274044037, 0.19843950867652893, 0.14926254749298096, -0.0345814973115921, -0.309222012758255, -0.03661511838436127, -0.17500363290309906, 0.10603092610836029, 0.49170276522636414, 0.38121527433395386, -0.1171891838312149, -0.17985594272613525, 0.22685949504375458, 0.3522849977016449, -0.04310369864106178, 0.28841671347618103, 0.07977944612503052, -0.3493870794773102, -0.15528815984725952, -0.1172492727637291, 0.35257193446159363, 0.1629646122455597, 0.2543208599090576, 0.1712724268436432, 0.04933593049645424, -0.008008593693375587, -0.30644726753234863, 0.3992132544517517, 0.06556093692779541, 0.10622542351484299, 0.35542699694633484, 0.11225511133670807, -0.1241627037525177, -0.3668972849845886, -0.007818621583282948, -0.0030901089776307344, -0.05193355679512024, -0.280971884727478, -0.03597601130604744, -0.20211055874824524, -0.1673552244901657, -0.04041785001754761, 0.11890859156847, -0.04538499191403389, -0.1994866132736206, 0.2415713369846344, 0.28511083126068115, -0.27773383259773254, 0.12718932330608368, 0.16757850348949432, 0.34356576204299927, -0.07041826844215393, -0.05174034461379051, -0.10931968688964844, 0.015628959983587265, -0.33139702677726746, 0.19074741005897522, 0.2792060375213623, 0.08477760851383209, 0.16686266660690308, 0.035354312509298325, 0.08240954577922821, -0.42122599482536316, -0.19667842984199524, 0.24050801992416382, -0.1467294842004776, 0.039660658687353134, 0.10825624316930771, -0.09118133038282394, -0.047826267778873444, -0.34721213579177856, 0.05037529766559601, -0.20661033689975739, -0.20288406312465668, -0.32517439126968384, 0.15945850312709808, 0.06294906139373779, -0.4881838858127594, -0.3987692892551422, -0.23691515624523163, -0.3800831139087677, 0.1677398383617401, 0.1598072499036789, 0.18230073153972626, 0.12465608865022659, -0.05482618138194084, 0.18005625903606415, 0.2231404036283493, -0.1606072634458542, -0.14767199754714966, 0.27755028009414673, 0.4198615849018097, -0.40959474444389343, -0.31906452775001526, 0.04391199350357056, -0.3232091963291168, 0.01338417362421751, -0.29902660846710205, -0.2501083016395569, -0.43836209177970886, 0.15373177826404572, -0.17779888212680817, -0.08453402668237686, -0.0026796043384820223, 0.298617959022522, 0.18735940754413605, -0.2003101408481598, 0.02658909186720848, -0.11106937378644943, 0.2070547640323639, 0.08829865604639053, 0.3847718834877014, -0.16153723001480103, 0.40672242641448975, 0.11748594790697098, 0.256628155708313, -0.26918622851371765, 0.03353654220700264, 0.36191898584365845, -0.05067262053489685, 0.17019344866275787, 0.15920299291610718, -0.08635139465332031, 0.1363571137189865, 0.04094723239541054, -0.09443474560976028, 0.5336630940437317, -0.08547082543373108, -0.4864988923072815, -0.18266692757606506, 0.05321746692061424, -0.273686945438385, -0.2679218351840973, -0.10895613580942154, 0.26604142785072327, -0.19568336009979248, 0.011589685454964638, 0.21495464444160461, 0.005221961997449398, -0.060839518904685974, 0.20591722428798676, 0.21969036757946014, -0.0772167444229126, -0.12061526626348495, 0.11858365684747696, 0.10426709055900574, -0.39514732360839844, 0.11174836754798889, 0.10438228398561478, -0.40412235260009766, 0.10744093358516693, -0.22561271488666534, 0.20364168286323547, -0.31954410672187805, 0.35874107480049133, -0.12096112221479416, 0.2662658095359802, -0.01437015738338232, 0.21643832325935364, 0.10930116474628448, -0.09933771193027496, -0.29880577325820923, -0.32118093967437744, 0.45074692368507385, -0.04787517711520195, -0.2656048536300659, -0.14416395127773285, 0.3384919762611389, -0.2589462101459503, 0.032387033104896545, -0.0962972491979599, -0.01911444403231144, -0.529708743095398, -0.5422532558441162, 0.07724028080701828, 0.12609319388866425, 0.0979752317070961, -0.1870061159133911, -0.16395655274391174, 0.27043694257736206, -0.20997197926044464, -0.1122276559472084, 0.05967007204890251, 0.18278811872005463, 0.14112672209739685, -0.04690491035580635, 0.20149768888950348, 0.48597875237464905, -0.0863526239991188, 0.050242867320775986, 0.08871332556009293, 0.1350974589586258, 0.35846057534217834, -0.29154980182647705, -0.012051737867295742, 0.4303935170173645, 0.042382437735795975, -0.14499041438102722, -0.3378106355667114, 0.13120010495185852, -0.005020668264478445, 0.026208924129605293, 0.3523300588130951, -0.007696647197008133, 0.31897440552711487, -0.12856703996658325, 0.3718147575855255, -0.11493855714797974, -0.1495710164308548, -0.11332321166992188, 0.13794198632240295, -0.48915690183639526, 0.2023637890815735, 0.24947968125343323, 1.0095974206924438, 0.18289004266262054, 0.18415899574756622, 0.3770165741443634, -0.18287672102451324, 0.22442613542079926, -0.20480547845363617, 0.24204502999782562, -0.27591341733932495, 0.2594013810157776, 0.027056273072957993, 0.12355447560548782, -0.2554796636104584, 0.28570932149887085, -0.34852135181427, 0.2226646989583969, 0.19183336198329926, -0.05509275943040848, 0.03974046930670738, 0.5254424810409546, -0.4147646427154541, -0.35507315397262573, -0.08400766551494598, 0.22533856332302094, 0.20747816562652588, 0.33369240164756775, -0.022405782714486122, -0.3262501358985901, 0.02302566170692444, -0.3689986765384674, -0.12004096060991287, 0.22281059622764587, -0.6562035083770752, 0.08114127069711685, -0.42058074474334717, -0.20546509325504303, 0.0714992806315422, 0.12164121121168137, 0.18259422481060028, 0.10026181489229202, -0.06405790895223618, 0.2806982696056366, 0.04513357952237129, -0.046438202261924744, -0.005045956000685692, -0.11703608930110931, 0.22879524528980255, -0.2543819844722748, -0.200816348195076, -0.052955783903598785, 0.1507788449525833, -0.284457266330719, 0.04941433668136597, -0.025313997641205788, -0.2893363833427429, 0.16326548159122467, 0.0008368540438823402, 0.08880192786455154, -0.4070401191711426, -0.17011837661266327, 0.21576587855815887, -0.2228655368089676, -0.006303730420768261, -0.04202422499656677, 0.07535678148269653, -0.16575780510902405, -0.1717536896467209, 0.4114312529563904, -0.19205249845981598, -0.3257512152194977, 0.584294855594635, 0.064372718334198, -0.15042608976364136, -0.36543580889701843, -0.2140049785375595, 0.015011745505034924, -0.15085124969482422, 0.11020099371671677, -0.11286575347185135, -0.25621497631073, -0.014630925841629505, 0.5000478625297546, -0.0012313082115724683, 0.26790305972099304, 0.026519527658820152, -0.08714194595813751, -0.09918180108070374, 0.2623229920864105, -0.13460448384284973, 0.29852375388145447, -0.07511784881353378, 0.08205494284629822, 0.18698711693286896, -0.14571380615234375, -0.4634033143520355, 0.0790768563747406, -0.17125482857227325, -0.1405704766511917, 0.12507426738739014, -0.2987324893474579, 0.3095197081565857, 0.1704254150390625, 0.2733666002750397, 0.22055642306804657, -0.07725664228200912, -0.26636165380477905, -0.03043372370302677, 0.07006421685218811, 0.047300927340984344, -0.10063296556472778, 0.012366180308163166, -0.11151035130023956, -0.21850931644439697, 0.1263173222541809, 0.2010793536901474, -0.18316227197647095, 0.08333789557218552, -0.10322150588035583, -0.2481861710548401, 0.09767023473978043, 0.25542035698890686, -0.18508382141590118, -0.09760136157274246, 0.42070820927619934, 0.016686243936419487, 0.10759511590003967, 0.007806075736880302, 0.0033925343304872513, 0.0431223139166832, 0.14116482436656952, 0.05645133927464485, 0.3387719988822937, 0.2962439954280853, 0.06722410023212433, -0.5515545010566711, 0.06194407492876053, 0.2637951374053955, 0.07853759825229645, -0.25156792998313904, -0.11560901999473572, 0.22283129394054413, 0.35561004281044006, -0.2594181001186371, 0.17321816086769104, -0.1623091697692871, -0.4482313394546509, 0.36174866557121277, 0.2996291518211365, 0.19873127341270447, 0.06725269556045532, 0.04757656157016754, 0.15383383631706238, 0.4046260118484497, -0.07478776574134827, -0.09283991158008575, -0.05252727121114731, -0.12249329686164856, 0.1339281052350998, 0.18508271872997284, 0.06740446388721466, 0.32578104734420776, -0.1616293042898178, -0.18715053796768188, 0.008799886330962181, 0.023578643798828125, 0.26404568552970886, 0.21662671864032745, 0.05193595960736275, 0.03836803510785103, 0.08146432787179947, -0.24517059326171875, 0.09618564695119858, -0.06733769178390503, 0.2200675904750824, -0.3234989047050476, 0.024017030373215675, -0.34097734093666077, 0.41611382365226746, -0.061810437589883804, -0.008547754026949406, -0.251667857170105, -0.32604560256004333, -0.6693027019500732, 0.1929417848587036, 0.04504748806357384, -0.14202344417572021, -0.40671640634536743, 0.10912220180034637, -0.04365995526313782, 0.04887494072318077, -0.23544329404830933, -0.09591155499219894, 0.3324640393257141, -0.4127460718154907, 0.1486721932888031, 0.014995799399912357, 0.12239791452884674, -0.1983058601617813, 0.32274580001831055, 0.2554565668106079, 0.215959370136261, -0.3102443516254425, -0.2035476118326187, -0.07942434400320053, -0.06015500798821449, -0.14421704411506653, 0.03710808977484703, 0.3265766203403473, -0.16945818066596985, 0.15005365014076233, 0.2160777449607849, -0.3853524923324585, -0.05778828263282776, 0.28349947929382324, -0.222566157579422, 0.25268131494522095, 0.1624014973640442, 0.27187269926071167, 0.013558318838477135, -0.3872138261795044, -0.306683212518692, -0.5732120871543884, -0.134893536567688, -0.2507278621196747, -0.10088907927274704, 0.2407362014055252, -0.31012240052223206, 0.15338855981826782, 0.11740611493587494, 0.18029096722602844, 0.30675649642944336, -0.001396519597619772, -0.11004646867513657, -0.23575083911418915, -0.439438134431839, 0.05538173392415047, 0.26800116896629333, -0.13249650597572327, -0.21931356191635132, 0.4046557545661926, -0.011978871189057827, -0.0210186168551445, 0.00938662514090538, 0.5449475049972534, 0.253509521484375, 0.07107794284820557, -0.18685972690582275, 0.1759396642446518, 0.12504784762859344, 0.11453041434288025, 0.0818900316953659, -0.18278995156288147, -0.11597105860710144, -0.2869523763656616, 0.21485918760299683, -0.13423995673656464, 0.16132773458957672, -0.31329742074012756, 0.003749147756025195, 0.4126856029033661, -0.24596434831619263, 0.2662287652492523, -0.28622111678123474, -0.15344683825969696, -0.18607524037361145, 0.20852242410182953, -0.29524314403533936, -0.35508739948272705, 0.24073350429534912, 0.19496609270572662, 0.07007916271686554, 0.06696727871894836, -0.269186407327652, 0.26158514618873596, 0.0445123128592968, 0.0049217394553124905, -0.191124826669693, 0.1149071529507637, -0.062338147312402725, 0.09782051295042038, 0.031518686562776566, 0.20531803369522095, -0.12497338652610779, 0.0482882522046566, -0.4952874183654785, -0.515205979347229, 0.16102167963981628, -0.05245312675833702, -0.08688312768936157, -0.0676095187664032, 0.39681801199913025, 0.2529710829257965, 0.15932072699069977, -0.2931995391845703, 0.1256098747253418, -0.008349527604877949, 0.18229994177818298, -0.1703488677740097, 0.13732735812664032, 0.13820461928844452, -0.13519121706485748, -0.07159476727247238, -0.20120194554328918, 0.31383225321769714, 0.008085494861006737, -0.206583172082901, -0.34806135296821594 ]
https://github.com/huggingface/datasets/issues/418
Addition of google drive links to dl_manager
Oh sorry, I think `_get_drive_url` is doing that. Have you tried to use `dl_manager.download_and_extract(_get_drive_url(_TRAIN_URL)`? it should work with google drive links.
Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown. This is the script for me: ```python class EmoConfig(nlp.BuilderConfig): """BuilderConfig for SQUAD.""" def __init__(self, **kwargs): """BuilderConfig for EmoContext. Args: **kwargs: keyword arguments forwarded to super. """ super(EmoConfig, self).__init__(**kwargs) _TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing" _TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing" class EmoDataset(nlp.GeneratorBasedBuilder): """ SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """ VERSION = nlp.Version("1.0.0") force = False def _info(self): return nlp.DatasetInfo( description=_DESCRIPTION, features=nlp.Features( { "text": nlp.Value("string"), "label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]), } ), supervised_keys=None, homepage="https://www.aclweb.org/anthology/S19-2005/", citation=_CITATION, ) def _get_drive_url(self, url): base_url = 'https://drive.google.com/uc?id=' split_url = url.split('/') return base_url + split_url[5] def _split_generators(self, dl_manager): """Returns SplitGenerators.""" if(not os.path.exists("emo-train.json") or self.force): gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True) if(not os.path.exists("emo-test.json") or self.force): gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True) return [ nlp.SplitGenerator( name=nlp.Split.TRAIN, gen_kwargs={ "filepath": "emo-train.json", "split": "train", }, ), nlp.SplitGenerator( name=nlp.Split.TEST, gen_kwargs={"filepath": "emo-test.json", "split": "test"}, ), ] def _generate_examples(self, filepath, split): """ Yields examples. """ with open(filepath, 'rb') as f: data = json.load(f) for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()): yield id_, { "text": text, "label": label, } ``` Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database.
21
Addition of google drive links to dl_manager Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown. This is the script for me: ```python class EmoConfig(nlp.BuilderConfig): """BuilderConfig for SQUAD.""" def __init__(self, **kwargs): """BuilderConfig for EmoContext. Args: **kwargs: keyword arguments forwarded to super. """ super(EmoConfig, self).__init__(**kwargs) _TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing" _TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing" class EmoDataset(nlp.GeneratorBasedBuilder): """ SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """ VERSION = nlp.Version("1.0.0") force = False def _info(self): return nlp.DatasetInfo( description=_DESCRIPTION, features=nlp.Features( { "text": nlp.Value("string"), "label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]), } ), supervised_keys=None, homepage="https://www.aclweb.org/anthology/S19-2005/", citation=_CITATION, ) def _get_drive_url(self, url): base_url = 'https://drive.google.com/uc?id=' split_url = url.split('/') return base_url + split_url[5] def _split_generators(self, dl_manager): """Returns SplitGenerators.""" if(not os.path.exists("emo-train.json") or self.force): gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True) if(not os.path.exists("emo-test.json") or self.force): gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True) return [ nlp.SplitGenerator( name=nlp.Split.TRAIN, gen_kwargs={ "filepath": "emo-train.json", "split": "train", }, ), nlp.SplitGenerator( name=nlp.Split.TEST, gen_kwargs={"filepath": "emo-test.json", "split": "test"}, ), ] def _generate_examples(self, filepath, split): """ Yields examples. """ with open(filepath, 'rb') as f: data = json.load(f) for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()): yield id_, { "text": text, "label": label, } ``` Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database. Oh sorry, I think `_get_drive_url` is doing that. Have you tried to use `dl_manager.download_and_extract(_get_drive_url(_TRAIN_URL)`? it should work with google drive links.
[ -0.09869388490915298, 0.05165697634220123, -0.1309199035167694, -0.05589666962623596, 0.06394009292125702, -0.09535481035709381, 0.36793389916419983, 0.2208101451396942, 0.2062915414571762, 0.22497819364070892, -0.07506561279296875, 0.36557745933532715, -0.2819616198539734, 0.14167733490467072, 0.14772465825080872, 0.11733218282461166, -0.2243506759405136, 0.20253267884254456, 0.2756344974040985, -0.16394364833831787, -0.2751334309577942, 0.3278070092201233, -0.03187902271747589, -0.008126752451062202, 0.05023087188601494, 0.050559453666210175, -0.13912227749824524, 0.1980680674314499, -0.11889566481113434, -0.29995405673980713, -0.4197380840778351, 0.16710439324378967, 0.16023993492126465, -0.09745681285858154, -0.0001042656585923396, -0.14807774126529694, 0.2225683480501175, -0.20845356583595276, -0.4087226092815399, -0.2936672568321228, 0.2981955111026764, -0.17242692410945892, 0.10730807483196259, -0.26513999700546265, -0.004575786646455526, -0.09832486510276794, 0.20411892235279083, 0.13540437817573547, 0.26551520824432373, 0.303234338760376, 0.2717004120349884, 0.07904943823814392, 0.11347091943025589, 0.029892925173044205, 0.3312549293041229, -0.03548923507332802, -0.0682806745171547, 0.35271400213241577, 0.3344663977622986, -0.3054530918598175, -0.16186733543872833, 0.2883867919445038, -0.005472269374877214, -0.010992174036800861, 0.21951286494731903, 0.11134199053049088, 0.578061580657959, -0.33116859197616577, 0.10661425441503525, 0.032749075442552567, 0.02361946366727352, -0.041323766112327576, -0.08505112677812576, -0.28421342372894287, 0.08381418138742447, -0.28745731711387634, 0.2766527533531189, 0.14956606924533844, -0.23348383605480194, -0.05435657501220703, -0.1294783502817154, -0.02550416626036167, -0.015469826757907867, 0.05405951663851738, -0.08892609179019928, 0.41385480761528015, -0.038938943296670914, -0.2830839455127716, 0.38612523674964905, -0.03815257176756859, -0.09715698659420013, -0.15326255559921265, -0.03946929797530174, 0.07660207152366638, -0.0374772734940052, -0.2887784540653229, 0.15674760937690735, 0.04664067551493645, 0.09379835426807404, 0.24899142980575562, 0.04606439918279648, 0.032891880720853806, 0.23562416434288025, 0.07529324293136597, 0.1630273461341858, 0.4459591507911682, -0.0003137865278404206, 0.04006665199995041, 0.35389697551727295, 0.41765156388282776, 0.1608980894088745, 0.1501171737909317, -0.12023309618234634, -0.18616166710853577, -0.1416509598493576, 0.14086121320724487, -0.15757806599140167, 0.09060167521238327, -0.43104293942451477, -0.1330980360507965, -0.3732335567474365, 0.0073385052382946014, -0.0343620628118515, 0.43782877922058105, -0.04874907061457634, -0.13966292142868042, 0.2441137433052063, 0.23740096390247345, -0.04237270727753639, 0.0900173932313919, -0.125478595495224, 0.25561538338661194, -0.21680906414985657, -0.05202268064022064, 0.33103835582733154, 0.07708078622817993, 0.4212234914302826, -0.25716066360473633, -0.1213403195142746, -0.22413326799869537, 0.13889427483081818, 0.08599601686000824, -0.013925321400165558, -0.06411236524581909, 0.4167034327983856, 0.01552219595760107, -0.1533251851797104, -0.4158221185207367, -0.07122506946325302, 0.038811612874269485, 0.03470728546380997, -0.03710704296827316, -0.1740764081478119, 0.335526704788208, -0.08622906357049942, -0.09424585849046707, -0.0037769584450870752, 0.22714753448963165, -0.15021567046642303, 0.04360153526067734, 0.0858759880065918, 0.31828737258911133, -0.08277767151594162, -0.000988526502624154, 0.16852225363254547, 0.29862287640571594, -0.09494438767433167, -0.28771311044692993, -0.183992400765419, 0.16736745834350586, -0.11325452476739883, -0.06327097117900848, -0.044930730015039444, 0.24556857347488403, -0.3794000446796417, 0.2419208586215973, 0.30434954166412354, -0.28963837027549744, -0.20502838492393494, 0.21484516561031342, -0.3752194344997406, -0.17490419745445251, 0.030270297080278397, 0.014300505630671978, 0.41080427169799805, -0.004255207255482674, -0.14323005080223083, 0.4827909469604492, 0.0771712139248848, 0.24286632239818573, -0.304013729095459, -0.4660177230834961, -0.18291309475898743, 0.20750300586223602, 0.1516643911600113, -0.11844585835933685, 0.1088406965136528, -0.08774417638778687, 0.30027204751968384, -0.15627455711364746, 0.18656009435653687, 0.10289207845926285, 0.08243036270141602, 0.0962023064494133, 0.09026601910591125, 0.12775617837905884, -0.4553060829639435, -0.024584302678704262, -0.14911195635795593, 0.24003952741622925, -0.3181629478931427, -0.16543585062026978, -0.22851254045963287, -0.1823609173297882, -0.20870424807071686, -0.3032345771789551, 0.29762232303619385, 0.2181772142648697, 0.058915529400110245, 0.2489137500524521, 0.07916741073131561, -0.07833774387836456, 0.16629134118556976, 0.13523629307746887, 0.04830488935112953, 0.3308420181274414, -0.3822071850299835, -0.11544514447450638, 0.1777769923210144, 0.05338432639837265, 0.16276973485946655, -0.009796414524316788, 0.017779169604182243, 0.20223009586334229, -0.23383492231369019, 0.4560253322124481, 0.034299999475479126, -0.018488623201847076, 0.2643810212612152, -0.0018956194398924708, 0.3286042809486389, 0.3785982131958008, 0.1253693699836731, -0.042321428656578064, -0.13353991508483887, 0.3993208110332489, 0.2978723347187042, 0.1315344274044037, 0.19843950867652893, 0.14926254749298096, -0.0345814973115921, -0.309222012758255, -0.03661511838436127, -0.17500363290309906, 0.10603092610836029, 0.49170276522636414, 0.38121527433395386, -0.1171891838312149, -0.17985594272613525, 0.22685949504375458, 0.3522849977016449, -0.04310369864106178, 0.28841671347618103, 0.07977944612503052, -0.3493870794773102, -0.15528815984725952, -0.1172492727637291, 0.35257193446159363, 0.1629646122455597, 0.2543208599090576, 0.1712724268436432, 0.04933593049645424, -0.008008593693375587, -0.30644726753234863, 0.3992132544517517, 0.06556093692779541, 0.10622542351484299, 0.35542699694633484, 0.11225511133670807, -0.1241627037525177, -0.3668972849845886, -0.007818621583282948, -0.0030901089776307344, -0.05193355679512024, -0.280971884727478, -0.03597601130604744, -0.20211055874824524, -0.1673552244901657, -0.04041785001754761, 0.11890859156847, -0.04538499191403389, -0.1994866132736206, 0.2415713369846344, 0.28511083126068115, -0.27773383259773254, 0.12718932330608368, 0.16757850348949432, 0.34356576204299927, -0.07041826844215393, -0.05174034461379051, -0.10931968688964844, 0.015628959983587265, -0.33139702677726746, 0.19074741005897522, 0.2792060375213623, 0.08477760851383209, 0.16686266660690308, 0.035354312509298325, 0.08240954577922821, -0.42122599482536316, -0.19667842984199524, 0.24050801992416382, -0.1467294842004776, 0.039660658687353134, 0.10825624316930771, -0.09118133038282394, -0.047826267778873444, -0.34721213579177856, 0.05037529766559601, -0.20661033689975739, -0.20288406312465668, -0.32517439126968384, 0.15945850312709808, 0.06294906139373779, -0.4881838858127594, -0.3987692892551422, -0.23691515624523163, -0.3800831139087677, 0.1677398383617401, 0.1598072499036789, 0.18230073153972626, 0.12465608865022659, -0.05482618138194084, 0.18005625903606415, 0.2231404036283493, -0.1606072634458542, -0.14767199754714966, 0.27755028009414673, 0.4198615849018097, -0.40959474444389343, -0.31906452775001526, 0.04391199350357056, -0.3232091963291168, 0.01338417362421751, -0.29902660846710205, -0.2501083016395569, -0.43836209177970886, 0.15373177826404572, -0.17779888212680817, -0.08453402668237686, -0.0026796043384820223, 0.298617959022522, 0.18735940754413605, -0.2003101408481598, 0.02658909186720848, -0.11106937378644943, 0.2070547640323639, 0.08829865604639053, 0.3847718834877014, -0.16153723001480103, 0.40672242641448975, 0.11748594790697098, 0.256628155708313, -0.26918622851371765, 0.03353654220700264, 0.36191898584365845, -0.05067262053489685, 0.17019344866275787, 0.15920299291610718, -0.08635139465332031, 0.1363571137189865, 0.04094723239541054, -0.09443474560976028, 0.5336630940437317, -0.08547082543373108, -0.4864988923072815, -0.18266692757606506, 0.05321746692061424, -0.273686945438385, -0.2679218351840973, -0.10895613580942154, 0.26604142785072327, -0.19568336009979248, 0.011589685454964638, 0.21495464444160461, 0.005221961997449398, -0.060839518904685974, 0.20591722428798676, 0.21969036757946014, -0.0772167444229126, -0.12061526626348495, 0.11858365684747696, 0.10426709055900574, -0.39514732360839844, 0.11174836754798889, 0.10438228398561478, -0.40412235260009766, 0.10744093358516693, -0.22561271488666534, 0.20364168286323547, -0.31954410672187805, 0.35874107480049133, -0.12096112221479416, 0.2662658095359802, -0.01437015738338232, 0.21643832325935364, 0.10930116474628448, -0.09933771193027496, -0.29880577325820923, -0.32118093967437744, 0.45074692368507385, -0.04787517711520195, -0.2656048536300659, -0.14416395127773285, 0.3384919762611389, -0.2589462101459503, 0.032387033104896545, -0.0962972491979599, -0.01911444403231144, -0.529708743095398, -0.5422532558441162, 0.07724028080701828, 0.12609319388866425, 0.0979752317070961, -0.1870061159133911, -0.16395655274391174, 0.27043694257736206, -0.20997197926044464, -0.1122276559472084, 0.05967007204890251, 0.18278811872005463, 0.14112672209739685, -0.04690491035580635, 0.20149768888950348, 0.48597875237464905, -0.0863526239991188, 0.050242867320775986, 0.08871332556009293, 0.1350974589586258, 0.35846057534217834, -0.29154980182647705, -0.012051737867295742, 0.4303935170173645, 0.042382437735795975, -0.14499041438102722, -0.3378106355667114, 0.13120010495185852, -0.005020668264478445, 0.026208924129605293, 0.3523300588130951, -0.007696647197008133, 0.31897440552711487, -0.12856703996658325, 0.3718147575855255, -0.11493855714797974, -0.1495710164308548, -0.11332321166992188, 0.13794198632240295, -0.48915690183639526, 0.2023637890815735, 0.24947968125343323, 1.0095974206924438, 0.18289004266262054, 0.18415899574756622, 0.3770165741443634, -0.18287672102451324, 0.22442613542079926, -0.20480547845363617, 0.24204502999782562, -0.27591341733932495, 0.2594013810157776, 0.027056273072957993, 0.12355447560548782, -0.2554796636104584, 0.28570932149887085, -0.34852135181427, 0.2226646989583969, 0.19183336198329926, -0.05509275943040848, 0.03974046930670738, 0.5254424810409546, -0.4147646427154541, -0.35507315397262573, -0.08400766551494598, 0.22533856332302094, 0.20747816562652588, 0.33369240164756775, -0.022405782714486122, -0.3262501358985901, 0.02302566170692444, -0.3689986765384674, -0.12004096060991287, 0.22281059622764587, -0.6562035083770752, 0.08114127069711685, -0.42058074474334717, -0.20546509325504303, 0.0714992806315422, 0.12164121121168137, 0.18259422481060028, 0.10026181489229202, -0.06405790895223618, 0.2806982696056366, 0.04513357952237129, -0.046438202261924744, -0.005045956000685692, -0.11703608930110931, 0.22879524528980255, -0.2543819844722748, -0.200816348195076, -0.052955783903598785, 0.1507788449525833, -0.284457266330719, 0.04941433668136597, -0.025313997641205788, -0.2893363833427429, 0.16326548159122467, 0.0008368540438823402, 0.08880192786455154, -0.4070401191711426, -0.17011837661266327, 0.21576587855815887, -0.2228655368089676, -0.006303730420768261, -0.04202422499656677, 0.07535678148269653, -0.16575780510902405, -0.1717536896467209, 0.4114312529563904, -0.19205249845981598, -0.3257512152194977, 0.584294855594635, 0.064372718334198, -0.15042608976364136, -0.36543580889701843, -0.2140049785375595, 0.015011745505034924, -0.15085124969482422, 0.11020099371671677, -0.11286575347185135, -0.25621497631073, -0.014630925841629505, 0.5000478625297546, -0.0012313082115724683, 0.26790305972099304, 0.026519527658820152, -0.08714194595813751, -0.09918180108070374, 0.2623229920864105, -0.13460448384284973, 0.29852375388145447, -0.07511784881353378, 0.08205494284629822, 0.18698711693286896, -0.14571380615234375, -0.4634033143520355, 0.0790768563747406, -0.17125482857227325, -0.1405704766511917, 0.12507426738739014, -0.2987324893474579, 0.3095197081565857, 0.1704254150390625, 0.2733666002750397, 0.22055642306804657, -0.07725664228200912, -0.26636165380477905, -0.03043372370302677, 0.07006421685218811, 0.047300927340984344, -0.10063296556472778, 0.012366180308163166, -0.11151035130023956, -0.21850931644439697, 0.1263173222541809, 0.2010793536901474, -0.18316227197647095, 0.08333789557218552, -0.10322150588035583, -0.2481861710548401, 0.09767023473978043, 0.25542035698890686, -0.18508382141590118, -0.09760136157274246, 0.42070820927619934, 0.016686243936419487, 0.10759511590003967, 0.007806075736880302, 0.0033925343304872513, 0.0431223139166832, 0.14116482436656952, 0.05645133927464485, 0.3387719988822937, 0.2962439954280853, 0.06722410023212433, -0.5515545010566711, 0.06194407492876053, 0.2637951374053955, 0.07853759825229645, -0.25156792998313904, -0.11560901999473572, 0.22283129394054413, 0.35561004281044006, -0.2594181001186371, 0.17321816086769104, -0.1623091697692871, -0.4482313394546509, 0.36174866557121277, 0.2996291518211365, 0.19873127341270447, 0.06725269556045532, 0.04757656157016754, 0.15383383631706238, 0.4046260118484497, -0.07478776574134827, -0.09283991158008575, -0.05252727121114731, -0.12249329686164856, 0.1339281052350998, 0.18508271872997284, 0.06740446388721466, 0.32578104734420776, -0.1616293042898178, -0.18715053796768188, 0.008799886330962181, 0.023578643798828125, 0.26404568552970886, 0.21662671864032745, 0.05193595960736275, 0.03836803510785103, 0.08146432787179947, -0.24517059326171875, 0.09618564695119858, -0.06733769178390503, 0.2200675904750824, -0.3234989047050476, 0.024017030373215675, -0.34097734093666077, 0.41611382365226746, -0.061810437589883804, -0.008547754026949406, -0.251667857170105, -0.32604560256004333, -0.6693027019500732, 0.1929417848587036, 0.04504748806357384, -0.14202344417572021, -0.40671640634536743, 0.10912220180034637, -0.04365995526313782, 0.04887494072318077, -0.23544329404830933, -0.09591155499219894, 0.3324640393257141, -0.4127460718154907, 0.1486721932888031, 0.014995799399912357, 0.12239791452884674, -0.1983058601617813, 0.32274580001831055, 0.2554565668106079, 0.215959370136261, -0.3102443516254425, -0.2035476118326187, -0.07942434400320053, -0.06015500798821449, -0.14421704411506653, 0.03710808977484703, 0.3265766203403473, -0.16945818066596985, 0.15005365014076233, 0.2160777449607849, -0.3853524923324585, -0.05778828263282776, 0.28349947929382324, -0.222566157579422, 0.25268131494522095, 0.1624014973640442, 0.27187269926071167, 0.013558318838477135, -0.3872138261795044, -0.306683212518692, -0.5732120871543884, -0.134893536567688, -0.2507278621196747, -0.10088907927274704, 0.2407362014055252, -0.31012240052223206, 0.15338855981826782, 0.11740611493587494, 0.18029096722602844, 0.30675649642944336, -0.001396519597619772, -0.11004646867513657, -0.23575083911418915, -0.439438134431839, 0.05538173392415047, 0.26800116896629333, -0.13249650597572327, -0.21931356191635132, 0.4046557545661926, -0.011978871189057827, -0.0210186168551445, 0.00938662514090538, 0.5449475049972534, 0.253509521484375, 0.07107794284820557, -0.18685972690582275, 0.1759396642446518, 0.12504784762859344, 0.11453041434288025, 0.0818900316953659, -0.18278995156288147, -0.11597105860710144, -0.2869523763656616, 0.21485918760299683, -0.13423995673656464, 0.16132773458957672, -0.31329742074012756, 0.003749147756025195, 0.4126856029033661, -0.24596434831619263, 0.2662287652492523, -0.28622111678123474, -0.15344683825969696, -0.18607524037361145, 0.20852242410182953, -0.29524314403533936, -0.35508739948272705, 0.24073350429534912, 0.19496609270572662, 0.07007916271686554, 0.06696727871894836, -0.269186407327652, 0.26158514618873596, 0.0445123128592968, 0.0049217394553124905, -0.191124826669693, 0.1149071529507637, -0.062338147312402725, 0.09782051295042038, 0.031518686562776566, 0.20531803369522095, -0.12497338652610779, 0.0482882522046566, -0.4952874183654785, -0.515205979347229, 0.16102167963981628, -0.05245312675833702, -0.08688312768936157, -0.0676095187664032, 0.39681801199913025, 0.2529710829257965, 0.15932072699069977, -0.2931995391845703, 0.1256098747253418, -0.008349527604877949, 0.18229994177818298, -0.1703488677740097, 0.13732735812664032, 0.13820461928844452, -0.13519121706485748, -0.07159476727247238, -0.20120194554328918, 0.31383225321769714, 0.008085494861006737, -0.206583172082901, -0.34806135296821594 ]
https://github.com/huggingface/datasets/issues/414
from_dict delete?
`from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though. Right now if you want to use `from_dict` you have to install the package from the master branch ``` pip install git+https://github.com/huggingface/nlp.git ```
AttributeError: type object 'Dataset' has no attribute 'from_dict'
53
from_dict delete? AttributeError: type object 'Dataset' has no attribute 'from_dict' `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though. Right now if you want to use `from_dict` you have to install the package from the master branch ``` pip install git+https://github.com/huggingface/nlp.git ```
[ -0.11688965559005737, -0.20969082415103912, -0.11670273542404175, 0.04655659198760986, 0.16202788054943085, -0.18883559107780457, 0.09435681998729706, 0.31412234902381897, 0.03775688633322716, 0.14038193225860596, 0.05397738516330719, 0.5944423675537109, -0.10694282501935959, 0.29201823472976685, -0.04265851899981499, -0.16497841477394104, -0.06884374469518661, 0.32000380754470825, -0.31284400820732117, -0.04618777707219124, 0.01107867993414402, 0.37319570779800415, -0.13207902014255524, 0.2549417316913605, 0.12055876106023788, -0.1711760014295578, 0.030364982783794403, 0.1430952101945877, -0.14184871315956116, -0.33113741874694824, 0.25428199768066406, 0.045476172119379044, -0.136367529630661, 0.15779456496238708, -0.00009920298907672986, -0.04312693327665329, 0.324180006980896, -0.07088830322027206, -0.2661367654800415, -0.3808974027633667, -0.12924711406230927, -0.1784547120332718, 0.33023345470428467, -0.10571548342704773, -0.26221954822540283, 0.1483011394739151, 0.02860415168106556, -0.008377466350793839, 0.38384878635406494, 0.3884245455265045, 0.3685190975666046, 0.15779313445091248, 0.16767416894435883, -0.12563355267047882, 0.18619287014007568, 0.18692977726459503, -0.0660710483789444, -0.09688472747802734, 0.053916122764348984, -0.1805325448513031, 0.3063403069972992, 0.28297141194343567, -0.16446563601493835, -0.09611765295267105, 0.18741671741008759, -0.024360928684473038, 0.02423185668885708, -0.14169268310070038, 0.030010323971509933, 0.1506766825914383, 0.2641408443450928, -0.380694180727005, -0.11402907222509384, -0.30154502391815186, -0.024286426603794098, -0.3830109238624573, 0.023707041516900063, -0.05317199230194092, -0.15756872296333313, 0.13010531663894653, -0.052761223167181015, -0.45186227560043335, -0.18533650040626526, 0.35257887840270996, 0.19322997331619263, 0.06897319108247757, -0.11270590871572495, 0.06550987809896469, 0.2613550126552582, -0.054037824273109436, -0.3767990469932556, 0.2988932430744171, -0.1951351761817932, 0.1416611224412918, -0.028042351827025414, -0.20183762907981873, 0.33564579486846924, -0.052485719323158264, -0.07269404083490372, 0.11809824407100677, -0.012950428761541843, -0.018890030682086945, -0.009921598248183727, 0.27463218569755554, 0.41733238101005554, 0.19299748539924622, 0.3750910460948944, 0.2258405089378357, 0.19765977561473846, 0.0005202147294767201, -0.06706579774618149, -0.07054704427719116, 0.10846801847219467, 0.00795901007950306, -0.15428419411182404, -0.08378509432077408, 0.27401119470596313, -0.10183579474687576, -0.28014346957206726, -0.2536674439907074, 0.15472102165222168, 0.11147885024547577, 0.049622222781181335, 0.3161870539188385, 0.02851237542927265, 0.2045537531375885, 0.023410210385918617, 0.16259241104125977, -0.3559412360191345, -0.03187205642461777, -0.2442648857831955, 0.327305406332016, -0.1398751586675644, -0.4790829122066498, 0.0662468671798706, 0.1737162172794342, 0.3600260317325592, -0.11257686465978622, 0.03981190174818039, 0.26091933250427246, 0.00904797576367855, 0.03656001389026642, 0.07564596086740494, 0.21626029908657074, -0.09764626622200012, -0.15824498236179352, 0.21988189220428467, -0.5354817509651184, -0.2740393280982971, 0.10503888130187988, -0.22550058364868164, -0.2852154076099396, -0.4506235718727112, 0.30467164516448975, 0.08042506873607635, -0.2931634485721588, -0.32935693860054016, 0.18428556621074677, 0.13598276674747467, -0.21644698083400726, -0.10593073815107346, -0.15131118893623352, -0.01922464370727539, -0.16116659343242645, -0.007445437368005514, 0.11571982502937317, -0.23537184298038483, -0.209139883518219, -0.20253704488277435, -0.30655407905578613, 0.2619757056236267, 0.31395456194877625, -0.24468353390693665, 0.24550782144069672, -0.122688427567482, 0.10579206794500351, 0.5160627961158752, -0.572424054145813, -0.23124563694000244, 0.2054412066936493, -0.04903965815901756, -0.11422720551490784, -0.1684025675058365, -0.01795157603919506, 0.18190540373325348, -0.08908942341804504, -0.009935621172189713, 0.3474219739437103, 0.18607279658317566, 0.14318886399269104, -0.14953191578388214, -0.12220754474401474, -0.028366420418024063, -0.0966636911034584, -0.07592806965112686, 0.07038136571645737, 0.16849741339683533, 0.1468961387872696, 0.20254041254520416, -0.09452258795499802, 0.009312977083027363, 0.1962146759033203, 0.5006924867630005, 0.055618446320295334, -0.09355194866657257, -0.43820875883102417, -0.03231070563197136, -0.13944774866104126, -0.19786757230758667, 0.35332655906677246, -0.3188270926475525, -0.1176961287856102, -0.2525280714035034, 0.09978078305721283, -0.222349151968956, -0.15722481906414032, 0.3052580952644348, 0.05869549512863159, 0.1432727873325348, 0.07590135931968689, -0.34482496976852417, 0.11638256162405014, 0.06059418246150017, 0.045113492757081985, -0.24405811727046967, -0.021884316578507423, -0.3494744300842285, -0.24402306973934174, 0.05957430973649025, 0.46243739128112793, 0.010900919325649738, -0.052974093705415726, 0.019505783915519714, 0.36523517966270447, -0.09270988404750824, 0.05466340854763985, 0.10787183791399002, -0.18405547738075256, 0.056094396859407425, -0.23184734582901, -0.0272632148116827, 0.0637396052479744, 0.08348936587572098, 0.1336137354373932, -0.10646466910839081, 0.172999769449234, 0.2040766477584839, -0.0279310904443264, 0.25420430302619934, 0.15923713147640228, 0.36442437767982483, -0.2514113783836365, 0.10466739535331726, -0.3587048351764679, 0.21916091442108154, -0.0493636392056942, -0.07154160737991333, -0.17746353149414062, -0.4236357510089874, 0.04521701857447624, 0.6067509055137634, 0.15503479540348053, 0.21328970789909363, 0.09527876228094101, -0.006847721990197897, -0.17884257435798645, -0.051461659371852875, 0.09497284144163132, 0.172585591673851, 0.2499794363975525, -0.14001314342021942, 0.04408663883805275, -0.023369325324892998, -0.07114533334970474, 0.31335920095443726, -0.11022329330444336, 0.1291949599981308, 0.11594206839799881, 0.14645971357822418, -0.12209250777959824, -0.4732961654663086, -0.0990835428237915, -0.27191823720932007, 0.31240832805633545, -0.12022291868925095, 0.23248733580112457, -0.3833056390285492, -0.5119457840919495, 0.029830684885382652, -0.20203426480293274, -0.321760892868042, -0.34161561727523804, 0.23008422553539276, 0.1038932129740715, -0.08628764748573303, 0.19168314337730408, 0.17463400959968567, 0.041203103959560394, 0.03410853073000908, -0.10910855978727341, -0.04482536390423775, -0.38862746953964233, -0.2937379777431488, 0.20785319805145264, -0.04647340252995491, 0.18561264872550964, 0.3453909158706665, -0.09279461205005646, -0.13462601602077484, -0.06532425433397293, -0.45126742124557495, 0.1339697688817978, -0.19821074604988098, 0.41711628437042236, 0.49882540106773376, 0.045873790979385376, -0.1586199700832367, -0.11848944425582886, 0.28552842140197754, -0.5542433261871338, -0.24180994927883148, 0.16253209114074707, -0.04305412992835045, 0.00018775058561004698, -0.2799883186817169, -0.27846962213516235, -0.26988860964775085, -0.44292983412742615, 0.30620425939559937, 0.2609972357749939, 0.2338290959596634, 0.3336769938468933, -0.08878367394208908, 0.1830664873123169, -0.19767335057258606, 0.38883715867996216, -0.17678095400333405, -0.17447085678577423, -0.033639464527368546, -0.23094545304775238, -0.4337507486343384, 0.006330080796033144, 0.10902246087789536, 0.32479748129844666, -0.24398842453956604, -0.31705719232559204, -0.26505404710769653, 0.04879080131649971, 0.10927452147006989, 0.02243654802441597, 0.17588020861148834, 0.25717175006866455, 0.18974626064300537, -0.2251131236553192, -0.21488726139068604, -0.07855202257633209, 0.22497957944869995, 0.20173734426498413, 0.1111912727355957, -0.041610464453697205, 0.21931034326553345, 0.15201103687286377, 0.36291155219078064, -0.049032825976610184, 0.1733381748199463, 0.328886479139328, -0.12338817864656448, 0.49869924783706665, -0.1633700132369995, -0.3937040865421295, -0.02448778785765171, 0.21374979615211487, 0.10913913697004318, 0.1705000102519989, -0.020909057930111885, -0.2336776852607727, -0.2458534687757492, 0.03559870645403862, -0.2109135389328003, -0.21623115241527557, -0.03075372613966465, -0.20949716866016388, -0.008988439105451107, 0.06706858426332474, -0.08694744855165482, -0.23605573177337646, -0.12145855277776718, -0.031725335866212845, -0.09943042695522308, -0.11774018406867981, -0.1608852744102478, -0.527444064617157, -0.379838228225708, -0.42782309651374817, 0.2465215027332306, -0.06926790624856949, 0.11954579502344131, -0.13716840744018555, -0.17686748504638672, 0.09991735219955444, -0.12886779010295868, 0.3627331256866455, -0.004335233010351658, -0.13555485010147095, 0.14127309620380402, 0.04772708937525749, -0.3704722225666046, 0.21488097310066223, -0.2964707314968109, 0.21454039216041565, 0.411986380815506, 0.08346682041883469, -0.43494510650634766, -0.2798311114311218, 0.3200951814651489, -0.039096225053071976, -0.1202361136674881, 0.16182613372802734, -0.2939402461051941, -0.3636198341846466, -0.54495769739151, -0.1299726665019989, 0.07311940938234329, 0.33673328161239624, 0.18823741376399994, 0.13353903591632843, 0.005583565682172775, -0.11856676638126373, 0.022937826812267303, 0.018742000684142113, 0.2522696256637573, -0.21533307433128357, -0.3697970509529114, -0.22913974523544312, 0.2577161192893982, 0.021759500727057457, 0.41801005601882935, -0.10418467968702316, -0.23626373708248138, -0.29906538128852844, -0.0036225595977157354, 0.42009320855140686, -0.01129692979156971, 0.08814077824354172, 0.24313834309577942, -0.12298810482025146, 0.2615298628807068, 0.17343421280384064, 0.07780416309833527, 0.2646642029285431, -0.030003942549228668, 0.04697249457240105, -0.2418215125799179, 0.15611492097377777, -0.05620542913675308, 0.006501529365777969, 0.030287673696875572, 0.09224022179841995, -0.2980344593524933, 0.36249059438705444, -0.17370079457759857, 0.827670693397522, 0.15412382781505585, 0.14952054619789124, 0.16271358728408813, 0.02002766728401184, 0.6298736929893494, 0.14599964022636414, 0.3014273941516876, -0.23057790100574493, 0.2545517385005951, 0.03710411861538887, -0.04809451475739479, 0.23378287255764008, 0.09676223248243332, -0.28034648299217224, 0.36226335167884827, 0.0007972084567882121, 0.04179385304450989, -0.13653339445590973, 0.1986432671546936, 0.09124383330345154, -0.02528500370681286, -0.34671977162361145, 0.24151711165905, -0.12342240661382675, 0.1706308275461197, -0.03527016565203667, -0.18650221824645996, 0.13073359429836273, -0.2843436002731323, -0.18831443786621094, 0.16501495242118835, 0.03550240769982338, 0.3320161998271942, 0.2341720163822174, -0.35742461681365967, -0.11967994272708893, 0.20727244019508362, 0.12313845008611679, 0.046434152871370316, -0.14165011048316956, 0.19344758987426758, -0.15047240257263184, -0.1314363330602646, 0.05811479315161705, 0.379101037979126, 0.4059228003025055, -0.30375346541404724, -0.3127825856208801, 0.13559173047542572, 0.01063829567283392, -0.40712684392929077, 0.20549249649047852, 0.01243689376860857, -0.035839904099702835, 0.0005653320695273578, -0.06267315149307251, 0.10610668361186981, 0.002778333378955722, -0.261128693819046, 0.24799560010433197, 0.26818951964378357, -0.29714271426200867, 0.1301720142364502, 0.027789166197180748, -0.13328216969966888, -0.05977960303425789, -0.0008440084639005363, 0.12866543233394623, 0.0012188460677862167, 0.46488723158836365, 0.10234037041664124, -0.1767462193965912, -0.4118676781654358, -0.2713213562965393, -0.16737709939479828, -0.22632692754268646, 0.3819694519042969, 0.22743113338947296, -0.1809467375278473, 0.15649671852588654, 0.4324985444545746, -0.1519450545310974, 0.04650155454874039, -0.2163882553577423, -0.2470470368862152, -0.18262335658073425, 0.1593073606491089, -0.047622594982385635, 0.08626077324151993, 0.17569640278816223, 0.1856447458267212, 0.11674469709396362, 0.030904769897460938, -0.45744210481643677, 0.05549149215221405, -0.30087530612945557, 0.17542539536952972, 0.4310324788093567, -0.22186601161956787, 0.11554226279258728, -0.053414471447467804, 0.2771424651145935, -0.17125540971755981, -0.16082654893398285, -0.38553884625434875, -0.0767778679728508, 0.07387901842594147, -0.07630976289510727, -0.038472916930913925, 0.016864832490682602, -0.06550564616918564, -0.14149098098278046, -0.05364843085408211, 0.12241307646036148, -0.09864722192287445, -0.0447298102080822, 0.5866774320602417, 0.09552441537380219, -0.028179997578263283, 0.3729470372200012, -0.05319974571466446, 0.024678463116288185, 0.16889628767967224, -0.10141544789075851, 0.1502833068370819, -0.09219884872436523, -0.14580461382865906, -0.0007069801795296371, 0.0461675189435482, 0.03179571405053139, 0.19708076119422913, 0.22887061536312103, -0.29063302278518677, -0.09219688177108765, 0.03928997740149498, 0.468225359916687, -0.03932298719882965, -0.07853282988071442, 0.04753349348902702, 0.3697402775287628, 0.31865665316581726, -0.4926089644432068, 0.05498948320746422, 0.24157454073429108, -0.07947796583175659, 0.09626220166683197, 0.14266900718212128, 0.07074224203824997, 0.09159702062606812, 0.007359983865171671, 0.11958184838294983, 0.2814493179321289, -0.34911689162254333, 0.08573874086141586, 0.2375694066286087, -0.21612612903118134, -0.1672634780406952, 0.12473747134208679, 0.24518531560897827, 0.3118290305137634, 0.615081787109375, -0.041234079748392105, 0.1317596286535263, 0.12350184470415115, 0.07186578214168549, 0.17530380189418793, -0.09616557508707047, 0.2723701596260071, 0.149765282869339, 0.16681131720542908, 0.05267556384205818, 0.14359065890312195, 0.3294472396373749, -0.21386565268039703, -0.017915993928909302, -0.07956161350011826, 0.6706985235214233, -0.13449282944202423, -0.15356114506721497, -0.2235080897808075, 0.061038799583911896, 0.17492105066776276, -0.14382338523864746, 0.13363708555698395, -0.030589748173952103, 0.09055633842945099, 0.13582463562488556, 0.05135107412934303, -0.43245822191238403, 0.316131055355072, -0.1809592843055725, 0.1757669746875763, -0.07756045460700989, 0.04363981634378433, -0.03434458374977112, -0.020154044032096863, -0.15338034927845, 0.3481296896934509, 0.45250311493873596, 0.1537196934223175, -0.29762002825737, -0.04021584242582321, -0.17110343277454376, -0.21586617827415466, -0.16859334707260132, 0.3800276219844818, 0.18222974240779877, 0.480460524559021, 0.11640714854001999, 0.21835723519325256, -0.20054438710212708, -0.12312658131122589, 0.17831528186798096, 0.09049362689256668, -0.15553946793079376, 0.5753052830696106, 0.05319206789135933, -0.34241926670074463, -0.1728658825159073, 0.038335882127285004, -0.41502100229263306, 0.0661645233631134, 0.2942945957183838, 0.09532636404037476, 0.18881642818450928, -0.33355873823165894, 0.17457813024520874, 0.15636253356933594, 0.3946993052959442, 0.3342244327068329, 0.2382938116788864, 0.187015101313591, -0.18417322635650635, -0.4572906494140625, 0.07888540625572205, -0.07890499383211136, -0.2765887677669525, -0.0074921054765582085, 0.30770859122276306, -0.009180492721498013, 0.21073123812675476, -0.08312901854515076, -0.0004258490807842463, -0.06177881360054016, -0.42953819036483765, -0.23380136489868164, 0.03626888245344162, -0.10008963197469711, -0.05565473809838295, 0.1671198606491089, -0.2100697159767151, -0.11620195209980011, 0.027012275531888008, 0.17699547111988068, -0.1185852438211441, 0.17666542530059814, -0.009818949736654758, -0.051238786429166794, -0.13827399909496307, 0.2984737753868103, 0.1597546488046646, -0.1168610230088234, -0.12584766745567322, 0.1876400113105774, -0.3609212636947632, -0.37444964051246643, 0.10192679613828659, -0.07300523668527603, 0.3420502543449402, -0.16214832663536072, 0.1303638517856598, -0.1603466421365738, 0.15038339793682098, 0.04803203418850899, 0.021119413897395134, -0.2224085032939911, 0.1399751603603363, 0.17459912598133087, -0.13141897320747375, -0.14323590695858002, 0.11306402087211609, -0.10719522088766098, 0.05693589895963669, -0.2670483887195587, -0.31809768080711365, 0.46158939599990845, -0.3228892385959625, -0.44821202754974365, -0.05765713378787041, 0.19112060964107513, -0.06515767425298691, -0.34523651003837585, -0.45517903566360474, 0.138711616396904, 0.25976625084877014, 0.07053233683109283, -0.07926597446203232, 0.4142346680164337, -0.2969500422477722, 0.036684632301330566, 0.17784255743026733, 0.4717925190925598, 0.20324227213859558, -0.1371380090713501, 0.07964694499969482, -0.1601913571357727 ]
https://github.com/huggingface/datasets/issues/414
from_dict delete?
> `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though. > Right now if you want to use `from_dict` you have to install the package from the master branch > > ``` > pip install git+https://github.com/huggingface/nlp.git > ``` OK, thank you.
AttributeError: type object 'Dataset' has no attribute 'from_dict'
62
from_dict delete? AttributeError: type object 'Dataset' has no attribute 'from_dict' > `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though. > Right now if you want to use `from_dict` you have to install the package from the master branch > > ``` > pip install git+https://github.com/huggingface/nlp.git > ``` OK, thank you.
[ -0.07471884042024612, -0.2516207993030548, -0.11553441733121872, 0.08792225271463394, 0.1837770938873291, -0.17871133983135223, 0.09087181836366653, 0.29981714487075806, 0.03160585090517998, 0.13190852105617523, 0.0510089173913002, 0.5649479031562805, -0.10443390905857086, 0.29663556814193726, -0.0471775159239769, -0.22445321083068848, -0.04263409599661827, 0.2933092415332794, -0.33045247197151184, -0.05172516778111458, 0.04046817496418953, 0.3629773259162903, -0.1296854019165039, 0.27413421869277954, 0.1252753585577011, -0.1901751458644867, 0.001523885759525001, 0.15268784761428833, -0.13405928015708923, -0.31761229038238525, 0.2797695994377136, 0.02680508978664875, -0.10140132158994675, 0.17617332935333252, -0.00009855224197963253, -0.07370053976774216, 0.3171118497848511, -0.07455094158649445, -0.2624134421348572, -0.3476296663284302, -0.15049098432064056, -0.1589505672454834, 0.29756468534469604, -0.11991001665592194, -0.23881962895393372, 0.13871458172798157, 0.004563384689390659, 0.018631083890795708, 0.3920910358428955, 0.3837103545665741, 0.37491944432258606, 0.12493831664323807, 0.19294866919517517, -0.12141736596822739, 0.1639738827943802, 0.18668363988399506, -0.08073854446411133, -0.08623014390468597, 0.055447787046432495, -0.19009929895401, 0.3049736022949219, 0.2913118004798889, -0.14886236190795898, -0.11170341074466705, 0.19865457713603973, -0.04625105485320091, 0.02240864746272564, -0.15916207432746887, 0.03893793001770973, 0.14282338321208954, 0.3123069405555725, -0.3866826891899109, -0.1058306097984314, -0.27208852767944336, -0.02053663693368435, -0.35800471901893616, 0.011102993972599506, -0.035409923642873764, -0.12744630873203278, 0.14450088143348694, -0.039570413529872894, -0.47928646206855774, -0.21717922389507294, 0.35155540704727173, 0.22641783952713013, 0.03822584077715874, -0.12364064157009125, 0.053236935287714005, 0.23048485815525055, -0.06376122683286667, -0.38694149255752563, 0.2951689064502716, -0.1951301097869873, 0.15866076946258545, -0.04467444121837616, -0.21787329018115997, 0.32639235258102417, -0.06385272741317749, -0.05255717784166336, 0.08250834792852402, 0.00464750686660409, -0.022126704454421997, -0.028121422976255417, 0.25449562072753906, 0.4578900635242462, 0.24757087230682373, 0.393628865480423, 0.22120344638824463, 0.15485166013240814, 0.025081397965550423, -0.08608997613191605, -0.048933155834674835, 0.08430203050374985, 0.03136186674237251, -0.13183371722698212, -0.06858709454536438, 0.281574010848999, -0.11335460841655731, -0.27686917781829834, -0.20642779767513275, 0.12096590548753738, 0.1106281727552414, 0.028262509033083916, 0.3377592861652374, 0.008651873096823692, 0.223196342587471, 0.0360628105700016, 0.15167135000228882, -0.3684810400009155, -0.0670754611492157, -0.23483408987522125, 0.3588406443595886, -0.16952408850193024, -0.4797997772693634, 0.043488454073667526, 0.1753261685371399, 0.3514822721481323, -0.10704582929611206, 0.06402848660945892, 0.21439562737941742, -0.00574298994615674, 0.053101394325494766, 0.09641354531049728, 0.182938814163208, -0.0929335430264473, -0.15608660876750946, 0.2100340574979782, -0.5214312076568604, -0.25219616293907166, 0.12987489998340607, -0.22387181222438812, -0.29875221848487854, -0.4562402069568634, 0.2990596294403076, 0.08990335464477539, -0.2795069217681885, -0.32802850008010864, 0.19722357392311096, 0.13881756365299225, -0.1668088436126709, -0.08274885267019272, -0.14109748601913452, -0.004468535538762808, -0.14802668988704681, -0.02433963306248188, 0.11409392207860947, -0.24220436811447144, -0.17108291387557983, -0.17289458215236664, -0.31476500630378723, 0.2596481740474701, 0.32902243733406067, -0.26284268498420715, 0.22503142058849335, -0.11825039982795715, 0.11638709157705307, 0.4797016978263855, -0.5727298259735107, -0.19210968911647797, 0.2145446240901947, -0.05976623296737671, -0.10255736857652664, -0.17597483098506927, -0.027562132105231285, 0.19420917332172394, -0.10942573845386505, -0.0382942259311676, 0.31945037841796875, 0.18176893889904022, 0.148936465382576, -0.2012801170349121, -0.09793486446142197, -0.009358354844152927, -0.10988114029169083, -0.075539730489254, 0.05227046459913254, 0.15596835315227509, 0.17094279825687408, 0.23741449415683746, -0.08586473017930984, 0.022511297836899757, 0.25468796491622925, 0.4777037799358368, 0.07475621998310089, -0.0862906277179718, -0.43686121702194214, -0.029493819922208786, -0.15399058163166046, -0.1910114735364914, 0.3839290142059326, -0.2584608495235443, -0.12557712197303772, -0.2810032367706299, 0.10698993504047394, -0.19875186681747437, -0.17127573490142822, 0.3102853298187256, 0.03643735125660896, 0.1287696659564972, 0.04469185695052147, -0.3484446704387665, 0.11584662646055222, 0.02924051322042942, 0.029240494593977928, -0.23961769044399261, -0.02240900509059429, -0.36697277426719666, -0.23189760744571686, 0.10109395533800125, 0.45146557688713074, 0.01694091409444809, -0.057009562849998474, 0.029872862622141838, 0.3622139096260071, -0.10761521011590958, 0.060252442955970764, 0.12949512898921967, -0.17585812509059906, 0.06122587248682976, -0.2530985474586487, -0.03316021338105202, 0.05732155591249466, 0.08731331676244736, 0.13285690546035767, -0.08339794725179672, 0.1473473459482193, 0.1943661868572235, -0.04758186638355255, 0.23735947906970978, 0.14586235582828522, 0.3561367988586426, -0.25808000564575195, 0.09342924505472183, -0.3171675503253937, 0.22631439566612244, -0.05594477429986, -0.12032674252986908, -0.17075905203819275, -0.4570820927619934, 0.07283589988946915, 0.6142229437828064, 0.11814568936824799, 0.2027909904718399, 0.11002656072378159, -0.010491061955690384, -0.20334471762180328, -0.04652019217610359, 0.1275082379579544, 0.1598941534757614, 0.23933617770671844, -0.14421018958091736, 0.0402488112449646, -0.016073310747742653, -0.0424356646835804, 0.3344413638114929, -0.09530014544725418, 0.14906568825244904, 0.09819721430540085, 0.12956562638282776, -0.10514751821756363, -0.45266085863113403, -0.102985680103302, -0.2659776508808136, 0.308674693107605, -0.13000056147575378, 0.21370163559913635, -0.34136825799942017, -0.5405294895172119, 0.008028561249375343, -0.2147611379623413, -0.3553178906440735, -0.3191389739513397, 0.2329048216342926, 0.07947508990764618, -0.11584682762622833, 0.18320803344249725, 0.15573400259017944, 0.06989473104476929, 0.03689778968691826, -0.08813045173883438, -0.050644710659980774, -0.3942843973636627, -0.303312212228775, 0.2088559865951538, -0.0302756167948246, 0.21846473217010498, 0.3349040746688843, -0.09231413155794144, -0.1171325296163559, -0.07300427556037903, -0.4271922707557678, 0.11691910773515701, -0.21328634023666382, 0.4308359920978546, 0.4775029420852661, 0.10045239329338074, -0.16772226989269257, -0.124969482421875, 0.2748683989048004, -0.5327469110488892, -0.25405362248420715, 0.15805119276046753, -0.01548893190920353, -0.004886025562882423, -0.2759031653404236, -0.2948983907699585, -0.24449987709522247, -0.4642466902732849, 0.30066585540771484, 0.24625055491924286, 0.22394968569278717, 0.3138277530670166, -0.09871488809585571, 0.16146020591259003, -0.1947261542081833, 0.42157748341560364, -0.19357621669769287, -0.19165372848510742, -0.04046809673309326, -0.2186053991317749, -0.4552699029445648, 0.02045508101582527, 0.13776221871376038, 0.35009798407554626, -0.28968390822410583, -0.3144928216934204, -0.22519327700138092, 0.05802909657359123, 0.08702868223190308, -0.0012442640727385879, 0.188211128115654, 0.24216565489768982, 0.22061778604984283, -0.21639911830425262, -0.2033872902393341, -0.10301259905099869, 0.2228534072637558, 0.20191021263599396, 0.10728447139263153, -0.042982615530490875, 0.20355193316936493, 0.1423746794462204, 0.385221391916275, -0.03430163860321045, 0.1985265165567398, 0.31969696283340454, -0.06754816323518753, 0.4661504030227661, -0.15504804253578186, -0.4070020616054535, -0.009127608500421047, 0.17550277709960938, 0.10234642773866653, 0.19163039326667786, -0.007786387111991644, -0.24192111194133759, -0.2517980635166168, -0.004700863268226385, -0.22840766608715057, -0.230915367603302, 0.0008256622822955251, -0.23847442865371704, 0.0005100948037579656, 0.06528889387845993, -0.11433988809585571, -0.22598733007907867, -0.10495426505804062, -0.005071582272648811, -0.10006227344274521, -0.09127015620470047, -0.14909833669662476, -0.516543447971344, -0.35559412837028503, -0.4211887717247009, 0.21034835278987885, -0.06529214233160019, 0.14191247522830963, -0.14394988119602203, -0.17875172197818756, 0.1019725650548935, -0.11253674328327179, 0.3513398766517639, 0.030824068933725357, -0.1319410800933838, 0.15104886889457703, 0.05324913561344147, -0.3147053122520447, 0.22325074672698975, -0.2976682782173157, 0.19938220083713531, 0.3850407302379608, 0.04791492596268654, -0.4532948136329651, -0.2799515426158905, 0.28575679659843445, -0.028510112315416336, -0.12671847641468048, 0.1414327621459961, -0.2920064330101013, -0.3294553756713867, -0.5601938366889954, -0.11468397080898285, 0.10400301218032837, 0.3459019660949707, 0.1609199196100235, 0.14142677187919617, 0.027394521981477737, -0.14015580713748932, 0.037915825843811035, -0.009029406122863293, 0.26661521196365356, -0.20803982019424438, -0.37483325600624084, -0.24921181797981262, 0.263688862323761, 0.018472157418727875, 0.40482088923454285, -0.12580998241901398, -0.22298218309879303, -0.3117397427558899, -0.0307583287358284, 0.4273918867111206, -0.012826860882341862, 0.10023988783359528, 0.25104373693466187, -0.12360021471977234, 0.2783621847629547, 0.13141611218452454, 0.03242814913392067, 0.2652907371520996, -0.018458660691976547, 0.04341879487037659, -0.21531878411769867, 0.13762018084526062, -0.07958437502384186, 0.006577976513653994, 0.03428030386567116, 0.10681219398975372, -0.30754366517066956, 0.34470805525779724, -0.1606527864933014, 0.8757858276367188, 0.15663717687129974, 0.14821916818618774, 0.14430241286754608, 0.00600949302315712, 0.623741865158081, 0.15749266743659973, 0.30934062600135803, -0.23598259687423706, 0.21988928318023682, 0.04534398019313812, -0.023352868854999542, 0.21134765446186066, 0.09390153735876083, -0.2781500220298767, 0.34159380197525024, -0.011055799201130867, 0.012548219412565231, -0.14420048892498016, 0.20611447095870972, 0.08482694625854492, -0.019567100331187248, -0.4315611720085144, 0.23686552047729492, -0.10039661824703217, 0.14284485578536987, -0.06653925031423569, -0.21863935887813568, 0.1212841272354126, -0.27252182364463806, -0.18702228367328644, 0.14110393822193146, 0.04773508384823799, 0.29285287857055664, 0.26387694478034973, -0.32320842146873474, -0.10180375725030899, 0.22944319248199463, 0.13220888376235962, 0.021500198170542717, -0.16221770644187927, 0.16849346458911896, -0.16761818528175354, -0.1405913084745407, 0.06385474652051926, 0.36723002791404724, 0.457896888256073, -0.32152751088142395, -0.30999019742012024, 0.13298635184764862, -0.012823302298784256, -0.37767332792282104, 0.17065611481666565, 0.017044564709067345, -0.04798957705497742, -0.017922839149832726, -0.09113462269306183, 0.10278729349374771, -0.017275653779506683, -0.2291882038116455, 0.24809855222702026, 0.293790340423584, -0.30369821190834045, 0.11946496367454529, 0.0586555190384388, -0.1238427609205246, -0.04391655698418617, -0.009820852428674698, 0.13029715418815613, 0.0020783226937055588, 0.4763109087944031, 0.13539394736289978, -0.2008342444896698, -0.4135892987251282, -0.25539177656173706, -0.1405200958251953, -0.2420744001865387, 0.3765791952610016, 0.2040150761604309, -0.16968262195587158, 0.14315490424633026, 0.44422855973243713, -0.11122074723243713, 0.05744241550564766, -0.19938167929649353, -0.24843354523181915, -0.2025040090084076, 0.18928222358226776, -0.06555396318435669, 0.0782250165939331, 0.1425437480211258, 0.19862866401672363, 0.15949128568172455, 0.060059282928705215, -0.46677008271217346, 0.048420295119285583, -0.34326833486557007, 0.18156547844409943, 0.44372299313545227, -0.20990027487277985, 0.10122223943471909, -0.023576246574521065, 0.2671225965023041, -0.1746082901954651, -0.15389694273471832, -0.3755474388599396, -0.07323622703552246, 0.07313407212495804, -0.07964476943016052, -0.028262197971343994, 0.029347071424126625, -0.06647077947854996, -0.13793571293354034, -0.023247497156262398, 0.0933142751455307, -0.10771367698907852, -0.0335230715572834, 0.593474805355072, 0.09096593409776688, -0.007124651689082384, 0.32246023416519165, -0.06067638099193573, 0.04158730059862137, 0.2016904056072235, -0.09308528155088425, 0.11570997536182404, -0.08816367387771606, -0.15593069791793823, -0.0023579378612339497, 0.06224747747182846, 0.01998046599328518, 0.1833563596010208, 0.23834475874900818, -0.28744903206825256, -0.08945563435554504, 0.046966902911663055, 0.49649274349212646, -0.05945272743701935, -0.10098467767238617, 0.07099901139736176, 0.38264352083206177, 0.3303329050540924, -0.5057239532470703, 0.08314397931098938, 0.2515084743499756, -0.118150494992733, 0.05891759321093559, 0.13038066029548645, 0.05472838506102562, 0.09083317965269089, 0.028644602745771408, 0.13211271166801453, 0.24796155095100403, -0.3675572872161865, 0.0719403624534607, 0.20216986536979675, -0.26961931586265564, -0.1480327546596527, 0.1263960301876068, 0.23489369451999664, 0.3072803318500519, 0.6015734076499939, -0.030652876943349838, 0.1460765153169632, 0.13628631830215454, 0.09025616943836212, 0.18959932029247284, -0.0361282043159008, 0.2644061744213104, 0.17843273282051086, 0.17733462154865265, 0.043084822595119476, 0.11738575249910355, 0.3615168035030365, -0.19471989572048187, -0.050371550023555756, -0.06622679531574249, 0.673032283782959, -0.15137293934822083, -0.13842450082302094, -0.22444121539592743, 0.02976621501147747, 0.1638583093881607, -0.1666559875011444, 0.11552884429693222, -0.026572000235319138, 0.11673115193843842, 0.1477528065443039, 0.040444858372211456, -0.4394564926624298, 0.2877224087715149, -0.16176296770572662, 0.19609396159648895, -0.09428898990154266, 0.04436840862035751, -0.02719057910144329, -0.018114302307367325, -0.16530689597129822, 0.35921818017959595, 0.4551660716533661, 0.16749988496303558, -0.29158371686935425, -0.053451504558324814, -0.13975360989570618, -0.21164670586585999, -0.1342042088508606, 0.4058215022087097, 0.2126341164112091, 0.4610157310962677, 0.13472814857959747, 0.2065756618976593, -0.19261141121387482, -0.10799340903759003, 0.19834306836128235, 0.08532970398664474, -0.1661791354417801, 0.553600013256073, 0.030668014660477638, -0.36052146553993225, -0.2123488187789917, 0.03889710083603859, -0.42579612135887146, 0.08372731506824493, 0.296817809343338, 0.06731751561164856, 0.20453062653541565, -0.3567802906036377, 0.17730587720870972, 0.17809851467609406, 0.4015875458717346, 0.3509911596775055, 0.25502124428749084, 0.1661323457956314, -0.18104958534240723, -0.4496574401855469, 0.084170401096344, -0.050788480788469315, -0.24189892411231995, -0.020643020048737526, 0.3006989657878876, 0.0002586064802017063, 0.22121940553188324, -0.0865425243973732, -0.008487093262374401, -0.044657617807388306, -0.39146581292152405, -0.2486388236284256, 0.046829868108034134, -0.08836839348077774, -0.030839452520012856, 0.17171411216259003, -0.18246550858020782, -0.12353059649467468, 0.027810262516140938, 0.16627755761146545, -0.10784655064344406, 0.19057464599609375, -0.007086510304361582, -0.0322079174220562, -0.17308662831783295, 0.2991682291030884, 0.1324916034936905, -0.11775768548250198, -0.1633814424276352, 0.19627317786216736, -0.36967146396636963, -0.34760093688964844, 0.10612078011035919, -0.04620886221528053, 0.3358205258846283, -0.1556411236524582, 0.13643042743206024, -0.16302135586738586, 0.13356144726276398, 0.035646721720695496, 0.033246126025915146, -0.25348371267318726, 0.12121517956256866, 0.17456482350826263, -0.16330909729003906, -0.12083239108324051, 0.12732452154159546, -0.11318668723106384, 0.05017857253551483, -0.29026171565055847, -0.307534396648407, 0.4495241045951843, -0.33356866240501404, -0.4592614471912384, -0.060097627341747284, 0.20767194032669067, -0.0630888044834137, -0.37522435188293457, -0.4853551387786865, 0.14199364185333252, 0.24108445644378662, 0.08443769812583923, -0.07687535881996155, 0.4214232563972473, -0.31274423003196716, 0.06322802603244781, 0.18300221860408783, 0.49753743410110474, 0.2221592515707016, -0.09712040424346924, 0.08856919407844543, -0.16333593428134918 ]
https://github.com/huggingface/datasets/issues/413
Is there a way to download only NQ dev?
Unfortunately it's not possible to download only the dev set of NQ. I think we could add a way to download only the test set by adding a custom configuration to the processing script though.
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)? As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data. I tried ``` dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner") ``` But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading? Thanks!
35
Is there a way to download only NQ dev? Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)? As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data. I tried ``` dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner") ``` But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading? Thanks! Unfortunately it's not possible to download only the dev set of NQ. I think we could add a way to download only the test set by adding a custom configuration to the processing script though.
[ -0.4314171373844147, 0.17720851302146912, -0.1129719540476799, 0.11462254077196121, -0.10702317953109741, -0.03472711518406868, -0.2576388120651245, 0.7160261869430542, -0.0329572930932045, 0.31452247500419617, -0.2831304669380188, 0.015157124027609825, -0.22056414186954498, 0.60923832654953, 0.47449344396591187, -0.09877599030733109, -0.11577772349119186, 0.4419940412044525, -0.07996701449155807, 0.05189847946166992, -0.17389652132987976, 0.23757480084896088, -0.051189616322517395, 0.1008472591638565, 0.3044528067111969, -0.28771719336509705, 0.15913692116737366, -0.030611971393227577, -0.34076592326164246, -0.2889772057533264, 0.022300897166132927, 0.21527548134326935, 0.17467263340950012, -0.3234871029853821, -0.00012473230890464038, -0.0638318732380867, -0.017854727804660797, -0.1316623091697693, -0.13181892037391663, 0.1239350363612175, -0.10693801939487457, -0.13386502861976624, 0.09317225962877274, 0.011332139372825623, -0.06970725953578949, -0.2781606614589691, 0.2135225236415863, -0.08610762655735016, 0.3582041263580322, 0.44547396898269653, 0.02041873149573803, 0.14054282009601593, -0.25294795632362366, 0.15268836915493011, -0.06445380300283432, -0.282286673784256, -0.0892290472984314, 0.01564624346792698, 0.1498262882232666, 0.13543178141117096, 0.12198860198259354, 0.14073798060417175, 0.21573171019554138, 0.20663826167583466, 0.0054099466651678085, -0.017190171405673027, 0.34922030568122864, -0.723776638507843, -0.07929328829050064, 0.7125211954116821, 0.12854966521263123, 0.16236750781536102, -0.17262189090251923, -0.17672200500965118, 0.1247086375951767, -0.49164626002311707, -0.042381446808576584, 0.5084106922149658, -0.5656160116195679, -0.002775896806269884, -0.6391004323959351, -0.5820968747138977, -0.17276494204998016, 0.11604619771242142, -0.05375545844435692, -0.03376665711402893, 0.08018030226230621, 0.05383425951004028, 0.28818339109420776, 0.19551077485084534, 0.09658519178628922, 0.12498166412115097, -0.15016959607601166, 0.13461636006832123, -0.2485608607530594, -0.4248795509338379, -0.29505282640457153, -0.15883325040340424, 0.29996252059936523, 0.045327894389629364, -0.07103230059146881, 0.02866332232952118, 0.07237016409635544, -0.10545535385608673, 0.40892139077186584, 0.10765423625707626, 0.28415510058403015, 0.23177243769168854, 0.050468552857637405, 0.021155690774321556, 0.08028373122215271, 0.16520985960960388, -0.007686336059123278, -0.07589161396026611, -0.6195669770240784, 0.01241490337997675, -0.01804143376648426, -0.43164539337158203, 0.004518431611359119, -0.17535512149333954, -0.15915225446224213, -0.11186062544584274, -0.1868520826101303, 0.19900627434253693, 0.04097973555326462, 0.07662416994571686, -0.29712578654289246, 0.2975175678730011, -0.27824610471725464, -0.8463838696479797, -0.15886135399341583, 0.012007016688585281, 0.04532225430011749, 0.13913066685199738, 0.31892430782318115, 0.16165655851364136, 0.21130937337875366, -0.263846218585968, 0.0016601922689005733, -0.018912579864263535, 0.39867106080055237, -0.007411506958305836, 0.030292877927422523, 0.3964289426803589, 0.09988334774971008, 0.15149594843387604, -0.13892248272895813, 0.3128344416618347, -0.4387756288051605, 0.22376884520053864, -0.031921252608299255, -0.3537508249282837, 0.23787209391593933, 0.04447392001748085, -0.08159909397363663, 0.09028540551662445, -0.06884226202964783, 0.277944415807724, -0.05112478509545326, -0.1465732753276825, -0.09530139714479446, -0.18454612791538239, -0.25400036573410034, -0.05106476694345474, 0.3700127899646759, -0.0547666922211647, -0.3172939121723175, -0.21801938116550446, -0.05037643015384674, -0.18735605478286743, 0.2057102471590042, 0.3892887532711029, -0.19530895352363586, 0.2749294340610504, -0.12825588881969452, 0.04190445318818092, 0.6039465069770813, 0.06341968476772308, -0.16076786816120148, 0.4452085793018341, -0.0958242267370224, -0.3545052111148834, -0.0886770635843277, 0.2540346086025238, 0.1982436627149582, -0.010619208216667175, -0.33533310890197754, 0.7256407141685486, -0.18324244022369385, -0.24234284460544586, -0.07946834713220596, -0.5672931671142578, 0.2943878471851349, 0.10721420496702194, 0.2334669679403305, 0.1547669768333435, -0.1318538635969162, -0.16444571316242218, 0.22800888121128082, 0.04814518615603447, -0.021894946694374084, 0.01956287957727909, -0.07710900902748108, -0.44347643852233887, -0.1948777735233307, -0.1264064460992813, -0.42739567160606384, 0.21920794248580933, -0.668682336807251, -0.27271100878715515, 0.4337012469768524, -0.07416366040706635, -0.08565381169319153, -0.21609480679035187, 0.22764551639556885, -0.3765789866447449, -0.08974535763263702, -0.08976216614246368, 0.2328127771615982, 0.1345532238483429, -0.3531807065010071, -0.07757339626550674, -0.08448049426078796, 0.12008923292160034, -0.14855755865573883, -0.18855223059654236, 0.19476071000099182, 0.16355489194393158, 0.3136906325817108, -0.06820249557495117, -0.14226233959197998, 0.029350921511650085, 0.1174347773194313, 0.1840600222349167, -0.06535093486309052, 0.06793106347322464, 0.19010786712169647, -0.0035385508090257645, 0.02620016597211361, -0.06363006681203842, -0.08514509350061417, 0.07056166231632233, -0.2034725546836853, 0.0601697713136673, -0.17326189577579498, 0.489003449678421, -0.2501840889453888, 0.23876160383224487, -0.02435820922255516, 0.07120830565690994, 0.11508520692586899, -0.19531576335430145, 0.042203571647405624, -0.10124734044075012, 0.2621367573738098, 0.07949253916740417, 0.08746650815010071, -0.07810498028993607, -0.13923028111457825, 0.0596773736178875, 0.3397408127784729, -0.19958944618701935, -0.1290840059518814, -0.09711416065692902, -0.06547144800424576, -0.10624653100967407, 0.20735742151737213, 0.35623008012771606, 0.29537686705589294, 0.1393582969903946, 0.5149038434028625, 0.07710570096969604, 0.14949747920036316, -0.2519961893558502, 0.1438816487789154, 0.028694327920675278, -0.20335090160369873, -0.06113377586007118, -0.09691610187292099, -0.13299700617790222, -0.2284996211528778, 0.5298208594322205, 0.18843667209148407, -0.04378392919898033, -0.07212843000888824, -0.10562219470739365, -0.4070436358451843, -0.13698923587799072, -0.0033700186759233475, -0.021558720618486404, -0.15911509096622467, -0.19973939657211304, 0.39006444811820984, -0.1750444769859314, -0.224631205201149, 0.17171582579612732, 0.13624000549316406, 0.46257463097572327, -0.15687429904937744, -0.2329501211643219, 0.16392098367214203, 0.04327751696109772, -0.0902826339006424, 0.08864011615514755, 0.08599037677049637, 0.39790552854537964, 0.45000824332237244, -0.10037322342395782, -0.19565638899803162, 0.04053055867552757, 0.08623946458101273, 0.06506282836198807, 0.2300632745027542, 0.48143720626831055, -0.022495778277516365, 0.41138291358947754, -0.01276068389415741, 0.1447870135307312, -0.39280053973197937, -0.11072281748056412, -0.2695806622505188, -0.10978692770004272, 0.299933522939682, 0.38560327887535095, -0.20250873267650604, -0.7505494952201843, -0.2044205665588379, -0.26555755734443665, 0.19112995266914368, 0.007808924652636051, 0.21789580583572388, -0.13020339608192444, -0.22375577688217163, -0.07237609475851059, -0.41912123560905457, -0.029988933354616165, -0.054657142609357834, -0.027256358414888382, 0.2050243616104126, -0.17966459691524506, -0.10892616212368011, 0.11905381083488464, -0.005497293081134558, 0.3167382776737213, 0.22340257465839386, -0.6580185294151306, 0.3405665159225464, -0.041154954582452774, 0.1739109605550766, -0.04162892326712608, -0.1339779794216156, 0.4145449995994568, -0.4879591166973114, 0.03442079573869705, 0.21193772554397583, 0.21599261462688446, 0.08939842879772186, 0.09186262637376785, 0.1538553684949875, -0.0929376557469368, 0.32253456115722656, 0.050383973866701126, 0.9196416139602661, 0.0844697654247284, 0.2862994074821472, -0.07740683853626251, 0.028765160590410233, 0.2585725784301758, -0.10738436877727509, 0.31191739439964294, 0.2791599631309509, 0.19783826172351837, -0.21465978026390076, 0.2588626742362976, 0.024154946208000183, -0.1635821908712387, -0.16063828766345978, -0.04817391186952591, -0.08503244072198868, -0.15819083154201508, 0.14324863255023956, -0.04314279928803444, 0.1371500939130783, 0.2363632172346115, 0.10825681686401367, 0.2843382656574249, -0.19661682844161987, -0.07217322289943695, -0.08450433611869812, 0.2468004822731018, 0.09812755137681961, -0.5428899526596069, -0.08517476916313171, -0.24777230620384216, 0.005731459707021713, -0.10686302185058594, 0.18003195524215698, -0.14529986679553986, -0.05857269838452339, 0.17858155071735382, 0.10148274898529053, 0.6295839548110962, 0.00483053270727396, -0.13565345108509064, -0.029293294996023178, -0.3415817618370056, -0.11980172991752625, -0.04772695526480675, -0.050790321081876755, -0.22336001694202423, 0.1544114351272583, -0.16493098437786102, -0.24472953379154205, 0.028370482847094536, 0.07344946265220642, 0.4258042871952057, -0.262076735496521, 0.16350771486759186, 0.0626242384314537, 0.07560082525014877, -0.1320590227842331, 0.305074542760849, -0.056881438940763474, -0.015106003731489182, -0.2590179741382599, -0.12739445269107819, -0.2318468987941742, -0.10116325318813324, 0.20347324013710022, 0.14483335614204407, 0.14290179312229156, 0.05126598849892616, 0.2887454032897949, 0.06865376234054565, -0.25308120250701904, -0.3048669099807739, 0.14920149743556976, 0.06736061722040176, 0.04740897938609123, -0.11935200542211533, 0.007832358591258526, 0.2520500421524048, 0.375117689371109, -0.18276575207710266, -0.23672807216644287, 0.027421990409493446, 0.05505242571234703, -0.00906050018966198, 0.4180622398853302, -0.018604477867484093, -0.3834148645401001, -0.14813607931137085, -0.1736944019794464, 0.3704396188259125, 0.22039195895195007, -0.20183706283569336, 0.24060146510601044, 0.026436103507876396, 0.02787238359451294, -0.18643571436405182, 0.26395049691200256, 0.8607453107833862, -0.2654825448989868, 0.2149343490600586, 0.16462922096252441, -0.3632868230342865, 0.8256195783615112, -0.33492791652679443, 0.1162390187382698, -0.19724112749099731, -0.15315718948841095, -0.10656306892633438, -0.2051382064819336, -0.11022260785102844, 0.2792847454547882, 0.016419844701886177, 0.4865502715110779, 0.11760997772216797, -0.07186070084571838, 0.054738130420446396, 0.0452394112944603, 0.14440490305423737, 0.0758986845612526, 0.017245469614863396, -0.04167141020298004, -0.3121596574783325, 0.10529514402151108, -0.04298363998532295, -0.030220096930861473, 0.16884255409240723, 0.008628002367913723, -0.01953439973294735, 0.08527147024869919, -0.1231604814529419, -0.23282025754451752, -0.17847956717014313, -0.16006672382354736, -0.09355751425027847, 0.6345370411872864, 0.15036122500896454, 0.20266592502593994, -0.34315255284309387, 0.223953977227211, -0.11671328544616699, 0.006588911637663841, 0.13941796123981476, 0.13154520094394684, -0.14878998696804047, -0.253619521856308, 0.07746119797229767, 0.14076071977615356, -0.18527279794216156, 0.13818317651748657, -0.3526144325733185, 0.2445799708366394, 0.14566832780838013, -0.17888136208057404, -0.1581055074930191, -0.05000515654683113, 0.271668016910553, -0.011950352229177952, 0.029389170929789543, 0.11757758259773254, -0.26363900303840637, 0.06586126238107681, 0.17052561044692993, -0.32410937547683716, -0.11114410310983658, 0.1945013403892517, 0.4288100004196167, -0.17000000178813934, 0.3327626883983612, -0.14090830087661743, 0.013646591454744339, -0.30635368824005127, -0.01721489243209362, 0.002265722258016467, -0.35333144664764404, 0.20714499056339264, -0.14681288599967957, -0.17268972098827362, -0.07956252247095108, 0.2791502773761749, -0.020724840462207794, -0.13074257969856262, 0.0704074427485466, -0.19949185848236084, -0.03294447809457779, 0.21636302769184113, -0.3628818988800049, 0.37883177399635315, 0.135470449924469, -0.2997676730155945, -0.16346676647663116, 0.6286061406135559, -0.10366853326559067, 0.03220057114958763, -0.09443677961826324, 0.25112420320510864, -0.3191686272621155, 0.2514476776123047, 0.03286747634410858, 0.10788765549659729, -0.1501198410987854, -0.054022811353206635, -0.30747172236442566, -0.07368293404579163, -0.020495934411883354, 0.19990094006061554, -0.05620470270514488, 0.1895473301410675, 0.3652932345867157, 0.012428082525730133, -0.15790370106697083, 0.09461482614278793, 0.08299048990011215, -0.4526720941066742, 0.24689191579818726, 0.21114937961101532, 0.5735397934913635, 0.12588545680046082, -0.5383158922195435, 0.43974852561950684, -0.17805752158164978, 0.4297502338886261, -0.031020529568195343, 0.23638202250003815, 0.0711548924446106, -0.20824050903320312, -0.40421536564826965, -0.14882884919643402, 0.27789586782455444, -0.05593045428395271, -0.13062413036823273, 0.11222939193248749, -0.001071555190719664, -0.3463709354400635, 0.13916677236557007, 0.7270386815071106, -0.1468432992696762, 0.08611414581537247, 0.32280874252319336, 0.07822909206151962, -0.048498015850782394, -0.013145700097084045, 0.20043596625328064, -0.035687003284692764, -0.24991001188755035, 0.335294246673584, 0.06424186378717422, -0.2685917615890503, 0.416290283203125, -0.04604269936680794, -0.1537012904882431, -0.19836397469043732, 0.016140319406986237, 0.5277784466743469, -0.2210378646850586, -0.27661535143852234, -0.1627860814332962, 0.10337228327989578, 0.040464311838150024, 0.20246076583862305, -0.28555405139923096, 0.2845877707004547, 0.4057113826274872, 0.19137756526470184, 0.03367353975772858, -0.14733950793743134, -0.32884421944618225, 0.4491601288318634, 0.11614260822534561, 0.0889778882265091, -0.020723961293697357, 0.27008309960365295, 0.141474187374115, -0.29815545678138733, -0.3012728989124298, 0.21447402238845825, 0.20347176492214203, -0.02856096811592579, -0.25577256083488464, -0.007110552862286568, -0.12210848927497864, 0.3441331684589386, -0.0058768270537257195, -0.4594326317310333, -0.08456089347600937, 0.29824575781822205, -0.182153582572937, -0.0693448930978775, 0.3256303668022156, -0.03258475288748741, -0.12844376266002655, -0.2529570162296295, 0.16987282037734985, -0.17499977350234985, 0.14046578109264374, 0.4270240068435669, 0.015474720858037472, -0.23075775802135468, -0.12067084014415741, -0.418661504983902, -0.16680273413658142, 0.3144172132015228, 0.16809900104999542, -0.15498121082782745, 0.1549416333436966, 0.21399518847465515, 0.5466290712356567, 0.40485912561416626, -0.014750247821211815, 0.04288860410451889, 0.17103751003742218, 0.08916285634040833, 0.18247635662555695, -0.40492746233940125, 0.44964924454689026, 0.22695636749267578, 0.20727485418319702, -0.12108591198921204, -0.054149284958839417, -0.2880175709724426, 0.0611569918692112, -0.3377895653247833, -0.2357199788093567, 0.040466755628585815, 0.19493167102336884, -0.0027503827586770058, -0.5021932125091553, 0.5036775469779968, 0.04890676960349083, 0.26145684719085693, -0.31238409876823425, -0.15677431225776672, -0.2423515021800995, -0.03384269028902054, -0.09236147254705429, 0.1479976773262024, 0.05213921144604683, 0.25733450055122375, 0.09680385887622833, 0.5066360235214233, -0.43599453568458557, 0.2668403089046478, -0.3112766742706299, 0.29509103298187256, -0.2862004041671753, -0.12776629626750946, -0.3360530436038971, 0.4263559579849243, 0.00009566543303662911, -0.21760234236717224, 0.41320109367370605, -0.322846919298172, -0.27088817954063416, 0.6675409078598022, -0.1453433632850647, 0.374916672706604, 0.2538483738899231, 0.29591965675354004, 0.2553868889808655, 0.18319305777549744, 0.0493684746325016, -0.10622993111610413, -0.09900469332933426, 0.06721960008144379, -0.36489203572273254, -0.09098584949970245, -0.04939330741763115, 0.13065235316753387, -0.2727123200893402, 0.5207658410072327, 0.013438006862998009, 0.17826992273330688, -0.06946730613708496, 0.3151211738586426, 0.12133972346782684, -0.23953677713871002, 0.06848131865262985, 0.35222312808036804, 0.4145168364048004, 0.33705663681030273, -0.24789965152740479, -0.26403334736824036, -0.2773192226886749, 0.08656572550535202, 0.49223417043685913, -0.05289367586374283, 0.08048029989004135, 0.045379746705293655, 0.21912670135498047, 0.30041250586509705, -0.14770425856113434, -0.34658753871917725, -0.020759621635079384, 0.2700823247432709, -0.3474004566669464, 0.010016921907663345, 0.3292180001735687, 0.19285988807678223, -0.2000575214624405, -0.1234651431441307, 0.22325919568538666, 0.24612101912498474, -0.21741212904453278, -0.289390504360199, -0.3939065635204315 ]
https://github.com/huggingface/datasets/issues/413
Is there a way to download only NQ dev?
Ok, got it. I think this could be a valuable feature - especially for large datasets like NQ, but potentially also others. For us, it will in this case make the difference of using the library or keeping the old downloads of the raw dev datasets. However, I don't know if that fits into your plans with the library and can also understand if you don't want to support this.
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)? As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data. I tried ``` dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner") ``` But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading? Thanks!
70
Is there a way to download only NQ dev? Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)? As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data. I tried ``` dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner") ``` But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading? Thanks! Ok, got it. I think this could be a valuable feature - especially for large datasets like NQ, but potentially also others. For us, it will in this case make the difference of using the library or keeping the old downloads of the raw dev datasets. However, I don't know if that fits into your plans with the library and can also understand if you don't want to support this.
[ -0.3837679922580719, 0.21080774068832397, -0.0951717421412468, 0.10442394018173218, -0.09206441789865494, -0.09077106416225433, -0.22576770186424255, 0.6605117321014404, -0.041867855936288834, 0.27955618500709534, -0.3325554430484772, 0.06468399614095688, -0.2607533037662506, 0.5805530548095703, 0.4200989902019501, -0.16128423810005188, -0.11435946822166443, 0.4430699348449707, -0.07253657281398773, 0.03209390118718147, -0.1458451747894287, 0.23554585874080658, -0.0852552279829979, 0.08455419540405273, 0.3158815801143646, -0.2681666612625122, 0.161300927400589, 0.0003767458547372371, -0.4130050539970398, -0.2256508618593216, 0.10464899241924286, 0.2318764179944992, 0.27370715141296387, -0.3151412606239319, -0.0001247977779712528, -0.17675437033176422, -0.04924149066209793, -0.10769732296466827, -0.10483380407094955, 0.029061049222946167, -0.03166249021887779, -0.13450945913791656, 0.14484067261219025, -0.01460850890725851, -0.06617418676614761, -0.2787024974822998, 0.18022213876247406, -0.08779789507389069, 0.2828412353992462, 0.3137023150920868, 0.03475067391991615, 0.057581622153520584, -0.17858104407787323, 0.17442171275615692, 0.04548489674925804, -0.15722784399986267, -0.1496080607175827, 0.07105302065610886, 0.24096304178237915, 0.1739746630191803, 0.13714569807052612, 0.1628844290971756, 0.17115619778633118, 0.14615605771541595, 0.1041327491402626, -0.008416255936026573, 0.2902478277683258, -0.677915632724762, -0.13466720283031464, 0.7349894642829895, 0.27525094151496887, 0.11956468224525452, -0.1453239768743515, -0.17514710128307343, 0.12117011100053787, -0.48585963249206543, -0.10156341642141342, 0.5020638704299927, -0.5056436657905579, 0.00586895365267992, -0.5925874710083008, -0.5954382419586182, -0.22894838452339172, 0.19649915397167206, -0.015453528612852097, -0.0786423310637474, 0.07638183236122131, 0.080805204808712, 0.343953937292099, 0.19328323006629944, 0.15541517734527588, 0.12685994803905487, -0.11997929215431213, 0.1305154711008072, -0.2635025680065155, -0.45428597927093506, -0.31518465280532837, -0.10787823051214218, 0.29481205344200134, 0.10536515712738037, -0.13060617446899414, 0.031169649213552475, 0.030393557623028755, -0.10635921359062195, 0.5197598338127136, 0.047878798097372055, 0.2457873821258545, 0.23746371269226074, 0.12655359506607056, 0.03722814843058586, 0.09753446280956268, 0.12589861452579498, -0.022298214957118034, -0.02199600264430046, -0.6431490182876587, -0.06110677495598793, -0.05613982677459717, -0.4703981578350067, 0.10247671604156494, -0.21259844303131104, -0.184811070561409, -0.07413084805011749, -0.07658234983682632, 0.21191106736660004, 0.03755133971571922, 0.06745593994855881, -0.2454400211572647, 0.28340208530426025, -0.26611360907554626, -0.7744129300117493, -0.12524692714214325, -0.007906335406005383, -0.06795207411050797, 0.061968546360731125, 0.3375358283519745, 0.08440238237380981, 0.14902545511722565, -0.18500232696533203, 0.0073813204653561115, 0.02636818028986454, 0.33355891704559326, -0.01661873608827591, -0.009726415388286114, 0.36127111315727234, 0.003370598889887333, 0.16384117305278778, -0.16325977444648743, 0.25856339931488037, -0.4758757948875427, 0.24903613328933716, -0.09428902715444565, -0.3748091459274292, 0.08776332437992096, 0.024296842515468597, -0.04305587708950043, 0.0558963343501091, -0.08282383531332016, 0.27867865562438965, -0.07650881260633469, -0.23456384241580963, -0.044473182410001755, -0.17472119629383087, -0.2233387976884842, -0.06687553972005844, 0.2855823338031769, -0.0780794695019722, -0.2522699534893036, -0.1871510148048401, -0.07461421936750412, -0.17859317362308502, 0.21087001264095306, 0.3680127263069153, -0.2529713809490204, 0.15839707851409912, -0.1155180111527443, 0.021836716681718826, 0.6580272316932678, 0.07899945974349976, -0.23373925685882568, 0.49083346128463745, -0.052650801837444305, -0.3138028085231781, -0.1015426516532898, 0.35639774799346924, 0.18393968045711517, -0.0589393675327301, -0.3391221761703491, 0.783439576625824, -0.13798029720783234, -0.25033214688301086, -0.07841310650110245, -0.5916567444801331, 0.307452917098999, 0.1783098429441452, 0.22057288885116577, 0.13420160114765167, -0.0495588481426239, -0.12027817964553833, 0.22451551258563995, 0.03003089688718319, 0.01126339565962553, -0.008810988627374172, 0.012379028834402561, -0.38180962204933167, -0.1711745262145996, -0.15303531289100647, -0.44596800208091736, 0.18465453386306763, -0.6536512970924377, -0.1945621371269226, 0.4189761281013489, -0.0865711197257042, 0.0073977927677333355, -0.23410025238990784, 0.22031265497207642, -0.41218656301498413, -0.11986467242240906, -0.17909717559814453, 0.18353506922721863, 0.16846446692943573, -0.35275864601135254, -0.11952625960111618, -0.14148810505867004, 0.1672486513853073, -0.1817324012517929, -0.12166528403759003, 0.1836247444152832, 0.21012550592422485, 0.22291995584964752, -0.0013612564653158188, -0.15466149151325226, 0.060196615755558014, 0.12646937370300293, 0.14643558859825134, -0.15696224570274353, 0.0748496800661087, 0.13805454969406128, 0.06022385507822037, 0.1468372792005539, -0.06213479861617088, -0.010638839565217495, 0.027823617681860924, -0.15942269563674927, 0.03597554191946983, -0.18416227400302887, 0.4670124650001526, -0.2941008508205414, 0.22730110585689545, -0.04321138560771942, 0.042775675654411316, 0.06777909398078918, -0.19877994060516357, 0.0702119991183281, -0.031456440687179565, 0.29936710000038147, 0.07511201500892639, 0.08936648815870285, -0.06842091679573059, -0.15160678327083588, 0.09159921854734421, 0.3092695474624634, -0.1839170753955841, -0.1773815155029297, -0.036571867763996124, -0.0742202028632164, -0.07073202729225159, 0.23807665705680847, 0.409053236246109, 0.3239276111125946, 0.14571817219257355, 0.5053697824478149, 0.04641610011458397, 0.15501177310943604, -0.24613220989704132, 0.12225398421287537, -0.00163623271510005, -0.25937360525131226, -0.07849810272455215, -0.10568568855524063, -0.06836152821779251, -0.26442691683769226, 0.48361173272132874, 0.12114657461643219, -0.05166934058070183, -0.010891790501773357, -0.09186650812625885, -0.40398651361465454, -0.1954006552696228, -0.005984658841043711, -0.06681754440069199, -0.21759098768234253, -0.138527050614357, 0.3773460388183594, -0.14011885225772858, -0.18598672747612, 0.14194929599761963, 0.2079997956752777, 0.4611382782459259, -0.22855733335018158, -0.33331453800201416, 0.12948541343212128, 0.06488826870918274, -0.08235516399145126, 0.08761575073003769, 0.12100832909345627, 0.3232131004333496, 0.4368118941783905, -0.014864281751215458, -0.11112942546606064, -0.022029271349310875, -0.031247453764081, 0.031064370647072792, 0.21059256792068481, 0.45115453004837036, 0.003182600485160947, 0.35743778944015503, -0.020784225314855576, 0.1039653941988945, -0.3731696307659149, -0.20483994483947754, -0.20446906983852386, -0.1332649439573288, 0.31956467032432556, 0.370170533657074, -0.2776896357536316, -0.7098519802093506, -0.22635120153427124, -0.2926574647426605, 0.20921730995178223, 0.005404106341302395, 0.18743973970413208, -0.02583523653447628, -0.22577378153800964, -0.07126427441835403, -0.34632644057273865, -0.030254380777478218, -0.05382663756608963, -0.06614378094673157, 0.23064850270748138, -0.17364205420017242, -0.07740608602762222, 0.14234428107738495, 0.00933077372610569, 0.2786378562450409, 0.2440708875656128, -0.7312847971916199, 0.38782569766044617, -0.01492189709097147, 0.1793179214000702, 0.012404638342559338, -0.03167091682553291, 0.390684574842453, -0.49566036462783813, 0.04619104042649269, 0.22265586256980896, 0.18015500903129578, 0.04736107960343361, 0.1463138461112976, 0.26421380043029785, -0.050561875104904175, 0.29843029379844666, 0.0042143315076828, 0.9026041626930237, -0.02190173789858818, 0.2770238518714905, -0.02790319360792637, 0.11596258729696274, 0.3132757246494293, -0.11794120818376541, 0.29585060477256775, 0.36457255482673645, 0.1598806232213974, -0.23357686400413513, 0.2932388186454773, 0.12394192069768906, -0.25895410776138306, -0.2144540399312973, -0.06962680071592331, -0.056702688336372375, -0.12731632590293884, 0.1541203260421753, -0.009760844521224499, 0.04219188168644905, 0.21849778294563293, 0.07201243937015533, 0.3293580412864685, -0.191497802734375, -0.09619191288948059, 0.03225722908973694, 0.2623872756958008, 0.09221543371677399, -0.5549852252006531, -0.06914953887462616, -0.2553252577781677, -0.004599238745868206, -0.09895431995391846, 0.03176185116171837, -0.12043985724449158, -0.008268601261079311, 0.23185990750789642, 0.16834738850593567, 0.5909475088119507, 0.061455272138118744, -0.24266602098941803, -0.08832842111587524, -0.32959023118019104, -0.02279173769056797, -0.029451265931129456, 0.05244165658950806, -0.18578773736953735, 0.08472505956888199, -0.16251534223556519, -0.2776077091693878, -0.0038193082436919212, 0.1067299172282219, 0.37439730763435364, -0.17175763845443726, 0.06833993643522263, 0.13193289935588837, 0.08202193677425385, -0.15530268847942352, 0.2775474488735199, -0.07118671387434006, 0.016129719093441963, -0.27661019563674927, -0.1321994811296463, -0.19088540971279144, -0.05203686282038689, 0.20104824006557465, 0.06118776649236679, 0.14208102226257324, 0.045042697340250015, 0.2517431378364563, 0.04565250873565674, -0.184999480843544, -0.25965017080307007, 0.2126796543598175, 0.01815716363489628, 0.05193997547030449, -0.09696319699287415, 0.03265085816383362, 0.22346147894859314, 0.38547083735466003, -0.1590270698070526, -0.18184512853622437, -0.008986820466816425, 0.037251830101013184, -0.017068568617105484, 0.3170148432254791, -0.0053071570582687855, -0.39978957176208496, -0.22671817243099213, -0.22699445486068726, 0.44948431849479675, 0.16347205638885498, -0.1413419544696808, 0.32207322120666504, 0.06557168811559677, 0.04997368901968002, -0.24215607345104218, 0.26858240365982056, 0.9881715774536133, -0.28154730796813965, 0.254835307598114, 0.12802432477474213, -0.4641486406326294, 0.9363813996315002, -0.3721267580986023, 0.09347116202116013, -0.24081341922283173, -0.12615053355693817, -0.1237548440694809, -0.18515244126319885, -0.07795312255620956, 0.25593721866607666, 0.030219431966543198, 0.44264885783195496, 0.1611509919166565, -0.051337264478206635, 0.05612531676888466, 0.05603412538766861, 0.15205688774585724, 0.0439571775496006, -0.028106383979320526, -0.04434925690293312, -0.2746136784553528, 0.11114156246185303, -0.054120976477861404, -0.10219988971948624, 0.1529763638973236, -0.0006276807398535311, -0.01872234418988228, 0.04443041980266571, -0.012726490385830402, -0.2662273347377777, -0.06237966567277908, -0.2185966968536377, 0.014378105290234089, 0.6153014302253723, 0.12691983580589294, 0.17624050378799438, -0.38006556034088135, 0.22300155460834503, -0.12175216525793076, 0.015368669293820858, 0.15901434421539307, 0.10441378504037857, -0.14016595482826233, -0.20978721976280212, 0.12962642312049866, 0.08713976293802261, -0.22260627150535583, 0.05137250944972038, -0.3873908817768097, 0.27170687913894653, 0.2484145611524582, -0.16532154381275177, -0.10951592773199081, -0.03475840017199516, 0.2807542085647583, -0.007119093090295792, 0.02766374684870243, 0.17074429988861084, -0.2003902643918991, 0.006211340893059969, 0.12129632383584976, -0.29660555720329285, -0.17841306328773499, 0.2170601487159729, 0.4410698711872101, -0.295687198638916, 0.23113349080085754, -0.14475195109844208, -0.04064713418483734, -0.23978476226329803, 0.010483450256288052, -0.02992618829011917, -0.40083643794059753, 0.13582319021224976, -0.11066991835832596, -0.18302343785762787, -0.024585800245404243, 0.27509966492652893, -0.09945835918188095, -0.0941784456372261, 0.07733520865440369, -0.21170011162757874, -0.07177228480577469, 0.21153433620929718, -0.49583983421325684, 0.3922186493873596, 0.1611793339252472, -0.3440656065940857, -0.08004104346036911, 0.5380378365516663, -0.08751443028450012, 0.11438221484422684, -0.032716214656829834, 0.23921805620193481, -0.33013612031936646, 0.23760579526424408, -0.03354378789663315, 0.07139566540718079, -0.17800472676753998, -0.021544810384511948, -0.31897005438804626, -0.04472788795828819, -0.0830528661608696, 0.22085431218147278, -0.02009202167391777, 0.17323346436023712, 0.2979395389556885, -0.05267583206295967, -0.18397024273872375, 0.10122042149305344, 0.10391997545957565, -0.3889254629611969, 0.2401881366968155, 0.1574954092502594, 0.5783492922782898, 0.10978420823812485, -0.5913117527961731, 0.5145003199577332, -0.1677045077085495, 0.4666440486907959, 0.04726108908653259, 0.15126116573810577, -0.012768827378749847, -0.2139865905046463, -0.4592823088169098, -0.12761694192886353, 0.28906774520874023, -0.0764443576335907, -0.0014028704026713967, 0.11418140679597855, 0.0653454139828682, -0.27806463837623596, 0.22555650770664215, 0.753422200679779, -0.133977472782135, 0.0620858259499073, 0.3673756718635559, 0.06493038684129715, -0.009342090226709843, -0.05717504397034645, 0.0890803411602974, -0.013878469355404377, -0.2894074320793152, 0.3129276931285858, 0.05753271281719208, -0.3034367263317108, 0.4116073250770569, -0.11162296682596207, -0.09437651932239532, -0.15300019085407257, 0.04253718629479408, 0.5735348463058472, -0.2732239067554474, -0.32623738050460815, -0.13947194814682007, 0.15088625252246857, 0.02219747006893158, 0.22716616094112396, -0.36910682916641235, 0.21775785088539124, 0.44594505429267883, 0.2370324581861496, 0.005874128080904484, -0.13448211550712585, -0.3252526819705963, 0.5056000351905823, 0.2182750701904297, 0.04067277908325195, -0.06967571377754211, 0.3011367619037628, 0.1572873741388321, -0.29127874970436096, -0.19808785617351532, 0.24192461371421814, 0.19745157659053802, 0.016667917370796204, -0.20285364985466003, -0.04968114569783211, -0.18268348276615143, 0.31237688660621643, -0.10107199847698212, -0.4574669301509857, -0.13913071155548096, 0.32401758432388306, -0.12361623346805573, -0.1569904386997223, 0.3307214379310608, -0.04196269065141678, -0.10212897509336472, -0.25568538904190063, 0.17956267297267914, -0.17700155079364777, 0.09583038091659546, 0.4640851616859436, -0.04593614488840103, -0.2596220374107361, -0.025789445266127586, -0.36535194516181946, -0.2095387578010559, 0.24983170628547668, 0.20348528027534485, -0.10961554199457169, 0.15573105216026306, 0.28077635169029236, 0.5663044452667236, 0.39423972368240356, -0.04723475128412247, 0.03246990963816643, 0.28812265396118164, 0.08073312789201736, 0.20346613228321075, -0.46216699481010437, 0.4283202588558197, 0.22408819198608398, 0.21491439640522003, -0.09706718474626541, -0.06315433979034424, -0.201400026679039, -0.016356591135263443, -0.37484827637672424, -0.28385043144226074, 0.012309325858950615, 0.14592686295509338, -0.011200789362192154, -0.47725799679756165, 0.5015836954116821, 0.10125911980867386, 0.28487762808799744, -0.3360569179058075, -0.18931490182876587, -0.27212297916412354, -0.0261171143501997, -0.0678442046046257, 0.22511565685272217, 0.060258641839027405, 0.22845974564552307, 0.13238784670829773, 0.5546504259109497, -0.48269563913345337, 0.2411869615316391, -0.24266093969345093, 0.2789435088634491, -0.2555554211139679, -0.10027649998664856, -0.30281707644462585, 0.4092625379562378, -0.00690107187256217, -0.19170968234539032, 0.37454280257225037, -0.33088287711143494, -0.29556804895401, 0.6019465327262878, -0.10759919881820679, 0.3654636740684509, 0.26402974128723145, 0.3025878667831421, 0.21526920795440674, 0.11331267654895782, 0.11214592307806015, -0.16226083040237427, -0.08978809416294098, 0.029114846140146255, -0.34790071845054626, -0.11574839800596237, -0.044138070195913315, 0.15113162994384766, -0.2918078303337097, 0.5623226761817932, -0.03079109825193882, 0.18984949588775635, -0.0388922318816185, 0.384649395942688, 0.03029005602002144, -0.28808173537254333, 0.04883071035146713, 0.3543289601802826, 0.340444415807724, 0.3559587001800537, -0.2089972048997879, -0.29187312722206116, -0.27756109833717346, 0.10475979000329971, 0.4886986017227173, -0.04193325340747833, 0.11184035986661911, 0.14542046189308167, 0.18294063210487366, 0.3227466642856598, -0.1110479012131691, -0.41892513632774353, -0.02839069813489914, 0.26604750752449036, -0.3359089493751526, 0.06080801039934158, 0.32845044136047363, 0.17266809940338135, -0.2116771936416626, -0.13201139867305756, 0.18791411817073822, 0.26397666335105896, -0.15897704660892487, -0.1981964260339737, -0.4046052396297455 ]
https://github.com/huggingface/datasets/issues/413
Is there a way to download only NQ dev?
I don't think we could force this behavior generally since the dataset script authors are free to organize the file download as they want (sometimes the mapping between split and files can be very much nontrivial) but we can add an additional configuration for Natural Question indeed as @lhoestq indicate.
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)? As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data. I tried ``` dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner") ``` But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading? Thanks!
50
Is there a way to download only NQ dev? Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)? As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data. I tried ``` dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner") ``` But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading? Thanks! I don't think we could force this behavior generally since the dataset script authors are free to organize the file download as they want (sometimes the mapping between split and files can be very much nontrivial) but we can add an additional configuration for Natural Question indeed as @lhoestq indicate.
[ -0.4887263774871826, 0.20523208379745483, -0.09393593668937683, 0.12609414756298065, -0.04188880696892738, -0.108756422996521, -0.22859515249729156, 0.6617500185966492, 0.0076492768712341785, 0.26699018478393555, -0.27146798372268677, 0.044538065791130066, -0.20828087627887726, 0.5945594310760498, 0.44446873664855957, -0.06466624140739441, -0.12714220583438873, 0.47091853618621826, -0.13610780239105225, -0.006954338867217302, -0.17444077134132385, 0.156428262591362, -0.04274917393922806, 0.03991806134581566, 0.2861553430557251, -0.24353419244289398, 0.1814635843038559, 0.004128076136112213, -0.35673683881759644, -0.2835056185722351, 0.08663343638181686, 0.27570247650146484, 0.2166978269815445, -0.3432944118976593, -0.00012686206900980324, -0.10546552389860153, 0.0004292522498872131, -0.13285206258296967, -0.2147207260131836, 0.09278245270252228, -0.07240558415651321, -0.15838192403316498, 0.1609324961900711, 0.010902526788413525, -0.0843145027756691, -0.3348850905895233, 0.2662494480609894, -0.163202702999115, 0.37742504477500916, 0.4012567102909088, -0.004116367548704147, 0.05484403297305107, -0.22727802395820618, 0.1745748668909073, 0.017552116885781288, -0.10254931449890137, -0.15524370968341827, 0.055836066603660583, 0.19009128212928772, 0.07636972516775131, 0.03938247635960579, 0.09632324427366257, 0.24456414580345154, 0.21815018355846405, 0.11716923862695694, -0.00011781288048950955, 0.3439485430717468, -0.7146773934364319, -0.14678974449634552, 0.7247015237808228, 0.2575412392616272, 0.083511121571064, -0.12203860282897949, -0.2418491095304489, 0.13808460533618927, -0.4262853264808655, -0.0425272062420845, 0.48834940791130066, -0.6017988920211792, 0.027939753606915474, -0.5949159860610962, -0.5436315536499023, -0.19212234020233154, 0.21895623207092285, -0.027262873947620392, -0.06066282093524933, 0.04578433558344841, 0.05542001128196716, 0.26807624101638794, 0.14333847165107727, 0.15595503151416779, 0.07054958492517471, -0.061010584235191345, 0.1489274501800537, -0.19998812675476074, -0.4450477659702301, -0.2982940673828125, -0.09948325157165527, 0.3308860957622528, 0.11282536387443542, -0.029503239318728447, 0.04625456780195236, 0.0011224985355511308, -0.0876052975654602, 0.4969097673892975, 0.0745900571346283, 0.23534202575683594, 0.27454254031181335, 0.11462908983230591, 0.11126493662595749, 0.0898413136601448, 0.13890935480594635, 0.024352332577109337, -0.06880113482475281, -0.6210029721260071, 0.00367703172378242, 0.07708780467510223, -0.3594805896282196, -0.030611513182520866, -0.2182725965976715, -0.07736527174711227, -0.10100427269935608, -0.1445733904838562, 0.18836909532546997, 0.062461983412504196, 0.07965753972530365, -0.3489788770675659, 0.3237815499305725, -0.29186704754829407, -0.759425938129425, -0.14193777740001678, -0.03098113462328911, -0.032225292176008224, 0.13054895401000977, 0.403545618057251, 0.17774246633052826, 0.1623428910970688, -0.15462304651737213, -0.008177428506314754, 0.022877097129821777, 0.35013747215270996, -0.04478604719042778, 0.05216270685195923, 0.3954909145832062, 0.07082570344209671, 0.11984387040138245, -0.09919750690460205, 0.276224821805954, -0.47673889994621277, 0.21214385330677032, -0.08146411180496216, -0.3039795160293579, 0.20001459121704102, 0.031273454427719116, -0.061173249036073685, 0.06190846487879753, -0.08244991302490234, 0.2958782911300659, -0.021802755072712898, -0.26173821091651917, -0.07801411300897598, -0.18498310446739197, -0.2660313546657562, -0.01946350745856762, 0.281535267829895, 0.0521518737077713, -0.2876957952976227, -0.1943800300359726, -0.04265499860048294, -0.1953805685043335, 0.24094340205192566, 0.3353293538093567, -0.22215385735034943, 0.22082431614398956, -0.17772014439105988, 0.07270536571741104, 0.6215861439704895, 0.04083487391471863, -0.21532726287841797, 0.5189725756645203, -0.12525932490825653, -0.2580472528934479, 0.009942841716110706, 0.2915631830692291, 0.2015533149242401, -0.09758112579584122, -0.3081541359424591, 0.7577164769172668, -0.1381881982088089, -0.20855729281902313, -0.04687315970659256, -0.5798710584640503, 0.21783503890037537, 0.13115032017230988, 0.1677623838186264, 0.18862001597881317, -0.021846016868948936, -0.17703647911548615, 0.2302626073360443, 0.07604079693555832, 0.021076561883091927, -0.002703846199437976, -0.09272631257772446, -0.40675848722457886, -0.2314433455467224, -0.16245299577713013, -0.5866479873657227, 0.19412997364997864, -0.5578180551528931, -0.28354430198669434, 0.3848068118095398, -0.13718493282794952, -0.02031511254608631, -0.25992339849472046, 0.15404745936393738, -0.34468239545822144, -0.10267787426710129, -0.045808061957359314, 0.15266546607017517, 0.13154876232147217, -0.3660288155078888, -0.06223524734377861, -0.06041039898991585, 0.22070437669754028, -0.13137252628803253, -0.17698968946933746, 0.22607749700546265, 0.1880299299955368, 0.25586581230163574, -0.07255277037620544, -0.10995065420866013, 0.04677903279662132, 0.15136273205280304, 0.17340999841690063, -0.026258811354637146, 0.09367156028747559, 0.20822902023792267, -0.00018446611647959799, 0.059257347136735916, -0.019603710621595383, -0.029916690662503242, 0.09189598262310028, -0.22086073458194733, 0.004964807070791721, -0.2566196322441101, 0.46210917830467224, -0.2703951895236969, 0.23826825618743896, -0.03103594295680523, 0.02200179360806942, 0.1374267190694809, -0.23408736288547516, 0.023477714508771896, -0.14729231595993042, 0.24135872721672058, 0.123805470764637, 0.15531986951828003, -0.0022993972525000572, -0.13337090611457825, 0.08550208806991577, 0.41478848457336426, -0.2111363559961319, -0.11270426213741302, -0.013723456300795078, -0.055762406438589096, -0.09847774356603622, 0.1594364196062088, 0.42924436926841736, 0.37105992436408997, 0.17351509630680084, 0.5662351250648499, 0.04832691326737404, 0.14304547011852264, -0.31684932112693787, 0.11121581494808197, -0.011788645759224892, -0.253292441368103, 0.03802422806620598, -0.1188148781657219, -0.12132618576288223, -0.2932131886482239, 0.4736105799674988, 0.1529059112071991, -0.06826827675104141, -0.09722185134887695, -0.14104411005973816, -0.40169548988342285, -0.15072867274284363, -0.07152494788169861, 0.02422044798731804, -0.15662118792533875, -0.2005373239517212, 0.3691399097442627, -0.12951843440532684, -0.23827287554740906, 0.17086930572986603, 0.12900914251804352, 0.4911538064479828, -0.20716266334056854, -0.3213883340358734, 0.10329730063676834, 0.08763357251882553, -0.07757274061441422, 0.060663871467113495, 0.1547175943851471, 0.32833489775657654, 0.40073394775390625, -0.11201095581054688, -0.16414843499660492, 0.01411537267267704, 0.10654516518115997, 0.058756448328495026, 0.24431510269641876, 0.48493462800979614, -0.06010323017835617, 0.455698698759079, 0.05521179735660553, 0.12882333993911743, -0.40623125433921814, -0.04733908921480179, -0.24281629920005798, -0.11480817943811417, 0.2974044978618622, 0.39795026183128357, -0.27795547246932983, -0.7279383540153503, -0.19251230359077454, -0.31078171730041504, 0.19715511798858643, 0.03620191663503647, 0.16607129573822021, -0.02098952792584896, -0.1801547259092331, -0.16895043849945068, -0.41171735525131226, 0.030272210016846657, -0.04246743395924568, -0.0558420792222023, 0.24957075715065002, -0.165660560131073, -0.0818886086344719, 0.09859108924865723, -0.00022053791326470673, 0.18288283050060272, 0.30648165941238403, -0.7142478227615356, 0.30789774656295776, -0.08370859175920486, 0.1705636978149414, -0.062196843326091766, -0.06927116960287094, 0.4284791648387909, -0.47041797637939453, 0.027230942621827126, 0.2099204957485199, 0.2742375433444977, 0.11536190658807755, 0.03214024379849434, 0.13454994559288025, -0.044029660522937775, 0.3096979260444641, 0.038546886295080185, 0.8778752088546753, 0.08455236256122589, 0.2853828966617584, 0.005381178110837936, 0.08231614530086517, 0.37017226219177246, -0.11148340255022049, 0.3447762131690979, 0.3482349216938019, 0.19521677494049072, -0.1944238543510437, 0.32634708285331726, 0.07748246192932129, -0.18781767785549164, -0.15260034799575806, -0.010181520134210587, -0.06751233339309692, -0.18573512136936188, 0.19856739044189453, -0.05887458473443985, 0.06811054050922394, 0.2273649126291275, 0.1045209988951683, 0.29603084921836853, -0.17684562504291534, -0.13668902218341827, 0.027859581634402275, 0.24566052854061127, 0.12181350588798523, -0.5731315016746521, -0.008217304944992065, -0.25682851672172546, -0.023165157064795494, -0.11844086647033691, 0.0914427787065506, -0.20681822299957275, -0.08564920723438263, 0.22341138124465942, 0.20784510672092438, 0.606739342212677, 0.030090460553765297, -0.11003237217664719, -0.11664997041225433, -0.26539236307144165, -0.045731689780950546, -0.0447135753929615, 0.010301978327333927, -0.17168232798576355, 0.106463722884655, -0.04704353213310242, -0.28844690322875977, -0.002444148063659668, 0.07867690175771713, 0.37712571024894714, -0.16410061717033386, 0.08014274388551712, 0.14518286287784576, 0.06642696261405945, -0.14320583641529083, 0.2743833661079407, 0.022219877690076828, -0.058252643793821335, -0.2841440737247467, -0.1746900975704193, -0.21786503493785858, -0.07642722874879837, 0.18686223030090332, 0.07682143896818161, 0.08335433155298233, 0.07665297389030457, 0.225919708609581, 0.0786203071475029, -0.2055818736553192, -0.20467272400856018, 0.2767513394355774, -0.001792126684449613, -0.09849754720926285, -0.13953474164009094, -0.028124677017331123, 0.15360604226589203, 0.45460912585258484, -0.19220662117004395, -0.2828112244606018, -0.016730893403291702, 0.0893428772687912, -0.022337861359119415, 0.429280161857605, 0.03981408104300499, -0.4462186396121979, -0.2101212441921234, -0.25894904136657715, 0.37324219942092896, 0.19459785521030426, -0.2055404633283615, 0.21449777483940125, 0.0013384820194914937, -0.028261302039027214, -0.24728816747665405, 0.25914517045021057, 0.91184002161026, -0.23268356919288635, 0.2671702206134796, 0.14728575944900513, -0.3779025077819824, 0.8221447467803955, -0.4244483411312103, 0.07802528142929077, -0.17481252551078796, -0.15138757228851318, -0.13845255970954895, -0.20455527305603027, -0.10359884053468704, 0.36863791942596436, 0.03928029537200928, 0.4770532250404358, 0.08915255218744278, -0.01447824016213417, 0.07208102941513062, 0.06884890049695969, 0.09403219819068909, 0.03311191499233246, 0.0610828623175621, -0.06438712030649185, -0.32213908433914185, 0.10720120370388031, -0.021354403346776962, -0.07482197135686874, 0.18518584966659546, -0.05548024922609329, -0.029084380716085434, 0.05745992437005043, -0.1575431078672409, -0.2827271819114685, -0.20143814384937286, -0.23881278932094574, -0.04155677929520607, 0.708537757396698, 0.13107281923294067, 0.14032264053821564, -0.35975316166877747, 0.21764366328716278, -0.13326336443424225, 0.06539691239595413, 0.0704183429479599, 0.05255996063351631, -0.1054481491446495, -0.16836519539356232, 0.1406688690185547, 0.012031282298266888, -0.1634979099035263, 0.13788799941539764, -0.38867104053497314, 0.2521441578865051, 0.1531347632408142, -0.21981704235076904, -0.12753421068191528, -0.12290074676275253, 0.3295389711856842, -0.0046903216280043125, 0.009553974494338036, 0.09613233804702759, -0.16931860148906708, 0.013012760318815708, 0.14826984703540802, -0.3236753046512604, -0.13800857961177826, 0.25225234031677246, 0.38616687059402466, -0.22822250425815582, 0.30952954292297363, -0.19061538577079773, -0.050405655056238174, -0.29352664947509766, 0.03223005309700966, -0.007193685509264469, -0.3725097179412842, 0.14852499961853027, -0.04614035040140152, -0.19848963618278503, -0.05606241896748543, 0.20994307100772858, -0.07735854387283325, -0.12132173776626587, 0.08208871632814407, -0.19971825182437897, -0.024431496858596802, 0.19568069279193878, -0.4095670282840729, 0.40329432487487793, 0.19597949087619781, -0.3230588436126709, -0.11458486318588257, 0.5872232913970947, -0.08532123267650604, 0.03327951207756996, 0.016955256462097168, 0.22046098113059998, -0.2670642137527466, 0.28230494260787964, 0.029355701059103012, 0.1078801080584526, -0.1735435426235199, -0.09706879407167435, -0.29279863834381104, -0.05510403960943222, -0.023579519242048264, 0.21119166910648346, -0.04216739162802696, 0.15566106140613556, 0.28243789076805115, -0.07815983146429062, -0.15797759592533112, 0.004493613261729479, 0.10345736891031265, -0.424189031124115, 0.2448599636554718, 0.1957986205816269, 0.5968702435493469, 0.21483397483825684, -0.4498152434825897, 0.4909951090812683, -0.2002982199192047, 0.4467792212963104, -0.012262620963156223, 0.17215631902217865, 0.011522917076945305, -0.19017834961414337, -0.41823846101760864, -0.10430509597063065, 0.3986249566078186, 0.036905378103256226, -0.12611231207847595, 0.0897485762834549, 0.041633184999227524, -0.3117082715034485, 0.15283061563968658, 0.7208674550056458, -0.1670776605606079, 0.0277369674295187, 0.30302101373672485, 0.07332811504602432, -0.011628208681941032, -0.08673091232776642, 0.2075522541999817, -0.032828737050294876, -0.2175641655921936, 0.32945552468299866, -0.006804044358432293, -0.2957659363746643, 0.4166150689125061, -0.06366639584302902, -0.0969543382525444, -0.11668925732374191, 0.026329779997467995, 0.5689671635627747, -0.22246725857257843, -0.2802533507347107, -0.15252824127674103, 0.14862923324108124, 0.04319148510694504, 0.34517255425453186, -0.31222474575042725, 0.24791105091571808, 0.4005112648010254, 0.2087181955575943, -0.02693502977490425, -0.2441415786743164, -0.2748733162879944, 0.5230004787445068, 0.11043062806129456, 0.03366655856370926, -0.00031047005904838443, 0.24383628368377686, 0.1401626318693161, -0.2416864037513733, -0.314012736082077, 0.13847023248672485, 0.19269868731498718, 0.0025465127546340227, -0.20522454380989075, -0.028044795617461205, -0.09560389816761017, 0.32129785418510437, -0.11872820556163788, -0.42511478066444397, -0.1308763176202774, 0.30257269740104675, -0.161156564950943, -0.08120112866163254, 0.373944491147995, -0.071284219622612, -0.13488852977752686, -0.26020926237106323, 0.18980494141578674, -0.18483875691890717, 0.1720392405986786, 0.41149383783340454, -0.04625796526670456, -0.22668378055095673, -0.04556957632303238, -0.36242175102233887, -0.21696747839450836, 0.28485924005508423, 0.17282123863697052, -0.23726460337638855, 0.15845492482185364, 0.20723849534988403, 0.5742632746696472, 0.42488333582878113, -0.019297316670417786, 0.04645887389779091, 0.25712960958480835, 0.11050909757614136, 0.10291727632284164, -0.4459003508090973, 0.41968774795532227, 0.21573853492736816, 0.22363679111003876, -0.077501580119133, -0.07799431681632996, -0.2616126239299774, -0.013357717543840408, -0.3012208640575409, -0.23483403027057648, 0.06057002767920494, 0.11346932500600815, -0.017812130972743034, -0.47463300824165344, 0.46370550990104675, 0.04730726778507233, 0.17859704792499542, -0.3177027106285095, -0.1525581330060959, -0.27935290336608887, -0.021068882197141647, -0.1326093226671219, 0.14126476645469666, -0.011448075994849205, 0.20953936874866486, 0.12402564287185669, 0.5167966485023499, -0.4997386634349823, 0.21419958770275116, -0.22744834423065186, 0.363653302192688, -0.23339572548866272, -0.16725634038448334, -0.31860587000846863, 0.44817090034484863, 0.007924186065793037, -0.28583720326423645, 0.3640500605106354, -0.28098854422569275, -0.28176507353782654, 0.6151068806648254, -0.07632219046354294, 0.35831719636917114, 0.201125830411911, 0.2634150981903076, 0.24813292920589447, 0.1929309070110321, 0.06720773130655289, -0.11275716871023178, -0.09850350767374039, 0.10258068889379501, -0.42668744921684265, -0.1189955547451973, -0.08699187636375427, 0.10524175316095352, -0.3675817549228668, 0.5479363799095154, 0.015567312948405743, 0.10999052226543427, -0.09314674139022827, 0.40207356214523315, 0.07516630738973618, -0.25000864267349243, 0.08309653401374817, 0.33181315660476685, 0.3681012988090515, 0.33397188782691956, -0.19865162670612335, -0.3193085789680481, -0.20466606318950653, 0.030167046934366226, 0.4539538025856018, 0.025094598531723022, 0.08543992042541504, 0.06984603404998779, 0.25119397044181824, 0.2723044753074646, -0.07052519172430038, -0.28771230578422546, 0.015435583889484406, 0.24938267469406128, -0.38037189841270447, 0.04412977397441864, 0.38943323493003845, 0.16320566833019257, -0.21417148411273956, -0.11609292030334473, 0.22652220726013184, 0.31279808282852173, -0.21677744388580322, -0.27015164494514465, -0.415377140045166 ]
https://github.com/huggingface/datasets/issues/412
Unable to load XTREME dataset from disk
Hi @lewtun, you have to provide the full path to the downloaded file for example `/home/lewtum/..`
Hi 🤗 team! ## Description of the problem Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark. I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset. As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path: ``` # path where load_dataset is looking for fr.tar.gz /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/ # path where it actually exists /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/ ``` ## Steps to reproduce the problem 1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) 2. Run the following code snippet ```python from nlp import load_dataset # AmazonPhotos.zip is in the root of the folder dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') ``` 3. Here is the stack trace ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-4-26786bb5fa93> in <module> ----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 464 split_dict = SplitDict(dataset_name=self.name) 465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 467 # Checksums verification 468 if verify_infos: /usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager) 725 panx_dl_dir = dl_manager.extract(panx_path) 726 lang = self.config.name.split(".")[1] --> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz")) 728 return [ 729 nlp.SplitGenerator( /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 170 return tuple(mapped) 171 # Singleton --> 172 return function(data_struct) 173 174 /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 203 elif urlparse(url_or_filename).scheme == "": 204 # File, but it doesn't exist. --> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename)) 206 else: 207 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist ``` ## OS and hardware ``` - `nlp` version: 0.3.0 - Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyTorch version (GPU?): 1.4.0 (True) - Tensorflow version (GPU?): 2.1.0 (True) - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ```
16
Unable to load XTREME dataset from disk Hi 🤗 team! ## Description of the problem Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark. I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset. As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path: ``` # path where load_dataset is looking for fr.tar.gz /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/ # path where it actually exists /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/ ``` ## Steps to reproduce the problem 1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) 2. Run the following code snippet ```python from nlp import load_dataset # AmazonPhotos.zip is in the root of the folder dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') ``` 3. Here is the stack trace ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-4-26786bb5fa93> in <module> ----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 464 split_dict = SplitDict(dataset_name=self.name) 465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 467 # Checksums verification 468 if verify_infos: /usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager) 725 panx_dl_dir = dl_manager.extract(panx_path) 726 lang = self.config.name.split(".")[1] --> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz")) 728 return [ 729 nlp.SplitGenerator( /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 170 return tuple(mapped) 171 # Singleton --> 172 return function(data_struct) 173 174 /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 203 elif urlparse(url_or_filename).scheme == "": 204 # File, but it doesn't exist. --> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename)) 206 else: 207 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist ``` ## OS and hardware ``` - `nlp` version: 0.3.0 - Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyTorch version (GPU?): 1.4.0 (True) - Tensorflow version (GPU?): 2.1.0 (True) - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` Hi @lewtun, you have to provide the full path to the downloaded file for example `/home/lewtum/..`
[ -0.2940952181816101, -0.3835179805755615, -0.0021736316848546267, 0.6607131958007812, 0.14834454655647278, 0.12387925386428833, -0.17308862507343292, 0.10855399072170258, 0.18071162700653076, 0.044096820056438446, -0.1427532285451889, -0.00034497809247113764, 0.13833576440811157, -0.02919101156294346, 0.16312161087989807, -0.13893653452396393, -0.005091311875730753, -0.10926364362239838, -0.04557405784726143, 0.0021928539499640465, -0.33347466588020325, 0.38261669874191284, -0.12323230504989624, -0.01583578623831272, -0.3343704342842102, 0.015269428491592407, 0.05252496153116226, 0.6103967428207397, -0.22044414281845093, -0.049075547605752945, 0.45480576157569885, -0.13804177939891815, 0.41930311918258667, 0.716667652130127, -0.00012068088835803792, 0.03627227991819382, 0.13725805282592773, -0.18045146763324738, -0.1188206821680069, -0.5258259773254395, -0.30799323320388794, -0.13045723736286163, -0.05789564549922943, -0.12726877629756927, -0.07237064838409424, 0.0013961871154606342, 0.13070110976696014, -0.5407083034515381, 0.4081200659275055, 0.1079239547252655, 0.10580684244632721, 0.27854421734809875, 0.052613891661167145, -0.07740035653114319, 0.22054553031921387, 0.16301923990249634, -0.32615596055984497, 0.0098368925973773, 0.34907740354537964, 0.15684491395950317, 0.08900924772024155, 0.3036375045776367, 0.0028808675706386566, 0.04164915159344673, 0.4682086408138275, -0.025537684559822083, 0.16320978105068207, -0.2858409285545349, 0.07400473952293396, 0.3027317523956299, 0.5413934588432312, -0.1766107827425003, -0.4551268517971039, -0.16008341312408447, -0.08777958899736404, -0.2420940101146698, 0.3571462035179138, 0.28176188468933105, -0.1429183930158615, -0.004444267135113478, -0.29094022512435913, -0.19553467631340027, -0.16509346663951874, 0.16105131804943085, -0.06677930057048798, 0.16237181425094604, -0.2162119597196579, 0.002034157980233431, 0.3741410970687866, 0.045092128217220306, 0.21397937834262848, -0.06313325464725494, -0.10904086381196976, 0.11569781601428986, -0.23183390498161316, 0.237139031291008, -0.1404145509004593, -0.031396105885505676, 0.2378907948732376, 0.19722670316696167, 0.02315431274473667, 0.1833643615245819, -0.02000805176794529, 0.1590583622455597, 0.224251389503479, 0.28444620966911316, 0.24085955321788788, -0.07524450123310089, 0.012787259183824062, 0.18078362941741943, 0.006231275387108326, -0.19931532442569733, -0.1559431552886963, -0.201649472117424, -0.13806383311748505, -0.09382034838199615, 0.11763666570186615, -0.3426390588283539, -0.5313270688056946, -0.07015442848205566, -0.09447778761386871, 0.010748811066150665, 0.23567458987236023, 0.23898285627365112, 0.09938044100999832, 0.007656178902834654, 0.0823182612657547, 0.3665463328361511, -0.31856176257133484, -0.0045809028670191765, -0.2031155377626419, 0.2044394463300705, -0.3886568546295166, 0.29014480113983154, 0.16030949354171753, -0.08145736157894135, 0.37301501631736755, -0.11436521261930466, 0.32601478695869446, -0.36709606647491455, 0.04246087744832039, -0.0647067278623581, -0.03823557496070862, 0.08228535950183868, 0.23622071743011475, 0.1614244133234024, 0.10860676318407059, -0.006718686316162348, -0.11877860873937607, 0.14366266131401062, -0.4055754542350769, -0.1271430402994156, -0.07954481244087219, 0.03333605080842972, -0.4040100574493408, 0.018243810161948204, -0.6510800719261169, -0.16833318769931793, -0.2702905833721161, 0.03322432562708855, -0.02521730400621891, 0.04184170439839363, -0.12896648049354553, -0.07620877027511597, 0.2826344072818756, 0.4870425760746002, -0.18085704743862152, -0.03521300479769707, -0.20905423164367676, -0.10992228984832764, 0.08131907880306244, 0.15743248164653778, -0.23717470467090607, 0.08770616352558136, -0.4471830129623413, 0.34323668479919434, 0.2603810429573059, -0.6826911568641663, -0.29034972190856934, 0.32645392417907715, -0.2940926253795624, 0.24178767204284668, 0.08077787607908249, 0.06210677698254585, -0.21419194340705872, -0.08567478507757187, 0.1738433986902237, 0.17709119617938995, 0.13799066841602325, -0.0998016744852066, -0.2131122648715973, -0.16815686225891113, -0.19047871232032776, 0.33219391107559204, -0.013253032229840755, -0.0898943617939949, 0.11145448684692383, -0.01865120604634285, 0.10930906981229782, -0.13748563826084137, -0.12677809596061707, 0.5887784361839294, 0.07426439970731735, -0.04015248268842697, -0.1889091432094574, 0.06074810028076172, -0.691290557384491, 0.3157790005207062, -0.26303982734680176, -0.23664602637290955, -0.08977649360895157, 0.10724356770515442, -0.3324471414089203, -0.09075084328651428, -0.3421749770641327, -0.17736327648162842, -0.03209372237324715, 0.14239758253097534, -0.0039506228640675545, -0.15076248347759247, -0.23739056289196014, 0.3739416003227234, 0.033804621547460556, 0.10042345523834229, -0.5817273855209351, 0.26647046208381653, 0.18917115032672882, -0.03668946400284767, -0.008081091567873955, 0.02950645424425602, 0.24494002759456635, -0.30187171697616577, 0.011071545071899891, 0.5150934457778931, 0.015789207071065903, 0.3034428358078003, 0.34143632650375366, 0.06788251549005508, 0.2183353751897812, -0.47469156980514526, 0.17063747346401215, 0.12616796791553497, -0.05022543668746948, -0.0008382173837162554, -0.35325902700424194, 0.47185784578323364, -0.19586601853370667, -0.03601350635290146, -0.07293423265218735, -0.15648870170116425, 0.14721427857875824, -0.11021612584590912, -0.11814023554325104, -0.1023721918463707, 0.37900853157043457, 0.1971791833639145, 0.23839227855205536, -0.16361024975776672, -0.1151508092880249, -0.13557270169258118, -0.0787743628025055, 0.019171375781297684, 0.001240606652572751, 0.03192291781306267, -0.2628389596939087, 0.11231434345245361, -0.034936197102069855, 0.4033965766429901, 0.41511717438697815, 0.152463898062706, 0.02335072122514248, -0.027328675612807274, -0.041436225175857544, -0.07648944109678268, 0.031866926699876785, 0.011048449203372002, 0.10943292081356049, 0.16492007672786713, -0.3268107771873474, -0.05431964620947838, -0.36686351895332336, -0.10840088129043579, 0.10832209885120392, 0.09499799460172653, -0.3544779419898987, 0.025856662541627884, -0.17411497235298157, -0.38957104086875916, -0.10250089317560196, 0.15973162651062012, -0.2119821459054947, -0.2974926233291626, -0.12243019789457321, 0.5138397216796875, 0.24396196007728577, -0.03323664516210556, -0.322870135307312, 0.05515662208199501, -0.1608923077583313, -0.5349491834640503, -0.229606032371521, 0.22549819946289062, -0.029848700389266014, -0.037925999611616135, 0.3940603733062744, 0.17755164206027985, 0.06346920877695084, -0.37519440054893494, 0.437879353761673, -0.5723704099655151, -0.10138975828886032, 0.15362009406089783, -0.17764483392238617, 0.4700741171836853, -0.12343345582485199, 0.17391659319400787, -0.4125462472438812, 0.07374511659145355, 0.262270450592041, -0.14359870553016663, -0.07257602363824844, -0.010824769735336304, 0.05826568976044655, -0.17177130281925201, 0.10299911350011826, -0.15504352748394012, -0.08348757028579712, -0.2285582572221756, -0.0605197437107563, 0.026968788355588913, 0.003947611432522535, 0.14304138720035553, 0.012173653580248356, 0.052641019225120544, 0.0021112968679517508, -0.2169022262096405, -0.21504314243793488, -0.9191770553588867, 0.4821288287639618, -0.15350434184074402, -0.2848583459854126, 0.3715457320213318, 0.17307093739509583, 0.2463560253381729, 0.29146304726600647, -0.4455311894416809, -0.17484457790851593, 0.10034238547086716, 0.1766919642686844, 0.07965422421693802, 0.02854364551603794, 0.21983756124973297, -0.2039555311203003, 0.07813803851604462, -0.13408580422401428, -0.3067449927330017, -0.07130570709705353, 0.1857062429189682, 0.6754615902900696, -0.09100902825593948, 0.015538107603788376, 0.030508900061249733, 0.481239914894104, 0.0822574570775032, 0.21683762967586517, 0.4140939712524414, -0.10537875443696976, 0.3446892499923706, -0.08478180319070816, -0.1683698296546936, -0.2016591876745224, -0.12537850439548492, 0.034600719809532166, 0.038845937699079514, 0.31978145241737366, 0.10899960249662399, -0.28266021609306335, 0.252409964799881, -0.3590713143348694, -0.24997612833976746, 0.07911019027233124, 0.15070416033267975, 0.14391279220581055, -0.027169015258550644, 0.2944020926952362, -0.1495237946510315, -0.1423308402299881, 0.04721667617559433, 0.3464932143688202, 0.4332343637943268, 0.20162586867809296, -0.3357110619544983, 0.28216907382011414, -0.2268451452255249, 0.4784913659095764, 0.07362401485443115, 0.17186810076236725, -0.09291023761034012, 0.041423238813877106, 0.1955896019935608, -0.08779428899288177, 0.3791082799434662, -0.08124431222677231, 0.15484939515590668, 0.009051685221493244, -0.37388792634010315, -0.326809823513031, 0.023585397750139236, 0.04028983414173126, 0.15631747245788574, -0.015381254255771637, 0.5480806827545166, -0.2565803527832031, -0.31506508588790894, -0.20974820852279663, 0.13904862105846405, -0.07422643899917603, -0.13402943313121796, -0.27351635694503784, -0.5143990516662598, -0.07183903455734253, -0.2955912947654724, 0.19686873257160187, 0.26738715171813965, 0.31725209951400757, 0.2283359169960022, -0.10423523187637329, -0.04284026846289635, 0.3793017864227295, 0.004214210901409388, 0.6529353857040405, -0.1743399053812027, 0.03549233078956604, 0.4252309203147888, -0.11782430857419968, 0.25314760208129883, 0.6561619639396667, 0.11082128435373306, -0.12971629202365875, 0.26633313298225403, -0.051716502755880356, -0.12951385974884033, 0.32734614610671997, 0.020796438679099083, -0.3362400233745575, -0.052603259682655334, -0.02992131933569908, -0.13729751110076904, 0.010418055579066277, 0.32011887431144714, -0.03676123172044754, -0.16708312928676605, -0.0699450746178627, 0.5326876044273376, 0.27551430463790894, 0.16868562996387482, 0.30961933732032776, 0.09793560206890106, -0.15163768827915192, -0.23301953077316284, 0.18752340972423553, 1.0363699197769165, -0.18175873160362244, 0.1348760724067688, 0.2365761399269104, 0.14354602992534637, -0.029545828700065613, -0.2570059597492218, 0.33080920577049255, -0.25937697291374207, -0.39658892154693604, -0.25396668910980225, -0.1413373351097107, 0.24864470958709717, 0.09211234003305435, 0.3186844289302826, 0.2940901219844818, 0.14416462182998657, 0.01091798860579729, 0.04235022887587547, -0.019219091162085533, -0.2817930281162262, -0.31099969148635864, -0.5007683038711548, 0.06260748207569122, -0.041095152497291565, 0.580438494682312, -0.16123825311660767, -0.12794458866119385, -0.18903644382953644, -0.030287036672234535, -0.03705844655632973, 0.3009275496006012, -0.2347041517496109, 0.1349932998418808, -0.04424072802066803, -0.49342262744903564, -0.14557120203971863, 0.4456173777580261, 0.08575046062469482, -0.2637133002281189, -0.26062801480293274, 0.3505086600780487, -0.07311892509460449, -0.19286894798278809, 0.017975445836782455, -0.10910777002573013, -0.14112740755081177, -0.1512785404920578, 0.1349845677614212, -0.08414370566606522, -0.14231932163238525, -0.35683220624923706, -0.27012380957603455, -0.06699681282043457, -0.27996763586997986, -0.04548439010977745, -0.26465898752212524, 0.05238184332847595, 0.04304439574480057, -0.020229406654834747, 0.043968528509140015, 0.1505739539861679, -0.11828026175498962, 0.026479415595531464, 0.11949354410171509, -0.4309364855289459, -0.027901621535420418, 0.5984717607498169, -0.3182872235774994, -0.21648164093494415, 0.2697502672672272, 0.18418702483177185, 0.047357894480228424, -0.13907131552696228, 0.39564773440361023, 0.3742908239364624, -0.5853356122970581, 0.01721319928765297, -0.13103562593460083, 0.20623044669628143, 0.09364932030439377, 0.28696200251579285, 0.40500134229660034, -0.4055056571960449, 0.2294517606496811, -0.49061331152915955, -0.022133003920316696, 0.3766581416130066, -0.030695224180817604, 0.28284841775894165, -0.025744592770934105, -0.22615587711334229, 0.13188625872135162, -0.3666858971118927, -0.2243921309709549, 0.39640262722969055, -0.03099251352250576, -0.05134207010269165, 0.27654096484184265, 0.1092199757695198, 0.5288565754890442, 0.060997724533081055, 0.05777892842888832, 0.2188752144575119, -0.26735350489616394, -0.04220900312066078, 0.07026869058609009, 0.1751423180103302, 0.0311536006629467, -0.1865861564874649, 0.018807750195264816, -0.14554519951343536, -0.08651578426361084, -0.024734793230891228, 0.18483354151248932, 0.38724827766418457, 0.030788663774728775, -0.14747974276542664, -0.10982919484376907, 0.16634754836559296, -0.47092679142951965, 0.1061929315328598, 0.18980276584625244, 0.49242931604385376, 0.0212686937302351, -0.023613112047314644, -0.095186747610569, -0.08877986669540405, -0.3238072395324707, -0.08439578115940094, 0.28941649198532104, 0.28820541501045227, 0.3363099694252014, -0.3605221211910248, 0.3339119553565979, 0.1849840134382248, 0.22670979797840118, 0.3662351071834564, -0.2820643186569214, 0.11081914603710175, 0.03159194439649582, 0.12503881752490997, -0.026920730248093605, -0.11273554712533951, 0.10834995657205582, -0.081602081656456, -0.10202353447675705, 0.38890331983566284, 0.1993320882320404, 0.28527987003326416, 0.20681434869766235, -0.022217972204089165, 0.70029616355896, -0.047907039523124695, 0.22965164482593536, 0.4015386998653412, -0.08403906226158142, 0.14039281010627747, 0.2540927529335022, 0.33963122963905334, 0.11655484139919281, 0.4072639048099518, -0.21314361691474915, 0.5100000500679016, -0.0704321563243866, 0.4083871841430664, -0.38913777470588684, -0.4278740882873535, -0.22597238421440125, 0.2799410820007324, 0.17639553546905518, 0.18061140179634094, -0.27445054054260254, 0.2971877455711365, -0.49491822719573975, -0.014748286455869675, -0.4205291271209717, 0.15461504459381104, -0.06688911467790604, 0.018382785841822624, -0.26359957456588745, -0.37217825651168823, -0.14875607192516327, 0.04879678040742874, -0.14148646593093872, -0.15301726758480072, -0.03988661617040634, 0.07943608611822128, -0.045620981603860855, 0.08262787014245987, -0.13652387261390686, 0.2178894430398941, -0.04941962659358978, -0.17005231976509094, 0.48474830389022827, 0.07236352562904358, -0.014322496019303799, 0.21670211851596832, 0.20186854898929596, 0.18447215855121613, 0.06987673044204712, -0.10044937580823898, -0.11658786237239838, 0.2017824649810791, -0.046735648065805435, 0.1467270702123642, 0.09841898083686829, -0.01989847421646118, 0.040519412606954575, 0.29661619663238525, 0.16196222603321075, -0.05738828331232071, 0.19735905528068542, -0.07399632036685944, 0.30937641859054565, -0.04607841372489929, 0.02770588919520378, -0.40949341654777527, 0.15801550447940826, -0.15108831226825714, -0.2176128327846527, -0.10510677099227905, -0.16550689935684204, 0.09248825907707214, -0.13268709182739258, 0.0062673259526491165, 0.24565719068050385, 0.017953427508473396, 0.0025495311710983515, 0.27279791235923767, 0.49189430475234985, -0.2644316554069519, -0.5227892398834229, -0.25526076555252075, -0.7857866883277893, 0.15712900459766388, -0.03276083618402481, -0.23474562168121338, 0.045614566653966904, 0.16287194192409515, -0.0656059980392456, 0.21500977873802185, 0.30239248275756836, -0.0805269107222557, 0.333007276058197, 0.3020875155925751, -0.2846807837486267, -0.031846240162849426, 0.2175103724002838, 0.09619199484586716, -0.05528504401445389, -0.2977225184440613, -0.009798240847885609, 0.19656255841255188, -0.07209831476211548, -0.00043279543751850724, 0.0005192158278077841, -0.3038443624973297, -0.25959888100624084, 0.34663712978363037, -0.1283625364303589, 0.23551151156425476, 0.006928673479706049, -0.3553107678890228, -0.2619475722312927, -0.25856250524520874, 0.10818419605493546, 0.08175772428512573, 0.09719285368919373, 0.4771687090396881, -0.0876290500164032, 0.12166404724121094, -0.5112360715866089, 0.29543906450271606, 0.14253059029579163, -0.0016412459081038833, -0.3504883646965027, 0.10026165097951889, -0.29212042689323425, 0.05132058635354042, 0.28853604197502136, 0.375806987285614, 0.03828180953860283, 0.3379184305667877, -0.14137671887874603, -0.1874239146709442, 0.4719301462173462, 0.005781513638794422, -0.14038364589214325, 0.29020342230796814, 0.060074225068092346, 0.23427574336528778, -0.14330138266086578, -0.34266191720962524, 0.256020188331604, 0.08228463679552078, 0.02434728667140007, -0.005571741610765457, -0.015755217522382736, -0.20693042874336243, -0.19930966198444366, 0.14981980621814728, 0.23564156889915466, 0.10808365046977997, -0.16975000500679016, 0.15471823513507843, 0.04828653484582901 ]
https://github.com/huggingface/datasets/issues/412
Unable to load XTREME dataset from disk
I was able to repro. Opening a PR to fix that. Thanks for reporting this issue !
Hi 🤗 team! ## Description of the problem Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark. I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset. As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path: ``` # path where load_dataset is looking for fr.tar.gz /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/ # path where it actually exists /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/ ``` ## Steps to reproduce the problem 1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) 2. Run the following code snippet ```python from nlp import load_dataset # AmazonPhotos.zip is in the root of the folder dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') ``` 3. Here is the stack trace ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-4-26786bb5fa93> in <module> ----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 464 split_dict = SplitDict(dataset_name=self.name) 465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 467 # Checksums verification 468 if verify_infos: /usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager) 725 panx_dl_dir = dl_manager.extract(panx_path) 726 lang = self.config.name.split(".")[1] --> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz")) 728 return [ 729 nlp.SplitGenerator( /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 170 return tuple(mapped) 171 # Singleton --> 172 return function(data_struct) 173 174 /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 203 elif urlparse(url_or_filename).scheme == "": 204 # File, but it doesn't exist. --> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename)) 206 else: 207 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist ``` ## OS and hardware ``` - `nlp` version: 0.3.0 - Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyTorch version (GPU?): 1.4.0 (True) - Tensorflow version (GPU?): 2.1.0 (True) - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ```
17
Unable to load XTREME dataset from disk Hi 🤗 team! ## Description of the problem Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark. I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset. As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path: ``` # path where load_dataset is looking for fr.tar.gz /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/ # path where it actually exists /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/ ``` ## Steps to reproduce the problem 1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) 2. Run the following code snippet ```python from nlp import load_dataset # AmazonPhotos.zip is in the root of the folder dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') ``` 3. Here is the stack trace ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-4-26786bb5fa93> in <module> ----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./') /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 464 split_dict = SplitDict(dataset_name=self.name) 465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 467 # Checksums verification 468 if verify_infos: /usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager) 725 panx_dl_dir = dl_manager.extract(panx_path) 726 lang = self.config.name.split(".")[1] --> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz")) 728 return [ 729 nlp.SplitGenerator( /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 170 return tuple(mapped) 171 # Singleton --> 172 return function(data_struct) 173 174 /usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path) 196 """ 197 return map_nested( --> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 199 ) 200 /usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 203 elif urlparse(url_or_filename).scheme == "": 204 # File, but it doesn't exist. --> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename)) 206 else: 207 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist ``` ## OS and hardware ``` - `nlp` version: 0.3.0 - Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyTorch version (GPU?): 1.4.0 (True) - Tensorflow version (GPU?): 2.1.0 (True) - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` I was able to repro. Opening a PR to fix that. Thanks for reporting this issue !
[ -0.2940952181816101, -0.3835179805755615, -0.0021736316848546267, 0.6607131958007812, 0.14834454655647278, 0.12387925386428833, -0.17308862507343292, 0.10855399072170258, 0.18071162700653076, 0.044096820056438446, -0.1427532285451889, -0.00034497809247113764, 0.13833576440811157, -0.02919101156294346, 0.16312161087989807, -0.13893653452396393, -0.005091311875730753, -0.10926364362239838, -0.04557405784726143, 0.0021928539499640465, -0.33347466588020325, 0.38261669874191284, -0.12323230504989624, -0.01583578623831272, -0.3343704342842102, 0.015269428491592407, 0.05252496153116226, 0.6103967428207397, -0.22044414281845093, -0.049075547605752945, 0.45480576157569885, -0.13804177939891815, 0.41930311918258667, 0.716667652130127, -0.00012068088835803792, 0.03627227991819382, 0.13725805282592773, -0.18045146763324738, -0.1188206821680069, -0.5258259773254395, -0.30799323320388794, -0.13045723736286163, -0.05789564549922943, -0.12726877629756927, -0.07237064838409424, 0.0013961871154606342, 0.13070110976696014, -0.5407083034515381, 0.4081200659275055, 0.1079239547252655, 0.10580684244632721, 0.27854421734809875, 0.052613891661167145, -0.07740035653114319, 0.22054553031921387, 0.16301923990249634, -0.32615596055984497, 0.0098368925973773, 0.34907740354537964, 0.15684491395950317, 0.08900924772024155, 0.3036375045776367, 0.0028808675706386566, 0.04164915159344673, 0.4682086408138275, -0.025537684559822083, 0.16320978105068207, -0.2858409285545349, 0.07400473952293396, 0.3027317523956299, 0.5413934588432312, -0.1766107827425003, -0.4551268517971039, -0.16008341312408447, -0.08777958899736404, -0.2420940101146698, 0.3571462035179138, 0.28176188468933105, -0.1429183930158615, -0.004444267135113478, -0.29094022512435913, -0.19553467631340027, -0.16509346663951874, 0.16105131804943085, -0.06677930057048798, 0.16237181425094604, -0.2162119597196579, 0.002034157980233431, 0.3741410970687866, 0.045092128217220306, 0.21397937834262848, -0.06313325464725494, -0.10904086381196976, 0.11569781601428986, -0.23183390498161316, 0.237139031291008, -0.1404145509004593, -0.031396105885505676, 0.2378907948732376, 0.19722670316696167, 0.02315431274473667, 0.1833643615245819, -0.02000805176794529, 0.1590583622455597, 0.224251389503479, 0.28444620966911316, 0.24085955321788788, -0.07524450123310089, 0.012787259183824062, 0.18078362941741943, 0.006231275387108326, -0.19931532442569733, -0.1559431552886963, -0.201649472117424, -0.13806383311748505, -0.09382034838199615, 0.11763666570186615, -0.3426390588283539, -0.5313270688056946, -0.07015442848205566, -0.09447778761386871, 0.010748811066150665, 0.23567458987236023, 0.23898285627365112, 0.09938044100999832, 0.007656178902834654, 0.0823182612657547, 0.3665463328361511, -0.31856176257133484, -0.0045809028670191765, -0.2031155377626419, 0.2044394463300705, -0.3886568546295166, 0.29014480113983154, 0.16030949354171753, -0.08145736157894135, 0.37301501631736755, -0.11436521261930466, 0.32601478695869446, -0.36709606647491455, 0.04246087744832039, -0.0647067278623581, -0.03823557496070862, 0.08228535950183868, 0.23622071743011475, 0.1614244133234024, 0.10860676318407059, -0.006718686316162348, -0.11877860873937607, 0.14366266131401062, -0.4055754542350769, -0.1271430402994156, -0.07954481244087219, 0.03333605080842972, -0.4040100574493408, 0.018243810161948204, -0.6510800719261169, -0.16833318769931793, -0.2702905833721161, 0.03322432562708855, -0.02521730400621891, 0.04184170439839363, -0.12896648049354553, -0.07620877027511597, 0.2826344072818756, 0.4870425760746002, -0.18085704743862152, -0.03521300479769707, -0.20905423164367676, -0.10992228984832764, 0.08131907880306244, 0.15743248164653778, -0.23717470467090607, 0.08770616352558136, -0.4471830129623413, 0.34323668479919434, 0.2603810429573059, -0.6826911568641663, -0.29034972190856934, 0.32645392417907715, -0.2940926253795624, 0.24178767204284668, 0.08077787607908249, 0.06210677698254585, -0.21419194340705872, -0.08567478507757187, 0.1738433986902237, 0.17709119617938995, 0.13799066841602325, -0.0998016744852066, -0.2131122648715973, -0.16815686225891113, -0.19047871232032776, 0.33219391107559204, -0.013253032229840755, -0.0898943617939949, 0.11145448684692383, -0.01865120604634285, 0.10930906981229782, -0.13748563826084137, -0.12677809596061707, 0.5887784361839294, 0.07426439970731735, -0.04015248268842697, -0.1889091432094574, 0.06074810028076172, -0.691290557384491, 0.3157790005207062, -0.26303982734680176, -0.23664602637290955, -0.08977649360895157, 0.10724356770515442, -0.3324471414089203, -0.09075084328651428, -0.3421749770641327, -0.17736327648162842, -0.03209372237324715, 0.14239758253097534, -0.0039506228640675545, -0.15076248347759247, -0.23739056289196014, 0.3739416003227234, 0.033804621547460556, 0.10042345523834229, -0.5817273855209351, 0.26647046208381653, 0.18917115032672882, -0.03668946400284767, -0.008081091567873955, 0.02950645424425602, 0.24494002759456635, -0.30187171697616577, 0.011071545071899891, 0.5150934457778931, 0.015789207071065903, 0.3034428358078003, 0.34143632650375366, 0.06788251549005508, 0.2183353751897812, -0.47469156980514526, 0.17063747346401215, 0.12616796791553497, -0.05022543668746948, -0.0008382173837162554, -0.35325902700424194, 0.47185784578323364, -0.19586601853370667, -0.03601350635290146, -0.07293423265218735, -0.15648870170116425, 0.14721427857875824, -0.11021612584590912, -0.11814023554325104, -0.1023721918463707, 0.37900853157043457, 0.1971791833639145, 0.23839227855205536, -0.16361024975776672, -0.1151508092880249, -0.13557270169258118, -0.0787743628025055, 0.019171375781297684, 0.001240606652572751, 0.03192291781306267, -0.2628389596939087, 0.11231434345245361, -0.034936197102069855, 0.4033965766429901, 0.41511717438697815, 0.152463898062706, 0.02335072122514248, -0.027328675612807274, -0.041436225175857544, -0.07648944109678268, 0.031866926699876785, 0.011048449203372002, 0.10943292081356049, 0.16492007672786713, -0.3268107771873474, -0.05431964620947838, -0.36686351895332336, -0.10840088129043579, 0.10832209885120392, 0.09499799460172653, -0.3544779419898987, 0.025856662541627884, -0.17411497235298157, -0.38957104086875916, -0.10250089317560196, 0.15973162651062012, -0.2119821459054947, -0.2974926233291626, -0.12243019789457321, 0.5138397216796875, 0.24396196007728577, -0.03323664516210556, -0.322870135307312, 0.05515662208199501, -0.1608923077583313, -0.5349491834640503, -0.229606032371521, 0.22549819946289062, -0.029848700389266014, -0.037925999611616135, 0.3940603733062744, 0.17755164206027985, 0.06346920877695084, -0.37519440054893494, 0.437879353761673, -0.5723704099655151, -0.10138975828886032, 0.15362009406089783, -0.17764483392238617, 0.4700741171836853, -0.12343345582485199, 0.17391659319400787, -0.4125462472438812, 0.07374511659145355, 0.262270450592041, -0.14359870553016663, -0.07257602363824844, -0.010824769735336304, 0.05826568976044655, -0.17177130281925201, 0.10299911350011826, -0.15504352748394012, -0.08348757028579712, -0.2285582572221756, -0.0605197437107563, 0.026968788355588913, 0.003947611432522535, 0.14304138720035553, 0.012173653580248356, 0.052641019225120544, 0.0021112968679517508, -0.2169022262096405, -0.21504314243793488, -0.9191770553588867, 0.4821288287639618, -0.15350434184074402, -0.2848583459854126, 0.3715457320213318, 0.17307093739509583, 0.2463560253381729, 0.29146304726600647, -0.4455311894416809, -0.17484457790851593, 0.10034238547086716, 0.1766919642686844, 0.07965422421693802, 0.02854364551603794, 0.21983756124973297, -0.2039555311203003, 0.07813803851604462, -0.13408580422401428, -0.3067449927330017, -0.07130570709705353, 0.1857062429189682, 0.6754615902900696, -0.09100902825593948, 0.015538107603788376, 0.030508900061249733, 0.481239914894104, 0.0822574570775032, 0.21683762967586517, 0.4140939712524414, -0.10537875443696976, 0.3446892499923706, -0.08478180319070816, -0.1683698296546936, -0.2016591876745224, -0.12537850439548492, 0.034600719809532166, 0.038845937699079514, 0.31978145241737366, 0.10899960249662399, -0.28266021609306335, 0.252409964799881, -0.3590713143348694, -0.24997612833976746, 0.07911019027233124, 0.15070416033267975, 0.14391279220581055, -0.027169015258550644, 0.2944020926952362, -0.1495237946510315, -0.1423308402299881, 0.04721667617559433, 0.3464932143688202, 0.4332343637943268, 0.20162586867809296, -0.3357110619544983, 0.28216907382011414, -0.2268451452255249, 0.4784913659095764, 0.07362401485443115, 0.17186810076236725, -0.09291023761034012, 0.041423238813877106, 0.1955896019935608, -0.08779428899288177, 0.3791082799434662, -0.08124431222677231, 0.15484939515590668, 0.009051685221493244, -0.37388792634010315, -0.326809823513031, 0.023585397750139236, 0.04028983414173126, 0.15631747245788574, -0.015381254255771637, 0.5480806827545166, -0.2565803527832031, -0.31506508588790894, -0.20974820852279663, 0.13904862105846405, -0.07422643899917603, -0.13402943313121796, -0.27351635694503784, -0.5143990516662598, -0.07183903455734253, -0.2955912947654724, 0.19686873257160187, 0.26738715171813965, 0.31725209951400757, 0.2283359169960022, -0.10423523187637329, -0.04284026846289635, 0.3793017864227295, 0.004214210901409388, 0.6529353857040405, -0.1743399053812027, 0.03549233078956604, 0.4252309203147888, -0.11782430857419968, 0.25314760208129883, 0.6561619639396667, 0.11082128435373306, -0.12971629202365875, 0.26633313298225403, -0.051716502755880356, -0.12951385974884033, 0.32734614610671997, 0.020796438679099083, -0.3362400233745575, -0.052603259682655334, -0.02992131933569908, -0.13729751110076904, 0.010418055579066277, 0.32011887431144714, -0.03676123172044754, -0.16708312928676605, -0.0699450746178627, 0.5326876044273376, 0.27551430463790894, 0.16868562996387482, 0.30961933732032776, 0.09793560206890106, -0.15163768827915192, -0.23301953077316284, 0.18752340972423553, 1.0363699197769165, -0.18175873160362244, 0.1348760724067688, 0.2365761399269104, 0.14354602992534637, -0.029545828700065613, -0.2570059597492218, 0.33080920577049255, -0.25937697291374207, -0.39658892154693604, -0.25396668910980225, -0.1413373351097107, 0.24864470958709717, 0.09211234003305435, 0.3186844289302826, 0.2940901219844818, 0.14416462182998657, 0.01091798860579729, 0.04235022887587547, -0.019219091162085533, -0.2817930281162262, -0.31099969148635864, -0.5007683038711548, 0.06260748207569122, -0.041095152497291565, 0.580438494682312, -0.16123825311660767, -0.12794458866119385, -0.18903644382953644, -0.030287036672234535, -0.03705844655632973, 0.3009275496006012, -0.2347041517496109, 0.1349932998418808, -0.04424072802066803, -0.49342262744903564, -0.14557120203971863, 0.4456173777580261, 0.08575046062469482, -0.2637133002281189, -0.26062801480293274, 0.3505086600780487, -0.07311892509460449, -0.19286894798278809, 0.017975445836782455, -0.10910777002573013, -0.14112740755081177, -0.1512785404920578, 0.1349845677614212, -0.08414370566606522, -0.14231932163238525, -0.35683220624923706, -0.27012380957603455, -0.06699681282043457, -0.27996763586997986, -0.04548439010977745, -0.26465898752212524, 0.05238184332847595, 0.04304439574480057, -0.020229406654834747, 0.043968528509140015, 0.1505739539861679, -0.11828026175498962, 0.026479415595531464, 0.11949354410171509, -0.4309364855289459, -0.027901621535420418, 0.5984717607498169, -0.3182872235774994, -0.21648164093494415, 0.2697502672672272, 0.18418702483177185, 0.047357894480228424, -0.13907131552696228, 0.39564773440361023, 0.3742908239364624, -0.5853356122970581, 0.01721319928765297, -0.13103562593460083, 0.20623044669628143, 0.09364932030439377, 0.28696200251579285, 0.40500134229660034, -0.4055056571960449, 0.2294517606496811, -0.49061331152915955, -0.022133003920316696, 0.3766581416130066, -0.030695224180817604, 0.28284841775894165, -0.025744592770934105, -0.22615587711334229, 0.13188625872135162, -0.3666858971118927, -0.2243921309709549, 0.39640262722969055, -0.03099251352250576, -0.05134207010269165, 0.27654096484184265, 0.1092199757695198, 0.5288565754890442, 0.060997724533081055, 0.05777892842888832, 0.2188752144575119, -0.26735350489616394, -0.04220900312066078, 0.07026869058609009, 0.1751423180103302, 0.0311536006629467, -0.1865861564874649, 0.018807750195264816, -0.14554519951343536, -0.08651578426361084, -0.024734793230891228, 0.18483354151248932, 0.38724827766418457, 0.030788663774728775, -0.14747974276542664, -0.10982919484376907, 0.16634754836559296, -0.47092679142951965, 0.1061929315328598, 0.18980276584625244, 0.49242931604385376, 0.0212686937302351, -0.023613112047314644, -0.095186747610569, -0.08877986669540405, -0.3238072395324707, -0.08439578115940094, 0.28941649198532104, 0.28820541501045227, 0.3363099694252014, -0.3605221211910248, 0.3339119553565979, 0.1849840134382248, 0.22670979797840118, 0.3662351071834564, -0.2820643186569214, 0.11081914603710175, 0.03159194439649582, 0.12503881752490997, -0.026920730248093605, -0.11273554712533951, 0.10834995657205582, -0.081602081656456, -0.10202353447675705, 0.38890331983566284, 0.1993320882320404, 0.28527987003326416, 0.20681434869766235, -0.022217972204089165, 0.70029616355896, -0.047907039523124695, 0.22965164482593536, 0.4015386998653412, -0.08403906226158142, 0.14039281010627747, 0.2540927529335022, 0.33963122963905334, 0.11655484139919281, 0.4072639048099518, -0.21314361691474915, 0.5100000500679016, -0.0704321563243866, 0.4083871841430664, -0.38913777470588684, -0.4278740882873535, -0.22597238421440125, 0.2799410820007324, 0.17639553546905518, 0.18061140179634094, -0.27445054054260254, 0.2971877455711365, -0.49491822719573975, -0.014748286455869675, -0.4205291271209717, 0.15461504459381104, -0.06688911467790604, 0.018382785841822624, -0.26359957456588745, -0.37217825651168823, -0.14875607192516327, 0.04879678040742874, -0.14148646593093872, -0.15301726758480072, -0.03988661617040634, 0.07943608611822128, -0.045620981603860855, 0.08262787014245987, -0.13652387261390686, 0.2178894430398941, -0.04941962659358978, -0.17005231976509094, 0.48474830389022827, 0.07236352562904358, -0.014322496019303799, 0.21670211851596832, 0.20186854898929596, 0.18447215855121613, 0.06987673044204712, -0.10044937580823898, -0.11658786237239838, 0.2017824649810791, -0.046735648065805435, 0.1467270702123642, 0.09841898083686829, -0.01989847421646118, 0.040519412606954575, 0.29661619663238525, 0.16196222603321075, -0.05738828331232071, 0.19735905528068542, -0.07399632036685944, 0.30937641859054565, -0.04607841372489929, 0.02770588919520378, -0.40949341654777527, 0.15801550447940826, -0.15108831226825714, -0.2176128327846527, -0.10510677099227905, -0.16550689935684204, 0.09248825907707214, -0.13268709182739258, 0.0062673259526491165, 0.24565719068050385, 0.017953427508473396, 0.0025495311710983515, 0.27279791235923767, 0.49189430475234985, -0.2644316554069519, -0.5227892398834229, -0.25526076555252075, -0.7857866883277893, 0.15712900459766388, -0.03276083618402481, -0.23474562168121338, 0.045614566653966904, 0.16287194192409515, -0.0656059980392456, 0.21500977873802185, 0.30239248275756836, -0.0805269107222557, 0.333007276058197, 0.3020875155925751, -0.2846807837486267, -0.031846240162849426, 0.2175103724002838, 0.09619199484586716, -0.05528504401445389, -0.2977225184440613, -0.009798240847885609, 0.19656255841255188, -0.07209831476211548, -0.00043279543751850724, 0.0005192158278077841, -0.3038443624973297, -0.25959888100624084, 0.34663712978363037, -0.1283625364303589, 0.23551151156425476, 0.006928673479706049, -0.3553107678890228, -0.2619475722312927, -0.25856250524520874, 0.10818419605493546, 0.08175772428512573, 0.09719285368919373, 0.4771687090396881, -0.0876290500164032, 0.12166404724121094, -0.5112360715866089, 0.29543906450271606, 0.14253059029579163, -0.0016412459081038833, -0.3504883646965027, 0.10026165097951889, -0.29212042689323425, 0.05132058635354042, 0.28853604197502136, 0.375806987285614, 0.03828180953860283, 0.3379184305667877, -0.14137671887874603, -0.1874239146709442, 0.4719301462173462, 0.005781513638794422, -0.14038364589214325, 0.29020342230796814, 0.060074225068092346, 0.23427574336528778, -0.14330138266086578, -0.34266191720962524, 0.256020188331604, 0.08228463679552078, 0.02434728667140007, -0.005571741610765457, -0.015755217522382736, -0.20693042874336243, -0.19930966198444366, 0.14981980621814728, 0.23564156889915466, 0.10808365046977997, -0.16975000500679016, 0.15471823513507843, 0.04828653484582901 ]
https://github.com/huggingface/datasets/issues/407
MissingBeamOptions for Wikipedia 20200501.en
Fixed. Could you try again @mitchellgordon95 ? It was due a file not being updated on S3. We need to make sure all the datasets scripts get updated properly @julien-c
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available): ``` nlp.load_dataset('wikipedia', "20200501.en", split='train') ``` And now, having pulled master, I get: ``` Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd... Traceback (most recent call last): File "scripts/download.py", line 11, in <module> fire.Fire(download_pretrain) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire target=component.__name__) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "scripts/download.py", line 6, in download_pretrain nlp.load_dataset('wikipedia', "20200501.en", split='train') File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset save_infos=save_infos, File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')` ```
30
MissingBeamOptions for Wikipedia 20200501.en There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available): ``` nlp.load_dataset('wikipedia', "20200501.en", split='train') ``` And now, having pulled master, I get: ``` Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd... Traceback (most recent call last): File "scripts/download.py", line 11, in <module> fire.Fire(download_pretrain) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire target=component.__name__) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "scripts/download.py", line 6, in download_pretrain nlp.load_dataset('wikipedia', "20200501.en", split='train') File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset save_infos=save_infos, File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')` ``` Fixed. Could you try again @mitchellgordon95 ? It was due a file not being updated on S3. We need to make sure all the datasets scripts get updated properly @julien-c
[ 0.06661573052406311, 0.12667599320411682, -0.020512154325842857, -0.054233063012361526, 0.19961866736412048, 0.15268689393997192, 0.17997406423091888, 0.3656727373600006, -0.022209014743566513, -0.08142617344856262, 0.14893503487110138, 0.275381863117218, -0.09172654896974564, -0.1684224158525467, 0.2434723824262619, -0.3058639168739319, 0.14550329744815826, 0.12390217930078506, -0.35019949078559875, -0.12868280708789825, -0.0025925771333277225, 0.4125903248786926, -0.21142829954624176, -0.1782551258802414, -0.5298830270767212, 0.06315379589796066, -0.13151958584785461, 0.14280518889427185, -0.04379158839583397, -0.2499876767396927, 0.27792125940322876, 0.05930284783244133, -0.08272391557693481, 0.1222391128540039, -0.00011430803715484217, 0.07761107385158539, 0.6222481727600098, -0.22390590608119965, -0.5686731934547424, 0.01197732798755169, 0.13000087440013885, -0.3336528241634369, 0.38434380292892456, -0.25509852170944214, -0.2759363651275635, -0.1181296706199646, 0.114118292927742, -0.0585302859544754, 0.3938060402870178, -0.010935917496681213, 0.21362532675266266, 0.23605602979660034, 0.2972986102104187, -0.12914155423641205, 0.6020241379737854, 0.06741491705179214, -0.16625629365444183, 0.07933681458234787, -0.16387459635734558, -0.056476470082998276, -0.27104055881500244, 0.47979477047920227, 0.13871721923351288, -0.1370006799697876, 0.5526372194290161, -0.2816213071346283, 0.022621402516961098, -0.2574206292629242, 0.01745382882654667, 0.1826511174440384, 0.49401652812957764, -0.022984085604548454, -0.10636768490076065, -0.37467095255851746, 0.04460454732179642, 0.17873038351535797, 0.24808228015899658, 0.017208682373166084, -0.15328975021839142, -0.06720852106809616, 0.05121001601219177, -0.22957991063594818, -0.0332927331328392, 0.288751482963562, -0.06739380210638046, 0.42029234766960144, -0.028906337916851044, 0.02147100493311882, 0.16685408353805542, 0.04962276294827461, -0.31337252259254456, 0.03651856258511543, 0.09821445494890213, 0.23501600325107574, -0.2165130227804184, 0.06369750946760178, 0.2868841588497162, 0.2705264389514923, 0.06201435253024101, 0.16959412395954132, -0.27940070629119873, 0.1912725865840912, 0.020429888740181923, -0.04709150269627571, 0.21989329159259796, 0.2408231794834137, -0.04186556860804558, -0.35332053899765015, 0.2516734302043915, 0.33642181754112244, -0.0628027394413948, 0.13846443593502045, 0.19929148256778717, -0.1387367695569992, -0.27135592699050903, 0.13340236246585846, 0.009117130190134048, -0.17170260846614838, 0.10722747445106506, 0.05340873822569847, -0.27779436111450195, -0.14833344519138336, -0.23782388865947723, 0.3198891878128052, -0.02577468752861023, 0.4086228609085083, 0.2018829584121704, 0.11859258264303207, -0.28356191515922546, -0.2737647593021393, -0.19572502374649048, 0.021234115585684776, -0.4779026508331299, 0.025882145389914513, 0.387136310338974, -0.20970548689365387, 0.5165672302246094, 0.07585541903972626, -0.03628574684262276, 0.0592922642827034, -0.030197877436876297, 0.2644251883029938, -0.07258348166942596, 0.18102554976940155, 0.121226005256176, 0.29278066754341125, 0.20368444919586182, 0.019942699000239372, -0.05308639630675316, -0.32944411039352417, 0.07048410922288895, -0.2763877511024475, -0.2597140073776245, 0.1677168309688568, -0.31198805570602417, 0.15478964149951935, 0.047507040202617645, 0.1872275471687317, -0.025388002395629883, -0.18220272660255432, -0.09672720730304718, -0.12297075241804123, -0.05829186737537384, -0.14827391505241394, 0.5051090717315674, 0.40331342816352844, 0.029888080433011055, -0.3304649293422699, -0.062176138162612915, 0.10411552339792252, -0.10119838267564774, 0.011720890179276466, -0.15648195147514343, 0.5247730016708374, -0.2857879102230072, -0.1501886546611786, 0.2243136465549469, 0.05196836590766907, -0.2112267017364502, 0.14863081276416779, -0.01265739742666483, 0.2708984315395355, 0.09758850187063217, -0.05283558741211891, -0.067281074821949, 0.05180058628320694, 0.0919753685593605, 0.21845999360084534, 0.11319432407617569, 0.05293998867273331, -0.3270508348941803, -0.08778826147317886, -0.0076875402592122555, 0.07954829931259155, 0.3505386710166931, -0.05055486410856247, 0.06359471380710602, 0.5883678793907166, 0.2980864644050598, -0.13878247141838074, 0.22441419959068298, 0.4500526785850525, -0.28894251585006714, 0.1368466019630432, 0.24537235498428345, -0.05986218899488449, -0.46518751978874207, 0.12080097943544388, -0.14018332958221436, 0.43678972125053406, -0.18319326639175415, -0.0022144834510982037, -0.34671443700790405, -0.13671426475048065, -0.19681665301322937, -0.5165305733680725, 0.20651324093341827, 0.20344699919223785, -0.018576208502054214, 0.3046477735042572, 0.025430601090192795, 0.11620263755321503, -0.04044147580862045, 0.05688868463039398, -0.7796522378921509, 0.2145276665687561, -0.31155887246131897, -0.14111897349357605, -0.01922955922782421, 0.30816516280174255, 0.11504554748535156, -0.19354024529457092, -0.1284957081079483, 0.2234228253364563, -0.07892404496669769, 0.13419009745121002, 0.014886443503201008, -0.055087581276893616, 0.24042680859565735, -0.32110121846199036, 0.09848315268754959, 0.31225839257240295, -0.046305928379297256, -0.12724074721336365, -0.3034784197807312, 0.27991434931755066, 0.01822277158498764, 0.32264444231987, 0.03340320661664009, 0.0919322669506073, 0.15483669936656952, 0.07258348166942596, -0.233133465051651, -0.20265348255634308, 0.3785169720649719, 0.21760566532611847, 0.1366417557001114, -0.02352512627840042, 0.11496282368898392, 0.0045682452619075775, 0.17190232872962952, 0.06607964634895325, 0.011260142549872398, -0.08091578632593155, -0.4510025084018707, -0.24824167788028717, 0.35093119740486145, -0.08578946441411972, 0.08168509602546692, 0.2645474374294281, 0.05249498412013054, -0.016956500709056854, -0.12286844104528427, -0.20957815647125244, 0.19748806953430176, 0.11408761143684387, 0.3243005573749542, 0.08764627575874329, 0.14054295420646667, 0.19754445552825928, -0.3815251588821411, 0.19065947830677032, -0.177468404173851, 0.08713388442993164, -0.2838538885116577, -0.09798716008663177, -0.3540601134300232, -0.45146143436431885, -0.1052420437335968, 0.24881064891815186, -0.3974127471446991, -0.5874935984611511, -0.05695856735110283, 0.18909966945648193, -0.16337457299232483, 0.30572983622550964, -0.029364265501499176, -0.13036590814590454, 0.0741933137178421, 0.019791407510638237, -0.3342629671096802, -0.3922383785247803, -0.20006787776947021, 0.08615181595087051, 0.1043601781129837, -0.0021495912224054337, 0.29014477133750916, -0.002974265953525901, -0.027191950008273125, -0.4731690585613251, -0.575897753238678, 0.3161933720111847, -0.28385233879089355, 0.19026833772659302, 0.1779288947582245, 0.08815784752368927, -0.22568708658218384, -0.0587339773774147, 0.4069480895996094, -0.17011642456054688, -0.15046736598014832, -0.01616053469479084, -0.12778985500335693, 0.10100550949573517, -0.19234110414981842, -0.22173811495304108, 0.09537579119205475, -0.369291752576828, 0.015344197861850262, 0.09217265993356705, -0.18127845227718353, 0.4691087007522583, -0.10024912655353546, -0.006287571974098682, 0.10052655637264252, 0.1722678542137146, -0.24488021433353424, 0.0835745632648468, 0.34165990352630615, -0.30039823055267334, -0.456808865070343, 0.029568029567599297, -0.17355285584926605, 0.05717124789953232, 0.3189310133457184, -0.49978840351104736, -0.049677055329084396, 0.09412268549203873, 0.002468622988089919, -0.1354268342256546, 0.09424576163291931, 0.5044300556182861, 0.011422130279242992, -0.016861047595739365, -0.23263244330883026, -0.15191061794757843, -0.14951838552951813, -0.3148488700389862, 0.4269849956035614, -0.19236859679222107, 0.32359087467193604, -0.00367114320397377, 1.0987776517868042, -0.03266160935163498, 0.06560350954532623, 0.42243891954421997, 0.09330388903617859, 0.4521002471446991, -0.27595093846321106, -0.29672905802726746, 0.23235638439655304, -0.1486649215221405, 0.30133435130119324, 0.39190003275871277, -0.01473300065845251, -0.20506633818149567, -0.3653714060783386, 0.00914288405328989, -0.20908525586128235, -0.32286474108695984, 0.09011057764291763, -0.3193495273590088, 0.291395366191864, 0.16609075665473938, 0.23359662294387817, -0.0019366792403161526, -0.15771594643592834, 0.24411095678806305, 0.17091955244541168, 0.20703646540641785, 0.0695524662733078, 0.13792796432971954, -0.05609265714883804, -0.49867597222328186, 0.040960073471069336, 0.018963251262903214, -0.003006270620971918, 0.03895081579685211, -0.1371261030435562, 0.20203706622123718, 0.04538567736744881, 0.5689499378204346, -0.19774092733860016, -0.026344535872340202, 0.24905727803707123, 0.0347801111638546, -0.710780918598175, -0.027566738426685333, -0.05507427453994751, 0.19478416442871094, 0.28621840476989746, 0.17843502759933472, -0.3835535943508148, -0.22349265217781067, 0.31258338689804077, 0.06109941378235817, -0.0469837412238121, -0.026175014674663544, -0.29161882400512695, 0.006637500133365393, -0.42076507210731506, -0.1309032440185547, -0.15496768057346344, 0.14559641480445862, 0.07744278013706207, 0.16873110830783844, 0.08941449970006943, 0.028799347579479218, -0.13350799679756165, 0.10535107553005219, 0.278182715177536, 0.2502242624759674, -0.11148583889007568, 0.14096000790596008, 0.6523585915565491, -0.33775684237480164, 0.26288115978240967, 0.19822832942008972, 0.0455498993396759, 0.2173914909362793, -0.04006318375468254, -0.05903628468513489, 0.398735374212265, 0.028937363997101784, -0.04876293987035751, -0.20305271446704865, 0.009422455914318562, 0.09405387938022614, 0.2291380614042282, 0.35067152976989746, -0.2690444588661194, -0.13627655804157257, -0.27368444204330444, 0.5236555933952332, -0.017669599503278732, -0.011370792984962463, 0.06929399818181992, 0.06701324880123138, -0.3365369737148285, 0.3461078703403473, 0.24151857197284698, 0.7413398027420044, 0.038027919828891754, 0.39531832933425903, 0.2077922821044922, 0.3027874231338501, 0.8601713180541992, -0.36980506777763367, 0.18975114822387695, -0.17427486181259155, 0.22019939124584198, 0.04168691858649254, 0.035432618111371994, -0.19204288721084595, -0.1310461014509201, -0.09684289246797562, 0.38440603017807007, 0.3848447799682617, 0.41889044642448425, 0.07600043714046478, 0.2999128997325897, 0.07616474479436874, -0.3209705650806427, -0.19505324959754944, 0.12710808217525482, -0.2076169103384018, 0.5865815281867981, -0.376570463180542, -0.13086900115013123, -0.21080069243907928, -0.11665283143520355, -0.25054851174354553, 0.18855178356170654, -0.27470558881759644, 0.5069430470466614, -0.17828816175460815, -0.595997154712677, 0.021248329430818558, 0.11277646571397781, 0.14744703471660614, 0.08831065148115158, -0.40081655979156494, 0.36849716305732727, -0.19408930838108063, -0.23625826835632324, -0.10856229066848755, 0.20971469581127167, 0.4952661991119385, -0.1708499789237976, -0.061678797006607056, -0.06107217073440552, -0.24166710674762726, -0.2755623161792755, -0.2949694097042084, -0.06130506470799446, 0.002836261410266161, 0.10486907511949539, -0.08245281875133514, 0.1037248894572258, -0.01402842253446579, -0.2572489082813263, 0.1487521529197693, -0.11449085921049118, 0.037416890263557434, -0.1460699737071991, 0.10244528204202652, -0.10430782288312912, -0.07039766758680344, 0.49939703941345215, -0.002098279306665063, -0.12898415327072144, 0.5953384041786194, 0.34263017773628235, -0.11988021433353424, -0.11467264592647552, -0.09025705605745316, -0.1393837332725525, -0.47222575545310974, -0.12965647876262665, 0.012480365112423897, -0.053001612424850464, -0.05213279649615288, 0.24472106993198395, 0.18441160023212433, -0.16262347996234894, 0.07808646559715271, -0.1943446844816208, -0.2954612076282501, 0.25473830103874207, -0.3494713008403778, -0.04203891381621361, 0.13901899755001068, 0.10136689245700836, 0.33330488204956055, 0.014816347509622574, -0.29645663499832153, -0.21546459197998047, 0.05402808636426926, 0.2008087933063507, 0.3083440959453583, -0.11868833005428314, -0.05005441978573799, -0.12764835357666016, 0.12124425172805786, 0.02127114124596119, -0.18948578834533691, -0.23024065792560577, -0.031567905098199844, 0.1042666882276535, 0.046716779470443726, 0.08656760305166245, -0.07817696034908295, 0.11140942573547363, -0.03712974488735199, -0.2535362243652344, 0.052871767431497574, -0.2281830757856369, 0.12405373901128769, 0.1823156774044037, 0.11915827542543411, 0.1763526350259781, -0.12095291167497635, 0.015098626725375652, 0.048274144530296326, 0.14237484335899353, 0.053263142704963684, 0.01295663882046938, 0.22157953679561615, -0.011794346384704113, -0.16906386613845825, 0.10427486896514893, -0.18549980223178864, 0.28545963764190674, 0.2926936447620392, -0.0773172378540039, -0.2990323007106781, -0.027036605402827263, 0.29427412152290344, -0.03260832652449608, -0.052861057221889496, -0.0485745370388031, 0.010359278880059719, 0.1906128227710724, -0.21960890293121338, 0.26746028661727905, 0.5279882550239563, 0.1143718957901001, 0.055378496646881104, -0.07021307200193405, 0.37434548139572144, -0.02465977519750595, 0.33874964714050293, 0.17266099154949188, 0.1217525526881218, -0.11830949038267136, 0.24264207482337952, 0.21661463379859924, 0.3510863184928894, 0.056690867990255356, 0.023914262652397156, -0.030710024759173393, 0.23046240210533142, 0.23972225189208984, 0.12880833446979523, 0.27862897515296936, -0.08822863548994064, 0.09754885733127594, 0.030913446098566055, -0.06298374384641647, 0.16391286253929138, 0.33403560519218445, 0.18038687109947205, 0.14405210316181183, -0.12919391691684723, 0.5687990784645081, 0.10019413381814957, -0.3893405497074127, -0.23458236455917358, 0.2402319610118866, -0.11699622124433517, 0.07403122633695602, -0.31728413701057434, -0.1861780732870102, -0.2391938865184784, 0.15746480226516724, -0.10744044184684753, -0.12326635420322418, -0.05042979493737221, 0.21565574407577515, -0.19008353352546692, -0.47320184111595154, 0.21016936004161835, -0.03633848950266838, 0.33383694291114807, -0.07308263331651688, 0.1706409454345703, -0.06163642928004265, -0.27757689356803894, -0.07984640449285507, 0.28773507475852966, 0.2786320447921753, 0.10541677474975586, -0.3909922242164612, -0.12188655138015747, 0.1556939035654068, -0.06407511979341507, -0.15276490151882172, 0.08428389579057693, 0.26063042879104614, -0.10130349546670914, 0.26166415214538574, 0.09725316613912582, -0.2740938663482666, -0.12203693389892578, 0.09807538986206055, -0.05502224713563919, -0.12360027432441711, 0.013010730035603046, -0.31817173957824707, -0.1982584297657013, -0.12009415030479431, 0.006536480505019426, -0.4909355342388153, 0.16106924414634705, -0.00820714607834816, 0.19925282895565033, -0.05411979556083679, -0.2968486249446869, 0.08566580712795258, -0.13684631884098053, 0.5973780751228333, 0.3424447178840637, 0.1117994412779808, -0.1469999998807907, -0.5365692377090454, -0.5853416323661804, 0.20903003215789795, -0.0629919022321701, -0.04865696653723717, 0.0740431547164917, 0.1942419856786728, 0.2390599101781845, 0.16428054869174957, 0.0021004676818847656, -0.17929518222808838, 0.08896099776029587, -0.06625983119010925, -0.4647619426250458, -0.06455016136169434, -0.1904878169298172, -0.25890374183654785, -0.1246323511004448, 0.02410099469125271, -0.08804867416620255, 0.10577693581581116, 0.04879998043179512, -0.019923118874430656, -0.26405763626098633, 0.06166345998644829, -0.06827489286661148, 0.2982197105884552, -0.05190401151776314, 0.36819955706596375, -0.10127133131027222, -0.22035612165927887, -0.2901718020439148, -0.1561025232076645, -0.046298447996377945, 0.3026439845561981, -0.19343800842761993, 0.5210279226303101, -0.008360261097550392, -0.10020536184310913, -0.3288212716579437, 0.6905271410942078, 0.17339065670967102, 0.11755656450986862, -0.39232248067855835, 0.023907681927084923, -0.31167325377464294, 0.16229836642742157, 0.09101876616477966, 0.341185599565506, -0.27147823572158813, 0.17413589358329773, -0.4668038785457611, -0.4499908685684204, 0.24987134337425232, -0.45507296919822693, -0.09269766509532928, -0.004184722900390625, 0.115338996052742, -0.004739674739539623, -0.05710076913237572, -0.5571917295455933, 0.03359739109873772, 0.16372054815292358, 0.05430969223380089, -0.09074953198432922, 0.1095094233751297, -0.045588452368974686, -0.12089365720748901, -0.10418535023927689, -0.17841313779354095, 0.11568889766931534, -0.1695554405450821, -0.08987566083669662, -0.215139701962471 ]
https://github.com/huggingface/datasets/issues/407
MissingBeamOptions for Wikipedia 20200501.en
I found the same issue with almost any language other than English. (For English, it works). Will someone need to update the file on S3 again?
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available): ``` nlp.load_dataset('wikipedia', "20200501.en", split='train') ``` And now, having pulled master, I get: ``` Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd... Traceback (most recent call last): File "scripts/download.py", line 11, in <module> fire.Fire(download_pretrain) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire target=component.__name__) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "scripts/download.py", line 6, in download_pretrain nlp.load_dataset('wikipedia', "20200501.en", split='train') File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset save_infos=save_infos, File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')` ```
26
MissingBeamOptions for Wikipedia 20200501.en There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available): ``` nlp.load_dataset('wikipedia', "20200501.en", split='train') ``` And now, having pulled master, I get: ``` Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd... Traceback (most recent call last): File "scripts/download.py", line 11, in <module> fire.Fire(download_pretrain) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire target=component.__name__) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "scripts/download.py", line 6, in download_pretrain nlp.load_dataset('wikipedia', "20200501.en", split='train') File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset save_infos=save_infos, File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')` ``` I found the same issue with almost any language other than English. (For English, it works). Will someone need to update the file on S3 again?
[ 0.06661573052406311, 0.12667599320411682, -0.020512154325842857, -0.054233063012361526, 0.19961866736412048, 0.15268689393997192, 0.17997406423091888, 0.3656727373600006, -0.022209014743566513, -0.08142617344856262, 0.14893503487110138, 0.275381863117218, -0.09172654896974564, -0.1684224158525467, 0.2434723824262619, -0.3058639168739319, 0.14550329744815826, 0.12390217930078506, -0.35019949078559875, -0.12868280708789825, -0.0025925771333277225, 0.4125903248786926, -0.21142829954624176, -0.1782551258802414, -0.5298830270767212, 0.06315379589796066, -0.13151958584785461, 0.14280518889427185, -0.04379158839583397, -0.2499876767396927, 0.27792125940322876, 0.05930284783244133, -0.08272391557693481, 0.1222391128540039, -0.00011430803715484217, 0.07761107385158539, 0.6222481727600098, -0.22390590608119965, -0.5686731934547424, 0.01197732798755169, 0.13000087440013885, -0.3336528241634369, 0.38434380292892456, -0.25509852170944214, -0.2759363651275635, -0.1181296706199646, 0.114118292927742, -0.0585302859544754, 0.3938060402870178, -0.010935917496681213, 0.21362532675266266, 0.23605602979660034, 0.2972986102104187, -0.12914155423641205, 0.6020241379737854, 0.06741491705179214, -0.16625629365444183, 0.07933681458234787, -0.16387459635734558, -0.056476470082998276, -0.27104055881500244, 0.47979477047920227, 0.13871721923351288, -0.1370006799697876, 0.5526372194290161, -0.2816213071346283, 0.022621402516961098, -0.2574206292629242, 0.01745382882654667, 0.1826511174440384, 0.49401652812957764, -0.022984085604548454, -0.10636768490076065, -0.37467095255851746, 0.04460454732179642, 0.17873038351535797, 0.24808228015899658, 0.017208682373166084, -0.15328975021839142, -0.06720852106809616, 0.05121001601219177, -0.22957991063594818, -0.0332927331328392, 0.288751482963562, -0.06739380210638046, 0.42029234766960144, -0.028906337916851044, 0.02147100493311882, 0.16685408353805542, 0.04962276294827461, -0.31337252259254456, 0.03651856258511543, 0.09821445494890213, 0.23501600325107574, -0.2165130227804184, 0.06369750946760178, 0.2868841588497162, 0.2705264389514923, 0.06201435253024101, 0.16959412395954132, -0.27940070629119873, 0.1912725865840912, 0.020429888740181923, -0.04709150269627571, 0.21989329159259796, 0.2408231794834137, -0.04186556860804558, -0.35332053899765015, 0.2516734302043915, 0.33642181754112244, -0.0628027394413948, 0.13846443593502045, 0.19929148256778717, -0.1387367695569992, -0.27135592699050903, 0.13340236246585846, 0.009117130190134048, -0.17170260846614838, 0.10722747445106506, 0.05340873822569847, -0.27779436111450195, -0.14833344519138336, -0.23782388865947723, 0.3198891878128052, -0.02577468752861023, 0.4086228609085083, 0.2018829584121704, 0.11859258264303207, -0.28356191515922546, -0.2737647593021393, -0.19572502374649048, 0.021234115585684776, -0.4779026508331299, 0.025882145389914513, 0.387136310338974, -0.20970548689365387, 0.5165672302246094, 0.07585541903972626, -0.03628574684262276, 0.0592922642827034, -0.030197877436876297, 0.2644251883029938, -0.07258348166942596, 0.18102554976940155, 0.121226005256176, 0.29278066754341125, 0.20368444919586182, 0.019942699000239372, -0.05308639630675316, -0.32944411039352417, 0.07048410922288895, -0.2763877511024475, -0.2597140073776245, 0.1677168309688568, -0.31198805570602417, 0.15478964149951935, 0.047507040202617645, 0.1872275471687317, -0.025388002395629883, -0.18220272660255432, -0.09672720730304718, -0.12297075241804123, -0.05829186737537384, -0.14827391505241394, 0.5051090717315674, 0.40331342816352844, 0.029888080433011055, -0.3304649293422699, -0.062176138162612915, 0.10411552339792252, -0.10119838267564774, 0.011720890179276466, -0.15648195147514343, 0.5247730016708374, -0.2857879102230072, -0.1501886546611786, 0.2243136465549469, 0.05196836590766907, -0.2112267017364502, 0.14863081276416779, -0.01265739742666483, 0.2708984315395355, 0.09758850187063217, -0.05283558741211891, -0.067281074821949, 0.05180058628320694, 0.0919753685593605, 0.21845999360084534, 0.11319432407617569, 0.05293998867273331, -0.3270508348941803, -0.08778826147317886, -0.0076875402592122555, 0.07954829931259155, 0.3505386710166931, -0.05055486410856247, 0.06359471380710602, 0.5883678793907166, 0.2980864644050598, -0.13878247141838074, 0.22441419959068298, 0.4500526785850525, -0.28894251585006714, 0.1368466019630432, 0.24537235498428345, -0.05986218899488449, -0.46518751978874207, 0.12080097943544388, -0.14018332958221436, 0.43678972125053406, -0.18319326639175415, -0.0022144834510982037, -0.34671443700790405, -0.13671426475048065, -0.19681665301322937, -0.5165305733680725, 0.20651324093341827, 0.20344699919223785, -0.018576208502054214, 0.3046477735042572, 0.025430601090192795, 0.11620263755321503, -0.04044147580862045, 0.05688868463039398, -0.7796522378921509, 0.2145276665687561, -0.31155887246131897, -0.14111897349357605, -0.01922955922782421, 0.30816516280174255, 0.11504554748535156, -0.19354024529457092, -0.1284957081079483, 0.2234228253364563, -0.07892404496669769, 0.13419009745121002, 0.014886443503201008, -0.055087581276893616, 0.24042680859565735, -0.32110121846199036, 0.09848315268754959, 0.31225839257240295, -0.046305928379297256, -0.12724074721336365, -0.3034784197807312, 0.27991434931755066, 0.01822277158498764, 0.32264444231987, 0.03340320661664009, 0.0919322669506073, 0.15483669936656952, 0.07258348166942596, -0.233133465051651, -0.20265348255634308, 0.3785169720649719, 0.21760566532611847, 0.1366417557001114, -0.02352512627840042, 0.11496282368898392, 0.0045682452619075775, 0.17190232872962952, 0.06607964634895325, 0.011260142549872398, -0.08091578632593155, -0.4510025084018707, -0.24824167788028717, 0.35093119740486145, -0.08578946441411972, 0.08168509602546692, 0.2645474374294281, 0.05249498412013054, -0.016956500709056854, -0.12286844104528427, -0.20957815647125244, 0.19748806953430176, 0.11408761143684387, 0.3243005573749542, 0.08764627575874329, 0.14054295420646667, 0.19754445552825928, -0.3815251588821411, 0.19065947830677032, -0.177468404173851, 0.08713388442993164, -0.2838538885116577, -0.09798716008663177, -0.3540601134300232, -0.45146143436431885, -0.1052420437335968, 0.24881064891815186, -0.3974127471446991, -0.5874935984611511, -0.05695856735110283, 0.18909966945648193, -0.16337457299232483, 0.30572983622550964, -0.029364265501499176, -0.13036590814590454, 0.0741933137178421, 0.019791407510638237, -0.3342629671096802, -0.3922383785247803, -0.20006787776947021, 0.08615181595087051, 0.1043601781129837, -0.0021495912224054337, 0.29014477133750916, -0.002974265953525901, -0.027191950008273125, -0.4731690585613251, -0.575897753238678, 0.3161933720111847, -0.28385233879089355, 0.19026833772659302, 0.1779288947582245, 0.08815784752368927, -0.22568708658218384, -0.0587339773774147, 0.4069480895996094, -0.17011642456054688, -0.15046736598014832, -0.01616053469479084, -0.12778985500335693, 0.10100550949573517, -0.19234110414981842, -0.22173811495304108, 0.09537579119205475, -0.369291752576828, 0.015344197861850262, 0.09217265993356705, -0.18127845227718353, 0.4691087007522583, -0.10024912655353546, -0.006287571974098682, 0.10052655637264252, 0.1722678542137146, -0.24488021433353424, 0.0835745632648468, 0.34165990352630615, -0.30039823055267334, -0.456808865070343, 0.029568029567599297, -0.17355285584926605, 0.05717124789953232, 0.3189310133457184, -0.49978840351104736, -0.049677055329084396, 0.09412268549203873, 0.002468622988089919, -0.1354268342256546, 0.09424576163291931, 0.5044300556182861, 0.011422130279242992, -0.016861047595739365, -0.23263244330883026, -0.15191061794757843, -0.14951838552951813, -0.3148488700389862, 0.4269849956035614, -0.19236859679222107, 0.32359087467193604, -0.00367114320397377, 1.0987776517868042, -0.03266160935163498, 0.06560350954532623, 0.42243891954421997, 0.09330388903617859, 0.4521002471446991, -0.27595093846321106, -0.29672905802726746, 0.23235638439655304, -0.1486649215221405, 0.30133435130119324, 0.39190003275871277, -0.01473300065845251, -0.20506633818149567, -0.3653714060783386, 0.00914288405328989, -0.20908525586128235, -0.32286474108695984, 0.09011057764291763, -0.3193495273590088, 0.291395366191864, 0.16609075665473938, 0.23359662294387817, -0.0019366792403161526, -0.15771594643592834, 0.24411095678806305, 0.17091955244541168, 0.20703646540641785, 0.0695524662733078, 0.13792796432971954, -0.05609265714883804, -0.49867597222328186, 0.040960073471069336, 0.018963251262903214, -0.003006270620971918, 0.03895081579685211, -0.1371261030435562, 0.20203706622123718, 0.04538567736744881, 0.5689499378204346, -0.19774092733860016, -0.026344535872340202, 0.24905727803707123, 0.0347801111638546, -0.710780918598175, -0.027566738426685333, -0.05507427453994751, 0.19478416442871094, 0.28621840476989746, 0.17843502759933472, -0.3835535943508148, -0.22349265217781067, 0.31258338689804077, 0.06109941378235817, -0.0469837412238121, -0.026175014674663544, -0.29161882400512695, 0.006637500133365393, -0.42076507210731506, -0.1309032440185547, -0.15496768057346344, 0.14559641480445862, 0.07744278013706207, 0.16873110830783844, 0.08941449970006943, 0.028799347579479218, -0.13350799679756165, 0.10535107553005219, 0.278182715177536, 0.2502242624759674, -0.11148583889007568, 0.14096000790596008, 0.6523585915565491, -0.33775684237480164, 0.26288115978240967, 0.19822832942008972, 0.0455498993396759, 0.2173914909362793, -0.04006318375468254, -0.05903628468513489, 0.398735374212265, 0.028937363997101784, -0.04876293987035751, -0.20305271446704865, 0.009422455914318562, 0.09405387938022614, 0.2291380614042282, 0.35067152976989746, -0.2690444588661194, -0.13627655804157257, -0.27368444204330444, 0.5236555933952332, -0.017669599503278732, -0.011370792984962463, 0.06929399818181992, 0.06701324880123138, -0.3365369737148285, 0.3461078703403473, 0.24151857197284698, 0.7413398027420044, 0.038027919828891754, 0.39531832933425903, 0.2077922821044922, 0.3027874231338501, 0.8601713180541992, -0.36980506777763367, 0.18975114822387695, -0.17427486181259155, 0.22019939124584198, 0.04168691858649254, 0.035432618111371994, -0.19204288721084595, -0.1310461014509201, -0.09684289246797562, 0.38440603017807007, 0.3848447799682617, 0.41889044642448425, 0.07600043714046478, 0.2999128997325897, 0.07616474479436874, -0.3209705650806427, -0.19505324959754944, 0.12710808217525482, -0.2076169103384018, 0.5865815281867981, -0.376570463180542, -0.13086900115013123, -0.21080069243907928, -0.11665283143520355, -0.25054851174354553, 0.18855178356170654, -0.27470558881759644, 0.5069430470466614, -0.17828816175460815, -0.595997154712677, 0.021248329430818558, 0.11277646571397781, 0.14744703471660614, 0.08831065148115158, -0.40081655979156494, 0.36849716305732727, -0.19408930838108063, -0.23625826835632324, -0.10856229066848755, 0.20971469581127167, 0.4952661991119385, -0.1708499789237976, -0.061678797006607056, -0.06107217073440552, -0.24166710674762726, -0.2755623161792755, -0.2949694097042084, -0.06130506470799446, 0.002836261410266161, 0.10486907511949539, -0.08245281875133514, 0.1037248894572258, -0.01402842253446579, -0.2572489082813263, 0.1487521529197693, -0.11449085921049118, 0.037416890263557434, -0.1460699737071991, 0.10244528204202652, -0.10430782288312912, -0.07039766758680344, 0.49939703941345215, -0.002098279306665063, -0.12898415327072144, 0.5953384041786194, 0.34263017773628235, -0.11988021433353424, -0.11467264592647552, -0.09025705605745316, -0.1393837332725525, -0.47222575545310974, -0.12965647876262665, 0.012480365112423897, -0.053001612424850464, -0.05213279649615288, 0.24472106993198395, 0.18441160023212433, -0.16262347996234894, 0.07808646559715271, -0.1943446844816208, -0.2954612076282501, 0.25473830103874207, -0.3494713008403778, -0.04203891381621361, 0.13901899755001068, 0.10136689245700836, 0.33330488204956055, 0.014816347509622574, -0.29645663499832153, -0.21546459197998047, 0.05402808636426926, 0.2008087933063507, 0.3083440959453583, -0.11868833005428314, -0.05005441978573799, -0.12764835357666016, 0.12124425172805786, 0.02127114124596119, -0.18948578834533691, -0.23024065792560577, -0.031567905098199844, 0.1042666882276535, 0.046716779470443726, 0.08656760305166245, -0.07817696034908295, 0.11140942573547363, -0.03712974488735199, -0.2535362243652344, 0.052871767431497574, -0.2281830757856369, 0.12405373901128769, 0.1823156774044037, 0.11915827542543411, 0.1763526350259781, -0.12095291167497635, 0.015098626725375652, 0.048274144530296326, 0.14237484335899353, 0.053263142704963684, 0.01295663882046938, 0.22157953679561615, -0.011794346384704113, -0.16906386613845825, 0.10427486896514893, -0.18549980223178864, 0.28545963764190674, 0.2926936447620392, -0.0773172378540039, -0.2990323007106781, -0.027036605402827263, 0.29427412152290344, -0.03260832652449608, -0.052861057221889496, -0.0485745370388031, 0.010359278880059719, 0.1906128227710724, -0.21960890293121338, 0.26746028661727905, 0.5279882550239563, 0.1143718957901001, 0.055378496646881104, -0.07021307200193405, 0.37434548139572144, -0.02465977519750595, 0.33874964714050293, 0.17266099154949188, 0.1217525526881218, -0.11830949038267136, 0.24264207482337952, 0.21661463379859924, 0.3510863184928894, 0.056690867990255356, 0.023914262652397156, -0.030710024759173393, 0.23046240210533142, 0.23972225189208984, 0.12880833446979523, 0.27862897515296936, -0.08822863548994064, 0.09754885733127594, 0.030913446098566055, -0.06298374384641647, 0.16391286253929138, 0.33403560519218445, 0.18038687109947205, 0.14405210316181183, -0.12919391691684723, 0.5687990784645081, 0.10019413381814957, -0.3893405497074127, -0.23458236455917358, 0.2402319610118866, -0.11699622124433517, 0.07403122633695602, -0.31728413701057434, -0.1861780732870102, -0.2391938865184784, 0.15746480226516724, -0.10744044184684753, -0.12326635420322418, -0.05042979493737221, 0.21565574407577515, -0.19008353352546692, -0.47320184111595154, 0.21016936004161835, -0.03633848950266838, 0.33383694291114807, -0.07308263331651688, 0.1706409454345703, -0.06163642928004265, -0.27757689356803894, -0.07984640449285507, 0.28773507475852966, 0.2786320447921753, 0.10541677474975586, -0.3909922242164612, -0.12188655138015747, 0.1556939035654068, -0.06407511979341507, -0.15276490151882172, 0.08428389579057693, 0.26063042879104614, -0.10130349546670914, 0.26166415214538574, 0.09725316613912582, -0.2740938663482666, -0.12203693389892578, 0.09807538986206055, -0.05502224713563919, -0.12360027432441711, 0.013010730035603046, -0.31817173957824707, -0.1982584297657013, -0.12009415030479431, 0.006536480505019426, -0.4909355342388153, 0.16106924414634705, -0.00820714607834816, 0.19925282895565033, -0.05411979556083679, -0.2968486249446869, 0.08566580712795258, -0.13684631884098053, 0.5973780751228333, 0.3424447178840637, 0.1117994412779808, -0.1469999998807907, -0.5365692377090454, -0.5853416323661804, 0.20903003215789795, -0.0629919022321701, -0.04865696653723717, 0.0740431547164917, 0.1942419856786728, 0.2390599101781845, 0.16428054869174957, 0.0021004676818847656, -0.17929518222808838, 0.08896099776029587, -0.06625983119010925, -0.4647619426250458, -0.06455016136169434, -0.1904878169298172, -0.25890374183654785, -0.1246323511004448, 0.02410099469125271, -0.08804867416620255, 0.10577693581581116, 0.04879998043179512, -0.019923118874430656, -0.26405763626098633, 0.06166345998644829, -0.06827489286661148, 0.2982197105884552, -0.05190401151776314, 0.36819955706596375, -0.10127133131027222, -0.22035612165927887, -0.2901718020439148, -0.1561025232076645, -0.046298447996377945, 0.3026439845561981, -0.19343800842761993, 0.5210279226303101, -0.008360261097550392, -0.10020536184310913, -0.3288212716579437, 0.6905271410942078, 0.17339065670967102, 0.11755656450986862, -0.39232248067855835, 0.023907681927084923, -0.31167325377464294, 0.16229836642742157, 0.09101876616477966, 0.341185599565506, -0.27147823572158813, 0.17413589358329773, -0.4668038785457611, -0.4499908685684204, 0.24987134337425232, -0.45507296919822693, -0.09269766509532928, -0.004184722900390625, 0.115338996052742, -0.004739674739539623, -0.05710076913237572, -0.5571917295455933, 0.03359739109873772, 0.16372054815292358, 0.05430969223380089, -0.09074953198432922, 0.1095094233751297, -0.045588452368974686, -0.12089365720748901, -0.10418535023927689, -0.17841313779354095, 0.11568889766931534, -0.1695554405450821, -0.08987566083669662, -0.215139701962471 ]
https://github.com/huggingface/datasets/issues/407
MissingBeamOptions for Wikipedia 20200501.en
This is because only some languages are already preprocessed (en, de, fr, it) and stored on our google storage. We plan to have a systematic way to preprocess more wikipedia languages in the future. For the other languages you have to process them on your side using apache beam. That's why the lib asks for a Beam runner.
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available): ``` nlp.load_dataset('wikipedia', "20200501.en", split='train') ``` And now, having pulled master, I get: ``` Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd... Traceback (most recent call last): File "scripts/download.py", line 11, in <module> fire.Fire(download_pretrain) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire target=component.__name__) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "scripts/download.py", line 6, in download_pretrain nlp.load_dataset('wikipedia', "20200501.en", split='train') File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset save_infos=save_infos, File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')` ```
58
MissingBeamOptions for Wikipedia 20200501.en There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available): ``` nlp.load_dataset('wikipedia', "20200501.en", split='train') ``` And now, having pulled master, I get: ``` Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd... Traceback (most recent call last): File "scripts/download.py", line 11, in <module> fire.Fire(download_pretrain) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire target=component.__name__) File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "scripts/download.py", line 6, in download_pretrain nlp.load_dataset('wikipedia', "20200501.en", split='train') File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset save_infos=save_infos, File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, S park, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.en', beam_runner='DirectRunner')` ``` This is because only some languages are already preprocessed (en, de, fr, it) and stored on our google storage. We plan to have a systematic way to preprocess more wikipedia languages in the future. For the other languages you have to process them on your side using apache beam. That's why the lib asks for a Beam runner.
[ 0.06661573052406311, 0.12667599320411682, -0.020512154325842857, -0.054233063012361526, 0.19961866736412048, 0.15268689393997192, 0.17997406423091888, 0.3656727373600006, -0.022209014743566513, -0.08142617344856262, 0.14893503487110138, 0.275381863117218, -0.09172654896974564, -0.1684224158525467, 0.2434723824262619, -0.3058639168739319, 0.14550329744815826, 0.12390217930078506, -0.35019949078559875, -0.12868280708789825, -0.0025925771333277225, 0.4125903248786926, -0.21142829954624176, -0.1782551258802414, -0.5298830270767212, 0.06315379589796066, -0.13151958584785461, 0.14280518889427185, -0.04379158839583397, -0.2499876767396927, 0.27792125940322876, 0.05930284783244133, -0.08272391557693481, 0.1222391128540039, -0.00011430803715484217, 0.07761107385158539, 0.6222481727600098, -0.22390590608119965, -0.5686731934547424, 0.01197732798755169, 0.13000087440013885, -0.3336528241634369, 0.38434380292892456, -0.25509852170944214, -0.2759363651275635, -0.1181296706199646, 0.114118292927742, -0.0585302859544754, 0.3938060402870178, -0.010935917496681213, 0.21362532675266266, 0.23605602979660034, 0.2972986102104187, -0.12914155423641205, 0.6020241379737854, 0.06741491705179214, -0.16625629365444183, 0.07933681458234787, -0.16387459635734558, -0.056476470082998276, -0.27104055881500244, 0.47979477047920227, 0.13871721923351288, -0.1370006799697876, 0.5526372194290161, -0.2816213071346283, 0.022621402516961098, -0.2574206292629242, 0.01745382882654667, 0.1826511174440384, 0.49401652812957764, -0.022984085604548454, -0.10636768490076065, -0.37467095255851746, 0.04460454732179642, 0.17873038351535797, 0.24808228015899658, 0.017208682373166084, -0.15328975021839142, -0.06720852106809616, 0.05121001601219177, -0.22957991063594818, -0.0332927331328392, 0.288751482963562, -0.06739380210638046, 0.42029234766960144, -0.028906337916851044, 0.02147100493311882, 0.16685408353805542, 0.04962276294827461, -0.31337252259254456, 0.03651856258511543, 0.09821445494890213, 0.23501600325107574, -0.2165130227804184, 0.06369750946760178, 0.2868841588497162, 0.2705264389514923, 0.06201435253024101, 0.16959412395954132, -0.27940070629119873, 0.1912725865840912, 0.020429888740181923, -0.04709150269627571, 0.21989329159259796, 0.2408231794834137, -0.04186556860804558, -0.35332053899765015, 0.2516734302043915, 0.33642181754112244, -0.0628027394413948, 0.13846443593502045, 0.19929148256778717, -0.1387367695569992, -0.27135592699050903, 0.13340236246585846, 0.009117130190134048, -0.17170260846614838, 0.10722747445106506, 0.05340873822569847, -0.27779436111450195, -0.14833344519138336, -0.23782388865947723, 0.3198891878128052, -0.02577468752861023, 0.4086228609085083, 0.2018829584121704, 0.11859258264303207, -0.28356191515922546, -0.2737647593021393, -0.19572502374649048, 0.021234115585684776, -0.4779026508331299, 0.025882145389914513, 0.387136310338974, -0.20970548689365387, 0.5165672302246094, 0.07585541903972626, -0.03628574684262276, 0.0592922642827034, -0.030197877436876297, 0.2644251883029938, -0.07258348166942596, 0.18102554976940155, 0.121226005256176, 0.29278066754341125, 0.20368444919586182, 0.019942699000239372, -0.05308639630675316, -0.32944411039352417, 0.07048410922288895, -0.2763877511024475, -0.2597140073776245, 0.1677168309688568, -0.31198805570602417, 0.15478964149951935, 0.047507040202617645, 0.1872275471687317, -0.025388002395629883, -0.18220272660255432, -0.09672720730304718, -0.12297075241804123, -0.05829186737537384, -0.14827391505241394, 0.5051090717315674, 0.40331342816352844, 0.029888080433011055, -0.3304649293422699, -0.062176138162612915, 0.10411552339792252, -0.10119838267564774, 0.011720890179276466, -0.15648195147514343, 0.5247730016708374, -0.2857879102230072, -0.1501886546611786, 0.2243136465549469, 0.05196836590766907, -0.2112267017364502, 0.14863081276416779, -0.01265739742666483, 0.2708984315395355, 0.09758850187063217, -0.05283558741211891, -0.067281074821949, 0.05180058628320694, 0.0919753685593605, 0.21845999360084534, 0.11319432407617569, 0.05293998867273331, -0.3270508348941803, -0.08778826147317886, -0.0076875402592122555, 0.07954829931259155, 0.3505386710166931, -0.05055486410856247, 0.06359471380710602, 0.5883678793907166, 0.2980864644050598, -0.13878247141838074, 0.22441419959068298, 0.4500526785850525, -0.28894251585006714, 0.1368466019630432, 0.24537235498428345, -0.05986218899488449, -0.46518751978874207, 0.12080097943544388, -0.14018332958221436, 0.43678972125053406, -0.18319326639175415, -0.0022144834510982037, -0.34671443700790405, -0.13671426475048065, -0.19681665301322937, -0.5165305733680725, 0.20651324093341827, 0.20344699919223785, -0.018576208502054214, 0.3046477735042572, 0.025430601090192795, 0.11620263755321503, -0.04044147580862045, 0.05688868463039398, -0.7796522378921509, 0.2145276665687561, -0.31155887246131897, -0.14111897349357605, -0.01922955922782421, 0.30816516280174255, 0.11504554748535156, -0.19354024529457092, -0.1284957081079483, 0.2234228253364563, -0.07892404496669769, 0.13419009745121002, 0.014886443503201008, -0.055087581276893616, 0.24042680859565735, -0.32110121846199036, 0.09848315268754959, 0.31225839257240295, -0.046305928379297256, -0.12724074721336365, -0.3034784197807312, 0.27991434931755066, 0.01822277158498764, 0.32264444231987, 0.03340320661664009, 0.0919322669506073, 0.15483669936656952, 0.07258348166942596, -0.233133465051651, -0.20265348255634308, 0.3785169720649719, 0.21760566532611847, 0.1366417557001114, -0.02352512627840042, 0.11496282368898392, 0.0045682452619075775, 0.17190232872962952, 0.06607964634895325, 0.011260142549872398, -0.08091578632593155, -0.4510025084018707, -0.24824167788028717, 0.35093119740486145, -0.08578946441411972, 0.08168509602546692, 0.2645474374294281, 0.05249498412013054, -0.016956500709056854, -0.12286844104528427, -0.20957815647125244, 0.19748806953430176, 0.11408761143684387, 0.3243005573749542, 0.08764627575874329, 0.14054295420646667, 0.19754445552825928, -0.3815251588821411, 0.19065947830677032, -0.177468404173851, 0.08713388442993164, -0.2838538885116577, -0.09798716008663177, -0.3540601134300232, -0.45146143436431885, -0.1052420437335968, 0.24881064891815186, -0.3974127471446991, -0.5874935984611511, -0.05695856735110283, 0.18909966945648193, -0.16337457299232483, 0.30572983622550964, -0.029364265501499176, -0.13036590814590454, 0.0741933137178421, 0.019791407510638237, -0.3342629671096802, -0.3922383785247803, -0.20006787776947021, 0.08615181595087051, 0.1043601781129837, -0.0021495912224054337, 0.29014477133750916, -0.002974265953525901, -0.027191950008273125, -0.4731690585613251, -0.575897753238678, 0.3161933720111847, -0.28385233879089355, 0.19026833772659302, 0.1779288947582245, 0.08815784752368927, -0.22568708658218384, -0.0587339773774147, 0.4069480895996094, -0.17011642456054688, -0.15046736598014832, -0.01616053469479084, -0.12778985500335693, 0.10100550949573517, -0.19234110414981842, -0.22173811495304108, 0.09537579119205475, -0.369291752576828, 0.015344197861850262, 0.09217265993356705, -0.18127845227718353, 0.4691087007522583, -0.10024912655353546, -0.006287571974098682, 0.10052655637264252, 0.1722678542137146, -0.24488021433353424, 0.0835745632648468, 0.34165990352630615, -0.30039823055267334, -0.456808865070343, 0.029568029567599297, -0.17355285584926605, 0.05717124789953232, 0.3189310133457184, -0.49978840351104736, -0.049677055329084396, 0.09412268549203873, 0.002468622988089919, -0.1354268342256546, 0.09424576163291931, 0.5044300556182861, 0.011422130279242992, -0.016861047595739365, -0.23263244330883026, -0.15191061794757843, -0.14951838552951813, -0.3148488700389862, 0.4269849956035614, -0.19236859679222107, 0.32359087467193604, -0.00367114320397377, 1.0987776517868042, -0.03266160935163498, 0.06560350954532623, 0.42243891954421997, 0.09330388903617859, 0.4521002471446991, -0.27595093846321106, -0.29672905802726746, 0.23235638439655304, -0.1486649215221405, 0.30133435130119324, 0.39190003275871277, -0.01473300065845251, -0.20506633818149567, -0.3653714060783386, 0.00914288405328989, -0.20908525586128235, -0.32286474108695984, 0.09011057764291763, -0.3193495273590088, 0.291395366191864, 0.16609075665473938, 0.23359662294387817, -0.0019366792403161526, -0.15771594643592834, 0.24411095678806305, 0.17091955244541168, 0.20703646540641785, 0.0695524662733078, 0.13792796432971954, -0.05609265714883804, -0.49867597222328186, 0.040960073471069336, 0.018963251262903214, -0.003006270620971918, 0.03895081579685211, -0.1371261030435562, 0.20203706622123718, 0.04538567736744881, 0.5689499378204346, -0.19774092733860016, -0.026344535872340202, 0.24905727803707123, 0.0347801111638546, -0.710780918598175, -0.027566738426685333, -0.05507427453994751, 0.19478416442871094, 0.28621840476989746, 0.17843502759933472, -0.3835535943508148, -0.22349265217781067, 0.31258338689804077, 0.06109941378235817, -0.0469837412238121, -0.026175014674663544, -0.29161882400512695, 0.006637500133365393, -0.42076507210731506, -0.1309032440185547, -0.15496768057346344, 0.14559641480445862, 0.07744278013706207, 0.16873110830783844, 0.08941449970006943, 0.028799347579479218, -0.13350799679756165, 0.10535107553005219, 0.278182715177536, 0.2502242624759674, -0.11148583889007568, 0.14096000790596008, 0.6523585915565491, -0.33775684237480164, 0.26288115978240967, 0.19822832942008972, 0.0455498993396759, 0.2173914909362793, -0.04006318375468254, -0.05903628468513489, 0.398735374212265, 0.028937363997101784, -0.04876293987035751, -0.20305271446704865, 0.009422455914318562, 0.09405387938022614, 0.2291380614042282, 0.35067152976989746, -0.2690444588661194, -0.13627655804157257, -0.27368444204330444, 0.5236555933952332, -0.017669599503278732, -0.011370792984962463, 0.06929399818181992, 0.06701324880123138, -0.3365369737148285, 0.3461078703403473, 0.24151857197284698, 0.7413398027420044, 0.038027919828891754, 0.39531832933425903, 0.2077922821044922, 0.3027874231338501, 0.8601713180541992, -0.36980506777763367, 0.18975114822387695, -0.17427486181259155, 0.22019939124584198, 0.04168691858649254, 0.035432618111371994, -0.19204288721084595, -0.1310461014509201, -0.09684289246797562, 0.38440603017807007, 0.3848447799682617, 0.41889044642448425, 0.07600043714046478, 0.2999128997325897, 0.07616474479436874, -0.3209705650806427, -0.19505324959754944, 0.12710808217525482, -0.2076169103384018, 0.5865815281867981, -0.376570463180542, -0.13086900115013123, -0.21080069243907928, -0.11665283143520355, -0.25054851174354553, 0.18855178356170654, -0.27470558881759644, 0.5069430470466614, -0.17828816175460815, -0.595997154712677, 0.021248329430818558, 0.11277646571397781, 0.14744703471660614, 0.08831065148115158, -0.40081655979156494, 0.36849716305732727, -0.19408930838108063, -0.23625826835632324, -0.10856229066848755, 0.20971469581127167, 0.4952661991119385, -0.1708499789237976, -0.061678797006607056, -0.06107217073440552, -0.24166710674762726, -0.2755623161792755, -0.2949694097042084, -0.06130506470799446, 0.002836261410266161, 0.10486907511949539, -0.08245281875133514, 0.1037248894572258, -0.01402842253446579, -0.2572489082813263, 0.1487521529197693, -0.11449085921049118, 0.037416890263557434, -0.1460699737071991, 0.10244528204202652, -0.10430782288312912, -0.07039766758680344, 0.49939703941345215, -0.002098279306665063, -0.12898415327072144, 0.5953384041786194, 0.34263017773628235, -0.11988021433353424, -0.11467264592647552, -0.09025705605745316, -0.1393837332725525, -0.47222575545310974, -0.12965647876262665, 0.012480365112423897, -0.053001612424850464, -0.05213279649615288, 0.24472106993198395, 0.18441160023212433, -0.16262347996234894, 0.07808646559715271, -0.1943446844816208, -0.2954612076282501, 0.25473830103874207, -0.3494713008403778, -0.04203891381621361, 0.13901899755001068, 0.10136689245700836, 0.33330488204956055, 0.014816347509622574, -0.29645663499832153, -0.21546459197998047, 0.05402808636426926, 0.2008087933063507, 0.3083440959453583, -0.11868833005428314, -0.05005441978573799, -0.12764835357666016, 0.12124425172805786, 0.02127114124596119, -0.18948578834533691, -0.23024065792560577, -0.031567905098199844, 0.1042666882276535, 0.046716779470443726, 0.08656760305166245, -0.07817696034908295, 0.11140942573547363, -0.03712974488735199, -0.2535362243652344, 0.052871767431497574, -0.2281830757856369, 0.12405373901128769, 0.1823156774044037, 0.11915827542543411, 0.1763526350259781, -0.12095291167497635, 0.015098626725375652, 0.048274144530296326, 0.14237484335899353, 0.053263142704963684, 0.01295663882046938, 0.22157953679561615, -0.011794346384704113, -0.16906386613845825, 0.10427486896514893, -0.18549980223178864, 0.28545963764190674, 0.2926936447620392, -0.0773172378540039, -0.2990323007106781, -0.027036605402827263, 0.29427412152290344, -0.03260832652449608, -0.052861057221889496, -0.0485745370388031, 0.010359278880059719, 0.1906128227710724, -0.21960890293121338, 0.26746028661727905, 0.5279882550239563, 0.1143718957901001, 0.055378496646881104, -0.07021307200193405, 0.37434548139572144, -0.02465977519750595, 0.33874964714050293, 0.17266099154949188, 0.1217525526881218, -0.11830949038267136, 0.24264207482337952, 0.21661463379859924, 0.3510863184928894, 0.056690867990255356, 0.023914262652397156, -0.030710024759173393, 0.23046240210533142, 0.23972225189208984, 0.12880833446979523, 0.27862897515296936, -0.08822863548994064, 0.09754885733127594, 0.030913446098566055, -0.06298374384641647, 0.16391286253929138, 0.33403560519218445, 0.18038687109947205, 0.14405210316181183, -0.12919391691684723, 0.5687990784645081, 0.10019413381814957, -0.3893405497074127, -0.23458236455917358, 0.2402319610118866, -0.11699622124433517, 0.07403122633695602, -0.31728413701057434, -0.1861780732870102, -0.2391938865184784, 0.15746480226516724, -0.10744044184684753, -0.12326635420322418, -0.05042979493737221, 0.21565574407577515, -0.19008353352546692, -0.47320184111595154, 0.21016936004161835, -0.03633848950266838, 0.33383694291114807, -0.07308263331651688, 0.1706409454345703, -0.06163642928004265, -0.27757689356803894, -0.07984640449285507, 0.28773507475852966, 0.2786320447921753, 0.10541677474975586, -0.3909922242164612, -0.12188655138015747, 0.1556939035654068, -0.06407511979341507, -0.15276490151882172, 0.08428389579057693, 0.26063042879104614, -0.10130349546670914, 0.26166415214538574, 0.09725316613912582, -0.2740938663482666, -0.12203693389892578, 0.09807538986206055, -0.05502224713563919, -0.12360027432441711, 0.013010730035603046, -0.31817173957824707, -0.1982584297657013, -0.12009415030479431, 0.006536480505019426, -0.4909355342388153, 0.16106924414634705, -0.00820714607834816, 0.19925282895565033, -0.05411979556083679, -0.2968486249446869, 0.08566580712795258, -0.13684631884098053, 0.5973780751228333, 0.3424447178840637, 0.1117994412779808, -0.1469999998807907, -0.5365692377090454, -0.5853416323661804, 0.20903003215789795, -0.0629919022321701, -0.04865696653723717, 0.0740431547164917, 0.1942419856786728, 0.2390599101781845, 0.16428054869174957, 0.0021004676818847656, -0.17929518222808838, 0.08896099776029587, -0.06625983119010925, -0.4647619426250458, -0.06455016136169434, -0.1904878169298172, -0.25890374183654785, -0.1246323511004448, 0.02410099469125271, -0.08804867416620255, 0.10577693581581116, 0.04879998043179512, -0.019923118874430656, -0.26405763626098633, 0.06166345998644829, -0.06827489286661148, 0.2982197105884552, -0.05190401151776314, 0.36819955706596375, -0.10127133131027222, -0.22035612165927887, -0.2901718020439148, -0.1561025232076645, -0.046298447996377945, 0.3026439845561981, -0.19343800842761993, 0.5210279226303101, -0.008360261097550392, -0.10020536184310913, -0.3288212716579437, 0.6905271410942078, 0.17339065670967102, 0.11755656450986862, -0.39232248067855835, 0.023907681927084923, -0.31167325377464294, 0.16229836642742157, 0.09101876616477966, 0.341185599565506, -0.27147823572158813, 0.17413589358329773, -0.4668038785457611, -0.4499908685684204, 0.24987134337425232, -0.45507296919822693, -0.09269766509532928, -0.004184722900390625, 0.115338996052742, -0.004739674739539623, -0.05710076913237572, -0.5571917295455933, 0.03359739109873772, 0.16372054815292358, 0.05430969223380089, -0.09074953198432922, 0.1095094233751297, -0.045588452368974686, -0.12089365720748901, -0.10418535023927689, -0.17841313779354095, 0.11568889766931534, -0.1695554405450821, -0.08987566083669662, -0.215139701962471 ]
https://github.com/huggingface/datasets/issues/406
Faster Shuffling?
I think the slowness here probably come from the fact that we are copying from and to python. @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think?
Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
51
Faster Shuffling? Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) I think the slowness here probably come from the fact that we are copying from and to python. @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think?
[ -0.10384879261255264, 0.04853000491857529, -0.03246064484119415, -0.12386837601661682, -0.07871051877737045, -0.13932090997695923, 0.11683791875839233, 0.5494189858436584, -0.2944587171077728, 0.08318302780389786, -0.015448157675564289, 0.5307007431983948, -0.1336488276720047, -0.2611565887928009, 0.16786199808120728, -0.09260394424200058, 0.060632530599832535, -0.07314600050449371, -0.2566210627555847, -0.09112726151943207, -0.10026231408119202, -0.39605912566185, -0.21078051626682281, -0.20468391478061676, -0.007431102450937033, -0.24361704289913177, -0.23690517246723175, 0.1180211678147316, -0.18448419868946075, 0.084598608314991, -0.1934024840593338, 0.23161280155181885, -0.12379343807697296, 0.2456139475107193, -0.00011484538117656484, -0.1855442374944687, 0.07731783390045166, 0.13370877504348755, -0.32807058095932007, 0.15748798847198486, 0.4777601659297943, -0.06233504042029381, -0.10906922072172165, -0.20446419715881348, 0.16245907545089722, -0.3435186743736267, 0.11615177243947983, -0.07582254707813263, -0.08991307020187378, -0.03750959038734436, 0.1314271241426468, 0.38011622428894043, -0.19889582693576813, 0.2204277664422989, 0.48175302147865295, 0.21349357068538666, -0.35807710886001587, 0.3437616527080536, 0.39566999673843384, -0.07496879994869232, -0.14648865163326263, 0.26469412446022034, -0.18782103061676025, -0.039497070014476776, 0.2072628289461136, 0.13425838947296143, 0.12855178117752075, 0.3230398893356323, 0.10727276653051376, 0.3726657032966614, 0.30133211612701416, -0.20002023875713348, -0.35485363006591797, -0.2874729037284851, 0.203555628657341, -0.030812369659543037, 0.07917868345975876, 0.28572025895118713, -0.2808455228805542, -0.1876985877752304, -0.12404460459947586, 0.10415996611118317, 0.23302116990089417, -0.23027141392230988, 0.32012253999710083, 0.41781407594680786, 0.23731380701065063, -0.09983108192682266, 0.6690919995307922, -0.09531493484973907, 0.5340384244918823, -0.17935653030872345, 0.07010332494974136, 0.40546634793281555, -0.2878308892250061, -0.28923672437667847, -0.19909179210662842, -0.0882902517914772, -0.13594618439674377, 0.1803562343120575, 0.6696792244911194, 0.2038077414035797, 0.20099720358848572, -0.05430086329579353, 0.08218956738710403, -0.01593038998544216, -0.31686919927597046, 0.15699149668216705, -0.0950157567858696, 0.08423719555139542, 0.2574743628501892, 0.09189507365226746, -0.071773961186409, -0.300760418176651, -0.04482240602374077, -0.21457421779632568, -0.4414110481739044, 0.10365935415029526, 0.03235093131661415, -0.29186105728149414, -0.09601306915283203, -0.06794613599777222, 0.012575630098581314, 0.2145962119102478, -0.17452777922153473, 0.2548378109931946, -0.06501005589962006, -0.1067526564002037, -0.15315167605876923, 0.05289972573518753, -0.0397011935710907, 0.10250360518693924, -0.07590225338935852, 0.0010083193192258477, 0.019383665174245834, 0.38557788729667664, -0.25666922330856323, 0.07151178270578384, 0.1983615607023239, 0.33333641290664673, 0.03903205320239067, -0.1371050626039505, 0.08120019733905792, 0.11646497249603271, -0.12959280610084534, -0.16260164976119995, -0.10904157906770706, 0.056350260972976685, -0.3282536268234253, 0.395687460899353, -0.028289014473557472, -0.14977802336215973, 0.13973964750766754, 0.1568015217781067, 0.2815755605697632, -0.28441154956817627, -0.4706711769104004, -0.07426175475120544, 0.003281204029917717, -0.03290576487779617, 0.07837430387735367, -0.10771676898002625, 0.1294032633304596, -0.14610908925533295, 0.0069923861883580685, -0.20682963728904724, -0.03138318285346031, 0.1186729446053505, 0.01813311129808426, 0.533656120300293, 0.433685302734375, 0.6766954660415649, -0.08356497436761856, 0.08880914002656937, 0.1313968449831009, -0.03256665915250778, 0.7245675921440125, 0.17529471218585968, -0.1763676255941391, 0.030356839299201965, -0.07774093747138977, 0.07237060368061066, 0.4168795347213745, 0.18786358833312988, 0.049996376037597656, -0.14467114210128784, 0.4556984603404999, 0.28588634729385376, 0.0005497104721143842, 0.2795185148715973, -0.5462663173675537, -0.1266951858997345, 0.2373046576976776, 0.4326198697090149, -0.49916017055511475, -0.31791767477989197, -0.01062772050499916, -0.32047489285469055, 0.32343971729278564, -0.2063719779253006, -0.11092212051153183, 0.05199289321899414, -0.02802339382469654, 0.08889320492744446, -0.15185754001140594, 0.0710437223315239, -0.19893936812877655, -0.0571107491850853, -0.029155267402529716, -0.02169768512248993, 0.24268777668476105, -0.35577890276908875, 0.1991184502840042, -0.1732151210308075, 0.11946947127580643, 0.16991069912910461, -0.0024227106478065252, -0.2069246917963028, 0.3986496031284332, -0.10005474090576172, -0.07989329099655151, -0.01610046625137329, -0.25698041915893555, 0.08421361446380615, -0.16890449821949005, -0.11169639229774475, 0.04518915340304375, -0.21436907351016998, 0.15801747143268585, 0.3718031644821167, -0.2997276484966278, 0.04967637360095978, 0.10271567106246948, 0.21427136659622192, -0.07665283977985382, -0.12327846139669418, 0.09103485196828842, 0.19820769131183624, -0.06377102434635162, 0.2575591206550598, 0.18422098457813263, -0.16609390079975128, 0.15149417519569397, -0.034502752125263214, -0.32894206047058105, 0.5347301959991455, -0.49302566051483154, 0.3141442835330963, 0.1985870897769928, -0.2543623149394989, -0.14082345366477966, 0.29900819063186646, -0.09735830128192902, 0.4259059429168701, 0.646696150302887, 0.11169125884771347, 0.11359630525112152, 0.40008652210235596, -0.3382672071456909, 0.09983795881271362, 0.5146846175193787, -0.03206978738307953, -0.15102745592594147, 0.1014408990740776, 0.0868237093091011, -0.15786348283290863, -0.13390731811523438, 0.07245727628469467, 0.2643628418445587, 0.25780031085014343, 0.10681644827127457, -0.02206517942249775, -0.06514886766672134, -0.23134730756282806, 0.21507161855697632, -0.001531180925667286, 0.09619651734828949, -0.14398139715194702, 0.1075776070356369, -0.013751775957643986, -0.16251564025878906, -0.17739522457122803, 0.019707269966602325, 0.1639554798603058, 0.07676972448825836, 0.0736192911863327, -0.06295265257358551, -0.12400258332490921, -0.18180356919765472, -0.036518000066280365, -0.040947020053863525, -0.13409952819347382, 0.1759612113237381, 0.23944103717803955, -0.22955864667892456, -0.2709871232509613, -0.10230089724063873, 0.27446115016937256, -0.14864091575145721, -0.16495251655578613, -0.1873624324798584, 0.07781339436769485, -0.11820828914642334, 0.05184778571128845, 0.23635156452655792, 0.28943392634391785, 0.35927441716194153, 0.06218654662370682, -0.2367982268333435, 0.05182700976729393, 0.031515464186668396, -0.23658327758312225, 0.02472827024757862, -0.2823905050754547, -0.05126269534230232, -0.1843821406364441, -0.3590669631958008, -0.32323646545410156, 0.07915526628494263, -0.16009356081485748, -0.10071421414613724, 0.3606930077075958, 0.21800880134105682, -0.22464068233966827, -0.12314724177122116, -0.07072045654058456, -0.13535469770431519, -0.3641658127307892, 0.2947732210159302, -0.07353433966636658, 0.1561615765094757, -0.028066227212548256, -0.15409860014915466, -0.07475000619888306, -0.46709728240966797, -0.02915876731276512, 0.17794807255268097, -0.160342276096344, 0.26652586460113525, 0.07572387158870697, -0.18763849139213562, -0.4554569721221924, -0.030902577564120293, -0.04559570923447609, 0.4398033916950226, -0.0504290945827961, 0.15850771963596344, -0.4090268313884735, -0.018544301390647888, -0.0691034272313118, 0.24175293743610382, 0.4783865511417389, -0.1012289822101593, -0.11372582614421844, 0.33434760570526123, 0.19000835716724396, -0.007276284042745829, 0.2815835177898407, 0.09399271756410599, 0.08733507990837097, 0.14531345665454865, 0.19172972440719604, 0.5485800504684448, -0.008988535031676292, 0.4024254381656647, -0.1678856909275055, 0.1251717060804367, -0.026360876858234406, -0.30924612283706665, 0.019164452329277992, 0.15458188951015472, -0.014890658669173717, -0.22021232545375824, 0.28605881333351135, -0.1322852224111557, -0.2167058140039444, -0.14579373598098755, 0.4429786801338196, 0.09780292958021164, -0.3071262836456299, 0.5698946714401245, -0.24399080872535706, 0.011495130136609077, 0.02627679333090782, 0.2426932156085968, -0.1146334856748581, -0.18291200697422028, 0.03937380015850067, -0.07352425158023834, -0.07365117222070694, -0.03063814714550972, -0.6124545931816101, -0.15224190056324005, -0.8054006099700928, 0.2165987193584442, 0.20301833748817444, 0.36970189213752747, 0.2696366012096405, -0.32068753242492676, 0.4373374581336975, -0.13145335018634796, 0.26839813590049744, 0.19393204152584076, -0.32369640469551086, 0.264022558927536, -0.14013300836086273, -0.4568907916545868, -0.08404272049665451, -0.38023191690444946, -0.40312066674232483, 0.1451113224029541, 0.18132369220256805, -0.3581775426864624, -0.04277265444397926, -0.015332628041505814, -0.05651099607348442, -0.017065415158867836, 0.012958214618265629, -0.3901500105857849, -0.23444752395153046, 0.03232647851109505, 0.25963255763053894, -0.04613614082336426, 0.02543223835527897, -0.05656679719686508, 0.22242705523967743, 0.1589544266462326, 0.0007254172815009952, 0.14332909882068634, -0.10428665578365326, -0.054057300090789795, -0.05408107861876488, 0.15840624272823334, 0.16580744087696075, 0.06212205812335014, -0.0909934714436531, 0.0022121949587017298, 0.12316524982452393, 0.041676849126815796, -0.15763603150844574, -0.18935100734233856, 0.4593549966812134, 0.38674622774124146, 0.20795294642448425, 0.21296563744544983, -0.024183480069041252, 0.3218664526939392, -0.005993999075144529, -0.5208616852760315, 0.1308055818080902, -0.29543134570121765, -0.10133904218673706, -0.7717423439025879, 0.2592330873012543, 0.2543680965900421, 0.1491476595401764, 0.22816191613674164, -0.19633165001869202, 0.24707651138305664, 0.42753371596336365, 0.1410064846277237, 1.010733962059021, -0.3745574653148651, 0.49482837319374084, 0.30264732241630554, -0.21271884441375732, 0.06321015954017639, -0.12885506451129913, 0.3773987591266632, -0.17115619778633118, -0.14089205861091614, 0.21824222803115845, -0.18351197242736816, 0.002882407046854496, 0.04692769795656204, -0.03766053542494774, 0.20101195573806763, -0.0023710269015282393, -0.3239127993583679, -0.30136027932167053, -0.03709663823246956, -0.4331662952899933, -0.3865848183631897, -0.16199991106987, 0.002614168915897608, -0.03217264637351036, -0.159706711769104, 0.14176660776138306, 0.08124563097953796, -0.4642913341522217, 0.1138685867190361, -0.12510789930820465, -0.01290307566523552, 0.04880818724632263, -0.006455609109252691, 0.20499183237552643, -0.2861235737800598, -0.061732757836580276, -0.13866673409938812, -0.1246633380651474, 0.11001335829496384, 0.1806352585554123, 0.11251046508550644, 0.2573269307613373, 0.39451339840888977, 0.3727916181087494, -0.28357037901878357, 0.2877430021762848, -0.06325884163379669, 0.25003331899642944, 0.05619955062866211, -0.008481037802994251, -0.7355349063873291, -0.30185097455978394, 0.08604387938976288, 0.5681180953979492, -0.02869434282183647, -0.14096760749816895, 0.23910360038280487, -0.3686724007129669, -0.09587293863296509, 0.10143063962459564, 0.05738474056124687, 0.10539260506629944, 0.4705404043197632, 0.13201652467250824, -0.1886124163866043, -0.01100938767194748, 0.2801903486251831, 0.10600920021533966, 0.13965769112110138, 0.30780717730522156, 0.016102910041809082, -0.4802681803703308, -0.22162507474422455, 0.18157024681568146, 0.04157483950257301, -0.34996840357780457, 0.2590775191783905, 0.015689188614487648, -0.07857228070497513, 0.12821157276630402, 0.28761833906173706, -0.02957812510430813, -0.059170182794332504, -0.30018651485443115, -0.014993210323154926, 0.10739833861589432, 0.4669548571109772, 0.526185154914856, 0.009929499588906765, 0.005060672760009766, 0.3379228711128235, -0.3852913975715637, -0.1506507247686386, -0.24256302416324615, -0.18536920845508575, 0.0913315862417221, 0.1223527118563652, -0.1389978677034378, -0.287780225276947, -0.1926407366991043, 0.15052174031734467, 0.13074329495429993, 0.14841710031032562, 0.03299067169427872, -0.19076430797576904, 0.07022310048341751, 0.03412213921546936, 0.027660224586725235, -0.014018197543919086, 0.04777907207608223, -0.38992756605148315, -0.34491580724716187, -0.2392158955335617, -0.27365946769714355, 0.0012200952041894197, -0.008356396108865738, -0.27129435539245605, 0.20889611542224884, 0.13242986798286438, -0.07760739326477051, 0.524964451789856, -0.47318416833877563, -0.27324405312538147, -0.2208503782749176, -0.0063988883048295975, -0.01909707486629486, -0.09994116425514221, -0.11103266477584839, 0.12368686497211456, 0.056027814745903015, 0.005403274204581976, 0.2663469612598419, -0.13992939889431, 0.057453714311122894, -0.10296355932950974, 0.19432440400123596, 0.6351500153541565, 0.2898969352245331, -0.4409422278404236, 0.45208144187927246, 0.11578287184238434, -0.112919881939888, -0.23330730199813843, -0.3544188141822815, 0.2145785093307495, -0.004531165584921837, 0.10256455838680267, -0.2718014717102051, -0.11246076226234436, -0.32863742113113403, -0.05949004366993904, -0.13694629073143005, -0.42067110538482666, -0.2316710650920868, 0.30655157566070557, 0.3698607087135315, -0.2523024082183838, 0.18014782667160034, -0.0040589552372694016, -0.04677748307585716, 0.12942951917648315, 0.22708866000175476, 0.40773555636405945, 0.6244723200798035, 0.3014630973339081, -0.3874134421348572, -0.11069724708795547, -0.0040116142481565475, 0.4378818869590759, 0.18015900254249573, 0.3086166977882385, 0.3406614661216736, 0.13451460003852844, 0.006603555288165808, 0.07968880236148834, -0.021977877244353294, -0.09283800423145294, -0.037079863250255585, 0.073172926902771, 0.0725146159529686, -0.09472059458494186, -0.21812820434570312, 0.20425182580947876, -0.3194912374019623, 0.3458901047706604, 0.22643382847309113, 0.10362580418586731, 0.4627440273761749, -0.3930007815361023, 0.14526651799678802, -0.22504661977291107, 0.4474721848964691, -0.31342437863349915, -0.1612289398908615, -0.037499699741601944, 0.10319032520055771, 0.25385019183158875, 0.06627030670642853, -0.07254794239997864, 0.272868275642395, -0.07904832065105438, 0.06222957745194435, -0.5087034106254578, -0.014966868795454502, -0.10642921924591064, 0.21637102961540222, 0.44504213333129883, -0.08542853593826294, 0.2795485854148865, 0.012232205830514431, -0.19255204498767853, -0.16566474735736847, -0.0980604961514473, -0.06900855898857117, -0.17792919278144836, 0.16123594343662262, 0.2084815800189972, -0.43359893560409546, -0.04452553018927574, 0.15022622048854828, -0.2526209354400635, -0.09614843130111694, -0.5036633610725403, -0.2149581015110016, -0.10918190330266953, 0.023863933980464935, 0.055128686130046844, 0.19012847542762756, 0.6890674829483032, 0.42449185252189636, -0.0805727168917656, 0.10325254499912262, -0.2726458013057709, -0.26195937395095825, -0.33249786496162415, -0.2798483669757843, -0.009763715788722038, 0.2360469400882721, 0.4841255843639374, 0.24552485346794128, 0.27141785621643066, -0.047596756368875504, 0.151283860206604, -0.3728959858417511, 0.3568667471408844, -0.1409449279308319, 0.20742084085941315, 0.16535288095474243, -0.06301464885473251, -0.21246592700481415, -0.6004897952079773, 0.2104826420545578, 0.1409490704536438, -0.002743357326835394, -0.07079299539327621, 0.08259226381778717, 0.20686408877372742, 0.32660821080207825, -0.16946730017662048, -0.037493664771318436, -0.17367663979530334, 0.21706828474998474, -0.20593395829200745, -0.1906135231256485, 0.18586045503616333, -0.022792939096689224, 0.01938820257782936, 0.07425545156002045, 0.12043748795986176, 0.06340104341506958, 0.00783484149724245, 0.13067595660686493, 0.5502997636795044, -0.24065513908863068, 0.1733042150735855, -0.264580637216568, 0.054151501506567, 0.2109878808259964, 0.2993124723434448, -0.15807808935642242, 0.14265041053295135, -0.048866018652915955, -0.19840042293071747, -0.26104936003685, 0.00392362242564559, 0.39096567034721375, -0.15950815379619598, -0.2572924792766571, -0.12660877406597137, 0.1781398057937622, 0.20043663680553436, 0.3141006827354431, 0.08483842760324478, -0.2719457447528839, -0.04204222187399864, -0.002839108929038048, 0.32956331968307495, 0.2699495553970337, -0.11659741401672363, -0.06164935231208801, -0.15463609993457794, 0.3200799822807312, -0.4524773955345154, 0.08766642212867737, -0.23338748514652252, -0.3020487129688263 ]
https://github.com/huggingface/datasets/issues/406
Faster Shuffling?
> @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think? I just tried with `writer.write_table` with tables of 1000 elements and it's slower that the solution in #405 On my side (select 10 000 examples): - Original implementation: 12s - Batched solution: 100ms - solution using arrow tables: 350ms I'll try with arrays and record batches to see if we can make it work.
Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
88
Faster Shuffling? Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) > @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think? I just tried with `writer.write_table` with tables of 1000 elements and it's slower that the solution in #405 On my side (select 10 000 examples): - Original implementation: 12s - Batched solution: 100ms - solution using arrow tables: 350ms I'll try with arrays and record batches to see if we can make it work.
[ -0.16450189054012299, 0.1181395947933197, -0.044460926204919815, -0.10497397184371948, -0.0814417153596878, -0.17317116260528564, 0.14772431552410126, 0.5459224581718445, -0.23468312621116638, 0.06246286258101463, -0.00008275984146166593, 0.5998942852020264, -0.1947995126247406, -0.2284020036458969, 0.21518868207931519, -0.06121211126446724, 0.04766346141695976, -0.004382918123155832, -0.28223544359207153, -0.04389875754714012, -0.05621960386633873, -0.4137572944164276, -0.19948825240135193, -0.19970637559890747, -0.025771044194698334, -0.2938670217990875, -0.18785637617111206, 0.06976733356714249, -0.19764409959316254, 0.07572319358587265, -0.2173386812210083, 0.28118622303009033, -0.05215448886156082, 0.2584172487258911, -0.00011222034663660452, -0.1701219379901886, 0.04250474274158478, 0.10373140871524811, -0.31384527683258057, 0.12869390845298767, 0.38003337383270264, -0.05211817845702171, -0.1779630482196808, -0.2150929719209671, 0.19089311361312866, -0.31755495071411133, 0.15692651271820068, -0.07846344262361526, -0.13302554190158844, -0.06412506103515625, 0.15371127426624298, 0.2656767666339874, -0.1589047908782959, 0.21455428004264832, 0.527748167514801, 0.24440789222717285, -0.3638018071651459, 0.2725057005882263, 0.3779158890247345, -0.12757492065429688, -0.2558322250843048, 0.26001614332199097, -0.15409116446971893, -0.05056966096162796, 0.21408207714557648, 0.14193737506866455, 0.0656321719288826, 0.38519588112831116, 0.09774560481309891, 0.38108983635902405, 0.29666075110435486, -0.19602814316749573, -0.2890028655529022, -0.25537529587745667, 0.17196059226989746, -0.03694484755396843, 0.09811749309301376, 0.27763545513153076, -0.2760346829891205, -0.2166481763124466, -0.1713004857301712, 0.09305690228939056, 0.20214730501174927, -0.22574926912784576, 0.3682131767272949, 0.35951948165893555, 0.1895432025194168, -0.09791507571935654, 0.6719357967376709, -0.1242227777838707, 0.551031231880188, -0.12629954516887665, -0.004799551796168089, 0.40451371669769287, -0.3214241862297058, -0.3182564377784729, -0.23373998701572418, -0.12059742957353592, -0.04685816541314125, 0.13398730754852295, 0.6908410787582397, 0.2351151704788208, 0.24408705532550812, -0.03308971971273422, 0.02947431057691574, 0.005070104729384184, -0.18816709518432617, 0.078692227602005, -0.12456958740949631, 0.14908435940742493, 0.2544291317462921, 0.11710473150014877, -0.07661939412355423, -0.3060939311981201, -0.11845974624156952, -0.2209760844707489, -0.5335658192634583, 0.13608597218990326, 0.08554721623659134, -0.2906821668148041, -0.030855219811201096, -0.07278754562139511, 0.019144557416439056, 0.2176079899072647, -0.11345961689949036, 0.26364994049072266, -0.039084747433662415, -0.18404912948608398, -0.07678670436143875, -0.029616646468639374, -0.021316176280379295, 0.039533354341983795, -0.13935254514217377, 0.040200479328632355, 0.11732999980449677, 0.40052786469459534, -0.25640708208084106, 0.0705064982175827, 0.10314401984214783, 0.3123987019062042, 0.023626795038580894, -0.1334686130285263, 0.09559361636638641, 0.009147207252681255, -0.14627455174922943, -0.20229491591453552, -0.1624472737312317, 0.07484693825244904, -0.26864752173423767, 0.4047934412956238, 0.008406836539506912, -0.13144835829734802, 0.16495946049690247, 0.16824503242969513, 0.2920656204223633, -0.25654855370521545, -0.5357551574707031, 0.02820909209549427, 0.015080525539815426, -0.060218147933483124, 0.06546656042337418, -0.023867977783083916, 0.06736143678426743, -0.1401834785938263, 0.02445349283516407, -0.2616638243198395, -0.00005003136902814731, 0.1502283662557602, -0.006719835102558136, 0.5517871379852295, 0.4012797176837921, 0.6005735397338867, -0.06617758423089981, 0.09189409762620926, 0.15280798077583313, -0.014736372046172619, 0.6540026068687439, 0.2467098832130432, -0.21856430172920227, 0.04356461018323898, -0.04821658879518509, -0.026214908808469772, 0.38947048783302307, 0.20756971836090088, 0.1455642729997635, -0.11482469737529755, 0.43334323167800903, 0.23686976730823517, -0.002023775829002261, 0.3048754632472992, -0.5437981486320496, -0.18042591214179993, 0.2548130750656128, 0.43102458119392395, -0.5073710083961487, -0.39551034569740295, 0.04359917342662811, -0.31577953696250916, 0.30726394057273865, -0.19298048317432404, -0.0006522693438455462, 0.04813777282834053, -0.08663563430309296, 0.081922248005867, -0.1807379573583603, 0.05008142814040184, -0.2162785828113556, -0.07499226182699203, -0.09664569050073624, -0.012154894880950451, 0.2877601683139801, -0.34272804856300354, 0.21074259281158447, -0.23374083638191223, 0.20789875090122223, 0.19070522487163544, 0.021344643086194992, -0.22415196895599365, 0.33851298689842224, -0.17491775751113892, -0.11151260137557983, -0.07181095331907272, -0.28857654333114624, 0.042532119899988174, -0.18188641965389252, -0.1339043825864792, 0.049343518912792206, -0.20683524012565613, 0.14093635976314545, 0.3582644462585449, -0.3306204676628113, 0.05718040093779564, 0.1285647451877594, 0.22768697142601013, -0.12157061696052551, -0.20042841136455536, 0.10788574814796448, 0.18386608362197876, -0.07226152718067169, 0.22190873324871063, 0.10933312773704529, -0.2368922233581543, 0.1598074734210968, -0.024070048704743385, -0.34390830993652344, 0.5287790894508362, -0.4670100510120392, 0.30602407455444336, 0.15083390474319458, -0.2817951440811157, -0.1983252912759781, 0.3005366325378418, -0.03649579733610153, 0.41616690158843994, 0.6197940707206726, 0.07032017409801483, -0.008537746965885162, 0.3828407824039459, -0.2867331802845001, 0.11100504547357559, 0.44427356123924255, 0.03548280522227287, -0.0874335840344429, 0.07636503875255585, 0.11519529670476913, -0.14344903826713562, -0.14491163194179535, 0.028983857482671738, 0.2201101928949356, 0.2666475176811218, 0.06633022427558899, -0.06584800034761429, -0.05879027768969536, -0.21908363699913025, 0.18542194366455078, -0.0540742501616478, 0.1081661507487297, -0.11614888161420822, 0.12547731399536133, -0.0036935643292963505, -0.15174908936023712, -0.15325197577476501, 0.11248582601547241, 0.1517266482114792, 0.13174080848693848, 0.026640262454748154, -0.09314609318971634, -0.16242718696594238, -0.1187385842204094, -0.014824195764958858, -0.04797546565532684, -0.008570837788283825, 0.23991747200489044, 0.23915769159793854, -0.24728193879127502, -0.2346792221069336, -0.036850087344646454, 0.3515048027038574, -0.15991343557834625, -0.04306923225522041, -0.1856263428926468, 0.04277537763118744, -0.0941629558801651, 0.09184083342552185, 0.2291279137134552, 0.2741207480430603, 0.3628981113433838, 0.09879857301712036, -0.23614536225795746, 0.04639844223856926, 0.02008490450680256, -0.28064924478530884, 0.03756948187947273, -0.2801624834537506, -0.050635214895009995, -0.1814996898174286, -0.4017326235771179, -0.29404962062835693, 0.04845792427659035, -0.21368765830993652, -0.12095038592815399, 0.35942018032073975, 0.22135882079601288, -0.1924254447221756, -0.16470487415790558, -0.1412430703639984, -0.02719038724899292, -0.4196077883243561, 0.3166360557079315, -0.10182411968708038, 0.22292664647102356, -0.07845704257488251, -0.12161707878112793, -0.07033302634954453, -0.5059905052185059, -0.025483323261141777, 0.19915704429149628, -0.1796484887599945, 0.2476862370967865, 0.09569866955280304, -0.1881333440542221, -0.4313291013240814, -0.03671738877892494, -0.08201315999031067, 0.46096986532211304, -0.05598847195506096, 0.26472344994544983, -0.3275970220565796, -0.048632144927978516, -0.08815129101276398, 0.16407272219657898, 0.46758896112442017, -0.12309835851192474, -0.13212591409683228, 0.290636271238327, 0.18782660365104675, 0.09323494136333466, 0.24864085018634796, 0.1484414041042328, 0.10790010541677475, 0.15831665694713593, 0.2577735185623169, 0.47584086656570435, -0.013260191306471825, 0.35374608635902405, -0.1806485950946808, 0.18116164207458496, -0.06292875111103058, -0.30441805720329285, 0.09022139757871628, 0.17611832916736603, -0.010492340661585331, -0.13282683491706848, 0.31458938121795654, -0.13034510612487793, -0.2358286827802658, -0.15196706354618073, 0.40878981351852417, 0.1406179964542389, -0.27674025297164917, 0.6161746978759766, -0.21755985915660858, 0.06697413325309753, 0.013095126487314701, 0.19894912838935852, -0.07293961942195892, -0.2581876516342163, 0.034668710082769394, -0.07719437032938004, -0.0035632564686238766, 0.01576683484017849, -0.6201173067092896, -0.10379614681005478, -0.7348020672798157, 0.1945822387933731, 0.254613995552063, 0.42031362652778625, 0.2630217373371124, -0.2731854021549225, 0.41001096367836, -0.13168109953403473, 0.24547384679317474, 0.18470069766044617, -0.33793947100639343, 0.20781661570072174, -0.03340374305844307, -0.39917340874671936, -0.038295645266771317, -0.35533374547958374, -0.38800036907196045, 0.09340570122003555, 0.21875187754631042, -0.3698851466178894, -0.015168347395956516, -0.06485286355018616, -0.09636352211236954, -0.020888756960630417, -0.021315544843673706, -0.3431766927242279, -0.15631739795207977, 0.02472262643277645, 0.31896036863327026, -0.04194626212120056, 0.0636189877986908, -0.03653395175933838, 0.20758631825447083, 0.18544498085975647, 0.005205062218010426, 0.09255682677030563, -0.11260619014501572, -0.01895810291171074, -0.04454038292169571, 0.16097494959831238, 0.1449069380760193, 0.08848638832569122, -0.0016809342196211219, -0.06760580837726593, 0.15657711029052734, 0.13074471056461334, -0.07751645892858505, -0.2168571501970291, 0.4103648364543915, 0.35443055629730225, 0.21328456699848175, 0.2864862382411957, 0.03188253939151764, 0.26091325283050537, -0.004494834691286087, -0.4609467387199402, 0.052482713013887405, -0.336879700422287, -0.11119890213012695, -0.7022072672843933, 0.22072702646255493, 0.20984549820423126, 0.12914836406707764, 0.24352318048477173, -0.19229590892791748, 0.19434192776679993, 0.399100124835968, 0.17936129868030548, 0.9543699622154236, -0.3425571024417877, 0.43950918316841125, 0.20055319368839264, -0.2498929500579834, 0.04216484725475311, -0.17188425362110138, 0.4339767396450043, -0.18694300949573517, -0.14281748235225677, 0.22099117934703827, -0.1602589190006256, -0.003896786132827401, 0.17496658861637115, 0.010383197106420994, 0.14083904027938843, 0.0545831173658371, -0.2724597454071045, -0.29829132556915283, -0.07692466676235199, -0.3973245918750763, -0.4000494182109833, -0.08126053214073181, 0.007990838028490543, -0.09127026051282883, -0.26163968443870544, 0.12990611791610718, 0.03972842916846275, -0.40664398670196533, 0.13744181394577026, -0.1283327043056488, -0.033911023288965225, 0.025263777002692223, -0.018780415877699852, 0.2313004434108734, -0.2472967654466629, -0.011831995099782944, -0.1389419436454773, -0.16547013819217682, 0.11753680557012558, 0.17827114462852478, 0.08767105638980865, 0.27323219180107117, 0.34765559434890747, 0.3208281099796295, -0.27979856729507446, 0.2450401484966278, -0.038629718124866486, 0.24709753692150116, 0.026927346363663673, -0.009422930888831615, -0.739814043045044, -0.27706989645957947, 0.08141006529331207, 0.5765285491943359, -0.046243999153375626, -0.041251666843891144, 0.22886455059051514, -0.3677736818790436, -0.08741223067045212, 0.12260133028030396, 0.023457853123545647, 0.12557987868785858, 0.4317762553691864, 0.1474372148513794, -0.17110106348991394, -0.003244724590331316, 0.30744537711143494, 0.10083113610744476, 0.13747312128543854, 0.21424107253551483, 0.05120334029197693, -0.4982793927192688, -0.27632713317871094, 0.17299450933933258, 0.05609622597694397, -0.4236965775489807, 0.255582720041275, 0.034691937267780304, -0.09983059018850327, 0.1983741670846939, 0.280202716588974, -0.04443339258432388, -0.07016145437955856, -0.2347717583179474, -0.04221247136592865, 0.0778438076376915, 0.4823128283023834, 0.43760809302330017, -0.009277024306356907, 0.04345184937119484, 0.277364045381546, -0.40989431738853455, -0.10126854479312897, -0.26354292035102844, -0.1706920862197876, 0.10311313718557358, 0.1917160153388977, -0.15709467232227325, -0.24858176708221436, -0.23145444691181183, 0.12177444994449615, 0.10951254516839981, 0.1856372356414795, 0.00995982252061367, -0.22042959928512573, 0.06522366404533386, 0.02685346081852913, 0.06927397102117538, -0.01240590400993824, -0.04421958699822426, -0.4056585431098938, -0.4026629626750946, -0.22409337759017944, -0.2556394636631012, -0.05810083821415901, -0.018628882244229317, -0.2951927185058594, 0.1893862634897232, 0.1526634842157364, -0.1454213261604309, 0.5044119358062744, -0.44056904315948486, -0.28803274035453796, -0.2536030411720276, -0.03905552998185158, -0.02043655328452587, -0.100039541721344, -0.12372724711894989, 0.1322377473115921, 0.08913786709308624, -0.009800702333450317, 0.27136433124542236, -0.14506596326828003, 0.03268515318632126, -0.05425634607672691, 0.14306125044822693, 0.5390292406082153, 0.2918039858341217, -0.4942597448825836, 0.4230974018573761, 0.13871903717517853, -0.06855777651071548, -0.2051192671060562, -0.4018731117248535, 0.2666889727115631, 0.015882236883044243, 0.07364945113658905, -0.21125838160514832, -0.22868028283119202, -0.30075958371162415, -0.04670942574739456, -0.198590949177742, -0.40654122829437256, -0.2695237398147583, 0.30002811551094055, 0.34996116161346436, -0.28103765845298767, 0.15489675104618073, -0.0209229476749897, -0.02630452625453472, 0.12677253782749176, 0.2693784236907959, 0.39280620217323303, 0.7060081362724304, 0.32522863149642944, -0.4333919882774353, -0.08915165811777115, -0.05499499663710594, 0.43732818961143494, 0.24195916950702667, 0.298814594745636, 0.31371644139289856, 0.17321425676345825, 0.0510275773704052, 0.07509719580411911, 0.04859297722578049, -0.18603676557540894, -0.05487141013145447, 0.08301028609275818, -0.012910095043480396, -0.14323127269744873, -0.23764896392822266, 0.18426978588104248, -0.3152509331703186, 0.38561370968818665, 0.18624266982078552, 0.07947839051485062, 0.4294986128807068, -0.4428103268146515, 0.1762869507074356, -0.08074064552783966, 0.4567207098007202, -0.2809705436229706, -0.06468302756547928, -0.04321920499205589, 0.10534222424030304, 0.3080558180809021, 0.09015710651874542, -0.17980371415615082, 0.27044257521629333, -0.051999256014823914, 0.07882513850927353, -0.4874313771724701, 0.0217132531106472, -0.10577045381069183, 0.23211120069026947, 0.49331745505332947, -0.1453860104084015, 0.25717875361442566, 0.02644849382340908, -0.19357433915138245, -0.12810342013835907, -0.06671036034822464, -0.038166873157024384, -0.06706062704324722, 0.06327063590288162, 0.23522967100143433, -0.42571866512298584, 0.028172964230179787, 0.14500734210014343, -0.21643443405628204, -0.09083272516727448, -0.4721764624118805, -0.2413540631532669, -0.09591639786958694, -0.0337369479238987, 0.06942324340343475, 0.18230518698692322, 0.6906648278236389, 0.36521846055984497, -0.13648484647274017, 0.10336165130138397, -0.3405781686306, -0.17632128298282623, -0.3086302876472473, -0.22023171186447144, 0.06918025016784668, 0.2312631905078888, 0.4550161361694336, 0.27214255928993225, 0.22781962156295776, -0.06829369068145752, 0.13934442400932312, -0.36661818623542786, 0.3984474539756775, -0.18068712949752808, 0.28564873337745667, 0.2190854400396347, -0.02906748093664646, -0.18110883235931396, -0.6279544234275818, 0.22817297279834747, 0.17175838351249695, 0.013129686936736107, -0.0495905838906765, 0.10541442781686783, 0.1774185448884964, 0.3426145315170288, -0.21936151385307312, -0.028270024806261063, -0.22091761231422424, 0.20687493681907654, -0.14635926485061646, -0.2218930572271347, 0.14809508621692657, -0.04416300356388092, -0.01589844562113285, 0.16304175555706024, 0.13581965863704681, 0.07468753308057785, 0.03217257186770439, 0.17456457018852234, 0.4784034788608551, -0.2635795474052429, 0.2802176773548126, -0.2502788305282593, 0.001743253436870873, 0.16439013183116913, 0.2768268585205078, -0.17530135810375214, 0.11200744658708572, -0.011954857967793941, -0.30549973249435425, -0.24771735072135925, -0.0073185027576982975, 0.31552380323410034, -0.14593812823295593, -0.25347381830215454, -0.07853633165359497, 0.19246971607208252, 0.2831948399543762, 0.30421140789985657, 0.023190228268504143, -0.32250815629959106, -0.053712520748376846, 0.029833152890205383, 0.33155518770217896, 0.2489197701215744, -0.19830884039402008, -0.040214262902736664, -0.14521485567092896, 0.3150459825992584, -0.4208282232284546, 0.11106767505407333, -0.28925275802612305, -0.325094074010849 ]
https://github.com/huggingface/datasets/issues/406
Faster Shuffling?
I tried using `.take` from pyarrow recordbatches but it doesn't improve the speed that much: ```python import nlp import numpy as np dset = nlp.Dataset.from_file("dummy_test_select.arrow") # dummy dataset with 100000 examples like {"a": "h"*512} indices = np.random.randint(0, 100_000, 1000_000) ``` ```python %%time batch_size = 10_000 writer = ArrowWriter(schema=dset.schema, path="dummy_path", writer_batch_size=1000, disable_nullable=False) for i in tqdm(range(0, len(indices), batch_size)): table = pa.concat_tables(dset._data.slice(int(i), 1) for i in indices[i : min(len(indices), i + batch_size)]) batch = table.to_pydict() writer.write_batch(batch) writer.finalize() # 9.12s ``` ```python %%time batch_size = 10_000 writer = ArrowWriter(schema=dset.schema, path="dummy_path", writer_batch_size=1000, disable_nullable=False) for i in tqdm(range(0, len(indices), batch_size)): batch_indices = indices[i : min(len(indices), i + batch_size)] # First, extract only the indices that we need with a mask mask = [False] * len(dset) for k in batch_indices: mask[k] = True t_batch = dset._data.filter(pa.array(mask)) # Second, build the list of indices for the filtered table, and taking care of duplicates rev_positions = {} duplicates = 0 for i, j in enumerate(sorted(batch_indices)): if j in rev_positions: duplicates += 1 else: rev_positions[j] = i - duplicates rev_map = [rev_positions[j] for j in batch_indices] # Third, use `.take` from the combined recordbatch t_combined = t_batch.combine_chunks() # load in memory recordbatch = t_combined.to_batches()[0] table = pa.Table.from_arrays( [recordbatch[c].take(pa.array(rev_map)) for c in range(len(dset._data.column_names))], schema=writer.schema ) writer.write_table(table) writer.finalize() # 3.2s ```
Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
210
Faster Shuffling? Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) I tried using `.take` from pyarrow recordbatches but it doesn't improve the speed that much: ```python import nlp import numpy as np dset = nlp.Dataset.from_file("dummy_test_select.arrow") # dummy dataset with 100000 examples like {"a": "h"*512} indices = np.random.randint(0, 100_000, 1000_000) ``` ```python %%time batch_size = 10_000 writer = ArrowWriter(schema=dset.schema, path="dummy_path", writer_batch_size=1000, disable_nullable=False) for i in tqdm(range(0, len(indices), batch_size)): table = pa.concat_tables(dset._data.slice(int(i), 1) for i in indices[i : min(len(indices), i + batch_size)]) batch = table.to_pydict() writer.write_batch(batch) writer.finalize() # 9.12s ``` ```python %%time batch_size = 10_000 writer = ArrowWriter(schema=dset.schema, path="dummy_path", writer_batch_size=1000, disable_nullable=False) for i in tqdm(range(0, len(indices), batch_size)): batch_indices = indices[i : min(len(indices), i + batch_size)] # First, extract only the indices that we need with a mask mask = [False] * len(dset) for k in batch_indices: mask[k] = True t_batch = dset._data.filter(pa.array(mask)) # Second, build the list of indices for the filtered table, and taking care of duplicates rev_positions = {} duplicates = 0 for i, j in enumerate(sorted(batch_indices)): if j in rev_positions: duplicates += 1 else: rev_positions[j] = i - duplicates rev_map = [rev_positions[j] for j in batch_indices] # Third, use `.take` from the combined recordbatch t_combined = t_batch.combine_chunks() # load in memory recordbatch = t_combined.to_batches()[0] table = pa.Table.from_arrays( [recordbatch[c].take(pa.array(rev_map)) for c in range(len(dset._data.column_names))], schema=writer.schema ) writer.write_table(table) writer.finalize() # 3.2s ```
[ -0.20730403065681458, 0.14242859184741974, -0.02560342662036419, -0.14534983038902283, -0.1025908961892128, -0.11131460964679718, 0.12113606929779053, 0.5408862829208374, -0.23658262193202972, 0.019071783870458603, -0.03811812773346901, 0.5862330198287964, -0.16830343008041382, -0.2764604985713959, 0.20582231879234314, -0.041137322783470154, 0.03315231576561928, -0.03620890900492668, -0.21471183001995087, -0.04712533578276634, -0.050019003450870514, -0.4499432444572449, -0.23843955993652344, -0.22347696125507355, -0.012647879309952259, -0.22572427988052368, -0.165445476770401, 0.07869124412536621, -0.1654571294784546, 0.05516088381409645, -0.11502039432525635, 0.20128756761550903, -0.10800760984420776, 0.16675785183906555, -0.00011678288865368813, -0.1386462152004242, 0.09931480139493942, 0.13057565689086914, -0.3299330472946167, 0.17832155525684357, 0.4515012204647064, -0.0504898875951767, -0.12900593876838684, -0.19089621305465698, 0.19028252363204956, -0.4143744111061096, 0.08657168596982956, -0.11465054750442505, -0.1485532969236374, -0.022917725145816803, 0.11401405930519104, 0.3141126036643982, -0.1818508356809616, 0.25567057728767395, 0.47482579946517944, 0.2703828811645508, -0.37506529688835144, 0.38795629143714905, 0.2586725354194641, -0.021414684131741524, -0.1545356959104538, 0.2556576728820801, -0.1949242204427719, 0.018123596906661987, 0.1430734246969223, 0.17546841502189636, 0.10234533995389938, 0.46060577034950256, 0.1073969379067421, 0.4037255048751831, 0.29059839248657227, -0.2549731135368347, -0.29782834649086, -0.29418742656707764, 0.2330017238855362, -0.07974632829427719, 0.057025641202926636, 0.3016268014907837, -0.27353259921073914, -0.21540068089962006, -0.0974208414554596, 0.1640341430902481, 0.2480154037475586, -0.20002686977386475, 0.3221803605556488, 0.39009183645248413, 0.2021177113056183, -0.060730766505002975, 0.7018342614173889, -0.1057816594839096, 0.4943524897098541, -0.17129766941070557, 0.021908823400735855, 0.411685973405838, -0.31918245553970337, -0.26360201835632324, -0.3010387420654297, -0.12554709613323212, -0.07115570455789566, 0.16033269464969635, 0.6939621567726135, 0.21446359157562256, 0.19050033390522003, -0.047399185597896576, 0.04629841074347496, 0.0036274699959903955, -0.3000268340110779, 0.07142266631126404, -0.13240504264831543, 0.06484847515821457, 0.31249719858169556, 0.12530110776424408, -0.07771135121583939, -0.30897510051727295, -0.0426202267408371, -0.22807544469833374, -0.48016873002052307, 0.11606035381555557, 0.009133079089224339, -0.34545907378196716, -0.13749997317790985, -0.053341593593358994, 0.006660731974989176, 0.15207242965698242, -0.1462174654006958, 0.25346705317497253, -0.08213107287883759, -0.16872704029083252, -0.11358746886253357, 0.028761986643075943, -0.032403312623500824, 0.08957335352897644, -0.1062905415892601, 0.07185512781143188, 0.02999667264521122, 0.47170141339302063, -0.2529064416885376, 0.016954604536294937, 0.09523998200893402, 0.3210922181606293, 0.04331038147211075, -0.11361823230981827, 0.08302945643663406, 0.11236827820539474, -0.09799537807703018, -0.14904047548770905, -0.1326775699853897, 0.04593238607048988, -0.33952072262763977, 0.3854334056377411, 0.02591308206319809, -0.1179543137550354, 0.06963049620389938, 0.12440618872642517, 0.24364131689071655, -0.28873172402381897, -0.5230560898780823, -0.06483769416809082, -0.031108954921364784, -0.10967987030744553, 0.08879879117012024, -0.05501280352473259, 0.08861873298883438, -0.12884630262851715, 0.06463403254747391, -0.2630297839641571, -0.07936013489961624, 0.10275479406118393, -0.05877358466386795, 0.5555559992790222, 0.45229247212409973, 0.6798382997512817, -0.0710054263472557, 0.05680316314101219, 0.10809400677680969, 0.030906174331903458, 0.6843830943107605, 0.19454197585582733, -0.2532135248184204, -0.019348297268152237, -0.11208902299404144, 0.025333216413855553, 0.3429553508758545, 0.24057435989379883, 0.06896089017391205, -0.07797444611787796, 0.3746800720691681, 0.294291615486145, 0.04834950715303421, 0.2648991346359253, -0.4871980547904968, -0.13624966144561768, 0.23100365698337555, 0.43126675486564636, -0.6047835350036621, -0.3673206865787506, 0.04098909720778465, -0.2627371549606323, 0.34377235174179077, -0.1634201854467392, -0.024147577583789825, -0.0028756947722285986, -0.07283667474985123, 0.0040966528467834, -0.16738294064998627, 0.10091128200292587, -0.2770047187805176, -0.08510249108076096, -0.01230988372117281, -0.09344356507062912, 0.22207380831241608, -0.360988587141037, 0.18479469418525696, -0.1915208250284195, 0.1916133016347885, 0.2072870284318924, -0.01049734465777874, -0.19801315665245056, 0.42995744943618774, -0.10241519659757614, -0.08071403205394745, -0.031038915738463402, -0.2975621521472931, 0.03710894286632538, -0.15968602895736694, -0.1389845460653305, 0.1140306293964386, -0.21693342924118042, 0.1356172412633896, 0.3588954210281372, -0.29142677783966064, 0.07211028039455414, 0.0999828428030014, 0.2370678186416626, -0.091440349817276, -0.18857397139072418, 0.03440191596746445, 0.2401280403137207, -0.05743049085140228, 0.22634732723236084, 0.1186930239200592, -0.20455311238765717, 0.15607835352420807, -0.0530228354036808, -0.40216773748397827, 0.5432928800582886, -0.48475322127342224, 0.3439679741859436, 0.1877930909395218, -0.24201995134353638, -0.12566587328910828, 0.26058757305145264, -0.07519462704658508, 0.45086419582366943, 0.5965424180030823, 0.0635085329413414, 0.07480114698410034, 0.4007711410522461, -0.27269217371940613, 0.0491735115647316, 0.44781693816185, -0.047484349459409714, -0.053760793060064316, 0.07784241437911987, -0.024494288489222527, -0.2125130295753479, -0.08564351499080658, 0.026969091966748238, 0.21423350274562836, 0.2641347050666809, 0.11263088136911392, -0.04798568785190582, -0.08722333610057831, -0.23040726780891418, 0.16144712269306183, -0.04659833014011383, 0.0837044045329094, -0.09750840812921524, 0.1120571494102478, -0.03038513846695423, -0.2148166447877884, -0.18301698565483093, 0.0966954454779625, 0.18355493247509003, 0.1354515254497528, 0.06915540248155594, -0.14093412458896637, -0.10866033285856247, -0.12632082402706146, -0.08095832169055939, 0.02807408757507801, -0.10201682895421982, 0.1147603914141655, 0.24892368912696838, -0.20364733040332794, -0.20309114456176758, -0.11689256876707077, 0.33520281314849854, -0.10545088350772858, -0.1940309703350067, -0.1823434680700302, -0.00913611613214016, -0.1343153566122055, 0.048568569123744965, 0.19787506759166718, 0.35587063431739807, 0.3271760046482086, 0.14947128295898438, -0.22009563446044922, 0.02156093716621399, 0.09381118416786194, -0.22090978920459747, 0.09694772958755493, -0.37785589694976807, -0.08128918707370758, -0.1770182102918625, -0.42635607719421387, -0.2799152135848999, 0.05944058299064636, -0.11731771379709244, -0.09087997674942017, 0.3733416199684143, 0.13760089874267578, -0.20645061135292053, -0.12013385444879532, -0.04932215437293053, -0.07491423189640045, -0.3606601357460022, 0.30902665853500366, -0.12537412345409393, 0.14229045808315277, -0.003099119057878852, -0.10964667052030563, -0.02490788698196411, -0.5705382227897644, -0.05547985062003136, 0.15818925201892853, -0.11931419372558594, 0.27874860167503357, 0.11740047484636307, -0.13365843892097473, -0.4510357081890106, -0.0693095251917839, -0.08964981138706207, 0.4983680844306946, -0.07748755812644958, 0.2212926745414734, -0.38104772567749023, -0.03440862521529198, -0.1012926921248436, 0.14044663310050964, 0.46843546628952026, -0.1875353902578354, -0.1023726612329483, 0.30782535672187805, 0.17360712587833405, 0.07016094774007797, 0.2383756935596466, 0.11952396482229233, 0.12133300304412842, 0.13633432984352112, 0.2258581817150116, 0.4733494818210602, -0.047022391110658646, 0.2490299940109253, -0.24660547077655792, 0.04611166566610336, -0.03077102266252041, -0.3000231385231018, 0.14437216520309448, 0.19480662047863007, 0.017512716352939606, -0.12045363336801529, 0.2602737545967102, -0.1087937206029892, -0.2526512145996094, -0.057994578033685684, 0.4636715054512024, 0.16345326602458954, -0.2731421887874603, 0.5276740789413452, -0.2075202614068985, 0.006901437416672707, -0.009987151250243187, 0.21939729154109955, -0.07580621540546417, -0.23321785032749176, 0.0865602120757103, -0.08118771016597748, -0.039381884038448334, -0.0054830885492265224, -0.5912711024284363, -0.0939202755689621, -0.6903500556945801, 0.22435779869556427, 0.20334242284297943, 0.45517203211784363, 0.29346370697021484, -0.3032821714878082, 0.4281891882419586, -0.12670700252056122, 0.2624979317188263, 0.18449191749095917, -0.2910931706428528, 0.20603381097316742, 0.006221400573849678, -0.48820897936820984, -0.07448973506689072, -0.3385718762874603, -0.370244562625885, 0.0964815765619278, 0.21843956410884857, -0.3918655812740326, 0.025392619892954826, 0.013566658832132816, -0.0772428810596466, -0.015702616423368454, 0.011920765973627567, -0.3758610785007477, -0.24667108058929443, 0.07837402075529099, 0.29980215430259705, -0.05357910320162773, 0.008026394993066788, 0.10297220200300217, 0.23696666955947876, 0.12670102715492249, -0.01036922913044691, 0.06483037769794464, -0.08992419391870499, -0.019722195342183113, -0.00009508018410997465, 0.13765554130077362, 0.1903952956199646, 0.08322279900312424, -0.12752920389175415, -0.05088844150304794, 0.24871711432933807, 0.024896113201975822, -0.1076383888721466, -0.1637829691171646, 0.3971326947212219, 0.3331095576286316, 0.22230461239814758, 0.25124111771583557, 0.04353051260113716, 0.2704719007015228, 0.01934817060828209, -0.4496087431907654, 0.0902751013636589, -0.3458966314792633, -0.07792159169912338, -0.6981346607208252, 0.3353740870952606, 0.3034197986125946, 0.14670784771442413, 0.23826417326927185, -0.13125871121883392, 0.2583998143672943, 0.3906695544719696, 0.18681645393371582, 0.938862681388855, -0.36557966470718384, 0.43242529034614563, 0.31746605038642883, -0.27353647351264954, 0.07709798961877823, -0.09529822319746017, 0.36207032203674316, -0.16649869084358215, -0.06150079146027565, 0.22909501194953918, -0.2028217911720276, -0.03594064339995384, 0.07395514845848083, 0.03641730546951294, 0.1265505850315094, -0.01087275892496109, -0.2703080475330353, -0.2791457176208496, -0.025184759870171547, -0.34611842036247253, -0.42225849628448486, -0.06496092677116394, 0.00907836388796568, -0.12613914906978607, -0.18875853717327118, 0.17642445862293243, 0.10536845773458481, -0.36833667755126953, 0.1437903791666031, -0.1949710249900818, -0.023060157895088196, 0.12702327966690063, -0.012712751515209675, 0.2234882414340973, -0.25249534845352173, -0.10773380845785141, -0.19662043452262878, -0.18682308495044708, 0.04352835565805435, 0.1743924766778946, 0.14198876917362213, 0.2909936308860779, 0.3207317292690277, 0.3545380234718323, -0.3061877489089966, 0.20157256722450256, 0.02048533782362938, 0.26040080189704895, 0.08387396484613419, 0.011856845580041409, -0.7292296886444092, -0.2502429783344269, 0.09365622699260712, 0.616104781627655, 0.030132882297039032, -0.053885579109191895, 0.17840562760829926, -0.36538800597190857, -0.09516121447086334, 0.08476999402046204, 0.003855659393593669, 0.14265306293964386, 0.39740824699401855, 0.21687830984592438, -0.17876377701759338, -0.0021241968497633934, 0.33858415484428406, 0.09163063764572144, 0.17379716038703918, 0.2557826638221741, 0.004442539531737566, -0.47876763343811035, -0.22088320553302765, 0.11957604438066483, 0.09272482246160507, -0.39956140518188477, 0.2578277289867401, 0.03049352765083313, -0.06475973129272461, 0.1437385082244873, 0.20303666591644287, -0.03840703144669533, -0.03166532516479492, -0.3079475462436676, -0.08399803936481476, 0.16713352501392365, 0.4880533814430237, 0.44944998621940613, 0.04072685167193413, 0.005998882465064526, 0.2657163441181183, -0.4514315128326416, -0.18560481071472168, -0.21258319914340973, -0.1643105298280716, 0.11837287992238998, 0.14869782328605652, -0.19627274572849274, -0.24676701426506042, -0.20140665769577026, 0.12161927670240402, 0.10836543887853622, 0.21228383481502533, 0.06901012361049652, -0.16967341303825378, 0.07841192185878754, 0.056526437401771545, 0.06799983978271484, -0.02961782179772854, 0.01300305686891079, -0.4090910255908966, -0.3787911534309387, -0.25914308428764343, -0.22031082212924957, -0.03591019660234451, -0.014361568726599216, -0.3235984146595001, 0.17572832107543945, 0.13708610832691193, -0.1018625795841217, 0.5023975968360901, -0.4558429718017578, -0.28224411606788635, -0.21243925392627716, -0.011725615710020065, 0.00028097123140469193, -0.06079241260886192, -0.13323348760604858, 0.08084514737129211, 0.12201383709907532, -0.06611330807209015, 0.2327348291873932, -0.17602784931659698, 0.031067559495568275, -0.11780118942260742, 0.21236009895801544, 0.5724336504936218, 0.28586921095848083, -0.5049549341201782, 0.41330036520957947, 0.0761314257979393, -0.10946648567914963, -0.20353655517101288, -0.37835997343063354, 0.26296505331993103, 0.03078307956457138, 0.05448266491293907, -0.2800426483154297, -0.14984168112277985, -0.4017004072666168, -0.10377607494592667, -0.12082409858703613, -0.4394891858100891, -0.3144518733024597, 0.3442712128162384, 0.3613232374191284, -0.2875060737133026, 0.19184406101703644, -0.026815807446837425, 0.014408532530069351, 0.1336647868156433, 0.21262101829051971, 0.3895180821418762, 0.7033475637435913, 0.2981712520122528, -0.4683305025100708, -0.09088622778654099, -0.018253009766340256, 0.5345417261123657, 0.2181612253189087, 0.31528517603874207, 0.36255624890327454, 0.11964350193738937, 0.060079678893089294, 0.17628562450408936, -0.017581991851329803, -0.14261211454868317, 0.002140248427167535, 0.06420211493968964, -0.0033141665626317263, -0.08596133440732956, -0.27221107482910156, 0.18190422654151917, -0.3435496687889099, 0.3356224298477173, 0.2366926074028015, 0.06772380322217941, 0.4312196373939514, -0.4143006503582001, 0.1808575838804245, -0.1028551384806633, 0.4148302674293518, -0.26387152075767517, -0.14174459874629974, -0.04953273758292198, 0.1888810247182846, 0.24711357057094574, 0.05170494318008423, -0.1387271136045456, 0.2436002939939499, -0.07852866500616074, 0.04117242619395256, -0.5003125071525574, -0.009305286221206188, -0.058235663920640945, 0.2283148467540741, 0.48793768882751465, -0.15855830907821655, 0.2480303943157196, 0.024564143270254135, -0.19470280408859253, -0.10072177648544312, -0.087206169962883, -0.028839463368058205, -0.10660792887210846, 0.1006261482834816, 0.16228534281253815, -0.3728927969932556, -0.047851450741291046, 0.1560516059398651, -0.11368735134601593, -0.14568735659122467, -0.5345335006713867, -0.19298028945922852, -0.1256030797958374, 0.08317971974611282, 0.04283836856484413, 0.091623954474926, 0.7034359574317932, 0.4074104130268097, -0.12637430429458618, 0.16712380945682526, -0.23961882293224335, -0.2513003349304199, -0.29891690611839294, -0.3349247872829437, -0.10494852066040039, 0.24172882735729218, 0.5042908191680908, 0.28444141149520874, 0.3205121159553528, -0.06407564878463745, 0.17687559127807617, -0.3291894197463989, 0.34079083800315857, -0.17317435145378113, 0.22528518736362457, 0.25258129835128784, -0.048538025468587875, -0.2170930653810501, -0.6656164526939392, 0.19906292855739594, 0.2431143820285797, -0.005819717422127724, 0.0005775453755632043, 0.032727304846048355, 0.1565549522638321, 0.3020454943180084, -0.1743316501379013, -0.05298767238855362, -0.1665405035018921, 0.2265947461128235, -0.16836431622505188, -0.2666841447353363, 0.2494233101606369, 0.024098027497529984, 0.011700330302119255, 0.06657242774963379, 0.1200333833694458, 0.062113288789987564, 0.08303002268075943, 0.15141989290714264, 0.5137023329734802, -0.27192240953445435, 0.20242317020893097, -0.26671087741851807, 0.06970591843128204, 0.14939548075199127, 0.3052287697792053, -0.22604867815971375, 0.04482989013195038, -0.025607237592339516, -0.26178306341171265, -0.19808536767959595, 0.060943517833948135, 0.4382951259613037, -0.17938056588172913, -0.21321552991867065, -0.05144067108631134, 0.23285989463329315, 0.2575269937515259, 0.316109299659729, 0.13609744608402252, -0.25865867733955383, -0.044945649802684784, -0.0011651947861537337, 0.364277720451355, 0.16050457954406738, -0.145071879029274, -0.010718334466218948, -0.14537523686885834, 0.37281811237335205, -0.4335768520832062, 0.08356248587369919, -0.3130497634410858, -0.3294512927532196 ]
https://github.com/huggingface/datasets/issues/406
Faster Shuffling?
Shuffling is now significantly faster thanks to #513 Feel free to play with it now :) Closing this one, but feel free to re-open if you have other questions
Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
29
Faster Shuffling? Consider shuffling bookcorpus: ``` dataset = nlp.load_dataset('bookcorpus', split='train') dataset.shuffle() ``` According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`. But I can also just write the lines to a text file: ``` batch_size = 100000 with open('tmp.txt', 'w+') as out_f: for i in tqdm(range(0, len(dataset), batch_size)): batch = dataset[i:i+batch_size]['text'] print("\n".join(batch), file=out_f) ``` Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally, ``` dataset = nlp.load_dataset('text', data_files='tmp2.txt') ``` Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping. Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) Shuffling is now significantly faster thanks to #513 Feel free to play with it now :) Closing this one, but feel free to re-open if you have other questions
[ -0.16697543859481812, 0.07589250057935715, -0.07566967606544495, -0.1069151982665062, -0.04517665505409241, -0.10969901084899902, 0.10494531691074371, 0.5459724068641663, -0.2224264293909073, 0.11074348539113998, -0.017154168337583542, 0.5978960394859314, -0.14721210300922394, -0.22477896511554718, 0.15257786214351654, -0.0917225256562233, 0.019747110083699226, -0.006634624674916267, -0.298401415348053, -0.06819746643304825, -0.10767992585897446, -0.3407289385795593, -0.1966782808303833, -0.24142873287200928, -0.02110476791858673, -0.2671125531196594, -0.1641613095998764, 0.12719838321208954, -0.1086052656173706, 0.03560969978570938, -0.1816462129354477, 0.20367254316806793, -0.1019434779882431, 0.2518044114112854, -0.00010644012945704162, -0.18781672418117523, -0.0013789335498586297, 0.12451302260160446, -0.31851133704185486, 0.17000780999660492, 0.4203982949256897, -0.036648429930210114, -0.18106701970100403, -0.2470216155052185, 0.13357870280742645, -0.2439085692167282, 0.1669648140668869, -0.08826114237308502, -0.07873398810625076, -0.0348331592977047, 0.19461964070796967, 0.30671244859695435, -0.14238597452640533, 0.13171270489692688, 0.5130028128623962, 0.09835518896579742, -0.33345481753349304, 0.23336099088191986, 0.29458820819854736, -0.08632057160139084, -0.17735593020915985, 0.23872651159763336, -0.09595578908920288, -0.06728917360305786, 0.13714267313480377, 0.11447549611330032, 0.09599172323942184, 0.32526326179504395, 0.05916053429245949, 0.41562458872795105, 0.24063292145729065, -0.20182077586650848, -0.2674718499183655, -0.27203360199928284, 0.20222806930541992, -0.04494534432888031, 0.10430590063333511, 0.2704426348209381, -0.23939375579357147, -0.1595274806022644, -0.09101542085409164, 0.18509548902511597, 0.21041734516620636, -0.19178354740142822, 0.27240633964538574, 0.44233763217926025, 0.22302696108818054, -0.13479560613632202, 0.6850676536560059, -0.1429271548986435, 0.35339605808258057, -0.08978431671857834, 0.02368767559528351, 0.41356590390205383, -0.28342872858047485, -0.32944631576538086, -0.24999721348285675, -0.18255354464054108, -0.11076900362968445, 0.1838959902524948, 0.7327407002449036, 0.24534818530082703, 0.2195368856191635, -0.0025330716744065285, 0.004425324033945799, 0.017255883663892746, -0.3033530116081238, 0.0676688551902771, -0.08331849426031113, 0.17416320741176605, 0.18959671258926392, 0.12653057277202606, -0.08755192905664444, -0.312255322933197, -0.10357699543237686, -0.16771620512008667, -0.48258495330810547, 0.13870984315872192, 0.01553458720445633, -0.2844124138355255, -0.06679030507802963, -0.009928490035235882, 0.0018033692613244057, 0.21510088443756104, -0.15386193990707397, 0.2751539647579193, -0.03062947280704975, -0.23890827596187592, -0.1474364846944809, -0.09217000752687454, -0.08410560339689255, 0.09276222437620163, -0.18541492521762848, 0.011172019876539707, 0.10705675929784775, 0.4471130073070526, -0.18131443858146667, 0.07501284778118134, 0.09326797723770142, 0.31403377652168274, 0.07475467026233673, -0.14500266313552856, 0.05290624871850014, 0.030100828036665916, -0.15387949347496033, -0.1871064007282257, -0.16396938264369965, 0.12983931601047516, -0.2964136600494385, 0.3371613919734955, 0.06345734000205994, -0.11480291187763214, 0.13581790030002594, 0.2419949471950531, 0.2536461651325226, -0.2783484160900116, -0.32401955127716064, 0.004213820211589336, -0.0300776194781065, -0.05880581587553024, 0.08890349417924881, 0.00797048956155777, 0.05580487474799156, -0.150649294257164, 0.033213283866643906, -0.28325626254081726, -0.030102958902716637, 0.1387464702129364, -0.063067726790905, 0.47163549065589905, 0.3784511983394623, 0.590583086013794, -0.09271997958421707, 0.052472855895757675, 0.15180765092372894, 0.10007329285144806, 0.675447940826416, 0.18476657569408417, -0.22225378453731537, 0.0069726998917758465, -0.12349509447813034, 0.018920503556728363, 0.3299836218357086, 0.21902097761631012, 0.10644432157278061, -0.047061871737241745, 0.4243716299533844, 0.3086518347263336, 0.057607877999544144, 0.2672397196292877, -0.5271472930908203, -0.168012335896492, 0.23976290225982666, 0.4268013834953308, -0.48361894488334656, -0.3931617736816406, 0.021559463813900948, -0.24578757584095, 0.33524125814437866, -0.2223271131515503, 0.004805639386177063, 0.07809741795063019, -0.09887821972370148, 0.06844505667686462, -0.1722116619348526, -0.046162765473127365, -0.2284305840730667, -0.03075724095106125, -0.051115091890096664, -0.02192441187798977, 0.28230682015419006, -0.3760943114757538, 0.13891594111919403, -0.23512353003025055, 0.22310926020145416, 0.15231211483478546, 0.10318931937217712, -0.12225380539894104, 0.3160502314567566, -0.14416714012622833, -0.12498480826616287, -0.032915275543928146, -0.28584474325180054, 0.06023364141583443, -0.1428825855255127, -0.10323991626501083, 0.041421640664339066, -0.17431862652301788, 0.18019245564937592, 0.4312615990638733, -0.3207767903804779, 0.08514261245727539, 0.15322959423065186, 0.26042139530181885, -0.1293293684720993, -0.15467658638954163, 0.15117330849170685, 0.17788174748420715, -0.08398187905550003, 0.2608782947063446, 0.06711915135383606, -0.09817010164260864, 0.11916343122720718, 0.028284434229135513, -0.3607947826385498, 0.576117753982544, -0.43623781204223633, 0.2577598989009857, 0.15059645473957062, -0.28960251808166504, -0.15274427831172943, 0.19248679280281067, -0.0689200907945633, 0.38749703764915466, 0.6559898853302002, 0.09334663301706314, 0.04086397588253021, 0.40480050444602966, -0.3637099862098694, 0.13662399351596832, 0.5051814317703247, 0.017594613134860992, -0.061205942183732986, 0.045489005744457245, 0.0998164713382721, -0.08284956216812134, -0.15165968239307404, 0.0592619888484478, 0.19866621494293213, 0.3086871802806854, 0.11051023751497269, -0.042908478528261185, -0.1522374302148819, -0.2253771424293518, 0.14671368896961212, -0.08106798678636551, 0.1443345546722412, -0.04617501422762871, 0.17314878106117249, 0.028291137889027596, -0.24688108265399933, -0.19587665796279907, 0.10103380680084229, 0.15784555673599243, 0.1300908327102661, 0.045654188841581345, -0.11859247088432312, -0.19288063049316406, -0.14692531526088715, -0.008756371214985847, -0.04105840623378754, -0.06559188663959503, 0.2203759402036667, 0.26744893193244934, -0.2967948317527771, -0.24415041506290436, -0.09669394791126251, 0.394957959651947, -0.0981084406375885, -0.08823173493146896, -0.20226238667964935, 0.043411433696746826, -0.11296072602272034, 0.15779270231723785, 0.2093467116355896, 0.2783983051776886, 0.40658149123191833, 0.14978188276290894, -0.2056587189435959, 0.11259602010250092, -0.0035842873621731997, -0.2856876254081726, 0.059745028614997864, -0.2784014344215393, -0.07962906360626221, -0.12883739173412323, -0.37032321095466614, -0.36786898970603943, 0.06624861061573029, -0.17456641793251038, -0.14714783430099487, 0.2800332009792328, 0.2361856997013092, -0.16279654204845428, -0.23886336386203766, -0.22413262724876404, -0.00046784745063632727, -0.47184669971466064, 0.3313356637954712, -0.07714877277612686, 0.2015346884727478, -0.08522860705852509, -0.12307184934616089, -0.0027074653189629316, -0.4613551199436188, -0.015397457405924797, 0.15073004364967346, -0.16858375072479248, 0.27936825156211853, 0.015094907954335213, -0.1759367436170578, -0.40898397564888, -0.07974240928888321, -0.04272781312465668, 0.4191707372665405, -0.11284001916646957, 0.21145862340927124, -0.3544735014438629, -0.0188404843211174, -0.10470742732286453, 0.09917642921209335, 0.41392597556114197, -0.14056919515132904, -0.21417862176895142, 0.2670765519142151, 0.18713687360286713, 0.056598786264657974, 0.24163785576820374, 0.1690843105316162, 0.010714076459407806, 0.11639878153800964, 0.260145366191864, 0.44091251492500305, -0.08313453197479248, 0.30293354392051697, -0.17116262018680573, 0.1169438436627388, -0.07875774800777435, -0.24793903529644012, 0.09799405187368393, 0.1595512330532074, 0.02250344306230545, -0.11012741923332214, 0.3593635559082031, -0.07943800836801529, -0.2885240912437439, -0.09890591353178024, 0.3730274736881256, 0.10688918083906174, -0.29134589433670044, 0.5682032108306885, -0.19538886845111847, 0.013463420793414116, -0.01654430665075779, 0.19179891049861908, -0.0891629308462143, -0.20273806154727936, 0.04127264767885208, -0.11330831795930862, -0.076141856610775, 0.004363104235380888, -0.5783771276473999, -0.11985183507204056, -0.7263140678405762, 0.15534982085227966, 0.23164400458335876, 0.368396520614624, 0.20241504907608032, -0.3260190486907959, 0.3546537160873413, -0.15723229944705963, 0.3486221432685852, 0.16061635315418243, -0.32520216703414917, 0.2688461244106293, -0.03984830901026726, -0.4078162610530853, -0.0648060142993927, -0.3783380389213562, -0.39346763491630554, 0.16850246489048004, 0.2311154156923294, -0.34170085191726685, -0.03231700882315636, -0.014601364731788635, -0.1042361631989479, -0.005625199526548386, -0.005770599469542503, -0.3624531924724579, -0.21146303415298462, -0.05714455619454384, 0.308336466550827, -0.050989214330911636, 0.11284814774990082, -0.05035186931490898, 0.1073436513543129, 0.19029831886291504, -0.01955750584602356, 0.1275957077741623, -0.059293802827596664, 0.005624936893582344, 0.03011733666062355, 0.12988072633743286, 0.15271586179733276, 0.1490030586719513, -0.10305799543857574, -0.05614152178168297, 0.15910835564136505, 0.12781839072704315, -0.1362483650445938, -0.22320732474327087, 0.40863487124443054, 0.3234083950519562, 0.23042762279510498, 0.2706476151943207, 0.0015279310755431652, 0.3054817318916321, 0.009950384497642517, -0.34298771619796753, 0.10123869776725769, -0.3108818531036377, -0.140318363904953, -0.6326962113380432, 0.2537314295768738, 0.23375611007213593, 0.11939526349306107, 0.2409450113773346, -0.2747868299484253, 0.13043329119682312, 0.3508600890636444, 0.17149631679058075, 0.9784496426582336, -0.35135236382484436, 0.4275633692741394, 0.292037695646286, -0.15993699431419373, 0.11420869082212448, -0.21147194504737854, 0.43493494391441345, -0.1626187413930893, -0.07794753462076187, 0.220671147108078, -0.10785558819770813, -0.03289499878883362, 0.12910151481628418, -0.03513874113559723, 0.11180377751588821, 0.02408577688038349, -0.22384178638458252, -0.30508506298065186, -0.02486822009086609, -0.36791300773620605, -0.40443065762519836, -0.1523006111383438, 0.07562267035245895, -0.03530967980623245, -0.21831479668617249, 0.08456937223672867, 0.056917618960142136, -0.3565789759159088, 0.16710931062698364, -0.14115990698337555, -0.04664821922779083, 0.042432960122823715, -0.004941736813634634, 0.19691111147403717, -0.21986569464206696, -0.0890045091509819, -0.1474560648202896, -0.15716759860515594, 0.12941110134124756, 0.1665561944246292, 0.13776563107967377, 0.22410686314105988, 0.317035049200058, 0.27547815442085266, -0.25946590304374695, 0.28067949414253235, -0.09486500173807144, 0.17155249416828156, 0.05873803421854973, 0.010799665935337543, -0.7354447841644287, -0.25900647044181824, 0.06289558112621307, 0.42528343200683594, -0.043512146919965744, 0.011204029433429241, 0.2331184446811676, -0.41848817467689514, -0.16259439289569855, 0.18037796020507812, -0.05645254626870155, 0.06778179109096527, 0.4045182466506958, 0.2591695189476013, -0.24430179595947266, -0.055629584938287735, 0.3341703712940216, 0.08812014758586884, 0.19217191636562347, 0.25007426738739014, 0.03575105220079422, -0.44419705867767334, -0.3494408130645752, 0.09371637552976608, 0.03107866272330284, -0.28516095876693726, 0.2599407434463501, 0.03697482869029045, -0.12735585868358612, 0.198855921626091, 0.28380993008613586, -0.03919239342212677, -0.0405675508081913, -0.24722640216350555, -0.09561698883771896, 0.07023700326681137, 0.44690826535224915, 0.44096049666404724, 0.07913646101951599, -0.0008860847447067499, 0.3681524395942688, -0.38916516304016113, -0.1299373209476471, -0.3335530161857605, -0.13384364545345306, -0.013371172361075878, 0.16155828535556793, -0.12461425364017487, -0.2722461521625519, -0.1843119114637375, 0.21492502093315125, 0.19290679693222046, 0.22696295380592346, -0.005659683141857386, -0.2980476915836334, 0.0635204091668129, -0.0011384754907339811, -0.02464006468653679, 0.04456976801156998, 0.013493147678673267, -0.35676872730255127, -0.36194393038749695, -0.22151556611061096, -0.23381048440933228, -0.11488073319196701, -0.014377022162079811, -0.1896766573190689, 0.20719651877880096, 0.15649153292179108, -0.05732079967856407, 0.44896209239959717, -0.4027828276157379, -0.3101203441619873, -0.20462314784526825, -0.01011180505156517, -0.034824393689632416, -0.05765437334775925, -0.06122082099318504, 0.0715661272406578, 0.10078230500221252, -0.03981861472129822, 0.23575524985790253, -0.10279769450426102, -0.03966816887259483, -0.015707705169916153, 0.17463113367557526, 0.5327720642089844, 0.23931971192359924, -0.42097029089927673, 0.3680214583873749, 0.21632206439971924, -0.16680121421813965, -0.16903406381607056, -0.3094872236251831, 0.1626502275466919, 0.06591783463954926, 0.02963509038090706, -0.22509455680847168, -0.1986938714981079, -0.30126065015792847, -0.06372478604316711, -0.19093838334083557, -0.39474067091941833, -0.17977899312973022, 0.3211909234523773, 0.3621634244918823, -0.30038851499557495, 0.1553272306919098, -0.031641263514757156, 0.05850248783826828, 0.18271039426326752, 0.23907619714736938, 0.36836639046669006, 0.6607503890991211, 0.36103227734565735, -0.4724351465702057, -0.11478357762098312, -0.015101874247193336, 0.5250035524368286, 0.2303859442472458, 0.28228411078453064, 0.34614986181259155, 0.18515153229236603, 0.088433638215065, 0.0645422637462616, -0.04554397240281105, -0.09143061190843582, -0.09409911185503006, 0.0419204905629158, -0.011356653645634651, -0.17901645600795746, -0.2583901286125183, 0.1940496414899826, -0.20675109326839447, 0.30139032006263733, 0.25670677423477173, 0.07060939073562622, 0.42158252000808716, -0.45819365978240967, 0.20926214754581451, -0.13241814076900482, 0.4662485122680664, -0.3132488429546356, -0.08374454826116562, 0.003387513104826212, 0.08791755139827728, 0.29721689224243164, 0.023302268236875534, -0.12688660621643066, 0.2161460667848587, -0.1597132682800293, 0.08174363523721695, -0.5459909439086914, 0.02701912634074688, -0.19258597493171692, 0.20172074437141418, 0.5362644195556641, -0.14071373641490936, 0.35264432430267334, 0.09411629289388657, -0.2557084262371063, -0.11964087933301926, -0.09641696512699127, -0.049331650137901306, -0.13891303539276123, 0.10644344985485077, 0.23269455134868622, -0.36021068692207336, -0.053647641092538834, 0.10265687108039856, -0.239181250333786, -0.11132878810167313, -0.48616477847099304, -0.22530187666416168, -0.11796890944242477, 0.023241529241204262, 0.10241101682186127, 0.14782536029815674, 0.7567033767700195, 0.342925488948822, -0.15286514163017273, 0.16617298126220703, -0.36693456768989563, -0.30127406120300293, -0.22923897206783295, -0.2744218707084656, 0.03478914126753807, 0.1922416090965271, 0.4784705638885498, 0.2030554860830307, 0.19486285746097565, -0.03331223875284195, 0.09786944091320038, -0.3102417290210724, 0.3355526328086853, -0.23133932054042816, 0.3123432397842407, 0.16732372343540192, -0.07072903960943222, -0.15205034613609314, -0.6242115497589111, 0.1967945545911789, 0.1044078916311264, 0.09607931971549988, 0.014556199312210083, 0.04079628363251686, 0.18343566358089447, 0.32432085275650024, -0.1760919690132141, -0.07344841957092285, -0.20312859117984772, 0.1617666631937027, -0.1379483938217163, -0.22021013498306274, 0.15565329790115356, -0.01290267426520586, -0.03321787714958191, 0.1238514631986618, 0.15799714624881744, 0.06047666445374489, 0.11387138068675995, 0.19174863398075104, 0.4745641350746155, -0.19447195529937744, 0.241783007979393, -0.2040431797504425, 0.008096166886389256, 0.18698105216026306, 0.24316371977329254, -0.22535301744937897, 0.21102194488048553, 0.01814194582402706, -0.29572463035583496, -0.24942460656166077, -0.06880933046340942, 0.3604043126106262, -0.18403297662734985, -0.27365735173225403, -0.10925959795713425, 0.16351045668125153, 0.2349599003791809, 0.3031383454799652, 0.022021949291229248, -0.27481114864349365, -0.023334383964538574, 0.03244398534297943, 0.25253191590309143, 0.26558569073677063, -0.17203642427921295, -0.08089619874954224, -0.13468767702579498, 0.2549239695072174, -0.4111459255218506, 0.09482184797525406, -0.27133163809776306, -0.35571134090423584 ]
https://github.com/huggingface/datasets/issues/388
🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
similar slow download speed here for nlp.load_dataset('wmt14', 'fr-en') ` Downloading: 100%|██████████████████████████████████████████████████████████| 658M/658M [1:00:42<00:00, 181kB/s] Downloading: 100%|██████████████████████████████████████████████████████████| 918M/918M [1:39:38<00:00, 154kB/s] Downloading: 2%|▉ | 40.9M/2.37G [04:48<5:03:06, 128kB/s] ` Could we just download a specific subdataset in 'wmt14', such as 'newstest14'?
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code: ``` nlp.load_dataset('wmt14','de-en') nlp.load_dataset('wmt15','de-en') nlp.load_dataset('wmt17','de-en') nlp.load_dataset('wmt19','de-en') ``` The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18` 2. When trying to download `wmt17 zh-en`, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
38
🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code: ``` nlp.load_dataset('wmt14','de-en') nlp.load_dataset('wmt15','de-en') nlp.load_dataset('wmt17','de-en') nlp.load_dataset('wmt19','de-en') ``` The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18` 2. When trying to download `wmt17 zh-en`, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz similar slow download speed here for nlp.load_dataset('wmt14', 'fr-en') ` Downloading: 100%|██████████████████████████████████████████████████████████| 658M/658M [1:00:42<00:00, 181kB/s] Downloading: 100%|██████████████████████████████████████████████████████████| 918M/918M [1:39:38<00:00, 154kB/s] Downloading: 2%|▉ | 40.9M/2.37G [04:48<5:03:06, 128kB/s] ` Could we just download a specific subdataset in 'wmt14', such as 'newstest14'?
[ -0.2754462659358978, -0.19817645847797394, -0.019505612552165985, 0.469498872756958, 0.06568625569343567, 0.19420164823532104, 0.02708628587424755, 0.26846230030059814, 0.08611889183521271, -0.03117203153669834, -0.2506644129753113, -0.06791302561759949, 0.21257701516151428, 0.030787022784352303, -0.06282299011945724, -0.18905237317085266, -0.14600172638893127, 0.10141196846961975, -0.23699311912059784, -0.0269573125988245, -0.2904830873012543, 0.20361854135990143, -0.09069602191448212, 0.1271257996559143, 0.24017702043056488, 0.07800427079200745, -0.05016712099313736, -0.196896031498909, -0.15963992476463318, -0.27482324838638306, 0.5160508751869202, 0.36011597514152527, 0.0586543008685112, 0.1450442522764206, -0.00012193863949505612, 0.08257362246513367, 0.18356649577617645, -0.13693681359291077, -0.36360371112823486, -0.1387346237897873, -0.5023857355117798, -0.3797953128814697, -0.057071056216955185, -0.045134883373975754, -0.028694743290543556, -0.41394469141960144, 0.29480040073394775, -0.1618012934923172, 0.2084508240222931, 0.3149537146091461, 0.12140625715255737, 0.1913006454706192, -0.18429571390151978, 0.058812402188777924, 0.22601185739040375, -0.2973451018333435, -0.15996329486370087, 0.16287225484848022, 0.09113651514053345, -0.09987033158540726, 0.18825560808181763, 0.03945005685091019, 0.10544346272945404, 0.4685549736022949, 0.08817518502473831, 0.18371963500976562, 0.03438049554824829, -0.3379809558391571, 0.1303820163011551, 0.46770215034484863, 0.7240514159202576, 0.013421978801488876, -0.5606611371040344, 0.10949630290269852, -0.18644410371780396, -0.17934851348400116, 0.1590445190668106, 0.23853370547294617, -0.38892683386802673, -0.009706255979835987, -0.25802502036094666, 0.1541275680065155, -0.21500782668590546, 0.552046000957489, -0.15386594831943512, 0.6958848237991333, 0.23100973665714264, 0.1035010814666748, 0.20300069451332092, -0.07915040850639343, -0.08163217455148697, -0.10970380157232285, 0.06498841196298599, 0.11401927471160889, -0.4582262635231018, -0.14196790754795074, -0.2928108274936676, -0.056524112820625305, 0.09610866755247116, 0.03704730048775673, 0.2588007152080536, 0.300449013710022, 0.07329332828521729, -0.09017174690961838, 0.21490103006362915, -0.03725579380989075, -0.13630294799804688, -0.1615843027830124, 0.3071223497390747, 0.02342688851058483, 0.1086890771985054, 0.1278395652770996, -0.014629528857767582, -0.07349751144647598, -0.33336183428764343, 0.04294436052441597, -0.06410350650548935, 0.0900547206401825, -0.47141513228416443, -0.18300986289978027, -0.1725570112466812, -0.3095327317714691, -0.2633678615093231, 0.27497029304504395, -0.14724388718605042, 0.2098650187253952, 0.035020872950553894, 0.1641632467508316, -0.03738484904170036, -0.23662534356117249, -0.08513077348470688, -0.07760043442249298, -0.11943196505308151, 0.08527612686157227, 0.38735878467559814, 0.2008727788925171, 0.10212826728820801, -0.1979425847530365, -0.4624217450618744, 0.1757548451423645, 0.046251896768808365, -0.15041832625865936, -0.31032952666282654, 0.21442393958568573, 0.022913077846169472, 0.5044221878051758, 0.00430471682921052, 0.2673938274383545, -0.2623715400695801, -0.03069569356739521, 0.047463029623031616, 0.1335316300392151, 0.1591804474592209, 0.03753961622714996, -0.17818228900432587, -0.07587383687496185, -0.4116552174091339, 0.15831586718559265, -0.19792518019676208, 0.038449157029390335, -0.3133227229118347, -0.05422835424542427, -0.4436590075492859, -0.06379145383834839, 0.23254048824310303, 0.3726827800273895, -0.2943870723247528, -0.14047931134700775, -0.39399343729019165, -0.07723217457532883, 0.276101291179657, 0.4165424704551697, -0.01160910353064537, 0.038996148854494095, -0.1322287768125534, 0.01352050993591547, 0.6128708124160767, -0.06600545346736908, -0.5310530662536621, 0.4080587923526764, -0.3529960513114929, 0.09498859941959381, 0.24388934671878815, 0.2227175086736679, 0.041214704513549805, -0.03812110796570778, 0.11255981028079987, 0.5967075824737549, -0.06554484367370605, 0.043280795216560364, 0.03398919105529785, -0.3913992941379547, 0.4888460040092468, 0.15824618935585022, -0.07161442935466766, 0.19043172895908356, 0.04067150130867958, 0.23750458657741547, 0.4658767282962799, 0.0016445183428004384, 0.12567952275276184, -0.03676941990852356, -0.07681810110807419, -0.18691585958003998, 0.03716932609677315, 0.08056922256946564, -0.8039485812187195, 0.35965898633003235, -0.042655814439058304, -0.07575291395187378, 0.05913857743144035, 0.049842704087495804, -0.1687219738960266, -0.33847853541374207, 0.11573892831802368, 0.1946621984243393, 0.05708686634898186, 0.42490607500076294, -0.024331744760274887, -0.0735514760017395, 0.030615637078881264, 0.24240204691886902, 0.14008210599422455, 0.07456647604703903, 0.09311032295227051, 0.014226972125470638, 0.0210610069334507, 0.19147105515003204, 0.5240708589553833, -0.2323475480079651, 0.12026705592870712, -0.19814470410346985, -0.047799546271562576, 0.040479402989149094, -0.13486558198928833, 0.32780197262763977, 0.04727645590901375, -0.10493659228086472, 0.0062304032035171986, -0.30153951048851013, -0.023219158872961998, 0.5032981038093567, 0.09256299585103989, -0.21297895908355713, -0.07480068504810333, 0.2086770385503769, 0.3825475871562958, 0.33094242215156555, 0.3173203766345978, 0.12931221723556519, 0.3910716474056244, -0.10691879689693451, 0.19997826218605042, -0.17395786941051483, 0.21822082996368408, 0.1208612397313118, -0.03252362459897995, -0.04823007434606552, -0.1440729796886444, 0.4479529559612274, 0.46995416283607483, -0.04675070568919182, 0.035925813019275665, 0.29930999875068665, 0.008681217208504677, -0.058814872056245804, -0.21146249771118164, 0.43952834606170654, 0.48151251673698425, 0.002317859325557947, 0.3339686393737793, -0.035487618297338486, 0.2888126075267792, -0.4605611264705658, 0.21123936772346497, 0.1993146538734436, -0.3576083183288574, 0.1509043276309967, 0.05442526936531067, -0.06240785866975784, -0.1587805151939392, 0.05446222797036171, 0.36493605375289917, 0.33785706758499146, -0.12094423919916153, 0.1075231209397316, -0.6640239953994751, -0.560886561870575, -0.14699475467205048, -0.1450156420469284, -0.12775184214115143, -0.2961657643318176, -0.03416004776954651, 0.3210778832435608, -0.1442074477672577, 0.04917621240019798, -0.005147498566657305, 0.1736527681350708, -0.035996872931718826, 0.08244434744119644, -0.30953577160835266, -0.06275436282157898, -0.26310935616493225, 0.04139895364642143, 0.36322852969169617, 0.25886884331703186, 0.3428502082824707, -0.3035117983818054, -0.21657520532608032, -0.2507111430168152, -0.08788910508155823, -0.1628999412059784, -0.12060572952032089, 0.04401853308081627, -0.050941843539476395, 0.6214649081230164, 0.05943150818347931, -0.28012022376060486, 0.09676637500524521, 0.008083892986178398, -0.19963888823986053, -0.029478827491402626, -0.07286714762449265, 0.08129505068063736, -0.08191382884979248, -0.4950377941131592, -0.5639947056770325, -0.4488963186740875, 0.3042038083076477, -0.026078401133418083, 0.4307364523410797, 0.18047967553138733, -0.4492832124233246, -0.024525124579668045, 0.200123131275177, 0.17837706208229065, -0.09939891844987869, 0.21117302775382996, 0.529903769493103, 0.04873780161142349, -0.36808714270591736, 0.13240112364292145, 0.18441464006900787, 0.1965642273426056, 0.5387353897094727, -0.5226662158966064, 0.17225107550621033, -0.19681550562381744, -0.3020080029964447, 0.2634522616863251, -0.2586892247200012, 0.15619021654129028, -0.28696683049201965, -0.1237122118473053, -0.05307915061712265, -0.1602710783481598, 0.003649369580671191, 0.19237545132637024, 0.2642638087272644, 0.10584250837564468, 0.2024153620004654, 0.08679015934467316, 0.3931769132614136, 0.27692916989326477, -0.012825294397771358, 0.41065508127212524, 0.02925906516611576, -0.1475890725851059, 0.16733388602733612, -0.26762470602989197, 0.0524178184568882, -0.12297117710113525, 0.3658313453197479, 0.4481184482574463, -0.2541321814060211, -0.1831546574831009, -0.30330073833465576, 0.0940256342291832, -0.010096615180373192, -0.3930918276309967, 0.004197660367935896, 0.012256158515810966, 0.05259663611650467, 0.214643657207489, -0.040063828229904175, -0.03319980949163437, -0.31058821082115173, 0.010870851576328278, 0.2935238778591156, -0.04516125097870827, 0.18504966795444489, -0.028056424111127853, -0.09780892729759216, -0.5492722392082214, 0.28949734568595886, 0.07632332295179367, 0.7073534727096558, -0.1326800137758255, 0.1520879566669464, 0.07236716896295547, -0.014536968432366848, 0.30306679010391235, -0.17299272119998932, 0.4643162488937378, 0.14678531885147095, -0.1720144897699356, -0.34085962176322937, -0.14191727340221405, -0.16905340552330017, -0.18522480130195618, 0.3035881817340851, 0.3525134325027466, -0.5763111114501953, -0.339409202337265, 0.0019275766098871827, 0.18171827495098114, -0.15632660686969757, 0.09981656819581985, -0.11488547921180725, -0.42487481236457825, -0.07972703129053116, -0.19731533527374268, -0.14185965061187744, 0.15135610103607178, -0.025854559615254402, -0.10205225646495819, 0.11128082126379013, -0.11258073896169662, 0.10089290142059326, 0.09681325405836105, 0.011180995032191277, 0.41000503301620483, 0.28519508242607117, 0.1245303601026535, 0.12302882224321365, 0.12083375453948975, 0.48839715123176575, 0.22907748818397522, 0.05280791223049164, 0.20325639843940735, -0.06111190840601921, -0.10436802357435226, 0.5792748928070068, 0.018354332074522972, 0.24894149601459503, -0.06978865712881088, 0.13381564617156982, -0.06251900643110275, 0.14621514081954956, 0.286262184381485, -0.34408700466156006, -0.2097567766904831, -0.32659316062927246, 0.40350422263145447, 0.08485519886016846, -0.1049613356590271, 0.3273220658302307, -0.08339229226112366, -0.23069921135902405, -0.02985854633152485, 0.12380028516054153, 0.936518669128418, -0.16325771808624268, 0.19266533851623535, -0.09682966023683548, 0.019308142364025116, 0.36200976371765137, -0.006211503408849239, 0.1284438818693161, -0.061042506247758865, -0.35176965594291687, -0.0668429508805275, 0.11291634291410446, -0.024646272882819176, 0.3345559239387512, -0.24193817377090454, 0.4412826895713806, 0.11582095921039581, 0.32514598965644836, 0.4289502203464508, 0.1513632833957672, 0.03478384017944336, -0.04036400839686394, -0.254750519990921, 0.04589664563536644, -0.19823335111141205, 0.48789146542549133, -0.02112506702542305, -0.34432297945022583, -0.19886372983455658, -0.09885364025831223, -0.4196374714374542, 0.04158644750714302, -0.39568236470222473, 0.03585025668144226, -0.3102169632911682, -0.09451144933700562, 0.15918022394180298, 0.0962369441986084, 0.20750996470451355, 0.07682238519191742, -0.456685870885849, 0.06209909915924072, -0.6321640014648438, -0.03216274455189705, 0.06858383119106293, -0.13180327415466309, -0.14245089888572693, -0.1964866816997528, -0.11433040350675583, -0.16961294412612915, 0.10906288772821426, -0.2224174290895462, -0.07567598670721054, -0.10237141698598862, -0.4478801190853119, 0.2547486424446106, -0.1786808967590332, -0.16087128221988678, -0.2535407841205597, -0.12254390865564346, 0.04665186628699303, -0.16458895802497864, -0.0397016778588295, 0.28601524233818054, 0.12732507288455963, -0.19633281230926514, -0.001902543823234737, 0.6198269128799438, 0.0029098857194185257, 0.10547810792922974, 0.39534133672714233, 0.050655562430620193, -0.1604822278022766, -0.2704817056655884, -0.38110411167144775, -0.10607899725437164, -0.16254590451717377, -0.07819200307130814, -0.2101404070854187, 0.014031722210347652, -0.006037269253283739, 0.4558548033237457, -0.0392557717859745, 0.16820359230041504, 0.0280107744038105, -0.6202649474143982, -0.16097095608711243, 0.13182595372200012, -0.1765398532152176, 0.11990030854940414, -0.5219153165817261, 0.11923783272504807, 0.113582082092762, 0.4160398542881012, -0.2092130184173584, 0.056569479405879974, -0.3388046622276306, 0.04710473120212555, 0.2880387008190155, -0.07068251073360443, 0.22899360954761505, 0.18862596154212952, -0.034175556153059006, 0.025162937119603157, -0.35935288667678833, -0.05424082651734352, -0.021897943690419197, 0.24470070004463196, 0.19392193853855133, -0.37579458951950073, 0.20784661173820496, -0.2565252184867859, -0.08592545986175537, -0.01884504221379757, 0.022074002772569656, -0.1119568794965744, 0.05930639058351517, 0.038256797939538956, 0.22190238535404205, 0.1416686773300171, -0.26655852794647217, 0.17436806857585907, 0.030527237802743912, 0.3759002387523651, 0.10191068798303604, 0.2991653382778168, 0.04688972234725952, -0.08483339846134186, -0.4554968476295471, -0.20011596381664276, 0.10271391272544861, 0.11048036813735962, 0.32432353496551514, 0.025019807741045952, -0.020086979493498802, 0.00199573184363544, 0.19790250062942505, 0.5765150189399719, 0.01475556567311287, -0.0014469706220552325, 0.10048490762710571, 0.025308318436145782, -0.29220303893089294, -0.1287107616662979, 0.41137412190437317, -0.02010689675807953, -0.04098404943943024, 0.06180145964026451, 0.1289481222629547, -0.26633918285369873, -0.009403585456311703, -0.20226362347602844, 0.42153045535087585, -0.07479575276374817, 0.0920511856675148, 0.3748522698879242, 0.1693941354751587, 0.07756686955690384, -0.02182460017502308, 0.04851686209440231, 0.16034217178821564, 0.24484924972057343, -0.2588810324668884, 0.22830045223236084, -0.10189950466156006, 0.05284517630934715, -0.10008137673139572, -0.3135133981704712, -0.15467895567417145, 0.6282545924186707, -0.025766944512724876, 0.009152106009423733, 0.23100250959396362, 0.09641262888908386, -0.05311927944421768, -0.2443244457244873, -0.35280749201774597, 0.1790972352027893, 0.25874394178390503, -0.13999982178211212, -0.22767847776412964, -0.07662450522184372, -0.4428301751613617, 0.1516764611005783, -0.14572449028491974, -0.40170609951019287, 0.26905566453933716, 0.27685537934303284, 0.06004182621836662, -0.282273530960083, -0.38528984785079956, -0.109598308801651, -0.04000949114561081, -0.33273041248321533, 0.19105952978134155, 0.011471022851765156, -0.1317567080259323, 0.1907142996788025, 0.16743527352809906, -0.03865080699324608, 0.17617958784103394, 0.04614511504769325, 0.1767433136701584, -0.057556018233299255, -0.08590251207351685, -0.09754054993391037, 0.28345346450805664, 0.25562986731529236, -0.19364531338214874, 0.47116619348526, -0.017448363825678825, -0.05363979563117027, 0.18638606369495392, 0.19680535793304443, -0.21368181705474854, -0.16794422268867493, 0.4751262068748474, -0.10480041801929474, 0.07415033876895905, -0.06537260860204697, -0.1176450178027153, -0.24113522469997406, -0.13659852743148804, -0.048895273357629776, -0.10711502283811569, 0.333306223154068, 0.048464804887771606, 0.00646009249612689, -0.15351822972297668, 0.9997261166572571, -0.04361727833747864, 0.24739672243595123, -0.2425631433725357, -0.3746017813682556, -0.6246225237846375, 0.09660594910383224, -0.23219642043113708, 0.08988070487976074, 0.21224863827228546, 0.13977105915546417, 0.10168085992336273, 0.2786846458911896, 0.09794457256793976, 0.5578718781471252, -0.20367079973220825, 0.24890317022800446, -0.4591286778450012, -0.3036423921585083, 0.01576678454875946, 0.408207505941391, -0.2625911831855774, -0.46701568365097046, 0.4813467562198639, -0.3863256275653839, -0.0498683899641037, -0.05338386073708534, -0.09023408591747284, 0.2436767816543579, 0.3555133044719696, 0.3386843502521515, 0.011722153052687645, 0.6352953314781189, 0.02851935662329197, -0.19472673535346985, -0.30118730664253235, -0.04148668423295021, -0.1197318360209465, -0.006023334804922342, 0.16487613320350647, 0.19995622336864471, 0.048730697482824326, 0.45054638385772705, -0.2935020625591278, 0.22605068981647491, -0.26806217432022095, 0.2887161374092102, 0.14744620025157928, 0.19202494621276855, -0.1904362440109253, 0.08863011002540588, 0.1265806257724762, -0.031089404597878456, -0.059988610446453094, -0.1564527004957199, -0.5516495704650879, -0.23288801312446594, 0.5788877010345459, -0.2664409577846527, -0.2547088861465454, -0.15980102121829987, 0.3558366298675537, -0.042594000697135925, 0.3084109425544739, -0.03204473480582237, 0.20630715787410736, 0.19830656051635742, -0.09434835612773895, -0.314253568649292, 0.2210630178451538, 0.09234561771154404, -0.32649603486061096, 0.03958098962903023, 0.035566192120313644, 0.1923963874578476, -0.4283826947212219, -0.285614937543869, -0.21666651964187622 ]
https://github.com/huggingface/datasets/issues/388
🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
> The code runs but the download speed is extremely slow, the same behaviour is not observed on wmt16 and wmt18 The original source for the files may provide slow download speeds. We can probably host these files ourselves. > When trying to download wmt17 zh-en, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz Looks like the file`UNv1.0.en-zh.tar.gz` is missing, or the url changed. We need to fix that > Could we just download a specific subdataset in 'wmt14', such as 'newstest14'? Right now I don't think it's possible. Maybe @patrickvonplaten knows more about it
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code: ``` nlp.load_dataset('wmt14','de-en') nlp.load_dataset('wmt15','de-en') nlp.load_dataset('wmt17','de-en') nlp.load_dataset('wmt19','de-en') ``` The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18` 2. When trying to download `wmt17 zh-en`, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
97
🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code: ``` nlp.load_dataset('wmt14','de-en') nlp.load_dataset('wmt15','de-en') nlp.load_dataset('wmt17','de-en') nlp.load_dataset('wmt19','de-en') ``` The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18` 2. When trying to download `wmt17 zh-en`, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz > The code runs but the download speed is extremely slow, the same behaviour is not observed on wmt16 and wmt18 The original source for the files may provide slow download speeds. We can probably host these files ourselves. > When trying to download wmt17 zh-en, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz Looks like the file`UNv1.0.en-zh.tar.gz` is missing, or the url changed. We need to fix that > Could we just download a specific subdataset in 'wmt14', such as 'newstest14'? Right now I don't think it's possible. Maybe @patrickvonplaten knows more about it
[ -0.26860949397087097, -0.14047586917877197, -0.007186527829617262, 0.5020002126693726, -0.01684108003973961, 0.2251570224761963, -0.05307641997933388, 0.2993660569190979, 0.09113571047782898, -0.03681392967700958, -0.22522780299186707, -0.07992804795503616, 0.11619164794683456, 0.005876628216356039, 0.03430517390370369, -0.20816613733768463, -0.11932733654975891, 0.034180086106061935, -0.31830668449401855, 0.008012568578124046, -0.3116201162338257, 0.14688627421855927, -0.08682128041982651, 0.07337009906768799, 0.22406446933746338, -0.0069647058844566345, -0.20527885854244232, -0.025471853092312813, -0.10000903904438019, -0.33942851424217224, 0.42789554595947266, 0.2947579026222229, 0.08440413326025009, 0.22821570932865143, -0.00011492525663925335, 0.0709947720170021, 0.1664440929889679, -0.18155671656131744, -0.34277093410491943, -0.0916527658700943, -0.5097865462303162, -0.4445593059062958, -0.13383473455905914, -0.0916888415813446, -0.04989248141646385, -0.4900568425655365, 0.2561151385307312, -0.15688654780387878, 0.33148983120918274, 0.341852605342865, 0.16443440318107605, 0.24183548986911774, -0.14621327817440033, -0.008507358841598034, 0.26816439628601074, -0.2418031543493271, -0.1191277727484703, 0.17687293887138367, 0.08581668138504028, -0.06470585614442825, 0.2019874006509781, 0.05394372716546059, 0.05072261393070221, 0.41438421607017517, 0.06480221450328827, 0.11472649872303009, -0.0066971005871891975, -0.2883555591106415, 0.06572991609573364, 0.40049734711647034, 0.7070289254188538, 0.028068551793694496, -0.535003662109375, 0.09411561489105225, -0.031239919364452362, -0.12492706626653671, 0.1994028240442276, 0.24830986559391022, -0.2839065194129944, 0.023875083774328232, -0.2142188400030136, 0.04852103441953659, -0.19468070566654205, 0.5462664365768433, -0.03356984257698059, 0.666265606880188, 0.2300119400024414, 0.05126885697245598, 0.08502084016799927, -0.03452184051275253, 0.08300704509019852, -0.1274174451828003, 0.09340708702802658, 0.0012825160520151258, -0.3166346848011017, -0.0942254513502121, -0.2909426987171173, -0.0173590537160635, 0.04053032025694847, 0.008376858197152615, 0.2951489984989166, 0.23588114976882935, 0.018315445631742477, -0.07128474116325378, 0.17815753817558289, -0.10286639630794525, -0.16708014905452728, -0.2394866943359375, 0.3152793347835541, 0.1925612837076187, 0.13043653964996338, 0.1407720446586609, -0.06345294415950775, -0.14057078957557678, -0.42652589082717896, 0.17940837144851685, 0.06780622154474258, 0.0819205567240715, -0.30323752760887146, -0.23598714172840118, -0.09528525173664093, -0.25852951407432556, -0.23335932195186615, 0.23153916001319885, -0.22320589423179626, 0.3033587336540222, -0.014073937200009823, 0.08793170750141144, -0.07828046381473541, -0.37541064620018005, -0.11158321052789688, -0.061935991048812866, -0.09473594278097153, 0.13759560883045197, 0.46063297986984253, 0.23278267681598663, 0.21258339285850525, -0.18556208908557892, -0.3248119354248047, 0.12201827019453049, 0.08273006975650787, -0.008906695060431957, -0.20343594253063202, 0.2094968855381012, 0.038903720676898956, 0.5146356225013733, -0.01525979395955801, 0.24599650502204895, -0.25954264402389526, -0.01844046451151371, -0.06530899554491043, -0.027856959030032158, 0.16552765667438507, 0.09226341545581818, -0.16114211082458496, -0.14668187499046326, -0.3369726836681366, 0.029696408659219742, -0.19424277544021606, -0.07962732762098312, -0.3151364326477051, -0.09356672316789627, -0.3342670202255249, -0.12862028181552887, 0.24336083233356476, 0.4242473840713501, -0.3487020432949066, -0.008513998240232468, -0.37594708800315857, -0.0351443774998188, 0.292309045791626, 0.3570437729358673, -0.07959749549627304, 0.07169311493635178, -0.15897491574287415, -0.17692598700523376, 0.5281014442443848, -0.13438844680786133, -0.47258636355400085, 0.27041715383529663, -0.3284665048122406, 0.1723002940416336, 0.24602361023426056, 0.18703395128250122, 0.02674751542508602, -0.0835045650601387, 0.10471348464488983, 0.6350848078727722, 0.001276857452467084, 0.05151229724287987, -0.07068025320768356, -0.35615772008895874, 0.37980708479881287, 0.19108745455741882, -0.04785601422190666, 0.12341763824224472, -0.02624618262052536, 0.22350358963012695, 0.4299488961696625, -0.0060662939213216305, 0.2387934923171997, -0.019067492336034775, -0.15577225387096405, -0.13213768601417542, 0.029181988909840584, 0.07449004799127579, -0.7336918115615845, 0.31866952776908875, -0.1053306832909584, -0.16525578498840332, 0.08107611536979675, -0.003431497374549508, -0.27512043714523315, -0.34408077597618103, 0.07905928790569305, 0.09727665036916733, 0.10508808493614197, 0.5249685049057007, -0.041287846863269806, -0.08311974257230759, 0.00021383340936154127, 0.18629693984985352, 0.13731685280799866, 0.04022477939724922, -0.04189294949173927, 0.053267836570739746, -0.04454641789197922, 0.17131741344928741, 0.5440142750740051, -0.25675633549690247, 0.1717383861541748, -0.2130449265241623, -0.037135880440473557, 0.1358807384967804, -0.17396408319473267, 0.36118096113204956, 0.11197132617235184, -0.1792987734079361, 0.09265268594026566, -0.3793904781341553, 0.03709598630666733, 0.5412625074386597, 0.06411731988191605, -0.1362140029668808, -0.07269380241632462, 0.18978552520275116, 0.14487023651599884, 0.2603432238101959, 0.2921276390552521, 0.14364099502563477, 0.40120968222618103, -0.14104600250720978, 0.10606501996517181, -0.08868110924959183, 0.16131557524204254, 0.12437908351421356, -0.13675688207149506, -0.09580562263727188, -0.15033023059368134, 0.41068583726882935, 0.41486236453056335, -0.03722046688199043, 0.018788494169712067, 0.23579327762126923, -0.0668039470911026, -0.07496752589941025, -0.22412331402301788, 0.5326928496360779, 0.4717302918434143, 0.05628887563943863, 0.3155214488506317, 0.027367856353521347, 0.262788325548172, -0.49306929111480713, 0.25850027799606323, 0.20685119926929474, -0.34416988492012024, 0.2035888433456421, 0.07712265104055405, -0.1378408670425415, -0.1374780386686325, 0.07162025570869446, 0.38226398825645447, 0.25731411576271057, -0.1986299455165863, 0.05366145446896553, -0.6793521046638489, -0.5351986885070801, -0.3434399366378784, -0.25112292170524597, -0.14825168251991272, -0.3052467703819275, 0.12821438908576965, 0.27858802676200867, -0.28043389320373535, 0.1202683076262474, 0.031789302825927734, 0.22599753737449646, -0.1738283634185791, 0.1984795182943344, -0.21390670537948608, -0.13563556969165802, -0.25482624769210815, 0.09767385572195053, 0.3586399555206299, 0.33762335777282715, 0.29342734813690186, -0.3645833432674408, -0.1957138627767563, -0.31089523434638977, -0.03255119547247887, -0.15991584956645966, -0.003613882465288043, 0.13727502524852753, -0.03901315852999687, 0.5934833884239197, 0.13249550759792328, -0.39878928661346436, 0.15634335577487946, -0.009373510256409645, -0.04489937797188759, -0.06346188485622406, -0.0965004414319992, 0.09938476979732513, -0.034101493656635284, -0.623755156993866, -0.5904379487037659, -0.5234635472297668, 0.18603406846523285, -0.03532535955309868, 0.4430016875267029, 0.13969744741916656, -0.3087505102157593, -0.04156609997153282, 0.10248145461082458, 0.18441785871982574, -0.056667670607566833, -0.028026357293128967, 0.5375440120697021, -0.16195490956306458, -0.3553984463214874, 0.1727961003780365, 0.2059614658355713, 0.2009567767381668, 0.46326330304145813, -0.5046476125717163, 0.06467800587415695, -0.11976620554924011, -0.2729349434375763, 0.18706853687763214, -0.19811969995498657, 0.14202018082141876, -0.18990294635295868, -0.17568068206310272, -0.09216199070215225, -0.11020512133836746, -0.04741806536912918, 0.15425874292850494, 0.36092609167099, 0.10701627284288406, 0.0580693818628788, 0.05402620881795883, 0.5281319618225098, 0.21440589427947998, 0.02884543128311634, 0.38253843784332275, 0.06985623389482498, -0.09675836563110352, 0.20062334835529327, -0.22115078568458557, 0.05593293160200119, -0.14933635294437408, 0.35215726494789124, 0.4451560378074646, -0.1774463802576065, -0.15998077392578125, -0.33240607380867004, 0.013520519249141216, -0.11741289496421814, -0.4121009111404419, 0.06760847568511963, 0.07657729834318161, 0.08481716364622116, 0.25021082162857056, -0.09073101729154587, -0.10477042198181152, -0.2486218512058258, 0.14011768996715546, 0.2866029441356659, -0.05548745393753052, 0.2225303202867508, -0.11129278689622879, -0.08390699326992035, -0.4219070076942444, 0.32723644375801086, 0.06965376436710358, 0.6666909456253052, -0.07275724411010742, 0.09598855674266815, 0.0811183899641037, -0.04277357831597328, 0.3269475996494293, -0.2589518427848816, 0.36647742986679077, 0.1476522833108902, -0.027038050815463066, -0.32027527689933777, -0.18055233359336853, -0.15511326491832733, -0.1363304704427719, 0.28545039892196655, 0.24136510491371155, -0.5075763463973999, -0.26471951603889465, -0.012012096121907234, 0.3046756088733673, -0.22636936604976654, 0.12715262174606323, -0.09268186241388321, -0.4546775221824646, -0.16863536834716797, -0.24838699400424957, -0.19523361325263977, 0.0476718470454216, -0.06362274289131165, -0.10804015398025513, 0.12068326026201248, 0.0130331851541996, -0.008907141163945198, 0.10070768743753433, 0.11346118897199631, 0.4704126715660095, 0.26509955525398254, 0.15762224793434143, 0.2695904076099396, 0.20702408254146576, 0.4462991952896118, 0.15909337997436523, 0.08764322102069855, 0.1112576276063919, -0.08229584991931915, -0.01503870077431202, 0.5899674296379089, 0.0758291706442833, 0.19440308213233948, 0.07974617928266525, 0.11392436176538467, -0.11585474759340286, 0.16705872118473053, 0.30864161252975464, -0.4566766321659088, -0.15484975278377533, -0.3943791091442108, 0.3080310821533203, 0.051821622997522354, -0.11398238688707352, 0.36159393191337585, -0.09870333224534988, -0.2175687849521637, 0.05667772889137268, 0.11349321156740189, 1.051621913909912, -0.0584433488547802, 0.18158318102359772, -0.13888823986053467, -0.09308215975761414, 0.4372519850730896, 0.00562984449788928, 0.23013490438461304, -0.04000212624669075, -0.39499589800834656, -0.039870087057352066, 0.1387968361377716, 0.0006323191919364035, 0.3304257392883301, -0.3092362582683563, 0.4790848195552826, 0.14807067811489105, 0.2751786708831787, 0.2732681930065155, 0.08892455697059631, 0.07638668268918991, -0.0982353612780571, -0.3572636842727661, 0.054013170301914215, -0.207111194729805, 0.45920228958129883, -0.11649318784475327, -0.33373916149139404, -0.1740606129169464, -0.062447939068078995, -0.3034546971321106, 0.05112263932824135, -0.2851746678352356, 0.05603319779038429, -0.3349587917327881, -0.05035838112235069, 0.10389813035726547, 0.07655046880245209, 0.2055126279592514, 0.12842664122581482, -0.4939308762550354, 0.18279893696308136, -0.568478524684906, -0.09731359779834747, 0.015014179982244968, -0.09198518097400665, -0.1524520367383957, -0.24839633703231812, -0.18203164637088776, -0.12578439712524414, 0.08382578939199448, -0.16857732832431793, -0.04821786656975746, -0.17962482571601868, -0.2898652255535126, 0.23559017479419708, -0.14086852967739105, -0.10408918559551239, -0.12622250616550446, -0.2186388224363327, 0.10434389114379883, -0.23954932391643524, -0.10402493923902512, 0.272704541683197, 0.10630768537521362, -0.17497877776622772, -0.03202054649591446, 0.6141955852508545, -0.0027174947317689657, 0.125740647315979, 0.5313012599945068, 0.18200500309467316, -0.10840208828449249, -0.2623310983181, -0.3209680914878845, -0.28575968742370605, -0.3247819244861603, -0.07233574986457825, -0.13970860838890076, 0.04437410458922386, -0.014888518489897251, 0.4144522249698639, 0.09394831955432892, 0.18574389815330505, -0.0060849846340715885, -0.5259035229682922, -0.13345353305339813, 0.1294768899679184, 0.0421936921775341, 0.09200099855661392, -0.4193418622016907, 0.03450564667582512, 0.16744495928287506, 0.3862776756286621, -0.28897014260292053, 0.09076645225286484, -0.3084718585014343, 0.1050010472536087, 0.18382638692855835, -0.014771667309105396, 0.13692216575145721, 0.21861685812473297, -0.020785262808203697, -0.02058563381433487, -0.26064416766166687, -0.07913625240325928, -0.020868107676506042, 0.23877565562725067, 0.08866965025663376, -0.39160630106925964, 0.18319600820541382, -0.24717684090137482, -0.06042235344648361, 0.052607156336307526, -0.06636404246091843, -0.11418386548757553, 0.05837520584464073, 0.047180816531181335, 0.14640389382839203, 0.08835753798484802, -0.25558552145957947, 0.2022082805633545, 0.04967696592211723, 0.3802526891231537, 0.06882257759571075, 0.26523980498313904, 0.0698116272687912, -0.19442369043827057, -0.3725180923938751, -0.24814912676811218, 0.09054037183523178, 0.20646581053733826, 0.39349210262298584, 0.05170091986656189, -0.05516715720295906, 0.10356410592794418, 0.2066732794046402, 0.6060737371444702, 0.09497014433145523, -0.0037310817278921604, 0.1826518326997757, 0.08500513434410095, -0.3482975363731384, -0.10512693226337433, 0.42687374353408813, -0.049398235976696014, -0.13352330029010773, -0.01827743463218212, 0.16041794419288635, -0.2951151430606842, -0.04828832298517227, -0.10612785816192627, 0.3336080312728882, -0.044698309153318405, 0.13482625782489777, 0.3830813467502594, 0.1318681389093399, -0.022306524217128754, -0.14582853019237518, -0.011411377228796482, 0.18305645883083344, 0.20753757655620575, -0.2937127649784088, 0.2960055470466614, 0.0022070056293159723, 0.05122795328497887, -0.06331298500299454, -0.32413676381111145, -0.06495075672864914, 0.5230963826179504, 0.19080279767513275, 0.056831177324056625, 0.21894998848438263, 0.16270028054714203, -0.09953062981367111, -0.1670859456062317, -0.4335705637931824, 0.35116344690322876, 0.3017351031303406, -0.13930882513523102, -0.3634740710258484, -0.10486527532339096, -0.41236844658851624, 0.18915821611881256, -0.1128331646323204, -0.30352783203125, 0.3537465035915375, 0.25340035557746887, 0.02912093698978424, -0.4036998450756073, -0.32204070687294006, -0.16656523942947388, 0.01058808621019125, -0.3628241717815399, 0.17554794251918793, 0.2881414294242859, -0.16961099207401276, 0.2712325155735016, 0.2734295427799225, 0.03426116332411766, 0.19408054649829865, 0.051492493599653244, 0.2307008057832718, -0.05296573415398598, -0.039634816348552704, -0.12964099645614624, 0.32555535435676575, 0.27265799045562744, -0.15674541890621185, 0.48068171739578247, 0.04428030923008919, -0.12150605767965317, 0.15980377793312073, 0.07249480485916138, -0.2559204399585724, -0.17431743443012238, 0.4113020896911621, -0.026932187378406525, 0.04572787880897522, -0.09654263406991959, -0.15214256942272186, -0.29687419533729553, -0.11952248215675354, 0.01698695868253708, -0.091875359416008, 0.28615620732307434, -0.0004841901536565274, 0.024823306128382683, -0.18856513500213623, 1.0825711488723755, 0.014579030685126781, 0.1532886028289795, -0.2088090181350708, -0.4053683876991272, -0.6960789561271667, 0.1433439552783966, -0.2470800131559372, 0.09242507815361023, 0.10401646047830582, 0.12669788300991058, 0.09647130966186523, 0.24519290030002594, 0.07241219282150269, 0.42045819759368896, -0.14978404343128204, 0.30624881386756897, -0.5024483799934387, -0.22264862060546875, 0.09422643482685089, 0.44026345014572144, -0.20742978155612946, -0.42511096596717834, 0.4701160788536072, -0.23630419373512268, -0.03236544877290726, 0.0643191710114479, -0.15715785324573517, 0.24655842781066895, 0.29806146025657654, 0.3182750344276428, 0.04088452085852623, 0.5406665802001953, -0.05458949878811836, -0.25723007321357727, -0.4410829246044159, -0.1929125040769577, -0.07980277389287949, 0.034566301852464676, 0.153982013463974, 0.2596026062965393, 0.019587628543376923, 0.4092366099357605, -0.36682942509651184, 0.2018217146396637, -0.2354794293642044, 0.34162241220474243, 0.07194381952285767, 0.03035430796444416, -0.2026427537202835, 0.07768237590789795, 0.24468925595283508, -0.052966728806495667, -0.11593527346849442, -0.17985369265079498, -0.5251288414001465, -0.27192074060440063, 0.6197149753570557, -0.28909632563591003, -0.22164438664913177, -0.2276812344789505, 0.3758014142513275, -0.08105646818876266, 0.3304477632045746, 0.0215584859251976, 0.23012089729309082, 0.23977947235107422, 0.01745414547622204, -0.19030724465847015, 0.20941823720932007, -0.03433249518275261, -0.27183571457862854, 0.02913985401391983, 0.09310198575258255, 0.16945964097976685, -0.4575900733470917, -0.2863960564136505, -0.1042826846241951 ]
https://github.com/huggingface/datasets/issues/388
🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
Yeah, the download speed is sadly always extremely slow :-/. I will try to check out the `wmt17 zh-en` bug :-)
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code: ``` nlp.load_dataset('wmt14','de-en') nlp.load_dataset('wmt15','de-en') nlp.load_dataset('wmt17','de-en') nlp.load_dataset('wmt19','de-en') ``` The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18` 2. When trying to download `wmt17 zh-en`, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
21
🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code: ``` nlp.load_dataset('wmt14','de-en') nlp.load_dataset('wmt15','de-en') nlp.load_dataset('wmt17','de-en') nlp.load_dataset('wmt19','de-en') ``` The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18` 2. When trying to download `wmt17 zh-en`, I got the following error: > ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz Yeah, the download speed is sadly always extremely slow :-/. I will try to check out the `wmt17 zh-en` bug :-)
[ -0.3693391978740692, -0.24872775375843048, 0.021656418219208717, 0.38200658559799194, 0.14801771938800812, 0.0315844751894474, 0.020616210997104645, 0.10976899415254593, 0.150865837931633, -0.022493675351142883, -0.11923051625490189, 0.08131090551614761, 0.25701355934143066, 0.022128911688923836, -0.05040635168552399, -0.14980770647525787, -0.063618004322052, -0.012731732800602913, -0.32441282272338867, -0.09937737882137299, -0.353865385055542, 0.20095805823802948, -0.20646680891513824, 0.09059333801269531, 0.27523073554039, 0.08330072462558746, -0.13136088848114014, -0.1531079262495041, -0.29542210698127747, -0.25484761595726013, 0.36102354526519775, 0.3276958167552948, -0.055985402315855026, 0.2809765040874481, -0.00011312153219478205, -0.05602022260427475, 0.296731561422348, -0.03839857131242752, -0.26852336525917053, -0.2018243968486786, -0.5110461115837097, -0.3942413628101349, -0.07940658926963806, 0.08543507754802704, -0.018409864977002144, -0.2966770827770233, 0.24969276785850525, -0.043968237936496735, 0.0649198517203331, 0.249404639005661, 0.1683283895254135, 0.28793150186538696, -0.06867529451847076, -0.14551953971385956, 0.240701362490654, -0.20332428812980652, -0.310745507478714, 0.039978571236133575, 0.07859671860933304, -0.1796039342880249, 0.15572181344032288, 0.058483924716711044, 0.08752451092004776, 0.33626022934913635, 0.17600852251052856, 0.0942738950252533, 0.05104793235659599, -0.20175960659980774, 0.08279576897621155, 0.4504006505012512, 0.7103351950645447, 0.08515103161334991, -0.49574998021125793, 0.2819189429283142, -0.09189473092556, -0.23505230247974396, 0.34433600306510925, 0.31357628107070923, -0.21587206423282623, -0.07347149401903152, -0.4669168293476105, 0.2572806775569916, -0.13833346962928772, 0.48926079273223877, -0.09576201438903809, 0.7104799747467041, 0.1332419067621231, 0.1434035748243332, 0.3129822313785553, -0.11067980527877808, -0.08162067085504532, -0.27231425046920776, 0.00018873038061428815, 0.03349114581942558, -0.4814954698085785, -0.03222956508398056, -0.06586939841508865, 0.0954645648598671, 0.07542882859706879, 0.10160869359970093, 0.28500914573669434, 0.21214941143989563, 0.021026520058512688, -0.051725707948207855, 0.20974834263324738, -0.021904701367020607, -0.2130887508392334, -0.16405045986175537, 0.4323970675468445, 0.24502348899841309, 0.15230339765548706, 0.1677439957857132, 0.14670836925506592, -0.04880082234740257, -0.22991526126861572, 0.024273553863167763, -0.05051112547516823, 0.001959319459274411, -0.4001103341579437, -0.166573628783226, -0.12383513152599335, -0.24534010887145996, -0.1645411103963852, 0.32257556915283203, -0.28404173254966736, 0.16989387571811676, -0.121205173432827, 0.17798908054828644, -0.08428557217121124, -0.24176642298698425, -0.16136719286441803, -0.15749971568584442, -0.26566147804260254, 0.0487126000225544, 0.543491542339325, 0.27568939328193665, 0.13496842980384827, -0.027694229036569595, -0.4596250057220459, 0.12991808354854584, 0.10531194508075714, -0.17552930116653442, -0.15066178143024445, 0.30813440680503845, 0.041403528302907944, 0.45119374990463257, -0.11814716458320618, 0.2141902595758438, -0.21801425516605377, -0.014789012260735035, -0.19125394523143768, 0.06831658631563187, 0.18333818018436432, 0.16965684294700623, -0.15218836069107056, -0.1954442262649536, -0.1842024326324463, 0.07427209615707397, -0.2544250190258026, 0.06592033058404922, -0.28661468625068665, -0.10902836173772812, -0.3650817275047302, -0.11893895268440247, 0.18130095303058624, 0.3788799047470093, -0.31317371129989624, -0.0457645058631897, -0.30167028307914734, -0.10566449165344238, 0.39262664318084717, 0.4808873236179352, -0.021460313349962234, -0.06908275932073593, -0.2611776292324066, -0.11333013325929642, 0.47934046387672424, -0.056939542293548584, -0.5938488841056824, 0.42854228615760803, -0.1727682650089264, 0.08561617881059647, 0.17797702550888062, 0.1772717833518982, -0.08558283746242523, -0.08258213847875595, 0.12703385949134827, 0.7016554474830627, 0.005917559843510389, 0.06210801750421524, -0.08234953135251999, -0.34962186217308044, 0.4960261881351471, 0.07937473058700562, -0.13106560707092285, 0.06298688799142838, 0.07747037708759308, 0.2308809459209442, 0.4280628561973572, -0.04929562285542488, 0.12070658802986145, 0.21196511387825012, 0.006104517262428999, -0.23262694478034973, 0.16752395033836365, 0.2613879144191742, -0.8036823272705078, 0.3271983861923218, -0.17318174242973328, 0.042075954377651215, 0.05337262153625488, 0.09867490828037262, -0.09309915453195572, -0.23251162469387054, -0.11485879868268967, 0.11961964517831802, 0.09923356026411057, 0.4008773863315582, -0.0808938592672348, 0.03854672983288765, 0.2440882921218872, 0.1637263149023056, 0.18601463735103607, 0.07212423533201218, 0.03751801699399948, 0.08900556713342667, -0.1497068554162979, 0.10789284110069275, 0.41900795698165894, -0.2034534513950348, 0.09057024866342545, -0.22554509341716766, -0.10613420605659485, 0.030129849910736084, -0.11876358836889267, 0.34578466415405273, 0.034265875816345215, 0.012957915663719177, 0.18464411795139313, -0.36449718475341797, 0.043060071766376495, 0.5446993708610535, 0.15926851332187653, -0.2901194989681244, -0.28310397267341614, 0.16040188074111938, 0.2294866442680359, 0.25566551089286804, 0.26385244727134705, -0.028795339167118073, 0.3943084478378296, -0.027174964547157288, 0.06972342729568481, -0.07047228515148163, 0.3118411898612976, 0.10419297963380814, -0.1764557659626007, -0.1047058030962944, -0.17862749099731445, 0.3837140202522278, 0.7334497570991516, -0.02737368270754814, 0.0445232056081295, 0.21515779197216034, -0.009701140224933624, -0.2793853282928467, -0.10212567448616028, 0.24195563793182373, 0.530739426612854, -0.018457312136888504, 0.3182314932346344, -0.007591291330754757, 0.05282212421298027, -0.4657366871833801, 0.26583316922187805, 0.03235030174255371, -0.263278990983963, 0.20835204422473907, 0.1461828351020813, -0.11726230382919312, -0.27022895216941833, -0.03917764499783516, 0.37227922677993774, 0.31836211681365967, -0.11375356465578079, 0.021599723026156425, -0.5688726902008057, -0.43375512957572937, -0.041705187410116196, -0.09722880274057388, -0.23284047842025757, -0.4373249113559723, -0.01061699353158474, 0.3592894375324249, -0.11753097921609879, 0.08346658200025558, 0.01123789418488741, 0.05181653052568436, 0.03219407796859741, 0.11225175112485886, -0.22323058545589447, -0.0508839450776577, -0.29367417097091675, 0.05064164474606514, 0.2501956522464752, -0.00482475059106946, 0.3465158939361572, -0.2549165189266205, 0.004322355147451162, -0.2484770268201828, -0.18281549215316772, -0.07342293858528137, -0.13284197449684143, -0.009791890159249306, 0.02100558392703533, 0.3756832480430603, -0.04847315698862076, 0.019789790734648705, 0.2677248418331146, -0.1306692361831665, -0.0933631882071495, 0.15001648664474487, -0.1475171446800232, -0.11639833450317383, -0.14553095400333405, -0.46186840534210205, -0.41964778304100037, -0.39093759655952454, 0.2283402681350708, 0.017711518332362175, 0.26472246646881104, 0.2665114104747772, -0.24339599907398224, -0.009089946746826172, 0.1340954303741455, 0.1358199119567871, -0.2116515040397644, 0.10967843234539032, 0.5519055724143982, -0.012211828492581844, -0.4962180256843567, 0.2889944911003113, 0.3083997666835785, 0.12821710109710693, 0.46663421392440796, -0.5050535798072815, 0.08147919178009033, -0.22450239956378937, -0.08681849390268326, 0.21056503057479858, -0.08062882721424103, 0.18034395575523376, -0.20143312215805054, -0.1320718228816986, -0.06354649364948273, -0.22663483023643494, 0.0003429102071095258, 0.33549606800079346, 0.2945864498615265, 0.05751625820994377, 0.0751541256904602, 0.11302273720502853, 0.25512534379959106, 0.3227809965610504, 0.03557600826025009, 0.4502717852592468, 0.05707894638180733, -0.03955846652388573, 0.055557556450366974, -0.16168680787086487, 0.08649799227714539, -0.15083587169647217, 0.4195185899734497, 0.3306366503238678, -0.1776619255542755, -0.2543930411338806, -0.22119756042957306, 0.2076505869626999, 0.1560290902853012, -0.3032638430595398, -0.03628437593579292, 0.09262897074222565, -0.024727148935198784, 0.25823354721069336, 0.05453091859817505, 0.02809997834265232, -0.49633002281188965, 0.1535639613866806, 0.28111782670021057, -0.11596579104661942, 0.17097117006778717, -0.05429200455546379, -0.025126149877905846, -0.5100094079971313, 0.2622944414615631, -0.08693724870681763, 0.6925248503684998, -0.24529506266117096, 0.1321941465139389, 0.15418025851249695, -0.13343538343906403, 0.3795636296272278, -0.33554717898368835, 0.4085904657840729, 0.24411411583423615, -0.09982457011938095, -0.31038975715637207, -0.26998990774154663, -0.30740851163864136, -0.29784008860588074, 0.2070450484752655, 0.4671505391597748, -0.4036855697631836, -0.2595314085483551, -0.0028824200853705406, 0.25275519490242004, -0.08343318104743958, 0.032995108515024185, -0.16558919847011566, -0.4258914589881897, -0.07593046873807907, -0.19603776931762695, -0.2923620939254761, 0.0790412575006485, -0.20441102981567383, -0.07171638309955597, 0.16852021217346191, 0.004644802305847406, -0.03877529874444008, 0.019535629078745842, 0.02907400019466877, 0.2013510763645172, 0.35277917981147766, 0.04115675762295723, 0.20881232619285583, -0.004182854667305946, 0.48811712861061096, 0.18260832130908966, -0.019179465249180794, 0.2027256190776825, -0.1937296837568283, -0.1419254094362259, 0.4482370615005493, 0.06169832497835159, 0.11611230671405792, -0.019744958728551865, 0.1926819533109665, -0.1204136312007904, -0.06463623046875, 0.4672899544239044, -0.31626027822494507, -0.2791852653026581, -0.22826184332370758, 0.2917952239513397, 0.09229873865842819, -0.06323052942752838, 0.3406100571155548, -0.07523082196712494, -0.10062431544065475, 0.054261162877082825, -0.07270500808954239, 0.8992083072662354, -0.07506679743528366, 0.16761188209056854, 0.02844569832086563, -0.012026195414364338, 0.34871190786361694, -0.07879778742790222, 0.2581680119037628, -0.17696082592010498, -0.22498171031475067, -0.003369400277733803, 0.031114697456359863, 0.027461189776659012, 0.2101248949766159, -0.4092717468738556, 0.5043520927429199, 0.2017362415790558, 0.2596508860588074, 0.21108421683311462, 0.09160429984331131, -0.0027353838086128235, -0.08225464075803757, -0.06914281845092773, 0.13383732736110687, -0.12575840950012207, 0.593008279800415, -0.011537128128111362, -0.33997470140457153, -0.063303641974926, -0.05042501911520958, -0.33756574988365173, 0.2289004772901535, -0.22116360068321228, 0.1064884141087532, -0.27809038758277893, -0.0289227943867445, 0.11299709975719452, -0.10821951180696487, 0.11689875274896622, 0.14735037088394165, -0.4352395236492157, 0.10449765622615814, -0.5686905384063721, 0.1226673424243927, 0.04550528898835182, -0.06568732112646103, -0.07661766558885574, -0.26322418451309204, -0.15478865802288055, -0.1998172253370285, -0.049409810453653336, -0.07310230284929276, -0.04698863998055458, -0.11418571323156357, -0.29272693395614624, 0.2307787835597992, -0.0337507463991642, -0.12792815268039703, -0.2546490728855133, -0.09520330280065536, 0.1239214614033699, -0.027990903705358505, 0.06289763748645782, 0.4031960964202881, 0.10705418139696121, -0.26569893956184387, -0.13430602848529816, 0.6130915284156799, -0.15190860629081726, 0.15012070536613464, 0.34983065724372864, 0.18830910325050354, -0.20841239392757416, -0.3143334686756134, -0.3719790279865265, -0.08975303173065186, -0.40024736523628235, -0.06923120468854904, -0.14408402144908905, 0.10016997158527374, 0.11705545336008072, 0.47557422518730164, -0.04902605712413788, 0.05586701259016991, 0.05622611194849014, -0.5779899954795837, -0.0762099027633667, -0.017379168421030045, -0.07521752268075943, 0.06039092317223549, -0.3815554678440094, -0.06139757111668587, 0.3596574068069458, 0.09121200442314148, -0.2972773611545563, 0.08413929492235184, -0.2831425368785858, -0.020584827288985252, 0.29910823702812195, -0.19705811142921448, 0.1398496776819229, 0.12177737802267075, 0.03174520283937454, -0.11539870500564575, -0.5138579607009888, -0.13495613634586334, -0.012688585557043552, 0.19682617485523224, 0.2312013804912567, -0.3998679518699646, 0.10133872926235199, -0.2693151533603668, -0.13870012760162354, -0.02990862913429737, 0.023805614560842514, -0.06971617043018341, -0.11349957436323166, 0.015545089729130268, 0.015987273305654526, 0.17847511172294617, -0.0522678941488266, 0.17897100746631622, 0.08107080310583115, 0.39839160442352295, -0.032297126948833466, 0.2166852056980133, 0.14202335476875305, -0.13067369163036346, -0.4640186131000519, -0.12506671249866486, 0.004228633362799883, 0.1668860763311386, 0.4557458460330963, -0.15033824741840363, 0.11459659785032272, -0.19031693041324615, 0.28947001695632935, 0.5473500490188599, -0.01970636658370495, -0.1659720242023468, 0.0818416103720665, 0.14173975586891174, -0.2528596818447113, -0.32409968972206116, 0.2707701325416565, 0.26600775122642517, -0.0896599143743515, -0.11656475812196732, 0.26680099964141846, -0.22756646573543549, 0.0049264095723629, -0.11710835248231888, 0.5208175778388977, -0.16627271473407745, -0.07325447350740433, 0.32509854435920715, 0.09123102575540543, 0.19147205352783203, -0.045718997716903687, -0.051502525806427, 0.013542030937969685, 0.14610613882541656, -0.10718996077775955, 0.19411969184875488, 0.13372375071048737, 0.1880323588848114, -0.006420864723622799, -0.4491778612136841, -0.13419832289218903, 0.4470541179180145, -0.10824231803417206, 0.08372163772583008, 0.2773933708667755, 0.04683942720293999, -0.18601949512958527, -0.23363548517227173, -0.5212225317955017, 0.24924184381961823, 0.14419306814670563, -0.21762166917324066, -0.15785789489746094, -0.04063937067985535, -0.3839211165904999, 0.30181434750556946, -0.20111379027366638, -0.10448405146598816, 0.3324408531188965, 0.14687709510326385, 0.059201233088970184, -0.40446045994758606, -0.24514347314834595, -0.10186050832271576, -0.01171229500323534, -0.27201372385025024, 0.13106220960617065, 0.043497368693351746, -0.1083543673157692, 0.05095679685473442, 0.11661616712808609, 0.1323672980070114, 0.24665135145187378, 0.044189561158418655, 0.15147636830806732, -0.05503925308585167, -0.07698369771242142, -0.12671154737472534, 0.5055834054946899, 0.31765708327293396, -0.31329068541526794, 0.378860741853714, 0.010559129528701305, -0.12533210217952728, 0.16140687465667725, 0.047646742314100266, -0.11730185151100159, -0.027811778709292412, 0.40965336561203003, -0.1731022298336029, 0.007070714142173529, -0.08085313439369202, -0.029183167964220047, -0.22729775309562683, -0.04897486791014671, 0.2235087901353836, -0.031447265297174454, 0.31165745854377747, -0.19724926352500916, 0.06267590820789337, -0.14039693772792816, 0.9632142782211304, 0.17470455169677734, 0.008198512718081474, -0.1843712329864502, -0.23486407101154327, -0.6164382696151733, 0.10305581986904144, -0.2522726356983185, 0.1988205909729004, 0.06164608895778656, 0.2748508155345917, -0.030910907313227654, 0.212880939245224, 0.17940953373908997, 0.49605637788772583, -0.0012596296146512032, 0.3387599289417267, -0.3486461937427521, -0.15764497220516205, 0.06712407618761063, 0.2313787043094635, -0.3162716031074524, -0.5026993751525879, 0.5336248874664307, -0.45304495096206665, 0.029982777312397957, -0.18135403096675873, -0.04188333451747894, 0.14481379091739655, 0.3595474660396576, 0.35217955708503723, 0.14094500243663788, 0.5347124338150024, 0.10010439157485962, -0.23660627007484436, -0.4052681028842926, -0.06488259136676788, 0.08727741241455078, -0.006620843429118395, 0.06285295635461807, 0.06961831450462341, 0.18089734017848969, 0.4258285462856293, -0.33662110567092896, 0.24177707731723785, -0.34102779626846313, 0.3019995093345642, 0.1489572823047638, 0.20376341044902802, -0.15931551158428192, 0.08258908241987228, 0.15611855685710907, -0.09601354598999023, -0.047536879777908325, -0.280830055475235, -0.46689754724502563, -0.27085813879966736, 0.3842175304889679, -0.13621747493743896, -0.23591218888759613, -0.316233366727829, 0.25793224573135376, -0.1017075777053833, 0.20794415473937988, -0.04330587759613991, 0.2353966236114502, 0.1794017106294632, -0.17817863821983337, -0.2937730550765991, 0.2973271608352661, -0.00957961194217205, -0.17041081190109253, 0.042689476162195206, 0.10260044783353806, 0.14127559959888458, -0.4580462872982025, -0.1470402330160141, -0.039497192949056625 ]
https://github.com/huggingface/datasets/issues/387
Conversion through to_pandas output numpy arrays for lists instead of python objects
To convert from arrow type we have three options: to_numpy, to_pandas and to_pydict/to_pylist. - to_numpy and to_pandas return numpy arrays instead of lists but are very fast. - to_pydict/to_pylist can be 100x slower and become the bottleneck for reading data, but at least they return lists. Maybe we can have to_pydict/to_pylist as the default and use to_numpy or to_pandas when the format (set by `set_format`) is 'numpy' or 'pandas'
In a related question, the conversion through to_pandas output numpy arrays for the lists instead of python objects. Here is an example: ```python >>> dataset._data.slice(key, 1).to_pandas().to_dict("list") {'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [array([ 101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102])], 'token_type_ids': [array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])], 'attention_mask': [array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])]} >>> type(dataset._data.slice(key, 1).to_pandas().to_dict("list")['input_ids'][0]) <class 'numpy.ndarray'> >>> dataset._data.slice(key, 1).to_pydict() {'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [[101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102]], 'token_type_ids': [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], 'attention_mask': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]} ```
69
Conversion through to_pandas output numpy arrays for lists instead of python objects In a related question, the conversion through to_pandas output numpy arrays for the lists instead of python objects. Here is an example: ```python >>> dataset._data.slice(key, 1).to_pandas().to_dict("list") {'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [array([ 101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102])], 'token_type_ids': [array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])], 'attention_mask': [array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])]} >>> type(dataset._data.slice(key, 1).to_pandas().to_dict("list")['input_ids'][0]) <class 'numpy.ndarray'> >>> dataset._data.slice(key, 1).to_pydict() {'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [[101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102]], 'token_type_ids': [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], 'attention_mask': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]} ``` To convert from arrow type we have three options: to_numpy, to_pandas and to_pydict/to_pylist. - to_numpy and to_pandas return numpy arrays instead of lists but are very fast. - to_pydict/to_pylist can be 100x slower and become the bottleneck for reading data, but at least they return lists. Maybe we can have to_pydict/to_pylist as the default and use to_numpy or to_pandas when the format (set by `set_format`) is 'numpy' or 'pandas'
[ 0.25602757930755615, -0.07245661318302155, -0.2367635816335678, -0.00923510454595089, 0.2625878155231476, 0.08429252356290817, 0.6678323745727539, 0.32101282477378845, 0.08501549810171127, 0.109687939286232, -0.22308479249477386, 0.6318758726119995, 0.04617898911237717, -0.017983216792345047, 0.011641371063888073, -0.17475023865699768, 0.09567496180534363, 0.2547397315502167, -0.2903563380241394, -0.0689312070608139, -0.28306737542152405, 0.015639835968613625, -0.014375262893736362, 0.04701725021004677, -0.03168157860636711, -0.12294304370880127, -0.24301183223724365, -0.06696528941392899, -0.009963383898139, -0.2817724645137787, -0.11027295887470245, -0.05220819637179375, -0.156547412276268, 0.10774779319763184, -0.00009658550698077306, 0.011758516542613506, 0.10074660927057266, 0.12844881415367126, -0.27789822220802307, 0.09881221503019333, 0.22089901566505432, -0.4964863955974579, 0.12832136452198029, -0.389886736869812, 0.019424455240368843, -0.370951771736145, -0.0011589605128392577, -0.2352718561887741, 0.22336317598819733, 0.23780471086502075, 0.3248370885848999, 0.08249959349632263, 0.04067491739988327, -0.009180933237075806, -0.15301115810871124, -0.053650811314582825, -0.11167315393686295, -0.09680507332086563, 0.07402290403842926, -0.00034506042720749974, 0.022483069449663162, 0.19682841002941132, -0.23121783137321472, -0.054092127829790115, -0.12028464674949646, 0.07834337651729584, 0.17508678138256073, -0.2016630321741104, -0.059109389781951904, 0.13222624361515045, 0.07103347033262253, -0.21810829639434814, -0.27256572246551514, -0.35799339413642883, 0.011065887287259102, -0.10444071888923645, -0.2819863259792328, 0.14973697066307068, -0.04193852096796036, 0.30475714802742004, -0.056725747883319855, 0.14159199595451355, -0.19755694270133972, 0.13296820223331451, -0.22346267104148865, 0.1334761083126068, -0.0038777063600718975, -0.026997117325663567, 0.11812575906515121, -0.2326648235321045, 0.2993660867214203, -0.15403063595294952, 0.2643837332725525, 0.008697270415723324, -0.0715571865439415, -0.1338416188955307, 0.1959289014339447, -0.38730621337890625, -0.03227229416370392, -0.33296236395835876, 0.1830250471830368, -0.05389527603983879, -0.023533394560217857, 0.13198480010032654, 0.12480318546295166, 0.2315279096364975, -0.01031289529055357, 0.10864581912755966, -0.033191852271556854, -0.022217757999897003, 0.14282041788101196, 0.10673592239618301, 0.02081437222659588, 0.04767649248242378, 0.10392964631319046, 0.05435294657945633, 0.20670977234840393, 0.09484725445508957, -0.3995529115200043, 0.021492186933755875, -0.4321013391017914, 0.37279221415519714, -0.14166736602783203, 0.08713346719741821, -0.005686003714799881, 0.5033515691757202, 0.05709429830312729, 0.07840999215841293, 0.01207693200558424, 0.31285199522972107, -0.22225940227508545, 0.26594316959381104, 0.008957901038229465, -0.2215341031551361, -0.021026797592639923, 0.39064547419548035, 0.0046086739748716354, 0.0056058126501739025, 0.2724509835243225, 0.05295080319046974, 0.009036018513143063, -0.05702570825815201, 0.398490846157074, 0.15818648040294647, -0.01832226663827896, 0.10295713692903519, 0.33050623536109924, -0.27357202768325806, -0.07340831309556961, 0.32358628511428833, 0.08975456655025482, 0.09800316393375397, -0.07304923981428146, 0.3501081168651581, 0.02674398012459278, -0.13536085188388824, 0.12049275636672974, 0.19605569541454315, 0.09799151122570038, 0.03919666260480881, -0.06270115822553635, -0.3927682638168335, 0.1285284012556076, -0.23424272239208221, -0.025801587849855423, 0.0015651693101972342, -0.4275612235069275, 0.10420899093151093, 0.0402691476047039, -0.0326833501458168, 0.21900324523448944, 0.38475939631462097, -0.015379639342427254, -0.03114124946296215, -0.10359593480825424, 0.19598868489265442, -0.07009059935808182, -0.2117776721715927, -0.14313992857933044, 0.025964317843317986, 0.1356392502784729, 0.32132384181022644, 0.23091618716716766, 0.1676853895187378, 0.18781836330890656, 0.03334914892911911, 0.1708783507347107, 0.08543295413255692, 0.0253948662430048, 0.16540396213531494, -0.21664270758628845, -0.20080749690532684, 0.21756891906261444, -0.05016687884926796, -0.027714803814888, 0.3013146221637726, -0.14789219200611115, -0.07523830980062485, 0.2646346092224121, -0.35225751996040344, -0.08639627695083618, -0.10852929204702377, 0.12631534039974213, -0.18569812178611755, -0.07065857201814651, -0.0009578974568285048, 0.09292244166135788, 0.009178537875413895, -0.13110332190990448, 0.32574835419654846, -0.22178193926811218, -0.42438623309135437, -0.34950876235961914, 0.04575856029987335, -0.013223838992416859, 0.027681177482008934, 0.4024394154548645, 0.0568419024348259, 0.09816285222768784, -0.08291443437337875, 0.1711260825395584, 0.048542268574237823, -0.1781456172466278, -0.03653477132320404, -0.2771186828613281, 0.0510207936167717, -0.16102354228496552, -0.061661750078201294, -0.010237532667815685, 0.2658473551273346, 0.04107807204127312, 0.1367577612400055, 0.2536698281764984, 0.15686194598674774, 0.2253483533859253, -0.13639110326766968, 0.07895077019929886, 0.17313961684703827, 0.1421353965997696, -0.01074102520942688, 0.31492385268211365, 0.5039956569671631, 0.1378079205751419, 0.050674181431531906, -0.039413049817085266, 0.5265212059020996, 0.10047411173582077, 0.06737639009952545, 0.14981718361377716, 0.24384263157844543, 0.22833341360092163, 0.2267894297838211, -0.022183839231729507, -0.16476809978485107, -0.20458298921585083, 0.08839458227157593, -0.03721049055457115, 0.078345887362957, -0.5608397722244263, 0.3296593129634857, 0.38717225193977356, -0.125435933470726, 0.2982020378112793, -0.04294786602258682, -0.11709238588809967, -0.12968383729457855, 0.009282400831580162, -0.08549771457910538, 0.0647064819931984, 0.3047468960285187, 0.13462264835834503, -0.10111995786428452, -0.24635209143161774, -0.15735666453838348, 0.171603262424469, 0.14038868248462677, 0.14972519874572754, -0.051928695291280746, 0.22851353883743286, -0.21219800412654877, -0.21408416330814362, 0.05724003538489342, -0.27524539828300476, 0.10162043571472168, -0.22886961698532104, 0.23894697427749634, -0.34866586327552795, -0.21876773238182068, -0.004796125460416079, -0.16468755900859833, 0.23677749931812286, -0.4387478232383728, 0.11862487345933914, 0.08315303176641464, -0.09628408402204514, 0.027576200664043427, 0.38944825530052185, -0.010233631357550621, 0.30712535977363586, 0.1124023050069809, -0.13750870525836945, -0.2112656980752945, 0.01763470470905304, 0.3510562479496002, -0.03250638023018837, 0.11014312505722046, 0.1001259833574295, -0.06349438428878784, -0.05700420215725899, -0.13352563977241516, -0.27513736486434937, 0.003108407137915492, -0.2275831550359726, 0.18850913643836975, 0.21131844818592072, 0.28268787264823914, -0.24877899885177612, -0.04935247823596001, -0.07172203809022903, -0.0535934679210186, -0.08644053339958191, 0.10110612213611603, 0.029637299478054047, -0.012777023017406464, -0.13915547728538513, -0.2738076150417328, -0.3708687126636505, -0.24616090953350067, 0.24577590823173523, 0.19725769758224487, 0.14487804472446442, 0.04192749783396721, 0.37204667925834656, 0.3241763412952423, 0.23554977774620056, 0.2129003256559372, -0.12524951994419098, 0.12985193729400635, 0.28621214628219604, -0.1785423457622528, -0.32477545738220215, -0.3495490849018097, -0.040335386991500854, -0.09183238446712494, -0.22656558454036713, -0.04711101949214935, -0.46094685792922974, -0.1354731172323227, -0.012589622288942337, 0.19353270530700684, -0.03266511857509613, 0.14904512465000153, 0.26809078454971313, -0.3067958950996399, -0.05020373314619064, 0.09719675034284592, -0.042838599532842636, 0.043268512934446335, -0.08406935632228851, -0.0630858838558197, 0.05010876804590225, 0.15260522067546844, 0.21947428584098816, 0.0977596640586853, -0.1959163248538971, -0.13121189177036285, -0.015270726755261421, 0.32804515957832336, -0.16063079237937927, -0.10106509923934937, -0.24103139340877533, -0.16821672022342682, -0.09819552302360535, 0.12482991069555283, -0.14720478653907776, -0.3451808989048004, 0.0037208141293376684, 0.23766790330410004, -0.3825843036174774, -0.09685959666967392, 0.1131855845451355, -0.2335452288389206, -0.04786267876625061, 0.041628751903772354, 0.21795928478240967, -0.21251262724399567, 0.012760680168867111, -0.1765972524881363, -0.03603959083557129, 0.25042927265167236, -0.1270262449979782, -0.37206700444221497, -0.27427947521209717, -0.3555976152420044, 0.30586281418800354, 0.2006746083498001, 0.19693154096603394, 0.12455246597528458, -0.41186338663101196, -0.06825970858335495, 0.01907452382147312, 0.47033461928367615, 0.08217624574899673, -0.3371403217315674, 0.36463072896003723, 0.020566217601299286, -0.096164271235466, 0.10426702350378036, -0.5635345578193665, 0.009334825910627842, 0.1641114354133606, 0.10901205241680145, -0.2452835589647293, -0.05958492308855057, 0.08113723248243332, 0.2119959145784378, 0.011874150484800339, 0.17696094512939453, -0.11130380630493164, -0.3024589419364929, -0.2614578604698181, 0.019808219745755196, 0.19834694266319275, 0.12581302225589752, -0.4265233874320984, -0.2748197913169861, -0.16187304258346558, -0.22168505191802979, 0.3759468197822571, 0.17749285697937012, 0.034663863480091095, -0.04053429141640663, -0.1933378279209137, -0.20157258212566376, 0.23106327652931213, 0.15659557282924652, -0.056722670793533325, -0.22540244460105896, -0.12002139538526535, -0.09816066920757294, -0.05513707920908928, 0.1993042528629303, 0.24184750020503998, -0.08968833833932877, -0.05645746737718582, -0.24138221144676208, -0.06638087332248688, 0.1501808762550354, -0.14604638516902924, 0.22116999328136444, 0.07006139308214188, -0.027651723474264145, -0.32919660210609436, 0.1209779679775238, 0.04637622833251953, -0.10512484610080719, -0.02228543534874916, -0.1152673214673996, -0.2081456184387207, 0.2638198733329773, 0.03251209482550621, 0.8158711791038513, -0.10561741888523102, 0.30055245757102966, 0.4592892825603485, -0.19771642982959747, 0.4725385010242462, 0.22859632968902588, 0.11599598079919815, -0.25189483165740967, -0.057671062648296356, -0.05947989597916603, -0.010046616196632385, 0.2043708860874176, 0.253242552280426, -0.2561310827732086, 0.11577329784631729, -0.2948713004589081, 0.1316438913345337, 0.04822660982608795, -0.05555707588791847, 0.038502346724271774, -0.1773589700460434, -0.589729368686676, 0.33529528975486755, 0.0547797791659832, -0.417468398809433, -0.030040845274925232, -0.13067974150180817, -0.3652648627758026, 0.16645771265029907, 0.17220373451709747, 0.01497561950236559, 0.23710192739963531, 0.28570756316185, 0.11305259168148041, -0.39737045764923096, -0.3194505572319031, 0.2990211248397827, 0.0782361626625061, 0.14305587112903595, 0.0597059391438961, -0.1594381034374237, 0.12496217340230942, 0.10964616388082504, 0.22937710583209991, -0.05772016942501068, 0.49653905630111694, 0.1031080111861229, -0.05005873367190361, 0.17604996263980865, 0.00927194394171238, -0.21804329752922058, -0.18851308524608612, -0.027195589616894722, 0.007690092083066702, -0.3465360403060913, -0.14825376868247986, -0.051615651696920395, -0.4196208119392395, -0.18434388935565948, 0.2770850956439972, -0.03147508203983307, -0.09960003942251205, 0.3277488350868225, 0.02461659535765648, -0.0796906054019928, -0.012031912803649902, 0.11325996369123459, 0.41377872228622437, 0.034513700753450394, 0.05918005481362343, 0.07014421373605728, -0.3847636282444, -0.23871935904026031, 0.08254256844520569, -0.1526106595993042, 0.07036048918962479, 0.4293040335178375, -0.11218120902776718, -0.14179731905460358, -0.13935555517673492, -0.10047457367181778, -0.12531961500644684, 0.37286290526390076, -0.45719704031944275, -0.20463140308856964, -0.25897666811943054, 0.18189826607704163, 0.09116560220718384, 0.335326611995697, 0.2383178174495697, 0.1342778503894806, -0.20935550332069397, -0.24031797051429749, -0.5028529763221741, -0.17356333136558533, -0.3184010684490204, 0.1316959261894226, 0.03487338870763779, -0.23329292237758636, -0.10631066560745239, 0.06224043667316437, 0.37763941287994385, 0.16256649792194366, -0.00792480818927288, -0.45199471712112427, 0.20446108281612396, 0.023530304431915283, -0.0102157574146986, -0.16325713694095612, 0.21163387596607208, -0.020133158192038536, -0.24783320724964142, -0.24645766615867615, 0.012144478969275951, 0.03656416013836861, -0.07958614826202393, 0.22352324426174164, 0.06538703292608261, 0.328732967376709, 0.3674654960632324, -0.12157311290502548, -0.24073712527751923, -0.06277909129858017, -0.052008602768182755, 0.15857957303524017, -0.0030754460021853447, -0.05916998162865639, 0.04682411625981331, 0.297647625207901, -0.003188015893101692, 0.07744413614273071, 0.4809100031852722, -0.04061900079250336, -0.1691298484802246, -0.04046768322587013, 0.3440820872783661, 0.0845601037144661, -0.21108341217041016, -0.09585695713758469, 0.008123544976115227, 0.40072324872016907, -0.30733004212379456, -0.10814863443374634, 0.1571560949087143, -0.34838932752609253, 0.2309490144252777, 0.4312073886394501, 0.08350875228643417, -0.011692147701978683, 0.1095954179763794, -0.05015244334936142, 0.08158199489116669, -0.26621049642562866, -0.11645087599754333, 0.5820597410202026, 0.006645441986620426, -0.10178880393505096, 0.07112303376197815, -0.1162685751914978, 0.1665242612361908, 0.4918723404407501, 0.020992955192923546, 0.40345945954322815, 0.11355964839458466, 0.025419853627681732, 0.25469765067100525, 0.39299458265304565, 0.07712792605161667, 0.07588718831539154, -0.1733095943927765, 0.21354123950004578, 0.2939055562019348, 0.06929216533899307, -0.20937222242355347, 0.14424894750118256, -0.02910853922367096, 0.3133701682090759, -0.2688262462615967, -0.129201278090477, -0.1011279821395874, -0.09361230581998825, 0.01455141231417656, -0.33555325865745544, -0.035187728703022, -0.22108659148216248, 0.20591352880001068, -0.16742850840091705, 0.04022793099284172, -0.06856117397546768, 0.24080264568328857, -0.14090856909751892, 0.34628230333328247, -0.051620058715343475, -0.27998626232147217, 0.21196942031383514, 0.20597560703754425, -0.06349234282970428, 0.24580512940883636, 0.4413484036922455, 0.02017887867987156, -0.22489561140537262, -0.0034790474455803633, -0.2018454223871231, -0.45032864809036255, -0.030919505283236504, -0.026562247425317764, 0.0975782573223114, 0.1408413201570511, 0.18325650691986084, 0.30688178539276123, -0.2546873986721039, -0.030388861894607544, 0.15224651992321014, -0.12551984190940857, -0.03533807396888733, 0.3983754515647888, -0.000699623255059123, -0.4177686870098114, -0.07955937087535858, 0.027521280571818352, -0.4694449305534363, -0.32354870438575745, 0.24520637094974518, 0.019850436598062515, 0.21740420162677765, 0.05479862913489342, 0.21190525591373444, -0.02901359647512436, 0.26610490679740906, -0.0585661344230175, 0.17666730284690857, 0.05873212218284607, 0.19917111098766327, -0.16910360753536224, 0.13272416591644287, 0.2316053956747055, -0.16869165003299713, -0.1482946276664734, 0.061892371624708176, 0.18046462535858154, 0.29575157165527344, -0.31978461146354675, 0.03633889555931091, -0.003257150761783123, 0.09500625729560852, -0.15322163701057434, 0.050370436161756516, -0.08222018927335739, -0.0826195478439331, 0.07403172552585602, -0.1644270271062851, 0.07991465926170349, -0.1453086882829666, 0.32054567337036133, -0.14640213549137115, 0.09492284059524536, -0.09312435984611511, 0.4012176990509033, -0.1292189061641693, 0.38588449358940125, 0.2196277379989624, -0.1814616173505783, -0.05601411312818527, 0.2221435308456421, -0.08397679030895233, -0.13399608433246613, 0.502201497554779, -0.06017777696251869, 0.07468786835670471, -0.005045803729444742, -0.12486685812473297, 0.2421613484621048, 0.23622141778469086, 0.2632470428943634, -0.3227282464504242, -0.2985236942768097, 0.2755732238292694, -0.2742530107498169, 0.11196090281009674, -0.11342683434486389, 0.22210076451301575, 0.17781302332878113, 0.05093276873230934, -0.14030209183692932, -0.427350252866745, 0.1870027333498001, -0.09685669839382172, -0.4538888931274414, -0.07896718382835388, -0.06864307820796967, -0.18964973092079163, 0.05281122401356697, -0.36904698610305786, -0.12069326639175415, 0.2917226552963257, -0.23591768741607666, -0.058658432215452194, 0.13374650478363037, -0.03554488718509674, 0.11619056761264801, -0.25655585527420044, -0.13359710574150085, 0.05950437858700752, 0.05985913425683975, -0.22480791807174683, -0.343622624874115 ]
https://github.com/huggingface/datasets/issues/378
[dataset] Structure of MLQA seems unecessary nested
Same for the RACE dataset: https://github.com/huggingface/nlp/blob/master/datasets/race/race.py Should we scan all the datasets to remove this pattern of un-necessary nesting?
The features of the MLQA dataset comprise several nested dictionaries with a single element inside (for `questions` and `ids`): https://github.com/huggingface/nlp/blob/master/datasets/mlqa/mlqa.py#L90-L97 Should we keep this @mariamabarham @patrickvonplaten? Was this added for compatibility with tfds? ```python features=nlp.Features( { "context": nlp.Value("string"), "questions": nlp.features.Sequence({"question": nlp.Value("string")}), "answers": nlp.features.Sequence( {"text": nlp.Value("string"), "answer_start": nlp.Value("int32"),} ), "ids": nlp.features.Sequence({"idx": nlp.Value("string")}) ```
19
[dataset] Structure of MLQA seems unecessary nested The features of the MLQA dataset comprise several nested dictionaries with a single element inside (for `questions` and `ids`): https://github.com/huggingface/nlp/blob/master/datasets/mlqa/mlqa.py#L90-L97 Should we keep this @mariamabarham @patrickvonplaten? Was this added for compatibility with tfds? ```python features=nlp.Features( { "context": nlp.Value("string"), "questions": nlp.features.Sequence({"question": nlp.Value("string")}), "answers": nlp.features.Sequence( {"text": nlp.Value("string"), "answer_start": nlp.Value("int32"),} ), "ids": nlp.features.Sequence({"idx": nlp.Value("string")}) ``` Same for the RACE dataset: https://github.com/huggingface/nlp/blob/master/datasets/race/race.py Should we scan all the datasets to remove this pattern of un-necessary nesting?
[ -0.11614254862070084, -0.05932193621993065, -0.0939640924334526, 0.3199600577354431, -0.049029186367988586, 0.2495957463979721, 0.08761138468980789, 0.24669857323169708, -0.17529062926769257, -0.14413726329803467, 0.013055087067186832, 0.19715993106365204, 0.05846506729722023, 0.6652587056159973, -0.03760436922311783, -0.06485702842473984, 0.20876336097717285, -0.037744808942079544, -0.05636170506477356, 0.12638138234615326, -0.22463883459568024, 0.14463301002979279, -0.2206719070672989, 0.020903432741761208, -0.0983920469880104, -0.16495665907859802, -0.3148607909679413, 0.10347752273082733, 0.05231994017958641, -0.26340410113334656, 0.15100795030593872, 0.24036569893360138, -0.11957484483718872, -0.04432724043726921, -0.00011096565140178427, -0.07092051208019257, 0.14563678205013275, -0.02163771726191044, -0.05487646162509918, 0.041348788887262344, 0.03208012506365776, -0.1099429503083229, 0.06950119882822037, -0.250845342874527, -0.09897632896900177, -0.2140038162469864, 0.07115793973207474, -0.33726492524147034, 0.25942787528038025, -0.03828488662838936, 0.20546776056289673, -0.04692230373620987, -0.13063371181488037, 0.3519124686717987, -0.12206239253282547, 0.10272954404354095, 0.01725706085562706, -0.026211580261588097, 0.2594555914402008, -0.12474662810564041, -0.04309698939323425, 0.4153560400009155, -0.11935873329639435, -0.14930129051208496, 0.2905676066875458, 0.06845606118440628, 0.18489433825016022, -0.5962704420089722, -0.04329177737236023, 0.4557463228702545, 0.23678463697433472, -0.2617446184158325, -0.18492677807807922, -0.4822603464126587, -0.02599164843559265, -0.22726666927337646, 0.1633027195930481, 0.16750824451446533, 0.006901375949382782, 0.2347603589296341, 0.1263682097196579, -0.1401171088218689, 0.0433414988219738, 0.03218884766101837, -0.22226206958293915, 0.4312480092048645, 0.11238976567983627, 0.05579956993460655, -0.19167940318584442, -0.19406256079673767, 0.32927337288856506, -0.27763286232948303, -0.1152419000864029, -0.06485073268413544, -0.2658902108669281, -0.2681446671485901, 0.1458909660577774, 0.05406738445162773, 0.09042847901582718, -0.009161324240267277, -0.10179957747459412, -0.12732844054698944, 0.04151352494955063, -0.11567887663841248, 0.44332191348075867, 0.03491203114390373, 0.042764607816934586, -0.3553728461265564, -0.018608221784234047, -0.11106371879577637, 0.012849472463130951, 0.04410520941019058, 0.13790889084339142, 0.1817999929189682, -0.5502954125404358, 0.02303191088140011, 0.40069225430488586, 0.11820399761199951, -0.3591923117637634, -0.1037040427327156, -0.6785646080970764, -0.16902059316635132, 0.07193449884653091, 0.137253075838089, 0.19108811020851135, 0.24388976395130157, -0.07964573800563812, 0.09010680764913559, -0.10953336954116821, -0.1471691131591797, -0.1280268132686615, 0.026189597323536873, -0.004581577144563198, -0.11001427471637726, -0.10384678840637207, 0.22535912692546844, 0.05831347778439522, 0.015287349931895733, 0.006283059250563383, 0.2510579526424408, 0.11594634503126144, -0.16656596958637238, 0.20658642053604126, 0.22258053719997406, -0.029713643714785576, 0.013378703966736794, -0.015464838594198227, -0.05129597708582878, -0.205812007188797, 0.2050142139196396, -0.07763048261404037, -0.21862563490867615, 0.013487879186868668, 0.20431500673294067, -0.16967299580574036, -0.10157647728919983, 0.1816941499710083, 0.7562402486801147, 0.37346765398979187, -0.09277935326099396, 0.09112647920846939, 0.009047160856425762, -0.4748324751853943, -0.2003762274980545, -0.031351637095212936, 0.3942873775959015, -0.33614933490753174, 0.04844715818762779, -0.30532699823379517, 0.033398862928152084, -0.012792862951755524, 0.34721624851226807, -0.06655251979827881, 0.33939504623413086, -0.20693017542362213, 0.2875932455062866, -0.008971113711595535, -0.37375426292419434, -0.2423265427350998, 0.2417014241218567, 0.020205559208989143, 0.25510022044181824, 0.20074303448200226, 0.09268716722726822, -0.13739947974681854, -0.18378621339797974, 0.1889769285917282, 0.35552889108657837, -0.10460294783115387, -0.09232530742883682, -0.0993933230638504, -0.16692842543125153, 0.6348803043365479, -0.03646329417824745, -0.4140785038471222, -0.23918388783931732, -0.3432900905609131, -0.05789438635110855, 0.39801207184791565, -0.009485399350523949, -0.1960020661354065, -0.15095043182373047, 0.15138517320156097, -0.14767473936080933, -0.08296402543783188, -0.15018755197525024, -0.5748468637466431, 0.044173020869493484, -0.25651025772094727, 0.11664541065692902, -0.12939351797103882, -0.41343599557876587, 0.31030476093292236, -0.01822308450937271, -0.37763792276382446, -0.14879396557807922, 0.2231583446264267, -0.29802775382995605, -0.11738868057727814, 0.056826554238796234, -0.25019240379333496, 0.02335895411670208, 0.017860047519207, 0.06141183525323868, -0.3382735252380371, 0.2788209319114685, -0.16053718328475952, 0.3084014356136322, 0.3650187849998474, 0.6932069063186646, -0.053536541759967804, -0.19113926589488983, 0.20401406288146973, 0.11180706322193146, -0.007511848118156195, -0.14248108863830566, 0.04540880396962166, 0.2737959325313568, 0.395408034324646, -0.23208971321582794, 0.004433874506503344, 0.3511691987514496, 0.01592220924794674, -0.2095697671175003, -0.28489288687705994, 0.41279786825180054, 0.05572095885872841, 0.3499279022216797, 0.018529200926423073, 0.20359939336776733, -0.010598909109830856, -0.11320484429597855, -0.07056822627782822, -0.3927454948425293, 0.10885316878557205, 0.10866425186395645, 0.03085702657699585, 0.42610815167427063, -0.2589322626590729, 0.8457375168800354, 0.4656238853931427, -0.05760347098112106, 0.036392953246831894, 0.00545103196054697, 0.1375110000371933, -0.4387930631637573, 0.2027040421962738, 0.15133164823055267, 0.2826487123966217, 0.174297034740448, 0.041709523648023605, 0.24607616662979126, 0.22677215933799744, -0.22956576943397522, 0.3983789384365082, 0.099000945687294, -0.06849334388971329, 0.1255251169204712, 0.3096337616443634, 0.14292222261428833, -0.42449966073036194, -0.23494237661361694, -0.01852719485759735, 0.03282886743545532, -0.20179961621761322, 0.26638057827949524, -0.3401317894458771, -0.8277867436408997, 0.09512548893690109, -0.1595633327960968, -0.3452219069004059, -0.4143367111682892, 0.10417657345533371, -0.19091275334358215, -0.14006567001342773, 0.2615067660808563, 0.37183213233947754, 0.3114871680736542, 0.05282475799322128, 0.15354512631893158, -0.07490149140357971, -0.09342027455568314, -0.15121057629585266, 0.14342893660068512, 0.1969042271375656, 0.18030127882957458, 0.2717169523239136, 0.25826311111450195, -0.010901742614805698, -0.1725008487701416, -0.640246570110321, 0.20584726333618164, -0.40388792753219604, 0.32667067646980286, 0.17482870817184448, -0.020761309191584587, -0.20761509239673615, -0.2606472969055176, -0.039104390889406204, 0.6991739869117737, -0.25779464840888977, -0.00028754843515343964, -0.03112224116921425, -0.17653001844882965, -0.15046049654483795, -0.39824146032333374, -0.49459466338157654, -0.23238801956176758, 0.2652856111526489, -0.20085594058036804, 0.4566143751144409, 0.2072582244873047, -0.3831199109554291, -0.24531982839107513, 0.028847157955169678, -0.1344171166419983, -0.196210578083992, 0.13021788001060486, 0.13515716791152954, -0.06035575270652771, -0.1612296849489212, -0.3660831153392792, -0.29034826159477234, 0.30135273933410645, -0.26244738698005676, -0.43801814317703247, -0.22538450360298157, -0.11680851131677628, 0.1511096954345703, 0.22650429606437683, -0.08805593103170395, 0.2082456350326538, 0.38004645705223083, 0.014818631112575531, 0.22962583601474762, -0.06201082468032837, 0.10583188384771347, 0.14951618015766144, 0.32273799180984497, 0.01258725207298994, 0.4372130036354065, 0.10649284720420837, 0.2702864706516266, 0.6254132390022278, 0.19694900512695312, 0.07950680702924728, 0.12108711153268814, 0.25603270530700684, -0.24260379374027252, -0.2051137089729309, 0.4185648560523987, 0.1404147893190384, -0.05884556099772453, 0.32246366143226624, -0.15005093812942505, -0.07273249328136444, 0.12473314255475998, 0.15062488615512848, 0.19476459920406342, -0.27973178029060364, 0.012280925177037716, -0.5949555039405823, 0.28449547290802, 0.021603994071483612, -0.00774131715297699, 0.18752272427082062, -0.21303406357765198, -0.06911551207304001, 0.1293262243270874, 0.15604984760284424, -0.0014966879971325397, -0.796576738357544, -0.6033443808555603, -0.5060999393463135, 0.05774925276637077, -0.03785368427634239, 0.14186270534992218, -0.08463288843631744, 0.06584836542606354, 0.07114974409341812, -0.06763143837451935, 0.5189669132232666, -0.2795129716396332, -0.23457244038581848, 0.2563894987106323, 0.04275035485625267, -0.15707968175411224, 0.015037588775157928, -0.012921476736664772, 0.40847286581993103, 0.29669055342674255, -0.027669347822666168, -0.3415409028530121, -0.242009237408638, 0.19116359949111938, 0.12861379981040955, -0.4076530933380127, -0.35578814148902893, -0.16884666681289673, -0.28507861495018005, -0.03155059739947319, -0.15034066140651703, 0.2285677045583725, 0.13091689348220825, 0.08498616516590118, -0.20124876499176025, -0.08133237063884735, -0.32022619247436523, 0.4161018133163452, 0.22947388887405396, 0.15941059589385986, 0.09486998617649078, 0.23963665962219238, -0.11313764750957489, 0.2765885293483734, -0.0831347182393074, 0.49266281723976135, 0.11508246511220932, -0.07333198934793472, -0.23578207194805145, -0.16268545389175415, 0.49986532330513, 0.22080771625041962, -0.1301795393228531, 0.24570466578006744, -0.1459176391363144, -0.11419535428285599, -0.40504077076911926, -0.11082077026367188, 0.12244652211666107, 0.04077112302184105, -0.06927499920129776, -0.3382650911808014, 0.34297510981559753, 0.026600951328873634, -0.24180766940116882, -0.15076763927936554, 0.027509165927767754, -0.3063734173774719, 0.49662575125694275, 0.04959404096007347, 0.7502145171165466, 0.0802694782614708, 0.2257983237504959, 0.4995678961277008, 0.15298211574554443, 0.44799357652664185, -0.019673917442560196, 0.1059947982430458, -0.2297641634941101, -0.02018633298575878, -0.08018335700035095, -0.07720797508955002, -0.032640229910612106, 0.22695456445217133, -0.28211790323257446, 0.3359486758708954, -0.003366508288308978, -0.3440561592578888, -0.005583848804235458, 0.2839401960372925, 0.2938867509365082, -0.1255469024181366, -0.2925029993057251, 0.055417221039533615, -0.021753346547484398, 0.04260622337460518, -0.12310449033975601, -0.10986896604299545, 0.21333272755146027, 0.019410260021686554, -0.11746624112129211, -0.11519447714090347, -0.32247376441955566, 0.2670018672943115, 0.11726570129394531, -0.16850422322750092, 0.4472987651824951, 0.28500908613204956, 0.12395764887332916, 0.007796528283506632, -0.07119566947221756, 0.07813454419374466, 0.20802462100982666, -0.08230786770582199, 0.1668941229581833, -0.042840998619794846, 0.15705180168151855, -0.001351123210042715, -0.002543761394917965, -0.005038880277425051, 0.21224769949913025, 0.15226198732852936, -0.4720565378665924, -0.0966368243098259, -0.0523432195186615, -0.1472109854221344, -0.25698322057724, 0.26280733942985535, -0.08195915818214417, 0.032691169530153275, 0.076698437333107, 0.023961620405316353, -0.005240022204816341, 0.18854539096355438, -0.1153896152973175, -0.01737264357507229, -0.025045491755008698, 0.12014276534318924, 0.40227967500686646, 0.23497700691223145, 0.3080211877822876, 0.30026930570602417, -0.06817134469747543, -0.18035240471363068, 0.1713418960571289, -0.1220778077840805, 0.2909731864929199, 0.17560791969299316, 0.1464819759130478, -0.23759491741657257, -0.3044598400592804, 0.11805117875337601, 0.01348014734685421, 0.06697153300046921, -0.026001008227467537, -0.18379086256027222, -0.23541466891765594, 0.4425732493400574, -0.11160540580749512, -0.06374950706958771, -0.12070053070783615, 0.34304168820381165, -0.011143743060529232, 0.23452262580394745, -0.32260698080062866, -0.09017384797334671, -0.03424951806664467, -0.000659177138004452, -0.07214895635843277, -0.39503636956214905, 0.04854452610015869, 0.05626650154590607, 0.11704649776220322, -0.33861643075942993, -0.10398014634847641, -0.2011164128780365, 0.016367796808481216, 0.09185116738080978, 0.14509890973567963, -0.010054182261228561, 0.08328501880168915, -0.004601747263222933, -0.12190111726522446, -0.12631018459796906, 0.03349542245268822, -0.2133256196975708, 0.23030979931354523, 0.22418156266212463, -0.24330519139766693, -0.35254472494125366, -0.14412719011306763, 0.04647005721926689, 0.12122427672147751, -0.152988001704216, 0.18837735056877136, 0.10763467103242874, -0.18705865740776062, -0.06022077053785324, 0.06111574172973633, 0.09295939654111862, -0.23503737151622772, 0.022059664130210876, 0.26096150279045105, 0.21356509625911713, -0.20929273962974548, 0.19506749510765076, 0.0953015610575676, 0.5737603306770325, -0.3621697723865509, -0.12379580736160278, -0.19613109529018402, 0.18014700710773468, -0.39755260944366455, 0.10677773505449295, -0.03577037155628204, 0.269231379032135, 0.15088264644145966, 0.32437679171562195, 0.3548027276992798, 0.11902263760566711, -0.22471004724502563, -0.004598094150424004, 0.2842544913291931, 0.0008049942553043365, 0.06461336463689804, 0.0652473047375679, -0.04188399016857147, 0.09523630142211914, 0.47959277033805847, 0.05689160153269768, 0.27372729778289795, 0.5982527732849121, 0.18818755447864532, 0.13395141065120697, 0.5289390087127686, 0.015870261937379837, 0.46540188789367676, 0.07246372848749161, -0.07440944015979767, 0.1654367595911026, 0.1665526181459427, -0.1509913206100464, 0.2589280605316162, -0.08404156565666199, -0.04706805199384689, -0.5038700103759766, 0.06181984022259712, 0.18502892553806305, -0.19308990240097046, -0.3244965076446533, 0.13544079661369324, 0.09586001187562943, -0.019026977941393852, -0.1349739134311676, -0.26542240381240845, -0.34149014949798584, 0.13722312450408936, -0.11110572516918182, -0.018673613667488098, -0.23643656075000763, 0.32979491353034973, 0.1804777830839157, 0.25031137466430664, 0.07628118991851807, 0.3437651991844177, 0.3048173785209656, -0.10786227136850357, -0.046015288680791855, 0.4059791564941406, 0.2508131265640259, 0.1334405243396759, -0.7279345393180847, 0.07684722542762756, -0.31432458758354187, -0.1537240445613861, -0.17127099633216858, 0.019803637638688087, -0.11105524748563766, 0.20670552551746368, 0.4055157005786896, 0.03554193675518036, 0.033221498131752014, 0.055463217198848724, 0.44796425104141235, 0.033194612711668015, -0.22742195427417755, 0.30629751086235046, -0.174372136592865, 0.05574880540370941, 0.15760916471481323, 0.11946970224380493, -0.48573002219200134, -0.2708641588687897, 0.6146502494812012, -0.02302595227956772, 0.1486748307943344, -0.14522893726825714, 0.09348659217357635, 0.00286218267865479, 0.6333821415901184, 0.1780218780040741, 0.03574909642338753, -0.13035574555397034, 0.003992521669715643, -0.5874860882759094, -0.20550677180290222, -0.03970703110098839, -0.07464713603258133, 0.13763739168643951, 0.2864617109298706, -0.0014387228293344378, 0.22628925740718842, -0.40773889422416687, 0.1404840350151062, -0.39602959156036377, -0.2935962378978729, -0.6176459193229675, 0.03923551365733147, -0.251171737909317, 0.22112081944942474, -0.19022762775421143, 0.015904398635029793, 0.27765899896621704, 0.1377037614583969, -0.09554094076156616, -0.031865112483501434, -0.05506934970617294, -0.08573482185602188, 0.1362798511981964, -0.033626630902290344, 0.4873383641242981, -0.03167474642395973, 0.002837779000401497, 0.012324206531047821, -0.10426255315542221, 0.003174838609993458, -0.17775464057922363, 0.5362421274185181, 0.1062278300523758, 0.17822949588298798, -0.18648618459701538, 0.12190123647451401, 0.14419221878051758, 0.11801623553037643, 0.1954142153263092, -0.26493149995803833, -0.41062790155410767, 0.3911319077014923, 0.11501430720090866, 0.4158942997455597, -0.08289719372987747, 0.5141796469688416, -0.1452324390411377, 0.10623998939990997, -0.10973351448774338, -0.36978229880332947, 0.4228871762752533, -0.14515818655490875, 0.043437715619802475, 0.12982559204101562, 0.06356660276651382, 0.1955457329750061, 0.09209583699703217, -0.4175347685813904, -0.35617977380752563, 0.3726509213447571, -0.4296782612800598, -0.31533730030059814, 0.2559310793876648, 0.025458430871367455, -0.4772298038005829, -0.22108273208141327, -0.04400439187884331, -0.021368280053138733, -0.4149131774902344, 0.0735887736082077, -0.08630834519863129 ]
https://github.com/huggingface/datasets/issues/376
to_pandas conversion doesn't always work
Could you try to update pyarrow to >=0.17.0 ? It should fix the `to_pandas` bug Also I'm not sure that structures like list<struct> are fully supported in the lib (none of the datasets use that). It can cause issues when using dataset transforms like `filter` for example
For some complex nested types, the conversion from Arrow to python dict through pandas doesn't seem to be possible. Here is an example using the official SQUAD v2 JSON file. This example was found while investigating #373. ```python >>> squad = load_dataset('json', data_files={nlp.Split.TRAIN: ["./train-v2.0.json"]}, download_mode=nlp.GenerateMode.FORCE_REDOWNLOAD, version="1.0.0", field='data') >>> squad['train'] Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 442) >>> squad['train'][0] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 589, in __getitem__ format_kwargs=self._format_kwargs, File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 529, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list")) File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes) File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks list(extension_columns.keys())) File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string> ``` cc @lhoestq would we have a way to detect this from the schema maybe? Here is the schema for this pretty complex JSON: ```python >>> squad['train'].schema title: string paragraphs: list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>> child 0, item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string> child 0, qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>> child 0, item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>> child 0, question: string child 1, id: string child 2, answers: list<item: struct<text: string, answer_start: int64>> child 0, item: struct<text: string, answer_start: int64> child 0, text: string child 1, answer_start: int64 child 3, is_impossible: bool child 4, plausible_answers: list<item: struct<text: string, answer_start: int64>> child 0, item: struct<text: string, answer_start: int64> child 0, text: string child 1, answer_start: int64 child 1, context: string ```
47
to_pandas conversion doesn't always work For some complex nested types, the conversion from Arrow to python dict through pandas doesn't seem to be possible. Here is an example using the official SQUAD v2 JSON file. This example was found while investigating #373. ```python >>> squad = load_dataset('json', data_files={nlp.Split.TRAIN: ["./train-v2.0.json"]}, download_mode=nlp.GenerateMode.FORCE_REDOWNLOAD, version="1.0.0", field='data') >>> squad['train'] Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 442) >>> squad['train'][0] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 589, in __getitem__ format_kwargs=self._format_kwargs, File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 529, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list")) File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes) File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks list(extension_columns.keys())) File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string> ``` cc @lhoestq would we have a way to detect this from the schema maybe? Here is the schema for this pretty complex JSON: ```python >>> squad['train'].schema title: string paragraphs: list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>> child 0, item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string> child 0, qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>> child 0, item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>> child 0, question: string child 1, id: string child 2, answers: list<item: struct<text: string, answer_start: int64>> child 0, item: struct<text: string, answer_start: int64> child 0, text: string child 1, answer_start: int64 child 3, is_impossible: bool child 4, plausible_answers: list<item: struct<text: string, answer_start: int64>> child 0, item: struct<text: string, answer_start: int64> child 0, text: string child 1, answer_start: int64 child 1, context: string ``` Could you try to update pyarrow to >=0.17.0 ? It should fix the `to_pandas` bug Also I'm not sure that structures like list<struct> are fully supported in the lib (none of the datasets use that). It can cause issues when using dataset transforms like `filter` for example
[ 0.03468091040849686, 0.13348039984703064, -0.10313529521226883, 0.054215140640735626, 0.2966330647468567, -0.09235341101884842, 0.37532472610473633, 0.46983471512794495, -0.13277770578861237, -0.2164529711008072, -0.21985189616680145, 0.8954617381095886, 0.17293742299079895, 0.07015437632799149, -0.07512425631284714, -0.00609887158498168, 0.1450808048248291, 0.15654464066028595, 0.008870381861925125, -0.07089795172214508, -0.059911035001277924, 0.2531317174434662, -0.3004133403301239, 0.1826229989528656, -0.09054849296808243, -0.24548892676830292, -0.06939998269081116, 0.20317351818084717, -0.037274837493896484, -0.41646629571914673, 0.31619730591773987, -0.2416536808013916, -0.006051588337868452, 0.327436625957489, -0.00010487269901204854, 0.16407066583633423, 0.2705141007900238, -0.000003632284688137588, -0.3173801302909851, 0.022458454594016075, 0.21172688901424408, -0.29632729291915894, 0.38135823607444763, -0.34748247265815735, 0.08694559335708618, -0.356620728969574, 0.017147045582532883, -0.08357591927051544, 0.7314297556877136, 0.40842145681381226, 0.27851802110671997, 0.25005388259887695, 0.22122369706630707, 0.10547321289777756, 0.028331520035862923, 0.017516594380140305, -0.12751661241054535, 0.09066743403673172, 0.07503098249435425, -0.11025454849004745, -0.09462133795022964, -0.06785106658935547, 0.01896369643509388, -0.12564586102962494, -0.02724679373204708, 0.04046247899532318, -0.09317338466644287, -0.20960529148578644, -0.0769636332988739, 0.2726132869720459, 0.09395919740200043, -0.3873829245567322, -0.3478507995605469, -0.3279155492782593, 0.06293849647045135, -0.0009634702000766993, -0.04028664529323578, 0.09387384355068207, -0.12865658104419708, 0.11512263119220734, 0.37401777505874634, 0.21216590702533722, -0.19180363416671753, 0.044261734932661057, -0.10552254319190979, 0.22870725393295288, -0.13560184836387634, 0.05417472496628761, -0.057879626750946045, -0.32568541169166565, 0.09869556128978729, -0.027754085138440132, 0.12784349918365479, 0.12531547248363495, -0.34643322229385376, -0.2328876405954361, -0.022337622940540314, -0.5411038994789124, 0.02837216481566429, -0.06019113212823868, 0.42582568526268005, 0.09071984887123108, 0.1717907339334488, 0.23119574785232544, 0.3668312728404999, -0.014952925965189934, 0.03462427854537964, 0.1606026142835617, 0.11225606501102448, 0.0811910480260849, -0.18642038106918335, 0.13482652604579926, -0.16628943383693695, -0.24216952919960022, -0.08594455569982529, -0.11530135571956635, 0.33117422461509705, 0.02543809823691845, -0.43994060158729553, -0.05375291779637337, -0.5590528845787048, 0.2023039609193802, 0.0710938572883606, 0.13386742770671844, -0.0746624544262886, 0.3300732374191284, 0.032563354820013046, 0.3296060562133789, -0.11417687684297562, 0.2582939863204956, -0.1887708455324173, 0.17038726806640625, -0.08742737025022507, -0.23653261363506317, 0.09821103513240814, 0.3039856553077698, 0.04660229757428169, 0.05049757659435272, 0.09189549088478088, -0.08390343934297562, -0.10969515144824982, -0.0015050943475216627, 0.139264315366745, 0.06857728958129883, 0.035796429961919785, -0.08652154356241226, 0.13930490612983704, -0.5467731356620789, -0.1163138821721077, 0.008497433736920357, -0.1911565661430359, 0.004636930767446756, -0.17469939589500427, 0.23534280061721802, -0.2089511752128601, -0.209429070353508, -0.2487313449382782, 0.3075789213180542, 0.2559841573238373, -0.13447706401348114, 0.055489420890808105, -0.21348322927951813, 0.10804299265146255, -0.3103170692920685, 0.042810577899217606, 0.0812465250492096, -0.5389330387115479, -0.0203238632529974, 0.030799763277173042, 0.018450429663062096, 0.08580131828784943, 0.3102587163448334, -0.11584825813770294, 0.1331145167350769, -0.008308962918817997, 0.36001089215278625, 0.4705031216144562, -0.5010075569152832, -0.2272089421749115, 0.1233961433172226, -0.1028217226266861, 0.04695712402462959, -0.009413427673280239, -0.061998456716537476, 0.11394310742616653, -0.08478967845439911, 0.0009973340202122927, 0.4146358370780945, 0.08445503562688828, -0.029538577422499657, -0.31786003708839417, -0.04258829727768898, 0.1657475084066391, -0.047936368733644485, -0.20704931020736694, -0.04203403368592262, 0.10970660299062729, 0.15327443182468414, 0.25028833746910095, -0.017326507717370987, 0.15959709882736206, 0.05328885838389397, 0.10937602072954178, -0.1778445690870285, 0.12437822669744492, -0.16074147820472717, -0.4700012505054474, 0.04860309138894081, -0.4537341892719269, 0.0608937107026577, -0.4144344925880432, -0.22325484454631805, -0.21283571422100067, 0.14734740555286407, -0.18784359097480774, 0.025557903572916985, 0.3575510084629059, -0.16794972121715546, -0.051280710846185684, -0.09644630551338196, -0.12661832571029663, -0.18820321559906006, -0.2063400000333786, 0.1719733029603958, -0.17085064947605133, 0.22717489302158356, -0.11296792328357697, -0.199350506067276, 0.26245200634002686, 0.41422799229621887, 0.10864921659231186, 0.06142550706863403, 0.07964697480201721, 0.22132259607315063, -0.05446247011423111, -0.031788170337677, 0.32016757130622864, -0.29099714756011963, -0.031317781656980515, -0.26595059037208557, 0.014142491854727268, 0.3197633624076843, 0.15064115822315216, -0.18041381239891052, -0.3506360352039337, 0.5115053653717041, -0.005946344695985317, 0.34273242950439453, -0.04898768290877342, 0.27255696058273315, 0.20933611690998077, 0.03738818317651749, -0.2711518704891205, -0.07177019864320755, -0.4835421144962311, 0.33452191948890686, -0.020440949127078056, -0.04470255970954895, -0.2443455308675766, 0.36784884333610535, 0.5505488514900208, -0.06893298774957657, 0.161661297082901, 0.07750894874334335, 0.016199270263314247, -0.2619675397872925, 0.06488734483718872, 0.06906070560216904, 0.26397424936294556, 0.21404340863227844, 0.24035808444023132, -0.16154862940311432, -0.28507915139198303, -0.07137306779623032, 0.20828881859779358, 0.09746298938989639, 0.5278192162513733, 0.07922736555337906, 0.500167727470398, -0.03417052701115608, -0.35750052332878113, -0.19927965104579926, -0.05163303762674332, 0.06868617981672287, -0.2854183614253998, 0.2564888894557953, -0.3057740330696106, 0.04774348810315132, -0.025057245045900345, -0.15959616005420685, -0.018487950786948204, -0.35921207070350647, -0.03161253035068512, -0.13781099021434784, -0.13789129257202148, 0.24065418541431427, 0.026622621342539787, 0.08449307829141617, 0.23270832002162933, -0.2775392532348633, -0.15279757976531982, -0.23520851135253906, -0.26169317960739136, 0.21776174008846283, 0.3379383087158203, 0.04113541916012764, -0.0485285222530365, 0.2794268727302551, -0.06043403595685959, -0.061534103006124496, -0.37258726358413696, -0.008261101320385933, -0.33591264486312866, 0.0715336948633194, 0.20276565849781036, 0.16235728561878204, -0.2620203197002411, -0.1655707210302353, 0.23156563937664032, -0.016404733061790466, -0.20914903283119202, 0.09470519423484802, -0.12753337621688843, -0.03462439775466919, -0.1428411453962326, -0.24694481492042542, -0.22609880566596985, -0.3014287054538727, 0.521318256855011, 0.18876706063747406, 0.22195301949977875, 0.12497055530548096, 0.33261096477508545, 0.39146023988723755, 0.10528483241796494, 0.04237334802746773, -0.06947746872901917, 0.09768576920032501, 0.2977078855037689, -0.16969434916973114, -0.3797701895236969, -0.06988166272640228, -0.18762201070785522, 0.24076417088508606, -0.3310915231704712, -0.19385917484760284, -0.150385320186615, -0.08566483855247498, 0.20666788518428802, -0.026715556159615517, -0.04193342477083206, 0.2467586100101471, 0.20925810933113098, -0.20280984044075012, -0.20007185637950897, -0.03428422659635544, 0.17398028075695038, 0.1710570901632309, 0.037709690630435944, -0.1712379902601242, 0.3040529787540436, 0.25859135389328003, 0.4388797879219055, 0.2099829614162445, -0.14609135687351227, 0.040979187935590744, -0.07475801557302475, 0.17800725996494293, -0.04465196281671524, -0.12402015179395676, 0.058353591710329056, -0.28277045488357544, 0.2170436978340149, 0.020870313048362732, -0.04804540053009987, -0.4201204180717468, 0.06627845019102097, 0.20973941683769226, -0.2522662580013275, -0.23288297653198242, 0.11302874982357025, -0.26357465982437134, -0.2586223781108856, 0.06002257391810417, 0.007231455761939287, -0.20386584103107452, 0.005268196575343609, -0.11344605684280396, -0.12820842862129211, -0.07911554723978043, 0.054539576172828674, -0.42793211340904236, -0.2682369649410248, -0.29557299613952637, 0.1940227597951889, -0.027475440874695778, 0.32339945435523987, 0.23893024027347565, -0.32291102409362793, 0.10851117968559265, -0.2627049386501312, 0.37165066599845886, 0.013256962411105633, -0.06007232517004013, 0.3629275858402252, 0.3301509618759155, -0.7625823020935059, -0.04599683731794357, -0.32562628388404846, 0.4142335057258606, 0.25857213139533997, 0.11365946382284164, -0.3738937973976135, -0.2970246970653534, 0.13373026251792908, -0.06115933880209923, 0.03084123320877552, 0.12805244326591492, -0.23782198131084442, -0.3379620611667633, -0.20019137859344482, 0.22598014771938324, 0.35106292366981506, 0.2922070324420929, -0.21159115433692932, -0.42181822657585144, -0.1945054531097412, -0.19399596750736237, 0.17172843217849731, 0.2185315489768982, 0.1352572739124298, 0.028480151668190956, -0.05273507907986641, -0.1477460265159607, 0.2658390700817108, 0.08324125409126282, 0.46826550364494324, -0.07063955068588257, -0.10463572293519974, 0.1021997481584549, 0.039375871419906616, 0.3186957538127899, 0.2960720658302307, -0.18906888365745544, 0.07802173495292664, -0.1481001377105713, 0.011173617094755173, 0.20169302821159363, -0.23846444487571716, 0.38594353199005127, -0.016880551353096962, 0.002589695155620575, -0.15162931382656097, 0.4655607342720032, -0.02035701647400856, -0.03275799751281738, 0.03834256902337074, 0.11359553784132004, -0.11310926824808121, 0.4639155864715576, 0.20658518373966217, 0.8790788054466248, 0.026242436841130257, 0.317166805267334, 0.5428177714347839, -0.17100073397159576, 0.5304222702980042, -0.0539957620203495, 0.14786802232265472, -0.2938597500324249, 0.5065795183181763, 0.06451752781867981, -0.14257697761058807, -0.08630895614624023, 0.2681826651096344, -0.2327599972486496, 0.025836654007434845, -0.19606240093708038, 0.2170090526342392, 0.21070648729801178, 0.27510690689086914, -0.030598744750022888, -0.27559694647789, -0.6548115015029907, 0.23622895777225494, 0.1165921539068222, -0.2514941990375519, 0.1502363085746765, -0.45652443170547485, -0.4458027482032776, -0.10747119784355164, -0.014846475794911385, 0.26220712065696716, -0.179507777094841, 0.31228214502334595, 0.3167705535888672, -0.3436286449432373, 0.19710196554660797, 0.593604326248169, -0.12545375525951385, -0.22810950875282288, -0.05505387485027313, 0.08613012731075287, 0.034678757190704346, -0.010929897427558899, 0.10198567062616348, -0.08541817963123322, 0.34365981817245483, -0.06180005893111229, -0.13431808352470398, 0.08106297254562378, -0.034894831478595734, -0.13049614429473877, 0.07974343001842499, 0.4892714321613312, -0.16184595227241516, -0.3484068810939789, -0.0983700081706047, -0.03847142681479454, -0.39547300338745117, -0.24171267449855804, 0.21162596344947815, -0.009225603193044662, -0.11256394535303116, 0.425514817237854, 0.21379320323467255, -0.08397851884365082, 0.14848501980304718, 0.2626103162765503, 0.09307347238063812, 0.37812861800193787, 0.5176314115524292, 0.08843082934617996, -0.1763879507780075, -0.2753966748714447, 0.17697696387767792, 0.13794858753681183, -0.18898993730545044, 0.28077733516693115, -0.18825925886631012, -0.35767224431037903, 0.04599051550030708, 0.020760245621204376, -0.058937061578035355, 0.19556444883346558, -0.25975462794303894, -0.40569737553596497, -0.27988526225090027, 0.22884643077850342, -0.04088135063648224, -0.0069540091790258884, -0.04863958805799484, 0.3339012861251831, -0.014501537196338177, -0.09634865820407867, -0.3843570947647095, 0.2725992500782013, -0.37165626883506775, 0.07407475262880325, -0.38146185874938965, -0.3459903597831726, 0.26681753993034363, 0.030805038288235664, 0.2160763442516327, 0.10986065864562988, 0.003685991745442152, -0.3170909881591797, -0.04610484093427658, 0.07813101261854172, 0.14601115882396698, 0.10289298743009567, -0.01523536629974842, 0.04525889456272125, -0.3004336953163147, -0.15093567967414856, -0.1212889701128006, -0.055539410561323166, -0.009637681767344475, 0.16066958010196686, 0.009901272132992744, 0.0740233063697815, 0.20944836735725403, -0.15547439455986023, -0.06924121826887131, 0.052391257137060165, -0.07388289272785187, 0.2532297372817993, -0.04902293160557747, 0.0039505306631326675, 0.11222132295370102, 0.2262323945760727, -0.005848863162100315, 0.18651972711086273, 0.2958056926727295, -0.16246524453163147, -0.4413205087184906, -0.21850045025348663, 0.3224136531352997, 0.5740978717803955, -0.1763642579317093, 0.05707108974456787, -0.20074935257434845, 0.2156657576560974, -0.4009673595428467, 0.0981796383857727, 0.24204964935779572, -0.15638884902000427, 0.1629410982131958, 0.1809733659029007, 0.02744535729289055, -0.1156516820192337, -0.012556743808090687, 0.06593620032072067, 0.20972217619419098, -0.07659623771905899, -0.059635136276483536, 0.21385309100151062, -0.01614423282444477, 0.019322482869029045, 0.4070718586444855, -0.08576667308807373, 0.26333436369895935, 0.33296868205070496, 0.031227197498083115, 0.042628295719623566, 0.2017093300819397, 0.039078615605831146, 0.37105104327201843, 0.16235965490341187, -0.0544954389333725, 0.17371034622192383, 0.2876284718513489, -0.022084593772888184, 0.10960850864648819, 0.7406489253044128, -0.09936951845884323, -0.14961890876293182, -0.002914778422564268, 0.09649587422609329, -0.19204063713550568, -0.2609272599220276, -0.3624972105026245, -0.15067827701568604, -0.10665982961654663, -0.34904590249061584, -0.07085127383470535, -0.21644894778728485, -0.08915705978870392, -0.07996853440999985, 0.11761324107646942, -0.1278521865606308, 0.1915341019630432, 0.07219557464122772, 0.2520892918109894, -0.01634298451244831, 0.17917557060718536, 0.19189707934856415, -0.007401366718113422, -0.1781458705663681, 0.1820491999387741, 0.5045117139816284, 0.1560387760400772, -0.44812268018722534, -0.012412363663315773, 0.07525996118783951, -0.3575073182582855, 0.018403729423880577, 0.10657639056444168, 0.11374014616012573, -0.2378433644771576, 0.3356718420982361, 0.22902317345142365, -0.1850774884223938, -0.21652570366859436, 0.22242237627506256, -0.0761554092168808, 0.11270242184400558, 0.29960399866104126, -0.30521148443222046, -0.3296508491039276, -0.09446802735328674, -0.004669708665460348, -0.26773324608802795, -0.27658918499946594, 0.1584853082895279, 0.00711246719583869, 0.2048702836036682, -0.21263492107391357, 0.15467427670955658, 0.06932540982961655, 0.5761980414390564, -0.03108850307762623, 0.09480531513690948, 0.07941070944070816, 0.21028797328472137, -0.4790942370891571, 0.13912367820739746, -0.10642127692699432, -0.11811898648738861, 0.0687156692147255, 0.49902430176734924, 0.0630573257803917, 0.15049071609973907, 0.15088379383087158, 0.010432942770421505, -0.14351192116737366, 0.09686687588691711, -0.3981229364871979, 0.010469160974025726, 0.18291811645030975, 0.059703145176172256, 0.16288208961486816, -0.29815366864204407, 0.06474967300891876, -0.12925535440444946, 0.13474032282829285, -0.02180030569434166, -0.21690762042999268, -0.02702082321047783, -0.10691635310649872, 0.22474771738052368, 0.10917920619249344, 0.17956146597862244, -0.05862186849117279, -0.23629769682884216, -0.1898045837879181, -0.16667625308036804, -0.24859461188316345, 0.47924643754959106, -0.14544175565242767, 0.23625563085079193, -0.0857745036482811, 0.09412818402051926, 0.15623241662979126, -0.026811860501766205, 0.11479716002941132, -0.13401664793491364, -0.32602089643478394, 0.3352850377559662, -0.09693125635385513, 0.24853463470935822, -0.25948333740234375, 0.36891624331474304, -0.12542186677455902, 0.22033607959747314, -0.35465943813323975, -0.5474948883056641, 0.5134506821632385, -0.3442060649394989, -0.3539213538169861, 0.25884944200515747, 0.17081202566623688, 0.26544058322906494, 0.10274438560009003, -0.16763900220394135, -0.1582752913236618, 0.2111676037311554, -0.17073406279087067, -0.32021892070770264, -0.005257311277091503, -0.1648392677307129, 0.10093207657337189, -0.2636691629886627, -0.04309411719441414, 0.005074909422546625, 0.10691524296998978, -0.2034541517496109, -0.39280635118484497 ]
https://github.com/huggingface/datasets/issues/375
TypeError when computing bertscore
I am not able to reproduce this issue on my side. Could you give us more details about the inputs you used ? I do get another error though: ``` ~/.virtualenvs/hf-datasets/lib/python3.7/site-packages/bert_score/utils.py in bert_cos_score_idf(model, refs, hyps, tokenizer, idf_dict, verbose, batch_size, device, all_layers) 371 return sorted(list(set(l)), key=lambda x: len(x.split(" "))) 372 --> 373 sentences = dedup_and_sort(refs + hyps) 374 embs = [] 375 iter_range = range(0, len(sentences), batch_size) ValueError: operands could not be broadcast together with shapes (0,) (2,) ``` That's because it gets numpy arrays as input and not lists. See #387
Hi, I installed nlp 0.3.0 via pip, and my python version is 3.7. When I tried to compute bertscore with the code: ``` import nlp bertscore = nlp.load_metric('bertscore') # load hyps and refs ... print (bertscore.compute(hyps, refs, lang='en')) ``` I got the following error. ``` Traceback (most recent call last): File "bert_score_evaluate.py", line 16, in <module> print (bertscore.compute(hyps, refs, lang='en')) File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metric.py", line 200, in compute output = self._compute(predictions=predictions, references=references, **metrics_kwargs) File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metrics/bertscore/fb176889831bf0ce995ed197edc94b2e9a83f647a869bb8c9477dbb2d04d0f08/bertscore.py", line 105, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() takes 3 positional arguments but 4 were given ``` It seems like there is something wrong with get_hash() function?
91
TypeError when computing bertscore Hi, I installed nlp 0.3.0 via pip, and my python version is 3.7. When I tried to compute bertscore with the code: ``` import nlp bertscore = nlp.load_metric('bertscore') # load hyps and refs ... print (bertscore.compute(hyps, refs, lang='en')) ``` I got the following error. ``` Traceback (most recent call last): File "bert_score_evaluate.py", line 16, in <module> print (bertscore.compute(hyps, refs, lang='en')) File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metric.py", line 200, in compute output = self._compute(predictions=predictions, references=references, **metrics_kwargs) File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metrics/bertscore/fb176889831bf0ce995ed197edc94b2e9a83f647a869bb8c9477dbb2d04d0f08/bertscore.py", line 105, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() takes 3 positional arguments but 4 were given ``` It seems like there is something wrong with get_hash() function? I am not able to reproduce this issue on my side. Could you give us more details about the inputs you used ? I do get another error though: ``` ~/.virtualenvs/hf-datasets/lib/python3.7/site-packages/bert_score/utils.py in bert_cos_score_idf(model, refs, hyps, tokenizer, idf_dict, verbose, batch_size, device, all_layers) 371 return sorted(list(set(l)), key=lambda x: len(x.split(" "))) 372 --> 373 sentences = dedup_and_sort(refs + hyps) 374 embs = [] 375 iter_range = range(0, len(sentences), batch_size) ValueError: operands could not be broadcast together with shapes (0,) (2,) ``` That's because it gets numpy arrays as input and not lists. See #387
[ 0.2761246860027313, -0.13187946379184723, 0.07569078356027603, 0.5165120363235474, 0.0988561138510704, -0.08921447396278381, 0.16246414184570312, 0.47762957215309143, -0.06897040456533432, 0.17806434631347656, 0.1973370462656021, 0.410901814699173, -0.22790642082691193, -0.2859778106212616, -0.010783164761960506, -0.4891383647918701, -0.010812364518642426, 0.25762879848480225, 0.07522992789745331, -0.19344425201416016, -0.43372267484664917, 0.04549342393875122, -0.3053171634674072, 0.2282249480485916, 0.25546738505363464, 0.08862891048192978, -0.26043975353240967, 0.13485990464687347, -0.2278602123260498, -0.4158538281917572, 0.33232545852661133, -0.1785537451505661, 0.007962167263031006, 0.27357345819473267, -0.00011967584578087553, -0.1642262041568756, 0.34228384494781494, -0.050375886261463165, 0.1353788822889328, -0.2967064380645752, -0.5725342631340027, -0.3105908930301666, -0.03196163848042488, -0.3177141547203064, 0.26147544384002686, 0.14892448484897614, -0.13543406128883362, -0.04810100793838501, 0.012342466972768307, 0.1812462955713272, 0.13395889103412628, 0.02541905827820301, -0.21186310052871704, 0.017761221155524254, 0.26042479276657104, 0.00719175161793828, 0.018549945205450058, 0.36357906460762024, -0.402558296918869, -0.3008144497871399, 0.014912202022969723, 0.32883980870246887, 0.013553808443248272, 0.082364022731781, 0.2077828198671341, 0.2061748206615448, 0.06418765336275101, 0.18809019029140472, -0.09990277886390686, 0.09085391461849213, -0.3608171045780182, 0.08363593369722366, -0.32506439089775085, 0.23435519635677338, 0.056302305310964584, -0.4785046875476837, 0.20228268206119537, -0.11532758921384811, -0.0014471623580902815, -0.5615648627281189, -0.27838805317878723, -0.10059547424316406, -0.31679171323776245, 0.19225218892097473, 0.3359639644622803, -0.1287987232208252, -0.10188637673854828, 0.17364323139190674, 0.4988454580307007, -0.12606120109558105, -0.11482325196266174, -0.13571347296237946, 0.1316615641117096, 0.44455286860466003, -0.0911611020565033, 0.1092805564403534, 0.1363406628370285, 0.11333444714546204, -0.03033253736793995, -0.521954357624054, 0.07191070914268494, -0.02703932113945484, -0.3086429238319397, 0.2734445333480835, 0.014333847910165787, 0.4041203260421753, 0.09885543584823608, 0.21380677819252014, -0.17128896713256836, 0.094278983771801, 0.12941227853298187, -0.10194164514541626, 0.005687757395207882, -0.13297687470912933, 0.27265605330467224, 0.41658419370651245, -0.23633147776126862, -0.11841754615306854, 0.1208990290760994, -0.030510343611240387, -0.5161257982254028, -0.015684736892580986, 0.2908790707588196, 0.303607702255249, -0.03180670738220215, 0.3757750988006592, 0.05425102636218071, 0.12529754638671875, -0.21856200695037842, 0.07105094939470291, -0.1651148498058319, 0.47363579273223877, -0.4103997051715851, -0.09632948040962219, 0.20496556162834167, -0.2787080705165863, 0.2501210570335388, 0.021214397624135017, 0.13067902624607086, 0.055552247911691666, -0.23201721906661987, -0.2523794174194336, 0.1263781189918518, -0.14106261730194092, 0.02729007788002491, -0.013950557447969913, 0.2995971143245697, 0.27063602209091187, -0.13691161572933197, 0.018166983500123024, -0.44769755005836487, -0.31434449553489685, 0.1559603065252304, 0.09911380708217621, 0.1796133667230606, 0.15777574479579926, -0.21326246857643127, -0.09839437156915665, 0.2718789875507355, -0.279267817735672, -0.2460842728614807, -0.3767073452472687, -0.18238836526870728, -0.26218241453170776, 0.11682815104722977, 0.20593659579753876, -0.12124493718147278, 0.07937254756689072, -0.3344714343547821, 0.38357093930244446, 0.41818979382514954, 0.2574717700481415, -0.24732741713523865, 0.04520530626177788, -0.04920608922839165, 0.36924996972084045, 0.5126007795333862, -0.5257790088653564, -0.08674957603216171, -0.14901123940944672, 0.3625641167163849, -0.3087708652019501, -0.03997345641255379, -0.024080127477645874, -0.338436096906662, 0.02452201023697853, 0.05815258249640465, -0.14520756900310516, -0.10380079597234726, 0.013366256840527058, -0.20701731741428375, 0.03591488301753998, 0.23699910938739777, 0.017172016203403473, 0.28544726967811584, -0.09815672039985657, -0.08825668692588806, 0.3454061448574066, -0.11927272379398346, -0.13637499511241913, 0.03455321490764618, 0.05047711730003357, 0.3094356060028076, -0.20218691229820251, 0.25883933901786804, -0.16559384763240814, 0.10928399860858917, 0.0673467367887497, -0.4491266906261444, 0.2856457233428955, -0.031146245077252388, 0.21484489738941193, -0.17016126215457916, -0.10167083144187927, -0.08132666349411011, 0.004504536744207144, 0.033228639513254166, 0.08053229749202728, 0.28356650471687317, 0.059562478214502335, -0.13740485906600952, -0.3083929121494293, -0.07903090864419937, -0.2511028051376343, -0.2863686978816986, 0.03992689400911331, -0.35768142342567444, -0.11139082908630371, 0.25295788049697876, 0.4223959147930145, 0.46086758375167847, 0.228264719247818, -0.1752718687057495, 0.19235482811927795, 0.012855775654315948, -0.25308817625045776, 0.2528430223464966, 0.02891220897436142, -0.03189357370138168, -0.2653282582759857, 0.1053081825375557, -0.08036476373672485, 0.3789340555667877, -0.07781605422496796, 0.1700165569782257, 0.36665046215057373, 0.021599192172288895, 0.3864721357822418, 0.05842737480998039, 0.1290571242570877, 0.14585919678211212, 0.10786642879247665, 0.17750807106494904, -0.11834597587585449, 0.3007707893848419, 0.07034808397293091, -0.2067735642194748, -0.26617658138275146, 0.2244003266096115, -0.3974015712738037, 0.529651939868927, 0.10973038524389267, -0.04438712075352669, 0.31074804067611694, 0.04475081339478493, -0.07975388318300247, -0.3063567578792572, -0.5760124325752258, 0.4189813733100891, -0.14339536428451538, -0.08124736696481705, -0.009523811750113964, -0.05766761675477028, -0.034115273505449295, 0.1319589763879776, 0.14558733999729156, -0.15138362348079681, -0.16148307919502258, 0.09861932694911957, -0.08650769293308258, 0.04164396971464157, -0.20196136832237244, 0.03170058876276016, 0.5163307785987854, -0.3323075473308563, 0.4592040479183197, -0.282894492149353, -0.2112262099981308, -0.2713429629802704, -0.6009106040000916, -0.3930336833000183, -0.4392983317375183, -0.06112539768218994, -0.04875054582953453, 0.11803051084280014, 0.21165645122528076, 0.11267617344856262, 0.3243041932582855, 0.21352055668830872, 0.19731880724430084, -0.11490286141633987, -0.2264518141746521, -0.4213562309741974, -0.07052269577980042, -0.13546748459339142, 0.06779922544956207, 0.15107759833335876, -0.1498585045337677, -0.14664770662784576, -0.05144963786005974, -0.24786581099033356, 0.08928465843200684, -0.37124383449554443, 0.01148221269249916, 0.4287260174751282, -0.2520730793476105, -0.5686560273170471, -0.18658345937728882, 0.41130855679512024, -0.21121565997600555, -0.13622304797172546, 0.6053292155265808, -0.10481173545122147, 0.004957195371389389, -0.14193062484264374, -0.2325834184885025, 0.16318000853061676, -0.026635780930519104, 0.24478885531425476, 0.11479775607585907, 0.35273978114128113, 0.060862720012664795, -0.042630840092897415, 0.36705508828163147, -0.24333934485912323, -0.05458521842956543, -0.24544288218021393, -0.23380424082279205, 0.17395944893360138, -0.1633547693490982, -0.36380088329315186, -0.23292070627212524, -0.0839458778500557, 0.22059668600559235, 0.03269581124186516, -0.07199222594499588, -0.6988815665245056, 0.16091400384902954, -0.0875733494758606, -0.11307520419359207, 0.3430013060569763, 0.20707978308200836, -0.026436684653162956, -0.01856188103556633, -0.2006414830684662, -0.07354985177516937, 0.29971566796302795, 0.15677447617053986, 0.2876438498497009, 0.055239900946617126, 0.26819372177124023, 0.21057787537574768, 0.775053083896637, 0.41104042530059814, -0.14279578626155853, 0.41083669662475586, 0.09807129949331284, -0.066593237221241, 0.14184929430484772, -0.45682603120803833, 0.05318516492843628, 0.0878206416964531, 0.2652170956134796, 0.173650860786438, -0.11302316188812256, -0.013581608422100544, -0.14460977911949158, -0.14007703959941864, -0.44882965087890625, -0.2586408257484436, 0.11188223958015442, -0.24775464832782745, 0.5019534826278687, 0.03936983272433281, 0.028255313634872437, -0.40111956000328064, -0.29878878593444824, 0.043712981045246124, -0.13466207683086395, 0.16008798778057098, -0.08500490337610245, 0.31991222500801086, -0.43150606751441956, -0.26094305515289307, 0.43255072832107544, 0.5315393805503845, 0.4602392613887787, -0.04408406838774681, 0.21407604217529297, 0.028620602563023567, 0.04356537014245987, 0.3916599750518799, -0.228753924369812, 0.19572828710079193, 0.19390274584293365, 0.012567337602376938, -0.24091851711273193, 0.09946145862340927, -0.450671523809433, 0.02590177021920681, 0.2522270977497101, 0.1966557651758194, -0.18241998553276062, 0.08292177319526672, 0.23924888670444489, -0.19131611287593842, -0.21682316064834595, -0.17175546288490295, -0.39225444197654724, -0.10345590114593506, 0.13379253447055817, 0.07086598128080368, -0.18482860922813416, 0.3278146982192993, 0.11644145101308823, 0.3427131772041321, 0.08105497062206268, -0.054540280252695084, 0.1605658233165741, 0.052546802908182144, -0.015751466155052185, 0.0007019775803200901, 0.007515895180404186, 0.010559214279055595, -0.09696698188781738, 0.18034331500530243, 0.07531270384788513, -0.03905172273516655, -0.34069395065307617, -0.011494813486933708, 0.1553640216588974, 0.5570810437202454, 0.04207225516438484, -0.025938257575035095, 0.007409972604364157, 0.034869179129600525, 0.045192234218120575, -0.09717220813035965, 0.11417911946773529, 0.6543458700180054, -0.16233916580677032, -0.27443817257881165, -0.35112035274505615, 0.5985892415046692, 0.1391279548406601, -0.04412298649549484, -0.1602846086025238, 0.3554707169532776, -0.10967935621738434, 0.257342666387558, 0.40789979696273804, 0.9862608313560486, 0.007694525178521872, 0.0063671814277768135, 0.3951888978481293, 0.3146582245826721, 0.6596634984016418, 0.15788576006889343, 0.24318578839302063, -0.48030418157577515, 0.09305045008659363, -0.04703352227807045, -0.18435992300510406, -0.043301671743392944, -0.14339497685432434, -0.1519218534231186, 0.5336702466011047, -0.18224094808101654, -0.009079190902411938, 0.059501972049474716, -0.09267587214708328, 0.1497078239917755, -0.3648526072502136, -0.22302715480327606, 0.09297696501016617, -0.20578528940677643, 0.13140428066253662, -0.13272111117839813, -0.13585738837718964, 0.09862016141414642, -0.30958035588264465, -0.34879201650619507, 0.22004692256450653, 0.30451858043670654, 0.08683782070875168, -0.0660896748304367, -0.0008567978511564434, 0.1731232851743698, -0.014480644837021828, 0.3831593692302704, -0.03028556890785694, -0.18665283918380737, -0.022907782346010208, 0.07089900225400925, -0.0881781056523323, 0.12048032134771347, 0.2667512595653534, -0.14315931499004364, -0.12799444794654846, -0.03302975744009018, 0.11756769567728043, -0.015953587368130684, -0.24412424862384796, -0.07702846825122833, 0.019763875752687454, 0.17073000967502594, -0.007582375314086676, 0.052321381866931915, -0.03471280261874199, 0.0013455720618367195, -0.03252076357603073, 0.07717986404895782, 0.06157219782471657, -0.3198448419570923, 0.2046668529510498, 0.061094049364328384, -0.10083558410406113, 0.26332321763038635, 0.3545156419277191, 0.1891118288040161, 0.07073456794023514, 0.4330879747867584, 0.013102172873914242, -0.24831977486610413, -0.01434388943016529, -0.29575780034065247, 0.09108839184045792, -0.3135702311992645, 0.012532883323729038, 0.1495850533246994, 0.2577357590198517, 0.04608449339866638, 0.3942526876926422, 0.09639410674571991, 0.0542425699532032, 0.011534635908901691, -0.3625420928001404, 0.0454559251666069, 0.06286271661520004, -0.24709603190422058, -0.2727506756782532, 0.038384098559617996, 0.10211457312107086, -0.132207989692688, 0.37764182686805725, -0.21924033761024475, 0.03907527029514313, -0.37288588285446167, 0.35844123363494873, -0.19264043867588043, -0.08277466148138046, 0.2540491223335266, 0.19477272033691406, 0.038845211267471313, 0.30142834782600403, -0.1767052263021469, -0.07311205565929413, -0.21006779372692108, 0.16351141035556793, 0.1310470700263977, -0.10002083331346512, -0.14301812648773193, -0.3009258806705475, -0.23703034222126007, -0.05284000560641289, -0.5451627373695374, 0.09360533952713013, -0.05051210895180702, 0.5203593969345093, -0.017580272629857063, 0.20935821533203125, 0.2586183249950409, 0.18821997940540314, -0.08176922053098679, 0.3411978483200073, -0.050276756286621094, 0.16446849703788757, 0.07339167594909668, -0.16560502350330353, -0.11883706599473953, 0.041175663471221924, 0.14329038560390472, -0.018775098025798798, 0.26604875922203064, -0.0018674995517358184, 0.3188219666481018, -0.2743109166622162, 0.3269651532173157, 0.14027677476406097, -0.039117731153964996, -0.0568726621568203, 0.30719488859176636, 0.03405611217021942, -0.15770921111106873, -0.016702067106962204, -0.30500710010528564, 0.16469599306583405, -0.21073688566684723, 0.19125212728977203, -0.19159501791000366, -0.0024429347831755877, 0.03654675930738449, -0.21616214513778687, -0.09616069495677948, -0.24999313056468964, -0.10512437671422958, 0.24062204360961914, -0.15624311566352844, 0.09503805637359619, 0.3902399241924286, 0.1090635433793068, 0.17056764662265778, 0.2774471938610077, -0.12773041427135468, 0.22094611823558807, -0.36819329857826233, -0.034156352281570435, -0.11156685650348663, -0.09622099250555038, -0.4266485273838043, 0.32894569635391235, 0.3853098452091217, 0.21805934607982635, -0.2089061439037323, 0.6197125911712646, -0.24948333203792572, 0.000362944818334654, -0.4004908502101898, 0.4326600730419159, 0.14803378283977509, -0.050918031483888626, -0.2288658618927002, -0.12701745331287384, -0.24224317073822021, 0.024107320234179497, -0.04773220419883728, 0.13675808906555176, 0.49162429571151733, 0.4510851204395294, -0.05057964101433754, -0.26044338941574097, -0.3250432014465332, 0.548390805721283, 0.25604405999183655, -0.30599719285964966, -0.0033512974623590708, 0.11298089474439621, 0.0017469023587182164, -0.09002342820167542, 0.3348161280155182, 0.26296108961105347, 0.4056602716445923, -0.2561150789260864, -0.2389257699251175, 0.0008814604370854795, 0.05253921449184418, 0.047952137887477875, 0.29624879360198975, 0.31554871797561646, 0.36832964420318604, 0.1411133110523224, -0.008941859006881714, -0.046418510377407074, 0.16426141560077667, -0.09952159970998764, 0.5115294456481934, 0.08945334702730179, 0.842461109161377, -0.07010894268751144, 0.22005897760391235, -0.06431061029434204, 0.04334940388798714, -0.41389065980911255, 0.22941236197948456, -0.02245442382991314, 0.45326459407806396, 0.12200063467025757, -0.04975535720586777, 0.031103961169719696, -0.010386328212916851, 0.5032485127449036, 0.38426390290260315, -0.16034847497940063, -0.6217659711837769, -0.07053330540657043, -0.18336810171604156, 0.08251989632844925, -0.07315322011709213, 0.1935974657535553, -0.013689703308045864, 0.06011972576379776, -0.15868860483169556, 0.14572761952877045, -0.13828246295452118, -0.12189528346061707, -0.21103638410568237, 0.20931214094161987, -0.24601320922374725, -0.22010567784309387, -0.2454259991645813, -0.4443530738353729, 0.038200948387384415, -0.027674388140439987, -0.0358009859919548, -0.22917701303958893, 0.026704708114266396, -0.11504791676998138, -0.22350923717021942, 0.08587902784347534, 0.5075320601463318, 0.2599179744720459, 0.3871490955352783, 0.3245086669921875, 0.14014698565006256, -0.2034890353679657, 0.0518997386097908, -0.13275742530822754, 0.08784385025501251, 0.06387623399496078, -0.39811971783638, 0.17984452843666077, -0.16468031704425812, 0.06775576621294022, -0.5098578929901123, 0.32633817195892334, -0.16334593296051025, -0.14339417219161987, -0.3805130422115326, 0.11970514059066772, 0.08513418585062027, -0.01699153520166874, -0.10535325855016708, 0.04019797220826149, -0.031902655959129333, 0.34250378608703613, -0.45043373107910156, -0.007498592138290405, 0.6227496862411499, -0.589815616607666, -0.3655671179294586, 0.16507044434547424, 0.25668153166770935, 0.009977644309401512, -0.17307241261005402, -0.875122606754303, -0.12246347963809967, 0.3599117398262024, 0.1091383770108223, -0.1743115931749344, -0.13046666979789734, -0.2308664619922638, -0.030322132632136345, 0.03191102296113968, -0.03290696442127228, -0.0787351131439209, -0.1470029354095459, 0.3145696520805359, -0.09690692275762558 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
I've seen this sort of thing before -- it might help to delete the directory -- I've also noticed that there is an error with the json Dataloader for any data I've tried to load. I've replaced it with this, which skips over the data feature population step: ```python import os import pyarrow.json as paj import nlp as hf_nlp from nlp import DatasetInfo, BuilderConfig, SplitGenerator, Split, utils from nlp.arrow_writer import ArrowWriter class JSONDatasetBuilder(hf_nlp.ArrowBasedBuilder): BUILDER_CONFIG_CLASS = BuilderConfig def _info(self): return DatasetInfo() def _split_generators(self, dl_manager): """ We handle string, list and dicts in datafiles """ if isinstance(self.config.data_files, (str, list, tuple)): files = self.config.data_files if isinstance(files, str): files = [files] return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})] splits = [] for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]: if split_name in self.config.data_files: files = self.config.data_files[split_name] if isinstance(files, str): files = [files] splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files})) return splits def _prepare_split(self, split_generator): fname = "{}-{}.arrow".format(self.name, split_generator.name) fpath = os.path.join(self._cache_dir, fname) writer = ArrowWriter(path=fpath) generator = self._generate_tables(**split_generator.gen_kwargs) for key, table in utils.tqdm(generator, unit=" tables", leave=False): writer.write_table(table) num_examples, num_bytes = writer.finalize() split_generator.split_info.num_examples = num_examples split_generator.split_info.num_bytes = num_bytes def _generate_tables(self, files): for i, file in enumerate(files): pa_table = paj.read_json( file ) yield i, pa_table ```
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
191
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) I've seen this sort of thing before -- it might help to delete the directory -- I've also noticed that there is an error with the json Dataloader for any data I've tried to load. I've replaced it with this, which skips over the data feature population step: ```python import os import pyarrow.json as paj import nlp as hf_nlp from nlp import DatasetInfo, BuilderConfig, SplitGenerator, Split, utils from nlp.arrow_writer import ArrowWriter class JSONDatasetBuilder(hf_nlp.ArrowBasedBuilder): BUILDER_CONFIG_CLASS = BuilderConfig def _info(self): return DatasetInfo() def _split_generators(self, dl_manager): """ We handle string, list and dicts in datafiles """ if isinstance(self.config.data_files, (str, list, tuple)): files = self.config.data_files if isinstance(files, str): files = [files] return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})] splits = [] for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]: if split_name in self.config.data_files: files = self.config.data_files[split_name] if isinstance(files, str): files = [files] splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files})) return splits def _prepare_split(self, split_generator): fname = "{}-{}.arrow".format(self.name, split_generator.name) fpath = os.path.join(self._cache_dir, fname) writer = ArrowWriter(path=fpath) generator = self._generate_tables(**split_generator.gen_kwargs) for key, table in utils.tqdm(generator, unit=" tables", leave=False): writer.write_table(table) num_examples, num_bytes = writer.finalize() split_generator.split_info.num_examples = num_examples split_generator.split_info.num_bytes = num_bytes def _generate_tables(self, files): for i, file in enumerate(files): pa_table = paj.read_json( file ) yield i, pa_table ```
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
Yes, deleting the directory solves the error whenever I try to rerun. By replacing the json-loader, you mean the cached file in my `site-packages` directory? e.g. `/home/XXX/.cache/lib/python3.7/site-packages/nlp/datasets/json/(...)/json.py` When I was testing this out before the #372 PR was merged I had issues installing it properly locally. Since the `json.py` script was downloaded instead of actually using the one provided in the local install. Manually updating that file seemed to solve it, but it didn't seem like a proper solution. Especially when having to run this on a remote compute cluster with no access to that directory.
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
96
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) Yes, deleting the directory solves the error whenever I try to rerun. By replacing the json-loader, you mean the cached file in my `site-packages` directory? e.g. `/home/XXX/.cache/lib/python3.7/site-packages/nlp/datasets/json/(...)/json.py` When I was testing this out before the #372 PR was merged I had issues installing it properly locally. Since the `json.py` script was downloaded instead of actually using the one provided in the local install. Manually updating that file seemed to solve it, but it didn't seem like a proper solution. Especially when having to run this on a remote compute cluster with no access to that directory.
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
I see, diving in the JSON file for SQuAD it's a pretty complex structure. The best solution for you, if you have a dataset really similar to SQuAD would be to copy and modify the SQuAD data processing script. We will probably add soon an option to be able to specify file path to use instead of the automatic URL encoded in the script but in the meantime you can: - copy the [squad script](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) in a new script for your dataset - in the new script replace [these `urls_to_download `](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py#L99-L102) by `urls_to_download=self.config.data_files` - load the dataset with `dataset = load_dataset('path/to/your/new/script', data_files={nlp.Split.TRAIN: "./datasets/train-v2.0.json"})` This way you can reuse all the processing logic of the SQuAD loading script.
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
117
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) I see, diving in the JSON file for SQuAD it's a pretty complex structure. The best solution for you, if you have a dataset really similar to SQuAD would be to copy and modify the SQuAD data processing script. We will probably add soon an option to be able to specify file path to use instead of the automatic URL encoded in the script but in the meantime you can: - copy the [squad script](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) in a new script for your dataset - in the new script replace [these `urls_to_download `](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py#L99-L102) by `urls_to_download=self.config.data_files` - load the dataset with `dataset = load_dataset('path/to/your/new/script', data_files={nlp.Split.TRAIN: "./datasets/train-v2.0.json"})` This way you can reuse all the processing logic of the SQuAD loading script.
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
This seems like a more sensible solution! Thanks, @thomwolf. It's been a little daunting to understand what these scripts actually do, due to the level of abstraction and central documentation. Am I correct in assuming that the `_generate_examples()` function is the actual procedure for how the data is loaded from file? Meaning that essentially with a file containing another format, that is the only function that requires re-implementation? I'm working with a lot of datasets that, due to licensing and privacy, cannot be published. As this library is so neatly integrated with the transformers library and gives easy access to public sets such as SQUAD and increased performance, it is very neat to be able to load my private sets as well. As of now, I have just been working on scripts for translating all my data into the SQUAD-format before using the json script, but I see that it might not be necessary after all.
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
156
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) This seems like a more sensible solution! Thanks, @thomwolf. It's been a little daunting to understand what these scripts actually do, due to the level of abstraction and central documentation. Am I correct in assuming that the `_generate_examples()` function is the actual procedure for how the data is loaded from file? Meaning that essentially with a file containing another format, that is the only function that requires re-implementation? I'm working with a lot of datasets that, due to licensing and privacy, cannot be published. As this library is so neatly integrated with the transformers library and gives easy access to public sets such as SQUAD and increased performance, it is very neat to be able to load my private sets as well. As of now, I have just been working on scripts for translating all my data into the SQUAD-format before using the json script, but I see that it might not be necessary after all.
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
Yes `_generate_examples()` is the main entry point. If you change the shape of the returned dictionary you also need to update the `features` in the `_info`. I'm currently writing the doc so it should be easier soon to use the library and know how to add your datasets.
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
48
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) Yes `_generate_examples()` is the main entry point. If you change the shape of the returned dictionary you also need to update the `features` in the `_info`. I'm currently writing the doc so it should be easier soon to use the library and know how to add your datasets.
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
Could you try to update pyarrow to >=0.17.0 @vegarab ? I don't have any segmentation fault with my version of pyarrow (0.17.1) I tested with ```python import nlp s = nlp.load_dataset("json", data_files="train-v2.0.json", field="data", split="train") s[0] # {'title': 'Normans', 'paragraphs': [{'qas': [{'question': 'In what country is Normandy located?', 'id':... ```
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
49
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) Could you try to update pyarrow to >=0.17.0 @vegarab ? I don't have any segmentation fault with my version of pyarrow (0.17.1) I tested with ```python import nlp s = nlp.load_dataset("json", data_files="train-v2.0.json", field="data", split="train") s[0] # {'title': 'Normans', 'paragraphs': [{'qas': [{'question': 'In what country is Normandy located?', 'id':... ```
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
Also if you want to have your own dataset script, we now have a new documentation ! See here: https://huggingface.co/nlp/add_dataset.html
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
20
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) Also if you want to have your own dataset script, we now have a new documentation ! See here: https://huggingface.co/nlp/add_dataset.html
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/373
Segmentation fault when loading local JSON dataset as of #372
@lhoestq For some reason, I am not able to reproduce the segmentation fault, on pyarrow==0.16.0. Using the exact same environment and file. Anyhow, I discovered that pyarrow>=0.17.0 is required to read in a JSON file where the pandas structs contain lists. Otherwise, pyarrow complains when attempting to cast the struct: ```py import nlp >>> s = nlp.load_dataset("json", data_files="datasets/train-v2.0.json", field="data", split="train") Using custom data configuration default >>> s[0] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 558, in __getitem__ format_kwargs=self._format_kwargs, File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 498, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list")) File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes) File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks list(extension_columns.keys())) File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string> >>> s Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 35) ``` Upgrading to >=0.17.0 provides the same dataset structure, but accessing the records is possible without the same exception.
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.)
219
Segmentation fault when loading local JSON dataset as of #372 The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault. ``` dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') ``` causes ``` Using custom data configuration default Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0... 0 tables [00:00, ? tables/s]Segmentation fault (core dumped) ``` where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/. This is consistent with other SQuAD-formatted JSON files. When attempting to load the dataset again, I get the following: ``` Using custom data configuration default Traceback (most recent call last): File "dataloader.py", line 6, in <module> 'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data') File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare with incomplete_dir(self._cache_dir) as tmp_data_dir: File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir os.makedirs(tmp_dir) File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete' ``` (Not sure if you wanted this in the previous issue #369 or not as it was closed.) @lhoestq For some reason, I am not able to reproduce the segmentation fault, on pyarrow==0.16.0. Using the exact same environment and file. Anyhow, I discovered that pyarrow>=0.17.0 is required to read in a JSON file where the pandas structs contain lists. Otherwise, pyarrow complains when attempting to cast the struct: ```py import nlp >>> s = nlp.load_dataset("json", data_files="datasets/train-v2.0.json", field="data", split="train") Using custom data configuration default >>> s[0] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 558, in __getitem__ format_kwargs=self._format_kwargs, File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 498, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list")) File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes) File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks list(extension_columns.keys())) File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string> >>> s Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 35) ``` Upgrading to >=0.17.0 provides the same dataset structure, but accessing the records is possible without the same exception.
[ -0.01729281060397625, 0.2893959581851959, 0.06094159185886383, 0.05787114053964615, 0.22360937297344208, -0.016548817977309227, 0.3200390040874481, 0.6101844310760498, -0.4010095000267029, -0.2130437046289444, -0.24225422739982605, 0.7714077234268188, 0.13278748095035553, -0.426596075296402, 0.14892278611660004, -0.07152839004993439, 0.04622577130794525, 0.12672902643680573, 0.22394046187400818, 0.05367058515548706, -0.17444954812526703, 0.3416518568992615, -0.22996847331523895, 0.13204160332679749, -0.16675204038619995, 0.26606422662734985, 0.006536221131682396, 0.5419237017631531, -0.07457155734300613, -0.7302020788192749, 0.29777732491493225, -0.009329700842499733, 0.15174540877342224, 0.3450249135494232, -0.0001186112713185139, 0.18453162908554077, 0.33184847235679626, -0.1096370592713356, -0.3517013490200043, 0.052129294723272324, 0.280503511428833, -0.24146419763565063, 0.3380260765552521, -0.145383819937706, 0.06273128092288971, -0.3119804561138153, 0.0318317748606205, 0.08127430826425552, 0.6866551637649536, 0.15539708733558655, 0.09210090339183807, 0.1377255767583847, 0.07380707561969757, 0.05236612632870674, 0.020775802433490753, 0.06787721067667007, 0.01660403050482273, 0.7200929522514343, 0.5202921628952026, -0.1260116547346115, -0.33889901638031006, -0.07208485156297684, 0.12127228081226349, -0.03826901689171791, 0.20485709607601166, -0.06355617195367813, -0.013848195783793926, -0.18327105045318604, 0.05246543139219284, 0.1170201376080513, 0.24164614081382751, -0.23805923759937286, -0.23284821212291718, -0.2157488465309143, 0.0747864693403244, -0.21810884773731232, 0.37732064723968506, 0.27722951769828796, -0.13985998928546906, 0.15234264731407166, -0.056996673345565796, 0.03446030244231224, -0.19189326465129852, 0.02931019477546215, -0.21427327394485474, 0.5192533731460571, 0.12151207774877548, 0.04168461635708809, 0.10512378811836243, -0.16294614970684052, -0.1519256830215454, 0.317239373922348, -0.26252883672714233, 0.39982783794403076, -0.3908268213272095, -0.16861696541309357, 0.11205310374498367, -0.3626520335674286, 0.21630506217479706, 0.0901765376329422, 0.18008796870708466, 0.16720516979694366, 0.21391238272190094, 0.12037014961242676, 0.48531031608581543, 0.05467778444290161, 0.17183537781238556, 0.20253202319145203, 0.15263178944587708, -0.019628960639238358, -0.025974435731768608, 0.23977530002593994, -0.13988174498081207, -0.2250078320503235, -0.21351559460163116, 0.028068017214536667, -0.02682134136557579, -0.109466552734375, 0.014883465133607388, 0.06951835751533508, -0.3147706687450409, -0.012025930918753147, 0.050985679030418396, 0.08486183732748032, 0.13128642737865448, 0.19260747730731964, -0.25002801418304443, 0.20476111769676208, -0.1014544889330864, -0.1726951152086258, -0.01757519505918026, -0.026820417493581772, -0.3066564202308655, -0.020666131749749184, 0.4054734408855438, -0.12256059795618057, 0.11852152645587921, -0.08124992996454239, -0.11161529272794724, -0.2269231230020523, -0.4334726631641388, -0.04389797896146774, 0.007667146157473326, 0.14967450499534607, 0.031680312007665634, -0.07048679143190384, -0.03672324866056442, -0.25811049342155457, -0.18032102286815643, 0.21218934655189514, -0.3511878252029419, -0.2851628065109253, -0.5924200415611267, 0.11839117854833603, -0.3227136731147766, -0.005309116095304489, 0.14440123736858368, 0.20507915318012238, 0.05665997788310051, -0.4543258249759674, -0.13779011368751526, -0.08935883641242981, -0.0031531243585050106, -0.22954262793064117, 0.14668330550193787, 0.25237807631492615, -0.8450281023979187, -0.23598115146160126, 0.16683770716190338, -0.0015069771325215697, 0.08309795707464218, 0.5275307893753052, -0.3514184057712555, 0.27320367097854614, -0.15309777855873108, 0.52610844373703, 0.40136709809303284, -0.2779780924320221, -0.3369087874889374, 0.24279071390628815, -0.39944830536842346, -0.041357122361660004, -0.23726682364940643, -0.06557166576385498, 0.29670432209968567, 0.08233315497636795, 0.34125325083732605, 0.4493856430053711, -0.11555138975381851, 0.14832475781440735, -0.33256494998931885, -0.08049898594617844, 0.17264270782470703, 0.3601398766040802, -0.06741521507501602, -0.16082452237606049, -0.029858822003006935, 0.14493072032928467, 0.4040018320083618, -0.17193184792995453, -0.020753758028149605, 0.16067294776439667, 0.13729025423526764, -0.017320534214377403, 0.16614258289337158, -0.10807963460683823, -0.7758409976959229, 0.10205122083425522, -0.28949347138404846, 0.08079373836517334, -0.041132502257823944, 0.006053146906197071, -0.27678292989730835, -0.11359874159097672, -0.20613186061382294, -0.05402394011616707, 0.03211728855967522, -0.1604946255683899, -0.03485902398824692, -0.06829655915498734, -0.4652935266494751, -0.1567862629890442, -0.1547573059797287, 0.3780496120452881, -0.11537912487983704, 0.4039314389228821, -0.13026517629623413, -0.4008331298828125, 0.0927918553352356, 0.36722642183303833, 0.12826210260391235, -0.26726216077804565, -0.006815933156758547, 0.32956796884536743, -0.08044756203889847, 0.1338741034269333, -0.17082278430461884, -0.2979549169540405, 0.24760890007019043, -0.08576130867004395, -0.1292853057384491, -0.0635809674859047, -0.10223276913166046, -0.08836464583873749, -0.32466790080070496, 0.3362673223018646, 0.019725799560546875, -0.03263634815812111, -0.05677349492907524, -0.2471362054347992, 0.2981211245059967, -0.0848110020160675, -0.12740367650985718, -0.028297357261180878, 0.017285658046603203, 0.16710689663887024, -0.012495452538132668, 0.17665837705135345, -0.17652131617069244, -0.014475164003670216, 0.36949482560157776, -0.0651182010769844, 0.03557064011693001, 0.1873180866241455, 0.10087136179208755, -0.29189932346343994, -0.024753058329224586, -0.04872128739953041, 0.36348050832748413, -0.007697369437664747, -0.15589123964309692, -0.003915245644748211, 0.03366763889789581, -0.01840122975409031, -0.011545483954250813, 0.048245709389448166, 0.42260971665382385, 0.5049406886100769, 0.3639855980873108, 0.16840192675590515, -0.2733655869960785, -0.1548720896244049, 0.1276228427886963, 0.05630401894450188, -0.37437769770622253, 0.060218214988708496, -0.26782724261283875, -0.14459238946437836, -0.29308852553367615, -0.14269064366817474, -0.34197455644607544, -0.19415521621704102, 0.10888795554637909, -0.0382629856467247, -0.08678238093852997, 0.20050598680973053, 0.1665465235710144, 0.4000793695449829, 0.10027816146612167, -0.1863676905632019, 0.038145989179611206, -0.1772581934928894, -0.21824198961257935, -0.045367348939180374, 0.3783225119113922, -0.06442930549383163, -0.2067779153585434, -0.1894425004720688, -0.2709752917289734, 0.10979170352220535, -0.43609756231307983, 0.16802860796451569, -0.009155417792499065, 0.19459064304828644, 0.022265508770942688, 0.23686343431472778, -0.1479683369398117, -0.36693504452705383, 0.28148266673088074, -0.04621192067861557, -0.25112849473953247, 0.0004010537813883275, -0.10349632054567337, 0.13379168510437012, -0.2878108620643616, -0.38973453640937805, -0.2453109472990036, -0.22711342573165894, 0.43590259552001953, 0.0752953588962555, 0.13726644217967987, 0.2004077285528183, -0.20206832885742188, 0.014742604456841946, -0.23706020414829254, -0.21109454333782196, 0.04947836697101593, -0.18574728071689606, 0.20523394644260406, -0.29880741238594055, -0.1417258381843567, -0.021901482716202736, 0.09425198286771774, 0.167005255818367, -0.22435815632343292, -0.1604163944721222, 0.11611907184123993, 0.1713578701019287, 0.24600815773010254, -0.32344138622283936, -0.25976434350013733, 0.2524789571762085, -0.22972899675369263, 0.052428413182497025, 0.19720982015132904, -0.360209196805954, -0.09371239691972733, 0.5185641646385193, 0.19824951887130737, -0.26570552587509155, 0.23632802069187164, 0.059721384197473526, 0.8267530202865601, -0.13743990659713745, -0.16253800690174103, 0.12583273649215698, 0.03038012981414795, 0.1219484806060791, -0.14891277253627777, -0.035248853266239166, 0.3921872079372406, -0.03979836031794548, -0.11294010281562805, 0.24759554862976074, 0.16245193779468536, -0.5424820184707642, -0.005967693869024515, 0.15809732675552368, -0.547314465045929, -0.16832339763641357, 0.26329681277275085, 0.5551207661628723, -0.08508668094873428, -0.04293392598628998, 0.029451362788677216, 0.002924949862062931, -0.2315506488084793, -0.05983671173453331, 0.22425149381160736, 0.27071303129196167, 0.09323351085186005, -0.5434250235557556, -0.34220150113105774, -0.04475944861769676, -0.020403489470481873, 0.12437029182910919, 0.4645564556121826, -0.001272434601560235, -0.20624320209026337, 0.027221079915761948, -0.2641846239566803, 0.34766116738319397, 0.262074738740921, 0.3518277704715729, 0.3491414487361908, 0.3293306827545166, -0.07430097460746765, -0.30467796325683594, 0.14519010484218597, 0.4771129786968231, 0.6556545495986938, 0.41983145475387573, -0.1016697958111763, -0.13171137869358063, 0.2848743498325348, 0.08596157282590866, -0.14478114247322083, -0.07338354736566544, -0.22651490569114685, -0.07947790622711182, 0.0030260502826422453, 0.03935076668858528, -0.04176066815853119, 0.39739441871643066, 0.06032111868262291, 0.13376057147979736, 0.4236766993999481, -0.26955345273017883, -0.2426757961511612, 0.3894135057926178, 0.1091243326663971, 0.0767812728881836, 0.04680418223142624, 0.26702573895454407, -0.0012026795884594321, 0.3386420011520386, 0.4461458921432495, 0.289424329996109, -0.20294634997844696, 0.27485790848731995, -0.006987558677792549, 0.22130079567432404, 0.46919623017311096, 0.2012586146593094, -0.18309062719345093, -0.14047059416770935, -0.1271868348121643, 0.02302275225520134, -0.4001845717430115, 0.13784146308898926, -0.3075534701347351, -0.22677840292453766, 0.21557506918907166, 0.20091663300991058, -0.09558326750993729, -0.06338619440793991, -0.02899748459458351, -0.06045706570148468, -0.015704549849033356, 0.5079236030578613, 0.16421633958816528, 0.7734212875366211, -0.04519956558942795, 0.10620608180761337, 0.2713398337364197, -0.1177702397108078, 0.4012332558631897, -0.6511294841766357, 0.3604261875152588, -0.4377221167087555, 0.2696184515953064, 0.12142505496740341, -0.12912040948867798, 0.16803930699825287, 0.18424196541309357, 0.006719616707414389, -0.05477841943502426, -0.14762508869171143, 0.2945110499858856, -0.025762947276234627, 0.3388974368572235, 0.17994777858257294, -0.3059538006782532, -0.5036044716835022, 0.06079208478331566, -0.3701076805591583, 0.034558553248643875, -0.1490776091814041, -0.16940255463123322, -0.08521303534507751, -0.12656299769878387, -0.28380081057548523, 0.2769848108291626, 0.1298922598361969, 0.014315950684249401, 0.512805163860321, -0.2600138783454895, 0.15981611609458923, 0.3644203543663025, -0.15014269948005676, 0.05352897197008133, -0.0029319876339286566, 0.361552894115448, -0.12342972308397293, 0.11176969856023788, 0.22975899279117584, 0.01988382078707218, 0.2879813611507416, -0.16016100347042084, -0.04068170487880707, -0.050391145050525665, -0.07457564026117325, -0.2796947956085205, -0.06919249147176743, 0.3941938579082489, 0.13750894367694855, -0.16564114391803741, 0.012916237115859985, -0.12453898787498474, 0.12291915714740753, -0.04930220544338226, 0.054203100502491, 0.010645460337400436, -0.14916299283504486, -0.027173981070518494, 0.15864518284797668, -0.06981600821018219, 0.0864369198679924, 0.6089110970497131, -0.1084497794508934, -0.3196195363998413, 0.3064625859260559, 0.30267560482025146, 0.005280337296426296, -0.22048039734363556, 0.22126460075378418, 0.05046794191002846, -0.38860267400741577, -0.13762642443180084, -0.1989220380783081, -0.06842426210641861, 0.03468069061636925, 0.1022283136844635, 0.21728584170341492, -0.10179026424884796, 0.0036829435266554356, -0.5508980751037598, -0.3031098246574402, 0.1911863535642624, -0.07676961272954941, -0.18136951327323914, 0.11923189461231232, 0.33894211053848267, 0.015513204969465733, 0.25473886728286743, -0.20348528027534485, 0.3259333372116089, -0.37330880761146545, 0.14416095614433289, -0.5635963678359985, -0.23719099164009094, -0.003535721218213439, -0.23051343858242035, 0.018074357882142067, 0.24548959732055664, 0.07344715297222137, -0.10744054615497589, -0.015552087686955929, 0.15939374268054962, 0.1383395791053772, -0.0180854219943285, -0.16946649551391602, -0.00020731307449750602, 0.10750919580459595, 0.17355968058109283, 0.10350066423416138, -0.13777083158493042, 0.14676441252231598, 0.16093334555625916, 0.29538020491600037, 0.10649128258228302, 0.19602854549884796, 0.09358854591846466, 0.02957397699356079, 0.3905383050441742, 0.05888161435723305, 0.24129389226436615, -0.20396089553833008, 0.033432647585868835, -0.35546818375587463, 0.18905995786190033, 0.01001391839236021, 0.2804833948612213, 0.08382782340049744, -0.5798283219337463, -0.05440342798829079, -0.07205311954021454, 0.30135753750801086, 0.5721238255500793, -0.3665149211883545, 0.11240676790475845, 0.18876983225345612, 0.10417405515909195, -0.00993597786873579, -0.25940877199172974, 0.7478206753730774, -0.03566449508070946, -0.30246272683143616, 0.018034787848591805, 0.14284680783748627, -0.09839735180139542, 0.13151945173740387, 0.13897201418876648, 0.5670434832572937, 0.19193553924560547, 0.19833464920520782, 0.21702052652835846, -0.22543452680110931, -0.02375130169093609, 0.1397867351770401, -0.07900022715330124, 0.18169555068016052, 0.25413236021995544, -0.19390442967414856, 0.06331793963909149, 0.11781712621450424, 0.10370807349681854, 0.2329501360654831, -0.34134334325790405, -0.35574889183044434, 0.09975063055753708, 0.13790327310562134, 0.010600361041724682, 0.17850032448768616, 0.8641583323478699, -0.1908433437347412, -0.42175209522247314, -0.08530370891094208, 0.08790306001901627, -0.3081800043582916, 0.08736103028059006, -0.49697262048721313, -0.17892985045909882, -0.040542345494031906, 0.15436430275440216, -0.30171242356300354, -0.032922595739364624, 0.08559875935316086, 0.03904854878783226, -0.27453216910362244, -0.19280485808849335, -0.041418492794036865, -0.214215949177742, 0.06561002880334854, -0.07529901713132858, 0.33553919196128845, -0.13620832562446594, 0.042879618704319, 0.24395403265953064, -0.020816821604967117, 0.32823625206947327, 0.3369992673397064, -0.19198933243751526, -0.126454696059227, -0.25782889127731323, 0.02168089523911476, 0.07443025708198547, 0.10279130935668945, 0.2146652638912201, -0.13024921715259552, 0.27614256739616394, 0.11681973189115524, -0.04687777906656265, 0.13497309386730194, 0.27688291668891907, 0.16074860095977783, 0.09730972349643707, -0.08710529655218124, -0.1949215978384018, -0.2481791079044342, -0.06770173460245132, -0.12639279663562775, 0.03383277729153633, -0.12264173477888107, -0.15556834638118744, 0.5012950301170349, 0.11771140992641449, -0.06306403130292892, 0.08504264056682587, 0.108331598341465, 0.5546956658363342, 0.2226143777370453, -0.36151188611984253, -0.0978454202413559, -0.20268094539642334, -0.29057472944259644, 0.2430059313774109, -0.044859450310468674, 0.07140392065048218, 0.30169931054115295, 0.4403109550476074, -0.14588330686092377, 0.2847678065299988, -0.23703376948833466, -0.048203520476818085, 0.0044937739148736, 0.24563224613666534, -0.4291108250617981, 0.17971746623516083, 0.05664926394820213, 0.14541131258010864, -0.1059209331870079, -0.1340211033821106, 0.26651498675346375, -0.20236103236675262, -0.0858607217669487, 0.035069555044174194, -0.42770814895629883, -0.020691178739070892, 0.04247972369194031, 0.2701967656612396, -0.08202479034662247, 0.3326265811920166, 0.16767996549606323, -0.3741501271724701, -0.4167827367782593, -0.41914957761764526, -0.17610269784927368, 0.1557709127664566, -0.12762445211410522, 0.4238355755805969, -0.027194306254386902, 0.20401448011398315, -0.31492334604263306, -0.0030217356979846954, -0.35879653692245483, 0.3453438878059387, -0.31750527024269104, 0.08617496490478516, 0.08611258119344711, 0.16180403530597687, 0.008850336074829102, 0.3273945450782776, -0.07747561484575272, 0.24947844445705414, -0.5126641988754272, -0.26892367005348206, 0.4422732889652252, -0.6223297715187073, -0.20025983452796936, 0.06876706331968307, 0.08116359263658524, 0.1981106847524643, 0.0035746123176068068, -0.27756616473197937, -0.070460245013237, 0.16162104904651642, -0.17459356784820557, -0.2950670123100281, -0.1357095092535019, -0.2625439465045929, -0.2551771402359009, -0.07695801556110382, -0.3599269986152649, 0.1837785243988037, -0.045308854430913925, -0.22119127213954926, -0.23303252458572388 ]
https://github.com/huggingface/datasets/issues/369
can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries
I am able to reproduce this with the official SQuAD `train-v2.0.json` file downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/
Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB): ``` dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]}) ``` causes ``` Traceback (most recent call last): File "dataloader.py", line 9, in <module> ["./path/to/file.json"]}) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False): File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__ for obj in iterable: File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` I haven't been able to find any reports of this specific pyarrow error here or elsewhere.
16
can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB): ``` dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]}) ``` causes ``` Traceback (most recent call last): File "dataloader.py", line 9, in <module> ["./path/to/file.json"]}) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False): File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__ for obj in iterable: File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` I haven't been able to find any reports of this specific pyarrow error here or elsewhere. I am able to reproduce this with the official SQuAD `train-v2.0.json` file downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/
[ -0.224825918674469, 0.20798106491565704, 0.013098630122840405, 0.1377790868282318, 0.2781039774417877, -0.25971972942352295, 0.31692245602607727, 0.46876904368400574, -0.16914072632789612, -0.14901091158390045, 0.0023768460378050804, 0.4203422963619232, 0.0690721869468689, -0.01722787693142891, 0.11224013566970825, -0.14782069623470306, -0.20492494106292725, 0.2665916383266449, -0.0051437849178910255, -0.06588057428598404, 0.0004076320619788021, 0.24116121232509613, -0.1398991048336029, 0.263946533203125, -0.19671745598316193, -0.013389848172664642, 0.18712881207466125, 0.489185094833374, -0.25916334986686707, -0.5631480813026428, 0.31532227993011475, -0.296150803565979, 0.09546336531639099, 0.11060167849063873, -0.00011665558849927038, 0.36963656544685364, 0.18905577063560486, -0.016439160332083702, -0.3757404685020447, -0.3551531732082367, 0.24148862063884735, -0.4904559552669525, 0.4686807692050934, -0.11423683166503906, -0.07642488926649094, -0.3508143424987793, -0.22236187756061554, -0.07387356460094452, 0.4803353250026703, 0.11952251940965652, 0.15140487253665924, 0.4681631028652191, -0.18323881924152374, 0.1065225750207901, 0.1193087100982666, 0.12603281438350677, -0.16245675086975098, 0.4610099494457245, 0.3759773373603821, -0.3450172543525696, -0.3874123990535736, -0.14355961978435516, -0.10035432130098343, 0.32436177134513855, 0.1929454654455185, 0.009374932385981083, -0.0391240231692791, 0.12592586874961853, 0.12546147406101227, 0.17662334442138672, 0.3256266415119171, -0.3496556282043457, -0.06322550028562546, -0.07454421371221542, 0.06225258857011795, -0.029539089649915695, 0.1810937374830246, 0.32032859325408936, -0.34672126173973083, 0.12482358515262604, -0.3060503304004669, 0.19640551507472992, -0.10670458525419235, 0.30124786496162415, -0.19134390354156494, 0.3296274244785309, 0.06280549615621567, 0.2973684072494507, 0.10613816976547241, 0.14810511469841003, 0.16314052045345306, 0.21270984411239624, -0.03439023718237877, 0.21243253350257874, -0.2666904330253601, 0.22800859808921814, 0.10138718038797379, -0.17232035100460052, 0.2379254698753357, 0.10137296468019485, 0.2416791021823883, 0.04244782775640488, 0.21409572660923004, 0.2787175476551056, 0.3740181028842926, -0.014348090626299381, 0.14545121788978577, 0.07650139927864075, -0.017595011740922928, 0.027480246499180794, -0.1041611060500145, 0.12155283242464066, -0.19911915063858032, -0.3780231475830078, 0.03249988704919815, -0.19245709478855133, 0.27498793601989746, -0.1871325820684433, -0.2933083474636078, 0.0940951406955719, -0.4935634434223175, -0.06081162393093109, 0.12270765751600266, 0.2767897844314575, 0.21184682846069336, 0.22857338190078735, -0.10521122813224792, 0.21644385159015656, -0.09289570897817612, -0.1712166965007782, -0.2024863064289093, 0.0592297688126564, -0.31990888714790344, -0.15517625212669373, 0.40509748458862305, -0.24703505635261536, 0.24933962523937225, -0.013082609511911869, 0.18184947967529297, 0.00977905560284853, 0.17168602347373962, 0.025009330362081528, 0.21658305823802948, 0.17607693374156952, 0.01811055839061737, 0.09828450530767441, 0.17131583392620087, -0.23047509789466858, -0.35458070039749146, 0.32592692971229553, 0.02536073327064514, -0.32079964876174927, -0.3150312900543213, 0.09863746911287308, -0.15784047544002533, 0.0982585996389389, 0.17552170157432556, 0.054047610610723495, 0.10672836750745773, -0.1062399297952652, 0.09626486152410507, -0.11802607029676437, -0.07118990272283554, -0.2982013523578644, 0.382749080657959, 0.2899154722690582, -0.9532220959663391, -0.11767958849668503, 0.19751068949699402, -0.07246473431587219, 0.09692861884832382, 0.5727168321609497, -0.5708692669868469, 0.18338632583618164, -0.05601252242922783, 0.23903782665729523, 0.5799362063407898, -0.35368219017982483, -0.5187262296676636, 0.4949887692928314, -0.3832622170448303, -0.16501739621162415, -0.14250889420509338, -0.041300494223833084, -0.021062353625893593, 0.28267163038253784, 0.09454641491174698, 0.6836754679679871, -0.137724369764328, 0.18467506766319275, -0.3309655487537384, -0.1655491441488266, 0.23167626559734344, 0.45297762751579285, 0.0024093841202557087, -0.3553723990917206, 0.015315267257392406, 0.10481934249401093, 0.07430580258369446, -0.004173281602561474, 0.2683130204677582, 0.2235315442085266, -0.19146259129047394, -0.25161463022232056, 0.08032151311635971, -0.012601107358932495, -0.7056595683097839, 0.08932013064622879, -0.06401411443948746, -0.039981354027986526, -0.21934452652931213, 0.027673067525029182, -0.3893599212169647, 0.29254141449928284, -0.14461444318294525, -0.006223147734999657, 0.04182705283164978, -0.010541891679167747, 0.06708572059869766, -0.09036564826965332, -0.34029266238212585, -0.14903299510478973, 0.077471062541008, -0.0015938958385959268, 0.05144420638680458, 0.4117667078971863, -0.01296660490334034, -0.2781403064727783, 0.003356036962941289, 0.35500529408454895, -0.01732756569981575, -0.12722323834896088, -0.10794617235660553, 0.28357845544815063, -0.12930478155612946, 0.12034948915243149, -0.004044950008392334, -0.3351650536060333, 0.22039447724819183, -0.30956700444221497, 0.16773444414138794, -0.020529722794890404, -0.04473509266972542, -0.12870503962039948, -0.22015510499477386, 0.40326738357543945, -0.1909852921962738, 0.19561165571212769, -0.08545809984207153, -0.14809267222881317, 0.21472196280956268, -0.12402577698230743, -0.05863639712333679, 0.009711121208965778, 0.17843660712242126, 0.2656933665275574, 0.520702600479126, 0.2706749737262726, -0.24277593195438385, 0.08914373070001602, 0.3627488911151886, -0.0371224470436573, -0.04015740752220154, 0.04382894188165665, -0.2223277986049652, -0.12894676625728607, 0.10810695588588715, -0.10660640895366669, 0.18685993552207947, 0.18893003463745117, 0.07563231885433197, -0.13921545445919037, -0.2522176206111908, -0.2151118814945221, -0.03191468492150307, -0.043620459735393524, 0.13008497655391693, 0.40387430787086487, 0.44856420159339905, -0.13823430240154266, -0.41005516052246094, -0.07384475320577621, 0.23459146916866302, 0.24506965279579163, -0.24432305991649628, 0.03739314526319504, -0.3147736191749573, -0.0499383918941021, -0.17509248852729797, -0.4401915669441223, -0.26453420519828796, -0.19996783137321472, -0.055109601467847824, 0.2310740053653717, 0.013170390389859676, 0.137382373213768, -0.011633256450295448, 0.24568131566047668, 0.10087379068136215, -0.4298449456691742, -0.011996323242783546, -0.5101569890975952, -0.36952733993530273, 0.03282889351248741, 0.4673338532447815, 0.43856048583984375, 0.1786772906780243, 0.18146024644374847, -0.07011374831199646, 0.009079543873667717, -0.09918151050806046, 0.21156045794487, 0.030458839610219002, 0.17554253339767456, 0.0036328472197055817, 0.3344266712665558, -0.4671182930469513, -0.31139546632766724, 0.6026248931884766, -0.09136605262756348, -0.2721750736236572, 0.1993507444858551, -0.32507002353668213, -0.11247336119413376, -0.2069622427225113, -0.14989250898361206, -0.2904262840747833, -0.39145052433013916, 0.33656075596809387, -0.010899817571043968, 0.035600416362285614, -0.12894660234451294, 0.133844256401062, 0.2838370203971863, 0.09498471021652222, -0.21167320013046265, -0.03837507590651512, -0.4520309269428253, 0.2738112509250641, -0.11524268984794617, -0.26948249340057373, -0.07102798670530319, 0.04096473753452301, 0.2816607356071472, 0.06277536600828171, -0.3481171727180481, 0.0024612671695649624, 0.07311734557151794, 0.534430742263794, -0.19076457619667053, -0.1876470446586609, 0.36793074011802673, -0.0579305961728096, 0.022689344361424446, 0.07160292565822601, -0.2526074945926666, 0.18229028582572937, 0.04394988715648651, 0.03374076634645462, -0.17550459504127502, 0.41759827733039856, 0.1020742654800415, 0.923244297504425, -0.2643370032310486, -0.15056617558002472, 0.31552791595458984, -0.024691909551620483, 0.08685696125030518, -0.12689664959907532, -0.3084770441055298, 0.16493068635463715, 0.07749614864587784, -0.07690238952636719, 0.10230167955160141, 0.06037026643753052, -0.38451480865478516, -0.044914405792951584, -0.0214525256305933, -0.27463507652282715, -0.09941649436950684, 0.3585593104362488, 0.1034403070807457, -0.10839024186134338, -0.010701418854296207, -0.08026569336652756, -0.11796741932630539, -0.19185182452201843, -0.11345312744379044, 0.033391326665878296, -0.0317995510995388, 0.187759131193161, -0.4592277407646179, -0.11704082787036896, -0.08757635951042175, -0.0683353915810585, 0.3628217279911041, 0.3158780336380005, -0.014781915582716465, -0.18538641929626465, 0.34088659286499023, -0.30850523710250854, 0.5129213333129883, 0.2342294454574585, 0.19255946576595306, 0.2869608402252197, 0.07059402018785477, -0.6148577332496643, -0.15415215492248535, 0.12002409994602203, 0.41197219491004944, 0.4449238181114197, 0.32482725381851196, -0.10015203058719635, -0.31707683205604553, 0.12564986944198608, 0.1735461801290512, -0.0330999419093132, -0.20279237627983093, -0.3746907114982605, -0.30732282996177673, -0.4436318576335907, 0.08175478130578995, 0.023822609335184097, 0.24992050230503082, 0.421101838350296, -0.08072590082883835, 0.289345383644104, -0.10606550425291061, -0.27227333188056946, 0.24798214435577393, 0.1461411714553833, -0.0633544996380806, 0.0726814791560173, 0.24356254935264587, 0.3455856144428253, 0.09769060462713242, 0.6214661598205566, 0.18695375323295593, -0.09888286143541336, 0.14821521937847137, 0.23100128769874573, 0.3008665144443512, 0.29505518078804016, 0.17931434512138367, -0.05730462074279785, -0.11760693043470383, -0.016650628298521042, 0.16208533942699432, 0.178100124001503, 0.04014986753463745, -0.2675120532512665, 0.10960535705089569, 0.18654343485832214, 0.289185106754303, -0.2739396393299103, 0.16746583580970764, 0.5299270749092102, -0.052352793514728546, 0.06925426423549652, 0.40746718645095825, 0.11665794998407364, 0.7771909832954407, -0.2644691467285156, 0.1479295790195465, 0.5714970231056213, -0.2305465042591095, 0.31642869114875793, -0.27546215057373047, 0.005959395319223404, -0.5188855528831482, 0.2529403865337372, 0.08499037474393845, -0.23986105620861053, -0.009612618014216423, 0.30802857875823975, 0.09509150683879852, -0.1409418284893036, -0.10818440467119217, 0.345377653837204, -0.002621968276798725, 0.22074730694293976, 0.050850413739681244, -0.27143365144729614, -0.2926779091358185, 0.03534310311079025, -0.3116568922996521, -0.042967621237039566, -0.06491146981716156, -0.16191571950912476, -0.09690646082162857, -0.10017906129360199, -0.15647153556346893, 0.4074645936489105, -0.05567072331905365, 0.24109748005867004, 0.392850399017334, -0.4113490581512451, -0.0838274136185646, 0.047287240624427795, -0.022363077849149704, -0.18439888954162598, -0.18510998785495758, 0.245399609208107, 0.03516330569982529, -0.0871748998761177, -0.007609575055539608, 0.1267261952161789, 0.21115882694721222, -0.19058333337306976, -0.31528666615486145, -0.009710593149065971, -0.11076077818870544, -0.37738558650016785, 0.009841930121183395, 0.2698495388031006, 0.10937423259019852, -0.07063625007867813, -0.21267960965633392, -0.17997373640537262, 0.16430656611919403, 0.028387894853949547, 0.05987941473722458, -0.027028903365135193, 0.1562403291463852, -0.25327757000923157, 0.3292660415172577, -0.36074063181877136, 0.04626234620809555, 0.49632057547569275, -0.10143280029296875, 0.16405273973941803, 0.5222315788269043, 0.3958123028278351, -0.10784575343132019, -0.23447708785533905, -0.041782133281230927, 0.5676150321960449, -0.4813591539859772, -0.08085308969020844, -0.06544254720211029, -0.09233150631189346, 0.1245628073811531, 0.264717161655426, 0.330313503742218, 0.00910822581499815, -0.09378725290298462, -0.5132710337638855, -0.3523998558521271, 0.21944449841976166, -0.11409574002027512, -0.09980658441781998, 0.2764386236667633, 0.5523671507835388, 0.11982057243585587, 0.3457690179347992, -0.22479143738746643, 0.19646717607975006, -0.07673940062522888, 0.1733495444059372, -0.2937334477901459, -0.29498621821403503, 0.06170976161956787, -0.04911645129323006, 0.04363114386796951, 0.07558134943246841, -0.1114882081747055, -0.21604809165000916, -0.05425563454627991, 0.10995721817016602, 0.11589203774929047, -0.15387825667858124, -0.192421555519104, -0.14865419268608093, 0.033608920872211456, -0.03417665883898735, -0.01141273882240057, -0.031683821231126785, -0.06363251805305481, 0.009239173494279385, 0.1375737488269806, -0.04955931380391121, -0.14321641623973846, 0.023806262761354446, -0.025123434141278267, 0.05130914971232414, 0.043622300028800964, 0.247634619474411, 0.02796691283583641, -0.017281150445342064, -0.23150748014450073, 0.06548137962818146, 0.24108053743839264, 0.1861475110054016, 0.224275603890419, -0.2875196635723114, -0.13635122776031494, -0.17973557114601135, 0.181247279047966, 0.3907133936882019, -0.14776886999607086, -0.0057630883529782295, 0.01705608330667019, 0.1338837742805481, -0.15015770494937897, -0.15731841325759888, 0.2622712552547455, 0.05300327390432358, -0.016834959387779236, -0.010082816705107689, 0.1297941356897354, -0.20848707854747772, -0.08111771941184998, 0.1575099229812622, 0.39929071068763733, 0.040189482271671295, -0.4732252061367035, 0.3452998101711273, -0.20741137862205505, -0.16162730753421783, 0.15626101195812225, 0.08473936468362808, 0.3768478035926819, -0.04525948688387871, -0.10261479020118713, 0.12143911421298981, -0.1278773546218872, 0.2560073137283325, -0.0429033525288105, -0.4255730211734772, -0.11647333949804306, 0.24219170212745667, 0.15267285704612732, -0.310653418302536, 0.20702359080314636, 0.7946997284889221, 0.2270716279745102, -0.36699649691581726, 0.0756438672542572, 0.16399715840816498, -0.16514267027378082, 0.0323549285531044, -0.7381466031074524, -0.17389382421970367, -0.1725950390100479, 0.1801328808069229, -0.17728886008262634, -0.020124617964029312, 0.34509173035621643, 0.10262344032526016, -0.06901006400585175, -0.40739279985427856, 0.0018848390318453312, 0.10026627033948898, -0.32392799854278564, -0.2377600371837616, 0.40127336978912354, 0.1469527781009674, -0.15874750912189484, -0.03464815765619278, -0.12813039124011993, 0.3428950011730194, 0.2950406074523926, -0.3094577193260193, -0.16388149559497833, -0.0877762958407402, -0.1351439505815506, -0.2076941281557083, 0.11109655350446701, 0.14669276773929596, 0.10998432338237762, 0.3763887584209442, 0.13007387518882751, -0.12911193072795868, 0.09818023443222046, 0.18589121103286743, -0.12911391258239746, 0.08444094657897949, -0.09479110687971115, -0.00022272669593803585, -0.22818809747695923, -0.03613462299108505, -0.20551708340644836, -0.19762906432151794, -0.21897301077842712, 0.13185876607894897, 0.17305684089660645, 0.16357643902301788, -0.22636619210243225, 0.050287630409002304, 0.012758693657815456, 0.7020565271377563, 0.3510778248310089, 0.10766184329986572, -0.21429258584976196, -0.32356810569763184, -0.5967862010002136, 0.35620591044425964, -0.3159346878528595, 0.11464128643274307, 0.36483991146087646, 0.4121892750263214, 0.1482027918100357, 0.4271438419818878, -0.14369843900203705, 0.41206589341163635, -0.04026808962225914, -0.12031404674053192, -0.40844371914863586, -0.03165692090988159, 0.06768767535686493, -0.028870169073343277, -0.16150736808776855, -0.42229849100112915, 0.21626557409763336, -0.16092853248119354, 0.027339734137058258, -0.18581269681453705, -0.37275105714797974, 0.09867991507053375, 0.05453791096806526, 0.10939215123653412, -0.08713678270578384, 0.3187767267227173, 0.08580879122018814, 0.04065008834004402, -0.20399698615074158, -0.21249666810035706, -0.24772723019123077, 0.33657264709472656, 0.023068895563483238, 0.3301466703414917, -0.1964954435825348, 0.13636796176433563, -0.10941211134195328, 0.19717997312545776, -0.3385680615901947, 0.1788092702627182, 0.014905190095305443, -0.14951646327972412, -0.12818384170532227, 0.22498345375061035, -0.09454485028982162, 0.0897996574640274, 0.03975668549537659, 0.21635593473911285, -0.40168309211730957, -0.20319576561450958, 0.4354739189147949, -0.5085440874099731, -0.19872257113456726, 0.28570887446403503, -0.027096856385469437, 0.41258442401885986, -0.11640428006649017, -0.43139442801475525, -0.07544539123773575, 0.22398321330547333, -0.2346246838569641, -0.12034665048122406, 0.05637205019593239, -0.014573497697710991, 0.08309172838926315, -0.19230946898460388, -0.0018166309455409646, 0.08006297796964645, -0.2020297646522522, -0.26913565397262573, -0.35401472449302673 ]
https://github.com/huggingface/datasets/issues/369
can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries
I am facing this issue in transformers library 3.0.2 while reading a csv using datasets. Is this fixed in latest version? I updated the latest version 4.0.1 but still getting this error. What could cause this error?
Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB): ``` dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]}) ``` causes ``` Traceback (most recent call last): File "dataloader.py", line 9, in <module> ["./path/to/file.json"]}) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False): File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__ for obj in iterable: File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` I haven't been able to find any reports of this specific pyarrow error here or elsewhere.
37
can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB): ``` dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]}) ``` causes ``` Traceback (most recent call last): File "dataloader.py", line 9, in <module> ["./path/to/file.json"]}) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset save_infos=save_infos, File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False): File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__ for obj in iterable: File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` I haven't been able to find any reports of this specific pyarrow error here or elsewhere. I am facing this issue in transformers library 3.0.2 while reading a csv using datasets. Is this fixed in latest version? I updated the latest version 4.0.1 but still getting this error. What could cause this error?
[ -0.224825918674469, 0.20798106491565704, 0.013098630122840405, 0.1377790868282318, 0.2781039774417877, -0.25971972942352295, 0.31692245602607727, 0.46876904368400574, -0.16914072632789612, -0.14901091158390045, 0.0023768460378050804, 0.4203422963619232, 0.0690721869468689, -0.01722787693142891, 0.11224013566970825, -0.14782069623470306, -0.20492494106292725, 0.2665916383266449, -0.0051437849178910255, -0.06588057428598404, 0.0004076320619788021, 0.24116121232509613, -0.1398991048336029, 0.263946533203125, -0.19671745598316193, -0.013389848172664642, 0.18712881207466125, 0.489185094833374, -0.25916334986686707, -0.5631480813026428, 0.31532227993011475, -0.296150803565979, 0.09546336531639099, 0.11060167849063873, -0.00011665558849927038, 0.36963656544685364, 0.18905577063560486, -0.016439160332083702, -0.3757404685020447, -0.3551531732082367, 0.24148862063884735, -0.4904559552669525, 0.4686807692050934, -0.11423683166503906, -0.07642488926649094, -0.3508143424987793, -0.22236187756061554, -0.07387356460094452, 0.4803353250026703, 0.11952251940965652, 0.15140487253665924, 0.4681631028652191, -0.18323881924152374, 0.1065225750207901, 0.1193087100982666, 0.12603281438350677, -0.16245675086975098, 0.4610099494457245, 0.3759773373603821, -0.3450172543525696, -0.3874123990535736, -0.14355961978435516, -0.10035432130098343, 0.32436177134513855, 0.1929454654455185, 0.009374932385981083, -0.0391240231692791, 0.12592586874961853, 0.12546147406101227, 0.17662334442138672, 0.3256266415119171, -0.3496556282043457, -0.06322550028562546, -0.07454421371221542, 0.06225258857011795, -0.029539089649915695, 0.1810937374830246, 0.32032859325408936, -0.34672126173973083, 0.12482358515262604, -0.3060503304004669, 0.19640551507472992, -0.10670458525419235, 0.30124786496162415, -0.19134390354156494, 0.3296274244785309, 0.06280549615621567, 0.2973684072494507, 0.10613816976547241, 0.14810511469841003, 0.16314052045345306, 0.21270984411239624, -0.03439023718237877, 0.21243253350257874, -0.2666904330253601, 0.22800859808921814, 0.10138718038797379, -0.17232035100460052, 0.2379254698753357, 0.10137296468019485, 0.2416791021823883, 0.04244782775640488, 0.21409572660923004, 0.2787175476551056, 0.3740181028842926, -0.014348090626299381, 0.14545121788978577, 0.07650139927864075, -0.017595011740922928, 0.027480246499180794, -0.1041611060500145, 0.12155283242464066, -0.19911915063858032, -0.3780231475830078, 0.03249988704919815, -0.19245709478855133, 0.27498793601989746, -0.1871325820684433, -0.2933083474636078, 0.0940951406955719, -0.4935634434223175, -0.06081162393093109, 0.12270765751600266, 0.2767897844314575, 0.21184682846069336, 0.22857338190078735, -0.10521122813224792, 0.21644385159015656, -0.09289570897817612, -0.1712166965007782, -0.2024863064289093, 0.0592297688126564, -0.31990888714790344, -0.15517625212669373, 0.40509748458862305, -0.24703505635261536, 0.24933962523937225, -0.013082609511911869, 0.18184947967529297, 0.00977905560284853, 0.17168602347373962, 0.025009330362081528, 0.21658305823802948, 0.17607693374156952, 0.01811055839061737, 0.09828450530767441, 0.17131583392620087, -0.23047509789466858, -0.35458070039749146, 0.32592692971229553, 0.02536073327064514, -0.32079964876174927, -0.3150312900543213, 0.09863746911287308, -0.15784047544002533, 0.0982585996389389, 0.17552170157432556, 0.054047610610723495, 0.10672836750745773, -0.1062399297952652, 0.09626486152410507, -0.11802607029676437, -0.07118990272283554, -0.2982013523578644, 0.382749080657959, 0.2899154722690582, -0.9532220959663391, -0.11767958849668503, 0.19751068949699402, -0.07246473431587219, 0.09692861884832382, 0.5727168321609497, -0.5708692669868469, 0.18338632583618164, -0.05601252242922783, 0.23903782665729523, 0.5799362063407898, -0.35368219017982483, -0.5187262296676636, 0.4949887692928314, -0.3832622170448303, -0.16501739621162415, -0.14250889420509338, -0.041300494223833084, -0.021062353625893593, 0.28267163038253784, 0.09454641491174698, 0.6836754679679871, -0.137724369764328, 0.18467506766319275, -0.3309655487537384, -0.1655491441488266, 0.23167626559734344, 0.45297762751579285, 0.0024093841202557087, -0.3553723990917206, 0.015315267257392406, 0.10481934249401093, 0.07430580258369446, -0.004173281602561474, 0.2683130204677582, 0.2235315442085266, -0.19146259129047394, -0.25161463022232056, 0.08032151311635971, -0.012601107358932495, -0.7056595683097839, 0.08932013064622879, -0.06401411443948746, -0.039981354027986526, -0.21934452652931213, 0.027673067525029182, -0.3893599212169647, 0.29254141449928284, -0.14461444318294525, -0.006223147734999657, 0.04182705283164978, -0.010541891679167747, 0.06708572059869766, -0.09036564826965332, -0.34029266238212585, -0.14903299510478973, 0.077471062541008, -0.0015938958385959268, 0.05144420638680458, 0.4117667078971863, -0.01296660490334034, -0.2781403064727783, 0.003356036962941289, 0.35500529408454895, -0.01732756569981575, -0.12722323834896088, -0.10794617235660553, 0.28357845544815063, -0.12930478155612946, 0.12034948915243149, -0.004044950008392334, -0.3351650536060333, 0.22039447724819183, -0.30956700444221497, 0.16773444414138794, -0.020529722794890404, -0.04473509266972542, -0.12870503962039948, -0.22015510499477386, 0.40326738357543945, -0.1909852921962738, 0.19561165571212769, -0.08545809984207153, -0.14809267222881317, 0.21472196280956268, -0.12402577698230743, -0.05863639712333679, 0.009711121208965778, 0.17843660712242126, 0.2656933665275574, 0.520702600479126, 0.2706749737262726, -0.24277593195438385, 0.08914373070001602, 0.3627488911151886, -0.0371224470436573, -0.04015740752220154, 0.04382894188165665, -0.2223277986049652, -0.12894676625728607, 0.10810695588588715, -0.10660640895366669, 0.18685993552207947, 0.18893003463745117, 0.07563231885433197, -0.13921545445919037, -0.2522176206111908, -0.2151118814945221, -0.03191468492150307, -0.043620459735393524, 0.13008497655391693, 0.40387430787086487, 0.44856420159339905, -0.13823430240154266, -0.41005516052246094, -0.07384475320577621, 0.23459146916866302, 0.24506965279579163, -0.24432305991649628, 0.03739314526319504, -0.3147736191749573, -0.0499383918941021, -0.17509248852729797, -0.4401915669441223, -0.26453420519828796, -0.19996783137321472, -0.055109601467847824, 0.2310740053653717, 0.013170390389859676, 0.137382373213768, -0.011633256450295448, 0.24568131566047668, 0.10087379068136215, -0.4298449456691742, -0.011996323242783546, -0.5101569890975952, -0.36952733993530273, 0.03282889351248741, 0.4673338532447815, 0.43856048583984375, 0.1786772906780243, 0.18146024644374847, -0.07011374831199646, 0.009079543873667717, -0.09918151050806046, 0.21156045794487, 0.030458839610219002, 0.17554253339767456, 0.0036328472197055817, 0.3344266712665558, -0.4671182930469513, -0.31139546632766724, 0.6026248931884766, -0.09136605262756348, -0.2721750736236572, 0.1993507444858551, -0.32507002353668213, -0.11247336119413376, -0.2069622427225113, -0.14989250898361206, -0.2904262840747833, -0.39145052433013916, 0.33656075596809387, -0.010899817571043968, 0.035600416362285614, -0.12894660234451294, 0.133844256401062, 0.2838370203971863, 0.09498471021652222, -0.21167320013046265, -0.03837507590651512, -0.4520309269428253, 0.2738112509250641, -0.11524268984794617, -0.26948249340057373, -0.07102798670530319, 0.04096473753452301, 0.2816607356071472, 0.06277536600828171, -0.3481171727180481, 0.0024612671695649624, 0.07311734557151794, 0.534430742263794, -0.19076457619667053, -0.1876470446586609, 0.36793074011802673, -0.0579305961728096, 0.022689344361424446, 0.07160292565822601, -0.2526074945926666, 0.18229028582572937, 0.04394988715648651, 0.03374076634645462, -0.17550459504127502, 0.41759827733039856, 0.1020742654800415, 0.923244297504425, -0.2643370032310486, -0.15056617558002472, 0.31552791595458984, -0.024691909551620483, 0.08685696125030518, -0.12689664959907532, -0.3084770441055298, 0.16493068635463715, 0.07749614864587784, -0.07690238952636719, 0.10230167955160141, 0.06037026643753052, -0.38451480865478516, -0.044914405792951584, -0.0214525256305933, -0.27463507652282715, -0.09941649436950684, 0.3585593104362488, 0.1034403070807457, -0.10839024186134338, -0.010701418854296207, -0.08026569336652756, -0.11796741932630539, -0.19185182452201843, -0.11345312744379044, 0.033391326665878296, -0.0317995510995388, 0.187759131193161, -0.4592277407646179, -0.11704082787036896, -0.08757635951042175, -0.0683353915810585, 0.3628217279911041, 0.3158780336380005, -0.014781915582716465, -0.18538641929626465, 0.34088659286499023, -0.30850523710250854, 0.5129213333129883, 0.2342294454574585, 0.19255946576595306, 0.2869608402252197, 0.07059402018785477, -0.6148577332496643, -0.15415215492248535, 0.12002409994602203, 0.41197219491004944, 0.4449238181114197, 0.32482725381851196, -0.10015203058719635, -0.31707683205604553, 0.12564986944198608, 0.1735461801290512, -0.0330999419093132, -0.20279237627983093, -0.3746907114982605, -0.30732282996177673, -0.4436318576335907, 0.08175478130578995, 0.023822609335184097, 0.24992050230503082, 0.421101838350296, -0.08072590082883835, 0.289345383644104, -0.10606550425291061, -0.27227333188056946, 0.24798214435577393, 0.1461411714553833, -0.0633544996380806, 0.0726814791560173, 0.24356254935264587, 0.3455856144428253, 0.09769060462713242, 0.6214661598205566, 0.18695375323295593, -0.09888286143541336, 0.14821521937847137, 0.23100128769874573, 0.3008665144443512, 0.29505518078804016, 0.17931434512138367, -0.05730462074279785, -0.11760693043470383, -0.016650628298521042, 0.16208533942699432, 0.178100124001503, 0.04014986753463745, -0.2675120532512665, 0.10960535705089569, 0.18654343485832214, 0.289185106754303, -0.2739396393299103, 0.16746583580970764, 0.5299270749092102, -0.052352793514728546, 0.06925426423549652, 0.40746718645095825, 0.11665794998407364, 0.7771909832954407, -0.2644691467285156, 0.1479295790195465, 0.5714970231056213, -0.2305465042591095, 0.31642869114875793, -0.27546215057373047, 0.005959395319223404, -0.5188855528831482, 0.2529403865337372, 0.08499037474393845, -0.23986105620861053, -0.009612618014216423, 0.30802857875823975, 0.09509150683879852, -0.1409418284893036, -0.10818440467119217, 0.345377653837204, -0.002621968276798725, 0.22074730694293976, 0.050850413739681244, -0.27143365144729614, -0.2926779091358185, 0.03534310311079025, -0.3116568922996521, -0.042967621237039566, -0.06491146981716156, -0.16191571950912476, -0.09690646082162857, -0.10017906129360199, -0.15647153556346893, 0.4074645936489105, -0.05567072331905365, 0.24109748005867004, 0.392850399017334, -0.4113490581512451, -0.0838274136185646, 0.047287240624427795, -0.022363077849149704, -0.18439888954162598, -0.18510998785495758, 0.245399609208107, 0.03516330569982529, -0.0871748998761177, -0.007609575055539608, 0.1267261952161789, 0.21115882694721222, -0.19058333337306976, -0.31528666615486145, -0.009710593149065971, -0.11076077818870544, -0.37738558650016785, 0.009841930121183395, 0.2698495388031006, 0.10937423259019852, -0.07063625007867813, -0.21267960965633392, -0.17997373640537262, 0.16430656611919403, 0.028387894853949547, 0.05987941473722458, -0.027028903365135193, 0.1562403291463852, -0.25327757000923157, 0.3292660415172577, -0.36074063181877136, 0.04626234620809555, 0.49632057547569275, -0.10143280029296875, 0.16405273973941803, 0.5222315788269043, 0.3958123028278351, -0.10784575343132019, -0.23447708785533905, -0.041782133281230927, 0.5676150321960449, -0.4813591539859772, -0.08085308969020844, -0.06544254720211029, -0.09233150631189346, 0.1245628073811531, 0.264717161655426, 0.330313503742218, 0.00910822581499815, -0.09378725290298462, -0.5132710337638855, -0.3523998558521271, 0.21944449841976166, -0.11409574002027512, -0.09980658441781998, 0.2764386236667633, 0.5523671507835388, 0.11982057243585587, 0.3457690179347992, -0.22479143738746643, 0.19646717607975006, -0.07673940062522888, 0.1733495444059372, -0.2937334477901459, -0.29498621821403503, 0.06170976161956787, -0.04911645129323006, 0.04363114386796951, 0.07558134943246841, -0.1114882081747055, -0.21604809165000916, -0.05425563454627991, 0.10995721817016602, 0.11589203774929047, -0.15387825667858124, -0.192421555519104, -0.14865419268608093, 0.033608920872211456, -0.03417665883898735, -0.01141273882240057, -0.031683821231126785, -0.06363251805305481, 0.009239173494279385, 0.1375737488269806, -0.04955931380391121, -0.14321641623973846, 0.023806262761354446, -0.025123434141278267, 0.05130914971232414, 0.043622300028800964, 0.247634619474411, 0.02796691283583641, -0.017281150445342064, -0.23150748014450073, 0.06548137962818146, 0.24108053743839264, 0.1861475110054016, 0.224275603890419, -0.2875196635723114, -0.13635122776031494, -0.17973557114601135, 0.181247279047966, 0.3907133936882019, -0.14776886999607086, -0.0057630883529782295, 0.01705608330667019, 0.1338837742805481, -0.15015770494937897, -0.15731841325759888, 0.2622712552547455, 0.05300327390432358, -0.016834959387779236, -0.010082816705107689, 0.1297941356897354, -0.20848707854747772, -0.08111771941184998, 0.1575099229812622, 0.39929071068763733, 0.040189482271671295, -0.4732252061367035, 0.3452998101711273, -0.20741137862205505, -0.16162730753421783, 0.15626101195812225, 0.08473936468362808, 0.3768478035926819, -0.04525948688387871, -0.10261479020118713, 0.12143911421298981, -0.1278773546218872, 0.2560073137283325, -0.0429033525288105, -0.4255730211734772, -0.11647333949804306, 0.24219170212745667, 0.15267285704612732, -0.310653418302536, 0.20702359080314636, 0.7946997284889221, 0.2270716279745102, -0.36699649691581726, 0.0756438672542572, 0.16399715840816498, -0.16514267027378082, 0.0323549285531044, -0.7381466031074524, -0.17389382421970367, -0.1725950390100479, 0.1801328808069229, -0.17728886008262634, -0.020124617964029312, 0.34509173035621643, 0.10262344032526016, -0.06901006400585175, -0.40739279985427856, 0.0018848390318453312, 0.10026627033948898, -0.32392799854278564, -0.2377600371837616, 0.40127336978912354, 0.1469527781009674, -0.15874750912189484, -0.03464815765619278, -0.12813039124011993, 0.3428950011730194, 0.2950406074523926, -0.3094577193260193, -0.16388149559497833, -0.0877762958407402, -0.1351439505815506, -0.2076941281557083, 0.11109655350446701, 0.14669276773929596, 0.10998432338237762, 0.3763887584209442, 0.13007387518882751, -0.12911193072795868, 0.09818023443222046, 0.18589121103286743, -0.12911391258239746, 0.08444094657897949, -0.09479110687971115, -0.00022272669593803585, -0.22818809747695923, -0.03613462299108505, -0.20551708340644836, -0.19762906432151794, -0.21897301077842712, 0.13185876607894897, 0.17305684089660645, 0.16357643902301788, -0.22636619210243225, 0.050287630409002304, 0.012758693657815456, 0.7020565271377563, 0.3510778248310089, 0.10766184329986572, -0.21429258584976196, -0.32356810569763184, -0.5967862010002136, 0.35620591044425964, -0.3159346878528595, 0.11464128643274307, 0.36483991146087646, 0.4121892750263214, 0.1482027918100357, 0.4271438419818878, -0.14369843900203705, 0.41206589341163635, -0.04026808962225914, -0.12031404674053192, -0.40844371914863586, -0.03165692090988159, 0.06768767535686493, -0.028870169073343277, -0.16150736808776855, -0.42229849100112915, 0.21626557409763336, -0.16092853248119354, 0.027339734137058258, -0.18581269681453705, -0.37275105714797974, 0.09867991507053375, 0.05453791096806526, 0.10939215123653412, -0.08713678270578384, 0.3187767267227173, 0.08580879122018814, 0.04065008834004402, -0.20399698615074158, -0.21249666810035706, -0.24772723019123077, 0.33657264709472656, 0.023068895563483238, 0.3301466703414917, -0.1964954435825348, 0.13636796176433563, -0.10941211134195328, 0.19717997312545776, -0.3385680615901947, 0.1788092702627182, 0.014905190095305443, -0.14951646327972412, -0.12818384170532227, 0.22498345375061035, -0.09454485028982162, 0.0897996574640274, 0.03975668549537659, 0.21635593473911285, -0.40168309211730957, -0.20319576561450958, 0.4354739189147949, -0.5085440874099731, -0.19872257113456726, 0.28570887446403503, -0.027096856385469437, 0.41258442401885986, -0.11640428006649017, -0.43139442801475525, -0.07544539123773575, 0.22398321330547333, -0.2346246838569641, -0.12034665048122406, 0.05637205019593239, -0.014573497697710991, 0.08309172838926315, -0.19230946898460388, -0.0018166309455409646, 0.08006297796964645, -0.2020297646522522, -0.26913565397262573, -0.35401472449302673 ]
https://github.com/huggingface/datasets/issues/368
load_metric can't acquire lock anymore
I found that, in the same process (or the same interactive session), if I do import nlp m1 = nlp.load_metric('glue', 'mrpc') m2 = nlp.load_metric('glue', 'sst2') I will get the same error `ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id'`.
I can't load metric (glue) anymore after an error in a previous run. I even removed the whole cache folder `/home/XXX/.cache/huggingface/`, and the issue persisted. What are the steps to fix this? Traceback (most recent call last): File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 101, in __init__ self.filelock.acquire(timeout=1) File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/filelock.py", line 278, in acquire raise Timeout(self._lock_file) filelock.Timeout: The file lock '/home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock' could not be acquired. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "examples_huggingface_nlp.py", line 268, in <module> main() File "examples_huggingface_nlp.py", line 242, in main dataset, metric = get_dataset_metric(glue_task) File "examples_huggingface_nlp.py", line 77, in get_dataset_metric metric = nlp.load_metric('glue', glue_config, experiment_id=1) File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/load.py", line 440, in load_metric **metric_init_kwargs, File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 104, in __init__ "Cannot acquire lock, caching file might be used by another process, " ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id' for this run. I0709 15:54:41.008838 139854118430464 filelock.py:318] Lock 139852058030936 released on /home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock
49
load_metric can't acquire lock anymore I can't load metric (glue) anymore after an error in a previous run. I even removed the whole cache folder `/home/XXX/.cache/huggingface/`, and the issue persisted. What are the steps to fix this? Traceback (most recent call last): File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 101, in __init__ self.filelock.acquire(timeout=1) File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/filelock.py", line 278, in acquire raise Timeout(self._lock_file) filelock.Timeout: The file lock '/home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock' could not be acquired. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "examples_huggingface_nlp.py", line 268, in <module> main() File "examples_huggingface_nlp.py", line 242, in main dataset, metric = get_dataset_metric(glue_task) File "examples_huggingface_nlp.py", line 77, in get_dataset_metric metric = nlp.load_metric('glue', glue_config, experiment_id=1) File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/load.py", line 440, in load_metric **metric_init_kwargs, File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 104, in __init__ "Cannot acquire lock, caching file might be used by another process, " ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id' for this run. I0709 15:54:41.008838 139854118430464 filelock.py:318] Lock 139852058030936 released on /home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock I found that, in the same process (or the same interactive session), if I do import nlp m1 = nlp.load_metric('glue', 'mrpc') m2 = nlp.load_metric('glue', 'sst2') I will get the same error `ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id'`.
[ 0.038706980645656586, -0.11587469279766083, 0.07235052436590195, 0.3124670386314392, 0.32045820355415344, 0.029448270797729492, 0.09009470045566559, 0.07020595669746399, 0.50235915184021, -0.07859198749065399, -0.1850663721561432, 0.03060733526945114, -0.048066139221191406, -0.26145073771476746, -0.031660646200180054, -0.19438767433166504, -0.20079965889453888, -0.0895170122385025, -0.09162941575050354, 0.12280377000570297, -0.20724813640117645, 0.39855459332466125, -0.17513640224933624, -0.14073459804058075, -0.35558074712753296, -0.17093758285045624, -0.08941511809825897, 0.3625310957431793, -0.09417591989040375, -0.46393558382987976, 0.15803620219230652, 0.036000240594148636, 0.06577283889055252, 0.0958731472492218, -0.00012539878662209958, 0.009709308855235577, 0.43288755416870117, 0.020783694460988045, 0.015818271785974503, -0.27422672510147095, -0.04720814898610115, -0.5386419892311096, 0.23131275177001953, -0.038115061819553375, 0.05535297095775604, 0.1542782187461853, 0.012848446145653725, -0.37357640266418457, 0.3929036557674408, 0.23029735684394836, 0.1177399680018425, 0.4218794107437134, 0.24505212903022766, -0.3009929358959198, -0.22830399870872498, -0.5178456902503967, 0.12268784642219543, 0.9323647022247314, 0.19839216768741608, -0.43403592705726624, -0.1681251972913742, 0.1428890973329544, -0.030659373849630356, 0.1357385665178299, 0.4364429712295532, -0.10171247273683548, 0.36280184984207153, -0.11461729556322098, -0.026829948648810387, 0.008282486349344254, 0.033586811274290085, -0.11310805380344391, -0.2663024663925171, -0.1967042088508606, 0.3940863013267517, -0.3095433712005615, 0.3262714147567749, -0.20710398256778717, 0.11073394864797592, 0.06145413592457771, 0.022858845070004463, -0.3017473816871643, 0.031133757904171944, 0.11034798622131348, -0.07048705965280533, 0.13144581019878387, -0.03045623190701008, 0.10596074163913727, 0.4824414551258087, 0.11586444824934006, -0.13433578610420227, 0.46464160084724426, -0.2977825403213501, 0.2525928020477295, -0.22304509580135345, 0.3128055930137634, 0.02152940072119236, 0.48380497097969055, 0.07956545054912567, 0.047243062406778336, 0.0058017815463244915, 0.01688232831656933, 0.3405638635158539, 0.14785794913768768, -0.03656566143035889, 0.5148499011993408, 0.4060499966144562, -0.08032120764255524, 0.1938297599554062, 0.27294495701789856, 0.00788741372525692, -0.020290546119213104, -0.045051585882902145, -0.33635058999061584, 0.1489804983139038, 0.1632087379693985, 0.04522237554192543, -0.08892036974430084, 0.01548812072724104, 0.025928691029548645, 0.08706547319889069, -0.1591019332408905, 0.15204131603240967, 0.16087397933006287, -0.027613775804638863, 0.29532578587532043, 0.10745007544755936, 0.2743981182575226, -0.010698318481445312, -0.15473002195358276, -0.19289527833461761, 0.31853005290031433, -0.32654184103012085, 0.275377094745636, 0.26089510321617126, -0.2996114194393158, 0.35503217577934265, 0.08811381459236145, 0.08849996328353882, -0.4025244116783142, -0.06977999955415726, 0.04757887125015259, -0.2875434160232544, 0.21502934396266937, -0.14250095188617706, 0.0949406698346138, 0.1955341249704361, -0.29128825664520264, -0.011083416640758514, -0.3652178943157196, -0.4574071168899536, -0.3263041079044342, -0.05111784487962723, 0.012352402321994305, -0.40498608350753784, 0.05977650359272957, 0.0596662238240242, 0.14302469789981842, 0.026786770671606064, 0.021842624992132187, -0.03017243929207325, -0.10873919725418091, -0.15208759903907776, -0.20625606179237366, 0.2813640832901001, 0.5562857985496521, 0.09762062877416611, -0.3056703507900238, -0.1878909468650818, -0.10799174755811691, -0.1382281631231308, 0.23493191599845886, 0.045894309878349304, 0.09709474444389343, -0.22420650720596313, 0.08440811932086945, 0.2618551254272461, -0.7882761359214783, -0.6193393468856812, -0.00956727098673582, -0.16185809671878815, -0.04468204081058502, 0.05488621070981026, 0.08881914615631104, 0.11809218674898148, 0.09939820319414139, 0.33302950859069824, 0.0924299880862236, 0.09433713555335999, -0.4169379770755768, -0.21936993300914764, 0.005256496369838715, 0.07153463363647461, 0.077973872423172, 0.28524452447891235, 0.2650143802165985, 0.18155814707279205, 0.3520877957344055, 0.023122023791074753, 0.39388883113861084, -0.22763888537883759, 0.4092958867549896, -0.05563449487090111, -0.22204656898975372, 0.08672315627336502, -0.1873001754283905, -0.35396742820739746, 0.45857250690460205, -0.5009275078773499, -0.056131429970264435, 0.03236205130815506, 0.07080506533384323, -0.4591320753097534, 0.030920475721359253, 0.11429387331008911, -0.03225720673799515, 0.030795425176620483, 0.045482851564884186, 0.025971194729208946, 0.06012270227074623, -0.10537498444318771, 0.510459840297699, -0.03190663456916809, 0.20454208552837372, -0.28584176301956177, -0.09222497045993805, 0.09688154608011246, -0.059650618582963943, -0.007458333857357502, 0.31054237484931946, 0.4948723018169403, -0.05913032963871956, 0.046971775591373444, 0.5281554460525513, 0.05105153098702431, 0.26001983880996704, -0.011912395246326923, -0.014790333807468414, 0.26648852229118347, 0.013435953296720982, -0.011577886529266834, -0.5587471723556519, -0.061424970626831055, -0.06191711127758026, 0.3316040337085724, 0.07984743267297745, 0.19301825761795044, 0.10276816785335541, -0.1634514033794403, 0.19388847053050995, 0.046291761100292206, -0.21899962425231934, -0.197861447930336, -0.2039312720298767, 0.516185998916626, -0.12915374338626862, 0.07388696819543839, 0.01570254936814308, 0.23416945338249207, -0.05999024957418442, 0.26436859369277954, 0.09042904525995255, 0.17639541625976562, -0.114352747797966, -0.17479367554187775, -0.08786656707525253, -0.25057417154312134, 0.3127424716949463, 0.3478251099586487, -0.040870897471904755, 0.09777935594320297, 0.10519491136074066, 0.030446304008364677, -0.12657402455806732, 0.01440265029668808, 0.07624181360006332, -0.021721111610531807, 0.36865469813346863, 0.19440193474292755, 0.09898766130208969, -0.03848830610513687, 0.1585071086883545, 0.1161005049943924, 0.21835489571094513, -0.2039138525724411, 0.009838473051786423, -0.3964012563228607, 0.010286049917340279, 0.22885991632938385, -0.003913619555532932, -0.48214808106422424, -0.4297885000705719, -0.07503841072320938, 0.18879914283752441, 0.32233041524887085, 0.060957785695791245, 0.17922936379909515, 0.22903922200202942, -0.19215983152389526, 0.24149321019649506, -0.1553555727005005, -0.4484230875968933, -0.0379551462829113, -0.16159529983997345, 0.14373615384101868, -0.0956687405705452, 0.11457502841949463, -0.12489233165979385, -0.17337346076965332, -0.1402740627527237, -0.2574288845062256, 0.023972121998667717, 0.08430174738168716, 0.7145808935165405, 0.2129422426223755, 0.008895007893443108, -0.00106614304240793, 0.12307427823543549, 0.35466182231903076, -0.12755368649959564, 0.05241863802075386, 0.2911882698535919, -0.3696335256099701, 0.1463901847600937, -0.26851698756217957, 0.16161465644836426, -0.5034716129302979, -0.4056679308414459, 0.29106855392456055, -0.1105198860168457, -0.22164589166641235, 0.11726940423250198, -0.27922725677490234, 0.3122064769268036, -0.27268198132514954, 0.12514910101890564, -0.2774210274219513, -0.19233077764511108, 0.21033982932567596, 0.004334022756665945, -0.09001985192298889, -0.24961821734905243, 0.10208232700824738, 0.18237902224063873, -0.13991379737854004, -0.39264264702796936, -0.7514959573745728, -0.1141085997223854, 0.09870532900094986, -0.24744912981987, -0.11255314201116562, 0.14397478103637695, -0.3512944281101227, 0.04142078384757042, -0.13493795692920685, -0.002684952924028039, 0.10423745959997177, 0.07578566670417786, 0.20128341019153595, 0.06577305495738983, 0.22179017961025238, 0.16611984372138977, 0.5310276746749878, -0.04429664835333824, -0.10216241329908371, 0.34652048349380493, 0.059561166912317276, 0.47674453258514404, 0.19271411001682281, -0.38906559348106384, -0.19300533831119537, 0.1417025327682495, 0.24698972702026367, -0.2544844150543213, 0.03484052047133446, 0.24232107400894165, -0.1883636862039566, -0.314164936542511, -0.22127199172973633, -0.0936354398727417, -0.10360614955425262, -0.11230762302875519, 0.16383564472198486, 0.14029258489608765, 0.2603779733181, -0.1485799103975296, -0.07927105575799942, 0.277148962020874, 0.3417011499404907, 0.03674478456377983, 0.16057413816452026, 0.054589636623859406, -0.19540587067604065, -0.4282640516757965, 0.3973340690135956, -0.004979798570275307, 0.5216323733329773, -0.2394578903913498, 0.05943344160914421, 0.10460017621517181, -0.10415007919073105, 0.5359889268875122, 0.09700743854045868, 0.1271163523197174, 0.17980161309242249, 0.03826168179512024, -0.31574949622154236, -0.030422665178775787, 0.029938559979200363, 0.1489216685295105, 0.49487394094467163, 0.7226877808570862, -0.26600009202957153, -0.11925691366195679, -0.2603634297847748, 0.1650894582271576, -0.3048897087574005, -0.20248174667358398, -0.2063506543636322, -0.3236881196498871, -0.17101511359214783, 0.012342246249318123, -0.11533674597740173, 0.33781301975250244, 0.4723196029663086, 0.21611323952674866, -0.1360190212726593, -0.4786417484283447, -0.04078586399555206, -0.07279503345489502, 0.41265159845352173, -0.08692976087331772, 0.0880516767501831, 0.4231218695640564, -0.14878715574741364, -0.2982715666294098, 0.18774642050266266, -0.11369363963603973, 0.12133097648620605, 0.23337335884571075, 0.17376846075057983, 0.105390265583992, 0.42534929513931274, -0.15975485742092133, 0.22598102688789368, 0.12646575272083282, 0.09557417035102844, -0.09797412902116776, -0.03150583431124687, 0.12030913680791855, -0.023831158876419067, 0.029559889808297157, 0.2193058580160141, 0.3600984811782837, 0.20235033333301544, -0.1878732591867447, 0.418086975812912, -0.043118830770254135, -0.035070158541202545, -0.09727834910154343, -0.10008730739355087, 0.8022155165672302, -0.1595780849456787, -0.2619308531284332, 0.029874475672841072, -0.14579902589321136, 0.6428800225257874, -0.10421010106801987, 0.17611120641231537, -0.07429278641939163, -0.39324554800987244, 0.04417945817112923, -0.21753093600273132, 0.06575895100831985, -0.41211608052253723, 0.051431331783533096, 0.2708452343940735, -0.43693605065345764, -0.03356156498193741, -0.06508803367614746, 0.18368962407112122, -0.6214593052864075, 0.05313287302851677, 0.03012954257428646, 0.04013805463910103, -0.312349796295166, 0.3805072605609894, -0.2036484181880951, -0.055062949657440186, 0.2770388722419739, -0.055384326726198196, -0.39947858452796936, -0.065404511988163, -0.2844851016998291, 0.07089035212993622, 0.23908619582653046, -0.07043909281492233, -0.17595316469669342, -0.061056531965732574, 0.31433534622192383, 0.13980470597743988, -0.29943349957466125, 0.34381431341171265, -0.09171333909034729, -0.2954321801662445, -0.0030776159837841988, 0.2781411409378052, 0.11662055552005768, 0.002935863332822919, -0.09253254532814026, 0.046367205679416656, -0.17334680259227753, -0.11075367033481598, -0.11448647826910019, 0.1817106008529663, 0.05339088290929794, 0.3183448016643524, -0.14332522451877594, -0.019132081419229507, 0.23422613739967346, -0.14942516386508942, 0.025310425087809563, 0.2552126348018646, -0.004086696542799473, -0.10483703017234802, -0.2064366340637207, -0.2550046741962433, 0.16374599933624268, 0.5607221722602844, -0.058192797005176544, -0.5073875188827515, 0.216506689786911, 0.01646304875612259, -0.06396203488111496, -0.10163471102714539, -0.34678685665130615, -0.16905924677848816, -0.42059236764907837, 0.24293410778045654, 0.15471847355365753, -0.019313836470246315, 0.004005241207778454, -0.1858242154121399, 0.48433464765548706, -0.28308409452438354, -0.0019898624159395695, -0.7558659911155701, -0.2973373830318451, 0.2834344506263733, -0.2853279709815979, -0.013660239055752754, -0.11488824337720871, 0.04717658460140228, -0.21041755378246307, 0.4024430513381958, -0.1725856065750122, 0.18298915028572083, -0.28716006875038147, -0.245150625705719, 0.5845175385475159, -0.06546610593795776, 0.16766652464866638, -0.047593966126441956, 0.0198074821382761, 0.4047594964504242, -0.1240418404340744, -0.04975844919681549, -0.197387233376503, 0.17970222234725952, -0.0850154310464859, 0.14076775312423706, 0.018372084945440292, -0.27614322304725647, 0.24591481685638428, 0.08954906463623047, -0.08117830753326416, 0.20467880368232727, 0.06132929027080536, 0.03840501978993416, 0.042619768530130386, 0.5235898494720459, 0.25016340613365173, 0.2672938406467438, 0.009063946083188057, -0.0032572117634117603, 0.0062506613321602345, 0.07920509576797485, -0.059647537767887115, 0.18289831280708313, -0.46566659212112427, -0.13772323727607727, -0.09740830957889557, -0.13614003360271454, 0.15596815943717957, 0.1431015133857727, -0.10165367275476456, 0.019039729610085487, 0.12524299323558807, -0.12168245762586594, 0.06669782102108002, 0.034236546605825424, -0.030002163723111153, 0.08695437014102936, -0.24675968289375305, -0.06682098656892776, -0.08705231547355652, 0.3180520236492157, -0.1310957670211792, 0.07351995259523392, 0.3424261808395386, -0.09613005816936493, 0.14328190684318542, 0.11181189119815826, 0.49705249071121216, 0.007596790324896574, 0.020559459924697876, -0.20673061907291412, 0.1344553381204605, -0.2691759169101715, 0.4959378242492676, -0.04285822808742523, 0.116644486784935, -0.03673866391181946, -0.3253386616706848, 0.1450219601392746, -0.3323921263217926, 0.2503061890602112, -0.04082367196679115, -0.3007704019546509, -0.10084512829780579, 0.26486343145370483, 0.22093574702739716, 0.11860628426074982, -0.46270883083343506, 0.6910851001739502, -0.26423704624176025, -0.30849871039390564, -0.04292921721935272, 0.3635575473308563, -0.06447354704141617, -0.09538581222295761, -0.006922456901520491, -0.24877497553825378, -0.14313234388828278, -0.02255803346633911, 0.1849188506603241, 0.08537349849939346, 0.40138816833496094, 0.19926230609416962, -0.18337547779083252, -0.3830606937408447, -0.48497235774993896, 0.3002408444881439, 0.17778100073337555, -0.1937883049249649, 0.3580459654331207, 0.11350414156913757, -0.023285461589694023, 0.18536673486232758, 0.26418641209602356, 0.3333713710308075, 0.10518373548984528, -0.15066330134868622, 0.09534505009651184, -0.01131539884954691, 0.010702005587518215, -0.15751664340496063, 0.513389527797699, 0.3697795569896698, -0.31365397572517395, -0.03512556105852127, 0.04042499139904976, -0.17909054458141327, 0.21191520988941193, -0.05497165396809578, 0.28518250584602356, -0.09778391569852829, 0.5591538548469543, -0.06579389423131943, 0.018674539402127266, -0.1547774374485016, 0.13212630152702332, -0.33619409799575806, -0.04342123866081238, -0.005851334892213345, 0.1318589746952057, 0.004986313637346029, -0.3068121075630188, 0.04117964580655098, 0.055217720568180084, 0.21140030026435852, 0.504539966583252, 0.11837982386350632, -0.4218708574771881, -0.13345040380954742, -0.7453033924102783, 0.1134839728474617, -0.022257650271058083, 0.09246987104415894, 0.26346197724342346, -0.10802796483039856, -0.1685676872730255, -0.04610303416848183, 0.24527744948863983, 0.3517729938030243, 0.16475063562393188, -0.4546453058719635, -0.4675470292568207, 0.1131402924656868, 0.06783531606197357, -0.268463671207428, 0.06928933411836624, -0.04640709608793259, -0.01914619468152523, -0.38078179955482483, -0.037448130548000336, -0.04359167441725731, -0.3628314435482025, 0.1442723423242569, 0.5466163158416748, 0.254339337348938, 0.12036964297294617, 0.21887332201004028, 0.09137779474258423, -0.04228013753890991, -0.36980703473091125, -0.4085541069507599, 0.10358651727437973, -0.33509561419487, -0.03801242262125015, 0.068353071808815, -0.3688529133796692, -0.15747645497322083, -0.2832654118537903, 0.5227212905883789, -0.208923801779747, -0.07235056161880493, -0.4062177240848541, 0.09330766648054123, -0.11097773909568787, 0.06748414039611816, 0.2345816045999527, 0.48686355352401733, 0.2205924242734909, 0.3542436361312866, -0.2795717418193817, -0.07746101170778275, 0.5171990394592285, -0.47381383180618286, -0.1686316728591919, 0.2175588756799698, 0.3969510793685913, 0.17397582530975342, -0.03741711005568504, -0.459383100271225, -0.11884698271751404, 0.2529205083847046, 0.08139818161725998, -0.18389274179935455, 0.25944286584854126, -0.28255531191825867, -0.008929471485316753, 0.0027261648792773485, -0.3539848029613495, 0.3217029869556427, -0.21655231714248657, -0.00817467737942934, 0.12528185546398163 ]
https://github.com/huggingface/datasets/issues/365
How to augment data ?
Using batched map is probably the easiest way at the moment. What kind of augmentation would you like to do ?
Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ```
21
How to augment data ? Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ``` Using batched map is probably the easiest way at the moment. What kind of augmentation would you like to do ?
[ -0.007610860280692577, -0.07861106097698212, -0.3029458522796631, -0.09332069009542465, 0.074711374938488, 0.2788422703742981, -0.10457959771156311, 0.28144046664237976, 0.12231379747390747, 0.11616402864456177, -0.1224745586514473, 0.05612003058195114, -0.0021824899595230818, 0.16593289375305176, 0.16157642006874084, -0.16140830516815186, 0.1548462212085724, 0.14454716444015503, -0.14705690741539001, 0.16119924187660217, -0.10495645552873611, -0.46874943375587463, 0.00240179686807096, -0.5504875779151917, -0.11397886276245117, -0.10558295994997025, -0.2983655035495758, -0.1648695170879364, 0.04549263417720795, -0.3779051601886749, -0.22314807772636414, 0.08207739144563675, 0.11516964435577393, 0.24214521050453186, -0.00009984110511140898, -0.20893926918506622, 0.16463282704353333, 0.08921261876821518, -0.31073862314224243, 0.47217029333114624, 0.1105206236243248, -0.8047289252281189, -0.01862156018614769, -0.07868300378322601, -0.08345610648393631, -0.4446457028388977, 0.0461450070142746, -0.06365295499563217, 0.33880990743637085, -0.17676803469657898, 0.267683207988739, -0.009813567623496056, 0.37439197301864624, 0.011766063049435616, 0.13480739295482635, 0.3799755871295929, 0.16158898174762726, 0.08626336604356766, 0.7172880172729492, 0.14366641640663147, 0.33651360869407654, 0.1444835215806961, -0.13155314326286316, -0.09737354516983032, 0.23572920262813568, 0.012226421386003494, 0.1705208420753479, -0.39900651574134827, -0.015450447797775269, 0.1021067202091217, 0.38207775354385376, 0.244723841547966, -0.5512050986289978, -0.3171163499355316, 0.215493306517601, -0.094185009598732, -0.37019386887550354, -0.10952186584472656, 0.15499082207679749, -0.019962165504693985, -0.22887352108955383, -0.24095815420150757, -0.08378033339977264, 0.3638654947280884, 0.052917852997779846, 0.4135730266571045, 0.0324130617082119, -0.022188177332282066, -0.12715913355350494, -0.27929234504699707, -0.17286862432956696, 0.19481146335601807, -0.1550072878599167, 0.47233960032463074, -0.11610765010118484, -0.1414957493543625, -0.2426728904247284, -0.21899524331092834, 0.07745213061571121, 0.10739348083734512, 0.17698197066783905, 0.178008034825325, -0.18558822572231293, 0.11880937963724136, 0.16725663840770721, -0.30079591274261475, -0.05793894827365875, 0.15136191248893738, 0.010030829347670078, -0.13589632511138916, 0.2673923075199127, -0.06510987132787704, -0.10418987274169922, -0.15969686210155487, 0.03842843323945999, -0.10403303802013397, -0.12271104007959366, 0.005856282077729702, -0.012569434009492397, 0.011950146406888962, -0.2453555017709732, 0.12064232677221298, -0.0216623917222023, 0.06262228637933731, -0.23905853927135468, 0.07452219724655151, -0.19069570302963257, 0.2592642307281494, 0.27070990204811096, -0.20501290261745453, -0.11404280364513397, 0.1182827278971672, -0.07169177383184433, -0.1564166396856308, 0.23779380321502686, 0.11739275604486465, 0.24706918001174927, 0.02705480344593525, 0.09193208068609238, -0.036213722079992294, 0.08321796357631683, 0.010412454605102539, 0.3068695664405823, 0.20465803146362305, 0.14088602364063263, 0.055403850972652435, -0.18510031700134277, 0.1971401870250702, -0.012721982784569263, 0.08888077735900879, -0.3098223805427551, -0.005387578625231981, -0.37952619791030884, 0.2868725061416626, 0.0608544647693634, -0.19461145997047424, -0.14097285270690918, 0.36553165316581726, 0.11836516857147217, -0.25844496488571167, 0.06424456089735031, 0.09398912638425827, 0.10481591522693634, -0.37674057483673096, 0.4527573585510254, 0.03828281909227371, -0.38223764300346375, 0.0499950535595417, -0.14355288445949554, 0.3040351867675781, 0.1318432241678238, 0.03930091857910156, -0.03033991903066635, 0.14478440582752228, -0.12845180928707123, -0.12122572958469391, 0.28406816720962524, -0.16092631220817566, -0.3332788944244385, -0.014059605076909065, 0.1716778576374054, 0.13811561465263367, -0.15046121180057526, 0.3285779356956482, 0.2457563430070877, -0.04757353663444519, 0.18894340097904205, 0.38338223099708557, -0.14811067283153534, -0.16542914509773254, -0.09013761579990387, -0.10939954966306686, 0.3156546354293823, 0.1865178942680359, -0.06189166009426117, -0.13376271724700928, 0.2854759693145752, -0.4683997333049774, 0.15137030184268951, -0.15752477943897247, 0.3186343014240265, 0.1901429146528244, 0.18816044926643372, 0.3953309953212738, -0.061469245702028275, -0.18123649060726166, -0.17265579104423523, -0.01478596217930317, -0.13616007566452026, -0.14817357063293457, 0.14384575188159943, -0.1893928349018097, -0.04419344291090965, -0.1230907142162323, 0.1288396567106247, -0.3399837911128998, 0.2959398627281189, -0.176856130361557, 0.044228050857782364, -0.48810651898384094, -0.003710854798555374, -0.13841292262077332, 0.21120047569274902, 0.07916077226400375, -0.20012761652469635, 0.0091778002679348, 0.269851416349411, -0.3361877501010895, -0.22224627435207367, 0.3350796699523926, -0.10251688212156296, -0.14546366035938263, 0.10969426482915878, 0.27881309390068054, 0.0695464164018631, 0.21028654277324677, 0.2375258058309555, 0.2521239221096039, 0.0980791375041008, 0.11307979375123978, 0.2049979269504547, 0.28046292066574097, 0.007360945455729961, -0.14364296197891235, -0.09690558165311813, 0.22990228235721588, 0.08961944282054901, 0.10535626113414764, -0.254594624042511, 0.2065228968858719, 0.26542744040489197, 0.04098864272236824, -0.09185699373483658, -0.03532656282186508, -0.20365042984485626, -0.012481714598834515, 0.27847856283187866, -0.27594131231307983, -0.13483287394046783, 0.030857371166348457, -0.47511497139930725, -0.1810443252325058, -0.13171115517616272, -0.1759995073080063, -0.45883461833000183, -0.18531639873981476, 0.11805626004934311, -0.055809471756219864, -0.179898202419281, 0.40244367718696594, 0.18571341037750244, -0.041879378259181976, 0.2552904486656189, 0.15304294228553772, 0.014546160586178303, 0.11354679614305496, -0.04315358027815819, -0.04879263788461685, 0.3766636550426483, 0.2131996750831604, 0.15166136622428894, 0.06455184519290924, 0.005359268747270107, 0.17156369984149933, -0.09349200874567032, -0.21211688220500946, -0.0636441633105278, -0.18953415751457214, 0.03928234055638313, -0.610468864440918, -0.2298271656036377, -0.36918938159942627, -0.08151409029960632, 0.25271841883659363, -0.24119791388511658, 0.010908560827374458, 0.17691552639007568, 0.10153600573539734, 0.05148880183696747, -0.2087121456861496, 0.0035753236152231693, 0.28888460993766785, 0.0025715455412864685, 0.24556955695152283, -0.04153744876384735, 0.058317042887210846, 0.5223014950752258, 0.15865284204483032, 0.21974416077136993, -0.1253729909658432, -0.5068555474281311, -0.2053864747285843, 0.07321542501449585, 0.21203863620758057, 0.19393198192119598, -0.010206633247435093, -0.08458160609006882, -0.16739743947982788, -0.09733070433139801, -0.11134257912635803, 0.11616961658000946, -0.11312349885702133, -0.14615662395954132, -0.03876234591007233, -0.24437400698661804, 0.16335812211036682, -0.40325501561164856, -0.1918661743402481, 0.10395356267690659, 0.20027288794517517, 0.044359054416418076, -0.2269435077905655, 0.24837584793567657, -0.03575737029314041, 0.11182092130184174, -0.038911543786525726, -0.16805659234523773, -0.24060195684432983, 0.5701761245727539, -0.2656954824924469, 0.0013293798547238111, -0.05522064492106438, -0.30445197224617004, 0.14069297909736633, 0.1969471424818039, -0.040401291102170944, -0.2016652673482895, -0.09545011073350906, 0.022021658718585968, -0.20210015773773193, 0.18351611495018005, 0.11469826847314835, -0.13911788165569305, -0.1791113317012787, 0.05822249501943588, -0.012134839780628681, -0.02022469975054264, 0.37343236804008484, 0.16533590853214264, -0.17200905084609985, -0.15177962183952332, -0.16492179036140442, 0.07821913808584213, 0.07900011539459229, -0.042878858745098114, 0.1350000947713852, -0.13241446018218994, 0.09056626260280609, 0.005474855192005634, -0.09275399893522263, -0.015437474474310875, -0.11744147539138794, -0.22546105086803436, -0.009540224447846413, 0.29168468713760376, -0.1485462188720703, 0.0818372294306755, -0.19996407628059387, -0.3598058819770813, -0.07731300592422485, 0.19513627886772156, -0.434459924697876, 0.24372181296348572, -0.25773245096206665, -0.12673617899417877, -0.46296700835227966, -0.216212198138237, -0.009465490467846394, -0.17932076752185822, 0.21815885603427887, -0.07182656228542328, -0.33343714475631714, -0.033921677619218826, -0.5081929564476013, 0.6014180183410645, 0.27122554183006287, 0.09430085122585297, 0.41667959094047546, -0.05570978671312332, 0.07676468044519424, -0.016295326873660088, 0.379367470741272, -0.29020532965660095, -0.37336909770965576, -0.12204480171203613, 0.06053594499826431, -0.2919303774833679, -0.06644094735383987, -0.34779563546180725, 0.11228194832801819, 0.3791011869907379, 0.4248926341533661, 0.0626000240445137, 0.036115068942308426, 0.3265301287174225, 0.5222181677818298, -0.12113569676876068, 0.0620594322681427, 0.13218767940998077, -0.11373712867498398, -0.060407064855098724, 0.09756802022457123, 0.042901698499917984, -0.026428954675793648, 0.446408212184906, -0.16343413293361664, -0.17469343543052673, 0.13221704959869385, 0.33710989356040955, 0.1987117975950241, 0.24102728068828583, 0.33975961804389954, -0.00929841585457325, 0.06323880702257156, 0.03713473305106163, 0.38180011510849, 0.26208415627479553, -0.12112513184547424, -0.30908438563346863, -0.2685716152191162, -0.4397205412387848, 0.7446146011352539, -0.2391815036535263, 0.34273263812065125, 0.27308720350265503, -0.2558051347732544, -0.03406210616230965, -0.36825302243232727, 0.17759892344474792, 0.11662575602531433, 0.16299933195114136, -0.3898429870605469, -0.6086574792861938, 0.09506312757730484, -0.05502809211611748, -0.07544595003128052, 0.20487256348133087, -0.21199923753738403, -0.06612792611122131, 0.331089586019516, 0.4750819504261017, 0.6668500304222107, 0.30434927344322205, -0.030486665666103363, -0.0017352536087855697, -0.1681496649980545, 0.2637513279914856, -0.12494506686925888, 0.16366326808929443, -0.034778133034706116, -0.17534305155277252, 0.03631526976823807, 0.09193751215934753, 0.03537771478295326, 0.25666630268096924, -0.07705383002758026, 0.20415739715099335, -0.19329993426799774, -0.008146798238158226, -0.052162569016218185, 0.07898447662591934, 0.2488764524459839, -0.224345862865448, -0.0252265315502882, 0.2686210870742798, -0.015581821091473103, -0.30639973282814026, -0.14890263974666595, -0.0248517207801342, -0.12788406014442444, 0.15651240944862366, -0.15640679001808167, -0.0651303231716156, -0.1435311734676361, -0.03720097988843918, 0.26175591349601746, -0.23589667677879333, -0.08954671770334244, 0.009861385449767113, 0.060989364981651306, 0.42460453510284424, 0.04442191496491432, 0.10897506773471832, 0.16076555848121643, 0.21341462433338165, -0.0879863053560257, 0.05374373868107796, 0.283358633518219, 0.06178361177444458, -0.21974505484104156, 0.206600159406662, 0.08770443499088287, -0.40931257605552673, -0.30324557423591614, 0.021759280934929848, 0.009765216149389744, -0.3889293074607849, -0.07147645950317383, 0.40389350056648254, 0.04143368825316429, -0.17669537663459778, 0.20630982518196106, 0.26029330492019653, -0.4080258011817932, 0.30736327171325684, 0.16468942165374756, -0.16290661692619324, -0.08147092163562775, 0.06245594844222069, 0.08949039876461029, -0.34308603405952454, 0.4695495665073395, -0.09649086743593216, 0.01485888659954071, -0.2405359148979187, -0.0907336175441742, 0.06605107337236404, 0.14449484646320343, -0.17809604108333588, 0.05909813940525055, 0.1074361652135849, 0.12043887376785278, -0.08698393404483795, 0.20470021665096283, 0.03592029958963394, -0.1315038800239563, -0.3764169216156006, -0.5651541352272034, 0.22068844735622406, 0.40157216787338257, 0.22651679813861847, -0.009095736779272556, 0.10981686413288116, -0.2741592824459076, 0.5316255688667297, -0.40845921635627747, 0.1374565213918686, 0.3545910716056824, 0.2290198802947998, -0.015456270426511765, -0.04412009194493294, -0.09389173239469528, -0.12437334656715393, 0.2687462568283081, -0.13834315538406372, 0.00897407066076994, -0.2991035580635071, -0.10929368436336517, 0.014618167653679848, -0.07732877880334854, -0.04492013528943062, -0.023988626897335052, 0.03090582974255085, 0.07234082370996475, -0.4569346010684967, 0.023395629599690437, -0.09685228765010834, -0.04097965359687805, 0.21980729699134827, 0.32899191975593567, 0.2789762318134308, -0.10223628580570221, 0.1524553894996643, -0.10765890777111053, -0.03753870353102684, 0.10820700973272324, 0.024584675207734108, 0.22936023771762848, -0.06674906611442566, 0.23340480029582977, 0.1745448261499405, 0.16586855053901672, -0.13939444720745087, 0.05004609376192093, 0.14328107237815857, 0.05671871826052666, -0.053656838834285736, 0.21662834286689758, 0.2777227759361267, 0.1126282811164856, 0.23965857923030853, 0.3434230089187622, 0.40502628684043884, -0.22936755418777466, 0.05863506346940994, 0.2702954411506653, 0.14690162241458893, 0.17183588445186615, 0.18468846380710602, 0.23269179463386536, 0.06676222383975983, -0.06919238716363907, -0.09936913847923279, 0.05148890241980553, -0.026422569528222084, 0.002058984711766243, 0.4193905293941498, -0.12567488849163055, -0.3333932161331177, -0.09972643852233887, -0.004982442129403353, -0.020089179277420044, 0.06952456384897232, 0.06461549550294876, 0.4033411145210266, 0.49890846014022827, -0.21406161785125732, -0.05792820826172829, -0.21525050699710846, 0.1457212269306183, 0.3286415934562683, 0.13899436593055725, 0.4616527557373047, 0.48347052931785583, 0.3421582579612732, 0.030583858489990234, -0.40881624817848206, 0.013286345638334751, 0.049359481781721115, 0.09663604944944382, 0.020399969071149826, 0.010442995466291904, -0.19428828358650208, -0.24858418107032776, -0.12244292348623276, 0.2361290156841278, -0.3936663568019867, 0.14623284339904785, -0.18884402513504028, -0.13610368967056274, -0.1875847578048706, 0.17075663805007935, 0.15039081871509552, 0.20971858501434326, -0.27796465158462524, -0.0743931382894516, 0.07800091058015823, -0.15263113379478455, 0.2677413523197174, 0.17991115152835846, 0.225594624876976, -0.0255021620541811, -0.14550751447677612, 0.3720201253890991, -0.26671499013900757, -0.09368926286697388, -0.171682208776474, -0.03591354936361313, 0.009758342057466507, -0.0681823194026947, 0.04133002087473869, 0.2832559645175934, -0.219323068857193, 0.23280008137226105, -0.045924410223960876, 0.14230015873908997, -0.3630727231502533, 0.02643578313291073, 0.23227280378341675, -0.5020996332168579, -0.07824776321649551, -0.32157957553863525, -0.17852047085762024, -0.42395490407943726, 0.16589094698429108, -0.3847849369049072, -0.11928341537714005, 0.1992286890745163, 0.15665465593338013, -0.1398010551929474, 0.5302137136459351, 0.6634436249732971, 0.17633076012134552, 0.052903927862644196, -0.332319974899292, -0.39007410407066345, 0.17309170961380005, -0.07071243971586227, -0.13654464483261108, -0.0641164481639862, -0.11988171935081482, 0.26699358224868774, -0.004659791011363268, 0.3345378339290619, -0.05983535572886467, -0.2998944818973541, 0.1108061671257019, -0.1535366177558899, 0.24553443491458893, -0.09548603743314743, 0.3103296756744385, 0.19461220502853394, 0.06105530261993408, -0.08677402138710022, -0.06946547329425812, 0.1932779997587204, -0.09688965976238251, 0.002018391853198409, 0.05992105230689049, 0.09118790179491043, 0.4429358243942261, 0.26360180974006653, 0.07979343831539154, -0.4356223940849304, -0.05314783379435539, -0.35119953751564026, 0.01631835289299488, -0.3566226363182068, 0.33099231123924255, -0.056623492389917374, 0.26364320516586304, 0.00970113929361105, -0.12513430416584015, 0.24355019629001617, 0.272365927696228, -0.05515839532017708, -0.0806194469332695, -0.24424313008785248, 0.19074279069900513, -0.16389067471027374, -0.24964091181755066, -0.09565885365009308, 0.15251626074314117, 0.059849970042705536, -0.058379750698804855, 0.014223060570657253, 0.01749935746192932, 0.04754168540239334, -0.1556224822998047, -0.14031562209129333, -0.54585200548172, -0.0969870537519455, 0.05160631611943245, 0.15644870698451996, -0.36961016058921814, -0.21711212396621704, 0.31014639139175415, 0.06613311171531677, -0.07960690557956696, 0.4425637125968933, -0.1411462426185608, -0.38183751702308655, -0.13522793352603912, 0.2422274798154831, 0.0642673671245575, 0.02968689426779747, -0.35223138332366943, -0.39341315627098083 ]
https://github.com/huggingface/datasets/issues/365
How to augment data ?
Some samples in the dataset are too long, I want to divide them in several samples.
Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ```
16
How to augment data ? Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ``` Some samples in the dataset are too long, I want to divide them in several samples.
[ -0.09215503931045532, -0.06655637919902802, -0.2976478636264801, -0.022697625681757927, 0.023150885477662086, 0.35464316606521606, -0.01446300745010376, 0.2735872268676758, 0.16726456582546234, 0.1517353504896164, -0.1143043115735054, 0.041650619357824326, -0.012732045724987984, 0.1264990270137787, 0.16265258193016052, -0.2058325856924057, 0.16964250802993774, 0.08734365552663803, -0.10483478009700775, 0.22751685976982117, -0.06049851328134537, -0.4782769978046417, -0.07643084973096848, -0.6003987789154053, -0.11632976680994034, -0.09851235151290894, -0.3571469783782959, -0.31645601987838745, 0.12150254100561142, -0.31104981899261475, -0.2560764253139496, 0.015793822705745697, 0.08849289268255234, 0.2807292342185974, -0.000103333244624082, -0.16144633293151855, 0.15034307539463043, 0.07043829560279846, -0.34062784910202026, 0.49959853291511536, 0.07926775515079498, -0.7448673844337463, -0.06711766123771667, -0.08297822624444962, -0.11952132731676102, -0.4099470376968384, 0.036110710352659225, -0.1217741072177887, 0.3469313383102417, -0.14333365857601166, 0.23014721274375916, -0.0034852607641369104, 0.35084497928619385, -0.046854835003614426, 0.12032492458820343, 0.433942049741745, 0.20896486937999725, 0.10369736701250076, 0.7045369744300842, 0.1954578161239624, 0.362211674451828, 0.11733119189739227, -0.17492987215518951, -0.05232995003461838, 0.22492681443691254, -0.01064747478812933, 0.22379577159881592, -0.41082167625427246, -0.008679048158228397, 0.1689891666173935, 0.31991714239120483, 0.20966187119483948, -0.5844898223876953, -0.3439366817474365, 0.16411469876766205, -0.08180636912584305, -0.4392804503440857, 0.009365654550492764, 0.15225344896316528, -0.025808464735746384, -0.2340262234210968, -0.2493516206741333, -0.06699196249246597, 0.41832882165908813, 0.0526316799223423, 0.4480656087398529, 0.03938223421573639, 0.032332487404346466, -0.1009380891919136, -0.24896006286144257, -0.15540820360183716, 0.1496042013168335, -0.12784835696220398, 0.3905821442604065, -0.06507514417171478, -0.13722166419029236, -0.3636055886745453, -0.27752652764320374, 0.15086930990219116, 0.08195861428976059, 0.09896442294120789, 0.11216718703508377, -0.15346543490886688, 0.1329183429479599, 0.2125644087791443, -0.34248730540275574, -0.03595646470785141, 0.2162267565727234, -0.01822880655527115, -0.1561187505722046, 0.2932976186275482, -0.09415290504693985, -0.14057856798171997, -0.15516164898872375, 0.015714555978775024, -0.08163736015558243, -0.164320170879364, 0.10944178700447083, -0.12259052693843842, -0.05455142259597778, -0.2011452615261078, 0.07559750229120255, 0.06474858522415161, 0.10653746128082275, -0.2623957693576813, 0.003633422777056694, -0.30867791175842285, 0.2466655820608139, 0.17572389543056488, -0.25567230582237244, -0.07600727677345276, 0.12573790550231934, -0.1042710542678833, -0.14109469950199127, 0.18934963643550873, 0.11753493547439575, 0.27617117762565613, -0.013568795286118984, 0.09122013300657272, -0.13598674535751343, 0.06677163392305374, -0.045589957386255264, 0.26094383001327515, 0.13358290493488312, 0.16531868278980255, 0.023513901978731155, -0.19558635354042053, 0.19772474467754364, -0.07093454897403717, 0.08046207576990128, -0.39965274930000305, -0.018064411357045174, -0.388821005821228, 0.24227701127529144, 0.17829760909080505, -0.10796508938074112, -0.1250019371509552, 0.37293919920921326, 0.2526088356971741, -0.3006933927536011, 0.08909257501363754, 0.06530728936195374, 0.10290829092264175, -0.33517298102378845, 0.48143497109413147, 0.04246048256754875, -0.3115992546081543, 0.016070229932665825, -0.20663605630397797, 0.2904298007488251, 0.15371616184711456, 0.09123491495847702, 0.022525789216160774, 0.095416359603405, -0.23932836949825287, -0.13793188333511353, 0.30753517150878906, -0.1951463371515274, -0.3103211224079132, 0.0397399440407753, 0.1528491973876953, 0.027235500514507294, -0.17931649088859558, 0.362709641456604, 0.31588998436927795, -0.08207682520151138, 0.21347454190254211, 0.48159971833229065, -0.2080271989107132, -0.14619365334510803, -0.008943349123001099, -0.15028691291809082, 0.3748990595340729, 0.22714349627494812, -0.05414796993136406, -0.13088878989219666, 0.27163445949554443, -0.44277000427246094, 0.18602067232131958, -0.11817964166402817, 0.3794412612915039, 0.13476717472076416, 0.1710028052330017, 0.394487589597702, -0.06697680056095123, -0.22570957243442535, -0.22611385583877563, -0.05717109143733978, -0.062121618539094925, -0.23537196218967438, 0.21263724565505981, -0.2676014304161072, 0.026593996211886406, -0.1191706731915474, 0.15591129660606384, -0.32028570771217346, 0.2384454607963562, -0.1932303011417389, 0.18700510263442993, -0.5061724185943604, 0.0610351525247097, -0.22333252429962158, 0.2332099825143814, 0.10248427093029022, -0.24188709259033203, 0.03113587759435177, 0.2829582989215851, -0.2612972855567932, -0.2415941059589386, 0.36249014735221863, -0.08741644024848938, -0.14974234998226166, 0.11789986491203308, 0.2847110331058502, 0.13077396154403687, 0.12726286053657532, 0.16168060898780823, 0.11583776772022247, 0.1229896992444992, 0.05533402040600777, 0.1622653603553772, 0.27731046080589294, -0.049448154866695404, -0.1482306867837906, -0.09236890077590942, 0.187081441283226, 0.021775780245661736, 0.22394555807113647, -0.2352091372013092, 0.24434317648410797, 0.29908666014671326, 0.02490334026515484, -0.11082205176353455, -0.10243365168571472, -0.22742170095443726, -0.030390674248337746, 0.3708471357822418, -0.2931019067764282, -0.04760845750570297, 0.012240001931786537, -0.529737114906311, -0.1937214434146881, -0.10632164776325226, -0.13737645745277405, -0.4725439250469208, -0.1186693087220192, 0.13798938691616058, 0.022592341527342796, -0.09700275212526321, 0.3941376209259033, 0.23774579167366028, -0.08415832370519638, 0.282524973154068, 0.15741018950939178, -0.012492348439991474, 0.13543249666690826, -0.10457006096839905, 0.02294587343931198, 0.37182697653770447, 0.13248804211616516, 0.2272263467311859, 0.06888829171657562, 0.13172927498817444, 0.12295238673686981, -0.06655289977788925, -0.19392798840999603, -0.107943095266819, -0.21960127353668213, -0.011936869472265244, -0.6965718269348145, -0.1861792504787445, -0.32469525933265686, -0.12215391546487808, 0.21873030066490173, -0.2129364311695099, 0.03912249952554703, 0.2452382892370224, 0.14459528028964996, 0.08382134884595871, -0.15486577153205872, 0.09064041078090668, 0.2803700268268585, 0.06871815770864487, 0.20367088913917542, 0.05500633642077446, 0.1548548936843872, 0.5739246606826782, 0.1061311736702919, 0.11095574498176575, -0.21178461611270905, -0.3797997832298279, -0.22121912240982056, 0.05741326883435249, 0.2341427057981491, 0.2103157937526703, -0.021254435181617737, -0.03463730216026306, -0.19801172614097595, -0.059540241956710815, -0.10201265662908554, 0.1978411227464676, -0.1250298023223877, -0.08318743854761124, -0.04287124425172806, -0.2294328510761261, 0.16277067363262177, -0.4700724482536316, -0.23811042308807373, 0.0521293468773365, 0.12208498269319534, 0.09037945419549942, -0.2794129550457001, 0.30127155780792236, -0.022295253351330757, 0.06416687369346619, -0.1506197303533554, -0.15732792019844055, -0.17974306643009186, 0.46749451756477356, -0.33966299891471863, 0.12029220163822174, -0.052010033279657364, -0.3217194974422455, 0.16373760998249054, 0.18668922781944275, -0.027557114139199257, -0.14367525279521942, -0.09698304533958435, 0.059602245688438416, -0.1858639419078827, 0.16295510530471802, 0.08285658061504364, -0.24855223298072815, -0.09594359248876572, 0.10557760298252106, -0.011232525110244751, -0.0025405986234545708, 0.31783297657966614, 0.18284699320793152, -0.14017069339752197, -0.07729095220565796, -0.2146827131509781, 0.18938156962394714, 0.1611509472131729, -0.06742452830076218, 0.01972058415412903, -0.2104613035917282, 0.0398913212120533, 0.039624009281396866, -0.09655914455652237, -0.028712967410683632, -0.08332423865795135, -0.22348769009113312, -0.004872674588114023, 0.2702585756778717, -0.12134003639221191, 0.127322256565094, -0.24725738167762756, -0.39075013995170593, -0.1469990611076355, 0.15261943638324738, -0.49171069264411926, 0.2618214190006256, -0.28068938851356506, -0.12752865254878998, -0.4692976176738739, -0.18872018158435822, -0.10479164123535156, -0.16140568256378174, 0.2652882933616638, -0.05833727493882179, -0.3561538755893707, -0.08445187658071518, -0.5110245943069458, 0.604235053062439, 0.31019410490989685, 0.1707243025302887, 0.43702611327171326, -0.06542272120714188, 0.07644174993038177, 0.023263949900865555, 0.4769052267074585, -0.27460014820098877, -0.38617590069770813, -0.12496565282344818, 0.10162043571472168, -0.2826368510723114, -0.052004873752593994, -0.27053606510162354, 0.1159948855638504, 0.3876579999923706, 0.3787550628185272, 0.00958624854683876, 0.0693710520863533, 0.4424825608730316, 0.5657035708427429, -0.09900271147489548, 0.026833947747945786, 0.1507279872894287, -0.09234799444675446, -0.0636574923992157, 0.12042619287967682, 0.09131188690662384, -0.0522896833717823, 0.4356538653373718, -0.2565538287162781, -0.15605826675891876, 0.1430503875017166, 0.33028024435043335, 0.11375132948160172, 0.27826637029647827, 0.2620794475078583, 0.06379696726799011, -0.006520434282720089, -0.001699949149042368, 0.4113221764564514, 0.2880478799343109, -0.2564452588558197, -0.3336546719074249, -0.203001007437706, -0.44436100125312805, 0.7946298718452454, -0.2818875014781952, 0.3249368369579315, 0.3466304540634155, -0.2545505166053772, 0.11731169372797012, -0.36712998151779175, 0.2343788892030716, 0.09048420190811157, 0.1857847422361374, -0.4855915606021881, -0.6768801808357239, 0.026806164532899857, 0.013964289799332619, 0.04231535643339157, 0.21046660840511322, -0.28050944209098816, -0.08123013377189636, 0.32510697841644287, 0.4187849760055542, 0.614498496055603, 0.2699090242385864, -0.005870081018656492, -0.05976428464055061, -0.04417593032121658, 0.34045931696891785, -0.13144320249557495, 0.18077591061592102, 0.0006911137606948614, -0.15946878492832184, 0.02496708370745182, 0.05877811834216118, -0.008183557540178299, 0.2708622217178345, -0.12016036361455917, 0.22074122726917267, -0.2152346521615982, -0.0003143319336231798, -0.20473340153694153, 0.13383209705352783, 0.12474744021892548, -0.21914424002170563, 0.09079665690660477, 0.22448138892650604, -0.01945633813738823, -0.32234442234039307, -0.12345921993255615, 0.040097013115882874, -0.03462684899568558, 0.15316970646381378, -0.1436035931110382, -0.12295084446668625, -0.08756806701421738, -0.017864784225821495, 0.2680429518222809, -0.20915789902210236, -0.057911451905965805, -0.059555232524871826, 0.046984024345874786, 0.4749448299407959, 0.08301104605197906, 0.0931570902466774, 0.10427549481391907, 0.13812267780303955, -0.14028699696063995, -0.022740647196769714, 0.22265073657035828, 0.146052747964859, -0.18958710134029388, 0.24905884265899658, 0.17160609364509583, -0.4353039264678955, -0.3188321888446808, 0.045047104358673096, 0.0474674254655838, -0.4183586537837982, -0.1262008547782898, 0.3390963673591614, -0.014789354056119919, -0.19137977063655853, 0.16183295845985413, 0.21156468987464905, -0.45302140712738037, 0.3214585483074188, 0.11696933209896088, -0.15428410470485687, -0.10286912322044373, 0.057527292519807816, 0.10981729626655579, -0.35590335726737976, 0.4608195126056671, -0.02875685878098011, 0.028411604464054108, -0.2682011127471924, -0.0778699517250061, 0.0540490448474884, 0.09759059548377991, -0.1610611379146576, -0.01601109653711319, 0.16421093046665192, 0.13899467885494232, -0.13165536522865295, 0.11962390691041946, 0.11526123434305191, -0.1619478017091751, -0.4005555510520935, -0.517402708530426, 0.2700827121734619, 0.3813767731189728, 0.25576668977737427, 0.035260435193777084, 0.17180250585079193, -0.33377888798713684, 0.6286420226097107, -0.35032013058662415, 0.16930457949638367, 0.36556440591812134, 0.24353058636188507, -0.06968412548303604, -0.0005215578712522984, -0.1333029419183731, -0.00965603906661272, 0.20159105956554413, -0.020580638200044632, 0.08067403733730316, -0.24762754142284393, -0.04476341977715492, 0.03932851552963257, -0.07653871923685074, -0.03727748990058899, -0.04682581126689911, 0.043979447335004807, 0.05716000869870186, -0.4754127264022827, 0.05881611630320549, -0.08781911432743073, -0.1041296049952507, 0.09028967469930649, 0.3367292582988739, 0.23228615522384644, -0.12980015575885773, 0.24299752712249756, -0.09648078680038452, -0.0747150406241417, 0.08604921400547028, 0.07819025963544846, 0.2276206612586975, -0.07172266393899918, 0.1356777548789978, 0.17724035680294037, 0.3311471939086914, -0.22947698831558228, 0.050705235451459885, 0.1601715236902237, 0.050579626113176346, -0.03017360158264637, 0.20753145217895508, 0.3017405569553375, 0.12390880286693573, 0.33689427375793457, 0.383169025182724, 0.3606928884983063, -0.22594965994358063, 0.051517732441425323, 0.24347589910030365, 0.11077757924795151, 0.215077742934227, 0.24510115385055542, 0.13423652946949005, 0.11615286022424698, -0.11131912469863892, -0.09483974426984787, 0.057956527918577194, 0.04645281285047531, 0.002782190451398492, 0.57164466381073, -0.07682928442955017, -0.3242097496986389, -0.09871193766593933, -0.01205902174115181, 0.010679498314857483, 0.06045767664909363, 0.06118667498230934, 0.5287559628486633, 0.4854891002178192, -0.16935214400291443, -0.10191076993942261, -0.24746745824813843, 0.14685367047786713, 0.36226189136505127, 0.138072207570076, 0.4326585829257965, 0.3992355465888977, 0.4062815308570862, -0.09240756183862686, -0.4007280468940735, -0.04853377491235733, 0.11357008665800095, 0.13695558905601501, 0.013221587054431438, 0.08043520152568817, -0.1333819329738617, -0.2592554986476898, -0.14680702984333038, 0.2556403577327728, -0.43424171209335327, 0.06384222954511642, -0.18790243566036224, -0.10465406626462936, -0.16468584537506104, 0.201774463057518, 0.1639823466539383, 0.15766280889511108, -0.3386794328689575, -0.05784771591424942, -0.005049437750130892, -0.09240294992923737, 0.20783182978630066, 0.15468668937683105, 0.219467893242836, -0.004598756320774555, -0.0708317756652832, 0.2528015971183777, -0.28897935152053833, -0.05312164127826691, -0.20849300920963287, -0.01328624039888382, 0.009153883904218674, -0.10111432522535324, 0.10813542455434799, 0.2520717978477478, -0.19083338975906372, 0.24337522685527802, -0.0326402448117733, 0.10041993856430054, -0.4774591028690338, 0.04166620224714279, 0.18734966218471527, -0.45576751232147217, -0.14584696292877197, -0.3373722732067108, -0.24302011728286743, -0.37286806106567383, 0.16283276677131653, -0.5795021653175354, -0.08258131891489029, 0.2132817804813385, 0.1386142075061798, -0.22627004981040955, 0.49070802330970764, 0.6586543917655945, 0.25159019231796265, -0.010341023094952106, -0.37576648592948914, -0.3638254702091217, 0.12199088931083679, -0.2262852042913437, -0.062199342995882034, -0.06693422049283981, -0.1357921063899994, 0.24696052074432373, 0.031139055266976357, 0.2954443097114563, 0.0071912300772964954, -0.27773943543434143, 0.13083259761333466, -0.12039698660373688, 0.19894269108772278, -0.22894448041915894, 0.28587257862091064, 0.22914376854896545, -0.05138183385133743, -0.07311995327472687, -0.01556453201919794, 0.07489664107561111, -0.011862650513648987, 0.03805037587881088, 0.1570262610912323, 0.034408215433359146, 0.3442341089248657, 0.22810928523540497, 0.10829108953475952, -0.34142711758613586, 0.016310300678014755, -0.31454718112945557, 0.035746846348047256, -0.2887766659259796, 0.2973529100418091, -0.0171129759401083, 0.1958341747522354, -0.060481615364551544, -0.03290221840143204, 0.23372945189476013, 0.2723931074142456, -0.01577632874250412, -0.07427436858415604, -0.21610777080059052, 0.2192263901233673, -0.24340158700942993, -0.15233629941940308, 0.039013803005218506, 0.16536182165145874, 0.035060226917266846, -0.03853441774845123, 0.1303577721118927, 0.07865235954523087, -0.016245819628238678, -0.10233353078365326, -0.14993616938591003, -0.5930967926979065, -0.015427506528794765, 0.12252697348594666, 0.06669292598962784, -0.35610681772232056, -0.22378094494342804, 0.3396696448326111, 0.104802206158638, -0.026691483333706856, 0.39710432291030884, -0.06377387791872025, -0.33840882778167725, -0.1645893156528473, 0.21105678379535675, 0.06024089455604553, -0.012402483262121677, -0.25048598647117615, -0.4126063585281372 ]
https://github.com/huggingface/datasets/issues/365
How to augment data ?
Using batched map is the way to go then. We'll make it clearer in the docs that map could be used for augmentation. Let me know if you think there should be another way to do it. Or feel free to close the issue otherwise.
Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ```
45
How to augment data ? Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ``` Using batched map is the way to go then. We'll make it clearer in the docs that map could be used for augmentation. Let me know if you think there should be another way to do it. Or feel free to close the issue otherwise.
[ -0.016944585368037224, -0.14556576311588287, -0.30010664463043213, -0.08540002256631851, 0.12440009415149689, 0.17558719217777252, -0.0629437193274498, 0.3091181516647339, 0.1504424512386322, 0.16817831993103027, -0.13062593340873718, 0.1878170669078827, 0.030932344496250153, 0.19953526556491852, 0.1029900535941124, -0.09849386662244797, 0.06371215730905533, 0.1679253876209259, -0.23800092935562134, 0.1587182730436325, -0.07242459058761597, -0.30818241834640503, -0.06477812677621841, -0.5189902186393738, -0.08803597837686539, -0.08568347245454788, -0.24752314388751984, -0.0627601146697998, 0.016347019001841545, -0.3594220280647278, -0.21946477890014648, 0.081087127327919, 0.07977602630853653, 0.16231851279735565, -0.00009548233356326818, -0.1678711324930191, 0.17553049325942993, 0.05093695595860481, -0.2073562890291214, 0.4534391462802887, 0.08815331757068634, -0.6956602334976196, -0.03846450522542, -0.14073839783668518, -0.14300863444805145, -0.4254906177520752, 0.01938769966363907, -0.07913374155759811, 0.3932872712612152, -0.12988756597042084, 0.3211500942707062, 0.06788118928670883, 0.3687799572944641, -0.009160836227238178, 0.1637960821390152, 0.267537385225296, 0.09342654794454575, 0.0432252436876297, 0.6970160007476807, 0.11308760195970535, 0.1968543976545334, 0.27501484751701355, -0.05595755577087402, -0.054793477058410645, 0.22427110373973846, -0.03993319720029831, 0.17913329601287842, -0.4076254963874817, -0.02939719147980213, 0.0814061388373375, 0.3611027002334595, 0.24617087841033936, -0.48552078008651733, -0.20734374225139618, 0.15879321098327637, -0.10886556655168533, -0.3031991422176361, -0.1451982706785202, 0.07751578837633133, -0.008415654301643372, -0.17961758375167847, -0.224514901638031, -0.11051759868860245, 0.27817243337631226, 0.03177397698163986, 0.4702419936656952, -0.054266758263111115, -0.04705917462706566, -0.09253823757171631, -0.21236447989940643, -0.20385362207889557, 0.25981006026268005, -0.1692337989807129, 0.3838733732700348, -0.12152671068906784, -0.13530202209949493, -0.1618478000164032, -0.2341884970664978, 0.12504054605960846, 0.07376092672348022, 0.21695058047771454, 0.22325296700000763, -0.12692846357822418, 0.11073607951402664, 0.238780215382576, -0.21891440451145172, -0.03479501232504845, 0.10997496545314789, 0.026438070461153984, -0.07566898316144943, 0.18847283720970154, -0.07732518762350082, -0.09927023202180862, -0.2176903635263443, -0.03556259721517563, -0.061983343213796616, -0.06802579015493393, -0.018565962091088295, -0.10094715654850006, 0.025205938145518303, -0.17553097009658813, 0.1599724441766739, -0.047088153660297394, 0.17859035730361938, -0.19247017800807953, 0.0894395262002945, -0.12497630715370178, 0.26918384432792664, 0.16098077595233917, -0.16696475446224213, -0.17956611514091492, 0.14058256149291992, -0.10301670432090759, -0.2629324793815613, 0.17477695643901825, 0.15830180048942566, 0.3005461096763611, 0.0060820081271231174, 0.20126444101333618, -0.001065563061274588, 0.09212086349725723, 0.05582313612103462, 0.34941670298576355, 0.25941354036331177, 0.21551741659641266, 0.004281582776457071, -0.20747606456279755, 0.19235961139202118, 0.03865994140505791, 0.09496938437223434, -0.3523145318031311, 0.030487820506095886, -0.38971853256225586, 0.3262460231781006, 0.10286103188991547, -0.1323002129793167, -0.06198043376207352, 0.3417802155017853, 0.1576269119977951, -0.26345688104629517, -0.051137011498212814, 0.07619297504425049, 0.047942593693733215, -0.4188564419746399, 0.48024213314056396, 0.012472507543861866, -0.3166128695011139, 0.08207740634679794, -0.06412553787231445, 0.2990228831768036, 0.1567153036594391, 0.07755551487207413, -0.10714735090732574, 0.09468932449817657, -0.22574098408222198, -0.011232837103307247, 0.34831827878952026, -0.15183429419994354, -0.27721500396728516, 0.04119130223989487, 0.18469512462615967, 0.07083571702241898, -0.09409292042255402, 0.2117488980293274, 0.224287211894989, -0.0889439731836319, 0.23058241605758667, 0.3381918966770172, -0.11505818367004395, -0.0823139101266861, -0.16691911220550537, -0.10360032320022583, 0.25788018107414246, 0.12456381320953369, -0.046200208365917206, -0.15194495022296906, 0.28008171916007996, -0.3861432373523712, 0.20093780755996704, -0.20137818157672882, 0.3344910144805908, 0.21949851512908936, 0.2639077603816986, 0.2855583131313324, -0.018207373097538948, -0.1426216959953308, -0.16392599046230316, -0.019811633974313736, -0.19036532938480377, -0.007336487993597984, 0.18019428849220276, -0.2361215204000473, -0.15052811801433563, -0.17463526129722595, 0.08579051494598389, -0.3688031733036041, 0.36435994505882263, -0.14301685988903046, 0.028469834476709366, -0.487621009349823, -0.011334137991070747, -0.14595183730125427, 0.13228340446949005, 0.01876980997622013, -0.18525457382202148, 0.030189549550414085, 0.13938532769680023, -0.29067757725715637, -0.1264602541923523, 0.26797303557395935, -0.05525491014122963, -0.14964976906776428, 0.09367015212774277, 0.321010947227478, 0.08131331950426102, 0.15842336416244507, 0.17770600318908691, 0.17641697824001312, 0.10587219148874283, 0.07699685543775558, 0.1516081690788269, 0.271889328956604, 0.020132845267653465, -0.08539414405822754, -0.09763152152299881, 0.28532475233078003, 0.20930668711662292, 0.0269202571362257, -0.13854409754276276, 0.1989012360572815, 0.29452571272850037, -0.0012599567417055368, -0.13198219239711761, -0.06462941318750381, -0.21415409445762634, 0.00023230956867337227, 0.27707475423812866, -0.3124355971813202, -0.17535679042339325, 0.10002929717302322, -0.3331010937690735, -0.030513223260641098, -0.0974094495177269, -0.20623956620693207, -0.38460907340049744, -0.14529302716255188, 0.07851877808570862, -0.013772942125797272, -0.156992107629776, 0.44870874285697937, 0.18719886243343353, -0.04617556557059288, 0.20475344359874725, 0.1581128090620041, 0.04655693471431732, 0.07213452458381653, 0.031540777534246445, 0.09492016583681107, 0.3714201748371124, 0.06272940337657928, -0.010814500972628593, 0.10135900229215622, 0.012751285918056965, 0.19025561213493347, -0.16622062027454376, -0.25490546226501465, -0.00937101524323225, -0.13108758628368378, 0.02474060282111168, -0.4721282422542572, -0.167775958776474, -0.41719919443130493, 0.026044363155961037, 0.2850014269351959, -0.3464552164077759, 0.11473068594932556, 0.19408266246318817, 0.044663432985544205, 0.07344651222229004, -0.013754576444625854, -0.021228035911917686, 0.27233657240867615, 0.014981582760810852, 0.2983076870441437, -0.04408295452594757, 0.06124194711446762, 0.46531084179878235, 0.1847611963748932, 0.1090758815407753, -0.14624755084514618, -0.6015244126319885, -0.07265141606330872, 0.054788585752248764, 0.2365456074476242, 0.24340063333511353, 0.03150659427046776, -0.06871572881937027, -0.15365706384181976, -0.05794830620288849, -0.24776354432106018, -0.0023932787589728832, -0.14268146455287933, -0.13270790874958038, -0.0629427507519722, -0.35090240836143494, -0.06057674065232277, -0.2882083058357239, -0.2773607075214386, 0.039484087377786636, 0.18792064487934113, 0.08910870552062988, -0.17817965149879456, 0.25307223200798035, -0.04177721217274666, 0.1533767729997635, -0.07308459281921387, -0.31257426738739014, -0.28202584385871887, 0.5944556593894958, -0.3446514904499054, -0.1548205465078354, -0.06364020705223083, -0.3578435480594635, 0.2325512021780014, 0.19826841354370117, -0.05919753015041351, -0.3129127323627472, -0.02769176848232746, -0.0003509156231302768, -0.17663995921611786, 0.14622904360294342, 0.12810809910297394, -0.1459638923406601, -0.22878986597061157, -0.05270495265722275, 0.019004100933670998, 0.08991681784391403, 0.37329211831092834, 0.19338878989219666, -0.1765824556350708, -0.12034153193235397, -0.07658161967992783, 0.07061734795570374, -0.027445491403341293, 0.017436925321817398, 0.225887730717659, -0.1589355319738388, 0.18723899126052856, 0.021604202687740326, -0.10348977148532867, 0.0051155355758965015, -0.11589092761278152, -0.209384948015213, 0.11524774134159088, 0.2734784185886383, -0.2112436145544052, 0.03637458384037018, -0.13134384155273438, -0.3586929142475128, -0.09234019368886948, 0.218224436044693, -0.2953598201274872, 0.17784933745861053, -0.19084423780441284, -0.06408586353063583, -0.4218352138996124, -0.15514646470546722, 0.000492147752083838, -0.18363581597805023, 0.18393242359161377, -0.10804668068885803, -0.37859323620796204, -0.012338686734437943, -0.5417198538780212, 0.5136913657188416, 0.25067779421806335, 0.0765954926609993, 0.37777701020240784, -0.10290072113275528, 0.03962869569659233, -0.1556667536497116, 0.3985166847705841, -0.3002893626689911, -0.27407127618789673, -0.10288166254758835, 0.031143363565206528, -0.2915138602256775, -0.0026041590608656406, -0.40948325395584106, 0.11186046898365021, 0.4298168122768402, 0.39063316583633423, -0.059861764311790466, -0.0031448344234377146, 0.3289986848831177, 0.4012628495693207, -0.15351857244968414, 0.13342028856277466, 0.05864589661359787, -0.20080941915512085, -0.19391250610351562, 0.061684802174568176, 0.13120190799236298, -0.008959094062447548, 0.42337366938591003, -0.23479057848453522, -0.09386496990919113, 0.0015049574431031942, 0.28014588356018066, 0.20894654095172882, 0.3529750108718872, 0.32941049337387085, -0.013072577305138111, -0.03853382542729378, 0.04471445083618164, 0.37221449613571167, 0.31861817836761475, -0.05767706409096718, -0.21164846420288086, -0.18927422165870667, -0.4861544966697693, 0.6014279127120972, -0.09158891439437866, 0.2584628164768219, 0.20552925765514374, -0.30425286293029785, 0.058681417256593704, -0.2436976432800293, 0.24523307383060455, 0.19286975264549255, 0.0815608948469162, -0.25159353017807007, -0.5197944641113281, 0.0003867842606268823, -0.11658765375614166, -0.08394713699817657, 0.22054913640022278, -0.18555985391139984, -0.11905175447463989, 0.33974844217300415, 0.38058707118034363, 0.7213773727416992, 0.37272217869758606, -0.04441414028406143, 0.06490907073020935, -0.2082364857196808, 0.2102985680103302, -0.15145952999591827, 0.16764122247695923, -0.10847604274749756, -0.14929893612861633, 0.09273218363523483, 0.13888776302337646, 0.03946099057793617, 0.22899024188518524, -0.10737305134534836, 0.1823103278875351, -0.11570225656032562, -0.019616803154349327, -0.09453949332237244, 0.08100435137748718, 0.20409774780273438, -0.1747235208749771, -0.05264037847518921, 0.2750527560710907, -0.01002552080899477, -0.2535114586353302, -0.12836001813411713, -0.1450088769197464, -0.09534092247486115, 0.010257020592689514, -0.04974359646439552, 0.04565338045358658, -0.1479799449443817, 0.01186090987175703, 0.2016213834285736, -0.2020261138677597, -0.1585792452096939, -0.0038152975030243397, 0.0804932713508606, 0.3847678303718567, -0.0004487709666136652, 0.2140655666589737, 0.20111984014511108, 0.20128582417964935, -0.0893247127532959, 0.06798037886619568, 0.2940026521682739, -0.024013154208660126, -0.22139817476272583, 0.15728260576725006, 0.0887470692396164, -0.4708000719547272, -0.2747165560722351, -0.022828109562397003, 0.061899881809949875, -0.3910622298717499, -0.04623657464981079, 0.41838374733924866, -0.06961079686880112, -0.22543059289455414, 0.2535313069820404, 0.22109800577163696, -0.44011005759239197, 0.3310343623161316, 0.28013643622398376, -0.13149678707122803, -0.05310306325554848, 0.09211275726556778, 0.12176279723644257, -0.25527647137641907, 0.41352730989456177, -0.0591217502951622, -0.02250049263238907, -0.2673145532608032, -0.17715896666049957, 0.11376536637544632, 0.044948700815439224, -0.0836932510137558, 0.05878410115838051, 0.011301020160317421, 0.09819371998310089, 0.029810065403580666, 0.1216481626033783, 0.0794440284371376, -0.12786617875099182, -0.32411015033721924, -0.603591799736023, 0.19190196692943573, 0.302066832780838, 0.23610760271549225, -0.0186139028519392, 0.18281106650829315, -0.24268487095832825, 0.5098900198936462, -0.48303404450416565, 0.10326425731182098, 0.25581681728363037, 0.2338085025548935, -0.02762991562485695, -0.09496176987886429, -0.0028975382447242737, -0.12418834120035172, 0.2989674210548401, -0.036212217062711716, -0.09854122251272202, -0.3450573980808258, -0.08601171523332596, 0.007972754538059235, -0.06435640156269073, -0.07865282893180847, 0.027740688994526863, 0.008465003222227097, -0.003884496632963419, -0.36357519030570984, 0.07974578440189362, -0.10066261887550354, -0.020190900191664696, 0.22061139345169067, 0.34396758675575256, 0.24045908451080322, 0.07684866338968277, 0.11375321447849274, -0.08687860518693924, -0.030342673882842064, 0.10412788391113281, 0.02367282472550869, 0.14364929497241974, -0.10405752807855606, 0.3017786145210266, 0.11837441474199295, 0.11945570260286331, -0.08340059965848923, 0.1052597165107727, 0.08537815511226654, 0.012601470574736595, -0.10631894320249557, 0.35545438528060913, 0.21938997507095337, 0.08418252319097519, 0.2463790476322174, 0.2900209426879883, 0.4652896225452423, -0.3328399360179901, 0.09703972190618515, 0.1872604638338089, 0.10101380944252014, 0.20558787882328033, 0.15688693523406982, 0.24334679543972015, 0.017206382006406784, -0.007142782676964998, 0.040714081376791, 0.03534311056137085, -0.09171554446220398, -0.06931880116462708, 0.32802826166152954, -0.19899819791316986, -0.2737841010093689, -0.08835891634225845, -0.09339934587478638, 0.028919938951730728, 0.12475768476724625, 0.01357252523303032, 0.39810994267463684, 0.4890511631965637, -0.16506226360797882, -0.06892488896846771, -0.121379554271698, 0.223837211728096, 0.27906516194343567, 0.1664375513792038, 0.44904962182044983, 0.4822935461997986, 0.3401317298412323, 0.06081528216600418, -0.4302317202091217, -0.05361815169453621, 0.10771812498569489, 0.027371006086468697, -0.0503118559718132, -0.07410619407892227, -0.21212449669837952, -0.22331756353378296, -0.08406603336334229, 0.22266718745231628, -0.30299457907676697, 0.17545419931411743, -0.2292850911617279, -0.13373762369155884, -0.19969941675662994, 0.09532120823860168, 0.09331437200307846, 0.2343372106552124, -0.27042269706726074, -0.00777157349511981, 0.10151370614767075, -0.13855326175689697, 0.26987844705581665, 0.24877320230007172, 0.28837189078330994, 0.017313309013843536, -0.15223710238933563, 0.24240969121456146, -0.10982874035835266, -0.09405517578125, -0.2680332660675049, -0.08308084309101105, 0.06701584160327911, -0.0245259590446949, 0.13394315540790558, 0.29170238971710205, -0.30563750863075256, 0.21548284590244293, 0.03313789516687393, 0.08813048154115677, -0.2701215147972107, -0.00044443801743909717, 0.23861739039421082, -0.4933006763458252, -0.12195780128240585, -0.42566004395484924, -0.25336697697639465, -0.4285174608230591, 0.07974813133478165, -0.37913084030151367, -0.010218941606581211, 0.08926130086183548, 0.1759544461965561, -0.1422223001718521, 0.5551964044570923, 0.4812189042568207, 0.07398323714733124, -0.012430277653038502, -0.3123762011528015, -0.48363348841667175, 0.21942521631717682, -0.056275349110364914, -0.13902492821216583, -0.018514050170779228, 0.0015056742122396827, 0.28723248839378357, -0.013077626004815102, 0.28593865036964417, -0.05858877673745155, -0.20684391260147095, 0.07130179554224014, -0.32075268030166626, 0.24852359294891357, -0.12913759052753448, 0.3100481629371643, 0.23141361773014069, -0.067478246986866, -0.06941934674978256, -0.1177905723452568, 0.25141164660453796, -0.04130711406469345, -0.011029490269720554, 0.07401764392852783, 0.1275634467601776, 0.41706573963165283, 0.22107139229774475, 0.09017930924892426, -0.4682822823524475, -0.06597333401441574, -0.3132871389389038, -0.05712854862213135, -0.39106330275535583, 0.2766563892364502, 0.051557231694459915, 0.30436551570892334, 0.07332117110490799, -0.21731093525886536, 0.14982731640338898, 0.2771361470222473, 0.0013810951495543122, -0.03600942716002464, -0.19509421288967133, 0.32855868339538574, -0.09985484182834625, -0.1976161152124405, -0.1854778677225113, 0.18602408468723297, 0.008392054587602615, -0.13331077992916107, -0.07046998292207718, -0.23471400141716003, 0.20046715438365936, -0.16237668693065643, -0.16461986303329468, -0.45158690214157104, -0.05013522133231163, 0.09920108318328857, 0.018429316580295563, -0.4311220943927765, -0.16480690240859985, 0.22436770796775818, 0.0660407543182373, -0.12289028614759445, 0.4751558005809784, -0.1930028796195984, -0.3418252170085907, -0.08455691486597061, 0.1866379827260971, 0.17293015122413635, -0.07445067912340164, -0.33117225766181946, -0.3802114725112915 ]
https://github.com/huggingface/datasets/issues/365
How to augment data ?
It just feels awkward to use map to augment data. Also it means it's not possible to augment data in a non-batched way. But to be honest I have no idea of a good API...
Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ```
35
How to augment data ? Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ``` It just feels awkward to use map to augment data. Also it means it's not possible to augment data in a non-batched way. But to be honest I have no idea of a good API...
[ -0.06860502064228058, -0.030538897961378098, -0.29906535148620605, -0.11018409579992294, 0.062444403767585754, 0.3354528248310089, -0.17495843768119812, 0.27413225173950195, 0.15646108984947205, 0.13222162425518036, -0.0443681925535202, 0.09031321108341217, -0.017896531149744987, 0.21457591652870178, 0.1571810394525528, -0.11048360168933868, 0.17828109860420227, 0.11951153725385666, -0.09640686959028244, 0.2644743025302887, -0.06897029280662537, -0.46591463685035706, -0.025633739307522774, -0.5230014324188232, -0.05776967480778694, -0.1176648885011673, -0.34572556614875793, -0.26897263526916504, 0.02955261431634426, -0.3138849437236786, -0.17503222823143005, 0.04571252316236496, 0.12274997681379318, 0.22571350634098053, -0.00010226160520687699, -0.1665666401386261, 0.22023339569568634, 0.0800638422369957, -0.31304097175598145, 0.3663995563983917, 0.09282568842172623, -0.7476427555084229, 0.05950150638818741, -0.0558868870139122, -0.12086595594882965, -0.4913312494754791, 0.10320053994655609, -0.12030386924743652, 0.368680864572525, -0.19974306225776672, 0.2372494637966156, 0.031000155955553055, 0.3845409154891968, 0.006108673755079508, 0.02833680808544159, 0.40115925669670105, 0.18555380403995514, 0.062065258622169495, 0.7107817530632019, 0.12199842184782028, 0.36127805709838867, 0.0551534965634346, -0.20429861545562744, -0.06434210389852524, 0.24285170435905457, 0.0068094367161393166, 0.12729597091674805, -0.42928847670555115, 0.006451524794101715, 0.12348020076751709, 0.45344969630241394, 0.22519077360630035, -0.5979695320129395, -0.2979204058647156, 0.1898910254240036, -0.09868204593658447, -0.40960893034935, -0.03841779753565788, 0.16860102117061615, 0.04552871361374855, -0.22182150185108185, -0.21932139992713928, -0.08074372261762619, 0.399799108505249, 0.1386641412973404, 0.39182621240615845, 0.020255854353308678, -0.02499278634786606, -0.11550075560808182, -0.26878252625465393, -0.12623530626296997, 0.1236276775598526, -0.20639696717262268, 0.4528250992298126, -0.12867791950702667, -0.13737519085407257, -0.2147866189479828, -0.22924859821796417, 0.10778144001960754, 0.1561007797718048, 0.16476742923259735, 0.18957296013832092, -0.20652955770492554, 0.13170835375785828, 0.2149587720632553, -0.3526524603366852, 0.0053519257344305515, 0.12511005997657776, -0.003919750452041626, -0.1864408254623413, 0.34913307428359985, -0.09520435333251953, -0.09625588357448578, -0.05275126174092293, -0.02025202289223671, -0.12643440067768097, -0.13544461131095886, 0.048150260001420975, -0.08464467525482178, -0.05876357480883598, -0.2746986448764801, 0.13067282736301422, -0.020075198262929916, 0.05581071227788925, -0.22728633880615234, 0.08993923664093018, -0.18036788702011108, 0.2548747956752777, 0.3009604215621948, -0.21918456256389618, -0.06472230702638626, 0.11654996126890182, -0.05827576294541359, -0.09330704808235168, 0.19888260960578918, 0.14635492861270905, 0.21141904592514038, 0.035811226814985275, 0.0836595743894577, -0.10504045337438583, 0.09595564752817154, 0.026188062503933907, 0.2474200427532196, 0.14168985188007355, 0.2138691544532776, 0.04654575511813164, -0.1783532202243805, 0.16646268963813782, -0.03624066710472107, 0.12217061221599579, -0.4160357713699341, 0.012816925533115864, -0.3895322382450104, 0.2586481273174286, 0.12471913546323776, -0.24702335894107819, -0.22442908585071564, 0.3998585045337677, 0.09998250007629395, -0.29429277777671814, 0.0754983201622963, 0.18297342956066132, 0.11832549422979355, -0.34278950095176697, 0.4804633855819702, 0.0219707190990448, -0.33637967705726624, 0.02424786612391472, -0.15492016077041626, 0.343392938375473, 0.10770063102245331, -0.0038100823294371367, 0.000053656422096537426, 0.19867506623268127, -0.16525480151176453, -0.15885712206363678, 0.3236885666847229, -0.20998041331768036, -0.285999059677124, -0.023859791457653046, 0.1997103989124298, 0.07166523486375809, -0.13602198660373688, 0.3386344611644745, 0.2250986099243164, -0.012428331188857555, 0.2704176604747772, 0.47461608052253723, -0.10915274918079376, -0.18327564001083374, 0.02164495550096035, -0.18541283905506134, 0.2906925678253174, 0.19259008765220642, -0.1357133835554123, -0.13414163887500763, 0.3120120167732239, -0.5104281306266785, 0.1714840829372406, -0.2035454958677292, 0.35406360030174255, 0.1331252157688141, 0.21255947649478912, 0.3954838216304779, -0.08580078184604645, -0.2248331904411316, -0.24531497061252594, -0.0238485224545002, -0.08820895105600357, -0.19369183480739594, 0.14178121089935303, -0.25817081332206726, 0.09262015670537949, -0.12902219593524933, 0.14250904321670532, -0.35324934124946594, 0.25984105467796326, -0.22046686708927155, 0.06912851333618164, -0.5130605101585388, -0.0564299039542675, -0.16492457687854767, 0.23611149191856384, 0.06637945026159286, -0.18981996178627014, -0.041050300002098083, 0.3220970332622528, -0.31989625096321106, -0.21954531967639923, 0.337557852268219, -0.1587689071893692, -0.14906170964241028, 0.11333295702934265, 0.2951256334781647, 0.0626492127776146, 0.24539203941822052, 0.26396411657333374, 0.30634772777557373, 0.05407386273145676, 0.14005598425865173, 0.06418649852275848, 0.3234606981277466, -0.023899249732494354, -0.1454496681690216, -0.08213881403207779, 0.18681132793426514, 0.12857522070407867, 0.17231357097625732, -0.2582695782184601, 0.27777671813964844, 0.32683265209198, 0.03062942624092102, -0.12323284894227982, 0.0002804465184453875, -0.22462265193462372, -0.032574594020843506, 0.3339378535747528, -0.29608187079429626, -0.09500156342983246, 0.023765720427036285, -0.5188767910003662, -0.18178384006023407, -0.09209229797124863, -0.13160882890224457, -0.46174946427345276, -0.17246443033218384, 0.093302883207798, -0.09778372198343277, -0.18166878819465637, 0.3911100924015045, 0.11943089216947556, -0.07055603712797165, 0.29899945855140686, 0.18789689242839813, 0.04356929659843445, 0.1824370175600052, -0.05629292502999306, -0.09727743268013, 0.3971746861934662, 0.22245369851589203, 0.20890098810195923, 0.022177767008543015, 0.012448442168533802, 0.14621670544147491, -0.10392225533723831, -0.15177619457244873, -0.14043740928173065, -0.20717139542102814, 0.06443732976913452, -0.6927344799041748, -0.16954295337200165, -0.4011867344379425, -0.08225411921739578, 0.24752892553806305, -0.22638468444347382, 0.024604951962828636, 0.15771351754665375, 0.1307263821363449, 0.027636392042040825, -0.24046654999256134, -0.01178601011633873, 0.2374352663755417, 0.04632071405649185, 0.2038215696811676, 0.009705916978418827, 0.03058517910540104, 0.5850217938423157, 0.1105983778834343, 0.22220738232135773, -0.15313392877578735, -0.48711639642715454, -0.16130366921424866, 0.12272263318300247, 0.20281431078910828, 0.1914290189743042, -0.045510221272706985, -0.061630427837371826, -0.18747177720069885, -0.11299590766429901, -0.16464443504810333, 0.1367577761411667, -0.15633678436279297, -0.13176846504211426, -0.06782454252243042, -0.22244000434875488, 0.15383020043373108, -0.42058220505714417, -0.2322578728199005, 0.08452159911394119, 0.1622946560382843, 0.04189244657754898, -0.21985019743442535, 0.22728505730628967, 0.01556823868304491, 0.0743989422917366, -0.0559057779610157, -0.11848767846822739, -0.17907080054283142, 0.5194661021232605, -0.26353031396865845, 0.004639450926333666, -0.011184749193489552, -0.3212350308895111, 0.15506711602210999, 0.15276549756526947, -0.010233065113425255, -0.27066126465797424, -0.07872115075588226, 0.06890498846769333, -0.1759997457265854, 0.15950323641300201, 0.08222758024930954, -0.19646380841732025, -0.13517910242080688, 0.08171992003917694, -0.043984897434711456, -0.004975961986929178, 0.3328837752342224, 0.16566155850887299, -0.05086357146501541, -0.11120719462633133, -0.11765488982200623, 0.09942546486854553, 0.11967150866985321, -0.10479109734296799, 0.1222110316157341, -0.22795091569423676, 0.13508035242557526, -0.008105076849460602, -0.07076521962881088, -0.1330641806125641, -0.15150971710681915, -0.1862458735704422, -0.024810725823044777, 0.28467434644699097, -0.13250358402729034, 0.0450831837952137, -0.1982477456331253, -0.4388127326965332, -0.07209531962871552, 0.09538618475198746, -0.4609333872795105, 0.23186156153678894, -0.24552901089191437, -0.12522950768470764, -0.42143067717552185, -0.2600916624069214, 0.04421887919306755, -0.14153721928596497, 0.2868056297302246, -0.04178475961089134, -0.30277886986732483, -0.08758114278316498, -0.5137755274772644, 0.6783245801925659, 0.2343791276216507, 0.1515178680419922, 0.46634888648986816, -0.048782628029584885, 0.13672474026679993, -0.01998564414680004, 0.3645620048046112, -0.23933500051498413, -0.4498533010482788, -0.19443096220493317, 0.08655378967523575, -0.25274309515953064, -0.04415573552250862, -0.3235738277435303, 0.11600656062364578, 0.3699187934398651, 0.3898537755012512, 0.036868974566459656, 0.06401557475328445, 0.30465933680534363, 0.48866015672683716, -0.14222894608974457, 0.011883768253028393, 0.15540747344493866, -0.13883039355278015, -0.09509633481502533, 0.03974644094705582, 0.06082538142800331, -0.005151577293872833, 0.48578590154647827, -0.2444622963666916, -0.1724439412355423, 0.1839727759361267, 0.3422127366065979, 0.08258262276649475, 0.24988912045955658, 0.31703588366508484, 0.002291453070938587, -0.05813351273536682, 0.07591461390256882, 0.4048272967338562, 0.25554606318473816, -0.13851401209831238, -0.32915908098220825, -0.2433082014322281, -0.4462718963623047, 0.7755662798881531, -0.3907983601093292, 0.31915780901908875, 0.37198606133461, -0.2240990549325943, -0.036926817148923874, -0.4037375748157501, 0.15919026732444763, 0.12959440052509308, 0.19807621836662292, -0.3826715052127838, -0.6550889611244202, 0.11262425035238266, 0.017324235290288925, -0.022280950099229813, 0.2155146449804306, -0.22854453325271606, -0.01458676252514124, 0.3182496726512909, 0.4359506070613861, 0.6240630745887756, 0.3476092517375946, 0.04055659472942352, -0.06117473170161247, -0.21393205225467682, 0.33331432938575745, -0.11159703880548477, 0.21514587104320526, -0.01510400976985693, -0.13312917947769165, -0.018274890258908272, 0.09515093266963959, -0.018847612664103508, 0.21447886526584625, -0.04719850420951843, 0.2760602533817291, -0.12955538928508759, 0.08131309598684311, -0.06964752823114395, 0.06080454960465431, 0.2009560912847519, -0.2505064010620117, -0.009263427928090096, 0.23171840608119965, 0.04164760932326317, -0.30464205145835876, -0.19591468572616577, -0.021304672583937645, -0.06098917871713638, 0.1346798688173294, -0.15533745288848877, -0.06586088240146637, -0.07603590190410614, -0.029990842565894127, 0.3038136065006256, -0.22880029678344727, -0.14120067656040192, -0.033928997814655304, -0.025702644139528275, 0.4377288818359375, 0.003388375975191593, 0.06006989628076553, 0.10747387260198593, 0.19665402173995972, -0.11270865052938461, -0.0034194174222648144, 0.2407532036304474, 0.11894109100103378, -0.18466775119304657, 0.2388109266757965, 0.14559614658355713, -0.4697570502758026, -0.2768242359161377, 0.00034751000930555165, 0.010770627297461033, -0.30055439472198486, -0.12409649789333344, 0.4121630787849426, 0.03567923977971077, -0.1533351093530655, 0.1705082207918167, 0.26696041226387024, -0.3707015812397003, 0.31037917733192444, 0.12994177639484406, -0.18794380128383636, -0.05950581282377243, 0.0679805800318718, 0.054050493985414505, -0.37364503741264343, 0.4893713593482971, -0.05585964769124985, 0.0053876228630542755, -0.17900429666042328, -0.1076263040304184, 0.09151521325111389, 0.21147187054157257, -0.23394405841827393, 0.09858706593513489, 0.1644650548696518, 0.19823291897773743, -0.12072864919900894, 0.1492043286561966, 0.07059349864721298, -0.1806439608335495, -0.38860586285591125, -0.5093192458152771, 0.2766163945198059, 0.32276684045791626, 0.23748767375946045, 0.11553385108709335, 0.020769642665982246, -0.22411544620990753, 0.5227140188217163, -0.360115110874176, 0.09425164014101028, 0.39921000599861145, 0.1778460294008255, 0.036668453365564346, 0.039864201098680496, -0.111874520778656, -0.06685631722211838, 0.20689734816551208, -0.11605752259492874, 0.06475389003753662, -0.2455609291791916, -0.026257632300257683, 0.04539729282259941, -0.04026804864406586, 0.05136091634631157, -0.06313563883304596, -0.02527790516614914, 0.015597440302371979, -0.5234678983688354, 0.01478972565382719, -0.12476542592048645, -0.10390972346067429, 0.10252931714057922, 0.2808090150356293, 0.2882388234138489, -0.18438051640987396, 0.21786874532699585, -0.10109344869852066, -0.05903205648064613, 0.05835624411702156, 0.0271071195602417, 0.24433633685112, -0.06234269216656685, 0.2635533809661865, 0.15394183993339539, 0.31843429803848267, -0.2002071887254715, 0.023245761170983315, 0.1509006917476654, 0.013754009269177914, -0.09278960525989532, 0.22797097265720367, 0.2638510465621948, 0.1314636468887329, 0.2674960792064667, 0.38911017775535583, 0.36250150203704834, -0.210479736328125, 0.055090297013521194, 0.24484187364578247, 0.17265808582305908, 0.15296827256679535, 0.17741276323795319, 0.21894700825214386, 0.04912842810153961, -0.08191116154193878, -0.07997184991836548, 0.06849094480276108, -0.04678798466920853, -0.028064047917723656, 0.38508090376853943, -0.10993363708257675, -0.31746533513069153, -0.06247125566005707, -0.01031514722853899, -0.03002690151333809, 0.039894990622997284, 0.033257968723773956, 0.39492592215538025, 0.578995406627655, -0.21485358476638794, -0.05976280942559242, -0.21565565466880798, 0.14465658366680145, 0.2955489158630371, 0.2111574411392212, 0.47738343477249146, 0.5241519808769226, 0.3342821002006531, 0.03885241225361824, -0.338642954826355, -0.019138896837830544, 0.05986412242054939, 0.1324779987335205, 0.013039461337029934, -0.01742447167634964, -0.13905493915081024, -0.23025093972682953, -0.1648152768611908, 0.2870807647705078, -0.39545759558677673, 0.06607542932033539, -0.19788774847984314, -0.0959368348121643, -0.14312832057476044, 0.16667069494724274, 0.22474214434623718, 0.15810859203338623, -0.3085293471813202, -0.0760013610124588, 0.0208600927144289, -0.0995980054140091, 0.1876102089881897, 0.21367080509662628, 0.21489597856998444, -0.023328140377998352, -0.12481317669153214, 0.33048155903816223, -0.2685583829879761, -0.07254250347614288, -0.19516801834106445, -0.001498349942266941, -0.01017708145081997, -0.11384695768356323, 0.003189765615388751, 0.2585466504096985, -0.16977626085281372, 0.24494031071662903, -0.12409965693950653, 0.23838083446025848, -0.45895907282829285, 0.08382853865623474, 0.26790568232536316, -0.4813741147518158, -0.05077546834945679, -0.2813661992549896, -0.15765997767448425, -0.3973487615585327, 0.18483904004096985, -0.43073031306266785, -0.16209588944911957, 0.1841869205236435, 0.14414434134960175, -0.1859399378299713, 0.5007235407829285, 0.7532902359962463, 0.21484489738941193, 0.1294792741537094, -0.2797745168209076, -0.3995547592639923, 0.17988672852516174, -0.06664004176855087, -0.10610777884721756, -0.09726008027791977, -0.1658453345298767, 0.29760074615478516, 0.01566978730261326, 0.3528473377227783, -0.05968225747346878, -0.23331232368946075, 0.09005573391914368, -0.1315961331129074, 0.2456474006175995, -0.13325002789497375, 0.3043701648712158, 0.18254826962947845, 0.018743595108389854, -0.10658865422010422, -0.06901512295007706, 0.12484484910964966, -0.11453022807836533, 0.023936329409480095, 0.13870814442634583, -0.017999541014432907, 0.4528108239173889, 0.29021841287612915, 0.09226378798484802, -0.4518586993217468, 0.023294981569051743, -0.3329675495624542, 0.03473054617643356, -0.34048959612846375, 0.3179118037223816, -0.11970862746238708, 0.11957307904958725, -0.052570175379514694, -0.12634696066379547, 0.24018675088882446, 0.2379944771528244, -0.09419527649879456, -0.09371031820774078, -0.23296035826206207, 0.16388115286827087, -0.287490576505661, -0.25578004121780396, -0.06934688985347748, 0.12232871353626251, 0.08132028579711914, -0.0710071250796318, 0.06952118128538132, 0.052532996982336044, -0.06445149332284927, -0.19067683815956116, -0.12124208360910416, -0.5665043592453003, -0.07191801071166992, 0.042679380625486374, 0.14912593364715576, -0.30138924717903137, -0.22431202232837677, 0.342287540435791, 0.08643662929534912, -0.006353950127959251, 0.4844031035900116, -0.16972677409648895, -0.2994276285171509, -0.15396036207675934, 0.23517756164073944, 0.1029728502035141, 0.010391058400273323, -0.3394874036312103, -0.38075947761535645 ]
https://github.com/huggingface/datasets/issues/365
How to augment data ?
Or for non-batched samples, how about returning a tuple ? ```python def aug(sample): # Simply copy the existing data to have x2 amount of data return sample, sample dataset = dataset.map(aug) ``` It feels really natural and easy, but : * it means the behavior with batched data is different * I don't know how doable it is backend-wise @lhoestq
Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ```
60
How to augment data ? Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ``` Or for non-batched samples, how about returning a tuple ? ```python def aug(sample): # Simply copy the existing data to have x2 amount of data return sample, sample dataset = dataset.map(aug) ``` It feels really natural and easy, but : * it means the behavior with batched data is different * I don't know how doable it is backend-wise @lhoestq
[ -0.06329945474863052, -0.05564656853675842, -0.2771683633327484, -0.036863286048173904, 0.060491759330034256, 0.20088142156600952, -0.08675964921712875, 0.3342859148979187, 0.23163022100925446, 0.1316540688276291, -0.043929196894168854, 0.1579209566116333, -0.08911208808422089, 0.22971147298812866, 0.16993477940559387, -0.08233952522277832, 0.11748187243938446, 0.10526441782712936, -0.23275503516197205, 0.13783042132854462, -0.15907877683639526, -0.42876362800598145, -0.0023527052253484726, -0.556016206741333, -0.05300223454833031, -0.14001043140888214, -0.2512088418006897, -0.15608875453472137, -0.0858924463391304, -0.2709835469722748, -0.1612512320280075, -0.003436742816120386, 0.06910714507102966, 0.2275175303220749, -0.00010089308489114046, -0.1184827908873558, 0.16405713558197021, -0.009550937451422215, -0.349393755197525, 0.32998621463775635, 0.115672767162323, -0.6480943560600281, 0.02773020602762699, -0.1890926957130432, -0.07956669479608536, -0.38082659244537354, 0.024903399869799614, -0.13722679018974304, 0.3346523642539978, -0.22322824597358704, 0.2483513355255127, 0.0744483470916748, 0.27887073159217834, -0.02020839788019657, 0.09429480880498886, 0.40975430607795715, 0.1738615483045578, 0.010954296216368675, 0.7498840689659119, 0.12459870427846909, 0.2768816351890564, 0.1257323920726776, -0.1657392829656601, -0.021630411967635155, 0.1608051359653473, 0.038264136761426926, 0.2337285429239273, -0.3121768832206726, 0.013891435228288174, 0.07775537669658661, 0.2978188097476959, 0.1781383603811264, -0.572519063949585, -0.2732102572917938, 0.11899426579475403, -0.1241757944226265, -0.44458267092704773, -0.07845818251371384, 0.09917283803224564, 0.000963302911259234, -0.259244441986084, -0.11054829508066177, -0.0711178109049797, 0.44023847579956055, 0.08913473784923553, 0.4257207214832306, 0.03236915543675423, -0.002546614734455943, -0.1321633756160736, -0.2531956732273102, -0.18322211503982544, 0.09751569479703903, -0.12464898824691772, 0.4209011495113373, -0.05795082822442055, -0.1266137957572937, -0.06774391978979111, -0.3055941164493561, 0.18588854372501373, 0.10997263342142105, 0.19293855130672455, 0.21069425344467163, -0.2272467315196991, 0.15421749651432037, 0.26585835218429565, -0.2425050437450409, -0.00228945747949183, 0.20415709912776947, -0.07587016373872757, -0.16932259500026703, 0.22397758066654205, -0.04770071804523468, -0.06557697802782059, -0.006086580455303192, -0.02693946100771427, -0.038216739892959595, -0.06314456462860107, 0.09743686765432358, -0.10659903287887573, 0.01049126498401165, -0.17879724502563477, 0.032260216772556305, -0.04190107062458992, 0.10704163461923599, -0.1549941599369049, 0.05900629609823227, -0.1547713279724121, 0.22810496389865875, 0.2352561503648758, -0.2266720086336136, -0.16330230236053467, 0.08020006865262985, -0.08959757536649704, -0.20126990973949432, 0.21891511976718903, 0.2489345520734787, 0.27412664890289307, -0.04908478632569313, 0.14571133255958557, -0.08276379853487015, 0.13499589264392853, 0.0380837619304657, 0.3588126003742218, 0.11160481721162796, 0.24214130640029907, 0.005164977163076401, -0.10183151811361313, 0.17014659941196442, -0.09626799821853638, 0.0845353752374649, -0.3631032705307007, -0.06551346927881241, -0.3703004717826843, 0.2830744683742523, 0.026530897244811058, -0.11390702426433563, -0.254206120967865, 0.33720049262046814, 0.18853528797626495, -0.18186621367931366, 0.08964381366968155, 0.05952826887369156, 0.11524250358343124, -0.36699339747428894, 0.4468906819820404, 0.11341040581464767, -0.373280793428421, 0.02272752672433853, -0.09595482796430588, 0.29313209652900696, 0.06770318746566772, 0.07071273028850555, -0.08004837483167648, 0.1440468430519104, -0.21602892875671387, -0.09712103754281998, 0.4118105471134186, -0.1938968002796173, -0.31950291991233826, -0.017014071345329285, 0.16350069642066956, 0.15720868110656738, -0.08283710479736328, 0.25763702392578125, 0.32373368740081787, -0.010577348060905933, 0.34847331047058105, 0.43475106358528137, -0.1468312293291092, -0.15055808424949646, -0.05936490744352341, -0.1252630054950714, 0.29158297181129456, 0.11384853720664978, -0.13476580381393433, -0.0784992054104805, 0.3138871192932129, -0.49481257796287537, 0.25851744413375854, -0.20500431954860687, 0.3731136620044708, 0.02739851176738739, 0.2850511372089386, 0.3254343569278717, -0.08620215207338333, -0.17558513581752777, -0.335818350315094, -0.03841710090637207, -0.18738976120948792, -0.20333252847194672, 0.15396267175674438, -0.2810041308403015, 0.020397374406456947, -0.04878069460391998, 0.09394506365060806, -0.3281690180301666, 0.29757335782051086, -0.2360195815563202, 0.07403500378131866, -0.48091942071914673, -0.04141973704099655, -0.24683891236782074, 0.1729852855205536, 0.04218709468841553, -0.22507226467132568, -0.0013357801362872124, 0.2824295163154602, -0.3155226409435272, -0.27433475852012634, 0.3438548445701599, -0.1667289286851883, -0.1599196344614029, 0.13412033021450043, 0.2437434047460556, 0.03343789651989937, 0.15773455798625946, 0.24640873074531555, 0.15871141850948334, -0.007062840741127729, 0.225077822804451, 0.13977357745170593, 0.2573009431362152, -0.1308218389749527, -0.19302798807621002, -0.053935706615448, 0.2313878983259201, 0.11184234172105789, 0.19382119178771973, -0.23549765348434448, 0.22264282405376434, 0.2522434890270233, -0.0014302629278972745, -0.16259686648845673, -0.10344350337982178, -0.25910690426826477, 0.03647985681891441, 0.38683247566223145, -0.2824321985244751, -0.057885926216840744, 0.096674345433712, -0.3447911739349365, -0.1486646682024002, -0.07396740466356277, -0.2248089760541916, -0.4727671444416046, -0.20040297508239746, 0.10418257117271423, 0.01749502308666706, -0.052300453186035156, 0.4373728036880493, 0.19975776970386505, -0.09586341679096222, 0.365217387676239, 0.17582999169826508, 0.007163168862462044, 0.134138822555542, -0.0781104564666748, 0.056546762585639954, 0.4229621887207031, 0.14540186524391174, 0.1783401221036911, 0.04958789795637131, 0.04054330289363861, 0.07784196734428406, -0.10194753855466843, -0.234795480966568, -0.06077149510383606, -0.19699634611606598, 0.03598145768046379, -0.645763635635376, -0.1388043910264969, -0.3514399230480194, -0.07892967760562897, 0.27207767963409424, -0.3246181905269623, -0.0186638031154871, 0.0961516723036766, 0.09402147680521011, 0.06816361844539642, -0.2781272530555725, 0.07357247918844223, 0.23369427025318146, 0.029743434861302376, 0.21810424327850342, -0.0871240645647049, 0.0034386166371405125, 0.5335658192634583, 0.18267299234867096, 0.1518414169549942, -0.16397731006145477, -0.4550439119338989, -0.08373761177062988, 0.07827845960855484, 0.2234657108783722, 0.3338843286037445, -0.03332381695508957, -0.03056947886943817, -0.23490048944950104, 0.01229202002286911, -0.04777546599507332, 0.03193943202495575, -0.15809832513332367, -0.06038650870323181, -0.05062076821923256, -0.2878418564796448, 0.057304155081510544, -0.40498796105384827, -0.2539069652557373, 0.06818541884422302, 0.21930575370788574, 0.11333441734313965, -0.19748848676681519, 0.28855711221694946, -0.02210085280239582, 0.14971046149730682, -0.2128755897283554, -0.2604112923145294, -0.21324510872364044, 0.5349240899085999, -0.31959232687950134, 0.05046680569648743, -0.12545526027679443, -0.38931694626808167, 0.27633920311927795, 0.291227787733078, 0.017254985868930817, -0.29478463530540466, 0.04366493225097656, 0.10515736788511276, -0.10989248752593994, 0.2192491888999939, 0.2075725942850113, -0.1153016909956932, -0.16863477230072021, -0.04329369217157364, 0.05793255940079689, 0.050036266446113586, 0.37314945459365845, 0.23423917591571808, -0.15227368474006653, -0.1461694836616516, -0.077628955245018, 0.19711725413799286, 0.07837950438261032, -0.07745246589183807, 0.127308189868927, -0.14766094088554382, 0.11181943863630295, -0.025834765285253525, -0.07679971307516098, -0.18383951485157013, -0.1954326182603836, -0.27687889337539673, -0.005143611691892147, 0.18640097975730896, -0.06206449493765831, 0.08979184925556183, -0.09011425822973251, -0.41383787989616394, -0.14335772395133972, 0.2293684482574463, -0.4528880715370178, 0.18332616984844208, -0.17981916666030884, -0.05390924960374832, -0.5003436207771301, -0.0958317294716835, -0.032105591148138046, -0.2795138955116272, 0.33147579431533813, -0.08261021971702576, -0.4040454924106598, 0.010643710382282734, -0.4854612648487091, 0.661072313785553, 0.27180689573287964, 0.02657240442931652, 0.5393347144126892, -0.18537238240242004, 0.032560061663389206, 0.0023206414189189672, 0.40789633989334106, -0.26258453726768494, -0.3478538393974304, -0.11251543462276459, 0.0016583518590778112, -0.28872522711753845, -0.09324357658624649, -0.33494794368743896, 0.12296143174171448, 0.37084388732910156, 0.38972073793411255, -0.02383933588862419, 0.13304933905601501, 0.25253021717071533, 0.41040852665901184, -0.16560569405555725, 0.0772891491651535, 0.10771976411342621, -0.0894366130232811, -0.0334254652261734, 0.035729389637708664, 0.03113008476793766, -0.0031644925475120544, 0.4475533664226532, -0.28725364804267883, -0.13445188105106354, 0.1289491057395935, 0.28316858410835266, 0.10023824125528336, 0.37884995341300964, 0.22318461537361145, 0.016168981790542603, -0.1264464408159256, 0.059214476495981216, 0.39049041271209717, 0.3411538898944855, -0.25313910841941833, -0.2315784990787506, -0.20586861670017242, -0.5123683214187622, 0.6896959543228149, -0.2535889744758606, 0.2955571413040161, 0.3373092710971832, -0.35105329751968384, 0.018825411796569824, -0.340611070394516, 0.17010407149791718, 0.10075616836547852, 0.08428065478801727, -0.34590670466423035, -0.59095698595047, 0.05313463881611824, -0.1161704808473587, -0.04685205966234207, 0.18681973218917847, -0.30118638277053833, -0.12002784013748169, 0.4250341057777405, 0.448089599609375, 0.5949047207832336, 0.3401120901107788, 0.08707325160503387, -0.055773667991161346, -0.03332803025841713, 0.2986181378364563, -0.07625836133956909, 0.14410290122032166, -0.025899315252900124, -0.07500559836626053, 0.015106492675840855, 0.09212552011013031, -0.07611821591854095, 0.32335394620895386, -0.08409254997968674, 0.15749838948249817, -0.1557348668575287, 0.007781741674989462, -0.11164723336696625, 0.053985629230737686, 0.22075365483760834, -0.1985207200050354, -0.021007385104894638, 0.23529008030891418, 0.03355524316430092, -0.2614862620830536, -0.17236113548278809, -0.07046516984701157, -0.10752179473638535, 0.03037024289369583, -0.06263043731451035, -0.04714890196919441, -0.1693156510591507, 0.006260918453335762, 0.30742812156677246, -0.27848729491233826, -0.2213052362203598, -0.10353924334049225, -0.06844247877597809, 0.44304782152175903, 0.04714388772845268, 0.03541764244437218, 0.21933239698410034, 0.30945631861686707, -0.06414894014596939, -0.06891739368438721, 0.2699543833732605, 0.15166406333446503, -0.1144075021147728, 0.2225412279367447, 0.13024280965328217, -0.4746190309524536, -0.3539476990699768, 0.011416809633374214, -0.0010119748767465353, -0.4632716178894043, -0.1342923790216446, 0.4919711947441101, -0.007393696811050177, -0.1561768800020218, 0.16996043920516968, 0.21097272634506226, -0.41438180208206177, 0.3574542999267578, 0.15021920204162598, -0.1570006012916565, -0.009638790972530842, 0.08310063183307648, 0.15532498061656952, -0.27400439977645874, 0.41140955686569214, -0.04079287126660347, 0.03347540274262428, -0.22004321217536926, -0.22465330362319946, 0.1850559413433075, 0.09832851588726044, -0.11285906285047531, 0.09885025769472122, 0.10106304287910461, 0.11593309789896011, -0.001839672913774848, 0.10435215383768082, 0.20664101839065552, -0.19129493832588196, -0.29858261346817017, -0.5659022927284241, 0.3158523142337799, 0.38640230894088745, 0.2673148214817047, 0.05490020290017128, 0.1596599817276001, -0.288972944021225, 0.5095266699790955, -0.395359605550766, 0.016590610146522522, 0.3821212947368622, 0.2297486811876297, 0.041596151888370514, -0.011908871121704578, -0.019581643864512444, -0.04967484623193741, 0.2320820391178131, -0.043330226093530655, -0.03430236876010895, -0.2969151437282562, -0.045101091265678406, 0.033753544092178345, -0.06894080340862274, 0.10604974627494812, -0.0016052824212238193, 0.13313253223896027, 0.09117045998573303, -0.4856990575790405, 0.07865115255117416, -0.02352198213338852, -0.07837110012769699, 0.14187286794185638, 0.31874170899391174, 0.33814549446105957, -0.15515932440757751, 0.2361299842596054, -0.09278733283281326, -0.02697046846151352, 0.02847256325185299, 0.08292019367218018, 0.17815734446048737, -0.08960577845573425, 0.19781546294689178, 0.13715144991874695, 0.23711241781711578, -0.013012189418077469, 0.13607285916805267, 0.16718333959579468, 0.013783103786408901, -0.1930587887763977, 0.27491554617881775, 0.2787076532840729, 0.08962110430002213, 0.20424531400203705, 0.2675209939479828, 0.41823774576187134, -0.2221464216709137, 0.11892015486955643, 0.19312147796154022, 0.09851258248090744, 0.17229917645454407, 0.20651449263095856, 0.16169187426567078, 0.09202967584133148, 0.019703028723597527, -0.05659908801317215, 0.12042006850242615, -0.044184617698192596, -0.0036650828551501036, 0.40700551867485046, -0.12919454276561737, -0.2746012508869171, -0.14285002648830414, -0.1386280506849289, 0.011245058849453926, 0.046212829649448395, 0.05057750642299652, 0.43574216961860657, 0.5020408630371094, -0.22151543200016022, -0.038113027811050415, -0.18221160769462585, 0.18334396183490753, 0.34434619545936584, 0.20335368812084198, 0.6369603872299194, 0.4767530858516693, 0.3960193395614624, 0.019037939608097076, -0.334127813577652, -0.022868681699037552, 0.04559612274169922, 0.06437180936336517, 0.023312730714678764, -0.05587857589125633, -0.13450725376605988, -0.2604806423187256, -0.12582695484161377, 0.18253017961978912, -0.3170453608036041, 0.09324053674936295, -0.24001774191856384, -0.09769212454557419, -0.2019861340522766, 0.1359676867723465, 0.07500702887773514, 0.12254253029823303, -0.3271107077598572, -0.005100497975945473, 0.07152111083269119, -0.06446857005357742, 0.15214435756206512, 0.23371194303035736, 0.17770856618881226, 0.03456706926226616, -0.03133271634578705, 0.2604061961174011, -0.24685855209827423, -0.0641295462846756, -0.3413466513156891, -0.10323988646268845, -0.02929133176803589, -0.14202724397182465, 0.11729367822408676, 0.2845402956008911, -0.21585944294929504, 0.254085898399353, -0.0543985553085804, 0.02788364700973034, -0.32204318046569824, 0.11233647912740707, 0.30168673396110535, -0.5159485340118408, -0.10867452621459961, -0.2909238934516907, -0.2737603485584259, -0.41260555386543274, 0.0989285558462143, -0.38855162262916565, -0.04305878281593323, 0.1713315099477768, 0.15356852114200592, -0.14312252402305603, 0.5102577805519104, 0.6492154002189636, 0.18049605190753937, -0.013903378508985043, -0.24361944198608398, -0.3587188720703125, 0.22360573709011078, -0.08854248374700546, -0.10903042554855347, -0.145337775349617, -0.008895562030375004, 0.3029862642288208, 0.02625238336622715, 0.2671390473842621, -0.05041487142443657, -0.35453417897224426, 0.18820571899414062, -0.1807931363582611, 0.17389564216136932, -0.18747131526470184, 0.27078619599342346, 0.2503412067890167, -0.09936993569135666, -0.13842827081680298, 0.017048683017492294, 0.16610483825206757, -0.15525515377521515, 0.016129301860928535, 0.09091421216726303, 0.103541798889637, 0.48253127932548523, 0.3226458728313446, 0.056397076696157455, -0.4423964023590088, -0.05053362250328064, -0.33349373936653137, 0.0036296274047344923, -0.29955846071243286, 0.2854172885417938, -0.054750096052885056, 0.18130435049533844, 0.02677931822836399, -0.17954672873020172, 0.160904660820961, 0.27773404121398926, -0.0023229019716382027, -0.1297568827867508, -0.22781698405742645, 0.24743051826953888, -0.2702028453350067, -0.2676486372947693, -0.12347610294818878, 0.17614687979221344, 0.04892950505018234, -0.009259571321308613, 0.011042671278119087, -0.06469786167144775, 0.013661906123161316, -0.19576987624168396, -0.12206248939037323, -0.5525932312011719, 0.02907501719892025, 0.06592059135437012, -0.0016198105877265334, -0.38001152873039246, -0.2454475611448288, 0.36845800280570984, 0.10215522348880768, -0.011796724051237106, 0.40228721499443054, -0.16927598416805267, -0.27769914269447327, -0.18907076120376587, 0.24031859636306763, 0.08509193360805511, -0.08212368935346603, -0.25698181986808777, -0.41971826553344727 ]
https://github.com/huggingface/datasets/issues/365
How to augment data ?
As we're working with arrow's columnar format we prefer to play with batches that are dictionaries instead of tuples. If we have tuple it implies to re-format the data each time we want to write to arrow, which can lower the speed of map for example. It's also a matter of coherence, as we don't want users to be confused whether they have to return dictionaries for some functions and tuples for others when they're doing batches.
Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ```
77
How to augment data ? Is there any clean way to augment data ? For now my work-around is to use batched map, like this : ```python def aug(samples): # Simply copy the existing data to have x2 amount of data for k, v in samples.items(): samples[k].extend(v) return samples dataset = dataset.map(aug, batched=True) ``` As we're working with arrow's columnar format we prefer to play with batches that are dictionaries instead of tuples. If we have tuple it implies to re-format the data each time we want to write to arrow, which can lower the speed of map for example. It's also a matter of coherence, as we don't want users to be confused whether they have to return dictionaries for some functions and tuples for others when they're doing batches.
[ -0.04496312886476517, 0.03150589391589165, -0.26236051321029663, -0.06203242018818855, 0.0712590143084526, 0.17408235371112823, -0.04355528950691223, 0.2856452167034149, 0.29270580410957336, 0.06880207359790802, -0.04522867128252983, 0.27667027711868286, -0.0615260936319828, 0.09913720935583115, 0.013435568660497665, -0.2535325884819031, 0.14736825227737427, 0.14977741241455078, -0.30477917194366455, 0.18896876275539398, -0.10461968928575516, -0.3813798129558563, -0.0792352631688118, -0.4454677104949951, -0.12650693953037262, -0.2560839056968689, -0.13768643140792847, -0.2588270902633667, -0.029153291136026382, -0.41978996992111206, -0.11894938349723816, -0.10647391527891159, 0.03213582932949066, 0.21908864378929138, -0.00010703937005018815, -0.07775872945785522, 0.3182467222213745, 0.07587628066539764, -0.32917487621307373, 0.2881883382797241, 0.07442425936460495, -0.5883305668830872, 0.18959277868270874, -0.14833758771419525, 0.0005677294684574008, -0.5663413405418396, -0.003855930408462882, -0.22134554386138916, 0.42425769567489624, -0.14641667902469635, 0.21430666744709015, -0.0009619625634513795, 0.3605852723121643, 0.11512598395347595, 0.24991440773010254, 0.33508065342903137, -0.03613610193133354, 0.05288921669125557, 0.6350507736206055, 0.0298004113137722, 0.1589232236146927, 0.27706676721572876, -0.02031901478767395, -0.08617263287305832, 0.12914855778217316, 0.1219947412610054, 0.18450425565242767, -0.23381514847278595, 0.0329689122736454, 0.1512700766324997, 0.4620937407016754, 0.15983979403972626, -0.549264669418335, -0.12958230078220367, 0.058723196387290955, -0.08401129394769669, -0.28293105959892273, -0.16894781589508057, 0.10158591717481613, 0.0041411747224628925, -0.005486709531396627, -0.16555306315422058, -0.0878734290599823, 0.44079917669296265, 0.14861363172531128, 0.42736175656318665, 0.06450600922107697, 0.06998182088136673, -0.09954158216714859, -0.27753177285194397, -0.09161344915628433, 0.14966608583927155, -0.16024337708950043, 0.410500168800354, -0.07137705385684967, -0.012885595671832561, -0.2568861246109009, -0.33340945839881897, 0.0220551285892725, 0.1018831729888916, 0.3761993646621704, 0.19020135700702667, -0.16301913559436798, 0.09823908656835556, 0.274686336517334, -0.20059417188167572, 0.01424497738480568, 0.24765729904174805, -0.10375306755304337, -0.2508896589279175, 0.2756492495536804, -0.056203216314315796, -0.08327680826187134, -0.07847079634666443, 0.07063634693622589, -0.17465218901634216, -0.22136643528938293, 0.07923921942710876, 0.004904312081634998, 0.019723819568753242, -0.017555460333824158, 0.07448054850101471, -0.08324795216321945, 0.14532475173473358, -0.053471893072128296, 0.2024695873260498, -0.18786309659481049, 0.24925647675991058, 0.30359888076782227, -0.06390643119812012, -0.06254199892282486, 0.07524257898330688, -0.2145078033208847, -0.2098858803510666, 0.07729596644639969, 0.37090104818344116, 0.18557453155517578, -0.010002538561820984, 0.0702606812119484, -0.07705948501825333, 0.10915063321590424, -0.12979325652122498, 0.4284987151622772, 0.0761953666806221, 0.056846290826797485, 0.031752798706293106, -0.1038796678185463, 0.0815591812133789, -0.021987974643707275, 0.12197361141443253, -0.3230211138725281, -0.041844092309474945, -0.4821164608001709, 0.1992630958557129, 0.16217771172523499, -0.14132875204086304, -0.2607143223285675, 0.2704458236694336, 0.17664262652397156, -0.33630669116973877, 0.15164346992969513, 0.07754262536764145, 0.20248769223690033, -0.49909210205078125, 0.34276798367500305, 0.04461763799190521, -0.41701459884643555, 0.032852672040462494, -0.10635358840227127, 0.42345473170280457, 0.2125748097896576, 0.13933216035366058, -0.16232216358184814, 0.03434733673930168, -0.05782177299261093, -0.013651711866259575, 0.58732008934021, -0.25021567940711975, -0.2744024991989136, -0.008610379882156849, 0.1392575353384018, 0.15362147986888885, -0.06923666596412659, 0.24538253247737885, 0.15630297362804413, 0.024997515603899956, 0.2388843297958374, 0.4077870845794678, -0.00656109256669879, -0.14385223388671875, 0.0002215307322330773, -0.08870723098516464, 0.1144867092370987, 0.15124393999576569, -0.2663126289844513, -0.33064842224121094, 0.3042259216308594, -0.6410688757896423, 0.213204488158226, -0.2068174183368683, 0.41857779026031494, 0.08800379186868668, 0.2264775037765503, 0.3680988550186157, 0.02274702861905098, -0.014894523657858372, -0.3838595747947693, -0.02065015211701393, -0.0569172129034996, -0.23034238815307617, -0.046718746423721313, -0.259500116109848, 0.00553598627448082, 0.04649211838841438, 0.10186243802309036, -0.17221654951572418, 0.21308262646198273, -0.2088260054588318, 0.10285860300064087, -0.44346120953559875, -0.022121122106909752, -0.21941642463207245, 0.062004245817661285, 0.08422820270061493, -0.05937221646308899, -0.048871997743844986, 0.2604755163192749, -0.3671446740627289, -0.27660226821899414, 0.32870879769325256, -0.26762959361076355, -0.08744318783283234, 0.00669550895690918, 0.30334097146987915, 0.21575064957141876, 0.16850189864635468, 0.1334197223186493, 0.15849848091602325, -0.03533872589468956, 0.06638633459806442, 0.14973127841949463, 0.2639792561531067, 0.04538913816213608, -0.16593441367149353, -0.16545508801937103, 0.20215760171413422, 0.04542528837919235, 0.30240610241889954, -0.20255407691001892, 0.2945612370967865, 0.3530866503715515, 0.05623027682304382, -0.19309101998806, -0.09532319009304047, -0.20777645707130432, -0.09791617095470428, 0.3189951777458191, -0.23927557468414307, -0.0645776242017746, 0.0109407315030694, -0.20848603546619415, 0.025827685371041298, 0.02239847183227539, -0.19275367259979248, -0.5307367444038391, -0.10574184358119965, 0.1869874745607376, 0.08481533080339432, -0.1719254106283188, 0.339971661567688, 0.12590089440345764, -0.2647232711315155, 0.25183460116386414, 0.09087863564491272, 0.07779358327388763, 0.09991095960140228, 0.15628281235694885, 0.009763550013303757, 0.3862094283103943, 0.08889350295066833, 0.09863404184579849, 0.03927646577358246, 0.042665403336286545, 0.037028223276138306, -0.008317604660987854, -0.16056819260120392, 0.00011021743557648733, -0.18035824596881866, 0.051624611020088196, -0.6276810169219971, -0.0828133374452591, -0.31521958112716675, -0.11169061809778214, 0.13368110358715057, -0.3548228144645691, 0.06829436868429184, 0.04285594820976257, 0.00479129608720541, 0.0162834320217371, -0.387185275554657, -0.06558209657669067, 0.05678017437458038, 0.04325757175683975, 0.14819687604904175, -0.024025022983551025, -0.09515493363142014, 0.45853284001350403, 0.3018171191215515, 0.27613964676856995, -0.092438243329525, -0.43892085552215576, -0.0779128149151802, -0.0016337429406121373, -0.042576227337121964, 0.3088809847831726, -0.07896454632282257, -0.25234490633010864, -0.183115616440773, -0.010517130605876446, -0.15695606172084808, 0.06491310149431229, -0.12486273795366287, -0.09389617294073105, -0.07433046400547028, -0.21834182739257812, -0.03309164568781853, -0.32346493005752563, -0.3384043574333191, 0.23728638887405396, 0.20950065553188324, 0.07718546688556671, -0.31314048171043396, 0.3482189476490021, 0.03564318269491196, -0.021996205672621727, -0.12711183726787567, -0.14886820316314697, 0.06724339723587036, 0.5090064406394958, -0.27555420994758606, -0.001902159070596099, -0.06435495615005493, -0.4245731830596924, 0.28669273853302, 0.35565921664237976, -0.07192455232143402, -0.09998902678489685, -0.1816032975912094, 0.07920274138450623, -0.23321637511253357, 0.26401686668395996, 0.25811561942100525, 0.0931418165564537, -0.17589490115642548, -0.01975274085998535, 0.00013911929272580892, 0.155605748295784, 0.33794981241226196, 0.1088872104883194, -0.004855926614254713, -0.04216502234339714, -0.1415068805217743, 0.24146437644958496, 0.03860057145357132, -0.05040273442864418, 0.08487457036972046, -0.20948339998722076, 0.03647400066256523, -0.029440755024552345, 0.06935010850429535, -0.14761538803577423, -0.19580645859241486, -0.10112854093313217, -0.054556190967559814, 0.160060316324234, -0.245284304022789, 0.04901275038719177, -0.004793641157448292, -0.40954893827438354, -0.09890401363372803, 0.43972963094711304, -0.5884218811988831, 0.23964297771453857, -0.25766196846961975, -0.11255713552236557, -0.4354298412799835, -0.1512356847524643, 0.029830394312739372, -0.44786426424980164, 0.2770804166793823, -0.15280170738697052, -0.19973361492156982, -0.002450531581416726, -0.5094041228294373, 0.6173359155654907, 0.3407275080680847, 0.1416914314031601, 0.510915219783783, -0.2703465223312378, 0.03889397531747818, -0.022473245859146118, 0.1445501446723938, -0.38676801323890686, -0.48223474621772766, -0.14896279573440552, 0.056524962186813354, -0.5446116924285889, 0.04539557546377182, -0.4296461045742035, 0.07893766462802887, 0.17537811398506165, 0.37661319971084595, -0.19235987961292267, 0.056249041110277176, 0.15640240907669067, 0.2604750394821167, -0.15541692078113556, 0.12057437002658844, 0.12437672913074493, 0.004646038170903921, -0.10294529795646667, 0.06791182607412338, 0.1699339747428894, -0.047438524663448334, 0.5780176520347595, -0.22046558558940887, -0.26048699021339417, 0.1671961545944214, 0.11818888038396835, 0.12095119804143906, 0.44115424156188965, 0.1597188413143158, -0.10658792406320572, -0.068028524518013, 0.17694199085235596, 0.28699639439582825, 0.4402085244655609, -0.13637207448482513, -0.17195412516593933, -0.271315336227417, -0.4779592752456665, 0.7552842497825623, -0.17963793873786926, 0.24908605217933655, 0.5026304125785828, -0.4150932729244232, -0.08199676871299744, -0.18273495137691498, 0.042716823518276215, 0.20521891117095947, 0.1293455809354782, -0.26902446150779724, -0.5675099492073059, 0.1869133561849594, 0.0669860765337944, -0.11122217029333115, 0.44966474175453186, 0.042633697390556335, -0.025316469371318817, 0.5850731730461121, 0.47802069783210754, 0.7165128588676453, 0.3173338770866394, 0.18462562561035156, 0.04636547341942787, -0.3272400200366974, 0.4004533290863037, 0.07016677409410477, 0.08080761879682541, -0.05479484423995018, 0.10254127532243729, 0.0009730037418194115, 0.0179703701287508, -0.13840916752815247, 0.28764107823371887, -0.15188884735107422, 0.15002776682376862, -0.2367851287126541, 0.010083784349262714, -0.1330457180738449, 0.05802465230226517, 0.17339372634887695, -0.28230753540992737, 0.04918089509010315, 0.14563167095184326, 0.0023423985112458467, -0.416702002286911, -0.12464577704668045, -0.0805620402097702, -0.24267853796482086, -0.05453605204820633, -0.13808701932430267, -0.032142218202352524, -0.28309541940689087, 0.021536771208047867, 0.3141748905181885, -0.36134999990463257, -0.04514189064502716, -0.014527549967169762, -0.11506549268960953, 0.3307732045650482, 0.06431959569454193, 0.09062230587005615, 0.2942407727241516, 0.17566291987895966, -0.12491533160209656, -0.07586602866649628, 0.250609815120697, 0.09689273685216904, -0.07301338762044907, 0.2433030754327774, -0.033255238085985184, -0.5641129612922668, -0.21558257937431335, 0.045596059411764145, 0.08021754026412964, -0.256609708070755, -0.15020203590393066, 0.42976632714271545, -0.30093950033187866, -0.08321969956159592, 0.16202019155025482, 0.18805524706840515, -0.26020732522010803, 0.33368268609046936, 0.2605096697807312, -0.2356601506471634, 0.015647653490304947, -0.045006267726421356, 0.14541803300380707, -0.24622899293899536, 0.5600543022155762, 0.004874940030276775, -0.07441826164722443, -0.22855910658836365, -0.3298816978931427, 0.37797340750694275, -0.16004806756973267, -0.1020263060927391, 0.036777231842279434, -0.028991948813199997, 0.19164708256721497, 0.08712294697761536, 0.2979384660720825, 0.30233246088027954, -0.3340010643005371, -0.22698527574539185, -0.5539456605911255, 0.4804135859012604, 0.2971711754798889, 0.2122279852628708, -0.07007487863302231, -0.1323901116847992, -0.2415800243616104, 0.5198351144790649, -0.3649607300758362, 0.05417981371283531, 0.36943909525871277, 0.27125468850135803, -0.007890903390944004, 0.033867672085762024, 0.1295345574617386, 0.0011190043296664953, 0.22685113549232483, -0.01182499248534441, 0.08863101899623871, -0.25766006112098694, -0.03776014968752861, 0.06663667410612106, -0.07066676020622253, -0.023744627833366394, -0.12561780214309692, -0.0510207861661911, 0.05059793218970299, -0.46862584352493286, -0.02842106856405735, -0.13688945770263672, -0.2345697581768036, 0.09677576273679733, 0.23780153691768646, 0.2897174060344696, -0.11851401627063751, 0.2620231807231903, -0.18004213273525238, -0.021749718114733696, 0.006945861037820578, 0.046249307692050934, 0.2865629494190216, -0.18054528534412384, 0.3799670934677124, 0.13362383842468262, 0.19076764583587646, -0.05466385930776596, 0.01081988587975502, 0.07263414561748505, -0.05744637921452522, -0.27920156717300415, 0.2909567058086395, 0.26436781883239746, 0.11835479736328125, 0.1086476594209671, 0.2221936285495758, 0.34426149725914, -0.23631858825683594, -0.0017853362951427698, -0.14963780343532562, 0.16021133959293365, 0.23202818632125854, 0.2347548007965088, 0.15506312251091003, -0.013855350203812122, -0.09157612174749374, -0.05100380629301071, -0.20420007407665253, -0.2594502568244934, -0.11911797523498535, 0.41843295097351074, -0.056125350296497345, -0.33899569511413574, -0.11057765781879425, -0.02965906634926796, 0.04584240913391113, -0.0077337720431387424, 0.028705891221761703, 0.4061877429485321, 0.6985007524490356, -0.125254288315773, -0.151420459151268, -0.019598843529820442, 0.062420643866062164, 0.31484532356262207, 0.18652713298797607, 0.561448335647583, 0.5762030482292175, 0.3474792242050171, 0.28703925013542175, -0.3146401345729828, -0.01329520158469677, -0.1193242147564888, 0.029968496412038803, -0.06447583436965942, -0.11116218566894531, -0.06450110673904419, -0.30558839440345764, -0.18944820761680603, 0.1012374609708786, -0.1942659169435501, 0.3417074680328369, -0.10869897156953812, 0.054795049130916595, -0.2436424195766449, 0.24849876761436462, 0.17563331127166748, 0.35313573479652405, -0.31953442096710205, 0.023314278572797775, 0.013095535337924957, -0.028818080201745033, 0.0325075164437294, 0.30759692192077637, 0.1783500760793686, 0.02848290093243122, -0.13927656412124634, 0.27001410722732544, -0.19183482229709625, -0.11151175200939178, -0.13922341167926788, 0.1388925015926361, 0.1343427151441574, -0.2207663506269455, 0.20253901183605194, 0.24869410693645477, -0.1949058175086975, 0.2103409320116043, -0.12086259573698044, 0.05236344784498215, -0.19644883275032043, 0.21500766277313232, 0.20536315441131592, -0.5519221425056458, -0.1238851398229599, -0.19839142262935638, -0.20354394614696503, -0.36520281434059143, 0.20219337940216064, -0.4419763386249542, -0.15646837651729584, 0.08771385997533798, 0.11275399476289749, -0.08682280033826828, 0.6534007787704468, 0.6501068472862244, 0.4077480435371399, -0.002983174053952098, -0.4474177658557892, -0.26059460639953613, 0.10228114575147629, -0.31210505962371826, -0.14712585508823395, -0.07338716834783554, 0.06493447721004486, 0.3865472078323364, 0.11077512800693512, 0.38591790199279785, 0.07033966481685638, -0.34342920780181885, 0.22638960182666779, -0.3226325809955597, 0.2810468077659607, 0.1677539348602295, 0.2737782895565033, 0.19456855952739716, -0.14469590783119202, -0.10305946320295334, 0.17047430574893951, 0.15389245748519897, -0.09580256789922714, 0.037005238234996796, 0.15210294723510742, 0.18131758272647858, 0.5217476487159729, 0.20501969754695892, 0.03967595100402832, -0.3355918824672699, -0.08600816875696182, -0.34077370166778564, -0.10250137746334076, -0.267438143491745, 0.3767383396625519, 0.0196098443120718, 0.28999170660972595, -0.003617099253460765, -0.07663816213607788, 0.23381654918193817, 0.04611416161060333, -0.11844611167907715, -0.03113509900867939, -0.11994212865829468, 0.16587013006210327, -0.1964729279279709, -0.24840648472309113, -0.1983758509159088, 0.25594058632850647, 0.09559899568557739, -0.09607846289873123, 0.005315800197422504, -0.11522619426250458, 0.05237226560711861, -0.07735329121351242, -0.18005912005901337, -0.26041021943092346, 0.0013356968993321061, 0.2386946678161621, 0.08449188619852066, -0.34451109170913696, -0.22472909092903137, 0.2123764455318451, 0.13432981073856354, -0.13160303235054016, 0.2490270733833313, -0.1184336468577385, -0.14623957872390747, -0.17206275463104248, 0.472270131111145, 0.015496529638767242, 0.019641516730189323, -0.46946609020233154, -0.4412473142147064 ]
https://github.com/huggingface/datasets/issues/361
🐛 [Metrics] ROUGE is non-deterministic
> Hi, can you give a full self-contained example to reproduce this behavior? There is a notebook in the post ;)
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > ['0.3350', '0.1470', '0.2329'] ['0.3358', '0.1451', '0.2332'] --- Why ROUGE is not deterministic ?
21
🐛 [Metrics] ROUGE is non-deterministic If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > ['0.3350', '0.1470', '0.2329'] ['0.3358', '0.1451', '0.2332'] --- Why ROUGE is not deterministic ? > Hi, can you give a full self-contained example to reproduce this behavior? There is a notebook in the post ;)
[ -0.07294268161058426, -0.431997686624527, -0.07466147840023041, 0.24723906815052032, 0.14245787262916565, -0.2991018295288086, -0.03466462343931198, -0.36222341656684875, -0.04236908257007599, 0.47043150663375854, 0.026951996609568596, 0.30445075035095215, 0.030214441940188408, 0.0872773677110672, -0.2722608149051666, 0.0752440094947815, 0.03768846020102501, 0.013303432613611221, 0.04887751489877701, -0.291424036026001, 0.01598052866756916, 0.09952976554632187, -0.2607540190219879, -0.17706935107707977, -0.11434317380189896, 0.05653674900531769, -0.1556738317012787, -0.06810290366411209, -0.3433377146720886, -0.08700046688318253, 0.03212923929095268, 0.33130893111228943, -0.10528937727212906, 0.4939872920513153, -0.00011702498159138486, -0.41635650396347046, -0.02192939631640911, -0.17818646132946014, 0.30757302045822144, -0.5136876106262207, -0.24973195791244507, 0.3652493357658386, 0.07986414432525635, -0.12744364142417908, -0.1293851137161255, 0.11441999673843384, -0.3657512962818146, 0.01464041043072939, 0.4840198755264282, 0.12751717865467072, 0.1668633371591568, -0.16284233331680298, -0.3187296688556671, -0.38687899708747864, 0.013995408080518246, 0.059260834008455276, -0.11810530722141266, 0.4923389256000519, -0.03306275233626366, 0.12331630289554596, -0.06635372340679169, 0.07789192348718643, 0.17461532354354858, 0.3484486937522888, 0.45982030034065247, -0.15890178084373474, 0.24434182047843933, -0.06289561092853546, -0.022594714537262917, 0.3563772737979889, 0.27403581142425537, -0.11606395989656448, -0.10126043856143951, 0.282277911901474, 0.21555563807487488, -0.36519694328308105, -0.09318619966506958, -0.07391087710857391, 0.14391598105430603, -0.14613433182239532, -0.01085490919649601, 0.38279861211776733, -0.07611842453479767, -0.17808514833450317, 0.21290969848632812, -0.0751294195652008, -0.018481411039829254, 0.06973803043365479, 0.13737145066261292, 0.38487380743026733, -0.12372681498527527, 0.13140679895877838, -0.4110630452632904, -0.15256810188293457, -0.503675103187561, -0.06804487109184265, -0.04186754301190376, 0.43012306094169617, 0.028769811615347862, 0.3245622515678406, 0.5289818644523621, -0.14650899171829224, -0.1225259080529213, 0.042077817022800446, -0.06749764084815979, 0.30092328786849976, -0.16372226178646088, 0.0034655635245144367, 0.09488528966903687, -0.02170860581099987, -0.16167069971561432, 0.005609360057860613, 0.37513330578804016, -0.5000556111335754, 0.2849850654602051, 0.25031206011772156, -0.1803480088710785, -0.33563661575317383, -0.6347405910491943, -0.06643373519182205, -0.4162106513977051, -0.20365376770496368, -0.015085618011653423, 0.24622344970703125, -0.27126917243003845, 0.07181911170482635, -0.2622615396976471, 0.21423456072807312, -0.12509389221668243, -0.05863077938556671, -0.295505166053772, 0.08009181916713715, -0.5461653470993042, -0.01262182742357254, -0.335166871547699, 0.19110216200351715, 0.17813293635845184, 0.4183347225189209, 0.0020124120637774467, -0.33152028918266296, 0.05982844531536102, -0.44875767827033997, 0.07236576825380325, -0.0718553438782692, -0.07911676913499832, 0.014106648974120617, 0.08213156461715698, -0.1971663385629654, -0.1339939683675766, -0.005759785883128643, -0.14129336178302765, 0.27253130078315735, 0.4450807273387909, 0.06566283106803894, -0.08543283492326736, 0.12103475630283356, -0.13981033861637115, 0.17669767141342163, -0.31708672642707825, -0.00832771509885788, 0.20461301505565643, -0.18417760729789734, -0.316599041223526, -0.3004752993583679, -0.0015301031526178122, 0.2072269469499588, -0.06656836718320847, 0.1484943926334381, 0.6132833957672119, 0.14364993572235107, 0.20774118602275848, 0.5073764324188232, 0.06614246219396591, 0.08799272775650024, -0.2220110148191452, -0.5712295770645142, 0.4453023374080658, -0.4446239471435547, 0.08462313562631607, -0.025181537494063377, -0.05759979784488678, 0.006204449106007814, 0.13053148984909058, 0.1785043179988861, -0.23940294981002808, -0.02359732612967491, 0.15347081422805786, -0.2068714052438736, 0.0482671819627285, -0.21355195343494415, -0.019464047625660896, 0.029744742438197136, 0.31672531366348267, -0.3030979335308075, 0.1502770185470581, 0.22837671637535095, -0.011470387689769268, -0.1718246340751648, 0.3134991228580475, 0.2069145143032074, -0.3694639503955841, 0.05160277336835861, 0.19384241104125977, 0.3044387102127075, -0.05759973078966141, -0.20019041001796722, 0.15710651874542236, 0.14919671416282654, -0.506650447845459, -0.19575470685958862, 0.592568039894104, -0.20295169949531555, -0.23265329003334045, -0.12980283796787262, 0.016707438975572586, -0.2094642072916031, 0.12134463340044022, 0.3131525218486786, 0.24468182027339935, 0.27559182047843933, 0.043558407574892044, 0.2283719927072525, -0.17873749136924744, -0.15115457773208618, -0.17252394556999207, -0.1051986888051033, 0.001852797344326973, -0.14028634130954742, 0.08339213579893112, 0.21869425475597382, 0.308681845664978, 0.013942292891442776, -0.12521550059318542, 0.3100953698158264, 0.5252619981765747, -0.026312347501516342, 0.11894990503787994, 0.25126293301582336, 0.15993741154670715, 0.20556513965129852, -0.1156126856803894, 0.42382103204727173, 0.15924906730651855, -0.11489008367061615, 0.05987086519598961, 0.30312633514404297, -0.47304901480674744, 0.0715668573975563, -0.07670969516038895, -0.023060569539666176, 0.07479888200759888, 0.10036693513393402, -0.17310912907123566, -0.07712963968515396, 0.39886656403541565, 0.020221270620822906, 0.3070407211780548, 0.033589862287044525, -0.4082300066947937, -0.1613556444644928, 0.10656869411468506, 0.22133587300777435, 0.036470573395490646, -0.16566964983940125, 0.1028541773557663, 0.04699781537055969, -0.029528740793466568, 0.17482316493988037, 0.22656233608722687, 0.04651149362325668, -0.08397148549556732, -0.0033860933035612106, -0.3627881705760956, -0.3238305151462555, -0.2000463604927063, -0.11233541369438171, 0.254079133272171, 0.35649800300598145, 0.28953543305397034, 0.24672676622867584, -0.25043371319770813, -0.42568060755729675, -0.08927353471517563, 0.0223558209836483, 0.030676618218421936, 0.32000213861465454, -0.3778674304485321, 0.37418419122695923, -0.05089972913265228, -0.3276844620704651, -0.08245310932397842, -0.08963904529809952, -0.047559816390275955, 0.33038970828056335, 0.30027636885643005, -0.12652327120304108, 0.5133862495422363, 0.12386515736579895, -0.06141082942485809, 0.2800590693950653, -0.09473548829555511, -0.1490522027015686, 0.041875142604112625, 0.06147546321153641, -0.13461512327194214, 0.021823128685355186, 0.25883644819259644, -0.2812093198299408, -0.009751679375767708, 0.019513888284564018, -0.2017589807510376, -0.043002884835004807, 0.1012573167681694, 0.22571495175361633, 0.06271646916866302, -0.49504411220550537, -0.20618781447410583, 0.45472100377082825, 0.34948474168777466, -0.1335417777299881, -0.14335042238235474, 0.09274287521839142, -0.15618585050106049, 0.11361148953437805, 0.0649653971195221, 0.11151193082332611, 0.0507342554628849, 0.007712927646934986, 0.4770756661891937, 0.04065212607383728, -0.03231531381607056, 0.37865936756134033, 0.08748425543308258, -0.06925607472658157, 0.17459332942962646, 0.3019639253616333, -0.36195921897888184, -0.17030523717403412, 0.15343447029590607, -0.3342150151729584, -0.33726727962493896, -0.003797148820012808, 0.2548956573009491, 0.05731406435370445, 0.07189974933862686, -0.1600867360830307, -0.5616263151168823, -0.00842758733779192, -0.12592105567455292, -0.2945588529109955, -0.24966025352478027, 0.5192808508872986, -0.2608337104320526, -0.16721929609775543, -0.05616992712020874, 0.18181867897510529, 0.1151713877916336, 0.074468232691288, 0.3241339325904846, -0.2724427580833435, 0.14256449043750763, -0.1437833458185196, 0.03980986401438713, 0.4241264760494232, -0.10630422830581665, 0.06798042356967926, -0.047878824174404144, 0.24159251153469086, -0.42869833111763, 0.07772749662399292, 0.3353781998157501, 0.004769683815538883, -0.25905007123947144, 0.2845083475112915, -0.14973698556423187, 0.603803277015686, -0.1270698606967926, 0.09890856593847275, 0.17985808849334717, -0.04244256392121315, -0.20530521869659424, -0.3841387927532196, -0.18881511688232422, 0.014805545099079609, 0.14473563432693481, 0.1506260186433792, 0.06898966431617737, 0.1150011420249939, 0.11206306517124176, 0.20142322778701782, 0.015425165183842182, 0.04490693286061287, 0.05353252589702606, -0.2599616050720215, 0.03114808164536953, -0.16884052753448486, 0.03946370631456375, -0.15825609862804413, 0.1542331427335739, 0.196950763463974, -0.10558509826660156, 0.546204149723053, -0.348390132188797, 0.20015157759189606, 0.021428190171718597, -0.5407801270484924, -0.2420254498720169, -0.28759464621543884, -0.3703916668891907, 0.08208304643630981, 0.20135138928890228, 0.11706003546714783, 0.11167861521244049, -0.10278814285993576, -0.11291181296110153, 0.010280129499733448, -0.07134390622377396, -0.13937535881996155, -0.5917127132415771, 0.16603338718414307, 0.01995215006172657, 0.18451443314552307, 0.07967028021812439, 0.12313627451658249, -0.1292867213487625, -0.17862793803215027, -0.32221072912216187, -0.06057233363389969, 0.39076682925224304, 0.20074079930782318, 0.14989270269870758, -0.024055028334259987, -0.19716006517410278, 0.028501715511083603, -0.10983684659004211, -0.22678671777248383, 0.003174791345372796, 0.19895505905151367, -0.5485666990280151, 0.21273136138916016, -0.1606106013059616, -0.04693704843521118, 0.22148387134075165, -0.09334024786949158, -0.09750795364379883, -0.6738168001174927, 0.312176913022995, -0.452884703874588, -0.11139675229787827, 0.4746369421482086, 0.010574685409665108, -0.021815398707985878, -0.24901919066905975, 0.11423356086015701, 0.12619613111019135, -0.4261644780635834, 0.2862328886985779, -0.2654324769973755, 0.038684386759996414, 0.44115734100341797, 0.368429034948349, 0.6875550150871277, -0.13339994847774506, -0.06362202763557434, 0.14317725598812103, -0.15408992767333984, 0.22472405433654785, -0.2082993984222412, -0.02658027596771717, -0.2640288174152374, -0.32764947414398193, -0.04821127653121948, -0.037745390087366104, 0.12202785164117813, -0.037788569927215576, -0.07221709191799164, 0.3350606858730316, -0.11716204881668091, 0.24741743505001068, -0.11411450058221817, -0.1422789841890335, 0.3587924838066101, 0.226888969540596, 0.34350520372390747, 0.12644951045513153, 0.17025624215602875, 0.29048851132392883, -0.2271946519613266, 0.13090957701206207, -0.2318698763847351, 0.11265426874160767, -0.25020456314086914, -0.15277421474456787, -0.29882583022117615, 0.14340777695178986, -0.06029406562447548, -0.45884057879447937, -0.10700376331806183, 0.7968859672546387, 0.6291101574897766, 0.23590655624866486, -0.02317698299884796, 0.2885487973690033, 0.06723783165216446, 0.1290564239025116, -0.2900579869747162, -0.24824777245521545, -0.14157222211360931, 0.05033646151423454, -0.282975971698761, 0.006970287300646305, 0.20949377119541168, -0.2150881588459015, -0.36068204045295715, 0.20458687841892242, -0.300518661737442, 0.19034671783447266, 0.045403510332107544, 0.019764289259910583, -0.03294889256358147, -0.12930046021938324, 0.08934047073125839, 0.03418361395597458, 0.0398869514465332, 0.30002105236053467, 0.07024453580379486, -0.3948754370212555, -0.13917246460914612, 0.35773688554763794, -0.06649521738290787, 0.13508723676204681, -0.2667108178138733, -0.32625532150268555, 0.10472293943166733, -0.3019201159477234, -0.17992107570171356, -0.2614299952983856, -0.13827884197235107, 0.18246972560882568, -0.05642808973789215, -0.06713389605283737, 0.2789304554462433, 0.6154510974884033, 0.18565072119235992, 0.27414825558662415, 0.24107547104358673, -0.3023459315299988, 0.13986270129680634, -0.06588362902402878, 0.26197758316993713, 0.010838814079761505, -0.2457004189491272, 0.16020441055297852, 0.07754965871572495, 0.4317098557949066, -0.2948766350746155, -0.1789625734090805, -0.1434411108493805, 0.027035845443606377, -0.6010735034942627, -0.2214304655790329, -0.16178518533706665, 0.20572473108768463, 0.002400204073637724, 0.17483560740947723, -0.2614099979400635, -0.12844164669513702, -0.25606825947761536, 0.1408543437719345, -0.04656944423913956, 0.5226805806159973, -0.16128067672252655, 0.09548363089561462, -0.04710817709565163, -0.22601114213466644, 0.1570693701505661, 0.35638487339019775, 0.25398948788642883, 0.06638651341199875, -0.0365472137928009, 0.31873229146003723, -0.08086094260215759, -0.08896765112876892, 0.14306282997131348, 0.06766583770513535, -0.11925964057445526, -0.22966758906841278, -0.09385517239570618, -0.08145853877067566, -0.6070911288261414, -0.13509711623191833, -0.07639072835445404, -0.15670664608478546, -0.17040148377418518, 0.14049260318279266, 0.4126683175563812, -0.2225685864686966, 0.31493231654167175, 0.15840966999530792, 0.011746600270271301, -0.24327659606933594, -0.06369556486606598, 0.11813851445913315, -0.2605796456336975, 0.2265067994594574, -0.22929903864860535, 0.3252802789211273, 0.12007437646389008, 0.3787539303302765, 0.42702019214630127, -0.13596531748771667, -0.012259941548109055, -0.17405684292316437, -0.04834503307938576, -0.25795164704322815, 0.18644054234027863, -0.25967878103256226, 0.0819971114397049, 0.10293339192867279, 0.6461304426193237, 0.00850736629217863, 0.01063116081058979, 0.3853861391544342, 0.16743911802768707, 0.21432361006736755, -0.26469025015830994, 0.12324110418558121, -0.12095101177692413, 0.06535309553146362, -0.0654735341668129, 0.46515175700187683, 0.07737194001674652, -0.15642745792865753, -0.1243264302611351, 0.10738559067249298, -0.2876574695110321, -0.279274046421051, -0.40900442004203796, -0.08718328922986984, -0.026564184576272964, -0.23199546337127686, -0.22252526879310608, -0.14019647240638733, -0.13848760724067688, 0.04661606624722481, 0.0626094713807106, 0.4171898663043976, 0.3824378550052643, 0.07541187852621078, 0.1739460527896881, -0.16235564649105072, -0.14186027646064758, -0.08822720497846603, 0.4310378134250641, -0.168033167719841, 0.08164738118648529, 0.09489407390356064, 0.3489444851875305, 0.05781709775328636, 0.2674444615840912, 0.16164366900920868, 0.2786950469017029, -0.23994801938533783, 0.11219608038663864, -0.24858857691287994, -0.0032196647953242064, 0.17968975007534027, 0.2443193644285202, 0.20365844666957855, -0.4013042747974396, 0.38904571533203125, 0.03939050808548927, -0.14517827332019806, 0.5418248176574707, 0.11103354394435883, 0.3921964168548584, -0.21135762333869934, 0.43204429745674133, 0.17358888685703278, 0.3634885251522064, -0.0001418277679476887, 0.31815558671951294, -0.3570292592048645, 0.10550612956285477, -0.6689850687980652, -0.1713867485523224, -0.046165745705366135, -0.2048519402742386, 0.05148366466164589, -0.04848596453666687, 0.1875862330198288, -0.016037041321396828, 0.2722623646259308, -0.15759365260601044, -0.24058152735233307, -0.4908544719219208, 0.1989634782075882, -0.2409048229455948, 0.32937780022621155, -0.14766857028007507, 0.3971630334854126, -0.4126545786857605, 0.21782119572162628, 0.20383989810943604, 0.4500797390937805, -0.1268351525068283, 0.4430061876773834, -0.4771740734577179, 0.2912018299102783, -0.3749246299266815, -0.21544642746448517, 0.2228860706090927, 0.09044095128774643, -0.014269874431192875, -0.055668167769908905, -0.018821021541953087, 0.12609857320785522, -0.08459329605102539, -0.03225027397274971, 0.6356542706489563, 0.5892747640609741, 0.08988122642040253, 0.16516096889972687, -0.06164248660206795, -0.22012834250926971, 0.07253620773553848, -0.12122459709644318, 0.09769929200410843, 0.2772809565067291, -0.023231517523527145, -0.1421554982662201, -0.10762956738471985, 0.15721780061721802, 0.0837741419672966, 0.6822965741157532, 0.15310515463352203, -0.07113883644342422, -0.5956972241401672, 0.026028651744127274, 0.03867067024111748, 0.2575581967830658, -0.39593586325645447, 0.4797007441520691, 0.028333893045783043, 0.32873180508613586, -0.1378915011882782, -0.11044781655073166, 0.6011201739311218, 0.028541097417473793, 0.0503990463912487, -0.16475467383861542, 0.34849119186401367, 0.3952530026435852, -0.048892490565776825, -0.14947004616260529, 0.1269875168800354, 0.06974878907203674, 0.26537248492240906, 0.077602818608284, 0.1911771297454834, -0.36262959241867065, 0.08437290787696838, -0.10149654000997543, 0.17288310825824738, -0.05949748679995537, -0.022019177675247192, 0.30683815479278564, -0.2685053050518036 ]
https://github.com/huggingface/datasets/issues/361
🐛 [Metrics] ROUGE is non-deterministic
> If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. > > Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. > > Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > > > ['0.3350', '0.1470', '0.2329'] > > ['0.3358', '0.1451', '0.2332'] > > Why ROUGE is not deterministic ? This is because of rouge's `BootstrapAggregator` that uses sampling to get confidence intervals (low, mid, high). You can get deterministic scores per sentence pair by using ```python score = rouge.compute(rouge_types=["rouge1", "rouge2", "rougeL"], use_agregator=False) ``` Or you can set numpy's random seed if you still want to use the aggregator.
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > ['0.3350', '0.1470', '0.2329'] ['0.3358', '0.1451', '0.2332'] --- Why ROUGE is not deterministic ?
112
🐛 [Metrics] ROUGE is non-deterministic If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > ['0.3350', '0.1470', '0.2329'] ['0.3358', '0.1451', '0.2332'] --- Why ROUGE is not deterministic ? > If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. > > Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. > > Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > > > ['0.3350', '0.1470', '0.2329'] > > ['0.3358', '0.1451', '0.2332'] > > Why ROUGE is not deterministic ? This is because of rouge's `BootstrapAggregator` that uses sampling to get confidence intervals (low, mid, high). You can get deterministic scores per sentence pair by using ```python score = rouge.compute(rouge_types=["rouge1", "rouge2", "rougeL"], use_agregator=False) ``` Or you can set numpy's random seed if you still want to use the aggregator.
[ -0.06297378242015839, -0.13420715928077698, -0.0796855017542839, 0.010575566440820694, 0.17548243701457977, -0.3666590750217438, 0.031273603439331055, -0.28161558508872986, -0.3356744349002838, 0.46499398350715637, -0.14532043039798737, 0.34079843759536743, -0.02386203221976757, 0.10760310292243958, -0.2894938886165619, -0.005836428143084049, -0.13678768277168274, 0.08830755203962326, 0.050579678267240524, -0.27948281168937683, -0.02648892253637314, 0.2689063847064972, -0.14468182623386383, -0.11220018565654755, -0.23017975687980652, 0.04390457645058632, -0.13096320629119873, 0.17605739831924438, -0.44204628467559814, -0.136611670255661, 0.0006489629158750176, 0.5135988593101501, -0.13356363773345947, 0.3453352451324463, -0.0001090061996364966, -0.3026774525642395, -0.005383359733968973, -0.27213966846466064, 0.06843294203281403, -0.5490512847900391, -0.085055410861969, 0.16787011921405792, -0.036374520510435104, -0.1538974493741989, -0.2303878366947174, 0.1567341834306717, -0.13240014016628265, -0.21489813923835754, 0.6561844944953918, 0.36107149720191956, 0.20377428829669952, -0.02750520594418049, -0.14883431792259216, -0.21124514937400818, 0.1747773289680481, -0.08728740364313126, -0.01666855998337269, 0.5573636293411255, 0.031474437564611435, 0.21889401972293854, -0.24647514522075653, 0.18581052124500275, 0.15273551642894745, 0.06768467277288437, 0.36881130933761597, -0.11520916223526001, 0.1754811555147171, -0.36951735615730286, -0.12860091030597687, 0.3732662796974182, 0.276019424200058, -0.051951225847005844, -0.40681225061416626, 0.1725025773048401, 0.19477170705795288, -0.2736441493034363, -0.19445958733558655, -0.017577506601810455, -0.09134973585605621, -0.06527457386255264, -0.09678026288747787, 0.44388359785079956, -0.13325415551662445, -0.13836732506752014, 0.14207327365875244, 0.0767001062631607, -0.008888683281838894, -0.0005141572910360992, 0.32813265919685364, 0.12296032160520554, -0.22458294034004211, 0.21163053810596466, -0.20959146320819855, 0.06957204639911652, -0.4204723536968231, -0.1357261687517166, 0.12510693073272705, 0.28499123454093933, 0.11115235090255737, 0.4854741394519806, 0.39486223459243774, -0.11475417017936707, -0.06904517859220505, 0.04545344412326813, 0.025264106690883636, 0.196171373128891, 0.05004953593015671, 0.038387831300497055, 0.14160972833633423, -0.0029745728243142366, -0.02593059465289116, 0.0993315801024437, 0.31267863512039185, -0.3156806230545044, 0.041402313858270645, 0.2174890637397766, -0.15230843424797058, -0.17208051681518555, -0.5653675198554993, -0.11148597300052643, -0.47819778323173523, -0.1255740523338318, -0.15354031324386597, 0.38033995032310486, -0.20591728389263153, 0.15450450778007507, -0.19382114708423615, 0.190731018781662, -0.14005500078201294, -0.16229189932346344, -0.25999248027801514, 0.16284321248531342, -0.2660719156265259, -0.0745900496840477, -0.11210990697145462, 0.08643507212400436, 0.12941451370716095, 0.15454767644405365, 0.14758308231830597, -0.24581536650657654, 0.03821699321269989, -0.45834922790527344, -0.08258581906557083, -0.132894828915596, -0.09135690331459045, -0.07539385557174683, 0.0561135970056057, -0.28392788767814636, -0.132166787981987, -0.12134228646755219, -0.12629352509975433, 0.18461859226226807, 0.325351744890213, 0.16258640587329865, 0.009811061434447765, -0.08615478128194809, 0.07437248528003693, 0.2732864320278168, -0.31479817628860474, 0.15548241138458252, 0.15024173259735107, -0.025994660332798958, -0.3226458430290222, -0.23634247481822968, 0.08310816437005997, 0.21241749823093414, -0.0027341204695403576, -0.10429928451776505, 0.5838004350662231, 0.13699984550476074, 0.1727113425731659, 0.5475631356239319, 0.16298243403434753, 0.18397773802280426, -0.002714197151362896, -0.3590964078903198, 0.47751718759536743, -0.48543915152549744, 0.06833044439554214, 0.06024865061044693, -0.028813671320676804, 0.1495351493358612, 0.21336503326892853, 0.10303856432437897, -0.07665688544511795, -0.043802667409181595, 0.23981253802776337, 0.1870020627975464, 0.1334647238254547, -0.26365500688552856, -0.020982839167118073, 0.09086164832115173, 0.23149308562278748, -0.1147618442773819, 0.06263274699449539, 0.04626016318798065, -0.20690539479255676, -0.3015894889831543, 0.34982678294181824, -0.008829192258417606, -0.3083658516407013, 0.2478799670934677, 0.08765998482704163, 0.1918277144432068, 0.08694564551115036, -0.1816861629486084, 0.28125807642936707, 0.10359818488359451, -0.8122196793556213, 0.24316853284835815, 0.21772906184196472, -0.2853502929210663, -0.45120522379875183, -0.1303160935640335, 0.1445593535900116, -0.34108734130859375, 0.19808869063854218, 0.17257271707057953, 0.27330321073532104, 0.2643553912639618, -0.04770863801240921, 0.3236654996871948, -0.19353361427783966, -0.01809833198785782, -0.253608763217926, -0.1986757516860962, -0.05067212134599686, -0.08113915473222733, 0.2211104929447174, 0.44662073254585266, 0.08973397314548492, 0.09877477586269379, -0.08101668953895569, 0.4132423400878906, 0.4271886646747589, -0.02475857175886631, -0.033094245940446854, -0.032745610922575, 0.07738947123289108, 0.18734240531921387, -0.21827104687690735, 0.5565972328186035, 0.22576460242271423, -0.06820087134838104, -0.11231335252523422, 0.38551345467567444, -0.47625988721847534, 0.004916023928672075, 0.06532225012779236, 0.061057522892951965, 0.17000845074653625, 0.14404132962226868, -0.3210560083389282, -0.09027138352394104, 0.30820173025131226, -0.02894197590649128, 0.6414515972137451, 0.2357603907585144, -0.29554441571235657, -0.12639585137367249, 0.08650434762239456, 0.11402538418769836, 0.1410740315914154, -0.09579181671142578, 0.08677766472101212, -0.05903024598956108, -0.0750466138124466, 0.027054496109485626, -0.03221802040934563, 0.21117763221263885, -0.005692188162356615, -0.06269790232181549, -0.28373292088508606, -0.28223714232444763, -0.07754919677972794, -0.13844041526317596, 0.2882392406463623, 0.13918203115463257, 0.3164985775947571, 0.1880498081445694, -0.27398309111595154, -0.5686128735542297, -0.31809085607528687, -0.03639782965183258, -0.13586962223052979, 0.127198725938797, -0.24751384556293488, -0.06301252543926239, 0.06969675421714783, -0.2970943748950958, -0.06422168016433716, -0.20969729125499725, 0.15574252605438232, 0.08027059584856033, 0.06935860961675644, -0.030659370124340057, 0.5392487645149231, 0.2734594941139221, 0.011913895606994629, 0.29753634333610535, -0.101726233959198, -0.26443278789520264, 0.060470081865787506, 0.20027652382850647, -0.13333098590373993, -0.024978240951895714, 0.12017424404621124, -0.4248003661632538, -0.07191920280456543, 0.14287824928760529, -0.12666794657707214, 0.0757167860865593, -0.09818287193775177, 0.2909095883369446, 0.13415032625198364, -0.3271771967411041, -0.32851356267929077, 0.3417814373970032, 0.29616954922676086, -0.01506023295223713, -0.17895536124706268, 0.10725680738687515, 0.035542912781238556, 0.02035393752157688, 0.03568496182560921, -0.11945043504238129, -0.246343731880188, -0.17014683783054352, 0.5418916344642639, 0.24258434772491455, -0.016692956909537315, 0.45195940136909485, 0.010800658725202084, -0.059527769684791565, 0.10297518968582153, 0.49487581849098206, -0.2613430917263031, -0.22912810742855072, 0.3377358019351959, -0.23543092608451843, -0.48372596502304077, -0.2980835437774658, 0.08876758068799973, -0.06036622077226639, 0.009346521459519863, 0.11689261347055435, -0.35635191202163696, -0.08265510946512222, -0.041577935218811035, -0.20183058083057404, -0.07103312760591507, 0.4534032344818115, -0.17280113697052002, -0.2120850384235382, -0.0440845750272274, 0.3471277356147766, 0.1045520231127739, 0.10947462916374207, 0.1872500628232956, -0.2009669840335846, 0.07223648577928543, 0.054802775382995605, 0.1274551898241043, 0.49704796075820923, 0.023784803226590157, 0.05559747666120529, -0.0792822539806366, 0.2268168330192566, -0.27977490425109863, 0.05287529528141022, 0.24628007411956787, 0.07647473365068436, -0.23045679926872253, 0.23093624413013458, -0.11297242343425751, 0.41787925362586975, -0.25746574997901917, 0.03882912918925285, 0.02870585396885872, -0.09093379974365234, -0.019277077168226242, -0.3598269820213318, -0.13794797658920288, -0.008742857724428177, 0.18937654793262482, 0.14356893301010132, 0.0545649528503418, 0.14286509156227112, -0.049365781247615814, 0.34226009249687195, 0.03297335281968117, 0.036573395133018494, 0.2057763785123825, -0.35932743549346924, 0.1581123024225235, 0.05781642347574234, -0.056105393916368484, -0.030386345461010933, 0.0016280313720926642, 0.012582735158503056, -0.02910403348505497, 0.3670474886894226, -0.3468727767467499, -0.12558145821094513, 0.12085879594087601, -0.2924031615257263, -0.40448102355003357, -0.02865365706384182, -0.5490260720252991, -0.10816293209791183, 0.1691492646932602, -0.1260565221309662, -0.14997480809688568, 0.034564994275569916, 0.15181094408035278, -0.19714273512363434, -0.0772145688533783, -0.02921178936958313, -0.41850221157073975, 0.07187854498624802, -0.07673049718141556, 0.2225269377231598, 0.07045542448759079, 0.25636184215545654, -0.042410366237163544, -0.10493510216474533, -0.17202673852443695, -0.025196604430675507, 0.4814109802246094, 0.24616000056266785, 0.15621183812618256, -0.09039764851331711, -0.26622503995895386, -0.14639495313167572, -0.15058520436286926, -0.1996048092842102, 0.18950672447681427, 0.015261810272932053, -0.6571379899978638, -0.03842227905988693, -0.16666074097156525, 0.16858913004398346, 0.1548556387424469, -0.19766248762607574, -0.11591488122940063, -0.574603796005249, 0.22823219001293182, -0.43921035528182983, -0.03635149076581001, 0.3599657416343689, 0.0648714154958725, 0.13561034202575684, -0.2745453715324402, 0.17236799001693726, 0.17127211391925812, -0.344008207321167, -0.12238101661205292, -0.29711824655532837, -0.0006408035405911505, 0.6353343725204468, 0.20081141591072083, 0.7802702784538269, 0.008179256692528725, 0.036143261939287186, 0.10698370635509491, 0.08271903544664383, 0.3759542405605316, -0.31206488609313965, 0.049952149391174316, -0.09260861575603485, -0.1861402690410614, -0.11787617951631546, 0.11655347794294357, 0.09630979597568512, 0.25103795528411865, -0.19029970467090607, 0.4400809705257416, -0.006245363969355822, 0.08034339547157288, 0.01974908448755741, -0.03024665080010891, -0.001280615571886301, -0.0020524144638329744, -0.02665608376264572, 0.18062977492809296, 0.12461929768323898, 0.13154004514217377, -0.10054425150156021, 0.10101988911628723, -0.34474390745162964, 0.022789185866713524, -0.15328815579414368, -0.10774670541286469, -0.3275684714317322, 0.17857201397418976, 0.015450865030288696, -0.3179484009742737, -0.3211079239845276, 0.6958521008491516, 0.3500364422798157, 0.280624121427536, -0.03726131096482277, 0.17396827042102814, 0.026252195239067078, 0.12390035390853882, 0.06251194328069687, -0.06584808230400085, 0.1633387804031372, 0.022966424003243446, -0.19940730929374695, 0.08794256299734116, 0.1445675641298294, -0.2599150240421295, -0.026270976290106773, -0.002653844654560089, -0.30193859338760376, 0.13063988089561462, -0.0025997753255069256, 0.08686704188585281, -0.15192250907421112, -0.18169130384922028, 0.1379818320274353, 0.04306620731949806, -0.06884424388408661, 0.22336699068546295, 0.05509417876601219, -0.2668171525001526, -0.17223718762397766, 0.2863360047340393, 0.07032489031553268, -0.1017240509390831, -0.25621363520622253, -0.17457716166973114, -0.08640265464782715, -0.29943129420280457, -0.08943698555231094, -0.29818278551101685, -0.10441497713327408, 0.3776306211948395, 0.01898997277021408, -0.11541390419006348, 0.051211513578891754, 0.629924476146698, 0.21419227123260498, 0.3644086420536041, 0.1524917334318161, -0.33369171619415283, -0.10814841836690903, 0.1698482781648636, 0.37364059686660767, -0.03354884684085846, -0.06413482874631882, 0.04874296113848686, 0.2199574112892151, 0.4095650017261505, -0.4029999375343323, -0.3656335473060608, -0.3964775800704956, -0.08165858685970306, -0.4356081783771515, -0.22119320929050446, -0.1281733363866806, 0.09364893287420273, 0.0950351431965828, 0.23749560117721558, -0.2286645919084549, -0.2447851151227951, -0.15919363498687744, 0.0821184292435646, -0.1456950604915619, 0.40210631489753723, 0.041387300938367844, 0.18534190952777863, -0.11416163295507431, -0.38218677043914795, 0.0746251791715622, 0.3171326518058777, 0.25514671206474304, 0.017734048888087273, -0.04024043679237366, 0.28045332431793213, -0.11354967951774597, -0.13701726496219635, 0.0539059154689312, -0.005134958308190107, -0.0932936742901802, -0.06650282442569733, -0.0675680860877037, -0.09874754399061203, -0.21898196637630463, -0.02690039575099945, 0.184909388422966, -0.12141203135251999, -0.10536180436611176, 0.08375056833028793, 0.045628007501363754, -0.37308719754219055, 0.4326426386833191, 0.2211647927761078, -0.008523582480847836, -0.19856634736061096, -0.13350726664066315, 0.21943779289722443, -0.45893239974975586, 0.2654249370098114, -0.2891061305999756, 0.15634191036224365, 0.3173479735851288, 0.45568808913230896, 0.22332073748111725, -0.06490490585565567, -0.06798105686903, -0.09870079159736633, -0.1383628249168396, -0.10029380768537521, 0.06293310225009918, -0.3096042275428772, 0.2589249014854431, -0.020267974585294724, 0.4849744737148285, -0.11211787164211273, 0.2652067244052887, 0.1309788078069687, -0.003416540799662471, 0.3194531798362732, -0.11900590360164642, 0.19603578746318817, 0.01932256855070591, 0.1845240443944931, 0.14017046988010406, 0.4659498333930969, 0.11100805550813675, 0.007033401634544134, 0.04702746495604515, 0.2889147102832794, -0.12652996182441711, -0.1758522391319275, -0.29063519835472107, 0.08546671271324158, 0.05243988707661629, -0.3401109278202057, -0.23910431563854218, -0.22767405211925507, -0.44517794251441956, -0.16389070451259613, 0.06581929326057434, 0.1539929062128067, 0.3426801562309265, 0.025194119662046432, 0.1911424994468689, -0.24244995415210724, -0.2109345644712448, -0.2723105549812317, 0.5643002390861511, -0.24843677878379822, 0.19212810695171356, 0.15721841156482697, 0.37511947751045227, 0.18826034665107727, 0.4240931272506714, 0.21161429584026337, 0.17867837846279144, -0.20108799636363983, 0.2564734220504761, -0.3552727699279785, -0.15523186326026917, 0.018965445458889008, 0.23125669360160828, 0.16101939976215363, -0.2643481194972992, 0.49571678042411804, 0.1359368860721588, -0.23227708041667938, 0.4143299460411072, 0.08615963906049728, 0.42730283737182617, -0.24933098256587982, 0.36348357796669006, 0.2400839924812317, 0.2938923239707947, -0.04149322211742401, 0.18308517336845398, -0.41559964418411255, 0.07796840369701385, -0.623421847820282, -0.11742525547742844, -0.1011868417263031, -0.23566101491451263, 0.10844467580318451, 0.09241072088479996, 0.20519737899303436, 0.11813264340162277, 0.3476843237876892, -0.035758037120103836, -0.18555018305778503, -0.4065919518470764, -0.04292029142379761, -0.14529258012771606, -0.07745463401079178, -0.24246540665626526, 0.38127103447914124, -0.05846894532442093, 0.5550360083580017, 0.04245315119624138, 0.5779339671134949, -0.28861576318740845, 0.28977179527282715, -0.5447967052459717, 0.32753387093544006, -0.32546624541282654, -0.05519662797451019, 0.18371638655662537, 0.09119264036417007, -0.07032209634780884, -0.14659316837787628, 0.06997350603342056, 0.27196675539016724, -0.33689141273498535, 0.2480890303850174, 0.320818692445755, 0.3344046175479889, 0.10079823434352875, 0.1854654848575592, -0.061937712132930756, -0.16475722193717957, 0.019988268613815308, -0.13959580659866333, -0.04114847630262375, 0.2344655990600586, 0.20391243696212769, 0.19250322878360748, -0.0568336583673954, 0.08267337083816528, 0.19389499723911285, 0.738052248954773, 0.13529813289642334, -0.15846361219882965, -0.32045796513557434, 0.0522528700530529, 0.03954370319843292, 0.02172078937292099, -0.5980477929115295, 0.38727670907974243, -0.08525627106428146, 0.2723895311355591, -0.03346245735883713, -0.3992611765861511, 0.4943169057369232, 0.0310684647411108, 0.09119163453578949, -0.2405095398426056, 0.27328070998191833, 0.2411660999059677, -0.08418673276901245, -0.3257412910461426, 0.07970324903726578, 0.047955870628356934, 0.3362009525299072, 0.06745798140764236, 0.17270192503929138, -0.17921768128871918, 0.08963529020547867, -0.3200743794441223, 0.09191454201936722, -0.12445759028196335, 0.11732733249664307, 0.08397599309682846, -0.4272245466709137 ]
https://github.com/huggingface/datasets/issues/361
🐛 [Metrics] ROUGE is non-deterministic
Now if you re-run the notebook, the two printed results are the same @colanim ``` ['0.3356', '0.1466', '0.2318'] ['0.3356', '0.1466', '0.2318'] ``` However across sessions, the results may change (as numpy's random seed can be different). You can prevent that by setting your seed: ```python rouge = nlp.load_metric('rouge', seed=42) ```
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > ['0.3350', '0.1470', '0.2329'] ['0.3358', '0.1451', '0.2332'] --- Why ROUGE is not deterministic ?
50
🐛 [Metrics] ROUGE is non-deterministic If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different. Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem. Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run : > ['0.3350', '0.1470', '0.2329'] ['0.3358', '0.1451', '0.2332'] --- Why ROUGE is not deterministic ? Now if you re-run the notebook, the two printed results are the same @colanim ``` ['0.3356', '0.1466', '0.2318'] ['0.3356', '0.1466', '0.2318'] ``` However across sessions, the results may change (as numpy's random seed can be different). You can prevent that by setting your seed: ```python rouge = nlp.load_metric('rouge', seed=42) ```
[ -0.10732905566692352, -0.21592995524406433, -0.06680168211460114, 0.14313142001628876, 0.18283864855766296, -0.3188188672065735, -0.13666360080242157, -0.15665262937545776, -0.08101876825094223, 0.3942084312438965, -0.09587046504020691, 0.5732386708259583, 0.07576150447130203, -0.035305824130773544, -0.004969687666743994, 0.045720115303993225, -0.08297698944807053, 0.19788046181201935, -0.014829220250248909, -0.3589978516101837, -0.25488701462745667, 0.11922398209571838, -0.15128570795059204, 0.03479812666773796, -0.13176995515823364, -0.06228874251246452, 0.026346854865550995, 0.1554977148771286, -0.4091150760650635, -0.22663627564907074, 0.08216314017772675, 0.23360314965248108, -0.1760028749704361, 0.2849857807159424, -0.00010769491927931085, -0.28138265013694763, 0.10782881081104279, -0.1169915422797203, 0.07695811986923218, -0.40473321080207825, -0.04059341177344322, -0.0956244021654129, 0.17678047716617584, -0.29458925127983093, -0.09756429493427277, 0.1369193196296692, -0.0897163450717926, 0.033897221088409424, 0.41589829325675964, 0.22696880996227264, 0.2249116450548172, 0.045572347939014435, -0.23914118111133575, -0.16211193799972534, 0.04261857271194458, -0.09294822067022324, -0.032100431621074677, 0.5454748272895813, -0.18220217525959015, -0.00671809259802103, -0.13548904657363892, 0.1270417422056198, 0.13834291696548462, 0.22353707253932953, 0.4007498323917389, 0.04111553356051445, 0.392945796251297, -0.13584597408771515, -0.23437820374965668, 0.25258392095565796, -0.012931163422763348, -0.09977088123559952, -0.1324521005153656, 0.08414607495069504, 0.1587257832288742, -0.6156044006347656, -0.17320826649665833, 0.044014740735292435, -0.13505534827709198, -0.20126909017562866, -0.05087825655937195, 0.3788502812385559, -0.09684982895851135, 0.11171850562095642, -0.004312538076192141, 0.1680886596441269, 0.02707616426050663, 0.15506400167942047, 0.1478288620710373, 0.21161900460720062, -0.13196592032909393, 0.12220285087823868, -0.215138241648674, -0.059868380427360535, -0.3910145163536072, -0.09472063183784485, 0.13777080178260803, 0.3519817292690277, 0.023443792015314102, 0.1232668086886406, 0.5981097221374512, 0.01893194019794464, -0.1684434413909912, 0.1034674346446991, -0.15217219293117523, 0.3907266855239868, -0.09756141155958176, 0.02034522406756878, 0.28173699975013733, 0.03729527071118355, -0.040692038834095, 0.075489342212677, 0.5044953227043152, -0.43494564294815063, 0.20578011870384216, 0.2119954228401184, -0.11224089562892914, -0.2276434302330017, -0.5611438155174255, -0.043072495609521866, -0.20275132358074188, -0.01936202310025692, -0.1004151925444603, 0.3319781720638275, -0.36979109048843384, 0.15674421191215515, -0.08244825899600983, 0.19411076605319977, -0.2658011019229889, -0.0755542442202568, -0.3253019154071808, 0.06334592401981354, -0.5507810115814209, -0.005786364432424307, -0.13045604526996613, 0.29262879490852356, 0.2511182427406311, 0.2495184689760208, 0.03237176313996315, -0.1254940778017044, 0.0750744417309761, -0.33150914311408997, 0.0869629830121994, -0.04997958242893219, -0.10876796394586563, -0.028628086671233177, 0.1192317008972168, -0.21895019710063934, -0.1965753138065338, -0.08093111962080002, -0.05959058552980423, 0.23534516990184784, 0.33463430404663086, 0.19336099922657013, -0.11094646155834198, 0.0923805758357048, -0.0715818703174591, 0.20884448289871216, -0.3361063599586487, -0.0010505589889362454, 0.20945261418819427, -0.2351086288690567, -0.385667085647583, -0.2787618339061737, 0.09165402501821518, 0.14443863928318024, 0.13497963547706604, -0.0671067163348198, 0.4620257318019867, 0.05584463104605675, 0.1441369652748108, 0.4726655185222626, 0.12379378080368042, 0.0034985325764864683, -0.060925718396902084, -0.4403912425041199, 0.624505877494812, -0.4146517813205719, -0.04124986752867699, -0.13037578761577606, -0.07033960521221161, 0.029181664809584618, -0.01939418911933899, 0.20221032202243805, -0.1669086068868637, 0.05688685551285744, 0.40134721994400024, 0.1551736742258072, 0.11707355082035065, -0.19467924535274506, -0.268393874168396, 0.013691304251551628, 0.2815435528755188, -0.0744166448712349, 0.17420823872089386, 0.07079187780618668, -0.03016788698732853, -0.11718501150608063, 0.371191143989563, 0.11202132701873779, -0.4049769937992096, 0.06472206860780716, 0.048967499285936356, 0.11483075469732285, -0.060899294912815094, -0.23303374648094177, 0.1366051882505417, 0.09728243201971054, -0.6623624563217163, 0.10582936555147171, 0.40259337425231934, -0.1487615555524826, -0.31135204434394836, -0.07095490396022797, 0.06534286588430405, -0.1784997284412384, 0.24333703517913818, 0.18514956533908844, 0.24274314939975739, 0.35614272952079773, 0.06264489889144897, 0.3224669396877289, -0.24908442795276642, -0.08479383587837219, -0.3810078203678131, -0.04088691249489784, -0.02900061011314392, -0.1580859273672104, 0.1339617818593979, 0.45308446884155273, 0.3085567057132721, 0.0720686987042427, -0.14177778363227844, 0.31269893050193787, 0.338964581489563, -0.026390353217720985, -0.05274011939764023, 0.06802412867546082, 0.19826240837574005, 0.23580613732337952, -0.04036552086472511, 0.5818982124328613, 0.16091440618038177, -0.08763031661510468, 0.0840422511100769, 0.4946388006210327, -0.4532780945301056, -0.013118845410645008, -0.06744902580976486, -0.01553239393979311, 0.13883155584335327, 0.04366900399327278, -0.1320200115442276, -0.14338912069797516, 0.4456665813922882, 0.17654377222061157, 0.16475608944892883, 0.07333741337060928, -0.3982082009315491, -0.07345879077911377, 0.25758033990859985, 0.021704399958252907, 0.1302787810564041, -0.07679987698793411, 0.05494095757603645, -0.10266290605068207, 0.022918252274394035, 0.05283894017338753, 0.3336087465286255, 0.16537736356258392, -0.06924889981746674, 0.12188725173473358, -0.4862627685070038, -0.4011191129684448, -0.13018380105495453, -0.040668413043022156, 0.12570105493068695, 0.26869189739227295, 0.3928353786468506, 0.1780776083469391, -0.3108201324939728, -0.17250190675258636, -0.17808327078819275, 0.002873988589271903, -0.08679922670125961, 0.26277482509613037, -0.2829509675502777, 0.06389151513576508, -0.12403274327516556, -0.24999137222766876, -0.22105278074741364, -0.33012330532073975, 0.11894591897726059, 0.26078271865844727, 0.18013794720172882, -0.021339138969779015, 0.416526734828949, 0.16435711085796356, -0.11060374975204468, 0.17794238030910492, -0.11522412300109863, -0.27895140647888184, -0.09802395105361938, 0.105392225086689, -0.21877256035804749, 0.205429807305336, 0.26019975543022156, -0.3080383241176605, 0.020306134596467018, 0.1796344369649887, -0.2534668445587158, -0.06861572712659836, -0.0020723422057926655, 0.40984198451042175, 0.10682277381420135, -0.3358052670955658, -0.2656079828739166, 0.3347660005092621, 0.3430611789226532, -0.22917674481868744, -0.15462492406368256, 0.10122355818748474, -0.08972378820180893, 0.07925866544246674, -0.016721811145544052, -0.04306364431977272, -0.23171059787273407, -0.2127954512834549, 0.4316243827342987, 0.2908911108970642, 0.008383496664464474, 0.5002602934837341, -0.08316776901483536, -0.007333472836762667, 0.1379414051771164, 0.2961849868297577, -0.46744605898857117, -0.03318645432591438, 0.29393333196640015, -0.3487686514854431, -0.43660223484039307, -0.22409801185131073, 0.050590936094522476, 0.07246842235326767, 0.010816505178809166, -0.23372164368629456, -0.570281982421875, 0.00900297798216343, -0.002647928660735488, -0.19519616663455963, -0.1662590056657791, 0.46728721261024475, -0.2651467025279999, -0.21215584874153137, 0.0052439188584685326, 0.0653485655784607, -0.002916059922426939, 0.2327386885881424, 0.3163965344429016, -0.30678749084472656, 0.21716228127479553, -0.12604248523712158, 0.06439948827028275, 0.35221055150032043, -0.1832672506570816, 0.11607704311609268, -0.02475227788090706, 0.31178730726242065, -0.31687453389167786, 0.036407701671123505, 0.294845312833786, 0.08570538461208344, -0.19495685398578644, 0.17095927894115448, -0.11886858195066452, 0.28671133518218994, -0.1773143857717514, -0.061370622366666794, 0.11887146532535553, -0.15925349295139313, -0.012251246720552444, -0.2380351573228836, -0.22043976187705994, 0.08036255091428757, 0.24642238020896912, -0.08696020394563675, -0.20092244446277618, -0.013554868288338184, 0.08424659818410873, 0.07019903510808945, 0.0027533855754882097, -0.010382022708654404, -0.07200594991445541, -0.4640113413333893, 0.18938332796096802, -0.10065907984972, 0.10091371834278107, -0.04564205929636955, 0.06699436902999878, 0.16914013028144836, -0.05668458715081215, 0.36663100123405457, -0.21061216294765472, 0.09216361492872238, 0.1756337285041809, -0.29415470361709595, -0.46040940284729004, -0.115977942943573, -0.3113109767436981, 0.04448649659752846, 0.2178652584552765, 0.20708832144737244, -0.108355313539505, -0.07992053776979446, -0.0648069977760315, 0.03597593680024147, -0.19810520112514496, -0.04152081161737442, -0.629336416721344, -0.004617022816091776, 0.018164070323109627, 0.11431461572647095, -0.052650000900030136, 0.23123674094676971, 0.027474738657474518, -0.00947237852960825, -0.2461320161819458, -0.013317761942744255, 0.31216856837272644, 0.42884594202041626, 0.21476876735687256, 0.06068103387951851, -0.27280139923095703, -0.010538979433476925, -0.02256055735051632, -0.30333834886550903, 0.07821539044380188, 0.10136961936950684, -0.29624614119529724, 0.04244567081332207, -0.013297284953296185, 0.03574274107813835, 0.22105242311954498, 0.013815980404615402, -0.14380234479904175, -0.7564551830291748, 0.32956215739250183, -0.36978644132614136, 0.1255408525466919, 0.3463999927043915, -0.012613184750080109, 0.012983748689293861, -0.3289075791835785, 0.3513900339603424, 0.13738250732421875, -0.4095773994922638, 0.27807462215423584, -0.38765043020248413, -0.12744030356407166, 0.49777862429618835, 0.44109487533569336, 0.8089752793312073, -0.05540275573730469, 0.23449848592281342, 0.34947410225868225, -0.1319749355316162, 0.5014904737472534, -0.22654429078102112, 0.1540486067533493, -0.24588561058044434, -0.1971992403268814, 0.029812021180987358, 0.028944814577698708, -0.04111719876527786, -0.0968410074710846, -0.10229574143886566, 0.4249102771282196, 0.10975705832242966, 0.018914837390184402, -0.05721421539783478, 0.007808913476765156, 0.20161664485931396, -0.017336972057819366, -0.15413567423820496, 0.20309075713157654, -0.08189459145069122, 0.19088350236415863, -0.175275057554245, 0.012295551598072052, -0.21485377848148346, 0.057688698172569275, 0.01457533985376358, -0.14860112965106964, -0.24445033073425293, 0.21132288873195648, -0.07249259948730469, -0.41597485542297363, -0.37749531865119934, 0.558713972568512, 0.41743436455726624, 0.19439208507537842, 0.029006987810134888, 0.20168252289295197, 0.019036462530493736, 0.11785798519849777, -0.05884484946727753, -0.07451023906469345, 0.13077594339847565, -0.04876459762454033, -0.24276889860630035, 0.09473216533660889, 0.17812460660934448, -0.25637587904930115, -0.23586654663085938, 0.16424688696861267, -0.39351966977119446, 0.14282172918319702, 0.013132022693753242, -0.08233274519443512, -0.057494599372148514, -0.07063493877649307, 0.17087054252624512, 0.012570807710289955, -0.06271258741617203, 0.3557583689689636, 0.14628826081752777, -0.504159152507782, -0.16160443425178528, 0.3129504919052124, -0.03948037698864937, 0.005244067870080471, -0.13372299075126648, -0.3825676143169403, 0.04567314684391022, -0.3021409511566162, -0.10493122041225433, -0.343626469373703, -0.01639862358570099, 0.28439444303512573, 0.07784723490476608, -0.06672077625989914, 0.20672725141048431, 0.6172467470169067, 0.2040034383535385, 0.22915950417518616, 0.2028275728225708, -0.37563446164131165, -0.10113580524921417, 0.026163440197706223, 0.20026612281799316, 0.027095161378383636, 0.04101235419511795, 0.25916752219200134, 0.044195085763931274, 0.33287614583969116, -0.4154181480407715, -0.21122755110263824, -0.27285605669021606, 0.07712577283382416, -0.40332910418510437, -0.24859149754047394, -0.19831342995166779, 0.1788429468870163, 0.10683495551347733, 0.2859475314617157, -0.36958542466163635, -0.24807430803775787, -0.18295855820178986, 0.0778273344039917, -0.01467206422239542, 0.2568798363208771, -0.1227303221821785, 0.08978867530822754, 0.028008025139570236, -0.2528814673423767, 0.025789422914385796, 0.28193023800849915, 0.18656879663467407, 0.15219701826572418, -0.09543779492378235, 0.41180261969566345, 0.18983495235443115, -0.014128005132079124, 0.06453659385442734, 0.030332770198583603, -0.09231334179639816, -0.08468668907880783, -0.15759462118148804, 0.01997346058487892, -0.4911453425884247, -0.15876714885234833, -0.15517261624336243, -0.10303271561861038, 0.0377308689057827, 0.03173593059182167, 0.12621812522411346, -0.24199745059013367, 0.2969404458999634, 0.2501823902130127, -0.05861911177635193, -0.3473286032676697, -0.03018364869058132, 0.21944132447242737, -0.33122962713241577, 0.22638638317584991, -0.08573276549577713, 0.24605855345726013, 0.2790096700191498, 0.4026724696159363, 0.2872612476348877, -0.17612026631832123, -0.03948260471224785, -0.13491418957710266, -0.09364252537488937, -0.26379579305648804, 0.16679252684116364, -0.1747073233127594, 0.11362571269273758, -0.012839400209486485, 0.6192083954811096, 0.02297692559659481, 0.14892348647117615, 0.38942214846611023, 0.1835264265537262, 0.3473851680755615, -0.3537890911102295, 0.03477367013692856, -0.15729662775993347, 0.13026709854602814, -0.09624608606100082, 0.4951850473880768, -0.004752220585942268, 0.057150065898895264, 0.1610792726278305, 0.23705659806728363, -0.3910464346408844, -0.2623579800128937, -0.38009750843048096, 0.04479869082570076, -0.07528223097324371, -0.16968275606632233, -0.2992706596851349, -0.10491439700126648, -0.2750799059867859, -0.013725027441978455, 0.05983501672744751, 0.19096696376800537, 0.2889845371246338, 0.13966533541679382, -0.04360675439238548, -0.19414688646793365, -0.12645591795444489, 0.010286029428243637, 0.40567073225975037, -0.1645217090845108, 0.08636175841093063, 0.05788268893957138, 0.21722210943698883, 0.041572507470846176, 0.21977974474430084, 0.20977070927619934, 0.3153038024902344, -0.35650089383125305, 0.10378371179103851, -0.19265975058078766, -0.026003222912549973, -0.06899074465036392, 0.23194381594657898, 0.33855441212654114, -0.18314921855926514, 0.4716707170009613, 0.1637120395898819, -0.27064257860183716, 0.4996533691883087, 0.14178872108459473, 0.35198354721069336, -0.2614811956882477, 0.5389909744262695, 0.2331407517194748, 0.23114435374736786, -0.08833413571119308, 0.06774710863828659, -0.4462491571903229, 0.1519174873828888, -0.5843311548233032, -0.03357125073671341, 0.03211257979273796, -0.3731009066104889, 0.11775955557823181, -0.05338607728481293, 0.3991174101829529, -0.1048748791217804, 0.1799812912940979, -0.11669264733791351, -0.19338761270046234, -0.6247978210449219, 0.11713655292987823, -0.11927568167448044, 0.011770862154662609, -0.11342501640319824, 0.2710290253162384, -0.30303123593330383, 0.3159368932247162, -0.08644446730613708, 0.5827922821044922, -0.07949230074882507, 0.21446625888347626, -0.5019693374633789, 0.2297377586364746, -0.47181475162506104, -0.18884721398353577, 0.17910784482955933, -0.0297104325145483, -0.06021353602409363, -0.24444910883903503, 0.11951395869255066, 0.09021049737930298, -0.08056043088436127, 0.015691030770540237, 0.8752211928367615, 0.49479952454566956, 0.1753019541501999, 0.19835563004016876, -0.1136673167347908, -0.1404847800731659, -0.0375547856092453, -0.19141492247581482, -0.03997208550572395, 0.14906926453113556, 0.021079540252685547, 0.12287985533475876, -0.009552274830639362, 0.1311475932598114, 0.010022539645433426, 0.7477491497993469, 0.10751435905694962, -0.28836458921432495, -0.15808649361133575, 0.11120430380105972, 0.03385869041085243, 0.09519808739423752, -0.3561345338821411, 0.5702245831489563, -0.006233798339962959, 0.3806048333644867, -0.15711265802383423, -0.34380364418029785, 0.5270280838012695, -0.1536007672548294, -0.05581052601337433, -0.04449665918946266, 0.2838687300682068, 0.19970127940177917, -0.09554344415664673, -0.3783436715602875, 0.07034260779619217, 0.10696835070848465, 0.0896177664399147, 0.01726459339261055, 0.29028087854385376, -0.24874626100063324, -0.08878009766340256, -0.19046537578105927, 0.13223199546337128, -0.010481031611561775, -0.08955465257167816, 0.3145923912525177, -0.3432697355747223 ]
https://github.com/huggingface/datasets/issues/360
[Feature request] Add dataset.ragged_map() function for many-to-many transformations
Actually `map(batched=True)` can already change the size of the dataset. It can accept examples of length `N` and returns a batch of length `M` (can be null or greater than `N`). I'll make that explicit in the doc that I'm currently writing.
`dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines. `dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset. However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]` I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this. My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
42
[Feature request] Add dataset.ragged_map() function for many-to-many transformations `dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines. `dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset. However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]` I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this. My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general. Actually `map(batched=True)` can already change the size of the dataset. It can accept examples of length `N` and returns a batch of length `M` (can be null or greater than `N`). I'll make that explicit in the doc that I'm currently writing.
[ -0.5117924213409424, -0.0649435967206955, 0.0467376671731472, -0.21277640759944916, -0.0525982603430748, -0.09725116938352585, 0.24880264699459076, 0.35040444135665894, -0.24927477538585663, 0.0586385615170002, 0.19317181408405304, 0.4199864864349365, -0.4208357036113739, -0.1185225397348404, 0.3404651880264282, -0.2591933310031891, 0.12048456072807312, -0.07186821103096008, -0.05883871763944626, -0.07704635709524155, -0.394681453704834, -0.09677775204181671, -0.25182467699050903, -0.001955153187736869, -0.017071019858121872, -0.02989977039396763, -0.1776055097579956, -0.31509917974472046, 0.19137123227119446, -0.026635197922587395, 0.18286718428134918, 0.3647993803024292, -0.08344259113073349, 0.1984165906906128, -0.00012928112118970603, -0.19040876626968384, 0.09212175011634827, -0.03857109323143959, -0.2248561680316925, -0.12352976202964783, -0.09803427010774612, -0.11943677812814713, -0.12173900753259659, -0.186955064535141, 0.16762606799602509, 0.040292683988809586, 0.25798624753952026, -0.32766079902648926, 0.4382549822330475, 0.13338004052639008, -0.058807309716939926, 0.0316227488219738, -0.09492568671703339, 0.033790238201618195, 0.5097761154174805, 0.46574902534484863, -0.03280561417341232, -0.2857997715473175, 0.5987887382507324, -0.2376427948474884, -0.04819077253341675, 0.31152746081352234, -0.056830715388059616, -0.009525977075099945, 0.2963947653770447, -0.01021974254399538, -0.1644725352525711, -0.2860157787799835, -0.17815738916397095, 0.6859878301620483, -0.1074637696146965, -0.3305649757385254, -0.5636526346206665, -0.3081476390361786, 0.10562587529420853, -0.23657533526420593, -0.4840703308582306, 0.03168308362364769, -0.12582926452159882, -0.04669346660375595, -0.815077543258667, -0.10630515962839127, -0.3973291218280792, 0.3978859484195709, -0.16253043711185455, 0.13736765086650848, 0.25689947605133057, 0.22208906710147858, 0.10738900303840637, -0.26159825921058655, -0.1022023856639862, -0.14488619565963745, 0.25727570056915283, 0.45625191926956177, -0.09176721423864365, -0.32550570368766785, 0.0890360027551651, -0.048654716461896896, 0.5503159761428833, 0.08205680549144745, -0.0035318706650286913, 0.1841464638710022, -0.22062142193317413, -0.025934020057320595, -0.028433622792363167, -0.005363315809518099, 0.031887806951999664, 0.5232822895050049, 0.1720312088727951, -0.06080000475049019, -0.06206696480512619, 0.37382227182388306, -0.05331258475780487, -0.19685286283493042, -0.18626953661441803, 0.22874599695205688, -0.1539471447467804, 0.12613916397094727, -0.07833371311426163, -0.22516024112701416, -0.26090890169143677, -0.02592075988650322, 0.09606081247329712, 0.11377350986003876, -0.05929581820964813, -0.020201891660690308, 0.14819717407226562, 0.11808285862207413, 0.034574057906866074, -0.07613234966993332, 0.03661397099494934, -0.13240213692188263, -0.3662853240966797, 0.13339918851852417, 0.31618669629096985, 0.16342779994010925, 0.03577972576022148, -0.0900673121213913, 0.049334198236465454, 0.39587143063545227, 0.03178148716688156, -0.10152984410524368, 0.4242258071899414, -0.10630690306425095, -0.3029841482639313, 0.09028857946395874, 0.05021437257528305, 0.21033115684986115, -0.32756802439689636, 0.17871175706386566, -0.5758724212646484, -0.5673735737800598, 0.23677407205104828, 0.007507699076086283, 0.08831030130386353, -0.025955429300665855, -0.13968239724636078, 0.4832123816013336, 0.39832603931427, -0.3995804786682129, -0.018734648823738098, -0.46314650774002075, -0.3660466969013214, -0.044632475823163986, 0.1977975219488144, 0.3899153769016266, -0.06479957699775696, -0.10405810922384262, -0.12276653945446014, 0.25287720561027527, 0.26170724630355835, 0.2549610733985901, -0.3634375035762787, 0.3214169144630432, -0.010430826805531979, 0.0024095927365124226, 0.5380628705024719, -0.1634080410003662, -0.04623796045780182, 0.468403697013855, -0.08066801726818085, 0.1257230043411255, 0.020697275176644325, -0.055274393409490585, 0.6303872466087341, -0.2714841067790985, 0.5482932925224304, 0.4955853521823883, -0.24490013718605042, 0.23185129463672638, 0.10406272858381271, -0.2603810131549835, 0.11292582750320435, 0.10383867472410202, 0.15815196931362152, -0.1579868048429489, -0.09196336567401886, 0.16194023191928864, 0.29255595803260803, -0.3035007417201996, 0.14942993223667145, -0.25041332840919495, -0.28020548820495605, 0.08378627896308899, -0.16901105642318726, -0.2650314271450043, -0.4043857455253601, -0.05321119725704193, -0.18629160523414612, -0.11818399280309677, 0.33965861797332764, -0.340947687625885, 0.3310181796550751, -0.036108918488025665, 0.11900702118873596, 0.014399174600839615, -0.09510276466608047, 0.07692259550094604, 0.0848628580570221, 0.014127596281468868, -0.1435779333114624, -0.33895957469940186, -0.05381383001804352, 0.15892921388149261, 0.00723889609798789, 0.06502175331115723, 0.3833913505077362, 0.010754612274467945, -0.2258310765028, 0.22996236383914948, -0.012986913323402405, -0.2821638882160187, 0.23075491189956665, 0.2818347215652466, 0.15165549516677856, -0.06793911010026932, -0.1761772632598877, 0.35488930344581604, 0.4281880259513855, 0.10574007779359818, 0.11387704312801361, 0.24189786612987518, 0.10266038030385971, -0.2012154906988144, -0.5654880404472351, 0.32782596349716187, 0.015929026529192924, 0.5668688416481018, 0.2172819823026657, 0.03671779856085777, -0.2614707946777344, 0.08435732871294022, -0.3924778699874878, -0.12330085784196854, 0.0642566978931427, -0.09243322163820267, 0.06192084774374962, -0.1779862940311432, -0.1098281517624855, 0.13850060105323792, 0.33412379026412964, -0.062312982976436615, 0.016042470932006836, 0.45998820662498474, -0.008359061554074287, -0.14534103870391846, -0.14267025887966156, 0.0741562470793724, 0.29543858766555786, 0.19297797977924347, 0.04573318362236023, -0.15670108795166016, 0.03307368978857994, 0.08373495191335678, 0.21529851853847504, 0.15707531571388245, 0.06505054235458374, 0.12567397952079773, 0.18531131744384766, 0.18263910710811615, 0.009082813747227192, -0.5682793855667114, 0.18825502693653107, -0.00795830599963665, -0.2539593279361725, 0.13106045126914978, -0.05174216628074646, -0.0749286338686943, -0.3282674551010132, -0.3806491494178772, 0.21215833723545074, -0.218744695186615, 0.2884809672832489, -0.12821464240550995, -0.2969512343406677, 0.27722659707069397, 0.43692582845687866, 0.4191135764122009, 0.05731702595949173, -0.21483224630355835, -0.0691942423582077, -0.21955573558807373, -0.010006649419665337, -0.1027998998761177, 0.09534196555614471, -0.2313002645969391, 0.3172838091850281, 0.05285565182566643, -0.03004842810332775, -0.4030624330043793, -0.3596819341182709, -0.04224851354956627, -0.14545375108718872, -0.09496522694826126, 0.47976934909820557, 0.0653492733836174, -0.08452051877975464, -0.23748727142810822, 0.0989023819565773, -0.3198268413543701, 0.0672239288687706, -0.013090481050312519, 0.06728704273700714, 0.02768067456781864, -0.0035391661804169416, -0.1749516874551773, -0.06539079546928406, -0.1445050984621048, 0.2854903042316437, -0.25134027004241943, 0.18265315890312195, 0.041082583367824554, 0.23526154458522797, -0.011329199187457561, -0.09861567616462708, -0.16383220255374908, 0.3204435408115387, -0.07227230072021484, 0.12160550057888031, -0.2969002425670624, -0.057740263640880585, -0.38480204343795776, 0.01475530955940485, -0.41685232520103455, 0.883357048034668, -0.2570570111274719, 0.06533895432949066, -0.010965315625071526, 0.11444784700870514, -0.028680600225925446, 0.11447205394506454, 0.45943552255630493, 0.173404723405838, 0.08428701013326645, -0.07531179487705231, 0.00183283316437155, 0.06281228363513947, 0.07647120952606201, -0.01328812725841999, 0.16764487326145172, 0.31079307198524475, 0.13823449611663818, 1.0362781286239624, 0.4065801799297333, -0.19772742688655853, -0.12377636879682541, -0.09552290290594101, -0.13065136969089508, -0.09421582520008087, -0.07739364355802536, 0.2284003496170044, -0.10270461440086365, 0.01580105349421501, 0.2640624940395355, 0.019335119053721428, -0.2913356125354767, 0.09273048490285873, 0.26280030608177185, -0.06299309432506561, -0.35146769881248474, 0.43119075894355774, -0.25346270203590393, 0.3162635862827301, -0.0628940761089325, -0.02182527631521225, -0.45899975299835205, -0.04508691281080246, 0.13934926688671112, 0.028479214757680893, 0.4992492198944092, 0.008977976627647877, -0.18568088114261627, -0.19425132870674133, -0.17438414692878723, 0.25923672318458557, 0.31693077087402344, -0.16960950195789337, -0.04714732989668846, -0.2704782485961914, -0.18046410381793976, 0.04084085300564766, 0.6683764457702637, -0.4042580723762512, -0.09447655826807022, -0.06400569528341293, -0.14112533628940582, -0.3563019037246704, 0.031246542930603027, -0.24819864332675934, 0.06974425911903381, -0.019850747659802437, 0.4948212206363678, -0.38804498314857483, -0.11994485557079315, 0.5387393236160278, 0.20253431797027588, 0.07076133787631989, 0.22782769799232483, 0.3493993878364563, 0.05124937370419502, -0.29301878809928894, 0.04615418240427971, 0.008385873399674892, -0.13815121352672577, -0.05734020471572876, -0.15631003677845, -0.2667962312698364, 0.1851995438337326, 0.17924906313419342, 0.04694153741002083, 0.03654301539063454, 0.17413054406642914, 0.24748313426971436, -0.1948195993900299, -0.03888162970542908, 0.5333441495895386, -0.023282302543520927, -0.5298098921775818, -0.29019609093666077, -0.29572901129722595, 0.09348710626363754, 0.483853816986084, 0.3759438395500183, 0.10379617661237717, -0.2002667486667633, 0.09907957911491394, 0.3444667458534241, -0.19389162957668304, 0.35903501510620117, 0.23850791156291962, -0.004601493012160063, -0.2231176346540451, -0.6674752831459045, 0.2885190546512604, 0.33964014053344727, -0.15392622351646423, 0.49994635581970215, -0.11281880736351013, -0.43385738134384155, 0.43767598271369934, 0.21386705338954926, 0.8605989813804626, -0.09303645044565201, 0.4288921654224396, 0.0714300274848938, 0.2922268509864807, 0.035598818212747574, -0.3562477231025696, 0.17453786730766296, -0.03882424533367157, 0.03779660537838936, -0.033928997814655304, 0.06315707415342331, -0.06563723832368851, 0.35338184237480164, -0.3637485206127167, 0.17853981256484985, 0.16646447777748108, 0.05363977700471878, -0.12540210783481598, -0.14962756633758545, 0.12313443422317505, -0.45451995730400085, 0.1960613876581192, -0.07371383160352707, 0.18059660494327545, -0.016381943598389626, -0.0644325315952301, -0.21704666316509247, 0.01754920929670334, -0.1197940856218338, -0.4037570655345917, -0.1684030294418335, -0.46348318457603455, 0.11808350682258606, -0.16452638804912567, -0.3696550130844116, 0.13608169555664062, 0.31408172845840454, -0.08946216106414795, 0.2606821060180664, -0.010970733128488064, -0.08494638651609421, 0.05317548289895058, 0.12343881279230118, -0.11260350048542023, -0.4361713230609894, 0.4604463279247284, 0.024107862263917923, 0.06359539926052094, 0.11800836026668549, -0.013591294176876545, 0.02036425843834877, -0.23200833797454834, -0.1347924917936325, 0.62381911277771, -0.16974221169948578, 0.08116217702627182, 0.4407757818698883, -0.21019482612609863, -0.16499601304531097, -0.08183988183736801, -0.08217810839414597, -0.040397416800260544, 0.43952348828315735, -0.17776447534561157, -0.01961684226989746, 0.08874793350696564, 0.17746365070343018, -0.14300215244293213, -0.20586198568344116, 0.21942487359046936, 0.034710321575403214, 0.0017068602610379457, -0.21431942284107208, 0.41867637634277344, 0.3412618935108185, -0.5785905122756958, 0.2002497762441635, -0.07552454620599747, 0.13830971717834473, 0.1926773637533188, 0.4940735101699829, 0.0020637395791709423, 0.21984271705150604, -0.10512938350439072, -0.14939160645008087, -0.08775675296783447, 0.09881294518709183, 0.09802908450365067, 0.3579161763191223, -0.26439499855041504, 0.09382621198892593, 0.11019159853458405, 0.22625479102134705, -0.1430220752954483, 0.1302989423274994, 0.1500331610441208, 0.3245943486690521, -0.14690154790878296, 0.18600280582904816, -0.3450329601764679, 0.12041377276182175, -0.1457301378250122, 0.02489028312265873, -0.08707164973020554, -0.03391420096158981, -0.13416032493114471, 0.21382290124893188, 0.013619164004921913, -0.012630315497517586, 0.26628750562667847, -0.006508077960461378, -0.22939032316207886, -0.4863309860229492, 0.41707679629325867, -0.098872110247612, -0.1932523548603058, 0.03233490511775017, 0.2872152030467987, 0.14878572523593903, 0.04347342252731323, 0.23041261732578278, 0.14647603034973145, 0.168526291847229, -0.1405685544013977, 0.17050930857658386, 0.051640208810567856, -0.32479000091552734, 0.07421077787876129, 0.24457935988903046, 0.4982967674732208, 0.16705651581287384, 0.37019646167755127, -0.045554108917713165, -0.2654013931751251, 0.25594040751457214, 0.06079773232340813, 0.30031871795654297, -0.21457195281982422, 0.08911851048469543, 0.2506807744503021, 0.04328111559152603, -0.14495757222175598, 0.0008068170282058418, 0.11593728512525558, -0.1271291822195053, 0.1409296840429306, 0.15316231548786163, -0.32670536637306213, -0.13710957765579224, -0.00992063619196415, -0.10051757842302322, -0.005487378221005201, -0.24980638921260834, 0.1589377075433731, 0.5841219425201416, -0.09647144377231598, 0.005484077148139477, -0.3491951823234558, 0.20939292013645172, 0.30796703696250916, -0.13427592813968658, 0.06246914342045784, 0.725911021232605, 0.18677105009555817, 0.04451112076640129, 0.3982730805873871, -0.23893405497074127, 0.03795851767063141, 0.11826840043067932, 0.08143039047718048, 0.42669203877449036, 0.22451277077198029, 0.02892306074500084, -0.051634833216667175, -0.22233344614505768, -0.17806702852249146, 0.33083030581474304, 0.20709143579006195, -0.2560722827911377, -0.12840966880321503, -0.1608002632856369, 0.19127033650875092, -0.0682942196726799, -0.22825565934181213, -0.01218534354120493, 0.6396489143371582, 0.18945817649364471, 0.42831405997276306, 0.03560129180550575, -0.25673073530197144, -0.23384052515029907, 0.4714789390563965, -0.24505890905857086, -0.1183253601193428, 0.1864354908466339, -0.10907132923603058, -0.04308291897177696, 0.3037448525428772, 0.3738420605659485, 0.255452036857605, -0.20620055496692657, 0.38568198680877686, -0.3402121663093567, 0.15663591027259827, 0.04536333680152893, 0.17113980650901794, 0.06494962424039841, -0.24258245527744293, 0.2798640727996826, -0.11200966686010361, -0.013645770959556103, 0.16772814095020294, -0.13195782899856567, -0.015959108248353004, -0.2207808792591095, 0.09142604470252991, 0.2969553470611572, -0.22206683456897736, -0.06370104849338531, 0.14551536738872528, -0.08269086480140686, 0.16357703506946564, 0.2586449682712555, -0.32324278354644775, 0.018108101561665535, 0.22099721431732178, -0.007962395437061787, 0.07852762192487717, 0.4866628348827362, 0.07317833602428436, 0.08235181868076324, -0.32614240050315857, -0.3485635817050934, -0.044537171721458435, -0.22371424734592438, -0.14922386407852173, 0.07823152840137482, -0.0020910019520670176, 0.05208975449204445, 0.15422923862934113, 0.3146723210811615, -0.0017984833102673292, -0.7042709589004517, -0.11451500654220581, 0.5776193141937256, -0.1748531460762024, -0.11609038710594177, 0.12706831097602844, 0.1364876627922058, 0.11953543871641159, -0.35801053047180176, 0.12661580741405487, -0.20970971882343292, -0.19292308390140533, -0.060575202107429504, 0.15726783871650696, 0.30121326446533203, 0.07566184550523758, 0.14411033689975739, 0.11444311589002609, 0.1108202189207077, 0.03712503984570503, 0.22318586707115173, -0.11265953630208969, 0.172108456492424, -0.03615999221801758, 0.20402765274047852, 0.10060923546552658, 0.0013345853658393025, -0.2895730137825012, -0.3310925364494324, -0.041955914348363876, -0.3831172287464142, 0.29119908809661865, 0.019022924825549126, -0.12996810674667358, -0.06236972659826279, -0.04530023783445358, -0.04455409198999405, 0.12692736089229584, 0.42957815527915955, -0.12052353471517563, -0.20041978359222412, 0.04621070250868797, -0.2601970434188843, 0.39552488923072815, -0.4662586748600006, -0.3204611837863922, -0.4795973598957062, 0.16789740324020386, -0.41460132598876953, 0.22870638966560364, -0.4381659924983978, -0.10768359154462814, 0.40409472584724426, -0.0032026898115873337, -0.4082680642604828, 0.2361125349998474, 0.12415535748004913, -0.2943822145462036, -0.25540003180503845, 0.3656478822231293, 0.012295444495975971, -0.22831636667251587, -0.15867860615253448, -0.6390993595123291 ]
https://github.com/huggingface/datasets/issues/360
[Feature request] Add dataset.ragged_map() function for many-to-many transformations
You're two steps ahead of me :) In my testing, it also works if `M` < `N`. A batched map of different length seems to work if you directly overwrite all of the original keys, but fails if any of the original keys are preserved. For example, ```python # Create a dummy dataset dset = load_dataset("wikitext", "wikitext-2-raw-v1")["test"] dset = dset.map(lambda ex: {"length": len(ex["text"]), "foo": 1}) # Do an allreduce on each batch, overwriting both keys dset.map(lambda batch: {"length": [sum(batch["length"])], "foo": [1]}) # Dataset(schema: {'length': 'int64', 'foo': 'int64'}, num_rows: 5) # Now attempt an allreduce without touching the `foo` key dset.map(lambda batch: {"length": [sum(batch["length"])]}) # This fails with the error message below ``` ```bash File "/path/to/nlp/src/nlp/arrow_dataset.py", line 728, in map arrow_schema = pa.Table.from_pydict(test_output).schema File "pyarrow/io.pxi", line 1532, in pyarrow.lib.Codec.detect File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1 named foo expected length 1 but got length 2 ``` Adding the `remove_columns=["length", "foo"]` argument to `map()` solves the issue. Leaving the above error for future visitors. Perfect, thank you!
`dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines. `dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset. However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]` I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this. My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
179
[Feature request] Add dataset.ragged_map() function for many-to-many transformations `dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines. `dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset. However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]` I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this. My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general. You're two steps ahead of me :) In my testing, it also works if `M` < `N`. A batched map of different length seems to work if you directly overwrite all of the original keys, but fails if any of the original keys are preserved. For example, ```python # Create a dummy dataset dset = load_dataset("wikitext", "wikitext-2-raw-v1")["test"] dset = dset.map(lambda ex: {"length": len(ex["text"]), "foo": 1}) # Do an allreduce on each batch, overwriting both keys dset.map(lambda batch: {"length": [sum(batch["length"])], "foo": [1]}) # Dataset(schema: {'length': 'int64', 'foo': 'int64'}, num_rows: 5) # Now attempt an allreduce without touching the `foo` key dset.map(lambda batch: {"length": [sum(batch["length"])]}) # This fails with the error message below ``` ```bash File "/path/to/nlp/src/nlp/arrow_dataset.py", line 728, in map arrow_schema = pa.Table.from_pydict(test_output).schema File "pyarrow/io.pxi", line 1532, in pyarrow.lib.Codec.detect File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1 named foo expected length 1 but got length 2 ``` Adding the `remove_columns=["length", "foo"]` argument to `map()` solves the issue. Leaving the above error for future visitors. Perfect, thank you!
[ -0.5140848755836487, -0.06388510763645172, 0.046735670417547226, -0.22718217968940735, -0.06906503438949585, -0.055106524378061295, 0.27751094102859497, 0.3193070590496063, -0.2335911989212036, 0.05177594721317291, 0.18533754348754883, 0.4330139756202698, -0.3891706168651581, -0.1567603051662445, 0.32066810131073, -0.2123527228832245, 0.13802576065063477, -0.0705326721072197, -0.04710923135280609, -0.06766583025455475, -0.41317102313041687, -0.08138271421194077, -0.30764564871788025, -0.019303403794765472, 0.015838690102100372, -0.05172332748770714, -0.16884779930114746, -0.3216548264026642, 0.19851310551166534, -0.05723845958709717, 0.15463078022003174, 0.3466908037662506, -0.07777471840381622, 0.2024633288383484, -0.00012820749543607235, -0.18303340673446655, 0.08523420989513397, -0.06605372577905655, -0.27782636880874634, -0.10433556139469147, -0.12224657833576202, -0.0921771228313446, -0.18749703466892242, -0.19217009842395782, 0.1732092946767807, 0.013911450281739235, 0.22943557798862457, -0.34309688210487366, 0.4886731207370758, 0.11278769373893738, -0.05097385495901108, 0.06581486016511917, -0.08223675191402435, 0.040413230657577515, 0.47337600588798523, 0.42200738191604614, -0.03351409360766411, -0.25608593225479126, 0.5853219032287598, -0.2236122339963913, -0.05612005293369293, 0.3167016804218292, -0.06406785547733307, -0.01255433727055788, 0.2690364122390747, 0.006932004354894161, -0.12763474881649017, -0.27821579575538635, -0.15969626605510712, 0.6687788963317871, -0.17962154746055603, -0.3169804513454437, -0.5546552538871765, -0.35928308963775635, 0.09457539767026901, -0.2510691285133362, -0.46919479966163635, 0.030872570350766182, -0.15246380865573883, -0.05949557572603226, -0.8480560183525085, -0.07252458482980728, -0.35028737783432007, 0.38336044549942017, -0.16569013893604279, 0.15732713043689728, 0.23634526133537292, 0.21938692033290863, 0.12542055547237396, -0.2635752260684967, -0.11692620068788528, -0.18933753669261932, 0.2012733370065689, 0.4865557849407196, -0.062196776270866394, -0.3287475109100342, 0.06573653221130371, -0.04549042135477066, 0.5274831056594849, 0.017832983285188675, 0.0014928379096090794, 0.17677514255046844, -0.14487209916114807, -0.05632667616009712, -0.02902659773826599, 0.012923303991556168, 0.08600302040576935, 0.5244879126548767, 0.18369007110595703, -0.07108528167009354, -0.07344023138284683, 0.37615570425987244, 0.0010368102230131626, -0.19391265511512756, -0.13754458725452423, 0.2832213044166565, -0.15395493805408478, 0.16063693165779114, -0.07123256474733353, -0.21176762878894806, -0.2780437767505646, -0.016103297472000122, 0.07048927992582321, 0.10739526152610779, -0.04452614113688469, -0.12050827592611313, 0.12252302467823029, 0.10432680696249008, 0.03427255526185036, -0.07587768882513046, 0.03353770449757576, -0.17915798723697662, -0.3669869899749756, 0.11221980303525925, 0.35164380073547363, 0.12530164420604706, 0.05581279471516609, -0.09146834909915924, 0.0226246640086174, 0.3612651228904724, -0.03328867256641388, -0.06956643611192703, 0.4820077121257782, -0.10843045264482498, -0.27386778593063354, 0.11369895190000534, 0.06542256474494934, 0.16287820041179657, -0.3124419152736664, 0.18070076406002045, -0.580531656742096, -0.48110389709472656, 0.31435275077819824, 0.02411937154829502, 0.05567082390189171, -0.012737061828374863, -0.21115709841251373, 0.4394818842411041, 0.39324888586997986, -0.35997602343559265, 0.009745238348841667, -0.4304397702217102, -0.3189188838005066, -0.040207862854003906, 0.19840040802955627, 0.40124809741973877, -0.07792513817548752, -0.1391838639974594, -0.06530069559812546, 0.2619437873363495, 0.25371065735816956, 0.2722935080528259, -0.3692956566810608, 0.329579621553421, -0.03301434591412544, 0.014165070839226246, 0.5044762492179871, -0.1357095092535019, -0.07615379989147186, 0.46838143467903137, -0.10219598561525345, 0.16582655906677246, -0.03354303538799286, -0.08392463624477386, 0.6721909046173096, -0.30239179730415344, 0.5716989636421204, 0.4612067639827728, -0.26157841086387634, 0.21656347811222076, 0.09593796730041504, -0.2506920397281647, 0.05717063695192337, 0.05973720923066139, 0.1780993491411209, -0.1654476374387741, -0.11076042056083679, 0.14697502553462982, 0.28590017557144165, -0.29646700620651245, 0.168708935379982, -0.20559445023536682, -0.3021271526813507, 0.07926035672426224, -0.17635895311832428, -0.21846424043178558, -0.4042699933052063, -0.0012161304475739598, -0.22664953768253326, -0.15669101476669312, 0.25837814807891846, -0.3116947412490845, 0.3473118841648102, -0.025370631366968155, 0.05283713340759277, -0.005587293766438961, -0.0706908106803894, 0.03357550501823425, 0.12244638800621033, 0.05774111673235893, -0.11514327675104141, -0.34562817215919495, 0.008259663358330727, 0.15611347556114197, 0.003323182463645935, 0.050349943339824677, 0.356812059879303, 0.005824738182127476, -0.23188984394073486, 0.21771298348903656, 0.029840610921382904, -0.3160478472709656, 0.23201026022434235, 0.28617551922798157, 0.10133830457925797, -0.0644030049443245, -0.2576487958431244, 0.33167925477027893, 0.4543638527393341, 0.11829861253499985, 0.09732267260551453, 0.23502105474472046, 0.11910378932952881, -0.2146911323070526, -0.5587955117225647, 0.36711186170578003, 0.002650331938639283, 0.5796785354614258, 0.17371146380901337, 0.04297395423054695, -0.2740187644958496, 0.08381347358226776, -0.42698541283607483, -0.1542903482913971, 0.06994757801294327, -0.12550000846385956, 0.0179755836725235, -0.17768268287181854, -0.05784250423312187, 0.12296807765960693, 0.2958965003490448, -0.08652465790510178, 0.025341544300317764, 0.3899822533130646, -0.055760230869054794, -0.12436655163764954, -0.1621280163526535, 0.07942993938922882, 0.2992252707481384, 0.17753978073596954, 0.07801181077957153, -0.17081214487552643, 0.02838757261633873, 0.06303833425045013, 0.22882504761219025, 0.14428266882896423, 0.030530190095305443, 0.15636301040649414, 0.16709360480308533, 0.17812715470790863, -0.029591074213385582, -0.5074165463447571, 0.2409532368183136, -0.03653262183070183, -0.24412697553634644, 0.11465562134981155, -0.07378160208463669, -0.07875856012105942, -0.32045504450798035, -0.37417906522750854, 0.2363281548023224, -0.24550874531269073, 0.29172250628471375, -0.09375862777233124, -0.2794336974620819, 0.3288770020008087, 0.47295430302619934, 0.37353941798210144, 0.06700354814529419, -0.23653264343738556, -0.09402041882276535, -0.25384899973869324, -0.0075247399508953094, -0.09843003749847412, 0.06699229031801224, -0.2963266968727112, 0.3102850615978241, 0.04911458492279053, -0.05904323235154152, -0.44378694891929626, -0.3047182857990265, -0.03124048374593258, -0.17081479728221893, -0.08168260753154755, 0.4561355710029602, 0.0946933925151825, -0.10127831250429153, -0.24396152794361115, 0.11658339202404022, -0.29215070605278015, 0.03310800716280937, 0.0019353099633008242, 0.08839791268110275, -0.016585908830165863, -0.010400715284049511, -0.10248642414808273, -0.03107762522995472, -0.10953422635793686, 0.27733203768730164, -0.3038092255592346, 0.15100447833538055, 0.10065142065286636, 0.23725943267345428, -0.040225498378276825, -0.12264873832464218, -0.21765832602977753, 0.2773086130619049, -0.057050447911024094, 0.1644928753376007, -0.3148435056209564, -0.08042901754379272, -0.35587945580482483, 0.008024106733500957, -0.4721953868865967, 0.8751971125602722, -0.2329040765762329, 0.09795618057250977, 0.006102816667407751, 0.1651855707168579, 0.01040626410394907, 0.11346447467803955, 0.445058137178421, 0.15659019351005554, 0.0744696855545044, -0.08696310222148895, 0.05319174379110336, 0.08612237870693207, 0.04634436219930649, 0.025101985782384872, 0.15529808402061462, 0.3127289414405823, 0.14834155142307281, 1.0749417543411255, 0.4066043794155121, -0.21696636080741882, -0.15869343280792236, -0.10326351225376129, -0.11727398633956909, -0.11194692552089691, -0.12297956645488739, 0.18623416125774384, -0.10867368429899216, 0.044641170650720596, 0.27210894227027893, -0.010847220197319984, -0.32702359557151794, 0.10429874807596207, 0.30220985412597656, -0.06965257972478867, -0.393107533454895, 0.41120707988739014, -0.2923813760280609, 0.3231612741947174, -0.00937547069042921, 0.018236026167869568, -0.4317820072174072, -0.052765969187021255, 0.1772793084383011, -0.02182670682668686, 0.5039933323860168, -0.00043761119013652205, -0.2170693427324295, -0.1989753395318985, -0.2317495495080948, 0.24210791289806366, 0.30343112349510193, -0.10309994220733643, -0.01844421774148941, -0.262983500957489, -0.18549375236034393, 0.044402144849300385, 0.6822599172592163, -0.42079049348831177, -0.023535756394267082, -0.05870489403605461, -0.10078999400138855, -0.35383862257003784, -0.005699529778212309, -0.21462257206439972, 0.06145290657877922, -0.018593724817037582, 0.5420697927474976, -0.36963897943496704, -0.1054532378911972, 0.49965330958366394, 0.20159782469272614, 0.02920287288725376, 0.21823325753211975, 0.3442271947860718, 0.06268252432346344, -0.26905152201652527, 0.04282785579562187, 0.06184036657214165, -0.12427933514118195, -0.03765325993299484, -0.12525910139083862, -0.2955957353115082, 0.18935626745224, 0.18369080126285553, 0.03365602344274521, 0.04841563478112221, 0.22265227138996124, 0.3056959807872772, -0.15970227122306824, -0.01877528429031372, 0.5131604075431824, -0.048923589289188385, -0.5048863291740417, -0.29133448004722595, -0.3084578812122345, 0.06048690155148506, 0.4303070604801178, 0.376109778881073, 0.0962701067328453, -0.1676415205001831, 0.10003524273633957, 0.30848801136016846, -0.2345801740884781, 0.2947370111942291, 0.18289855122566223, 0.025724226608872414, -0.24154499173164368, -0.6020054817199707, 0.26224228739738464, 0.31423914432525635, -0.18632985651493073, 0.4721342623233795, -0.14961345493793488, -0.47981196641921997, 0.4604502022266388, 0.2156086266040802, 0.7913640141487122, -0.07528286427259445, 0.42724645137786865, 0.05214347317814827, 0.32198771834373474, 0.005878501106053591, -0.30967187881469727, 0.19158130884170532, -0.03361527621746063, 0.04916661977767944, -0.03641471266746521, 0.07955793291330338, -0.02014540322124958, 0.3469959497451782, -0.34408247470855713, 0.14373992383480072, 0.1949300915002823, 0.046122957020998, -0.14024609327316284, -0.1863609254360199, 0.1465868353843689, -0.4494151473045349, 0.23318259418010712, -0.06417109817266464, 0.22825303673744202, 0.03234246373176575, -0.06661318987607956, -0.19159118831157684, -0.009883269667625427, -0.1579103022813797, -0.4218662679195404, -0.18532870709896088, -0.48943260312080383, 0.15974746644496918, -0.15000185370445251, -0.3506139814853668, 0.10166449099779129, 0.3187219202518463, -0.03471328690648079, 0.23996566236019135, -0.0003742461558431387, -0.09022858738899231, 0.1099754199385643, 0.11469176411628723, -0.1349414587020874, -0.44171321392059326, 0.38964390754699707, 0.0380556657910347, 0.11160478740930557, 0.12353046983480453, -0.022966954857110977, 0.012907737866044044, -0.25197383761405945, -0.0973588228225708, 0.5527222156524658, -0.15180474519729614, 0.07386047393083572, 0.4275232255458832, -0.20104292035102844, -0.1576443314552307, -0.08793656527996063, -0.09589609503746033, -0.044095803052186966, 0.48510152101516724, -0.19490326941013336, -0.024871351197361946, 0.09599895775318146, 0.26470473408699036, -0.17661365866661072, -0.20134669542312622, 0.26175418496131897, 0.03566408529877663, -0.008654872886836529, -0.21094286441802979, 0.433456689119339, 0.32323306798934937, -0.5678305625915527, 0.19254432618618011, -0.12283612787723541, 0.16227130591869354, 0.21483436226844788, 0.5561859607696533, 0.018916888162493706, 0.19468370079994202, -0.07931438833475113, -0.16702589392662048, -0.06471820175647736, 0.09959248453378677, 0.1461920142173767, 0.3351042568683624, -0.2218908965587616, 0.10501354187726974, 0.11110524088144302, 0.2339686155319214, -0.1464439481496811, 0.15376156568527222, 0.1523093283176422, 0.3649272918701172, -0.16950522363185883, 0.1577088087797165, -0.32026538252830505, 0.0994032546877861, -0.13089776039123535, 0.07631484419107437, -0.07471326738595963, -0.052182137966156006, -0.14783945679664612, 0.19803304970264435, -0.01322136539965868, -0.006733570713549852, 0.23094408214092255, -0.007066022604703903, -0.19566166400909424, -0.4530233144760132, 0.4037022590637207, -0.053220175206661224, -0.16672970354557037, 0.021341856569051743, 0.3260839283466339, 0.18864133954048157, 0.04620882123708725, 0.2146911472082138, 0.09154696762561798, 0.18074017763137817, -0.1452660858631134, 0.16208651661872864, 0.046580422669649124, -0.28291866183280945, 0.03813706338405609, 0.23885390162467957, 0.44927796721458435, 0.12729473412036896, 0.41308993101119995, -0.11206862330436707, -0.26441696286201477, 0.2797028720378876, 0.06494035571813583, 0.31995469331741333, -0.24079984426498413, 0.04064599797129631, 0.2759262025356293, 0.05518709495663643, -0.16618016362190247, -0.004198313690721989, 0.1194327101111412, -0.10929965227842331, 0.18780800700187683, 0.1554250419139862, -0.31667888164520264, -0.15228326618671417, -0.0354226678609848, -0.11643011122941971, 0.03904585540294647, -0.22554215788841248, 0.14276352524757385, 0.578399658203125, -0.02569807879626751, 0.0035857923794537783, -0.337791383266449, 0.20785124599933624, 0.30806830525398254, -0.15138013660907745, 0.03178411349654198, 0.6774347424507141, 0.23149216175079346, 0.07457617670297623, 0.35206449031829834, -0.2667868137359619, 0.043664176017045975, 0.10501989722251892, 0.0488184317946434, 0.45455777645111084, 0.24420395493507385, 0.004078032448887825, -0.07322991639375687, -0.23706340789794922, -0.15407054126262665, 0.3648979365825653, 0.17673397064208984, -0.31243711709976196, -0.17108380794525146, -0.1617448925971985, 0.20024262368679047, -0.06111171096563339, -0.21406492590904236, -0.010078269988298416, 0.6305122375488281, 0.17565199732780457, 0.42124706506729126, 0.036888524889945984, -0.29431137442588806, -0.23498152196407318, 0.47131702303886414, -0.2673819065093994, -0.12625746428966522, 0.1309468150138855, -0.07810825854539871, -0.040315452963113785, 0.31865406036376953, 0.3682194948196411, 0.23989766836166382, -0.1970658302307129, 0.4103493392467499, -0.36227816343307495, 0.13309717178344727, 0.030398406088352203, 0.21299956738948822, 0.06600514054298401, -0.2545672059059143, 0.32693180441856384, -0.09840888530015945, -0.008063476532697678, 0.17575637996196747, -0.06430457532405853, -0.03218814358115196, -0.13549187779426575, 0.06980936229228973, 0.2563365697860718, -0.2120690792798996, -0.011336256749927998, 0.12243277579545975, -0.04561598598957062, 0.16322793066501617, 0.2427407056093216, -0.3365357518196106, 0.050639573484659195, 0.2127823829650879, -0.0005316450260579586, 0.0612335130572319, 0.5081928372383118, 0.11963843554258347, 0.04697353020310402, -0.35650259256362915, -0.3246789574623108, -0.07016386836767197, -0.2811758816242218, -0.21405039727687836, 0.08959810435771942, -0.03275701403617859, 0.09002579748630524, 0.17607828974723816, 0.33539727330207825, -0.01767021231353283, -0.6501463055610657, -0.1359863430261612, 0.6674086451530457, -0.15390661358833313, -0.09997501224279404, 0.19104348123073578, 0.16517417132854462, 0.09857102483510971, -0.38163524866104126, 0.14926974475383759, -0.18428127467632294, -0.1660049557685852, -0.05398397520184517, 0.14337819814682007, 0.2851281464099884, 0.048220083117485046, 0.16433435678482056, 0.141263946890831, 0.0911540538072586, 0.06031166389584541, 0.20972047746181488, -0.12401273101568222, 0.19570808112621307, 0.0016575074987486005, 0.143795445561409, 0.14979644119739532, 0.008001062087714672, -0.30513954162597656, -0.3161022365093231, -0.017415789887309074, -0.3985343277454376, 0.3030868172645569, 0.014469437301158905, -0.1911919116973877, -0.03005034662783146, -0.03842838108539581, -0.006872887723147869, 0.11978667974472046, 0.45815810561180115, -0.13265542685985565, -0.14479678869247437, 0.044706929475069046, -0.2986309230327606, 0.39077645540237427, -0.5670868754386902, -0.31397905945777893, -0.44908156991004944, 0.13556991517543793, -0.3679904043674469, 0.24060475826263428, -0.37502530217170715, -0.11693777143955231, 0.4249209463596344, -0.052497029304504395, -0.3907635509967804, 0.1969011276960373, 0.10747972130775452, -0.28975483775138855, -0.2804974913597107, 0.36300286650657654, 0.061970777809619904, -0.2455325424671173, -0.1476065069437027, -0.629220724105835 ]
https://github.com/huggingface/datasets/issues/359
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
Hi, it depends on what it is in your `dataset_builder.py` file. Can you share it? If you are just loading `json` files, you can also directly use the `json` script (which will find the schema/features from your JSON structure): ```python from nlp import load_dataset ds = load_dataset("json", data_files=rel_datafiles) ```
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
49
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. Hi, it depends on what it is in your `dataset_builder.py` file. Can you share it? If you are just loading `json` files, you can also directly use the `json` script (which will find the schema/features from your JSON structure): ```python from nlp import load_dataset ds = load_dataset("json", data_files=rel_datafiles) ```
[ -0.3260456323623657, 0.3610112965106964, -0.06005503982305527, 0.5487005710601807, 0.04070315510034561, -0.1400740146636963, 0.3431127965450287, 0.42840784788131714, 0.21433214843273163, -0.11396996676921844, -0.04363242909312248, 0.3332715630531311, 0.2364400029182434, 0.05870359390974045, -0.26586219668388367, -0.16561637818813324, -0.01963185705244541, 0.29372236132621765, -0.12462445348501205, 0.3482961654663086, -0.22258879244327545, 0.452397882938385, -0.10002506524324417, 0.13126716017723083, 0.013991160318255424, -0.08402322232723236, 0.05512546747922897, 0.36302030086517334, -0.16610519587993622, -0.5221458077430725, 0.26167717576026917, -0.2975650131702423, -0.1071118414402008, 0.4265519678592682, -0.00011217651626793668, 0.28368571400642395, 0.2796027660369873, -0.10503802448511124, -0.3678909242153168, -0.056320395320653915, 0.021908650174736977, -0.18979543447494507, 0.08071637153625488, -0.18023625016212463, 0.2029774934053421, -0.27336665987968445, -0.35241666436195374, -0.14096930623054504, 0.5280261635780334, 0.1036980003118515, 0.16150766611099243, -0.14496596157550812, 0.3078526556491852, -0.008729877881705761, 0.09761454910039902, -0.012884773313999176, -0.13418376445770264, 0.349653959274292, -0.274661123752594, 0.16067516803741455, -0.17731410264968872, 0.033971235156059265, -0.14739075303077698, -0.03638574853539467, 0.0670260488986969, 0.03534612059593201, 0.1572587639093399, 0.024221712723374367, 0.006246833596378565, -0.008396100252866745, 0.14433249831199646, -0.12768778204917908, -0.07597289234399796, -0.2398112714290619, -0.28818318247795105, -0.3098757565021515, 0.21490967273712158, 0.10423634946346283, -0.05989272892475128, 0.10175734013319016, 0.31659290194511414, -0.25795090198516846, -0.11959410458803177, 0.008780822157859802, 0.09315823763608932, 0.32947805523872375, -0.0843707025051117, 0.06528879702091217, 0.22180305421352386, -0.021018674597144127, 0.2137235850095749, -0.013495548628270626, -0.5275072455406189, 0.06932602822780609, -0.027979103848338127, 0.009123647585511208, -0.1933583766222, -0.6268088221549988, -0.008878272958099842, 0.10316510498523712, 0.5481136441230774, -0.014283977448940277, 0.15198776125907898, 0.4092033803462982, 0.255483478307724, -0.16612492501735687, 0.26438894867897034, -0.03030191920697689, 0.04175236076116562, 0.25146371126174927, 0.11114518344402313, -0.14347051084041595, -0.02495795115828514, -0.10384978353977203, -0.3425195813179016, -0.06812892109155655, 0.1332850605249405, 0.018102556467056274, -0.2350534200668335, 0.04475758224725723, -0.4381096363067627, -0.1038779690861702, 0.2934705913066864, 0.24562302231788635, 0.22485637664794922, 0.233175590634346, 0.18689696490764618, 0.2919616103172302, 0.020270636305212975, -0.2026330977678299, -0.12423097342252731, 0.10525079071521759, -0.10447441786527634, 0.11084093898534775, 0.21319887042045593, 0.11135362833738327, 0.29969522356987, 0.1288207322359085, -0.34201565384864807, -0.340421199798584, 0.1220172867178917, -0.2721671760082245, 0.02830294892191887, 0.24119426310062408, 0.07982388138771057, -0.18102288246154785, 0.18475593626499176, -0.2773365378379822, -0.05758366733789444, 0.07207461446523666, -0.36034807562828064, -0.3543906807899475, -0.17159751057624817, 0.15046970546245575, 0.0036922015715390444, 0.15749627351760864, -0.451310932636261, -0.04261038824915886, 0.2559913396835327, -0.3391973078250885, 0.1138046458363533, -0.16392803192138672, -0.1804635226726532, -0.16760051250457764, 0.12403202056884766, 0.08145652711391449, -0.1796025186777115, -0.07172208279371262, -0.2841571867465973, -0.0085383839905262, 0.20895884931087494, 0.1984407752752304, -0.1502622663974762, 0.5191947817802429, -0.20322950184345245, 0.5580468773841858, 0.5535892844200134, -0.18754082918167114, -0.2054152637720108, 0.537387490272522, 0.12657779455184937, -0.035294309258461, 0.1371372789144516, -0.405443400144577, 0.2556647062301636, -0.14929929375648499, 0.02391129359602928, 0.4544432759284973, 0.12287864834070206, -0.03666776418685913, -0.05330774188041687, 0.05917054042220116, 0.09457164257764816, -0.053315673023462296, -0.4166422188282013, -0.26386305689811707, -0.11777447909116745, 0.3790178894996643, 0.2506231665611267, -0.08870161324739456, -0.038728874176740646, 0.17678923904895782, 0.0014026095159351826, 0.006782424170523882, -0.0009075412526726723, -0.08420553058385849, -0.51446133852005, 0.025190211832523346, -0.3117574155330658, -0.09111440926790237, -0.37475621700286865, 0.14020492136478424, -0.10324417799711227, 0.3250378370285034, -0.06095113977789879, -0.28534311056137085, 0.22181497514247894, 0.05768192186951637, -0.2218002825975418, -0.3171210289001465, -0.03517623245716095, 0.09715630859136581, -0.05429530516266823, 0.36261191964149475, -0.09931719303131104, 0.46483883261680603, 0.08691375702619553, -0.29661792516708374, 0.04663896560668945, 0.1641550362110138, 0.03551195189356804, -0.25894787907600403, -0.18099188804626465, 0.4646163880825043, 0.4503346383571625, -0.14781568944454193, -0.36484453082084656, -0.35878151655197144, 0.0069061629474163055, 0.10589724779129028, 0.06397676467895508, 0.028998207300901413, 0.1435215324163437, -0.32140442728996277, 0.008041496388614178, 0.31272420287132263, -0.01233649905771017, 0.4519153833389282, 0.08119659125804901, -0.026239370927214622, 0.1977178007364273, -0.021795187145471573, 0.16126053035259247, -0.33993732929229736, -0.10206089168787003, -0.019432105123996735, -0.05101272836327553, 0.1063091829419136, 0.006797526031732559, 0.06671562790870667, 0.31584852933883667, 0.1552184671163559, 0.10251827538013458, -0.03635846823453903, -0.060049284249544144, -0.1964567005634308, 0.1785125583410263, 0.0889553427696228, 0.4353649914264679, 0.036424893885850906, -0.07352975755929947, 0.04256730154156685, 0.125631183385849, -0.09140495210886002, 0.35487449169158936, 0.030168989673256874, 0.44495952129364014, 0.32424378395080566, 0.20339758694171906, -0.07429483532905579, -0.3939177095890045, -0.38328149914741516, 0.027644826099276543, 0.11821561306715012, -0.25807738304138184, 0.2396315634250641, -0.2732924818992615, 0.13113602995872498, -0.07231231033802032, -0.03152124211192131, -0.10273642838001251, -0.39914727210998535, -0.2967226505279541, 0.36995112895965576, -0.29137900471687317, 0.017347268760204315, -0.12719787657260895, 0.08274154365062714, 0.12979577481746674, -0.11010225117206573, -0.3194953501224518, -0.19227364659309387, -0.10888282209634781, 0.013910491950809956, 0.3567509055137634, 0.26393723487854004, -0.13117985427379608, 0.2827698588371277, -0.0451870858669281, -0.04897111654281616, -0.3095549941062927, 0.32752564549446106, -0.2431069314479828, -0.2856093645095825, 0.2199111133813858, 0.18156783282756805, 0.1619446575641632, -0.6107797622680664, 0.18531903624534607, 0.008888796903192997, -0.29334086179733276, 0.29725563526153564, 0.22300153970718384, -0.0029807346872985363, -0.15258438885211945, -0.1341162621974945, -0.13989901542663574, -0.5762500166893005, 0.45816460251808167, 0.1357262134552002, 0.25816574692726135, -0.08256430178880692, -0.06901389360427856, 0.010609683580696583, -0.2777145802974701, -0.08370567858219147, 0.02770526334643364, 0.12493131309747696, 0.10029733926057816, -0.36196208000183105, 0.057591985911130905, 0.025503123179078102, 0.028164170682430267, 0.5084936618804932, -0.1329772025346756, -0.4221975803375244, 0.44984689354896545, 0.11961805820465088, -0.07773815095424652, -0.17622804641723633, -0.38532209396362305, 0.06965907663106918, 0.396043598651886, -0.008333425968885422, -0.11379774659872055, 0.083860382437706, 0.22985035181045532, -0.03173791989684105, 0.1729094237089157, -0.11634115129709244, 0.5597540140151978, -0.08006715029478073, 0.26501479744911194, 0.05676728114485741, 0.007593309506773949, 0.22374357283115387, 0.09086185693740845, -0.03709755837917328, -0.2848678529262543, -0.1019066646695137, -0.17464667558670044, -0.24925167858600616, 0.07210488617420197, 0.16536696255207062, -0.05193299427628517, -0.2720282971858978, -0.07211200892925262, -0.1612124741077423, -0.17559632658958435, -0.36241814494132996, 0.30117571353912354, -0.3059144616127014, 0.08799099177122116, -0.3111078143119812, -0.08411607146263123, 0.043852467089891434, 0.05807284638285637, -0.05366194620728493, -0.2777518332004547, 0.06599116325378418, -0.11606323719024658, 0.050068605691194534, 0.1661209911108017, -0.20295429229736328, 0.14186009764671326, -0.0379832461476326, 0.29893672466278076, 0.023365970700979233, -0.1710141897201538, -0.06429914385080338, -0.16985686123371124, 0.14798609912395477, 0.0392509363591671, 0.2059403359889984, 0.23481999337673187, -0.11641548573970795, -0.20228169858455658, -0.0036494045052677393, -0.23494063317775726, 0.44001805782318115, 0.5935152769088745, 0.3597715497016907, -0.35149988532066345, -0.17082038521766663, 0.35455286502838135, -0.14836251735687256, -0.09552709758281708, -0.1216847151517868, 0.06972641497850418, -0.21680410206317902, -0.2290600687265396, 0.050209932029247284, 0.253795325756073, 0.3231968879699707, 0.15320007503032684, -0.1422915905714035, -0.23101261258125305, -0.44776004552841187, -0.08060155063867569, 0.14266785979270935, 0.19658163189888, -0.5051637887954712, 0.10156852006912231, -0.15203922986984253, 0.2174498438835144, 0.4984891712665558, 0.7618771195411682, 0.28523021936416626, -0.2908283472061157, 0.24805337190628052, -0.017335467040538788, 0.42424294352531433, 0.11943686008453369, -0.15316201746463776, 0.13031743466854095, -0.20929810404777527, 0.052241403609514236, 0.15178003907203674, -0.26083675026893616, 0.395303338766098, -0.16864316165447235, -0.27605754137039185, -0.24176329374313354, 0.4991045892238617, -0.04355639964342117, -0.012494870461523533, -0.0739118829369545, -0.242634579539299, -0.3518019914627075, 0.6364926099777222, 0.08899510651826859, 0.5242304801940918, 0.4776637554168701, 0.06044997647404671, 0.5830129384994507, -0.155241921544075, 0.28221395611763, -0.7763885259628296, -0.023523319512605667, -0.31037288904190063, 0.1324639469385147, -0.02171088568866253, -0.22958602011203766, 0.23280136287212372, 0.3454684317111969, -0.24499031901359558, 0.006512197200208902, 0.02661510743200779, 0.0639139860868454, -0.03259653225541115, 0.36282968521118164, -0.14411868155002594, -0.27862170338630676, -0.40632376074790955, 0.1032002791762352, 0.056853167712688446, -0.31265342235565186, 0.0303326603025198, -0.3509733974933624, -0.08654791116714478, -0.23574835062026978, -0.26396843791007996, 0.43381214141845703, -0.07165709882974625, 0.3886202275753021, 0.22395679354667664, -0.05619995668530464, 0.36155083775520325, -0.09915263205766678, -0.16800081729888916, -0.07536204904317856, 0.029198799282312393, 0.150663360953331, -0.027261968702077866, -0.2743920683860779, -0.021823860704898834, 0.11915849894285202, 0.1346256583929062, -0.1488005518913269, 0.03841784968972206, -0.02487335167825222, -0.13940979540348053, -0.3718871474266052, 0.27631011605262756, 0.20763033628463745, -0.4314101040363312, -0.3709969222545624, -0.1943303793668747, 0.11563292890787125, -0.14967067539691925, -0.09347648918628693, 0.11809150129556656, -0.001550397602841258, -0.2765606939792633, -0.3599794805049896, -0.0708589032292366, -0.2900591492652893, 0.05386430025100708, 0.3544171452522278, 0.22163346409797668, 0.04316148906946182, 0.6239027976989746, 0.2414463758468628, -0.002135246293619275, -0.32117682695388794, 0.08172138780355453, 0.34311437606811523, -0.4442766606807709, 0.3989851772785187, -0.20757560431957245, -0.1646200567483902, 0.12205389887094498, 0.0919983983039856, 0.2258996069431305, 0.16715936362743378, -0.24596770107746124, -0.5066792368888855, -0.0920291393995285, 0.33023184537887573, -0.2621880769729614, -0.02449069917201996, -0.13785818219184875, 0.22089941799640656, -0.35565385222435, 0.28723037242889404, -0.24341590702533722, 0.22912733256816864, -0.017262984067201614, -0.04853822663426399, -0.05816284939646721, -0.13160280883312225, 0.10557026416063309, 0.04739799723029137, 0.1401481330394745, 0.17527128756046295, 0.017603710293769836, -0.16238521039485931, -0.11380526423454285, 0.13337557017803192, 0.16780433058738708, 0.15522883832454681, -0.29862654209136963, 0.11635959893465042, -0.17701637744903564, 0.03772275522351265, 0.13287949562072754, -0.39393770694732666, -0.05499965697526932, 0.13743697106838226, 0.44412586092948914, 0.2775046229362488, -0.09676539897918701, 0.1493072658777237, -0.12397253513336182, 0.4012753963470459, -0.0929718017578125, 0.2098110467195511, -0.15303054451942444, 0.0011422561947256327, 0.03507321700453758, 0.19869571924209595, -0.04425572231411934, 0.09521378576755524, 0.568446934223175, -0.1944066286087036, -0.06072847172617912, -0.5084900259971619, 0.29555800557136536, 0.5219069719314575, -0.0011156348045915365, -0.04226991906762123, -0.20384930074214935, 0.16712456941604614, -0.16145868599414825, -0.03935762494802475, 0.3196543753147125, 0.0164186991751194, -0.09832863509654999, 0.25969502329826355, 0.09500735253095627, -0.03784939646720886, -0.29878783226013184, 0.1304665058851242, 0.1833294779062271, 0.07271714508533478, 0.20181789994239807, 0.6401522159576416, -0.32577183842658997, 0.049872081726789474, 0.3796493709087372, 0.1183040589094162, 0.6063774228096008, 0.2897164821624756, 0.12442830204963684, 0.07130993902683258, 0.4207838177680969, 0.05208616331219673, 0.0774495005607605, -0.20151673257350922, -0.4815184473991394, 0.09029866755008698, 0.29123517870903015, -0.1424286961555481, -0.1119096651673317, 0.3422735035419464, 0.1441444307565689, -0.12927813827991486, -0.20359452068805695, 0.39802852272987366, -0.16030682623386383, -0.20408861339092255, -0.2676367163658142, -0.13371412456035614, -0.6330994367599487, -0.18158672749996185, -0.08125197887420654, -0.02437293529510498, -0.09150319546461105, 0.11156173795461655, 0.08362618833780289, -0.2546159625053406, 0.11987467855215073, 0.049473971128463745, -0.06789502501487732, -0.2596524655818939, 0.46796905994415283, 0.09139633923768997, 0.0372755192220211, 0.04090660437941551, 0.14877867698669434, 0.4960682690143585, 0.25024092197418213, -0.2635153830051422, -0.2182382196187973, -0.19870737195014954, -0.14708451926708221, -0.017943235114216805, 0.25852811336517334, 0.049426425248384476, 0.1489400416612625, 0.358521431684494, 0.11411082744598389, -0.15997353196144104, 0.043840520083904266, 0.182264506816864, 0.08146987855434418, 0.1857507973909378, 0.638484001159668, -0.04779408127069473, -0.12134861946105957, 0.22430665791034698, -0.13197912275791168, -0.2510053813457489, -0.6355639100074768, 0.29188182950019836, 0.0026247387286275625, 0.19698652625083923, 0.07607083767652512, 0.07502396404743195, 0.1019887626171112, 0.6383277773857117, 0.05862683430314064, 0.08993662893772125, -0.10363071411848068, -0.14080487191677094, -0.036586564034223557, -0.03002031520009041, -0.37302830815315247, 0.010407017543911934, 0.1738443821668625, 0.09668136388063431, 0.16798822581768036, 0.29864954948425293, -0.025165745988488197, 0.29137593507766724, -0.2197558432817459, -0.11883293092250824, -0.4843563735485077, 0.06875872611999512, 0.20370429754257202, 0.0928066223859787, -0.12021270394325256, -0.14762218296527863, 0.06844867765903473, 0.25331950187683105, 0.02396244928240776, 0.0903758555650711, -0.24850080907344818, 0.11686287075281143, -0.32231253385543823, 0.17504431307315826, 0.05041390657424927, 0.11403406411409378, -0.04940524697303772, -0.18966630101203918, -0.18875250220298767, -0.5733941793441772, -0.12193521857261658, 0.46866652369499207, 0.12841026484966278, 0.26802879571914673, -0.1597733050584793, 0.11881051957607269, -0.29430606961250305, 0.12106391787528992, -0.41286465525627136, 0.038887571543455124, -0.3458368480205536, 0.26152724027633667, -0.15570443868637085, 0.23541565239429474, -0.10956183075904846, -0.06789388507604599, -0.201930433511734, 0.09509173780679703, -0.2074783444404602, -0.31118953227996826, 0.37605834007263184, 0.10880251973867416, -0.2328539341688156, 0.46432963013648987, 0.11880108714103699, 0.11658395081758499, 0.23164893686771393, -0.39832207560539246, -0.03011975809931755, 0.254345178604126, -0.189199760556221, -0.3222726583480835, -0.030694739893078804, 0.15509849786758423, -0.13845473527908325, -0.0962277427315712, 0.1503661572933197, 0.04378771781921387, -0.16633650660514832, -0.17571979761123657, 0.013815750367939472 ]
https://github.com/huggingface/datasets/issues/359
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
The behavior I'm seeing is from the `json` script. I hacked this together to overcome the error with the `JSON` dataloader ``` class DatasetBuilder(hf_nlp.ArrowBasedBuilder): BUILDER_CONFIG_CLASS = BuilderConfig def _info(self): return DatasetInfo() def _split_generators(self, dl_manager): """ We handle string, list and dicts in datafiles """ if isinstance(self.config.data_files, (str, list, tuple)): files = self.config.data_files if isinstance(files, str): files = [files] return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})] splits = [] for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]: if split_name in self.config.data_files: files = self.config.data_files[split_name] if isinstance(files, str): files = [files] splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files})) return splits def _prepare_split(self, split_generator): fname = "{}-{}.arrow".format(self.name, split_generator.name) fpath = os.path.join(self._cache_dir, fname) writer = ArrowWriter(path=fpath) generator = self._generate_tables(**split_generator.gen_kwargs) for key, table in utils.tqdm(generator, unit=" tables", leave=False): writer.write_table(table) num_examples, num_bytes = writer.finalize() split_generator.split_info.num_examples = num_examples split_generator.split_info.num_bytes = num_bytes # this is where the error is coming from # def parse_schema(schema, schema_dict): # for field in schema: # if pa.types.is_struct(field.type): # schema_dict[field.name] = {} # parse_schema(field.type, schema_dict[field.name]) # elif pa.types.is_list(field.type) and pa.types.is_struct(field.type.value_type): # schema_dict[field.name] = {} # parse_schema(field.type.value_type, schema_dict[field.name]) # else: # schema_dict[field.name] = Value(str(field.type)) # # parse_schema(writer.schema, features) # self.info.features = Features(features) def _generate_tables(self, files): for i, file in enumerate(files): pa_table = paj.read_json( file ) yield i, pa_table ``` So I basically just don't populate the `self.info.features` though this doesn't seem to cause any problems in my downstream applications. The other workaround I was doing was to just use pyarrow.json to build a table and then to create the Dataset with its constructor or from_table methods. `load_dataset` has nice split logic, so I'd prefer to use that.
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
254
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. The behavior I'm seeing is from the `json` script. I hacked this together to overcome the error with the `JSON` dataloader ``` class DatasetBuilder(hf_nlp.ArrowBasedBuilder): BUILDER_CONFIG_CLASS = BuilderConfig def _info(self): return DatasetInfo() def _split_generators(self, dl_manager): """ We handle string, list and dicts in datafiles """ if isinstance(self.config.data_files, (str, list, tuple)): files = self.config.data_files if isinstance(files, str): files = [files] return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})] splits = [] for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]: if split_name in self.config.data_files: files = self.config.data_files[split_name] if isinstance(files, str): files = [files] splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files})) return splits def _prepare_split(self, split_generator): fname = "{}-{}.arrow".format(self.name, split_generator.name) fpath = os.path.join(self._cache_dir, fname) writer = ArrowWriter(path=fpath) generator = self._generate_tables(**split_generator.gen_kwargs) for key, table in utils.tqdm(generator, unit=" tables", leave=False): writer.write_table(table) num_examples, num_bytes = writer.finalize() split_generator.split_info.num_examples = num_examples split_generator.split_info.num_bytes = num_bytes # this is where the error is coming from # def parse_schema(schema, schema_dict): # for field in schema: # if pa.types.is_struct(field.type): # schema_dict[field.name] = {} # parse_schema(field.type, schema_dict[field.name]) # elif pa.types.is_list(field.type) and pa.types.is_struct(field.type.value_type): # schema_dict[field.name] = {} # parse_schema(field.type.value_type, schema_dict[field.name]) # else: # schema_dict[field.name] = Value(str(field.type)) # # parse_schema(writer.schema, features) # self.info.features = Features(features) def _generate_tables(self, files): for i, file in enumerate(files): pa_table = paj.read_json( file ) yield i, pa_table ``` So I basically just don't populate the `self.info.features` though this doesn't seem to cause any problems in my downstream applications. The other workaround I was doing was to just use pyarrow.json to build a table and then to create the Dataset with its constructor or from_table methods. `load_dataset` has nice split logic, so I'd prefer to use that.
[ -0.3260456323623657, 0.3610112965106964, -0.06005503982305527, 0.5487005710601807, 0.04070315510034561, -0.1400740146636963, 0.3431127965450287, 0.42840784788131714, 0.21433214843273163, -0.11396996676921844, -0.04363242909312248, 0.3332715630531311, 0.2364400029182434, 0.05870359390974045, -0.26586219668388367, -0.16561637818813324, -0.01963185705244541, 0.29372236132621765, -0.12462445348501205, 0.3482961654663086, -0.22258879244327545, 0.452397882938385, -0.10002506524324417, 0.13126716017723083, 0.013991160318255424, -0.08402322232723236, 0.05512546747922897, 0.36302030086517334, -0.16610519587993622, -0.5221458077430725, 0.26167717576026917, -0.2975650131702423, -0.1071118414402008, 0.4265519678592682, -0.00011217651626793668, 0.28368571400642395, 0.2796027660369873, -0.10503802448511124, -0.3678909242153168, -0.056320395320653915, 0.021908650174736977, -0.18979543447494507, 0.08071637153625488, -0.18023625016212463, 0.2029774934053421, -0.27336665987968445, -0.35241666436195374, -0.14096930623054504, 0.5280261635780334, 0.1036980003118515, 0.16150766611099243, -0.14496596157550812, 0.3078526556491852, -0.008729877881705761, 0.09761454910039902, -0.012884773313999176, -0.13418376445770264, 0.349653959274292, -0.274661123752594, 0.16067516803741455, -0.17731410264968872, 0.033971235156059265, -0.14739075303077698, -0.03638574853539467, 0.0670260488986969, 0.03534612059593201, 0.1572587639093399, 0.024221712723374367, 0.006246833596378565, -0.008396100252866745, 0.14433249831199646, -0.12768778204917908, -0.07597289234399796, -0.2398112714290619, -0.28818318247795105, -0.3098757565021515, 0.21490967273712158, 0.10423634946346283, -0.05989272892475128, 0.10175734013319016, 0.31659290194511414, -0.25795090198516846, -0.11959410458803177, 0.008780822157859802, 0.09315823763608932, 0.32947805523872375, -0.0843707025051117, 0.06528879702091217, 0.22180305421352386, -0.021018674597144127, 0.2137235850095749, -0.013495548628270626, -0.5275072455406189, 0.06932602822780609, -0.027979103848338127, 0.009123647585511208, -0.1933583766222, -0.6268088221549988, -0.008878272958099842, 0.10316510498523712, 0.5481136441230774, -0.014283977448940277, 0.15198776125907898, 0.4092033803462982, 0.255483478307724, -0.16612492501735687, 0.26438894867897034, -0.03030191920697689, 0.04175236076116562, 0.25146371126174927, 0.11114518344402313, -0.14347051084041595, -0.02495795115828514, -0.10384978353977203, -0.3425195813179016, -0.06812892109155655, 0.1332850605249405, 0.018102556467056274, -0.2350534200668335, 0.04475758224725723, -0.4381096363067627, -0.1038779690861702, 0.2934705913066864, 0.24562302231788635, 0.22485637664794922, 0.233175590634346, 0.18689696490764618, 0.2919616103172302, 0.020270636305212975, -0.2026330977678299, -0.12423097342252731, 0.10525079071521759, -0.10447441786527634, 0.11084093898534775, 0.21319887042045593, 0.11135362833738327, 0.29969522356987, 0.1288207322359085, -0.34201565384864807, -0.340421199798584, 0.1220172867178917, -0.2721671760082245, 0.02830294892191887, 0.24119426310062408, 0.07982388138771057, -0.18102288246154785, 0.18475593626499176, -0.2773365378379822, -0.05758366733789444, 0.07207461446523666, -0.36034807562828064, -0.3543906807899475, -0.17159751057624817, 0.15046970546245575, 0.0036922015715390444, 0.15749627351760864, -0.451310932636261, -0.04261038824915886, 0.2559913396835327, -0.3391973078250885, 0.1138046458363533, -0.16392803192138672, -0.1804635226726532, -0.16760051250457764, 0.12403202056884766, 0.08145652711391449, -0.1796025186777115, -0.07172208279371262, -0.2841571867465973, -0.0085383839905262, 0.20895884931087494, 0.1984407752752304, -0.1502622663974762, 0.5191947817802429, -0.20322950184345245, 0.5580468773841858, 0.5535892844200134, -0.18754082918167114, -0.2054152637720108, 0.537387490272522, 0.12657779455184937, -0.035294309258461, 0.1371372789144516, -0.405443400144577, 0.2556647062301636, -0.14929929375648499, 0.02391129359602928, 0.4544432759284973, 0.12287864834070206, -0.03666776418685913, -0.05330774188041687, 0.05917054042220116, 0.09457164257764816, -0.053315673023462296, -0.4166422188282013, -0.26386305689811707, -0.11777447909116745, 0.3790178894996643, 0.2506231665611267, -0.08870161324739456, -0.038728874176740646, 0.17678923904895782, 0.0014026095159351826, 0.006782424170523882, -0.0009075412526726723, -0.08420553058385849, -0.51446133852005, 0.025190211832523346, -0.3117574155330658, -0.09111440926790237, -0.37475621700286865, 0.14020492136478424, -0.10324417799711227, 0.3250378370285034, -0.06095113977789879, -0.28534311056137085, 0.22181497514247894, 0.05768192186951637, -0.2218002825975418, -0.3171210289001465, -0.03517623245716095, 0.09715630859136581, -0.05429530516266823, 0.36261191964149475, -0.09931719303131104, 0.46483883261680603, 0.08691375702619553, -0.29661792516708374, 0.04663896560668945, 0.1641550362110138, 0.03551195189356804, -0.25894787907600403, -0.18099188804626465, 0.4646163880825043, 0.4503346383571625, -0.14781568944454193, -0.36484453082084656, -0.35878151655197144, 0.0069061629474163055, 0.10589724779129028, 0.06397676467895508, 0.028998207300901413, 0.1435215324163437, -0.32140442728996277, 0.008041496388614178, 0.31272420287132263, -0.01233649905771017, 0.4519153833389282, 0.08119659125804901, -0.026239370927214622, 0.1977178007364273, -0.021795187145471573, 0.16126053035259247, -0.33993732929229736, -0.10206089168787003, -0.019432105123996735, -0.05101272836327553, 0.1063091829419136, 0.006797526031732559, 0.06671562790870667, 0.31584852933883667, 0.1552184671163559, 0.10251827538013458, -0.03635846823453903, -0.060049284249544144, -0.1964567005634308, 0.1785125583410263, 0.0889553427696228, 0.4353649914264679, 0.036424893885850906, -0.07352975755929947, 0.04256730154156685, 0.125631183385849, -0.09140495210886002, 0.35487449169158936, 0.030168989673256874, 0.44495952129364014, 0.32424378395080566, 0.20339758694171906, -0.07429483532905579, -0.3939177095890045, -0.38328149914741516, 0.027644826099276543, 0.11821561306715012, -0.25807738304138184, 0.2396315634250641, -0.2732924818992615, 0.13113602995872498, -0.07231231033802032, -0.03152124211192131, -0.10273642838001251, -0.39914727210998535, -0.2967226505279541, 0.36995112895965576, -0.29137900471687317, 0.017347268760204315, -0.12719787657260895, 0.08274154365062714, 0.12979577481746674, -0.11010225117206573, -0.3194953501224518, -0.19227364659309387, -0.10888282209634781, 0.013910491950809956, 0.3567509055137634, 0.26393723487854004, -0.13117985427379608, 0.2827698588371277, -0.0451870858669281, -0.04897111654281616, -0.3095549941062927, 0.32752564549446106, -0.2431069314479828, -0.2856093645095825, 0.2199111133813858, 0.18156783282756805, 0.1619446575641632, -0.6107797622680664, 0.18531903624534607, 0.008888796903192997, -0.29334086179733276, 0.29725563526153564, 0.22300153970718384, -0.0029807346872985363, -0.15258438885211945, -0.1341162621974945, -0.13989901542663574, -0.5762500166893005, 0.45816460251808167, 0.1357262134552002, 0.25816574692726135, -0.08256430178880692, -0.06901389360427856, 0.010609683580696583, -0.2777145802974701, -0.08370567858219147, 0.02770526334643364, 0.12493131309747696, 0.10029733926057816, -0.36196208000183105, 0.057591985911130905, 0.025503123179078102, 0.028164170682430267, 0.5084936618804932, -0.1329772025346756, -0.4221975803375244, 0.44984689354896545, 0.11961805820465088, -0.07773815095424652, -0.17622804641723633, -0.38532209396362305, 0.06965907663106918, 0.396043598651886, -0.008333425968885422, -0.11379774659872055, 0.083860382437706, 0.22985035181045532, -0.03173791989684105, 0.1729094237089157, -0.11634115129709244, 0.5597540140151978, -0.08006715029478073, 0.26501479744911194, 0.05676728114485741, 0.007593309506773949, 0.22374357283115387, 0.09086185693740845, -0.03709755837917328, -0.2848678529262543, -0.1019066646695137, -0.17464667558670044, -0.24925167858600616, 0.07210488617420197, 0.16536696255207062, -0.05193299427628517, -0.2720282971858978, -0.07211200892925262, -0.1612124741077423, -0.17559632658958435, -0.36241814494132996, 0.30117571353912354, -0.3059144616127014, 0.08799099177122116, -0.3111078143119812, -0.08411607146263123, 0.043852467089891434, 0.05807284638285637, -0.05366194620728493, -0.2777518332004547, 0.06599116325378418, -0.11606323719024658, 0.050068605691194534, 0.1661209911108017, -0.20295429229736328, 0.14186009764671326, -0.0379832461476326, 0.29893672466278076, 0.023365970700979233, -0.1710141897201538, -0.06429914385080338, -0.16985686123371124, 0.14798609912395477, 0.0392509363591671, 0.2059403359889984, 0.23481999337673187, -0.11641548573970795, -0.20228169858455658, -0.0036494045052677393, -0.23494063317775726, 0.44001805782318115, 0.5935152769088745, 0.3597715497016907, -0.35149988532066345, -0.17082038521766663, 0.35455286502838135, -0.14836251735687256, -0.09552709758281708, -0.1216847151517868, 0.06972641497850418, -0.21680410206317902, -0.2290600687265396, 0.050209932029247284, 0.253795325756073, 0.3231968879699707, 0.15320007503032684, -0.1422915905714035, -0.23101261258125305, -0.44776004552841187, -0.08060155063867569, 0.14266785979270935, 0.19658163189888, -0.5051637887954712, 0.10156852006912231, -0.15203922986984253, 0.2174498438835144, 0.4984891712665558, 0.7618771195411682, 0.28523021936416626, -0.2908283472061157, 0.24805337190628052, -0.017335467040538788, 0.42424294352531433, 0.11943686008453369, -0.15316201746463776, 0.13031743466854095, -0.20929810404777527, 0.052241403609514236, 0.15178003907203674, -0.26083675026893616, 0.395303338766098, -0.16864316165447235, -0.27605754137039185, -0.24176329374313354, 0.4991045892238617, -0.04355639964342117, -0.012494870461523533, -0.0739118829369545, -0.242634579539299, -0.3518019914627075, 0.6364926099777222, 0.08899510651826859, 0.5242304801940918, 0.4776637554168701, 0.06044997647404671, 0.5830129384994507, -0.155241921544075, 0.28221395611763, -0.7763885259628296, -0.023523319512605667, -0.31037288904190063, 0.1324639469385147, -0.02171088568866253, -0.22958602011203766, 0.23280136287212372, 0.3454684317111969, -0.24499031901359558, 0.006512197200208902, 0.02661510743200779, 0.0639139860868454, -0.03259653225541115, 0.36282968521118164, -0.14411868155002594, -0.27862170338630676, -0.40632376074790955, 0.1032002791762352, 0.056853167712688446, -0.31265342235565186, 0.0303326603025198, -0.3509733974933624, -0.08654791116714478, -0.23574835062026978, -0.26396843791007996, 0.43381214141845703, -0.07165709882974625, 0.3886202275753021, 0.22395679354667664, -0.05619995668530464, 0.36155083775520325, -0.09915263205766678, -0.16800081729888916, -0.07536204904317856, 0.029198799282312393, 0.150663360953331, -0.027261968702077866, -0.2743920683860779, -0.021823860704898834, 0.11915849894285202, 0.1346256583929062, -0.1488005518913269, 0.03841784968972206, -0.02487335167825222, -0.13940979540348053, -0.3718871474266052, 0.27631011605262756, 0.20763033628463745, -0.4314101040363312, -0.3709969222545624, -0.1943303793668747, 0.11563292890787125, -0.14967067539691925, -0.09347648918628693, 0.11809150129556656, -0.001550397602841258, -0.2765606939792633, -0.3599794805049896, -0.0708589032292366, -0.2900591492652893, 0.05386430025100708, 0.3544171452522278, 0.22163346409797668, 0.04316148906946182, 0.6239027976989746, 0.2414463758468628, -0.002135246293619275, -0.32117682695388794, 0.08172138780355453, 0.34311437606811523, -0.4442766606807709, 0.3989851772785187, -0.20757560431957245, -0.1646200567483902, 0.12205389887094498, 0.0919983983039856, 0.2258996069431305, 0.16715936362743378, -0.24596770107746124, -0.5066792368888855, -0.0920291393995285, 0.33023184537887573, -0.2621880769729614, -0.02449069917201996, -0.13785818219184875, 0.22089941799640656, -0.35565385222435, 0.28723037242889404, -0.24341590702533722, 0.22912733256816864, -0.017262984067201614, -0.04853822663426399, -0.05816284939646721, -0.13160280883312225, 0.10557026416063309, 0.04739799723029137, 0.1401481330394745, 0.17527128756046295, 0.017603710293769836, -0.16238521039485931, -0.11380526423454285, 0.13337557017803192, 0.16780433058738708, 0.15522883832454681, -0.29862654209136963, 0.11635959893465042, -0.17701637744903564, 0.03772275522351265, 0.13287949562072754, -0.39393770694732666, -0.05499965697526932, 0.13743697106838226, 0.44412586092948914, 0.2775046229362488, -0.09676539897918701, 0.1493072658777237, -0.12397253513336182, 0.4012753963470459, -0.0929718017578125, 0.2098110467195511, -0.15303054451942444, 0.0011422561947256327, 0.03507321700453758, 0.19869571924209595, -0.04425572231411934, 0.09521378576755524, 0.568446934223175, -0.1944066286087036, -0.06072847172617912, -0.5084900259971619, 0.29555800557136536, 0.5219069719314575, -0.0011156348045915365, -0.04226991906762123, -0.20384930074214935, 0.16712456941604614, -0.16145868599414825, -0.03935762494802475, 0.3196543753147125, 0.0164186991751194, -0.09832863509654999, 0.25969502329826355, 0.09500735253095627, -0.03784939646720886, -0.29878783226013184, 0.1304665058851242, 0.1833294779062271, 0.07271714508533478, 0.20181789994239807, 0.6401522159576416, -0.32577183842658997, 0.049872081726789474, 0.3796493709087372, 0.1183040589094162, 0.6063774228096008, 0.2897164821624756, 0.12442830204963684, 0.07130993902683258, 0.4207838177680969, 0.05208616331219673, 0.0774495005607605, -0.20151673257350922, -0.4815184473991394, 0.09029866755008698, 0.29123517870903015, -0.1424286961555481, -0.1119096651673317, 0.3422735035419464, 0.1441444307565689, -0.12927813827991486, -0.20359452068805695, 0.39802852272987366, -0.16030682623386383, -0.20408861339092255, -0.2676367163658142, -0.13371412456035614, -0.6330994367599487, -0.18158672749996185, -0.08125197887420654, -0.02437293529510498, -0.09150319546461105, 0.11156173795461655, 0.08362618833780289, -0.2546159625053406, 0.11987467855215073, 0.049473971128463745, -0.06789502501487732, -0.2596524655818939, 0.46796905994415283, 0.09139633923768997, 0.0372755192220211, 0.04090660437941551, 0.14877867698669434, 0.4960682690143585, 0.25024092197418213, -0.2635153830051422, -0.2182382196187973, -0.19870737195014954, -0.14708451926708221, -0.017943235114216805, 0.25852811336517334, 0.049426425248384476, 0.1489400416612625, 0.358521431684494, 0.11411082744598389, -0.15997353196144104, 0.043840520083904266, 0.182264506816864, 0.08146987855434418, 0.1857507973909378, 0.638484001159668, -0.04779408127069473, -0.12134861946105957, 0.22430665791034698, -0.13197912275791168, -0.2510053813457489, -0.6355639100074768, 0.29188182950019836, 0.0026247387286275625, 0.19698652625083923, 0.07607083767652512, 0.07502396404743195, 0.1019887626171112, 0.6383277773857117, 0.05862683430314064, 0.08993662893772125, -0.10363071411848068, -0.14080487191677094, -0.036586564034223557, -0.03002031520009041, -0.37302830815315247, 0.010407017543911934, 0.1738443821668625, 0.09668136388063431, 0.16798822581768036, 0.29864954948425293, -0.025165745988488197, 0.29137593507766724, -0.2197558432817459, -0.11883293092250824, -0.4843563735485077, 0.06875872611999512, 0.20370429754257202, 0.0928066223859787, -0.12021270394325256, -0.14762218296527863, 0.06844867765903473, 0.25331950187683105, 0.02396244928240776, 0.0903758555650711, -0.24850080907344818, 0.11686287075281143, -0.32231253385543823, 0.17504431307315826, 0.05041390657424927, 0.11403406411409378, -0.04940524697303772, -0.18966630101203918, -0.18875250220298767, -0.5733941793441772, -0.12193521857261658, 0.46866652369499207, 0.12841026484966278, 0.26802879571914673, -0.1597733050584793, 0.11881051957607269, -0.29430606961250305, 0.12106391787528992, -0.41286465525627136, 0.038887571543455124, -0.3458368480205536, 0.26152724027633667, -0.15570443868637085, 0.23541565239429474, -0.10956183075904846, -0.06789388507604599, -0.201930433511734, 0.09509173780679703, -0.2074783444404602, -0.31118953227996826, 0.37605834007263184, 0.10880251973867416, -0.2328539341688156, 0.46432963013648987, 0.11880108714103699, 0.11658395081758499, 0.23164893686771393, -0.39832207560539246, -0.03011975809931755, 0.254345178604126, -0.189199760556221, -0.3222726583480835, -0.030694739893078804, 0.15509849786758423, -0.13845473527908325, -0.0962277427315712, 0.1503661572933197, 0.04378771781921387, -0.16633650660514832, -0.17571979761123657, 0.013815750367939472 ]
https://github.com/huggingface/datasets/issues/359
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
Also noticed that if you for example in a loader script ``` from nlp import ArrowBasedBuilder class MyBuilder(ArrowBasedBuilder): ... ``` and use that in the subclass, it will be on the module's __dict__ and will be selected before the `MyBuilder` subclass, and it will raise `NotImplementedError` on its `_generate_examples` method... In the code it check for abstract classes but Builder and ArrowBasedBuilder aren't abstract classes, they're regular classes with `@abstract_methods`.
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
70
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. Also noticed that if you for example in a loader script ``` from nlp import ArrowBasedBuilder class MyBuilder(ArrowBasedBuilder): ... ``` and use that in the subclass, it will be on the module's __dict__ and will be selected before the `MyBuilder` subclass, and it will raise `NotImplementedError` on its `_generate_examples` method... In the code it check for abstract classes but Builder and ArrowBasedBuilder aren't abstract classes, they're regular classes with `@abstract_methods`.
[ -0.3260456323623657, 0.3610112965106964, -0.06005503982305527, 0.5487005710601807, 0.04070315510034561, -0.1400740146636963, 0.3431127965450287, 0.42840784788131714, 0.21433214843273163, -0.11396996676921844, -0.04363242909312248, 0.3332715630531311, 0.2364400029182434, 0.05870359390974045, -0.26586219668388367, -0.16561637818813324, -0.01963185705244541, 0.29372236132621765, -0.12462445348501205, 0.3482961654663086, -0.22258879244327545, 0.452397882938385, -0.10002506524324417, 0.13126716017723083, 0.013991160318255424, -0.08402322232723236, 0.05512546747922897, 0.36302030086517334, -0.16610519587993622, -0.5221458077430725, 0.26167717576026917, -0.2975650131702423, -0.1071118414402008, 0.4265519678592682, -0.00011217651626793668, 0.28368571400642395, 0.2796027660369873, -0.10503802448511124, -0.3678909242153168, -0.056320395320653915, 0.021908650174736977, -0.18979543447494507, 0.08071637153625488, -0.18023625016212463, 0.2029774934053421, -0.27336665987968445, -0.35241666436195374, -0.14096930623054504, 0.5280261635780334, 0.1036980003118515, 0.16150766611099243, -0.14496596157550812, 0.3078526556491852, -0.008729877881705761, 0.09761454910039902, -0.012884773313999176, -0.13418376445770264, 0.349653959274292, -0.274661123752594, 0.16067516803741455, -0.17731410264968872, 0.033971235156059265, -0.14739075303077698, -0.03638574853539467, 0.0670260488986969, 0.03534612059593201, 0.1572587639093399, 0.024221712723374367, 0.006246833596378565, -0.008396100252866745, 0.14433249831199646, -0.12768778204917908, -0.07597289234399796, -0.2398112714290619, -0.28818318247795105, -0.3098757565021515, 0.21490967273712158, 0.10423634946346283, -0.05989272892475128, 0.10175734013319016, 0.31659290194511414, -0.25795090198516846, -0.11959410458803177, 0.008780822157859802, 0.09315823763608932, 0.32947805523872375, -0.0843707025051117, 0.06528879702091217, 0.22180305421352386, -0.021018674597144127, 0.2137235850095749, -0.013495548628270626, -0.5275072455406189, 0.06932602822780609, -0.027979103848338127, 0.009123647585511208, -0.1933583766222, -0.6268088221549988, -0.008878272958099842, 0.10316510498523712, 0.5481136441230774, -0.014283977448940277, 0.15198776125907898, 0.4092033803462982, 0.255483478307724, -0.16612492501735687, 0.26438894867897034, -0.03030191920697689, 0.04175236076116562, 0.25146371126174927, 0.11114518344402313, -0.14347051084041595, -0.02495795115828514, -0.10384978353977203, -0.3425195813179016, -0.06812892109155655, 0.1332850605249405, 0.018102556467056274, -0.2350534200668335, 0.04475758224725723, -0.4381096363067627, -0.1038779690861702, 0.2934705913066864, 0.24562302231788635, 0.22485637664794922, 0.233175590634346, 0.18689696490764618, 0.2919616103172302, 0.020270636305212975, -0.2026330977678299, -0.12423097342252731, 0.10525079071521759, -0.10447441786527634, 0.11084093898534775, 0.21319887042045593, 0.11135362833738327, 0.29969522356987, 0.1288207322359085, -0.34201565384864807, -0.340421199798584, 0.1220172867178917, -0.2721671760082245, 0.02830294892191887, 0.24119426310062408, 0.07982388138771057, -0.18102288246154785, 0.18475593626499176, -0.2773365378379822, -0.05758366733789444, 0.07207461446523666, -0.36034807562828064, -0.3543906807899475, -0.17159751057624817, 0.15046970546245575, 0.0036922015715390444, 0.15749627351760864, -0.451310932636261, -0.04261038824915886, 0.2559913396835327, -0.3391973078250885, 0.1138046458363533, -0.16392803192138672, -0.1804635226726532, -0.16760051250457764, 0.12403202056884766, 0.08145652711391449, -0.1796025186777115, -0.07172208279371262, -0.2841571867465973, -0.0085383839905262, 0.20895884931087494, 0.1984407752752304, -0.1502622663974762, 0.5191947817802429, -0.20322950184345245, 0.5580468773841858, 0.5535892844200134, -0.18754082918167114, -0.2054152637720108, 0.537387490272522, 0.12657779455184937, -0.035294309258461, 0.1371372789144516, -0.405443400144577, 0.2556647062301636, -0.14929929375648499, 0.02391129359602928, 0.4544432759284973, 0.12287864834070206, -0.03666776418685913, -0.05330774188041687, 0.05917054042220116, 0.09457164257764816, -0.053315673023462296, -0.4166422188282013, -0.26386305689811707, -0.11777447909116745, 0.3790178894996643, 0.2506231665611267, -0.08870161324739456, -0.038728874176740646, 0.17678923904895782, 0.0014026095159351826, 0.006782424170523882, -0.0009075412526726723, -0.08420553058385849, -0.51446133852005, 0.025190211832523346, -0.3117574155330658, -0.09111440926790237, -0.37475621700286865, 0.14020492136478424, -0.10324417799711227, 0.3250378370285034, -0.06095113977789879, -0.28534311056137085, 0.22181497514247894, 0.05768192186951637, -0.2218002825975418, -0.3171210289001465, -0.03517623245716095, 0.09715630859136581, -0.05429530516266823, 0.36261191964149475, -0.09931719303131104, 0.46483883261680603, 0.08691375702619553, -0.29661792516708374, 0.04663896560668945, 0.1641550362110138, 0.03551195189356804, -0.25894787907600403, -0.18099188804626465, 0.4646163880825043, 0.4503346383571625, -0.14781568944454193, -0.36484453082084656, -0.35878151655197144, 0.0069061629474163055, 0.10589724779129028, 0.06397676467895508, 0.028998207300901413, 0.1435215324163437, -0.32140442728996277, 0.008041496388614178, 0.31272420287132263, -0.01233649905771017, 0.4519153833389282, 0.08119659125804901, -0.026239370927214622, 0.1977178007364273, -0.021795187145471573, 0.16126053035259247, -0.33993732929229736, -0.10206089168787003, -0.019432105123996735, -0.05101272836327553, 0.1063091829419136, 0.006797526031732559, 0.06671562790870667, 0.31584852933883667, 0.1552184671163559, 0.10251827538013458, -0.03635846823453903, -0.060049284249544144, -0.1964567005634308, 0.1785125583410263, 0.0889553427696228, 0.4353649914264679, 0.036424893885850906, -0.07352975755929947, 0.04256730154156685, 0.125631183385849, -0.09140495210886002, 0.35487449169158936, 0.030168989673256874, 0.44495952129364014, 0.32424378395080566, 0.20339758694171906, -0.07429483532905579, -0.3939177095890045, -0.38328149914741516, 0.027644826099276543, 0.11821561306715012, -0.25807738304138184, 0.2396315634250641, -0.2732924818992615, 0.13113602995872498, -0.07231231033802032, -0.03152124211192131, -0.10273642838001251, -0.39914727210998535, -0.2967226505279541, 0.36995112895965576, -0.29137900471687317, 0.017347268760204315, -0.12719787657260895, 0.08274154365062714, 0.12979577481746674, -0.11010225117206573, -0.3194953501224518, -0.19227364659309387, -0.10888282209634781, 0.013910491950809956, 0.3567509055137634, 0.26393723487854004, -0.13117985427379608, 0.2827698588371277, -0.0451870858669281, -0.04897111654281616, -0.3095549941062927, 0.32752564549446106, -0.2431069314479828, -0.2856093645095825, 0.2199111133813858, 0.18156783282756805, 0.1619446575641632, -0.6107797622680664, 0.18531903624534607, 0.008888796903192997, -0.29334086179733276, 0.29725563526153564, 0.22300153970718384, -0.0029807346872985363, -0.15258438885211945, -0.1341162621974945, -0.13989901542663574, -0.5762500166893005, 0.45816460251808167, 0.1357262134552002, 0.25816574692726135, -0.08256430178880692, -0.06901389360427856, 0.010609683580696583, -0.2777145802974701, -0.08370567858219147, 0.02770526334643364, 0.12493131309747696, 0.10029733926057816, -0.36196208000183105, 0.057591985911130905, 0.025503123179078102, 0.028164170682430267, 0.5084936618804932, -0.1329772025346756, -0.4221975803375244, 0.44984689354896545, 0.11961805820465088, -0.07773815095424652, -0.17622804641723633, -0.38532209396362305, 0.06965907663106918, 0.396043598651886, -0.008333425968885422, -0.11379774659872055, 0.083860382437706, 0.22985035181045532, -0.03173791989684105, 0.1729094237089157, -0.11634115129709244, 0.5597540140151978, -0.08006715029478073, 0.26501479744911194, 0.05676728114485741, 0.007593309506773949, 0.22374357283115387, 0.09086185693740845, -0.03709755837917328, -0.2848678529262543, -0.1019066646695137, -0.17464667558670044, -0.24925167858600616, 0.07210488617420197, 0.16536696255207062, -0.05193299427628517, -0.2720282971858978, -0.07211200892925262, -0.1612124741077423, -0.17559632658958435, -0.36241814494132996, 0.30117571353912354, -0.3059144616127014, 0.08799099177122116, -0.3111078143119812, -0.08411607146263123, 0.043852467089891434, 0.05807284638285637, -0.05366194620728493, -0.2777518332004547, 0.06599116325378418, -0.11606323719024658, 0.050068605691194534, 0.1661209911108017, -0.20295429229736328, 0.14186009764671326, -0.0379832461476326, 0.29893672466278076, 0.023365970700979233, -0.1710141897201538, -0.06429914385080338, -0.16985686123371124, 0.14798609912395477, 0.0392509363591671, 0.2059403359889984, 0.23481999337673187, -0.11641548573970795, -0.20228169858455658, -0.0036494045052677393, -0.23494063317775726, 0.44001805782318115, 0.5935152769088745, 0.3597715497016907, -0.35149988532066345, -0.17082038521766663, 0.35455286502838135, -0.14836251735687256, -0.09552709758281708, -0.1216847151517868, 0.06972641497850418, -0.21680410206317902, -0.2290600687265396, 0.050209932029247284, 0.253795325756073, 0.3231968879699707, 0.15320007503032684, -0.1422915905714035, -0.23101261258125305, -0.44776004552841187, -0.08060155063867569, 0.14266785979270935, 0.19658163189888, -0.5051637887954712, 0.10156852006912231, -0.15203922986984253, 0.2174498438835144, 0.4984891712665558, 0.7618771195411682, 0.28523021936416626, -0.2908283472061157, 0.24805337190628052, -0.017335467040538788, 0.42424294352531433, 0.11943686008453369, -0.15316201746463776, 0.13031743466854095, -0.20929810404777527, 0.052241403609514236, 0.15178003907203674, -0.26083675026893616, 0.395303338766098, -0.16864316165447235, -0.27605754137039185, -0.24176329374313354, 0.4991045892238617, -0.04355639964342117, -0.012494870461523533, -0.0739118829369545, -0.242634579539299, -0.3518019914627075, 0.6364926099777222, 0.08899510651826859, 0.5242304801940918, 0.4776637554168701, 0.06044997647404671, 0.5830129384994507, -0.155241921544075, 0.28221395611763, -0.7763885259628296, -0.023523319512605667, -0.31037288904190063, 0.1324639469385147, -0.02171088568866253, -0.22958602011203766, 0.23280136287212372, 0.3454684317111969, -0.24499031901359558, 0.006512197200208902, 0.02661510743200779, 0.0639139860868454, -0.03259653225541115, 0.36282968521118164, -0.14411868155002594, -0.27862170338630676, -0.40632376074790955, 0.1032002791762352, 0.056853167712688446, -0.31265342235565186, 0.0303326603025198, -0.3509733974933624, -0.08654791116714478, -0.23574835062026978, -0.26396843791007996, 0.43381214141845703, -0.07165709882974625, 0.3886202275753021, 0.22395679354667664, -0.05619995668530464, 0.36155083775520325, -0.09915263205766678, -0.16800081729888916, -0.07536204904317856, 0.029198799282312393, 0.150663360953331, -0.027261968702077866, -0.2743920683860779, -0.021823860704898834, 0.11915849894285202, 0.1346256583929062, -0.1488005518913269, 0.03841784968972206, -0.02487335167825222, -0.13940979540348053, -0.3718871474266052, 0.27631011605262756, 0.20763033628463745, -0.4314101040363312, -0.3709969222545624, -0.1943303793668747, 0.11563292890787125, -0.14967067539691925, -0.09347648918628693, 0.11809150129556656, -0.001550397602841258, -0.2765606939792633, -0.3599794805049896, -0.0708589032292366, -0.2900591492652893, 0.05386430025100708, 0.3544171452522278, 0.22163346409797668, 0.04316148906946182, 0.6239027976989746, 0.2414463758468628, -0.002135246293619275, -0.32117682695388794, 0.08172138780355453, 0.34311437606811523, -0.4442766606807709, 0.3989851772785187, -0.20757560431957245, -0.1646200567483902, 0.12205389887094498, 0.0919983983039856, 0.2258996069431305, 0.16715936362743378, -0.24596770107746124, -0.5066792368888855, -0.0920291393995285, 0.33023184537887573, -0.2621880769729614, -0.02449069917201996, -0.13785818219184875, 0.22089941799640656, -0.35565385222435, 0.28723037242889404, -0.24341590702533722, 0.22912733256816864, -0.017262984067201614, -0.04853822663426399, -0.05816284939646721, -0.13160280883312225, 0.10557026416063309, 0.04739799723029137, 0.1401481330394745, 0.17527128756046295, 0.017603710293769836, -0.16238521039485931, -0.11380526423454285, 0.13337557017803192, 0.16780433058738708, 0.15522883832454681, -0.29862654209136963, 0.11635959893465042, -0.17701637744903564, 0.03772275522351265, 0.13287949562072754, -0.39393770694732666, -0.05499965697526932, 0.13743697106838226, 0.44412586092948914, 0.2775046229362488, -0.09676539897918701, 0.1493072658777237, -0.12397253513336182, 0.4012753963470459, -0.0929718017578125, 0.2098110467195511, -0.15303054451942444, 0.0011422561947256327, 0.03507321700453758, 0.19869571924209595, -0.04425572231411934, 0.09521378576755524, 0.568446934223175, -0.1944066286087036, -0.06072847172617912, -0.5084900259971619, 0.29555800557136536, 0.5219069719314575, -0.0011156348045915365, -0.04226991906762123, -0.20384930074214935, 0.16712456941604614, -0.16145868599414825, -0.03935762494802475, 0.3196543753147125, 0.0164186991751194, -0.09832863509654999, 0.25969502329826355, 0.09500735253095627, -0.03784939646720886, -0.29878783226013184, 0.1304665058851242, 0.1833294779062271, 0.07271714508533478, 0.20181789994239807, 0.6401522159576416, -0.32577183842658997, 0.049872081726789474, 0.3796493709087372, 0.1183040589094162, 0.6063774228096008, 0.2897164821624756, 0.12442830204963684, 0.07130993902683258, 0.4207838177680969, 0.05208616331219673, 0.0774495005607605, -0.20151673257350922, -0.4815184473991394, 0.09029866755008698, 0.29123517870903015, -0.1424286961555481, -0.1119096651673317, 0.3422735035419464, 0.1441444307565689, -0.12927813827991486, -0.20359452068805695, 0.39802852272987366, -0.16030682623386383, -0.20408861339092255, -0.2676367163658142, -0.13371412456035614, -0.6330994367599487, -0.18158672749996185, -0.08125197887420654, -0.02437293529510498, -0.09150319546461105, 0.11156173795461655, 0.08362618833780289, -0.2546159625053406, 0.11987467855215073, 0.049473971128463745, -0.06789502501487732, -0.2596524655818939, 0.46796905994415283, 0.09139633923768997, 0.0372755192220211, 0.04090660437941551, 0.14877867698669434, 0.4960682690143585, 0.25024092197418213, -0.2635153830051422, -0.2182382196187973, -0.19870737195014954, -0.14708451926708221, -0.017943235114216805, 0.25852811336517334, 0.049426425248384476, 0.1489400416612625, 0.358521431684494, 0.11411082744598389, -0.15997353196144104, 0.043840520083904266, 0.182264506816864, 0.08146987855434418, 0.1857507973909378, 0.638484001159668, -0.04779408127069473, -0.12134861946105957, 0.22430665791034698, -0.13197912275791168, -0.2510053813457489, -0.6355639100074768, 0.29188182950019836, 0.0026247387286275625, 0.19698652625083923, 0.07607083767652512, 0.07502396404743195, 0.1019887626171112, 0.6383277773857117, 0.05862683430314064, 0.08993662893772125, -0.10363071411848068, -0.14080487191677094, -0.036586564034223557, -0.03002031520009041, -0.37302830815315247, 0.010407017543911934, 0.1738443821668625, 0.09668136388063431, 0.16798822581768036, 0.29864954948425293, -0.025165745988488197, 0.29137593507766724, -0.2197558432817459, -0.11883293092250824, -0.4843563735485077, 0.06875872611999512, 0.20370429754257202, 0.0928066223859787, -0.12021270394325256, -0.14762218296527863, 0.06844867765903473, 0.25331950187683105, 0.02396244928240776, 0.0903758555650711, -0.24850080907344818, 0.11686287075281143, -0.32231253385543823, 0.17504431307315826, 0.05041390657424927, 0.11403406411409378, -0.04940524697303772, -0.18966630101203918, -0.18875250220298767, -0.5733941793441772, -0.12193521857261658, 0.46866652369499207, 0.12841026484966278, 0.26802879571914673, -0.1597733050584793, 0.11881051957607269, -0.29430606961250305, 0.12106391787528992, -0.41286465525627136, 0.038887571543455124, -0.3458368480205536, 0.26152724027633667, -0.15570443868637085, 0.23541565239429474, -0.10956183075904846, -0.06789388507604599, -0.201930433511734, 0.09509173780679703, -0.2074783444404602, -0.31118953227996826, 0.37605834007263184, 0.10880251973867416, -0.2328539341688156, 0.46432963013648987, 0.11880108714103699, 0.11658395081758499, 0.23164893686771393, -0.39832207560539246, -0.03011975809931755, 0.254345178604126, -0.189199760556221, -0.3222726583480835, -0.030694739893078804, 0.15509849786758423, -0.13845473527908325, -0.0962277427315712, 0.1503661572933197, 0.04378771781921387, -0.16633650660514832, -0.17571979761123657, 0.013815750367939472 ]
https://github.com/huggingface/datasets/issues/359
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
Indeed this is part of a more general limitation which is the fact that we should generate and update the `features` from the auto-inferred Arrow schema when they are not provided (also happen when a user change the schema using `map()`, the features should be auto-generated and guessed as much as possible to keep the `features` synced with the underlying Arrow table schema). We will try to solve this soon.
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
70
ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-23-9aecfbee53bd> in <module> 55 from nlp import load_dataset 56 ---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles) 58 59 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions ``` If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. Indeed this is part of a more general limitation which is the fact that we should generate and update the `features` from the auto-inferred Arrow schema when they are not provided (also happen when a user change the schema using `map()`, the features should be auto-generated and guessed as much as possible to keep the `features` synced with the underlying Arrow table schema). We will try to solve this soon.
[ -0.3260456323623657, 0.3610112965106964, -0.06005503982305527, 0.5487005710601807, 0.04070315510034561, -0.1400740146636963, 0.3431127965450287, 0.42840784788131714, 0.21433214843273163, -0.11396996676921844, -0.04363242909312248, 0.3332715630531311, 0.2364400029182434, 0.05870359390974045, -0.26586219668388367, -0.16561637818813324, -0.01963185705244541, 0.29372236132621765, -0.12462445348501205, 0.3482961654663086, -0.22258879244327545, 0.452397882938385, -0.10002506524324417, 0.13126716017723083, 0.013991160318255424, -0.08402322232723236, 0.05512546747922897, 0.36302030086517334, -0.16610519587993622, -0.5221458077430725, 0.26167717576026917, -0.2975650131702423, -0.1071118414402008, 0.4265519678592682, -0.00011217651626793668, 0.28368571400642395, 0.2796027660369873, -0.10503802448511124, -0.3678909242153168, -0.056320395320653915, 0.021908650174736977, -0.18979543447494507, 0.08071637153625488, -0.18023625016212463, 0.2029774934053421, -0.27336665987968445, -0.35241666436195374, -0.14096930623054504, 0.5280261635780334, 0.1036980003118515, 0.16150766611099243, -0.14496596157550812, 0.3078526556491852, -0.008729877881705761, 0.09761454910039902, -0.012884773313999176, -0.13418376445770264, 0.349653959274292, -0.274661123752594, 0.16067516803741455, -0.17731410264968872, 0.033971235156059265, -0.14739075303077698, -0.03638574853539467, 0.0670260488986969, 0.03534612059593201, 0.1572587639093399, 0.024221712723374367, 0.006246833596378565, -0.008396100252866745, 0.14433249831199646, -0.12768778204917908, -0.07597289234399796, -0.2398112714290619, -0.28818318247795105, -0.3098757565021515, 0.21490967273712158, 0.10423634946346283, -0.05989272892475128, 0.10175734013319016, 0.31659290194511414, -0.25795090198516846, -0.11959410458803177, 0.008780822157859802, 0.09315823763608932, 0.32947805523872375, -0.0843707025051117, 0.06528879702091217, 0.22180305421352386, -0.021018674597144127, 0.2137235850095749, -0.013495548628270626, -0.5275072455406189, 0.06932602822780609, -0.027979103848338127, 0.009123647585511208, -0.1933583766222, -0.6268088221549988, -0.008878272958099842, 0.10316510498523712, 0.5481136441230774, -0.014283977448940277, 0.15198776125907898, 0.4092033803462982, 0.255483478307724, -0.16612492501735687, 0.26438894867897034, -0.03030191920697689, 0.04175236076116562, 0.25146371126174927, 0.11114518344402313, -0.14347051084041595, -0.02495795115828514, -0.10384978353977203, -0.3425195813179016, -0.06812892109155655, 0.1332850605249405, 0.018102556467056274, -0.2350534200668335, 0.04475758224725723, -0.4381096363067627, -0.1038779690861702, 0.2934705913066864, 0.24562302231788635, 0.22485637664794922, 0.233175590634346, 0.18689696490764618, 0.2919616103172302, 0.020270636305212975, -0.2026330977678299, -0.12423097342252731, 0.10525079071521759, -0.10447441786527634, 0.11084093898534775, 0.21319887042045593, 0.11135362833738327, 0.29969522356987, 0.1288207322359085, -0.34201565384864807, -0.340421199798584, 0.1220172867178917, -0.2721671760082245, 0.02830294892191887, 0.24119426310062408, 0.07982388138771057, -0.18102288246154785, 0.18475593626499176, -0.2773365378379822, -0.05758366733789444, 0.07207461446523666, -0.36034807562828064, -0.3543906807899475, -0.17159751057624817, 0.15046970546245575, 0.0036922015715390444, 0.15749627351760864, -0.451310932636261, -0.04261038824915886, 0.2559913396835327, -0.3391973078250885, 0.1138046458363533, -0.16392803192138672, -0.1804635226726532, -0.16760051250457764, 0.12403202056884766, 0.08145652711391449, -0.1796025186777115, -0.07172208279371262, -0.2841571867465973, -0.0085383839905262, 0.20895884931087494, 0.1984407752752304, -0.1502622663974762, 0.5191947817802429, -0.20322950184345245, 0.5580468773841858, 0.5535892844200134, -0.18754082918167114, -0.2054152637720108, 0.537387490272522, 0.12657779455184937, -0.035294309258461, 0.1371372789144516, -0.405443400144577, 0.2556647062301636, -0.14929929375648499, 0.02391129359602928, 0.4544432759284973, 0.12287864834070206, -0.03666776418685913, -0.05330774188041687, 0.05917054042220116, 0.09457164257764816, -0.053315673023462296, -0.4166422188282013, -0.26386305689811707, -0.11777447909116745, 0.3790178894996643, 0.2506231665611267, -0.08870161324739456, -0.038728874176740646, 0.17678923904895782, 0.0014026095159351826, 0.006782424170523882, -0.0009075412526726723, -0.08420553058385849, -0.51446133852005, 0.025190211832523346, -0.3117574155330658, -0.09111440926790237, -0.37475621700286865, 0.14020492136478424, -0.10324417799711227, 0.3250378370285034, -0.06095113977789879, -0.28534311056137085, 0.22181497514247894, 0.05768192186951637, -0.2218002825975418, -0.3171210289001465, -0.03517623245716095, 0.09715630859136581, -0.05429530516266823, 0.36261191964149475, -0.09931719303131104, 0.46483883261680603, 0.08691375702619553, -0.29661792516708374, 0.04663896560668945, 0.1641550362110138, 0.03551195189356804, -0.25894787907600403, -0.18099188804626465, 0.4646163880825043, 0.4503346383571625, -0.14781568944454193, -0.36484453082084656, -0.35878151655197144, 0.0069061629474163055, 0.10589724779129028, 0.06397676467895508, 0.028998207300901413, 0.1435215324163437, -0.32140442728996277, 0.008041496388614178, 0.31272420287132263, -0.01233649905771017, 0.4519153833389282, 0.08119659125804901, -0.026239370927214622, 0.1977178007364273, -0.021795187145471573, 0.16126053035259247, -0.33993732929229736, -0.10206089168787003, -0.019432105123996735, -0.05101272836327553, 0.1063091829419136, 0.006797526031732559, 0.06671562790870667, 0.31584852933883667, 0.1552184671163559, 0.10251827538013458, -0.03635846823453903, -0.060049284249544144, -0.1964567005634308, 0.1785125583410263, 0.0889553427696228, 0.4353649914264679, 0.036424893885850906, -0.07352975755929947, 0.04256730154156685, 0.125631183385849, -0.09140495210886002, 0.35487449169158936, 0.030168989673256874, 0.44495952129364014, 0.32424378395080566, 0.20339758694171906, -0.07429483532905579, -0.3939177095890045, -0.38328149914741516, 0.027644826099276543, 0.11821561306715012, -0.25807738304138184, 0.2396315634250641, -0.2732924818992615, 0.13113602995872498, -0.07231231033802032, -0.03152124211192131, -0.10273642838001251, -0.39914727210998535, -0.2967226505279541, 0.36995112895965576, -0.29137900471687317, 0.017347268760204315, -0.12719787657260895, 0.08274154365062714, 0.12979577481746674, -0.11010225117206573, -0.3194953501224518, -0.19227364659309387, -0.10888282209634781, 0.013910491950809956, 0.3567509055137634, 0.26393723487854004, -0.13117985427379608, 0.2827698588371277, -0.0451870858669281, -0.04897111654281616, -0.3095549941062927, 0.32752564549446106, -0.2431069314479828, -0.2856093645095825, 0.2199111133813858, 0.18156783282756805, 0.1619446575641632, -0.6107797622680664, 0.18531903624534607, 0.008888796903192997, -0.29334086179733276, 0.29725563526153564, 0.22300153970718384, -0.0029807346872985363, -0.15258438885211945, -0.1341162621974945, -0.13989901542663574, -0.5762500166893005, 0.45816460251808167, 0.1357262134552002, 0.25816574692726135, -0.08256430178880692, -0.06901389360427856, 0.010609683580696583, -0.2777145802974701, -0.08370567858219147, 0.02770526334643364, 0.12493131309747696, 0.10029733926057816, -0.36196208000183105, 0.057591985911130905, 0.025503123179078102, 0.028164170682430267, 0.5084936618804932, -0.1329772025346756, -0.4221975803375244, 0.44984689354896545, 0.11961805820465088, -0.07773815095424652, -0.17622804641723633, -0.38532209396362305, 0.06965907663106918, 0.396043598651886, -0.008333425968885422, -0.11379774659872055, 0.083860382437706, 0.22985035181045532, -0.03173791989684105, 0.1729094237089157, -0.11634115129709244, 0.5597540140151978, -0.08006715029478073, 0.26501479744911194, 0.05676728114485741, 0.007593309506773949, 0.22374357283115387, 0.09086185693740845, -0.03709755837917328, -0.2848678529262543, -0.1019066646695137, -0.17464667558670044, -0.24925167858600616, 0.07210488617420197, 0.16536696255207062, -0.05193299427628517, -0.2720282971858978, -0.07211200892925262, -0.1612124741077423, -0.17559632658958435, -0.36241814494132996, 0.30117571353912354, -0.3059144616127014, 0.08799099177122116, -0.3111078143119812, -0.08411607146263123, 0.043852467089891434, 0.05807284638285637, -0.05366194620728493, -0.2777518332004547, 0.06599116325378418, -0.11606323719024658, 0.050068605691194534, 0.1661209911108017, -0.20295429229736328, 0.14186009764671326, -0.0379832461476326, 0.29893672466278076, 0.023365970700979233, -0.1710141897201538, -0.06429914385080338, -0.16985686123371124, 0.14798609912395477, 0.0392509363591671, 0.2059403359889984, 0.23481999337673187, -0.11641548573970795, -0.20228169858455658, -0.0036494045052677393, -0.23494063317775726, 0.44001805782318115, 0.5935152769088745, 0.3597715497016907, -0.35149988532066345, -0.17082038521766663, 0.35455286502838135, -0.14836251735687256, -0.09552709758281708, -0.1216847151517868, 0.06972641497850418, -0.21680410206317902, -0.2290600687265396, 0.050209932029247284, 0.253795325756073, 0.3231968879699707, 0.15320007503032684, -0.1422915905714035, -0.23101261258125305, -0.44776004552841187, -0.08060155063867569, 0.14266785979270935, 0.19658163189888, -0.5051637887954712, 0.10156852006912231, -0.15203922986984253, 0.2174498438835144, 0.4984891712665558, 0.7618771195411682, 0.28523021936416626, -0.2908283472061157, 0.24805337190628052, -0.017335467040538788, 0.42424294352531433, 0.11943686008453369, -0.15316201746463776, 0.13031743466854095, -0.20929810404777527, 0.052241403609514236, 0.15178003907203674, -0.26083675026893616, 0.395303338766098, -0.16864316165447235, -0.27605754137039185, -0.24176329374313354, 0.4991045892238617, -0.04355639964342117, -0.012494870461523533, -0.0739118829369545, -0.242634579539299, -0.3518019914627075, 0.6364926099777222, 0.08899510651826859, 0.5242304801940918, 0.4776637554168701, 0.06044997647404671, 0.5830129384994507, -0.155241921544075, 0.28221395611763, -0.7763885259628296, -0.023523319512605667, -0.31037288904190063, 0.1324639469385147, -0.02171088568866253, -0.22958602011203766, 0.23280136287212372, 0.3454684317111969, -0.24499031901359558, 0.006512197200208902, 0.02661510743200779, 0.0639139860868454, -0.03259653225541115, 0.36282968521118164, -0.14411868155002594, -0.27862170338630676, -0.40632376074790955, 0.1032002791762352, 0.056853167712688446, -0.31265342235565186, 0.0303326603025198, -0.3509733974933624, -0.08654791116714478, -0.23574835062026978, -0.26396843791007996, 0.43381214141845703, -0.07165709882974625, 0.3886202275753021, 0.22395679354667664, -0.05619995668530464, 0.36155083775520325, -0.09915263205766678, -0.16800081729888916, -0.07536204904317856, 0.029198799282312393, 0.150663360953331, -0.027261968702077866, -0.2743920683860779, -0.021823860704898834, 0.11915849894285202, 0.1346256583929062, -0.1488005518913269, 0.03841784968972206, -0.02487335167825222, -0.13940979540348053, -0.3718871474266052, 0.27631011605262756, 0.20763033628463745, -0.4314101040363312, -0.3709969222545624, -0.1943303793668747, 0.11563292890787125, -0.14967067539691925, -0.09347648918628693, 0.11809150129556656, -0.001550397602841258, -0.2765606939792633, -0.3599794805049896, -0.0708589032292366, -0.2900591492652893, 0.05386430025100708, 0.3544171452522278, 0.22163346409797668, 0.04316148906946182, 0.6239027976989746, 0.2414463758468628, -0.002135246293619275, -0.32117682695388794, 0.08172138780355453, 0.34311437606811523, -0.4442766606807709, 0.3989851772785187, -0.20757560431957245, -0.1646200567483902, 0.12205389887094498, 0.0919983983039856, 0.2258996069431305, 0.16715936362743378, -0.24596770107746124, -0.5066792368888855, -0.0920291393995285, 0.33023184537887573, -0.2621880769729614, -0.02449069917201996, -0.13785818219184875, 0.22089941799640656, -0.35565385222435, 0.28723037242889404, -0.24341590702533722, 0.22912733256816864, -0.017262984067201614, -0.04853822663426399, -0.05816284939646721, -0.13160280883312225, 0.10557026416063309, 0.04739799723029137, 0.1401481330394745, 0.17527128756046295, 0.017603710293769836, -0.16238521039485931, -0.11380526423454285, 0.13337557017803192, 0.16780433058738708, 0.15522883832454681, -0.29862654209136963, 0.11635959893465042, -0.17701637744903564, 0.03772275522351265, 0.13287949562072754, -0.39393770694732666, -0.05499965697526932, 0.13743697106838226, 0.44412586092948914, 0.2775046229362488, -0.09676539897918701, 0.1493072658777237, -0.12397253513336182, 0.4012753963470459, -0.0929718017578125, 0.2098110467195511, -0.15303054451942444, 0.0011422561947256327, 0.03507321700453758, 0.19869571924209595, -0.04425572231411934, 0.09521378576755524, 0.568446934223175, -0.1944066286087036, -0.06072847172617912, -0.5084900259971619, 0.29555800557136536, 0.5219069719314575, -0.0011156348045915365, -0.04226991906762123, -0.20384930074214935, 0.16712456941604614, -0.16145868599414825, -0.03935762494802475, 0.3196543753147125, 0.0164186991751194, -0.09832863509654999, 0.25969502329826355, 0.09500735253095627, -0.03784939646720886, -0.29878783226013184, 0.1304665058851242, 0.1833294779062271, 0.07271714508533478, 0.20181789994239807, 0.6401522159576416, -0.32577183842658997, 0.049872081726789474, 0.3796493709087372, 0.1183040589094162, 0.6063774228096008, 0.2897164821624756, 0.12442830204963684, 0.07130993902683258, 0.4207838177680969, 0.05208616331219673, 0.0774495005607605, -0.20151673257350922, -0.4815184473991394, 0.09029866755008698, 0.29123517870903015, -0.1424286961555481, -0.1119096651673317, 0.3422735035419464, 0.1441444307565689, -0.12927813827991486, -0.20359452068805695, 0.39802852272987366, -0.16030682623386383, -0.20408861339092255, -0.2676367163658142, -0.13371412456035614, -0.6330994367599487, -0.18158672749996185, -0.08125197887420654, -0.02437293529510498, -0.09150319546461105, 0.11156173795461655, 0.08362618833780289, -0.2546159625053406, 0.11987467855215073, 0.049473971128463745, -0.06789502501487732, -0.2596524655818939, 0.46796905994415283, 0.09139633923768997, 0.0372755192220211, 0.04090660437941551, 0.14877867698669434, 0.4960682690143585, 0.25024092197418213, -0.2635153830051422, -0.2182382196187973, -0.19870737195014954, -0.14708451926708221, -0.017943235114216805, 0.25852811336517334, 0.049426425248384476, 0.1489400416612625, 0.358521431684494, 0.11411082744598389, -0.15997353196144104, 0.043840520083904266, 0.182264506816864, 0.08146987855434418, 0.1857507973909378, 0.638484001159668, -0.04779408127069473, -0.12134861946105957, 0.22430665791034698, -0.13197912275791168, -0.2510053813457489, -0.6355639100074768, 0.29188182950019836, 0.0026247387286275625, 0.19698652625083923, 0.07607083767652512, 0.07502396404743195, 0.1019887626171112, 0.6383277773857117, 0.05862683430314064, 0.08993662893772125, -0.10363071411848068, -0.14080487191677094, -0.036586564034223557, -0.03002031520009041, -0.37302830815315247, 0.010407017543911934, 0.1738443821668625, 0.09668136388063431, 0.16798822581768036, 0.29864954948425293, -0.025165745988488197, 0.29137593507766724, -0.2197558432817459, -0.11883293092250824, -0.4843563735485077, 0.06875872611999512, 0.20370429754257202, 0.0928066223859787, -0.12021270394325256, -0.14762218296527863, 0.06844867765903473, 0.25331950187683105, 0.02396244928240776, 0.0903758555650711, -0.24850080907344818, 0.11686287075281143, -0.32231253385543823, 0.17504431307315826, 0.05041390657424927, 0.11403406411409378, -0.04940524697303772, -0.18966630101203918, -0.18875250220298767, -0.5733941793441772, -0.12193521857261658, 0.46866652369499207, 0.12841026484966278, 0.26802879571914673, -0.1597733050584793, 0.11881051957607269, -0.29430606961250305, 0.12106391787528992, -0.41286465525627136, 0.038887571543455124, -0.3458368480205536, 0.26152724027633667, -0.15570443868637085, 0.23541565239429474, -0.10956183075904846, -0.06789388507604599, -0.201930433511734, 0.09509173780679703, -0.2074783444404602, -0.31118953227996826, 0.37605834007263184, 0.10880251973867416, -0.2328539341688156, 0.46432963013648987, 0.11880108714103699, 0.11658395081758499, 0.23164893686771393, -0.39832207560539246, -0.03011975809931755, 0.254345178604126, -0.189199760556221, -0.3222726583480835, -0.030694739893078804, 0.15509849786758423, -0.13845473527908325, -0.0962277427315712, 0.1503661572933197, 0.04378771781921387, -0.16633650660514832, -0.17571979761123657, 0.013815750367939472 ]
https://github.com/huggingface/datasets/issues/355
can't load SNLI dataset
I just added the processed files of `snli` on our google storage, so that when you do `load_dataset` it can download the processed files from there :) We are thinking about having available those processed files for more datasets in the future, because sometimes files aren't available (like for `snli`), or the download speed is too slow, or sometimes the files take time to be processed.
`nlp` seems to load `snli` from some URL based on nlp.stanford.edu. This subdomain is frequently down -- including right now, when I'd like to load `snli` in a Colab notebook, but can't. Is there a plan to move these datasets to huggingface servers for a more stable solution? Btw, here's the stack trace: ``` File "/content/nlp/src/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/content/nlp/src/nlp/builder.py", line 466, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/content/nlp/src/nlp/datasets/snli/e417f6f2e16254938d977a17ed32f3998f5b23e4fcab0f6eb1d28784f23ea60d/snli.py", line 76, in _split_generators dl_dir = dl_manager.download_and_extract(_DATA_URL) File "/content/nlp/src/nlp/utils/download_manager.py", line 217, in download_and_extract return self.extract(self.download(url_or_urls)) File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in download lambda url: cached_path(url, download_config=self._download_config,), url_or_urls, File "/content/nlp/src/nlp/utils/py_utils.py", line 190, in map_nested return function(data_struct) File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in <lambda> lambda url: cached_path(url, download_config=self._download_config,), url_or_urls, File "/content/nlp/src/nlp/utils/file_utils.py", line 198, in cached_path local_files_only=download_config.local_files_only, File "/content/nlp/src/nlp/utils/file_utils.py", line 356, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://nlp.stanford.edu/projects/snli/snli_1.0.zip ```
66
can't load SNLI dataset `nlp` seems to load `snli` from some URL based on nlp.stanford.edu. This subdomain is frequently down -- including right now, when I'd like to load `snli` in a Colab notebook, but can't. Is there a plan to move these datasets to huggingface servers for a more stable solution? Btw, here's the stack trace: ``` File "/content/nlp/src/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/content/nlp/src/nlp/builder.py", line 466, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/content/nlp/src/nlp/datasets/snli/e417f6f2e16254938d977a17ed32f3998f5b23e4fcab0f6eb1d28784f23ea60d/snli.py", line 76, in _split_generators dl_dir = dl_manager.download_and_extract(_DATA_URL) File "/content/nlp/src/nlp/utils/download_manager.py", line 217, in download_and_extract return self.extract(self.download(url_or_urls)) File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in download lambda url: cached_path(url, download_config=self._download_config,), url_or_urls, File "/content/nlp/src/nlp/utils/py_utils.py", line 190, in map_nested return function(data_struct) File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in <lambda> lambda url: cached_path(url, download_config=self._download_config,), url_or_urls, File "/content/nlp/src/nlp/utils/file_utils.py", line 198, in cached_path local_files_only=download_config.local_files_only, File "/content/nlp/src/nlp/utils/file_utils.py", line 356, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://nlp.stanford.edu/projects/snli/snli_1.0.zip ``` I just added the processed files of `snli` on our google storage, so that when you do `load_dataset` it can download the processed files from there :) We are thinking about having available those processed files for more datasets in the future, because sometimes files aren't available (like for `snli`), or the download speed is too slow, or sometimes the files take time to be processed.
[ 0.13044780492782593, -0.04836525395512581, 0.05979364365339279, 0.42177844047546387, 0.16876031458377838, -0.21573878824710846, 0.2670186758041382, 0.016133533790707588, -0.02443443052470684, -0.10663776099681854, -0.3873254060745239, -0.0008519586408510804, 0.14539463818073273, 0.41047340631484985, 0.3283262550830841, -0.084852434694767, 0.11947360634803772, -0.03571688011288643, 0.013939130119979382, -0.15748506784439087, -0.3483361601829529, 0.31967318058013916, -0.375736266374588, 0.09691082686185837, -0.029765263199806213, 0.019662659615278244, -0.21430006623268127, 0.262281596660614, -0.1611679643392563, -0.13939274847507477, 0.4381110668182373, 0.1644984632730484, 0.3262893259525299, 0.09963779151439667, -0.00011755899322452024, 0.02953055128455162, 0.1056622713804245, -0.08709490299224854, -0.5640884637832642, 0.09364980459213257, -0.3248423635959625, -0.236927330493927, -0.041226956993341446, -0.055394288152456284, -0.21174359321594238, -0.0341285839676857, 0.08784405887126923, -0.13384464383125305, 0.262066125869751, 0.2927180230617523, 0.13121655583381653, 0.45702221989631653, -0.5215482115745544, 0.08376715332269669, 0.02260589972138405, -0.10759604722261429, -0.16608071327209473, 0.28111904859542847, 0.059420403093099594, -0.23487308621406555, 0.1584092080593109, 0.15448260307312012, -0.3054077625274658, -0.3910251557826996, 0.1858430951833725, 0.025187648832798004, -0.052470605820417404, -0.07814856618642807, 0.10443240404129028, 0.2801416516304016, 0.06989749521017075, 0.1527647227048874, -0.28611767292022705, -0.3133828341960907, 0.09730035811662674, -0.04410649463534355, 0.1898171454668045, 0.17143863439559937, 0.1277592033147812, 0.30285975337028503, -0.050163764506578445, -0.2644033432006836, -0.0007002521888352931, 0.2948251962661743, -0.15439777076244354, 0.6570674180984497, -0.14177827537059784, 0.1334460973739624, 0.34319570660591125, -0.028640320524573326, 0.08544304966926575, -0.009940740652382374, 0.07277698069810867, 0.10836444795131683, -0.38827240467071533, 0.09510862827301025, -0.13985604047775269, 0.35787233710289, 0.021769169718027115, 0.3268404006958008, 0.2466687262058258, -0.04828904941678047, 0.007582877762615681, 0.19016601145267487, 0.07712843269109726, 0.19084541499614716, 0.026967229321599007, -0.23201310634613037, 0.5072241425514221, 0.23948141932487488, 0.27193784713745117, 0.09627073258161545, -0.2195160984992981, -0.26792988181114197, -0.5367227792739868, -0.3278500437736511, 0.07820694148540497, -0.20933280885219574, -0.14501695334911346, -0.1577027291059494, -0.07197753340005875, 0.11553030461072922, 0.18228572607040405, 0.28344038128852844, -0.06271462142467499, 0.5076016783714294, 0.11113405972719193, 0.1902720183134079, -0.23500193655490875, -0.20106197893619537, -0.15717297792434692, 0.015019225887954235, -0.3410457372665405, 0.37105539441108704, 0.11819154024124146, -0.36456298828125, 0.16728876531124115, -0.04715017229318619, -0.14679057896137238, 0.16597872972488403, -0.14715071022510529, 0.3010146915912628, -0.03390377387404442, 0.16082336008548737, -0.04067505896091461, 0.1551700234413147, -0.028171299025416374, -0.14015866816043854, -0.13046203553676605, -0.16631975769996643, -0.1513635516166687, -0.32994896173477173, -0.08572833240032196, 0.03101441264152527, -0.33380642533302307, -0.24958764016628265, -0.4519353210926056, 0.003700875909999013, 0.02677064947783947, -0.10502168536186218, -0.06728913635015488, -0.0789618268609047, -0.23878584802150726, -0.12133677303791046, 0.3064868748188019, 0.5235173106193542, 0.20271478593349457, -0.36233776807785034, -0.23557822406291962, 0.03768652305006981, 0.1617942750453949, 0.6363998055458069, -0.11884159594774246, -0.40012481808662415, -0.18249905109405518, 0.17750218510627747, 0.20022962987422943, -0.17948707938194275, -0.32569509744644165, 0.27528294920921326, -0.3613668382167816, -0.14399872720241547, 0.22235354781150818, 0.19318868219852448, -0.16391205787658691, -0.04995010420680046, 0.18925072252750397, 0.633045494556427, 0.1260441541671753, -0.08561266213655472, -0.4507153332233429, -0.36408767104148865, 0.0047563775442540646, 0.22296224534511566, 0.11327721923589706, -0.03711852431297302, -0.12916691601276398, 0.23092786967754364, 0.2957029640674591, -0.14453613758087158, 0.054640620946884155, -0.06288429349660873, 0.2287708818912506, 0.2753056585788727, -0.018023552373051643, 0.14588108658790588, -0.37360864877700806, 0.16017970442771912, -0.01566331461071968, 0.4346548616886139, 0.07746874541044235, 0.040483854711055756, -0.1789988875389099, -0.009472991339862347, -0.13193261623382568, -0.15485867857933044, -0.045312367379665375, 0.32077446579933167, 0.23290666937828064, 0.14567194879055023, -0.2976038157939911, 0.22776824235916138, -0.23710279166698456, 0.249647319316864, -0.5744194984436035, 0.5656717419624329, 0.1177576556801796, 0.22764912247657776, -0.011413323692977428, 0.3198726773262024, 0.030709177255630493, -0.1356557011604309, 0.16455459594726562, 0.09949138015508652, -0.35582858324050903, 0.2359803020954132, 0.4676782488822937, 0.08755265176296234, 0.2638017535209656, -0.2606590688228607, 0.4226081371307373, -0.0008729223045520484, -0.05667051672935486, 0.016511689871549606, 0.1377953737974167, 0.5027767419815063, -0.1210886761546135, 0.4202393889427185, 0.2470627725124359, 0.23842720687389374, 0.4183709919452667, -0.06206829845905304, -0.05415456369519234, -0.0759214460849762, 0.20868980884552002, 0.24368341267108917, 0.41835328936576843, 0.4291173219680786, -0.4238770306110382, 0.10120239108800888, 0.057386502623558044, -0.2955073118209839, 0.03750819340348244, 0.03059222549200058, -0.308552086353302, -0.22869083285331726, 0.32739028334617615, 0.47216588258743286, 0.20522987842559814, 0.05243637040257454, -0.04898883029818535, -0.0664653331041336, -0.15078939497470856, -0.5673171877861023, 0.345660001039505, -0.0326576791703701, -0.06887845695018768, -0.0018087581265717745, 0.2520265579223633, -0.030083201825618744, -0.629324197769165, -0.03042934089899063, -0.08396720141172409, -0.03293712064623833, -0.22632156312465668, 0.1976238489151001, -0.3592187464237213, -0.6340146660804749, -0.5378743410110474, 0.08218902349472046, -0.32980722188949585, -0.5116077661514282, 0.09212492406368256, 0.1828797608613968, 0.022649457678198814, -0.06347280740737915, -0.0067480141296982765, 0.6645870804786682, -0.4301495850086212, -0.06042025238275528, -0.1470169872045517, -0.5190831422805786, -0.37706252932548523, 0.06344766914844513, 0.3587058186531067, 0.20077386498451233, 0.10397769510746002, -0.26919490098953247, -0.1576102375984192, -0.3166332244873047, -0.4544118046760559, 0.09335354715585709, -0.008702636696398258, 0.09787976741790771, -0.03496868908405304, 0.35976216197013855, 0.1173563003540039, -0.13162344694137573, 0.22076554596424103, -0.14579440653324127, 0.16166836023330688, 0.3093688488006592, -0.1411336064338684, -0.06294861435890198, 0.09916556626558304, -0.19209252297878265, -0.39868873357772827, -0.28580954670906067, 0.15824320912361145, -0.4708939492702484, -0.08652555197477341, 0.41784653067588806, -0.12099692225456238, 0.12822993099689484, -0.014049423858523369, -0.16536778211593628, -0.006905328016728163, -0.12219671905040741, 0.34015190601348877, -0.0845445841550827, -0.16880583763122559, -0.017971564084291458, 0.11937962472438812, 0.26671433448791504, -0.09781110286712646, -0.5858651399612427, -0.007025906350463629, -0.09593302011489868, 0.08756829798221588, 0.3945232033729553, -0.06226551532745361, -0.020065488293766975, -0.1766350418329239, 0.014921670779585838, 0.11362886428833008, -0.1519593894481659, -0.04349052533507347, 0.1634541004896164, 0.31326186656951904, 0.15995989739894867, 0.2865481972694397, -0.005542094819247723, 0.4817105531692505, 0.1003510057926178, -0.1031537801027298, 0.46577638387680054, 0.14122788608074188, 0.12982705235481262, 0.05498689040541649, -0.4065549373626709, 0.19029633700847626, 0.03336849808692932, -0.3419710695743561, 0.4272547662258148, 0.181926891207695, 0.12055082619190216, -0.3684728741645813, -0.20222380757331848, 0.16976472735404968, -0.26769712567329407, 0.0530463270843029, 0.2985788583755493, 0.06030937284231186, 0.09722673147916794, -0.1055050641298294, -0.03779284283518791, -0.15850137174129486, -0.0520995631814003, 0.41013219952583313, 0.09776343405246735, 0.025048919022083282, -0.2611635625362396, -0.09200438857078552, -0.5408347845077515, 0.3158052861690521, 0.05276358127593994, 0.20280338823795319, -0.08107674866914749, -0.03010774776339531, 0.2543754279613495, 0.06791739910840988, 0.26635026931762695, -0.10480429232120514, 0.14239729940891266, 0.04107844457030296, -0.09739195555448532, -0.49290332198143005, 0.06520610302686691, 0.12379196286201477, -0.07173029333353043, 0.479284405708313, 0.35205551981925964, -0.03948202729225159, -0.24281863868236542, 0.14532312750816345, 0.23051896691322327, -0.24358749389648438, 0.06693501025438309, -0.1930088847875595, -0.5233625769615173, -0.19677723944187164, -0.15652401745319366, -0.17260485887527466, 0.07372947037220001, -0.09556008875370026, 0.05605655163526535, 0.06314539164304733, -0.1865672469139099, 0.11510944366455078, 0.3434086740016937, 0.023311762139201164, 0.27344632148742676, -0.12752842903137207, 0.07950805127620697, 0.35382315516471863, 0.1347268670797348, 0.7317377924919128, -0.17661601305007935, -0.34192997217178345, 0.1424729824066162, 0.3091105818748474, 0.42599135637283325, 0.5515434145927429, 0.012210148386657238, -0.0027423547580838203, 0.24694134294986725, 0.169174462556839, -0.07101989537477493, 0.024855948984622955, 0.18965445458889008, -0.02715822495520115, -0.24380868673324585, -0.33878257870674133, 0.6757810115814209, 0.17535986006259918, -0.06867124140262604, -0.019681956619024277, 0.18797892332077026, -0.19974757730960846, 0.3174867033958435, 0.1963852345943451, 1.11260187625885, -0.386577308177948, 0.25271546840667725, 0.475459486246109, 0.13002701103687286, 0.7861911058425903, -0.04764791205525398, 0.03931348770856857, -0.1757771372795105, -0.038687922060489655, -0.015869643539190292, 0.10263850539922714, -0.2545422613620758, 0.09309985488653183, 0.11931261420249939, 0.37657204270362854, 0.1462590992450714, 0.12448330223560333, 0.17723217606544495, 0.4552801847457886, -0.014979122206568718, -0.1715271919965744, -0.9147059917449951, 0.0899304524064064, -0.04436268284916878, 0.19743438065052032, -0.11496765166521072, -0.1363944411277771, -0.1437598019838333, 0.2531198561191559, -0.06407684832811356, 0.30957093834877014, 0.0926273986697197, 0.21685494482517242, -0.3098125457763672, -0.09306767582893372, -0.11080443859100342, 0.21110564470291138, 0.4911544620990753, -0.1463083028793335, -0.28701266646385193, 0.010025426745414734, -0.2619120180606842, -0.1846579760313034, -0.004082788247615099, 0.11465973407030106, 0.25684675574302673, 0.029944714158773422, -0.032214973121881485, -0.09526391327381134, 0.2902308702468872, -0.29165372252464294, -0.3434285819530487, -0.14098802208900452, -0.34795698523521423, -0.05936506390571594, 0.18422269821166992, 0.17046654224395752, 0.09887304902076721, -0.15928931534290314, 0.043803732842206955, 0.02010623924434185, 0.1397147923707962, -0.3530651926994324, 0.15583613514900208, -0.2608717679977417, -0.09024778008460999, 0.42247769236564636, -0.12901394069194794, 0.2367510348558426, 0.21371343731880188, 0.2999236285686493, 0.04160796478390694, -0.1443563997745514, -0.20402559638023376, -0.12507793307304382, -0.34934699535369873, 0.22677405178546906, 0.026972992345690727, -0.2679871916770935, -0.1560666263103485, 0.4593503773212433, 0.20665693283081055, -0.3265986442565918, -0.12991130352020264, -0.43087688088417053, 0.006658195052295923, 0.3610086739063263, -0.09636186808347702, 0.031127721071243286, 0.32809606194496155, 0.048095595091581345, -0.0867452472448349, -0.11573339253664017, -0.21618126332759857, 0.029873579740524292, -0.23764972388744354, -0.0058721862733364105, 0.3596518039703369, -0.14707088470458984, 0.1962190568447113, 0.12211471796035767, -0.014204218983650208, -0.2798116207122803, 0.049446430057287216, -0.07293495535850525, -0.17543458938598633, 0.1707995980978012, 0.25850754976272583, -0.2010321021080017, -0.16814078390598297, -0.2821454107761383, 0.0648476853966713, -0.28873589634895325, 0.02327064238488674, 0.06044648215174675, 0.049707747995853424, 0.14759980142116547, -0.16806142032146454, -0.21705998480319977, -0.03246386721730232, 0.4655556082725525, 0.07115110754966736, -0.08064895123243332, 0.2655051052570343, 0.14155830442905426, 0.21427172422409058, -0.08843599259853363, -0.18475444614887238, 0.04753183200955391, 0.04506400600075722, 0.0056982324458658695, 0.24241696298122406, -0.22424723207950592, -0.18046024441719055, 0.28521987795829773, 0.06550785154104233, 0.6470022797584534, 0.22479623556137085, 0.013737467117607594, -0.0031776337418705225, 0.006632918491959572, -0.13878050446510315, -0.019351352006196976, 0.3327874541282654, 0.06998693943023682, -0.2775740623474121, 0.2848493158817291, 0.31588953733444214, -0.2858678996562958, 0.09280207753181458, -0.0361049547791481, 0.20296482741832733, 0.13250137865543365, 0.2233761101961136, 0.20391514897346497, 0.25228774547576904, 0.15989966690540314, 0.05331500247120857, -0.026981478556990623, 0.35745635628700256, -0.09296272695064545, -0.20844358205795288, 0.28468722105026245, -0.41641467809677124, 0.3620058596134186, 0.18143805861473083, -0.09258890897035599, -0.17395524680614471, 0.22662734985351562, -0.1083591878414154, -0.02367277257144451, 0.04932863265275955, 0.8438776731491089, -0.3339231312274933, -0.24099214375019073, -0.35824209451675415, 0.6556254029273987, -0.24541766941547394, -0.29101744294166565, -0.5016084909439087, -0.13647156953811646, -0.179776132106781, 0.20415978133678436, -0.32151103019714355, -0.2917785942554474, 0.28840330243110657, 0.20907849073410034, -0.0305057093501091, -0.6123151779174805, -0.17653323709964752, 0.3434590697288513, 0.11245138198137283, -0.11380527168512344, 0.31364789605140686, 0.05800711363554001, -0.20412622392177582, 0.11886078864336014, 0.09687945991754532, 0.3500443398952484, 0.20109102129936218, -0.014696616679430008, -0.04771358147263527, 0.12547680735588074, -0.0012671356089413166, -0.2866498529911041, 0.1265266239643097, -0.06532671302556992, 0.20598198473453522, 0.23544207215309143, 0.07742635160684586, -0.05314209312200546, 0.05600405111908913, -0.005143251270055771, 0.13397137820720673, -0.23937900364398956, 0.23334026336669922, 0.004182990174740553, -0.03707689791917801, -0.3344920873641968, 0.05349140986800194, -0.3265331983566284, 0.14245854318141937, 0.10188522189855576, -0.22226236760616302, 0.08464483916759491, -0.17365753650665283, 0.013878479599952698, 0.18511955440044403, 0.7972937822341919, 0.39564359188079834, 0.002844139002263546, -0.25362464785575867, -0.33622437715530396, -0.7480286955833435, -0.030340230092406273, -0.04552654176950455, 0.031410787254571915, -0.09896956384181976, 0.02645779773592949, 0.014754209667444229, 0.08649611473083496, -0.5139558911323547, 0.311920702457428, 0.04543016850948334, -0.1438581794500351, -0.2488619089126587, -0.0460016168653965, 0.0006236693006940186, -0.10934220999479294, -0.030833765864372253, -0.18518906831741333, 0.1970304697751999, -0.09955260157585144, -0.1593063473701477, 0.040589723736047745, 0.13723361492156982, -0.14986713230609894, -0.19605927169322968, 0.31160053610801697, 0.21885402500629425, 0.29022088646888733, 0.09415122121572495, -0.1532387137413025, -0.3999740183353424, -0.3762975335121155, -0.21542128920555115, -0.035147398710250854, -0.16200506687164307, -0.01055200770497322, -0.026523778215050697, 0.3910278379917145, -0.2698175609111786, 0.18679696321487427, 0.12917731702327728, 0.16262829303741455, -0.22147130966186523, -0.14154580235481262, -0.2822153568267822, 0.07693911343812943, 0.18282975256443024, 0.3219570219516754, -0.10198172926902771, -0.1648564338684082, -0.03888550400733948, -0.29847317934036255, 0.31040266156196594, -0.6674915552139282, -0.005182307679206133, 0.2318093180656433, 0.100369893014431, 0.19054248929023743, -0.0044609541073441505, -0.2803201377391815, 0.021678201854228973, -0.040231168270111084, 0.053614407777786255, -0.05722356215119362, 0.25589993596076965, 0.22450542449951172, -0.27065128087997437, -0.22824063897132874, -0.21763688325881958, 0.23124119639396667, -0.30378788709640503, 0.13398407399654388, -0.31569066643714905 ]
https://github.com/huggingface/datasets/issues/353
[Dataset requests] New datasets for Text Classification
- `nlp` has MR! It's called `rotten_tomatoes` - SST is part of GLUE, or is that just SST-2? - `nlp` also has `ag_news`, a popular news classification dataset I'd also like to see: - the Yahoo Answers topic classification dataset - the Kaggle Fake News classification dataset
We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705
47
[Dataset requests] New datasets for Text Classification We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705 - `nlp` has MR! It's called `rotten_tomatoes` - SST is part of GLUE, or is that just SST-2? - `nlp` also has `ag_news`, a popular news classification dataset I'd also like to see: - the Yahoo Answers topic classification dataset - the Kaggle Fake News classification dataset
[ 0.052762940526008606, 0.17702357470989227, -0.14922823011875153, 0.2923188805580139, 0.17709802091121674, 0.2543240785598755, 0.22255899012088776, 0.1188267320394516, -0.1443071812391281, -0.1214158833026886, -0.1536761373281479, 0.0564630962908268, -0.16629162430763245, 0.170420840382576, 0.0837513729929924, -0.2406844049692154, 0.05147293955087662, -0.05878419801592827, -0.09516032040119171, -0.22925376892089844, -0.13274960219860077, 0.24706880748271942, -0.11449253559112549, -0.24908332526683807, -0.3917079567909241, -0.03008125349879265, -0.1971093863248825, 0.08251123130321503, -0.23308749496936798, -0.5466545224189758, 0.12980590760707855, 0.1312665194272995, 0.20014116168022156, 0.35613858699798584, -0.00010372117685619742, -0.2407379299402237, 0.02685229852795601, -0.014462809078395367, -0.17142567038536072, -0.16554470360279083, -0.20614470541477203, -0.536124587059021, -0.022751038894057274, -0.08011197298765182, -0.12756867706775665, 0.04106011614203453, 0.0543382465839386, -0.24474145472049713, -0.01306538563221693, 0.3233349025249481, 0.24470500648021698, -0.06618639081716537, -0.05842383950948715, -0.14122198522090912, 0.29887938499450684, 0.55123370885849, -0.31063181161880493, -0.06306304037570953, 0.5326191782951355, 0.13658441603183746, -0.0013359615113586187, 0.3090859651565552, -0.20091462135314941, -0.08904413878917694, 0.16074426472187042, 0.2195887416601181, -0.29087933897972107, -0.385392427444458, 0.03846924751996994, 0.33020326495170593, 0.7269300818443298, -0.29914429783821106, -0.4356435239315033, -0.2929202616214752, 0.17904192209243774, -0.2091686725616455, -0.1762988120317459, 0.2850819230079651, -0.012793511152267456, 0.1451200395822525, -0.14743858575820923, -0.23357100784778595, -0.2125958353281021, 0.2384120672941208, 0.29970648884773254, 0.09458746016025543, 0.013455674983561039, -0.19839642941951752, -0.09502933919429779, 0.12801997363567352, 0.35037845373153687, -0.38071751594543457, 0.2048945128917694, -0.0010364403715357184, -0.19959646463394165, -0.20891597867012024, -0.04660377278923988, 0.025889093056321144, -0.06507530808448792, 0.01004329975694418, -0.23203274607658386, 0.0853959247469902, -0.1917659342288971, -0.08208491653203964, 0.03058472089469433, -0.10319961607456207, 0.21318206191062927, 0.34291163086891174, 0.10361628979444504, -0.2787938416004181, 0.15654948353767395, 0.03353414312005043, -0.17590264976024628, 0.22728011012077332, -0.020155133679509163, 0.054511573165655136, -0.13346736133098602, -0.22949552536010742, 0.046414364129304886, -0.11725351959466934, 0.020205846056342125, -0.10668030381202698, -0.19935348629951477, -0.06663419306278229, -0.049997374415397644, 0.14994153380393982, -0.19128268957138062, 0.24061986804008484, 0.003572771092876792, -0.407259076833725, -0.1258370280265808, -0.05201701819896698, -0.10642192512750626, 0.17184937000274658, 0.6023261547088623, -0.16703374683856964, 0.17919042706489563, -0.13791772723197937, -0.16813836991786957, 0.1534091830253601, -0.07666046917438507, 0.006188496947288513, 0.06368144601583481, 0.12826001644134521, -0.14714783430099487, 0.1247723400592804, 0.15509840846061707, 0.1334685981273651, -0.20325590670108795, 0.26139429211616516, -0.05147797241806984, -0.21164058148860931, -0.24260814487934113, 0.24613822996616364, -0.012763605453073978, -0.5387889742851257, -0.16427545249462128, 0.6117164492607117, -0.03404693678021431, -0.11514715850353241, 0.16985706984996796, -0.019206928089261055, -0.08499938249588013, -0.16581666469573975, -0.0492001436650753, 0.44304847717285156, -0.4810694456100464, -0.24996380507946014, -0.38365060091018677, 0.1358894556760788, 0.1784743219614029, 0.16470535099506378, -0.19559739530086517, 0.034902699291706085, 0.08225282281637192, 0.016714928671717644, 0.20632143318653107, -0.02450600266456604, -0.2242671549320221, -0.09163431823253632, 0.08196229487657547, -0.11401014029979706, 0.10385047644376755, 0.31705519556999207, 0.11336000263690948, -0.07568320631980896, -0.1596265435218811, 0.1264420598745346, -0.2982206642627716, -0.048829108476638794, -0.12450850754976273, -0.04463917016983032, 0.20998983085155487, 0.4207592308521271, 0.49518606066703796, -0.08521522581577301, 0.07350378483533859, -0.208188995718956, 0.09259513765573502, 0.06929911673069, 0.2265700101852417, 0.09307801723480225, 0.12558738887310028, 0.22164885699748993, 0.05580810457468033, -0.3216341435909271, -0.20004253089427948, 0.050313837826251984, 0.3117815852165222, 0.3458412289619446, 0.0033861706033349037, -0.13042029738426208, -0.14601652324199677, -0.12069972604513168, 0.04352465644478798, -0.030036097392439842, 0.15963730216026306, -0.12219034880399704, 0.11884202063083649, 0.18756037950515747, -0.300601065158844, 0.20694930851459503, -0.32147783041000366, 0.3590737283229828, 0.18758457899093628, 0.32834237813949585, -0.0352603942155838, -0.005996917840093374, 0.16684666275978088, 0.31522175669670105, -0.031122621148824692, 0.0017885525012388825, 0.011521000415086746, -0.04219692572951317, -0.15212009847164154, -0.03780403733253479, 0.35298025608062744, 0.37639132142066956, 0.37678423523902893, -0.5228687524795532, 0.2861688733100891, -0.059479039162397385, 0.06894339621067047, -0.18870991468429565, -0.07368316501379013, 0.3114962875843048, -0.08393476903438568, 0.0817985087633133, -0.004046435002237558, 0.05147939920425415, -0.025647711008787155, -0.0040908087976276875, 0.03689168021082878, 0.11112752556800842, 0.2754783630371094, -0.16136091947555542, 0.1710832118988037, 0.003451487049460411, -0.1263173371553421, 0.20794735848903656, 0.22142015397548676, -0.05408778786659241, 0.17903412878513336, 0.26938962936401367, -0.4363267123699188, -0.044664815068244934, -0.03600180521607399, 0.16783154010772705, 0.33746805787086487, 0.45863044261932373, -0.007557105738669634, -0.09211643785238266, 0.10008946061134338, -0.3318987786769867, 0.053944770246744156, 0.39466989040374756, 0.02382168173789978, 0.0016806256026029587, 0.2778211832046509, 0.24336819350719452, -0.2611660957336426, -0.11990753561258316, 0.183259055018425, -0.07904067635536194, 0.04157022759318352, -0.05270334333181381, -0.07341015338897705, -0.38315680623054504, -0.011878213845193386, -0.06083951145410538, -0.09111253917217255, -0.28691184520721436, 0.23350924253463745, -0.2812654376029968, 0.10548699647188187, 0.09378006309270859, -0.30110082030296326, 0.47495564818382263, -0.25831878185272217, 0.0935935378074646, -0.08099361509084702, -0.22279097139835358, -0.22628165781497955, 0.26441261172294617, 0.06431325525045395, -0.002693908754736185, 0.4211892783641815, -0.09279852360486984, 0.32033616304397583, -0.26783955097198486, -0.4691830277442932, -0.01612222008407116, -0.21011073887348175, -0.010174295864999294, -0.15098139643669128, -0.14156915247440338, 0.014812549576163292, -0.13146264851093292, 0.001189334667287767, -0.13847775757312775, -0.13760176301002502, -0.022324105724692345, -0.20064759254455566, -0.19173182547092438, -0.0129954619333148, -0.6513705849647522, -0.5205707550048828, -0.06593970954418182, 0.09645451605319977, 0.009831611067056656, -0.020839840173721313, 0.3068895936012268, -0.15841251611709595, -0.09489455074071884, -0.14829042553901672, 0.08300326019525528, -0.07268763333559036, -0.31895148754119873, 0.14424656331539154, -0.14567877352237701, -0.19679632782936096, -0.07865191251039505, -0.041298314929008484, -0.10704385489225388, -0.07462435960769653, -0.5309436917304993, 0.14418543875217438, -0.2685202360153198, 0.1819952428340912, 0.12278052419424057, -0.11496919393539429, 0.4368276000022888, 0.29208463430404663, -0.1208609864115715, 0.06266713887453079, -0.17010681331157684, -0.11985272169113159, 0.05559138208627701, 0.1654338240623474, -0.27785524725914, 0.1061428040266037, 0.2385750412940979, 0.5572984218597412, 0.08777721226215363, -0.11163893342018127, 0.09039472788572311, 0.28512296080589294, 0.38349267840385437, 0.012523478828370571, -0.4623272716999054, 0.22606739401817322, -0.20445393025875092, 0.17793291807174683, 0.2970433831214905, 0.2645266652107239, -0.31428763270378113, -0.20049506425857544, 0.11375007033348083, -0.2948044538497925, -0.04594975337386131, 0.17836545407772064, -0.13880953192710876, 0.2812421917915344, 0.05739745497703552, -0.13144224882125854, -0.2332427203655243, -0.4535074234008789, -0.11186540871858597, 0.3031831681728363, 0.23487819731235504, -0.15522906184196472, -0.6461658477783203, 0.038299039006233215, -0.4787885844707489, 0.08939068019390106, 0.17471475899219513, -0.07813677936792374, -0.19472673535346985, 0.24040940403938293, -0.11462440341711044, 0.4444720149040222, 0.019366225227713585, -0.4512850344181061, -0.33387064933776855, 0.24098709225654602, 0.05854953080415726, -0.09430176019668579, 0.13334886729717255, -0.3841448426246643, -0.06559096276760101, 0.2734692394733429, -0.07312734425067902, 0.09677188098430634, -0.012211745604872704, 0.47715407609939575, -0.011773248203098774, -0.00017486608703620732, -0.3162129521369934, 0.3753695785999298, 0.12425518035888672, -0.17656150460243225, -0.21057741343975067, 0.07500486820936203, 0.036450598388910294, -0.2372233271598816, -0.01965153031051159, 0.1807061731815338, 0.015431798063218594, 0.32848259806632996, -0.2906271815299988, -0.2960878610610962, 0.2343975454568863, 0.21301808953285217, 0.07004477083683014, -0.041920457035303116, 0.2807828485965729, 0.5084699988365173, -0.20919252932071686, -0.5425743460655212, -0.016092218458652496, -0.11367754638195038, 0.5346783995628357, 0.21243777871131897, 0.2784399390220642, 0.23420318961143494, -0.14077097177505493, -0.18895988166332245, -0.14100255072116852, 0.21692533791065216, 0.11516496539115906, -0.09615454077720642, -0.48780253529548645, -0.31945309042930603, 0.3196600377559662, -0.07894591987133026, -0.10060293227434158, -0.024513019248843193, 0.23792165517807007, -0.1844978928565979, 0.13450923562049866, -0.18801423907279968, 0.8308120965957642, -0.06469367444515228, 0.12245237827301025, -0.346264511346817, 0.0034005925990641117, 0.5688193440437317, -0.25041821599006653, 0.18340171873569489, -0.0013322026934474707, -0.28329938650131226, -0.06863121688365936, -0.05490516871213913, 0.009968159720301628, 0.43513715267181396, 0.09732826054096222, 0.2558719515800476, 0.1897924691438675, 0.2015051543712616, 0.06248066946864128, 0.1596861183643341, 0.09276871383190155, -0.38140636682510376, 0.04253789037466049, 0.24349834024906158, 0.01950260065495968, 0.3009164333343506, -0.01749374158680439, 0.08834758400917053, -0.22393861413002014, 0.17973390221595764, -0.7378607988357544, -0.161116823554039, -0.11837165057659149, 0.09953460097312927, -0.011290688998997211, -0.3718675374984741, 0.45613381266593933, 0.351423978805542, 0.5682693123817444, 0.06491445004940033, -0.2017301321029663, 0.03095247782766819, -0.22116152942180634, -0.15868447721004486, 0.15189410746097565, -0.12319503724575043, 0.24172233045101166, 0.015314514748752117, -0.2222808599472046, 0.17783944308757782, 0.004278525710105896, -0.20872364938259125, -0.44988223910331726, -0.3305293619632721, 0.28000640869140625, -0.3033122420310974, 0.34711676836013794, 0.1718563437461853, 0.06266774237155914, -0.3116731643676758, 0.19674357771873474, 0.2942276895046234, 0.3189515769481659, 0.12055417150259018, 0.21120226383209229, -0.031554561108350754, -0.4240739345550537, 0.173775315284729, 0.24210824072360992, -0.28079941868782043, 0.412733256816864, 0.47190430760383606, -0.14879067242145538, -0.22141575813293457, 0.24559138715267181, 0.1872130185365677, -0.27057087421417236, -0.07419631630182266, -0.14883491396903992, -0.033128395676612854, 0.19288098812103271, 0.30411797761917114, 0.39118093252182007, -0.27948886156082153, 0.018892711028456688, -0.23338733613491058, -0.05658819526433945, 0.17639994621276855, -0.1373322457075119, 0.09515418857336044, -0.23735804855823517, 0.1373419463634491, 0.09380868077278137, 0.2622433304786682, -0.34980830550193787, 0.12992724776268005, 0.14913493394851685, 0.055143773555755615, 0.237494096159935, 0.025193700566887856, 0.12732374668121338, -0.25585511326789856, 0.03498042747378349, 0.010395310819149017, 0.03956185653805733, -0.24905504286289215, 0.07596547156572342, 0.13101381063461304, 0.014182008802890778, 0.022044455632567406, -0.05996040627360344, 0.11740639060735703, -0.1217670887708664, -0.02852524258196354, -0.10223753750324249, 0.1260848045349121, 0.05799030140042305, 0.5187696218490601, -0.18748606741428375, -0.03998885303735733, 0.13103318214416504, 0.06022148206830025, -0.278337299823761, 0.4006107747554779, 0.32846125960350037, 0.12020501494407654, 0.47602471709251404, 0.09492708742618561, -0.23072557151317596, 0.17639872431755066, 0.09277278929948807, -0.08783967792987823, 0.6063158512115479, -0.24096113443374634, 0.26536256074905396, 0.49113893508911133, 0.08210712671279907, -0.26042258739471436, -0.08422233909368515, 0.12153727561235428, -0.013414725661277771, 0.2712395191192627, -0.3505740165710449, -0.20425543189048767, 0.01939416117966175, 0.2798807919025421, 0.04517269879579544, 0.19557583332061768, 0.2910693883895874, 0.03671097010374069, 0.20929190516471863, 0.11251778155565262, 0.49548831582069397, -0.06874597817659378, 0.39326781034469604, -0.05353248491883278, 0.18630251288414001, -0.09167302399873734, 0.24097728729248047, 0.10883095860481262, -0.01607310026884079, 0.20826876163482666, 0.07181373983621597, 0.45691418647766113, -0.11393321305513382, 0.12056739628314972, 0.3959615230560303, -0.14700737595558167, 0.38600146770477295, 0.2909429371356964, -0.10109026730060577, 0.1179046779870987, -0.09078460931777954, 0.2581430971622467, -0.22042110562324524, 0.001751721603795886, -0.1554175764322281, -0.07738673686981201, -0.05040710046887398, 0.08522413671016693, 0.10882473737001419, -0.3221072852611542, 0.05876479670405388, -0.15758253633975983, -0.2597846984863281, -0.34418538212776184, 0.23959901928901672, -0.11941744387149811, -0.21062210202217102, -0.633916974067688, 0.19540198147296906, 0.13095307350158691, 0.39121848344802856, -0.13573339581489563, -0.07471689581871033, 0.09180611371994019, -0.2612675428390503, 0.2775425910949707, 0.5547749400138855, 0.14468538761138916, -0.15528760850429535, 0.005784744396805763, 0.04793724790215492, -0.2726130783557892, -0.2029712200164795, 0.1911284327507019, 0.28335124254226685, 0.3340108394622803, 0.10134392976760864, -0.061723727732896805, 0.18659479916095734, -0.043001946061849594, 0.08301784098148346, 0.08848170191049576, 0.004623160697519779, -0.3006366491317749, 0.16517944633960724, 0.07953193783760071, -0.2540404796600342, -0.1077442318201065, -0.04418645426630974, -0.21267104148864746, -0.20247766375541687, 0.5217413306236267, -0.12493690103292465, 0.011994360014796257, -0.12161073833703995, 0.1276407688856125, -0.15107886493206024, 0.17817941308021545, 0.3320960998535156, -0.20013785362243652, -0.26375988125801086, -0.14795227348804474, -0.03203877434134483, -0.18740373849868774, 0.14459267258644104, 0.19736334681510925, -0.20975783467292786, 0.032924678176641464, 0.2578447759151459, 0.24608802795410156, -0.34517741203308105, -0.09858366847038269, -0.0980999767780304, -0.023528171703219414, -0.5865007042884827, -0.1341862827539444, 0.15481814742088318, 0.23238308727741241, -0.012706995941698551, 0.19749882817268372, -0.09831163287162781, -0.0172121524810791, 0.02238301932811737, -0.3528051972389221, 0.15007705986499786, 0.23429282009601593, 0.11285237967967987, 0.14487722516059875, 0.1082502156496048, 0.4487569332122803, 0.031277064234018326, -0.12584608793258667, -0.0953538715839386, -0.4393797814846039, -0.03117706999182701, 0.3536722660064697, -0.03991667926311493, 0.3450666069984436, -0.3038221299648285, -0.24392105638980865, 0.3059534430503845, 0.056005701422691345, 0.0972970649600029, -0.12162881344556808, -0.5262704491615295, 0.017481926828622818, -0.015953343361616135, -0.0718269869685173, 0.21647724509239197, -0.023660361766815186, 0.03699678182601929, -0.12276329100131989, -0.039737049490213394, -0.35791638493537903, 0.055574022233486176, -0.09234315156936646, 0.1185169667005539, -0.24450939893722534, 0.06201251968741417, 0.3544398546218872, 0.26643386483192444, -0.6245583295822144, -0.00982796773314476, 0.5481743216514587, -0.16703489422798157, 0.03155070170760155, 0.4038212299346924, 0.11497600376605988, -0.051566459238529205, -0.09855327010154724, 0.39033496379852295, -0.26732438802719116, -0.23388758301734924, -0.1389218270778656, -0.15671440958976746 ]
https://github.com/huggingface/datasets/issues/353
[Dataset requests] New datasets for Text Classification
Thanks @jxmorris12 for pointing this out. In glue we only have SST-2 maybe we can add separately SST-1.
We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705
18
[Dataset requests] New datasets for Text Classification We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705 Thanks @jxmorris12 for pointing this out. In glue we only have SST-2 maybe we can add separately SST-1.
[ 0.08154147863388062, 0.023906130343675613, -0.12607859075069427, 0.25373750925064087, 0.20224224030971527, 0.19094493985176086, 0.23134472966194153, 0.12882521748542786, -0.019693544134497643, -0.0524686723947525, -0.2371741235256195, 0.028186410665512085, -0.0793607160449028, 0.22847145795822144, 0.11582587659358978, -0.33472299575805664, 0.03275183215737343, -0.027821727097034454, -0.21274319291114807, -0.18555884063243866, -0.11487922817468643, 0.33601173758506775, -0.04539909586310387, -0.23112650215625763, -0.4425394833087921, -0.057562679052352905, -0.2063397765159607, 0.06686904281377792, -0.2878909111022949, -0.45565834641456604, 0.04289306700229645, 0.12869876623153687, 0.2520897090435028, 0.24923928081989288, -0.00010378095612395555, -0.2161203771829605, 0.05360034853219986, -0.09130872040987015, -0.07427661865949631, -0.0727214589715004, -0.14871996641159058, -0.48499882221221924, -0.02413773722946644, -0.10061655938625336, -0.22367140650749207, 0.20968423783779144, 0.06093425676226616, -0.2331153005361557, 0.03754839673638344, 0.2961045205593109, 0.24345344305038452, -0.012343920767307281, -0.002055916003882885, -0.15907403826713562, 0.4260745942592621, 0.3211231529712677, -0.3257281184196472, 0.03708360716700554, 0.6237733364105225, 0.06637033820152283, -0.0005354513414204121, 0.361764132976532, -0.24382854998111725, -0.0247032567858696, 0.17561590671539307, 0.20015597343444824, -0.21939854323863983, -0.4464477002620697, 0.07153566926717758, 0.3973943293094635, 0.6543515920639038, -0.2877070903778076, -0.3910396695137024, -0.31278225779533386, 0.13662229478359222, -0.07917247712612152, -0.09944847971200943, 0.19545799493789673, 0.03984002768993378, 0.22651150822639465, -0.04924695938825607, -0.24572093784809113, -0.14704695343971252, 0.2701331675052643, 0.3945719599723816, 0.056846801191568375, -0.03707730770111084, -0.17750929296016693, -0.00036085673491470516, 0.17988508939743042, 0.1766587793827057, -0.283607542514801, 0.1341857612133026, -0.017795966938138008, -0.26633989810943604, -0.1773579716682434, -0.054122310131788254, -0.019315816462039948, -0.08409703522920609, 0.08448043465614319, -0.24513070285320282, 0.10303894430398941, -0.05861956253647804, -0.04881549999117851, -0.017619643360376358, -0.038205672055482864, 0.25644582509994507, 0.33079323172569275, 0.05107831954956055, -0.3528576195240021, 0.12010277062654495, 0.005009606946259737, -0.1631542146205902, 0.135076105594635, -0.06594894826412201, 0.041873760521411896, -0.21241147816181183, -0.1809251606464386, 0.03818018361926079, -0.14143231511116028, -0.0032428663689643145, -0.05558660998940468, -0.25381678342819214, -0.0165537279099226, 0.0661197304725647, 0.11619048565626144, -0.1412743479013443, 0.22304220497608185, -0.019348928704857826, -0.42360395193099976, -0.1252014935016632, 0.09798683971166611, -0.16026932001113892, 0.15288694202899933, 0.5480713248252869, -0.22998249530792236, 0.11552510410547256, -0.2185683399438858, -0.2966982126235962, 0.15941210091114044, -0.15561898052692413, -0.061074260622262955, 0.08526818454265594, 0.2059718519449234, -0.10452909022569656, 0.12818390130996704, 0.10779696702957153, 0.02127751149237156, -0.2046409249305725, 0.1557885855436325, -0.03856290504336357, -0.3110818862915039, -0.37267279624938965, 0.2138151079416275, -0.1005915179848671, -0.48642298579216003, -0.18741527199745178, 0.572272777557373, -0.02368863858282566, -0.031017446890473366, 0.22050729393959045, -0.010324819013476372, -0.15188148617744446, -0.1902371644973755, 0.011647057719528675, 0.43081316351890564, -0.4707911014556885, -0.2307441532611847, -0.3453294038772583, 0.02351607196033001, 0.03368641063570976, 0.24100512266159058, -0.09222742915153503, 0.024578282609581947, 0.014025362208485603, 0.16023099422454834, 0.2162284255027771, -0.06870918720960617, -0.21464353799819946, -0.07534894347190857, 0.08462084084749222, -0.19662609696388245, 0.1634407490491867, 0.3142962157726288, 0.2429364025592804, 0.013259178027510643, -0.15561982989311218, 0.17212362587451935, -0.22835034132003784, -0.0336172878742218, -0.19664102792739868, -0.13640645146369934, 0.1465034931898117, 0.3985646069049835, 0.4805237650871277, -0.1305694729089737, 0.06893959641456604, -0.3062625229358673, -0.03554069995880127, 0.10581495612859726, 0.2744996249675751, 0.16417363286018372, 0.20534375309944153, 0.2714713215827942, 0.10241226106882095, -0.41876232624053955, -0.21456557512283325, 0.05501182749867439, 0.3147013783454895, 0.41393569111824036, 0.07265738397836685, -0.12198837846517563, -0.13172732293605804, -0.19137871265411377, 0.08340541273355484, -0.047608375549316406, 0.13724862039089203, -0.17881295084953308, 0.17032749950885773, 0.10936340689659119, -0.2658051550388336, 0.29946795105934143, -0.21527279913425446, 0.42646217346191406, 0.21257764101028442, 0.37596580386161804, -0.09185677766799927, -0.113491952419281, 0.17906451225280762, 0.34668055176734924, -0.06834938377141953, -0.056163810193538666, 0.031350068747997284, 0.1406036764383316, -0.2134624570608139, -0.058496005833148956, 0.26697400212287903, 0.3660670816898346, 0.32618430256843567, -0.5137344598770142, 0.17031194269657135, -0.07948868721723557, 0.07165378332138062, -0.1760183721780777, 0.044997721910476685, 0.1891438066959381, 0.03671248257160187, 0.14468389749526978, 0.005855639930814505, 0.1148122176527977, -0.10649383813142776, -0.0820760652422905, -0.00270827766507864, 0.11027120798826218, 0.30427974462509155, -0.23446428775787354, 0.3341110348701477, 0.00956039223819971, -0.0775272399187088, 0.2798481285572052, 0.18188884854316711, -0.019200988113880157, 0.25188565254211426, 0.21472667157649994, -0.5472896099090576, -0.005712996236979961, 0.03215210139751434, 0.2584812343120575, 0.3475610017776489, 0.5090729594230652, -0.049045857042074203, -0.14782463014125824, 0.08174551278352737, -0.31041863560676575, 0.07611767947673798, 0.3464794158935547, -0.031837139278650284, -0.0022069273982197046, 0.2686343491077423, 0.1926966905593872, -0.24917319416999817, 0.026781605556607246, 0.08851088583469391, -0.04707610607147217, -0.021007560193538666, -0.16031335294246674, -0.04935069754719734, -0.4877558946609497, 0.012578804045915604, 0.06612129509449005, -0.1052720695734024, -0.24379701912403107, 0.28722190856933594, -0.31433364748954773, 0.028384439647197723, 0.09659630805253983, -0.165749654173851, 0.4271804094314575, -0.2522673010826111, 0.07500848174095154, -0.055790506303310394, -0.17064127326011658, -0.2362038642168045, 0.23602929711341858, 0.03352087736129761, 0.08945130556821823, 0.4961583614349365, -0.09150724858045578, 0.30373615026474, -0.27751678228378296, -0.5079553127288818, 0.06099623441696167, -0.23289360105991364, -0.004152628593146801, -0.017150409519672394, -0.15949569642543793, 0.13566595315933228, -0.214061439037323, 0.026610489934682846, -0.22833630442619324, -0.08277586102485657, -0.004148771055042744, -0.24526020884513855, -0.2524435818195343, -0.13030053675174713, -0.6571211814880371, -0.546848475933075, -0.10746948421001434, 0.16121049225330353, -0.08746427297592163, -0.0005490299081429839, 0.13167184591293335, -0.18740612268447876, 0.023770922794938087, -0.28291282057762146, 0.06466112285852432, -0.06921996921300888, -0.2697480022907257, 0.1288064867258072, -0.13039685785770416, -0.26661217212677, -0.08899438381195068, -0.07919637858867645, -0.16333739459514618, -0.19462910294532776, -0.4564134478569031, -0.03270897641777992, -0.3555341362953186, 0.14560967683792114, 0.13291361927986145, 0.024440011009573936, 0.49186867475509644, 0.24386876821517944, -0.1384386420249939, 0.029155904427170753, -0.2249147593975067, 0.07850641757249832, 0.08406132459640503, 0.20124858617782593, -0.27554991841316223, 0.15827630460262299, 0.2967650294303894, 0.4924671947956085, 0.04008105397224426, -0.1015750914812088, 0.127457857131958, 0.18243473768234253, 0.37751495838165283, -0.014698280952870846, -0.44980886578559875, 0.2699257731437683, -0.21190781891345978, 0.27260494232177734, 0.30296647548675537, 0.3241710066795349, -0.25686314702033997, -0.20551642775535583, 0.13341589272022247, -0.2536548376083374, -0.16150613129138947, 0.15775489807128906, -0.06274525076150894, 0.23493734002113342, 0.018464433029294014, -0.2019229233264923, -0.22355245053768158, -0.44088077545166016, -0.0064145238138735294, 0.27075833082199097, 0.20933985710144043, -0.046463578939437866, -0.6493405699729919, 0.04345392808318138, -0.4677714407444, 0.13048198819160461, 0.22082805633544922, -0.10849769413471222, -0.19144518673419952, 0.13726291060447693, -0.09094581753015518, 0.463247686624527, 0.10118976980447769, -0.5415430068969727, -0.31698015332221985, 0.27831780910491943, 0.07710729539394379, -0.20585623383522034, 0.06434977054595947, -0.43111664056777954, -0.13187576830387115, 0.4279158413410187, 0.011096134781837463, -0.011673655360937119, -0.06308305263519287, 0.5058274269104004, -0.04207935184240341, 0.04555004462599754, -0.31594279408454895, 0.3045085072517395, 0.1805034577846527, -0.22316960990428925, -0.1821766197681427, 0.1421312540769577, 0.03411322459578514, -0.09929707646369934, -0.015781426802277565, 0.22137199342250824, -0.14034977555274963, 0.30715325474739075, -0.30637481808662415, -0.21611279249191284, 0.15172867476940155, 0.2439236342906952, 0.1034972220659256, 0.029699409380555153, 0.06175906956195831, 0.5007280111312866, -0.28557246923446655, -0.3766002357006073, 0.0341983288526535, -0.16094405949115753, 0.5179301500320435, 0.19116459786891937, 0.2609317898750305, 0.26779595017433167, -0.2097599059343338, -0.1387268751859665, -0.0905204489827156, 0.2293333262205124, 0.09155164659023285, 0.0061895716935396194, -0.40286630392074585, -0.17469145357608795, 0.3463870584964752, -0.0790267288684845, -0.06709752976894379, -0.08855244517326355, 0.3795871436595917, -0.21532250940799713, 0.1644376665353775, -0.2758261561393738, 0.9699501991271973, -0.12102952599525452, 0.07566278427839279, -0.38779929280281067, -0.11190909147262573, 0.5903334617614746, -0.20484097301959991, 0.06017136946320534, -0.03359479457139969, -0.34516552090644836, -0.025509797036647797, -0.0025067965034395456, 0.024228917434811592, 0.3962251543998718, 0.029064685106277466, 0.3269214630126953, 0.2837751805782318, 0.27049678564071655, 0.08831384032964706, 0.24140167236328125, 0.10216126590967178, -0.381148099899292, 0.1328648030757904, 0.23284205794334412, 0.0009429827914573252, 0.3418918251991272, 0.029666505753993988, 0.0648418515920639, -0.12406866252422333, 0.10123269259929657, -0.7577843070030212, -0.21394234895706177, -0.3507162034511566, 0.04362083598971367, 0.0502852238714695, -0.26784390211105347, 0.4461236596107483, 0.20375975966453552, 0.5095025300979614, 0.16255687177181244, -0.24271607398986816, -0.0011156542459502816, -0.08168748766183853, -0.20740008354187012, 0.20162779092788696, -0.05139930918812752, 0.2647669017314911, 0.004798519425094128, -0.18634052574634552, 0.175113707780838, 0.03880509361624718, -0.3161415159702301, -0.44128233194351196, -0.3561667799949646, 0.23355264961719513, -0.31726768612861633, 0.2348836362361908, 0.2059263437986374, 0.016687709838151932, -0.3014272451400757, 0.19509711861610413, 0.2835121750831604, 0.2865530550479889, 0.13623031973838806, 0.09219576418399811, -0.057964909821748734, -0.3824462890625, 0.24521267414093018, 0.08220618963241577, -0.1998981386423111, 0.282664030790329, 0.4651044011116028, -0.1968359649181366, -0.2266627550125122, 0.10991162806749344, 0.1775449514389038, -0.29841822385787964, -0.03828519955277443, -0.14561063051223755, -0.20141422748565674, 0.1186608150601387, 0.27204522490501404, 0.47479814291000366, -0.20907209813594818, -0.0033028977923095226, -0.12604936957359314, -0.04835295304656029, 0.24552342295646667, -0.06997306644916534, 0.10248278081417084, -0.2855111360549927, 0.21133577823638916, 0.11378712952136993, 0.3128374218940735, -0.36680537462234497, 0.18422511219978333, 0.1234302893280983, 0.057656753808259964, 0.4841400980949402, -0.04313063621520996, 0.1186818927526474, -0.25194114446640015, 0.031778961420059204, 0.04431634768843651, 0.0200938880443573, -0.25758421421051025, 0.029140181839466095, 0.11941114068031311, -0.0032425937242805958, 0.05312114953994751, 0.07149253040552139, 0.031891629099845886, -0.10858331620693207, -0.01814902015030384, -0.00953889824450016, 0.07983461022377014, -0.029469793662428856, 0.4629042446613312, -0.16986283659934998, -0.1433878093957901, 0.12547795474529266, 0.1680784672498703, -0.39474207162857056, 0.34521687030792236, 0.2613273859024048, 0.0968928337097168, 0.42650502920150757, 0.08204023540019989, -0.13907361030578613, 0.12009629607200623, 0.12774984538555145, -0.08184894174337387, 0.4949887990951538, -0.10909515619277954, 0.16059060394763947, 0.42234712839126587, 0.13409163057804108, -0.38088634610176086, -0.10471867769956589, 0.14542680978775024, 0.005388183984905481, 0.26559922099113464, -0.3391377627849579, -0.12234179675579071, -0.04751422628760338, 0.1903773844242096, 0.15693430602550507, 0.18199527263641357, 0.30013489723205566, 0.15198488533496857, 0.22741714119911194, 0.11670281738042831, 0.5631715655326843, -0.03465193882584572, 0.2836724519729614, -0.08697663247585297, 0.20644588768482208, -0.13563497364521027, 0.220738023519516, -0.06610692292451859, -0.028375567868351936, 0.09886450320482254, 0.06608982384204865, 0.4115760922431946, 0.029609311372041702, 0.1415599286556244, 0.46030375361442566, -0.03877301886677742, 0.3335838317871094, 0.29537510871887207, -0.06429997086524963, 0.11790081858634949, -0.0899096354842186, 0.4574874937534332, -0.2523849904537201, 0.006330627016723156, -0.0677308440208435, 0.05250915512442589, -0.04695042967796326, -0.0037052780389785767, 0.18586675822734833, -0.21913884580135345, -0.07526353746652603, -0.16282925009727478, -0.29394564032554626, -0.3484768867492676, 0.4031427800655365, -0.01795295998454094, -0.14549827575683594, -0.5478560328483582, 0.021494021639227867, 0.09409463405609131, 0.37757307291030884, -0.1377047300338745, 0.03901758790016174, 0.006506253499537706, -0.22972646355628967, 0.27651122212409973, 0.6441017389297485, 0.1741458624601364, -0.2020905464887619, -0.055771563202142715, -0.0002706667874008417, -0.20831741392612457, -0.19255851209163666, 0.18115438520908356, 0.26521772146224976, 0.2910471260547638, 0.05291532352566719, 0.00597212091088295, 0.16646209359169006, -0.09090413898229599, -0.021536478772759438, 0.0012135450961068273, -0.0027708769775927067, -0.3021707534790039, 0.20895138382911682, 0.0820140540599823, -0.2682296335697174, -0.17880579829216003, 0.0007875043083913624, -0.3088904619216919, -0.18564637005329132, 0.46467921137809753, -0.19916047155857086, 0.0024086018092930317, -0.17074449360370636, 0.12474307417869568, -0.11565016210079193, 0.2756524682044983, 0.3615756630897522, -0.12050119042396545, -0.20040951669216156, -0.17133505642414093, -0.04572335630655289, -0.2427976280450821, 0.13644002377986908, 0.12315644323825836, -0.2247137874364853, 0.04333990812301636, 0.2629942297935486, 0.20888341963291168, -0.267911434173584, 0.06098111346364021, -0.1202191710472107, -0.10374612361192703, -0.5572159290313721, -0.021399525925517082, 0.2087281197309494, 0.19165852665901184, 0.08204148709774017, 0.0517551451921463, -0.035342905670404434, 0.004903973545879126, 0.022393204271793365, -0.2996787130832672, 0.19438302516937256, 0.27672404050827026, 0.023052729666233063, 0.20548829436302185, 0.033466316759586334, 0.4271271526813507, -0.0015180626651272178, -0.07686018198728561, -0.08707685023546219, -0.43354150652885437, -0.1251792013645172, 0.2828863561153412, 0.03042357973754406, 0.343972772359848, -0.32935842871665955, -0.26670464873313904, 0.2854599952697754, 0.02757876180112362, 0.08401636779308319, 0.08231553435325623, -0.5688410997390747, -0.01224074698984623, 0.02584196999669075, -0.06362409144639969, 0.16424210369586945, -0.014525910839438438, 0.004057470243424177, -0.1538855880498886, -0.10458501428365707, -0.5019508600234985, 0.04920392856001854, -0.09852122515439987, 0.13410475850105286, -0.23969890177249908, 0.17525573074817657, 0.541726291179657, 0.25224313139915466, -0.6720552444458008, -0.11780671030282974, 0.4783795177936554, -0.044126465916633606, -0.06494686752557755, 0.528740406036377, 0.20612385869026184, -0.011946486309170723, -0.09302632510662079, 0.26414918899536133, -0.1595568060874939, -0.21624749898910522, -0.16248974204063416, -0.26239871978759766 ]
https://github.com/huggingface/datasets/issues/353
[Dataset requests] New datasets for Text Classification
This is the homepage for the Amazon dataset: https://www.kaggle.com/datafiniti/consumer-reviews-of-amazon-products Is there an easy way to download kaggle datasets programmatically? If so, I can add this one!
We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705
26
[Dataset requests] New datasets for Text Classification We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705 This is the homepage for the Amazon dataset: https://www.kaggle.com/datafiniti/consumer-reviews-of-amazon-products Is there an easy way to download kaggle datasets programmatically? If so, I can add this one!
[ -0.1458343118429184, 0.06585218012332916, -0.14814120531082153, 0.1902458518743515, 0.34518852829933167, 0.353824645280838, 0.1370035856962204, 0.07377912104129791, -0.12206199020147324, -0.03943565860390663, -0.25020185112953186, 0.25872802734375, -0.16310745477676392, 0.4211377203464508, 0.08991946280002594, -0.16479800641536713, -0.02279486693441868, -0.08865167945623398, 0.1359843611717224, -0.1430177092552185, -0.12499905377626419, 0.10280762612819672, -0.09122850745916367, -0.22702418267726898, -0.17923928797245026, -0.3646228313446045, -0.16028043627738953, -0.10303584486246109, -0.37909919023513794, -0.3690579831600189, 0.3359173834323883, 0.17740105092525482, 0.23734396696090698, 0.15003009140491486, -0.00010781933087855577, -0.324859619140625, 0.00036084154271520674, -0.11979606747627258, -0.30880671739578247, -0.12956908345222473, -0.10393369197845459, -0.5073529481887817, -0.08908041566610336, -0.25987038016319275, 0.09105537831783295, -0.03546483442187309, 0.049594368785619736, -0.2475443333387375, -0.06020104140043259, 0.2949475049972534, 0.20458228886127472, 0.01853017881512642, 0.07018633931875229, -0.1878490000963211, 0.33408790826797485, 0.4829714298248291, -0.2553498148918152, 0.012402612715959549, 0.4633096754550934, 0.20706111192703247, 0.1856568455696106, 0.20272935926914215, -0.30644914507865906, -0.10651649534702301, 0.2755375802516937, 0.11258457601070404, -0.3106137812137604, -0.4856228232383728, 0.17855961620807648, 0.4579693377017975, 0.9703212976455688, -0.4533032476902008, -0.5060063004493713, -0.34974777698516846, 0.23750407993793488, -0.15253986418247223, -0.31294918060302734, 0.555671751499176, -0.07849130034446716, 0.0007064054370857775, -0.15851151943206787, -0.4362525939941406, -0.15333454310894012, 0.16653811931610107, 0.23627394437789917, 0.32873988151550293, 0.07040346413850784, -0.24365340173244476, 0.0811750739812851, -0.016267091035842896, 0.5947264432907104, -0.39345577359199524, 0.13033288717269897, 0.03367962688207626, -0.21747943758964539, -0.20101971924304962, -0.10593560338020325, -0.04210951551795006, 0.06221473217010498, 0.08639886230230331, 0.0007816676516085863, 0.19404318928718567, -0.13984666764736176, -0.16955168545246124, 0.012206877581775188, 0.020101219415664673, 0.27671629190444946, 0.3368698060512543, 0.05309896916151047, -0.047393549233675, 0.2718043625354767, 0.022645121440291405, -0.3008708357810974, 0.17797967791557312, -0.09279517084360123, 0.009504325687885284, -0.21581079065799713, -0.16671019792556763, -0.1336221992969513, -0.22646169364452362, -0.14380304515361786, -0.09317329525947571, -0.28922849893569946, 0.12149745970964432, -0.11947362124919891, 0.09215391427278519, -0.08709782361984253, 0.2747786343097687, -0.10701484233140945, -0.3732471168041229, -0.06368733197450638, 0.10159716010093689, 0.21234318614006042, 0.012510246597230434, 0.3886571228504181, -0.30781131982803345, 0.29038435220718384, -0.2664627730846405, -0.0588197261095047, 0.06810693442821503, 0.034564532339572906, 0.05591744929552078, -0.3313589096069336, 0.12620322406291962, 0.08969112485647202, 0.019818594679236412, -0.06115393713116646, 0.064595066010952, -0.23711450397968292, 0.22979006171226501, -0.007401897106319666, -0.24945557117462158, -0.1083732545375824, 0.18983805179595947, -0.04660473018884659, -0.6931470036506653, -0.344630628824234, 0.43256619572639465, -0.021586092188954353, -0.09978781640529633, 0.11431174725294113, 0.015121824108064175, -0.06878472119569778, -0.21835078299045563, 0.02210095524787903, 0.4878206253051758, -0.4603768587112427, -0.2505890429019928, -0.24308261275291443, 0.0543336346745491, 0.09918171167373657, 0.007049476262181997, -0.09710623323917389, 0.33540788292884827, 0.03672933205962181, 0.028971310704946518, 0.4266478419303894, -0.15613949298858643, -0.23349224030971527, 0.004749691113829613, -0.027487844228744507, -0.15729165077209473, 0.15424412488937378, 0.4053146541118622, 0.05407596752047539, 0.0954793393611908, -0.18918061256408691, 0.21540728211402893, -0.14702804386615753, -0.06363670527935028, -0.031104138121008873, -0.21043919026851654, 0.1887797862291336, 0.4533609449863434, 0.5115644335746765, -0.14179052412509918, 0.11268056184053421, -0.07896984368562698, 0.20472733676433563, -0.026403969153761864, 0.11274699121713638, 0.1084839254617691, 0.14764028787612915, 0.24819013476371765, 0.05194702744483948, -0.18449667096138, -0.3535885810852051, 0.18822921812534332, 0.11953181028366089, 0.17985586822032928, -0.19763879477977753, -0.29296252131462097, -0.17325273156166077, -0.01842034049332142, -0.059859417378902435, 0.03437502309679985, 0.06650816649198532, -0.1729310303926468, 0.24593086540699005, 0.2049802839756012, -0.06968023627996445, 0.2434428483247757, -0.2629672586917877, 0.3557039499282837, -0.019128700718283653, 0.17653806507587433, 0.03242339566349983, 0.16759555041790009, 0.15690168738365173, 0.18113327026367188, 0.03046206198632717, 0.019695991650223732, 0.06717082113027573, 0.07948445528745651, -0.02882363274693489, 0.20574519038200378, 0.39823469519615173, 0.2409582883119583, 0.32699495553970337, -0.37899249792099, 0.30361729860305786, 0.0010747982887551188, 0.15227918326854706, -0.13568732142448425, -0.2688920795917511, 0.35722145438194275, 0.07511889934539795, 0.08569524437189102, 0.0338314026594162, 0.17378441989421844, 0.08152244985103607, 0.1841050237417221, 0.20522218942642212, 0.13059896230697632, 0.2918299734592438, -0.20308402180671692, 0.31166893243789673, -0.2133226990699768, -0.2172529399394989, 0.3556876480579376, 0.1185147613286972, -0.19996362924575806, 0.19661138951778412, 0.10073155164718628, -0.3290807902812958, 0.051009200513362885, 0.16070930659770966, 0.17276634275913239, 0.14201891422271729, 0.4380432367324829, -0.0073876166716217995, -0.07231252640485764, 0.1096055656671524, -0.272327721118927, 0.07231073081493378, 0.39574432373046875, 0.11489186435937881, 0.023093990981578827, 0.21493496000766754, 0.10845878720283508, -0.21099801361560822, -0.07604283094406128, 0.1719289869070053, -0.009491898119449615, -0.005125219933688641, -0.10179070383310318, -0.09983007609844208, -0.32856544852256775, -0.11002946645021439, 0.15219742059707642, 0.033178817480802536, -0.35798317193984985, 0.11276628822088242, -0.18802157044410706, 0.02099568583071232, -0.07254377752542496, -0.37036705017089844, 0.5109128952026367, -0.267670601606369, -0.1653885394334793, -0.03689746931195259, -0.309288889169693, -0.18580928444862366, 0.19643718004226685, 0.24920175969600677, -0.006502626463770866, 0.4684091806411743, -0.12052444368600845, 0.40639209747314453, -0.40034741163253784, -0.4549330472946167, -0.07113198190927505, -0.0402044802904129, -0.14958836138248444, -0.09477093070745468, 0.00399039639160037, -0.053905561566352844, -0.18788428604602814, -0.1421690136194229, -0.0577222965657711, -0.19583849608898163, -0.07046306878328323, -0.055024873465299606, -0.3058834671974182, 0.01884046383202076, -0.7203152179718018, -0.5714187026023865, -0.08598192781209946, 0.12437421083450317, 0.07098019123077393, 0.021684646606445312, 0.019949909299612045, -0.0857783704996109, 0.022212190553545952, -0.12089516967535019, 0.17384441196918488, 0.11740163713693619, -0.029530037194490433, 0.25994396209716797, -0.06516068428754807, -0.33585792779922485, 0.056151121854782104, -0.058956973254680634, -0.15283213555812836, 0.14338286221027374, -0.6533873081207275, 0.27879250049591064, -0.15938234329223633, 0.25070831179618835, 0.09158183634281158, 0.009419918991625309, 0.3900665044784546, 0.32597339153289795, -0.0046838074922561646, 0.048149026930332184, -0.2004244327545166, -0.06644053757190704, 0.018632523715496063, 0.1881433129310608, -0.2580965757369995, 0.147908017039299, 0.23308391869068146, 0.764421284198761, 0.10046260803937912, -0.03960074484348297, 0.004107333719730377, 0.10006538033485413, 0.28806647658348083, 0.17413440346717834, -0.3623063266277313, 0.07650265842676163, -0.2538990378379822, 0.19478757679462433, 0.24857860803604126, 0.232937291264534, -0.41748344898223877, -0.37614837288856506, 0.08529593795537949, -0.3985083997249603, -0.05931835249066353, 0.020070403814315796, -0.157181054353714, 0.2500106394290924, 0.15690116584300995, 0.1980450302362442, -0.3067075312137604, -0.3829735517501831, -0.007611552253365517, 0.0950441062450409, 0.040323615074157715, -0.08556899428367615, -0.6600492596626282, 0.08521158248186111, -0.4546728730201721, 0.3500306010246277, 0.2858998775482178, -0.013932696543633938, 0.022856926545500755, 0.09687434136867523, -0.012957273982465267, 0.10422034561634064, 0.33772599697113037, -0.4176976680755615, -0.14634814858436584, 0.10854808241128922, 0.1544068455696106, -0.28998860716819763, 0.016651203855872154, -0.42181915044784546, 0.012044856324791908, 0.17635419964790344, -0.10672305524349213, -0.13697701692581177, 0.12083032727241516, 0.11744262278079987, 0.09534277766942978, -0.1275433897972107, -0.13100728392601013, 0.26098158955574036, -0.1921810805797577, -0.24750296771526337, -0.10671742260456085, -0.19154207408428192, 0.13510936498641968, -0.22064492106437683, 0.11198664456605911, 0.08711384236812592, 0.10212823748588562, 0.2077425718307495, -0.3882972002029419, -0.1546434909105301, 0.33887097239494324, 0.21463188529014587, -0.02035379968583584, -0.09088140726089478, 0.2794801890850067, 0.7352368831634521, -0.24953734874725342, -0.6877534985542297, -0.2033214420080185, -0.059338223189115524, 0.37132975459098816, 0.28666993975639343, 0.31063780188560486, 0.17817437648773193, 0.04526752978563309, -0.18206049501895905, -0.0866229385137558, 0.2527277171611786, 0.1468857377767563, -0.206883504986763, -0.4491499364376068, -0.451135516166687, 0.4768799841403961, -0.04683002084493637, -0.006602066103368998, -0.030826155096292496, 0.0884353294968605, -0.1857965737581253, 0.07967311888933182, 0.033479150384664536, 0.8832521438598633, -0.09655166417360306, 0.12069450318813324, -0.2108296900987625, -0.2397923469543457, 0.6575297117233276, -0.36936435103416443, 0.14516900479793549, -0.03196568042039871, -0.10785935819149017, -0.15839846432209015, -0.00576523644849658, -0.06604696065187454, 0.27649712562561035, 0.09864183515310287, 0.2545517385005951, 0.17504477500915527, 0.2646399140357971, 0.1889282613992691, 0.2676718831062317, -0.21337708830833435, -0.32118865847587585, -0.021779701113700867, 0.20729683339595795, -0.045046545565128326, 0.34666913747787476, -0.06016625836491585, -0.04049764201045036, -0.21852056682109833, 0.0740627571940422, -0.6114404797554016, 0.05032295361161232, -0.11135593801736832, 0.25927814841270447, -0.1681751161813736, -0.31321993470191956, 0.3115793466567993, 0.3959938883781433, 0.474000483751297, 0.15455542504787445, -0.27811455726623535, 0.03387904912233353, -0.16778841614723206, -0.284595251083374, 0.26853907108306885, -0.11717686802148819, 0.20700369775295258, -0.09162929654121399, -0.1466677188873291, 0.17735418677330017, 0.010286026634275913, -0.09363183379173279, -0.27077922224998474, -0.2812492549419403, 0.027840929105877876, -0.2544700503349304, 0.07185730338096619, 0.21992744505405426, 0.060744497925043106, -0.24423010647296906, 0.11580134183168411, 0.27204373478889465, 0.3126237392425537, 0.14927323162555695, 0.1311454176902771, 0.04266279563307762, -0.40362900495529175, 0.33650729060173035, 0.05379253625869751, -0.2013222873210907, 0.3659555912017822, 0.3573598265647888, -0.22911448776721954, -0.1734788417816162, 0.25916212797164917, -0.015189845114946365, -0.2552025616168976, -0.06248408928513527, -0.15107347071170807, 0.12754513323307037, -0.0006345243891701102, 0.2954425811767578, 0.32672131061553955, -0.24497286975383759, 0.0683487057685852, -0.26706141233444214, -0.045687973499298096, 0.35288581252098083, -0.026361113414168358, 0.16159240901470184, -0.05684864893555641, -0.00705822603777051, 0.06373868882656097, 0.16840098798274994, -0.29512661695480347, 0.20144908130168915, 0.045708607882261276, -0.12951427698135376, 0.1684553027153015, 0.19049085676670074, -0.07367047667503357, -0.16287793219089508, -0.03090609796345234, 0.013771201483905315, -0.14151723682880402, -0.15435990691184998, 0.08647613227367401, 0.1561499536037445, 0.0004628846363630146, 0.06159907951951027, -0.005431925877928734, -0.199183389544487, -0.19874395430088043, -0.028009409084916115, -0.04011077806353569, 0.07993211597204208, -0.03888119012117386, 0.2800907492637634, -0.05185535177588463, 0.22268512845039368, -0.19917935132980347, 0.1217428520321846, -0.21363221108913422, 0.1685868799686432, 0.38600918650627136, 0.1973823457956314, 0.4179416000843048, 0.1422138661146164, 0.0235008392482996, 0.09754332900047302, 0.2849414646625519, -0.23507913947105408, 0.6867840886116028, -0.28893542289733887, 0.2592451870441437, 0.35345229506492615, 0.08124057948589325, 0.0852915421128273, -0.1868264228105545, 0.22816362977027893, 0.23422642052173615, 0.1856684684753418, -0.5083349943161011, -0.35141438245773315, -0.011729615740478039, 0.2154446542263031, -0.0015333786141127348, 0.1440446525812149, 0.3221590518951416, 0.05147833377122879, 0.18909873068332672, 0.18795853853225708, 0.45474883913993835, -0.0768004059791565, 0.4784490466117859, 0.20178662240505219, 0.13571922481060028, -0.05429711565375328, 0.1197228953242302, 0.28496038913726807, -0.019388677552342415, 0.21181915700435638, -0.06868499517440796, 0.5396174788475037, -0.16896173357963562, 0.11560893058776855, 0.3625100553035736, -0.4359860122203827, 0.3034898638725281, 0.2183661013841629, -0.0631244033575058, 0.17796139419078827, 0.01346462033689022, 0.3344656229019165, -0.2260017693042755, 0.07423946261405945, -0.2706797420978546, 0.023094480857253075, -0.07547867298126221, 0.11158985644578934, -0.025820424780249596, -0.4800797998905182, 0.14155185222625732, 0.05421599745750427, -0.07107322663068771, -0.6137158274650574, 0.009859101846814156, -0.17220261693000793, -0.19566448032855988, -0.4460476040840149, 0.1265336126089096, 0.04758351668715477, 0.45127204060554504, -0.24565935134887695, -0.21586167812347412, 0.22883418202400208, -0.2907605767250061, 0.031814295798540115, 0.459109902381897, 0.21727024018764496, -0.05188125744462013, -0.15365932881832123, 0.04962514340877533, -0.08339857310056686, -0.15022045373916626, 0.259685754776001, 0.3501446545124054, 0.3649342954158783, -0.03096427395939827, 0.22397556900978088, 0.10642527788877487, -0.07729007303714752, 0.22089430689811707, 0.20147910714149475, 0.06583981215953827, -0.2684997022151947, 0.1456182897090912, -0.009703721851110458, -0.21281956136226654, -0.13921956717967987, 0.03540562093257904, -0.2620568573474884, -0.11739400774240494, 0.3134702742099762, -0.04829150810837746, 0.035348743200302124, -0.11183470487594604, 0.10489492118358612, -0.043329156935214996, 0.3734111189842224, 0.3794983923435211, 0.04987426474690437, -0.19257701933383942, -0.014401614665985107, -0.148394376039505, -0.2592766284942627, 0.10287224501371384, 0.050890203565359116, -0.13021545112133026, -0.001671236241236329, 0.2697872519493103, 0.24774040281772614, -0.35339513421058655, 0.024153640493750572, 0.23776762187480927, 0.13355956971645355, -0.5316682457923889, -0.15698735415935516, 0.3332619369029999, 0.08517606556415558, 0.023420311510562897, -0.044523246586322784, 0.022355474531650543, -0.23522168397903442, -0.0853211060166359, -0.2908903956413269, 0.12213056534528732, 0.16110946238040924, -0.053204864263534546, 0.3564680814743042, -0.21694143116474152, 0.540976881980896, 0.01842268370091915, -0.09581414610147476, -0.14429587125778198, -0.22100327908992767, 0.011172176338732243, 0.23586639761924744, 0.15490368008613586, 0.2718772888183594, -0.32326093316078186, -0.11434610188007355, 0.3595905005931854, -0.022201580926775932, 0.14693108201026917, 0.06036579981446266, -0.4647151231765747, -0.1330142766237259, -0.25707128643989563, -0.13777846097946167, 0.25746938586235046, 0.00370591483078897, -0.04551100730895996, -0.21483007073402405, -0.11554970592260361, -0.38640686869621277, 0.19260592758655548, 0.0864061787724495, 0.12661847472190857, -0.28538593649864197, -0.009645012207329273, 0.35916298627853394, 0.25500303506851196, -0.47400161623954773, 0.2204040139913559, 0.47079479694366455, -0.19230999052524567, 0.12094730138778687, 0.4455162286758423, -0.00761747919023037, -0.11220552027225494, -0.1521117240190506, 0.5035296678543091, -0.29343947768211365, -0.22721059620380402, -0.25975239276885986, -0.24803315103054047 ]
https://github.com/huggingface/datasets/issues/353
[Dataset requests] New datasets for Text Classification
Hi @jxmorris12 for now I think our `dl_manager` does not download from Kaggle. @thomwolf , @lhoestq
We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705
16
[Dataset requests] New datasets for Text Classification We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705 Hi @jxmorris12 for now I think our `dl_manager` does not download from Kaggle. @thomwolf , @lhoestq
[ 0.036327484995126724, 0.12081754207611084, -0.16710233688354492, 0.24904952943325043, 0.27848607301712036, 0.21744219958782196, 0.2918257713317871, 0.0586763396859169, -0.06941906362771988, 0.08942002058029175, -0.07498801499605179, 0.24293763935565948, -0.22165153920650482, 0.1872980296611786, 0.10754325240850449, -0.267497181892395, -0.0024414805229753256, -0.06455720216035843, -0.0585642009973526, -0.19496703147888184, -0.11614879965782166, 0.23238633573055267, -0.1021072119474411, -0.29880040884017944, -0.3894103467464447, -0.11884407699108124, -0.1741255223751068, 0.20310677587985992, -0.3696792423725128, -0.5515013933181763, 0.07106602191925049, 0.1108715683221817, 0.24461473524570465, 0.30442315340042114, -0.00010049602860817686, -0.2866235077381134, 0.12905247509479523, -0.09620638936758041, -0.27183249592781067, -0.15483255684375763, -0.13984273374080658, -0.5224171280860901, -0.0034970161505043507, -0.17028386890888214, -0.06465473771095276, 0.09606149792671204, -0.010226313956081867, -0.1524551808834076, 0.02334067039191723, 0.3746054768562317, 0.28438881039619446, 0.004537835717201233, -0.009125864133238792, -0.3068837523460388, 0.39880892634391785, 0.349315345287323, -0.2872605621814728, 0.036268554627895355, 0.6251111030578613, 0.12980371713638306, -0.05958219990134239, 0.3732934892177582, -0.2840687930583954, -0.07561536878347397, 0.18470945954322815, 0.17109839618206024, -0.06335193663835526, -0.44654062390327454, 0.15367524325847626, 0.3627842664718628, 0.8537483811378479, -0.3193743824958801, -0.2965322434902191, -0.37291064858436584, 0.18256448209285736, -0.21853946149349213, -0.018480103462934494, 0.1393243819475174, -0.06816154718399048, 0.07161429524421692, -0.04262733832001686, -0.24446797370910645, -0.14983035624027252, 0.21601904928684235, 0.040244556963443756, 0.32086363434791565, -0.03041466698050499, -0.3652455806732178, 0.09091426432132721, 0.13130587339401245, 0.42766910791397095, -0.2541508674621582, 0.05993035435676575, -0.0015200512716546655, -0.24559122323989868, -0.17044736444950104, -0.0023835869506001472, -0.11851806938648224, -0.025597603991627693, 0.11502771079540253, -0.15190646052360535, 0.10149190574884415, -0.12922583520412445, -0.10602620989084244, -0.01252504251897335, 0.11419765651226044, 0.19582508504390717, 0.3053247630596161, 0.14757174253463745, -0.09881455451250076, 0.18470925092697144, 0.04579450562596321, -0.23368220031261444, 0.13585679233074188, -0.03573353588581085, 0.09522334486246109, -0.2831827700138092, -0.08481084555387497, -0.03232632577419281, -0.05172731354832649, -0.049589019268751144, -0.16342635452747345, -0.20220519602298737, 0.11179599910974503, -0.023402538150548935, 0.17283189296722412, -0.15262509882450104, 0.2224625200033188, 0.04335881024599075, -0.36064717173576355, -0.1383422613143921, -0.02742083929479122, -0.09172607958316803, -0.0014238610165193677, 0.5291509628295898, -0.14429806172847748, 0.2326463758945465, -0.22876887023448944, -0.1358255296945572, 0.16414378583431244, -0.02263367734849453, 0.03789367154240608, -0.01454900298267603, 0.2572914958000183, -0.006129933055490255, 0.1331605613231659, 0.03365445137023926, -0.06733807921409607, -0.20382371544837952, 0.2830103933811188, 0.043669845908880234, -0.3164178729057312, -0.2934395670890808, 0.28847846388816833, 0.026984792202711105, -0.554609477519989, -0.17632657289505005, 0.5332179069519043, -0.0657941997051239, -0.09893423318862915, 0.2336566150188446, 0.06199551373720169, 0.01908760517835617, -0.14409446716308594, 0.06259027868509293, 0.37949803471565247, -0.4466319978237152, -0.15560422837734222, -0.38433530926704407, 0.06781996786594391, 0.17795515060424805, 0.13706396520137787, -0.1412976235151291, 0.10380152612924576, 0.006164537277072668, 0.0018524512415751815, 0.3576297163963318, -0.2106909602880478, -0.2597452402114868, -0.09730879962444305, -0.03253110498189926, -0.14170604944229126, 0.22757259011268616, 0.24464012682437897, 0.23049162328243256, 0.0032845004461705685, -0.2420414388179779, 0.15145830810070038, -0.23141337931156158, 0.008874802850186825, -0.15170320868492126, -0.12665769457817078, 0.17388297617435455, 0.46733763813972473, 0.521106481552124, -0.20390258729457855, 0.09640879184007645, -0.10270577669143677, 0.13007748126983643, 0.06458272784948349, 0.18199805915355682, 0.10785125941038132, 0.05024214833974838, 0.2105705440044403, 0.10695728659629822, -0.25248149037361145, -0.3206227421760559, 0.04195108637213707, 0.29235392808914185, 0.42200735211372375, 0.057404130697250366, -0.1772570163011551, -0.20558056235313416, -0.08608240634202957, -0.05944814160466194, -0.11519848555326462, 0.18023502826690674, -0.13732348382472992, 0.07468061149120331, 0.22284434735774994, -0.255435585975647, 0.1196090579032898, -0.2633068561553955, 0.3440307378768921, 0.13843880593776703, 0.1995777040719986, -0.18593734502792358, 0.038600046187639236, 0.1123184859752655, 0.3069330155849457, -0.08189725875854492, 0.013668669387698174, 0.05549764260649681, -0.04579679295420647, -0.10887161642313004, -0.0359763577580452, 0.3803277313709259, 0.34639573097229004, 0.4430669844150543, -0.36434268951416016, 0.2564745545387268, 0.016618546098470688, 0.12057312577962875, -0.196300208568573, -0.15237222611904144, 0.1953100562095642, 0.14513333141803741, 0.11794944107532501, 0.007343437056988478, 0.06828046590089798, 0.031268831342458725, -0.07398461550474167, 0.13881485164165497, 0.08839058876037598, 0.30932509899139404, -0.16350506246089935, 0.2068694680929184, -0.022092338651418686, -0.18277586996555328, 0.2687942683696747, 0.20858685672283173, -0.114100880920887, 0.2883543074131012, 0.18032357096672058, -0.4136098325252533, 0.002861668588593602, 0.03341461345553398, 0.18175727128982544, 0.16020481288433075, 0.4741149842739105, 0.07152768224477768, -0.12954497337341309, 0.1909542828798294, -0.4396858513355255, 0.05709349736571312, 0.3365573585033417, 0.0779423713684082, 0.19490961730480194, 0.2889706790447235, 0.16097544133663177, -0.25291240215301514, -0.07392099499702454, 0.18693213164806366, -0.06210441514849663, 0.09648799151182175, -0.12289126217365265, -0.14733634889125824, -0.4734419286251068, 0.009838455356657505, -0.031635135412216187, -0.2634120285511017, -0.35726749897003174, 0.23975887894630432, -0.18632349371910095, -0.009732196107506752, 0.10909214615821838, -0.20386086404323578, 0.4440680742263794, -0.3063390552997589, 0.00343131460249424, -0.14507052302360535, -0.2510155141353607, -0.26778411865234375, 0.288825660943985, 0.16715107858181, -0.07613806426525116, 0.4527229070663452, -0.1395816206932068, 0.3039373457431793, -0.292233407497406, -0.5026998519897461, 0.081863634288311, -0.10064525157213211, -0.15144218504428864, -0.07967277616262436, -0.20380094647407532, 0.05581093952059746, -0.13213813304901123, -0.01178852841258049, -0.10406260937452316, -0.14610981941223145, -0.13238480687141418, -0.15880221128463745, -0.16990432143211365, -0.09050893038511276, -0.6321293115615845, -0.4981156289577484, -0.17651239037513733, -0.02056790143251419, 0.003117104060947895, 0.03950051590800285, 0.052702389657497406, -0.22938726842403412, -0.03126148506999016, -0.15617893636226654, 0.10620376467704773, -0.037983398884534836, -0.1608327180147171, 0.1060856357216835, -0.18817880749702454, -0.2769784927368164, -0.013943762518465519, -0.09381186217069626, -0.059247035533189774, -0.2440546452999115, -0.5775510668754578, 0.011682619340717793, -0.14606569707393646, 0.13505104184150696, 0.08234468102455139, 0.01495575811713934, 0.4460030794143677, 0.3186323642730713, -0.16701674461364746, 0.0728072002530098, -0.18416281044483185, -0.04088226705789566, 0.08713286370038986, 0.30377280712127686, -0.32895269989967346, 0.11205270141363144, 0.19909296929836273, 0.6252950429916382, -0.07628287374973297, 0.028628909960389137, 0.12774701416492462, 0.14580635726451874, 0.32619401812553406, 0.0009280496742576361, -0.388550728559494, 0.23923222720623016, -0.1540062427520752, 0.14484719932079315, 0.34021586179733276, 0.24404926598072052, -0.4113265872001648, -0.3100481331348419, 0.00582933472469449, -0.3088419735431671, -0.139202281832695, 0.24575275182724, -0.12191390246152878, 0.10207123309373856, 0.07516657561063766, 0.030138380825519562, -0.15494191646575928, -0.41102150082588196, -0.009367997758090496, 0.33122438192367554, 0.07056990265846252, -0.1585746705532074, -0.5272679924964905, 0.09671927243471146, -0.5372109413146973, 0.1099712923169136, 0.24333368241786957, -0.1414550244808197, -0.14148053526878357, 0.06742579489946365, -0.012408926151692867, 0.24971894919872284, 0.23168636858463287, -0.3759276270866394, -0.30575311183929443, 0.294435977935791, 0.02954142540693283, -0.016028020530939102, 0.09800872951745987, -0.41956767439842224, -0.14251376688480377, 0.3507802486419678, -0.220992311835289, 0.04985618218779564, -0.01490064151585102, 0.3752940595149994, -0.0834888145327568, -0.042189642786979675, -0.28082606196403503, 0.2156093567609787, -0.012106811627745628, -0.3490283489227295, -0.09256994724273682, -0.05545351654291153, 0.11273691058158875, -0.24582737684249878, -0.03818950057029724, 0.22796012461185455, -0.05905582755804062, 0.2579510807991028, -0.2162378430366516, -0.26351335644721985, 0.2018699049949646, 0.13892756402492523, 0.10791382193565369, 0.13322581350803375, 0.30167827010154724, 0.5075219869613647, -0.21573540568351746, -0.366958886384964, 0.03526346758008003, -0.17642328143119812, 0.4428977370262146, 0.2902776896953583, 0.33328717947006226, 0.21641966700553894, -0.15701693296432495, -0.1707204431295395, -0.11842931807041168, 0.11778881400823593, 0.18137554824352264, -0.10477285832166672, -0.4715120196342468, -0.26765844225883484, 0.4235588014125824, -0.07500585913658142, -0.07452227175235748, -0.03662994131445885, 0.15261584520339966, -0.22588662803173065, 0.09451429545879364, -0.07567732781171799, 0.985766589641571, -0.0546136274933815, 0.19731423258781433, -0.26634982228279114, -0.048940058797597885, 0.5359598994255066, -0.3048807382583618, 0.2788436710834503, -0.11738777160644531, -0.13411656022071838, -0.06231539696455002, 0.03813624754548073, -0.08631204813718796, 0.28077396750450134, 0.05715645104646683, 0.20462237298488617, 0.13231821358203888, 0.23066234588623047, 0.0560077540576458, 0.2629817724227905, -0.12140985578298569, -0.4137172996997833, -0.006328174844384193, 0.2581970691680908, 0.1662621647119522, 0.3738604485988617, -0.06888630241155624, 0.021722963079810143, -0.22749172151088715, 0.07185530662536621, -0.6199694275856018, -0.09481876343488693, -0.2102098912000656, 0.035535410046577454, -0.06335699558258057, -0.3951869010925293, 0.3602663576602936, 0.28814780712127686, 0.4655897319316864, 0.06717789173126221, -0.17854340374469757, 0.10447870194911957, -0.10900189727544785, -0.14479374885559082, 0.24864459037780762, -0.08740288019180298, 0.2993186414241791, -0.1255786269903183, -0.16342014074325562, 0.24039039015769958, 0.013876288197934628, -0.2040073126554489, -0.37629786133766174, -0.19872285425662994, 0.16923798620700836, -0.1861865520477295, 0.3645661175251007, 0.18864893913269043, 0.01090769562870264, -0.2813081443309784, 0.2248244434595108, 0.22070904076099396, 0.24254772067070007, 0.12983901798725128, 0.07349920272827148, -0.0061556571163237095, -0.4221653342247009, 0.2767058312892914, 0.15923094749450684, -0.2599051296710968, 0.3653341233730316, 0.49513259530067444, -0.1639518439769745, -0.3070434033870697, 0.17676597833633423, 0.15880246460437775, -0.1803542673587799, 0.046211112290620804, -0.1370418816804886, -0.18981708586215973, 0.15390309691429138, 0.4831218421459198, 0.4475250244140625, -0.22446496784687042, -0.022232333198189735, -0.15416663885116577, -0.13658909499645233, 0.20575439929962158, -0.13104034960269928, 0.064240001142025, -0.31047868728637695, 0.11358163505792618, 0.1106720119714737, 0.21381886303424835, -0.41834282875061035, 0.1057862639427185, -0.002692475914955139, -0.0010267696343362331, 0.26982101798057556, 0.037162166088819504, 0.16877056658267975, -0.11480522900819778, 0.07792683690786362, -0.028115861117839813, -0.07692649960517883, -0.297421395778656, 0.05030714347958565, 0.09818945080041885, 0.027876976877450943, 0.062419719994068146, 0.013026855885982513, -0.05574348196387291, -0.15841302275657654, 0.019539259374141693, 0.04291141778230667, 0.01564168930053711, 0.06530696898698807, 0.38061705231666565, -0.17650024592876434, -0.0038355528376996517, 0.07670366764068604, 0.15062114596366882, -0.26316800713539124, 0.3517296016216278, 0.21406486630439758, 0.1563258320093155, 0.4049966335296631, 0.11457237601280212, 0.10183509439229965, 0.11702191084623337, 0.05563832446932793, -0.11510054022073746, 0.5720157623291016, -0.18365153670310974, 0.21402937173843384, 0.5334517955780029, 0.1297408640384674, -0.1990557312965393, -0.19633519649505615, 0.0876709595322609, 0.14703978598117828, 0.3044619560241699, -0.35899269580841064, -0.25228118896484375, -0.07538757473230362, 0.2254793345928192, 0.08569598197937012, 0.11715894192457199, 0.3760240375995636, 0.04479173943400383, 0.17908886075019836, 0.2037143111228943, 0.44749438762664795, -0.08956680446863174, 0.32627221941947937, -0.01594100520014763, 0.09457149356603622, -0.016184842213988304, 0.2691628336906433, 0.08055172860622406, 0.029574105516076088, 0.2775472104549408, 0.07272377610206604, 0.5338813662528992, -0.1040642261505127, 0.147565096616745, 0.40432530641555786, -0.24204014241695404, 0.33209896087646484, 0.20946335792541504, -0.05616360902786255, 0.1176551952958107, -0.0231854896992445, 0.3225657343864441, -0.2496713399887085, 0.018577715381979942, -0.23161134123802185, 0.04872490465641022, -0.11397695541381836, 0.15007279813289642, -0.00966412853449583, -0.37672796845436096, 0.020867759361863136, -0.029417596757411957, -0.23722398281097412, -0.33546966314315796, 0.15128612518310547, -0.07503464072942734, -0.2642967998981476, -0.5378634929656982, -0.005131121259182692, 0.017167290672659874, 0.3859809339046478, -0.21301066875457764, -0.0802970677614212, 0.22226478159427643, -0.28177472949028015, 0.20707058906555176, 0.5161466002464294, 0.2406766265630722, -0.0650206133723259, -0.12725648283958435, -0.10053214430809021, -0.21484655141830444, -0.17437945306301117, 0.10058888792991638, 0.36498305201530457, 0.4146255850791931, 0.013475298881530762, 0.04211735725402832, 0.16692398488521576, -0.14918597042560577, 0.015516441315412521, 0.24222202599048615, -0.09479722380638123, -0.09755236655473709, 0.18309423327445984, 0.14174413681030273, -0.21883909404277802, -0.23235489428043365, 0.03946281224489212, -0.39438390731811523, -0.014491898939013481, 0.4232041537761688, -0.08353514224290848, 0.08799133449792862, -0.1966639757156372, 0.14083582162857056, -0.05254179611802101, 0.3778330087661743, 0.3114269971847534, -0.061615072190761566, -0.12886089086532593, -0.18372197449207306, -0.1686689704656601, -0.14677077531814575, 0.16842326521873474, 0.16832992434501648, -0.17481328547000885, -0.006379937287420034, 0.22658126056194305, 0.2520137429237366, -0.25235459208488464, 0.01362818293273449, 0.12625591456890106, 0.014353894628584385, -0.5593926906585693, -0.08958040177822113, 0.20984715223312378, 0.06732270866632462, -0.05378500372171402, 0.05489735305309296, 0.02608255110681057, -0.24266718327999115, 0.04314059391617775, -0.3713624179363251, 0.24352934956550598, 0.21123848855495453, 0.1630849987268448, 0.2539025545120239, 0.01168751623481512, 0.43663328886032104, -0.03342573344707489, -0.13140855729579926, -0.06810476630926132, -0.23309411108493805, -0.1569170206785202, 0.15076898038387299, 0.19774426519870758, 0.2544575035572052, -0.24997471272945404, -0.10161658376455307, 0.23241905868053436, 0.2099464237689972, 0.09807662665843964, 0.09163431823253632, -0.619848906993866, -0.08491324633359909, 0.038493022322654724, -0.16756682097911835, 0.2878290116786957, 0.06378458440303802, 0.05055886507034302, -0.2314167022705078, -0.2736488878726959, -0.4273025691509247, 0.06004825979471207, -0.05456497520208359, 0.1208743005990982, -0.42997872829437256, 0.05724289268255234, 0.4172293543815613, 0.3035714626312256, -0.6652130484580994, 0.03713468089699745, 0.39358359575271606, -0.14197894930839539, 0.005205526016652584, 0.3796030879020691, 0.17058150470256805, -0.08742452412843704, -0.18872365355491638, 0.2291717380285263, -0.1860617697238922, -0.25940215587615967, -0.251786470413208, -0.22362808883190155 ]
https://github.com/huggingface/datasets/issues/353
[Dataset requests] New datasets for Text Classification
Great list. Any idea if Amazon Reviews has been added? - ~40 GB of text (sadly no emoji) - popular MLM pre-training dataset before bigger datasets like WebText https://arxiv.org/abs/1808.01371 - turns out that binarizing the 1-5 star rating leads to great Pos/Neg/Neutral dataset, T5 paper claims to get very high accuracy (98%!) on this with small amount of finetuning https://arxiv.org/abs/2004.14546 Apologies if it's been included (great to see where) and if not, it's one of the better medium/large NLP dataset for semi-supervised learning, albeit a bit out of date. Thanks!! cc @sshleifer
We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705
92
[Dataset requests] New datasets for Text Classification We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705 Great list. Any idea if Amazon Reviews has been added? - ~40 GB of text (sadly no emoji) - popular MLM pre-training dataset before bigger datasets like WebText https://arxiv.org/abs/1808.01371 - turns out that binarizing the 1-5 star rating leads to great Pos/Neg/Neutral dataset, T5 paper claims to get very high accuracy (98%!) on this with small amount of finetuning https://arxiv.org/abs/2004.14546 Apologies if it's been included (great to see where) and if not, it's one of the better medium/large NLP dataset for semi-supervised learning, albeit a bit out of date. Thanks!! cc @sshleifer
[ 0.009956713765859604, 0.12012847512960434, -0.1890822947025299, 0.21793554723262787, 0.21285825967788696, 0.21809497475624084, 0.20618392527103424, 0.14195412397384644, -0.1860557645559311, -0.10307671874761581, -0.1535801738500595, -0.020446356385946274, -0.14540258049964905, 0.21926255524158478, 0.06050629913806915, -0.18070754408836365, 0.01255900226533413, -0.04163031652569771, -0.07741232216358185, -0.22035817801952362, -0.163740873336792, 0.16078735888004303, -0.0990084782242775, -0.18708600103855133, -0.39958199858665466, -0.11544367671012878, -0.14996355772018433, 0.08277598023414612, -0.2747659981250763, -0.4816748797893524, 0.032899994403123856, 0.07668998837471008, 0.14544695615768433, 0.34820282459259033, -0.00009774963837116957, -0.23884284496307373, 0.03841746598482132, -0.028711892664432526, -0.236860990524292, -0.22489483654499054, -0.05126011744141579, -0.4016401767730713, -0.08966103941202164, -0.12597554922103882, -0.13364531099796295, 0.037228792905807495, 0.05659259483218193, -0.18361468613147736, 0.003686795011162758, 0.3463915288448334, 0.3029758334159851, -0.028313729912042618, -0.08667390048503876, -0.12335765361785889, 0.25956472754478455, 0.5216811895370483, -0.3470137417316437, -0.10824912041425705, 0.5796989798545837, 0.11417253315448761, -0.07738007605075836, 0.30882707238197327, -0.2269614040851593, -0.1091126874089241, 0.18488287925720215, 0.16431686282157898, -0.14494626224040985, -0.3419860303401947, 0.05696490779519081, 0.37125325202941895, 0.6867122054100037, -0.2845933139324188, -0.44770413637161255, -0.30797016620635986, 0.16041308641433716, -0.2913411259651184, -0.16410869359970093, 0.25349894165992737, -0.033470455557107925, 0.1641043722629547, -0.17076921463012695, -0.22187723219394684, -0.18475575745105743, 0.1945418119430542, 0.2576349973678589, 0.0969129204750061, -0.057192180305719376, -0.26588425040245056, -0.06376665085554123, 0.11057522147893906, 0.2781277298927307, -0.3594803214073181, 0.1945616602897644, 0.0019450202817097306, -0.19685526192188263, -0.30354630947113037, 0.04329730570316315, -0.0020650899969041348, -0.0313555933535099, 0.04151167720556259, -0.10572440177202225, 0.10289957374334335, -0.19949831068515778, -0.12251833826303482, 0.0027348545845597982, -0.17412212491035461, 0.20561712980270386, 0.21627295017242432, 0.0856301560997963, -0.14314085245132446, 0.12887592613697052, 0.07785381376743317, -0.09928005188703537, 0.1666497439146042, -0.10300005972385406, -0.018324891105294228, -0.13201196491718292, -0.25421205163002014, -0.046714674681425095, -0.037510789930820465, -0.0053705861791968346, -0.06273926794528961, -0.18303963541984558, 0.03459157049655914, -0.036074042320251465, 0.10883712023496628, -0.16343742609024048, 0.23971621692180634, -0.04848412796854973, -0.41286349296569824, -0.14740926027297974, -0.014883812516927719, -0.13947319984436035, 0.08974486589431763, 0.6010736227035522, -0.08435645699501038, 0.14151379466056824, -0.16574284434318542, -0.12121590971946716, 0.16330991685390472, -0.019576439633965492, -0.10557612031698227, 0.08842094242572784, 0.1080310195684433, -0.14059098064899445, 0.07195178419351578, 0.08018707484006882, 0.18929921090602875, -0.20428571105003357, 0.24948105216026306, 0.014788884669542313, -0.2428179830312729, -0.1787465512752533, 0.3136509358882904, -0.04187076911330223, -0.5465010404586792, -0.07621147483587265, 0.6240929365158081, -0.014872984029352665, -0.035461585968732834, 0.1351906657218933, -0.03372717648744583, -0.12673938274383545, -0.12853284180164337, -0.007046325132250786, 0.3449835777282715, -0.4318048059940338, -0.18669448792934418, -0.32396167516708374, 0.11204876750707626, 0.13486279547214508, 0.22933703660964966, -0.17540454864501953, 0.06723996251821518, 0.14195825159549713, 0.0284108966588974, 0.21548862755298615, 0.026819763705134392, -0.228934183716774, -0.00019267835887148976, -0.004272975958883762, -0.11344660073518753, 0.08088734745979309, 0.2780296504497528, 0.10636356472969055, -0.06690681725740433, -0.11429116874933243, 0.1946755349636078, -0.26129475235939026, -0.04440288618206978, -0.22523875534534454, -0.18108657002449036, 0.1740029901266098, 0.42637568712234497, 0.45750313997268677, -0.21172171831130981, 0.05102146416902542, -0.13814640045166016, 0.08951393514871597, -0.035785093903541565, 0.21938180923461914, 0.1367531716823578, 0.1556398868560791, 0.15837828814983368, 0.0518694669008255, -0.28095871210098267, -0.15135033428668976, -0.005842216778546572, 0.24363242089748383, 0.348248153924942, -0.004439639858901501, -0.09715510159730911, -0.08177892118692398, -0.11407292634248734, 0.03082854300737381, -0.1058613583445549, 0.21708466112613678, -0.17680642008781433, 0.07764051854610443, 0.17143763601779938, -0.2573434114456177, 0.21468357741832733, -0.3896976113319397, 0.3276170492172241, 0.18421773612499237, 0.28675514459609985, -0.06571076810359955, -0.06083812564611435, 0.17108257114887238, 0.361692875623703, -0.15004391968250275, 0.011408308520913124, 0.023068832233548164, -0.0033257766626775265, -0.24834656715393066, -0.036236464977264404, 0.2523275911808014, 0.3923209011554718, 0.31206247210502625, -0.4238721430301666, 0.2985501289367676, -0.02724849246442318, 0.08753692358732224, -0.12846530973911285, -0.1620539128780365, 0.40900036692619324, -0.021623587235808372, 0.06474312394857407, 0.006023996975272894, -0.051720935851335526, -0.04087269678711891, -0.020908920094370842, 0.058990851044654846, 0.10963540524244308, 0.36074647307395935, -0.197274848818779, 0.20595712959766388, 0.0017747660167515278, -0.16174796223640442, 0.1815595030784607, 0.1853688657283783, -0.06864491105079651, 0.20470966398715973, 0.22707372903823853, -0.36266177892684937, -0.14162515103816986, -0.04963100329041481, 0.010518001392483711, 0.2799793481826782, 0.5136605501174927, -0.03186659514904022, -0.10479091107845306, 0.05508412793278694, -0.367275208234787, 0.08042365312576294, 0.3299194574356079, 0.05327369645237923, 0.07422918826341629, 0.2775613069534302, 0.21610940992832184, -0.2416410595178604, -0.1270560473203659, 0.16795891523361206, -0.03538409620523453, -0.016741488128900528, -0.10195177793502808, -0.027799757197499275, -0.3347748816013336, 0.0467786006629467, 0.04810522496700287, -0.08743866533041, -0.26421359181404114, 0.2252805083990097, -0.20679213106632233, 0.04178746044635773, 0.06042545288801193, -0.31508755683898926, 0.539151668548584, -0.24291066825389862, 0.07562732696533203, -0.0991198867559433, -0.20817987620830536, -0.21267816424369812, 0.31413334608078003, 0.0941997766494751, -0.08477802574634552, 0.4556824862957001, -0.0665523111820221, 0.25340911746025085, -0.19138912856578827, -0.5189398527145386, -0.014855671674013138, -0.1665448397397995, -0.043255943804979324, -0.1463809311389923, -0.16471074521541595, 0.0170952957123518, -0.108562171459198, -0.0551760271191597, -0.1354304403066635, -0.1729183793067932, -0.08204895257949829, -0.12823671102523804, -0.2330133467912674, -0.06392596662044525, -0.6488707065582275, -0.3751613199710846, -0.09664420783519745, 0.12011449038982391, 0.024350164458155632, -0.01771344430744648, 0.2662024199962616, -0.0593329481780529, 0.021156176924705505, -0.13972108066082, 0.1283472329378128, -0.07763133198022842, -0.26904886960983276, 0.19937996566295624, -0.1055581271648407, -0.2119165062904358, -0.135728657245636, -0.0527593269944191, -0.0643499493598938, -0.06826020777225494, -0.527397096157074, 0.16937004029750824, -0.19720248878002167, 0.18708966672420502, 0.11814983934164047, -0.09004408866167068, 0.37593430280685425, 0.2685990035533905, -0.19581882655620575, 0.06630978733301163, -0.07724668830633163, -0.08186420053243637, 0.051213257014751434, 0.2883864939212799, -0.30875638127326965, 0.1018727719783783, 0.28575876355171204, 0.5518406629562378, 0.0370040088891983, -0.12772926688194275, 0.0581875778734684, 0.27675220370292664, 0.3315039277076721, -0.008497216738760471, -0.3893330991268158, 0.2839777171611786, -0.13478423655033112, 0.1779325008392334, 0.3239386975765228, 0.18738006055355072, -0.3543054461479187, -0.2062402367591858, 0.04173772782087326, -0.27248722314834595, -0.08392885327339172, 0.24414633214473724, -0.17697343230247498, 0.2626500129699707, 0.04709289222955704, -0.08920032531023026, -0.22002917528152466, -0.4361051917076111, -0.1354859322309494, 0.189609095454216, 0.16078156232833862, -0.19565312564373016, -0.6076633930206299, 0.21480323374271393, -0.46111762523651123, 0.10651949793100357, 0.1472972333431244, -0.07787556201219559, -0.16266602277755737, 0.14214643836021423, -0.10196032375097275, 0.3258802890777588, 0.10276784747838974, -0.46361154317855835, -0.3247776925563812, 0.2446564882993698, 0.02996884100139141, -0.0822094976902008, 0.14844000339508057, -0.44674813747406006, 0.021791262552142143, 0.2362406849861145, 0.036128390580415726, 0.10494635254144669, -0.059005822986364365, 0.46374404430389404, -0.027275484055280685, 0.03164355084300041, -0.2878134250640869, 0.29640573263168335, 0.0648154765367508, -0.15977279841899872, -0.02879127487540245, 0.0629829466342926, 0.06374354660511017, -0.1971365362405777, 0.03180655464529991, 0.19181492924690247, 0.06677525490522385, 0.39716774225234985, -0.2791356146335602, -0.34461337327957153, 0.16281646490097046, 0.21877624094486237, 0.0670476108789444, 0.008649174124002457, 0.3463253676891327, 0.433037132024765, -0.1477721780538559, -0.5273460149765015, -0.04940231144428253, -0.14090417325496674, 0.48337322473526, 0.3429300785064697, 0.361725389957428, 0.25239112973213196, -0.11656182259321213, -0.12286258488893509, -0.07201918214559555, 0.2508351802825928, 0.1270613670349121, -0.0357370562851429, -0.5171096920967102, -0.3428182899951935, 0.3212042450904846, -0.08879676461219788, -0.05286622792482376, -0.037181951105594635, 0.1858055591583252, -0.17820367217063904, 0.13938051462173462, -0.005433099810034037, 0.9393479228019714, -0.016749681904911995, 0.21775829792022705, -0.2964959740638733, -0.15433987975120544, 0.49365749955177307, -0.286714106798172, 0.16721296310424805, -0.04264296963810921, -0.19656015932559967, -0.0001620961120352149, -0.04250709339976311, 0.010546443983912468, 0.38825806975364685, 0.10595079511404037, 0.22215019166469574, 0.25187942385673523, 0.14195552468299866, 0.07970185577869415, 0.17055252194404602, 0.0826379731297493, -0.43237027525901794, 0.06793368607759476, 0.2891984283924103, 0.03130846843123436, 0.23478256165981293, -0.0014486334985122085, 0.013284150511026382, -0.19194406270980835, 0.1294078677892685, -0.6016511917114258, -0.08037548512220383, -0.188851997256279, 0.0674080103635788, 0.022612204775214195, -0.4113130569458008, 0.5069023370742798, 0.2674869894981384, 0.4851577877998352, 0.14618070423603058, -0.2111535370349884, 0.012158322148025036, -0.22986702620983124, -0.09990750998258591, 0.2072231024503708, -0.14497072994709015, 0.32419779896736145, -0.0038160074036568403, -0.23252753913402557, 0.16677433252334595, 0.0671091228723526, -0.13467925786972046, -0.43559643626213074, -0.34226953983306885, 0.239814892411232, -0.3440442383289337, 0.22653663158416748, 0.2108394056558609, -0.007370186038315296, -0.2803477942943573, 0.2544865012168884, 0.22580884397029877, 0.24857957661151886, 0.12722252309322357, 0.1870499849319458, -0.09668944031000137, -0.3992345929145813, 0.24557656049728394, 0.18895003199577332, -0.26244056224823, 0.3753589391708374, 0.44876766204833984, -0.22259750962257385, -0.3211376965045929, 0.25637558102607727, 0.27194643020629883, -0.234751895070076, -0.0509396567940712, -0.12916062772274017, -0.07319087535142899, 0.15804100036621094, 0.2855262756347656, 0.3492247462272644, -0.2070113867521286, 0.05675380676984787, -0.13864034414291382, -0.09049738198518753, 0.23786714673042297, -0.07846716791391373, 0.055726584047079086, -0.1956430971622467, 0.1426936388015747, 0.07330246269702911, 0.19497540593147278, -0.4472535252571106, 0.16314296424388885, 0.14369414746761322, 0.05083334445953369, 0.20791736245155334, -0.09133092314004898, 0.12023293226957321, -0.20431016385555267, 0.14572520554065704, 0.02057323232293129, -0.06717785447835922, -0.335769921541214, -0.0075485361739993095, 0.10719191282987595, 0.06228366866707802, -0.05033440515398979, 0.027825094759464264, 0.11780821532011032, -0.16965489089488983, -0.10410609841346741, -0.11190664023160934, 0.08923199027776718, 0.10023883730173111, 0.3928532898426056, -0.20862527191638947, 0.010754716582596302, 0.09195399284362793, 0.0781637579202652, -0.3490190804004669, 0.3264131546020508, 0.26925966143608093, 0.1559092104434967, 0.4530680179595947, 0.07733997702598572, -0.11192883551120758, 0.15875986218452454, 0.14641378819942474, -0.09203200042247772, 0.6272504925727844, -0.2160806804895401, 0.22979842126369476, 0.4485689103603363, 0.13513517379760742, -0.15929459035396576, -0.12554270029067993, -0.003672964870929718, 0.07956734299659729, 0.34134992957115173, -0.31974396109580994, -0.14288409054279327, -0.05984096974134445, 0.18812979757785797, 0.07595781236886978, 0.20661742985248566, 0.24788740277290344, 0.05356261506676674, 0.23199060559272766, 0.08261047303676605, 0.5046772956848145, -0.12227849662303925, 0.27883657813072205, -0.012822558172047138, 0.16346827149391174, -0.10634652525186539, 0.26266974210739136, 0.15993672609329224, 0.039110928773880005, 0.2669234573841095, 0.08838780224323273, 0.45814818143844604, -0.13923904299736023, 0.24075551331043243, 0.23459602892398834, -0.14361058175563812, 0.3404221534729004, 0.2780047059059143, -0.12572424113750458, 0.22050520777702332, -0.0631461888551712, 0.2299710363149643, -0.17502033710479736, 0.0492621473968029, -0.13644233345985413, -0.04779805243015289, -0.1134294867515564, 0.057844378054142, -0.03517773747444153, -0.349760502576828, -0.0415523387491703, -0.12929289042949677, -0.2964363098144531, -0.33243611454963684, 0.14113302528858185, -0.06286213546991348, -0.18919555842876434, -0.5732408761978149, 0.23556654155254364, 0.11590970307588577, 0.43282392621040344, -0.2088291496038437, -0.05161881819367409, 0.14384089410305023, -0.17804040014743805, 0.19071145355701447, 0.475820392370224, 0.20042341947555542, -0.17190520465373993, -0.10405952483415604, 0.11883438378572464, -0.24166357517242432, -0.19920368492603302, 0.17701098322868347, 0.23628701269626617, 0.35954686999320984, 0.16392767429351807, 0.00583369005471468, 0.21577459573745728, -0.11951649188995361, 0.1666230410337448, 0.13749995827674866, -0.07448558509349823, -0.26504918932914734, 0.08082167059183121, 0.13318604230880737, -0.2794410288333893, -0.17324070632457733, -0.022339390590786934, -0.22704119980335236, -0.20638114213943481, 0.49488091468811035, -0.14009833335876465, 0.03678344190120697, -0.09523575752973557, 0.1659814417362213, -0.1450931280851364, 0.2787555754184723, 0.3749406635761261, -0.204395592212677, -0.19464856386184692, -0.07430054247379303, -0.04559989273548126, -0.18376368284225464, 0.14181457459926605, 0.20797038078308105, -0.24352341890335083, 0.04044785723090172, 0.2586265206336975, 0.2225128561258316, -0.36851322650909424, -0.07409363240003586, -0.11362960934638977, 0.037768032401800156, -0.5360797047615051, -0.05622793361544609, 0.1630544662475586, 0.25590306520462036, -0.016748810186982155, 0.14421983063220978, -0.1042819395661354, -0.08797214180231094, 0.09684452414512634, -0.42225655913352966, 0.10649631172418594, 0.18841144442558289, 0.1729872226715088, 0.11739873141050339, 0.058784276247024536, 0.3530179560184479, -0.04597548767924309, -0.11794634908437729, -0.08790099620819092, -0.2885904014110565, -0.07946784794330597, 0.3862176537513733, 0.06759587675333023, 0.33664095401763916, -0.25567570328712463, -0.306052565574646, 0.2978150248527527, 0.048382602632045746, 0.02099805325269699, -0.15101315081119537, -0.46577298641204834, -0.0059746550396084785, 0.023820485919713974, -0.055656563490629196, 0.15217790007591248, 0.01786447875201702, 0.019232746213674545, -0.14784683287143707, -0.11186687648296356, -0.3519074022769928, 0.07222245633602142, -0.00224168598651886, 0.12859176099300385, -0.301321804523468, 0.11773081868886948, 0.36625733971595764, 0.27219831943511963, -0.5800650715827942, 0.012165991589426994, 0.49837473034858704, -0.14627192914485931, -0.052115682512521744, 0.44000086188316345, 0.18531188368797302, -0.0742066353559494, -0.1611194908618927, 0.2752126157283783, -0.25852134823799133, -0.2241852581501007, -0.14010584354400635, -0.20965783298015594 ]
https://github.com/huggingface/datasets/issues/353
[Dataset requests] New datasets for Text Classification
On the Amazon Reviews dataset, the original UCSD website has noted these are now updated to include product reviews through 2018 -- actually quite recent compared to many other datasets. Almost certainly the largest NLP dataset out there with labels! https://jmcauley.ucsd.edu/data/amazon/ Any chance someone has time to onboard this dataset in a HF way? cc @sshleifer
We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705
56
[Dataset requests] New datasets for Text Classification We are missing a few datasets for Text Classification which is an important field. Namely, it would be really nice to add: - TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]** - Yelp-5 - Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]** - SST (Stanford Sentiment Treebank) **[include in glue]** - Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]** - Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification - 20 Newsgroups. The 20 Newsgroups dataset **[done]** - Sogou News dataset **[done]** - Reuters news. The Reuters-21578 dataset [165] **[done]** - DBpedia. The DBpedia dataset [170] - Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database - EUR-Lex. The EUR-Lex dataset - WOS. The Web Of Science (WOS) dataset **[done]** - PubMed. PubMed [173] - TREC-QA. TREC-QA - Quora. The Quora dataset [180] All these datasets are cited in https://arxiv.org/abs/2004.03705 On the Amazon Reviews dataset, the original UCSD website has noted these are now updated to include product reviews through 2018 -- actually quite recent compared to many other datasets. Almost certainly the largest NLP dataset out there with labels! https://jmcauley.ucsd.edu/data/amazon/ Any chance someone has time to onboard this dataset in a HF way? cc @sshleifer
[ -0.019835563376545906, 0.16453513503074646, -0.12858638167381287, 0.1226927787065506, 0.1399298459291458, 0.22253455221652985, 0.17682985961437225, 0.08158786594867706, 0.0018187175737693906, -0.18341535329818726, -0.29860731959342957, -0.0017472859472036362, -0.23109857738018036, 0.2553616464138031, 0.14003810286521912, -0.21173879504203796, -0.020114582031965256, -0.07591145485639572, -0.12464312463998795, -0.21633630990982056, -0.16756534576416016, 0.20931626856327057, -0.08923542499542236, -0.2444808930158615, -0.3734595477581024, -0.12972219288349152, -0.18040794134140015, 0.12453602254390717, -0.23036688566207886, -0.5034516453742981, 0.1528972089290619, 0.2555030882358551, 0.23458632826805115, 0.3584262728691101, -0.00010472581925569102, -0.3163301944732666, 0.01296401210129261, -0.03612487390637398, -0.25244253873825073, -0.228513702750206, 0.0480060838162899, -0.4326218068599701, -0.10933432728052139, -0.011556615121662617, -0.04148322716355324, -0.035278335213661194, 0.06332860887050629, -0.07346076518297195, -0.07282045483589172, 0.2706291079521179, 0.2498828023672104, -0.0968175157904625, -0.014112158678472042, -0.11153624951839447, 0.405648410320282, 0.5342848896980286, -0.26941603422164917, -0.05570075660943985, 0.5810779929161072, -0.06986243277788162, -0.13881915807724, 0.280479371547699, -0.20751558244228363, -0.1526290327310562, 0.32746583223342896, 0.0953843891620636, -0.17891253530979156, -0.34959179162979126, -0.006355294492095709, 0.3909524977207184, 0.7599868178367615, -0.28515201807022095, -0.4934869408607483, -0.35701119899749756, 0.12044959515333176, -0.24489636719226837, -0.16551701724529266, 0.2134290188550949, -0.027025768533349037, 0.020132631063461304, -0.1747700572013855, -0.26001739501953125, -0.21487264335155487, 0.2961460053920746, 0.327444851398468, 0.303800106048584, -0.002959879580885172, -0.22689412534236908, 0.006238854955881834, 0.08047956973314285, 0.37327662110328674, -0.28202539682388306, 0.18542230129241943, 0.08426432311534882, -0.2543911337852478, -0.2538292109966278, 0.04198075085878372, -0.04194967448711395, 0.008205448277294636, 0.02994704246520996, -0.2754580080509186, 0.05223437026143074, -0.2359437346458435, -0.08201970160007477, -0.01143796369433403, -0.10449609160423279, 0.18596236407756805, 0.2776843011379242, -0.006437475327402353, -0.14766833186149597, 0.11754710227251053, 0.05222383141517639, -0.1956702023744583, 0.17999346554279327, -0.148403137922287, -0.13015300035476685, -0.3069116175174713, -0.32689812779426575, -0.05461903288960457, -0.09306934475898743, -0.02766595035791397, -0.03720080852508545, -0.16106681525707245, 0.1006111204624176, -0.030531929805874825, 0.14236310124397278, -0.07498431950807571, 0.20435556769371033, -0.06431180983781815, -0.2759667932987213, -0.10677822679281235, -0.013268472626805305, -0.09781090170145035, 0.13255353271961212, 0.5589260458946228, 0.002338036894798279, 0.12668827176094055, -0.23719941079616547, -0.09303256124258041, 0.17694465816020966, -0.1804189383983612, -0.04991449415683746, 0.014496274292469025, 0.12370188534259796, -0.08778665214776993, 0.06353984028100967, 0.08130580186843872, 0.14842817187309265, -0.21879710257053375, 0.13589496910572052, 0.012635268270969391, -0.18098142743110657, -0.2063612937927246, 0.2547236680984497, 0.015191245824098587, -0.5899583697319031, -0.18092301487922668, 0.5644577145576477, -0.04782909154891968, -0.10221870243549347, 0.1412484496831894, -0.014403139241039753, -0.15076741576194763, -0.07564623653888702, -0.14723819494247437, 0.35790884494781494, -0.46381357312202454, -0.2868506610393524, -0.303637832403183, 0.17895810306072235, 0.19721536338329315, 0.15462042391300201, -0.14201556146144867, 0.14141817390918732, 0.08845892548561096, 0.017345044761896133, 0.19785068929195404, -0.02811591699719429, -0.22132311761379242, 0.0716082826256752, -0.0373295322060585, -0.20371507108211517, 0.10918114334344864, 0.3472172021865845, 0.1259891390800476, -0.14296044409275055, 0.013675792142748833, 0.17987720668315887, -0.1910170465707779, -0.0351373590528965, -0.22347858548164368, -0.1538216769695282, 0.13305512070655823, 0.4792051613330841, 0.5008533000946045, -0.18467094004154205, 0.01783165894448757, -0.05669683963060379, 0.1833343356847763, 0.01481122151017189, 0.1735473871231079, 0.22455520927906036, 0.15899260342121124, 0.3652987480163574, 0.020095501095056534, -0.32608669996261597, -0.15828105807304382, -0.03683159500360489, 0.1321992427110672, 0.32387426495552063, 0.08372963964939117, -0.12999781966209412, -0.16202494502067566, -0.07273618131875992, 0.06397680193185806, -0.08847959339618683, 0.1685638576745987, -0.18238753080368042, 0.08021469414234161, 0.06953287124633789, -0.25116848945617676, 0.24452142417430878, -0.32189124822616577, 0.3489341735839844, 0.22965452075004578, 0.30984431505203247, -0.06383080035448074, 0.08236628770828247, 0.27345168590545654, 0.4851835370063782, -0.05618483945727348, -0.004794302862137556, 0.08651233464479446, -0.05073516443371773, -0.33114227652549744, -0.052003297954797745, 0.4012410044670105, 0.34061864018440247, 0.21719826757907867, -0.43086111545562744, 0.23951269686222076, -0.09081867337226868, 0.07023527473211288, -0.22570782899856567, -0.17708039283752441, 0.3826257586479187, -0.06436979025602341, 0.10748665034770966, 0.016339760273694992, 0.01911061257123947, -0.05757120996713638, -0.058499615639448166, 0.1567184329032898, 0.12266149371862411, 0.4774450361728668, -0.24024172127246857, 0.21560943126678467, -0.05607406422495842, -0.15315493941307068, 0.31023794412612915, 0.24109090864658356, -0.026126733049750328, 0.14957638084888458, 0.31120091676712036, -0.3767240047454834, -0.12384558469057083, -0.040545862168073654, 0.0679401382803917, 0.20946064591407776, 0.5444110631942749, -0.016258282586932182, -0.04298476502299309, -0.06332249194383621, -0.29289647936820984, 0.003946101292967796, 0.24573130905628204, 0.10178323090076447, 0.09405010938644409, 0.33821213245391846, 0.27823606133461, -0.30233290791511536, -0.2575506567955017, 0.13848227262496948, -0.02079876884818077, 0.04212150722742081, -0.03942817822098732, -0.045746851712465286, -0.4623202979564667, -0.013394447043538094, -0.014004089869558811, -0.12705741822719574, -0.3637330234050751, 0.3001459836959839, -0.09994737803936005, 0.09348200261592865, 0.07195669412612915, -0.39578747749328613, 0.5337889790534973, -0.33828380703926086, -0.03120407462120056, -0.08734895288944244, -0.2671605050563812, -0.2508144974708557, 0.2313462197780609, 0.14027711749076843, -0.008853570558130741, 0.4727499485015869, 0.03874823823571205, 0.23265399038791656, -0.14571578800678253, -0.5765919089317322, -0.05592799559235573, -0.125375896692276, -0.12096439301967621, -0.1876254379749298, -0.2154996395111084, 0.04796299338340759, -0.16737109422683716, -0.13975341618061066, -0.12038284540176392, -0.14754241704940796, -0.03298477455973625, -0.24931852519512177, -0.19512031972408295, -0.03268016502261162, -0.5112289786338806, -0.3697478771209717, -0.14610658586025238, 0.1025933027267456, 0.03582855314016342, 0.09331496059894562, 0.2685090899467468, -0.2643093764781952, 0.014829985797405243, -0.12426441162824631, 0.0666404515504837, -0.037444498389959335, -0.18865536153316498, 0.1413719803094864, -0.12022441625595093, -0.22819557785987854, -0.12400588393211365, -0.09678265452384949, -0.07567651569843292, -0.10281561315059662, -0.6674732565879822, 0.2082013487815857, -0.1985078752040863, 0.12260167300701141, 0.15561659634113312, -0.14055891335010529, 0.40666836500167847, 0.24763022363185883, -0.1814626008272171, -0.020310845226049423, -0.12932313978672028, -0.03276907280087471, 0.07508541643619537, 0.37122654914855957, -0.3001054525375366, 0.08032162487506866, 0.23997993767261505, 0.5578203201293945, 0.04387744888663292, -0.03512272983789444, 0.10145378112792969, 0.33030086755752563, 0.2996339499950409, 0.023163048550486565, -0.45121580362319946, 0.2865907847881317, -0.14167344570159912, 0.20598624646663666, 0.33430027961730957, 0.20413099229335785, -0.434814453125, -0.1071697250008583, 0.1427893489599228, -0.2731657326221466, -0.0399802029132843, 0.23323071002960205, -0.21753332018852234, 0.22400188446044922, 0.10422583669424057, -0.18191316723823547, -0.30556344985961914, -0.5037228465080261, -0.10823182016611099, 0.23693649470806122, 0.1736888885498047, -0.0743042379617691, -0.6273705959320068, 0.20532914996147156, -0.3945927321910858, 0.14006295800209045, 0.14631667733192444, 0.06744208931922913, -0.2749194800853729, 0.22813573479652405, -0.08275887370109558, 0.2678698003292084, 0.1284734010696411, -0.4005749523639679, -0.22700686752796173, 0.29570698738098145, 0.15619587898254395, -0.0684429183602333, 0.15421360731124878, -0.37682801485061646, 0.05994393303990364, 0.28132209181785583, 0.017320025712251663, 0.08655445277690887, -0.09212283045053482, 0.4317033886909485, -0.05731578916311264, 0.00954314786940813, -0.2893533408641815, 0.38145866990089417, 0.022672459483146667, -0.1425524353981018, -0.09049924463033676, -0.013027172535657883, 0.15363477170467377, -0.2646360695362091, 0.08523453027009964, 0.19456319510936737, 0.04288298264145851, 0.3212277889251709, -0.4165341556072235, -0.3929341733455658, 0.21066242456436157, 0.18388952314853668, 0.011394464410841465, 0.030940284952521324, 0.2688949406147003, 0.5306916832923889, -0.17695119976997375, -0.45390963554382324, 0.036711324006319046, -0.05526462197303772, 0.4870544672012329, 0.3452843129634857, 0.4270690977573395, 0.3030509352684021, -0.08847130089998245, -0.04776846617460251, -0.11855261772871017, 0.18913958966732025, 0.06970041990280151, -0.03322489187121391, -0.5455821752548218, -0.24106259644031525, 0.4245169758796692, -0.09380805492401123, -0.0524289533495903, -0.0012598376488313079, 0.27472782135009766, -0.1869427114725113, 0.22986063361167908, -0.07047288864850998, 0.9891273975372314, -0.032035067677497864, 0.2314072996377945, -0.3351995646953583, -0.14999443292617798, 0.5273064374923706, -0.33900806307792664, 0.16514401137828827, -0.13662463426589966, -0.062248554080724716, -0.07735809683799744, 0.005961440969258547, -0.13553975522518158, 0.43202105164527893, 0.20124103128910065, 0.24374662339687347, 0.3407818377017975, 0.042356111109256744, 0.12663479149341583, 0.2039085030555725, 0.0389915369451046, -0.5060489773750305, 0.021323183551430702, 0.23469997942447662, -0.03648644685745239, 0.36674758791923523, -0.004177533555775881, -0.005718424916267395, -0.14087948203086853, 0.15942834317684174, -0.7354983687400818, -0.06736601144075394, -0.10636309534311295, 0.12668031454086304, 0.0681762620806694, -0.30454447865486145, 0.5246521830558777, 0.11318866908550262, 0.4435449540615082, 0.08650897443294525, -0.21987572312355042, -0.027204830199480057, -0.2468961626291275, -0.1631079912185669, 0.2093576341867447, -0.11719665676355362, 0.3968864977359772, -0.025573622435331345, -0.1978740692138672, 0.08455896377563477, 0.0637756884098053, -0.23019352555274963, -0.3948068916797638, -0.32004088163375854, 0.19089746475219727, -0.2362106591463089, 0.2588208317756653, 0.3226070702075958, -0.010890158824622631, -0.30711400508880615, 0.19615894556045532, 0.16343435645103455, 0.2605302631855011, 0.035392243415117264, 0.269289493560791, -0.0035228438209742308, -0.3461029827594757, 0.2194712609052658, 0.16763736307621002, -0.1958141028881073, 0.38628917932510376, 0.5314849019050598, -0.25083625316619873, -0.28164738416671753, 0.19995570182800293, 0.18237900733947754, -0.3813149631023407, -0.14122237265110016, -0.08118612319231033, -0.060969408601522446, 0.20649036765098572, 0.32448843121528625, 0.38475480675697327, -0.25802090764045715, 0.025159547105431557, -0.3177655041217804, -0.12075323611497879, 0.3003711998462677, -0.25486692786216736, 0.05467953160405159, -0.17223291099071503, 0.22595380246639252, 0.06480637937784195, 0.3074406683444977, -0.37206369638442993, 0.19424663484096527, 0.05464858189225197, 0.009455909952521324, 0.13040362298488617, -0.07322505861520767, 0.1413394659757614, -0.21628616750240326, 0.044717319309711456, 0.022611308842897415, -0.08846385031938553, -0.25349223613739014, -0.09481391310691833, 0.15108489990234375, 0.10359282046556473, 0.04876622557640076, -0.07738203555345535, 0.06003638729453087, -0.17538009583950043, 0.014529943466186523, -0.0607476681470871, 0.09624911844730377, 0.1225072592496872, 0.44481104612350464, -0.14519454538822174, 0.0026806998066604137, 0.04933859035372734, 0.09582795202732086, -0.15304766595363617, 0.3397253155708313, 0.2522169351577759, 0.10696464031934738, 0.3758496046066284, 0.13192594051361084, -0.25367361307144165, 0.20592302083969116, 0.1825130581855774, -0.21432285010814667, 0.6236366033554077, -0.3106361925601959, 0.34343767166137695, 0.4052037298679352, 0.18119487166404724, -0.19000212848186493, -0.03811469301581383, 0.021020319312810898, 0.20601323246955872, 0.24695788323879242, -0.36638081073760986, -0.23557151854038239, -0.06323079764842987, 0.18203423917293549, 0.049690764397382736, 0.15990978479385376, 0.3251382112503052, 0.09743651747703552, 0.30783748626708984, 0.11862310767173767, 0.4503093659877777, -0.14878755807876587, 0.17080500721931458, -0.10720464587211609, 0.13413280248641968, -0.007214082404971123, 0.28471070528030396, 0.23162800073623657, 0.04254377260804176, 0.24320390820503235, 0.19885827600955963, 0.4407493770122528, -0.15632832050323486, 0.1626002937555313, 0.29731905460357666, -0.26116153597831726, 0.2581981122493744, 0.2804412245750427, 0.0506996214389801, 0.18646782636642456, -0.16585786640644073, 0.34151479601860046, -0.22848501801490784, -0.003657193621620536, -0.019414326176047325, 0.0028691296465694904, -0.049347907304763794, -0.006272744387388229, 0.053482942283153534, -0.2535128593444824, -0.11395018547773361, -0.12816371023654938, -0.27395182847976685, -0.41752830147743225, 0.13849876821041107, -0.10585513710975647, -0.16201619803905487, -0.7215715050697327, 0.14225132763385773, 0.1325700879096985, 0.4418780505657196, -0.16591614484786987, -0.057446207851171494, 0.05158136039972305, -0.15375444293022156, 0.18014515936374664, 0.42005157470703125, 0.17363743484020233, -0.2005610167980194, -0.12332271039485931, 0.0051048812456429005, -0.2862403690814972, -0.1789838969707489, 0.17520929872989655, 0.30235376954078674, 0.4547439217567444, 0.01184501126408577, 0.1499176323413849, 0.15753163397312164, -0.06406362354755402, 0.20590704679489136, 0.13633306324481964, -0.08302563428878784, -0.10922118276357651, 0.25858643651008606, 0.14759224653244019, -0.25697559118270874, -0.19775621592998505, -0.012341340072453022, -0.23038755357265472, -0.23676364123821259, 0.4216780364513397, -0.1355626881122589, 0.08502507209777832, -0.10421580821275711, 0.1350456029176712, -0.08261748403310776, 0.31751900911331177, 0.4432277977466583, -0.14418281614780426, -0.11659237742424011, -0.07282576709985733, -0.040815990418195724, -0.2165640890598297, 0.09110873192548752, 0.1053299829363823, -0.14275676012039185, 0.03069867566227913, 0.2910799980163574, 0.1708274781703949, -0.37687256932258606, -0.11907730251550674, -0.06128989905118942, 0.06962122023105621, -0.486419677734375, 0.010039829649031162, 0.1854380965232849, 0.2585161328315735, -0.05040924251079559, 0.1169501543045044, -0.1581365168094635, -0.023227890953421593, 0.015577878803014755, -0.3896498382091522, 0.19580531120300293, 0.21188664436340332, 0.13573041558265686, 0.02241869457066059, -0.04315229132771492, 0.469219446182251, 0.012455574236810207, -0.08735129237174988, -0.16074968874454498, -0.35086312890052795, -0.08784471452236176, 0.20338651537895203, -0.0014763138024136424, 0.4487062692642212, -0.26185718178749084, -0.2969014048576355, 0.34710970520973206, -0.008351380936801434, -0.012251384556293488, -0.08262438327074051, -0.44847485423088074, 0.08595450967550278, -0.1286577582359314, -0.002523795235902071, 0.2685827612876892, 0.1318814903497696, 0.13555537164211273, -0.1389172524213791, -0.09118285775184631, -0.38518229126930237, 0.13716934621334076, -0.021432634443044662, 0.11093064397573471, -0.13782532513141632, 0.13090357184410095, 0.4573970437049866, 0.12238907068967819, -0.6342868208885193, -0.02982688695192337, 0.4297260046005249, -0.13909123837947845, 0.07529039680957794, 0.4732365310192108, 0.0454113632440567, -0.08113696426153183, -0.15978266298770905, 0.2771237790584564, -0.31647029519081116, -0.27705132961273193, -0.24066521227359772, -0.17422302067279816 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file. Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter. See issues #242 and #307
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
38
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file. Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter. See issues #242 and #307
[ -0.26108941435813904, -0.0766240805387497, -0.05322130769491196, 0.14644643664360046, 0.385814368724823, 0.01025488693267107, 0.025446536019444466, 0.17635782063007355, -0.1791243553161621, 0.08384852856397629, 0.17901566624641418, 0.43521347641944885, 0.058860547840595245, 0.3545265793800354, 0.2403862625360489, 0.04162526875734329, 0.09441803395748138, 0.3228261172771454, 0.039394624531269073, 0.04720425605773926, -0.3697526454925537, 0.19553758203983307, -0.10321436077356339, 0.052233655005693436, -0.25893667340278625, -0.06078781560063362, 0.010551169514656067, 0.2736927568912506, -0.2823358178138733, -0.505685031414032, 0.20172344148159027, -0.0907638892531395, 0.2071509212255478, 0.22496207058429718, -0.00010332556848879904, -0.07002581655979156, 0.25728267431259155, -0.20353762805461884, -0.07299688458442688, -0.3186081647872925, -0.172175332903862, -0.38077396154403687, 0.059098176658153534, -0.25137296319007874, 0.015425297431647778, 0.2983245849609375, -0.017856193706393242, -0.06950046867132187, 0.49333348870277405, 0.36715182662010193, 0.3225339651107788, 0.11518656462430954, -0.12043792754411697, 0.14903834462165833, -0.00007404616189887747, 0.04818253964185715, -0.030162902548909187, 0.48932716250419617, 0.1714175045490265, -0.23374946415424347, 0.08544207364320755, 0.1575324833393097, -0.21839790046215057, -0.1051616370677948, 0.07546328008174896, 0.1099676713347435, -0.16624441742897034, -0.34568437933921814, 0.12172012031078339, 0.09353788197040558, 0.25997504591941833, -0.2827695608139038, -0.037435609847307205, 0.10490381717681885, 0.16007444262504578, -0.693611204624176, 0.28311461210250854, 0.36831367015838623, -0.2686058282852173, 0.13473305106163025, 0.013303758576512337, 0.1663525551557541, 0.027222922071814537, -0.05927738547325134, 0.07354269921779633, -0.0005272343405522406, -0.19281280040740967, -0.08728981763124466, 0.20688195526599884, 0.0006387862376868725, 0.12937036156654358, 0.0012708086287602782, -0.18455779552459717, 0.21110066771507263, -0.22593499720096588, -0.06721753627061844, -0.15384145081043243, 0.00411043269559741, -0.17602206766605377, -0.1566062718629837, 0.5614191293716431, 0.11084701120853424, 0.047018855810165405, 0.3558770716190338, 0.09987448155879974, 0.12488258630037308, -0.20478177070617676, 0.12991972267627716, 0.253900408744812, -0.0032391666900366545, 0.21122725307941437, 0.002761092269793153, -0.1976274847984314, -0.31833967566490173, -0.22646059095859528, 0.3368728756904602, 0.1330849826335907, -0.16729706525802612, -0.4322218894958496, 0.14324098825454712, 0.10575684159994125, 0.14135678112506866, 0.021306278184056282, 0.21310269832611084, 0.19555985927581787, 0.29226449131965637, 0.015584745444357395, 0.20123456418514252, -0.3497922420501709, -0.2578386962413788, -0.04672883823513985, 0.2218296229839325, -0.3768259584903717, -0.1314045637845993, 0.23589873313903809, -0.13872180879116058, 0.11090464890003204, 0.28525158762931824, 0.14129695296287537, -0.1839267760515213, -0.07991790026426315, -0.154981791973114, 0.05373836308717728, 0.13828372955322266, 0.07597234100103378, 0.13851234316825867, 0.16701535880565643, -0.31598350405693054, -0.08217889815568924, 0.1015487089753151, -0.4818617105484009, -0.0225308109074831, -0.0588521808385849, 0.27577704191207886, -0.06528156250715256, -0.06949253380298615, -0.5188579559326172, 0.16899558901786804, 0.08983437716960907, -0.31076931953430176, 0.026084797456860542, -0.21244578063488007, -0.14783695340156555, -0.18523946404457092, 0.15502309799194336, 0.5013538002967834, -0.55854332447052, 0.16944313049316406, 0.2123727947473526, 0.015549248084425926, 0.31846505403518677, 0.1244623064994812, -0.09686478227376938, -0.14305730164051056, -0.1716035008430481, -0.02177034504711628, 0.24932099878787994, -0.2651790678501129, -0.22262440621852875, 0.3089699149131775, -0.0901825800538063, -0.058613408356904984, 0.04602937400341034, -0.10656534880399704, 0.14712849259376526, -0.18862955272197723, 0.11448357999324799, 0.37251996994018555, -0.019681906327605247, 0.28097352385520935, -0.21919243037700653, -0.18498815596103668, 0.22392745316028595, -0.004494237247854471, -0.27014797925949097, -0.1170027032494545, 0.2115180343389511, 0.06695077568292618, 0.19733847677707672, -0.14169315993785858, -0.20568080246448517, 0.15318840742111206, 0.24119463562965393, -0.20496927201747894, -0.10224051773548126, 0.24129441380500793, 0.03584833815693855, -0.04033314064145088, -0.2560584843158722, 0.1637057065963745, -0.30692771077156067, -0.1502532809972763, -0.17048458755016327, 0.035157423466444016, -0.36801421642303467, -0.26938819885253906, 0.24289418756961823, -0.03711696341633797, -0.06839825212955475, -0.012356891296803951, -0.09558969736099243, 0.2467944175004959, -0.013406691141426563, -0.012604602612555027, -0.2271219789981842, 0.17894214391708374, -0.21315012872219086, -0.18688373267650604, 0.31834688782691956, 0.29551246762275696, 0.16681498289108276, -0.11773636192083359, -0.2245190143585205, 0.24069900810718536, 0.03729797527194023, 0.3637154698371887, -0.22094976902008057, -0.29437345266342163, 0.45547911524772644, -0.46034881472587585, 0.0675632581114769, 0.4531860649585724, 0.29571741819381714, -0.08738129585981369, 0.22945630550384521, 0.359246164560318, -0.15948721766471863, -0.01673843525350094, -0.07259506732225418, -0.061430517584085464, 0.25799134373664856, 0.08488915860652924, 0.1084827408194542, -0.15747684240341187, 0.3592934310436249, 0.6213697791099548, 0.20192252099514008, -0.025705846026539803, -0.12329301983118057, 0.014179369434714317, 0.4981166422367096, -0.05185266211628914, -0.11697989702224731, 0.08976234495639801, 0.05357629805803299, -0.11140954494476318, 0.08948265761137009, 0.0712493360042572, 0.22731877863407135, -0.10566752403974533, -0.3125162720680237, 0.24577540159225464, 0.020614130422472954, -0.2307855635881424, 0.19051817059516907, -0.1344037652015686, -0.03681012988090515, -0.01562892459332943, 0.060847267508506775, 0.1106145903468132, -0.2907765209674835, -0.1287158876657486, 0.10400191694498062, 0.17763374745845795, -0.3210398554801941, 0.32189521193504333, -0.4479724168777466, -0.3783269226551056, -0.3087703585624695, 0.23261582851409912, -0.14332221448421478, 0.021926037967205048, -0.15951818227767944, 0.017354704439640045, 0.06312073022127151, 0.16839121282100677, -0.20438571274280548, 0.04005610942840576, -0.06831017881631851, -0.17543520033359528, 0.12252112478017807, -0.21828120946884155, -0.2620294392108917, 0.15591323375701904, 0.4287249445915222, -0.059964727610349655, 0.08356741815805435, -0.34897249937057495, 0.14156129956245422, 0.27667421102523804, -0.14653408527374268, 0.1601235419511795, -0.26120686531066895, 0.13439832627773285, -0.03718798607587814, 0.09213393926620483, -0.0619957335293293, -0.4000656306743622, 0.15400151908397675, -0.055968958884477615, -0.0773291140794754, 0.18515215814113617, 0.007583982776850462, -0.320229172706604, -0.2613767981529236, -0.11411198228597641, -0.49829167127609253, -0.3325834572315216, -0.18118058145046234, 0.0014526663580909371, 0.10167486220598221, 0.3449441194534302, 0.13686257600784302, 0.049754880368709564, 0.21421492099761963, -0.1142481192946434, -0.0944054052233696, -0.2219957709312439, 0.35070928931236267, -0.3976946771144867, -0.524229109287262, 0.08968207240104675, -0.04436137527227402, 0.4002029001712799, -0.2082485854625702, -0.1853058636188507, -0.02733917161822319, -0.11319736391305923, 0.11915940791368484, 0.044981375336647034, 0.10422008484601974, -0.004182466305792332, -0.022797565907239914, -0.04591416195034981, -0.11862985789775848, -0.1014542281627655, -0.1292087584733963, 0.0962449312210083, 0.30295950174331665, 0.03990505635738373, 0.24789831042289734, -0.2661064565181732, 0.09984785318374634, 0.260648250579834, 0.04746893048286438, 0.5908398628234863, -0.14221948385238647, 0.3743228018283844, -0.08166126161813736, -0.12480439990758896, 0.12463627755641937, -0.27333685755729675, -0.05621949955821037, 0.2765926122665405, -0.11660390347242355, -0.28676116466522217, -0.31356242299079895, 0.039699625223875046, -0.3513280153274536, -0.2961667776107788, 0.18854564428329468, 0.059500355273485184, 0.0969611331820488, 0.024850372225046158, 0.135379821062088, 0.07016246020793915, -0.30880045890808105, -0.11107856780290604, 0.29897361993789673, -0.14623552560806274, 0.1520853340625763, -0.15216189622879028, -0.4839821755886078, -0.24144673347473145, 0.11344850808382034, 0.17112259566783905, 0.4359162747859955, -0.03673863783478737, 0.17631292343139648, 0.07949723303318024, -0.1191369965672493, 0.21652059257030487, 0.1351022869348526, 0.04350768029689789, 0.10715160518884659, 0.15856654942035675, 0.11581304669380188, -0.10625212639570236, -0.20475266873836517, 0.17654292285442352, 0.12131055444478989, -0.26269668340682983, -0.04572753980755806, 0.05516010895371437, 0.022996198385953903, 0.37029382586479187, -0.13299785554409027, 0.10605258494615555, -0.463356077671051, -0.5534041523933411, -0.024614688009023666, -0.16168533265590668, 0.18985417485237122, 0.29340115189552307, -0.2198517769575119, 0.009320704266428947, 0.12020055949687958, -0.25228625535964966, 0.24370630085468292, 0.4230840802192688, 0.3740917146205902, 0.15270976722240448, -0.022092757746577263, -0.18542014062404633, -0.07221879065036774, 0.1872943788766861, 0.7113945484161377, 0.03370889276266098, -0.36425986886024475, 0.11059419065713882, -0.27612146735191345, 0.3163727819919586, 0.19741810858249664, -0.1727219969034195, -0.07856247574090958, -0.1281435787677765, -0.06576399505138397, -0.22214925289154053, 0.0830032080411911, 0.2763555943965912, 0.1747070699930191, -0.5603708624839783, -0.482534259557724, 0.468864381313324, -0.09146072715520859, 0.19336523115634918, 0.036570142954587936, -0.06316424161195755, -0.30733975768089294, 0.25597435235977173, -0.01148857269436121, 0.8470343351364136, 0.20991593599319458, 0.1276678740978241, 0.29321545362472534, 0.017372602596879005, 0.2906736433506012, -0.08322396129369736, 0.20380300283432007, -0.2968002259731293, -0.16011080145835876, -0.012613299302756786, 0.1855672001838684, 0.24042443931102753, 0.06362214684486389, -0.35598328709602356, 0.22429151833057404, 0.06486190110445023, -0.16832305490970612, 0.16154257953166962, 0.1692892611026764, -0.189838707447052, -0.2559834420681, -0.5498683452606201, 0.24202294647693634, -0.07417533546686172, 0.0597812719643116, -0.09014071524143219, -0.20307554304599762, 0.020164940506219864, -0.3251197338104248, -0.2977226972579956, 0.28880444169044495, -0.4078463315963745, 0.16684633493423462, -0.20217081904411316, -0.6580176949501038, 0.28532764315605164, 0.12429053336381912, 0.1985473334789276, 0.20028941333293915, -0.02164534106850624, 0.12313026934862137, 0.27776435017585754, -0.02276177890598774, -0.013376292772591114, 0.11911118775606155, 0.06870024651288986, -0.1644909381866455, -0.06194031238555908, 0.16699349880218506, 0.10849648714065552, -0.005296698771417141, 0.4046754837036133, 0.039038654416799545, -0.21949435770511627, -0.11171023547649384, -0.2296900600194931, -0.20042897760868073, 0.18410281836986542, -0.05921255797147751, 0.19262047111988068, -0.06887445598840714, -0.12790456414222717, 0.003683091141283512, 0.06806308776140213, -0.30477428436279297, -0.14665919542312622, 0.0651412233710289, -0.06779725104570389, -0.15245097875595093, 0.4950760304927826, 0.1653570681810379, -0.23780004680156708, -0.11860733479261398, 0.22359657287597656, -0.16045626997947693, -0.4836041331291199, -0.04245012626051903, 0.19999733567237854, -0.012062585912644863, 0.04104302451014519, 0.6318265199661255, -0.01750299707055092, 0.01724156178534031, 0.10217873752117157, -0.49667423963546753, -0.2612888514995575, -0.06849529594182968, -0.10126619040966034, -0.04467203840613365, 0.21024192869663239, 0.3430013358592987, 0.10564155131578445, -0.14398112893104553, -0.34839797019958496, 0.046959709376096725, -0.06357262283563614, 0.07444414496421814, 0.29071420431137085, -0.08194301277399063, 0.11723281443119049, 0.06072886660695076, 0.16601383686065674, 0.3002021610736847, -0.02759787254035473, -0.2418089061975479, -0.16976918280124664, 0.05613163113594055, -0.03564969450235367, -0.3160923421382904, -0.0820617601275444, 0.05053484067320824, -0.06929519027471542, -0.09360852092504501, 0.12228433042764664, 0.07307422906160355, 0.0730859786272049, 0.17470593750476837, -0.3870048224925995, 0.13151851296424866, -0.019794734194874763, 0.2080584168434143, -0.21562086045742035, 0.561953067779541, 0.17978622019290924, 0.16045095026493073, 0.049826424568891525, 0.05274134874343872, -0.15327273309230804, -0.02524915523827076, -0.3163547217845917, 0.057834602892398834, 0.12773221731185913, -0.3855438232421875, 0.3905308246612549, 0.12644381821155548, -0.008264671079814434, 0.5075646042823792, -0.13792715966701508, -0.021176256239414215, 0.42582547664642334, 0.20204780995845795, -0.3272441327571869, 0.10574483871459961, -0.32969462871551514, -0.06406568735837936, -0.0720491111278534, 0.2804105579853058, 0.2723202407360077, -0.15867458283901215, 0.21670058369636536, -0.1451958268880844, 0.4394031763076782, 0.1370036005973816, 0.39149224758148193, 0.42400699853897095, 0.1557472199201584, 0.27379047870635986, -0.09570947289466858, 0.12829189002513885, -0.047056932002305984, 0.08878332376480103, -0.5585888028144836, 0.0297573022544384, 0.09045170992612839, 0.1773568093776703, -0.1411343216896057, -0.3880749046802521, -0.04291015863418579, -0.1291213482618332, -0.19829805195331573, 0.33518704771995544, 0.14718158543109894, 0.5732954144477844, -0.4751990735530853, -0.05341057479381561, -0.1215256080031395, 0.16434872150421143, -0.15612846612930298, 0.05968303978443146, 0.07762235403060913, 0.013826952315866947, -0.2852061092853546, 0.18480291962623596, -0.039228372275829315, 0.12427692115306854, -0.07613132894039154, 0.32210350036621094, -0.18201600015163422, -0.050540756434202194, -0.011067702434957027, -0.004078116733580828, 0.06365891546010971, -0.08794938772916794, 0.4701710045337677, 0.27874743938446045, 0.19635508954524994, 0.2396329790353775, 0.09662844985723495, 0.6247938871383667, 0.4012525975704193, -0.13973264396190643, -0.03709970414638519, -0.17242151498794556, 0.06266674399375916, 0.12046810984611511, 0.09729161113500595, 0.3171805143356323, 0.4335693418979645, 0.1459420621395111, 0.20745764672756195, -0.13580673933029175, -0.0845307931303978, 0.2828322947025299, -0.024657830595970154, 0.06377893686294556, 0.0951790139079094, -0.03578190878033638, 0.22397758066654205, -0.5465280413627625, -0.07459979504346848, -0.3710964024066925, 0.28545233607292175, 0.3344533443450928, 0.07663389295339584, 0.03165307641029358, -0.11546830087900162, 0.1219320297241211, 0.11464282125234604, 0.4839322865009308, 0.2948762774467468, 0.06736548244953156, -0.19347448647022247, -0.027468545362353325, -0.7056213617324829, 0.22355115413665771, 0.09089982509613037, -0.3779623806476593, -0.24089474976062775, -0.2864888906478882, 0.017779726535081863, 0.33940058946609497, -0.040315330028533936, 0.2757696211338043, 0.08419055491685867, 0.060477714985609055, -0.08088623732328415, 0.014154787175357342, -0.1719040423631668, 0.011617729440331459, -0.24423788487911224, -0.25198301672935486, 0.06908067315816879, -0.26012858748435974, 0.11660344153642654, -0.28695979714393616, -0.2666410505771637, -0.435065358877182, 0.0025402309838682413, 0.27720504999160767, 0.19450891017913818, 0.4332049489021301, -0.2569180727005005, -0.13834135234355927, -0.11967115849256516, -0.17580153048038483, -0.06275220215320587, 0.3558354675769806, 0.23941993713378906, 0.06176326796412468, 0.05469987541437149, 0.1469731330871582, -0.3888510763645172, 0.31690534949302673, -0.03807852417230606, -0.16578993201255798, -0.24260582029819489, 0.03631599619984627, -0.0004941673832945526, -0.08873268216848373, 0.20332670211791992, 0.3809029459953308, -0.10027855634689331, 0.1084834635257721, -0.12042579799890518, -0.4743165671825409, 0.1404094398021698, -0.5154396891593933, -0.16192232072353363, 0.13509494066238403, 0.23748281598091125, -0.1778983473777771, 0.1382846236228943, -0.4251001179218292, 0.25776463747024536, -0.029769066721200943, -0.1882053017616272, -0.28136566281318665, 0.2817213833332062, -0.3067501485347748, -0.10855135321617126, -0.08045680820941925, 0.42271313071250916, 0.21399880945682526, -0.18789242208003998, 0.10649852454662323, -0.3179031014442444 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
It should be in `xtreme.py:L755`: ```python if self.config.name == "tydiqa" or self.config.name.startswith("MLQA") or self.config.name == "SQuAD": with open(filepath) as f: data = json.load(f) ``` Could you try to add the encoding parameter: ```python open(filepath, encoding='utf-8') ```
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
36
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly It should be in `xtreme.py:L755`: ```python if self.config.name == "tydiqa" or self.config.name.startswith("MLQA") or self.config.name == "SQuAD": with open(filepath) as f: data = json.load(f) ``` Could you try to add the encoding parameter: ```python open(filepath, encoding='utf-8') ```
[ -0.2695925235748291, -0.0288402047008276, -0.02087145298719406, 0.20286022126674652, 0.44841986894607544, -0.12191356718540192, -0.14026272296905518, 0.27419978380203247, -0.3068619668483734, 0.130818173289299, 0.11824841052293777, 0.597236692905426, 0.010757457464933395, 0.3725728690624237, 0.14938722550868988, 0.007484128698706627, -0.05019538849592209, 0.2807825207710266, 0.11429353803396225, 0.01605868525803089, -0.3124450445175171, 0.1804727464914322, -0.10919304937124252, -0.0322539396584034, -0.35689520835876465, -0.09025057405233383, 0.12765653431415558, 0.2784459590911865, -0.4236948490142822, -0.5119255185127258, 0.18339408934116364, -0.012981337495148182, 0.223047137260437, 0.26534759998321533, -0.00010584413394099101, -0.045437686145305634, 0.3183934688568115, -0.2982025742530823, -0.2216440886259079, -0.3611504137516022, -0.25169289112091064, -0.3150951862335205, 0.19892095029354095, -0.26378434896469116, -0.10069140791893005, 0.24040080606937408, 0.01994495838880539, -0.0952380821108818, 0.5233157277107239, 0.29095301032066345, 0.2963302433490753, 0.07383273541927338, -0.07441070675849915, 0.14868532121181488, -0.028230013325810432, 0.14825843274593353, -0.14755767583847046, 0.445170134305954, 0.2602996230125427, -0.09113448113203049, 0.1426793932914734, 0.27669793367385864, -0.15152069926261902, -0.05699332803487778, 0.040713753551244736, 0.04991946741938591, -0.15190298855304718, -0.4266544282436371, 0.12090637534856796, 0.10552922636270523, 0.17935632169246674, -0.3225923180580139, -0.09619425237178802, 0.08705725520849228, 0.19632788002490997, -0.5246252417564392, 0.25342077016830444, 0.34718063473701477, -0.29698771238327026, 0.09745146334171295, -0.07730845361948013, 0.10505440086126328, 0.03751968964934349, -0.03499782085418701, 0.0779622420668602, 0.21095596253871918, -0.1810683310031891, -0.06676225364208221, 0.1364755481481552, -0.021838510408997536, 0.21108442544937134, 0.01289533730596304, -0.22358901798725128, 0.17907848954200745, -0.15875260531902313, -0.13363878428936005, -0.18170149624347687, -0.08758065849542618, -0.08736172318458557, -0.13826586306095123, 0.5145918726921082, 0.12066725641489029, -0.05869201570749283, 0.35606828331947327, 0.11077941954135895, 0.10490923374891281, -0.09842173010110855, 0.22211968898773193, 0.183380588889122, 0.12795667350292206, 0.09569340944290161, 0.02964376099407673, -0.21414430439472198, -0.132717564702034, -0.3393443822860718, 0.2891262173652649, 0.14419078826904297, -0.16742947697639465, -0.36489138007164, 0.08518286049365997, -0.028666596859693527, 0.10877252370119095, 0.14220209419727325, 0.20703095197677612, 0.15106689929962158, 0.23216573894023895, 0.06101919710636139, 0.26383066177368164, -0.3025707006454468, -0.2582399249076843, -0.09830158948898315, 0.2584836781024933, -0.36695924401283264, -0.11516653746366501, 0.19706985354423523, -0.09071145206689835, 0.19829778373241425, 0.13639523088932037, 0.18439830839633942, -0.2621595561504364, 0.04633153975009918, -0.12189565598964691, 0.061019476503133774, 0.08384036272764206, 0.08854003995656967, 0.03507687896490097, 0.17561782896518707, -0.3857582211494446, -0.09535162895917892, 0.10328777879476547, -0.49300846457481384, 0.03640999644994736, -0.11235116422176361, 0.2696916162967682, -0.14081831276416779, -0.054590847343206406, -0.5896962881088257, 0.15818221867084503, 0.05574828386306763, -0.26817455887794495, 0.07981052249670029, -0.1571022868156433, -0.0741814374923706, -0.1766548603773117, 0.21833835542201996, 0.4230658710002899, -0.4035664498806, 0.03338878974318504, 0.23494572937488556, 0.055082812905311584, 0.33887779712677, 0.061215274035930634, -0.20302510261535645, -0.14101442694664001, -0.10472790151834488, -0.0357990562915802, 0.3881506621837616, -0.4512214660644531, -0.21391277015209198, 0.2725944221019745, -0.050926875323057175, -0.021616196259856224, -0.030132461339235306, -0.13111528754234314, 0.05548090860247612, -0.10263276100158691, 0.13797713816165924, 0.42754849791526794, 0.0005010747699998319, 0.33316195011138916, -0.26108863949775696, -0.273588627576828, 0.11344800889492035, 0.10895480215549469, -0.22556711733341217, -0.14876008033752441, 0.17487922310829163, 0.33161461353302, 0.24495959281921387, -0.1301337331533432, -0.24559897184371948, 0.11324569582939148, 0.23608015477657318, -0.335326611995697, -0.20258696377277374, 0.2305118292570114, 0.010263627395033836, -0.03924015909433365, -0.2957904040813446, 0.23973025381565094, -0.3415225148200989, -0.0709598958492279, -0.13570573925971985, 0.07057249546051025, -0.4842488467693329, -0.2870800197124481, 0.2603209614753723, 0.004070338327437639, -0.14709416031837463, -0.04893101379275322, -0.14450953900814056, 0.30224093794822693, -0.04758488014340401, 0.010671774856746197, -0.2947005331516266, 0.21314668655395508, -0.18766267597675323, -0.28113704919815063, 0.300401508808136, 0.27486148476600647, 0.1912815123796463, -0.16716453433036804, -0.2761874496936798, 0.17265810072422028, 0.057298850268125534, 0.3439624011516571, -0.17371170222759247, -0.2655014991760254, 0.447888046503067, -0.47997185587882996, 0.051420990377664566, 0.4397871196269989, 0.21580570936203003, -0.100925512611866, 0.2564742863178253, 0.3604639172554016, -0.04985680431127548, 0.00579025549814105, -0.006020999047905207, -0.16067954897880554, 0.19115383923053741, 0.021674685180187225, 0.04191362485289574, -0.1418725997209549, 0.2428824007511139, 0.6975976228713989, 0.24687901139259338, -0.030325161293148994, -0.1135324090719223, 0.05222306400537491, 0.5576234459877014, 0.013454672880470753, -0.04850131273269653, 0.047993723303079605, 0.1208852156996727, -0.1739581674337387, 0.12389121949672699, 0.06891302764415741, 0.16678020358085632, -0.05298461392521858, -0.27373600006103516, 0.23462891578674316, 0.01854010485112667, -0.15786989033222198, 0.1978088617324829, -0.09908951818943024, 0.06866103410720825, 0.0721917599439621, 0.19925661385059357, 0.010044455528259277, -0.30359962582588196, -0.2533630132675171, 0.04245830327272415, 0.14456717669963837, -0.22977979481220245, 0.34446606040000916, -0.46690240502357483, -0.4023394286632538, -0.23577280342578888, 0.1430751532316208, -0.18676401674747467, -0.05785228684544563, -0.12088368088006973, -0.05683891847729683, 0.15535195171833038, 0.2601635158061981, -0.13328273594379425, -0.011390983127057552, -0.1319016069173813, -0.20661897957324982, 0.06437881290912628, -0.2219240963459015, -0.20308014750480652, 0.1332082897424698, 0.4137876033782959, -0.0475224144756794, 0.02617335505783558, -0.3408568203449249, 0.09646566957235336, 0.33361518383026123, -0.22996807098388672, 0.30833926796913147, -0.2643294036388397, 0.15967001020908356, -0.027984444051980972, 0.10914640128612518, -0.0951455682516098, -0.38749179244041443, 0.2449345886707306, -0.0245358906686306, -0.12768349051475525, 0.056190069764852524, -0.10401361435651779, -0.20812304317951202, -0.24077539145946503, 0.0273783877491951, -0.48493677377700806, -0.3486638069152832, -0.20085453987121582, 0.12954604625701904, 0.1333160549402237, 0.39288079738616943, 0.224752277135849, 0.1689443141222, 0.21778139472007751, -0.057053353637456894, -0.13140133023262024, -0.38194823265075684, 0.2595174014568329, -0.32005202770233154, -0.33553260564804077, 0.04274182766675949, -0.0658445954322815, 0.5374211072921753, -0.22147874534130096, -0.17972880601882935, -0.1533402055501938, -0.008825335651636124, 0.10469338297843933, -0.06501051038503647, 0.1340196430683136, 0.004933636169880629, -0.011369907297194004, -0.014720764011144638, -0.15445901453495026, -0.13917432725429535, -0.07446615397930145, 0.13699385523796082, 0.40622299909591675, -0.08339519798755646, 0.22250649333000183, -0.22681844234466553, 0.07877428829669952, 0.22525537014007568, 0.004276095889508724, 0.6793311834335327, -0.0974562019109726, 0.3227318823337555, -0.1281469613313675, -0.08775274455547333, 0.16255834698677063, -0.10002026706933975, -0.07270613312721252, 0.19747884571552277, -0.04490135237574577, -0.2861959636211395, -0.3524032235145569, 0.015064259991049767, -0.34099894762039185, -0.23408712446689606, 0.0905006006360054, 0.26255273818969727, -0.03973665460944176, -0.02301427163183689, 0.18321432173252106, 0.040613625198602676, -0.1779967099428177, -0.12387746572494507, 0.28726863861083984, -0.15259139239788055, 0.22168242931365967, -0.28701329231262207, -0.5363577604293823, -0.16441640257835388, 0.13381269574165344, 0.21023748815059662, 0.27694645524024963, 0.044546354562044144, 0.18235087394714355, 0.13784250617027283, -0.16472016274929047, 0.17142954468727112, 0.07347129285335541, 0.0071998899802565575, 0.07981596142053604, 0.10176586359739304, 0.026204535737633705, -0.10088814049959183, -0.16711798310279846, 0.19113115966320038, 0.1716040074825287, -0.18840093910694122, -0.15748009085655212, -0.0023055069614201784, 0.07058456540107727, 0.275267630815506, -0.07509741932153702, 0.15875233709812164, -0.4937397837638855, -0.6795376539230347, -0.18205948173999786, -0.2335927039384842, 0.22089499235153198, 0.3266316056251526, -0.043483395129442215, -0.013529319316148758, 0.1251823902130127, -0.2238430380821228, 0.22706924378871918, 0.5767015814781189, 0.42696118354797363, 0.2597106099128723, -0.08155285567045212, -0.18138085305690765, -0.08507387340068817, 0.2476550042629242, 0.7725031971931458, 0.0393483005464077, -0.2483741194009781, 0.17886829376220703, -0.09743271768093109, 0.2881146967411041, 0.2831267714500427, -0.08747301995754242, -0.1002374142408371, -0.1817706972360611, -0.056520115584135056, -0.10195425897836685, 0.2562609612941742, 0.149409219622612, 0.02057339996099472, -0.5256537199020386, -0.4884105920791626, 0.5606644749641418, -0.05491518974304199, 0.18984006345272064, 0.10738977044820786, -0.04928802698850632, -0.3160759508609772, 0.29098212718963623, 0.08241745084524155, 0.9118962287902832, 0.20741169154644012, 0.1326509267091751, 0.3785892426967621, -0.007850750349462032, 0.266311913728714, -0.11122916638851166, 0.22339898347854614, -0.2986948788166046, -0.061455775052309036, 0.05071061849594116, 0.13211506605148315, 0.1290605068206787, 0.07396543025970459, -0.3411414623260498, 0.15889418125152588, -0.030506640672683716, -0.3309115767478943, 0.12979677319526672, 0.3077484369277954, -0.20231245458126068, -0.2501310110092163, -0.7101185917854309, 0.22570669651031494, -0.2092168927192688, 0.035071831196546555, -0.08716505020856857, -0.25600624084472656, -0.07222327589988708, -0.2950129806995392, -0.20784108340740204, 0.3760313391685486, -0.5171031951904297, 0.10672181844711304, -0.06296348571777344, -0.559978723526001, 0.24954339861869812, 0.12346801161766052, 0.10440866649150848, 0.21844471991062164, -0.016044581308960915, 0.2406463772058487, 0.2833394706249237, -0.005950608290731907, 0.011053151451051235, 0.17585374414920807, 0.08053074777126312, -0.24791255593299866, -0.077008455991745, 0.20054401457309723, 0.13862545788288116, -0.09121827781200409, 0.339009553194046, 0.04288497939705849, -0.20788750052452087, -0.10638410598039627, -0.30974212288856506, -0.13057442009449005, 0.14715451002120972, -0.0394895114004612, 0.16914914548397064, -0.025610847398638725, -0.20118467509746552, -0.0777621641755104, 0.2628125250339508, -0.35462310910224915, -0.11166637390851974, 0.10453642904758453, -0.023659812286496162, -0.05511326715350151, 0.47005897760391235, 0.11001337319612503, -0.2028769999742508, -0.11282304674386978, 0.2733696699142456, -0.10008379071950912, -0.44067251682281494, -0.015656623989343643, 0.13848088681697845, -0.19548402726650238, 0.008642388507723808, 0.7061374187469482, -0.013293096795678139, 0.05167163908481598, 0.22281016409397125, -0.3965666592121124, -0.3372615575790405, 0.0339793898165226, -0.14421528577804565, -0.009089235216379166, 0.1709856241941452, 0.42241501808166504, 0.011977479793131351, -0.07142896950244904, -0.3345584571361542, 0.07723739743232727, -0.18518324196338654, 0.09221715480089188, 0.09201706200838089, -0.1470714956521988, 0.13618871569633484, 0.10423015803098679, 0.16436518728733063, 0.3269127905368805, -0.12798921763896942, -0.22199632227420807, -0.18261753022670746, 0.06941443681716919, -0.000019848497686325572, -0.34609654545783997, -0.2182556688785553, 0.05245860666036606, -0.07328472286462784, -0.07807981967926025, 0.12752051651477814, 0.029942983761429787, 0.12787893414497375, 0.15452609956264496, -0.25983572006225586, 0.07354377955198288, 0.07107267528772354, 0.125091552734375, -0.002125657396391034, 0.5763776302337646, 0.22224734723567963, 0.11968374997377396, 0.02210848592221737, 0.03708358108997345, -0.07273749262094498, -0.031101088970899582, -0.25515639781951904, 0.20318284630775452, 0.08677618950605392, -0.3685716390609741, 0.3687851130962372, 0.08116134256124496, -0.07435273379087448, 0.4766403138637543, -0.19202706217765808, -0.051103945821523666, 0.267804354429245, 0.19453838467597961, -0.2686940133571625, 0.05658843368291855, -0.18238720297813416, -0.06019308418035507, -0.02397295832633972, 0.40541353821754456, 0.14808200299739838, -0.03054216131567955, 0.23711834847927094, -0.07087509334087372, 0.43693023920059204, 0.22652465105056763, 0.3792155385017395, 0.2138877809047699, -0.0676763579249382, 0.17078754305839539, -0.08431767672300339, 0.11060294508934021, -0.02693868614733219, -0.07613085210323334, -0.5743140578269958, 0.1385023295879364, 0.07514075189828873, 0.09835900366306305, 0.01619846373796463, -0.16133753955364227, -0.13379637897014618, -0.08204992115497589, -0.07032539695501328, 0.3402714729309082, 0.09143824130296707, 0.4065171778202057, -0.40544143319129944, -0.0660921037197113, -0.008207072503864765, 0.1307271271944046, -0.12023945897817612, 0.0487683042883873, 0.0025683899875730276, -0.04466542974114418, -0.3869643807411194, 0.10051105171442032, -0.10382167994976044, 0.06037040054798126, -0.12922823429107666, 0.34649184346199036, -0.1597108393907547, 0.05601833760738373, 0.02904130332171917, 0.08749444782733917, 0.07930701971054077, -0.1478641778230667, 0.6503375768661499, 0.2597218155860901, 0.14483730494976044, 0.1950768083333969, 0.10924005508422852, 0.5741667747497559, 0.37796834111213684, -0.18208332359790802, -0.04523420333862305, -0.09107152372598648, 0.012746825814247131, 0.07133198529481888, 0.02154851332306862, 0.4151418209075928, 0.2848590910434723, 0.23182080686092377, 0.20369566977024078, -0.16369003057479858, -0.15693943202495575, 0.2618769109249115, -0.056618623435497284, 0.1092543974518776, 0.20530961453914642, -0.09732166677713394, 0.2734783887863159, -0.4711078107357025, -0.09926729649305344, -0.4386305510997772, 0.30834391713142395, 0.23609843850135803, -0.001372912316583097, 0.03190816938877106, -0.21505887806415558, 0.1161063089966774, -0.04035770520567894, 0.5322918891906738, 0.22666676342487335, -0.0033687197137624025, -0.15691253542900085, -0.08407401293516159, -0.5758488178253174, 0.2599772810935974, 0.06490355730056763, -0.44648805260658264, -0.16341766715049744, -0.18274706602096558, 0.021105702966451645, 0.4211796224117279, -0.00965928565710783, 0.3094620108604431, 0.1508069783449173, 0.0013076886534690857, -0.19902782142162323, -0.03409441560506821, -0.13089953362941742, 0.04684362933039665, -0.1482464075088501, -0.2397923320531845, -0.029026828706264496, -0.3242885172367096, 0.11476165801286697, -0.2961999177932739, -0.40417516231536865, -0.4243038594722748, 0.027178330346941948, 0.2851332426071167, 0.17059637606143951, 0.3588990271091461, -0.32292452454566956, -0.23420089483261108, -0.01748085953295231, -0.2376614511013031, -0.10614064335823059, 0.3435540497303009, 0.21302932500839233, 0.3197692036628723, 0.10299425572156906, 0.273210734128952, -0.4937644600868225, 0.33576375246047974, -0.08371371775865555, -0.2716359496116638, -0.18800878524780273, 0.0018072605598717928, -0.08516848087310791, -0.020852945744991302, 0.09978491067886353, 0.371254563331604, -0.033804651349782944, 0.15743932127952576, -0.18498662114143372, -0.43571627140045166, 0.34546583890914917, -0.42259812355041504, -0.16986680030822754, 0.20286786556243896, 0.1223296970129013, -0.15539056062698364, 0.07979903370141983, -0.5110158324241638, 0.25546836853027344, 0.019768167287111282, -0.1227928027510643, -0.2781636714935303, 0.29596978425979614, -0.29037976264953613, -0.07860345393419266, -0.05855157971382141, 0.3128240704536438, 0.2399626076221466, -0.12064538151025772, -0.013589653186500072, -0.23343436419963837 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
Hello @jerryIsHere :) Did it work ? If so we may change the dataset script to force the utf-8 encoding
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
20
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly Hello @jerryIsHere :) Did it work ? If so we may change the dataset script to force the utf-8 encoding
[ -0.3731936514377594, -0.0007191927870735526, -0.05706849694252014, 0.14228777587413788, 0.4632261395454407, -0.05833658576011658, 0.010564742609858513, 0.22932976484298706, -0.28686586022377014, 0.04334626346826553, 0.15359388291835785, 0.4569700062274933, -0.013836448080837727, 0.3835911750793457, 0.26692718267440796, 0.025212429463863373, 0.016434406861662865, 0.28148773312568665, -0.10305996984243393, -0.021944260224699974, -0.27945011854171753, 0.15532703697681427, -0.06297564506530762, 0.0027558619622141123, -0.3882114589214325, -0.0570775642991066, 0.07147728651762009, 0.27726686000823975, -0.3569343090057373, -0.5312874913215637, 0.20947031676769257, 0.05353632941842079, 0.18639728426933289, 0.27385926246643066, -0.00010227883467450738, -0.002941237296909094, 0.3291234076023102, -0.2302229404449463, -0.15953870117664337, -0.2611719071865082, -0.2483103722333908, -0.35307779908180237, 0.11061465740203857, -0.20777063071727753, -0.02372043766081333, 0.16121360659599304, 0.03684926778078079, -0.12971629202365875, 0.46141839027404785, 0.2716948986053467, 0.3374946415424347, 0.1603052169084549, -0.06368280202150345, 0.11947223544120789, -0.022356873378157616, 0.15250501036643982, -0.05236173793673515, 0.34658282995224, 0.2546725869178772, -0.19295160472393036, 0.08558350056409836, 0.25328490138053894, -0.136810764670372, -0.09484080970287323, 0.05214723199605942, 0.039527419954538345, -0.16056965291500092, -0.3848978877067566, 0.10532619804143906, 0.16007746756076813, 0.29788345098495483, -0.387959361076355, -0.11832555383443832, 0.08822104334831238, 0.12101837247610092, -0.472383588552475, 0.2392139583826065, 0.304127037525177, -0.24885022640228271, 0.13341124355793, -0.07097576558589935, 0.11294332146644592, 0.029687905684113503, -0.036726322025060654, 0.014722240157425404, 0.09235704690217972, -0.12955859303474426, -0.09768509864807129, 0.12484140694141388, -0.04986855015158653, 0.1877579391002655, 0.05012943595647812, -0.20157957077026367, 0.1952296793460846, -0.17489659786224365, -0.09068579971790314, -0.13890287280082703, 0.03742039576172829, -0.017733659595251083, -0.12687112390995026, 0.47943755984306335, 0.18325693905353546, -0.06753335893154144, 0.313592791557312, 0.14538927376270294, 0.0608675591647625, -0.1526661217212677, 0.27088990807533264, 0.21936079859733582, 0.032170865684747696, 0.13438987731933594, 0.0710698738694191, -0.16986490786075592, -0.21040301024913788, -0.24789313971996307, 0.26689133048057556, 0.1573386788368225, -0.18601061403751373, -0.4112686514854431, 0.09743653982877731, 0.1417267620563507, 0.056199029088020325, 0.06823806464672089, 0.21818125247955322, 0.2298811376094818, 0.3139399588108063, -0.029175562784075737, 0.23343855142593384, -0.35566484928131104, -0.3158358335494995, -0.15235692262649536, 0.21180623769760132, -0.3692721724510193, -0.13075514137744904, 0.1776288002729416, -0.060679174959659576, 0.14888764917850494, 0.17136049270629883, 0.14500418305397034, -0.11410244554281235, 0.04146193712949753, -0.10937375575304031, 0.10054956376552582, 0.1388426572084427, 0.043904587626457214, 0.09622728079557419, 0.18586277961730957, -0.2839115858078003, -0.08422008156776428, 0.06515728682279587, -0.40524882078170776, -0.027474023401737213, -0.13265767693519592, 0.30211034417152405, -0.09767209738492966, -0.07237318158149719, -0.5015496015548706, 0.159666508436203, 0.10645204037427902, -0.2595105469226837, 0.07704997062683105, -0.19231244921684265, -0.06407749652862549, -0.1431925743818283, 0.20951977372169495, 0.4781801104545593, -0.4952625036239624, 0.0663277730345726, 0.19816192984580994, -0.05136746168136597, 0.3271408975124359, 0.06468990445137024, -0.15270385146141052, -0.09506513923406601, -0.18467211723327637, 0.014884050004184246, 0.3477727472782135, -0.3756851851940155, -0.2681889235973358, 0.3038840591907501, -0.043033331632614136, -0.05524091050028801, 0.008512911386787891, -0.01333669014275074, 0.05747561529278755, -0.17727187275886536, 0.05951260030269623, 0.4527762234210968, -0.016030175611376762, 0.2917620539665222, -0.20914500951766968, -0.2561108469963074, 0.19216912984848022, 0.1395072340965271, -0.20739400386810303, -0.15278129279613495, 0.22452345490455627, 0.26289159059524536, 0.25723546743392944, -0.09655852615833282, -0.21114782989025116, 0.20393845438957214, 0.1723736822605133, -0.2741015553474426, -0.16490648686885834, 0.15302744507789612, -0.053228963166475296, -0.01281007844954729, -0.29100412130355835, 0.22130070626735687, -0.35169321298599243, -0.1563195437192917, -0.15892961621284485, 0.038198068737983704, -0.4941667318344116, -0.25569650530815125, 0.28106608986854553, -0.019096555188298225, -0.1264650672674179, 0.013504709117114544, -0.15965192019939423, 0.29638269543647766, 0.01994367130100727, -0.01963086985051632, -0.30176863074302673, 0.21507248282432556, -0.15209877490997314, -0.2504400312900543, 0.3062165677547455, 0.2735080122947693, 0.08922860026359558, -0.1297217160463333, -0.1804228276014328, 0.25878021121025085, 0.046071868389844894, 0.3964957296848297, -0.22969849407672882, -0.24362215399742126, 0.4404163658618927, -0.5327327251434326, 0.09914731234312057, 0.39411330223083496, 0.23435097932815552, -0.15958592295646667, 0.23407551646232605, 0.29265984892845154, -0.1530447155237198, -0.04673640429973602, 0.02124222368001938, -0.09994185715913773, 0.21211063861846924, 0.023097597062587738, 0.0503353476524353, -0.24194766581058502, 0.3193278908729553, 0.5829189419746399, 0.3353445827960968, -0.02606666460633278, -0.10825937241315842, 0.06745188683271408, 0.5159157514572144, -0.032699137926101685, -0.004393285606056452, 0.03916063532233238, 0.06458520144224167, -0.13662071526050568, 0.08825867623090744, 0.10234048217535019, 0.1932416558265686, -0.01855604164302349, -0.21856622397899628, 0.22243808209896088, -0.01699366234242916, -0.17874950170516968, 0.14334946870803833, -0.12766434252262115, 0.03185907006263733, 0.03472881019115448, 0.1080373004078865, -0.00788692943751812, -0.3578636050224304, -0.1810830533504486, 0.053705260157585144, 0.16685397922992706, -0.2967934310436249, 0.27337583899497986, -0.5112016797065735, -0.40902623534202576, -0.1868811398744583, 0.10791940987110138, -0.18117260932922363, -0.09478002786636353, -0.07682112604379654, -0.08537658303976059, 0.11533322930335999, 0.29086610674858093, -0.1969720870256424, -0.06157331168651581, -0.08301159739494324, -0.1593247354030609, -0.020454715937376022, -0.18768464028835297, -0.2183430939912796, 0.15283700823783875, 0.4614596962928772, 0.005901846569031477, 0.11120560765266418, -0.3916853964328766, 0.07324922829866409, 0.1947643905878067, -0.2173343002796173, 0.26963528990745544, -0.2560005187988281, 0.12304817885160446, 0.07183180004358292, 0.11631812900304794, 0.031264085322618484, -0.2786533236503601, 0.24853144586086273, -0.07088139653205872, -0.11507610976696014, 0.14097580313682556, -0.06822841614484787, -0.21055985987186432, -0.23683707416057587, 0.012649163603782654, -0.5228257775306702, -0.35079655051231384, -0.2645411193370819, 0.11859619617462158, 0.14282970130443573, 0.3499615490436554, 0.19771844148635864, 0.05845434591174126, 0.163947194814682, -0.12009582668542862, -0.1110018640756607, -0.3482826352119446, 0.31668323278427124, -0.33202099800109863, -0.4280416667461395, 0.019336726516485214, -0.003829424502328038, 0.4887195825576782, -0.11894585937261581, -0.23412145674228668, -0.09236796945333481, -0.12304909527301788, 0.1430979073047638, -0.031013520434498787, 0.14739499986171722, -0.025525253266096115, 0.011926472187042236, -0.042553119361400604, -0.14646577835083008, 0.00798500794917345, -0.06986838579177856, 0.0022527144756168127, 0.2842380404472351, -0.030130553990602493, 0.22772285342216492, -0.2086019515991211, 0.01895923539996147, 0.22356685996055603, -0.0224652998149395, 0.7035980820655823, -0.17420797049999237, 0.3842790722846985, -0.19118869304656982, -0.08751539885997772, 0.1026376411318779, -0.07671118527650833, -0.015614517964422703, 0.161146342754364, -0.07969900220632553, -0.21456877887248993, -0.2738921046257019, 0.05305679515004158, -0.2512015402317047, -0.24269713461399078, 0.10963817685842514, 0.11522045731544495, 0.01277958694845438, -0.00020689336815848947, 0.15316589176654816, 0.08823792636394501, -0.22588422894477844, -0.06636106967926025, 0.16485844552516937, -0.1595696061849594, 0.21481673419475555, -0.2964558005332947, -0.2983589470386505, -0.25775381922721863, 0.11073395609855652, 0.1485261768102646, 0.33561640977859497, -0.07909678667783737, 0.1531953066587448, 0.11683093756437302, -0.12914632260799408, 0.21684002876281738, 0.029132336378097534, 0.11425961554050446, 0.08790619671344757, 0.0901457667350769, -0.018889978528022766, -0.07589446753263474, -0.19780480861663818, 0.17196372151374817, 0.09559903293848038, -0.1960679590702057, -0.1699281632900238, -0.001631671329960227, 0.058985594660043716, 0.3772244155406952, -0.09780392795801163, 0.1263485699892044, -0.4287363588809967, -0.6874221563339233, -0.11774110049009323, -0.24425749480724335, 0.2344139963388443, 0.24733851850032806, -0.09499617666006088, -0.04442800581455231, 0.0066082957200706005, -0.2473977953195572, 0.21899183094501495, 0.4687686264514923, 0.4177286624908447, 0.12958510220050812, 0.022317398339509964, -0.13599486649036407, -0.10608526319265366, 0.256213515996933, 0.7766745686531067, 0.02201189287006855, -0.28089332580566406, 0.09669218212366104, -0.22847101092338562, 0.2586396038532257, 0.22585131227970123, -0.07655015587806702, -0.158178448677063, -0.09578198194503784, -0.06409528851509094, -0.21748054027557373, 0.20452265441417694, 0.22073324024677277, 0.12831436097621918, -0.6074509620666504, -0.5158414244651794, 0.48172372579574585, -0.025736698880791664, 0.20491543412208557, 0.12317779660224915, -0.07495056092739105, -0.3552890419960022, 0.2622036039829254, 0.03513249009847641, 0.8382987976074219, 0.1588292121887207, 0.22848159074783325, 0.32263731956481934, 0.13869908452033997, 0.18743810057640076, -0.0317828543484211, 0.10919831693172455, -0.3560636341571808, -0.18519361317157745, -0.019518928602337837, 0.1509481817483902, 0.19317404925823212, 0.13527774810791016, -0.3118433356285095, 0.18626117706298828, -0.053886376321315765, -0.2737148702144623, 0.15165019035339355, 0.26980674266815186, -0.2737753391265869, -0.20560123026371002, -0.6117537021636963, 0.2700067162513733, -0.11867882311344147, 0.027254531159996986, -0.11516723036766052, -0.20424413681030273, 0.014222279191017151, -0.331755131483078, -0.2252712845802307, 0.33481377363204956, -0.4587015211582184, 0.23001985251903534, -0.1353648602962494, -0.6156848669052124, 0.16282503306865692, 0.17204247415065765, 0.15077714622020721, 0.19378015398979187, -0.010166064836084843, 0.2571101486682892, 0.25590553879737854, 0.031716689467430115, 0.05553498491644859, 0.14005085825920105, 0.15179190039634705, -0.18582937121391296, -0.08831506222486496, 0.15212497115135193, 0.13775593042373657, -0.06205562502145767, 0.28770801424980164, -0.0062573812901973724, -0.15872621536254883, -0.12837982177734375, -0.2758009135723114, -0.17050205171108246, 0.18488910794258118, -0.05519525334239006, 0.20124174654483795, -0.006244688294827938, -0.17442089319229126, -0.005424992647022009, 0.18731224536895752, -0.3181983530521393, -0.1325160712003708, 0.0828511044383049, -0.05556818097829819, -0.07885671406984329, 0.5007187128067017, 0.2100287824869156, -0.2192784547805786, -0.1669025421142578, 0.249375581741333, -0.001798855373635888, -0.5435646176338196, -0.031280964612960815, 0.1454039365053177, -0.0885961502790451, -0.0008254456333816051, 0.6154595613479614, -0.07819107174873352, -0.03785006329417229, 0.12496451288461685, -0.4164339601993561, -0.3383079469203949, -0.019952615723013878, -0.10589537769556046, 0.07690171152353287, 0.13537122309207916, 0.3030594289302826, 0.017904413864016533, -0.07519228011369705, -0.37583401799201965, 0.05784257873892784, -0.15998442471027374, 0.05128808692097664, 0.16270171105861664, -0.05973232910037041, 0.11411985754966736, 0.057175397872924805, 0.20424216985702515, 0.2957521378993988, -0.058775294572114944, -0.265542209148407, -0.16333450376987457, 0.04482109844684601, -0.04473061114549637, -0.343898206949234, -0.08632823079824448, 0.04974446818232536, -0.13549363613128662, -0.08142705261707306, 0.162101149559021, 0.13292746245861053, 0.09650325775146484, 0.18381144106388092, -0.22909250855445862, 0.05409391596913338, 0.0325162410736084, 0.1618748903274536, -0.10496338456869125, 0.4907985329627991, 0.18597018718719482, 0.1443747878074646, 0.04784141853451729, -0.0010489107808098197, -0.0478384904563427, 0.023732122033834457, -0.21633028984069824, 0.0968613401055336, 0.09826817363500595, -0.3974511921405792, 0.40326741337776184, 0.10524434596300125, 0.038162704557180405, 0.4829166829586029, -0.25674229860305786, -0.11139759421348572, 0.33769190311431885, 0.24410772323608398, -0.3323170244693756, 0.022884977981448174, -0.22744035720825195, -0.04869077727198601, -0.02707270160317421, 0.35495302081108093, 0.17545756697654724, -0.07446224242448807, 0.20377428829669952, -0.08595521748065948, 0.4425879120826721, 0.1005481481552124, 0.36656537652015686, 0.3080143928527832, -0.049370650202035904, 0.1541157066822052, -0.10386056452989578, 0.15908168256282806, -0.09204527735710144, 0.10891324281692505, -0.5868619680404663, 0.17263224720954895, 0.050714608281850815, 0.11861807107925415, -0.05046873912215233, -0.2833305597305298, -0.06981933116912842, -0.03594717010855675, -0.12646569311618805, 0.3150515854358673, 0.17283731698989868, 0.43080148100852966, -0.3397228717803955, -0.037075839936733246, -0.07463686913251877, 0.18771515786647797, -0.1154494509100914, 0.05388263240456581, 0.022266646847128868, -0.021878264844417572, -0.3208213448524475, 0.11869129538536072, -0.1208408921957016, 0.05197769030928612, -0.013573180884122849, 0.334133505821228, -0.11799277365207672, -0.09279217571020126, 0.05952182039618492, 0.005821899976581335, -0.020826900377869606, -0.12026043981313705, 0.5656143426895142, 0.33771952986717224, 0.17678792774677277, 0.3259630799293518, 0.16477654874324799, 0.6169279217720032, 0.41589242219924927, -0.1283581554889679, 0.032909054309129715, -0.1991831511259079, 0.04482144117355347, 0.009314299561083317, 0.09493163228034973, 0.2698288857936859, 0.3797500431537628, 0.24349449574947357, 0.23330473899841309, -0.16681762039661407, -0.19744063913822174, 0.2925790548324585, 0.01561296172440052, 0.08783368021249771, 0.2161630392074585, -0.09289582818746567, 0.2102702409029007, -0.501555860042572, -0.04895876348018646, -0.43425267934799194, 0.24031415581703186, 0.4158190190792084, 0.02065318077802658, 0.05591093376278877, -0.2033478021621704, 0.13477611541748047, 0.0010742397280409932, 0.5677646398544312, 0.28402796387672424, 0.08307376503944397, -0.0933830738067627, -0.0814686045050621, -0.715607225894928, 0.24704299867153168, 0.03996196389198303, -0.47548481822013855, -0.14079926908016205, -0.260781466960907, 0.10110218822956085, 0.34344184398651123, 0.09725464880466461, 0.3271718919277191, 0.0704689770936966, 0.06941748410463333, -0.13781856000423431, -0.019006412476301193, -0.18519490957260132, 0.11844075471162796, -0.2628828287124634, -0.3089424967765808, 0.040394335985183716, -0.27378466725349426, 0.15770477056503296, -0.3079630434513092, -0.2911488711833954, -0.4004518389701843, 0.02461421489715576, 0.2664484977722168, 0.20227009057998657, 0.4083617627620697, -0.29990819096565247, -0.20405994355678558, -0.10893113166093826, -0.25575247406959534, -0.1500161588191986, 0.3890310823917389, 0.20266801118850708, 0.13938957452774048, 0.09565253555774689, 0.15327678620815277, -0.47048935294151306, 0.32550233602523804, -0.0776243507862091, -0.09819904714822769, -0.224416121840477, 0.09464699774980545, 0.009990052320063114, -0.04358355328440666, 0.1534401774406433, 0.3403102159500122, 0.00017905929416883737, 0.14271380007266998, -0.1330500692129135, -0.48240378499031067, 0.25741487741470337, -0.4593115448951721, -0.22526505589485168, 0.13887713849544525, 0.10240128636360168, -0.17153975367546082, 0.05297606438398361, -0.5021638870239258, 0.2745053768157959, 0.021005263552069664, -0.1494605541229248, -0.2724822759628296, 0.30493369698524475, -0.2336803674697876, -0.06413237750530243, -0.08720923215150833, 0.36017948389053345, 0.17893949151039124, -0.17361944913864136, -0.006709008011966944, -0.24035494029521942 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
@lhoestq sorry for being that late, I found 4 copy of xtreme.py. I did the changes as what has been told to all of them. The problem is not solved
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
30
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly @lhoestq sorry for being that late, I found 4 copy of xtreme.py. I did the changes as what has been told to all of them. The problem is not solved
[ -0.2841988503932953, -0.1710119992494583, -0.010297384113073349, 0.2463475614786148, 0.4728088676929474, -0.05887734144926071, -0.14265580475330353, 0.21194714307785034, -0.26024529337882996, 0.12634646892547607, 0.08915357291698456, 0.5027427077293396, -0.04542123153805733, 0.4290333390235901, 0.28501245379447937, 0.013321947306394577, 0.003583503421396017, 0.2751815915107727, -0.007774097379297018, 0.002137915464118123, -0.27192768454551697, 0.12883783876895905, -0.16851535439491272, 0.008254562504589558, -0.4515335261821747, 0.014207775704562664, 0.08791378885507584, 0.23228903114795685, -0.32101505994796753, -0.646718442440033, 0.2900662422180176, -0.09199023246765137, 0.23751094937324524, 0.32351168990135193, -0.00010818380542332307, -0.04820539429783821, 0.31040942668914795, -0.277841717004776, -0.06580960750579834, -0.28563544154167175, -0.23377861082553864, -0.3430386185646057, 0.1013970598578453, -0.2250879853963852, -0.08949294686317444, 0.22581814229488373, -0.05450982600450516, -0.1139659732580185, 0.46011701226234436, 0.27252715826034546, 0.25952088832855225, 0.1287810355424881, -0.021798472851514816, 0.060736529529094696, 0.06046738103032112, 0.1154148206114769, -0.09052257984876633, 0.48675304651260376, 0.311489462852478, -0.11955190449953079, 0.19332900643348694, 0.2543051242828369, -0.15683141350746155, -0.13347546756267548, 0.1259099841117859, -0.01696416176855564, 0.0053903465159237385, -0.4357089102268219, 0.041773390024900436, 0.22047370672225952, 0.15145210921764374, -0.38893234729766846, -0.02769589237868786, 0.13417738676071167, 0.11998540908098221, -0.5919204354286194, 0.25349703431129456, 0.32365313172340393, -0.24098284542560577, 0.12252723425626755, -0.0020337479654699564, 0.16516126692295074, 0.07043799012899399, -0.11129817366600037, 0.04440291225910187, 0.1325538605451584, -0.2128741294145584, -0.09542083740234375, 0.1789371520280838, 0.05462881550192833, 0.2867627441883087, 0.09043437242507935, -0.21258963644504547, 0.194051131606102, -0.3190433382987976, -0.06557197868824005, -0.19156110286712646, -0.05879076197743416, -0.06756047904491425, -0.11823014169931412, 0.47925448417663574, 0.0995844379067421, 0.032614149153232574, 0.26874831318855286, 0.106062151491642, 0.07776910066604614, -0.1224479228258133, 0.20075950026512146, 0.15577086806297302, 0.07664250582456589, 0.12956975400447845, 0.022957198321819305, -0.22603216767311096, -0.19366377592086792, -0.2553226351737976, 0.3502625524997711, 0.13827432692050934, -0.22793641686439514, -0.4356721043586731, 0.07557152956724167, 0.04372551292181015, 0.15261295437812805, 0.13080592453479767, 0.20086151361465454, 0.2930815815925598, 0.3658072054386139, 0.0010362170869484544, 0.3005889356136322, -0.3199250102043152, -0.3942798674106598, -0.10517954081296921, 0.32045480608940125, -0.4212424159049988, -0.10097178816795349, 0.13553987443447113, -0.12254545837640762, 0.1391245424747467, 0.23841646313667297, 0.22633345425128937, -0.3725574314594269, 0.025078075006604195, -0.12429600954055786, -0.024258838966488838, 0.10462987422943115, 0.022330280393362045, 0.09547988325357437, 0.1946079283952713, -0.21497446298599243, -0.09512419253587723, 0.09506901353597641, -0.5300651788711548, -0.08777133375406265, 0.02426457777619362, 0.24654465913772583, -0.06896112859249115, 0.011031616479158401, -0.6024032831192017, 0.09461310505867004, 0.1463538408279419, -0.22191008925437927, 0.10359717160463333, -0.21481920778751373, 0.008541841991245747, -0.18591836094856262, 0.22756856679916382, 0.4329821467399597, -0.43888670206069946, 0.061635248363018036, 0.18664492666721344, 0.024740921333432198, 0.32516056299209595, -0.03089744597673416, -0.20358724892139435, -0.09524853527545929, -0.14794200658798218, -0.0822998583316803, 0.3361443281173706, -0.4542464017868042, -0.2818059027194977, 0.21092939376831055, -0.08425421267747879, -0.006146749947220087, 0.03384329006075859, -0.07131130993366241, 0.02432367205619812, -0.2501995861530304, 0.02088722586631775, 0.31249549984931946, 0.03463469445705414, 0.22385269403457642, -0.2625691592693329, -0.25569555163383484, 0.1888904720544815, 0.02249075286090374, -0.212409108877182, -0.22798632085323334, 0.1698409467935562, 0.24445657432079315, 0.2650095820426941, -0.07168363779783249, -0.2540246546268463, 0.2266707718372345, 0.16362547874450684, -0.2654484212398529, -0.15304747223854065, 0.14787651598453522, 0.09759245812892914, -0.008566916920244694, -0.4412311613559723, 0.15401075780391693, -0.1883804053068161, -0.11669386923313141, -0.15199841558933258, 0.07568586617708206, -0.5332612991333008, -0.2902418076992035, 0.22594647109508514, -0.05128803849220276, -0.1036306843161583, -0.012842339463531971, -0.18435043096542358, 0.2484755516052246, -0.09603898972272873, -0.023813320323824883, -0.32274746894836426, 0.16928879916667938, -0.14798875153064728, -0.25450220704078674, 0.31243517994880676, 0.280755877494812, 0.20386895537376404, -0.18806035816669464, -0.3029400110244751, 0.2458578646183014, 0.04499030113220215, 0.35587507486343384, -0.3245793282985687, -0.23042936623096466, 0.4206213355064392, -0.6723707914352417, 0.14624466001987457, 0.43274280428886414, 0.2300487607717514, -0.0863216370344162, 0.37714800238609314, 0.2802087962627411, 0.009949171915650368, -0.024916384369134903, -0.09984301775693893, -0.11234669387340546, 0.13500642776489258, 0.03473570942878723, 0.14974699914455414, -0.1532130092382431, 0.38224074244499207, 0.6770519614219666, 0.28854402899742126, -0.06593775004148483, -0.0031923679634928703, 0.049991805106401443, 0.428244411945343, -0.031340211629867554, 0.00994249526411295, 0.027737146243453026, 0.0115202059969306, -0.14058245718479156, 0.048285581171512604, 0.06749825924634933, 0.15775828063488007, -0.0938323587179184, -0.30456164479255676, 0.27883172035217285, 0.06545332074165344, -0.13556528091430664, 0.19102977216243744, -0.10558823496103287, -0.06991160660982132, 0.014246789738535881, 0.0924219936132431, 0.040595266968011856, -0.18604858219623566, -0.11297036707401276, 0.0957057848572731, 0.14829696714878082, -0.3401205241680145, 0.27510204911231995, -0.4626465141773224, -0.37546274065971375, -0.17835475504398346, 0.20711514353752136, -0.12868328392505646, -0.007648204453289509, -0.16078422963619232, -0.10411152243614197, 0.15168753266334534, 0.28431034088134766, -0.1858723908662796, -0.06206362694501877, -0.1134631559252739, -0.1641196459531784, 0.11647864431142807, -0.12771068513393402, -0.25539934635162354, 0.08234543353319168, 0.42004841566085815, 0.025167405605316162, 0.06393462419509888, -0.38567882776260376, 0.13576778769493103, 0.30032262206077576, -0.17553876340389252, 0.27837589383125305, -0.2725757360458374, 0.1561867594718933, 0.026063792407512665, 0.03883890435099602, -0.043963298201560974, -0.22123372554779053, 0.24254882335662842, -0.14990676939487457, -0.004079234786331654, 0.14088265597820282, -0.03099387139081955, -0.20171411335468292, -0.16607432067394257, -0.008595374412834644, -0.5145348310470581, -0.3367134630680084, -0.31985536217689514, 0.004323662258684635, 0.1315593123435974, 0.2935810387134552, 0.1360127329826355, 0.12353233993053436, 0.14531421661376953, -0.11201862245798111, -0.06691176444292068, -0.43519511818885803, 0.27878355979919434, -0.28555828332901, -0.38273492455482483, 0.0567740835249424, -0.05429637059569359, 0.5393147468566895, -0.1494331657886505, -0.18555507063865662, -0.05958876013755798, -0.07932320982217789, 0.04594899341464043, -0.003210739465430379, 0.16242647171020508, -0.0027860465925186872, -0.07088911533355713, 0.0175642017275095, -0.13371556997299194, 0.02549460157752037, -0.061782050877809525, 0.03627699613571167, 0.38046419620513916, 0.03313348442316055, 0.18453717231750488, -0.20002394914627075, 0.002222863957285881, 0.28381654620170593, 0.0751427561044693, 0.7266833186149597, -0.10429547727108002, 0.3343740999698639, -0.15723681449890137, -0.08791133761405945, 0.03117719106376171, -0.15398737788200378, 0.008196658454835415, 0.051367804408073425, -0.04083758592605591, -0.12353713065385818, -0.3065725564956665, -0.07197299599647522, -0.17563745379447937, -0.2540782690048218, 0.06412042677402496, 0.19644176959991455, 0.12487760931253433, -0.07567601650953293, 0.19001859426498413, 0.11539511382579803, -0.23328736424446106, 0.034115634858608246, 0.3092295825481415, -0.1363597959280014, 0.22836095094680786, -0.31420406699180603, -0.4231193959712982, -0.12522505223751068, 0.17078548669815063, 0.2169898897409439, 0.3219677209854126, 0.03256414085626602, 0.18440018594264984, 0.12405963242053986, -0.11914650350809097, 0.11059445142745972, 0.15130971372127533, 0.11047925055027008, 0.10947844386100769, 0.036393944174051285, 0.08510079979896545, -0.12293688952922821, -0.13892561197280884, 0.0926554799079895, 0.09197931736707687, -0.3064914345741272, -0.14300855994224548, -0.029589807614684105, 0.05370643734931946, 0.4073205590248108, -0.09484641253948212, 0.10922408849000931, -0.4352792203426361, -0.6628596186637878, -0.11234811693429947, -0.26168718934059143, 0.27519235014915466, 0.28045204281806946, -0.09304942190647125, -0.021157972514629364, 0.07910314947366714, -0.25055375695228577, 0.3101423680782318, 0.4274914860725403, 0.5339715480804443, 0.08626452088356018, -0.019454773515462875, -0.17622123658657074, -0.24265427887439728, 0.27613765001296997, 0.6962280869483948, -0.02279306761920452, -0.22883263230323792, 0.15701930224895477, -0.13088686764240265, 0.2720608711242676, 0.25418561697006226, -0.1872224658727646, -0.07838814705610275, -0.2135688066482544, -0.10600241273641586, -0.15559528768062592, 0.23632532358169556, 0.20618468523025513, 0.07809760421514511, -0.6163370013237, -0.578410267829895, 0.6196984648704529, 0.003947428893297911, 0.18320733308792114, 0.1434498429298401, -0.022470718249678612, -0.31267088651657104, 0.1387602984905243, 0.061713509261608124, 0.9569502472877502, 0.2100057601928711, 0.13386990129947662, 0.3063667416572571, 0.09358487278223038, 0.14032335579395294, -0.12796735763549805, 0.21710087358951569, -0.3326474726200104, -0.2194077968597412, 0.0028505967929959297, 0.07857943326234818, 0.14808179438114166, -0.001092232996597886, -0.2661416530609131, 0.2339378446340561, -0.09669413417577744, -0.32701754570007324, 0.12153138220310211, 0.19343258440494537, -0.2453080266714096, -0.14368505775928497, -0.6070852875709534, 0.2140992432832718, -0.11800182610750198, 0.018175192177295685, -0.12408629059791565, -0.2341247946023941, -0.0462028831243515, -0.3025849461555481, -0.19787780940532684, 0.36596760153770447, -0.48642924427986145, 0.18345333635807037, -0.13198040425777435, -0.6856113076210022, 0.2966008484363556, -0.0068870228715240955, 0.07502862066030502, 0.215150848031044, 0.008723072707653046, 0.23252853751182556, 0.34726059436798096, -0.008437319658696651, 0.10088805109262466, 0.13943113386631012, 0.024757513776421547, -0.1841709315776825, -0.043343767523765564, 0.2549680769443512, 0.1161746084690094, -0.038815516978502274, 0.263776957988739, -0.058636825531721115, -0.12366580963134766, -0.17596092820167542, -0.2906434237957001, -0.2101520299911499, 0.20390479266643524, -0.06436954438686371, 0.1580638736486435, 0.017380543053150177, -0.23337003588676453, -0.039710164070129395, 0.11442930996417999, -0.318439245223999, -0.14025059342384338, 0.04686044901609421, 0.01039882842451334, -0.08288374543190002, 0.4898574650287628, 0.20135551691055298, -0.14917705953121185, -0.09126865118741989, 0.3218545913696289, 0.042735278606414795, -0.5850661993026733, 0.05453038960695267, 0.11391986161470413, -0.10642209649085999, 0.05979268625378609, 0.7707697153091431, -0.012122328393161297, -0.08166146278381348, 0.16930487751960754, -0.35540327429771423, -0.3297331631183624, -0.0021989864762872458, -0.1268320530653, 0.053510259836912155, 0.11779876053333282, 0.5053520202636719, 0.0303910244256258, -0.09442052990198135, -0.30832576751708984, 0.09387502074241638, -0.07975000143051147, -0.0014515856746584177, 0.1456509232521057, -0.06199788302183151, 0.1321701854467392, 0.15971709787845612, 0.13714388012886047, 0.3783656060695648, -0.10369754582643509, -0.18380337953567505, -0.1208275705575943, 0.08953767269849777, -0.07627592235803604, -0.3509172201156616, -0.13857504725456238, 0.05304479971528053, -0.08400356024503708, -0.01654105633497238, 0.10914580523967743, 0.053791120648384094, 0.09793513268232346, 0.16588327288627625, -0.3130359649658203, -0.007854118011891842, -0.017828337848186493, 0.2861246168613434, -0.09054557979106903, 0.4674900472164154, 0.15268146991729736, 0.08842386305332184, 0.06155616044998169, 0.0038009288255125284, -0.19242049753665924, -0.016233935952186584, -0.23172259330749512, 0.04297905042767525, 0.10865180939435959, -0.4080071449279785, 0.3844200074672699, 0.16620248556137085, -0.07849807292222977, 0.5113175511360168, -0.2503392696380615, -0.0002716527378652245, 0.29077041149139404, 0.16520151495933533, -0.3032810688018799, 0.0985562801361084, -0.29441654682159424, 0.010940708220005035, -0.12267753481864929, 0.4289165437221527, 0.29693546891212463, -0.1355912685394287, 0.24634087085723877, -0.04197864234447479, 0.4657466411590576, 0.16419610381126404, 0.4294063150882721, 0.3339242935180664, 0.11760973930358887, 0.18354320526123047, -0.12044569849967957, 0.15637049078941345, -0.04243788123130798, -0.028828149661421776, -0.6253315210342407, 0.1836441606283188, 0.08308646827936172, 0.08892225474119186, -0.04049653559923172, -0.2828090786933899, -0.18423455953598022, -0.05229981243610382, -0.1952909529209137, 0.3339414894580841, 0.055401988327503204, 0.4945179224014282, -0.4045981168746948, -0.05430876091122627, -0.0903540551662445, 0.1913449466228485, -0.10625071078538895, 0.1158459261059761, 0.17516601085662842, -0.029530080035328865, -0.37281739711761475, 0.05100163817405701, -0.04789156839251518, 0.15162408351898193, -0.09849881380796432, 0.336490273475647, -0.16814811527729034, 0.006248138844966888, 0.020968053489923477, 0.18375976383686066, 0.07459992915391922, -0.13022436201572418, 0.5655004382133484, 0.3868286907672882, 0.1632658988237381, 0.2651093304157257, 0.11873103678226471, 0.5911540985107422, 0.4245762825012207, -0.17831376194953918, -0.0057318792678415775, -0.04814501106739044, 0.07029780000448227, 0.19871045649051666, 0.0354103185236454, 0.28029483556747437, 0.4603317081928253, 0.18720054626464844, 0.17041531205177307, -0.13490070402622223, -0.25813665986061096, 0.1844439059495926, 0.024945251643657684, -0.0015234772581607103, 0.28833380341529846, -0.07200705260038376, 0.2568310797214508, -0.506160318851471, -0.11532935500144958, -0.48905858397483826, 0.2965938150882721, 0.41651785373687744, 0.03722163289785385, -0.040896911174058914, -0.21592529118061066, 0.09961023926734924, -0.0284947007894516, 0.48447877168655396, 0.24720308184623718, 0.030310215428471565, -0.2621780037879944, -0.10037858039140701, -0.6561943888664246, 0.25469762086868286, 0.02834416553378105, -0.48725518584251404, -0.13072125613689423, -0.3052964210510254, -0.005795608274638653, 0.3557795584201813, 0.1714760661125183, 0.328946053981781, 0.08510591834783554, 0.09112230688333511, -0.1206827312707901, -0.023727325722575188, -0.2309008687734604, 0.08879858255386353, -0.15668585896492004, -0.20040930807590485, 0.018522581085562706, -0.26478809118270874, 0.09863299876451492, -0.2584557831287384, -0.3411826193332672, -0.27367499470710754, 0.04812068119645119, 0.30004873871803284, 0.13533064723014832, 0.3911927044391632, -0.18346324563026428, -0.20709596574306488, -0.09240643680095673, -0.1741214543581009, -0.11017574369907379, 0.27452361583709717, 0.21717965602874756, 0.12598660588264465, 0.05335330590605736, 0.1425214409828186, -0.5296493172645569, 0.33373120427131653, -0.026912285014986992, -0.2261546105146408, -0.25032857060432434, 0.042420417070388794, -0.07918659597635269, -0.0027172269765287638, 0.2878604233264923, 0.37720394134521484, 0.033336393535137177, 0.2308592051267624, -0.19743628799915314, -0.490791380405426, 0.24641099572181702, -0.4184899926185608, -0.12753449380397797, 0.07170164585113525, 0.2166995257139206, -0.16134656965732574, 0.08050502091646194, -0.5184620022773743, 0.23078331351280212, 0.03207918256521225, -0.05638757720589638, -0.21043206751346588, 0.3002873957157135, -0.27324673533439636, -0.05604178458452225, -0.02957124076783657, 0.3224095404148102, 0.19713185727596283, -0.10950097441673279, 0.07362339645624161, -0.2415112853050232 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
Could you provide a better error message so that we can make sure it comes from the opening of the `tydiqa`'s json files ?
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
24
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly Could you provide a better error message so that we can make sure it comes from the opening of the `tydiqa`'s json files ?
[ -0.2817690372467041, -0.07712242752313614, -0.02595404163002968, 0.18648889660835266, 0.4318786561489105, -0.1063414067029953, -0.049079976975917816, 0.21024222671985626, -0.2888757586479187, 0.07893197983503342, 0.1698373258113861, 0.5185149312019348, -0.015734348446130753, 0.4039366841316223, 0.2165154665708542, -0.027796078473329544, -0.008714151568710804, 0.33073925971984863, -0.03863801062107086, 0.039156511425971985, -0.3182016909122467, 0.180806502699852, -0.06281792372465134, 0.04983803257346153, -0.33402758836746216, -0.12927399575710297, 0.13712118566036224, 0.33473679423332214, -0.3895086944103241, -0.5701819658279419, 0.27029889822006226, -0.008077116683125496, 0.17062798142433167, 0.3130134344100952, -0.00010405345528852195, 0.02680804952979088, 0.3452887237071991, -0.30273449420928955, -0.10403928905725479, -0.25320497155189514, -0.25041741132736206, -0.3094662129878998, 0.17231784760951996, -0.19825707376003265, -0.026221033185720444, 0.24192243814468384, -0.07102259248495102, -0.10369245707988739, 0.49951887130737305, 0.22843052446842194, 0.2823844254016876, 0.13344791531562805, 0.027090348303318024, 0.11919737607240677, 0.023080823943018913, 0.2401791214942932, -0.07935672998428345, 0.4386380910873413, 0.2769225835800171, -0.14979007840156555, 0.20194578170776367, 0.28877437114715576, -0.11775224655866623, -0.059095192700624466, 0.09713813662528992, 0.02726115472614765, -0.12200839072465897, -0.3863963186740875, 0.04783230647444725, 0.18140541017055511, 0.3376048803329468, -0.33246931433677673, -0.07373149693012238, 0.13525345921516418, 0.105318583548069, -0.4322817325592041, 0.30526554584503174, 0.32764214277267456, -0.30730700492858887, 0.09052873402833939, -0.06837330013513565, 0.1381123960018158, 0.003915135283023119, -0.016548503190279007, 0.036681268364191055, 0.02511344477534294, -0.14263014495372772, -0.09106668084859848, 0.17155848443508148, -0.11088179796934128, 0.15775072574615479, 0.0657358393073082, -0.2696872651576996, 0.20283761620521545, -0.13587021827697754, -0.16435419023036957, -0.13523967564105988, -0.17842045426368713, -0.07127871364355087, -0.17999932169914246, 0.6284119486808777, 0.0887385830283165, -0.04533982649445534, 0.34361082315444946, 0.21379150450229645, 0.07793988287448883, -0.16136890649795532, 0.22980280220508575, 0.1764536052942276, 0.10678090155124664, 0.13514947891235352, 0.00632989127188921, -0.1947849988937378, -0.2007739394903183, -0.380666583776474, 0.26146718859672546, 0.20553092658519745, -0.16741308569908142, -0.39059603214263916, 0.15706759691238403, -0.025129199028015137, 0.12517423927783966, 0.1215747594833374, 0.23054218292236328, 0.25094160437583923, 0.2337389439344406, 0.1035003811120987, 0.3014073073863983, -0.2691757380962372, -0.2696070373058319, -0.09026912599802017, 0.22402198612689972, -0.33663642406463623, -0.13066501915454865, 0.18752513825893402, 0.024825500324368477, 0.15072230994701385, 0.1681635081768036, 0.18753083050251007, -0.1822359710931778, 0.08310011774301529, -0.018579376861453056, 0.06664282083511353, 0.18193192780017853, 0.018423613160848618, 0.059294044971466064, 0.19574616849422455, -0.31772443652153015, -0.14969098567962646, 0.04789762943983078, -0.44987767934799194, -0.10292397439479828, -0.04985549673438072, 0.27644622325897217, -0.07096303254365921, 0.014894494786858559, -0.5774105191230774, 0.10332438349723816, 0.1036706194281578, -0.3065207302570343, 0.11040987074375153, -0.1724870204925537, 0.06524714082479477, -0.17891326546669006, 0.1632586568593979, 0.42390578985214233, -0.5196285843849182, 0.061409153044223785, 0.2629786431789398, -0.008728991262614727, 0.30781275033950806, 0.03952118754386902, -0.2188350409269333, 0.0014092983910813928, -0.11032119393348694, -0.06736592203378677, 0.34277528524398804, -0.3594684302806854, -0.20838649570941925, 0.26481467485427856, -0.05998944491147995, -0.006467666011303663, -0.018302511423826218, -0.04591096565127373, -0.029696106910705566, -0.16742868721485138, 0.1635739803314209, 0.40738537907600403, 0.020894259214401245, 0.33197468519210815, -0.18960024416446686, -0.20013897120952606, 0.13529330492019653, 0.13350333273410797, -0.3661077618598938, -0.1996988207101822, 0.1727050393819809, 0.3472839295864105, 0.23262864351272583, -0.1098581999540329, -0.29958510398864746, 0.19587232172489166, 0.18728013336658478, -0.29115724563598633, -0.16882170736789703, 0.2727036476135254, -0.029919369146227837, -0.0008162086014635861, -0.46689510345458984, 0.1937800794839859, -0.34888777136802673, -0.12528246641159058, -0.10111702978610992, 0.1086001992225647, -0.47065821290016174, -0.26070183515548706, 0.2740675210952759, -0.042768899351358414, -0.09896476566791534, 0.0541117824614048, -0.1565449833869934, 0.1738281100988388, 0.0019518232438713312, -0.012822987511754036, -0.34059104323387146, 0.14975863695144653, -0.13621015846729279, -0.2563149929046631, 0.3186989426612854, 0.23695775866508484, 0.13422168791294098, -0.19793927669525146, -0.2061992734670639, 0.21302038431167603, 0.03901078924536705, 0.37252867221832275, -0.29397132992744446, -0.24910524487495422, 0.41233691573143005, -0.5082939267158508, 0.07715611904859543, 0.4808597266674042, 0.2183995395898819, -0.1461532711982727, 0.27696457505226135, 0.2817261815071106, -0.08916718512773514, 0.015147415921092033, -0.029235968366265297, -0.15178941190242767, 0.18024712800979614, 0.04485296085476875, 0.07854998111724854, -0.14572298526763916, 0.3540152311325073, 0.6760115623474121, 0.23173345625400543, -0.0618649423122406, -0.061297398060560226, 0.06314689666032791, 0.49791356921195984, -0.022853082045912743, 0.02244522236287594, 0.030660739168524742, 0.081821970641613, -0.14985881745815277, 0.08544116467237473, 0.09918870776891708, 0.19675134122371674, -0.07260062545537949, -0.26598069071769714, 0.162104532122612, -0.004025476519018412, -0.17629696428775787, 0.1893496811389923, -0.1335131973028183, -0.009567475877702236, 0.04794900491833687, 0.13502977788448334, -0.01193409226834774, -0.26447439193725586, -0.2243676632642746, 0.04727056249976158, 0.1501171737909317, -0.2828504741191864, 0.2840699851512909, -0.46928057074546814, -0.3395828604698181, -0.11892233788967133, 0.05774826183915138, -0.1735449731349945, -0.047743648290634155, -0.028763873502612114, -0.08754967153072357, 0.020085137337446213, 0.24740280210971832, -0.11928645521402359, -0.007630274165421724, -0.08732181787490845, -0.16839516162872314, -0.024321136996150017, -0.23419322073459625, -0.20528799295425415, 0.13765588402748108, 0.43206074833869934, -0.006056488957256079, 0.046851612627506256, -0.406632661819458, 0.1306007355451584, 0.3167102336883545, -0.18817166984081268, 0.27863332629203796, -0.23708586394786835, 0.08363812416791916, 0.07331855595111847, 0.17839086055755615, 0.08437797427177429, -0.3423647880554199, 0.25348448753356934, 0.010619377717375755, -0.18438467383384705, 0.16385814547538757, -0.0660439282655716, -0.17039509117603302, -0.2623521089553833, 0.031227072700858116, -0.4781665802001953, -0.38276514410972595, -0.14568734169006348, 0.12305768579244614, 0.15459075570106506, 0.2949495017528534, 0.2861059606075287, 0.11851058900356293, 0.1604102998971939, -0.021036667749285698, -0.07117623090744019, -0.3474283814430237, 0.24039176106452942, -0.36942169070243835, -0.38524070382118225, 0.03626396507024765, -0.001728152739815414, 0.5735812187194824, -0.2455374300479889, -0.2102106362581253, -0.01243828795850277, -0.09794646501541138, 0.030375629663467407, -0.10267849266529083, 0.0817888081073761, 0.024263055995106697, 0.02067730948328972, -0.03926093131303787, -0.12882846593856812, -0.02398846484720707, -0.07529129832983017, -0.028744034469127655, 0.34228163957595825, -0.02585032768547535, 0.29033443331718445, -0.24311932921409607, 0.03794749081134796, 0.23274309933185577, -0.07706461101770401, 0.6564685106277466, -0.08293912559747696, 0.33667391538619995, -0.20071391761302948, -0.05290783569216728, 0.08316534012556076, -0.1412666290998459, -0.06485793739557266, 0.10838494449853897, -0.07544752955436707, -0.282037615776062, -0.33357465267181396, 0.05378403887152672, -0.2663485109806061, -0.2430243343114853, 0.0889938622713089, 0.1951133757829666, -0.08062714338302612, -0.0360129177570343, 0.11786772310733795, 0.06756303459405899, -0.13023698329925537, -0.04530252888798714, 0.2454385757446289, -0.1497393250465393, 0.2119581550359726, -0.2705281376838684, -0.4818204343318939, -0.16390642523765564, 0.19045419991016388, 0.16812530159950256, 0.25381186604499817, -0.026094092056155205, 0.07111147791147232, 0.11434847116470337, -0.16753172874450684, 0.21373192965984344, 0.12185212224721909, 0.0823776125907898, 0.12554867565631866, 0.09040848165750504, 0.06397860497236252, -0.07465876638889313, -0.2222861647605896, 0.12113248556852341, 0.18857954442501068, -0.2162654995918274, -0.23391878604888916, 0.004644025582820177, -0.025585833936929703, 0.33304765820503235, -0.040511831641197205, 0.13937406241893768, -0.49602270126342773, -0.670852780342102, -0.2037336826324463, -0.222194105386734, 0.20608636736869812, 0.2809034287929535, -0.08979532867670059, -0.08689630776643753, 0.050481170415878296, -0.23983287811279297, 0.18815971910953522, 0.5552307367324829, 0.4350998103618622, 0.1240929588675499, -0.03564820811152458, -0.22010381519794464, -0.10161930322647095, 0.37105461955070496, 0.8140732645988464, 0.12184678018093109, -0.2139301598072052, 0.15974503755569458, -0.10615047812461853, 0.19494162499904633, 0.2183968424797058, -0.061257340013980865, -0.1229308620095253, -0.20111599564552307, -0.04710937663912773, -0.19703678786754608, 0.236037015914917, 0.22620002925395966, 0.005268528591841459, -0.5391126275062561, -0.43747228384017944, 0.595107913017273, -0.10414236038923264, 0.17910239100456238, 0.19392800331115723, -0.04972632974386215, -0.2902446985244751, 0.2526358664035797, 0.093905009329319, 0.8820829391479492, 0.21248196065425873, 0.19719578325748444, 0.39468640089035034, 0.10239613801240921, 0.2337609976530075, -0.16977766156196594, 0.159580796957016, -0.2948206067085266, -0.056724198162555695, -0.016651948913931847, 0.07156682759523392, 0.12292523682117462, 0.10621681809425354, -0.31441831588745117, 0.04247274994850159, -0.07239595800638199, -0.356192022562027, 0.05939476191997528, 0.21248704195022583, -0.2269323170185089, -0.20823080837726593, -0.6637162566184998, 0.23913156986236572, -0.10732468217611313, 0.04072362557053566, -0.1362830251455307, -0.2645184099674225, -0.05109228938817978, -0.38458070158958435, -0.1963125765323639, 0.3531442880630493, -0.4750056862831116, 0.184869647026062, -0.07000135630369186, -0.630931556224823, 0.18594415485858917, 0.09502162039279938, 0.13299793004989624, 0.1886104792356491, -0.046860191971063614, 0.23263481259346008, 0.25734448432922363, -0.04184727743268013, -0.025665635243058205, 0.14467792212963104, 0.08656483888626099, -0.229006826877594, -0.046132177114486694, 0.22516454756259918, 0.0787738487124443, -0.0925494059920311, 0.3337956368923187, 0.04860813170671463, -0.29594331979751587, -0.15026909112930298, -0.30466848611831665, -0.16496819257736206, 0.16369228065013885, -0.012237196788191795, 0.1836998164653778, 0.0649409294128418, -0.2007923722267151, -0.12359616905450821, 0.15845441818237305, -0.3354063034057617, -0.12801502645015717, -0.00022448897652793676, -0.05640993267297745, -0.05181706324219704, 0.4692660868167877, 0.1955721229314804, -0.18235114216804504, -0.1286046952009201, 0.3528127074241638, 0.02097216062247753, -0.5445842146873474, 0.021661866456270218, 0.2507898509502411, -0.21404652297496796, 0.021691737696528435, 0.7245562672615051, -0.03860805556178093, -0.03831271082162857, 0.19797448813915253, -0.33465972542762756, -0.4100531041622162, 0.12111219763755798, -0.17654234170913696, 0.11158348619937897, 0.12926484644412994, 0.37002837657928467, -0.04384258762001991, -0.04671049490571022, -0.34051331877708435, 0.09514615684747696, -0.1919049471616745, -0.026484468951821327, 0.11892760545015335, -0.08485478907823563, 0.11389408260583878, 0.156453937292099, 0.1555795967578888, 0.3289303779602051, -0.1472264975309372, -0.23358263075351715, -0.10095848143100739, 0.0682491734623909, -0.022287525236606598, -0.26914334297180176, -0.13575345277786255, 0.0717204287648201, -0.08492351323366165, -0.02299402840435505, 0.14898954331874847, -0.050791870802640915, 0.11422644555568695, 0.1481943577528, -0.22874557971954346, 0.06281955540180206, 0.007567820139229298, 0.18547391891479492, -0.10001388937234879, 0.5562204718589783, 0.10641758888959885, 0.021114245057106018, -0.07798153162002563, -0.000673113449010998, -0.1246829405426979, 0.06935981661081314, -0.23281577229499817, 0.10996789485216141, 0.14331822097301483, -0.3258741796016693, 0.3833559453487396, -0.04723064973950386, -0.02254386618733406, 0.48212873935699463, -0.25609976053237915, -0.03758461773395538, 0.286512553691864, 0.21632297337055206, -0.25580570101737976, -0.021941659972071648, -0.28648874163627625, -0.026639234274625778, -0.059619370847940445, 0.31742560863494873, 0.09488750249147415, -0.09681858122348785, 0.26791101694107056, -0.05620981380343437, 0.4560808837413788, 0.1287514567375183, 0.30240750312805176, 0.3055928945541382, -0.13822831213474274, 0.13003075122833252, -0.13195601105690002, 0.18240928649902344, 0.05002729594707489, -0.026569467037916183, -0.6331772804260254, 0.09411950409412384, 0.054814018309116364, 0.07238989323377609, -0.016143321990966797, -0.24976880848407745, -0.20156651735305786, -0.04906146600842476, -0.08297992497682571, 0.3896673619747162, 0.17208120226860046, 0.37637031078338623, -0.40894901752471924, -0.028041541576385498, -0.13587583601474762, 0.13796201348304749, -0.0701373815536499, 0.0554976612329483, -0.04093008115887642, -0.05833853408694267, -0.283213347196579, 0.08504030853509903, -0.08637037128210068, 0.11954032629728317, -0.08306342363357544, 0.2690294682979584, -0.11161430925130844, -0.028016775846481323, 0.08608809858560562, 0.016962457448244095, -0.009213420562446117, -0.13165712356567383, 0.5656226277351379, 0.3985663652420044, 0.1152796819806099, 0.29644355177879333, 0.1866958886384964, 0.6348479986190796, 0.44273844361305237, -0.20098178088665009, 0.01760733313858509, -0.21348047256469727, 0.019356312230229378, 0.04943667724728584, 0.12258097529411316, 0.3237193524837494, 0.2292320728302002, 0.23288297653198242, 0.20809292793273926, -0.15934708714485168, -0.20507781207561493, 0.23380880057811737, 0.09165343642234802, 0.1269608438014984, 0.2348296195268631, -0.2353525608778, 0.2718704342842102, -0.4492446184158325, -0.08788256347179413, -0.46531927585601807, 0.24429376423358917, 0.29652076959609985, 0.04493588209152222, 0.04034854471683502, -0.23119968175888062, 0.11902662366628647, -0.06315045803785324, 0.6006463170051575, 0.1987868696451187, 0.10345110297203064, -0.1107354536652565, -0.0290543045848608, -0.6104626059532166, 0.2797620892524719, -0.006835184991359711, -0.45178884267807007, -0.1234368309378624, -0.22833499312400818, 0.13193732500076294, 0.4181394875049591, 0.07155539095401764, 0.3477075695991516, 0.06961824744939804, 0.09894789010286331, -0.16310308873653412, -0.0020969982724636793, -0.2136654406785965, 0.08706075698137283, -0.1896219104528427, -0.23823612928390503, 0.02564304880797863, -0.34351852536201477, 0.14155109226703644, -0.2849491834640503, -0.2998340129852295, -0.39978131651878357, 0.1126059740781784, 0.3344651460647583, 0.2275516390800476, 0.32738420367240906, -0.27167612314224243, -0.2994083762168884, -0.05519804731011391, -0.2854251563549042, -0.06778640300035477, 0.3536008894443512, 0.20976434648036957, 0.2202972173690796, 0.042230766266584396, 0.20108985900878906, -0.4806058406829834, 0.2990702986717224, -0.11353404819965363, -0.19270408153533936, -0.21642421185970306, 0.0568368099629879, -0.027804914861917496, -0.017757786437869072, 0.19717393815517426, 0.3319283723831177, 0.01582024060189724, 0.15810973942279816, -0.17311428487300873, -0.4464835822582245, 0.3486945331096649, -0.4384193420410156, -0.16250835359096527, 0.29547175765037537, 0.07854192703962326, -0.24573847651481628, 0.10902709513902664, -0.5252714157104492, 0.2714564800262451, 0.013972372747957706, -0.09211836010217667, -0.29603397846221924, 0.22188588976860046, -0.2321227788925171, -0.1918734759092331, -0.07567120343446732, 0.41904956102371216, 0.18780137598514557, -0.07885510474443436, -0.01273193210363388, -0.2181258201599121 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
@lhoestq The error message is same as before: Exception has occurred: UnicodeDecodeError 'cp950' codec can't decode byte 0xe2 in position 111: illegal multibyte sequence File "D:\python\test\test.py", line 3, in <module> dataset = load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/87748794-7c216880-c829-11ea-94f0-7caeacb4d865.png) I said that I found 4 copy of xtreme.py and add the 「, encoding='utf-8'」 parameter to the open() function these python script was found under this directory C:\Users\USER\AppData\Local\Programs\Python\Python37\Lib\site-packages\nlp\datasets\xtreme
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
63
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly @lhoestq The error message is same as before: Exception has occurred: UnicodeDecodeError 'cp950' codec can't decode byte 0xe2 in position 111: illegal multibyte sequence File "D:\python\test\test.py", line 3, in <module> dataset = load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/87748794-7c216880-c829-11ea-94f0-7caeacb4d865.png) I said that I found 4 copy of xtreme.py and add the 「, encoding='utf-8'」 parameter to the open() function these python script was found under this directory C:\Users\USER\AppData\Local\Programs\Python\Python37\Lib\site-packages\nlp\datasets\xtreme
[ -0.2993043065071106, -0.07950926572084427, -0.025460727512836456, 0.21767973899841309, 0.38568639755249023, -0.07032698392868042, -0.10065599530935287, 0.18437080085277557, -0.2766498029232025, 0.05609281733632088, 0.13452835381031036, 0.4247642457485199, -0.08653882145881653, 0.272808313369751, 0.21610017120838165, -0.006848393008112907, -0.05024898797273636, 0.2241973727941513, 0.1564083993434906, 0.07079979032278061, -0.40889161825180054, 0.17330200970172882, -0.1744895577430725, 0.12441939860582352, -0.413984477519989, -0.05959401652216911, 0.04132768511772156, 0.3134814202785492, -0.2633444666862488, -0.6551200151443481, 0.18799012899398804, -0.04600125178694725, 0.1435701996088028, 0.3817639648914337, -0.00010659400868462399, -0.09800601750612259, 0.2307550311088562, -0.21708887815475464, -0.1518944948911667, -0.2767801284790039, -0.301649808883667, -0.3093872368335724, 0.11959484964609146, -0.30824196338653564, 0.08118844777345657, 0.1373242884874344, 0.011062942445278168, -0.3305055797100067, 0.4484874904155731, 0.35547271370887756, 0.2603323459625244, 0.1282588094472885, 0.021757299080491066, 0.14058297872543335, 0.024509361013770103, 0.021869556978344917, -0.06388016790151596, 0.4434994161128998, 0.2685888409614563, -0.04732538387179375, 0.12044412642717361, 0.14582207798957825, -0.18657423555850983, -0.04800882935523987, 0.015262245200574398, 0.04472075775265694, 0.06676463782787323, -0.44076791405677795, 0.1138862892985344, 0.11893678456544876, 0.0809878557920456, -0.3776179552078247, -0.1859685629606247, 0.09423165023326874, 0.12646867334842682, -0.6105189919471741, 0.23711031675338745, 0.4000221788883209, -0.3269696533679962, 0.15995670855045319, -0.06707774847745895, 0.06384232640266418, 0.05413809418678284, -0.09074582159519196, -0.04659070074558258, 0.1650681048631668, -0.1873859465122223, -0.07742797583341599, 0.1572612226009369, 0.0634271577000618, 0.16139039397239685, 0.017197202891111374, -0.17790797352790833, 0.1812136024236679, -0.23545551300048828, 0.005671780090779066, -0.14014729857444763, -0.012222441844642162, -0.056980524212121964, -0.07037954032421112, 0.47008901834487915, 0.1602916419506073, -0.08918983489274979, 0.2671584486961365, 0.03744935244321823, 0.10326387733221054, -0.21673370897769928, 0.10088103264570236, 0.1906232237815857, 0.12255717068910599, 0.1977963000535965, 0.075273796916008, -0.20275290310382843, -0.24527329206466675, -0.19899135828018188, 0.4515692889690399, 0.3463509678840637, -0.14638417959213257, -0.4804699420928955, 0.06714601069688797, 0.015336320735514164, 0.07245749980211258, 0.09749624133110046, 0.15005573630332947, 0.17257151007652283, 0.3843918740749359, -0.048233143985271454, 0.2677052915096283, -0.33122119307518005, -0.2914769649505615, -0.09798863530158997, 0.25158169865608215, -0.3490152657032013, -0.035814568400382996, 0.11186434328556061, -0.11074919253587723, 0.11026120185852051, 0.23999953269958496, 0.17038261890411377, -0.33054932951927185, 0.08942243456840515, -0.17194689810276031, -0.0011082023847848177, 0.026131682097911835, 0.0958600714802742, 0.15503577888011932, 0.1559722125530243, -0.36782363057136536, -0.055727388709783554, 0.06362729519605637, -0.5577614903450012, -0.12975962460041046, -0.17296507954597473, 0.26275187730789185, -0.012477540411055088, -0.012379702180624008, -0.5066614151000977, 0.07060680538415909, 0.1725929230451584, -0.2303980439901352, 0.06311905384063721, -0.17055530846118927, -0.13770611584186554, -0.2525266110897064, 0.17533166706562042, 0.47548991441726685, -0.294109970331192, 0.05385980010032654, 0.16097207367420197, 0.033864203840494156, 0.3461775779724121, 0.0864410325884819, -0.21363505721092224, -0.13579316437244415, -0.21943604946136475, -0.03545364737510681, 0.3955567181110382, -0.43240684270858765, -0.2422577142715454, 0.35871562361717224, -0.24378742277622223, -0.008346689864993095, 0.06600693613290787, -0.13179853558540344, 0.035607002675533295, -0.2514549195766449, 0.13122019171714783, 0.41554149985313416, 0.02665651962161064, 0.2746029794216156, -0.18289467692375183, -0.30924108624458313, 0.2006267011165619, 0.01635432243347168, -0.21782757341861725, -0.22020520269870758, 0.25156962871551514, 0.3486475646495819, 0.2898353040218353, -0.1736852377653122, -0.16717931628227234, 0.21286725997924805, 0.02701309323310852, -0.21675580739974976, -0.222259983420372, 0.09459628164768219, 0.022303719073534012, -0.018957654014229774, -0.32670605182647705, 0.08989451080560684, -0.34446021914482117, -0.1623484194278717, -0.15930193662643433, 0.03765767440199852, -0.6050464510917664, -0.28335118293762207, 0.2350180596113205, 0.2086821347475052, -0.08243696391582489, 0.08196954429149628, -0.20754098892211914, 0.2771044671535492, 0.0008022632682695985, -0.039668116718530655, -0.3657067120075226, 0.09368547052145004, -0.13362257182598114, -0.10181965678930283, 0.22819983959197998, 0.32842394709587097, 0.16788628697395325, -0.14201301336288452, -0.2412920743227005, 0.31301647424697876, 0.0796096920967102, 0.3886035084724426, -0.24273927509784698, -0.18544387817382812, 0.48531922698020935, -0.627291202545166, 0.15252897143363953, 0.48059993982315063, 0.21214687824249268, -0.10647336393594742, 0.3261396884918213, 0.3260160982608795, -0.022168561816215515, -0.08765629678964615, 0.02087738923728466, -0.12779687345027924, 0.17044809460639954, -0.0059430780820548534, 0.10410604625940323, -0.2580583989620209, 0.3132893443107605, 0.6806161403656006, 0.34633734822273254, -0.005693044513463974, -0.08633923530578613, -0.00460781529545784, 0.5590994954109192, -0.0820816159248352, 0.02219511941075325, 0.0778365433216095, 0.12168972939252853, -0.15803590416908264, -0.03823275864124298, 0.08604491502046585, 0.27516859769821167, -0.08253811299800873, -0.14896491169929504, 0.24288710951805115, 0.03548499196767807, -0.2573784291744232, 0.15275664627552032, -0.05671972408890724, 0.050288327038288116, 0.06478692591190338, 0.1666751503944397, 0.09594901651144028, -0.2578539550304413, -0.3063184320926666, 0.0870974063873291, 0.11541128158569336, -0.356818288564682, 0.31418925523757935, -0.5408012866973877, -0.3548954129219055, -0.27173084020614624, 0.12227657437324524, -0.10075683891773224, -0.0870121642947197, -0.16592937707901, -0.07781025767326355, 0.16840781271457672, 0.1757591962814331, -0.20785589516162872, 0.00047405913937836885, -0.05937555059790611, -0.09088768064975739, 0.18133698403835297, -0.14371690154075623, -0.25469255447387695, 0.08675097674131393, 0.4046463966369629, -0.003485902678221464, 0.03538098186254501, -0.39510616660118103, 0.06854772567749023, 0.18204717338085175, -0.11952713131904602, 0.22017396986484528, -0.2149023562669754, 0.13637851178646088, -0.004369199741631746, 0.006756254937499762, 0.007146442774683237, -0.2906441390514374, 0.14971205592155457, -0.023972606286406517, -0.05021802335977554, 0.12583184242248535, -0.07857822626829147, -0.1874871402978897, -0.2346596121788025, 0.015700139105319977, -0.5259254574775696, -0.4137798547744751, -0.20531274378299713, 0.07654023915529251, 0.22345592081546783, 0.29940247535705566, -0.01355658657848835, 0.20731069147586823, 0.2510851323604584, -0.0007841127226129174, -0.12151241302490234, -0.36578530073165894, 0.3067180812358856, -0.42465052008628845, -0.4335762858390808, 0.03227422758936882, -0.08203749358654022, 0.43454039096832275, -0.0832585021853447, -0.17920160293579102, -0.05810808017849922, -0.1336793303489685, 0.07659625262022018, -0.058690231293439865, 0.1000945195555687, -0.011170393787324429, 0.021497951820492744, -0.018301784992218018, -0.06894030421972275, 0.0800178200006485, -0.1598852574825287, 0.07327856868505478, 0.3267395794391632, 0.056230541318655014, 0.22559066116809845, -0.10488186031579971, -0.04077686741948128, 0.3091389238834381, 0.13250978291034698, 0.6449681520462036, -0.17209181189537048, 0.2896549701690674, -0.06104177236557007, -0.05958731099963188, -0.010182451456785202, -0.1836543083190918, -0.056067414581775665, 0.16659435629844666, -0.08556011319160461, -0.16607706248760223, -0.2576843798160553, 0.04741235822439194, -0.29501795768737793, -0.22383081912994385, 0.052364978939294815, 0.1114475205540657, 0.1309533417224884, -0.11221487820148468, 0.16432000696659088, 0.033924780786037445, -0.2491913139820099, -0.02225005440413952, 0.3163504898548126, -0.16914747655391693, 0.1459122598171234, -0.22209832072257996, -0.3437357246875763, -0.20732395350933075, 0.19321687519550323, 0.3202224373817444, 0.36629989743232727, 0.05919429287314415, 0.21355190873146057, 0.11430849134922028, -0.19091247022151947, 0.16536825895309448, 0.07424989342689514, 0.047726187855005264, 0.15286223590373993, 0.11477059125900269, 0.0004936342593282461, -0.08683586120605469, -0.2772708535194397, 0.24687547981739044, 0.07101551443338394, -0.2654924988746643, -0.12590555846691132, -0.026859141886234283, 0.10459695756435394, 0.3931478261947632, -0.13502226769924164, 0.26786869764328003, -0.42575401067733765, -0.756801962852478, -0.14991694688796997, -0.29453620314598083, 0.217757910490036, 0.3300018310546875, -0.07276857644319534, 0.07659516483545303, 0.05758712440729141, -0.25341492891311646, 0.2762089669704437, 0.376447856426239, 0.370862752199173, 0.2668074071407318, -0.11862578243017197, -0.1426457017660141, -0.20917250216007233, 0.21162807941436768, 0.6942176818847656, 0.16742078959941864, -0.24895258247852325, 0.177202045917511, -0.1624293476343155, 0.20509031414985657, 0.26245731115341187, -0.13840478658676147, -0.02217482589185238, -0.1742611825466156, -0.004603027366101742, -0.1279202103614807, 0.14112554490566254, 0.270805686712265, 0.04001703858375549, -0.5778192281723022, -0.562985360622406, 0.5285752415657043, 0.0018857335671782494, 0.12068894505500793, 0.11481077969074249, -0.075337253510952, -0.29923906922340393, 0.18640589714050293, 0.12247873842716217, 0.869433581829071, 0.24079354107379913, 0.12879879772663116, 0.4219371974468231, 0.07106801122426987, 0.1791035383939743, -0.013394605368375778, 0.20086561143398285, -0.22373294830322266, -0.14416764676570892, -0.04820995777845383, 0.10691889375448227, 0.16957655549049377, -0.06105740740895271, -0.3289302587509155, 0.24809280037879944, -0.031815607100725174, -0.3604770004749298, 0.1572127640247345, 0.26789969205856323, -0.2972078323364258, -0.18470309674739838, -0.5931872129440308, 0.18912431597709656, -0.11179149895906448, 0.0649586021900177, -0.1340331733226776, -0.1960575133562088, -0.020016126334667206, -0.2767280340194702, -0.2806452214717865, 0.33291032910346985, -0.4735083281993866, 0.3480069041252136, -0.25841283798217773, -0.5290857553482056, 0.26862403750419617, 0.15641500055789948, 0.22446441650390625, 0.0829584002494812, 0.027385281398892403, 0.1534840613603592, 0.26223719120025635, 0.02405512146651745, 0.055203627794981, 0.07674947381019592, 0.12742072343826294, -0.15993857383728027, -0.07951939851045609, 0.3281879127025604, 0.14068011939525604, -0.06977953016757965, 0.2809199094772339, -0.00979759730398655, -0.15688571333885193, -0.04930831119418144, -0.2253413200378418, -0.26023638248443604, 0.13597993552684784, -0.06049478426575661, 0.13172835111618042, -0.08026587218046188, -0.10570871084928513, -0.10739637911319733, 0.057107243686914444, -0.39441487193107605, -0.09972106665372849, 0.1367490589618683, 0.015305188484489918, -0.07638099789619446, 0.5025990009307861, 0.19545049965381622, -0.14068086445331573, -0.10489597171545029, 0.305418461561203, -0.10841581970453262, -0.5312292575836182, -0.04959762468934059, 0.01648537814617157, -0.01700546219944954, 0.08068728446960449, 0.6536363363265991, -0.010975115932524204, 0.06880484521389008, 0.17238451540470123, -0.5049070119857788, -0.2466588318347931, 0.016613179817795753, -0.12330304086208344, 0.009025962091982365, 0.126639723777771, 0.40195420384407043, 0.07701375335454941, -0.08402187377214432, -0.3070727586746216, 0.1770123839378357, -0.17399002611637115, -0.013699399307370186, 0.21618928015232086, -0.05225939303636551, 0.1325288712978363, 0.17323742806911469, 0.15742681920528412, 0.36061447858810425, -0.09344536066055298, -0.17270086705684662, -0.19129955768585205, 0.09328421950340271, -0.09341740608215332, -0.3760543465614319, -0.10424306988716125, 0.0646764412522316, -0.04656951501965523, -0.010136982426047325, 0.19869205355644226, 0.07979034632444382, 0.13092169165611267, 0.20238900184631348, -0.2446151226758957, 0.013605432584881783, -0.08488618582487106, 0.19650009274482727, -0.07745232433080673, 0.5980931520462036, 0.16465535759925842, 0.2236827164888382, 0.017284849658608437, -0.013113236054778099, -0.30250802636146545, 0.019758380949497223, -0.16154898703098297, 0.07913792878389359, 0.05240988731384277, -0.3789251744747162, 0.3416694700717926, 0.14735837280750275, -0.10213813185691833, 0.47045785188674927, -0.30419600009918213, -0.0333041176199913, 0.20282891392707825, 0.16159184277057648, -0.21776194870471954, 0.046000927686691284, -0.24675282835960388, -0.11257842183113098, -0.0840742215514183, 0.4584667980670929, 0.23200836777687073, -0.08067882806062698, 0.19455145299434662, -0.02399103343486786, 0.36044108867645264, 0.2142907679080963, 0.4479627013206482, 0.31341585516929626, 0.020289119333028793, 0.13370366394519806, -0.13377611339092255, 0.1738450527191162, 0.06548997014760971, 0.136572927236557, -0.5954397320747375, 0.28419560194015503, 0.099201999604702, 0.19463185966014862, -0.08444982767105103, -0.3110909163951874, -0.0892353504896164, -0.054908689111471176, -0.23817631602287292, 0.3179435729980469, 0.17235860228538513, 0.39267122745513916, -0.4416761100292206, -0.022763853892683983, -0.17708370089530945, 0.2958940863609314, -0.07245101779699326, 0.008059073239564896, 0.0955110713839531, -0.03497854992747307, -0.4344456195831299, 0.08054930716753006, -0.08860640227794647, 0.12833768129348755, -0.03319719806313515, 0.3416317105293274, -0.1514342874288559, -0.06372401863336563, 0.017305023968219757, 0.1080755665898323, 0.08098427951335907, -0.21013890206813812, 0.5812784433364868, 0.4417738616466522, 0.14717034995555878, 0.21225973963737488, 0.1768321990966797, 0.5937771201133728, 0.4060046374797821, -0.21534322202205658, 0.012656805105507374, -0.09648894518613815, 0.030823346227407455, 0.1480909138917923, 0.01023157313466072, 0.20711953938007355, 0.4157850444316864, 0.2502589523792267, 0.18617843091487885, -0.15762758255004883, -0.13461929559707642, 0.3104694187641144, 0.05442800000309944, -0.06215614825487137, 0.3012607991695404, -0.0716736689209938, 0.22310642898082733, -0.3759074807167053, -0.07213251292705536, -0.4998144209384918, 0.23323142528533936, 0.32071030139923096, 0.01698232814669609, 0.0273138340562582, -0.1229555532336235, 0.10451600700616837, 0.01629948616027832, 0.49727001786231995, 0.29414886236190796, 0.0312464851886034, -0.13584214448928833, -0.2252742350101471, -0.7696906328201294, 0.291754812002182, 0.07015777379274368, -0.4844245910644531, -0.11441241949796677, -0.22951540350914001, -0.11757030338048935, 0.3979945778846741, 0.04981305077672005, 0.2959582805633545, 0.16777192056179047, 0.01097819209098816, -0.1803518682718277, 0.021155448630452156, -0.021876037120819092, 0.061700835824012756, -0.25517329573631287, -0.3233397603034973, 0.1144113689661026, -0.3997061252593994, 0.11315745860338211, -0.3319927155971527, -0.2369953989982605, -0.3685527443885803, 0.0032362467609345913, 0.2550114095211029, 0.20107895135879517, 0.32297801971435547, -0.3041161000728607, -0.21393993496894836, -0.11750371009111404, -0.1041313111782074, -0.041915979236364365, 0.36197033524513245, 0.19202116131782532, 0.2813432216644287, 0.08256293088197708, 0.1538802832365036, -0.5075470209121704, 0.41839003562927246, -0.06980862468481064, -0.1183643639087677, -0.26435092091560364, 0.18119190633296967, -0.09903271496295929, -0.0012432107469066978, 0.2663121521472931, 0.38618218898773193, 0.013814921490848064, 0.2909945249557495, -0.04764487221837044, -0.5047467947006226, 0.29180651903152466, -0.48304179310798645, -0.14199793338775635, 0.1137416809797287, 0.2829326093196869, -0.20616064965724945, 0.022394847124814987, -0.4061275124549866, 0.28219008445739746, 0.12257401645183563, -0.03876490518450737, -0.3610480725765228, 0.3057993948459625, -0.31569820642471313, -0.17411933839321136, -0.04703198000788689, 0.3284197449684143, 0.1485317200422287, -0.1605900228023529, 0.1165076419711113, -0.21944725513458252 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
Hi there ! I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced. I added ```encoding='UTF-8'``` to both lines that have ```open``` in ```imdb.py``` (108 and 114) and it worked for me. Thank you !
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
72
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly Hi there ! I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced. I added ```encoding='UTF-8'``` to both lines that have ```open``` in ```imdb.py``` (108 and 114) and it worked for me. Thank you !
[ -0.34889402985572815, 0.058056265115737915, -0.005317029543220997, 0.21481536328792572, 0.2911391854286194, 0.06939203292131424, -0.023163793608546257, 0.16827820241451263, -0.11711806803941727, -0.00880312267690897, 0.03516172617673874, 0.3814256191253662, 0.05928484722971916, 0.22564569115638733, 0.20427076518535614, 0.13765785098075867, 0.0813012421131134, 0.2279612123966217, 0.0762689933180809, -0.03212602436542511, -0.2550892233848572, 0.24742642045021057, -0.12083393335342407, 0.11785264313220978, -0.34606269001960754, -0.17710912227630615, 0.17526406049728394, 0.26846787333488464, -0.2989811599254608, -0.5578820705413818, 0.3264295756816864, -0.04203135147690773, 0.16373030841350555, 0.3156363368034363, -0.00010712700168369338, -0.17206525802612305, 0.48791345953941345, -0.27304622530937195, -0.0977516621351242, -0.2996382713317871, -0.06626807153224945, -0.17920266091823578, 0.20870564877986908, -0.19512848556041718, 0.16420912742614746, 0.2361980378627777, 0.02542218752205372, -0.21939711272716522, 0.24298737943172455, 0.2548005282878876, 0.2512708306312561, 0.07583201676607132, -0.012427031062543392, 0.05301313102245331, 0.10596264153718948, 0.08923549950122833, -0.034346602857112885, 0.4207035303115845, 0.41671037673950195, -0.0661730170249939, 0.15764661133289337, 0.1413361132144928, -0.2976842224597931, -0.10318608582019806, 0.1930609494447708, 0.12171074748039246, -0.19265031814575195, -0.5360171794891357, 0.028017273172736168, 0.2379918247461319, 0.4053957462310791, -0.4262813329696655, -0.20800377428531647, 0.08691227436065674, 0.2992159128189087, -0.4392399489879608, 0.20788423717021942, 0.41384559869766235, -0.3085673451423645, 0.13948825001716614, -0.05056885629892349, 0.1756727397441864, 0.15243056416511536, -0.013839111663401127, 0.017700521275401115, -0.07965612411499023, -0.08507627248764038, -0.07893814891576767, 0.10761506110429764, -0.033457085490226746, 0.22378775477409363, 0.05310846120119095, -0.1419592946767807, 0.052174244076013565, -0.04201798886060715, -0.03743176534771919, -0.16532064974308014, 0.06656824797391891, -0.09670519828796387, 0.052369438111782074, 0.3962636888027191, 0.1933193802833557, -0.10171164572238922, 0.394436240196228, 0.22747498750686646, 0.041671622544527054, -0.22195935249328613, 0.255944162607193, 0.35832905769348145, 0.1660342961549759, 0.05768570676445961, -0.002017479157075286, -0.16363754868507385, -0.12743689119815826, -0.142808735370636, 0.28873318433761597, 0.15142719447612762, -0.18981494009494781, -0.42942607402801514, 0.16173098981380463, 0.17052307724952698, 0.2196195125579834, 0.1940179318189621, 0.18382778763771057, 0.1750234067440033, 0.31120654940605164, 0.03334995359182358, 0.3036218285560608, -0.2544293701648712, -0.2565973401069641, -0.08096293359994888, 0.19757750630378723, -0.24798481166362762, -0.11203880608081818, 0.23678962886333466, -0.09874706715345383, 0.17411720752716064, 0.2018449753522873, 0.24566125869750977, -0.1505308300256729, 0.06763556599617004, -0.10746987164020538, 0.21298657357692719, 0.24145890772342682, 0.16078141331672668, 0.24282006919384003, 0.10679454356431961, -0.23134872317314148, -0.17096740007400513, 0.03721579164266586, -0.42153653502464294, -0.10103274136781693, -0.05977556109428406, 0.2072862833738327, -0.08176279813051224, -0.11719059944152832, -0.656741201877594, 0.07308938354253769, 0.009207774884998798, -0.36793866753578186, 0.06972378492355347, -0.17771506309509277, -0.03620273619890213, -0.07684765756130219, 0.1931200474500656, 0.5341467261314392, -0.46589651703834534, 0.14690159261226654, 0.0349602997303009, 0.012158822268247604, 0.22440840303897858, 0.14530014991760254, -0.13879187405109406, -0.14206115901470184, -0.315839022397995, 0.11195037513971329, 0.3089257478713989, -0.503815233707428, -0.33658653497695923, 0.39860889315605164, -0.09986276924610138, -0.015245498158037663, -0.0035209227353334427, 0.034818291664123535, 0.11041711270809174, -0.21409441530704498, 0.010430035181343555, 0.3849833607673645, -0.07407069951295853, 0.18200191855430603, -0.19005781412124634, -0.17280277609825134, 0.13461358845233917, -0.032769933342933655, -0.1712053269147873, -0.10841953009366989, 0.11167346686124802, 0.16999725997447968, 0.23009595274925232, 0.0933082327246666, -0.15381114184856415, 0.10826396197080612, 0.24035951495170593, -0.008166934363543987, -0.07336893677711487, 0.10449552536010742, 0.079628124833107, 0.06733538210391998, -0.24562594294548035, 0.10678865015506744, -0.4861818850040436, -0.2660391628742218, -0.1546815186738968, 0.03283076360821724, -0.35532546043395996, -0.08865028619766235, 0.20598739385604858, -0.03873478248715401, -0.20716091990470886, 0.04928578436374664, -0.32491350173950195, 0.17654290795326233, 0.10970243066549301, 0.06584294140338898, -0.2932019829750061, 0.12203072011470795, -0.18518078327178955, -0.22358211874961853, 0.24315451085567474, 0.1649622917175293, 0.10268822312355042, -0.06269864737987518, -0.14994192123413086, 0.2574962079524994, 0.0730738714337349, 0.3449723720550537, -0.24520456790924072, -0.20482613146305084, 0.5607059597969055, -0.5482072830200195, 0.11304628103971481, 0.4191700220108032, 0.26024380326271057, -0.15046612918376923, 0.20459946990013123, 0.24799853563308716, -0.1719048023223877, 0.008671687915921211, 0.07192134857177734, -0.08471118658781052, 0.29720351099967957, 0.1503053605556488, 0.017787517979741096, -0.3461953401565552, 0.25510117411613464, 0.5953899025917053, 0.21465754508972168, -0.09871610254049301, -0.11145094037055969, 0.12966519594192505, 0.44394251704216003, -0.05439276620745659, -0.01651827245950699, 0.0682232603430748, 0.020839054137468338, -0.06224391981959343, -0.0035007698461413383, 0.027083661407232285, 0.09063176065683365, -0.08882409334182739, -0.2187940925359726, 0.21200492978096008, 0.06579691171646118, -0.2460462749004364, 0.1466580331325531, -0.024335699155926704, -0.14998219907283783, 0.07095195353031158, 0.06827932596206665, 0.13165463507175446, -0.24746918678283691, -0.27761363983154297, 0.03529839962720871, 0.06124623492360115, -0.35370758175849915, 0.21999597549438477, -0.49388572573661804, -0.3810707628726959, -0.11779063940048218, 0.06981854885816574, -0.04199990630149841, -0.13110819458961487, -0.09128352999687195, 0.137974813580513, 0.11138253659009933, 0.12189200520515442, -0.35762518644332886, -0.07453541457653046, -0.14585386216640472, -0.19307582080364227, 0.03047795221209526, -0.21586920320987701, -0.17047633230686188, 0.08317694813013077, 0.4746149480342865, 0.09286721795797348, 0.07085812836885452, -0.4188655912876129, 0.20156137645244598, 0.07662943005561829, -0.13730491697788239, 0.23155096173286438, -0.23334816098213196, 0.11689088493585587, 0.04797634109854698, 0.05822262167930603, -0.0004441540513653308, -0.43872109055519104, 0.1450612097978592, -0.10773634165525436, -0.021132199093699455, 0.20001430809497833, -0.010555928573012352, -0.3811515271663666, -0.11384382843971252, 0.0026007445994764566, -0.4156644642353058, -0.2895943522453308, -0.19180743396282196, 0.04853912815451622, 0.04915690794587135, 0.19717851281166077, 0.10365340858697891, 0.13258250057697296, 0.22789862751960754, -0.0076735494658350945, -0.0012115506688132882, -0.3418917953968048, 0.411830335855484, -0.3309634029865265, -0.46815136075019836, 0.24166715145111084, 0.038517244160175323, 0.37030649185180664, -0.23643989861011505, -0.26357460021972656, -0.02208072878420353, -0.1116253212094307, 0.17985695600509644, 0.14131146669387817, 0.025399241596460342, -0.09903847426176071, -0.05078165978193283, -0.03198854252696037, -0.036383673548698425, -0.08936063945293427, -0.11411306262016296, -0.08680431544780731, 0.17542457580566406, 0.0025582590606063604, 0.2680504322052002, -0.329231321811676, -0.054629966616630554, 0.2706373333930969, 0.07686877995729446, 0.7014585137367249, -0.18415683507919312, 0.3847270905971527, -0.2749556005001068, -0.11205045133829117, -0.11529863625764847, -0.17826063930988312, -0.045286912471055984, 0.13297328352928162, -0.03468465805053711, -0.36432385444641113, -0.3445567190647125, -0.01518362294882536, -0.38539692759513855, -0.36565208435058594, 0.05156412348151207, -0.03865800425410271, -0.07952405512332916, -0.04910961538553238, 0.18582142889499664, 0.18524573743343353, -0.3853035867214203, 0.05951904132962227, 0.3000611960887909, -0.03371511772274971, 0.16917431354522705, -0.20033502578735352, -0.4145617187023163, -0.023872097954154015, 0.06466417014598846, 0.1260303407907486, 0.3964133858680725, -0.06258558481931686, 0.15809416770935059, 0.0996643453836441, -0.07003448158502579, 0.20989158749580383, 0.0011680049356073141, 0.14452184736728668, 0.13326570391654968, 0.041498225182294846, -0.003514175768941641, -0.07360801100730896, -0.1917608380317688, 0.14260274171829224, 0.07592412084341049, -0.2320151925086975, -0.12121735513210297, 0.09064051508903503, -0.017913321033120155, 0.44382500648498535, -0.01547145377844572, 0.12469102442264557, -0.3756389617919922, -0.6495369672775269, -0.11624203622341156, -0.21786005795001984, 0.292551189661026, 0.14916251599788666, -0.08273866027593613, -0.09544497728347778, -0.03136629983782768, -0.21619859337806702, 0.25989994406700134, 0.3667047917842865, 0.4251413643360138, 0.09289751946926117, 0.1322706788778305, -0.15878286957740784, -0.23379509150981903, 0.42140430212020874, 0.7679148316383362, -0.04107934981584549, -0.34461328387260437, 0.08665143698453903, -0.27206096053123474, 0.11661966890096664, 0.2882128059864044, -0.10649595409631729, -0.3059365451335907, -0.012072885408997536, -0.14948950707912445, -0.08435901254415512, -0.020336337387561798, 0.2839381992816925, -0.010146241635084152, -0.5025899410247803, -0.5565863847732544, 0.5252875089645386, 0.054494310170412064, 0.14844997227191925, 0.11418834328651428, 0.14102953672409058, -0.3060491383075714, 0.3216569721698761, 0.008404873311519623, 0.8980355858802795, 0.16970820724964142, 0.052055083215236664, 0.1316680908203125, 0.08567439019680023, 0.23200123012065887, -0.11814676225185394, 0.1271190345287323, -0.2963450849056244, -0.20475193858146667, -0.06031173840165138, 0.14220525324344635, 0.02659466862678528, 0.17668525874614716, -0.3149738311767578, 0.20574398338794708, -0.19480474293231964, -0.28095337748527527, 0.0025012963451445103, 0.4298161566257477, -0.4101657569408417, -0.196333646774292, -0.3811074197292328, 0.22144395112991333, -0.0037675488274544477, 0.05921658128499985, -0.01659509539604187, -0.12336885184049606, -0.06481046974658966, -0.19620159268379211, -0.5394255518913269, 0.2126024067401886, -0.43559902906417847, 0.2661527991294861, -0.1694539189338684, -0.6015483736991882, 0.20761844515800476, 0.05850007012486458, 0.23192067444324493, 0.20457038283348083, 0.003377750748768449, 0.1583486795425415, 0.45420366525650024, -0.10003539174795151, 0.1493106484413147, 0.03072875365614891, 0.26257070899009705, -0.2266554981470108, -0.10991350561380386, 0.179531991481781, 0.19996649026870728, 0.05054180696606636, 0.43497583270072937, 0.06380635499954224, -0.19490967690944672, -0.0802442654967308, -0.40438681840896606, -0.30730298161506653, 0.12761087715625763, 0.004804467782378197, 0.14152975380420685, 0.0007687049801461399, -0.09479915350675583, -0.08467930555343628, 0.1823088675737381, -0.2930842339992523, -0.1149962991476059, 0.14051926136016846, -0.13536186516284943, -0.21189932525157928, 0.440168559551239, 0.26684314012527466, -0.2931903600692749, -0.09376375377178192, 0.252941370010376, 0.08099860697984695, -0.6456254124641418, -0.03275275230407715, 0.1414761245250702, -0.027125895023345947, 0.07689899206161499, 0.5570615530014038, -0.014649664051830769, -0.03928486630320549, -0.02121865563094616, -0.436612069606781, -0.1500798463821411, 0.10352662950754166, -0.06104034185409546, 0.043524131178855896, 0.0346665121614933, 0.2332766205072403, 0.19653642177581787, -0.3172600269317627, -0.286151260137558, 0.16283319890499115, -0.18951669335365295, -0.0744393989443779, 0.14987662434577942, 0.054862771183252335, 0.04988689720630646, 0.03344680368900299, 0.09864472597837448, 0.30029240250587463, 0.05858907476067543, -0.16408370435237885, -0.04074512794613838, 0.09717722237110138, -0.0833938792347908, -0.3801468312740326, -0.09838216751813889, 0.032873935997486115, -0.13933372497558594, -0.072440005838871, 0.10729154199361801, 0.24931058287620544, 0.15529365837574005, 0.1637904942035675, -0.22143936157226562, -0.07768141478300095, -0.09078160673379898, 0.22907385230064392, -0.08822785317897797, 0.6197981834411621, 0.12040764838457108, 0.09377772361040115, 0.07559870928525925, 0.011744983494281769, -0.002453017747029662, 0.08524679392576218, -0.3687500059604645, 0.08743772655725479, 0.2601128816604614, -0.28066322207450867, 0.47587278485298157, 0.33957794308662415, 0.03426136448979378, 0.6537330150604248, -0.19245857000350952, -0.15490421652793884, 0.2746977210044861, 0.17573495209217072, -0.21166688203811646, 0.04471738636493683, -0.1870615929365158, -0.01868913322687149, -0.1748131811618805, 0.24155449867248535, 0.27290838956832886, -0.07019108533859253, 0.11372444778680801, -0.12722449004650116, 0.6796850562095642, 0.0675557479262352, 0.4454053044319153, 0.16348718106746674, 0.005159917287528515, 0.2355176955461502, -0.16259999573230743, 0.24766206741333008, 0.04331750422716141, 0.14954234659671783, -0.6107840538024902, 0.007528039161115885, 0.11791886389255524, 0.1389147788286209, -0.02338937669992447, -0.35407859086990356, -0.11688677966594696, -0.18971240520477295, -0.08143739402294159, 0.2204180657863617, 0.07780326902866364, 0.4481518566608429, -0.37251439690589905, 0.0363464392721653, -0.08003506064414978, 0.22900821268558502, -0.03464676812291145, 0.05728640407323837, 0.10258438438177109, -0.060394760221242905, -0.3064062297344208, 0.06264173984527588, -0.1271175891160965, 0.11428239941596985, -0.1865490972995758, 0.4548631012439728, -0.0956268236041069, -0.13673609495162964, 0.07154112309217453, -0.1400907039642334, 0.17479641735553741, -0.19927801191806793, 0.3945747911930084, 0.46144819259643555, 0.26518306136131287, 0.3899478316307068, 0.130181223154068, 0.7003707885742188, 0.4630875289440155, -0.2856804430484772, 0.15543991327285767, -0.1311320960521698, -0.01593623124063015, 0.12740926444530487, 0.05776369571685791, 0.2666429579257965, 0.3672739863395691, 0.14658132195472717, 0.18118014931678772, -0.11628704518079758, -0.14755010604858398, 0.18024536967277527, 0.2748173177242279, 0.08683779835700989, 0.21162787079811096, -0.21518416702747345, 0.2226528823375702, -0.6005721688270569, -0.1891811341047287, -0.3627201318740845, 0.16007521748542786, 0.5220950245857239, -0.12264567613601685, -0.12634427845478058, -0.15074802935123444, 0.10211718827486038, 0.09499946981668472, 0.416397362947464, 0.33522841334342957, 0.1280604600906372, -0.183330237865448, 0.02907814085483551, -0.7274276614189148, 0.2501835227012634, 0.12064012140035629, -0.4472253918647766, -0.06915368139743805, -0.09692662209272385, -0.07524916529655457, 0.31705835461616516, 0.028310861438512802, 0.35039767622947693, -0.021403541788458824, 0.22060339152812958, 0.013788468204438686, 0.0328279547393322, -0.2921735644340515, 0.008651426993310452, -0.24005921185016632, -0.18255344033241272, 0.02160274051129818, -0.5079554319381714, 0.08471538126468658, -0.23182599246501923, -0.47437727451324463, -0.3261179029941559, 0.26961854100227356, 0.30639445781707764, 0.13068874180316925, 0.5721479654312134, -0.16457056999206543, -0.2164464145898819, -0.21391518414020538, -0.29999667406082153, -0.15139003098011017, 0.506371259689331, 0.19185806810855865, 0.015400589443743229, 0.06208985671401024, 0.12507061660289764, -0.4375212788581848, 0.33587613701820374, -0.11567341536283493, -0.19460885226726532, -0.38112878799438477, -0.03922097757458687, -0.09603023529052734, -0.014009137637913227, 0.16110479831695557, 0.3276619613170624, 0.0059700882993638515, 0.16867989301681519, -0.1238928958773613, -0.6365164518356323, 0.3105711042881012, -0.3692490756511688, -0.06265847384929657, 0.05109170451760292, 0.2514253854751587, -0.1500352919101715, 0.12298766523599625, -0.5103996396064758, 0.2605610489845276, -0.019522296264767647, -0.16343817114830017, -0.35111236572265625, 0.11213499307632446, -0.212051659822464, -0.03917616233229637, -0.16069196164608002, 0.36741000413894653, 0.22099687159061432, -0.2025868147611618, -0.031933825463056564, -0.12163910269737244 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
> Hi there ! > I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced. > I added `encoding='UTF-8'` to both lines that have `open` in `imdb.py` (108 and 114) and it worked for me. > Thank you ! Hello ! Glad you managed to fix this issue on your side. Do you mind opening a PR for IMDB ?
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
97
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly > Hi there ! > I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced. > I added `encoding='UTF-8'` to both lines that have `open` in `imdb.py` (108 and 114) and it worked for me. > Thank you ! Hello ! Glad you managed to fix this issue on your side. Do you mind opening a PR for IMDB ?
[ -0.3819615840911865, 0.032849445939064026, -0.015480968169867992, 0.2028755396604538, 0.31208956241607666, 0.06895872205495834, 0.00581620866432786, 0.18256878852844238, -0.0836707353591919, 0.02933473140001297, 0.014069739729166031, 0.40086129307746887, 0.05778127163648605, 0.23992247879505157, 0.16253991425037384, 0.1409791260957718, 0.07230426371097565, 0.22203482687473297, 0.10505623370409012, -0.027519257739186287, -0.2586424946784973, 0.22889678180217743, -0.13084526360034943, 0.13499079644680023, -0.37280410528182983, -0.18323540687561035, 0.1941952258348465, 0.2883250415325165, -0.26907747983932495, -0.540229320526123, 0.32261520624160767, -0.040963102132081985, 0.15257474780082703, 0.30429935455322266, -0.00010537446360103786, -0.1787814348936081, 0.5192819237709045, -0.26025325059890747, -0.132432758808136, -0.2859145998954773, -0.07656189799308777, -0.1620347946882248, 0.21236397325992584, -0.195322647690773, 0.15571001172065735, 0.25269898772239685, 0.022927023470401764, -0.22710520029067993, 0.21518157422542572, 0.2319759726524353, 0.2676604688167572, 0.06081176549196243, -0.018649140372872353, 0.0458032563328743, 0.06698048114776611, 0.10035986453294754, -0.02619663067162037, 0.42925170063972473, 0.41874659061431885, -0.07282721996307373, 0.1366802603006363, 0.13908804953098297, -0.2907058298587799, -0.11774290353059769, 0.23089385032653809, 0.13560520112514496, -0.1527096927165985, -0.5397376418113708, 0.030356112867593765, 0.23962338268756866, 0.4043296277523041, -0.4341335594654083, -0.21988847851753235, 0.07276313006877899, 0.2851532995700836, -0.4451390504837036, 0.2295994758605957, 0.38130801916122437, -0.3105047345161438, 0.1312861144542694, -0.07267197966575623, 0.1851206123828888, 0.15988057851791382, -0.016688616946339607, 0.02419653721153736, -0.12135181576013565, -0.0719849169254303, -0.09582123160362244, 0.06449708342552185, -0.07556409388780594, 0.22185887396335602, 0.04081347584724426, -0.12984521687030792, 0.03115018457174301, -0.023144178092479706, -0.06544464826583862, -0.15727661550045013, 0.08884701132774353, -0.10316958278417587, 0.05267040431499481, 0.38922247290611267, 0.19043000042438507, -0.10606300085783005, 0.39263591170310974, 0.21875852346420288, 0.07648347318172455, -0.18632733821868896, 0.2649511694908142, 0.36909469962120056, 0.17929679155349731, 0.03523870185017586, -0.007587885018438101, -0.1356838345527649, -0.1409621238708496, -0.11855654418468475, 0.2891426086425781, 0.14623837172985077, -0.181783065199852, -0.4506688714027405, 0.14888480305671692, 0.15403048694133759, 0.23772670328617096, 0.1990223526954651, 0.18712638318538666, 0.16946227848529816, 0.32245126366615295, 0.04060591384768486, 0.2857058644294739, -0.25050628185272217, -0.26122456789016724, -0.09038787335157394, 0.17975299060344696, -0.25924718379974365, -0.11036139726638794, 0.21830229461193085, -0.10180485248565674, 0.1758922040462494, 0.21830683946609497, 0.28620755672454834, -0.15719299018383026, 0.053492672741413116, -0.09253301471471786, 0.2198348045349121, 0.24584634602069855, 0.1864880621433258, 0.22785861790180206, 0.11672986298799515, -0.2549143433570862, -0.1482725590467453, 0.012296930886805058, -0.4237726628780365, -0.11147098988294601, -0.05510452762246132, 0.22404533624649048, -0.0579548254609108, -0.09876681119203568, -0.6468679904937744, 0.06157160922884941, 0.001206124434247613, -0.36565735936164856, 0.07538225501775742, -0.1864977777004242, -0.049268629401922226, -0.08491627871990204, 0.19862395524978638, 0.5331290364265442, -0.4609861373901367, 0.14371640980243683, 0.0010181099642068148, 0.030427414923906326, 0.22282296419143677, 0.14947156608104706, -0.1381026804447174, -0.16213126480579376, -0.31928911805152893, 0.1065666675567627, 0.27650800347328186, -0.5096929669380188, -0.29778748750686646, 0.40635281801223755, -0.09369300305843353, -0.00498312059789896, -0.002961127320304513, 0.006435943767428398, 0.13214653730392456, -0.23749075829982758, 0.03508154675364494, 0.3566603660583496, -0.0839652568101883, 0.18264304101467133, -0.21231110394001007, -0.12246131896972656, 0.0972466915845871, -0.0655147135257721, -0.16748805344104767, -0.11066452413797379, 0.13592520356178284, 0.15899361670017242, 0.22154392302036285, 0.10497131198644638, -0.16107489168643951, 0.10810261964797974, 0.26168158650398254, 0.02014513686299324, -0.07550825923681259, 0.12333998084068298, 0.05885155126452446, 0.07797783613204956, -0.2107335925102234, 0.08634711802005768, -0.43988677859306335, -0.2682013213634491, -0.14563442766666412, 0.03354263678193092, -0.3326479494571686, -0.08395523577928543, 0.22566863894462585, -0.024178242310881615, -0.2100738286972046, 0.02589993178844452, -0.3468065559864044, 0.18514493107795715, 0.08878131955862045, 0.047590211033821106, -0.2662092447280884, 0.12270816415548325, -0.16638432443141937, -0.26242202520370483, 0.23365381360054016, 0.14941200613975525, 0.1016339361667633, -0.047401994466781616, -0.15304261445999146, 0.2827334702014923, 0.06985869258642197, 0.35053780674934387, -0.25920751690864563, -0.17814677953720093, 0.5491703748703003, -0.5299214124679565, 0.12763825058937073, 0.3686939477920532, 0.24687181413173676, -0.1486334651708603, 0.20105673372745514, 0.2885650396347046, -0.19764602184295654, 0.01616627164185047, 0.07636023312807083, -0.09407159686088562, 0.2952248156070709, 0.11280068755149841, 0.003900740761309862, -0.36479079723358154, 0.26327192783355713, 0.5909794569015503, 0.20624232292175293, -0.10963701456785202, -0.12406209856271744, 0.14790087938308716, 0.4497835636138916, -0.03907101973891258, -0.030570149421691895, 0.06850527226924896, 0.01580643653869629, -0.05512051656842232, -0.01315189991146326, -0.0006504246848635375, 0.07805131375789642, -0.08516493439674377, -0.2253023236989975, 0.20053362846374512, 0.059853699058294296, -0.24093984067440033, 0.1696554273366928, -0.0282125361263752, -0.15089407563209534, 0.10101976990699768, 0.06796585768461227, 0.11746485531330109, -0.2235131561756134, -0.2603950500488281, 0.01803220994770527, 0.034862250089645386, -0.3721179664134979, 0.19286690652370453, -0.46264344453811646, -0.34444162249565125, -0.09237191826105118, 0.0627865120768547, -0.004826749674975872, -0.13746032118797302, -0.07466914504766464, 0.15103639662265778, 0.11171659082174301, 0.14182734489440918, -0.3286159336566925, -0.06492675095796585, -0.1468445211648941, -0.15893451869487762, 0.004721053875982761, -0.21410652995109558, -0.1598011702299118, 0.09841350466012955, 0.4974028468132019, 0.06952808052301407, 0.04249131307005882, -0.4195202887058258, 0.1661715805530548, 0.07359956204891205, -0.12089511007070541, 0.2249319702386856, -0.22626623511314392, 0.12655730545520782, 0.04262964800000191, 0.050089213997125626, 0.011444345116615295, -0.45309701561927795, 0.14853647351264954, -0.12354698777198792, -0.02036305144429207, 0.22057770192623138, -0.026679381728172302, -0.3890245258808136, -0.1062777042388916, -0.0042596301063895226, -0.37991467118263245, -0.289725124835968, -0.18750998377799988, 0.046641863882541656, 0.04195402190089226, 0.20302912592887878, 0.15316013991832733, 0.12822312116622925, 0.2437349110841751, -0.01169075071811676, -0.011725110933184624, -0.3491707444190979, 0.396318256855011, -0.3242891728878021, -0.4361441433429718, 0.24842773377895355, 0.018128974363207817, 0.3712931275367737, -0.2505533993244171, -0.22938665747642517, -0.04457421228289604, -0.11632966995239258, 0.23375268280506134, 0.13344013690948486, 0.006367204710841179, -0.10048843920230865, -0.038895133882761, -0.056613873690366745, -0.031120147556066513, -0.08222848176956177, -0.11180751025676727, -0.08230146765708923, 0.16422779858112335, -0.0008155922405421734, 0.3257592022418976, -0.34447067975997925, -0.06416746973991394, 0.2906722128391266, 0.0664936825633049, 0.6802045106887817, -0.18250766396522522, 0.3822157680988312, -0.28701555728912354, -0.10669548064470291, -0.11050310730934143, -0.17708323895931244, -0.0840742215514183, 0.1418685019016266, -0.04551255330443382, -0.3872101902961731, -0.35347780585289, -0.020564943552017212, -0.3872493803501129, -0.3599243760108948, 0.06468518823385239, -0.023364393040537834, -0.08338695764541626, -0.05147353187203407, 0.17166608572006226, 0.1632600724697113, -0.3739401698112488, 0.07098232954740524, 0.2905246615409851, 0.0032342132180929184, 0.13903488218784332, -0.14564906060695648, -0.40581604838371277, 0.03738822415471077, 0.07405243813991547, 0.13748857378959656, 0.36214110255241394, -0.06644830852746964, 0.13293509185314178, 0.10965515673160553, -0.0678955540060997, 0.22575664520263672, -0.024567438289523125, 0.15118080377578735, 0.1217983290553093, 0.032578930258750916, 0.028255896642804146, -0.06708316504955292, -0.20335303246974945, 0.14082209765911102, 0.08987337350845337, -0.22739055752754211, -0.12178719788789749, 0.08147957175970078, -0.018918631598353386, 0.43373528122901917, -0.02898615039885044, 0.13120591640472412, -0.35552677512168884, -0.604894757270813, -0.11630340665578842, -0.21355964243412018, 0.30562570691108704, 0.1313653439283371, -0.08555066585540771, -0.08866307884454727, -0.03548137843608856, -0.2256154865026474, 0.26226216554641724, 0.3639512360095978, 0.4189310669898987, 0.09525660425424576, 0.15121115744113922, -0.15064112842082977, -0.2962837517261505, 0.4755991995334625, 0.7579310536384583, -0.06288213282823563, -0.33534035086631775, 0.06968103349208832, -0.26252639293670654, 0.12259621918201447, 0.29079967737197876, -0.09959280490875244, -0.3634558916091919, -0.04284816235303879, -0.13526204228401184, -0.09041115641593933, -0.04612567275762558, 0.25963807106018066, 0.011513954028487206, -0.4596988558769226, -0.5531416535377502, 0.4936639368534088, 0.06878633797168732, 0.13769516348838806, 0.10653281956911087, 0.1512177437543869, -0.3186251223087311, 0.31189313530921936, 0.04999629408121109, 0.8768307566642761, 0.16909009218215942, 0.017832303419709206, 0.13538727164268494, 0.11375560611486435, 0.17730626463890076, -0.12571530044078827, 0.11677375435829163, -0.3097369372844696, -0.23570629954338074, -0.042428020387887955, 0.1386723667383194, 0.017619216814637184, 0.2051658183336258, -0.317781001329422, 0.18946042656898499, -0.2238871455192566, -0.3268331289291382, 0.00491356523707509, 0.44096431136131287, -0.4308353364467621, -0.18524271249771118, -0.3423236608505249, 0.2386997491121292, 0.006817133165895939, 0.04102177172899246, 0.008472990244626999, -0.13439644873142242, -0.05865412950515747, -0.18264752626419067, -0.5604509115219116, 0.2045678049325943, -0.4502357244491577, 0.2335246205329895, -0.15526480972766876, -0.5828337669372559, 0.20492389798164368, 0.05242174491286278, 0.22463203966617584, 0.20094271004199982, 0.03528686240315437, 0.13926559686660767, 0.4998703896999359, -0.08768319338560104, 0.13613197207450867, 0.03446733579039574, 0.3020969331264496, -0.22865386307239532, -0.0887034684419632, 0.18683359026908875, 0.2094145268201828, 0.048054393380880356, 0.4210774004459381, 0.05689813941717148, -0.18148106336593628, -0.09261497110128403, -0.38836267590522766, -0.3068867325782776, 0.11355094611644745, -0.0009188609546981752, 0.16269315779209137, -0.012549878098070621, -0.08069881796836853, -0.08222085237503052, 0.19795681536197662, -0.2848180830478668, -0.10284527391195297, 0.12092918157577515, -0.15307237207889557, -0.1807931363582611, 0.44312891364097595, 0.2550019919872284, -0.3089764416217804, -0.09763441234827042, 0.2654064893722534, 0.08958142250776291, -0.6359015703201294, 0.010723513551056385, 0.17504200339317322, -0.013591657392680645, 0.07320162653923035, 0.5347976684570312, -0.009349845349788666, -0.009309174492955208, -0.05758766829967499, -0.4145115911960602, -0.15406441688537598, 0.11113158613443375, -0.05291822552680969, 0.03611583262681961, 0.0036041047424077988, 0.231766477227211, 0.1910293847322464, -0.31913456320762634, -0.3135761022567749, 0.12778440117835999, -0.18099139630794525, -0.08266747742891312, 0.1218065395951271, 0.037405528128147125, 0.06131943315267563, 0.045812398195266724, 0.1207919791340828, 0.27525001764297485, 0.07040092349052429, -0.18560659885406494, -0.031035736203193665, 0.09353543817996979, -0.09458654373884201, -0.38483068346977234, -0.10180976986885071, 0.05094928294420242, -0.1382487416267395, -0.09404236078262329, 0.1085343137383461, 0.24248413741588593, 0.1397390067577362, 0.15032747387886047, -0.20627030730247498, -0.073833167552948, -0.09675366431474686, 0.21576155722141266, -0.06562989950180054, 0.6222360134124756, 0.0835404247045517, 0.08991605043411255, 0.06874028593301773, 0.0016751514049246907, -0.009018579497933388, 0.0916675329208374, -0.3974381685256958, 0.11200125515460968, 0.2612663805484772, -0.2647683322429657, 0.4513232707977295, 0.32775312662124634, 0.024848826229572296, 0.6391981840133667, -0.19187645614147186, -0.14477106928825378, 0.24806246161460876, 0.19423061609268188, -0.17975552380084991, 0.08208604156970978, -0.1910090148448944, -0.04138322174549103, -0.14586439728736877, 0.22784025967121124, 0.2588403820991516, -0.06763392686843872, 0.12206359207630157, -0.1367558240890503, 0.6583890914916992, 0.056524135172367096, 0.40187060832977295, 0.16928865015506744, 0.007238894235342741, 0.23846669495105743, -0.14816655218601227, 0.22850659489631653, 0.04414760693907738, 0.11292432993650436, -0.5978399515151978, 0.01202907133847475, 0.09281875193119049, 0.1366991549730301, -0.024760380387306213, -0.35004937648773193, -0.09621404111385345, -0.20525029301643372, -0.10490786284208298, 0.20660267770290375, 0.07698807865381241, 0.4065268635749817, -0.3523638844490051, 0.04630862548947334, -0.07280310988426208, 0.2305932193994522, -0.030738413333892822, 0.049408067017793655, 0.07970444858074188, -0.05996610224246979, -0.33552417159080505, 0.07685035467147827, -0.14995798468589783, 0.13018688559532166, -0.1789737045764923, 0.4968095123767853, -0.0891900509595871, -0.08800198882818222, 0.06966572999954224, -0.14454180002212524, 0.2056104987859726, -0.20876294374465942, 0.4046180546283722, 0.4655507802963257, 0.25858476758003235, 0.37223488092422485, 0.11808136105537415, 0.7204275131225586, 0.46477726101875305, -0.2893510162830353, 0.14013627171516418, -0.11798887699842453, -0.03717843443155289, 0.13529755175113678, 0.05720514804124832, 0.2359030842781067, 0.3432401120662689, 0.10243407636880875, 0.20567595958709717, -0.14459826052188873, -0.1523900032043457, 0.17103387415409088, 0.27503418922424316, 0.09606534987688065, 0.17893625795841217, -0.1939716339111328, 0.221633642911911, -0.6160326600074768, -0.1946108341217041, -0.32760488986968994, 0.1413039267063141, 0.5070891380310059, -0.1426655501127243, -0.15613269805908203, -0.16301976144313812, 0.11896685510873795, 0.09719403833150864, 0.38638344407081604, 0.3257066309452057, 0.11115957796573639, -0.18122360110282898, 0.05900578945875168, -0.6790174841880798, 0.25117185711860657, 0.15052084624767303, -0.4328426420688629, -0.0628218799829483, -0.08450350165367126, -0.07079760730266571, 0.2998310923576355, 0.038031015545129776, 0.3017370402812958, -0.016988694667816162, 0.23774918913841248, 0.0184390340000391, 0.046225015074014664, -0.27482470870018005, -0.011482219211757183, -0.21714432537555695, -0.16633138060569763, 0.013108070008456707, -0.5385069847106934, 0.10013969242572784, -0.22532778978347778, -0.4575329124927521, -0.2884443700313568, 0.31975600123405457, 0.2966773808002472, 0.10213867574930191, 0.577738344669342, -0.1906375288963318, -0.2266537994146347, -0.17350317537784576, -0.3024672269821167, -0.1558382362127304, 0.509759783744812, 0.1807527393102646, 0.028210412710905075, 0.0652351975440979, 0.06823988258838654, -0.42612865567207336, 0.33914241194725037, -0.13710133731365204, -0.23315677046775818, -0.3533226549625397, -0.036474838852882385, -0.11096186190843582, -0.01567252166569233, 0.14094533026218414, 0.34115463495254517, 0.008554807864129543, 0.17462338507175446, -0.13680030405521393, -0.6540453433990479, 0.3415573835372925, -0.35434386134147644, -0.06921480596065521, 0.04358622431755066, 0.25502899289131165, -0.1510990560054779, 0.11504168063402176, -0.48638132214546204, 0.2621544301509857, -0.014934670180082321, -0.1655164361000061, -0.35339853167533875, 0.10192301124334335, -0.19165737926959991, -0.02169664576649666, -0.16778236627578735, 0.33949315547943115, 0.21470260620117188, -0.19015012681484222, -0.055405762046575546, -0.10512220114469528 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
> This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file. > Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter. > See issues #242 and #307 Sorry for not responding for about a month. I have just found that it is necessary to change / add the environment variable as what was told in #242. Everything works after I add the new environment variable and restart my PC. I think the encoding issue for windows isn't limited to the open() function call specific to few dataset, but actually in the entire library, depends on the machine / os you use.
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
115
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly > This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file. > Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter. > See issues #242 and #307 Sorry for not responding for about a month. I have just found that it is necessary to change / add the environment variable as what was told in #242. Everything works after I add the new environment variable and restart my PC. I think the encoding issue for windows isn't limited to the open() function call specific to few dataset, but actually in the entire library, depends on the machine / os you use.
[ -0.3218463063240051, 0.04104028642177582, -0.017262941226363182, 0.19213129580020905, 0.38413724303245544, -0.04183291271328926, 0.05338466912508011, 0.18391893804073334, -0.2438148558139801, 0.07465637475252151, 0.11224354058504105, 0.46712633967399597, 0.11079852283000946, 0.32633498311042786, 0.2156338095664978, 0.07934119552373886, 0.1215936616063118, 0.29352447390556335, 0.036793529987335205, 0.025393256917595863, -0.46001723408699036, 0.18018513917922974, -0.10282473266124725, 0.10621268302202225, -0.2276383638381958, -0.10093183815479279, 0.05536578968167305, 0.2734970152378082, -0.20237252116203308, -0.5459724068641663, 0.18963243067264557, -0.07502838224172592, 0.26057037711143494, 0.22775065898895264, -0.00010598228254821151, -0.04405362904071808, 0.28043240308761597, -0.18032275140285492, -0.15691210329532623, -0.2889731526374817, -0.19754286110401154, -0.367888867855072, 0.10781776905059814, -0.23687469959259033, 0.06357825547456741, 0.21372853219509125, -0.002422069199383259, -0.21361716091632843, 0.43950024247169495, 0.37702399492263794, 0.27943089604377747, 0.13542397320270538, -0.11472579836845398, 0.10991597920656204, 0.05412500724196434, 0.05732231214642525, -0.01866624504327774, 0.5010841488838196, 0.21317751705646515, -0.2339806854724884, 0.02983183227479458, 0.1721237450838089, -0.2423507571220398, -0.05809939652681351, 0.09732507914304733, 0.15943877398967743, -0.2101512998342514, -0.4088996350765228, 0.129593163728714, 0.13513679802417755, 0.3100115954875946, -0.32497459650039673, -0.1276596188545227, 0.008315859362483025, 0.10668446868658066, -0.7205755114555359, 0.3261370062828064, 0.4268113374710083, -0.24560216069221497, 0.13424602150917053, 0.06099171191453934, 0.22696132957935333, 0.04612075537443161, -0.02143937721848488, 0.06957704573869705, -0.03164300322532654, -0.23752491176128387, -0.046995650976896286, 0.22290001809597015, -0.038063328713178635, 0.0924568623304367, 0.0012147427769377828, -0.21062789857387543, 0.08152270317077637, -0.20833264291286469, 0.037601977586746216, -0.17507876455783844, 0.0315689779818058, -0.1538996398448944, -0.062016215175390244, 0.5168799161911011, 0.15464511513710022, 0.013629833236336708, 0.32131892442703247, 0.10492441803216934, 0.07977720350027084, -0.12208034843206406, 0.1708957850933075, 0.3792805075645447, -0.03426636382937431, 0.14151303470134735, -0.015254788100719452, -0.2251734435558319, -0.3475309908390045, -0.20948277413845062, 0.3959982693195343, 0.21655017137527466, -0.15233950316905975, -0.43616482615470886, 0.12127891927957535, 0.09806548058986664, 0.07021509110927582, 0.024060556665062904, 0.2243412435054779, 0.2047690898180008, 0.34666574001312256, 0.016804901883006096, 0.20398685336112976, -0.35926663875579834, -0.2429441511631012, -0.01730908267199993, 0.18190604448318481, -0.36888888478279114, -0.06975286453962326, 0.2735365331172943, -0.15787909924983978, 0.05498640984296799, 0.2533166706562042, 0.1688392460346222, -0.21181069314479828, -0.04514527693390846, -0.2011539787054062, 0.1154903843998909, 0.1348484754562378, 0.04993491619825363, 0.21833853423595428, 0.12983585894107819, -0.3230085074901581, -0.09042507410049438, 0.07447347044944763, -0.5151634812355042, -0.0060917166993021965, -0.07996737957000732, 0.23872458934783936, -0.13745002448558807, -0.05138618126511574, -0.47997578978538513, 0.17801688611507416, 0.01989823579788208, -0.4306434690952301, 0.010103119537234306, -0.205402672290802, -0.1354731023311615, -0.2135004848241806, 0.18759892880916595, 0.5726638436317444, -0.5493260025978088, 0.21754924952983856, 0.23084229230880737, 0.027051234617829323, 0.2820723056793213, 0.13102254271507263, -0.13390854001045227, -0.17691220343112946, -0.17063511908054352, -0.032075393944978714, 0.2616344690322876, -0.2815622091293335, -0.2736169099807739, 0.352300226688385, -0.007257634308189154, -0.04579247534275055, 0.03500576317310333, -0.16343630850315094, 0.19339625537395477, -0.25199222564697266, 0.03211227431893349, 0.3793463408946991, 0.03748570382595062, 0.30351147055625916, -0.20110920071601868, -0.1544065922498703, 0.27324339747428894, 0.01074046827852726, -0.293649822473526, -0.20325404405593872, 0.28219473361968994, 0.14166298508644104, 0.17445135116577148, -0.1511707603931427, -0.13375253975391388, 0.1587604433298111, 0.23274314403533936, -0.20960383117198944, -0.025487175211310387, 0.18050968647003174, -0.024958552792668343, -0.026068812236189842, -0.22982291877269745, 0.05817367509007454, -0.28902411460876465, -0.1495993435382843, -0.09294202923774719, 0.046604204922914505, -0.32464537024497986, -0.2399468719959259, 0.20325756072998047, 0.036951448768377304, -0.14263111352920532, -0.001422130735591054, -0.1411510705947876, 0.27688631415367126, 0.010731815360486507, -0.013901596888899803, -0.17243041098117828, 0.18617933988571167, -0.09003590792417526, -0.20326566696166992, 0.2726711630821228, 0.3069348931312561, 0.18523460626602173, -0.1314300298690796, -0.2873489558696747, 0.2914460599422455, 0.03483343496918678, 0.3578842878341675, -0.264957457780838, -0.2401694357395172, 0.4578379690647125, -0.48400789499282837, 0.07094583660364151, 0.4611472189426422, 0.3018134832382202, -0.0979861170053482, 0.15450996160507202, 0.36157962679862976, -0.17675374448299408, 0.019595446065068245, -0.016570867970585823, -0.12442011386156082, 0.21313215792179108, 0.030701233074069023, 0.057086747139692307, -0.194331094622612, 0.34805527329444885, 0.5848913192749023, 0.2559971511363983, 0.03747042268514633, -0.14994744956493378, -0.0009223890374414623, 0.5480145812034607, -0.09266068786382675, -0.07304748892784119, 0.12199895828962326, 0.028134522959589958, -0.10212967544794083, 0.08197345584630966, 0.03542683273553848, 0.3410060405731201, -0.11840170621871948, -0.26935118436813354, 0.2631338834762573, 0.07195527851581573, -0.24932421743869781, 0.17859484255313873, -0.0663466826081276, -0.03980974853038788, 0.0016250477638095617, 0.10922491550445557, 0.2062709629535675, -0.24641427397727966, -0.0896529108285904, 0.18197618424892426, 0.1307779848575592, -0.37067610025405884, 0.3590092360973358, -0.5268557667732239, -0.4222712814807892, -0.2778973877429962, 0.2370273619890213, -0.15062446892261505, 0.05658940598368645, -0.20608358085155487, -0.014638551510870457, 0.004854484926909208, 0.18097610771656036, -0.19596269726753235, 0.059104565531015396, -0.16773734986782074, -0.123915895819664, 0.1611844003200531, -0.20201735198497772, -0.3256499171257019, 0.10918290913105011, 0.49916642904281616, -0.06720269471406937, 0.05670684948563576, -0.3631938695907593, 0.13407616317272186, 0.19237512350082397, -0.13328495621681213, 0.13867506384849548, -0.19582679867744446, 0.21748916804790497, -0.04614631086587906, 0.01972980797290802, -0.0940224677324295, -0.43981149792671204, 0.17573921382427216, -0.062078993767499924, 0.018076473847031593, 0.16882982850074768, -0.05194380506873131, -0.28974708914756775, -0.2744271457195282, -0.15589167177677155, -0.5099148154258728, -0.38860586285591125, -0.11364366859197617, -0.114713154733181, 0.08904843777418137, 0.3229116201400757, 0.0256175696849823, 0.02902045287191868, 0.18735502660274506, -0.11734006553888321, -0.0495329424738884, -0.14874304831027985, 0.3419560194015503, -0.4083915054798126, -0.5525044798851013, 0.1008484736084938, -0.01984390988945961, 0.3197476863861084, -0.15636250376701355, -0.189693421125412, -0.0069784983061254025, -0.1507253348827362, 0.10507102310657501, 0.0035447843838483095, 0.10021340101957321, -0.054726485162973404, -0.04707477241754532, -0.025462640449404716, -0.1998523771762848, -0.1922401338815689, -0.061354950070381165, 0.08959519863128662, 0.24901427328586578, 0.04752228036522865, 0.24928371608257294, -0.2908983528614044, 0.01630791276693344, 0.3181404769420624, 0.03560763597488403, 0.5225816965103149, -0.13615813851356506, 0.4234556555747986, -0.027513552457094193, -0.058554328978061676, 0.18327264487743378, -0.3034580647945404, -0.05938679724931717, 0.3025195896625519, -0.05737050995230675, -0.29253387451171875, -0.356001079082489, -0.056059207767248154, -0.399135947227478, -0.43005213141441345, 0.2192281186580658, 0.0196998231112957, 0.0863979235291481, -0.003278290620073676, 0.18699589371681213, 0.05272119864821434, -0.32699188590049744, -0.0897168442606926, 0.3263351619243622, -0.07927783578634262, 0.1276286542415619, -0.21667267382144928, -0.5177035331726074, -0.15703965723514557, 0.11966165155172348, 0.14950241148471832, 0.4917267858982086, -0.003626065794378519, 0.1317598521709442, 0.05958506837487221, -0.11264441162347794, 0.17316488921642303, 0.1403096467256546, 0.034748490899801254, 0.2260691076517105, 0.1334960013628006, 0.001069825142621994, -0.10155411809682846, -0.23314714431762695, 0.18130576610565186, 0.025556636974215508, -0.25008726119995117, -0.11804282665252686, -0.05944094434380531, 0.025844763964414597, 0.44942110776901245, -0.10257264971733093, 0.11639680713415146, -0.4000321328639984, -0.5393142104148865, -0.006674921605736017, -0.2123165726661682, 0.13923455774784088, 0.21937322616577148, -0.25383731722831726, 0.04152844846248627, 0.05745898187160492, -0.2547731101512909, 0.3427088260650635, 0.40445831418037415, 0.4600493311882019, 0.17624631524085999, 0.02571207471191883, -0.20209449529647827, -0.003678295062854886, 0.22424638271331787, 0.6949760913848877, -0.014834343455731869, -0.35247209668159485, 0.17866985499858856, -0.22614215314388275, 0.3051570951938629, 0.274576872587204, -0.23059029877185822, -0.025235794484615326, -0.11988785862922668, -0.06431032717227936, -0.22657576203346252, 0.13734489679336548, 0.22782404720783234, 0.14924904704093933, -0.6115507483482361, -0.5212304592132568, 0.49642881751060486, -0.07088053226470947, 0.10429992526769638, 0.16227492690086365, -0.09253184497356415, -0.24401362240314484, 0.2267635017633438, 0.011018453165888786, 0.818040132522583, 0.18717709183692932, 0.1551414579153061, 0.23172831535339355, 0.012477826327085495, 0.28236615657806396, -0.08246365934610367, 0.16571415960788727, -0.23039521276950836, -0.19437603652477264, 0.05159268155694008, 0.16193391382694244, 0.2197645604610443, 0.009802306070923805, -0.3544762134552002, 0.1651540845632553, 0.15741941332817078, -0.16936740279197693, 0.17868535220623016, 0.20021510124206543, -0.22101183235645294, -0.3044361174106598, -0.5463428497314453, 0.19548895955085754, -0.07408251613378525, 0.019493084400892258, -0.0677197203040123, -0.28363266587257385, 0.08222127705812454, -0.29288017749786377, -0.25782665610313416, 0.3182096481323242, -0.5277624130249023, 0.1614261418581009, -0.16277983784675598, -0.6413739919662476, 0.3334992825984955, 0.16239240765571594, 0.17460736632347107, 0.22810786962509155, -0.016386335715651512, 0.11010938882827759, 0.2558588683605194, 0.08163139969110489, 0.025545962154865265, 0.11032262444496155, 0.13192826509475708, -0.1720839887857437, -0.029833417385816574, 0.2104104608297348, 0.049755364656448364, 0.10050446540117264, 0.37391602993011475, 0.08701694011688232, -0.1857052594423294, -0.1484842151403427, -0.16687344014644623, -0.2551545202732086, 0.16537752747535706, -0.017203448340296745, 0.15327335894107819, -0.03487827628850937, -0.025640059262514114, 0.03246970474720001, -0.008933045901358128, -0.40616941452026367, -0.15369264781475067, 0.04688100516796112, -0.10162470489740372, -0.17061547935009003, 0.49220597743988037, 0.15205343067646027, -0.242722749710083, -0.08987274765968323, 0.27226564288139343, -0.1683497428894043, -0.4991505742073059, -0.0479404516518116, 0.20286744832992554, 0.02553781121969223, 0.09532860666513443, 0.6194522976875305, -0.0614955872297287, 0.010784033685922623, 0.08224018663167953, -0.5254035592079163, -0.22157390415668488, -0.007388822268694639, -0.07670219987630844, -0.0994524285197258, 0.19910256564617157, 0.2663195729255676, 0.09846697747707367, -0.19288747012615204, -0.30950796604156494, 0.04791815206408501, -0.017730876803398132, 0.05857859551906586, 0.22140046954154968, 0.011723112314939499, 0.1854628622531891, 0.09031585603952408, 0.10962576419115067, 0.3042011559009552, -0.04313378036022186, -0.16531841456890106, -0.1965872049331665, 0.10162567347288132, -0.0849459245800972, -0.33559146523475647, -0.074277363717556, 0.0007747966446913779, 0.01207516435533762, -0.17721371352672577, 0.18216705322265625, 0.08502310514450073, 0.007139523047953844, 0.1622149646282196, -0.3617423474788666, 0.12232176214456558, -0.054553113877773285, 0.2537565529346466, -0.19599276781082153, 0.5454299449920654, 0.10135282576084137, 0.14067202806472778, 0.07464534789323807, 0.05254145339131355, -0.10805658251047134, -0.07511076331138611, -0.31674373149871826, 0.026664817705750465, 0.14252644777297974, -0.3232637941837311, 0.3874885141849518, 0.1754027009010315, -0.04124734550714493, 0.5807660818099976, -0.11491885781288147, 0.03852222114801407, 0.42760297656059265, 0.15287242829799652, -0.2509971857070923, 0.13763214647769928, -0.34202608466148376, -0.03075290285050869, -0.10330811142921448, 0.246475487947464, 0.28734326362609863, -0.22216473519802094, 0.222173810005188, -0.18214167654514313, 0.4188600182533264, 0.16871067881584167, 0.4179491698741913, 0.5055607557296753, 0.20754064619541168, 0.2703205645084381, -0.11950372904539108, 0.10818588733673096, -0.012581480666995049, 0.0693637877702713, -0.5291961431503296, 0.08627799898386002, 0.13312670588493347, 0.2308533489704132, -0.156981959939003, -0.4490392804145813, -0.062026552855968475, -0.14164406061172485, -0.18209105730056763, 0.33723434805870056, 0.08950390666723251, 0.5444586873054504, -0.5150148272514343, -0.02415679395198822, -0.09065142273902893, 0.17104049026966095, -0.08515335619449615, 0.018696926534175873, 0.10019824653863907, 0.020285962149500847, -0.22379536926746368, 0.1610758751630783, -0.13752207159996033, 0.12724272906780243, -0.07451866567134857, 0.36705875396728516, -0.14959660172462463, -0.031094161793589592, 0.03805697709321976, 0.013626127503812313, 0.08130563795566559, -0.13143418729305267, 0.49109095335006714, 0.26424723863601685, 0.1730857640504837, 0.2993214726448059, 0.09913694858551025, 0.6880452632904053, 0.442965567111969, -0.08565850555896759, 0.01409994252026081, -0.14281822741031647, 0.08479182422161102, 0.12774570286273956, 0.10181473940610886, 0.3066113293170929, 0.4459530711174011, 0.17610785365104675, 0.1773952841758728, -0.10484020411968231, -0.07915886491537094, 0.17182765901088715, 0.026784993708133698, -0.011856194585561752, 0.06729768216609955, -0.09164386242628098, 0.21695981919765472, -0.49256885051727295, -0.11692675948143005, -0.3307478427886963, 0.2565573453903198, 0.4066551923751831, 0.11521206796169281, 0.0020711668767035007, -0.11249351501464844, 0.10016319900751114, 0.15493083000183105, 0.4857947528362274, 0.18879534304141998, 0.10789411514997482, -0.1383635401725769, -0.07115477323532104, -0.7003782391548157, 0.27711769938468933, 0.12386997789144516, -0.3950074017047882, -0.14867481589317322, -0.36751502752304077, 0.05590759590268135, 0.29698801040649414, -0.091839499771595, 0.281522274017334, 0.09994861483573914, 0.05519891530275345, -0.16436760127544403, -0.0053272731602191925, -0.1478884518146515, 0.06493780761957169, -0.25259867310523987, -0.2197636365890503, 0.09494158625602722, -0.26187562942504883, 0.04927634075284004, -0.2654641568660736, -0.264486700296402, -0.3507204055786133, 0.057847168296575546, 0.3458439111709595, 0.23076282441616058, 0.4740200638771057, -0.26858216524124146, -0.07031438499689102, -0.15815232694149017, -0.18353518843650818, 0.0014244528720155358, 0.33804696798324585, 0.17912788689136505, 0.04686586186289787, 0.03723210468888283, 0.15754401683807373, -0.40537071228027344, 0.17257510125637054, -0.09810084104537964, -0.08031168580055237, -0.19135351479053497, 0.046189043670892715, 0.05417179316282272, -0.12078394740819931, 0.2979145646095276, 0.41824015974998474, -0.07981117814779282, 0.05355757474899292, -0.11100705713033676, -0.5214464068412781, 0.20540662109851837, -0.6085333824157715, -0.15372955799102783, 0.10543693602085114, 0.30488699674606323, -0.22721663117408752, 0.13807587325572968, -0.4638041853904724, 0.25318923592567444, 0.024838345125317574, -0.1234542652964592, -0.34445351362228394, 0.16837450861930847, -0.2985506057739258, -0.13778147101402283, -0.08921711891889572, 0.4464704394340515, 0.19694016873836517, -0.3050903081893921, 0.11707794666290283, -0.2842418849468231 ]
https://github.com/huggingface/datasets/issues/347
'cp950' codec error from load_dataset('xtreme', 'tydiqa')
Since #481 we shouldn't have other issues with encodings as they need to be set to "utf-8" be default. Closing this one, but feel free to re-open if you gave other questions
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly
32
'cp950' codec error from load_dataset('xtreme', 'tydiqa') ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png) I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps : https://www.python.org/dev/peps/pep-0263/ I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51) Any ideas? p.s. tried the same code on colab, that runs perfectly Since #481 we shouldn't have other issues with encodings as they need to be set to "utf-8" be default. Closing this one, but feel free to re-open if you gave other questions
[ -0.2920764684677124, -0.11546672880649567, -0.04850513115525246, 0.1429702788591385, 0.39768528938293457, -0.13868510723114014, -0.029937930405139923, 0.20731058716773987, -0.34860366582870483, 0.1107882559299469, 0.17416365444660187, 0.4716804623603821, 0.022072890773415565, 0.33678367733955383, 0.23934076726436615, -0.022137854248285294, 0.03464408963918686, 0.2812207043170929, -0.03621803596615791, -0.04216064512729645, -0.2705145478248596, 0.17115919291973114, -0.065965935587883, -0.0170615091919899, -0.3997251093387604, -0.012458210811018944, 0.04869456589221954, 0.2974322438240051, -0.36483198404312134, -0.47515618801116943, 0.19519035518169403, 0.011911573819816113, 0.1359139382839203, 0.2594550848007202, -0.00010118856880581006, -0.07710275053977966, 0.3384813964366913, -0.23746663331985474, -0.07268289476633072, -0.22146283090114594, -0.21621456742286682, -0.33954107761383057, 0.09974133223295212, -0.15816082060337067, -0.046024855226278305, 0.2871534824371338, 0.05477004870772362, -0.02645295299589634, 0.4907977283000946, 0.22252173721790314, 0.336117684841156, 0.10829537361860275, -0.08713759481906891, 0.09709285199642181, 0.03838605433702469, 0.1536252796649933, -0.08105930685997009, 0.4045359492301941, 0.26578906178474426, -0.2489139884710312, 0.1300012171268463, 0.3025204539299011, -0.1547398567199707, -0.15835803747177124, 0.04553503915667534, 0.005073076579719782, -0.07711246609687805, -0.41471487283706665, 0.0786360651254654, 0.15391956269741058, 0.19330735504627228, -0.3020574450492859, -0.05591907352209091, 0.09198971092700958, 0.10050754249095917, -0.5315510630607605, 0.2414301186800003, 0.2892913222312927, -0.26209068298339844, 0.09326532483100891, -0.05643115192651749, 0.10548029839992523, 0.05199965834617615, -0.04319007694721222, 0.03255658596754074, 0.13273604214191437, -0.11925801634788513, -0.12432188540697098, 0.1317438930273056, 0.000768571684602648, 0.15458835661411285, 0.08589473366737366, -0.20291416347026825, 0.2109208106994629, -0.1349480003118515, -0.10167236626148224, -0.11939327418804169, -0.00372879346832633, -0.07989542186260223, -0.1457088738679886, 0.5618247389793396, 0.1537448912858963, -0.0523676797747612, 0.32369935512542725, 0.12995855510234833, 0.06671880185604095, -0.1919056922197342, 0.19378742575645447, 0.23119975626468658, 0.04842669889330864, 0.13308021426200867, 0.06268061697483063, -0.1734265834093094, -0.20257507264614105, -0.32864636182785034, 0.2584730386734009, 0.14050300419330597, -0.1802663952112198, -0.3870389461517334, 0.08654049783945084, 0.07746487110853195, 0.11443334817886353, 0.0800359696149826, 0.1966683566570282, 0.2150229811668396, 0.32007622718811035, -0.031015366315841675, 0.266157865524292, -0.3405720293521881, -0.30020371079444885, -0.15360510349273682, 0.23189525306224823, -0.4263070523738861, -0.1337781548500061, 0.1555846631526947, -0.010365301743149757, 0.15589457750320435, 0.20737271010875702, 0.16980771720409393, -0.12404453009366989, 0.06677959859371185, -0.07249809801578522, 0.08798711746931076, 0.13000114262104034, -0.0004068825801368803, 0.09703600406646729, 0.16069716215133667, -0.2576766610145569, -0.09560126811265945, 0.06968721747398376, -0.4069743752479553, -0.02010137401521206, -0.05226202309131622, 0.3179689645767212, -0.07532457262277603, -0.04666844755411148, -0.466020405292511, 0.19138340651988983, 0.11946838349103928, -0.3060780465602875, 0.12381823360919952, -0.16913649439811707, -0.06261220574378967, -0.17087221145629883, 0.15835128724575043, 0.42471376061439514, -0.46702319383621216, 0.04965915530920029, 0.2211834192276001, -0.0012431369395926595, 0.36959660053253174, 0.05875951424241066, -0.15650597214698792, -0.14289221167564392, -0.13305062055587769, -0.004720617085695267, 0.3198850452899933, -0.3632708489894867, -0.20363906025886536, 0.2700956165790558, -0.047594256699085236, -0.03068358823657036, -0.01738811284303665, -0.010635104961693287, 0.053014617413282394, -0.18642878532409668, 0.09728976339101791, 0.4720688462257385, 0.0049766493029892445, 0.29728588461875916, -0.29080426692962646, -0.21389822661876678, 0.14087752997875214, 0.09191948175430298, -0.22115571796894073, -0.20594611763954163, 0.1534096896648407, 0.31348535418510437, 0.24277405440807343, -0.07707946002483368, -0.28919968008995056, 0.16309045255184174, 0.26968932151794434, -0.2634691894054413, -0.18510746955871582, 0.23209820687770844, 0.07849560678005219, -0.035694919526576996, -0.3901948928833008, 0.22682413458824158, -0.2439689040184021, -0.13089430332183838, -0.09365805238485336, 0.023181669414043427, -0.45455098152160645, -0.26279887557029724, 0.2949182093143463, -0.0049352459609508514, -0.1328275203704834, 0.011229593306779861, -0.18475021421909332, 0.26011553406715393, 0.0009449560311622918, -0.03353160247206688, -0.23781974613666534, 0.18498066067695618, -0.1797097772359848, -0.26753100752830505, 0.2869930565357208, 0.2790135145187378, 0.12912386655807495, -0.14470914006233215, -0.15728212893009186, 0.28604912757873535, 0.01248342264443636, 0.4131282866001129, -0.2609882950782776, -0.24361485242843628, 0.5184404850006104, -0.5575987100601196, 0.07000350207090378, 0.45449942350387573, 0.19279709458351135, -0.16033373773097992, 0.2434355765581131, 0.27020013332366943, -0.05238427594304085, -0.05499662831425667, 0.041218310594558716, -0.1327364444732666, 0.15048809349536896, 0.024140553548932076, 0.046906113624572754, -0.16036449372768402, 0.36268922686576843, 0.6080380082130432, 0.2547619044780731, -0.04875272139906883, -0.12869371473789215, 0.11229511350393295, 0.4738346338272095, -0.010347926057875156, -0.0013967001577839255, 0.0326431542634964, 0.08487971127033234, -0.16633741557598114, 0.10383471846580505, 0.050344374030828476, 0.12577924132347107, -0.034434787929058075, -0.20820175111293793, 0.20093435049057007, -0.06560611724853516, -0.2105451375246048, 0.16005779802799225, -0.10110058635473251, -0.011589164845645428, 0.022415099665522575, 0.1100708618760109, 0.02496340684592724, -0.3192925751209259, -0.13977421820163727, 0.023509712889790535, 0.09397328644990921, -0.2500419020652771, 0.2658507823944092, -0.4543831944465637, -0.4244677722454071, -0.17675235867500305, 0.08820735663175583, -0.20569369196891785, -0.07960730046033859, 0.010361474007368088, -0.07776980847120285, 0.06701697409152985, 0.2921099066734314, -0.16475898027420044, -0.004243789240717888, -0.12359974533319473, -0.09897810220718384, -0.01178966648876667, -0.1825900673866272, -0.21222379803657532, 0.16777998208999634, 0.4413806200027466, -0.039840687066316605, 0.10244471579790115, -0.3816797435283661, 0.06469589471817017, 0.2964728772640228, -0.3084113597869873, 0.2883990705013275, -0.2581622898578644, 0.1106209084391594, -0.001071776496246457, 0.09484011679887772, -0.056066546589136124, -0.31485557556152344, 0.2171669900417328, -0.11989548057317734, -0.0971306636929512, 0.11697223782539368, -0.045910660177469254, -0.1961919069290161, -0.2785629630088806, 0.06421716511249542, -0.4410555064678192, -0.3425578474998474, -0.2023862898349762, 0.1259264051914215, 0.09291603416204453, 0.41566160321235657, 0.20455002784729004, 0.09871853142976761, 0.1759500503540039, -0.0851387307047844, -0.13316883146762848, -0.33340227603912354, 0.2693319320678711, -0.35172128677368164, -0.4344564378261566, -0.00007238968828460202, -0.012158794328570366, 0.5023622512817383, -0.18698285520076752, -0.26060232520103455, -0.10262886434793472, -0.06708366423845291, 0.05553523451089859, -0.014421495608985424, 0.1379837691783905, -0.03245766460895538, -0.0005475273355841637, -0.06401661783456802, -0.12841913104057312, 0.031221000477671623, -0.04553524777293205, 0.03140929341316223, 0.34330499172210693, -0.08907929062843323, 0.16888749599456787, -0.20431320369243622, 0.07036490738391876, 0.1695312261581421, 0.08275525271892548, 0.6934221982955933, -0.07397725433111191, 0.4205707013607025, -0.19951178133487701, -0.048158638179302216, 0.14158231019973755, -0.12069161981344223, -0.06351207941770554, 0.18511323630809784, -0.04921159893274307, -0.2864263355731964, -0.3336731493473053, 0.05515311285853386, -0.22856365144252777, -0.21710872650146484, 0.09991265833377838, 0.16522328555583954, -0.014346360228955746, 0.012988479807972908, 0.1171443834900856, 0.08837366849184036, -0.22867661714553833, -0.014451761730015278, 0.1805538535118103, -0.17515693604946136, 0.17103230953216553, -0.28696051239967346, -0.3914894163608551, -0.19153043627738953, 0.08006203919649124, 0.1745445430278778, 0.23137985169887543, -0.08024217188358307, 0.07306736707687378, 0.13447444140911102, -0.1544649302959442, 0.17186444997787476, 0.12570743262767792, 0.030781051144003868, 0.09542427957057953, 0.10998857021331787, 0.0595218800008297, -0.05459510535001755, -0.2330911010503769, 0.12479861080646515, 0.1994689702987671, -0.22051002085208893, -0.16889521479606628, 0.025904880836606026, 0.033910252153873444, 0.316585510969162, -0.058916881680488586, 0.1562262773513794, -0.4766594171524048, -0.6225417256355286, -0.10871714353561401, -0.19974173605442047, 0.2200850248336792, 0.2296123504638672, -0.12895892560482025, -0.04886430874466896, 0.04386906698346138, -0.2836996912956238, 0.25123438239097595, 0.5140658020973206, 0.4233030676841736, 0.1211608275771141, -0.022625340148806572, -0.19032196700572968, -0.1330404132604599, 0.18969519436359406, 0.7450618743896484, 0.03637080267071724, -0.2097328007221222, 0.13914403319358826, -0.17708082497119904, 0.25076013803482056, 0.29996752738952637, -0.040704838931560516, -0.17531292140483856, -0.16709302365779877, -0.07529592514038086, -0.19167929887771606, 0.23072317242622375, 0.23406940698623657, 0.0813339352607727, -0.5356984734535217, -0.44804826378822327, 0.5573652386665344, -0.05041687190532684, 0.17269092798233032, 0.1419832408428192, -0.09036923944950104, -0.31412574648857117, 0.24117599427700043, 0.07839784026145935, 0.9852367043495178, 0.21123568713665009, 0.21902123093605042, 0.3602869212627411, 0.12387258559465408, 0.168318510055542, -0.07529093325138092, 0.19400160014629364, -0.3183623254299164, -0.14749060571193695, 0.028008699417114258, 0.1500527262687683, 0.12561394274234772, 0.07914759963750839, -0.3388415575027466, 0.10871176421642303, -0.04238265007734299, -0.26821133494377136, 0.10928663611412048, 0.2032424956560135, -0.2257401943206787, -0.18242530524730682, -0.6316766142845154, 0.2712889611721039, -0.0699545219540596, 0.03684764727950096, -0.17959064245224, -0.21817390620708466, -0.011334765702486038, -0.33945509791374207, -0.18566389381885529, 0.35873934626579285, -0.4648071825504303, 0.16566479206085205, -0.1256931573152542, -0.6603448390960693, 0.05898723751306534, 0.10188079625368118, 0.14220885932445526, 0.1705821305513382, -0.03163095936179161, 0.2886004149913788, 0.32898372411727905, -0.033304981887340546, 0.05385255813598633, 0.1803852617740631, 0.11644350737333298, -0.23796798288822174, -0.04088965058326721, 0.21682962775230408, 0.11365266144275665, -0.050730183720588684, 0.274654746055603, -0.013909167610108852, -0.16878610849380493, -0.04254654794931412, -0.28546157479286194, -0.11968987435102463, 0.19086483120918274, -0.05865909159183502, 0.22393958270549774, -0.027934696525335312, -0.22309155762195587, -0.07336407154798508, 0.1914944052696228, -0.2924988269805908, -0.16458533704280853, 0.06717556715011597, -0.0564565472304821, -0.10511258244514465, 0.44616538286209106, 0.1842789202928543, -0.20753373205661774, -0.15132805705070496, 0.24361518025398254, -0.07544346898794174, -0.5386855602264404, -0.006628966424614191, 0.14108286798000336, -0.15344834327697754, 0.0034849210642278194, 0.6803987622261047, -0.026904715225100517, -0.05686888471245766, 0.14419621229171753, -0.32723119854927063, -0.3443569540977478, 0.015019424259662628, -0.11621085554361343, 0.07491256296634674, 0.08794064074754715, 0.34699228405952454, 0.053947415202856064, -0.06735476851463318, -0.3985673785209656, 0.06626836210489273, -0.14266793429851532, 0.04884492605924606, 0.12896524369716644, -0.12151432782411575, 0.10714572668075562, 0.1047944575548172, 0.20299628376960754, 0.32196536660194397, -0.09791156649589539, -0.28321805596351624, -0.1359747052192688, 0.05657126381993294, 0.0017055514035746455, -0.3379489481449127, -0.08891069144010544, 0.0667089968919754, -0.08586105704307556, 0.007173840422183275, 0.14235268533229828, 0.05243036150932312, 0.09311643242835999, 0.13242372870445251, -0.246174618601799, 0.15864114463329315, 0.10539907217025757, 0.16289913654327393, -0.06963446736335754, 0.5597638487815857, 0.16368873417377472, 0.06287506967782974, 0.005985599476844072, -0.0253742765635252, -0.04471493512392044, 0.05055418983101845, -0.23766903579235077, 0.10622791200876236, 0.10446310043334961, -0.3597468137741089, 0.4122334420681, 0.05892958492040634, -0.016311682760715485, 0.4570324718952179, -0.2496933788061142, -0.09783045947551727, 0.3505038619041443, 0.265517920255661, -0.3189130425453186, 0.07381221652030945, -0.28432607650756836, -0.018877027556300163, -0.042106591165065765, 0.3487898111343384, 0.20893706381320953, -0.11456461995840073, 0.2774542570114136, -0.040406081825494766, 0.3768448829650879, 0.1393827646970749, 0.33842623233795166, 0.319906085729599, -0.06332163512706757, 0.17677776515483856, -0.144913449883461, 0.14437606930732727, -0.06197892501950264, -0.006590845063328743, -0.6218460202217102, 0.1565925031900406, 0.02023148350417614, 0.06158509850502014, 0.013064537197351456, -0.23057681322097778, -0.13717453181743622, -0.09707003086805344, -0.10797108709812164, 0.34584900736808777, 0.15333755314350128, 0.4684997498989105, -0.388182669878006, -0.061844151467084885, -0.09995236992835999, 0.2083495557308197, -0.10234472155570984, 0.038097310811281204, 0.016766833141446114, -0.026049979031085968, -0.3448733985424042, 0.12415212392807007, -0.11061956733465195, 0.11901496350765228, -0.048175662755966187, 0.31284451484680176, -0.10804285854101181, -0.0022137810010463, 0.010592135600745678, -0.013305267319083214, 0.06520837545394897, -0.09035459160804749, 0.5817039608955383, 0.3365059792995453, 0.16596809029579163, 0.2955407500267029, 0.16374924778938293, 0.5992540121078491, 0.41942834854125977, -0.19850550591945648, 0.019741177558898926, -0.15948936343193054, 0.03866095095872879, 0.03853297606110573, 0.11913641542196274, 0.3507341146469116, 0.35481470823287964, 0.2214697152376175, 0.2291056513786316, -0.21198874711990356, -0.1589125394821167, 0.25166431069374084, 0.01980680413544178, 0.10843443125486374, 0.1820889711380005, -0.12766297161579132, 0.22857196629047394, -0.5063561201095581, -0.10436863452196121, -0.47510287165641785, 0.28436318039894104, 0.3184298872947693, 0.025130312889814377, 0.014588848687708378, -0.18817321956157684, 0.14906805753707886, 0.011760403402149677, 0.5455561280250549, 0.24620045721530914, 0.0812002420425415, -0.10533583909273148, -0.0941719338297844, -0.7023865580558777, 0.29002609848976135, 0.03589824214577675, -0.42201539874076843, -0.20402689278125763, -0.21446077525615692, 0.058692220598459244, 0.3786674737930298, 0.057602446526288986, 0.2639371156692505, 0.08731485158205032, 0.04272063821554184, -0.12064574658870697, 0.05994875356554985, -0.16763058304786682, 0.0728154182434082, -0.2522140145301819, -0.23383677005767822, 0.02528567798435688, -0.3026726245880127, 0.16652685403823853, -0.2468516230583191, -0.38117098808288574, -0.4446505904197693, 0.0948222428560257, 0.2352754920721054, 0.18976309895515442, 0.31411343812942505, -0.28098297119140625, -0.2891313433647156, -0.059403903782367706, -0.2559397220611572, -0.08499494940042496, 0.3175143897533417, 0.17990678548812866, 0.1395949274301529, 0.11587943136692047, 0.14968101680278778, -0.45399603247642517, 0.3691815137863159, -0.04075171425938606, -0.15030436217784882, -0.2544978857040405, 0.04006199911236763, 0.0016040606424212456, -0.015412396751344204, 0.13734006881713867, 0.37080925703048706, -0.04366046562790871, 0.10419438034296036, -0.19640369713306427, -0.494351327419281, 0.288033664226532, -0.48737815022468567, -0.15558667480945587, 0.146310955286026, 0.11337962746620178, -0.15051628649234772, 0.09109516441822052, -0.5280264616012573, 0.23671577870845795, -0.01128945592790842, -0.14854921400547028, -0.26454055309295654, 0.28167304396629333, -0.26277607679367065, -0.09582827985286713, -0.07956545054912567, 0.32302939891815186, 0.19313208758831024, -0.10979238152503967, 0.03967633098363876, -0.2406676560640335 ]
https://github.com/huggingface/datasets/issues/345
Supporting documents in ELI5
Hi @saverymax ! For licensing reasons, the original team was unable to release pre-processed CommonCrawl documents. Instead, they provided a script to re-create them from a CommonCrawl dump, but it unfortunately requires access to a medium-large size cluster: https://github.com/facebookresearch/ELI5#downloading-support-documents-from-the-commoncrawl In order to make the task accessible to people who may not have access to this kind of infrastructure, we suggest to use Wikipedia as a knowledge source rather than the full CommonCrawl. The following blog post shows how you can create Wikipedia support documents and get a performance that is on par with a system that uses CommonCrawl pages. https://yjernite.github.io/lfqa.html#task_description Hope that helps, using ElasticSearch to index Wiki40b and create the documents should take about 4 hours. Let us know if you have any trouble with the blog post though!
I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least. If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :(
130
Supporting documents in ELI5 I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least. If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :( Hi @saverymax ! For licensing reasons, the original team was unable to release pre-processed CommonCrawl documents. Instead, they provided a script to re-create them from a CommonCrawl dump, but it unfortunately requires access to a medium-large size cluster: https://github.com/facebookresearch/ELI5#downloading-support-documents-from-the-commoncrawl In order to make the task accessible to people who may not have access to this kind of infrastructure, we suggest to use Wikipedia as a knowledge source rather than the full CommonCrawl. The following blog post shows how you can create Wikipedia support documents and get a performance that is on par with a system that uses CommonCrawl pages. https://yjernite.github.io/lfqa.html#task_description Hope that helps, using ElasticSearch to index Wiki40b and create the documents should take about 4 hours. Let us know if you have any trouble with the blog post though!
[ 0.08067575842142105, -0.14141522347927094, -0.13081791996955872, -0.09870082885026932, -0.33957818150520325, -0.021614322438836098, -0.2173517793416977, 0.21030378341674805, 0.05030108243227005, -0.025913624092936516, 0.12808965146541595, -0.24119429290294647, 0.10086894780397415, 0.1427411288022995, -0.24458076059818268, 0.14619503915309906, 0.02765469066798687, 0.26608482003211975, 0.24168634414672852, -0.19477730989456177, -0.017842615023255348, 0.1976369470357895, 0.14320389926433563, -0.17161515355110168, -0.3346637785434723, 0.2507561147212982, -0.2730869650840759, 0.10424128919839859, -0.23726172745227814, -0.0662408247590065, 0.10239405930042267, 0.23783078789710999, -0.0362560898065567, -0.056539203971624374, -0.00010823657066794112, 0.015139265917241573, 0.09982600808143616, -0.13039371371269226, -0.07171652466058731, 0.03523595258593559, 0.3620178699493408, -0.44770312309265137, 0.138459250330925, -0.16207969188690186, -0.3059394359588623, -0.12026377767324448, 0.2798629403114319, 0.3556279242038727, 0.35285717248916626, -0.004644394386559725, 0.19483976066112518, 0.013587309047579765, 0.14968623220920563, 0.03551207855343819, 0.3426303565502167, 0.3699350655078888, -0.25222811102867126, -0.2625685930252075, 0.2649267613887787, -0.2322932928800583, 0.06973376870155334, 0.3647729754447937, 0.08754695951938629, -0.11299768090248108, 0.37304383516311646, 0.10214335471391678, 0.04699036851525307, -0.6132784485816956, 0.25959450006484985, 0.25100311636924744, 0.3036837875843048, 0.2703656852245331, -0.12073321640491486, -0.30472150444984436, -0.24681907892227173, 0.2858925461769104, 0.19559599459171295, 0.21770237386226654, -0.15028688311576843, 0.1511644870042801, 0.03148028627038002, -0.11847459524869919, -0.018271833658218384, 0.30930712819099426, 0.14524509012699127, 0.16285601258277893, -0.08819791674613953, -0.14606600999832153, 0.21862883865833282, -0.14490580558776855, -0.659001886844635, 0.12207657098770142, 0.20565958321094513, 0.13404536247253418, 0.04849259927868843, -0.13409386575222015, 0.17475683987140656, 0.13774020969867706, 0.5864343643188477, 0.05961545929312706, -0.08664213865995407, 0.12735764682292938, -0.04045078158378601, 0.04658667743206024, 0.08889977633953094, 0.06024009361863136, 0.008747763000428677, -0.22092057764530182, 0.25793692469596863, 0.11233833432197571, -0.0838562622666359, 0.004638936370611191, 0.06271228939294815, 0.3078448176383972, -0.32415419816970825, -0.5395178198814392, 0.12017545104026794, -0.16765540838241577, -0.1507181078195572, 0.15690012276172638, -0.16855932772159576, 0.02546263113617897, -0.22344011068344116, 0.5335274934768677, 0.04018014296889305, -0.005582137033343315, -0.013697810471057892, 0.038695208728313446, -0.1921842247247696, -0.11287625879049301, -0.07311880588531494, -0.1688324511051178, -0.10971681028604507, 0.19987612962722778, 0.19954761862754822, -0.3310857117176056, 0.5541296601295471, -0.2196209728717804, 0.2041630744934082, 0.09775432199239731, 0.19321683049201965, 0.030117133632302284, 0.25354325771331787, 0.353828102350235, 0.15451212227344513, 0.039450205862522125, -0.04879382625222206, -0.15945768356323242, -0.24830424785614014, -0.2479272484779358, 0.06972531229257584, -0.36297422647476196, -0.4516451060771942, 0.20461229979991913, 0.1505700647830963, 0.20506609976291656, 0.02309948392212391, 0.5333048105239868, -0.3146410286426544, -0.10384601354598999, 0.1686955690383911, 0.36480948328971863, -0.3038474917411804, -0.10205492377281189, 0.4092985689640045, 0.251921683549881, 0.40098875761032104, -0.3729685842990875, -0.060662705451250076, 0.3335611820220947, -0.09778375923633575, 0.33652055263519287, -0.06586966663599014, -0.2021234631538391, -0.03327284753322601, 0.3529548943042755, 0.2694999873638153, -0.24277830123901367, -0.5641850829124451, 0.25916072726249695, -0.0024538554716855288, 0.2508821487426758, 0.08455273509025574, 0.06849036365747452, 0.0826147273182869, -0.21895548701286316, 0.024945490062236786, 0.28494957089424133, 0.05195976793766022, 0.07206377387046814, -0.3615596294403076, -0.41187334060668945, 0.02702440693974495, 0.1433938890695572, -0.06675209850072861, -0.2504670321941376, 0.0029694577679038048, -0.06456706672906876, -0.025444669649004936, -0.07729370146989822, 0.1527872532606125, 0.3830140233039856, 0.13486351072788239, 0.19902174174785614, 0.10526621341705322, -0.019033392891287804, -0.3713845908641815, 0.23282821476459503, -0.09672188013792038, 0.4336290657520294, 0.17363739013671875, -0.38501113653182983, -0.08039025217294693, -0.07440877705812454, -0.10500581562519073, -0.44365060329437256, 0.2301824986934662, -0.1027260422706604, 0.2857621908187866, 0.09180796146392822, -0.028229650110006332, -0.28647541999816895, -0.26022061705589294, 0.0710943192243576, -0.16514039039611816, 0.33156225085258484, -0.32133233547210693, 0.034253139048814774, 0.07824850082397461, 0.16143064200878143, -0.12425549328327179, 0.11050717532634735, 0.19428184628486633, -0.007129637524485588, -0.35513541102409363, -0.03792820870876312, 0.40027883648872375, 0.7665846347808838, 0.27764371037483215, -0.38182899355888367, 0.10056132823228836, 0.19956475496292114, -0.035320788621902466, -0.173257976770401, -0.31459367275238037, 0.08892747759819031, 0.2785700857639313, 0.3200397789478302, 0.18909195065498352, -0.05713343247771263, 0.03825605288147926, 0.09031855314970016, -0.15579360723495483, -0.1499127298593521, 0.3771609961986542, -0.1340332180261612, 0.0639229267835617, 0.0019990939181298018, -0.1482246369123459, 0.41387757658958435, 0.17230334877967834, 0.10562299937009811, 0.19207972288131714, 0.5266594290733337, -0.13823041319847107, -0.4718618392944336, -0.17152555286884308, -0.39718836545944214, 0.016445424407720566, 0.2203437238931656, 0.19134314358234406, 0.02780882641673088, 0.1325487643480301, 0.0655033066868782, 0.1050010398030281, 0.008390791714191437, -0.002898148028180003, 0.07285361737012863, 0.2263057678937912, 0.22096972167491913, -0.2642670273780823, -0.102446049451828, -0.3160075843334198, -0.07965783774852753, 0.10148315131664276, -0.009237926453351974, 0.22131572663784027, -0.25074923038482666, 0.2634437084197998, -0.07818932831287384, -0.41474124789237976, -0.31532448530197144, 0.294823557138443, 0.11356047540903091, -0.15211841464042664, 0.09333376586437225, -0.035907331854104996, 0.1366746872663498, -0.13476653397083282, 0.20003215968608856, -0.44488489627838135, -0.12616507709026337, -0.192721888422966, 0.08642188459634781, -0.04539422690868378, 0.48965567350387573, 0.19967608153820038, -0.19186685979366302, -0.08912622928619385, -0.6268865466117859, -0.6305290460586548, 0.28470027446746826, -0.13276776671409607, 0.10559805482625961, 0.2470073252916336, 0.34812113642692566, -0.39252883195877075, -0.4493709206581116, 0.2627798616886139, -0.4444778859615326, -0.19997358322143555, -0.27489954233169556, -0.19031274318695068, 0.022514889016747475, 0.04938330501317978, -0.11886957287788391, -0.25793197751045227, -0.26668107509613037, 0.3291163444519043, 0.2762428820133209, -0.06096046045422554, -0.045891061425209045, 0.020552780479192734, 0.12517666816711426, 0.225808247923851, 0.2626572847366333, -0.29367420077323914, -0.047449931502342224, 0.29182738065719604, -0.3029046654701233, -0.2832894027233124, -0.03700769320130348, -0.11259432137012482, -0.23248359560966492, -0.18669599294662476, -0.3569921851158142, -0.38373154401779175, -0.13702020049095154, 0.054883282631635666, -0.026495352387428284, 0.0882038101553917, 0.19683966040611267, -0.010737513191998005, -0.20333391427993774, 0.16136051714420319, -0.029212387278676033, -0.03836468607187271, 0.08661533892154694, 0.0075270324014127254, -0.2022758573293686, 0.20601867139339447, 0.06293433159589767, 0.7775629758834839, 0.25601229071617126, 0.09571430832147598, 0.3554355204105377, 0.0965009406208992, 0.30238837003707886, -0.3307039737701416, -0.048168033361434937, 0.08207996189594269, 0.026122985407710075, 0.10005124658346176, 0.5637345314025879, 0.23273515701293945, -0.15576349198818207, -0.10261458903551102, -0.522576093673706, -0.3188146948814392, -0.2693009078502655, 0.2323872148990631, 0.23230552673339844, 0.2514643371105194, -0.04276411235332489, 0.03134932368993759, 0.044882599264383316, -0.43285390734672546, 0.17106449604034424, 0.14947524666786194, 0.06562040746212006, 0.06721611320972443, -0.2274300456047058, 0.0286747757345438, -0.9157418012619019, 0.29033857583999634, 0.1272510141134262, -0.22618694603443146, -0.20387297868728638, 0.00862056016921997, 0.16730785369873047, -0.16562362015247345, 0.3456695079803467, -0.24426184594631195, -0.22963598370552063, -0.22170771658420563, -0.07722226530313492, -0.11847894638776779, 0.07766143232584, 0.07784131914377213, 0.028287962079048157, 0.3759862184524536, -0.009069246239960194, -0.6138383746147156, -0.167189821600914, 0.2821725904941559, -0.01461722794920206, -0.04457684978842735, 0.09697230905294418, -0.35966941714286804, -0.4528431296348572, -0.5167998671531677, -0.12170888483524323, 0.2898420989513397, -0.18366801738739014, -0.12710489332675934, 0.11530517786741257, 0.16217628121376038, 0.12493734061717987, 0.10959705710411072, 0.14976361393928528, 0.07825246453285217, 0.03921365365386009, 0.01770329847931862, 0.48547014594078064, 0.16231314837932587, 0.10959359258413315, 0.4987752437591553, 0.010282996110618114, -0.029030214995145798, 0.08632931113243103, 0.09263372421264648, 0.0507371760904789, 0.3944357633590698, 0.40121063590049744, 0.0613250657916069, 0.21530048549175262, 0.17029798030853271, -0.18118731677532196, -0.02734299562871456, 0.4937492609024048, -0.15800322592258453, -0.10151439905166626, 0.06344841420650482, 0.44033241271972656, -0.02287174202501774, 0.05202522501349449, -0.1205279752612114, 0.8181389570236206, 0.0034937961027026176, 0.6203835010528564, 0.024509552866220474, 1.0834472179412842, 0.07121341675519943, 0.2355077713727951, -0.0662088468670845, 0.10222312808036804, 0.45908263325691223, -0.592404842376709, -0.0719933956861496, -0.17163437604904175, -0.3579326570034027, -0.028204746544361115, 0.20582939684391022, -0.24240918457508087, 0.09435449540615082, -0.2666338086128235, 0.16415095329284668, 0.16659577190876007, 0.07926291227340698, -0.1323837786912918, 0.5353420376777649, -0.2092645913362503, -0.24266992509365082, -0.2931987941265106, 0.1606058031320572, 0.13700824975967407, 0.47071823477745056, -0.068339042365551, -0.02399519272148609, -0.031056657433509827, -0.15766672790050507, -0.4364047050476074, -0.08684638142585754, -0.057171229273080826, 0.07217312604188919, 0.2667093873023987, -0.06205108389258385, 0.047913890331983566, 0.17262619733810425, 0.15905053913593292, -0.14490333199501038, -0.49475330114364624, 0.16097654402256012, -0.0852399691939354, -0.23547516763210297, 0.22177040576934814, -0.3119462728500366, 0.31808149814605713, -0.15704023838043213, -0.20503999292850494, 0.24233393371105194, -0.13655917346477509, -0.047349438071250916, -0.18306687474250793, -0.2662450969219208, -0.2832183837890625, -0.13196608424186707, -0.05759146064519882, 0.25489944219589233, -0.5066125988960266, -0.10737294703722, 0.13608425855636597, 0.06195114925503731, 0.1497882455587387, -0.14249463379383087, 0.3879219889640808, -0.025430655106902122, -0.16473110020160675, 0.4760464131832123, -0.0733068510890007, -0.13036493957042694, 0.3072896897792816, 0.013433541171252728, -0.2064887285232544, -0.019045894965529442, -0.10870791226625443, 0.27526238560676575, -0.2821529805660248, -0.12862558662891388, 0.1442897766828537, -0.17059944570064545, 0.08858611434698105, 0.7039009928703308, 0.12372510135173798, -0.12364653497934341, -0.11769699305295944, -0.09335210174322128, 0.10118374973535538, 0.49853357672691345, 0.05057895928621292, 0.07251075655221939, 0.0642411932349205, -0.1272994428873062, 0.25894567370414734, 0.24333956837654114, -0.3592049479484558, -0.07176031172275543, -0.4390513598918915, 0.018407126888632774, -0.12057185173034668, -0.1613069772720337, 0.43467673659324646, 0.2047707587480545, 0.07077503949403763, 0.09106577932834625, -0.09331364184617996, -0.1808377504348755, 0.08031850308179855, 0.13050536811351776, 0.10665043443441391, 0.020297130569815636, -0.11185624450445175, 0.08985292166471481, -0.15793946385383606, -0.3185766637325287, 0.08889378607273102, -0.17156541347503662, 0.03602311760187149, -0.052854426205158234, -0.1689077615737915, 0.07179530709981918, -0.04159249737858772, -0.07188049703836441, 0.11634451895952225, 0.47449806332588196, 0.07267835736274719, -0.09395338594913483, -0.2063877433538437, -0.126164510846138, 0.2610611617565155, 0.2690446078777313, 0.25637122988700867, -0.23368702828884125, 0.2742328643798828, 0.19760213792324066, -0.22726069390773773, 0.017747709527611732, 0.036047257483005524, 0.16532793641090393, -0.1373496651649475, 0.15189436078071594, 0.11554960161447525, 0.24412353336811066, -0.2058786302804947, -0.09135721623897552, 0.3557412922382355, -0.26929494738578796, 0.32803061604499817, 0.19723011553287506, 0.6575440168380737, -0.102916419506073, 0.2686086595058441, 0.10293484479188919, 0.1431604027748108, -0.31983259320259094, -0.21675844490528107, -0.34463071823120117, 0.06438112258911133, -0.03582226112484932, -0.15021741390228271, 0.025259055197238922, 0.620268702507019, -0.18430989980697632, 0.024238906800746918, 0.23005229234695435, -0.21492163836956024, 0.42024466395378113, 0.25702527165412903, -0.021660400554537773, 0.18261955678462982, 0.16645562648773193, 0.2891642451286316, 0.3017502725124359, -0.09998074918985367, 0.05648690089583397, 0.09332204610109329, -0.010217178612947464, -0.4102500081062317, 0.34124279022216797, 0.04403314366936684, -0.04497862607240677, 0.21219520270824432, -0.2977989912033081, -0.17843076586723328, 0.11795882135629654, -0.040475644171237946, -0.18165545165538788, -0.24851298332214355, -0.12874193489551544, 0.0907338559627533, -0.021082110702991486, 0.21863700449466705, -0.12473300844430923, 0.6175801753997803, -0.07108503580093384, 0.10100658982992172, 0.19108892977237701, -0.1985785961151123, -0.06093046814203262, 0.3612085282802582, 0.2990722954273224, -0.08957367390394211, -0.4420962929725647, 0.18213151395320892, 0.0637870505452156, -0.05833934620022774, -0.18472906947135925, 0.08437792211771011, 0.2508338391780853, -0.39550790190696716, 0.023166682571172714, 0.09828518331050873, -0.3194875717163086, -0.5002749562263489, -0.23299573361873627, 0.31622427701950073, 0.06248382106423378, -0.4794466197490692, -0.18023844063282013, -0.029406271874904633, -0.060603830963373184, 0.02912592701613903, -0.38660570979118347, 0.16616763174533844, -0.15911152958869934, 0.02064782939851284, 0.050356149673461914, -0.28599098324775696, 0.08503754436969757, 0.08070361614227295, 0.4946761131286621, 0.3730097711086273, 0.11271187663078308, 0.05986237898468971, -0.43127837777137756, -0.13023367524147034, 0.15958350896835327, -0.24667736887931824, -0.0424952432513237, 0.4238417148590088, 0.3498508334159851, 0.2614297866821289, 0.30458924174308777, 0.029717624187469482, -0.2874191403388977, -0.2152039259672165, -0.06995899230241776, -0.09578503668308258, 0.08404723554849625, -0.24332651495933533, 0.15076376497745514, 0.02084236405789852, 0.03742396831512451, 0.0005408824072219431, -0.2379782795906067, 0.041412219405174255, -0.2940931022167206, -0.021735956892371178, -0.19692176580429077, 0.3018132150173187, 0.009993771091103554, 0.20587065815925598, -0.17645792663097382, -0.25072312355041504, -0.43846672773361206, 0.033784084022045135, 0.1012854054570198, 0.059390150010585785, 0.13748498260974884, 0.018835524097085, -0.025378724560141563, -0.06525333970785141, -0.11252898722887039, -0.0281356293708086, 0.14536456763744354, 0.24257276952266693, 0.12929269671440125, -0.27250856161117554, -0.09873063862323761, -0.1670646369457245, 0.14155510067939758, 0.06405887007713318, 0.40829843282699585, -0.16555219888687134, -0.30160990357398987, -0.282416433095932, -0.1516108512878418, 0.2724367380142212, -0.14378713071346283, 0.1419827789068222, -0.15274201333522797, 0.12260393798351288, 0.42533475160598755, 0.09785760194063187, -0.39776289463043213, -0.0714544877409935, 0.1101633757352829, 0.3151717483997345, -0.26274341344833374, -0.2627633512020111, 0.12941870093345642, -0.16967034339904785, -0.24280963838100433, -0.051626939326524734, -0.0634540393948555, -0.06546470522880554, -0.20578201115131378, -0.14553755521774292 ]
https://github.com/huggingface/datasets/issues/345
Supporting documents in ELI5
Hi, thanks for the quick response. The blog post is quite an interesting working example, thanks for sharing it. Two follow-up points/questions about my original question: 1. Yes, I read that the facebook team could not share the CommonCrawl b/c of licensing reasons. They state "No, we are not allowed to host processed Reddit or CommonCrawl data," which indicates they could also not share the Reddit data for licensing reasons. But it seems that HuggingFace is able to share the Reddit data, so why not a subset of CommonCrawl? 2. Thanks for the suggestion about ElasticSearch and Wiki40b. This is good to know about performance. I definitely could do the indexing and querying myself. What I like about the ELI5 dataset though, at least what is suggested by the paper, is that to create the dataset they had already selected the top 100 web sources and made a single support document from those. Though it doesn't appear to be too sophisticated an approach, having a single support document pre-computed (without having to run the facebook code or a replacement with another dataset) is super useful for my work, especially since I'm not working on developing the latest and greatest retrieval model. Of course, I don't expect HF NLP datasets to be perfectly tailored to my use-case. I know there is overhead to any project, I'm just illustrating a use-case of ELI5 which is not possible with the data provided as-is. If it's for licensing reasons, that is perfectly acceptable a reason, and I appreciate your response.
I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least. If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :(
256
Supporting documents in ELI5 I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least. If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :( Hi, thanks for the quick response. The blog post is quite an interesting working example, thanks for sharing it. Two follow-up points/questions about my original question: 1. Yes, I read that the facebook team could not share the CommonCrawl b/c of licensing reasons. They state "No, we are not allowed to host processed Reddit or CommonCrawl data," which indicates they could also not share the Reddit data for licensing reasons. But it seems that HuggingFace is able to share the Reddit data, so why not a subset of CommonCrawl? 2. Thanks for the suggestion about ElasticSearch and Wiki40b. This is good to know about performance. I definitely could do the indexing and querying myself. What I like about the ELI5 dataset though, at least what is suggested by the paper, is that to create the dataset they had already selected the top 100 web sources and made a single support document from those. Though it doesn't appear to be too sophisticated an approach, having a single support document pre-computed (without having to run the facebook code or a replacement with another dataset) is super useful for my work, especially since I'm not working on developing the latest and greatest retrieval model. Of course, I don't expect HF NLP datasets to be perfectly tailored to my use-case. I know there is overhead to any project, I'm just illustrating a use-case of ELI5 which is not possible with the data provided as-is. If it's for licensing reasons, that is perfectly acceptable a reason, and I appreciate your response.
[ 0.16188061237335205, -0.045202914625406265, -0.038786228746175766, -0.04772547632455826, -0.3124110698699951, 0.00023968148161657155, -0.13539718091487885, 0.1302301436662674, -0.021919943392276764, -0.05018441751599312, 0.09411662817001343, -0.265114963054657, 0.11306130886077881, 0.1443808227777481, -0.1669062376022339, 0.1842314749956131, 0.026496080681681633, 0.24276100099086761, 0.34651920199394226, -0.3121981620788574, 0.017246460542082787, 0.23432676494121552, 0.14438964426517487, -0.1357312947511673, -0.3666536211967468, 0.28333190083503723, -0.2998780906200409, 0.1768082082271576, -0.2238975316286087, -0.006155222654342651, 0.06627485901117325, 0.2734149396419525, 0.029323268681764603, -0.2047085165977478, -0.00011439896479714662, 0.06446275860071182, -0.09299316257238388, -0.14269931614398956, -0.15071594715118408, -0.18065260350704193, 0.24313530325889587, -0.31420832872390747, -0.027303028851747513, -0.09742259234189987, -0.1486668735742569, -0.2026413381099701, 0.23465310037136078, 0.25992485880851746, 0.35356876254081726, -0.03748716786503792, 0.1049087718129158, 0.08206045627593994, 0.016126124188303947, 0.10203644633293152, 0.19414673745632172, 0.34053704142570496, -0.24433431029319763, -0.07406667619943619, 0.3869939148426056, -0.20220836997032166, 0.06542899459600449, 0.22115103900432587, 0.05662310868501663, -0.18232056498527527, 0.2999620735645294, 0.03824402391910553, 0.020354079082608223, -0.6953433156013489, 0.26360049843788147, 0.357839435338974, 0.45327886939048767, 0.2831239700317383, -0.22131715714931488, -0.4320499897003174, -0.11774549633264542, 0.27319273352622986, -0.030248161405324936, 0.3697192072868347, -0.06381583213806152, 0.35285472869873047, 0.0016577532514929771, -0.2023569494485855, -0.0750342607498169, 0.3632192015647888, 0.27410903573036194, 0.056666284799575806, -0.150790274143219, -0.09979861974716187, 0.12498094141483307, 0.05996261164546013, -0.49617886543273926, -0.023037433624267578, 0.11687672883272171, -0.03982681408524513, 0.18169251084327698, -0.16588114202022552, 0.09374548494815826, 0.36321255564689636, 0.6906951665878296, 0.24660439789295197, 0.031681377440690994, -0.011936772614717484, -0.22021840512752533, 0.05721666291356087, 0.2629968822002411, -0.016886619850993156, -0.06201115995645523, -0.17830681800842285, 0.14610612392425537, -0.031241891905665398, 0.13573037087917328, -0.009112131781876087, -0.042269427329301834, 0.5626628398895264, -0.5317930579185486, -0.5932880640029907, 0.20850954949855804, -0.2363729476928711, -0.19627536833286285, 0.1573074907064438, -0.24733105301856995, -0.045948926359415054, -0.18887153267860413, 0.4357141852378845, 0.1879493147134781, 0.0037172825541347265, -0.3072889745235443, 0.16809439659118652, 0.00747852073982358, -0.37122851610183716, -0.0267668217420578, -0.1037183329463005, -0.18446600437164307, 0.1345674842596054, 0.13963507115840912, -0.38694483041763306, 0.6252254843711853, -0.23659099638462067, 0.3478046655654907, 0.17963352799415588, 0.16241595149040222, -0.018536776304244995, 0.32224589586257935, 0.35387569665908813, 0.10699567943811417, 0.05278946831822395, 0.06176643446087837, -0.012231383472681046, -0.26945754885673523, -0.2196461707353592, -0.006661908235400915, -0.4560053050518036, -0.41407880187034607, 0.05962858349084854, 0.027684912085533142, 0.23414450883865356, 0.10315147042274475, 0.513455331325531, -0.4354713261127472, -0.13997603952884674, 0.21098002791404724, 0.2206297516822815, -0.3961336314678192, -0.2374761998653412, 0.34680333733558655, 0.29402732849121094, 0.33949029445648193, -0.40095385909080505, -0.053385235369205475, 0.26563870906829834, -0.19987519085407257, 0.38986819982528687, -0.22202734649181366, -0.2204241007566452, -0.004683284088969231, 0.3456551730632782, 0.34906232357025146, -0.1972571164369583, -0.7282793521881104, 0.24509572982788086, 0.11850055307149887, 0.3259023129940033, 0.15899381041526794, -0.05518926680088043, 0.06238044798374176, -0.3640517294406891, -0.0432477742433548, 0.1965421587228775, -0.04358653724193573, -0.1194300651550293, -0.2560024559497833, -0.4202410578727722, -0.07627332210540771, 0.1884017437696457, -0.10579946637153625, -0.1561288833618164, 0.035500410944223404, -0.06329625844955444, 0.008365110494196415, -0.05806044489145279, 0.147528737783432, 0.32819265127182007, 0.10723467916250229, 0.15908995270729065, 0.016809746623039246, 0.07224848866462708, -0.373154878616333, 0.3071223497390747, -0.014197777956724167, 0.34802675247192383, 0.3044203817844391, -0.3181048631668091, 0.05874861404299736, -0.09318680316209793, -0.0007659767870791256, -0.6210439801216125, 0.13558094203472137, -0.014250090345740318, 0.17970430850982666, 0.017315030097961426, -0.21348440647125244, -0.09740598499774933, -0.19418877363204956, 0.1273106336593628, -0.13486513495445251, 0.3530066907405853, -0.2602708041667938, 0.09669347107410431, 0.07920463383197784, 0.4140844941139221, -0.13904409110546112, 0.06897088885307312, 0.26549428701400757, -0.04793388396501541, -0.37645840644836426, -0.09009881317615509, 0.2554415166378021, 0.8737133145332336, 0.3631454408168793, -0.34482768177986145, 0.22786036133766174, 0.06668046116828918, -0.05775005742907524, -0.19402094185352325, -0.21267397701740265, 0.03916144743561745, 0.13419418036937714, 0.34531542658805847, 0.3507528305053711, 0.06512356549501419, -0.06633210927248001, 0.06336680799722672, -0.270455926656723, -0.2145707756280899, 0.4714907705783844, -0.1026432067155838, 0.21748578548431396, 0.05386010557413101, -0.24463948607444763, 0.4113774299621582, 0.23386459052562714, 0.16587351262569427, -0.0037700626999139786, 0.42415696382522583, -0.2534443438053131, -0.3952462375164032, 0.057138726115226746, -0.18316464126110077, 0.241489440202713, 0.22580324113368988, 0.22771334648132324, 0.06359909474849701, 0.15600962936878204, 0.05680493637919426, 0.0174493957310915, 0.15031959116458893, -0.05170897766947746, 0.002400726545602083, 0.11406722664833069, 0.3764139711856842, -0.21176691353321075, -0.21939437091350555, -0.30916494131088257, -0.27856767177581787, 0.0724305585026741, 0.07055604457855225, 0.18205250799655914, -0.34161487221717834, 0.1765879988670349, -0.09561438113451004, -0.41349875926971436, -0.26612818241119385, 0.23479105532169342, 0.14619536697864532, -0.05896630510687828, -0.007164073176681995, -0.2509232759475708, 0.28493931889533997, -0.4807717204093933, 0.3026827573776245, -0.3664856255054474, -0.05765867233276367, -0.2014649510383606, 0.032803285866975784, 0.008347687311470509, 0.37270650267601013, 0.2562309205532074, -0.0921005830168724, -0.12079418450593948, -0.5289499163627625, -0.45217573642730713, 0.36886054277420044, -0.2268674224615097, 0.11337535828351974, 0.13052178919315338, 0.1967621147632599, -0.330330491065979, -0.26461949944496155, 0.10888896137475967, -0.3639267086982727, -0.09348423779010773, -0.3351461589336395, -0.09738382697105408, -0.09868258982896805, -0.0030944847967475653, -0.04119620472192764, -0.35350245237350464, -0.28080451488494873, 0.34303003549575806, 0.22540408372879028, -0.1302049458026886, 0.017207665368914604, -0.08003560453653336, 0.11235230416059494, 0.12599338591098785, 0.332307368516922, -0.2970346212387085, -0.1613464504480362, 0.19609864056110382, -0.20742283761501312, -0.26512739062309265, -0.038692232221364975, -0.053924642503261566, -0.06152950972318649, -0.10059421509504318, -0.42547836899757385, -0.3604818284511566, 0.05569211021065712, -0.02511654607951641, -0.07036316394805908, 0.061571575701236725, 0.09777297079563141, 0.012541001662611961, -0.06857654452323914, 0.006507978308945894, 0.005107528064399958, -0.14297154545783997, 0.14192111790180206, 0.06863649189472198, -0.09262782335281372, 0.12500151991844177, 0.2023938149213791, 0.7989223599433899, 0.421732634305954, 0.12864580750465393, 0.4140594005584717, 0.2201206237077713, 0.4891655743122101, -0.2331579178571701, -0.06842577457427979, 0.10446170717477798, -0.016727430745959282, 0.28732922673225403, 0.5585061311721802, 0.30463287234306335, 0.08503761142492294, -0.06159522756934166, -0.47575467824935913, -0.2863047122955322, -0.1630813032388687, 0.24558201432228088, 0.03411998227238655, 0.25729280710220337, 0.0019509266130626202, -0.022763893008232117, 0.1661117970943451, -0.3102341890335083, 0.05389713868498802, 0.1662839651107788, 0.23551027476787567, 0.14113089442253113, -0.3051792085170746, 0.152921661734581, -0.8590838313102722, 0.2311110943555832, -0.018900979310274124, -0.1874370276927948, -0.2980821132659912, 0.08484674990177155, 0.14668692648410797, 0.05571718513965607, 0.3235037624835968, -0.3109864592552185, -0.38859403133392334, -0.2066270411014557, -0.01797693409025669, -0.043069638311862946, 0.09475329518318176, 0.10599549114704132, 0.009814892895519733, 0.40817785263061523, -0.16394831240177155, -0.4936892092227936, -0.21497225761413574, 0.2640778720378876, -0.03164195641875267, 0.009250634349882603, 0.13605576753616333, -0.1757686287164688, -0.29380878806114197, -0.5504949688911438, -0.4285237789154053, 0.25472888350486755, -0.34384024143218994, -0.21930621564388275, 0.20313966274261475, 0.2557872533798218, 0.007791953161358833, 0.27219489216804504, 0.18396547436714172, -0.05552685260772705, -0.08566491305828094, -0.09267368912696838, 0.5099767446517944, 0.35968366265296936, 0.23541711270809174, 0.7077590227127075, 0.017983723431825638, -0.08931402117013931, 0.16643285751342773, 0.0522182434797287, 0.23769886791706085, 0.48259854316711426, 0.33662149310112, 0.018969858065247536, 0.08927839249372482, -0.007107805926352739, -0.10035670548677444, -0.005025945603847504, 0.45544084906578064, -0.3331574499607086, -0.1282140165567398, 0.033335231244564056, 0.3052031099796295, -0.12387144565582275, 0.046424176543951035, -0.08471757173538208, 0.9499078392982483, 0.13012109696865082, 0.5122737884521484, -0.04999609664082527, 1.152687430381775, 0.2842034697532654, 0.38700395822525024, -0.1136423647403717, -0.05328398570418358, 0.5818110108375549, -0.5025374889373779, -0.19420190155506134, -0.022044712677598, -0.38685768842697144, -0.1671912968158722, 0.051641177386045456, -0.2265332192182541, 0.21568934619426727, -0.08018118143081665, 0.23169395327568054, 0.38861170411109924, 0.05429018661379814, 0.014928442426025867, 0.4949818253517151, -0.25755295157432556, -0.16816599667072296, -0.1999780535697937, 0.043227504938840866, 0.1722918301820755, 0.40888041257858276, -0.14988896250724792, -0.10885688662528992, -0.20441089570522308, -0.16639797389507294, -0.5499117970466614, -0.0497843474149704, 0.06010785698890686, -0.061445727944374084, 0.35520222783088684, -0.07971370965242386, 0.32535070180892944, 0.150556281208992, 0.30103448033332825, -0.3107360005378723, -0.5965958833694458, 0.01139148324728012, -0.0683426484465599, -0.21549201011657715, 0.2730756402015686, -0.19345088303089142, 0.4823542833328247, -0.10641010105609894, -0.11109855026006699, 0.33037132024765015, -0.0982629731297493, -0.051231928169727325, -0.4185139834880829, -0.24161863327026367, -0.18819153308868408, -0.17796137928962708, -0.07057300209999084, 0.3471910059452057, -0.4256945252418518, -0.12672267854213715, 0.04805455356836319, 0.10668271034955978, 0.33166342973709106, -0.26727187633514404, 0.3429390490055084, 0.010694494470953941, -0.23601402342319489, 0.3876953125, -0.1587105095386505, -0.0637335404753685, 0.27175620198249817, -0.21336618065834045, -0.12752072513103485, 0.07275549322366714, -0.10644769668579102, 0.2839755415916443, -0.41659650206565857, -0.23553140461444855, 0.11294776946306229, -0.15516582131385803, -0.1096847876906395, 0.456714928150177, 0.18991263210773468, -0.04483920708298683, -0.20440556108951569, -0.15909714996814728, 0.10700509697198868, 0.5737265348434448, -0.1819007694721222, 0.08271128684282303, -0.019434776157140732, -0.011675785295665264, 0.2233765721321106, 0.15540187060832977, -0.2522445023059845, -0.03651732951402664, -0.3129381835460663, -0.07686761766672134, 0.02784351259469986, -0.07643725723028183, 0.3367639482021332, 0.1138090118765831, -0.09224849939346313, -0.05161774158477783, -0.1766042858362198, -0.0428033247590065, 0.022439980879426003, 0.19309371709823608, 0.312295526266098, -0.088573157787323, -0.13835637271404266, 0.08682239800691605, -0.11385468393564224, -0.3022899627685547, 0.13377848267555237, -0.2211059331893921, 0.07079721242189407, 0.08092213422060013, -0.1911882609128952, 0.1946781575679779, -0.1025148332118988, 0.042303167283535004, 0.11749403178691864, 0.5127558708190918, 0.2672610282897949, -0.026991909369826317, -0.21095822751522064, -0.13948458433151245, -0.008747346699237823, 0.22650733590126038, 0.3295253813266754, -0.25034019351005554, 0.36122918128967285, 0.347269207239151, 0.026163902133703232, -0.10145816206932068, -0.006444123573601246, 0.18158534169197083, -0.22970078885555267, 0.2761463224887848, 0.20862427353858948, 0.10573172569274902, -0.14899633824825287, -0.08374214917421341, 0.33958759903907776, -0.17480164766311646, 0.2245006561279297, 0.19146165251731873, 0.8282389044761658, -0.12628670036792755, 0.33342593908309937, -0.12765619158744812, 0.18978004157543182, -0.20444820821285248, -0.18176133930683136, -0.23160941898822784, 0.041563838720321655, 0.18433581292629242, -0.16794690489768982, 0.0841623991727829, 0.576459527015686, -0.31475040316581726, -0.08401993662118912, 0.1850137859582901, -0.27061527967453003, 0.2517423927783966, 0.40759721398353577, -0.07166915386915207, 0.10977274179458618, 0.19707952439785004, 0.49055159091949463, 0.293571412563324, -0.14529244601726532, -0.03701327368617058, 0.17382240295410156, 0.152502179145813, -0.26933640241622925, 0.1636025458574295, 0.184598907828331, -0.05089259520173073, 0.1807224005460739, -0.1903870701789856, -0.2371997982263565, 0.1965666562318802, -0.2412136048078537, -0.2911818325519562, -0.21789579093456268, -0.14324598014354706, -0.061688460409641266, -0.11961560696363449, 0.22447650134563446, -0.08848702162504196, 0.3507431149482727, -0.09969697147607803, 0.11175308376550674, 0.039955973625183105, -0.12576349079608917, -0.000462384894490242, 0.3130819499492645, 0.319027841091156, -0.17444969713687897, -0.11703820526599884, -0.012674584053456783, 0.2129797339439392, 0.015832901000976562, -0.2076573371887207, 0.11437711119651794, 0.2840120494365692, -0.24820493161678314, 0.12432747334241867, -0.01959690824151039, -0.1539875864982605, -0.37351495027542114, -0.16962364315986633, 0.23036356270313263, -0.18346892297267914, -0.311337947845459, -0.15650054812431335, -0.16598720848560333, 0.10746896266937256, 0.060418859124183655, -0.2830290198326111, 0.21517422795295715, -0.10714448243379593, 0.05410350486636162, 0.013019789941608906, -0.2539302110671997, 0.03794039785861969, 0.13562750816345215, 0.3063030540943146, 0.5627691149711609, 0.10956697165966034, -0.061781007796525955, -0.39861729741096497, -0.11726506054401398, 0.18990987539291382, -0.20811308920383453, -0.0411832332611084, 0.34871378540992737, 0.18324872851371765, 0.36351290345191956, 0.30378392338752747, -0.09530893713235855, -0.24812155961990356, -0.24779270589351654, -0.18166324496269226, -0.023304544389247894, -0.07255767285823822, -0.10853026062250137, 0.2357598841190338, -0.010764055885374546, 0.22027762234210968, 0.0317009873688221, -0.15693067014217377, -0.12262117862701416, -0.30579420924186707, 0.022563818842172623, -0.2268679440021515, 0.33089813590049744, -0.04059617966413498, 0.15992553532123566, -0.1917663961648941, -0.2094217985868454, -0.4069236218929291, -0.04808336868882179, 0.1296704113483429, 0.047734811902046204, 0.16168491542339325, 0.009490948170423508, -0.09735536575317383, -0.2759919762611389, -0.09237801283597946, 0.01497022807598114, -0.029607800766825676, 0.12963105738162994, 0.1409837007522583, -0.3074484169483185, -0.023994475603103638, -0.18983183801174164, 0.14143006503582, 0.08914853632450104, 0.37986239790916443, -0.2511129677295685, -0.38430941104888916, -0.2604127526283264, 0.05794662609696388, 0.29415813088417053, -0.11041790246963501, 0.28960150480270386, -0.029614880681037903, 0.15529941022396088, 0.4543704092502594, 0.01838160678744316, -0.5039560198783875, -0.21767181158065796, 0.21375250816345215, 0.18118830025196075, -0.3754469156265259, -0.24390096962451935, 0.19022005796432495, -0.17723548412322998, -0.21243682503700256, -0.010605369694530964, -0.1518121212720871, -0.17585903406143188, 0.11000601947307587, -0.1202378049492836 ]
https://github.com/huggingface/datasets/issues/331
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
I couldn't reproduce on my side. It looks like you were not able to generate all the examples, and you have the problem for each split train-test-validation. Could you try to enable logging, try again and send the logs ? ```python import logging logging.basicConfig(level=logging.INFO) ```
``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ```
45
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` ``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ``` I couldn't reproduce on my side. It looks like you were not able to generate all the examples, and you have the problem for each split train-test-validation. Could you try to enable logging, try again and send the logs ? ```python import logging logging.basicConfig(level=logging.INFO) ```
[ -0.14107030630111694, -0.056987639516592026, -0.008213842287659645, 0.20865750312805176, 0.07764885574579239, 0.0907956138253212, 0.18330249190330505, 0.525176465511322, 0.09873181581497192, 0.1542324423789978, 0.01629738323390484, 0.0769970715045929, -0.3141198754310608, -0.04377361014485359, -0.0335896834731102, 0.035900671035051346, -0.18716789782047272, 0.2515125274658203, 0.04488750919699669, -0.02299683913588524, -0.28743210434913635, 0.2817912697792053, -0.20873887836933136, -0.03660023957490921, -0.4835280776023865, -0.2941964566707611, 0.014396651647984982, 0.36983704566955566, 0.037647634744644165, -0.3093648850917816, -0.054115310311317444, -0.13485699892044067, -0.18413865566253662, 0.10297179967164993, -0.00011303210339974612, 0.11360616236925125, 0.3911178708076477, -0.1433284729719162, -0.48673784732818604, 0.009375868365168571, -0.21043333411216736, -0.4906253218650818, 0.08808925002813339, -0.35468122363090515, -0.1552349179983139, 0.025319306179881096, 0.09456370025873184, -0.21953848004341125, 0.49692779779434204, 0.3904685378074646, 0.2402195930480957, 0.5636105537414551, 0.0662316232919693, 0.1633443832397461, -0.0887690931558609, -0.18095505237579346, -0.14587068557739258, -0.004865535534918308, -0.31783610582351685, -0.15101249516010284, -0.024242646992206573, 0.42894789576530457, -0.0926201269030571, 0.1253480166196823, -0.08723723143339157, 0.11025011539459229, 0.08894378691911697, -0.16584652662277222, 0.09388171136379242, 0.13601833581924438, -0.03290723264217377, -0.07590681314468384, -0.21139144897460938, -0.4385595917701721, -0.016064399853348732, -0.39801856875419617, 0.22512778639793396, 0.21271726489067078, -0.17450271546840668, 0.06538056582212448, -0.32128244638442993, 0.038489848375320435, -0.029471999034285545, 0.2034052461385727, 0.08193359524011612, 0.4111941456794739, -0.10029783844947815, 0.025811949744820595, 0.055545397102832794, -0.09011633694171906, 0.15675091743469238, -0.1769280582666397, 0.1543247103691101, 0.07783624529838562, -0.14576956629753113, -0.04527822509407997, 0.1644643247127533, -0.14841490983963013, 0.04303546994924545, -0.06754820793867111, 0.17890967428684235, -0.06210430711507797, 0.17447517812252045, 0.08687471598386765, 0.04706471040844917, 0.3125300109386444, -0.01635061576962471, 0.2686325013637543, 0.1245989054441452, 0.2852095663547516, 0.0025183488614857197, 0.01810324378311634, 0.11720126867294312, -0.005318779963999987, 0.11884859204292297, 0.22079893946647644, 0.37348422408103943, -0.05925425514578819, -0.3276313245296478, 0.13372232019901276, -0.2627139985561371, -0.2590237259864807, -0.0015637136530131102, 0.2562187612056732, -0.05830209329724312, 0.3132656514644623, -0.06084265932440758, -0.08145195245742798, -0.3839430510997772, -0.15473082661628723, -0.3804476857185364, 0.1700802743434906, -0.18440046906471252, 0.08080901205539703, 0.2795959711074829, -0.07962606847286224, 0.45722249150276184, -0.24975453317165375, -0.01418266911059618, -0.14726415276527405, 0.20933325588703156, -0.03983598202466965, 0.025049258023500443, 0.2831861078739166, -0.130972221493721, 0.17060764133930206, 0.2590439021587372, 0.16906879842281342, -0.21274547278881073, -0.08599664270877838, -0.004009048920124769, -0.6050634384155273, 0.18873338401317596, 0.24872955679893494, 0.05936365947127342, -0.06869883090257645, 0.6144130825996399, 0.07587766647338867, 0.24875298142433167, 0.035049598664045334, -0.16209080815315247, -0.06983862072229385, -0.011321275494992733, -0.16849273443222046, 0.07564869523048401, 0.43802177906036377, -0.23252242803573608, -0.23690640926361084, -0.013540178537368774, -0.141927570104599, 0.5154550671577454, 0.4340137541294098, -0.10532073676586151, 0.043939679861068726, -0.12654952704906464, 0.15382717549800873, 0.20038174092769623, -0.15454043447971344, -0.39556366205215454, 0.1898377239704132, -0.08841194212436676, 0.20390497148036957, 0.20705363154411316, 0.19677646458148956, -0.029445914551615715, 0.10163498669862747, 0.05391368642449379, 0.5395383238792419, -0.2290867120027542, 0.10552295297384262, -0.4344429671764374, -0.43464410305023193, 0.35825201869010925, 0.05645780637860298, 0.22416941821575165, -0.040838051587343216, -0.06270595639944077, 0.43611106276512146, 0.211510568857193, -0.11106240749359131, 0.03748410567641258, 0.03333761915564537, -0.15166297554969788, -0.1143532320857048, 0.01719265803694725, -0.04317096248269081, -0.4885500967502594, 0.1375231146812439, -0.15719813108444214, 0.300516813993454, -0.050177063792943954, -0.10149223357439041, -0.26270684599876404, -0.19473327696323395, -0.17500339448451996, -0.2838500440120697, 0.2178570181131363, 0.22742369771003723, 0.20972014963626862, 0.004435862880200148, -0.2784236669540405, 0.30221298336982727, -0.031406816095113754, 0.1214028149843216, -0.5230279564857483, 0.26270386576652527, -0.22790837287902832, -0.18105600774288177, 0.2639641761779785, 0.4298868477344513, 0.26417630910873413, -0.15307721495628357, -0.28321850299835205, 0.28336167335510254, -0.08616239577531815, 0.23159708082675934, -0.14804498851299286, -0.1591023951768875, 0.11376598477363586, -0.08145585656166077, 0.16977737843990326, 0.4025958478450775, -0.0342428982257843, -0.10330098867416382, -0.11919420957565308, 0.48269250988960266, 0.048458244651556015, 0.08987709879875183, 0.14993366599082947, -0.11412284523248672, 0.07726973295211792, -0.13095784187316895, 0.11302834004163742, -0.5237559080123901, 0.31874576210975647, -0.16963066160678864, 0.2132311463356018, -0.08782125264406204, -0.25000759959220886, 0.05303725227713585, 0.6815175414085388, -0.02595699392259121, 0.0975143313407898, 0.020760303363204002, -0.10262136161327362, -0.2020811289548874, -0.18378609418869019, 0.15972532331943512, 0.3386712968349457, 0.24137741327285767, 0.18663832545280457, 0.2474575787782669, -0.1729576736688614, -0.286001056432724, 0.27237841486930847, 0.09546792507171631, 0.25380411744117737, 0.3859495222568512, 0.006088012829422951, -0.0024020776618272066, -0.5314669609069824, -0.024830952286720276, 0.013506680727005005, 0.3741949200630188, -0.22363515198230743, -0.20182685554027557, -0.43166017532348633, -0.4015897810459137, -0.17028774321079254, -0.2987869381904602, -0.1874067485332489, -0.5853295922279358, 0.08001486212015152, 0.030057670548558235, -0.12527379393577576, 0.16242429614067078, -0.15810289978981018, 0.23189137876033783, 0.2769709825515747, -0.01656581088900566, -0.1927298605442047, -0.08131812512874603, -0.1340956836938858, 0.07541074603796005, 0.1756264567375183, 0.03801210969686508, 0.32826411724090576, -0.1323559731245041, -0.17954102158546448, -0.02463080920279026, -0.40103793144226074, 0.07767254114151001, 0.06737059354782104, 0.1397417038679123, 0.30479034781455994, 0.1800105720758438, 0.33122187852859497, -0.33533310890197754, 0.19725380837917328, -0.24187138676643372, -0.2770203649997711, -0.008125008083879948, 0.002451592590659857, 0.14319878816604614, -0.23823103308677673, -0.48101770877838135, -0.43263664841651917, -0.5125105381011963, 0.10095618665218353, 0.04884705692529678, 0.406664103269577, 0.27042990922927856, -0.2863161861896515, 0.19683800637722015, -0.1210164949297905, 0.18222753703594208, -0.2584167420864105, -0.17760948836803436, 0.2502976059913635, -0.2715808153152466, -0.2704795002937317, -0.12659519910812378, -0.148699551820755, 0.2048918753862381, -0.2855270206928253, -0.4239242970943451, -0.3295075297355652, -0.14588692784309387, -0.05270024389028549, 0.10720060765743256, -0.055841486901044846, 0.2296750843524933, -0.012112244963645935, -0.16541787981987, -0.033511802554130554, -0.3873249590396881, 0.05341775342822075, 0.12507368624210358, 0.0702095627784729, -0.09277152270078659, 0.6258095502853394, 0.062265314161777496, 0.5375291109085083, 0.3718988001346588, 0.09344468265771866, 0.2314654439687729, 0.10950064659118652, 0.14843116700649261, -0.0122390016913414, -0.34279316663742065, 0.2506152391433716, 0.1518259048461914, 0.05925220623612404, 0.3488014340400696, -0.05165127292275429, -0.38571488857269287, -0.08008389174938202, -0.3046748638153076, -0.4658907353878021, -0.28062108159065247, 0.1811244934797287, 0.12481697648763657, 0.2579149901866913, 0.2710345983505249, 0.19469788670539856, -0.17675679922103882, -0.17008116841316223, -0.14580890536308289, 0.1727728694677353, 0.005986769683659077, -0.036692891269922256, -0.1083945780992508, 0.014189031906425953, -0.6109694242477417, 0.26002827286720276, 0.006669697351753712, 0.6111472845077515, -0.15705657005310059, -0.06736592948436737, -0.016853714361786842, -0.28661006689071655, 0.3602811098098755, -0.3092951476573944, -0.054341502487659454, 0.18288666009902954, -0.1095789447426796, -0.35649609565734863, -0.1205785945057869, -0.15273523330688477, 0.04632572829723358, 0.5042909383773804, 0.5133957862854004, -0.2715702950954437, -0.28228631615638733, 0.4173494577407837, 0.10568147897720337, -0.19254624843597412, -0.2405330389738083, -0.2602212727069855, -0.23654717206954956, -0.3589520752429962, -0.0029181349091231823, -0.3549588620662689, 0.2806682288646698, 0.03478274866938591, -0.04944558069109917, -0.036794379353523254, -0.24793007969856262, 0.17122194170951843, 0.023834384977817535, -0.007558602839708328, 0.20605306327342987, 0.190296933054924, 0.258617103099823, 0.3282206058502197, -0.27770543098449707, 0.3211948871612549, -0.0436936691403389, 0.013516088016331196, -0.08669797331094742, 0.12573981285095215, 0.045725058764219284, 0.48612263798713684, 0.017081158235669136, -0.01891629956662655, 0.20161932706832886, 0.325452595949173, -0.004442870616912842, -0.03312190994620323, 0.4496926963329315, -0.06196989491581917, -0.41116225719451904, -0.16488967835903168, 0.2997184991836548, 0.1231904998421669, 0.1361619383096695, -0.13000226020812988, -0.1973913609981537, -0.24372173845767975, 0.1276024729013443, 0.1129901111125946, 0.7832134962081909, 0.2591174840927124, 0.06482309103012085, 0.3565959334373474, -0.15499843657016754, 0.6783711314201355, -0.21120616793632507, 0.25695863366127014, -0.37060996890068054, -0.33122262358665466, -0.037918444722890854, -0.11087696254253387, 0.3169817626476288, 0.10036644339561462, -0.17701305449008942, 0.4902181625366211, -0.12910716235637665, -0.0994337648153305, -0.0617552176117897, 0.46373581886291504, -0.2605730891227722, -0.14336399734020233, -0.40016818046569824, 0.10669782012701035, -0.1958625763654709, 0.35261839628219604, -0.1023915484547615, -0.19491936266422272, 0.2577720582485199, -0.25908154249191284, -0.07498207688331604, 0.2773515582084656, -0.26846256852149963, 0.13984866440296173, 0.006161799654364586, 0.24019713699817657, -0.2210499346256256, -0.38273710012435913, 0.31372931599617004, -0.1355176866054535, -0.038588013499975204, -0.06919408589601517, -0.2621515393257141, -0.024181675165891647, -0.10120715945959091, 0.10601229220628738, 0.4224321246147156, -0.21872377395629883, -0.11455745995044708, 0.02030361257493496, -0.18857908248901367, -0.16305281221866608, -0.018976809456944466, -0.03548518195748329, 0.1039891168475151, -0.17091897130012512, -0.19709573686122894, 0.09542463719844818, -0.23104999959468842, -0.3154531717300415, 0.1461792141199112, -0.057743389159440994, -0.29068097472190857, 0.30770090222358704, -0.08585140109062195, -0.28096523880958557, -0.2579650282859802, 0.24452191591262817, 0.16969197988510132, 0.05087974667549133, 0.49227529764175415, 0.022502869367599487, -0.2898046374320984, -0.2790832221508026, -0.030064580962061882, 0.026359518989920616, -0.36133602261543274, 0.19981473684310913, -0.08701220154762268, -0.015575808472931385, 0.2755272388458252, 0.20519068837165833, 0.1997058242559433, 0.2912754714488983, -0.23239250481128693, -0.5686833262443542, -0.14387363195419312, 0.06298446655273438, -0.005366519093513489, 0.28937962651252747, 0.0466342493891716, 0.5640010833740234, 0.01835734210908413, 0.36128416657447815, -0.3558593690395355, 0.03705979511141777, -0.2532147169113159, 0.1774701327085495, 0.16446775197982788, -0.2871326208114624, 0.47963008284568787, 0.33617454767227173, 0.18961003422737122, 0.1844836324453354, -0.32766881585121155, -0.2398819625377655, -0.1398790031671524, 0.14599119126796722, 0.052866581827402115, -0.15074846148490906, 0.10912664979696274, 0.021051565185189247, -0.16266103088855743, -0.07615964114665985, -0.013169749639928341, -0.1183914840221405, -0.0879901647567749, 0.24678529798984528, -0.04225383326411247, -0.06031559035181999, 0.1202734187245369, 0.05636364221572876, -0.12312067300081253, 0.38872620463371277, -0.011862166225910187, 0.23062333464622498, -0.23718129098415375, 0.04590962082147598, -0.10559859871864319, -0.10755352675914764, 0.04922877997159958, 0.014070950448513031, 0.28337472677230835, -0.4350685477256775, -0.28954899311065674, 0.1623046100139618, 0.23141928017139435, 0.25645434856414795, -0.028592465445399284, -0.1506039798259735, 0.16547547280788422, 0.2218019813299179, -0.3195357918739319, 0.02454344555735588, 0.36717501282691956, -0.0035084302071481943, 0.32188302278518677, 0.353075236082077, 0.1187405064702034, 0.019553137943148613, -0.050877753645181656, 0.08901361376047134, 0.2165183573961258, -0.265998512506485, 0.03685632348060608, 0.26313209533691406, -0.1103861853480339, -0.015080510638654232, 0.3015824854373932, -0.12180223315954208, 0.30099281668663025, 0.23779386281967163, -0.03177625313401222, 0.4294939637184143, -0.03971770033240318, 0.330413281917572, -0.006971082184463739, -0.21676672995090485, 0.1839851588010788, 0.4842492938041687, -0.1120011955499649, 0.3832804560661316, 0.014789579436182976, 0.41056451201438904, -0.28036636114120483, 0.014445463195443153, -0.17746379971504211, 0.4721766710281372, -0.14001254737377167, 0.09138689190149307, -0.0336267463862896, -0.09873779863119125, -0.28677207231521606, -0.006401236169040203, 0.07856160402297974, 0.09016033262014389, 0.15062278509140015, 0.11593025177717209, -0.0376424565911293, -0.3303663730621338, -0.18787667155265808, 0.15899190306663513, 0.23829860985279083, -0.39914360642433167, 0.30744031071662903, 0.2775513231754303, -0.04233197122812271, -0.15953780710697174, 0.6101234555244446, 0.34312376379966736, 0.3848828971385956, -0.13884934782981873, -0.020331962034106255, 0.1635613888502121, -0.0777902603149414, -0.08909288048744202, 0.341130793094635, 0.18975673615932465, -0.07463987916707993, 0.3646359443664551, 0.10431898385286331, -0.2784150242805481, -0.04633723944425583, 0.09377682954072952, -0.24161584675312042, -0.13924597203731537, 0.29328253865242004, -0.04942566156387329, 0.21002770960330963, -0.22206275165081024, 0.03043314442038536, -0.604310929775238, -0.05030401423573494, 0.19343537092208862, -0.08079122751951218, 0.2918080687522888, 0.03415577486157417, 0.1002933457493782, -0.19151321053504944, 0.4911063015460968, 0.06943581253290176, -0.07489384710788727, -0.304778128862381, -0.2246830016374588, -0.579849362373352, 0.14757351577281952, -0.1549476534128189, -0.056466180831193924, 0.009748327545821667, 0.2813648581504822, -0.20153522491455078, 0.04944320768117905, 0.07764115184545517, 0.3546501398086548, -0.04044166952371597, -0.1575724184513092, -0.3835546374320984, 0.016316158697009087, 0.0054043191485106945, -0.22684860229492188, 0.07368852198123932, -0.41332685947418213, 0.24398760497570038, -0.20116853713989258, 0.03681568801403046, -0.12373089790344238, 0.05972931906580925, -0.06897274404764175, 0.47976312041282654, 0.012969297356903553, 0.5052635669708252, 0.2816338539123535, -0.2362828403711319, -0.34874001145362854, -0.16560953855514526, -0.14218731224536896, -0.2967928349971771, 0.1579170972108841, 0.3191109299659729, 0.587475061416626, 0.017295589670538902, 0.05495723336935043, -0.36079031229019165, 0.3801417946815491, 0.023944241926074028, -0.18775181472301483, 0.024198248982429504, 0.32611677050590515, -0.24118804931640625, 0.26747190952301025, 0.24738673865795135, 0.38607296347618103, 0.11262815445661545, 0.14903545379638672, -0.24469920992851257, -0.37139376997947693, 0.5164567828178406, -0.18318548798561096, -0.22347158193588257, -0.011896124109625816, 0.12572623789310455, 0.026464907452464104, -0.1279565989971161, -0.41885465383529663, 0.056702010333538055, 0.3580685257911682, -0.10179199278354645, -0.08916697651147842, 0.2000739723443985, 0.21828165650367737, -0.2056000977754593, -0.01986094005405903, -0.09547379612922668, 0.3953026533126831, -0.43145185708999634, 0.20405849814414978, -0.07732636481523514 ]
https://github.com/huggingface/datasets/issues/331
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
here's the log ``` >>> import nlp import logging logging.basicConfig(level=logging.INFO) nlp.load_dataset('cnn_dailymail', '3.0.0') >>> import logging >>> logging.basicConfig(level=logging.INFO) >>> nlp.load_dataset('cnn_dailymail', '3.0.0') INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports. INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0) INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... INFO:nlp.utils.info_utils:All the checksums matched successfully. INFO:nlp.builder:Generating split train INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow. INFO:nlp.builder:Generating split validation INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow. INFO:nlp.builder:Generating split test INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ```
``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ```
223
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` ``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ``` here's the log ``` >>> import nlp import logging logging.basicConfig(level=logging.INFO) nlp.load_dataset('cnn_dailymail', '3.0.0') >>> import logging >>> logging.basicConfig(level=logging.INFO) >>> nlp.load_dataset('cnn_dailymail', '3.0.0') INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports. INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0) INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... INFO:nlp.utils.info_utils:All the checksums matched successfully. INFO:nlp.builder:Generating split train INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow. INFO:nlp.builder:Generating split validation INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow. INFO:nlp.builder:Generating split test INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ```
[ -0.14107030630111694, -0.056987639516592026, -0.008213842287659645, 0.20865750312805176, 0.07764885574579239, 0.0907956138253212, 0.18330249190330505, 0.525176465511322, 0.09873181581497192, 0.1542324423789978, 0.01629738323390484, 0.0769970715045929, -0.3141198754310608, -0.04377361014485359, -0.0335896834731102, 0.035900671035051346, -0.18716789782047272, 0.2515125274658203, 0.04488750919699669, -0.02299683913588524, -0.28743210434913635, 0.2817912697792053, -0.20873887836933136, -0.03660023957490921, -0.4835280776023865, -0.2941964566707611, 0.014396651647984982, 0.36983704566955566, 0.037647634744644165, -0.3093648850917816, -0.054115310311317444, -0.13485699892044067, -0.18413865566253662, 0.10297179967164993, -0.00011303210339974612, 0.11360616236925125, 0.3911178708076477, -0.1433284729719162, -0.48673784732818604, 0.009375868365168571, -0.21043333411216736, -0.4906253218650818, 0.08808925002813339, -0.35468122363090515, -0.1552349179983139, 0.025319306179881096, 0.09456370025873184, -0.21953848004341125, 0.49692779779434204, 0.3904685378074646, 0.2402195930480957, 0.5636105537414551, 0.0662316232919693, 0.1633443832397461, -0.0887690931558609, -0.18095505237579346, -0.14587068557739258, -0.004865535534918308, -0.31783610582351685, -0.15101249516010284, -0.024242646992206573, 0.42894789576530457, -0.0926201269030571, 0.1253480166196823, -0.08723723143339157, 0.11025011539459229, 0.08894378691911697, -0.16584652662277222, 0.09388171136379242, 0.13601833581924438, -0.03290723264217377, -0.07590681314468384, -0.21139144897460938, -0.4385595917701721, -0.016064399853348732, -0.39801856875419617, 0.22512778639793396, 0.21271726489067078, -0.17450271546840668, 0.06538056582212448, -0.32128244638442993, 0.038489848375320435, -0.029471999034285545, 0.2034052461385727, 0.08193359524011612, 0.4111941456794739, -0.10029783844947815, 0.025811949744820595, 0.055545397102832794, -0.09011633694171906, 0.15675091743469238, -0.1769280582666397, 0.1543247103691101, 0.07783624529838562, -0.14576956629753113, -0.04527822509407997, 0.1644643247127533, -0.14841490983963013, 0.04303546994924545, -0.06754820793867111, 0.17890967428684235, -0.06210430711507797, 0.17447517812252045, 0.08687471598386765, 0.04706471040844917, 0.3125300109386444, -0.01635061576962471, 0.2686325013637543, 0.1245989054441452, 0.2852095663547516, 0.0025183488614857197, 0.01810324378311634, 0.11720126867294312, -0.005318779963999987, 0.11884859204292297, 0.22079893946647644, 0.37348422408103943, -0.05925425514578819, -0.3276313245296478, 0.13372232019901276, -0.2627139985561371, -0.2590237259864807, -0.0015637136530131102, 0.2562187612056732, -0.05830209329724312, 0.3132656514644623, -0.06084265932440758, -0.08145195245742798, -0.3839430510997772, -0.15473082661628723, -0.3804476857185364, 0.1700802743434906, -0.18440046906471252, 0.08080901205539703, 0.2795959711074829, -0.07962606847286224, 0.45722249150276184, -0.24975453317165375, -0.01418266911059618, -0.14726415276527405, 0.20933325588703156, -0.03983598202466965, 0.025049258023500443, 0.2831861078739166, -0.130972221493721, 0.17060764133930206, 0.2590439021587372, 0.16906879842281342, -0.21274547278881073, -0.08599664270877838, -0.004009048920124769, -0.6050634384155273, 0.18873338401317596, 0.24872955679893494, 0.05936365947127342, -0.06869883090257645, 0.6144130825996399, 0.07587766647338867, 0.24875298142433167, 0.035049598664045334, -0.16209080815315247, -0.06983862072229385, -0.011321275494992733, -0.16849273443222046, 0.07564869523048401, 0.43802177906036377, -0.23252242803573608, -0.23690640926361084, -0.013540178537368774, -0.141927570104599, 0.5154550671577454, 0.4340137541294098, -0.10532073676586151, 0.043939679861068726, -0.12654952704906464, 0.15382717549800873, 0.20038174092769623, -0.15454043447971344, -0.39556366205215454, 0.1898377239704132, -0.08841194212436676, 0.20390497148036957, 0.20705363154411316, 0.19677646458148956, -0.029445914551615715, 0.10163498669862747, 0.05391368642449379, 0.5395383238792419, -0.2290867120027542, 0.10552295297384262, -0.4344429671764374, -0.43464410305023193, 0.35825201869010925, 0.05645780637860298, 0.22416941821575165, -0.040838051587343216, -0.06270595639944077, 0.43611106276512146, 0.211510568857193, -0.11106240749359131, 0.03748410567641258, 0.03333761915564537, -0.15166297554969788, -0.1143532320857048, 0.01719265803694725, -0.04317096248269081, -0.4885500967502594, 0.1375231146812439, -0.15719813108444214, 0.300516813993454, -0.050177063792943954, -0.10149223357439041, -0.26270684599876404, -0.19473327696323395, -0.17500339448451996, -0.2838500440120697, 0.2178570181131363, 0.22742369771003723, 0.20972014963626862, 0.004435862880200148, -0.2784236669540405, 0.30221298336982727, -0.031406816095113754, 0.1214028149843216, -0.5230279564857483, 0.26270386576652527, -0.22790837287902832, -0.18105600774288177, 0.2639641761779785, 0.4298868477344513, 0.26417630910873413, -0.15307721495628357, -0.28321850299835205, 0.28336167335510254, -0.08616239577531815, 0.23159708082675934, -0.14804498851299286, -0.1591023951768875, 0.11376598477363586, -0.08145585656166077, 0.16977737843990326, 0.4025958478450775, -0.0342428982257843, -0.10330098867416382, -0.11919420957565308, 0.48269250988960266, 0.048458244651556015, 0.08987709879875183, 0.14993366599082947, -0.11412284523248672, 0.07726973295211792, -0.13095784187316895, 0.11302834004163742, -0.5237559080123901, 0.31874576210975647, -0.16963066160678864, 0.2132311463356018, -0.08782125264406204, -0.25000759959220886, 0.05303725227713585, 0.6815175414085388, -0.02595699392259121, 0.0975143313407898, 0.020760303363204002, -0.10262136161327362, -0.2020811289548874, -0.18378609418869019, 0.15972532331943512, 0.3386712968349457, 0.24137741327285767, 0.18663832545280457, 0.2474575787782669, -0.1729576736688614, -0.286001056432724, 0.27237841486930847, 0.09546792507171631, 0.25380411744117737, 0.3859495222568512, 0.006088012829422951, -0.0024020776618272066, -0.5314669609069824, -0.024830952286720276, 0.013506680727005005, 0.3741949200630188, -0.22363515198230743, -0.20182685554027557, -0.43166017532348633, -0.4015897810459137, -0.17028774321079254, -0.2987869381904602, -0.1874067485332489, -0.5853295922279358, 0.08001486212015152, 0.030057670548558235, -0.12527379393577576, 0.16242429614067078, -0.15810289978981018, 0.23189137876033783, 0.2769709825515747, -0.01656581088900566, -0.1927298605442047, -0.08131812512874603, -0.1340956836938858, 0.07541074603796005, 0.1756264567375183, 0.03801210969686508, 0.32826411724090576, -0.1323559731245041, -0.17954102158546448, -0.02463080920279026, -0.40103793144226074, 0.07767254114151001, 0.06737059354782104, 0.1397417038679123, 0.30479034781455994, 0.1800105720758438, 0.33122187852859497, -0.33533310890197754, 0.19725380837917328, -0.24187138676643372, -0.2770203649997711, -0.008125008083879948, 0.002451592590659857, 0.14319878816604614, -0.23823103308677673, -0.48101770877838135, -0.43263664841651917, -0.5125105381011963, 0.10095618665218353, 0.04884705692529678, 0.406664103269577, 0.27042990922927856, -0.2863161861896515, 0.19683800637722015, -0.1210164949297905, 0.18222753703594208, -0.2584167420864105, -0.17760948836803436, 0.2502976059913635, -0.2715808153152466, -0.2704795002937317, -0.12659519910812378, -0.148699551820755, 0.2048918753862381, -0.2855270206928253, -0.4239242970943451, -0.3295075297355652, -0.14588692784309387, -0.05270024389028549, 0.10720060765743256, -0.055841486901044846, 0.2296750843524933, -0.012112244963645935, -0.16541787981987, -0.033511802554130554, -0.3873249590396881, 0.05341775342822075, 0.12507368624210358, 0.0702095627784729, -0.09277152270078659, 0.6258095502853394, 0.062265314161777496, 0.5375291109085083, 0.3718988001346588, 0.09344468265771866, 0.2314654439687729, 0.10950064659118652, 0.14843116700649261, -0.0122390016913414, -0.34279316663742065, 0.2506152391433716, 0.1518259048461914, 0.05925220623612404, 0.3488014340400696, -0.05165127292275429, -0.38571488857269287, -0.08008389174938202, -0.3046748638153076, -0.4658907353878021, -0.28062108159065247, 0.1811244934797287, 0.12481697648763657, 0.2579149901866913, 0.2710345983505249, 0.19469788670539856, -0.17675679922103882, -0.17008116841316223, -0.14580890536308289, 0.1727728694677353, 0.005986769683659077, -0.036692891269922256, -0.1083945780992508, 0.014189031906425953, -0.6109694242477417, 0.26002827286720276, 0.006669697351753712, 0.6111472845077515, -0.15705657005310059, -0.06736592948436737, -0.016853714361786842, -0.28661006689071655, 0.3602811098098755, -0.3092951476573944, -0.054341502487659454, 0.18288666009902954, -0.1095789447426796, -0.35649609565734863, -0.1205785945057869, -0.15273523330688477, 0.04632572829723358, 0.5042909383773804, 0.5133957862854004, -0.2715702950954437, -0.28228631615638733, 0.4173494577407837, 0.10568147897720337, -0.19254624843597412, -0.2405330389738083, -0.2602212727069855, -0.23654717206954956, -0.3589520752429962, -0.0029181349091231823, -0.3549588620662689, 0.2806682288646698, 0.03478274866938591, -0.04944558069109917, -0.036794379353523254, -0.24793007969856262, 0.17122194170951843, 0.023834384977817535, -0.007558602839708328, 0.20605306327342987, 0.190296933054924, 0.258617103099823, 0.3282206058502197, -0.27770543098449707, 0.3211948871612549, -0.0436936691403389, 0.013516088016331196, -0.08669797331094742, 0.12573981285095215, 0.045725058764219284, 0.48612263798713684, 0.017081158235669136, -0.01891629956662655, 0.20161932706832886, 0.325452595949173, -0.004442870616912842, -0.03312190994620323, 0.4496926963329315, -0.06196989491581917, -0.41116225719451904, -0.16488967835903168, 0.2997184991836548, 0.1231904998421669, 0.1361619383096695, -0.13000226020812988, -0.1973913609981537, -0.24372173845767975, 0.1276024729013443, 0.1129901111125946, 0.7832134962081909, 0.2591174840927124, 0.06482309103012085, 0.3565959334373474, -0.15499843657016754, 0.6783711314201355, -0.21120616793632507, 0.25695863366127014, -0.37060996890068054, -0.33122262358665466, -0.037918444722890854, -0.11087696254253387, 0.3169817626476288, 0.10036644339561462, -0.17701305449008942, 0.4902181625366211, -0.12910716235637665, -0.0994337648153305, -0.0617552176117897, 0.46373581886291504, -0.2605730891227722, -0.14336399734020233, -0.40016818046569824, 0.10669782012701035, -0.1958625763654709, 0.35261839628219604, -0.1023915484547615, -0.19491936266422272, 0.2577720582485199, -0.25908154249191284, -0.07498207688331604, 0.2773515582084656, -0.26846256852149963, 0.13984866440296173, 0.006161799654364586, 0.24019713699817657, -0.2210499346256256, -0.38273710012435913, 0.31372931599617004, -0.1355176866054535, -0.038588013499975204, -0.06919408589601517, -0.2621515393257141, -0.024181675165891647, -0.10120715945959091, 0.10601229220628738, 0.4224321246147156, -0.21872377395629883, -0.11455745995044708, 0.02030361257493496, -0.18857908248901367, -0.16305281221866608, -0.018976809456944466, -0.03548518195748329, 0.1039891168475151, -0.17091897130012512, -0.19709573686122894, 0.09542463719844818, -0.23104999959468842, -0.3154531717300415, 0.1461792141199112, -0.057743389159440994, -0.29068097472190857, 0.30770090222358704, -0.08585140109062195, -0.28096523880958557, -0.2579650282859802, 0.24452191591262817, 0.16969197988510132, 0.05087974667549133, 0.49227529764175415, 0.022502869367599487, -0.2898046374320984, -0.2790832221508026, -0.030064580962061882, 0.026359518989920616, -0.36133602261543274, 0.19981473684310913, -0.08701220154762268, -0.015575808472931385, 0.2755272388458252, 0.20519068837165833, 0.1997058242559433, 0.2912754714488983, -0.23239250481128693, -0.5686833262443542, -0.14387363195419312, 0.06298446655273438, -0.005366519093513489, 0.28937962651252747, 0.0466342493891716, 0.5640010833740234, 0.01835734210908413, 0.36128416657447815, -0.3558593690395355, 0.03705979511141777, -0.2532147169113159, 0.1774701327085495, 0.16446775197982788, -0.2871326208114624, 0.47963008284568787, 0.33617454767227173, 0.18961003422737122, 0.1844836324453354, -0.32766881585121155, -0.2398819625377655, -0.1398790031671524, 0.14599119126796722, 0.052866581827402115, -0.15074846148490906, 0.10912664979696274, 0.021051565185189247, -0.16266103088855743, -0.07615964114665985, -0.013169749639928341, -0.1183914840221405, -0.0879901647567749, 0.24678529798984528, -0.04225383326411247, -0.06031559035181999, 0.1202734187245369, 0.05636364221572876, -0.12312067300081253, 0.38872620463371277, -0.011862166225910187, 0.23062333464622498, -0.23718129098415375, 0.04590962082147598, -0.10559859871864319, -0.10755352675914764, 0.04922877997159958, 0.014070950448513031, 0.28337472677230835, -0.4350685477256775, -0.28954899311065674, 0.1623046100139618, 0.23141928017139435, 0.25645434856414795, -0.028592465445399284, -0.1506039798259735, 0.16547547280788422, 0.2218019813299179, -0.3195357918739319, 0.02454344555735588, 0.36717501282691956, -0.0035084302071481943, 0.32188302278518677, 0.353075236082077, 0.1187405064702034, 0.019553137943148613, -0.050877753645181656, 0.08901361376047134, 0.2165183573961258, -0.265998512506485, 0.03685632348060608, 0.26313209533691406, -0.1103861853480339, -0.015080510638654232, 0.3015824854373932, -0.12180223315954208, 0.30099281668663025, 0.23779386281967163, -0.03177625313401222, 0.4294939637184143, -0.03971770033240318, 0.330413281917572, -0.006971082184463739, -0.21676672995090485, 0.1839851588010788, 0.4842492938041687, -0.1120011955499649, 0.3832804560661316, 0.014789579436182976, 0.41056451201438904, -0.28036636114120483, 0.014445463195443153, -0.17746379971504211, 0.4721766710281372, -0.14001254737377167, 0.09138689190149307, -0.0336267463862896, -0.09873779863119125, -0.28677207231521606, -0.006401236169040203, 0.07856160402297974, 0.09016033262014389, 0.15062278509140015, 0.11593025177717209, -0.0376424565911293, -0.3303663730621338, -0.18787667155265808, 0.15899190306663513, 0.23829860985279083, -0.39914360642433167, 0.30744031071662903, 0.2775513231754303, -0.04233197122812271, -0.15953780710697174, 0.6101234555244446, 0.34312376379966736, 0.3848828971385956, -0.13884934782981873, -0.020331962034106255, 0.1635613888502121, -0.0777902603149414, -0.08909288048744202, 0.341130793094635, 0.18975673615932465, -0.07463987916707993, 0.3646359443664551, 0.10431898385286331, -0.2784150242805481, -0.04633723944425583, 0.09377682954072952, -0.24161584675312042, -0.13924597203731537, 0.29328253865242004, -0.04942566156387329, 0.21002770960330963, -0.22206275165081024, 0.03043314442038536, -0.604310929775238, -0.05030401423573494, 0.19343537092208862, -0.08079122751951218, 0.2918080687522888, 0.03415577486157417, 0.1002933457493782, -0.19151321053504944, 0.4911063015460968, 0.06943581253290176, -0.07489384710788727, -0.304778128862381, -0.2246830016374588, -0.579849362373352, 0.14757351577281952, -0.1549476534128189, -0.056466180831193924, 0.009748327545821667, 0.2813648581504822, -0.20153522491455078, 0.04944320768117905, 0.07764115184545517, 0.3546501398086548, -0.04044166952371597, -0.1575724184513092, -0.3835546374320984, 0.016316158697009087, 0.0054043191485106945, -0.22684860229492188, 0.07368852198123932, -0.41332685947418213, 0.24398760497570038, -0.20116853713989258, 0.03681568801403046, -0.12373089790344238, 0.05972931906580925, -0.06897274404764175, 0.47976312041282654, 0.012969297356903553, 0.5052635669708252, 0.2816338539123535, -0.2362828403711319, -0.34874001145362854, -0.16560953855514526, -0.14218731224536896, -0.2967928349971771, 0.1579170972108841, 0.3191109299659729, 0.587475061416626, 0.017295589670538902, 0.05495723336935043, -0.36079031229019165, 0.3801417946815491, 0.023944241926074028, -0.18775181472301483, 0.024198248982429504, 0.32611677050590515, -0.24118804931640625, 0.26747190952301025, 0.24738673865795135, 0.38607296347618103, 0.11262815445661545, 0.14903545379638672, -0.24469920992851257, -0.37139376997947693, 0.5164567828178406, -0.18318548798561096, -0.22347158193588257, -0.011896124109625816, 0.12572623789310455, 0.026464907452464104, -0.1279565989971161, -0.41885465383529663, 0.056702010333538055, 0.3580685257911682, -0.10179199278354645, -0.08916697651147842, 0.2000739723443985, 0.21828165650367737, -0.2056000977754593, -0.01986094005405903, -0.09547379612922668, 0.3953026533126831, -0.43145185708999634, 0.20405849814414978, -0.07732636481523514 ]
https://github.com/huggingface/datasets/issues/331
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
> here's the log > > ``` > >>> import nlp > import logging > logging.basicConfig(level=logging.INFO) > nlp.load_dataset('cnn_dailymail', '3.0.0') > >>> import logging > >>> logging.basicConfig(level=logging.INFO) > >>> nlp.load_dataset('cnn_dailymail', '3.0.0') > INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports. > INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock > INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail > INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad > INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py > INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json > INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json > INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock > INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad > INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0) > INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source > Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... > INFO:nlp.utils.info_utils:All the checksums matched successfully. > INFO:nlp.builder:Generating split train > INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow. > INFO:nlp.builder:Generating split validation > INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow. > INFO:nlp.builder:Generating split test > INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow. > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset > builder_instance.download_and_prepare( > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare > self._download_and_prepare( > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare > verify_splits(self.info.splits, split_dict) > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits > raise NonMatchingSplitsSizesError(str(bad_splits)) > nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] > ``` With `nlp == 0.3.0` version, I'm not able to reproduce this error on my side. Which version are you using for reproducing your bug? ``` >> nlp.load_dataset('cnn_dailymail', '3.0.0') 8.90k/8.90k [00:18<00:00, 486B/s] Downloading: 100% 9.37k/9.37k [00:00<00:00, 234kB/s] Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Downloading: 159M/? [00:09<00:00, 16.7MB/s] Downloading: 376M/? [00:06<00:00, 62.6MB/s] Downloading: 2.11M/? [00:06<00:00, 333kB/s] Downloading: 46.4M/? [00:02<00:00, 18.4MB/s] Downloading: 2.43M/? [00:00<00:00, 2.62MB/s] Dataset cnn_dailymail downloaded and prepared to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0. Subsequent calls will reuse this data. {'test': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 11490), 'train': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 287113), 'validation': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 13368)} >> ... ```
``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ```
376
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` ``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ``` > here's the log > > ``` > >>> import nlp > import logging > logging.basicConfig(level=logging.INFO) > nlp.load_dataset('cnn_dailymail', '3.0.0') > >>> import logging > >>> logging.basicConfig(level=logging.INFO) > >>> nlp.load_dataset('cnn_dailymail', '3.0.0') > INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports. > INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock > INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail > INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad > INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py > INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json > INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json > INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock > INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad > INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0) > INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source > Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... > INFO:nlp.utils.info_utils:All the checksums matched successfully. > INFO:nlp.builder:Generating split train > INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow. > INFO:nlp.builder:Generating split validation > INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow. > INFO:nlp.builder:Generating split test > INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow. > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset > builder_instance.download_and_prepare( > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare > self._download_and_prepare( > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare > verify_splits(self.info.splits, split_dict) > File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits > raise NonMatchingSplitsSizesError(str(bad_splits)) > nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] > ``` With `nlp == 0.3.0` version, I'm not able to reproduce this error on my side. Which version are you using for reproducing your bug? ``` >> nlp.load_dataset('cnn_dailymail', '3.0.0') 8.90k/8.90k [00:18<00:00, 486B/s] Downloading: 100% 9.37k/9.37k [00:00<00:00, 234kB/s] Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Downloading: 159M/? [00:09<00:00, 16.7MB/s] Downloading: 376M/? [00:06<00:00, 62.6MB/s] Downloading: 2.11M/? [00:06<00:00, 333kB/s] Downloading: 46.4M/? [00:02<00:00, 18.4MB/s] Downloading: 2.43M/? [00:00<00:00, 2.62MB/s] Dataset cnn_dailymail downloaded and prepared to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0. Subsequent calls will reuse this data. {'test': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 11490), 'train': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 287113), 'validation': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 13368)} >> ... ```
[ -0.14107030630111694, -0.056987639516592026, -0.008213842287659645, 0.20865750312805176, 0.07764885574579239, 0.0907956138253212, 0.18330249190330505, 0.525176465511322, 0.09873181581497192, 0.1542324423789978, 0.01629738323390484, 0.0769970715045929, -0.3141198754310608, -0.04377361014485359, -0.0335896834731102, 0.035900671035051346, -0.18716789782047272, 0.2515125274658203, 0.04488750919699669, -0.02299683913588524, -0.28743210434913635, 0.2817912697792053, -0.20873887836933136, -0.03660023957490921, -0.4835280776023865, -0.2941964566707611, 0.014396651647984982, 0.36983704566955566, 0.037647634744644165, -0.3093648850917816, -0.054115310311317444, -0.13485699892044067, -0.18413865566253662, 0.10297179967164993, -0.00011303210339974612, 0.11360616236925125, 0.3911178708076477, -0.1433284729719162, -0.48673784732818604, 0.009375868365168571, -0.21043333411216736, -0.4906253218650818, 0.08808925002813339, -0.35468122363090515, -0.1552349179983139, 0.025319306179881096, 0.09456370025873184, -0.21953848004341125, 0.49692779779434204, 0.3904685378074646, 0.2402195930480957, 0.5636105537414551, 0.0662316232919693, 0.1633443832397461, -0.0887690931558609, -0.18095505237579346, -0.14587068557739258, -0.004865535534918308, -0.31783610582351685, -0.15101249516010284, -0.024242646992206573, 0.42894789576530457, -0.0926201269030571, 0.1253480166196823, -0.08723723143339157, 0.11025011539459229, 0.08894378691911697, -0.16584652662277222, 0.09388171136379242, 0.13601833581924438, -0.03290723264217377, -0.07590681314468384, -0.21139144897460938, -0.4385595917701721, -0.016064399853348732, -0.39801856875419617, 0.22512778639793396, 0.21271726489067078, -0.17450271546840668, 0.06538056582212448, -0.32128244638442993, 0.038489848375320435, -0.029471999034285545, 0.2034052461385727, 0.08193359524011612, 0.4111941456794739, -0.10029783844947815, 0.025811949744820595, 0.055545397102832794, -0.09011633694171906, 0.15675091743469238, -0.1769280582666397, 0.1543247103691101, 0.07783624529838562, -0.14576956629753113, -0.04527822509407997, 0.1644643247127533, -0.14841490983963013, 0.04303546994924545, -0.06754820793867111, 0.17890967428684235, -0.06210430711507797, 0.17447517812252045, 0.08687471598386765, 0.04706471040844917, 0.3125300109386444, -0.01635061576962471, 0.2686325013637543, 0.1245989054441452, 0.2852095663547516, 0.0025183488614857197, 0.01810324378311634, 0.11720126867294312, -0.005318779963999987, 0.11884859204292297, 0.22079893946647644, 0.37348422408103943, -0.05925425514578819, -0.3276313245296478, 0.13372232019901276, -0.2627139985561371, -0.2590237259864807, -0.0015637136530131102, 0.2562187612056732, -0.05830209329724312, 0.3132656514644623, -0.06084265932440758, -0.08145195245742798, -0.3839430510997772, -0.15473082661628723, -0.3804476857185364, 0.1700802743434906, -0.18440046906471252, 0.08080901205539703, 0.2795959711074829, -0.07962606847286224, 0.45722249150276184, -0.24975453317165375, -0.01418266911059618, -0.14726415276527405, 0.20933325588703156, -0.03983598202466965, 0.025049258023500443, 0.2831861078739166, -0.130972221493721, 0.17060764133930206, 0.2590439021587372, 0.16906879842281342, -0.21274547278881073, -0.08599664270877838, -0.004009048920124769, -0.6050634384155273, 0.18873338401317596, 0.24872955679893494, 0.05936365947127342, -0.06869883090257645, 0.6144130825996399, 0.07587766647338867, 0.24875298142433167, 0.035049598664045334, -0.16209080815315247, -0.06983862072229385, -0.011321275494992733, -0.16849273443222046, 0.07564869523048401, 0.43802177906036377, -0.23252242803573608, -0.23690640926361084, -0.013540178537368774, -0.141927570104599, 0.5154550671577454, 0.4340137541294098, -0.10532073676586151, 0.043939679861068726, -0.12654952704906464, 0.15382717549800873, 0.20038174092769623, -0.15454043447971344, -0.39556366205215454, 0.1898377239704132, -0.08841194212436676, 0.20390497148036957, 0.20705363154411316, 0.19677646458148956, -0.029445914551615715, 0.10163498669862747, 0.05391368642449379, 0.5395383238792419, -0.2290867120027542, 0.10552295297384262, -0.4344429671764374, -0.43464410305023193, 0.35825201869010925, 0.05645780637860298, 0.22416941821575165, -0.040838051587343216, -0.06270595639944077, 0.43611106276512146, 0.211510568857193, -0.11106240749359131, 0.03748410567641258, 0.03333761915564537, -0.15166297554969788, -0.1143532320857048, 0.01719265803694725, -0.04317096248269081, -0.4885500967502594, 0.1375231146812439, -0.15719813108444214, 0.300516813993454, -0.050177063792943954, -0.10149223357439041, -0.26270684599876404, -0.19473327696323395, -0.17500339448451996, -0.2838500440120697, 0.2178570181131363, 0.22742369771003723, 0.20972014963626862, 0.004435862880200148, -0.2784236669540405, 0.30221298336982727, -0.031406816095113754, 0.1214028149843216, -0.5230279564857483, 0.26270386576652527, -0.22790837287902832, -0.18105600774288177, 0.2639641761779785, 0.4298868477344513, 0.26417630910873413, -0.15307721495628357, -0.28321850299835205, 0.28336167335510254, -0.08616239577531815, 0.23159708082675934, -0.14804498851299286, -0.1591023951768875, 0.11376598477363586, -0.08145585656166077, 0.16977737843990326, 0.4025958478450775, -0.0342428982257843, -0.10330098867416382, -0.11919420957565308, 0.48269250988960266, 0.048458244651556015, 0.08987709879875183, 0.14993366599082947, -0.11412284523248672, 0.07726973295211792, -0.13095784187316895, 0.11302834004163742, -0.5237559080123901, 0.31874576210975647, -0.16963066160678864, 0.2132311463356018, -0.08782125264406204, -0.25000759959220886, 0.05303725227713585, 0.6815175414085388, -0.02595699392259121, 0.0975143313407898, 0.020760303363204002, -0.10262136161327362, -0.2020811289548874, -0.18378609418869019, 0.15972532331943512, 0.3386712968349457, 0.24137741327285767, 0.18663832545280457, 0.2474575787782669, -0.1729576736688614, -0.286001056432724, 0.27237841486930847, 0.09546792507171631, 0.25380411744117737, 0.3859495222568512, 0.006088012829422951, -0.0024020776618272066, -0.5314669609069824, -0.024830952286720276, 0.013506680727005005, 0.3741949200630188, -0.22363515198230743, -0.20182685554027557, -0.43166017532348633, -0.4015897810459137, -0.17028774321079254, -0.2987869381904602, -0.1874067485332489, -0.5853295922279358, 0.08001486212015152, 0.030057670548558235, -0.12527379393577576, 0.16242429614067078, -0.15810289978981018, 0.23189137876033783, 0.2769709825515747, -0.01656581088900566, -0.1927298605442047, -0.08131812512874603, -0.1340956836938858, 0.07541074603796005, 0.1756264567375183, 0.03801210969686508, 0.32826411724090576, -0.1323559731245041, -0.17954102158546448, -0.02463080920279026, -0.40103793144226074, 0.07767254114151001, 0.06737059354782104, 0.1397417038679123, 0.30479034781455994, 0.1800105720758438, 0.33122187852859497, -0.33533310890197754, 0.19725380837917328, -0.24187138676643372, -0.2770203649997711, -0.008125008083879948, 0.002451592590659857, 0.14319878816604614, -0.23823103308677673, -0.48101770877838135, -0.43263664841651917, -0.5125105381011963, 0.10095618665218353, 0.04884705692529678, 0.406664103269577, 0.27042990922927856, -0.2863161861896515, 0.19683800637722015, -0.1210164949297905, 0.18222753703594208, -0.2584167420864105, -0.17760948836803436, 0.2502976059913635, -0.2715808153152466, -0.2704795002937317, -0.12659519910812378, -0.148699551820755, 0.2048918753862381, -0.2855270206928253, -0.4239242970943451, -0.3295075297355652, -0.14588692784309387, -0.05270024389028549, 0.10720060765743256, -0.055841486901044846, 0.2296750843524933, -0.012112244963645935, -0.16541787981987, -0.033511802554130554, -0.3873249590396881, 0.05341775342822075, 0.12507368624210358, 0.0702095627784729, -0.09277152270078659, 0.6258095502853394, 0.062265314161777496, 0.5375291109085083, 0.3718988001346588, 0.09344468265771866, 0.2314654439687729, 0.10950064659118652, 0.14843116700649261, -0.0122390016913414, -0.34279316663742065, 0.2506152391433716, 0.1518259048461914, 0.05925220623612404, 0.3488014340400696, -0.05165127292275429, -0.38571488857269287, -0.08008389174938202, -0.3046748638153076, -0.4658907353878021, -0.28062108159065247, 0.1811244934797287, 0.12481697648763657, 0.2579149901866913, 0.2710345983505249, 0.19469788670539856, -0.17675679922103882, -0.17008116841316223, -0.14580890536308289, 0.1727728694677353, 0.005986769683659077, -0.036692891269922256, -0.1083945780992508, 0.014189031906425953, -0.6109694242477417, 0.26002827286720276, 0.006669697351753712, 0.6111472845077515, -0.15705657005310059, -0.06736592948436737, -0.016853714361786842, -0.28661006689071655, 0.3602811098098755, -0.3092951476573944, -0.054341502487659454, 0.18288666009902954, -0.1095789447426796, -0.35649609565734863, -0.1205785945057869, -0.15273523330688477, 0.04632572829723358, 0.5042909383773804, 0.5133957862854004, -0.2715702950954437, -0.28228631615638733, 0.4173494577407837, 0.10568147897720337, -0.19254624843597412, -0.2405330389738083, -0.2602212727069855, -0.23654717206954956, -0.3589520752429962, -0.0029181349091231823, -0.3549588620662689, 0.2806682288646698, 0.03478274866938591, -0.04944558069109917, -0.036794379353523254, -0.24793007969856262, 0.17122194170951843, 0.023834384977817535, -0.007558602839708328, 0.20605306327342987, 0.190296933054924, 0.258617103099823, 0.3282206058502197, -0.27770543098449707, 0.3211948871612549, -0.0436936691403389, 0.013516088016331196, -0.08669797331094742, 0.12573981285095215, 0.045725058764219284, 0.48612263798713684, 0.017081158235669136, -0.01891629956662655, 0.20161932706832886, 0.325452595949173, -0.004442870616912842, -0.03312190994620323, 0.4496926963329315, -0.06196989491581917, -0.41116225719451904, -0.16488967835903168, 0.2997184991836548, 0.1231904998421669, 0.1361619383096695, -0.13000226020812988, -0.1973913609981537, -0.24372173845767975, 0.1276024729013443, 0.1129901111125946, 0.7832134962081909, 0.2591174840927124, 0.06482309103012085, 0.3565959334373474, -0.15499843657016754, 0.6783711314201355, -0.21120616793632507, 0.25695863366127014, -0.37060996890068054, -0.33122262358665466, -0.037918444722890854, -0.11087696254253387, 0.3169817626476288, 0.10036644339561462, -0.17701305449008942, 0.4902181625366211, -0.12910716235637665, -0.0994337648153305, -0.0617552176117897, 0.46373581886291504, -0.2605730891227722, -0.14336399734020233, -0.40016818046569824, 0.10669782012701035, -0.1958625763654709, 0.35261839628219604, -0.1023915484547615, -0.19491936266422272, 0.2577720582485199, -0.25908154249191284, -0.07498207688331604, 0.2773515582084656, -0.26846256852149963, 0.13984866440296173, 0.006161799654364586, 0.24019713699817657, -0.2210499346256256, -0.38273710012435913, 0.31372931599617004, -0.1355176866054535, -0.038588013499975204, -0.06919408589601517, -0.2621515393257141, -0.024181675165891647, -0.10120715945959091, 0.10601229220628738, 0.4224321246147156, -0.21872377395629883, -0.11455745995044708, 0.02030361257493496, -0.18857908248901367, -0.16305281221866608, -0.018976809456944466, -0.03548518195748329, 0.1039891168475151, -0.17091897130012512, -0.19709573686122894, 0.09542463719844818, -0.23104999959468842, -0.3154531717300415, 0.1461792141199112, -0.057743389159440994, -0.29068097472190857, 0.30770090222358704, -0.08585140109062195, -0.28096523880958557, -0.2579650282859802, 0.24452191591262817, 0.16969197988510132, 0.05087974667549133, 0.49227529764175415, 0.022502869367599487, -0.2898046374320984, -0.2790832221508026, -0.030064580962061882, 0.026359518989920616, -0.36133602261543274, 0.19981473684310913, -0.08701220154762268, -0.015575808472931385, 0.2755272388458252, 0.20519068837165833, 0.1997058242559433, 0.2912754714488983, -0.23239250481128693, -0.5686833262443542, -0.14387363195419312, 0.06298446655273438, -0.005366519093513489, 0.28937962651252747, 0.0466342493891716, 0.5640010833740234, 0.01835734210908413, 0.36128416657447815, -0.3558593690395355, 0.03705979511141777, -0.2532147169113159, 0.1774701327085495, 0.16446775197982788, -0.2871326208114624, 0.47963008284568787, 0.33617454767227173, 0.18961003422737122, 0.1844836324453354, -0.32766881585121155, -0.2398819625377655, -0.1398790031671524, 0.14599119126796722, 0.052866581827402115, -0.15074846148490906, 0.10912664979696274, 0.021051565185189247, -0.16266103088855743, -0.07615964114665985, -0.013169749639928341, -0.1183914840221405, -0.0879901647567749, 0.24678529798984528, -0.04225383326411247, -0.06031559035181999, 0.1202734187245369, 0.05636364221572876, -0.12312067300081253, 0.38872620463371277, -0.011862166225910187, 0.23062333464622498, -0.23718129098415375, 0.04590962082147598, -0.10559859871864319, -0.10755352675914764, 0.04922877997159958, 0.014070950448513031, 0.28337472677230835, -0.4350685477256775, -0.28954899311065674, 0.1623046100139618, 0.23141928017139435, 0.25645434856414795, -0.028592465445399284, -0.1506039798259735, 0.16547547280788422, 0.2218019813299179, -0.3195357918739319, 0.02454344555735588, 0.36717501282691956, -0.0035084302071481943, 0.32188302278518677, 0.353075236082077, 0.1187405064702034, 0.019553137943148613, -0.050877753645181656, 0.08901361376047134, 0.2165183573961258, -0.265998512506485, 0.03685632348060608, 0.26313209533691406, -0.1103861853480339, -0.015080510638654232, 0.3015824854373932, -0.12180223315954208, 0.30099281668663025, 0.23779386281967163, -0.03177625313401222, 0.4294939637184143, -0.03971770033240318, 0.330413281917572, -0.006971082184463739, -0.21676672995090485, 0.1839851588010788, 0.4842492938041687, -0.1120011955499649, 0.3832804560661316, 0.014789579436182976, 0.41056451201438904, -0.28036636114120483, 0.014445463195443153, -0.17746379971504211, 0.4721766710281372, -0.14001254737377167, 0.09138689190149307, -0.0336267463862896, -0.09873779863119125, -0.28677207231521606, -0.006401236169040203, 0.07856160402297974, 0.09016033262014389, 0.15062278509140015, 0.11593025177717209, -0.0376424565911293, -0.3303663730621338, -0.18787667155265808, 0.15899190306663513, 0.23829860985279083, -0.39914360642433167, 0.30744031071662903, 0.2775513231754303, -0.04233197122812271, -0.15953780710697174, 0.6101234555244446, 0.34312376379966736, 0.3848828971385956, -0.13884934782981873, -0.020331962034106255, 0.1635613888502121, -0.0777902603149414, -0.08909288048744202, 0.341130793094635, 0.18975673615932465, -0.07463987916707993, 0.3646359443664551, 0.10431898385286331, -0.2784150242805481, -0.04633723944425583, 0.09377682954072952, -0.24161584675312042, -0.13924597203731537, 0.29328253865242004, -0.04942566156387329, 0.21002770960330963, -0.22206275165081024, 0.03043314442038536, -0.604310929775238, -0.05030401423573494, 0.19343537092208862, -0.08079122751951218, 0.2918080687522888, 0.03415577486157417, 0.1002933457493782, -0.19151321053504944, 0.4911063015460968, 0.06943581253290176, -0.07489384710788727, -0.304778128862381, -0.2246830016374588, -0.579849362373352, 0.14757351577281952, -0.1549476534128189, -0.056466180831193924, 0.009748327545821667, 0.2813648581504822, -0.20153522491455078, 0.04944320768117905, 0.07764115184545517, 0.3546501398086548, -0.04044166952371597, -0.1575724184513092, -0.3835546374320984, 0.016316158697009087, 0.0054043191485106945, -0.22684860229492188, 0.07368852198123932, -0.41332685947418213, 0.24398760497570038, -0.20116853713989258, 0.03681568801403046, -0.12373089790344238, 0.05972931906580925, -0.06897274404764175, 0.47976312041282654, 0.012969297356903553, 0.5052635669708252, 0.2816338539123535, -0.2362828403711319, -0.34874001145362854, -0.16560953855514526, -0.14218731224536896, -0.2967928349971771, 0.1579170972108841, 0.3191109299659729, 0.587475061416626, 0.017295589670538902, 0.05495723336935043, -0.36079031229019165, 0.3801417946815491, 0.023944241926074028, -0.18775181472301483, 0.024198248982429504, 0.32611677050590515, -0.24118804931640625, 0.26747190952301025, 0.24738673865795135, 0.38607296347618103, 0.11262815445661545, 0.14903545379638672, -0.24469920992851257, -0.37139376997947693, 0.5164567828178406, -0.18318548798561096, -0.22347158193588257, -0.011896124109625816, 0.12572623789310455, 0.026464907452464104, -0.1279565989971161, -0.41885465383529663, 0.056702010333538055, 0.3580685257911682, -0.10179199278354645, -0.08916697651147842, 0.2000739723443985, 0.21828165650367737, -0.2056000977754593, -0.01986094005405903, -0.09547379612922668, 0.3953026533126831, -0.43145185708999634, 0.20405849814414978, -0.07732636481523514 ]
https://github.com/huggingface/datasets/issues/331
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
In general if some examples are missing after processing (hence causing the `NonMatchingSplitsSizesError `), it is often due to either 1) corrupted cached files 2) decoding errors I just checked the dataset script for code that could lead to decoding errors but I couldn't find any. Before we try to dive more into the processing of the dataset, could you try to clear your cache ? Just to make sure that it isn't 1)
``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ```
74
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` ``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ``` In general if some examples are missing after processing (hence causing the `NonMatchingSplitsSizesError `), it is often due to either 1) corrupted cached files 2) decoding errors I just checked the dataset script for code that could lead to decoding errors but I couldn't find any. Before we try to dive more into the processing of the dataset, could you try to clear your cache ? Just to make sure that it isn't 1)
[ -0.14107030630111694, -0.056987639516592026, -0.008213842287659645, 0.20865750312805176, 0.07764885574579239, 0.0907956138253212, 0.18330249190330505, 0.525176465511322, 0.09873181581497192, 0.1542324423789978, 0.01629738323390484, 0.0769970715045929, -0.3141198754310608, -0.04377361014485359, -0.0335896834731102, 0.035900671035051346, -0.18716789782047272, 0.2515125274658203, 0.04488750919699669, -0.02299683913588524, -0.28743210434913635, 0.2817912697792053, -0.20873887836933136, -0.03660023957490921, -0.4835280776023865, -0.2941964566707611, 0.014396651647984982, 0.36983704566955566, 0.037647634744644165, -0.3093648850917816, -0.054115310311317444, -0.13485699892044067, -0.18413865566253662, 0.10297179967164993, -0.00011303210339974612, 0.11360616236925125, 0.3911178708076477, -0.1433284729719162, -0.48673784732818604, 0.009375868365168571, -0.21043333411216736, -0.4906253218650818, 0.08808925002813339, -0.35468122363090515, -0.1552349179983139, 0.025319306179881096, 0.09456370025873184, -0.21953848004341125, 0.49692779779434204, 0.3904685378074646, 0.2402195930480957, 0.5636105537414551, 0.0662316232919693, 0.1633443832397461, -0.0887690931558609, -0.18095505237579346, -0.14587068557739258, -0.004865535534918308, -0.31783610582351685, -0.15101249516010284, -0.024242646992206573, 0.42894789576530457, -0.0926201269030571, 0.1253480166196823, -0.08723723143339157, 0.11025011539459229, 0.08894378691911697, -0.16584652662277222, 0.09388171136379242, 0.13601833581924438, -0.03290723264217377, -0.07590681314468384, -0.21139144897460938, -0.4385595917701721, -0.016064399853348732, -0.39801856875419617, 0.22512778639793396, 0.21271726489067078, -0.17450271546840668, 0.06538056582212448, -0.32128244638442993, 0.038489848375320435, -0.029471999034285545, 0.2034052461385727, 0.08193359524011612, 0.4111941456794739, -0.10029783844947815, 0.025811949744820595, 0.055545397102832794, -0.09011633694171906, 0.15675091743469238, -0.1769280582666397, 0.1543247103691101, 0.07783624529838562, -0.14576956629753113, -0.04527822509407997, 0.1644643247127533, -0.14841490983963013, 0.04303546994924545, -0.06754820793867111, 0.17890967428684235, -0.06210430711507797, 0.17447517812252045, 0.08687471598386765, 0.04706471040844917, 0.3125300109386444, -0.01635061576962471, 0.2686325013637543, 0.1245989054441452, 0.2852095663547516, 0.0025183488614857197, 0.01810324378311634, 0.11720126867294312, -0.005318779963999987, 0.11884859204292297, 0.22079893946647644, 0.37348422408103943, -0.05925425514578819, -0.3276313245296478, 0.13372232019901276, -0.2627139985561371, -0.2590237259864807, -0.0015637136530131102, 0.2562187612056732, -0.05830209329724312, 0.3132656514644623, -0.06084265932440758, -0.08145195245742798, -0.3839430510997772, -0.15473082661628723, -0.3804476857185364, 0.1700802743434906, -0.18440046906471252, 0.08080901205539703, 0.2795959711074829, -0.07962606847286224, 0.45722249150276184, -0.24975453317165375, -0.01418266911059618, -0.14726415276527405, 0.20933325588703156, -0.03983598202466965, 0.025049258023500443, 0.2831861078739166, -0.130972221493721, 0.17060764133930206, 0.2590439021587372, 0.16906879842281342, -0.21274547278881073, -0.08599664270877838, -0.004009048920124769, -0.6050634384155273, 0.18873338401317596, 0.24872955679893494, 0.05936365947127342, -0.06869883090257645, 0.6144130825996399, 0.07587766647338867, 0.24875298142433167, 0.035049598664045334, -0.16209080815315247, -0.06983862072229385, -0.011321275494992733, -0.16849273443222046, 0.07564869523048401, 0.43802177906036377, -0.23252242803573608, -0.23690640926361084, -0.013540178537368774, -0.141927570104599, 0.5154550671577454, 0.4340137541294098, -0.10532073676586151, 0.043939679861068726, -0.12654952704906464, 0.15382717549800873, 0.20038174092769623, -0.15454043447971344, -0.39556366205215454, 0.1898377239704132, -0.08841194212436676, 0.20390497148036957, 0.20705363154411316, 0.19677646458148956, -0.029445914551615715, 0.10163498669862747, 0.05391368642449379, 0.5395383238792419, -0.2290867120027542, 0.10552295297384262, -0.4344429671764374, -0.43464410305023193, 0.35825201869010925, 0.05645780637860298, 0.22416941821575165, -0.040838051587343216, -0.06270595639944077, 0.43611106276512146, 0.211510568857193, -0.11106240749359131, 0.03748410567641258, 0.03333761915564537, -0.15166297554969788, -0.1143532320857048, 0.01719265803694725, -0.04317096248269081, -0.4885500967502594, 0.1375231146812439, -0.15719813108444214, 0.300516813993454, -0.050177063792943954, -0.10149223357439041, -0.26270684599876404, -0.19473327696323395, -0.17500339448451996, -0.2838500440120697, 0.2178570181131363, 0.22742369771003723, 0.20972014963626862, 0.004435862880200148, -0.2784236669540405, 0.30221298336982727, -0.031406816095113754, 0.1214028149843216, -0.5230279564857483, 0.26270386576652527, -0.22790837287902832, -0.18105600774288177, 0.2639641761779785, 0.4298868477344513, 0.26417630910873413, -0.15307721495628357, -0.28321850299835205, 0.28336167335510254, -0.08616239577531815, 0.23159708082675934, -0.14804498851299286, -0.1591023951768875, 0.11376598477363586, -0.08145585656166077, 0.16977737843990326, 0.4025958478450775, -0.0342428982257843, -0.10330098867416382, -0.11919420957565308, 0.48269250988960266, 0.048458244651556015, 0.08987709879875183, 0.14993366599082947, -0.11412284523248672, 0.07726973295211792, -0.13095784187316895, 0.11302834004163742, -0.5237559080123901, 0.31874576210975647, -0.16963066160678864, 0.2132311463356018, -0.08782125264406204, -0.25000759959220886, 0.05303725227713585, 0.6815175414085388, -0.02595699392259121, 0.0975143313407898, 0.020760303363204002, -0.10262136161327362, -0.2020811289548874, -0.18378609418869019, 0.15972532331943512, 0.3386712968349457, 0.24137741327285767, 0.18663832545280457, 0.2474575787782669, -0.1729576736688614, -0.286001056432724, 0.27237841486930847, 0.09546792507171631, 0.25380411744117737, 0.3859495222568512, 0.006088012829422951, -0.0024020776618272066, -0.5314669609069824, -0.024830952286720276, 0.013506680727005005, 0.3741949200630188, -0.22363515198230743, -0.20182685554027557, -0.43166017532348633, -0.4015897810459137, -0.17028774321079254, -0.2987869381904602, -0.1874067485332489, -0.5853295922279358, 0.08001486212015152, 0.030057670548558235, -0.12527379393577576, 0.16242429614067078, -0.15810289978981018, 0.23189137876033783, 0.2769709825515747, -0.01656581088900566, -0.1927298605442047, -0.08131812512874603, -0.1340956836938858, 0.07541074603796005, 0.1756264567375183, 0.03801210969686508, 0.32826411724090576, -0.1323559731245041, -0.17954102158546448, -0.02463080920279026, -0.40103793144226074, 0.07767254114151001, 0.06737059354782104, 0.1397417038679123, 0.30479034781455994, 0.1800105720758438, 0.33122187852859497, -0.33533310890197754, 0.19725380837917328, -0.24187138676643372, -0.2770203649997711, -0.008125008083879948, 0.002451592590659857, 0.14319878816604614, -0.23823103308677673, -0.48101770877838135, -0.43263664841651917, -0.5125105381011963, 0.10095618665218353, 0.04884705692529678, 0.406664103269577, 0.27042990922927856, -0.2863161861896515, 0.19683800637722015, -0.1210164949297905, 0.18222753703594208, -0.2584167420864105, -0.17760948836803436, 0.2502976059913635, -0.2715808153152466, -0.2704795002937317, -0.12659519910812378, -0.148699551820755, 0.2048918753862381, -0.2855270206928253, -0.4239242970943451, -0.3295075297355652, -0.14588692784309387, -0.05270024389028549, 0.10720060765743256, -0.055841486901044846, 0.2296750843524933, -0.012112244963645935, -0.16541787981987, -0.033511802554130554, -0.3873249590396881, 0.05341775342822075, 0.12507368624210358, 0.0702095627784729, -0.09277152270078659, 0.6258095502853394, 0.062265314161777496, 0.5375291109085083, 0.3718988001346588, 0.09344468265771866, 0.2314654439687729, 0.10950064659118652, 0.14843116700649261, -0.0122390016913414, -0.34279316663742065, 0.2506152391433716, 0.1518259048461914, 0.05925220623612404, 0.3488014340400696, -0.05165127292275429, -0.38571488857269287, -0.08008389174938202, -0.3046748638153076, -0.4658907353878021, -0.28062108159065247, 0.1811244934797287, 0.12481697648763657, 0.2579149901866913, 0.2710345983505249, 0.19469788670539856, -0.17675679922103882, -0.17008116841316223, -0.14580890536308289, 0.1727728694677353, 0.005986769683659077, -0.036692891269922256, -0.1083945780992508, 0.014189031906425953, -0.6109694242477417, 0.26002827286720276, 0.006669697351753712, 0.6111472845077515, -0.15705657005310059, -0.06736592948436737, -0.016853714361786842, -0.28661006689071655, 0.3602811098098755, -0.3092951476573944, -0.054341502487659454, 0.18288666009902954, -0.1095789447426796, -0.35649609565734863, -0.1205785945057869, -0.15273523330688477, 0.04632572829723358, 0.5042909383773804, 0.5133957862854004, -0.2715702950954437, -0.28228631615638733, 0.4173494577407837, 0.10568147897720337, -0.19254624843597412, -0.2405330389738083, -0.2602212727069855, -0.23654717206954956, -0.3589520752429962, -0.0029181349091231823, -0.3549588620662689, 0.2806682288646698, 0.03478274866938591, -0.04944558069109917, -0.036794379353523254, -0.24793007969856262, 0.17122194170951843, 0.023834384977817535, -0.007558602839708328, 0.20605306327342987, 0.190296933054924, 0.258617103099823, 0.3282206058502197, -0.27770543098449707, 0.3211948871612549, -0.0436936691403389, 0.013516088016331196, -0.08669797331094742, 0.12573981285095215, 0.045725058764219284, 0.48612263798713684, 0.017081158235669136, -0.01891629956662655, 0.20161932706832886, 0.325452595949173, -0.004442870616912842, -0.03312190994620323, 0.4496926963329315, -0.06196989491581917, -0.41116225719451904, -0.16488967835903168, 0.2997184991836548, 0.1231904998421669, 0.1361619383096695, -0.13000226020812988, -0.1973913609981537, -0.24372173845767975, 0.1276024729013443, 0.1129901111125946, 0.7832134962081909, 0.2591174840927124, 0.06482309103012085, 0.3565959334373474, -0.15499843657016754, 0.6783711314201355, -0.21120616793632507, 0.25695863366127014, -0.37060996890068054, -0.33122262358665466, -0.037918444722890854, -0.11087696254253387, 0.3169817626476288, 0.10036644339561462, -0.17701305449008942, 0.4902181625366211, -0.12910716235637665, -0.0994337648153305, -0.0617552176117897, 0.46373581886291504, -0.2605730891227722, -0.14336399734020233, -0.40016818046569824, 0.10669782012701035, -0.1958625763654709, 0.35261839628219604, -0.1023915484547615, -0.19491936266422272, 0.2577720582485199, -0.25908154249191284, -0.07498207688331604, 0.2773515582084656, -0.26846256852149963, 0.13984866440296173, 0.006161799654364586, 0.24019713699817657, -0.2210499346256256, -0.38273710012435913, 0.31372931599617004, -0.1355176866054535, -0.038588013499975204, -0.06919408589601517, -0.2621515393257141, -0.024181675165891647, -0.10120715945959091, 0.10601229220628738, 0.4224321246147156, -0.21872377395629883, -0.11455745995044708, 0.02030361257493496, -0.18857908248901367, -0.16305281221866608, -0.018976809456944466, -0.03548518195748329, 0.1039891168475151, -0.17091897130012512, -0.19709573686122894, 0.09542463719844818, -0.23104999959468842, -0.3154531717300415, 0.1461792141199112, -0.057743389159440994, -0.29068097472190857, 0.30770090222358704, -0.08585140109062195, -0.28096523880958557, -0.2579650282859802, 0.24452191591262817, 0.16969197988510132, 0.05087974667549133, 0.49227529764175415, 0.022502869367599487, -0.2898046374320984, -0.2790832221508026, -0.030064580962061882, 0.026359518989920616, -0.36133602261543274, 0.19981473684310913, -0.08701220154762268, -0.015575808472931385, 0.2755272388458252, 0.20519068837165833, 0.1997058242559433, 0.2912754714488983, -0.23239250481128693, -0.5686833262443542, -0.14387363195419312, 0.06298446655273438, -0.005366519093513489, 0.28937962651252747, 0.0466342493891716, 0.5640010833740234, 0.01835734210908413, 0.36128416657447815, -0.3558593690395355, 0.03705979511141777, -0.2532147169113159, 0.1774701327085495, 0.16446775197982788, -0.2871326208114624, 0.47963008284568787, 0.33617454767227173, 0.18961003422737122, 0.1844836324453354, -0.32766881585121155, -0.2398819625377655, -0.1398790031671524, 0.14599119126796722, 0.052866581827402115, -0.15074846148490906, 0.10912664979696274, 0.021051565185189247, -0.16266103088855743, -0.07615964114665985, -0.013169749639928341, -0.1183914840221405, -0.0879901647567749, 0.24678529798984528, -0.04225383326411247, -0.06031559035181999, 0.1202734187245369, 0.05636364221572876, -0.12312067300081253, 0.38872620463371277, -0.011862166225910187, 0.23062333464622498, -0.23718129098415375, 0.04590962082147598, -0.10559859871864319, -0.10755352675914764, 0.04922877997159958, 0.014070950448513031, 0.28337472677230835, -0.4350685477256775, -0.28954899311065674, 0.1623046100139618, 0.23141928017139435, 0.25645434856414795, -0.028592465445399284, -0.1506039798259735, 0.16547547280788422, 0.2218019813299179, -0.3195357918739319, 0.02454344555735588, 0.36717501282691956, -0.0035084302071481943, 0.32188302278518677, 0.353075236082077, 0.1187405064702034, 0.019553137943148613, -0.050877753645181656, 0.08901361376047134, 0.2165183573961258, -0.265998512506485, 0.03685632348060608, 0.26313209533691406, -0.1103861853480339, -0.015080510638654232, 0.3015824854373932, -0.12180223315954208, 0.30099281668663025, 0.23779386281967163, -0.03177625313401222, 0.4294939637184143, -0.03971770033240318, 0.330413281917572, -0.006971082184463739, -0.21676672995090485, 0.1839851588010788, 0.4842492938041687, -0.1120011955499649, 0.3832804560661316, 0.014789579436182976, 0.41056451201438904, -0.28036636114120483, 0.014445463195443153, -0.17746379971504211, 0.4721766710281372, -0.14001254737377167, 0.09138689190149307, -0.0336267463862896, -0.09873779863119125, -0.28677207231521606, -0.006401236169040203, 0.07856160402297974, 0.09016033262014389, 0.15062278509140015, 0.11593025177717209, -0.0376424565911293, -0.3303663730621338, -0.18787667155265808, 0.15899190306663513, 0.23829860985279083, -0.39914360642433167, 0.30744031071662903, 0.2775513231754303, -0.04233197122812271, -0.15953780710697174, 0.6101234555244446, 0.34312376379966736, 0.3848828971385956, -0.13884934782981873, -0.020331962034106255, 0.1635613888502121, -0.0777902603149414, -0.08909288048744202, 0.341130793094635, 0.18975673615932465, -0.07463987916707993, 0.3646359443664551, 0.10431898385286331, -0.2784150242805481, -0.04633723944425583, 0.09377682954072952, -0.24161584675312042, -0.13924597203731537, 0.29328253865242004, -0.04942566156387329, 0.21002770960330963, -0.22206275165081024, 0.03043314442038536, -0.604310929775238, -0.05030401423573494, 0.19343537092208862, -0.08079122751951218, 0.2918080687522888, 0.03415577486157417, 0.1002933457493782, -0.19151321053504944, 0.4911063015460968, 0.06943581253290176, -0.07489384710788727, -0.304778128862381, -0.2246830016374588, -0.579849362373352, 0.14757351577281952, -0.1549476534128189, -0.056466180831193924, 0.009748327545821667, 0.2813648581504822, -0.20153522491455078, 0.04944320768117905, 0.07764115184545517, 0.3546501398086548, -0.04044166952371597, -0.1575724184513092, -0.3835546374320984, 0.016316158697009087, 0.0054043191485106945, -0.22684860229492188, 0.07368852198123932, -0.41332685947418213, 0.24398760497570038, -0.20116853713989258, 0.03681568801403046, -0.12373089790344238, 0.05972931906580925, -0.06897274404764175, 0.47976312041282654, 0.012969297356903553, 0.5052635669708252, 0.2816338539123535, -0.2362828403711319, -0.34874001145362854, -0.16560953855514526, -0.14218731224536896, -0.2967928349971771, 0.1579170972108841, 0.3191109299659729, 0.587475061416626, 0.017295589670538902, 0.05495723336935043, -0.36079031229019165, 0.3801417946815491, 0.023944241926074028, -0.18775181472301483, 0.024198248982429504, 0.32611677050590515, -0.24118804931640625, 0.26747190952301025, 0.24738673865795135, 0.38607296347618103, 0.11262815445661545, 0.14903545379638672, -0.24469920992851257, -0.37139376997947693, 0.5164567828178406, -0.18318548798561096, -0.22347158193588257, -0.011896124109625816, 0.12572623789310455, 0.026464907452464104, -0.1279565989971161, -0.41885465383529663, 0.056702010333538055, 0.3580685257911682, -0.10179199278354645, -0.08916697651147842, 0.2000739723443985, 0.21828165650367737, -0.2056000977754593, -0.01986094005405903, -0.09547379612922668, 0.3953026533126831, -0.43145185708999634, 0.20405849814414978, -0.07732636481523514 ]
https://github.com/huggingface/datasets/issues/331
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
Yes thanks for the support! I cleared out my cache folder and everything works fine now
``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ```
16
Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` ``` >>> import nlp >>> nlp.load_dataset('cnn_dailymail', '3.0.0') Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset builder_instance.download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare self._download_and_prepare( File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}] ``` Yes thanks for the support! I cleared out my cache folder and everything works fine now
[ -0.14107030630111694, -0.056987639516592026, -0.008213842287659645, 0.20865750312805176, 0.07764885574579239, 0.0907956138253212, 0.18330249190330505, 0.525176465511322, 0.09873181581497192, 0.1542324423789978, 0.01629738323390484, 0.0769970715045929, -0.3141198754310608, -0.04377361014485359, -0.0335896834731102, 0.035900671035051346, -0.18716789782047272, 0.2515125274658203, 0.04488750919699669, -0.02299683913588524, -0.28743210434913635, 0.2817912697792053, -0.20873887836933136, -0.03660023957490921, -0.4835280776023865, -0.2941964566707611, 0.014396651647984982, 0.36983704566955566, 0.037647634744644165, -0.3093648850917816, -0.054115310311317444, -0.13485699892044067, -0.18413865566253662, 0.10297179967164993, -0.00011303210339974612, 0.11360616236925125, 0.3911178708076477, -0.1433284729719162, -0.48673784732818604, 0.009375868365168571, -0.21043333411216736, -0.4906253218650818, 0.08808925002813339, -0.35468122363090515, -0.1552349179983139, 0.025319306179881096, 0.09456370025873184, -0.21953848004341125, 0.49692779779434204, 0.3904685378074646, 0.2402195930480957, 0.5636105537414551, 0.0662316232919693, 0.1633443832397461, -0.0887690931558609, -0.18095505237579346, -0.14587068557739258, -0.004865535534918308, -0.31783610582351685, -0.15101249516010284, -0.024242646992206573, 0.42894789576530457, -0.0926201269030571, 0.1253480166196823, -0.08723723143339157, 0.11025011539459229, 0.08894378691911697, -0.16584652662277222, 0.09388171136379242, 0.13601833581924438, -0.03290723264217377, -0.07590681314468384, -0.21139144897460938, -0.4385595917701721, -0.016064399853348732, -0.39801856875419617, 0.22512778639793396, 0.21271726489067078, -0.17450271546840668, 0.06538056582212448, -0.32128244638442993, 0.038489848375320435, -0.029471999034285545, 0.2034052461385727, 0.08193359524011612, 0.4111941456794739, -0.10029783844947815, 0.025811949744820595, 0.055545397102832794, -0.09011633694171906, 0.15675091743469238, -0.1769280582666397, 0.1543247103691101, 0.07783624529838562, -0.14576956629753113, -0.04527822509407997, 0.1644643247127533, -0.14841490983963013, 0.04303546994924545, -0.06754820793867111, 0.17890967428684235, -0.06210430711507797, 0.17447517812252045, 0.08687471598386765, 0.04706471040844917, 0.3125300109386444, -0.01635061576962471, 0.2686325013637543, 0.1245989054441452, 0.2852095663547516, 0.0025183488614857197, 0.01810324378311634, 0.11720126867294312, -0.005318779963999987, 0.11884859204292297, 0.22079893946647644, 0.37348422408103943, -0.05925425514578819, -0.3276313245296478, 0.13372232019901276, -0.2627139985561371, -0.2590237259864807, -0.0015637136530131102, 0.2562187612056732, -0.05830209329724312, 0.3132656514644623, -0.06084265932440758, -0.08145195245742798, -0.3839430510997772, -0.15473082661628723, -0.3804476857185364, 0.1700802743434906, -0.18440046906471252, 0.08080901205539703, 0.2795959711074829, -0.07962606847286224, 0.45722249150276184, -0.24975453317165375, -0.01418266911059618, -0.14726415276527405, 0.20933325588703156, -0.03983598202466965, 0.025049258023500443, 0.2831861078739166, -0.130972221493721, 0.17060764133930206, 0.2590439021587372, 0.16906879842281342, -0.21274547278881073, -0.08599664270877838, -0.004009048920124769, -0.6050634384155273, 0.18873338401317596, 0.24872955679893494, 0.05936365947127342, -0.06869883090257645, 0.6144130825996399, 0.07587766647338867, 0.24875298142433167, 0.035049598664045334, -0.16209080815315247, -0.06983862072229385, -0.011321275494992733, -0.16849273443222046, 0.07564869523048401, 0.43802177906036377, -0.23252242803573608, -0.23690640926361084, -0.013540178537368774, -0.141927570104599, 0.5154550671577454, 0.4340137541294098, -0.10532073676586151, 0.043939679861068726, -0.12654952704906464, 0.15382717549800873, 0.20038174092769623, -0.15454043447971344, -0.39556366205215454, 0.1898377239704132, -0.08841194212436676, 0.20390497148036957, 0.20705363154411316, 0.19677646458148956, -0.029445914551615715, 0.10163498669862747, 0.05391368642449379, 0.5395383238792419, -0.2290867120027542, 0.10552295297384262, -0.4344429671764374, -0.43464410305023193, 0.35825201869010925, 0.05645780637860298, 0.22416941821575165, -0.040838051587343216, -0.06270595639944077, 0.43611106276512146, 0.211510568857193, -0.11106240749359131, 0.03748410567641258, 0.03333761915564537, -0.15166297554969788, -0.1143532320857048, 0.01719265803694725, -0.04317096248269081, -0.4885500967502594, 0.1375231146812439, -0.15719813108444214, 0.300516813993454, -0.050177063792943954, -0.10149223357439041, -0.26270684599876404, -0.19473327696323395, -0.17500339448451996, -0.2838500440120697, 0.2178570181131363, 0.22742369771003723, 0.20972014963626862, 0.004435862880200148, -0.2784236669540405, 0.30221298336982727, -0.031406816095113754, 0.1214028149843216, -0.5230279564857483, 0.26270386576652527, -0.22790837287902832, -0.18105600774288177, 0.2639641761779785, 0.4298868477344513, 0.26417630910873413, -0.15307721495628357, -0.28321850299835205, 0.28336167335510254, -0.08616239577531815, 0.23159708082675934, -0.14804498851299286, -0.1591023951768875, 0.11376598477363586, -0.08145585656166077, 0.16977737843990326, 0.4025958478450775, -0.0342428982257843, -0.10330098867416382, -0.11919420957565308, 0.48269250988960266, 0.048458244651556015, 0.08987709879875183, 0.14993366599082947, -0.11412284523248672, 0.07726973295211792, -0.13095784187316895, 0.11302834004163742, -0.5237559080123901, 0.31874576210975647, -0.16963066160678864, 0.2132311463356018, -0.08782125264406204, -0.25000759959220886, 0.05303725227713585, 0.6815175414085388, -0.02595699392259121, 0.0975143313407898, 0.020760303363204002, -0.10262136161327362, -0.2020811289548874, -0.18378609418869019, 0.15972532331943512, 0.3386712968349457, 0.24137741327285767, 0.18663832545280457, 0.2474575787782669, -0.1729576736688614, -0.286001056432724, 0.27237841486930847, 0.09546792507171631, 0.25380411744117737, 0.3859495222568512, 0.006088012829422951, -0.0024020776618272066, -0.5314669609069824, -0.024830952286720276, 0.013506680727005005, 0.3741949200630188, -0.22363515198230743, -0.20182685554027557, -0.43166017532348633, -0.4015897810459137, -0.17028774321079254, -0.2987869381904602, -0.1874067485332489, -0.5853295922279358, 0.08001486212015152, 0.030057670548558235, -0.12527379393577576, 0.16242429614067078, -0.15810289978981018, 0.23189137876033783, 0.2769709825515747, -0.01656581088900566, -0.1927298605442047, -0.08131812512874603, -0.1340956836938858, 0.07541074603796005, 0.1756264567375183, 0.03801210969686508, 0.32826411724090576, -0.1323559731245041, -0.17954102158546448, -0.02463080920279026, -0.40103793144226074, 0.07767254114151001, 0.06737059354782104, 0.1397417038679123, 0.30479034781455994, 0.1800105720758438, 0.33122187852859497, -0.33533310890197754, 0.19725380837917328, -0.24187138676643372, -0.2770203649997711, -0.008125008083879948, 0.002451592590659857, 0.14319878816604614, -0.23823103308677673, -0.48101770877838135, -0.43263664841651917, -0.5125105381011963, 0.10095618665218353, 0.04884705692529678, 0.406664103269577, 0.27042990922927856, -0.2863161861896515, 0.19683800637722015, -0.1210164949297905, 0.18222753703594208, -0.2584167420864105, -0.17760948836803436, 0.2502976059913635, -0.2715808153152466, -0.2704795002937317, -0.12659519910812378, -0.148699551820755, 0.2048918753862381, -0.2855270206928253, -0.4239242970943451, -0.3295075297355652, -0.14588692784309387, -0.05270024389028549, 0.10720060765743256, -0.055841486901044846, 0.2296750843524933, -0.012112244963645935, -0.16541787981987, -0.033511802554130554, -0.3873249590396881, 0.05341775342822075, 0.12507368624210358, 0.0702095627784729, -0.09277152270078659, 0.6258095502853394, 0.062265314161777496, 0.5375291109085083, 0.3718988001346588, 0.09344468265771866, 0.2314654439687729, 0.10950064659118652, 0.14843116700649261, -0.0122390016913414, -0.34279316663742065, 0.2506152391433716, 0.1518259048461914, 0.05925220623612404, 0.3488014340400696, -0.05165127292275429, -0.38571488857269287, -0.08008389174938202, -0.3046748638153076, -0.4658907353878021, -0.28062108159065247, 0.1811244934797287, 0.12481697648763657, 0.2579149901866913, 0.2710345983505249, 0.19469788670539856, -0.17675679922103882, -0.17008116841316223, -0.14580890536308289, 0.1727728694677353, 0.005986769683659077, -0.036692891269922256, -0.1083945780992508, 0.014189031906425953, -0.6109694242477417, 0.26002827286720276, 0.006669697351753712, 0.6111472845077515, -0.15705657005310059, -0.06736592948436737, -0.016853714361786842, -0.28661006689071655, 0.3602811098098755, -0.3092951476573944, -0.054341502487659454, 0.18288666009902954, -0.1095789447426796, -0.35649609565734863, -0.1205785945057869, -0.15273523330688477, 0.04632572829723358, 0.5042909383773804, 0.5133957862854004, -0.2715702950954437, -0.28228631615638733, 0.4173494577407837, 0.10568147897720337, -0.19254624843597412, -0.2405330389738083, -0.2602212727069855, -0.23654717206954956, -0.3589520752429962, -0.0029181349091231823, -0.3549588620662689, 0.2806682288646698, 0.03478274866938591, -0.04944558069109917, -0.036794379353523254, -0.24793007969856262, 0.17122194170951843, 0.023834384977817535, -0.007558602839708328, 0.20605306327342987, 0.190296933054924, 0.258617103099823, 0.3282206058502197, -0.27770543098449707, 0.3211948871612549, -0.0436936691403389, 0.013516088016331196, -0.08669797331094742, 0.12573981285095215, 0.045725058764219284, 0.48612263798713684, 0.017081158235669136, -0.01891629956662655, 0.20161932706832886, 0.325452595949173, -0.004442870616912842, -0.03312190994620323, 0.4496926963329315, -0.06196989491581917, -0.41116225719451904, -0.16488967835903168, 0.2997184991836548, 0.1231904998421669, 0.1361619383096695, -0.13000226020812988, -0.1973913609981537, -0.24372173845767975, 0.1276024729013443, 0.1129901111125946, 0.7832134962081909, 0.2591174840927124, 0.06482309103012085, 0.3565959334373474, -0.15499843657016754, 0.6783711314201355, -0.21120616793632507, 0.25695863366127014, -0.37060996890068054, -0.33122262358665466, -0.037918444722890854, -0.11087696254253387, 0.3169817626476288, 0.10036644339561462, -0.17701305449008942, 0.4902181625366211, -0.12910716235637665, -0.0994337648153305, -0.0617552176117897, 0.46373581886291504, -0.2605730891227722, -0.14336399734020233, -0.40016818046569824, 0.10669782012701035, -0.1958625763654709, 0.35261839628219604, -0.1023915484547615, -0.19491936266422272, 0.2577720582485199, -0.25908154249191284, -0.07498207688331604, 0.2773515582084656, -0.26846256852149963, 0.13984866440296173, 0.006161799654364586, 0.24019713699817657, -0.2210499346256256, -0.38273710012435913, 0.31372931599617004, -0.1355176866054535, -0.038588013499975204, -0.06919408589601517, -0.2621515393257141, -0.024181675165891647, -0.10120715945959091, 0.10601229220628738, 0.4224321246147156, -0.21872377395629883, -0.11455745995044708, 0.02030361257493496, -0.18857908248901367, -0.16305281221866608, -0.018976809456944466, -0.03548518195748329, 0.1039891168475151, -0.17091897130012512, -0.19709573686122894, 0.09542463719844818, -0.23104999959468842, -0.3154531717300415, 0.1461792141199112, -0.057743389159440994, -0.29068097472190857, 0.30770090222358704, -0.08585140109062195, -0.28096523880958557, -0.2579650282859802, 0.24452191591262817, 0.16969197988510132, 0.05087974667549133, 0.49227529764175415, 0.022502869367599487, -0.2898046374320984, -0.2790832221508026, -0.030064580962061882, 0.026359518989920616, -0.36133602261543274, 0.19981473684310913, -0.08701220154762268, -0.015575808472931385, 0.2755272388458252, 0.20519068837165833, 0.1997058242559433, 0.2912754714488983, -0.23239250481128693, -0.5686833262443542, -0.14387363195419312, 0.06298446655273438, -0.005366519093513489, 0.28937962651252747, 0.0466342493891716, 0.5640010833740234, 0.01835734210908413, 0.36128416657447815, -0.3558593690395355, 0.03705979511141777, -0.2532147169113159, 0.1774701327085495, 0.16446775197982788, -0.2871326208114624, 0.47963008284568787, 0.33617454767227173, 0.18961003422737122, 0.1844836324453354, -0.32766881585121155, -0.2398819625377655, -0.1398790031671524, 0.14599119126796722, 0.052866581827402115, -0.15074846148490906, 0.10912664979696274, 0.021051565185189247, -0.16266103088855743, -0.07615964114665985, -0.013169749639928341, -0.1183914840221405, -0.0879901647567749, 0.24678529798984528, -0.04225383326411247, -0.06031559035181999, 0.1202734187245369, 0.05636364221572876, -0.12312067300081253, 0.38872620463371277, -0.011862166225910187, 0.23062333464622498, -0.23718129098415375, 0.04590962082147598, -0.10559859871864319, -0.10755352675914764, 0.04922877997159958, 0.014070950448513031, 0.28337472677230835, -0.4350685477256775, -0.28954899311065674, 0.1623046100139618, 0.23141928017139435, 0.25645434856414795, -0.028592465445399284, -0.1506039798259735, 0.16547547280788422, 0.2218019813299179, -0.3195357918739319, 0.02454344555735588, 0.36717501282691956, -0.0035084302071481943, 0.32188302278518677, 0.353075236082077, 0.1187405064702034, 0.019553137943148613, -0.050877753645181656, 0.08901361376047134, 0.2165183573961258, -0.265998512506485, 0.03685632348060608, 0.26313209533691406, -0.1103861853480339, -0.015080510638654232, 0.3015824854373932, -0.12180223315954208, 0.30099281668663025, 0.23779386281967163, -0.03177625313401222, 0.4294939637184143, -0.03971770033240318, 0.330413281917572, -0.006971082184463739, -0.21676672995090485, 0.1839851588010788, 0.4842492938041687, -0.1120011955499649, 0.3832804560661316, 0.014789579436182976, 0.41056451201438904, -0.28036636114120483, 0.014445463195443153, -0.17746379971504211, 0.4721766710281372, -0.14001254737377167, 0.09138689190149307, -0.0336267463862896, -0.09873779863119125, -0.28677207231521606, -0.006401236169040203, 0.07856160402297974, 0.09016033262014389, 0.15062278509140015, 0.11593025177717209, -0.0376424565911293, -0.3303663730621338, -0.18787667155265808, 0.15899190306663513, 0.23829860985279083, -0.39914360642433167, 0.30744031071662903, 0.2775513231754303, -0.04233197122812271, -0.15953780710697174, 0.6101234555244446, 0.34312376379966736, 0.3848828971385956, -0.13884934782981873, -0.020331962034106255, 0.1635613888502121, -0.0777902603149414, -0.08909288048744202, 0.341130793094635, 0.18975673615932465, -0.07463987916707993, 0.3646359443664551, 0.10431898385286331, -0.2784150242805481, -0.04633723944425583, 0.09377682954072952, -0.24161584675312042, -0.13924597203731537, 0.29328253865242004, -0.04942566156387329, 0.21002770960330963, -0.22206275165081024, 0.03043314442038536, -0.604310929775238, -0.05030401423573494, 0.19343537092208862, -0.08079122751951218, 0.2918080687522888, 0.03415577486157417, 0.1002933457493782, -0.19151321053504944, 0.4911063015460968, 0.06943581253290176, -0.07489384710788727, -0.304778128862381, -0.2246830016374588, -0.579849362373352, 0.14757351577281952, -0.1549476534128189, -0.056466180831193924, 0.009748327545821667, 0.2813648581504822, -0.20153522491455078, 0.04944320768117905, 0.07764115184545517, 0.3546501398086548, -0.04044166952371597, -0.1575724184513092, -0.3835546374320984, 0.016316158697009087, 0.0054043191485106945, -0.22684860229492188, 0.07368852198123932, -0.41332685947418213, 0.24398760497570038, -0.20116853713989258, 0.03681568801403046, -0.12373089790344238, 0.05972931906580925, -0.06897274404764175, 0.47976312041282654, 0.012969297356903553, 0.5052635669708252, 0.2816338539123535, -0.2362828403711319, -0.34874001145362854, -0.16560953855514526, -0.14218731224536896, -0.2967928349971771, 0.1579170972108841, 0.3191109299659729, 0.587475061416626, 0.017295589670538902, 0.05495723336935043, -0.36079031229019165, 0.3801417946815491, 0.023944241926074028, -0.18775181472301483, 0.024198248982429504, 0.32611677050590515, -0.24118804931640625, 0.26747190952301025, 0.24738673865795135, 0.38607296347618103, 0.11262815445661545, 0.14903545379638672, -0.24469920992851257, -0.37139376997947693, 0.5164567828178406, -0.18318548798561096, -0.22347158193588257, -0.011896124109625816, 0.12572623789310455, 0.026464907452464104, -0.1279565989971161, -0.41885465383529663, 0.056702010333538055, 0.3580685257911682, -0.10179199278354645, -0.08916697651147842, 0.2000739723443985, 0.21828165650367737, -0.2056000977754593, -0.01986094005405903, -0.09547379612922668, 0.3953026533126831, -0.43145185708999634, 0.20405849814414978, -0.07732636481523514 ]
https://github.com/huggingface/datasets/issues/329
[Bug] FileLock dependency incompatible with filesystem
Environment is Ubuntu 18.04, Python 3.7.5, nlp==0.3.0, filelock=3.0.12. The external volume is Amazon FSx for Lustre, and it by default creates files with limited permissions. My working theory is that FileLock creates a lockfile that isn't writable, and thus there's no way to acquire it by removing the .lock file. But Python is able to create new files and write to them outside of the FileLock package. When I attempt to use FileLock within a Docker container by writing to `/root/.cache/hello.txt`, it succeeds. So there's some permissions issue. But it's not a Docker configuration issue; I've replicated it without Docker. ```bash echo "hello world" >> hello.txt ls -l -rw-rw-r-- 1 ubuntu ubuntu 10 Jun 30 19:52 hello.txt ```
I'm downloading a dataset successfully with `load_dataset("wikitext", "wikitext-2-raw-v1")` But when I attempt to cache it on an external volume, it hangs indefinitely: `load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount` The filesystem when hanging looks like this: ```bash /fsx ----downloads ----94be...73.lock ----wikitext ----wikitext-2-raw ----wikitext-2-raw-1.0.0.incomplete ``` It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency: ```python open("/fsx/hello.txt").write("hello") # succeeds from filelock import FileLock with FileLock("/fsx/hello.lock"): open("/fsx/hello.txt").write("hello") # hangs indefinitely ``` Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that.
118
[Bug] FileLock dependency incompatible with filesystem I'm downloading a dataset successfully with `load_dataset("wikitext", "wikitext-2-raw-v1")` But when I attempt to cache it on an external volume, it hangs indefinitely: `load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount` The filesystem when hanging looks like this: ```bash /fsx ----downloads ----94be...73.lock ----wikitext ----wikitext-2-raw ----wikitext-2-raw-1.0.0.incomplete ``` It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency: ```python open("/fsx/hello.txt").write("hello") # succeeds from filelock import FileLock with FileLock("/fsx/hello.lock"): open("/fsx/hello.txt").write("hello") # hangs indefinitely ``` Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that. Environment is Ubuntu 18.04, Python 3.7.5, nlp==0.3.0, filelock=3.0.12. The external volume is Amazon FSx for Lustre, and it by default creates files with limited permissions. My working theory is that FileLock creates a lockfile that isn't writable, and thus there's no way to acquire it by removing the .lock file. But Python is able to create new files and write to them outside of the FileLock package. When I attempt to use FileLock within a Docker container by writing to `/root/.cache/hello.txt`, it succeeds. So there's some permissions issue. But it's not a Docker configuration issue; I've replicated it without Docker. ```bash echo "hello world" >> hello.txt ls -l -rw-rw-r-- 1 ubuntu ubuntu 10 Jun 30 19:52 hello.txt ```
[ 0.03299208730459213, 0.07716063410043716, -0.0250303503125906, 0.027964487671852112, 0.08898285776376724, 0.1513943076133728, 0.36469709873199463, 0.06515294313430786, 0.7094060182571411, -0.09789630025625229, 0.09096728265285492, -0.005119139328598976, 0.021446235477924347, -0.31596994400024414, -0.2095368504524231, 0.26863616704940796, 0.18638379871845245, 0.06676582992076874, 0.005568790249526501, 0.004701544065028429, -0.06932377815246582, 0.35215362906455994, -0.16332948207855225, -0.27515706419944763, -0.775442898273468, 0.12064488977193832, 0.03655458241701126, 0.043168772011995316, -0.27846845984458923, 0.0024246249813586473, 0.41605132818222046, 0.5284097790718079, -0.08161222189664841, 0.4965883791446686, -0.00012268550926819444, -0.19482991099357605, 0.20045772194862366, -0.03611991927027702, -0.17465081810951233, -0.27420032024383545, -0.21648921072483063, -0.3265874683856964, 0.10970566421747208, -0.11288810521364212, 0.19445349276065826, -0.22415752708911896, 0.0919877141714096, -0.49958595633506775, 0.3337167203426361, -0.04107241705060005, 0.0680704414844513, 0.23607204854488373, 0.2542818486690521, -0.026947567239403725, 0.3872801959514618, -0.22969821095466614, -0.22160018980503082, 0.5681553483009338, 0.4567057490348816, -0.2117672562599182, -0.14096584916114807, -0.03699566796422005, -0.012971518561244011, -0.067933090031147, 0.5948626399040222, -0.19769692420959473, 0.34887340664863586, -0.2678506076335907, -0.10128278285264969, 0.31915169954299927, 0.6145639419555664, -0.04410266503691673, -0.5926793217658997, -0.2471342384815216, 0.32728832960128784, 0.1455291360616684, 0.5233206152915955, 0.06664104014635086, -0.07423371821641922, 0.3606700003147125, 0.05227462202310562, -0.15908315777778625, 0.04574430361390114, 0.022410089150071144, -0.11978036910295486, 0.22163406014442444, 0.14536012709140778, 0.00848599337041378, 0.170888751745224, -0.08060628175735474, 0.30883169174194336, -0.19677110016345978, 0.006690348498523235, 0.09876049309968948, -0.454965740442276, 0.1360243260860443, 0.021312301978468895, 0.10143142193555832, -0.14034979045391083, -0.22208353877067566, -0.47765713930130005, 0.18745940923690796, 0.05092586949467659, 0.35999295115470886, 0.11202706396579742, 0.1694355607032776, 0.052443861961364746, 0.08516807109117508, 0.22349368035793304, -0.03801350295543671, -0.27116042375564575, 0.06752501428127289, -0.054033875465393066, -0.10942761600017548, 0.10894585400819778, -0.07562046498060226, 0.026497559621930122, -0.37690210342407227, 0.1710464209318161, 0.1699298918247223, 0.044321972876787186, 0.38012978434562683, 0.15774840116500854, 0.03164584934711456, 0.11082068085670471, 0.43310344219207764, 0.19749721884727478, 0.004986302927136421, -0.19655221700668335, 0.3437246084213257, -0.0323614776134491, -0.09846436232328415, 0.06905010342597961, 0.09309951961040497, 0.03244072571396828, 0.2763165533542633, 0.17855314910411835, 0.15656626224517822, 0.3272790312767029, 0.10147655010223389, 0.23521114885807037, -0.1581273227930069, -0.1276833564043045, 0.3931945264339447, -0.1377975344657898, 0.07544683665037155, 0.024319907650351524, -0.031019464135169983, -0.027671484276652336, 0.03679167479276657, -0.19250808656215668, 0.06913962960243225, -0.09970122575759888, 0.026319170370697975, -0.380828320980072, 0.11001840233802795, 0.16205790638923645, -0.24640680849552155, -0.10278820991516113, -0.42547541856765747, 0.06687700748443604, -0.4721820056438446, -0.06095799058675766, -0.001506391796283424, -0.05177842453122139, 0.3292960226535797, -0.2778436541557312, -0.0546497143805027, 0.25907182693481445, -0.03806410729885101, -0.12230630218982697, 0.22851777076721191, -0.08114452660083771, 0.10599535703659058, -0.2078048139810562, 0.09918629378080368, -0.02613738365471363, -0.4818364083766937, -0.7829107642173767, 0.24228538572788239, -0.28955599665641785, 0.2557765245437622, 0.16292865574359894, 0.3792770802974701, 0.10211650282144547, -0.22743146121501923, 0.09922394901514053, 0.3591866195201874, 0.12148486822843552, -0.21708980202674866, -0.06384553760290146, -0.28457677364349365, -0.2017316222190857, 0.06886059045791626, 0.01116056926548481, 0.22234860062599182, 0.018059903755784035, 0.6689184308052063, 0.2116290181875229, 0.005539895500987768, 0.005058018025010824, 0.5441516041755676, 0.6210243701934814, 0.0836993157863617, 0.008120299316942692, -0.13227495551109314, -0.6575937271118164, 0.5051037073135376, -0.44281327724456787, -0.07979767769575119, -0.20080986618995667, -0.07274575531482697, 0.11742741614580154, -0.012200120836496353, -0.06911032646894455, 0.14722606539726257, 0.05743503198027611, -0.07900404930114746, 0.07553126662969589, 0.1750720888376236, 0.08998306840658188, 0.3439251482486725, 0.012508358806371689, -0.02000276930630207, -0.05906926840543747, -0.08959785103797913, 0.16309615969657898, -0.18677052855491638, 0.05386156588792801, -0.06380366533994675, 0.10636812448501587, -0.2141568958759308, -0.16059808433055878, 0.23698297142982483, 0.34733888506889343, 0.2953697144985199, -0.27419620752334595, 0.3801425099372864, 0.04182617366313934, 0.48045629262924194, -0.1965436041355133, -0.08989951759576797, 0.10891958326101303, -0.2300201803445816, 0.036124978214502335, 0.09477947652339935, -0.21915216743946075, 0.09280478954315186, -0.20778807997703552, 0.05616061016917229, 0.09117773920297623, 0.04535309970378876, -0.1688563972711563, -0.026935171335935593, 0.2806839048862457, -0.009157699532806873, 0.2706618010997772, -0.10584145039319992, 0.6271888017654419, 0.06708961725234985, 0.3668438792228699, 0.14960558712482452, 0.0516437366604805, 0.04940018430352211, 0.0035037097986787558, -0.11433564126491547, 0.016675902530550957, 0.37751835584640503, 0.49882957339286804, 0.10172625631093979, 0.28893351554870605, -0.21647098660469055, 0.21172307431697845, -0.29040980339050293, 0.05431768298149109, -0.12548531591892242, -0.21107403934001923, 0.3450731337070465, 0.13419143855571747, -0.10683003067970276, 0.13151611387729645, -0.2868644893169403, 0.12568596005439758, 0.020575053989887238, 0.1268947422504425, 0.11325787752866745, -0.35152700543403625, 0.5667673349380493, 0.2086828649044037, 0.19332285225391388, -0.25343164801597595, -0.4644884467124939, 0.10596373677253723, 0.7339767217636108, 0.15229657292366028, 0.0692453607916832, -0.4219461977481842, -0.04986455664038658, 0.039034534245729446, -0.3337167799472809, -0.0399523489177227, -0.33624857664108276, -0.002623296808451414, -0.11624007672071457, 0.5531215667724609, 0.038406260311603546, 0.14482548832893372, 0.10034344345331192, -0.32462090253829956, -0.3931282162666321, -0.18387241661548615, 0.14991258084774017, -0.09260936081409454, 0.43561050295829773, 0.058488450944423676, 0.16341188549995422, -0.10186406224966049, 0.03856383264064789, -0.019282955676317215, -0.38862091302871704, -0.02944258414208889, -0.09757926315069199, -0.030310390517115593, -0.10974498838186264, -0.23691195249557495, 0.17183950543403625, -0.16605305671691895, -0.3670015335083008, 0.30427637696266174, -0.34112563729286194, -0.21069759130477905, 0.24314609169960022, 0.018585966899991035, 0.2877354323863983, -0.003396974876523018, -0.08471518754959106, 0.012246496975421906, -0.4591413140296936, 0.21372660994529724, 0.12401437759399414, -0.4351314902305603, -0.13264726102352142, 0.18630239367485046, -0.4067220985889435, 0.26421958208084106, -0.42662695050239563, -0.22560380399227142, -0.3255859315395355, 0.289767324924469, -0.08494572341442108, -0.075546033680439, 0.44516274333000183, -0.27835991978645325, 0.04962986707687378, -0.4187121093273163, 0.3278367817401886, 0.18772895634174347, 0.03336690366268158, -0.020650714635849, 0.06462690234184265, -0.20487208664417267, 0.13770698010921478, 0.5131194591522217, -0.07067114859819412, 0.01236139889806509, 0.14156267046928406, 0.30565544962882996, 0.4387526512145996, -0.32856568694114685, -0.16825439035892487, -0.141881063580513, -0.08811551332473755, -0.14641208946704865, -0.028260773047804832, -0.15222883224487305, -0.06310813128948212, -0.10035815834999084, -0.05611596629023552, -0.06045122072100639, -0.3005378842353821, 0.035687923431396484, 0.19388560950756073, 0.1703025847673416, 0.23789767920970917, -0.010172400623559952, -0.08169762790203094, -0.1531505137681961, 0.12533117830753326, 0.23193290829658508, 0.460501492023468, 0.04184567555785179, -0.08955647796392441, 0.25071731209754944, -0.1388719379901886, 0.1664319634437561, 0.058135487139225006, 0.3817961812019348, -0.06926023960113525, -0.002746494021266699, -0.025674710050225258, -0.33961912989616394, 0.31496357917785645, 0.022852784022688866, 0.14093604683876038, 0.2082725316286087, 0.14027272164821625, -0.2288297861814499, -0.17936989665031433, -0.19240601360797882, 0.2797607481479645, 0.41900619864463806, 0.19582608342170715, -0.1657380908727646, -0.1652558594942093, -0.665233850479126, 0.37638771533966064, -0.06419504433870316, -0.570195734500885, -0.12038028240203857, 0.29261600971221924, -0.2946743965148926, -0.0075142099522054195, -0.04537718743085861, 0.012191719375550747, 0.08915280550718307, 0.12383679300546646, -0.2526252567768097, -0.12977096438407898, -0.14098460972309113, -0.13350923359394073, 0.024814538657665253, -0.16122190654277802, 0.2471475452184677, 0.05666736140847206, -0.26813992857933044, 0.13587474822998047, 0.1964806169271469, 0.1946500837802887, 0.1310192495584488, 0.306768536567688, -0.2398167848587036, -0.24091127514839172, 0.47298988699913025, -0.03408566862344742, 0.12187010794878006, 0.03185276687145233, -0.054226554930210114, 0.03422943502664566, 0.010943587869405746, 0.13167814910411835, -0.02670765109360218, 0.44266247749328613, 0.06811607629060745, 0.020391957834362984, 0.15079903602600098, -0.19001956284046173, 0.43262723088264465, 0.3856021463871002, -0.0337902307510376, 0.024809246882796288, -0.04072029888629913, 0.8245962858200073, 0.09215021133422852, 0.14429417252540588, -0.036253027617931366, -0.015559637919068336, 0.2752344012260437, -0.4026053845882416, 0.09668785333633423, -0.11022105813026428, -0.40136006474494934, -0.023497944697737694, -0.29421356320381165, 0.32668617367744446, -0.18356630206108093, 0.04535398632287979, 0.14674270153045654, -0.19921079277992249, -0.10962589830160141, -0.0855049341917038, 0.35665303468704224, -0.42578762769699097, -0.34496715664863586, -0.10932734608650208, 0.15333369374275208, 0.20021966099739075, 0.13918685913085938, -0.08245893567800522, -0.11810682713985443, -0.24369479715824127, -0.05484117940068245, -0.26255670189857483, 0.08461487293243408, -0.04760155454277992, 0.41559386253356934, -0.39472588896751404, 0.10009675472974777, -0.08015953004360199, 0.04452751204371452, 0.022788798436522484, 0.3616427183151245, -0.3698626756668091, 0.10394589602947235, -0.030253324657678604, -0.14153631031513214, 0.14917272329330444, -0.16407018899917603, 0.28339481353759766, -0.07953042536973953, -0.1332881599664688, -0.28857487440109253, -0.14481088519096375, -0.234916090965271, 0.22403080761432648, -0.08907688409090042, 0.1189412847161293, 0.20768335461616516, -0.834912896156311, 0.05616552755236626, -0.17461800575256348, -0.008015329949557781, 0.05945917218923569, 0.18963022530078888, -0.16968770325183868, 0.172954723238945, -0.37962767481803894, -0.14120322465896606, -0.009526252746582031, 0.6327993273735046, -0.15756458044052124, -0.32515949010849, 0.455187052488327, 0.12517671287059784, -0.0939943939447403, -0.15620149672031403, 0.3597627282142639, -0.1781926453113556, -0.28100699186325073, -0.1570889949798584, -0.12809035181999207, 0.02175074629485607, -0.10716389864683151, -0.03761298581957817, 0.21503634750843048, -0.1415710598230362, 0.000985112739726901, -0.45536160469055176, -0.28990471363067627, -0.013295143842697144, -0.3651156723499298, 0.07086892426013947, -0.26070913672447205, -0.35438498854637146, -0.21822771430015564, 0.2064203917980194, -0.20223093032836914, 0.16244414448738098, -0.20284169912338257, -0.1324499249458313, 0.3135018050670624, -0.14325548708438873, 0.2176746428012848, -0.31778740882873535, -0.038818471133708954, 0.40034231543540955, -0.16842782497406006, -0.05347292497754097, -0.32704901695251465, 0.1815369576215744, 0.13975000381469727, 0.3898143172264099, 0.17373022437095642, -0.36152011156082153, -0.08784056454896927, 0.017742745578289032, 0.09141117334365845, 0.20037876069545746, 0.13279671967029572, -0.10366076231002808, -0.007462762296199799, 0.8132429718971252, -0.1819957047700882, 0.1114889532327652, 0.07929791510105133, -0.14206385612487793, 0.05959609895944595, 0.009201090782880783, 0.09889984875917435, 0.2614956200122833, -0.5912230014801025, 0.08717755973339081, 0.00948765967041254, 0.18917374312877655, 0.3638572692871094, -0.12228002399206161, 0.0873577743768692, 0.3062604069709778, 0.24291041493415833, 0.30955770611763, 0.10711338371038437, -0.19492806494235992, 0.31502142548561096, 0.08273613452911377, -0.13863614201545715, -0.1861434131860733, 0.3364923298358917, 0.00009154487634077668, -0.03837406635284424, -0.12120889872312546, 0.21788842976093292, -0.20608742535114288, -0.12863768637180328, 0.362809419631958, 0.22679288685321808, 0.0419033020734787, -0.13122069835662842, -0.02418726682662964, 0.14353731274604797, 0.10164465755224228, 0.15171706676483154, 0.06978999823331833, 0.055838458240032196, 0.30680590867996216, -0.38389530777931213, -0.03019576333463192, -0.14035163819789886, 0.10816141963005066, 0.004963891115039587, -0.12972183525562286, 0.12253950536251068, 0.19508656859397888, 0.4629552960395813, 0.1371631771326065, -0.2884202003479004, -0.06186024099588394, -0.3252459466457367, -0.0417996384203434, -0.01866155117750168, 0.1944178193807602, -0.10484644770622253, -0.13072369992733002, 0.5430269837379456, -0.053353775292634964, -0.009478327818214893, -0.23257257044315338, 0.12506285309791565, 0.185250923037529, -0.037981946021318436, 0.3821389973163605, 0.20159375667572021, -0.1882232129573822, -0.32952454686164856, 0.09938675165176392, 0.24102742969989777, -0.2834412753582001, -0.1395075023174286, 0.19504645466804504, 0.17301669716835022, 0.12471369653940201, 0.06866455078125, 0.2102271467447281, 0.3694639801979065, -0.3128957450389862, 0.012326488271355629, -0.18890485167503357, -0.09722945839166641, -0.07447708398103714, 0.388065904378891, -0.024593103677034378, -0.04947691783308983, 0.15607483685016632, 0.018243426457047462, -0.203734889626503, 0.16372056305408478, 0.13466064631938934, 0.2287752479314804, -0.17987076938152313, 0.3555247187614441, 0.3213663101196289, 0.258897602558136, 0.11417718976736069, 0.3011617064476013, -0.2230374813079834, -0.15696366131305695, 0.015811989083886147, 0.16078107059001923, 0.0891638994216919, -0.021763574331998825, 0.061314139515161514, -0.23517689108848572, 0.2948070466518402, 0.23149147629737854, -0.011327803134918213, -0.23046432435512543, 0.33845311403274536, -0.6397738456726074, 0.16410891711711884, -0.21925516426563263, -0.4225706160068512, -0.09137111902236938, 0.2267867475748062, 0.2722901403903961, 0.22949650883674622, -0.04867851361632347, 0.01036520954221487, -0.07669132202863693, 0.025500742718577385, -0.29856932163238525, 0.2668827474117279, 0.26430121064186096, -0.16018550097942352, -0.15518437325954437, -0.48452168703079224, -0.08496876806020737, -0.17667755484580994, 0.0021153066772967577, 0.012498553842306137, -0.2989178001880646, 0.11905007064342499, 0.1107698604464531, 0.3183731138706207, 0.20132841169834137, 0.3909294605255127, -0.07609054446220398, -0.41421449184417725, -0.5229342579841614, -0.03573709726333618, -0.18281972408294678, -0.32646644115448, 0.024637814611196518, 0.45429420471191406, -0.6023717522621155, -0.3832438886165619, -0.310132771730423, 0.4385451078414917, -0.2643033266067505, -0.24527104198932648, -0.32818880677223206, 0.10806011408567429, -0.21624340116977692, 0.38981449604034424, 0.16351735591888428, 0.3700908124446869, 0.11093391478061676, 0.25320136547088623, -0.4738081693649292, 0.026869846507906914, 0.32538723945617676, -0.48060548305511475, -0.2813551723957062, 0.15871042013168335, 0.1845036894083023, 0.03966936096549034, -0.2161518931388855, -0.158163383603096, 0.30958858132362366, 0.006739613134413958, -0.027630630880594254, -0.08218879997730255, 0.042022958397865295, 0.05513923987746239, 0.0974709540605545, -0.187436044216156, 0.08112350851297379, 0.06027942895889282, -0.10054600238800049, -0.2201516032218933, -0.08331916481256485 ]
https://github.com/huggingface/datasets/issues/329
[Bug] FileLock dependency incompatible with filesystem
Looks like the `flock` syscall does not work on Lustre filesystems by default: https://github.com/benediktschmitt/py-filelock/issues/67. I added the `-o flock` option when mounting the filesystem, as [described here](https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started-step2.html), which fixed the issue.
I'm downloading a dataset successfully with `load_dataset("wikitext", "wikitext-2-raw-v1")` But when I attempt to cache it on an external volume, it hangs indefinitely: `load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount` The filesystem when hanging looks like this: ```bash /fsx ----downloads ----94be...73.lock ----wikitext ----wikitext-2-raw ----wikitext-2-raw-1.0.0.incomplete ``` It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency: ```python open("/fsx/hello.txt").write("hello") # succeeds from filelock import FileLock with FileLock("/fsx/hello.lock"): open("/fsx/hello.txt").write("hello") # hangs indefinitely ``` Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that.
31
[Bug] FileLock dependency incompatible with filesystem I'm downloading a dataset successfully with `load_dataset("wikitext", "wikitext-2-raw-v1")` But when I attempt to cache it on an external volume, it hangs indefinitely: `load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount` The filesystem when hanging looks like this: ```bash /fsx ----downloads ----94be...73.lock ----wikitext ----wikitext-2-raw ----wikitext-2-raw-1.0.0.incomplete ``` It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency: ```python open("/fsx/hello.txt").write("hello") # succeeds from filelock import FileLock with FileLock("/fsx/hello.lock"): open("/fsx/hello.txt").write("hello") # hangs indefinitely ``` Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that. Looks like the `flock` syscall does not work on Lustre filesystems by default: https://github.com/benediktschmitt/py-filelock/issues/67. I added the `-o flock` option when mounting the filesystem, as [described here](https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started-step2.html), which fixed the issue.
[ -0.022069407626986504, -0.07033178210258484, -0.024117814376950264, 0.04778272286057472, 0.06480690836906433, 0.05381803587079048, 0.27190282940864563, -0.09048222005367279, 0.7102738618850708, -0.06344903260469437, -0.023036321625113487, -0.030101120471954346, 0.1403876692056656, -0.40407058596611023, -0.28357377648353577, 0.24196355044841766, 0.20772774517536163, 0.0305829755961895, -0.24521806836128235, -0.07708977162837982, -0.1613953858613968, 0.4342418909072876, -0.08152230829000473, -0.2347531020641327, -0.559856116771698, 0.16546104848384857, -0.03963111713528633, 0.140340656042099, -0.3457121253013611, 0.1898193210363388, 0.34178903698921204, 0.6025444865226746, -0.045256637036800385, 0.5372433066368103, -0.00012877008703071624, -0.2627757489681244, 0.24520546197891235, -0.08524224162101746, -0.2170964628458023, -0.10173866897821426, -0.08704736083745956, -0.18407858908176422, 0.22492636740207672, -0.10948679596185684, 0.16084983944892883, 0.12281905114650726, -0.015086177736520767, -0.5285056829452515, 0.2650877833366394, -0.16738462448120117, -0.00023687489738222212, 0.11311282962560654, 0.16723878681659698, -0.15101438760757446, 0.31459176540374756, -0.20973218977451324, -0.18487249314785004, 0.4976539611816406, 0.4717492461204529, -0.0901181697845459, -0.24797341227531433, 0.08873539417982101, 0.025788577273488045, 0.038236599415540695, 0.6046132445335388, -0.29513975977897644, 0.4669867753982544, -0.29776132106781006, -0.30353736877441406, 0.22707180678844452, 0.5503920912742615, -0.01766379550099373, -0.5384920239448547, -0.1820744425058365, 0.358096718788147, -0.00008650909876450896, 0.49266135692596436, 0.05416053533554077, -0.13551722466945648, 0.35030004382133484, 0.01528867520391941, -0.18672792613506317, 0.07348040491342545, 0.05156610533595085, -0.16683772206306458, 0.05517129972577095, 0.15404628217220306, 0.06937295943498611, 0.23603317141532898, -0.14176350831985474, 0.004706302657723427, -0.20134496688842773, -0.13893471658229828, 0.0655195564031601, -0.5184347033500671, 0.044069454073905945, -0.02377159707248211, 0.0005390257574617863, 0.0014865740668028593, -0.17757180333137512, -0.47110289335250854, 0.1959104835987091, -0.10728668421506882, 0.4131369888782501, 0.10727473348379135, 0.12503725290298462, 0.1560998260974884, -0.27062225341796875, 0.3129883408546448, -0.036670275032520294, -0.20050491392612457, 0.12349759042263031, -0.09971877932548523, -0.2006223201751709, -0.07061895728111267, -0.008544457145035267, 0.02445083297789097, -0.4772162437438965, 0.19409355521202087, 0.2955319881439209, 0.13945826888084412, 0.400676429271698, 0.15813283622264862, 0.19415068626403809, 0.18472178280353546, 0.4262382686138153, 0.2075471729040146, 0.07932683825492859, -0.1944488137960434, 0.12260403484106064, 0.03051804192364216, -0.14489015936851501, 0.1050766259431839, 0.13600407540798187, 0.03710126131772995, 0.2895992398262024, 0.17678827047348022, 0.1284877210855484, 0.21665365993976593, 0.11741407215595245, -0.032768938690423965, -0.051972467452287674, -0.19332255423069, 0.4518738389015198, -0.14187811315059662, 0.16572603583335876, 0.0007300369907170534, 0.17268581688404083, -0.037901170551776886, 0.07738908380270004, -0.31189438700675964, -0.023790115490555763, -0.17367102205753326, -0.039076533168554306, -0.4359884262084961, 0.02119983732700348, -0.1416536569595337, -0.21987774968147278, -0.24427588284015656, -0.35793331265449524, 0.05143655836582184, -0.5044806003570557, -0.03491601720452309, 0.054613787680864334, -0.0038444623351097107, 0.3324376046657562, -0.40340879559516907, -0.024699119850993156, 0.2663722634315491, -0.17984925210475922, 0.017476093024015427, 0.30314016342163086, -0.048902977257966995, -0.09272303432226181, -0.16387885808944702, -0.009583585895597935, 0.19855159521102905, -0.424454927444458, -0.649310290813446, 0.1907724291086197, -0.33495116233825684, 0.1472034901380539, 0.19318370521068573, 0.2882734537124634, -0.08139385282993317, -0.12960068881511688, 0.008705498650670052, 0.3986356258392334, 0.16079013049602509, -0.1987576186656952, -0.13715147972106934, -0.29447782039642334, -0.18602311611175537, 0.14772482216358185, -0.05081057921051979, 0.15261903405189514, 0.03211653605103493, 0.5327258110046387, 0.23371055722236633, -0.006222025491297245, -0.040628526359796524, 0.6131656765937805, 0.6778344511985779, 0.14612744748592377, 0.12641911208629608, -0.15636882185935974, -0.5479947924613953, 0.3858723044395447, -0.38224920630455017, 0.0200357623398304, -0.16935959458351135, -0.0390050895512104, 0.12341443449258804, -0.022451257333159447, -0.0536847747862339, 0.16146701574325562, -0.018963899463415146, -0.11549245566129684, 0.06924854218959808, 0.09146642684936523, 0.10122251510620117, 0.40546733140945435, -0.11356513202190399, 0.09216584265232086, -0.13647183775901794, -0.036196332424879074, 0.11383256316184998, -0.2384929209947586, 0.020426524803042412, -0.03553914278745651, 0.09710889309644699, -0.28879719972610474, -0.22711455821990967, 0.42428553104400635, 0.29793763160705566, 0.1792183369398117, -0.07111973315477371, 0.35512393712997437, 0.08210873603820801, 0.5420106649398804, -0.25603625178337097, -0.14459536969661713, 0.0648714154958725, -0.14876289665699005, -0.11797648668289185, 0.04604240506887436, -0.16182461380958557, 0.16456259787082672, -0.24254176020622253, -0.03330487385392189, 0.18625929951667786, 0.1448427438735962, -0.09420989453792572, 0.10405478626489639, 0.3544764518737793, 0.033577386289834976, -0.1036471351981163, -0.16953729093074799, 0.43462538719177246, 0.09319943189620972, 0.297652006149292, 0.08298687636852264, 0.07813183963298798, 0.10711617022752762, -0.028970858082175255, -0.09150267392396927, 0.15393668413162231, 0.22555264830589294, 0.48548394441604614, 0.09722375869750977, 0.12012619525194168, -0.3374756872653961, 0.12074654549360275, -0.24586673080921173, 0.09512113779783249, -0.04838322103023529, -0.21002937853336334, 0.22089338302612305, 0.2606561481952667, -0.11777307093143463, 0.06483248621225357, -0.47310739755630493, 0.10898581147193909, 0.05791553854942322, 0.054538797587156296, -0.015061533078551292, -0.2951614260673523, 0.49481454491615295, 0.1755037158727646, 0.3769623935222626, -0.28352174162864685, -0.45264631509780884, 0.17980946600437164, 0.8311291337013245, 0.13274747133255005, 0.0647045448422432, -0.40110060572624207, 0.10007966309785843, 0.1955152004957199, -0.351392924785614, -0.2648267149925232, -0.23969469964504242, 0.0074705504812300205, -0.16770868003368378, 0.40723729133605957, 0.1740896999835968, 0.10440677404403687, 0.18269217014312744, -0.17408719658851624, -0.48158568143844604, -0.1713538020849228, 0.20422081649303436, -0.007862196303904057, 0.45399028062820435, 0.03299591690301895, 0.13180074095726013, -0.114173524081707, -0.019933244213461876, 0.19001944363117218, -0.32414454221725464, -0.03594990819692612, -0.07796089351177216, -0.039270319044589996, -0.15263426303863525, -0.28056347370147705, 0.21529719233512878, -0.12103530019521713, -0.35843101143836975, 0.2134416252374649, -0.28968241810798645, -0.25950637459754944, 0.03963150084018707, 0.07662370800971985, 0.2536052167415619, -0.1284700334072113, -0.10141731053590775, 0.021841030567884445, -0.45644107460975647, 0.2862498462200165, 0.04938307777047157, -0.5032615661621094, -0.06869396567344666, 0.29035115242004395, -0.49428871273994446, 0.13192662596702576, -0.4954323172569275, -0.3179020583629608, -0.24608908593654633, 0.1960783153772354, 0.03532207012176514, -0.08183795213699341, 0.4039616882801056, -0.2405235767364502, 0.051325585693120956, -0.3743172585964203, 0.2550770044326782, 0.1589967906475067, 0.16508030891418457, 0.09685312956571579, -0.025217579677700996, -0.1344376802444458, -0.011486495845019817, 0.6712636351585388, -0.16278478503227234, -0.11719401925802231, 0.17154836654663086, 0.299603134393692, 0.2783549427986145, -0.3603680431842804, -0.11018106341362, -0.09834529459476471, -0.09169910103082657, 0.0093130087479949, 0.021871689707040787, -0.010687391273677349, -0.10975433140993118, -0.13481022417545319, -0.1368599534034729, 0.061204783618450165, -0.35200631618499756, 0.005026679020375013, 0.2663825452327728, -0.10186996310949326, 0.2015020102262497, -0.10829024016857147, -0.058929841965436935, -0.1559254229068756, 0.24891071021556854, 0.4016430675983429, 0.4164830446243286, 0.08548059314489365, -0.02783752605319023, 0.08065919578075409, -0.11563465744256973, 0.22469709813594818, -0.0763704851269722, 0.3127219080924988, -0.032880283892154694, 0.038962770253419876, 0.010673824697732925, -0.3546395003795624, 0.4242366850376129, -0.057698920369148254, 0.12827147543430328, 0.14065426588058472, 0.056501928716897964, -0.28633442521095276, -0.16017656028270721, -0.2828536927700043, -0.04366358742117882, 0.3871501386165619, 0.23690517246723175, -0.1635144054889679, -0.23451568186283112, -0.496643990278244, 0.30925655364990234, -0.10805267840623856, -0.5445774793624878, -0.09654048085212708, 0.33039775490760803, -0.3534885346889496, 0.047793176025152206, -0.11987084895372391, 0.15625427663326263, -0.0131979463621974, 0.10647369176149368, -0.2379443645477295, -0.027385998517274857, -0.07541432231664658, -0.008091163821518421, 0.016386432573199272, -0.04397439584136009, 0.23498797416687012, 0.03853705897927284, -0.07264827191829681, 0.13336163759231567, 0.2118770033121109, 0.46852630376815796, 0.2167077660560608, 0.43194785714149475, -0.25594937801361084, -0.12887801229953766, 0.4705713391304016, -0.00907883606851101, -0.04295198991894722, -0.18045763671398163, 0.08175721764564514, 0.07643628865480423, 0.16182073950767517, 0.12219848483800888, 0.004696723539382219, 0.37685084342956543, 0.15020093321800232, 0.12014248222112656, 0.07933756709098816, -0.22634361684322357, 0.5570191740989685, 0.4297815263271332, 0.1192736029624939, 0.12481128424406052, -0.0013748484198004007, 1.0098525285720825, 0.1102246567606926, 0.08910892903804779, 0.12184504419565201, 0.03381483629345894, 0.2011280208826065, -0.6567304730415344, 0.07916831225156784, 0.016057558357715607, -0.28342148661613464, -0.06126057356595993, -0.22115857899188995, 0.3837394118309021, -0.22121214866638184, 0.10364528745412827, 0.22032245993614197, 0.10641474276781082, -0.18843203783035278, -0.18641477823257446, 0.32037174701690674, -0.43317487835884094, -0.46052980422973633, 0.04650445282459259, 0.08835750073194504, 0.2271871119737625, 0.28073227405548096, -0.06688228994607925, -0.10088823735713959, -0.18678925931453705, -0.1367335170507431, -0.24016739428043365, 0.060320593416690826, -0.057121504098176956, 0.23767374455928802, -0.6428998112678528, 0.050338227301836014, -0.13253304362297058, 0.13124974071979523, -0.07166425883769989, 0.2758535146713257, -0.340636283159256, 0.19569222629070282, 0.045539941638708115, -0.09716029465198517, 0.1098513975739479, -0.09869631379842758, 0.22728921473026276, -0.12778882682323456, -0.042879749089479446, -0.2679040729999542, -0.10202514380216599, -0.11755982786417007, 0.1526535153388977, -0.11309625208377838, 0.0399346649646759, 0.10983222723007202, -0.7515420913696289, 0.11858764290809631, -0.179928258061409, 0.007603546604514122, 0.007858498021960258, 0.22707940638065338, -0.2111297994852066, 0.08756519854068756, -0.44904574751853943, -0.14568205177783966, -0.0969456136226654, 0.6907761693000793, -0.1882462203502655, -0.4291854500770569, 0.38782089948654175, 0.18201883137226105, -0.02483287639915943, -0.1662539541721344, 0.27852514386177063, 0.14987972378730774, -0.5977124571800232, -0.11479988694190979, -0.08173120021820068, -0.19162815809249878, 0.07372219115495682, 0.1710997372865677, 0.17123989760875702, -0.23219433426856995, -0.02445736713707447, -0.4262324571609497, -0.1898559182882309, 0.03711463138461113, -0.37654250860214233, 0.10151762515306473, -0.1818578988313675, -0.4537017047405243, -0.18101389706134796, 0.05852067098021507, -0.14086878299713135, 0.21311722695827484, -0.1011475995182991, -0.06803975254297256, 0.28841087222099304, -0.018685616552829742, 0.24433116614818573, -0.194604754447937, -0.07444053888320923, 0.33256542682647705, -0.12906506657600403, 0.0094958720728755, -0.30026084184646606, 0.18817026913166046, 0.11928673833608627, 0.4957093894481659, 0.11549903452396393, -0.37759900093078613, -0.07080931216478348, -0.005467279348522425, 0.08905098587274551, 0.11564888060092926, 0.08077778667211533, -0.103988878428936, 0.30587247014045715, 0.6972975134849548, -0.0860891193151474, 0.19836750626564026, 0.24851344525814056, -0.054964665323495865, -0.13513034582138062, -0.10197048634290695, -0.042758628726005554, 0.12435976415872574, -0.5576974749565125, 0.049952831119298935, 0.06968199461698532, 0.32949844002723694, 0.34638479351997375, -0.08508475124835968, 0.026759261265397072, 0.26407772302627563, 0.43752312660217285, 0.3466060757637024, 0.15438270568847656, -0.14520016312599182, 0.34417325258255005, 0.07575421035289764, -0.10172778367996216, -0.20948731899261475, 0.43809443712234497, 0.030221832916140556, -0.010404669679701328, -0.0076376209035515785, 0.10414110869169235, -0.12411971390247345, 0.12759366631507874, 0.32025957107543945, 0.4867452085018158, -0.0664868876338005, -0.16942240297794342, 0.12801456451416016, 0.17506253719329834, 0.031467191874980927, 0.20022568106651306, 0.10042954236268997, 0.15053343772888184, 0.4474325180053711, -0.38022729754447937, 0.021806564182043076, 0.23996852338314056, 0.03900136798620224, 0.04018746316432953, -0.005754102487117052, -0.06911665201187134, 0.1953563243150711, 0.5384961366653442, 0.15215927362442017, -0.252394437789917, 0.0875379666686058, -0.3108753263950348, -0.22101424634456635, -0.15601317584514618, 0.296139121055603, -0.07562948763370514, -0.03827224299311638, 0.3463684022426605, -0.11140357702970505, 0.0399683453142643, -0.17544516921043396, 0.05258436128497124, 0.13628005981445312, 0.12105730175971985, 0.38641157746315, 0.3674776554107666, -0.39564040303230286, -0.3698980212211609, 0.09387819468975067, 0.28364297747612, -0.20835943520069122, -0.033796049654483795, 0.2968221604824066, 0.06126589700579643, 0.34070202708244324, 0.05792606249451637, 0.27081283926963806, 0.2780507802963257, -0.22217339277267456, 0.0769180878996849, -0.12486542761325836, -0.08187361806631088, -0.09509283304214478, 0.34828874468803406, 0.007895481772720814, -0.047895051538944244, 0.22525447607040405, 0.015999948605895042, -0.17373792827129364, 0.1647750735282898, 0.041888024657964706, 0.23471760749816895, -0.1700981706380844, 0.40576058626174927, 0.23026344180107117, 0.344379186630249, 0.13229428231716156, 0.10894430428743362, -0.27306872606277466, -0.06508889049291611, -0.0936831459403038, 0.08746065199375153, 0.029658859595656395, -0.03668780252337456, 0.03165489435195923, -0.27275338768959045, 0.22774240374565125, 0.20716620981693268, -0.08663665503263474, -0.25521355867385864, 0.3333529829978943, -0.6523104310035706, 0.15050221979618073, -0.1023133173584938, -0.43958547711372375, -0.22225186228752136, 0.31958991289138794, 0.28679439425468445, 0.2792303264141083, -0.03735511004924774, -0.1852325052022934, -0.13961414992809296, 0.246244415640831, -0.3246273398399353, 0.32262712717056274, 0.13807234168052673, -0.04233284667134285, -0.1567666232585907, -0.43859416246414185, -0.008029378019273281, -0.1300819218158722, -0.06917670369148254, 0.16334718465805054, -0.3762865364551544, 0.17741195857524872, 0.028207900002598763, 0.2553611397743225, 0.10020191967487335, 0.38179922103881836, 0.04960526525974274, -0.3303425908088684, -0.5639327168464661, -0.2779221832752228, -0.08364681154489517, -0.33467018604278564, -0.05482706055045128, 0.4474792182445526, -0.5062487125396729, -0.260389119386673, -0.35153162479400635, 0.27916499972343445, -0.28444164991378784, -0.11088661849498749, -0.36988547444343567, 0.1871892809867859, -0.2657651901245117, 0.40524375438690186, 0.12793123722076416, 0.3573998510837555, 0.16895602643489838, 0.3010959029197693, -0.4526660740375519, -0.09917407482862473, 0.43180394172668457, -0.47698184847831726, -0.26713883876800537, 0.10606938600540161, 0.2468598186969757, 0.23110872507095337, -0.1564670205116272, -0.21250785887241364, 0.26758503913879395, -0.05254726856946945, 0.13638676702976227, -0.0372588150203228, 0.025762906298041344, 0.17329254746437073, -0.025470297783613205, -0.2425495833158493, -0.01266698818653822, 0.0613078847527504, -0.09723763167858124, -0.18674254417419434, -0.12740421295166016 ]
https://github.com/huggingface/datasets/issues/328
Fork dataset
To be able to generate the Arrow dataset you need to either use our csv or json utilities `load_dataset("json", data_files=my_json_files)` OR write your own custom dataset script (you can find some inspiration from the [squad](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) script for example). Custom dataset scripts can be called locally with `nlp.load_dataset(path_to_my_script_directory)`. This should help you get what you call "Dataset1". Then using some dataset transforms like `.map` for example you can get to "DatasetNER" and "DatasetREL".
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL
72
Fork dataset We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL To be able to generate the Arrow dataset you need to either use our csv or json utilities `load_dataset("json", data_files=my_json_files)` OR write your own custom dataset script (you can find some inspiration from the [squad](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) script for example). Custom dataset scripts can be called locally with `nlp.load_dataset(path_to_my_script_directory)`. This should help you get what you call "Dataset1". Then using some dataset transforms like `.map` for example you can get to "DatasetNER" and "DatasetREL".
[ -0.24039071798324585, -0.1519300639629364, -0.004668203182518482, 0.1388019621372223, -0.1991831660270691, 0.16617439687252045, 0.08553439378738403, 0.32365837693214417, 0.19925692677497864, -0.14080928266048431, 0.05220142751932144, 0.6768645644187927, -0.4008249044418335, 0.16112591326236725, 0.2155929058790207, -0.22298982739448547, 0.13369698822498322, 0.0569891482591629, 0.1327408254146576, 0.11233852058649063, 0.03339285030961037, -0.1810867339372635, 0.1336498111486435, 0.056947726756334305, -0.026441775262355804, -0.22802938520908356, -0.12039995938539505, 0.11188597977161407, 0.026978200301527977, 0.0009554733987897635, 0.46160438656806946, 0.18852679431438446, -0.017125817015767097, 0.3208828270435333, -0.00011780604108935222, 0.1305479258298874, 0.05748985335230827, 0.09882111847400665, -0.21894103288650513, -0.20572960376739502, -0.12719698250293732, -0.17742536962032318, 0.17279213666915894, -0.1873130351305008, 0.0866849347949028, -0.37703555822372437, 0.1852131336927414, -0.23205077648162842, 0.769700825214386, 0.1443224847316742, 0.10437724739313126, 0.09226920455694199, -0.12460795044898987, 0.21892301738262177, -0.24513886868953705, 0.34137991070747375, 0.04977819696068764, 0.17360039055347443, -0.016957737505435944, -0.20677971839904785, -0.07550402730703354, 0.07740376144647598, -0.17925278842449188, 0.027216050773859024, 0.2267158478498459, -0.05758248642086983, -0.014406668022274971, -0.16061696410179138, 0.005511406343430281, 0.33723050355911255, -0.005829431116580963, -0.21548646688461304, -0.20797592401504517, -0.6004959344863892, 0.14351238310337067, -0.17135444283485413, -0.10862372815608978, 0.20953460037708282, -0.15963181853294373, 0.26162248849868774, 0.06794954091310501, -0.5672595500946045, -0.009192414581775665, 0.07204455882310867, 0.044870078563690186, 0.2262711524963379, 0.18489573895931244, 0.21273961663246155, 0.2443886399269104, 0.07956849038600922, 0.3197893798351288, -0.2550055980682373, -0.021198002621531487, 0.02341742441058159, -0.15532514452934265, -0.2513641119003296, -0.15703020989894867, -0.5725247859954834, 0.07860376685857773, 0.29761677980422974, 0.34205862879753113, 0.013449997641146183, -0.3720581531524658, 0.1997288316488266, 0.1516207754611969, -0.23577164113521576, -0.11627722531557083, 0.3510940968990326, -0.013914422132074833, -0.29850366711616516, 0.08863085508346558, 0.13627572357654572, -0.40681296586990356, -0.024696625769138336, -0.2755955755710602, -0.001734627760015428, 0.303938627243042, 0.2416287213563919, -0.12306638062000275, -0.42147955298423767, -0.23921801149845123, -0.14868584275245667, 0.17635095119476318, -0.007922263815999031, 0.014132365584373474, 0.587840735912323, -0.042343467473983765, 0.40424036979675293, -0.18547284603118896, -0.2160091996192932, 0.027376510202884674, -0.02082796022295952, -0.15182162821292877, 0.04270346835255623, 0.14868256449699402, 0.41835784912109375, 0.17752021551132202, -0.046354055404663086, -0.25370141863822937, -0.07993275672197342, 0.46836549043655396, 0.0026973276399075985, -0.031518977135419846, -0.0669807642698288, -0.04448073357343674, 0.033809419721364975, 0.05459574982523918, -0.017092574387788773, -0.26668858528137207, 0.14721420407295227, -0.1560303121805191, -0.1347336322069168, -0.09138761460781097, 0.06196688860654831, -0.0013744696043431759, -0.2966221272945404, -0.6265003085136414, 0.6202900409698486, 0.20189915597438812, -0.00991760939359665, 0.020891573280096054, -0.011355375871062279, -0.3717835247516632, -0.2209549993276596, 0.08670700341463089, 0.14002829790115356, -0.3647664487361908, -0.33026859164237976, -0.20517368614673615, -0.01377456821501255, -0.14660494029521942, 0.4300245940685272, -0.2711232006549835, 0.19720283150672913, 0.031571339815855026, -0.02302899770438671, 0.60908442735672, -0.21809671819210052, -0.036522507667541504, 0.1634848564863205, -0.18100973963737488, -0.1027967631816864, 0.11327441036701202, 0.1215595155954361, 0.06285445392131805, -0.17341426014900208, -0.052857156842947006, 0.7855046987533569, -0.32086509466171265, 0.02757827565073967, 0.17425832152366638, -0.2888341248035431, 0.223493754863739, 0.21959012746810913, -0.03265402838587761, 0.004539587534964085, -0.2716987431049347, -0.058468494564294815, 0.22198498249053955, -0.13465525209903717, 0.35247141122817993, -0.09110433608293533, -0.14856061339378357, -0.06933540105819702, -0.1277199238538742, -0.20417286455631256, -0.5392054319381714, -0.009558206424117088, 0.051753029227256775, -0.028886355459690094, 0.13723532855510712, -0.1356140822172165, 0.05289158597588539, -0.002124419901520014, 0.030005622655153275, 0.03231852129101753, -0.015996025875210762, 0.0022267657332122326, 0.0753963440656662, -0.3097688555717468, -0.3593776524066925, 0.051410213112831116, 0.03163124993443489, 0.17688016593456268, -0.3762134611606598, 0.5385997891426086, 0.28531813621520996, 0.04639667272567749, -0.09584513306617737, 0.2762731611728668, -0.18428745865821838, 0.019609762355685234, 0.17229685187339783, 0.08947783708572388, -0.20957070589065552, 0.3988029658794403, 0.3215474784374237, 0.2255488783121109, 0.26272690296173096, -0.46034935116767883, 0.3500993251800537, 0.031681545078754425, -0.06976259499788284, -0.13831888139247894, -0.2709314823150635, 0.3280028998851776, 0.10017488151788712, 0.4635065495967865, -0.036985669285058975, 0.24889636039733887, 0.13197489082813263, -0.13810819387435913, -0.2372635006904602, 0.11670301854610443, 0.01137993298470974, -0.0981423482298851, 0.2888334393501282, -0.08730242401361465, -0.44524314999580383, 0.3614428639411926, 0.31005990505218506, -0.0912930816411972, 0.013085083104670048, 0.061850324273109436, -0.2570585608482361, -0.01127593219280243, -0.10768484324216843, 0.5400254726409912, 0.08790349215269089, 0.2115100771188736, 0.28210848569869995, 0.0279930979013443, -0.28876250982284546, 0.0348275788128376, 0.22999776899814606, 0.13825947046279907, 0.5379909873008728, -0.009058525785803795, 0.1656319797039032, -0.208051398396492, 0.0035572464112192392, -0.25660282373428345, 0.3904092013835907, 0.042664531618356705, -0.04858176410198212, 0.4440467357635498, -0.3302442133426666, -0.40549996495246887, -0.6255348920822144, -0.1446959227323532, -0.0908588171005249, -0.2803325057029724, -0.09690963476896286, 0.20858322083950043, -0.07119777053594589, 0.2793184816837311, -0.05538206174969673, 0.23792512714862823, -0.2599777281284332, -0.037160474807024, 0.020812302827835083, -0.5158358216285706, -0.01223625149577856, 0.044067393988370895, 0.5248748660087585, 0.2014625370502472, 0.22861017286777496, 0.4384925365447998, -0.2095722258090973, -0.1107250526547432, -0.1922600418329239, 0.19644547998905182, -0.11477228999137878, -0.0068918983452022076, 0.10812567174434662, -0.13840553164482117, 0.1701040267944336, -0.2603877782821655, -0.12601345777511597, -0.08064919710159302, -0.1264219582080841, -0.15222898125648499, -0.12606081366539001, 0.27226778864860535, -0.06501089036464691, -0.19463443756103516, -0.37110304832458496, -0.26661571860313416, 0.3674728274345398, 0.019024910405278206, 0.22016333043575287, 0.34988516569137573, 0.12300651520490646, 0.08869144320487976, 0.08066771924495697, -0.08535706996917725, 0.1626698523759842, -0.028725365176796913, -0.057583145797252655, -0.27982673048973083, 0.17780418694019318, -0.2847958505153656, -0.3303146958351135, 0.356744647026062, 0.12052898108959198, -0.20288969576358795, 0.3326489329338074, -0.05915531888604164, -0.008151658810675144, -0.10782400518655777, -0.2849692106246948, 0.07366163283586502, 0.10927262157201767, 0.07392266392707825, -0.0420350655913353, 0.1928343027830124, 0.1713172048330307, 0.08167976140975952, 0.16577565670013428, 0.23899990320205688, 0.2205336093902588, 0.1532522737979889, 0.8823807239532471, 0.09618709236383438, -0.23324306309223175, -0.20948687195777893, 0.13413220643997192, -0.3067847788333893, 0.14127308130264282, -0.07057259231805801, -0.14168573915958405, -0.030790815129876137, 0.09287021309137344, 0.05045117810368538, 0.054467905312776566, -0.36374178528785706, 0.027915924787521362, 0.016433997079730034, -0.09760335087776184, -0.3104013502597809, 0.3444764018058777, -0.6596307158470154, 0.008933602832257748, -0.04637215659022331, -0.3165363371372223, -0.3431251347064972, -0.006695177871733904, -0.3269060254096985, -0.06865260750055313, 0.1676105558872223, -0.029269656166434288, -0.5071272850036621, 0.2579827308654785, -0.43157145380973816, 0.12026675790548325, -0.08340023458003998, 0.06036246940493584, 0.2149147391319275, -0.16059981286525726, -0.008081182837486267, -0.16774550080299377, 0.7057890295982361, -0.08200012147426605, 0.03583283722400665, -0.09291834384202957, 0.2638989984989166, -0.546285092830658, 0.15816368162631989, -0.14086568355560303, 0.4263218641281128, 0.1450165957212448, 0.10926498472690582, -0.34361135959625244, -0.3307373821735382, 0.1954762488603592, -0.09019646793603897, -0.23771612346172333, 0.09166989475488663, 0.12044315785169601, -0.07635252177715302, -0.26517829298973083, -0.08404698967933655, 0.12251142412424088, -0.13326627016067505, -0.1493370682001114, -0.08547025918960571, -0.23046989738941193, -0.07738377898931503, 0.13135439157485962, -0.03397466987371445, -0.13852772116661072, 0.05844961851835251, 0.23991143703460693, -0.026340516284108162, 0.13796043395996094, 0.18203264474868774, 0.47870615124702454, 0.06897656619548798, -0.4266802966594696, -0.059945248067379, 0.18057754635810852, 0.37760934233665466, -0.0757109522819519, 0.3494696021080017, 0.46289268136024475, 0.5009773373603821, -0.19134266674518585, -0.2140137106180191, 0.14751428365707397, -0.14113299548625946, 0.15735673904418945, -0.4000522792339325, -0.5321148037910461, 0.45677104592323303, 0.2663405239582062, 0.0034417128190398216, 0.3851102292537689, -0.2737954556941986, -0.3635839819908142, 0.3545493483543396, 0.18561269342899323, 0.7174005508422852, -0.18791139125823975, 0.24939528107643127, 0.23649044334888458, -0.4876542091369629, 0.8625796437263489, -0.4363304078578949, 0.006486696191132069, -0.11725302785634995, 0.09158048778772354, -0.08585997670888901, -0.1608455330133438, -0.1302584707736969, 0.6075687408447266, -0.07183462381362915, 0.17531591653823853, 0.22989432513713837, -0.37059468030929565, -0.0043974765576422215, 0.4035186469554901, -0.010801502503454685, -0.32102587819099426, -0.07477274537086487, -0.002570705022662878, -0.369975745677948, -0.2056073099374771, 0.08520352095365524, -0.2210644632577896, -0.1099652573466301, 0.053279150277376175, -0.1914246827363968, 0.10740289092063904, 0.05540520325303078, 0.09982044249773026, 0.12333191931247711, -0.4270576536655426, 0.24366529285907745, -0.050708599388599396, 0.193426251411438, -0.30958396196365356, -0.11503208428621292, 0.06106894835829735, -0.11718720197677612, 0.05247287079691887, -0.09215936809778214, -0.21865826845169067, 0.3866880536079407, 0.16069675981998444, -0.2823704779148102, -0.11514116078615189, 0.07938311994075775, -0.23703348636627197, 0.04058118909597397, -0.10364221036434174, 0.10193481296300888, 0.32121536135673523, -0.13119107484817505, 0.44805848598480225, -0.33009690046310425, -0.13162429630756378, 0.0037202651146799326, 0.09893445670604706, -0.10849586874246597, -0.15708567202091217, -0.043850112706422806, -0.051728881895542145, 0.11029636114835739, -0.04564417153596878, 0.18980081379413605, 0.03280499577522278, 0.45179006457328796, 0.43826285004615784, 0.18499653041362762, -0.18345370888710022, -0.1205480769276619, 0.31617817282676697, -0.5272347927093506, 0.034859199076890945, -0.28597745299339294, -0.19614435732364655, 0.18810829520225525, -0.11077462136745453, 0.02541053295135498, 0.323661744594574, -0.17666754126548767, -0.39875778555870056, -0.23471097648143768, 0.5112706422805786, -0.18786495923995972, 0.08738001435995102, -0.04451703652739525, 0.215591698884964, -0.006235114298760891, 0.3952156901359558, -0.1837541162967682, 0.20799799263477325, 0.13322702050209045, 0.33733856678009033, 0.042513132095336914, -0.052619632333517075, -0.0974913239479065, 0.07804691791534424, -0.053438927978277206, -0.06281283497810364, 0.0414900965988636, -0.11533062160015106, -0.21965140104293823, 0.1184234768152237, -0.027711590752005577, -0.1209552064538002, 0.08008331060409546, -0.2183682918548584, -0.06778005510568619, -0.0934065505862236, -0.11529335379600525, -0.2885549068450928, 0.019591283053159714, 0.22874662280082703, 0.07178150862455368, 0.08096474409103394, -0.2614698112010956, 0.1132049560546875, 0.11738384515047073, -0.02931513637304306, -0.11847012490034103, 0.45010101795196533, 0.2463175356388092, -0.14231865108013153, -0.5291053056716919, -0.03617549315094948, 0.29342296719551086, 0.017820684239268303, 0.04125127196311951, -0.06354597210884094, -0.09371362626552582, -0.0815751776099205, 0.23068483173847198, 0.4306108355522156, 0.03998429328203201, 0.2269214540719986, 0.27288341522216797, 0.12349981814622879, -0.07615718990564346, 0.13164964318275452, 0.44310957193374634, -0.25412121415138245, 0.1279868334531784, 0.3206237256526947, -0.13189299404621124, 0.13094301521778107, -0.28743016719818115, 0.034313514828681946, -0.06421050429344177, -0.2025071680545807, 0.4111098051071167, 0.2690480351448059, -0.17028391361236572, -0.11839377880096436, 0.1516789048910141, -0.06857973337173462, 0.3975028395652771, 0.1099754273891449, 0.21156346797943115, 0.4511913061141968, 0.292595773935318, -0.06654149293899536, 0.5318661332130432, -0.14506225287914276, -0.3541167676448822, -0.13241153955459595, 0.12640076875686646, 0.2644670009613037, 0.22521130740642548, 0.6926088929176331, 0.2272464632987976, -0.2828004062175751, 0.055671654641628265, 0.49299517273902893, 0.06447358429431915, -0.3106924295425415, -0.6167660355567932, 0.14542816579341888, -0.11039487272500992, -0.03573847934603691, 0.014125988818705082, -0.29546746611595154, 0.2550460696220398, 0.14598622918128967, 0.18083898723125458, -0.36222830414772034, 0.263367235660553, 0.19278043508529663, 0.04509344696998596, -0.05467740073800087, 0.17775796353816986, 0.17172977328300476, -0.17022183537483215, 0.020948490127921104, 0.08106334507465363, 0.0977049395442009, -0.06761358678340912, -0.45253753662109375, 0.09628396481275558, 0.1943967044353485, -0.06939774751663208, -0.13718625903129578, 0.12220098823308945, 0.2356625497341156, 0.00848280917853117, 0.25976917147636414, 0.01951408013701439, -0.10696105659008026, -0.07922478765249252, 0.39648866653442383, -0.03990476578474045, -0.3999808430671692, 0.44682708382606506, 0.2478080689907074, -0.22031104564666748, 0.20622199773788452, 0.22957587242126465, -0.3740425705909729, -0.12389348447322845, 0.3689209222793579, -0.23908478021621704, -0.05055566504597664, 0.09568124264478683, 0.021932603791356087, -0.06271445006132126, 0.4967685043811798, 0.14088056981563568, 0.4004291296005249, 0.038427192717790604, 0.05476535111665726, -0.3039272129535675, -0.1496279388666153, -0.19999772310256958, -0.038061704486608505, -0.314191073179245, 0.18370693922042847, 0.259215772151947, 0.37473899126052856, -0.13631942868232727, 0.02068934589624405, 0.28759706020355225, 0.3725076913833618, -0.08668103069067001, -0.26358410716056824, 0.041782911866903305, 0.3251543641090393, 0.21496236324310303, -0.3820340633392334, -0.10864143073558807, 0.4458047151565552, -0.20358896255493164, 0.05337468162178993, -0.0341525599360466, 0.3256238102912903, -0.15649017691612244, 0.085908442735672, 0.006181201431900263, 0.39608126878738403, -0.0536641925573349, -0.3540629744529724, -0.34463566541671753, -0.1459411233663559, -0.5333603024482727, 0.2980465590953827, -0.07451201230287552, 0.5710760354995728, -0.5824336409568787, 0.1992214471101761, -0.054802875965833664, -0.5520591735839844, -0.033246975392103195, -0.016501620411872864, -0.43664249777793884, 0.24782796204090118, -0.2463933527469635, 0.1747565120458603, 0.0671193078160286, 0.4830774962902069, 0.03265606239438057, 0.07312457263469696, -0.10836318135261536, 0.019306538626551628, 0.2219751626253128, -0.1630263477563858, -0.03378710150718689, 0.07016300410032272, -0.056348659098148346, 0.15577034652233124, 0.10687492042779922, -0.5881651639938354, -0.045723505318164825, 0.2437046319246292, -0.2993694245815277, -0.037127722054719925, 0.16957561671733856, 0.220314159989357, -0.06776800006628036, -0.1151806190609932, 0.36018452048301697, 0.046781934797763824, -0.30411821603775024, 0.022400349378585815, -0.36395639181137085 ]
https://github.com/huggingface/datasets/issues/328
Fork dataset
Thanks for the helpful advice, @lhoestq -- I wasn't quite able to get the json recipe working - ``` ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.py in __init__(self, source) 60 61 def __init__(self, source): ---> 62 self._open(source) 63 64 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open() ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Tried reading schema message, was null or length 0 ``` But I'm going to give the generator_dataset_builder a try. 1 more quick question -- can .map be used to output different length mappings -- could I skip one, or yield 2, can you map_batch
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL
87
Fork dataset We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL Thanks for the helpful advice, @lhoestq -- I wasn't quite able to get the json recipe working - ``` ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.py in __init__(self, source) 60 61 def __init__(self, source): ---> 62 self._open(source) 63 64 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open() ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Tried reading schema message, was null or length 0 ``` But I'm going to give the generator_dataset_builder a try. 1 more quick question -- can .map be used to output different length mappings -- could I skip one, or yield 2, can you map_batch
[ -0.27099859714508057, -0.17086778581142426, -0.014252638444304466, 0.2424221932888031, -0.09015269577503204, 0.03737699240446091, 0.07228012382984161, 0.3559105694293976, 0.021982120350003242, -0.1569151133298874, 0.05683104321360588, 0.6875871419906616, -0.31585803627967834, 0.023822925984859467, 0.13848087191581726, -0.17748317122459412, 0.16973835229873657, 0.017578842118382454, 0.19544710218906403, 0.1319141983985901, 0.05678148940205574, -0.10721423476934433, 0.07913175225257874, 0.1026272177696228, -0.10719512403011322, -0.25193673372268677, -0.09878315776586533, 0.09026989340782166, -0.07637158036231995, -0.14168095588684082, 0.3796570301055908, 0.13863399624824524, -0.055186185985803604, 0.3206908702850342, -0.0001226709282491356, 0.20561356842517853, 0.1715608835220337, 0.1351352035999298, -0.20044787228107452, -0.14489315450191498, -0.12807828187942505, -0.12949791550636292, 0.18828661739826202, -0.18895892798900604, 0.15506048500537872, -0.39814940094947815, 0.04958786815404892, -0.11025533825159073, 0.7451301217079163, 0.24324654042720795, 0.07882365584373474, 0.09918941557407379, -0.0036846285220235586, 0.2266286015510559, -0.1186305582523346, 0.34550774097442627, 0.08206290006637573, 0.24437208473682404, 0.0720900297164917, -0.21556897461414337, -0.14979352056980133, 0.14664341509342194, -0.1729089915752411, 0.024866793304681778, 0.2092563658952713, -0.07602294534444809, 0.17841750383377075, -0.06957587599754333, 0.08317749202251434, 0.3103857934474945, 0.002200991613790393, -0.21511201560497284, -0.20666009187698364, -0.5397023558616638, 0.12705402076244354, -0.2709566354751587, -0.07060423493385315, 0.23714978992938995, -0.22526815533638, 0.24548517167568207, -0.058989908546209335, -0.4718377888202667, -0.09159111231565475, 0.028221454471349716, -0.022225847467780113, 0.2925260663032532, 0.20989499986171722, 0.3022350072860718, 0.1680293083190918, 0.033727847039699554, 0.3152102530002594, -0.2900068461894989, -0.061979517340660095, 0.0518532432615757, -0.16520671546459198, -0.2472958266735077, -0.0889393612742424, -0.5191531181335449, 0.07150186598300934, 0.20563139021396637, 0.3251092731952667, -0.07325978577136993, -0.2554777264595032, 0.15409952402114868, 0.15188932418823242, -0.2257801592350006, -0.12766233086585999, 0.3733845353126526, -0.060976479202508926, -0.2684911787509918, 0.0765155628323555, 0.12598291039466858, -0.2788676619529724, -0.11889544874429703, -0.16056841611862183, 0.06777175515890121, 0.28378576040267944, 0.23337247967720032, -0.13465987145900726, -0.39331284165382385, -0.3864342272281647, -0.2138635367155075, 0.18762513995170593, 0.030807361006736755, 0.029145658016204834, 0.5331347584724426, -0.06710711866617203, 0.41221389174461365, -0.25913575291633606, -0.2082473486661911, 0.015252744778990746, -0.05915284529328346, -0.24806170165538788, -0.002716074464842677, 0.10999591648578644, 0.47861286997795105, 0.1313551366329193, -0.0131072998046875, -0.2265702784061432, -0.03900531679391861, 0.35894539952278137, -0.11732544004917145, 0.09504392743110657, -0.02545171044766903, -0.17836102843284607, 0.018539948388934135, 0.010076061822474003, -0.07094240188598633, -0.3327420949935913, 0.2551271319389343, -0.1009528860449791, -0.1926945000886917, 0.0021881433203816414, 0.02281811274588108, -0.04133348912000656, -0.1952391266822815, -0.43999066948890686, 0.6162848472595215, 0.3059455454349518, -0.01882930099964142, 0.052809037268161774, -0.10760460048913956, -0.29033759236335754, -0.2586708068847656, 0.12469363212585449, 0.11321129649877548, -0.42033207416534424, -0.29701653122901917, -0.010706458240747452, -0.025395724922418594, -0.11122561991214752, 0.4214460253715515, -0.21579590439796448, 0.15981198847293854, 0.08715783804655075, 0.07532725483179092, 0.6000879406929016, -0.24979843199253082, -0.06327687203884125, 0.20261311531066895, -0.11684907972812653, -0.15626387298107147, 0.1286628693342209, 0.03319444879889488, 0.020618854090571404, -0.09457043558359146, 0.02093379572033882, 0.6081799864768982, -0.3583090305328369, 0.041019584983587265, 0.009521229192614555, -0.31306329369544983, 0.22512435913085938, 0.23735976219177246, 0.027831755578517914, -0.19054552912712097, -0.32084259390830994, -0.19565120339393616, 0.27016735076904297, -0.09933867305517197, 0.3689212501049042, -0.05957522988319397, -0.08423783630132675, -0.13949580490589142, -0.028710797429084778, -0.1532612293958664, -0.5317844748497009, 0.0004240020352881402, -0.01535184308886528, 0.09285865724086761, -0.04429204761981964, -0.1126265749335289, 0.06998157501220703, 0.09001725167036057, -0.04368632286787033, -0.052615899592638016, -0.013746481388807297, -0.07414406538009644, 0.1348850280046463, -0.2574128806591034, -0.33425307273864746, -0.11035699397325516, 0.008604700677096844, 0.20379653573036194, -0.3359620273113251, 0.5445898771286011, 0.2347189337015152, -0.009528491646051407, -0.16549308598041534, 0.25172072649002075, -0.0922926738858223, 0.09610719978809357, 0.12149260193109512, 0.11244277656078339, -0.17081409692764282, 0.36811700463294983, 0.151693195104599, 0.18060092628002167, 0.30690157413482666, -0.49864497780799866, 0.41707858443260193, 0.005106634926050901, -0.12478247284889221, -0.14630192518234253, -0.2852306663990021, 0.2827925980091095, 0.08964168280363083, 0.5726416110992432, 0.0074498942121863365, 0.1161552369594574, 0.010554707609117031, -0.14239826798439026, -0.2524619996547699, 0.15374423563480377, -0.016834327951073647, -0.006834646221250296, 0.33081287145614624, -0.04983970522880554, -0.4534570276737213, 0.3651561737060547, 0.31896883249282837, -0.07903901487588882, -0.15595285594463348, 0.0444512665271759, -0.26883119344711304, -0.01872607320547104, 0.03278489410877228, 0.43599066138267517, 0.12960003316402435, 0.26468586921691895, 0.3439449667930603, -0.023429911583662033, -0.2978408932685852, -0.05219467356801033, 0.2612978219985962, 0.1168893501162529, 0.5971411466598511, 0.05592367425560951, 0.27539965510368347, -0.27053382992744446, -0.06981068849563599, -0.27165600657463074, 0.44241514801979065, 0.05939621478319168, -0.12376279383897781, 0.4225006401538849, -0.2999269366264343, -0.4046643078327179, -0.6216879487037659, -0.2262643575668335, -0.181167870759964, -0.33334463834762573, 0.01001129299402237, 0.12889887392520905, -0.16457422077655792, 0.3371839225292206, 0.031246749684214592, 0.05545828491449356, -0.19155387580394745, 0.0031763825099915266, -0.07363378256559372, -0.48766520619392395, -0.05501728132367134, 0.02247917465865612, 0.5342301726341248, 0.12499785423278809, 0.22168070077896118, 0.551918625831604, -0.3891844153404236, -0.037763211876153946, -0.32247263193130493, 0.2598617970943451, -0.1278275102376938, -0.02513795532286167, 0.11540503054857254, -0.14120863378047943, 0.25141698122024536, -0.21008571982383728, 0.04572383314371109, -0.04512244835495949, -0.13299553096294403, -0.1487722396850586, -0.18535783886909485, 0.2294771373271942, -0.077232725918293, -0.15768416225910187, -0.3379788398742676, -0.2774730324745178, 0.4277973771095276, 0.027062933892011642, 0.15800702571868896, 0.33515483140945435, 0.17681440711021423, 0.04985003545880318, 0.04378001019358635, -0.06616023927927017, 0.13130523264408112, 0.04987138509750366, -0.027570072561502457, -0.19406823813915253, 0.2004646509885788, -0.30579909682273865, -0.3318730294704437, 0.45479828119277954, 0.215854212641716, -0.20862257480621338, 0.34650132060050964, -0.03359263390302658, 0.12181037664413452, -0.08458440750837326, -0.2690052390098572, 0.10256051272153854, 0.19281211495399475, 0.08996451646089554, -0.01794249378144741, 0.26161450147628784, 0.17403776943683624, 0.024775175377726555, 0.15207575261592865, 0.22428886592388153, 0.20251503586769104, 0.13558219373226166, 0.9615139961242676, 0.09174197912216187, -0.16901043057441711, -0.25943607091903687, 0.010125426575541496, -0.37111079692840576, 0.1074109673500061, 0.045948710292577744, -0.14505362510681152, -0.06568389385938644, -0.002103102393448353, -0.0002098184486385435, 0.0568525567650795, -0.4240124523639679, 0.09561692923307419, 0.06871181726455688, -0.10753393918275833, -0.3062424063682556, 0.3730202615261078, -0.591206967830658, 0.11803213506937027, -0.05064546316862106, -0.2795497477054596, -0.3265388011932373, 0.04454265162348747, -0.269633412361145, -0.1826968789100647, 0.15307088196277618, -0.12654361128807068, -0.45124199986457825, 0.0924331322312355, -0.5370239615440369, 0.12336384505033493, -0.007119633723050356, -0.09680192917585373, 0.2267799973487854, -0.28250977396965027, 0.006412047892808914, -0.25309640169143677, 0.7298451662063599, -0.0977630689740181, 0.05277450755238533, 0.0396030955016613, 0.22989116609096527, -0.5488429069519043, 0.10136250406503677, -0.13782986998558044, 0.3780575692653656, 0.2070150375366211, 0.195491224527359, -0.43214720487594604, -0.35915976762771606, 0.285916805267334, -0.15345866978168488, -0.204599067568779, 0.0034120299387723207, 0.1774912178516388, -0.07382529973983765, -0.2873142659664154, -0.002965902676805854, 0.1983373761177063, -0.011111108586192131, -0.15937070548534393, -0.054331548511981964, -0.1382429301738739, -0.013404175639152527, 0.028666289523243904, 0.007177731022238731, -0.04368750378489494, -0.10880646109580994, 0.20845744013786316, -0.09661628305912018, 0.08457020670175552, 0.2789638936519623, 0.5220506191253662, 0.055430274456739426, -0.3628237247467041, -0.09051916003227234, 0.1511206179857254, 0.36555954813957214, 0.1464158147573471, 0.32584941387176514, 0.44950494170188904, 0.3898545205593109, -0.024151179939508438, -0.14995193481445312, 0.01849866844713688, -0.11629611253738403, 0.15190604329109192, -0.34291872382164, -0.3364124298095703, 0.527854323387146, 0.24421358108520508, -0.03160291537642479, 0.4288003742694855, -0.275722473859787, -0.39674413204193115, 0.289490669965744, 0.28244030475616455, 0.8820129036903381, -0.04124338552355766, 0.24516698718070984, 0.42885875701904297, -0.4744340777397156, 0.6899807453155518, -0.5011774897575378, -0.008126488886773586, -0.22503620386123657, 0.17682109773159027, -0.010969906114041805, -0.17665375769138336, -0.145034059882164, 0.6129150986671448, -0.0589902326464653, 0.06636703759431839, 0.3291279673576355, -0.3208193778991699, 0.005624685902148485, 0.3306923508644104, -0.05755205824971199, -0.19697606563568115, -0.11064746975898743, -0.05463854596018791, -0.2695825397968292, -0.2840955853462219, 0.08868204057216644, -0.30980244278907776, -0.18382243812084198, -0.08336745947599411, -0.12959299981594086, 0.08425375819206238, -0.06850684434175491, 0.07889150083065033, 0.2631235420703888, -0.4813997745513916, 0.23697535693645477, -0.09801898896694183, 0.05421293526887894, -0.42730239033699036, -0.11756231635808945, 0.1090068519115448, -0.026474911719560623, 0.039603978395462036, -0.10838403552770615, -0.20439375936985016, 0.3602641522884369, 0.08531927317380905, -0.23215505480766296, -0.12134191393852234, -0.04681038856506348, -0.06234997510910034, 0.001721862587146461, -0.19637276232242584, 0.15193910896778107, 0.24484649300575256, -0.019987309351563454, 0.4476196765899658, -0.3700377345085144, -0.08606729656457901, -0.013353592716157436, 0.0342978797852993, -0.1728723794221878, -0.09017878025770187, -0.0315408855676651, -0.04736620560288429, 0.08880588412284851, -0.0653013065457344, 0.3045388162136078, 0.08879906684160233, 0.47431710362434387, 0.48238492012023926, 0.12817677855491638, -0.16759105026721954, -0.16157984733581543, 0.364277720451355, -0.6409146189689636, 0.08680003881454468, -0.2537638247013092, -0.15237212181091309, 0.17377552390098572, -0.04621206596493721, 0.06729723513126373, 0.43548092246055603, -0.19067081809043884, -0.2262096256017685, -0.2581787705421448, 0.5244812965393066, -0.14529171586036682, 0.12048797309398651, -0.19183479249477386, 0.32524797320365906, 0.0749833881855011, 0.4396366477012634, -0.18202412128448486, 0.2253141552209854, 0.09793312847614288, 0.3882690370082855, -0.07239647954702377, -0.10905792564153671, -0.11320682615041733, 0.0705181211233139, -0.07248078286647797, -0.06433191150426865, 0.012335351668298244, -0.08944639563560486, -0.14917528629302979, 0.1177709624171257, 0.06036221235990524, -0.10188492387533188, 0.10243960469961166, -0.1873316466808319, -0.009459812194108963, -0.03697124496102333, -0.07627128064632416, -0.3490605652332306, -0.07332442700862885, 0.159544438123703, 0.15170131623744965, 0.10690174996852875, -0.3149278461933136, 0.1749269962310791, 0.12013138830661774, 0.07135709375143051, -0.08526546508073807, 0.42628026008605957, 0.23029954731464386, -0.11620230227708817, -0.49748507142066956, -0.02586860954761505, 0.11375661939382553, -0.062367651611566544, 0.12278334051370621, -0.10257820785045624, -0.13419273495674133, -0.2581692039966583, 0.28847673535346985, 0.4120498299598694, 0.01716788485646248, 0.1973017156124115, 0.10099722445011139, 0.11810395121574402, -0.1254904717206955, 0.1502048522233963, 0.3381061255931854, -0.3637133538722992, 0.12361413985490799, 0.24367256462574005, -0.16668690741062164, 0.13960225880146027, -0.23556464910507202, 0.16794170439243317, -0.006439870223402977, -0.267812043428421, 0.30554935336112976, 0.3528030514717102, -0.1886681765317917, -0.029350457713007927, 0.28285980224609375, -0.07305242866277695, 0.39027804136276245, 0.013309597037732601, 0.19553764164447784, 0.4305589199066162, 0.22978396713733673, -0.06831083446741104, 0.441704660654068, -0.05611832067370415, -0.41873636841773987, -0.08462470024824142, 0.12006588280200958, 0.12043103575706482, 0.29488953948020935, 0.7293605208396912, 0.3205156624317169, -0.3478201627731323, 0.1853824108839035, 0.5375414490699768, -0.010657694190740585, -0.20629854500293732, -0.7132193446159363, 0.06884855031967163, -0.16763103008270264, -0.026027245447039604, -0.11495068669319153, -0.22418752312660217, 0.39932557940483093, 0.18027685582637787, 0.20193611085414886, -0.4201066792011261, 0.286258339881897, 0.13323459029197693, 0.10236507654190063, -0.1227317601442337, 0.23453062772750854, 0.2515225112438202, -0.19357389211654663, 0.005280381999909878, 0.11138686537742615, 0.23732879757881165, 0.008605321869254112, -0.4945703446865082, 0.007429281249642372, 0.20811736583709717, -0.1191311851143837, -0.133026123046875, 0.14338326454162598, 0.3661990165710449, 0.0611298605799675, 0.30616962909698486, -0.02009056694805622, -0.09076521545648575, -0.003954147920012474, 0.3932208716869354, -0.03777378797531128, -0.2537734806537628, 0.5006625056266785, 0.18976923823356628, -0.34103113412857056, 0.25250428915023804, 0.17083406448364258, -0.4054369628429413, -0.020897993817925453, 0.3292309045791626, -0.229885533452034, -0.005202336236834526, 0.05296881124377251, 0.011604545637965202, -0.05109836161136627, 0.5025137662887573, 0.21025027334690094, 0.43536266684532166, -0.12510833144187927, -0.03554210066795349, -0.33554303646087646, -0.16869477927684784, -0.32053208351135254, 0.013057054951786995, -0.24370434880256653, 0.2071514129638672, 0.29025745391845703, 0.3711935877799988, -0.0773664116859436, 0.08346860110759735, 0.2264585793018341, 0.4366151690483093, -0.1140759289264679, -0.22376081347465515, 0.11842454969882965, 0.2578312158584595, 0.13756774365901947, -0.31392669677734375, -0.011569449678063393, 0.35046666860580444, -0.21530191600322723, 0.03894547373056412, -0.008032601326704025, 0.44280219078063965, -0.02566125988960266, 0.03722701966762543, 0.04455035552382469, 0.4479856491088867, -0.011255341582000256, -0.2736082375049591, -0.1870446801185608, -0.15634679794311523, -0.5374305248260498, 0.3463810384273529, -0.06372182816267014, 0.6216838359832764, -0.5220503211021423, 0.10282321274280548, -0.02788502350449562, -0.5713891386985779, -0.1363963633775711, 0.04375389590859413, -0.34694722294807434, 0.16736719012260437, -0.14850740134716034, 0.22701197862625122, -0.007664661388844252, 0.40740200877189636, 0.10738713294267654, 0.054613083600997925, -0.27667731046676636, -0.06320943683385849, 0.2735041677951813, -0.1833561360836029, -0.03375944867730141, 0.056339189410209656, -0.1401648372411728, 0.17631347477436066, 0.1132693961262703, -0.6911987066268921, -0.0561758317053318, 0.27116578817367554, -0.3308921754360199, -0.09300169348716736, 0.1532914936542511, 0.30746617913246155, -0.09015839546918869, -0.15917032957077026, 0.2922629117965698, 0.08038310706615448, -0.3020388185977936, -0.1117163598537445, -0.4423951506614685 ]
https://github.com/huggingface/datasets/issues/328
Fork dataset
Thanks this answers my question. I think the issue I was having using the json loader were due to using gzipped jsonl files. The error I get now is : ``` Using custom data configuration test --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-29082a31e5b2> in <module> 5 print(ner_datafiles) 6 ----> 7 ds = nlp.load_dataset("json", "test", data_files=ner_datafiles[0]) 8 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: int64> nor list<item: int64>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions. ``` If I just create a pa- table manually like is done in the jsonloader -- it seems to work fine. Ths JSON I'm trying to load isn't overly complex - 1 integer field, the rest text fields with a nested list of objects with text fields .
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL
324
Fork dataset We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL Thanks this answers my question. I think the issue I was having using the json loader were due to using gzipped jsonl files. The error I get now is : ``` Using custom data configuration test --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-29082a31e5b2> in <module> 5 print(ner_datafiles) 6 ----> 7 ds = nlp.load_dataset("json", "test", data_files=ner_datafiles[0]) 8 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 736 schema_dict[field.name] = Value(str(field.type)) 737 --> 738 parse_schema(writer.schema, features) 739 self.info.features = Features(features) 740 ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict) 734 parse_schema(field.type.value_type, schema_dict[field.name]) 735 else: --> 736 schema_dict[field.name] = Value(str(field.type)) 737 738 parse_schema(writer.schema, features) <string> in __init__(self, dtype, id, _type) ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self) 55 56 def __post_init__(self): ---> 57 self.pa_type = string_to_arrow(self.dtype) 58 59 def __call__(self): ~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str) 32 if str(type_str + "_") not in pa.__dict__: 33 raise ValueError( ---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. " 35 f"Please make sure to use a correct data type, see: " 36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions" ValueError: Neither list<item: int64> nor list<item: int64>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions. ``` If I just create a pa- table manually like is done in the jsonloader -- it seems to work fine. Ths JSON I'm trying to load isn't overly complex - 1 integer field, the rest text fields with a nested list of objects with text fields .
[ -0.2616373300552368, -0.2061421126127243, 0.037501804530620575, 0.3549163043498993, -0.1682421863079071, 0.11745964735746384, 0.14335112273693085, 0.4742082357406616, 0.3013392686843872, -0.025156395509839058, -0.04132870212197304, 0.7794694900512695, -0.438064843416214, -0.0006887764320708811, -0.03434526547789574, -0.13290312886238098, 0.0780569314956665, 0.03215597942471504, 0.1479649692773819, 0.17020651698112488, -0.07667723298072815, 0.08151926845312119, 0.14057515561580658, 0.07013872265815735, -0.03358427807688713, -0.23559218645095825, -0.00528333056718111, 0.3222764730453491, -0.02230108343064785, -0.0998789444565773, 0.3949328064918518, 0.025425691157579422, 0.012166112661361694, 0.37014877796173096, -0.00012123669148422778, 0.24145133793354034, 0.1444251537322998, 0.04343179613351822, -0.29832592606544495, -0.1597709059715271, -0.11918434500694275, -0.208208829164505, 0.2016606330871582, -0.1714554727077484, 0.09304353594779968, -0.32218459248542786, 0.0103633813560009, -0.217585489153862, 0.8227089643478394, 0.19595950841903687, 0.0853804498910904, 0.09411899000406265, -0.03752560913562775, 0.18648183345794678, -0.1528875231742859, 0.24869902431964874, 0.07064492255449295, 0.41978511214256287, -0.07191933691501617, -0.15848299860954285, -0.13503485918045044, 0.15280359983444214, -0.21148955821990967, 0.15323562920093536, 0.11553352326154709, -0.06623289734125137, 0.10612968355417252, -0.012974155135452747, -0.04251750558614731, 0.23762565851211548, -0.01373325940221548, -0.11544426530599594, -0.21802069246768951, -0.5963200926780701, 0.06877347826957703, -0.315363347530365, 0.14511488378047943, 0.18908461928367615, -0.2590254545211792, 0.2256518453359604, 0.12360340356826782, -0.5307226181030273, -0.055747903883457184, 0.12678851187229156, -0.009840389713644981, 0.37662091851234436, 0.10915850102901459, 0.2603291869163513, 0.2779290974140167, 0.05674180015921593, 0.19784490764141083, -0.185957670211792, -0.13300946354866028, -0.0677110031247139, -0.1957910656929016, -0.27237266302108765, -0.19360120594501495, -0.7956873774528503, -0.030102521181106567, 0.2747691571712494, 0.41055959463119507, -0.06493457406759262, -0.2221655249595642, 0.2716943919658661, 0.2230008989572525, -0.1622837483882904, -0.1264723390340805, 0.32511281967163086, 0.07979260385036469, -0.17404679954051971, 0.11103282123804092, 0.14239943027496338, -0.33294469118118286, -0.13938294351100922, -0.2668745815753937, 0.035817842930555344, 0.38384127616882324, 0.1243896335363388, -0.17216303944587708, -0.32822108268737793, -0.4179408848285675, -0.16956189274787903, 0.12433093786239624, 0.043709896504879, 0.026569465175271034, 0.499203622341156, 0.028413034975528717, 0.3907039165496826, -0.18861515820026398, -0.2341744750738144, 0.06495165824890137, -0.01557969767600298, -0.11549129337072372, 0.02587030827999115, 0.2306986302137375, 0.39368167519569397, 0.2521831691265106, 0.024346692487597466, -0.24408817291259766, -0.08430936187505722, 0.3822436034679413, -0.021582379937171936, -0.08706149458885193, 0.08852962404489517, -0.029004771262407303, 0.056234728544950485, 0.14783646166324615, -0.169577494263649, -0.3286605477333069, 0.2814549207687378, -0.29432687163352966, -0.19615061581134796, -0.02135162241756916, 0.032728299498558044, -0.03747144713997841, -0.2179763913154602, -0.5268865823745728, 0.3935546278953552, 0.34715068340301514, -0.10269498080015182, -0.018955737352371216, -0.16315516829490662, -0.34217530488967896, -0.26641637086868286, -0.05608474835753441, 0.14453721046447754, -0.47783419489860535, -0.32502537965774536, -0.20919962227344513, 0.003978448919951916, 0.023376695811748505, 0.5663743615150452, -0.2850205898284912, 0.23820099234580994, -0.007004593964666128, 0.06573457270860672, 0.5314778089523315, -0.22013826668262482, -0.10846138745546341, 0.3468538224697113, -0.14925041794776917, 0.051851704716682434, 0.14399637281894684, 0.03958924487233162, 0.0526142492890358, -0.13082857429981232, 0.19372040033340454, 0.6393976807594299, -0.2344771921634674, -0.03235694393515587, -0.04428304731845856, -0.24771970510482788, 0.4179076850414276, 0.2243722677230835, -0.09492699801921844, 0.019959894940257072, -0.33404335379600525, -0.09496153146028519, 0.12536132335662842, -0.1228606328368187, 0.26651567220687866, 0.009040710516273975, 0.016794424504041672, -0.08218259364366531, -0.05573583021759987, -0.0020889113657176495, -0.5716652870178223, 0.025882994756102562, -0.15636011958122253, 0.04837596416473389, 0.036704957485198975, 0.08400581777095795, 0.024652179330587387, 0.02426074631512165, -0.10755475610494614, -0.18728891015052795, -0.03097393363714218, 0.13214212656021118, 0.03644248843193054, -0.3403067886829376, -0.3291960656642914, 0.21187904477119446, -0.03249410539865494, 0.24256819486618042, -0.4329967200756073, 0.5431374907493591, 0.20839503407478333, -0.1171972006559372, -0.08735103160142899, 0.04894415661692619, -0.0986337661743164, -0.0070062195882201195, 0.001948600634932518, 0.19421473145484924, -0.07572145760059357, 0.24421799182891846, 0.16991327702999115, 0.06547443568706512, 0.15953922271728516, -0.338348925113678, 0.3486044704914093, 0.2228185534477234, -0.06730177998542786, -0.1175188198685646, -0.2634739279747009, 0.45348453521728516, 0.042406775057315826, 0.4329807162284851, -0.11042053997516632, 0.1415628343820572, 0.2285185307264328, -0.11953543871641159, -0.2843777537345886, 0.07551765441894531, 0.03811067342758179, -0.19899289309978485, 0.260260671377182, -0.07587092369794846, -0.5680081844329834, 0.14073430001735687, 0.2386331558227539, -0.01990613527595997, -0.057345155626535416, 0.17850904166698456, -0.1155245304107666, -0.048735711723566055, -0.0507616363465786, 0.5043220520019531, 0.390295147895813, 0.2023358792066574, 0.13303641974925995, 0.05277343466877937, -0.33323782682418823, -0.03905383124947548, 0.2645007371902466, 0.07319552451372147, 0.5722963809967041, 0.111142098903656, 0.18849408626556396, -0.2298460602760315, -0.026041729375720024, -0.22595979273319244, 0.37571439146995544, 0.19608117640018463, -0.23285633325576782, 0.3923492729663849, -0.3859458565711975, -0.3946235477924347, -0.6372325420379639, -0.12649859488010406, -0.2228459268808365, -0.40768197178840637, -0.059663284569978714, 0.2941835820674896, -0.2008383572101593, 0.3044988811016083, -0.008395887911319733, 0.253328412771225, -0.0969763845205307, -0.06331496685743332, -0.06503396481275558, -0.3226167559623718, -0.09712155163288116, 0.009573468007147312, 0.46635380387306213, 0.04869178682565689, 0.1779375672340393, 0.46265730261802673, -0.3111802637577057, 0.00403641676530242, -0.23305144906044006, 0.21388806402683258, -0.12550874054431915, 0.0886392742395401, 0.12302196025848389, -0.033431246876716614, 0.33056092262268066, -0.39431169629096985, 0.010142290964722633, -0.013206901960074902, -0.20627911388874054, -0.0949026569724083, 0.028606459498405457, 0.34867140650749207, -0.10701872408390045, -0.30938416719436646, -0.31597110629081726, -0.3946547210216522, 0.22593078017234802, 0.05162699893116951, 0.2161056101322174, 0.4295206069946289, 0.17626889050006866, 0.046348173171281815, 0.1555677205324173, -0.026217449456453323, 0.014796394854784012, -0.04559888690710068, 0.03388574346899986, -0.367345929145813, 0.18973611295223236, -0.28431981801986694, -0.20596188306808472, 0.42527928948402405, 0.11522554606199265, -0.3176310956478119, 0.3440876007080078, -0.04343174025416374, -0.016711879521608353, -0.2224961817264557, -0.3622523248195648, 0.024420345202088356, 0.17806388437747955, 0.04527118057012558, -0.03387678414583206, 0.14686785638332367, 0.22607868909835815, 0.11215969920158386, 0.23243920505046844, 0.2633701264858246, 0.32876789569854736, 0.19266164302825928, 0.8260390162467957, 0.0851387083530426, -0.11768469214439392, -0.06167950853705406, 0.09743468463420868, -0.2724166810512543, 0.037508197128772736, -0.09409889578819275, -0.2391369342803955, -0.08242345601320267, 0.06999433785676956, -0.027406947687268257, 0.060734204947948456, -0.4748293459415436, -0.016499416902661324, 0.03845960646867752, -0.06945034861564636, -0.348014771938324, 0.4364907443523407, -0.5182200074195862, 0.06215347722172737, -0.1140323132276535, -0.31194671988487244, -0.2559907138347626, 0.05149229243397713, -0.27836671471595764, -0.052094560116529465, 0.12091611325740814, -0.07203453779220581, -0.41315868496894836, 0.19934603571891785, -0.3643968403339386, 0.20308294892311096, -0.11064708977937698, 0.26123419404029846, 0.09755263477563858, -0.24449898302555084, -0.028140466660261154, -0.24869418144226074, 0.7580453753471375, -0.07483938336372375, 0.10267456620931625, 0.09708070755004883, 0.10428109019994736, -0.5244812965393066, 0.021921953186392784, -0.21868376433849335, 0.48393961787223816, 0.30865588784217834, 0.3903082609176636, -0.3387848436832428, -0.28004908561706543, 0.19921888411045074, -0.14636416733264923, -0.2613399922847748, -0.015423092991113663, 0.027556641027331352, -0.12545140087604523, -0.41562074422836304, -0.08439856767654419, 0.06511717289686203, 0.0581832081079483, -0.13755623996257782, 0.04626919701695442, -0.19929054379463196, -0.1609220951795578, 0.09174124151468277, -0.015353578142821789, -0.17883172631263733, 0.013564993627369404, 0.20813466608524323, -0.11286754161119461, 0.2214401513338089, 0.15892991423606873, 0.6004495024681091, 0.2492443323135376, -0.3162975311279297, -0.030480537563562393, 0.16834869980812073, 0.29414352774620056, 0.04303025081753731, 0.19528919458389282, 0.36217546463012695, 0.30236607789993286, -0.06501653790473938, -0.12209860235452652, 0.1000136286020279, -0.09102936834096909, 0.08359546959400177, -0.41435039043426514, -0.39788222312927246, 0.403308242559433, 0.246686190366745, -0.0018952884711325169, 0.4153793454170227, -0.3548700511455536, -0.3739951252937317, 0.2413823902606964, 0.2081931233406067, 0.8665276765823364, -0.011606737971305847, 0.16251656413078308, 0.47496697306632996, -0.506637692451477, 0.7132524251937866, -0.4881281852722168, 0.05089902505278587, -0.1740202009677887, 0.22635704278945923, -0.03867474943399429, -0.16007943451404572, 0.06535293906927109, 0.5145097374916077, -0.12492396682500839, 0.19100932776927948, 0.2115529179573059, -0.4104619026184082, -0.026795435696840286, 0.4065265953540802, -0.0034947339445352554, -0.2639397382736206, -0.23127424716949463, -0.042596131563186646, -0.43423083424568176, -0.09860317409038544, 0.15339985489845276, -0.31867194175720215, -0.21091119945049286, -0.1321125030517578, -0.1447935253381729, 0.11916801333427429, 0.12161769717931747, 0.21228601038455963, 0.21920832991600037, -0.4170313775539398, 0.21054531633853912, -0.1337060034275055, 0.0080594876781106, -0.2745543122291565, -0.047328583896160126, -0.03427249193191528, -0.2372596114873886, 0.05142096057534218, -0.0789107233285904, -0.12074175477027893, 0.3871475160121918, 0.020441317930817604, -0.18950358033180237, -0.08734213560819626, 0.007570622488856316, -0.3587489724159241, 0.12812358140945435, -0.0432036891579628, -0.09221424907445908, 0.05385003983974457, -0.21291084587574005, 0.34416714310646057, -0.31494924426078796, -0.17514938116073608, -0.014775850810110569, 0.06271474063396454, -0.18686479330062866, -0.1603594869375229, -0.01799246110022068, -0.15483057498931885, 0.03775426000356674, 0.11759443581104279, 0.2087218463420868, 0.11843187361955643, 0.5312083959579468, 0.37098175287246704, 0.21507562696933746, -0.18854309618473053, -0.005703512579202652, 0.25211822986602783, -0.4778152406215668, 0.13726088404655457, -0.2956432104110718, -0.16878129541873932, 0.05755849555134773, -0.07784843444824219, 0.13265912234783173, 0.442521333694458, -0.04694541543722153, -0.39816612005233765, -0.2747649550437927, 0.4557516574859619, -0.1103336289525032, 0.09982451796531677, -0.11735035479068756, 0.23049655556678772, -0.05339639633893967, 0.39786776900291443, -0.17707915604114532, 0.2526496946811676, -0.004828123841434717, 0.33834847807884216, 0.056591615080833435, -0.06884173303842545, -0.062367841601371765, 0.12944819033145905, -0.035880960524082184, -0.05607380345463753, 0.05162341892719269, -0.08489783108234406, -0.1986640989780426, 0.11358451098203659, 0.009809092618525028, -0.14019136130809784, 0.07157603651285172, -0.2780887484550476, -0.060676295310258865, 0.03993869945406914, -0.13438042998313904, -0.3121052086353302, -0.09116503596305847, 0.32296618819236755, 0.002908408874645829, 0.0850498154759407, -0.1496046632528305, 0.22550496459007263, 0.003247351385653019, 0.11738071590662003, -0.06544078141450882, 0.33539095520973206, 0.19352206587791443, -0.09993495792150497, -0.6856935024261475, -0.053272753953933716, 0.052326567471027374, 0.0030713442247360945, 0.10923882573843002, -0.20007982850074768, -0.13155320286750793, -0.28988882899284363, 0.25366464257240295, 0.4463505744934082, -0.07393937557935715, 0.19580323994159698, 0.24063272774219513, 0.06335635483264923, -0.06349614262580872, 0.08822059631347656, 0.4835500419139862, -0.31665557622909546, 0.07115908712148666, 0.3000299036502838, -0.1604161411523819, 0.14731048047542572, -0.30098846554756165, 0.052718695253133774, 0.08225584030151367, -0.12545812129974365, 0.34395501017570496, 0.3214905858039856, -0.3618200123310089, -0.040101248770952225, 0.1614886373281479, -0.11939175426959991, 0.40250250697135925, 0.0484439842402935, 0.20464427769184113, 0.3204607367515564, 0.27500978112220764, -0.0557657852768898, 0.42213016748428345, -0.30980807542800903, -0.3592766225337982, -0.0007556098280474544, 0.03584098815917969, 0.24835547804832458, 0.2836796045303345, 0.5921638607978821, 0.17224355041980743, -0.27736738324165344, 0.09167034924030304, 0.5221635699272156, -0.012186809442937374, -0.2795136272907257, -0.6138976812362671, 0.0627862811088562, -0.22345948219299316, 0.05790846422314644, -0.04248445853590965, -0.24305227398872375, 0.20199500024318695, 0.1961258053779602, 0.04608951508998871, -0.416612446308136, 0.3033424913883209, 0.1623999923467636, -0.024527117609977722, -0.20110012590885162, 0.24909189343452454, 0.2544419765472412, -0.1284007728099823, 0.07052171975374222, 0.03482908383011818, 0.31726202368736267, 0.08646267652511597, -0.3684067130088806, -0.008964095264673233, 0.13968883454799652, -0.0774105116724968, -0.17332731187343597, 0.185398668050766, 0.26542186737060547, 0.06291520595550537, 0.36063119769096375, 0.007665848825126886, -0.09079672396183014, 0.028116414323449135, 0.400034099817276, 0.09570276737213135, -0.3185192942619324, 0.5138182640075684, 0.17292878031730652, -0.21440935134887695, 0.3287237286567688, 0.08661514520645142, -0.4180994927883148, -0.1664084643125534, 0.2632782757282257, -0.03458951786160469, 0.0029010260477662086, 0.14589917659759521, 0.015029903501272202, -0.0731460452079773, 0.632757842540741, 0.17509476840496063, 0.26845303177833557, -0.030281277373433113, 0.04877542331814766, -0.3237718641757965, -0.09668651223182678, -0.26705002784729004, -0.019345713779330254, -0.2650865316390991, 0.21121926605701447, 0.3434876799583435, 0.4839076101779938, -0.16520541906356812, 0.08608793467283249, 0.24591286480426788, 0.28944066166877747, -0.16102316975593567, -0.30691224336624146, 0.22028504312038422, 0.34863051772117615, 0.18895426392555237, -0.35020869970321655, -0.06863221526145935, 0.4095509350299835, -0.16187100112438202, 0.046493057161569595, -0.06748954951763153, 0.24039000272750854, 0.032800473272800446, 0.04901518672704697, 0.13219289481639862, 0.48775768280029297, -0.03355593979358673, -0.3763442635536194, -0.21495561301708221, -0.1724826842546463, -0.46679574251174927, 0.2378891408443451, -0.018556589260697365, 0.7020083069801331, -0.523348867893219, 0.14368027448654175, -0.2510557770729065, -0.36028313636779785, -0.17429706454277039, 0.06903939694166183, -0.3635820746421814, 0.2612660527229309, -0.1166171282529831, 0.19276200234889984, -0.044785384088754654, 0.4278228282928467, 0.042088720947504044, 0.12517769634723663, -0.3780823051929474, 0.038443926721811295, 0.37097710371017456, -0.21457023918628693, -0.1265939176082611, 0.2050519585609436, -0.12254152446985245, 0.1562429517507553, 0.19384357333183289, -0.5580323934555054, -0.050383348017930984, 0.2729418873786926, -0.2999859154224396, -0.11327903717756271, 0.16607852280139923, 0.23746639490127563, -0.11079732328653336, -0.031058263033628464, 0.2576289772987366, 0.13076744973659515, -0.2719530463218689, 0.03826719522476196, -0.3147013783454895 ]
https://github.com/huggingface/datasets/issues/328
Fork dataset
I'll close this -- It's still unclear how to go about troubleshooting the json example as I mentioned above. If I decide it's worth the trouble, I'll create another issue, or wait for a better support for using nlp for making custom data-loaders.
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL
43
Fork dataset We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset. We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers. Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads. Is there some good way to "fork" dataset- EG 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 -> DatasetREL or 1. text + json -> Dataset1 1. Dataset1 -> DatasetNER 1. Dataset1 + DatasetNER -> DatasetREL I'll close this -- It's still unclear how to go about troubleshooting the json example as I mentioned above. If I decide it's worth the trouble, I'll create another issue, or wait for a better support for using nlp for making custom data-loaders.
[ -0.22559279203414917, -0.21397513151168823, 0.013711982406675816, 0.18746130168437958, -0.2855696380138397, 0.10272834450006485, 0.08597864210605621, 0.3090706765651703, 0.2629743814468384, -0.13470228016376495, 0.07713789492845535, 0.6757097244262695, -0.37672358751296997, 0.13001605868339539, 0.10404356569051743, -0.2021782249212265, 0.15670490264892578, 0.030567677691578865, 0.24323982000350952, 0.12467465549707413, -0.0030571785755455494, -0.1404222995042801, 0.15677517652511597, 0.01511412113904953, -0.061115656048059464, -0.24104657769203186, -0.1119409129023552, 0.18317824602127075, 0.04362405836582184, 0.008081338368356228, 0.4242905378341675, 0.16824793815612793, -0.03575320169329643, 0.3314850330352783, -0.00011822032683994621, 0.12424804270267487, 0.10824854671955109, 0.1458236128091812, -0.2584870755672455, -0.15566453337669373, -0.11276745051145554, -0.13710543513298035, 0.2131110429763794, -0.1448487490415573, 0.1367439180612564, -0.327898234128952, 0.1708422154188156, -0.12972363829612732, 0.7699856758117676, 0.13350039720535278, 0.10888539999723434, 0.0454343780875206, -0.12471383064985275, 0.22509926557540894, -0.2478453367948532, 0.2831087112426758, 0.07890333235263824, 0.20201051235198975, 0.011534828692674637, -0.16213662922382355, -0.1638321727514267, 0.02039547637104988, -0.15259595215320587, 0.10968051850795746, 0.12503856420516968, -0.12215986847877502, 0.05436281859874725, -0.027397124096751213, -0.02771388739347458, 0.3535752296447754, -0.01150021143257618, -0.12141837179660797, -0.16663159430027008, -0.6308931112289429, 0.07149546593427658, -0.19561798870563507, -0.03272445499897003, 0.10708484798669815, -0.17027990520000458, 0.22139744460582733, 0.12797895073890686, -0.580143928527832, 0.035780344158411026, 0.11033499240875244, -0.06239110976457596, 0.32965463399887085, 0.17296113073825836, 0.19765083491802216, 0.25529786944389343, 0.05941540002822876, 0.3220233917236328, -0.20344898104667664, -0.018766993656754494, -0.030843311920762062, -0.1546320915222168, -0.2607320249080658, -0.14788053929805756, -0.6261653304100037, -0.0011972688371315598, 0.2987714111804962, 0.3444432020187378, 0.029549971222877502, -0.37623465061187744, 0.23496372997760773, 0.18564708530902863, -0.2687036991119385, -0.1834818422794342, 0.28089654445648193, 0.014772739261388779, -0.2175779789686203, 0.050067536532878876, 0.1455635130405426, -0.39281150698661804, 0.010900532826781273, -0.3534693717956543, -0.06366588920354843, 0.3451403081417084, 0.19899344444274902, -0.19005559384822845, -0.4027467668056488, -0.2324143797159195, -0.1443464308977127, 0.14342060685157776, 0.0017949198372662067, 0.02722615748643875, 0.5649713277816772, -0.07313819229602814, 0.3858676552772522, -0.21320781111717224, -0.2311060130596161, 0.023288246244192123, -0.05437881872057915, -0.1361839473247528, 0.010796419344842434, 0.10719269514083862, 0.5068047046661377, 0.15110896527767181, -0.019406352192163467, -0.3058048486709595, -0.0769740492105484, 0.438651978969574, -0.0546707957983017, -0.07734449952840805, -0.0458456426858902, -0.062255799770355225, 0.08189763873815536, 0.09542001783847809, -0.08166486024856567, -0.2606014013290405, 0.21036674082279205, -0.17669419944286346, -0.13158170878887177, 0.02194952219724655, 0.06713993102312088, 0.0027990026865154505, -0.31256741285324097, -0.5295150279998779, 0.6395677924156189, 0.19600093364715576, -0.06902188062667847, 0.010107267647981644, -0.003934914246201515, -0.34813472628593445, -0.23170875012874603, -0.010424213483929634, 0.052944865077733994, -0.3890049457550049, -0.3615553677082062, -0.22791746258735657, 0.011744724586606026, -0.06761447340250015, 0.4565347135066986, -0.24342255294322968, 0.17877806723117828, 0.03417319431900978, 0.016695110127329826, 0.563964307308197, -0.18104995787143707, -0.059942878782749176, 0.23426125943660736, -0.2342585027217865, 0.03630142658948898, 0.08254554122686386, 0.14395494759082794, -0.038168568164110184, -0.18145430088043213, 0.057043857872486115, 0.7605232000350952, -0.28688740730285645, -0.004072694573551416, 0.06457140296697617, -0.23861034214496613, 0.3192771375179291, 0.2190314531326294, -0.06276454776525497, 0.05482655018568039, -0.33123448491096497, -0.022384651005268097, 0.22037939727306366, -0.049208853393793106, 0.30523762106895447, -0.10402922332286835, -0.12169700115919113, -0.08697377145290375, -0.11415529251098633, -0.15052570402622223, -0.470071941614151, -0.017650719732046127, 0.06896435469388962, 0.011858679354190826, 0.28297939896583557, -0.08160315454006195, 0.055229607969522476, -0.018846577033400536, -0.021703751757740974, -0.009687892161309719, -0.007629455532878637, 0.09644415229558945, 0.032852742820978165, -0.28097569942474365, -0.3709947466850281, 0.11228712648153305, -0.04721846431493759, 0.20591270923614502, -0.380746990442276, 0.48854708671569824, 0.29257601499557495, 0.01599404774606228, -0.09338384121656418, 0.2137659639120102, -0.159469872713089, 0.04179557412862778, 0.18024742603302002, 0.07190995663404465, -0.20720338821411133, 0.41968491673469543, 0.19113366305828094, 0.12245531380176544, 0.18480618298053741, -0.3710249066352844, 0.2803327143192291, 0.10756521672010422, -0.10182328522205353, -0.17907355725765228, -0.2775414288043976, 0.30333855748176575, 0.10361779481172562, 0.4381714165210724, -0.008315681479871273, 0.15381968021392822, 0.14746005833148956, -0.190201073884964, -0.24455466866493225, 0.14091351628303528, 0.09184820204973221, -0.17031705379486084, 0.29282838106155396, -0.06609220802783966, -0.5334093570709229, 0.266308456659317, 0.25970929861068726, -0.0231008343398571, -0.006763927638530731, 0.06569548696279526, -0.22788895666599274, -0.02726324088871479, -0.08004020899534225, 0.5746638774871826, 0.16694021224975586, 0.22456781566143036, 0.3080444037914276, 0.012803281657397747, -0.30455851554870605, -0.015898432582616806, 0.21376866102218628, 0.12955984473228455, 0.5631983280181885, 0.011666318401694298, 0.21227209270000458, -0.24072685837745667, -0.045009415596723557, -0.20996655523777008, 0.4044652581214905, 0.040777865797281265, -0.0848153680562973, 0.36554357409477234, -0.3508610725402832, -0.4246240556240082, -0.6468886137008667, -0.18502134084701538, -0.15520410239696503, -0.35202911496162415, -0.025489376857876778, 0.3039811849594116, -0.13394685089588165, 0.22586169838905334, -0.012356050312519073, 0.2932175397872925, -0.3522539436817169, 0.008980595506727695, 0.00600063893944025, -0.4163363575935364, -0.033090610057115555, 0.06513457000255585, 0.52345210313797, 0.17995554208755493, 0.22015303373336792, 0.48027315735816956, -0.2884748578071594, 0.022892441600561142, -0.19875338673591614, 0.2183106243610382, -0.0874335840344429, -0.029772082343697548, 0.0596473403275013, -0.11225838214159012, 0.20679162442684174, -0.2833404242992401, -0.10182014107704163, -0.016041189432144165, -0.13604237139225006, -0.1377628594636917, -0.03774638473987579, 0.32850363850593567, -0.06296313554048538, -0.16502408683300018, -0.3227212131023407, -0.3119983673095703, 0.3506122827529907, 0.03687593340873718, 0.16554252803325653, 0.31130075454711914, 0.07971731573343277, 0.05101577192544937, 0.17139557003974915, -0.029392888769507408, 0.10303574800491333, -0.06838681548833847, -0.1436232626438141, -0.2770163416862488, 0.20353195071220398, -0.29743096232414246, -0.24349214136600494, 0.3983851373195648, 0.12820591032505035, -0.2371729463338852, 0.4022570848464966, -0.057660505175590515, -0.04828333482146263, -0.1453525274991989, -0.3861064612865448, 0.0729033350944519, 0.08534592390060425, 0.058449797332286835, -0.03815542906522751, 0.22280561923980713, 0.1892825961112976, 0.10138577967882156, 0.19681194424629211, 0.2205892652273178, 0.18876907229423523, 0.1956259310245514, 0.8005090355873108, 0.026444166898727417, -0.1882139891386032, -0.1373368352651596, 0.15236042439937592, -0.34942394495010376, 0.08590764552354813, -0.036680884659290314, -0.14925329387187958, -0.051170602440834045, 0.07918385416269302, 0.07920099794864655, 0.03233971446752548, -0.38235729932785034, 0.010870194993913174, -0.004444030113518238, -0.0840584933757782, -0.27899986505508423, 0.3753069341182709, -0.6413497924804688, -0.0014684394700452685, -0.036607906222343445, -0.37952572107315063, -0.28139835596084595, 0.025527160614728928, -0.39601239562034607, -0.07638400048017502, 0.12835460901260376, -0.025308804586529732, -0.5550850629806519, 0.25875338912010193, -0.4043118953704834, 0.10655201971530914, -0.14971134066581726, 0.10829757153987885, 0.13370394706726074, -0.21574968099594116, -0.007779403124004602, -0.25126445293426514, 0.7265217304229736, -0.06211155652999878, 0.07743784785270691, -0.021897487342357635, 0.24433837831020355, -0.5533457398414612, 0.11869097501039505, -0.1643366664648056, 0.4846508204936981, 0.21805663406848907, 0.18558502197265625, -0.35365206003189087, -0.26115143299102783, 0.15441368520259857, -0.13399048149585724, -0.2371198982000351, 0.034615084528923035, 0.09012430906295776, -0.07537218928337097, -0.2876894772052765, -0.049198687076568604, 0.11333075910806656, -0.08350098133087158, -0.20090390741825104, -0.035625990480184555, -0.22938916087150574, -0.10234729945659637, 0.13472697138786316, -0.02093278244137764, -0.21145547926425934, 0.002697479911148548, 0.19488166272640228, -0.09133177250623703, 0.21668562293052673, 0.17786429822444916, 0.5501299500465393, 0.10800236463546753, -0.40333056449890137, -0.06946876645088196, 0.17530670762062073, 0.35901960730552673, 0.0023789044935256243, 0.4114624857902527, 0.5049762725830078, 0.4489447772502899, -0.20140810310840607, -0.1918383687734604, 0.14674720168113708, -0.121008962392807, 0.16190201044082642, -0.4613926410675049, -0.39001980423927307, 0.4433448016643524, 0.2551623284816742, -0.018710017204284668, 0.37863245606422424, -0.29205086827278137, -0.3776572346687317, 0.3467847406864166, 0.09686718136072159, 0.7605611681938171, -0.12759889662265778, 0.24655656516551971, 0.2234186828136444, -0.48369309306144714, 0.8631598949432373, -0.4748446047306061, 0.04446897283196449, -0.09992795437574387, 0.1351710855960846, -0.058254312723875046, -0.1513383835554123, -0.08579908311367035, 0.5734056234359741, -0.09484884887933731, 0.11308539658784866, 0.21729573607444763, -0.3962779939174652, 0.011070732027292252, 0.4008006453514099, 0.0025832776445895433, -0.24148720502853394, -0.12340622395277023, -0.00437824334949255, -0.3816985785961151, -0.16986246407032013, 0.0784129872918129, -0.18440206348896027, -0.12993547320365906, 0.012470086105167866, -0.13749092817306519, 0.10008746385574341, 0.13050752878189087, 0.05572206526994705, 0.1529756635427475, -0.41563880443573, 0.19851429760456085, -0.15587612986564636, 0.1504129022359848, -0.36373722553253174, -0.09308473765850067, 0.038114845752716064, -0.16749213635921478, 0.07359908521175385, -0.09419238567352295, -0.24205587804317474, 0.4414743483066559, 0.10908173024654388, -0.2119501531124115, -0.12520739436149597, 0.037746988236904144, -0.23223985731601715, -0.028827952221035957, -0.04950903728604317, 0.09024767577648163, 0.2352704107761383, -0.21161159873008728, 0.4793800413608551, -0.30604052543640137, -0.17583180963993073, 0.00936125684529543, 0.05178346484899521, -0.09108209609985352, -0.2078314572572708, -0.0366813987493515, -0.0514279343187809, 0.095574289560318, 0.024005543440580368, 0.24926812946796417, 0.0429394394159317, 0.4369227886199951, 0.388404905796051, 0.23626147210597992, -0.17364613711833954, -0.11260431259870529, 0.39203277230262756, -0.4630270302295685, 0.06548893451690674, -0.30117958784103394, -0.24097976088523865, 0.16308242082595825, -0.0893404483795166, 0.043742284178733826, 0.3343805968761444, -0.16709186136722565, -0.3785155713558197, -0.21000203490257263, 0.5031380653381348, -0.15609408915042877, 0.1168874055147171, -0.07204562425613403, 0.27505019307136536, 0.028588153421878815, 0.4572609066963196, -0.18177583813667297, 0.24920988082885742, 0.07249622792005539, 0.3490789830684662, 0.004370481241494417, -0.0120637072250247, -0.13225650787353516, 0.1297161728143692, -0.06168877333402634, -0.0028905945364385843, 0.12256418913602829, -0.11281155794858932, -0.19619672000408173, 0.11714203655719757, 0.07787998020648956, -0.14469997584819794, 0.08970514684915543, -0.2446610927581787, 0.030283594503998756, 0.011950786225497723, -0.11402042210102081, -0.3234211504459381, -0.06768527626991272, 0.22828054428100586, 0.09073776751756668, 0.1796734631061554, -0.2158181071281433, 0.17260828614234924, 0.10360656678676605, -0.008181404322385788, -0.13441401720046997, 0.36303356289863586, 0.293732613325119, -0.08276960253715515, -0.5364313125610352, -0.06324619799852371, 0.28462889790534973, 0.01234149094671011, -0.023059729486703873, -0.11943471431732178, -0.07787968218326569, -0.23189078271389008, 0.26514026522636414, 0.43321189284324646, 0.006192605476826429, 0.193403959274292, 0.28081202507019043, 0.12228523939847946, -0.04993480071425438, 0.07904321700334549, 0.48915213346481323, -0.3450670540332794, 0.08497989177703857, 0.26141121983528137, -0.1177532970905304, 0.12299322336912155, -0.30804795026779175, 0.0012808949686586857, -0.03169659897685051, -0.2097046673297882, 0.3735481798648834, 0.2310180515050888, -0.29585495591163635, -0.0831729993224144, 0.14488404989242554, -0.1254056692123413, 0.3239153325557709, 0.11882168054580688, 0.2797057330608368, 0.492556631565094, 0.3353683054447174, -0.09458079189062119, 0.5092289447784424, -0.19007878005504608, -0.33252713084220886, -0.0650515928864479, 0.12595969438552856, 0.27402281761169434, 0.23777520656585693, 0.6080206632614136, 0.2367739975452423, -0.2535492777824402, 0.09609509259462357, 0.480364054441452, -0.008023596368730068, -0.2975948750972748, -0.659888505935669, 0.10005427896976471, -0.12825000286102295, -0.027262864634394646, -0.06835410743951797, -0.2648763656616211, 0.23479187488555908, 0.1211792454123497, 0.17138530313968658, -0.37831971049308777, 0.23704202473163605, 0.12157755345106125, 0.020864009857177734, -0.08967242389917374, 0.1988065540790558, 0.19969822466373444, -0.1532541662454605, 0.1174786239862442, 0.05303548648953438, 0.11605831980705261, -0.04319126158952713, -0.47317931056022644, 0.051317133009433746, 0.11386623978614807, -0.05852069333195686, -0.23653221130371094, 0.12243462353944778, 0.29206258058547974, 0.010960323736071587, 0.33452218770980835, 0.019128944724798203, -0.11690279096364975, 0.009604361839592457, 0.4403298497200012, -0.029326247051358223, -0.48786234855651855, 0.4588007628917694, 0.2077508121728897, -0.23039615154266357, 0.25856253504753113, 0.2308824211359024, -0.38792338967323303, -0.15843862295150757, 0.32807615399360657, -0.23747512698173523, -0.05052413046360016, 0.1283557265996933, 0.026388609781861305, -0.042483292520046234, 0.5274130702018738, 0.14723733067512512, 0.38152217864990234, 0.0467580109834671, -0.03881274536252022, -0.3185814917087555, -0.02788618579506874, -0.2809954881668091, -0.022637438029050827, -0.30622780323028564, 0.1478821188211441, 0.30639317631721497, 0.3770579695701599, -0.22428889572620392, 0.04790198802947998, 0.23187625408172607, 0.31437215209007263, -0.07991807907819748, -0.2844036817550659, 0.1349046677350998, 0.28361836075782776, 0.17679046094417572, -0.2951727509498596, -0.05817616358399391, 0.5080986022949219, -0.19289693236351013, 0.07086449861526489, -0.02079891599714756, 0.2869102954864502, -0.029681453481316566, 0.048317573964595795, 0.06427690386772156, 0.4536294937133789, -0.06978325545787811, -0.4069770276546478, -0.24577350914478302, -0.13262848556041718, -0.5627467036247253, 0.2836137115955353, -0.09076379239559174, 0.6159167289733887, -0.559001624584198, 0.2587597966194153, -0.04052118957042694, -0.5787869095802307, -0.0762958824634552, 0.08160378783941269, -0.4081578254699707, 0.2503030002117157, -0.20562174916267395, 0.1880098432302475, 0.07629265636205673, 0.5517145991325378, 0.06931298226118088, 0.01993047259747982, -0.20701049268245697, 0.06044825166463852, 0.21921958029270172, -0.1770368069410324, -0.05856570228934288, 0.08326124399900436, -0.09256035834550858, 0.11864116042852402, 0.13606198132038116, -0.5521396994590759, -0.14666232466697693, 0.26329267024993896, -0.3044009208679199, -0.03151961788535118, 0.18224507570266724, 0.20294281840324402, -0.1305772364139557, -0.08262506127357483, 0.3133211135864258, 0.12317226082086563, -0.3210163116455078, 0.0717635527253151, -0.3371943533420563 ]
https://github.com/huggingface/datasets/issues/326
Large dataset in Squad2-format
I'm pretty sure you can get some inspiration from the squad_v2 script. It looks like the dataset is quite big so it will take some time for the users to generate it, but it should be reasonable. Also you are saying that you are still making the dataset grow in size right ? It's probably good practice to let the users do their training/evaluations with the exact same version of the dataset. We allow for each dataset to specify a version (ex: 1.0.0) and increment this number every time there are new samples in the dataset for example. Does it look like a good solution for you ? Or would you rather have one final version with the full dataset ?
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ?
121
Large dataset in Squad2-format At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ? I'm pretty sure you can get some inspiration from the squad_v2 script. It looks like the dataset is quite big so it will take some time for the users to generate it, but it should be reasonable. Also you are saying that you are still making the dataset grow in size right ? It's probably good practice to let the users do their training/evaluations with the exact same version of the dataset. We allow for each dataset to specify a version (ex: 1.0.0) and increment this number every time there are new samples in the dataset for example. Does it look like a good solution for you ? Or would you rather have one final version with the full dataset ?
[ -0.09977850317955017, -0.24149957299232483, -0.1118137389421463, 0.1810324490070343, 0.1970842033624649, -0.01522745843976736, 0.02325204201042652, 0.48853468894958496, -0.09127973020076752, 0.18163208663463593, -0.2126619815826416, 0.05594310909509659, -0.24527402222156525, 0.3290424644947052, 0.2647448778152466, -0.06708573549985886, 0.01187245361506939, -0.023008331656455994, -0.12329534441232681, 0.05257970839738846, 0.09177309274673462, -0.16532911360263824, 0.09191177785396576, -0.12054257094860077, -0.2654373347759247, -0.16606608033180237, -0.21896661818027496, 0.0960962101817131, -0.34390559792518616, -0.431813508272171, -0.17038340866565704, 0.21858817338943481, 0.35815709829330444, 0.6168692111968994, -0.00011920674296561629, -0.26396775245666504, -0.10698235034942627, -0.3270840048789978, -0.36457669734954834, 0.0406486876308918, -0.009129738435149193, -0.3253715932369232, -0.11891327798366547, -0.1130121499300003, -0.18681026995182037, -0.23913049697875977, 0.12401333451271057, -0.2879830300807953, 0.8988133668899536, -0.22570393979549408, 0.05682510882616043, -0.09951911866664886, -0.1425749510526657, 0.0200351532548666, 0.19497635960578918, 0.2649683654308319, -0.09983300417661667, 0.027566298842430115, 0.7631837725639343, 0.2729385495185852, -0.13797765970230103, 0.11585693061351776, 0.10288126766681671, -0.22398805618286133, 0.09536857157945633, -0.2059374451637268, -0.01600143499672413, -0.3111695647239685, -0.09926342219114304, 0.22546251118183136, 0.4971257150173187, -0.23121514916419983, -0.29899394512176514, -0.3494272530078888, 0.08489951491355896, 0.08836355060338974, -0.09537200629711151, 0.3142331838607788, -0.00644424743950367, 0.3016771972179413, -0.3258001506328583, -0.4009295105934143, -0.4019840955734253, -0.07207797467708588, 0.2573398947715759, -0.11619739234447479, -0.08087728172540665, 0.024496054276823997, -0.14715710282325745, -0.21981161832809448, -0.05847196280956268, -0.15253829956054688, 0.07155288755893707, 0.23455828428268433, -0.06751540303230286, -0.3732777535915375, -0.13379573822021484, -0.18242143094539642, 0.6460012197494507, 0.19899305701255798, 0.19533860683441162, -0.09297028183937073, 0.17658790946006775, -0.08645571023225784, 0.38820669054985046, -0.013276875950396061, 0.006935675162822008, -0.35356825590133667, 0.1602536290884018, 0.05664568766951561, 0.015451272018253803, -0.016639266163110733, -0.34821996092796326, 0.11945071071386337, -0.0780944675207138, -0.11981653422117233, 0.20129966735839844, 0.12794256210327148, 0.13232563436031342, 0.14889204502105713, -0.12242317944765091, 0.03351689130067825, 0.14454583823680878, 0.2388262152671814, -0.12815846502780914, 0.15342210233211517, -0.08634535223245621, 0.08346769213676453, 0.1609509289264679, -0.20937512814998627, 0.029915709048509598, -0.03088458627462387, -0.10510506480932236, 0.33035606145858765, 0.20673391222953796, -0.07105866819620132, 0.06535889953374863, 0.024781610816717148, 0.36022239923477173, -0.42672181129455566, 0.17483311891555786, 0.1002812311053276, 0.017521699890494347, -0.1147700697183609, 0.16474831104278564, 0.08158941566944122, -0.21493536233901978, -0.17124319076538086, -0.20713672041893005, 0.12943562865257263, -0.19648079574108124, -0.24238236248493195, -0.054486699402332306, 0.010297244414687157, -0.3162890374660492, 0.21428722143173218, 0.004326249938458204, 0.30834925174713135, 0.028660356998443604, -0.026775607839226723, -0.09055154770612717, 0.28090333938598633, -0.2474745362997055, -0.24104081094264984, 0.10920993983745575, 0.6122674345970154, -0.28520768880844116, -0.08076000213623047, 0.6636145710945129, 0.08361057192087173, -0.534896194934845, 0.337461918592453, -0.0009946181671693921, 0.1033225804567337, 0.10663358122110367, -0.22279825806617737, 0.326863169670105, -0.4240097403526306, -0.38107678294181824, 0.4306109547615051, -0.2452855259180069, -0.18938426673412323, 0.36366021633148193, -0.01550857350230217, 0.7288670539855957, -0.2947200536727905, -0.022739242762327194, 0.3314576745033264, -0.07712585479021072, 0.23544280230998993, -0.3025573790073395, -0.3982699513435364, -0.25463953614234924, 0.2839323580265045, -0.21407082676887512, -0.11608335375785828, -0.179929718375206, 0.2502487301826477, 0.24690046906471252, -0.10993024706840515, 0.31650590896606445, -0.10181628912687302, 0.3639551103115082, 0.08395812660455704, -0.07959982007741928, -0.08678629249334335, -0.7564765810966492, -0.14311376214027405, -0.08402754366397858, -0.3280593156814575, 0.18602928519248962, -0.4696928560733795, -0.3212253749370575, -0.09506210684776306, -0.07124651968479156, -0.09543096274137497, -0.03862476348876953, -0.16206565499305725, 0.25397026538848877, -0.0796835869550705, -0.3652369976043701, 0.18966349959373474, -0.03901189938187599, 0.11117831617593765, -0.1951998919248581, 0.10738065093755722, 0.11377590894699097, -0.01493371557444334, 0.2077329307794571, 0.25788378715515137, 0.00838463194668293, -0.3317633271217346, 0.3545588552951813, 0.1319762021303177, -0.13364435732364655, 0.0812668576836586, 0.12269889563322067, 0.13172563910484314, 0.3408949077129364, 0.24376991391181946, 0.34837108850479126, -0.04396135360002518, -0.09898074716329575, -0.1442309021949768, -0.5008668303489685, 0.3706686198711395, -0.29210448265075684, 0.11036153137683868, -0.15323831140995026, -0.13454830646514893, 0.17231132090091705, 0.06911144405603409, -0.2613062262535095, 0.06810759752988815, -0.1646817922592163, 0.11014474183320999, 0.34428611397743225, 0.08799368888139725, -0.08710882812738419, 0.13336259126663208, 0.39192378520965576, -0.21698646247386932, 0.017970595508813858, 0.051689229905605316, 0.12550559639930725, -0.03124711476266384, -0.05649658292531967, -0.2630299925804138, 0.13826614618301392, 0.174677774310112, -0.1283724009990692, 0.06472843140363693, 0.4244449734687805, -0.0671781599521637, -0.04623565822839737, 0.05431414395570755, 0.22988909482955933, 0.2028607577085495, 0.37005987763404846, -0.11260245740413666, 0.11165571957826614, 0.04177546873688698, 0.12057996541261673, -0.05689598247408867, -0.18172939121723175, 0.005491649731993675, 0.1262892484664917, 0.2495284229516983, -0.2198900729417801, 0.23560971021652222, -0.21143406629562378, 0.21344387531280518, 0.29094263911247253, 0.17719511687755585, 0.10425672680139542, 0.08397314697504044, 0.2970300316810608, 0.812555730342865, 0.07105421274900436, -0.2512110769748688, 0.15298648178577423, -0.20072542130947113, 0.301852822303772, -0.03714457526803017, 0.3549652397632599, -0.4794059693813324, 0.21003036201000214, -0.10897979140281677, 0.035224299877882004, -0.2428155094385147, -0.19940313696861267, 0.12995626032352448, -0.02446999028325081, 0.1560821384191513, -0.13501207530498505, 0.2721756100654602, -0.28081560134887695, -0.03070932626724243, 0.11754836142063141, -0.047957129776477814, -0.1901574581861496, -0.26506537199020386, 0.019728250801563263, -0.06589052826166153, 0.08300742506980896, -0.32709765434265137, -0.2798154652118683, -0.2791699171066284, 0.5616508722305298, 0.13984528183937073, 0.08514963090419769, -0.3313450515270233, 0.17753437161445618, -0.15281575918197632, -0.46991804242134094, -0.03732945770025253, -0.13944993913173676, -0.6506550312042236, 0.18683020770549774, -0.2666997015476227, -0.2523922622203827, -0.19785340130329132, 0.0946914404630661, -0.10847441852092743, -0.01407418493181467, -0.28551557660102844, -0.35820209980010986, 0.1891206055879593, 0.09412076324224472, -0.10961771011352539, 0.20152446627616882, 0.3242136836051941, -0.2208331674337387, 0.1413426399230957, 0.0029687306378036737, -0.10061374306678772, 0.20275427401065826, 0.2374797910451889, 0.3559160828590393, -0.14888183772563934, 0.3959996998310089, 0.1915976107120514, 0.8294721245765686, 0.6231414675712585, 0.12266505509614944, -0.19246523082256317, 0.15878351032733917, 0.2736445665359497, 0.027693750336766243, 0.005397906992584467, 0.4714064300060272, 0.03249545022845268, -0.03211624175310135, 0.24363504350185394, 0.45211508870124817, 0.19452649354934692, -0.09157037734985352, -0.19800269603729248, -0.1404842734336853, -0.26520058512687683, 0.3011278808116913, 0.3607010543346405, 0.10966318100690842, -0.09309128671884537, -0.1706579178571701, -0.1621372252702713, -0.26973026990890503, -0.11596730351448059, 0.18599705398082733, 0.3794794976711273, 0.20988525450229645, -0.5740679502487183, 0.3515954911708832, -0.24952290952205658, 0.15866844356060028, 0.14076223969459534, -0.18989665806293488, 0.1042386144399643, -0.0806923657655716, 0.1455291509628296, -0.05039389431476593, 0.6973090171813965, 0.21466749906539917, -0.15061497688293457, -0.2447742223739624, -0.041702594608068466, -0.35926446318626404, 0.1269325613975525, -0.10861656814813614, 0.44511300325393677, 0.40360715985298157, 0.37710967659950256, -0.44915154576301575, -0.21187666058540344, 0.12485343962907791, 0.12881173193454742, -0.20499444007873535, -0.1730591058731079, -0.18767349421977997, -0.16423605382442474, -0.37728795409202576, 0.2050735354423523, 0.1352115422487259, -0.0898909717798233, 0.16818754374980927, -0.017659712582826614, 0.07160288095474243, 0.09047161787748337, 0.07400783896446228, 0.298982173204422, 0.028930187225341797, 0.29483556747436523, 0.1590929478406906, 0.2529333233833313, 0.15722301602363586, 0.05004705488681793, 0.23935841023921967, -0.010167707689106464, 0.008041894994676113, 0.22921282052993774, -0.11903290450572968, 0.5664659738540649, 0.5696609020233154, 0.12389926612377167, -0.19121845066547394, -0.48439037799835205, 0.29457801580429077, -0.3479841947555542, -0.18471957743167877, 0.18189243972301483, -0.14158198237419128, -0.2552075684070587, -0.2871849238872528, 0.4790971577167511, -0.040904756635427475, -0.0847553163766861, -0.007311485707759857, 0.21401222050189972, 0.04778479039669037, 0.30403247475624084, 0.07541876286268234, 1.2021845579147339, -0.37424036860466003, 0.4124620258808136, 0.029617486521601677, 0.023071905598044395, 0.5967467427253723, -0.6018072366714478, 0.057954780757427216, -0.4674832224845886, 0.34190550446510315, 0.009959054179489613, -0.19421163201332092, 0.0003672839666251093, 0.42582952976226807, -0.3690880835056305, 0.18524175882339478, -0.09927031397819519, 0.4017496705055237, -0.2606293857097626, 0.665449321269989, -0.16513597965240479, -0.27086496353149414, -0.5053532123565674, 0.02685362659394741, -0.18650716543197632, -0.15747328102588654, -0.12439174205064774, -0.1319151222705841, -0.11642489582300186, 0.09827875345945358, 0.009054451249539852, -0.23762840032577515, -0.18585191667079926, 0.05196022614836693, 0.2512972950935364, -0.4156511127948761, 0.38814863562583923, 0.25411996245384216, 0.03877846524119377, 0.21748431026935577, -0.07129473239183426, 0.15564890205860138, -0.2833271324634552, -0.10559877753257751, 0.07342744618654251, 0.057953979820013046, 0.19317929446697235, -0.04728725925087929, -0.2664134204387665, 0.14902643859386444, 0.27913811802864075, 0.02641267143189907, -0.5276991128921509, 0.12138867378234863, 0.3254845142364502, -0.6069245934486389, -0.17466115951538086, 0.06573069095611572, -0.19840167462825775, 0.08470437675714493, -0.011527368798851967, 0.11294243484735489, -0.07268818467855453, 0.30605822801589966, 0.501400351524353, -0.13982166349887848, 0.06871538609266281, 0.13704116642475128, -0.1541055589914322, -0.28383880853652954, 0.19023136794567108, 0.08290085941553116, -0.045997075736522675, -0.18142947554588318, 0.7017869353294373, -0.052264776080846786, -0.16546861827373505, 0.0023636464029550552, -0.047207288444042206, -0.21978886425495148, -0.23922397196292877, -0.17587031424045563, 0.34455448389053345, -0.004608025774359703, 0.3115485906600952, -0.1323167085647583, -0.3046633303165436, 0.24307988584041595, 0.1918097734451294, -0.08928360790014267, 0.13250958919525146, 0.05413169041275978, -0.04269154369831085, 0.3417152464389801, -0.2071312814950943, 0.19754457473754883, 0.08371740579605103, 0.09735038876533508, -0.029104109853506088, -0.22289514541625977, 0.040782053023576736, -0.1490170657634735, -0.1275976449251175, 0.00009353883069707081, -0.41623929142951965, -0.10890078544616699, -0.18525008857250214, 0.21295803785324097, -0.004815335385501385, 0.05003179609775543, -0.1606014221906662, -0.2276473045349121, -0.07085944712162018, -0.07047852128744125, 0.2910271883010864, 0.1154293417930603, 0.35957303643226624, -0.2725120782852173, -0.10874707996845245, -0.22526401281356812, -0.027842076495289803, 0.1439143270254135, 0.2232486754655838, 0.31917259097099304, 0.17739494144916534, 0.17019875347614288, -0.03068414144217968, -0.17518039047718048, -0.06396879255771637, 0.49811241030693054, 0.5956970453262329, 0.14282478392124176, 0.2591729164123535, -0.09163978695869446, 0.06544342637062073, 0.14377844333648682, 0.17296014726161957, 0.4379865229129791, -0.24496737122535706, 0.19435207545757294, 0.04631602764129639, 0.06788349896669388, 0.06622274219989777, 0.15165464580059052, 0.4133427143096924, 0.05557871609926224, -0.04650847986340523, 0.44290801882743835, -0.043163545429706573, -0.047689810395240784, -0.11486733704805374, 0.1415473222732544, 0.5450333952903748, 0.11702077090740204, -0.12328015267848969, -0.06205987185239792, -0.043740902096033096, -0.21366246044635773, 0.41760674118995667, 0.281889945268631, 0.14861363172531128, -0.0748077929019928, -0.12184364348649979, 0.16680768132209778, -0.09114710241556168, -0.0005367823760025203, 0.28618645668029785, 0.05708449333906174, -0.22131864726543427, 0.34720927476882935, 0.301932156085968, -0.0726386085152626, -0.07947532832622528, 0.7899208068847656, 0.2486393302679062, -0.302010178565979, -0.13702981173992157, 0.16815564036369324, 0.08442863821983337, -0.16396796703338623, -0.16757428646087646, -0.18630899488925934, -0.2095085084438324, 0.05587124079465866, -0.2976071238517761, -0.5191301703453064, 0.2120482176542282, 0.2914515733718872, 0.3409845232963562, -0.1082465723156929, 0.1394074410200119, 0.10572279244661331, 0.3179256021976471, -0.22730928659439087, 0.2871841788291931, 0.19867180287837982, 0.2035997211933136, 0.177315816283226, 0.19626078009605408, 0.10648133605718613, -0.11563523858785629, -0.25426170229911804, 0.38334518671035767, -0.36810439825057983, 0.06945504993200302, 0.10002689808607101, 0.00708696898072958, 0.12848973274230957, -0.3347010612487793, 0.2503018081188202, -0.014242938719689846, -0.006766762584447861, -0.13430067896842957, 0.18665815889835358, -0.4374958276748657, -0.2581465244293213, -0.27746039628982544, -0.16093052923679352, -0.23952136933803558, -0.13305610418319702, -0.07232740521430969, -0.44541212916374207, 0.013043082319200039, 0.16215993463993073, -0.14189624786376953, 0.24495017528533936, -0.07299333810806274, 0.03027217835187912, -0.09480161964893341, 0.23825703561306, 0.031187482178211212, -0.11552078276872635, 0.009239740669727325, -0.11754794418811798, -0.232206791639328, 0.056254349648952484, -0.18993894755840302, 0.12837004661560059, -0.18626312911510468, 0.5108601450920105, 0.1144760474562645, 0.5743866562843323, -0.1525532603263855, -0.03783779218792915, -0.41413840651512146, -0.10092712193727493, -0.4872945547103882, 0.06793474406003952, 0.06299516558647156, 0.5794437527656555, 0.2389267534017563, -0.09676869213581085, 0.22779306769371033, 0.035645823925733566, -0.18246972560882568, -0.04558177664875984, 0.13633792102336884, -0.3447839319705963, -0.5008982419967651, 0.066057950258255, -0.061140116304159164, 0.03896542638540268, 0.0871230810880661, -0.2023589164018631, -0.2704780399799347, -0.045145586133003235, -0.10556574910879135, 0.24442452192306519, 0.2704155743122101, 0.11729070544242859, -0.3241797685623169, -0.3725758194923401, 0.023450464010238647, 0.0022238343954086304, -0.1681125909090042, -0.18665319681167603, -0.18404343724250793, -0.2977965474128723, -0.0467756912112236, 0.24620556831359863, -0.051611095666885376, 0.5003596544265747, -0.4273851215839386, 0.12114797532558441, -0.17876684665679932, -0.025716451928019524, 0.611190676689148, -0.15608857572078705, -0.22556237876415253, 0.0675879642367363, 0.329967737197876, 0.2188192456960678, -0.15824168920516968, -0.29397863149642944, 0.32410600781440735, 0.1196349486708641, -0.012814342975616455, -0.173410564661026, 0.14782214164733887, -0.32056283950805664, -0.28970450162887573, -0.14446105062961578, 0.2264080047607422, -0.007054917048662901, -0.07193157076835632, -0.14446885883808136, -0.266291081905365 ]
https://github.com/huggingface/datasets/issues/326
Large dataset in Squad2-format
It would also be good if there is any possibility for versioning, I think this way is much better than the dynamic way. If you mean that part to put the tiles into one is the generation it would take up to 15-20 minutes on home computer hardware. Are there any compression or optimization algorithms while generating the dataset ? Otherwise the hardware limit is around 32 GB ram at the moment. If everything works well we will add some more gigabytes of data in future what would make it pretty memory costly.
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ?
93
Large dataset in Squad2-format At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ? It would also be good if there is any possibility for versioning, I think this way is much better than the dynamic way. If you mean that part to put the tiles into one is the generation it would take up to 15-20 minutes on home computer hardware. Are there any compression or optimization algorithms while generating the dataset ? Otherwise the hardware limit is around 32 GB ram at the moment. If everything works well we will add some more gigabytes of data in future what would make it pretty memory costly.
[ -0.07837718725204468, -0.3369028866291046, -0.102103590965271, 0.3794321119785309, 0.29138535261154175, -0.09671354293823242, -0.12171187996864319, 0.5122987031936646, -0.02722463570535183, 0.19465267658233643, -0.2856166660785675, 0.06141381710767746, -0.25026679039001465, 0.2593446969985962, 0.3205592930316925, -0.08860894292593002, 0.15497949719429016, 0.08237790316343307, -0.20406119525432587, 0.056910913437604904, 0.06371404230594635, -0.10328518599271774, 0.06122545152902603, -0.16533192992210388, -0.30092349648475647, -0.14129814505577087, -0.28817349672317505, 0.11389090120792389, -0.39349696040153503, -0.3375560939311981, -0.24486690759658813, 0.21716620028018951, 0.16116967797279358, 0.6473466753959656, -0.00012278369104024023, -0.19610656797885895, -0.14377889037132263, -0.3495812714099884, -0.28948062658309937, 0.13307346403598785, -0.09903427958488464, -0.33334970474243164, -0.16142603754997253, -0.11271402984857559, -0.14049169421195984, -0.2584019899368286, 0.10623457282781601, -0.33801019191741943, 0.772652804851532, -0.18526150286197662, 0.0069000329822301865, -0.13939866423606873, -0.048322029411792755, 0.007456917781382799, 0.24787113070487976, 0.25301679968833923, -0.10293654352426529, 0.03505886346101761, 0.6240141987800598, 0.3569609820842743, -0.017588870599865913, 0.07923053205013275, 0.03875001519918442, -0.1803487241268158, 0.0834910199046135, -0.13057632744312286, -0.09050467610359192, -0.3459358513355255, -0.08844681084156036, 0.25673267245292664, 0.46483367681503296, -0.21463388204574585, -0.22269384562969208, -0.17029456794261932, -0.025091808289289474, 0.12211579829454422, 0.062489595264196396, 0.4120587110519409, -0.1602800041437149, 0.3520802855491638, -0.3435669541358948, -0.4413898289203644, -0.3995465040206909, -0.0935540422797203, 0.2771216034889221, -0.032266177237033844, -0.11755441129207611, -0.008474241010844707, -0.12657345831394196, -0.13739807903766632, -0.10240417718887329, -0.13972431421279907, 0.018365254625678062, 0.18830730020999908, -0.05814431235194206, -0.36341333389282227, -0.30487409234046936, -0.22182686626911163, 0.7251412868499756, 0.21973583102226257, 0.326500803232193, -0.04571254551410675, 0.3206266760826111, -0.09389436990022659, 0.2684262692928314, -0.002152467845007777, -0.21918262541294098, -0.4172419309616089, 0.1518903225660324, -0.0420658178627491, 0.00575913256034255, -0.051873356103897095, -0.2956550419330597, 0.1691855937242508, -0.16349416971206665, -0.2331245243549347, 0.2861674129962921, 0.13934224843978882, 0.08928202092647552, -0.021498454734683037, -0.23188553750514984, 0.00859516765922308, 0.09882214665412903, 0.22124981880187988, -0.13914479315280914, 0.12232831120491028, -0.12433459609746933, -0.03462699055671692, 0.21658101677894592, -0.2578241527080536, 0.05293130874633789, 0.011232546530663967, -0.07143913209438324, 0.3470558226108551, 0.20746208727359772, -0.012173584662377834, 0.01280749961733818, 0.0960276648402214, 0.34810495376586914, -0.3639542758464813, 0.13848693668842316, -0.03334337845444679, 0.10407146066427231, 0.03202349692583084, 0.14440061151981354, 0.0015520036686211824, -0.26448795199394226, -0.014526979066431522, -0.2976856529712677, 0.054018449038267136, -0.20355309545993805, -0.3303641080856323, -0.08826909214258194, -0.025027863681316376, -0.135370135307312, 0.3116157352924347, -0.16190972924232483, 0.35997411608695984, 0.08743148297071457, 0.049074191600084305, -0.11378619074821472, 0.44898533821105957, -0.21829238533973694, -0.29309913516044617, 0.16024212539196014, 0.5045279860496521, -0.20075367391109467, 0.022959576919674873, 0.6979808807373047, 0.05601724982261658, -0.2464071363210678, 0.448152095079422, -0.004396878648549318, 0.13596612215042114, 0.06608544290065765, -0.14632274210453033, 0.2523405849933624, -0.40341314673423767, -0.3938644230365753, 0.5243749618530273, -0.12374620139598846, -0.26510998606681824, 0.5103120803833008, 0.030841046944260597, 0.7380937337875366, -0.20417995750904083, 0.0067869736813008785, 0.46572452783584595, -0.07565947622060776, 0.26781466603279114, -0.2925257682800293, -0.3666592538356781, -0.10646648705005646, 0.19767870008945465, -0.34105217456817627, -0.1301359236240387, -0.17429865896701813, 0.2694668471813202, 0.08517809957265854, -0.10518413037061691, 0.3670705258846283, -0.10381834208965302, 0.3626273274421692, 0.03681058809161186, -0.03510786592960358, -0.07982134819030762, -0.7069562077522278, -0.17546069622039795, -0.14751167595386505, -0.18153350055217743, 0.17563974857330322, -0.4423540234565735, -0.21275193989276886, -0.08712372928857803, -0.04360692575573921, -0.011122409254312515, -0.03491293638944626, -0.1196979433298111, 0.28972020745277405, -0.20639324188232422, -0.4174747169017792, 0.3462844491004944, -0.004427363630384207, 0.09422434121370316, -0.04016127064824104, 0.1176779493689537, 0.08206205070018768, -0.038072582334280014, 0.2208336442708969, 0.12450434267520905, -0.022784192115068436, -0.3221161663532257, 0.2822999358177185, 0.1625126451253891, -0.12423127144575119, 0.05151179060339928, 0.1698480248451233, 0.06494590640068054, 0.35281988978385925, 0.1846906691789627, 0.45367172360420227, 0.0004367674991954118, -0.06613319367170334, -0.1742684543132782, -0.5200102925300598, 0.2481520175933838, -0.31779396533966064, 0.15370772778987885, -0.07397108525037766, -0.1496357023715973, 0.28339052200317383, 0.023892425000667572, -0.17688912153244019, 0.012962110340595245, -0.08360706269741058, 0.14725138247013092, 0.3329169750213623, 0.2726941406726837, -0.14757515490055084, 0.14368058741092682, 0.3839891850948334, -0.17511668801307678, 0.08545651286840439, 0.125688374042511, 0.16389420628547668, -0.2880837619304657, -0.054732389748096466, -0.2870214283466339, 0.09641873836517334, 0.21320144832134247, -0.16039560735225677, 0.021921318024396896, 0.38330867886543274, -0.07231850922107697, -0.01622118055820465, 0.03592601791024208, 0.27714332938194275, 0.23817597329616547, 0.3160501718521118, -0.06042126938700676, 0.009201915003359318, -0.011046115309000015, 0.2079138606786728, -0.058552879840135574, -0.09156506508588791, -0.03221684694290161, 0.07018348574638367, 0.2753458619117737, -0.07654528319835663, 0.23088109493255615, -0.2097182422876358, 0.25612136721611023, 0.29563385248184204, 0.052866436541080475, 0.1372470110654831, 0.07916482537984848, 0.4016404151916504, 0.7862676382064819, 0.049004118889570236, -0.17591184377670288, 0.039161987602710724, -0.16004717350006104, 0.3815573751926422, -0.07660471647977829, 0.3648775815963745, -0.23405338823795319, 0.28529584407806396, -0.06138642877340317, -0.018728895112872124, -0.2080346643924713, -0.07534243911504745, 0.20119419693946838, 0.01413449551910162, 0.16619637608528137, -0.16075339913368225, 0.2517767548561096, -0.21429888904094696, -0.0036300206556916237, 0.1522035300731659, 0.10009190440177917, -0.3120241165161133, -0.19166818261146545, -0.11763688921928406, -0.15033163130283356, 0.08871328085660934, -0.22381597757339478, -0.2860089838504791, -0.32313477993011475, 0.5092944502830505, 0.06811096519231796, 0.19346730411052704, -0.4624153971672058, 0.18380621075630188, -0.08212858438491821, -0.4521045386791229, 0.03229929134249687, -0.16447195410728455, -0.6774643659591675, 0.22627577185630798, -0.24239912629127502, -0.24353531002998352, -0.31966784596443176, 0.14362433552742004, -0.06447954475879669, 0.14056652784347534, -0.18240514397621155, -0.18611502647399902, 0.06179111823439598, 0.0786859467625618, -0.04382222518324852, 0.11984127014875412, 0.42116647958755493, -0.14562565088272095, 0.09895993024110794, -0.007525328546762466, -0.011814463883638382, 0.17472408711910248, 0.2913620173931122, 0.21357138454914093, 0.08529843389987946, 0.4512495994567871, 0.13851559162139893, 0.7558053731918335, 0.6317535042762756, 0.2200108766555786, 0.01836099661886692, 0.10048829019069672, 0.23323741555213928, -0.06999219208955765, 0.0299023799598217, 0.46964237093925476, 0.008280770853161812, 0.016515765339136124, 0.21207228302955627, 0.39988628029823303, 0.16866929829120636, -0.1937050223350525, -0.2370023876428604, -0.18649740517139435, -0.14316348731517792, 0.3246113657951355, 0.34300220012664795, 0.14650806784629822, -0.1356242597103119, -0.3484307825565338, -0.17450566589832306, -0.29552626609802246, -0.11503628641366959, 0.10360446572303772, 0.32085153460502625, 0.1508605033159256, -0.5605382919311523, 0.2728155553340912, -0.38790029287338257, 0.0726885050535202, 0.15140296518802643, -0.22916355729103088, 0.02944532223045826, 0.0330016165971756, 0.20582349598407745, -0.13138343393802643, 0.6935654282569885, 0.23628953099250793, -0.20522823929786682, -0.28481099009513855, -0.03591559827327728, -0.29625752568244934, 0.20416313409805298, -0.16182102262973785, 0.5082672834396362, 0.400203675031662, 0.4520648717880249, -0.5513501167297363, -0.2969159781932831, 0.07192043960094452, 0.16760540008544922, -0.1722223162651062, -0.12845006585121155, -0.16602778434753418, -0.20565056800842285, -0.4376530051231384, 0.04722099006175995, 0.22901101410388947, -0.03352968022227287, 0.3272569179534912, -0.23755744099617004, 0.006553806364536285, 0.15674565732479095, 0.1071832925081253, 0.2076040506362915, 0.010836106725037098, 0.08879022300243378, 0.170964777469635, 0.12522149085998535, 0.18003970384597778, 0.07618588209152222, 0.23605981469154358, -0.008258497342467308, 0.12173442542552948, 0.17458169162273407, -0.07396905869245529, 0.5832380056381226, 0.5046693086624146, 0.10777540504932404, -0.23052993416786194, -0.4071764349937439, 0.3388235867023468, -0.4252398908138275, -0.20508259534835815, 0.18551672995090485, -0.1453351229429245, -0.31024450063705444, -0.13647335767745972, 0.5063798427581787, 0.02552364580333233, -0.09997651726007462, 0.07016025483608246, 0.30520784854888916, -0.05529392510652542, 0.3334287106990814, 0.21196249127388, 1.3463045358657837, -0.4943513870239258, 0.33900344371795654, 0.07652761042118073, 0.04727032780647278, 0.5080586075782776, -0.6566590666770935, 0.10132061690092087, -0.3028969466686249, 0.4036853313446045, -0.05217292532324791, -0.1514640897512436, 0.00935776624828577, 0.42828646302223206, -0.451657772064209, 0.08995192497968674, -0.09646698832511902, 0.5072112083435059, -0.23894737660884857, 0.6394400596618652, -0.18914306163787842, -0.435172438621521, -0.5924041271209717, -0.012185047380626202, -0.23953545093536377, -0.2794210910797119, -0.027098365128040314, -0.11961040645837784, -0.14362812042236328, 0.12179717421531677, -0.020217662677168846, -0.17965424060821533, -0.18069933354854584, 0.15668325126171112, 0.20392127335071564, -0.3671697974205017, 0.21743737161159515, 0.19027748703956604, 0.009396414272487164, 0.1367940604686737, -0.031965892761945724, 0.062228113412857056, -0.2395300418138504, -0.2782295048236847, -0.0029733346309512854, 0.03762548789381981, 0.09891140460968018, -0.1177297905087471, -0.22270473837852478, 0.024167679250240326, 0.20379245281219482, -0.06846427172422409, -0.3939569592475891, 0.06211133301258087, 0.22432270646095276, -0.5619933009147644, -0.15152136981487274, 0.059846047312021255, -0.21309024095535278, 0.03522460535168648, -0.04631974175572395, 0.1275067925453186, -0.11431724578142166, 0.34703969955444336, 0.49723950028419495, -0.08260107785463333, 0.03940366581082344, 0.12344024330377579, 0.08427304029464722, -0.24446305632591248, 0.0904160812497139, 0.017551705241203308, -0.14706367254257202, -0.18316033482551575, 0.6808387041091919, -0.12805193662643433, -0.18437474966049194, 0.18176642060279846, -0.1097545325756073, -0.26292434334754944, -0.29362812638282776, -0.1062045469880104, 0.3944661319255829, 0.03466394171118736, 0.24100911617279053, -0.1528390496969223, -0.3036341071128845, 0.3529012203216553, 0.1658291220664978, -0.06421460956335068, 0.019969802349805832, -0.032263435423374176, -0.05367642268538475, 0.4111761748790741, -0.18235497176647186, 0.1870318055152893, -0.028500178828835487, 0.1000976637005806, 0.0070196595042943954, -0.24585197865962982, 0.03495275229215622, -0.0541420541703701, -0.10045700520277023, -0.05872059985995293, -0.3416638672351837, -0.06496228277683258, -0.11265216022729874, 0.2282746434211731, 0.0350273959338665, -0.005163734778761864, -0.1717703938484192, -0.2853640913963318, -0.21569211781024933, -0.12016770988702774, 0.24453268945217133, 0.1376601606607437, 0.2847687602043152, -0.4812830984592438, -0.07003325968980789, -0.27332112193107605, -0.020882489159703255, 0.17649678885936737, 0.24036331474781036, 0.40699517726898193, 0.06574533134698868, 0.11642271280288696, 0.025741323828697205, -0.2583557963371277, -0.12900780141353607, 0.5130085349082947, 0.6452721953392029, -0.04998466745018959, 0.2964616119861603, -0.12055397778749466, -0.0449705496430397, 0.1943705528974533, 0.08874227106571198, 0.3183446526527405, -0.25861144065856934, 0.2076939195394516, -0.0824156180024147, 0.0033087239135056734, -0.004590629134327173, 0.07798498123884201, 0.4187319874763489, -0.06120932474732399, -0.08620517700910568, 0.3684046268463135, 0.05098256468772888, -0.1309061348438263, -0.19613012671470642, 0.09886418282985687, 0.53690505027771, 0.11393892765045166, -0.2775099277496338, -0.13872110843658447, 0.044437628239393234, -0.14001861214637756, 0.37371811270713806, 0.3407341241836548, 0.25380244851112366, 0.12150609493255615, -0.050298888236284256, 0.20657750964164734, -0.033489350229501724, 0.12977193295955658, 0.3383568227291107, 0.14599062502384186, -0.16162866353988647, 0.5025845766067505, 0.18973439931869507, -0.07945042848587036, -0.1083904504776001, 0.732535719871521, 0.20572872459888458, -0.22392132878303528, -0.19514577090740204, 0.21718303859233856, 0.07513854652643204, -0.08240877836942673, -0.16669265925884247, -0.26548144221305847, -0.1495409607887268, 0.12842883169651031, -0.1550433188676834, -0.41214507818222046, 0.33573809266090393, 0.31091684103012085, 0.3543126583099365, -0.001693518366664648, 0.3048437237739563, 0.18832072615623474, 0.27888116240501404, -0.24873048067092896, 0.31723544001579285, 0.24474216997623444, 0.06052815169095993, 0.011371800675988197, 0.27935096621513367, 0.18607871234416962, 0.029033424332737923, -0.33414047956466675, 0.46615758538246155, -0.2991470992565155, -0.059352513402700424, 0.08847591280937195, 0.0756322368979454, 0.1885121762752533, -0.28315412998199463, 0.09319985657930374, -0.06241406500339508, 0.015281316824257374, -0.2855525612831116, 0.2223764955997467, -0.2917845547199249, 0.005701600108295679, -0.32551589608192444, -0.21088169515132904, -0.21243833005428314, -0.03553881496191025, -0.03351668268442154, -0.49375903606414795, -0.14241309463977814, 0.05353302136063576, -0.22262276709079742, 0.15217188000679016, -0.002152662491425872, 0.007837378419935703, -0.12114366143941879, 0.33483293652534485, -0.08537732809782028, -0.012272262014448643, 0.015988769009709358, -0.25677454471588135, -0.11912064254283905, 0.025822069495916367, -0.22189654409885406, 0.09559649974107742, -0.1849515289068222, 0.6031036972999573, 0.08570901304483414, 0.6102772951126099, -0.22746314108371735, 0.001881444943137467, -0.3210492432117462, -0.08156949281692505, -0.41221901774406433, 0.15382549166679382, 0.1515178680419922, 0.5324699282646179, 0.20327100157737732, -0.25921499729156494, 0.4004773497581482, -0.010304286144673824, -0.19343508780002594, -0.1263662576675415, 0.254163920879364, -0.2773370146751404, -0.4143599271774292, 0.02319391258060932, 0.06628333032131195, 0.08577802777290344, 0.03132888302206993, -0.2379295825958252, -0.05082045495510101, -0.0020783820655196905, -0.026558050885796547, 0.14450040459632874, 0.4534955322742462, -0.005960486363619566, -0.35271960496902466, -0.2872931659221649, 0.10726940631866455, 0.20539672672748566, -0.2066517174243927, -0.12180164456367493, -0.03565618395805359, -0.33026227355003357, -0.09697592258453369, 0.17232687771320343, 0.0188209880143404, 0.3120366930961609, -0.3507351875305176, -0.049474798142910004, -0.2220902293920517, -0.048944078385829926, 0.4450855553150177, -0.09502281248569489, -0.2620288133621216, -0.013449812307953835, 0.2686891257762909, 0.1577761471271515, -0.06732161343097687, -0.30391374230384827, 0.21496319770812988, 0.07752478122711182, -0.04270865023136139, -0.20251218974590302, 0.2626701891422272, -0.17575611174106598, -0.25393202900886536, -0.12844616174697876, 0.12564459443092346, -0.08310078084468842, -0.13764305412769318, -0.25623682141304016, -0.19878840446472168 ]
https://github.com/huggingface/datasets/issues/326
Large dataset in Squad2-format
15-20 minutes is fine ! Also there's no RAM limitations as we save to disk every 1000 elements while generating the dataset by default. After generation, the dataset is ready to use with (again) no RAM limitations as we do memory-mapping.
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ?
41
Large dataset in Squad2-format At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ? 15-20 minutes is fine ! Also there's no RAM limitations as we save to disk every 1000 elements while generating the dataset by default. After generation, the dataset is ready to use with (again) no RAM limitations as we do memory-mapping.
[ -0.14090433716773987, -0.2805248200893402, -0.10055749118328094, 0.292508602142334, 0.23439814150333405, -0.06676793843507767, -0.006628106813877821, 0.482718288898468, -0.004640053026378155, 0.10125821083784103, -0.28785860538482666, 0.017063725739717484, -0.24039627611637115, 0.2706013321876526, 0.27786993980407715, -0.07823577523231506, 0.08594547212123871, -0.0013711211504414678, -0.11298011243343353, 0.06853232532739639, 0.12187140434980392, -0.1785973757505417, 0.0677226111292839, -0.16621775925159454, -0.3052949905395508, -0.1456223428249359, -0.15920838713645935, 0.1375635266304016, -0.3753185272216797, -0.37390682101249695, -0.21093297004699707, 0.26128730177879333, 0.2146429866552353, 0.5602197647094727, -0.00012020426947856322, -0.16133126616477966, -0.0782383382320404, -0.3438847064971924, -0.37536710500717163, 0.11457576602697372, -0.10136669129133224, -0.3235395848751068, -0.140128031373024, -0.11043167859315872, -0.20385757088661194, -0.1932174414396286, 0.14007055759429932, -0.33231642842292786, 0.798957884311676, -0.12592485547065735, 0.031723711639642715, -0.03804108873009682, -0.04032646119594574, -0.02426241524517536, 0.2425192892551422, 0.2816528379917145, -0.09640052914619446, 0.018755702301859856, 0.6647375226020813, 0.33540552854537964, -0.17601583898067474, 0.09073568135499954, -0.009859374724328518, -0.1400211751461029, 0.10980807989835739, -0.18422017991542816, -0.1575745940208435, -0.26150375604629517, -0.0657864585518837, 0.2858429253101349, 0.5030136108398438, -0.2781626284122467, -0.1896301656961441, -0.2847791612148285, -0.06582380831241608, 0.11960430443286896, 0.005494088865816593, 0.36059024930000305, -0.08757178485393524, 0.3904542624950409, -0.28513333201408386, -0.43372371792793274, -0.3542931377887726, -0.0511334128677845, 0.27823442220687866, -0.04214857891201973, -0.10957463830709457, 0.03583242744207382, -0.17362938821315765, -0.1611448973417282, -0.10551442950963974, -0.18201693892478943, -0.043558117002248764, 0.1951274275779724, -0.05003904551267624, -0.3236090838909149, -0.12283564358949661, -0.2667887508869171, 0.7373471260070801, 0.23510117828845978, 0.27625608444213867, -0.025291141122579575, 0.22148489952087402, -0.05599549785256386, 0.3499583899974823, 0.0007973614847287536, -0.19839359819889069, -0.395694762468338, 0.19514857232570648, 0.04113905504345894, -0.01474938914179802, -0.10230983793735504, -0.227889746427536, 0.16961298882961273, -0.11137116700410843, -0.2389042228460312, 0.22557269036769867, 0.16246870160102844, 0.0749959796667099, 0.098805733025074, -0.11902342736721039, -0.05641981586813927, 0.15906192362308502, 0.28000500798225403, -0.10087263584136963, 0.10659782588481903, -0.09315613657236099, 0.04269421473145485, 0.2466713935136795, -0.2234206348657608, 0.0033719975035637617, -0.054961081594228745, -0.10676835477352142, 0.2609635889530182, 0.24976851046085358, 0.07870733737945557, 0.06339962035417557, -0.040672317147254944, 0.32547932863235474, -0.2624434232711792, 0.19540317356586456, -0.030090253800153732, 0.055643144994974136, 0.027040358632802963, 0.12141487002372742, 0.07234737277030945, -0.25071707367897034, -0.037362392991781235, -0.271675169467926, 0.06643474102020264, -0.17020317912101746, -0.3618008494377136, -0.036963436752557755, -0.00004284973329049535, -0.2681349813938141, 0.29855117201805115, -0.1272277534008026, 0.3165002465248108, 0.021192559972405434, 0.003334898967295885, -0.07487987726926804, 0.438268780708313, -0.22520887851715088, -0.26183319091796875, 0.07830065488815308, 0.5588117837905884, -0.18502424657344818, -0.0162682943046093, 0.6108695864677429, -0.005992825608700514, -0.3543793559074402, 0.39480718970298767, 0.007589637767523527, 0.1504809558391571, 0.03462514281272888, -0.12789465487003326, 0.2690090835094452, -0.44360673427581787, -0.4289492964744568, 0.5240535140037537, -0.19466933608055115, -0.22466088831424713, 0.4402691423892975, 0.041095271706581116, 0.6278272271156311, -0.24293334782123566, 0.08498451858758926, 0.49869856238365173, -0.022190913558006287, 0.30134597420692444, -0.29487431049346924, -0.3466876149177551, -0.1763307899236679, 0.32279714941978455, -0.23700134456157684, -0.19503889977931976, -0.21472014486789703, 0.27578005194664, 0.11827101558446884, -0.05071445181965828, 0.34580108523368835, -0.06598453968763351, 0.3465012311935425, -0.01897202990949154, -0.10910342633724213, -0.079674132168293, -0.7441951036453247, -0.11723019182682037, -0.048753198236227036, -0.1769839972257614, 0.12425464391708374, -0.3950255811214447, -0.24378107488155365, -0.02725299634039402, -0.07538414001464844, -0.038958389312028885, -0.0110306516289711, -0.14660599827766418, 0.24310444295406342, -0.06242881342768669, -0.4239647090435028, 0.21987803280353546, 0.03126850724220276, 0.10887589305639267, -0.051749031990766525, 0.11048192530870438, 0.10836601257324219, 0.0403880812227726, 0.2250184267759323, 0.1406443566083908, -0.04524825140833855, -0.28439995646476746, 0.3054424822330475, 0.12634971737861633, -0.11566703021526337, 0.03385768458247185, 0.09394410997629166, 0.12442890554666519, 0.32056671380996704, 0.21318788826465607, 0.3468073308467865, -0.014820520766079426, -0.05811874195933342, -0.2420777976512909, -0.5757749676704407, 0.28144538402557373, -0.32027870416641235, 0.18569442629814148, -0.10162940621376038, -0.19213251769542694, 0.3548845946788788, 0.022458814084529877, -0.21675069630146027, 0.020305708050727844, -0.09390893578529358, 0.16470889747142792, 0.40101584792137146, 0.23147910833358765, -0.13959932327270508, 0.11832945793867111, 0.4107496738433838, -0.16983963549137115, 0.08595733344554901, 0.12950284779071808, 0.11128295212984085, -0.22527506947517395, -0.000722908356692642, -0.3508843779563904, 0.1351926624774933, 0.19907057285308838, -0.1331205517053604, -0.004566095303744078, 0.4250625669956207, -0.12961052358150482, -0.06791719794273376, -0.0029470683075487614, 0.2279086410999298, 0.2689402997493744, 0.4185393750667572, -0.12494664639234543, 0.04093769192695618, -0.06802567839622498, 0.18839849531650543, -0.025745315477252007, -0.09174054116010666, -0.018723342567682266, 0.1817599982023239, 0.27004432678222656, 0.013142070733010769, 0.24493908882141113, -0.1544841229915619, 0.255769819021225, 0.31787845492362976, 0.11296308785676956, 0.027743084356188774, 0.055584926158189774, 0.32202616333961487, 0.7086120843887329, 0.10924212634563446, -0.3408535420894623, 0.027089636772871017, -0.21121026575565338, 0.4393977224826813, -0.05490431189537048, 0.42860540747642517, -0.31809690594673157, 0.2616630792617798, -0.035495586693286896, -0.004236234351992607, -0.17110073566436768, -0.08901610970497131, 0.21542571485042572, 0.04971268028020859, 0.2052060216665268, -0.11795646697282791, 0.3070603609085083, -0.20299680531024933, -0.00464287493377924, 0.17930811643600464, 0.10944091528654099, -0.2314155399799347, -0.14097125828266144, -0.06247910112142563, -0.13985981047153473, 0.0873497873544693, -0.17045842111110687, -0.21060098707675934, -0.3970167338848114, 0.5515090823173523, 0.08069323003292084, 0.09401731938123703, -0.40903159976005554, 0.18045853078365326, -0.12394923716783524, -0.4157424569129944, 0.05095057561993599, -0.14543230831623077, -0.7269209623336792, 0.2046375423669815, -0.18911701440811157, -0.22771719098091125, -0.32758626341819763, 0.07791830599308014, -0.030490055680274963, 0.07898988574743271, -0.3037669360637665, -0.20165830850601196, 0.08689222484827042, 0.14348521828651428, -0.04712963104248047, 0.08975178748369217, 0.3968959450721741, -0.1114342138171196, 0.09005067497491837, 0.05834941193461418, -0.011275121010839939, 0.13752484321594238, 0.2120562642812729, 0.24837426841259003, -0.009163453243672848, 0.445804625749588, 0.182114377617836, 0.7829386591911316, 0.4851696491241455, 0.21968044340610504, 0.05422632023692131, 0.17270180583000183, 0.2754829227924347, -0.10151485353708267, 0.019838523119688034, 0.44249919056892395, 0.034232210367918015, -0.03144232928752899, 0.18027730286121368, 0.39199066162109375, 0.10980790853500366, -0.20567640662193298, -0.29547467827796936, -0.1570942997932434, -0.21634149551391602, 0.3759022057056427, 0.4015352427959442, 0.13936200737953186, -0.05243166908621788, -0.2696838676929474, -0.14109253883361816, -0.29124993085861206, -0.12081487476825714, 0.13478708267211914, 0.41748279333114624, 0.11333128064870834, -0.5920683741569519, 0.307525098323822, -0.3974328935146332, 0.0312746986746788, 0.03254365175962448, -0.25283387303352356, -0.012198243290185928, -0.005141169298440218, 0.166762575507164, -0.14273911714553833, 0.6802510023117065, 0.23279055953025818, -0.04490179941058159, -0.19842815399169922, -0.02446378767490387, -0.32513758540153503, 0.2406821995973587, -0.14633996784687042, 0.4969028830528259, 0.46525654196739197, 0.4515282213687897, -0.5926412343978882, -0.22588959336280823, 0.012884275987744331, 0.1392446756362915, -0.19686545431613922, -0.21280959248542786, -0.14842373132705688, -0.21824434399604797, -0.47543075680732727, 0.1036968007683754, 0.23830945789813995, -0.043960630893707275, 0.35548847913742065, -0.0784153938293457, -0.019368380308151245, 0.16242027282714844, 0.04492444545030594, 0.2307017743587494, -0.048496246337890625, 0.08340522646903992, 0.20239001512527466, 0.12782779335975647, 0.17260628938674927, 0.10327713936567307, 0.2818623483181, 0.03370381146669388, 0.09031992405653, 0.12331867218017578, -0.008521961979568005, 0.4882115125656128, 0.5183208584785461, 0.14350850880146027, -0.1499520242214203, -0.45154061913490295, 0.3554842472076416, -0.4063180387020111, -0.12958469986915588, 0.1299925148487091, -0.15233342349529266, -0.34323880076408386, -0.17759551107883453, 0.4651438593864441, -0.061324119567871094, -0.11519668251276016, -0.012669969350099564, 0.24848076701164246, -0.03580640256404877, 0.3706614077091217, 0.10629397630691528, 1.289374589920044, -0.44148704409599304, 0.3910544216632843, 0.07521737366914749, 0.051556769758462906, 0.516664445400238, -0.7395318746566772, 0.06856533139944077, -0.3477134108543396, 0.3740770220756531, 0.007249939721077681, -0.17917805910110474, -0.03986973688006401, 0.4383756220340729, -0.3424455225467682, 0.10810935497283936, -0.13841131329536438, 0.4814700782299042, -0.26096007227897644, 0.7284738421440125, -0.1351393163204193, -0.38966792821884155, -0.578643798828125, 0.01515803299844265, -0.23967035114765167, -0.20959056913852692, -0.07108872383832932, -0.1450629085302353, -0.07715179771184921, 0.08426517993211746, -0.06116428226232529, -0.24905012547969818, -0.12704871594905853, 0.10895117372274399, 0.20764337480068207, -0.36851581931114197, 0.27511096000671387, 0.20314566791057587, -0.040328189730644226, 0.27385470271110535, -0.04968938231468201, 0.14295580983161926, -0.2844424545764923, -0.23632580041885376, 0.029013916850090027, 0.03748457133769989, 0.14953437447547913, -0.09594813734292984, -0.2634091079235077, 0.09295085817575455, 0.14973823726177216, -0.054479796439409256, -0.397957980632782, 0.12475696951150894, 0.20535238087177277, -0.5689494609832764, -0.2819286286830902, -0.017831996083259583, -0.26183056831359863, 0.07517801970243454, -0.02530054748058319, 0.1577107310295105, -0.07358725368976593, 0.2400551438331604, 0.49157434701919556, -0.09099716693162918, -0.0074915834702551365, 0.18206281960010529, -0.0016045215306803584, -0.24295473098754883, 0.17020082473754883, 0.11879974603652954, -0.144297257065773, -0.19691839814186096, 0.6800795793533325, -0.010540041141211987, -0.18470284342765808, 0.14049634337425232, -0.0037363688461482525, -0.2887127697467804, -0.3659246861934662, -0.20993439853191376, 0.3386262059211731, -0.060894496738910675, 0.3054250180721283, -0.1639450490474701, -0.369194358587265, 0.3123014271259308, 0.18571874499320984, -0.08900971710681915, 0.09125904738903046, -0.03166535124182701, -0.06566188484430313, 0.3900143504142761, -0.2072119265794754, 0.20370174944400787, -0.0131298266351223, 0.09369444847106934, -0.015510901808738708, -0.2478199452161789, 0.07413681596517563, -0.13203367590904236, -0.07397624105215073, -0.0639435201883316, -0.37551549077033997, -0.11190089583396912, -0.14305159449577332, 0.2250720113515854, 0.04962349310517311, -0.07599710673093796, -0.11694232374429703, -0.3477761149406433, -0.18398961424827576, -0.12198004126548767, 0.27526867389678955, 0.17193476855754852, 0.29443249106407166, -0.48317864537239075, -0.1036856546998024, -0.28740862011909485, -0.023217955604195595, 0.2090698629617691, 0.22858040034770966, 0.4083462655544281, 0.1109556257724762, 0.09946828335523605, 0.051756203174591064, -0.19897133111953735, -0.026535656303167343, 0.5146835446357727, 0.6444925665855408, 0.09732883423566818, 0.3506828248500824, -0.1245427206158638, -0.00845283456146717, 0.18096554279327393, 0.12101135402917862, 0.28794851899147034, -0.27910223603248596, 0.2501029074192047, -0.04253009334206581, 0.05094888433814049, -0.04657072201371193, 0.0771985575556755, 0.380214124917984, 0.0022432124242186546, 0.014266932383179665, 0.34881648421287537, -0.012090659700334072, -0.06252474337816238, -0.16032207012176514, 0.15118157863616943, 0.5711215734481812, 0.22387945652008057, -0.2705695629119873, -0.12461290508508682, -0.044925130903720856, -0.1669440120458603, 0.3977624773979187, 0.3459731936454773, 0.27946966886520386, 0.0859215036034584, 0.009336501359939575, 0.1830572783946991, -0.01910102367401123, 0.0822952389717102, 0.24794480204582214, 0.031027792021632195, -0.1983710527420044, 0.41283008456230164, 0.26622945070266724, -0.06672979891300201, -0.10311374068260193, 0.6514553427696228, 0.296840637922287, -0.1370079666376114, -0.16086341440677643, 0.16976478695869446, 0.04290773347020149, -0.14302147924900055, -0.1048247441649437, -0.2766437232494354, -0.155035138130188, 0.15105850994586945, -0.22876553237438202, -0.461000919342041, 0.20585189759731293, 0.26247745752334595, 0.3755551278591156, -0.021210646256804466, 0.36532026529312134, 0.1804882287979126, 0.22091014683246613, -0.21415475010871887, 0.3091769218444824, 0.2817089855670929, 0.12662632763385773, 0.12676921486854553, 0.20184768736362457, 0.17273202538490295, -0.00630695465952158, -0.3402140736579895, 0.4396522045135498, -0.3761484920978546, -0.05352618545293808, -0.05026019364595413, 0.10687143355607986, 0.20751862227916718, -0.27974241971969604, 0.17319807410240173, -0.02487841248512268, -0.036481667309999466, -0.20878401398658752, 0.22894302010536194, -0.3709002137184143, -0.04125159978866577, -0.3318806290626526, -0.22460520267486572, -0.25193700194358826, -0.08649196475744247, -0.12849289178848267, -0.45535483956336975, -0.09987882524728775, 0.13385087251663208, -0.18394626677036285, 0.25261029601097107, -0.044152338057756424, 0.01092805527150631, -0.13011102378368378, 0.3143855035305023, -0.0782681554555893, -0.04878229647874832, -0.052788980305194855, -0.19891870021820068, -0.20171618461608887, 0.023276876658201218, -0.28421449661254883, 0.15400224924087524, -0.1881956160068512, 0.5003311634063721, 0.12178363651037216, 0.5847203731536865, -0.24006716907024384, 0.07081037014722824, -0.3883971571922302, -0.05369227007031441, -0.3941105008125305, 0.08061469346284866, 0.044823337346315384, 0.5533944964408875, 0.1747603863477707, -0.23003357648849487, 0.278618186712265, 0.06506805866956711, -0.1497410535812378, -0.16048210859298706, 0.21791687607765198, -0.31974250078201294, -0.4120728671550751, 0.12254402041435242, 0.04655929282307625, 0.08459540456533432, 0.0053305248729884624, -0.24206912517547607, -0.13294130563735962, -0.037304289638996124, -0.005069294478744268, 0.19645161926746368, 0.3821806013584137, 0.055850353091955185, -0.33677759766578674, -0.34998619556427, 0.07383360713720322, 0.12019868940114975, -0.2507040798664093, -0.14657315611839294, -0.1684754192829132, -0.30808261036872864, -0.17480306327342987, 0.2735370695590973, -0.07024320960044861, 0.34937843680381775, -0.38274016976356506, -0.026194313541054726, -0.2011384218931198, -0.05836765468120575, 0.5014263987541199, -0.1039113849401474, -0.27148109674453735, 0.07848498970270157, 0.19433794915676117, 0.15415872633457184, -0.04689667373895645, -0.3567608594894409, 0.2978198230266571, 0.08585933595895767, -0.038160331547260284, -0.2461089789867401, 0.17440205812454224, -0.21128983795642853, -0.2963830530643463, -0.1303199678659439, 0.174608051776886, -0.05115335062146187, -0.13879571855068207, -0.27191221714019775, -0.1896784007549286 ]
https://github.com/huggingface/datasets/issues/326
Large dataset in Squad2-format
Wow, that sounds pretty cool. Actually I have the problem of running out of memory while tokenization on our local machine. That wouldn't happen again, would it ?
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ?
28
Large dataset in Squad2-format At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ? Wow, that sounds pretty cool. Actually I have the problem of running out of memory while tokenization on our local machine. That wouldn't happen again, would it ?
[ -0.004864018876105547, -0.23592416942119598, -0.06830388307571411, 0.29932284355163574, 0.2564290761947632, -0.11595671623945236, 0.019138112664222717, 0.4660223722457886, -0.09819931536912918, 0.15328150987625122, -0.2599279284477234, 0.029208190739154816, -0.24323473870754242, 0.25091809034347534, 0.30116984248161316, -0.048041023313999176, 0.1664877086877823, -0.017504703253507614, -0.035458412021398544, 0.05787893384695053, 0.15244141221046448, -0.12134067714214325, 0.050219085067510605, -0.11216817796230316, -0.3433029353618622, -0.14102019369602203, -0.22272087633609772, 0.11543411016464233, -0.38292646408081055, -0.39953288435935974, -0.31369510293006897, 0.2566601037979126, 0.24174435436725616, 0.5677552819252014, -0.00012270797742530704, -0.20185934007167816, -0.08838388323783875, -0.3403649926185608, -0.3112190365791321, 0.054558996111154556, -0.0006787686725147069, -0.34389713406562805, -0.11720797419548035, -0.10907717049121857, -0.1672709435224533, -0.26211291551589966, 0.10459640622138977, -0.2872924506664276, 0.802390992641449, -0.1858517825603485, 0.016492648050189018, -0.016265608370304108, -0.1020800843834877, 0.07463139295578003, 0.1943792998790741, 0.32183966040611267, -0.04024757817387581, -0.014387309551239014, 0.6634311676025391, 0.2563702464103699, -0.15576986968517303, 0.09791138768196106, -0.03299572318792343, -0.16365690529346466, 0.050646599382162094, -0.15666522085666656, -0.17829225957393646, -0.19819645583629608, -0.003900749608874321, 0.17838454246520996, 0.39814749360084534, -0.33002573251724243, -0.13733898103237152, -0.24055759608745575, -0.1100013256072998, 0.05676686391234398, 0.027938425540924072, 0.3217494785785675, -0.09838075190782547, 0.3943793475627899, -0.30181923508644104, -0.42617836594581604, -0.34790346026420593, -0.008125761523842812, 0.1863977611064911, 0.07474113255739212, -0.11239848285913467, 0.016232945024967194, -0.21075312793254852, -0.2084161937236786, -0.17503318190574646, -0.12127137929201126, -0.05627557262778282, 0.18577656149864197, -0.029453536495566368, -0.3806009888648987, -0.17697657644748688, -0.33442357182502747, 0.7397295832633972, 0.24079345166683197, 0.20411059260368347, 0.0006112467381171882, 0.2247769832611084, -0.02350432425737381, 0.4215126633644104, 0.03397698327898979, -0.16068410873413086, -0.285478800535202, 0.17695587873458862, -0.07671982049942017, 0.007157782092690468, -0.1267492026090622, -0.2901684045791626, 0.2594226002693176, -0.11997883021831512, -0.19852718710899353, 0.20788653194904327, 0.11814732104539871, 0.12500864267349243, 0.14590317010879517, -0.15320682525634766, -0.00048020394751802087, 0.19263440370559692, 0.2919618487358093, -0.09992560744285583, 0.12519828975200653, -0.15550415217876434, 0.013286028988659382, 0.19412337243556976, -0.22000066936016083, 0.015187272801995277, -0.048892565071582794, -0.14267247915267944, 0.27750927209854126, 0.1601988971233368, 0.1904589682817459, 0.055061787366867065, -0.03130276873707771, 0.34542641043663025, -0.33161360025405884, 0.17181767523288727, -0.012087661772966385, 0.09186926484107971, -0.0871027410030365, 0.09667471051216125, 0.10719600319862366, -0.18601320683956146, -0.06345492601394653, -0.2804773151874542, 0.028611470013856888, -0.15907378494739532, -0.28591421246528625, -0.08997125178575516, -0.013199831359088421, -0.2573433220386505, 0.2753238379955292, -0.15569908916950226, 0.33707669377326965, 0.04335447773337364, 0.027619296684861183, -0.07604213058948517, 0.41773632168769836, -0.19962699711322784, -0.24687892198562622, 0.0862547904253006, 0.5264921188354492, -0.21275150775909424, -0.058916814625263214, 0.7256125807762146, 0.003910939674824476, -0.23238377273082733, 0.45220667123794556, 0.03411957249045372, 0.09965033084154129, 0.03302290290594101, 0.017121275886893272, 0.1975429207086563, -0.5084145665168762, -0.3917008936405182, 0.4872528910636902, -0.27109622955322266, -0.28882795572280884, 0.4501456320285797, -0.002179814502596855, 0.7244879007339478, -0.17798547446727753, 0.12482400238513947, 0.4527077078819275, -0.011206541210412979, 0.2866781949996948, -0.3418317437171936, -0.35177081823349, -0.14327478408813477, 0.21455982327461243, -0.24767009913921356, -0.2337247133255005, -0.16784611344337463, 0.3443204462528229, 0.1442347764968872, -0.03703806549310684, 0.3658798933029175, -0.1258072853088379, 0.4081769585609436, 0.0815369263291359, -0.10751540958881378, -0.045349493622779846, -0.6363101005554199, -0.17591546475887299, -0.06689734011888504, -0.20457346737384796, 0.08754672855138779, -0.4391719698905945, -0.2339891493320465, -0.03972076624631882, -0.0037449984811246395, -0.022771915420889854, -0.010500445030629635, -0.07216902077198029, 0.19759154319763184, 0.04165191575884819, -0.4777798354625702, 0.10277963429689407, 0.06819857656955719, 0.09194424748420715, 0.06773691624403, 0.1153930127620697, 0.06357375532388687, -0.02780584804713726, 0.18356195092201233, 0.16944384574890137, 0.013266396708786488, -0.27618369460105896, 0.3075847029685974, 0.13654932379722595, -0.13761170208454132, 0.07711749523878098, 0.06437110155820847, 0.18853040039539337, 0.36776384711265564, 0.24714341759681702, 0.3335397243499756, -0.035948071628808975, -0.07959668338298798, -0.19564872980117798, -0.4011135399341583, 0.28232550621032715, -0.2059861272573471, 0.16073137521743774, -0.10876554995775223, -0.16308963298797607, 0.3603009283542633, 0.02713192068040371, -0.17650191485881805, -0.007229692302644253, -0.10800768435001373, 0.13864879310131073, 0.3167693614959717, 0.20052050054073334, -0.10991540551185608, 0.1504921019077301, 0.4193861782550812, -0.16624262928962708, 0.14107751846313477, 0.08609739691019058, 0.0657813549041748, -0.21050678193569183, 0.07314024120569229, -0.4206049144268036, 0.11613712459802628, 0.19162173569202423, -0.11243311315774918, 0.017466997727751732, 0.4644151031970978, -0.10691726207733154, -0.054423172026872635, 0.061502065509557724, 0.11198633164167404, 0.20680271089076996, 0.37838470935821533, -0.15154388546943665, 0.06326130032539368, -0.061313480138778687, 0.1851516216993332, -0.018007732927799225, -0.12558172643184662, 0.012213562615215778, 0.038426533341407776, 0.21402515470981598, -0.03231493756175041, 0.19934453070163727, -0.133793443441391, 0.23526932299137115, 0.3411099314689636, 0.12738744914531708, -0.004149377811700106, 0.04756205156445503, 0.3337066173553467, 0.7932169437408447, 0.0033720554783940315, -0.24340616166591644, 0.06023728847503662, -0.27330896258354187, 0.3194567561149597, -0.08893425017595291, 0.4855743646621704, -0.35998502373695374, 0.3138056695461273, 0.0023287725634872913, -0.02711978740990162, -0.19544684886932373, -0.12368277460336685, 0.25140121579170227, 0.05950510874390602, 0.12280895560979843, -0.18114298582077026, 0.2243698537349701, -0.3469938337802887, -0.06196269765496254, 0.1353171020746231, 0.04414573684334755, -0.2819417417049408, -0.14780986309051514, -0.020760096609592438, -0.10532955080270767, 0.07898908108472824, -0.15574881434440613, -0.2638143301010132, -0.3474763333797455, 0.5619252920150757, 0.049566179513931274, 0.09183450043201447, -0.42696747183799744, 0.12378934025764465, -0.033659789711236954, -0.4764591157436371, -0.044266339391469955, -0.20647688210010529, -0.690693199634552, 0.1290423423051834, -0.2044297605752945, -0.17913274466991425, -0.25710588693618774, 0.13407546281814575, -0.010561061091721058, 0.026632890105247498, -0.28651756048202515, -0.21641750633716583, 0.17341545224189758, 0.06568107008934021, -0.05732475966215134, 0.1034618392586708, 0.3878519833087921, -0.11015141755342484, 0.06789349019527435, 0.08969437330961227, 0.018847396597266197, 0.12145430594682693, 0.1467280238866806, 0.2475128322839737, -0.013569772243499756, 0.4285879135131836, 0.2638728618621826, 0.7901017069816589, 0.39157649874687195, 0.19709743559360504, 0.08346313238143921, 0.10332097113132477, 0.27672359347343445, -0.004627324640750885, -0.011078694835305214, 0.4460400640964508, 0.04928326979279518, -0.06393706053495407, 0.24060063064098358, 0.3872219920158386, 0.1359604001045227, -0.16082660853862762, -0.3288196325302124, -0.15506936609745026, -0.2619348168373108, 0.38431811332702637, 0.3602469563484192, 0.09987539052963257, -0.06691481173038483, -0.263720840215683, -0.1609504520893097, -0.34866464138031006, -0.09121761471033096, 0.12585751712322235, 0.3103364109992981, 0.15960310399532318, -0.6825465559959412, 0.3048115074634552, -0.3812502920627594, 0.07326740771532059, 0.0437283031642437, -0.12440241128206253, -0.03099508211016655, -0.04068247228860855, 0.17861682176589966, -0.13284052908420563, 0.6704144477844238, 0.36260896921157837, -0.11619053781032562, -0.25796669721603394, -0.10844656080007553, -0.2668244242668152, 0.1988123208284378, -0.12253900617361069, 0.46093642711639404, 0.45952823758125305, 0.47180992364883423, -0.5613799691200256, -0.2062011957168579, -0.06607971340417862, 0.08684656023979187, -0.20862853527069092, -0.13418027758598328, -0.1570613533258438, -0.1778687685728073, -0.5508040189743042, 0.10234787315130234, 0.27209141850471497, -0.04120417684316635, 0.3813018202781677, -0.1734066605567932, 0.008524518460035324, 0.029800673946738243, 0.08935555070638657, 0.21837304532527924, -0.01540741790086031, 0.11483323574066162, 0.0835980474948883, 0.16946066915988922, 0.2123952955007553, 0.1255592405796051, 0.14729231595993042, 0.10053303837776184, 0.051870089024305344, 0.13559189438819885, 0.03174059838056564, 0.6307212710380554, 0.5391392707824707, 0.1274534910917282, -0.03740325942635536, -0.48055335879325867, 0.31211742758750916, -0.4224776327610016, -0.031659647822380066, 0.08858737349510193, -0.1388896107673645, -0.30142754316329956, -0.0881083682179451, 0.37303343415260315, -0.014016666449606419, -0.12007281184196472, 0.04961661994457245, 0.2515343129634857, -0.10554417967796326, 0.4523075819015503, 0.10320785641670227, 1.3929845094680786, -0.4514721632003784, 0.4316117465496063, 0.026673903688788414, 0.06585118174552917, 0.6378911733627319, -0.8194288015365601, 0.07537204772233963, -0.35538250207901, 0.48452088236808777, 0.02798357792198658, -0.10895039886236191, -0.07160578668117523, 0.39807137846946716, -0.31128713488578796, 0.09310396760702133, -0.17937062680721283, 0.5494171380996704, -0.30383357405662537, 0.6470794081687927, -0.11585545539855957, -0.38887691497802734, -0.5553722381591797, 0.0002269680262543261, -0.22265011072158813, -0.26177334785461426, -0.12317429482936859, -0.07633619755506516, -0.09875854104757309, 0.07659546285867691, -0.018999923020601273, -0.2811447083950043, -0.13064011931419373, 0.18321950733661652, 0.19065110385417938, -0.2936607897281647, 0.17895950376987457, 0.15916216373443604, 0.024565689265727997, 0.3643530607223511, -0.04034067690372467, 0.07436255365610123, -0.27977821230888367, -0.2025129348039627, 0.027377018705010414, 0.001368838595226407, 0.13154062628746033, -0.09157954901456833, -0.2976230978965759, 0.13419842720031738, 0.27773284912109375, -0.09076167643070221, -0.5014797449111938, 0.12734666466712952, 0.3642627000808716, -0.5198197364807129, -0.20967945456504822, -0.035566750913858414, -0.2438260316848755, 0.07295568287372589, -0.03208625689148903, 0.1741945743560791, -0.1531541645526886, 0.22725757956504822, 0.517020583152771, -0.04521055892109871, 0.012019279412925243, 0.1995546668767929, -0.08531319350004196, -0.36730334162712097, 0.22371935844421387, 0.06137613579630852, -0.11423366516828537, -0.16855525970458984, 0.682654619216919, 0.009707300923764706, -0.12100467085838318, 0.07462435960769653, 0.003824589541181922, -0.3500797748565674, -0.38962146639823914, -0.12434367090463638, 0.39011523127555847, -0.04133738949894905, 0.27555498480796814, -0.1811114102602005, -0.4285432994365692, 0.3383805453777313, 0.11083388328552246, -0.06194942817091942, 0.16989795863628387, 0.10885807126760483, -0.17577581107616425, 0.3394363522529602, -0.1865459531545639, 0.17288967967033386, -0.1168103888630867, 0.10828616470098495, -0.05405415967106819, -0.21860484778881073, -0.007294220384210348, -0.11370652914047241, -0.09557802975177765, 0.03970756754279137, -0.2682877779006958, -0.09033423662185669, -0.1170664131641388, 0.24066698551177979, 0.11143891513347626, -0.04613620042800903, -0.1293836534023285, -0.26413050293922424, -0.09552329778671265, -0.11170845478773117, 0.22258171439170837, 0.24591012299060822, 0.2900201380252838, -0.4254913330078125, -0.07746857404708862, -0.24992212653160095, 0.007511583156883717, 0.16988271474838257, 0.3039041757583618, 0.40210428833961487, 0.11703397333621979, 0.09787456691265106, 0.041718944907188416, -0.1809552013874054, -0.0057736667804419994, 0.5137698650360107, 0.7084445953369141, 0.09023644030094147, 0.24844512343406677, -0.05229096859693527, -0.052619561553001404, 0.18717242777347565, -0.008821086958050728, 0.28164801001548767, -0.2950817346572876, 0.15949073433876038, 0.16310279071331024, 0.038095347583293915, 0.03176336735486984, 0.0598825104534626, 0.36370936036109924, -0.021535636857151985, -0.08393605798482895, 0.3634064495563507, 0.03869635611772537, -0.09154026955366135, -0.1826542317867279, 0.12322141230106354, 0.575181782245636, 0.21441417932510376, -0.27306556701660156, -0.2374287098646164, -0.12757931649684906, -0.1843094676733017, 0.3792662024497986, 0.2954370975494385, 0.26621153950691223, 0.07175355404615402, -0.04464680328965187, 0.21548934280872345, -0.059989575296640396, 0.1828858107328415, 0.2250169962644577, 0.0842261016368866, -0.22621341049671173, 0.33780592679977417, 0.3512507975101471, -0.028764115646481514, -0.12931345403194427, 0.6900848150253296, 0.3549061417579651, -0.1810750663280487, -0.08347387611865997, 0.2515953481197357, 0.0005791547009721398, -0.12178028374910355, -0.14447255432605743, -0.24409078061580658, -0.11946006119251251, 0.13712555170059204, -0.16534534096717834, -0.4723704159259796, 0.1429692804813385, 0.3088831603527069, 0.3158620595932007, -0.022773457691073418, 0.3322767913341522, 0.2209160029888153, 0.2178192138671875, -0.23525549471378326, 0.3177052438259125, 0.2284150868654251, 0.20806452631950378, 0.13354870676994324, 0.15968471765518188, 0.1499285101890564, 0.04689192771911621, -0.2949414551258087, 0.4081042408943176, -0.4388061463832855, 0.015448435209691525, -0.0470498763024807, 0.15847335755825043, 0.195210263133049, -0.269292414188385, 0.0826454758644104, -0.04524192959070206, -0.016630645841360092, -0.2600588798522949, 0.2939870357513428, -0.40367674827575684, -0.02067718654870987, -0.25535303354263306, -0.19373558461666107, -0.24146264791488647, -0.09636641293764114, -0.13527701795101166, -0.5302700996398926, -0.09243950247764587, 0.139796644449234, -0.1652863770723343, 0.2769562602043152, -0.06407476961612701, 0.00003548949825926684, -0.071173757314682, 0.2686168849468231, -0.06790884584188461, -0.10232742875814438, -0.07632439583539963, -0.18582415580749512, -0.20310579240322113, 0.148870050907135, -0.23746640980243683, 0.13688795268535614, -0.2526894509792328, 0.4799545109272003, 0.14381174743175507, 0.5463252663612366, -0.35314786434173584, 0.13955050706863403, -0.43239161372184753, -0.13349498808383942, -0.4240528345108032, 0.16006843745708466, 0.06287315487861633, 0.5529720783233643, 0.20934775471687317, -0.16004596650600433, 0.28176388144493103, 0.041694603860378265, -0.18447162210941315, -0.16372886300086975, 0.19663114845752716, -0.3929290771484375, -0.4286782145500183, 0.14122596383094788, 0.07234556972980499, 0.10668390989303589, 0.06557927280664444, -0.20568892359733582, -0.15749111771583557, -0.043248455971479416, -0.05867430195212364, 0.15557554364204407, 0.3227592408657074, -0.03239695727825165, -0.3471822738647461, -0.3678293228149414, 0.01142061222344637, 0.1143781840801239, -0.2356736660003662, -0.1969190239906311, -0.11253045499324799, -0.2713986039161682, -0.15147511661052704, 0.2202931046485901, -0.1036950871348381, 0.39745721220970154, -0.3559355139732361, 0.04803089052438736, -0.24334287643432617, -0.06455747038125992, 0.45853519439697266, -0.1786566823720932, -0.3056342899799347, 0.0793503150343895, 0.24479620158672333, 0.21346943080425262, -0.07338184863328934, -0.4194628596305847, 0.262664794921875, 0.08044582605361938, 0.04474260285496712, -0.21341124176979065, 0.13627630472183228, -0.22023619711399078, -0.295200377702713, -0.11719353497028351, 0.12708447873592377, -0.0512983575463295, -0.07082849740982056, -0.16705916821956635, -0.19087094068527222 ]
https://github.com/huggingface/datasets/issues/326
Large dataset in Squad2-format
You can do the tokenization step using `my_tokenized_dataset = my_dataset.map(my_tokenize_function)` that writes the tokenized texts on disk as well. And then `my_tokenized_dataset` will be a memory-mapped dataset too, so you should be fine :)
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ?
34
Large dataset in Squad2-format At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ? You can do the tokenization step using `my_tokenized_dataset = my_dataset.map(my_tokenize_function)` that writes the tokenized texts on disk as well. And then `my_tokenized_dataset` will be a memory-mapped dataset too, so you should be fine :)
[ -0.03584766015410423, -0.2477777600288391, -0.05870012193918228, 0.2463892698287964, 0.27250826358795166, -0.08004938811063766, 0.03257680684328079, 0.41994747519493103, -0.129150390625, 0.040696077048778534, -0.2698204517364502, 0.10341151803731918, -0.2411331981420517, 0.21754945814609528, 0.2678764760494232, -0.0001750510564306751, 0.16604411602020264, -0.03815445676445961, 0.020572267472743988, 0.10603930056095123, 0.13646858930587769, -0.09837134182453156, 0.0692259669303894, -0.0980449989438057, -0.3837282955646515, -0.2225388139486313, -0.21140243113040924, 0.06741971522569656, -0.3816426396369934, -0.435484379529953, -0.2983788251876831, 0.2929072976112366, 0.2630600035190582, 0.542413592338562, -0.00012243830133229494, -0.21228788793087006, -0.08220921456813812, -0.3558514714241028, -0.33337488770484924, 0.06224152073264122, -0.019277852028608322, -0.34544631838798523, -0.11171373724937439, -0.12661339342594147, -0.15777599811553955, -0.2789113521575928, 0.12719477713108063, -0.25557127594947815, 0.8061008453369141, -0.15316613018512726, 0.021449552848935127, -0.021572653204202652, -0.04817945510149002, 0.051800698041915894, 0.19183288514614105, 0.3268032670021057, -0.0728117823600769, -0.0447106771171093, 0.6106308698654175, 0.29841348528862, -0.1840120553970337, 0.12004399299621582, -0.08512041717767715, -0.14985066652297974, 0.10968781262636185, -0.1629781275987625, -0.17040015757083893, -0.1921742707490921, -0.023778092116117477, 0.20371697843074799, 0.422200083732605, -0.3385152220726013, -0.18622219562530518, -0.33051371574401855, -0.1230705976486206, 0.050873562693595886, 0.035025425255298615, 0.3019016683101654, 0.006019987631589174, 0.3412303924560547, -0.3143235743045807, -0.4462244510650635, -0.3264683187007904, -0.013106022961437702, 0.1752535104751587, 0.10360826551914215, -0.12564775347709656, 0.02529420331120491, -0.19961455464363098, -0.21402063965797424, -0.14389991760253906, -0.13323795795440674, -0.06552423536777496, 0.18860898911952972, -0.04636341333389282, -0.3719005882740021, -0.20800258219242096, -0.3558420240879059, 0.7443714141845703, 0.25020983815193176, 0.18252627551555634, -0.004442630801349878, 0.17864741384983063, -0.01801016926765442, 0.34760090708732605, 0.07919633388519287, -0.13441859185695648, -0.22288255393505096, 0.20562013983726501, -0.06920422613620758, 0.044173091650009155, -0.16263042390346527, -0.2966940402984619, 0.3006074130535126, -0.10875733196735382, -0.20922984182834625, 0.14976447820663452, 0.12479881197214127, 0.08625005930662155, 0.12205285578966141, -0.14600257575511932, 0.012511503882706165, 0.16125261783599854, 0.3237174451351166, -0.06065547466278076, 0.1013338640332222, -0.1591726541519165, 0.07910635322332382, 0.25103121995925903, -0.13933095335960388, 0.02030407451093197, -0.08260003477334976, -0.07558806240558624, 0.28262650966644287, 0.16921062767505646, 0.19163835048675537, 0.10673945397138596, -0.09486666321754456, 0.35119926929473877, -0.3164996802806854, 0.19821438193321228, -0.043366868048906326, 0.11725784838199615, -0.053599778562784195, 0.15178416669368744, 0.175422802567482, -0.21614274382591248, -0.06825943291187286, -0.28241997957229614, 0.014246484264731407, -0.2111293524503708, -0.31643590331077576, -0.048019226640462875, -0.013239238411188126, -0.2957732677459717, 0.23947682976722717, -0.19905345141887665, 0.3587198555469513, 0.06944465637207031, 0.001122679328545928, -0.06136280670762062, 0.3853592574596405, -0.204533189535141, -0.25238707661628723, 0.11572416871786118, 0.42347243428230286, -0.16514350473880768, -0.07550697028636932, 0.6700642108917236, 0.03877316787838936, -0.2569369375705719, 0.45420515537261963, 0.07994895428419113, 0.15567657351493835, 0.022200224921107292, 0.1333850473165512, 0.18893961608409882, -0.5267192125320435, -0.4063303470611572, 0.49483585357666016, -0.19215290248394012, -0.260896235704422, 0.39261049032211304, -0.02736157923936844, 0.7847687005996704, -0.22483685612678528, 0.09839063137769699, 0.4408179521560669, 0.023517144843935966, 0.3045363128185272, -0.3460560441017151, -0.32474273443222046, -0.13074593245983124, 0.23716005682945251, -0.24091829359531403, -0.27855950593948364, -0.19928571581840515, 0.36135342717170715, 0.09795982390642166, 0.005988012533634901, 0.3558790385723114, -0.07282958179712296, 0.44502565264701843, 0.04582015797495842, -0.10088395327329636, -0.03437993675470352, -0.6144982576370239, -0.18628771603107452, -0.05332702025771141, -0.18962633609771729, 0.02192205935716629, -0.44899871945381165, -0.20400652289390564, -0.05484636127948761, -0.06501047313213348, -0.09965229034423828, -0.010785289108753204, -0.08675511926412582, 0.18081969022750854, 0.06460613012313843, -0.42976415157318115, 0.09582026302814484, 0.06795477122068405, 0.12197469174861908, 0.10805502533912659, 0.07070888578891754, 0.10286903381347656, -0.008980672806501389, 0.19838076829910278, 0.13548442721366882, 0.03381350263953209, -0.2850422263145447, 0.2865184545516968, 0.1933014690876007, -0.12255267053842545, 0.0360601544380188, 0.03233449533581734, 0.19924047589302063, 0.37654203176498413, 0.23874200880527496, 0.3395574688911438, -0.05287522077560425, -0.10348635911941528, -0.2263316661119461, -0.4660375714302063, 0.3321811556816101, -0.17224493622779846, 0.1516907662153244, -0.11764398217201233, -0.1708739548921585, 0.3835431635379791, 0.060418326407670975, -0.18539442121982574, 0.011660231277346611, -0.11721087992191315, 0.12021179497241974, 0.358341783285141, 0.15116915106773376, -0.08373023569583893, 0.1534193903207779, 0.4169471859931946, -0.18808718025684357, 0.15793143212795258, 0.09226913750171661, 0.019320901483297348, -0.2057335525751114, 0.03390444815158844, -0.37454262375831604, 0.11131060123443604, 0.20452715456485748, -0.1165311187505722, -0.03203311190009117, 0.435427188873291, -0.09896153956651688, -0.021114738658070564, 0.009821359068155289, 0.055069226771593094, 0.2727506160736084, 0.3929632306098938, -0.1295706033706665, 0.028975317254662514, -0.03258979693055153, 0.20213647186756134, 0.008692264556884766, -0.12814152240753174, -0.046086523681879044, 0.08878104388713837, 0.1770050823688507, 0.003803259925916791, 0.22650624811649323, -0.14859981834888458, 0.1947263479232788, 0.3439483046531677, 0.1537313610315323, 0.058565881103277206, 0.1289350986480713, 0.34155553579330444, 0.7686241865158081, 0.030974239110946655, -0.30494314432144165, 0.04934850335121155, -0.23189763724803925, 0.3245335519313812, -0.07666084915399551, 0.43103983998298645, -0.3617478311061859, 0.28515467047691345, 0.009745311923325062, -0.0011521503329277039, -0.25048619508743286, -0.14963065087795258, 0.24774384498596191, 0.017736278474330902, 0.1506182700395584, -0.18476547300815582, 0.24072419106960297, -0.32532578706741333, -0.026481779292225838, 0.1529541015625, 0.055700335651636124, -0.2686522603034973, -0.15092098712921143, -0.05273868143558502, -0.13775421679019928, 0.08863750845193863, -0.12510067224502563, -0.27442362904548645, -0.3307991325855255, 0.5167514085769653, 0.05435391888022423, 0.08171296119689941, -0.3696955442428589, 0.05088869482278824, -0.0841619074344635, -0.4887426197528839, -0.05986274033784866, -0.18915033340454102, -0.6689905524253845, 0.22674383223056793, -0.20049630105495453, -0.1961240917444229, -0.26400378346443176, 0.12124500423669815, -0.028926828876137733, 0.07227136194705963, -0.2839435935020447, -0.21361535787582397, 0.1547721028327942, 0.07935015112161636, -0.07855434715747833, 0.0479092076420784, 0.3909584879875183, -0.08729556202888489, 0.07946555316448212, 0.05576443672180176, -0.0035889961291104555, 0.1672791689634323, 0.12317946553230286, 0.2721034288406372, -0.02461922913789749, 0.4078180491924286, 0.2914270758628845, 0.8061871528625488, 0.3848920166492462, 0.1959758698940277, 0.08974920213222504, 0.11196243017911911, 0.26584935188293457, -0.028879337012767792, -0.007531306706368923, 0.452179491519928, 0.027755942195653915, -0.008818970993161201, 0.26929548382759094, 0.3838588297367096, 0.12423492968082428, -0.09077631682157516, -0.30809858441352844, -0.19061893224716187, -0.23691745102405548, 0.3694239556789398, 0.3165634572505951, 0.10758347064256668, -0.08405271917581558, -0.19375433027744293, -0.15511764585971832, -0.31985747814178467, -0.09433633089065552, 0.15965554118156433, 0.3163710832595825, 0.18790414929389954, -0.676527738571167, 0.35494667291641235, -0.408825159072876, 0.0791274905204773, 0.002284050453454256, -0.10830377787351608, 0.0055817533284425735, -0.02263023890554905, 0.15268674492835999, -0.14774061739444733, 0.661602795124054, 0.32292819023132324, -0.09144533425569534, -0.22031159698963165, -0.08611951023340225, -0.28983554244041443, 0.1937616467475891, -0.1531151831150055, 0.4884575307369232, 0.4400169253349304, 0.545908510684967, -0.6200940012931824, -0.171702042222023, -0.12507107853889465, 0.053003355860710144, -0.20722389221191406, -0.14153888821601868, -0.12944357097148895, -0.18833811581134796, -0.527886152267456, 0.12442434579133987, 0.2872996926307678, -0.04254547134041786, 0.3593452274799347, -0.1278083771467209, -0.0597834438085556, 0.007528028916567564, 0.0739016905426979, 0.2289944291114807, 0.050840385258197784, 0.0989774838089943, 0.11737459897994995, 0.1709456741809845, 0.22391635179519653, 0.16165894269943237, 0.11826840788125992, 0.05300052836537361, 0.04100582376122475, 0.12080512195825577, 0.009725107811391354, 0.5497875809669495, 0.4826788306236267, 0.13555532693862915, -0.033478744328022, -0.49173492193222046, 0.2676386535167694, -0.4027073085308075, 0.0017775667365640402, 0.0890905112028122, -0.092676542699337, -0.39608004689216614, -0.09109022468328476, 0.3552249073982239, -0.0016623917035758495, -0.13861647248268127, 0.011143769137561321, 0.21359646320343018, -0.15999320149421692, 0.4445269703865051, 0.11869265884160995, 1.327431321144104, -0.4156689941883087, 0.4368338882923126, 0.017128590494394302, 0.1409611999988556, 0.6164479851722717, -0.8450108766555786, 0.03880178928375244, -0.3598649501800537, 0.4247409701347351, 0.029794547706842422, -0.10854875296354294, -0.09363047033548355, 0.4053988456726074, -0.3267582654953003, 0.10375802218914032, -0.10900115966796875, 0.5489717721939087, -0.27661678194999695, 0.6767646074295044, -0.13599583506584167, -0.3900085687637329, -0.5071846842765808, 0.010056634433567524, -0.24796976149082184, -0.26522135734558105, -0.0769326463341713, -0.10788010060787201, -0.0773204043507576, 0.03634621575474739, -0.058271244168281555, -0.29538586735725403, -0.17627663910388947, 0.15645846724510193, 0.1803080439567566, -0.29397889971733093, 0.19628828763961792, 0.15518608689308167, 0.07040651142597198, 0.35570597648620605, -0.09403089433908463, 0.1165551096200943, -0.3090679347515106, -0.17902427911758423, 0.02900058776140213, -0.04756700247526169, 0.13236147165298462, -0.05665328726172447, -0.2080148160457611, 0.06459500640630722, 0.23626433312892914, -0.07117365300655365, -0.4781254827976227, 0.07094552367925644, 0.3397398293018341, -0.5559614300727844, -0.2173309028148651, -0.04620632156729698, -0.20468628406524658, 0.054245829582214355, -0.02962607517838478, 0.15385740995407104, -0.09530536085367203, 0.23202282190322876, 0.5043820738792419, -0.057785436511039734, -0.006232723128050566, 0.21014130115509033, -0.1361902952194214, -0.3036092519760132, 0.24249181151390076, 0.01415809616446495, -0.15718978643417358, -0.15430402755737305, 0.6779860854148865, -0.004423538688570261, -0.09612660109996796, 0.06945391744375229, -0.015971191227436066, -0.32589417695999146, -0.40360721945762634, -0.11014221608638763, 0.34761080145835876, -0.056239839643239975, 0.268532931804657, -0.22509612143039703, -0.4499081075191498, 0.33642587065696716, 0.09501055628061295, -0.04454996809363365, 0.17584611475467682, 0.08669493347406387, -0.18577265739440918, 0.3449889123439789, -0.18880748748779297, 0.18348494172096252, -0.05589005723595619, 0.11683482676744461, -0.06798248738050461, -0.20872917771339417, 0.04159236326813698, -0.12105981260538101, -0.09290491789579391, 0.06250239163637161, -0.24117526412010193, -0.09486700594425201, -0.1557496041059494, 0.24169065058231354, 0.139537513256073, -0.05947762727737427, -0.13668590784072876, -0.26493218541145325, -0.12263986468315125, -0.13765065371990204, 0.22602348029613495, 0.2327338010072708, 0.28829193115234375, -0.37815138697624207, -0.021363865584135056, -0.18970733880996704, -0.012264426797628403, 0.14881516993045807, 0.2742520272731781, 0.33082446455955505, 0.12997190654277802, 0.10343536734580994, 0.045206714421510696, -0.1667611449956894, 0.02023671753704548, 0.507578432559967, 0.755401611328125, 0.08782907575368881, 0.2576695680618286, -0.0609871968626976, 0.0023055782075971365, 0.1873060017824173, 0.01949874497950077, 0.3032783269882202, -0.2602250277996063, 0.11390583217144012, 0.17391633987426758, 0.05791039392352104, 0.019014345481991768, 0.06318924576044083, 0.35939159989356995, -0.03940946236252785, -0.08871143311262131, 0.31820353865623474, 0.05470968410372734, -0.05836274102330208, -0.18325835466384888, 0.11590243875980377, 0.7018386125564575, 0.19884148240089417, -0.2889256775379181, -0.23577213287353516, -0.10478135943412781, -0.16456174850463867, 0.3734862208366394, 0.29087457060813904, 0.29327839612960815, 0.10420820862054825, -0.09196993708610535, 0.2733832895755768, -0.0017060614190995693, 0.0982305258512497, 0.2374652624130249, 0.08662480115890503, -0.226161390542984, 0.3672831058502197, 0.36616748571395874, -0.05863535404205322, -0.11505149304866791, 0.7066919207572937, 0.2983399033546448, -0.19592759013175964, -0.06576182693243027, 0.2664963901042938, -0.026134511455893517, -0.16984176635742188, -0.2138817459344864, -0.2286643534898758, -0.15454822778701782, 0.14487586915493011, -0.23939694464206696, -0.4700550436973572, 0.0861261636018753, 0.2842116057872772, 0.3571470379829407, -0.07513637840747833, 0.3392665982246399, 0.17759135365486145, 0.24669218063354492, -0.25103849172592163, 0.3707906901836395, 0.21500566601753235, 0.18391335010528564, 0.1710391491651535, 0.15256062150001526, 0.20480988919734955, 0.01006122026592493, -0.2900557816028595, 0.38808533549308777, -0.49036699533462524, 0.02337908372282982, -0.02588193118572235, 0.1521192193031311, 0.19270235300064087, -0.28439509868621826, 0.10543481260538101, -0.049968209117650986, -0.03370499238371849, -0.2527788281440735, 0.2708309292793274, -0.4384315609931946, 0.050517208874225616, -0.29577669501304626, -0.21738873422145844, -0.23270224034786224, -0.07324419170618057, -0.1300649791955948, -0.47578853368759155, -0.06525392085313797, 0.17698168754577637, -0.12739072740077972, 0.3105272650718689, -0.04615349695086479, 0.006054969504475594, -0.07350654900074005, 0.22832821309566498, -0.021361464634537697, -0.1428968459367752, -0.10406661033630371, -0.16371293365955353, -0.2287212759256363, 0.1267683207988739, -0.1789245456457138, 0.11972001194953918, -0.27434810996055603, 0.4088408350944519, 0.14073219895362854, 0.5077560544013977, -0.3582141399383545, 0.2111843377351761, -0.4199117124080658, -0.11951050907373428, -0.432771772146225, 0.1643107682466507, 0.021951444447040558, 0.5623587369918823, 0.2280697226524353, -0.14571388065814972, 0.20831243693828583, 0.1127186119556427, -0.1706876903772354, -0.16045565903186798, 0.17790180444717407, -0.37985900044441223, -0.42628055810928345, 0.1012798622250557, 0.1023627519607544, 0.13088074326515198, 0.025315111503005028, -0.16242392361164093, -0.08464979380369186, 0.0042993430979549885, -0.08825472742319107, 0.15285030007362366, 0.30822646617889404, 0.000768322788644582, -0.3237611949443817, -0.3393216133117676, 0.022849949076771736, 0.09244710206985474, -0.2554956078529358, -0.23947428166866302, -0.20164918899536133, -0.2231941968202591, -0.13140976428985596, 0.18884380161762238, -0.13892057538032532, 0.37243181467056274, -0.3437933325767517, 0.08275721222162247, -0.25182801485061646, -0.11339937150478363, 0.4629915654659271, -0.21207404136657715, -0.2136950045824051, 0.10795485228300095, 0.17335449159145355, 0.2590768039226532, -0.012635010294616222, -0.4606668949127197, 0.2509460151195526, 0.12500889599323273, 0.034883834421634674, -0.25398945808410645, 0.12035638839006424, -0.1843297779560089, -0.307038277387619, -0.13785775005817413, 0.19339454174041748, -0.016840649768710136, -0.1057630106806755, -0.207290917634964, -0.17472222447395325 ]
https://github.com/huggingface/datasets/issues/326
Large dataset in Squad2-format
In your training loop, loading the tokenized texts is going to be fast and pretty much negligible compared to a forward pass. You shouldn't expect any slow down.
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ?
28
Large dataset in Squad2-format At the moment we are building an large question answering dataset and think about sharing it with the huggingface community. Caused the computing power we splitted it into multiple tiles, but they are all in the same format. Right now the most important facts about are this: - Contexts: 1.047.671 - questions: 1.677.732 - Answers: 6.742.406 - unanswerable: 377.398 It is already cleaned <pre><code> train_data = [ { 'context': "this is the context", 'qas': [ { 'id': "00002", 'is_impossible': False, 'question': "whats is this", 'answers': [ { 'text': "answer", 'answer_start': 0 } ] }, { 'id': "00003", 'is_impossible': False, 'question': "question2", 'answers': [ { 'text': "answer2", 'answer_start': 1 } ] } ] } ] </code></pre> Cause it is growing every day we are thinking about an structure like this: We host an Json file, containing all the download links and the script can load it dynamically. At the moment it is around ~20GB Any advice how to handle this, or an ready to use template ? In your training loop, loading the tokenized texts is going to be fast and pretty much negligible compared to a forward pass. You shouldn't expect any slow down.
[ -0.0998469665646553, -0.34005028009414673, -0.07225468009710312, 0.27405253052711487, 0.23301361501216888, -0.1341198831796646, 0.0534655898809433, 0.48668816685676575, -0.08115558326244354, 0.03897882625460625, -0.23714245855808258, 0.07050982117652893, -0.2566489577293396, 0.3095560073852539, 0.27045437693595886, -0.07453999668359756, 0.14123478531837463, -0.03204948827624321, 0.01489617396146059, 0.029936421662569046, 0.14520008862018585, -0.1339222639799118, 0.02695106901228428, -0.034334100782871246, -0.3312619924545288, -0.14784078299999237, -0.1654999852180481, 0.14868633449077606, -0.30857038497924805, -0.4827933609485626, -0.30698150396347046, 0.2874171733856201, 0.27539581060409546, 0.48791125416755676, -0.00012323360715527087, -0.13718226552009583, -0.027238095179200172, -0.3751020133495331, -0.39146116375923157, 0.062294866889715195, 0.049660589545965195, -0.2882886528968811, -0.06492482125759125, -0.0946054756641388, -0.1764812469482422, -0.2693072557449341, 0.11243735998868942, -0.17655381560325623, 0.9333479404449463, -0.09129495173692703, -0.0013210426550358534, -0.018595898523926735, -0.17067793011665344, 0.03429264575242996, 0.22400280833244324, 0.16998668015003204, -0.03162774071097374, 0.009406629018485546, 0.6531952023506165, 0.32520654797554016, -0.20578904449939728, 0.16274715960025787, 0.007641995791345835, -0.1622389853000641, 0.09851983934640884, -0.1589537113904953, -0.015967493876814842, -0.1528654396533966, -0.09000605344772339, 0.2489253580570221, 0.3597225248813629, -0.23456187546253204, -0.24270449578762054, -0.3881286382675171, -0.031607735902071, 0.008495691232383251, 0.0847671702504158, 0.2578568756580353, -0.030319171026349068, 0.40286964178085327, -0.3450421392917633, -0.49356016516685486, -0.345289409160614, -0.0025274637155234814, 0.13287615776062012, 0.002327084308490157, -0.08205895870923996, -0.019571419805288315, -0.14425279200077057, -0.14300774037837982, -0.031288858503103256, -0.15120531618595123, 0.057358518242836, 0.17605939507484436, 0.007676324807107449, -0.3633483648300171, -0.18325494229793549, -0.31501591205596924, 0.612809419631958, 0.20201373100280762, 0.16590048372745514, 0.09217201173305511, 0.19304940104484558, -0.07603307068347931, 0.30417484045028687, 0.0039580585435032845, -0.174116313457489, -0.23578757047653198, 0.15301968157291412, 0.0032965855207294226, -0.04085075110197067, -0.09108275175094604, -0.41173025965690613, 0.2907008230686188, -0.27959850430488586, -0.21312282979488373, 0.03983275219798088, 0.10762599855661392, 0.028553351759910583, 0.12417160719633102, -0.16634388267993927, -0.0343141034245491, 0.1978088617324829, 0.3367668092250824, -0.1896691918373108, 0.20099864900112152, -0.0523400604724884, 0.05500056967139244, 0.19314585626125336, -0.21825473010540009, 0.024584518745541573, -0.06779693067073822, -0.16781820356845856, 0.3149711787700653, 0.1374836266040802, 0.09734450280666351, 0.10680656880140305, -0.08088651299476624, 0.34955719113349915, -0.2923627197742462, 0.09445922821760178, 0.06065097823739052, 0.05203775689005852, -0.1030229777097702, 0.08150968700647354, 0.08542554825544357, -0.22452400624752045, -0.06465742737054825, -0.2271316796541214, 0.07246365398168564, -0.3223106265068054, -0.3137347102165222, 0.07089831680059433, -0.024388352409005165, -0.2372404783964157, 0.2669658064842224, -0.14643576741218567, 0.4468386769294739, -0.06674326956272125, -0.00002267532909172587, -0.05864906683564186, 0.39509379863739014, -0.25688979029655457, -0.16376103460788727, 0.14269833266735077, 0.41706907749176025, -0.208546444773674, -0.16863632202148438, 0.7675318121910095, 0.11900568753480911, -0.2828907370567322, 0.4321819245815277, -0.040725138038396835, 0.17638491094112396, 0.05759439617395401, 0.02879471518099308, 0.2927309274673462, -0.6150715351104736, -0.34377238154411316, 0.575437068939209, -0.23380307853221893, -0.21948011219501495, 0.4251849949359894, -0.018134331330657005, 0.7501614093780518, -0.2715396583080292, 0.1670272797346115, 0.5265718102455139, 0.02755705453455448, 0.2613641023635864, -0.34285980463027954, -0.3132781684398651, -0.11301755160093307, 0.3522658348083496, -0.2507220506668091, -0.20152448117733002, -0.24990496039390564, 0.32061800360679626, 0.12772727012634277, -0.03994537889957428, 0.23565521836280823, -0.05520462244749069, 0.1949424147605896, 0.10721636563539505, -0.12611381709575653, 0.06867603212594986, -0.6354444622993469, -0.18001721799373627, -0.03530554473400116, -0.2504541873931885, 0.07393224537372589, -0.431930810213089, -0.20574192702770233, -0.05247606337070465, -0.08260482549667358, 0.009419307112693787, -0.07343841344118118, -0.1099153608083725, 0.15367260575294495, 0.0892750471830368, -0.443094402551651, 0.15765425562858582, -0.03170330077409744, 0.1350347101688385, 0.10336815565824509, 0.09330368787050247, 0.19401268661022186, 0.01679956540465355, 0.22265838086605072, 0.17540395259857178, 0.01966422237455845, -0.30612605810165405, 0.31641748547554016, 0.2310001254081726, -0.18039488792419434, 0.10782047361135483, 0.0286288820207119, 0.1224033534526825, 0.3870014548301697, 0.29144516587257385, 0.27574485540390015, -0.020401159301400185, -0.08907072991132736, -0.20147044956684113, -0.4354254901409149, 0.46959105134010315, -0.13992536067962646, 0.1029195487499237, -0.04699458181858063, -0.19222669303417206, 0.24707716703414917, 0.027965500950813293, -0.32787421345710754, 0.0785478800535202, -0.04113180562853813, 0.10103578120470047, 0.3779509961605072, 0.18839851021766663, -0.21858157217502594, 0.1035110354423523, 0.5042100548744202, -0.24995090067386627, 0.06314859539270401, 0.14562951028347015, 0.07394684851169586, -0.16240675747394562, -0.06548149883747101, -0.3691551983356476, 0.10349982231855392, 0.1509120911359787, -0.11329787224531174, 0.03650081902742386, 0.3595151901245117, -0.14148925244808197, -0.02644045650959015, 0.0400506965816021, 0.15765762329101562, 0.2307528555393219, 0.33626416325569153, -0.1535274237394333, -0.012593337334692478, -0.043056752532720566, 0.17688314616680145, -0.020825373008847237, -0.1473270207643509, 0.07031244039535522, 0.10817315429449081, 0.2291821390390396, -0.10802152752876282, 0.09239841997623444, -0.040777623653411865, 0.2209894359111786, 0.37103283405303955, 0.12209697812795639, 0.049428731203079224, 0.12328451871871948, 0.35742345452308655, 0.7777594327926636, 0.07407871633768082, -0.2954408526420593, 0.03453066572546959, -0.25099778175354004, 0.2499699890613556, -0.10990351438522339, 0.4066915512084961, -0.3923875391483307, 0.20882615447044373, -0.1002374216914177, -0.07047311961650848, -0.08810195326805115, -0.10809461772441864, 0.23575307428836823, -0.012824604287743568, 0.040228888392448425, -0.2133987993001938, 0.2169346660375595, -0.34343647956848145, -0.07468541711568832, 0.1513526439666748, -0.009462655521929264, -0.26448214054107666, -0.14705027639865875, -0.0022063215728849173, -0.08636762201786041, 0.08885771781206131, -0.29688963294029236, -0.27734383940696716, -0.29858532547950745, 0.49280083179473877, 0.07546045631170273, 0.06409040093421936, -0.3779052495956421, 0.0815671980381012, -0.015370934270322323, -0.4000917077064514, -0.06912370026111603, -0.15809091925621033, -0.6986128687858582, 0.22225026786327362, -0.1657126098871231, -0.22890964150428772, -0.2681019902229309, 0.08223243802785873, -0.05887580290436745, 0.08157698810100555, -0.3671652674674988, -0.20161280035972595, 0.21880276501178741, 0.03217098116874695, -0.16012680530548096, 0.03763364255428314, 0.32662609219551086, -0.11087872087955475, 0.0910382866859436, 0.056565992534160614, 0.07888524234294891, 0.19233745336532593, 0.043746162205934525, 0.2103663980960846, -0.04555644094944, 0.500676691532135, 0.2444780021905899, 0.887932538986206, 0.41857197880744934, 0.1632736623287201, -0.03563731536269188, 0.06545467674732208, 0.1641024649143219, -0.0016241613775491714, 0.07146508991718292, 0.4287314713001251, -0.02776900865137577, -0.021747050806879997, 0.2838861644268036, 0.3437897861003876, 0.020832808688282967, -0.21053621172904968, -0.22432740032672882, -0.1663825362920761, -0.26804667711257935, 0.3488024175167084, 0.30160266160964966, 0.09693663567304611, -0.05361878126859665, -0.14210763573646545, -0.14446471631526947, -0.2485811710357666, -0.04181262478232384, 0.08933637291193008, 0.3514486253261566, 0.12497204542160034, -0.6669871807098389, 0.27192771434783936, -0.3750920593738556, 0.002804888878017664, 0.10758271813392639, -0.10160399973392487, 0.05910031497478485, -0.06268620491027832, 0.19749417901039124, -0.19594146311283112, 0.6504684686660767, 0.3883800208568573, -0.0828792154788971, -0.25344473123550415, -0.14870405197143555, -0.3081420660018921, 0.14873351156711578, -0.1808006763458252, 0.4100213646888733, 0.49268838763237, 0.46202921867370605, -0.5409823060035706, -0.2708089351654053, -0.029010934755206108, -0.008757955394685268, -0.1661590337753296, -0.09592381119728088, -0.1718374341726303, -0.19786235690116882, -0.5452158451080322, 0.18182648718357086, 0.3202814757823944, -0.008539969101548195, 0.28295570611953735, -0.13446012139320374, 0.056700464338064194, 0.08500900119543076, 0.10736827552318573, 0.18728339672088623, 0.01884782873094082, 0.17818191647529602, 0.08953753858804703, 0.28453919291496277, 0.2857452929019928, 0.09034153819084167, 0.18122848868370056, 0.10716073960065842, 0.015267941169440746, 0.10321788489818573, 0.04954830929636955, 0.5974901914596558, 0.6548064351081848, 0.15365588665008545, -0.004498859401792288, -0.4806954860687256, 0.2829880714416504, -0.3764100670814514, 0.027770282700657845, 0.1394285261631012, -0.09484012424945831, -0.33977198600769043, -0.16174869239330292, 0.42605385184288025, 0.005219751503318548, -0.10997559130191803, -0.0014935985673218966, 0.10725647956132889, -0.1306721717119217, 0.40679115056991577, 0.030671725049614906, 1.3512605428695679, -0.35638192296028137, 0.491247296333313, 0.17273136973381042, 0.21685001254081726, 0.5118815302848816, -0.8861691951751709, 0.0963306576013565, -0.31625911593437195, 0.3876071572303772, -0.03043818287551403, -0.131020188331604, -0.10443788021802902, 0.3876613974571228, -0.29806286096572876, 0.10572711378335953, -0.04871816188097, 0.5162264108657837, -0.25456783175468445, 0.6119439005851746, -0.05323095619678497, -0.3716336190700531, -0.6192554831504822, -0.041563086211681366, -0.14616726338863373, -0.2977314591407776, -0.05568987876176834, -0.15091738104820251, -0.08025961369276047, 0.04648534953594208, 0.05692891776561737, -0.2324225753545761, -0.1602410525083542, 0.11064609885215759, 0.3232050836086273, -0.3037291169166565, 0.22903570532798767, 0.24593567848205566, 0.053067710250616074, 0.22258922457695007, -0.08275044709444046, 0.20050044357776642, -0.42257750034332275, -0.14203786849975586, 0.048864033073186874, -0.03426297381520271, 0.25050899386405945, -0.08369188010692596, -0.2108570635318756, 0.21703536808490753, 0.17198976874351501, -0.08622575551271439, -0.4488442838191986, 0.05936706066131592, 0.3781784474849701, -0.5011559724807739, -0.22080931067466736, 0.021180076524615288, -0.19539505243301392, 0.04593630135059357, -0.05106569826602936, 0.13415634632110596, -0.20420806109905243, 0.21374359726905823, 0.565839946269989, -0.15699097514152527, 0.03374684974551201, 0.2941564619541168, -0.1210540309548378, -0.305266410112381, 0.35074514150619507, 0.07445388287305832, -0.12240741401910782, -0.130379781126976, 0.6699302196502686, 0.08755253255367279, -0.12036563456058502, 0.1151721403002739, 0.024488750845193863, -0.3150227665901184, -0.387808620929718, 0.03553379699587822, 0.2949031591415405, -0.06810349225997925, 0.268825888633728, -0.1532766968011856, -0.36707502603530884, 0.32259485125541687, 0.09868259727954865, -0.08118580281734467, 0.17343349754810333, 0.14036118984222412, -0.12983228266239166, 0.268596887588501, -0.16803275048732758, 0.20726072788238525, -0.06269187480211258, 0.1555480659008026, -0.08265530318021774, -0.21203665435314178, 0.07560090720653534, -0.04201580584049225, -0.11846606433391571, 0.07139002531766891, -0.28385215997695923, -0.07395363599061966, -0.1143835112452507, 0.243003249168396, 0.08622796833515167, -0.028596829622983932, -0.14529676735401154, -0.26203683018684387, -0.16358374059200287, -0.04324671998620033, 0.2405250370502472, 0.1436326801776886, 0.30135396122932434, -0.389383465051651, -0.12320653349161148, -0.16677410900592804, 0.018568938598036766, 0.10546986013650894, 0.23727354407310486, 0.390414297580719, 0.09403855353593826, 0.017379051074385643, -0.02783833257853985, -0.21034647524356842, -0.03889940306544304, 0.5302073359489441, 0.743600606918335, 0.15784849226474762, 0.3064257502555847, -0.15542849898338318, 0.05373836308717728, 0.1845119148492813, 0.005773406475782394, 0.3656199276447296, -0.33960258960723877, 0.039339710026979446, 0.19362084567546844, 0.0008062978740781546, -0.03368529677391052, 0.04043012857437134, 0.3611765503883362, -0.06619371473789215, -0.0720047876238823, 0.343506395816803, 0.05111931264400482, -0.04489055648446083, -0.10864218324422836, 0.1211732029914856, 0.4851034879684448, 0.1997784525156021, -0.27743521332740784, -0.13472619652748108, -0.06252126395702362, -0.14071516692638397, 0.29621779918670654, 0.3051087260246277, 0.1989794671535492, 0.17177551984786987, -0.09574908763170242, 0.18777242302894592, -0.05287075787782669, 0.14980871975421906, 0.06647772341966629, 0.04341966658830643, -0.24574272334575653, 0.3780346214771271, 0.25273340940475464, -0.06728563457727432, -0.1209341436624527, 0.7141609191894531, 0.36400851607322693, -0.3019388020038605, -0.09252703934907913, 0.2697075605392456, -0.013586755841970444, -0.24063147604465485, -0.21186450123786926, -0.18765690922737122, -0.2100348025560379, 0.2540382146835327, -0.2479693591594696, -0.33140987157821655, 0.1338115930557251, 0.34038281440734863, 0.44422605633735657, -0.08924515545368195, 0.23577800393104553, 0.10619235783815384, 0.3274317979812622, -0.23053006827831268, 0.3929687738418579, 0.13386890292167664, 0.2263186275959015, 0.26779425144195557, 0.04031682386994362, 0.0432625487446785, -0.010575623251497746, -0.3140462040901184, 0.36021214723587036, -0.4900684952735901, 0.0539306178689003, 0.08047915250062943, 0.15628260374069214, 0.311475932598114, -0.27250227332115173, 0.16544805467128754, -0.07213881611824036, -0.042607035487890244, -0.0997515320777893, 0.17552101612091064, -0.44029858708381653, -0.0918193832039833, -0.23063339293003082, -0.13368059694766998, -0.16299760341644287, -0.21421952545642853, -0.14934466779232025, -0.46836593747138977, -0.08812078088521957, 0.11976562440395355, -0.13829533755779266, 0.24152405560016632, -0.022576749324798584, 0.00928418803960085, -0.07798801362514496, 0.3606652021408081, 0.015115637332201004, 0.007102612406015396, -0.11190297454595566, -0.17444145679473877, -0.16617289185523987, 0.09791500121355057, -0.16818973422050476, 0.17385362088680267, -0.1981574296951294, 0.4040406048297882, 0.1810644418001175, 0.5885441303253174, -0.3318024277687073, 0.12545247375965118, -0.38610154390335083, -0.16237901151180267, -0.41267919540405273, 0.17040283977985382, 0.053580716252326965, 0.6294955015182495, 0.1562548279762268, -0.15916135907173157, 0.24562087655067444, 0.04473162069916725, -0.19921758770942688, -0.07320622354745865, 0.18638479709625244, -0.42939630150794983, -0.4038086533546448, 0.02915331721305847, -0.014028693549335003, 0.0959751307964325, 0.04688692465424538, -0.1298416703939438, -0.11764264851808548, -0.031766150146722794, -0.07674296200275421, 0.09949571639299393, 0.300985187292099, -0.004138515330851078, -0.33517786860466003, -0.26182547211647034, 0.04222869873046875, 0.06298551708459854, -0.14926908910274506, -0.1760752648115158, -0.21430936455726624, -0.19814668595790863, -0.16948866844177246, 0.2960014343261719, -0.07396897673606873, 0.4579179883003235, -0.3707362115383148, 0.08303211629390717, -0.2062576860189438, -0.09769617766141891, 0.5351333618164062, -0.2897498905658722, -0.283828467130661, 0.14460156857967377, 0.17779146134853363, 0.34326696395874023, 0.021771365776658058, -0.48344606161117554, 0.23821799457073212, 0.05891993269324303, 0.02814445272088051, -0.35847902297973633, 0.15464381873607635, -0.15185301005840302, -0.285732239484787, -0.14277690649032593, 0.16861587762832642, -0.035278238356113434, -0.10140031576156616, -0.2121015191078186, -0.225521981716156 ]
https://github.com/huggingface/datasets/issues/324
Error when calculating glue score
The glue metric for cola is a metric for classification. It expects label ids as integers as inputs.
I was trying glue score along with other metrics here. But glue gives me this error; ``` import nlp glue_metric = nlp.load_metric('glue',name="cola") glue_score = glue_metric.compute(predictions, references) ``` ``` --------------------------------------------------------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-b9210a524504> in <module>() ----> 1 glue_score = glue_metric.compute(predictions, references) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 191 """ 192 if predictions is not None: --> 193 self.add_batch(predictions=predictions, references=references) 194 self.finalize(timeout=timeout) 195 /usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs) 207 if self.writer is None: 208 self._init_writer() --> 209 self.writer.write_batch(batch) 210 211 def add(self, prediction=None, reference=None, **kwargs): /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 155 if self.pa_writer is None: 156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples)) --> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema) 158 if writer_batch_size is None: 159 writer_batch_size = self.writer_batch_size /usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() TypeError: an integer is required (got type str) ``` I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
18
Error when calculating glue score I was trying glue score along with other metrics here. But glue gives me this error; ``` import nlp glue_metric = nlp.load_metric('glue',name="cola") glue_score = glue_metric.compute(predictions, references) ``` ``` --------------------------------------------------------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-b9210a524504> in <module>() ----> 1 glue_score = glue_metric.compute(predictions, references) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 191 """ 192 if predictions is not None: --> 193 self.add_batch(predictions=predictions, references=references) 194 self.finalize(timeout=timeout) 195 /usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs) 207 if self.writer is None: 208 self._init_writer() --> 209 self.writer.write_batch(batch) 210 211 def add(self, prediction=None, reference=None, **kwargs): /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 155 if self.pa_writer is None: 156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples)) --> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema) 158 if writer_batch_size is None: 159 writer_batch_size = self.writer_batch_size /usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() TypeError: an integer is required (got type str) ``` I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. The glue metric for cola is a metric for classification. It expects label ids as integers as inputs.
[ -0.16945400834083557, -0.2395811378955841, -0.03047357127070427, 0.16115917265415192, 0.2367396056652069, -0.049165308475494385, 0.10730059444904327, 0.3623582720756531, 0.4330272078514099, 0.05162850394845009, -0.3168235123157501, 0.2763477861881256, -0.07980743795633316, -0.024109603837132454, 0.10261812061071396, -0.28314924240112305, -0.11628805845975876, 0.16044968366622925, -0.2202499359846115, 0.3102560043334961, -0.32451146841049194, 0.2713671028614044, -0.18585647642612457, 0.31978726387023926, -0.17670677602291107, -0.09038805961608887, 0.020483925938606262, -0.1961708813905716, -0.3263716995716095, -0.36293554306030273, 0.24816270172595978, -0.11683422327041626, 0.021586038172245026, 0.17664240300655365, -0.00011026334686903283, -0.012055962346494198, 0.4589531719684601, 0.0023093323688954115, 0.15884645283222198, -0.14216330647468567, -0.38898053765296936, -0.08348127454519272, 0.04441413655877113, -0.23615071177482605, 0.13466565310955048, 0.22752004861831665, 0.020614108070731163, -0.1826082468032837, 0.21933290362358093, 0.27097997069358826, 0.2774612009525299, 0.38711515069007874, 0.3126002848148346, -0.1989934742450714, 0.17249178886413574, -0.2082325667142868, 0.026587851345539093, 0.8870645761489868, -0.32721665501594543, -0.46518802642822266, -0.007801946252584457, 0.20694473385810852, -0.10570736974477768, 0.218007892370224, 0.22401535511016846, 0.052196137607097626, 0.37170058488845825, -0.32026252150535583, -0.13264118134975433, -0.07131408900022507, -0.21813459694385529, -0.22854185104370117, -0.1499311923980713, 0.04165823757648468, 0.047116637229919434, -0.37631022930145264, 0.09723899513483047, -0.07267798483371735, 0.05816097930073738, -0.22931891679763794, -0.05496896803379059, 0.14027610421180725, -0.11441410332918167, 0.275295227766037, 0.24009154736995697, 0.3214474320411682, -0.19815294444561005, 0.2969002425670624, 0.4147270619869232, 0.21544259786605835, -0.1390419602394104, 0.04354539513587952, -0.24012640118598938, 0.1653345674276352, -0.29261043667793274, -0.04232790693640709, -0.010453149676322937, 0.19140897691249847, 0.023925717920064926, -0.23546724021434784, 0.04872981831431389, -0.20800481736660004, 0.4857492744922638, 0.34279510378837585, 0.060297220945358276, 0.3389245569705963, 0.3534550666809082, 0.15646576881408691, 0.12742532789707184, 0.24178196489810944, 0.0023333353456109762, -0.16949287056922913, 0.23884396255016327, -0.3881978392601013, 0.36558035016059875, 0.24139076471328735, 0.10852348804473877, 0.07706020027399063, -0.4262584149837494, -0.17716829478740692, -0.04801534116268158, -0.004985150881111622, 0.03692122548818588, 0.07186268270015717, -0.018791934475302696, 0.0006601408822461963, 0.10499054193496704, 0.19069303572177887, -0.19106937944889069, 0.05703982338309288, -0.1342855840921402, 0.4053150713443756, -0.3368164002895355, 0.12151654064655304, 0.1513897180557251, -0.03329228609800339, 0.20435830950737, -0.10730458796024323, 0.16925117373466492, -0.18722635507583618, 0.021252771839499474, -0.2450534552335739, -0.06593256443738937, 0.1954425424337387, 0.04804437234997749, 0.0028144100215286016, 0.32618236541748047, -0.5611868500709534, -0.1635349839925766, -0.215539813041687, -0.228336364030838, -0.30006667971611023, -0.14694412052631378, 0.23516958951950073, -0.17959946393966675, 0.030038371682167053, -0.4003531038761139, -0.1805470883846283, 0.23772624135017395, 0.04494837671518326, 0.11268886178731918, -0.2676100730895996, -0.24849064648151398, -0.2921721935272217, 0.20164966583251953, 0.13887479901313782, -0.0817248746752739, -0.11474338173866272, -0.1918632686138153, -0.10300860553979874, 0.11747589707374573, 0.3144727945327759, 0.1723896861076355, 0.43979206681251526, -0.23195260763168335, 0.1515320986509323, 0.5892607569694519, -0.6347135901451111, -0.23698139190673828, 0.10070810467004776, 0.09687583148479462, -0.2819090187549591, -0.0695391520857811, 0.0950893685221672, 0.2874578833580017, 0.07509440928697586, 0.46930381655693054, 0.17752552032470703, -0.1200394481420517, -0.19108162820339203, -0.3003591299057007, 0.034559667110443115, 0.0852225124835968, 0.052273377776145935, 0.20452940464019775, -0.050443146377801895, 0.10968904197216034, -0.06492198258638382, -0.14382004737854004, 0.19733701646327972, 0.019450083374977112, 0.03014231100678444, 0.33182063698768616, -0.2376648336648941, 0.008245347067713737, -0.5078009366989136, -0.02875315025448799, 0.07651487737894058, -0.553921103477478, 0.19852782785892487, 0.09628540277481079, -0.01630236953496933, -0.5231424570083618, 0.10505940020084381, -0.06995181739330292, -0.03930840268731117, 0.2326914370059967, -0.2064472734928131, 0.3046915829181671, 0.023180542513728142, -0.03848189488053322, 0.17104294896125793, 0.07656726986169815, 0.08471500128507614, -0.08914126455783844, 0.21450284123420715, -0.2762128710746765, -0.4148794114589691, 0.13826771080493927, 0.34985825419425964, 0.27277204394340515, 0.035304173827171326, -0.1092623844742775, 0.4997550845146179, -0.1424187421798706, -0.22851663827896118, 0.055727384984493256, -0.06330781430006027, -0.007169993594288826, 0.03062947653234005, -0.018623797222971916, -0.11324933171272278, 0.19068187475204468, -0.029351994395256042, 0.32101693749427795, 0.19584594666957855, 0.010319887660443783, 0.29748550057411194, -0.11806686222553253, 0.32739537954330444, -0.12253134697675705, -0.058430809527635574, -0.1500227004289627, -0.13411128520965576, 0.4181137979030609, -0.29730093479156494, -0.07993990182876587, -0.18273016810417175, 0.3219168186187744, -0.23060575127601624, 0.3350427448749542, -0.04965048283338547, 0.18547679483890533, -0.028964901342988014, -0.21909326314926147, 0.10757914185523987, -0.1537146419286728, 0.12825269997119904, 0.5975931882858276, -0.004964856430888176, -0.1247704029083252, 0.025017082691192627, -0.19269531965255737, -0.023432336747646332, 0.175401508808136, 0.06748269498348236, 0.030819663777947426, 0.10812874883413315, 0.16881974041461945, -0.028177402913570404, -0.038049302995204926, 0.10205861926078796, -0.2313186526298523, 0.2311965376138687, -0.322054922580719, -0.017831390723586082, -0.045146647840738297, -0.4319609999656677, -0.1677069365978241, -0.10991355031728745, -0.2902882993221283, -0.6119650602340698, -0.05723470821976662, 0.051368746906518936, 0.08731810003519058, 0.18926328420639038, 0.32262125611305237, 0.06517905741930008, 0.1116795688867569, 0.0968882367014885, 0.052267059683799744, -0.2201305478811264, -0.02946772612631321, 0.05251791700720787, 0.013735964894294739, 0.20372775197029114, 0.44383856654167175, -0.10368494689464569, -0.014590656384825706, -0.10509487241506577, -0.3087320625782013, 0.017346227541565895, -0.28420835733413696, 0.6033971905708313, 0.4132928252220154, -0.12381395697593689, -0.05788853019475937, -0.378141313791275, 0.4658437967300415, -0.4250405430793762, 0.017162496224045753, 0.22456005215644836, -0.20285815000534058, -0.04571063071489334, -0.1568726897239685, 0.053407974541187286, -0.2870559096336365, -0.3602621257305145, 0.32441481947898865, 0.1362110823392868, 0.08709867298603058, 0.02471292018890381, -0.22309748828411102, 0.3781217038631439, -0.19029174745082855, -0.19854551553726196, -0.18983803689479828, -0.02872062288224697, 0.3248330354690552, -0.20611165463924408, -0.3413923680782318, -0.08863242715597153, -0.06677495688199997, 0.3206019997596741, -0.24102860689163208, -0.24471482634544373, -0.5733755230903625, -0.18514253199100494, 0.028615307062864304, -0.1296883374452591, 0.19288478791713715, 0.04400165006518364, -0.16710662841796875, -0.06490898132324219, -0.09491889178752899, -0.23395679891109467, 0.1628335565328598, 0.2192816138267517, 0.09260699152946472, -0.1301685869693756, 0.34217557311058044, 0.08538400381803513, 0.30983754992485046, 0.10360070317983627, -0.09242242574691772, 0.27028363943099976, 0.0431026853621006, 0.23097732663154602, 0.006547723896801472, -0.491092324256897, 0.1871621459722519, -0.12123320996761322, 0.3261263072490692, -0.11696863919496536, -0.022846778854727745, -0.05332951992750168, -0.21609710156917572, -0.14292988181114197, -0.12352114170789719, -0.2217898964881897, 0.07442454993724823, 0.015261974185705185, 0.17424330115318298, 0.05931440740823746, -0.21705037355422974, -0.28977975249290466, -0.21814648807048798, 0.19447597861289978, 0.21567150950431824, 0.010360604152083397, -0.07123540341854095, -0.03822847828269005, -0.29605525732040405, -0.3888406455516815, 0.4718075692653656, 0.1434943526983261, 0.3303481638431549, -0.11766091734170914, 0.2998420298099518, -0.1516713798046112, 0.11472869664430618, 0.21706251800060272, -0.35604265332221985, 0.07976449280977249, 0.28989118337631226, 0.19626294076442719, -0.5538413524627686, -0.13813108205795288, -0.42757415771484375, 0.3352840542793274, 0.5549225211143494, 0.44416123628616333, -0.25144222378730774, 0.07072814553976059, 0.4990737736225128, -0.05778173357248306, -0.049486227333545685, -0.44056564569473267, -0.42764055728912354, -0.19757290184497833, -0.13459350168704987, -0.07351896911859512, 0.14342178404331207, 0.2061719447374344, 0.3873651921749115, 0.0714501291513443, -0.09281278401613235, -0.20107105374336243, 0.07173677533864975, -0.20251977443695068, 0.030899958685040474, 0.03192409127950668, 0.08965630829334259, -0.26133403182029724, -0.03284705802798271, -0.5163633227348328, -0.11810507625341415, -0.04920826852321625, -0.058324433863162994, 0.11622396111488342, 0.006550154183059931, 0.39213287830352783, -0.10316792875528336, -0.13361923396587372, 0.23248854279518127, -0.2945844531059265, 0.40988850593566895, 0.043374691158533096, 0.0918043777346611, 0.3446737825870514, 0.2249440997838974, -0.11882362514734268, 0.10590127855539322, 0.46429044008255005, 0.2396439164876938, 0.040960509330034256, 0.3867129385471344, 0.23034989833831787, -0.2547435164451599, 0.21005333960056305, 0.12550948560237885, 0.731685996055603, -0.0363740473985672, -0.20816972851753235, 0.2821577787399292, -0.1958429515361786, 0.6601783633232117, 0.20184287428855896, 0.25848621129989624, -0.25525060296058655, -0.24011719226837158, 0.03620412200689316, -0.18862764537334442, 0.12075559794902802, -0.252775102853775, -0.4338820278644562, 0.4902593195438385, 0.021652579307556152, 0.12400241196155548, -0.12253157049417496, 0.19506369531154633, -0.17122116684913635, -0.16871602833271027, -0.03790244087576866, 0.19146111607551575, -0.33359649777412415, 0.1056697741150856, -0.018845772370696068, -0.06234081834554672, 0.1282532960176468, -0.07512836158275604, -0.25356823205947876, -0.16570091247558594, -0.3714183568954468, 0.19004829227924347, 0.23426857590675354, 0.0006987691740505397, 0.06674358993768692, -0.2564357817173004, 0.21657942235469818, 0.1683940440416336, -0.09867759048938751, -0.09458447247743607, -0.010703844018280506, -0.2469310611486435, 0.14755591750144958, 0.12288940697908401, -0.10273151844739914, -0.13885723054409027, -0.11702408641576767, 0.02869603782892227, 0.09478169679641724, -0.2603462338447571, 0.23299530148506165, 0.11106793582439423, 0.008934496901929379, -0.2510271966457367, -0.20270991325378418, -0.1664215475320816, -0.022885289043188095, -0.07035180926322937, 0.17128686606884003, 0.004672672599554062, -0.13679149746894836, 0.2804693579673767, -0.0659416913986206, -0.16240791976451874, 0.08642322570085526, 0.23969417810440063, -0.07938453555107117, -0.01981026493012905, 0.11606088280677795, -0.1933649480342865, -0.2555321455001831, -0.07585803419351578, -0.15322014689445496, -0.21829938888549805, -0.28363698720932007, 0.12346158176660538, -0.11972707509994507, -0.02833131141960621, -0.14018391072750092, 0.11142605543136597, 0.41840553283691406, 0.25926995277404785, 0.0969691351056099, -0.476190984249115, -0.13323670625686646, 0.27723535895347595, -0.01703488826751709, -0.12397661060094833, -0.14708665013313293, 0.32217636704444885, 0.1539580076932907, 0.3371104300022125, -0.3407655656337738, -0.08616404235363007, -0.3368881046772003, 0.17275691032409668, 0.5577078461647034, -0.38825705647468567, 0.03208228573203087, 0.08962967246770859, 0.1925501525402069, 0.24074378609657288, -0.16846518218517303, -0.2781488299369812, -0.04539762809872627, 0.08841465413570404, -0.008047250099480152, -0.10946079343557358, 0.12468530237674713, 0.008991345763206482, -0.19724029302597046, -0.07058583945035934, -0.28754863142967224, -0.1359250843524933, -0.19104956090450287, 0.0623345673084259, -0.039948370307683945, 0.19795115292072296, 0.3852125108242035, 0.32195550203323364, -0.09564291685819626, 0.14554670453071594, -0.10709431022405624, 0.16375796496868134, 0.08065701276063919, 0.09236425906419754, -0.14393654465675354, -0.10458406060934067, -0.1080586165189743, -0.002358154160901904, 0.24761755764484406, -0.2170475870370865, -0.26619479060173035, -0.141935795545578, 0.37683987617492676, -0.022884588688611984, -0.03582335263490677, -0.03517851233482361, -0.1800120323896408, 0.16413597762584686, -0.16550122201442719, 0.1204645112156868, 0.25283223390579224, 0.20455493032932281, 0.1759788990020752, 0.18672926723957062, -0.014842160046100616, 0.06411111354827881, 0.00595808494836092, 0.09657857567071915, 0.34179216623306274, -0.14811387658119202, -0.15681146085262299, -0.3146483600139618, 0.23429477214813232, -0.03725022077560425, 0.38552185893058777, -0.19364812970161438, 0.19155612587928772, -0.19263671338558197, 0.003695867722854018, 0.1574137806892395, -0.06524135172367096, 0.003041984047740698, 0.23912878334522247, 0.1975858509540558, -0.18151743710041046, 0.2595297694206238, 0.14666979014873505, 0.10419856011867523, -0.020080918446183205, 0.5160800814628601, -0.3852638602256775, -0.07828035950660706, 0.03594578430056572, 0.15381647646427155, 0.0529213547706604, 0.06234445795416832, 0.004506551194936037, -0.006683639716356993, -0.32907819747924805, -0.15530486404895782, 0.06521549820899963, 0.12203972786664963, 0.39503049850463867, 0.16114065051078796, 0.019193843007087708, -0.048688482493162155, -0.21246689558029175, 0.35835888981819153, 0.18005616962909698, -0.3143036961555481, 0.12214111536741257, 0.1270223706960678, 0.23046459257602692, -0.2367895543575287, 0.6592809557914734, 0.5281539559364319, 0.3133317232131958, -0.3758438229560852, 0.12717820703983307, -0.03409847244620323, -0.1760200411081314, 0.20694474875926971, 0.18475104868412018, 0.36713501811027527, 0.09719687700271606, 0.2671824097633362, 0.20855799317359924, -0.2633962333202362, -0.048593517392873764, -0.07236547768115997, -0.013066533952951431, -0.16856971383094788, 0.452521950006485, -0.25080808997154236, -0.23310649394989014, -0.15362411737442017, 0.05734295770525932, -0.4240996539592743, 0.17014190554618835, 0.035439636558294296, -0.022380882874131203, 0.07569705694913864, -0.28368058800697327, 0.09819265455007553, -0.0239033792167902, 0.5166299343109131, 0.17210564017295837, 0.5441960692405701, -0.58940190076828, -0.22437499463558197, -0.4315938949584961, 0.04228351265192032, -0.09806125611066818, -0.053714483976364136, 0.016972428187727928, 0.052221089601516724, -0.24068425595760345, 0.3361561596393585, 0.1721654087305069, 0.4982776343822479, -0.11583665758371353, -0.2824452519416809, -0.3028738796710968, -0.05659231171011925, 0.05260500684380531, -0.4606125056743622, 0.23947486281394958, -0.2231243997812271, 0.0929039791226387, -0.1002930998802185, 0.14038342237472534, -0.00836963765323162, -0.23904769122600555, 0.2770608961582184, 0.5875072479248047, 0.08792303502559662, 0.27941131591796875, 0.553260326385498, -0.01724143698811531, -0.0034355006646364927, 0.05214851349592209, -0.37376105785369873, -0.1366233080625534, 0.049959853291511536, 0.01685236766934395, 0.24849139153957367, -0.08757218718528748, -0.08660568296909332, -0.3632861077785492, 0.5056173801422119, -0.16242656111717224, 0.016891498118638992, -0.03264642506837845, 0.07525841891765594, 0.12679898738861084, 0.020818818360567093, -0.041822679340839386, 0.0828971415758133, -0.018635137006640434, 0.32711344957351685, -0.20050173997879028, -0.2827187180519104, 0.37359699606895447, -0.4797980487346649, -0.3367663025856018, 0.09544687718153, 0.2530975937843323, 0.20063301920890808, -0.09317932277917862, -0.6303014755249023, -0.25101932883262634, 0.33874598145484924, 0.06366878747940063, -0.18012337386608124, 0.3238254189491272, -0.15784600377082825, 0.18054522573947906, 0.15823131799697876, 0.03884812071919441, 0.15755240619182587, -0.3089756369590759, 0.04981188476085663, -0.22991597652435303 ]
https://github.com/huggingface/datasets/issues/324
Error when calculating glue score
I want to evaluate a sentence pair whether they are semantically equivalent, so I used MRPC and it gives the same error, does that mean we have to encode the sentences and parse as input? using BertTokenizer; ``` encoded_reference=tokenizer.encode(reference, add_special_tokens=False) encoded_prediction=tokenizer.encode(prediction, add_special_tokens=False) ``` `glue_score = glue_metric.compute(encoded_prediction, encoded_reference)` ``` ValueError Traceback (most recent call last) <ipython-input-9-4c3a3ce7b583> in <module>() ----> 1 glue_score = glue_metric.compute(encoded_prediction, encoded_reference) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 198 predictions = self.data["predictions"] 199 references = self.data["references"] --> 200 output = self._compute(predictions=predictions, references=references, **metrics_kwargs) 201 return output 202 /usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in _compute(self, predictions, references) 101 return pearson_and_spearman(predictions, references) 102 elif self.config_name in ["mrpc", "qqp"]: --> 103 return acc_and_f1(predictions, references) 104 elif self.config_name in ["sst2", "mnli", "mnli_mismatched", "mnli_matched", "qnli", "rte", "wnli", "hans"]: 105 return {"accuracy": simple_accuracy(predictions, references)} /usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in acc_and_f1(preds, labels) 60 def acc_and_f1(preds, labels): 61 acc = simple_accuracy(preds, labels) ---> 62 f1 = f1_score(y_true=labels, y_pred=preds) 63 return { 64 "accuracy": acc, /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in f1_score(y_true, y_pred, labels, pos_label, average, sample_weight, zero_division) 1097 pos_label=pos_label, average=average, 1098 sample_weight=sample_weight, -> 1099 zero_division=zero_division) 1100 1101 /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in fbeta_score(y_true, y_pred, beta, labels, pos_label, average, sample_weight, zero_division) 1224 warn_for=('f-score',), 1225 sample_weight=sample_weight, -> 1226 zero_division=zero_division) 1227 return f 1228 /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in precision_recall_fscore_support(y_true, y_pred, beta, labels, pos_label, average, warn_for, sample_weight, zero_division) 1482 raise ValueError("beta should be >=0 in the F-beta score") 1483 labels = _check_set_wise_labels(y_true, y_pred, average, labels, -> 1484 pos_label) 1485 1486 # Calculate tp_sum, pred_sum, true_sum ### /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in _check_set_wise_labels(y_true, y_pred, average, labels, pos_label) 1314 raise ValueError("Target is %s but average='binary'. Please " 1315 "choose another average setting, one of %r." -> 1316 % (y_type, average_options)) 1317 elif pos_label not in (None, 1): 1318 warnings.warn("Note that pos_label (set to %r) is ignored when " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ```
I was trying glue score along with other metrics here. But glue gives me this error; ``` import nlp glue_metric = nlp.load_metric('glue',name="cola") glue_score = glue_metric.compute(predictions, references) ``` ``` --------------------------------------------------------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-b9210a524504> in <module>() ----> 1 glue_score = glue_metric.compute(predictions, references) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 191 """ 192 if predictions is not None: --> 193 self.add_batch(predictions=predictions, references=references) 194 self.finalize(timeout=timeout) 195 /usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs) 207 if self.writer is None: 208 self._init_writer() --> 209 self.writer.write_batch(batch) 210 211 def add(self, prediction=None, reference=None, **kwargs): /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 155 if self.pa_writer is None: 156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples)) --> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema) 158 if writer_batch_size is None: 159 writer_batch_size = self.writer_batch_size /usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() TypeError: an integer is required (got type str) ``` I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
297
Error when calculating glue score I was trying glue score along with other metrics here. But glue gives me this error; ``` import nlp glue_metric = nlp.load_metric('glue',name="cola") glue_score = glue_metric.compute(predictions, references) ``` ``` --------------------------------------------------------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-b9210a524504> in <module>() ----> 1 glue_score = glue_metric.compute(predictions, references) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 191 """ 192 if predictions is not None: --> 193 self.add_batch(predictions=predictions, references=references) 194 self.finalize(timeout=timeout) 195 /usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs) 207 if self.writer is None: 208 self._init_writer() --> 209 self.writer.write_batch(batch) 210 211 def add(self, prediction=None, reference=None, **kwargs): /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 155 if self.pa_writer is None: 156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples)) --> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema) 158 if writer_batch_size is None: 159 writer_batch_size = self.writer_batch_size /usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() TypeError: an integer is required (got type str) ``` I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. I want to evaluate a sentence pair whether they are semantically equivalent, so I used MRPC and it gives the same error, does that mean we have to encode the sentences and parse as input? using BertTokenizer; ``` encoded_reference=tokenizer.encode(reference, add_special_tokens=False) encoded_prediction=tokenizer.encode(prediction, add_special_tokens=False) ``` `glue_score = glue_metric.compute(encoded_prediction, encoded_reference)` ``` ValueError Traceback (most recent call last) <ipython-input-9-4c3a3ce7b583> in <module>() ----> 1 glue_score = glue_metric.compute(encoded_prediction, encoded_reference) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 198 predictions = self.data["predictions"] 199 references = self.data["references"] --> 200 output = self._compute(predictions=predictions, references=references, **metrics_kwargs) 201 return output 202 /usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in _compute(self, predictions, references) 101 return pearson_and_spearman(predictions, references) 102 elif self.config_name in ["mrpc", "qqp"]: --> 103 return acc_and_f1(predictions, references) 104 elif self.config_name in ["sst2", "mnli", "mnli_mismatched", "mnli_matched", "qnli", "rte", "wnli", "hans"]: 105 return {"accuracy": simple_accuracy(predictions, references)} /usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in acc_and_f1(preds, labels) 60 def acc_and_f1(preds, labels): 61 acc = simple_accuracy(preds, labels) ---> 62 f1 = f1_score(y_true=labels, y_pred=preds) 63 return { 64 "accuracy": acc, /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in f1_score(y_true, y_pred, labels, pos_label, average, sample_weight, zero_division) 1097 pos_label=pos_label, average=average, 1098 sample_weight=sample_weight, -> 1099 zero_division=zero_division) 1100 1101 /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in fbeta_score(y_true, y_pred, beta, labels, pos_label, average, sample_weight, zero_division) 1224 warn_for=('f-score',), 1225 sample_weight=sample_weight, -> 1226 zero_division=zero_division) 1227 return f 1228 /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in precision_recall_fscore_support(y_true, y_pred, beta, labels, pos_label, average, warn_for, sample_weight, zero_division) 1482 raise ValueError("beta should be >=0 in the F-beta score") 1483 labels = _check_set_wise_labels(y_true, y_pred, average, labels, -> 1484 pos_label) 1485 1486 # Calculate tp_sum, pred_sum, true_sum ### /usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in _check_set_wise_labels(y_true, y_pred, average, labels, pos_label) 1314 raise ValueError("Target is %s but average='binary'. Please " 1315 "choose another average setting, one of %r." -> 1316 % (y_type, average_options)) 1317 elif pos_label not in (None, 1): 1318 warnings.warn("Note that pos_label (set to %r) is ignored when " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ```
[ -0.16945400834083557, -0.2395811378955841, -0.03047357127070427, 0.16115917265415192, 0.2367396056652069, -0.049165308475494385, 0.10730059444904327, 0.3623582720756531, 0.4330272078514099, 0.05162850394845009, -0.3168235123157501, 0.2763477861881256, -0.07980743795633316, -0.024109603837132454, 0.10261812061071396, -0.28314924240112305, -0.11628805845975876, 0.16044968366622925, -0.2202499359846115, 0.3102560043334961, -0.32451146841049194, 0.2713671028614044, -0.18585647642612457, 0.31978726387023926, -0.17670677602291107, -0.09038805961608887, 0.020483925938606262, -0.1961708813905716, -0.3263716995716095, -0.36293554306030273, 0.24816270172595978, -0.11683422327041626, 0.021586038172245026, 0.17664240300655365, -0.00011026334686903283, -0.012055962346494198, 0.4589531719684601, 0.0023093323688954115, 0.15884645283222198, -0.14216330647468567, -0.38898053765296936, -0.08348127454519272, 0.04441413655877113, -0.23615071177482605, 0.13466565310955048, 0.22752004861831665, 0.020614108070731163, -0.1826082468032837, 0.21933290362358093, 0.27097997069358826, 0.2774612009525299, 0.38711515069007874, 0.3126002848148346, -0.1989934742450714, 0.17249178886413574, -0.2082325667142868, 0.026587851345539093, 0.8870645761489868, -0.32721665501594543, -0.46518802642822266, -0.007801946252584457, 0.20694473385810852, -0.10570736974477768, 0.218007892370224, 0.22401535511016846, 0.052196137607097626, 0.37170058488845825, -0.32026252150535583, -0.13264118134975433, -0.07131408900022507, -0.21813459694385529, -0.22854185104370117, -0.1499311923980713, 0.04165823757648468, 0.047116637229919434, -0.37631022930145264, 0.09723899513483047, -0.07267798483371735, 0.05816097930073738, -0.22931891679763794, -0.05496896803379059, 0.14027610421180725, -0.11441410332918167, 0.275295227766037, 0.24009154736995697, 0.3214474320411682, -0.19815294444561005, 0.2969002425670624, 0.4147270619869232, 0.21544259786605835, -0.1390419602394104, 0.04354539513587952, -0.24012640118598938, 0.1653345674276352, -0.29261043667793274, -0.04232790693640709, -0.010453149676322937, 0.19140897691249847, 0.023925717920064926, -0.23546724021434784, 0.04872981831431389, -0.20800481736660004, 0.4857492744922638, 0.34279510378837585, 0.060297220945358276, 0.3389245569705963, 0.3534550666809082, 0.15646576881408691, 0.12742532789707184, 0.24178196489810944, 0.0023333353456109762, -0.16949287056922913, 0.23884396255016327, -0.3881978392601013, 0.36558035016059875, 0.24139076471328735, 0.10852348804473877, 0.07706020027399063, -0.4262584149837494, -0.17716829478740692, -0.04801534116268158, -0.004985150881111622, 0.03692122548818588, 0.07186268270015717, -0.018791934475302696, 0.0006601408822461963, 0.10499054193496704, 0.19069303572177887, -0.19106937944889069, 0.05703982338309288, -0.1342855840921402, 0.4053150713443756, -0.3368164002895355, 0.12151654064655304, 0.1513897180557251, -0.03329228609800339, 0.20435830950737, -0.10730458796024323, 0.16925117373466492, -0.18722635507583618, 0.021252771839499474, -0.2450534552335739, -0.06593256443738937, 0.1954425424337387, 0.04804437234997749, 0.0028144100215286016, 0.32618236541748047, -0.5611868500709534, -0.1635349839925766, -0.215539813041687, -0.228336364030838, -0.30006667971611023, -0.14694412052631378, 0.23516958951950073, -0.17959946393966675, 0.030038371682167053, -0.4003531038761139, -0.1805470883846283, 0.23772624135017395, 0.04494837671518326, 0.11268886178731918, -0.2676100730895996, -0.24849064648151398, -0.2921721935272217, 0.20164966583251953, 0.13887479901313782, -0.0817248746752739, -0.11474338173866272, -0.1918632686138153, -0.10300860553979874, 0.11747589707374573, 0.3144727945327759, 0.1723896861076355, 0.43979206681251526, -0.23195260763168335, 0.1515320986509323, 0.5892607569694519, -0.6347135901451111, -0.23698139190673828, 0.10070810467004776, 0.09687583148479462, -0.2819090187549591, -0.0695391520857811, 0.0950893685221672, 0.2874578833580017, 0.07509440928697586, 0.46930381655693054, 0.17752552032470703, -0.1200394481420517, -0.19108162820339203, -0.3003591299057007, 0.034559667110443115, 0.0852225124835968, 0.052273377776145935, 0.20452940464019775, -0.050443146377801895, 0.10968904197216034, -0.06492198258638382, -0.14382004737854004, 0.19733701646327972, 0.019450083374977112, 0.03014231100678444, 0.33182063698768616, -0.2376648336648941, 0.008245347067713737, -0.5078009366989136, -0.02875315025448799, 0.07651487737894058, -0.553921103477478, 0.19852782785892487, 0.09628540277481079, -0.01630236953496933, -0.5231424570083618, 0.10505940020084381, -0.06995181739330292, -0.03930840268731117, 0.2326914370059967, -0.2064472734928131, 0.3046915829181671, 0.023180542513728142, -0.03848189488053322, 0.17104294896125793, 0.07656726986169815, 0.08471500128507614, -0.08914126455783844, 0.21450284123420715, -0.2762128710746765, -0.4148794114589691, 0.13826771080493927, 0.34985825419425964, 0.27277204394340515, 0.035304173827171326, -0.1092623844742775, 0.4997550845146179, -0.1424187421798706, -0.22851663827896118, 0.055727384984493256, -0.06330781430006027, -0.007169993594288826, 0.03062947653234005, -0.018623797222971916, -0.11324933171272278, 0.19068187475204468, -0.029351994395256042, 0.32101693749427795, 0.19584594666957855, 0.010319887660443783, 0.29748550057411194, -0.11806686222553253, 0.32739537954330444, -0.12253134697675705, -0.058430809527635574, -0.1500227004289627, -0.13411128520965576, 0.4181137979030609, -0.29730093479156494, -0.07993990182876587, -0.18273016810417175, 0.3219168186187744, -0.23060575127601624, 0.3350427448749542, -0.04965048283338547, 0.18547679483890533, -0.028964901342988014, -0.21909326314926147, 0.10757914185523987, -0.1537146419286728, 0.12825269997119904, 0.5975931882858276, -0.004964856430888176, -0.1247704029083252, 0.025017082691192627, -0.19269531965255737, -0.023432336747646332, 0.175401508808136, 0.06748269498348236, 0.030819663777947426, 0.10812874883413315, 0.16881974041461945, -0.028177402913570404, -0.038049302995204926, 0.10205861926078796, -0.2313186526298523, 0.2311965376138687, -0.322054922580719, -0.017831390723586082, -0.045146647840738297, -0.4319609999656677, -0.1677069365978241, -0.10991355031728745, -0.2902882993221283, -0.6119650602340698, -0.05723470821976662, 0.051368746906518936, 0.08731810003519058, 0.18926328420639038, 0.32262125611305237, 0.06517905741930008, 0.1116795688867569, 0.0968882367014885, 0.052267059683799744, -0.2201305478811264, -0.02946772612631321, 0.05251791700720787, 0.013735964894294739, 0.20372775197029114, 0.44383856654167175, -0.10368494689464569, -0.014590656384825706, -0.10509487241506577, -0.3087320625782013, 0.017346227541565895, -0.28420835733413696, 0.6033971905708313, 0.4132928252220154, -0.12381395697593689, -0.05788853019475937, -0.378141313791275, 0.4658437967300415, -0.4250405430793762, 0.017162496224045753, 0.22456005215644836, -0.20285815000534058, -0.04571063071489334, -0.1568726897239685, 0.053407974541187286, -0.2870559096336365, -0.3602621257305145, 0.32441481947898865, 0.1362110823392868, 0.08709867298603058, 0.02471292018890381, -0.22309748828411102, 0.3781217038631439, -0.19029174745082855, -0.19854551553726196, -0.18983803689479828, -0.02872062288224697, 0.3248330354690552, -0.20611165463924408, -0.3413923680782318, -0.08863242715597153, -0.06677495688199997, 0.3206019997596741, -0.24102860689163208, -0.24471482634544373, -0.5733755230903625, -0.18514253199100494, 0.028615307062864304, -0.1296883374452591, 0.19288478791713715, 0.04400165006518364, -0.16710662841796875, -0.06490898132324219, -0.09491889178752899, -0.23395679891109467, 0.1628335565328598, 0.2192816138267517, 0.09260699152946472, -0.1301685869693756, 0.34217557311058044, 0.08538400381803513, 0.30983754992485046, 0.10360070317983627, -0.09242242574691772, 0.27028363943099976, 0.0431026853621006, 0.23097732663154602, 0.006547723896801472, -0.491092324256897, 0.1871621459722519, -0.12123320996761322, 0.3261263072490692, -0.11696863919496536, -0.022846778854727745, -0.05332951992750168, -0.21609710156917572, -0.14292988181114197, -0.12352114170789719, -0.2217898964881897, 0.07442454993724823, 0.015261974185705185, 0.17424330115318298, 0.05931440740823746, -0.21705037355422974, -0.28977975249290466, -0.21814648807048798, 0.19447597861289978, 0.21567150950431824, 0.010360604152083397, -0.07123540341854095, -0.03822847828269005, -0.29605525732040405, -0.3888406455516815, 0.4718075692653656, 0.1434943526983261, 0.3303481638431549, -0.11766091734170914, 0.2998420298099518, -0.1516713798046112, 0.11472869664430618, 0.21706251800060272, -0.35604265332221985, 0.07976449280977249, 0.28989118337631226, 0.19626294076442719, -0.5538413524627686, -0.13813108205795288, -0.42757415771484375, 0.3352840542793274, 0.5549225211143494, 0.44416123628616333, -0.25144222378730774, 0.07072814553976059, 0.4990737736225128, -0.05778173357248306, -0.049486227333545685, -0.44056564569473267, -0.42764055728912354, -0.19757290184497833, -0.13459350168704987, -0.07351896911859512, 0.14342178404331207, 0.2061719447374344, 0.3873651921749115, 0.0714501291513443, -0.09281278401613235, -0.20107105374336243, 0.07173677533864975, -0.20251977443695068, 0.030899958685040474, 0.03192409127950668, 0.08965630829334259, -0.26133403182029724, -0.03284705802798271, -0.5163633227348328, -0.11810507625341415, -0.04920826852321625, -0.058324433863162994, 0.11622396111488342, 0.006550154183059931, 0.39213287830352783, -0.10316792875528336, -0.13361923396587372, 0.23248854279518127, -0.2945844531059265, 0.40988850593566895, 0.043374691158533096, 0.0918043777346611, 0.3446737825870514, 0.2249440997838974, -0.11882362514734268, 0.10590127855539322, 0.46429044008255005, 0.2396439164876938, 0.040960509330034256, 0.3867129385471344, 0.23034989833831787, -0.2547435164451599, 0.21005333960056305, 0.12550948560237885, 0.731685996055603, -0.0363740473985672, -0.20816972851753235, 0.2821577787399292, -0.1958429515361786, 0.6601783633232117, 0.20184287428855896, 0.25848621129989624, -0.25525060296058655, -0.24011719226837158, 0.03620412200689316, -0.18862764537334442, 0.12075559794902802, -0.252775102853775, -0.4338820278644562, 0.4902593195438385, 0.021652579307556152, 0.12400241196155548, -0.12253157049417496, 0.19506369531154633, -0.17122116684913635, -0.16871602833271027, -0.03790244087576866, 0.19146111607551575, -0.33359649777412415, 0.1056697741150856, -0.018845772370696068, -0.06234081834554672, 0.1282532960176468, -0.07512836158275604, -0.25356823205947876, -0.16570091247558594, -0.3714183568954468, 0.19004829227924347, 0.23426857590675354, 0.0006987691740505397, 0.06674358993768692, -0.2564357817173004, 0.21657942235469818, 0.1683940440416336, -0.09867759048938751, -0.09458447247743607, -0.010703844018280506, -0.2469310611486435, 0.14755591750144958, 0.12288940697908401, -0.10273151844739914, -0.13885723054409027, -0.11702408641576767, 0.02869603782892227, 0.09478169679641724, -0.2603462338447571, 0.23299530148506165, 0.11106793582439423, 0.008934496901929379, -0.2510271966457367, -0.20270991325378418, -0.1664215475320816, -0.022885289043188095, -0.07035180926322937, 0.17128686606884003, 0.004672672599554062, -0.13679149746894836, 0.2804693579673767, -0.0659416913986206, -0.16240791976451874, 0.08642322570085526, 0.23969417810440063, -0.07938453555107117, -0.01981026493012905, 0.11606088280677795, -0.1933649480342865, -0.2555321455001831, -0.07585803419351578, -0.15322014689445496, -0.21829938888549805, -0.28363698720932007, 0.12346158176660538, -0.11972707509994507, -0.02833131141960621, -0.14018391072750092, 0.11142605543136597, 0.41840553283691406, 0.25926995277404785, 0.0969691351056099, -0.476190984249115, -0.13323670625686646, 0.27723535895347595, -0.01703488826751709, -0.12397661060094833, -0.14708665013313293, 0.32217636704444885, 0.1539580076932907, 0.3371104300022125, -0.3407655656337738, -0.08616404235363007, -0.3368881046772003, 0.17275691032409668, 0.5577078461647034, -0.38825705647468567, 0.03208228573203087, 0.08962967246770859, 0.1925501525402069, 0.24074378609657288, -0.16846518218517303, -0.2781488299369812, -0.04539762809872627, 0.08841465413570404, -0.008047250099480152, -0.10946079343557358, 0.12468530237674713, 0.008991345763206482, -0.19724029302597046, -0.07058583945035934, -0.28754863142967224, -0.1359250843524933, -0.19104956090450287, 0.0623345673084259, -0.039948370307683945, 0.19795115292072296, 0.3852125108242035, 0.32195550203323364, -0.09564291685819626, 0.14554670453071594, -0.10709431022405624, 0.16375796496868134, 0.08065701276063919, 0.09236425906419754, -0.14393654465675354, -0.10458406060934067, -0.1080586165189743, -0.002358154160901904, 0.24761755764484406, -0.2170475870370865, -0.26619479060173035, -0.141935795545578, 0.37683987617492676, -0.022884588688611984, -0.03582335263490677, -0.03517851233482361, -0.1800120323896408, 0.16413597762584686, -0.16550122201442719, 0.1204645112156868, 0.25283223390579224, 0.20455493032932281, 0.1759788990020752, 0.18672926723957062, -0.014842160046100616, 0.06411111354827881, 0.00595808494836092, 0.09657857567071915, 0.34179216623306274, -0.14811387658119202, -0.15681146085262299, -0.3146483600139618, 0.23429477214813232, -0.03725022077560425, 0.38552185893058777, -0.19364812970161438, 0.19155612587928772, -0.19263671338558197, 0.003695867722854018, 0.1574137806892395, -0.06524135172367096, 0.003041984047740698, 0.23912878334522247, 0.1975858509540558, -0.18151743710041046, 0.2595297694206238, 0.14666979014873505, 0.10419856011867523, -0.020080918446183205, 0.5160800814628601, -0.3852638602256775, -0.07828035950660706, 0.03594578430056572, 0.15381647646427155, 0.0529213547706604, 0.06234445795416832, 0.004506551194936037, -0.006683639716356993, -0.32907819747924805, -0.15530486404895782, 0.06521549820899963, 0.12203972786664963, 0.39503049850463867, 0.16114065051078796, 0.019193843007087708, -0.048688482493162155, -0.21246689558029175, 0.35835888981819153, 0.18005616962909698, -0.3143036961555481, 0.12214111536741257, 0.1270223706960678, 0.23046459257602692, -0.2367895543575287, 0.6592809557914734, 0.5281539559364319, 0.3133317232131958, -0.3758438229560852, 0.12717820703983307, -0.03409847244620323, -0.1760200411081314, 0.20694474875926971, 0.18475104868412018, 0.36713501811027527, 0.09719687700271606, 0.2671824097633362, 0.20855799317359924, -0.2633962333202362, -0.048593517392873764, -0.07236547768115997, -0.013066533952951431, -0.16856971383094788, 0.452521950006485, -0.25080808997154236, -0.23310649394989014, -0.15362411737442017, 0.05734295770525932, -0.4240996539592743, 0.17014190554618835, 0.035439636558294296, -0.022380882874131203, 0.07569705694913864, -0.28368058800697327, 0.09819265455007553, -0.0239033792167902, 0.5166299343109131, 0.17210564017295837, 0.5441960692405701, -0.58940190076828, -0.22437499463558197, -0.4315938949584961, 0.04228351265192032, -0.09806125611066818, -0.053714483976364136, 0.016972428187727928, 0.052221089601516724, -0.24068425595760345, 0.3361561596393585, 0.1721654087305069, 0.4982776343822479, -0.11583665758371353, -0.2824452519416809, -0.3028738796710968, -0.05659231171011925, 0.05260500684380531, -0.4606125056743622, 0.23947486281394958, -0.2231243997812271, 0.0929039791226387, -0.1002930998802185, 0.14038342237472534, -0.00836963765323162, -0.23904769122600555, 0.2770608961582184, 0.5875072479248047, 0.08792303502559662, 0.27941131591796875, 0.553260326385498, -0.01724143698811531, -0.0034355006646364927, 0.05214851349592209, -0.37376105785369873, -0.1366233080625534, 0.049959853291511536, 0.01685236766934395, 0.24849139153957367, -0.08757218718528748, -0.08660568296909332, -0.3632861077785492, 0.5056173801422119, -0.16242656111717224, 0.016891498118638992, -0.03264642506837845, 0.07525841891765594, 0.12679898738861084, 0.020818818360567093, -0.041822679340839386, 0.0828971415758133, -0.018635137006640434, 0.32711344957351685, -0.20050173997879028, -0.2827187180519104, 0.37359699606895447, -0.4797980487346649, -0.3367663025856018, 0.09544687718153, 0.2530975937843323, 0.20063301920890808, -0.09317932277917862, -0.6303014755249023, -0.25101932883262634, 0.33874598145484924, 0.06366878747940063, -0.18012337386608124, 0.3238254189491272, -0.15784600377082825, 0.18054522573947906, 0.15823131799697876, 0.03884812071919441, 0.15755240619182587, -0.3089756369590759, 0.04981188476085663, -0.22991597652435303 ]
https://github.com/huggingface/datasets/issues/324
Error when calculating glue score
MRPC is also a binary classification task, so its metric is a binary classification metric. To evaluate if pairs of sentences are semantically equivalent, maybe you could take a look at models that compute if one sentence entails the other or not (typically the kinds of model that could work well on the MRPC task).
I was trying glue score along with other metrics here. But glue gives me this error; ``` import nlp glue_metric = nlp.load_metric('glue',name="cola") glue_score = glue_metric.compute(predictions, references) ``` ``` --------------------------------------------------------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-b9210a524504> in <module>() ----> 1 glue_score = glue_metric.compute(predictions, references) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 191 """ 192 if predictions is not None: --> 193 self.add_batch(predictions=predictions, references=references) 194 self.finalize(timeout=timeout) 195 /usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs) 207 if self.writer is None: 208 self._init_writer() --> 209 self.writer.write_batch(batch) 210 211 def add(self, prediction=None, reference=None, **kwargs): /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 155 if self.pa_writer is None: 156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples)) --> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema) 158 if writer_batch_size is None: 159 writer_batch_size = self.writer_batch_size /usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() TypeError: an integer is required (got type str) ``` I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
55
Error when calculating glue score I was trying glue score along with other metrics here. But glue gives me this error; ``` import nlp glue_metric = nlp.load_metric('glue',name="cola") glue_score = glue_metric.compute(predictions, references) ``` ``` --------------------------------------------------------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-b9210a524504> in <module>() ----> 1 glue_score = glue_metric.compute(predictions, references) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs) 191 """ 192 if predictions is not None: --> 193 self.add_batch(predictions=predictions, references=references) 194 self.finalize(timeout=timeout) 195 /usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs) 207 if self.writer is None: 208 self._init_writer() --> 209 self.writer.write_batch(batch) 210 211 def add(self, prediction=None, reference=None, **kwargs): /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 155 if self.pa_writer is None: 156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples)) --> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema) 158 if writer_batch_size is None: 159 writer_batch_size = self.writer_batch_size /usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() TypeError: an integer is required (got type str) ``` I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. MRPC is also a binary classification task, so its metric is a binary classification metric. To evaluate if pairs of sentences are semantically equivalent, maybe you could take a look at models that compute if one sentence entails the other or not (typically the kinds of model that could work well on the MRPC task).
[ -0.16945400834083557, -0.2395811378955841, -0.03047357127070427, 0.16115917265415192, 0.2367396056652069, -0.049165308475494385, 0.10730059444904327, 0.3623582720756531, 0.4330272078514099, 0.05162850394845009, -0.3168235123157501, 0.2763477861881256, -0.07980743795633316, -0.024109603837132454, 0.10261812061071396, -0.28314924240112305, -0.11628805845975876, 0.16044968366622925, -0.2202499359846115, 0.3102560043334961, -0.32451146841049194, 0.2713671028614044, -0.18585647642612457, 0.31978726387023926, -0.17670677602291107, -0.09038805961608887, 0.020483925938606262, -0.1961708813905716, -0.3263716995716095, -0.36293554306030273, 0.24816270172595978, -0.11683422327041626, 0.021586038172245026, 0.17664240300655365, -0.00011026334686903283, -0.012055962346494198, 0.4589531719684601, 0.0023093323688954115, 0.15884645283222198, -0.14216330647468567, -0.38898053765296936, -0.08348127454519272, 0.04441413655877113, -0.23615071177482605, 0.13466565310955048, 0.22752004861831665, 0.020614108070731163, -0.1826082468032837, 0.21933290362358093, 0.27097997069358826, 0.2774612009525299, 0.38711515069007874, 0.3126002848148346, -0.1989934742450714, 0.17249178886413574, -0.2082325667142868, 0.026587851345539093, 0.8870645761489868, -0.32721665501594543, -0.46518802642822266, -0.007801946252584457, 0.20694473385810852, -0.10570736974477768, 0.218007892370224, 0.22401535511016846, 0.052196137607097626, 0.37170058488845825, -0.32026252150535583, -0.13264118134975433, -0.07131408900022507, -0.21813459694385529, -0.22854185104370117, -0.1499311923980713, 0.04165823757648468, 0.047116637229919434, -0.37631022930145264, 0.09723899513483047, -0.07267798483371735, 0.05816097930073738, -0.22931891679763794, -0.05496896803379059, 0.14027610421180725, -0.11441410332918167, 0.275295227766037, 0.24009154736995697, 0.3214474320411682, -0.19815294444561005, 0.2969002425670624, 0.4147270619869232, 0.21544259786605835, -0.1390419602394104, 0.04354539513587952, -0.24012640118598938, 0.1653345674276352, -0.29261043667793274, -0.04232790693640709, -0.010453149676322937, 0.19140897691249847, 0.023925717920064926, -0.23546724021434784, 0.04872981831431389, -0.20800481736660004, 0.4857492744922638, 0.34279510378837585, 0.060297220945358276, 0.3389245569705963, 0.3534550666809082, 0.15646576881408691, 0.12742532789707184, 0.24178196489810944, 0.0023333353456109762, -0.16949287056922913, 0.23884396255016327, -0.3881978392601013, 0.36558035016059875, 0.24139076471328735, 0.10852348804473877, 0.07706020027399063, -0.4262584149837494, -0.17716829478740692, -0.04801534116268158, -0.004985150881111622, 0.03692122548818588, 0.07186268270015717, -0.018791934475302696, 0.0006601408822461963, 0.10499054193496704, 0.19069303572177887, -0.19106937944889069, 0.05703982338309288, -0.1342855840921402, 0.4053150713443756, -0.3368164002895355, 0.12151654064655304, 0.1513897180557251, -0.03329228609800339, 0.20435830950737, -0.10730458796024323, 0.16925117373466492, -0.18722635507583618, 0.021252771839499474, -0.2450534552335739, -0.06593256443738937, 0.1954425424337387, 0.04804437234997749, 0.0028144100215286016, 0.32618236541748047, -0.5611868500709534, -0.1635349839925766, -0.215539813041687, -0.228336364030838, -0.30006667971611023, -0.14694412052631378, 0.23516958951950073, -0.17959946393966675, 0.030038371682167053, -0.4003531038761139, -0.1805470883846283, 0.23772624135017395, 0.04494837671518326, 0.11268886178731918, -0.2676100730895996, -0.24849064648151398, -0.2921721935272217, 0.20164966583251953, 0.13887479901313782, -0.0817248746752739, -0.11474338173866272, -0.1918632686138153, -0.10300860553979874, 0.11747589707374573, 0.3144727945327759, 0.1723896861076355, 0.43979206681251526, -0.23195260763168335, 0.1515320986509323, 0.5892607569694519, -0.6347135901451111, -0.23698139190673828, 0.10070810467004776, 0.09687583148479462, -0.2819090187549591, -0.0695391520857811, 0.0950893685221672, 0.2874578833580017, 0.07509440928697586, 0.46930381655693054, 0.17752552032470703, -0.1200394481420517, -0.19108162820339203, -0.3003591299057007, 0.034559667110443115, 0.0852225124835968, 0.052273377776145935, 0.20452940464019775, -0.050443146377801895, 0.10968904197216034, -0.06492198258638382, -0.14382004737854004, 0.19733701646327972, 0.019450083374977112, 0.03014231100678444, 0.33182063698768616, -0.2376648336648941, 0.008245347067713737, -0.5078009366989136, -0.02875315025448799, 0.07651487737894058, -0.553921103477478, 0.19852782785892487, 0.09628540277481079, -0.01630236953496933, -0.5231424570083618, 0.10505940020084381, -0.06995181739330292, -0.03930840268731117, 0.2326914370059967, -0.2064472734928131, 0.3046915829181671, 0.023180542513728142, -0.03848189488053322, 0.17104294896125793, 0.07656726986169815, 0.08471500128507614, -0.08914126455783844, 0.21450284123420715, -0.2762128710746765, -0.4148794114589691, 0.13826771080493927, 0.34985825419425964, 0.27277204394340515, 0.035304173827171326, -0.1092623844742775, 0.4997550845146179, -0.1424187421798706, -0.22851663827896118, 0.055727384984493256, -0.06330781430006027, -0.007169993594288826, 0.03062947653234005, -0.018623797222971916, -0.11324933171272278, 0.19068187475204468, -0.029351994395256042, 0.32101693749427795, 0.19584594666957855, 0.010319887660443783, 0.29748550057411194, -0.11806686222553253, 0.32739537954330444, -0.12253134697675705, -0.058430809527635574, -0.1500227004289627, -0.13411128520965576, 0.4181137979030609, -0.29730093479156494, -0.07993990182876587, -0.18273016810417175, 0.3219168186187744, -0.23060575127601624, 0.3350427448749542, -0.04965048283338547, 0.18547679483890533, -0.028964901342988014, -0.21909326314926147, 0.10757914185523987, -0.1537146419286728, 0.12825269997119904, 0.5975931882858276, -0.004964856430888176, -0.1247704029083252, 0.025017082691192627, -0.19269531965255737, -0.023432336747646332, 0.175401508808136, 0.06748269498348236, 0.030819663777947426, 0.10812874883413315, 0.16881974041461945, -0.028177402913570404, -0.038049302995204926, 0.10205861926078796, -0.2313186526298523, 0.2311965376138687, -0.322054922580719, -0.017831390723586082, -0.045146647840738297, -0.4319609999656677, -0.1677069365978241, -0.10991355031728745, -0.2902882993221283, -0.6119650602340698, -0.05723470821976662, 0.051368746906518936, 0.08731810003519058, 0.18926328420639038, 0.32262125611305237, 0.06517905741930008, 0.1116795688867569, 0.0968882367014885, 0.052267059683799744, -0.2201305478811264, -0.02946772612631321, 0.05251791700720787, 0.013735964894294739, 0.20372775197029114, 0.44383856654167175, -0.10368494689464569, -0.014590656384825706, -0.10509487241506577, -0.3087320625782013, 0.017346227541565895, -0.28420835733413696, 0.6033971905708313, 0.4132928252220154, -0.12381395697593689, -0.05788853019475937, -0.378141313791275, 0.4658437967300415, -0.4250405430793762, 0.017162496224045753, 0.22456005215644836, -0.20285815000534058, -0.04571063071489334, -0.1568726897239685, 0.053407974541187286, -0.2870559096336365, -0.3602621257305145, 0.32441481947898865, 0.1362110823392868, 0.08709867298603058, 0.02471292018890381, -0.22309748828411102, 0.3781217038631439, -0.19029174745082855, -0.19854551553726196, -0.18983803689479828, -0.02872062288224697, 0.3248330354690552, -0.20611165463924408, -0.3413923680782318, -0.08863242715597153, -0.06677495688199997, 0.3206019997596741, -0.24102860689163208, -0.24471482634544373, -0.5733755230903625, -0.18514253199100494, 0.028615307062864304, -0.1296883374452591, 0.19288478791713715, 0.04400165006518364, -0.16710662841796875, -0.06490898132324219, -0.09491889178752899, -0.23395679891109467, 0.1628335565328598, 0.2192816138267517, 0.09260699152946472, -0.1301685869693756, 0.34217557311058044, 0.08538400381803513, 0.30983754992485046, 0.10360070317983627, -0.09242242574691772, 0.27028363943099976, 0.0431026853621006, 0.23097732663154602, 0.006547723896801472, -0.491092324256897, 0.1871621459722519, -0.12123320996761322, 0.3261263072490692, -0.11696863919496536, -0.022846778854727745, -0.05332951992750168, -0.21609710156917572, -0.14292988181114197, -0.12352114170789719, -0.2217898964881897, 0.07442454993724823, 0.015261974185705185, 0.17424330115318298, 0.05931440740823746, -0.21705037355422974, -0.28977975249290466, -0.21814648807048798, 0.19447597861289978, 0.21567150950431824, 0.010360604152083397, -0.07123540341854095, -0.03822847828269005, -0.29605525732040405, -0.3888406455516815, 0.4718075692653656, 0.1434943526983261, 0.3303481638431549, -0.11766091734170914, 0.2998420298099518, -0.1516713798046112, 0.11472869664430618, 0.21706251800060272, -0.35604265332221985, 0.07976449280977249, 0.28989118337631226, 0.19626294076442719, -0.5538413524627686, -0.13813108205795288, -0.42757415771484375, 0.3352840542793274, 0.5549225211143494, 0.44416123628616333, -0.25144222378730774, 0.07072814553976059, 0.4990737736225128, -0.05778173357248306, -0.049486227333545685, -0.44056564569473267, -0.42764055728912354, -0.19757290184497833, -0.13459350168704987, -0.07351896911859512, 0.14342178404331207, 0.2061719447374344, 0.3873651921749115, 0.0714501291513443, -0.09281278401613235, -0.20107105374336243, 0.07173677533864975, -0.20251977443695068, 0.030899958685040474, 0.03192409127950668, 0.08965630829334259, -0.26133403182029724, -0.03284705802798271, -0.5163633227348328, -0.11810507625341415, -0.04920826852321625, -0.058324433863162994, 0.11622396111488342, 0.006550154183059931, 0.39213287830352783, -0.10316792875528336, -0.13361923396587372, 0.23248854279518127, -0.2945844531059265, 0.40988850593566895, 0.043374691158533096, 0.0918043777346611, 0.3446737825870514, 0.2249440997838974, -0.11882362514734268, 0.10590127855539322, 0.46429044008255005, 0.2396439164876938, 0.040960509330034256, 0.3867129385471344, 0.23034989833831787, -0.2547435164451599, 0.21005333960056305, 0.12550948560237885, 0.731685996055603, -0.0363740473985672, -0.20816972851753235, 0.2821577787399292, -0.1958429515361786, 0.6601783633232117, 0.20184287428855896, 0.25848621129989624, -0.25525060296058655, -0.24011719226837158, 0.03620412200689316, -0.18862764537334442, 0.12075559794902802, -0.252775102853775, -0.4338820278644562, 0.4902593195438385, 0.021652579307556152, 0.12400241196155548, -0.12253157049417496, 0.19506369531154633, -0.17122116684913635, -0.16871602833271027, -0.03790244087576866, 0.19146111607551575, -0.33359649777412415, 0.1056697741150856, -0.018845772370696068, -0.06234081834554672, 0.1282532960176468, -0.07512836158275604, -0.25356823205947876, -0.16570091247558594, -0.3714183568954468, 0.19004829227924347, 0.23426857590675354, 0.0006987691740505397, 0.06674358993768692, -0.2564357817173004, 0.21657942235469818, 0.1683940440416336, -0.09867759048938751, -0.09458447247743607, -0.010703844018280506, -0.2469310611486435, 0.14755591750144958, 0.12288940697908401, -0.10273151844739914, -0.13885723054409027, -0.11702408641576767, 0.02869603782892227, 0.09478169679641724, -0.2603462338447571, 0.23299530148506165, 0.11106793582439423, 0.008934496901929379, -0.2510271966457367, -0.20270991325378418, -0.1664215475320816, -0.022885289043188095, -0.07035180926322937, 0.17128686606884003, 0.004672672599554062, -0.13679149746894836, 0.2804693579673767, -0.0659416913986206, -0.16240791976451874, 0.08642322570085526, 0.23969417810440063, -0.07938453555107117, -0.01981026493012905, 0.11606088280677795, -0.1933649480342865, -0.2555321455001831, -0.07585803419351578, -0.15322014689445496, -0.21829938888549805, -0.28363698720932007, 0.12346158176660538, -0.11972707509994507, -0.02833131141960621, -0.14018391072750092, 0.11142605543136597, 0.41840553283691406, 0.25926995277404785, 0.0969691351056099, -0.476190984249115, -0.13323670625686646, 0.27723535895347595, -0.01703488826751709, -0.12397661060094833, -0.14708665013313293, 0.32217636704444885, 0.1539580076932907, 0.3371104300022125, -0.3407655656337738, -0.08616404235363007, -0.3368881046772003, 0.17275691032409668, 0.5577078461647034, -0.38825705647468567, 0.03208228573203087, 0.08962967246770859, 0.1925501525402069, 0.24074378609657288, -0.16846518218517303, -0.2781488299369812, -0.04539762809872627, 0.08841465413570404, -0.008047250099480152, -0.10946079343557358, 0.12468530237674713, 0.008991345763206482, -0.19724029302597046, -0.07058583945035934, -0.28754863142967224, -0.1359250843524933, -0.19104956090450287, 0.0623345673084259, -0.039948370307683945, 0.19795115292072296, 0.3852125108242035, 0.32195550203323364, -0.09564291685819626, 0.14554670453071594, -0.10709431022405624, 0.16375796496868134, 0.08065701276063919, 0.09236425906419754, -0.14393654465675354, -0.10458406060934067, -0.1080586165189743, -0.002358154160901904, 0.24761755764484406, -0.2170475870370865, -0.26619479060173035, -0.141935795545578, 0.37683987617492676, -0.022884588688611984, -0.03582335263490677, -0.03517851233482361, -0.1800120323896408, 0.16413597762584686, -0.16550122201442719, 0.1204645112156868, 0.25283223390579224, 0.20455493032932281, 0.1759788990020752, 0.18672926723957062, -0.014842160046100616, 0.06411111354827881, 0.00595808494836092, 0.09657857567071915, 0.34179216623306274, -0.14811387658119202, -0.15681146085262299, -0.3146483600139618, 0.23429477214813232, -0.03725022077560425, 0.38552185893058777, -0.19364812970161438, 0.19155612587928772, -0.19263671338558197, 0.003695867722854018, 0.1574137806892395, -0.06524135172367096, 0.003041984047740698, 0.23912878334522247, 0.1975858509540558, -0.18151743710041046, 0.2595297694206238, 0.14666979014873505, 0.10419856011867523, -0.020080918446183205, 0.5160800814628601, -0.3852638602256775, -0.07828035950660706, 0.03594578430056572, 0.15381647646427155, 0.0529213547706604, 0.06234445795416832, 0.004506551194936037, -0.006683639716356993, -0.32907819747924805, -0.15530486404895782, 0.06521549820899963, 0.12203972786664963, 0.39503049850463867, 0.16114065051078796, 0.019193843007087708, -0.048688482493162155, -0.21246689558029175, 0.35835888981819153, 0.18005616962909698, -0.3143036961555481, 0.12214111536741257, 0.1270223706960678, 0.23046459257602692, -0.2367895543575287, 0.6592809557914734, 0.5281539559364319, 0.3133317232131958, -0.3758438229560852, 0.12717820703983307, -0.03409847244620323, -0.1760200411081314, 0.20694474875926971, 0.18475104868412018, 0.36713501811027527, 0.09719687700271606, 0.2671824097633362, 0.20855799317359924, -0.2633962333202362, -0.048593517392873764, -0.07236547768115997, -0.013066533952951431, -0.16856971383094788, 0.452521950006485, -0.25080808997154236, -0.23310649394989014, -0.15362411737442017, 0.05734295770525932, -0.4240996539592743, 0.17014190554618835, 0.035439636558294296, -0.022380882874131203, 0.07569705694913864, -0.28368058800697327, 0.09819265455007553, -0.0239033792167902, 0.5166299343109131, 0.17210564017295837, 0.5441960692405701, -0.58940190076828, -0.22437499463558197, -0.4315938949584961, 0.04228351265192032, -0.09806125611066818, -0.053714483976364136, 0.016972428187727928, 0.052221089601516724, -0.24068425595760345, 0.3361561596393585, 0.1721654087305069, 0.4982776343822479, -0.11583665758371353, -0.2824452519416809, -0.3028738796710968, -0.05659231171011925, 0.05260500684380531, -0.4606125056743622, 0.23947486281394958, -0.2231243997812271, 0.0929039791226387, -0.1002930998802185, 0.14038342237472534, -0.00836963765323162, -0.23904769122600555, 0.2770608961582184, 0.5875072479248047, 0.08792303502559662, 0.27941131591796875, 0.553260326385498, -0.01724143698811531, -0.0034355006646364927, 0.05214851349592209, -0.37376105785369873, -0.1366233080625534, 0.049959853291511536, 0.01685236766934395, 0.24849139153957367, -0.08757218718528748, -0.08660568296909332, -0.3632861077785492, 0.5056173801422119, -0.16242656111717224, 0.016891498118638992, -0.03264642506837845, 0.07525841891765594, 0.12679898738861084, 0.020818818360567093, -0.041822679340839386, 0.0828971415758133, -0.018635137006640434, 0.32711344957351685, -0.20050173997879028, -0.2827187180519104, 0.37359699606895447, -0.4797980487346649, -0.3367663025856018, 0.09544687718153, 0.2530975937843323, 0.20063301920890808, -0.09317932277917862, -0.6303014755249023, -0.25101932883262634, 0.33874598145484924, 0.06366878747940063, -0.18012337386608124, 0.3238254189491272, -0.15784600377082825, 0.18054522573947906, 0.15823131799697876, 0.03884812071919441, 0.15755240619182587, -0.3089756369590759, 0.04981188476085663, -0.22991597652435303 ]