html_url
stringlengths
47
49
title
stringlengths
4
111
comments
stringlengths
71
20.4k
body
stringlengths
0
12.9k
comment_length_in_words
int64
16
1.61k
text
stringlengths
100
20.5k
embedding
sequencelengths
768
768
https://github.com/huggingface/datasets/pull/2198
added file_permission in load_dataset
From offline discussions: we want to make the permissions handling consistent with `transformers`. However from discussion in https://github.com/huggingface/transformers/pull/11119 it looks like it might not be a good solution to provide this argument. Users should use umask for now, and we'll see how things evolve. @bhavitvyamalik I'm closing the PR for now if you don't mind
As discussed in #2065 I've added `file_permission` argument in `load_dataset`. Added mainly 2 things here: 1) Permission of downloaded datasets when converted to .arrow files can be changed with argument `file_permission` argument in `load_dataset` (default is 0o644 only) 2) Incase the user uses `map` later on to generate another cache file of dataset, it ensures the permissions of newly generated file are similar to that of` *-train.arrow` file inside cache_dir for that dataset.
55
text: added file_permission in load_dataset As discussed in #2065 I've added `file_permission` argument in `load_dataset`. Added mainly 2 things here: 1) Permission of downloaded datasets when converted to .arrow files can be changed with argument `file_permission` argument in `load_dataset` (default is 0o644 only) 2) Incase the user uses `map` later on to generate another cache file of dataset, it ensures the permissions of newly generated file are similar to that of` *-train.arrow` file inside cache_dir for that dataset. From offline discussions: we want to make the permissions handling consistent with `transformers`. However from discussion in https://github.com/huggingface/transformers/pull/11119 it looks like it might not be a good solution to provide this argument. Users should use umask for now, and we'll see how things evolve. @bhavitvyamalik I'm closing the PR for now if you don't mind
[ -0.17271831631660461, -0.13536204397678375, -0.07221066206693649, 0.0217597596347332, 0.2214687019586563, 0.011392258107662201, 0.5416417121887207, 0.06798379123210907, 0.29696908593177795, 0.15617020428180695, -0.2343626469373703, 0.16054300963878632, -0.2032867819070816, -0.27311578392982483, 0.01172809861600399, -0.14850042760372162, -0.04302007704973221, 0.0061141327023506165, -0.3640846014022827, -0.16615146398544312, -0.16388443112373352, 0.1590762734413147, 0.009217411279678345, 0.04143039882183075, -0.3842161297798157, 0.01546429842710495, 0.3238323926925659, 0.19301670789718628, -0.08825286477804184, -0.3192655146121979, 0.2996426522731781, 0.3005487024784088, 0.19209137558937073, 0.3058299720287323, -0.00010004324576584622, 0.2095331996679306, 0.2169686257839203, 0.04886496067047119, -0.06807028502225876, 0.024852484464645386, 0.12235517054796219, -0.03140914440155029, 0.08076884597539902, -0.18037182092666626, -0.17267456650733948, 0.0731048583984375, 0.17653299868106842, -0.13435252010822296, 0.5744571685791016, 0.0866844654083252, 0.31492114067077637, 0.26391416788101196, -0.01494978740811348, -0.00954474788159132, 0.3582775592803955, 0.09649579972028732, -0.2368454784154892, 0.022376583889126778, -0.03332548588514328, 0.10988881438970566, -0.29126355051994324, 0.358575701713562, 0.17958413064479828, -0.12522798776626587, 0.2362838089466095, -0.1214221641421318, 0.16927096247673035, -0.19235126674175262, 0.000811651349067688, 0.26851171255111694, 0.46086230874061584, -0.06243868172168732, -0.4271337389945984, -0.2804863154888153, -0.09320367127656937, 0.022329790517687798, 0.2795681655406952, 0.17817944288253784, -0.04168242588639259, 0.34949707984924316, -0.11422140896320343, -0.0516982302069664, -0.20436744391918182, -0.07050915062427521, 0.08160647749900818, 0.18793609738349915, -0.08868759870529175, 0.10677753388881683, 0.29292815923690796, -0.09411512315273285, 0.05224432423710823, 0.01684974692761898, -0.11051611602306366, 0.333237886428833, -0.283778578042984, 0.09488052129745483, 0.0018773749470710754, -0.04688214510679245, 0.06654422730207443, 0.2394041121006012, 0.11373288184404373, 0.20418646931648254, -0.09240927547216415, 0.19701391458511353, 0.04760637506842613, 0.3363908529281616, -0.07921125739812851, 0.3222730755805969, 0.3374212980270386, -0.04808047413825989, -0.057512067258358, -0.031183473765850067, -0.04837285354733467, -0.44031354784965515, -0.0701104998588562, 0.10738389194011688, 0.13444283604621887, 0.029646392911672592, 0.20780666172504425, -0.24332159757614136, 0.01870419830083847, -0.02425282448530197, 0.13474306464195251, 0.4040737748146057, 0.1598372459411621, 0.031109699979424477, 0.261730432510376, 0.09427282214164734, 0.0678616613149643, 0.10557561367750168, -0.23800328373908997, -0.23457656800746918, -0.3548259139060974, 0.1667776256799698, 0.13677453994750977, 0.11660096049308777, 0.20261052250862122, -0.18761828541755676, 0.04424869269132614, 0.005106762051582336, 0.3298563063144684, 0.17254865169525146, 0.4239291846752167, 0.4912107288837433, -0.019755950197577477, 0.15486456453800201, 0.01621939241886139, 0.007030218839645386, -0.13441050052642822, 0.2652905285358429, -0.29293784499168396, -0.4554884135723114, 0.1546916961669922, 0.22412602603435516, -0.1602908819913864, 0.12492132186889648, -0.3256015479564667, -0.10215732455253601, 0.2200632095336914, -0.2212674617767334, 0.42139407992362976, 0.10443642735481262, -0.09258601069450378, -0.3033391833305359, -0.13348086178302765, 0.4338877201080322, -0.02372138947248459, -0.22716686129570007, -0.11303325742483139, -0.23076346516609192, -0.12492123991250992, 0.4434647560119629, -0.6005696058273315, 0.07338171452283859, -0.33036211133003235, 0.3236897587776184, 0.5293887853622437, -0.3683636784553528, -0.5314697027206421, 0.15146836638450623, -0.22849656641483307, 0.13885867595672607, 0.19483983516693115, -0.017262505367398262, 0.07759451121091843, -0.17322437465190887, -0.16990263760089874, 0.18334536254405975, 0.31802886724472046, 0.2986593544483185, -0.062247134745121, -0.2182253897190094, 0.05126730352640152, 0.030143342912197113, 0.07550544291734695, 0.16264618933200836, 0.1994801014661789, -0.10303469747304916, 0.40171191096305847, -0.19826680421829224, 0.22159439325332642, 0.35958677530288696, 0.24170561134815216, -0.13633786141872406, 0.148206427693367, 0.0763961672782898, -0.4798394441604614, 0.21742820739746094, -0.27247050404548645, 0.05441059172153473, -0.19528479874134064, -0.38120245933532715, -0.12247643619775772, -0.08132869750261307, -0.38604289293289185, -0.2626740634441376, 0.20785872638225555, -0.10508492588996887, 0.042123984545469284, -0.23984278738498688, 0.09901192784309387, 0.09402859956026077, 0.04129265993833542, 0.10359925031661987, -0.27266183495521545, 0.10618841648101807, -0.09776302427053452, 0.07359311729669571, -0.271938681602478, -0.1166912242770195, 0.12573200464248657, -0.1948366016149521, -0.25348997116088867, 0.41382303833961487, -0.024438368156552315, 0.20563286542892456, -0.146095871925354, 0.3028568625450134, 0.13719044625759125, -0.3046424090862274, 0.06013438105583191, 0.034755855798721313, 0.02015048637986183, 0.07050948590040207, -0.3369142413139343, 0.2542104423046112, -0.05529496446251869, -0.06814444810152054, -0.06048423796892166, 0.08814743906259537, 0.38412097096443176, 0.0005925260484218597, -0.1837356835603714, -0.10161320120096207, 0.019645556807518005, 0.2581191658973694, 0.29322636127471924, 0.12000428140163422, 0.3765079379081726, -0.0848907008767128, 0.4138929545879364, -0.04884815588593483, 0.011372584849596024, 0.03530437499284744, -0.14484116435050964, 0.1022423580288887, 0.28514665365219116, 0.4561329782009125, 0.23503310978412628, 0.22089330852031708, 0.3854040205478668, -0.03745770454406738, 0.30951419472694397, -0.15812554955482483, 0.12113755941390991, -0.07630176842212677, 0.12948815524578094, 0.011095169931650162, -0.04232592508196831, -0.04583488032221794, -0.5009427070617676, 0.005422718822956085, 0.18913617730140686, 0.07328043133020401, -0.22727252542972565, -0.07316142320632935, 0.0777471661567688, 0.11890207976102829, -0.020792793482542038, -0.15263286232948303, -0.3917645514011383, -0.1381225287914276, 0.01775873452425003, 0.20399783551692963, -0.384715735912323, 0.4562470018863678, -0.22755372524261475, 0.03399398922920227, 0.24685342609882355, -0.2577934265136719, -0.3277420401573181, -0.013153279200196266, 0.05084718018770218, 0.10923264920711517, 0.0993020087480545, -0.47231847047805786, -0.03303319960832596, 0.1622225046157837, 0.2705814838409424, -0.2785671651363373, -0.3247872591018677, 0.06611716747283936, -0.05916509032249451, -0.16832195222377777, 0.03269784897565842, 0.025941260159015656, 0.02386517822742462, -0.198894664645195, 0.07314040511846542, -0.35049572587013245, -0.22816264629364014, 0.0875815898180008, 0.060365449637174606, -0.06688210368156433, -0.35353344678878784, -0.12828698754310608, -0.1355658620595932, -0.5049452781677246, 0.5389932990074158, 0.09286227822303772, 0.13864311575889587, 0.5486266016960144, 0.12315197288990021, -0.014353824779391289, -0.059189293533563614, 0.08100707083940506, -0.29866719245910645, -0.3304418623447418, 0.34242966771125793, -0.4591080844402313, -0.3817826807498932, -0.14879263937473297, -0.04897249490022659, 0.12923848628997803, 0.28172558546066284, -0.030268285423517227, -0.17205898463726044, -0.3681594133377075, 0.14515119791030884, -0.13825450837612152, 0.09510219097137451, 0.35420963168144226, 0.0794566348195076, -0.0785885602235794, -0.053763892501592636, -0.02246399223804474, 0.16264447569847107, 0.07320325076580048, -0.004954144358634949, -0.1355302333831787, 0.11832360178232193, 0.06401568651199341, 0.7453150749206543, 0.0011759065091609955, 0.2817912995815277, 0.33325234055519104, 0.1104058101773262, 0.5148037672042847, -0.08063074201345444, 0.07988467067480087, 0.027010133489966393, 0.03166501969099045, -0.1008700281381607, 0.1727627068758011, 0.1317407786846161, -0.17334087193012238, 0.10380811989307404, -0.10665298998355865, -0.17094683647155762, -0.5665424466133118, 0.19281770288944244, -0.12086409330368042, 0.00421711802482605, 0.08931636810302734, 0.09017746895551682, -0.3719947636127472, -0.0038561737164855003, 0.3401671350002289, 0.359444797039032, 0.14301417768001556, 0.09129463881254196, -0.28041547536849976, 0.21362225711345673, -0.371629923582077, 0.1896163523197174, -0.059310875833034515, 0.09989398717880249, -0.06743188202381134, -0.2974419593811035, 0.12071910500526428, 0.08589710295200348, 0.7721148729324341, -0.28290876746177673, 0.15732312202453613, -0.155129536986351, 0.12238195538520813, -0.1878022402524948, -0.16991230845451355, 0.11292719841003418, 0.10361302644014359, 0.024500621482729912, 0.2846298813819885, -0.2453639805316925, -0.3735523521900177, -0.29858317971229553, -0.350782185792923, -0.13132968544960022, -0.24862037599086761, -0.28992024064064026, 0.0738382413983345, -0.43706315755844116, -0.010705560445785522, 0.4005313217639923, -0.19036205112934113, -0.2115871161222458, -0.17036673426628113, -0.15996412932872772, 0.13259509205818176, -0.1694343537092209, 0.16798634827136993, 0.3886793851852417, 0.04225240275263786, -0.2384815663099289, 0.3004910349845886, -0.05929294228553772, -0.053920336067676544, 0.5676444172859192, -0.3407011032104492, -0.1434468775987625, 0.0994575247168541, -0.12964025139808655, 0.021692968904972076, 0.30797284841537476, -0.09744953364133835, 0.036704160273075104, 0.3151332139968872, -0.1253596693277359, -0.12148434668779373, 0.12060314416885376, 0.016775384545326233, -0.030990969389677048, -0.0582549162209034, -0.36499348282814026, 0.3700422942638397, 0.14944660663604736, -0.2981671392917633, 0.25061607360839844, 0.29493504762649536, -0.3405553996562958, 0.410250186920166, -0.04856543987989426, 0.9185184836387634, -0.27247798442840576, 0.3875940442085266, -0.040902912616729736, -0.02031547576189041, 0.3016055226325989, -0.30098479986190796, 0.16928167641162872, -0.37808957695961, -0.13967929780483246, -0.005391653627157211, -0.1548565924167633, -0.06842651218175888, 0.2771363854408264, 0.008809935301542282, -0.06986501067876816, 0.10441143810749054, 0.18513993918895721, -0.20096652209758759, 0.14889951050281525, -0.168307825922966, -0.3096674978733063, -0.05608026683330536, 0.21044346690177917, 0.04028188809752464, 0.2796790599822998, -0.1717415153980255, -0.37879228591918945, -0.09891273826360703, -0.22929126024246216, 0.01446029543876648, 0.1648712456226349, -0.47541725635528564, 0.25651949644088745, 0.13648143410682678, -0.05582219734787941, 0.08910247683525085, 0.3160656690597534, -0.030634425580501556, 0.042397644370794296, -0.23967474699020386, 0.17997440695762634, 0.14538909494876862, 0.0023334177676588297, -0.4194580912590027, 0.032371897250413895, 0.4284532070159912, 0.022942375391721725, -0.08105003088712692, -0.014855101704597473, -0.23429353535175323, -0.5182299017906189, 0.19600751996040344, 0.1367650181055069, 0.13541030883789062, -0.3262185752391815, -0.01236758939921856, -0.0796981006860733, -0.4067985713481903, 0.008046016097068787, 0.1947261393070221, 0.11408346891403198, -0.23593828082084656, -0.09203574806451797, 0.23874706029891968, -0.35307472944259644, 0.1385968178510666, 0.5054578185081482, -0.231485515832901, -0.07867923378944397, 0.3806914687156677, -0.1577291339635849, -0.1824922412633896, -0.22464963793754578, -0.21545159816741943, 0.2860698103904724, -0.7177962064743042, 0.0774741992354393, 0.012975608929991722, -0.21604155004024506, 0.12902005016803741, 0.018344081938266754, 0.3240549564361572, 0.11415553092956543, -0.10333076119422913, -0.1644052267074585, -0.6233238577842712, 0.09744434058666229, -0.3704517185688019, 0.3716323971748352, 0.051313892006874084, -0.26124992966651917, 0.08077675849199295, -0.030051065608859062, -0.4239100515842438, 0.056311607360839844, -0.06382749229669571, 0.08012524247169495, 0.14629295468330383, -0.3335064649581909, 0.35880985856056213, -0.11908911168575287, 0.09710285812616348, 0.0773884579539299, -0.5384698510169983, -0.2903622090816498, -0.26236844062805176, 0.09361699968576431, 0.16141077876091003, -0.19210663437843323, -0.11397009342908859, -0.15950046479701996, 0.005343079566955566, -0.16671647131443024, 0.34267720580101013, 0.12392675131559372, 0.10690779983997345, 0.24506370723247528, 0.32620227336883545, -0.0003667101263999939, -0.3473222255706787, 0.02250240370631218, -0.11875809729099274, -0.10240116715431213, -0.029279520735144615, 0.0632053017616272, -0.45903700590133667, -0.02270326018333435, 0.04486408457159996, 0.07058528065681458, 0.467585027217865, 0.1928250789642334, 0.19606322050094604, -0.13253913819789886, -0.13419325649738312, -0.014748919755220413, 0.36985304951667786, -0.06253668665885925, -0.16278596222400665, -0.14642776548862457, 0.16596713662147522, 0.2974421977996826, -0.05329407379031181, -0.06626080721616745, 0.12909549474716187, -0.08943195641040802, 0.20753353834152222, 0.1473439484834671, 0.1997816562652588, -0.16110637784004211, 0.2604380249977112, 0.1685900092124939, 0.16353197395801544, -0.23655064404010773, 0.1741243153810501, 0.17683596909046173, -0.2018839716911316, 0.09914649277925491, 0.49962180852890015, 0.19387942552566528, 0.357164591550827, 0.18805557489395142, -0.3221134543418884, 0.04943261295557022, -0.12503090500831604, -0.12488539516925812, 0.13999421894550323, -0.4276718199253082, 0.03389928117394447, 0.1014590710401535, -0.09230266511440277, 0.18630434572696686, 0.15648812055587769, 0.4263003468513489, 0.025302963331341743, -0.058303382247686386, -0.1877436637878418, 0.08970703184604645, -0.3207263648509979, -0.22366374731063843, 0.07395810633897781, -0.0166323259472847, -0.1778372973203659, -0.11328016221523285, -0.15739841759204865, -0.04077857732772827, 0.22967998683452606, 0.14200237393379211, 0.10764061659574509, 0.15823307633399963, -0.03892097622156143, 0.2212691605091095, 0.147134929895401, -0.2067725956439972, 0.0804898589849472, 0.011455200612545013, -0.1642598956823349, 0.18409842252731323, 0.057255908846855164, 0.11309050023555756, 0.032516058534383774, 0.09025426208972931, 0.2072860598564148, 0.3262699544429779, -0.02819744497537613, -0.2493860125541687, 0.3099116384983063, 0.12250544130802155, 0.05007963627576828, 0.11574742197990417, 0.22768041491508484, -0.3253418803215027, -0.023788731545209885, -0.22867770493030548, 0.03127559274435043, 0.04317107051610947, 0.18108965456485748, -0.1200166642665863, -0.40492090582847595, -0.2149956375360489, -0.09872379153966904, -0.10018746554851532, 0.09090341627597809, 0.30741381645202637, -0.1505122184753418, 0.18289530277252197, -0.3762410581111908, 0.10760064423084259, 0.31563907861709595, 0.4489878714084625, 0.31571656465530396, 0.03679990395903587, -0.20334917306900024, 0.14124120771884918, -0.5874991416931152, 0.19051800668239594, 0.06611643731594086, 0.29650697112083435, -0.012465586885809898, -0.023207111284136772, 0.10255450755357742, -0.014567956328392029, 0.18713778257369995, -0.23172131180763245, 0.16155453026294708, 0.07249696552753448, -0.11757667362689972, 0.09594546258449554, 0.3236091136932373, -0.02354472689330578, 0.20423975586891174, -0.482382595539093, -0.017903726547956467, 0.19694477319717407, 0.1515604853630066, -0.12356634438037872, -0.03865785524249077, -0.06476373970508575, 0.1766226887702942, 0.5767358541488647, 0.07740584015846252, 0.06342200934886932, -0.15757690370082855, 0.05114170163869858, -0.3552076816558838, -0.07486129552125931, -0.15017752349376678, -0.27906161546707153, -0.06601445376873016, 0.3320016860961914, -0.2475605458021164, -0.11628349125385284, -0.3941650092601776, -0.008221348747611046, 0.13785110414028168, -0.06626637279987335, -0.2296106070280075, 0.24238604307174683, -0.2486228346824646, 0.04479343071579933, 0.2128213793039322, 0.1951110064983368, 0.07341673970222473, 0.06475859135389328, -0.33975332975387573, -0.36952587962150574, 0.6286939382553101, -0.48671755194664, -0.1639215499162674, 0.35548242926597595, 0.3448113203048706, 0.28806883096694946, -0.20885656774044037, -0.5707411766052246, 0.37681421637535095, 0.12866048514842987, -0.11226794868707657, -0.17044532299041748, 0.06886251270771027, -0.09491153061389923, 0.07454116642475128, -0.1447920948266983, 0.707221269607544, 0.10446977615356445, -0.25715988874435425, -0.16257546842098236, -0.35216009616851807 ]
https://github.com/huggingface/datasets/pull/2191
Refactorize tests to use Dataset as context manager
I find very interesting that idea of using a fixture instead! Let me rework a little bit this PR, @lhoestq.
Refactorize Dataset tests to use Dataset as context manager.
20
text: Refactorize tests to use Dataset as context manager Refactorize Dataset tests to use Dataset as context manager. I find very interesting that idea of using a fixture instead! Let me rework a little bit this PR, @lhoestq.
[ -0.4253261089324951, -0.0007908046245574951, -0.26083073019981384, -0.1770763099193573, 0.1992875188589096, -0.06519748270511627, 0.6728536486625671, 0.21498097479343414, -0.09835715591907501, 0.20841413736343384, 0.15508435666561127, -0.005362819880247116, -0.18166352808475494, 0.19559884071350098, -0.09712561219930649, -0.04906389117240906, 0.030907027423381805, 0.36479803919792175, -0.4595256745815277, 0.37412309646606445, -0.01986788399517536, -0.16461308300495148, -0.09420787543058395, 0.0520375594496727, -0.19094881415367126, -0.17451824247837067, -0.15057377517223358, 0.08144568651914597, -0.08872140944004059, -0.34412166476249695, 0.08003402501344681, 0.3625476062297821, -0.2527448236942291, 0.21856053173542023, -0.00009737758955452591, 0.02910415083169937, 0.18279199302196503, 0.06889927387237549, -0.20782159268856049, 0.18988493084907532, -0.2534656822681427, -0.030713528394699097, -0.046829670667648315, -0.2927321493625641, -0.3312579393386841, -0.043320175260305405, -0.009887920692563057, -0.2328144907951355, 0.026604369282722473, 0.303876668214798, 0.3554723262786865, 0.09661597013473511, -0.38261306285858154, -0.16632483899593353, 0.02999398484826088, 0.05014956742525101, -0.011881213635206223, 0.048368439078330994, 0.30500757694244385, -0.052208393812179565, -0.2995113730430603, 0.1376086175441742, -0.13088510930538177, 0.1348709762096405, 0.22161459922790527, -0.3243727385997772, 0.1271979659795761, 0.11696849763393402, 0.1331351101398468, 0.0044594816863536835, 0.5293658375740051, -0.3322112560272217, 0.22121943533420563, -0.052535925060510635, 0.0006547876400873065, -0.18837404251098633, -0.20074179768562317, 0.006092203315347433, 0.11614823341369629, 0.35706469416618347, -0.18485355377197266, -0.4156421720981598, -0.05938170477747917, -0.05333095043897629, -0.3039581775665283, 0.10855914652347565, -0.06264200806617737, 0.038399942219257355, -0.006129138171672821, 0.04479409009218216, 0.18760308623313904, 0.018711240962147713, -0.30179107189178467, -0.23089925944805145, -0.05081835761666298, -0.13796629011631012, 0.07433778047561646, 0.12064236402511597, 0.1095871552824974, 0.452146053314209, -0.16917307674884796, 0.22318139672279358, 0.05925446376204491, 0.06073271483182907, 0.0841648206114769, 0.21470393240451813, 0.31011900305747986, 0.17039936780929565, 0.34375476837158203, 0.17116697132587433, -0.12131823599338531, 0.09572039544582367, 0.034870509058237076, -0.5147295594215393, -0.1567028909921646, 0.23215821385383606, 0.1461848020553589, 0.09522834420204163, -0.2733088731765747, -0.0426822230219841, -0.30968642234802246, -0.14555558562278748, -0.06559137254953384, 0.29626965522766113, 0.15444020926952362, 0.22409456968307495, 0.2077471762895584, -0.0076965950429439545, 0.09620779752731323, -0.1909492015838623, -0.2132449895143509, 0.28271573781967163, -0.3284149169921875, -0.2563362121582031, -0.10441386699676514, -0.1287602037191391, 0.22194036841392517, -0.09848441183567047, 0.21403951942920685, -0.1676836609840393, 0.25511860847473145, 0.29124170541763306, 0.2202279269695282, 0.09323734790086746, -0.15812058746814728, -0.17233842611312866, 0.14287303388118744, 0.04575292021036148, -0.24900802969932556, 0.12463299185037613, 0.18884462118148804, -0.24343092739582062, 0.056501470506191254, 0.36065298318862915, -0.09882518649101257, -0.01550465077161789, 0.037485286593437195, 0.09943361580371857, -0.1624501347541809, -0.03393251448869705, 0.16206875443458557, -0.05602486431598663, 0.004789557307958603, -0.016507038846611977, 0.04412699490785599, 0.2870992422103882, -0.1856093853712082, -0.07473456114530563, 0.10521028935909271, -0.2400975227355957, -0.13506951928138733, 0.02548644319176674, -0.24719740450382233, 0.40307632088661194, -0.2863420844078064, -0.32904553413391113, 0.25093376636505127, -0.46998512744903564, -0.09027673304080963, -0.09224648773670197, -0.403070867061615, -0.08860152959823608, 0.1343843638896942, -0.00870545208454132, -0.11922280490398407, -0.1439003050327301, -0.11697457730770111, 0.12798598408699036, -0.04143316298723221, 0.15849925577640533, -0.008326750248670578, -0.29149091243743896, 0.24243541061878204, 0.018474575132131577, 0.07571762800216675, 0.24404382705688477, 0.026774592697620392, 0.21718889474868774, 0.17011471092700958, -0.20340216159820557, 0.1508607268333435, -0.02416561171412468, 0.2192387580871582, -0.12431827187538147, -0.20134921371936798, -0.1970406472682953, -0.08886045962572098, -0.116595059633255, 0.2096540331840515, 0.23100920021533966, 0.43410128355026245, -0.27967768907546997, -0.31464773416519165, -0.07760059833526611, -0.018038902431726456, -0.4379267692565918, 0.2754620611667633, 0.07037106901407242, -0.10906068980693817, -0.24745072424411774, -0.043362125754356384, 0.24124422669410706, -0.0758618712425232, 0.005694681312888861, 0.05121259391307831, -0.167668879032135, -0.1665349304676056, 0.1789606660604477, 0.04426446557044983, 0.1789582371711731, -0.12044539302587509, -0.048679742962121964, 0.09704655408859253, 0.41428977251052856, 0.06561974436044693, 0.09271931648254395, 0.1005859375, 0.16033394634723663, 0.06355608999729156, 0.04259839281439781, -0.04066448658704758, -0.1180955022573471, -0.22216273844242096, 0.07128527015447617, -0.23544511198997498, 0.3270402252674103, 0.3941817581653595, 0.1601763218641281, 0.04376824200153351, 0.09463789314031601, 0.029502196237444878, -0.21673469245433807, -0.13746772706508636, -0.16081804037094116, 0.025005174800753593, 0.04494611173868179, -0.02208688296377659, 0.32385239005088806, -0.3304564356803894, 0.019023552536964417, -0.09597864747047424, -0.07682684808969498, 0.15943306684494019, -0.04913604259490967, -0.03449453413486481, -0.04657293111085892, 0.25983700156211853, 0.026808541268110275, 0.2057655155658722, 0.3801361322402954, -0.008905190974473953, 0.15767990052700043, 0.3009519875049591, -0.19888357818126678, 0.2018861472606659, -0.007195666432380676, 0.15403620898723602, 0.034049391746520996, 0.18010833859443665, -0.19943870604038239, -0.11152026802301407, -0.22068245708942413, 0.0860428437590599, 0.02818325161933899, -0.397347092628479, -0.0672990158200264, -0.43014007806777954, -0.25350531935691833, 0.00039086584001779556, 0.23281076550483704, 0.28044459223747253, -0.1908002495765686, 0.1905907690525055, 0.20668138563632965, -0.27324867248535156, 0.3169345259666443, 0.015340723097324371, 0.6476311087608337, 0.03131432086229324, -0.01792099140584469, -0.06084894761443138, -0.1926601231098175, -0.14568555355072021, 0.2731737792491913, 0.10803671926259995, 0.17909292876720428, 0.4750462472438812, -0.21539297699928284, 0.0010616574436426163, -0.5824906826019287, -0.248989999294281, 0.20988231897354126, -0.0007650330662727356, 0.20924203097820282, 0.5375434160232544, 0.06555993109941483, -0.11102241277694702, -0.041002023965120316, -0.02148766629397869, 0.1073266863822937, -0.205627903342247, -0.247902512550354, 0.04743058606982231, 0.21010304987430573, -0.08612152934074402, -0.4493919909000397, -0.053678177297115326, -0.5712746977806091, -0.10434208810329437, -0.23009471595287323, -0.024427153170108795, 0.0753931924700737, 0.05941835418343544, -0.020236574113368988, -0.07825891673564911, 0.05937011539936066, -0.08725567907094955, 0.021600034087896347, -0.19285206496715546, -0.22775311768054962, -0.11070241034030914, -0.26238879561424255, -0.050987400114536285, 0.15423859655857086, -0.09608399868011475, -0.26598846912384033, -0.47770485281944275, 0.24704618752002716, 0.1751813441514969, 0.2575938105583191, 0.0412929467856884, 0.1511750966310501, 0.223887637257576, -0.35934844613075256, 0.02319430559873581, 0.004325445741415024, -0.03440842777490616, -0.0020561926066875458, -0.050479479134082794, 0.0044043343514204025, -0.042303040623664856, -0.009064128622412682, 0.381999135017395, -0.034258611500263214, -0.1702187955379486, 0.0717911496758461, -0.3224584758281708, 0.28295573592185974, -0.13511541485786438, -0.10998447984457016, 0.1418730914592743, 0.007609039545059204, -0.06217878311872482, 0.23640339076519012, -0.1344498097896576, 0.0008450457826256752, -0.03409312665462494, -0.12997792661190033, -0.08322063088417053, -0.44032925367355347, -0.010425100103020668, -0.6230508089065552, 0.1479436755180359, 0.010385680943727493, -0.1748850792646408, 0.10506083071231842, 0.21390801668167114, 0.2667807340621948, 0.18875081837177277, -0.05407611280679703, -0.03294854611158371, -0.5107318162918091, 0.016851749271154404, -0.28135016560554504, 0.13288497924804688, -0.10706501454114914, 0.19364283978939056, -0.12459684908390045, -0.12250794470310211, -0.0012248381972312927, -0.15543107688426971, 0.6156038045883179, -0.3329135775566101, -0.047228023409843445, 0.1869676560163498, 0.0949113667011261, 0.05174717307090759, 0.02522311732172966, -0.23249322175979614, 0.2911115288734436, 0.08435443788766861, 0.0872560665011406, -0.09709914773702621, -0.35740935802459717, 0.17345744371414185, 0.07988748699426651, 0.017307724803686142, 0.048592064529657364, -0.1848205178976059, -0.3283376097679138, -0.5327460169792175, 0.24293988943099976, 0.30264607071876526, -0.043700817972421646, -0.016254352405667305, 0.0706174373626709, 0.039568834006786346, 0.08065857738256454, 0.13506349921226501, -0.011150317266583443, 0.07424622029066086, 0.04529237374663353, -0.14452381432056427, -0.01088540256023407, 0.14218062162399292, 0.304244726896286, 0.22101150453090668, -0.16506056487560272, -0.012709490954875946, 0.24006414413452148, 0.19430862367153168, 0.5338627099990845, 0.31313151121139526, 0.13848187029361725, 0.13903827965259552, -0.1303732842206955, 0.05999249219894409, -0.28755617141723633, 0.32556256651878357, 0.00014476943761110306, 0.21589678525924683, -0.14189483225345612, -0.4348847270011902, -0.04678843170404434, -0.008728784509003162, -0.22436322271823883, 0.1313437670469284, 0.09897701442241669, -0.2776539921760559, 0.10828623175621033, 0.23489630222320557, 0.7707310318946838, 0.18682736158370972, 0.23938505351543427, 0.11258552223443985, -0.34511321783065796, 0.32331398129463196, -0.25746950507164, 0.23218272626399994, -0.484412282705307, 0.06088020280003548, -0.0427883118391037, -0.25583213567733765, 0.21669965982437134, 0.16806942224502563, -0.35663938522338867, 0.18282310664653778, -0.16490525007247925, 0.2501070201396942, 0.07486741989850998, 0.30275478959083557, -0.2035626322031021, -0.07466226816177368, 0.0930786058306694, 0.2909875214099884, 0.030277177691459656, -0.027127515524625778, -0.3263099789619446, 0.35350990295410156, 0.04492857679724693, -0.05416944995522499, 0.02127254754304886, -0.021897926926612854, 0.0315883532166481, 0.11828050762414932, -0.12546400725841522, -0.16282375156879425, 0.17824363708496094, 0.24920721352100372, 0.00456758588552475, 0.33507511019706726, 0.048176638782024384, 0.3280164301395416, 0.19641616940498352, 0.31425532698631287, 0.30727246403694153, -0.15806235373020172, 0.41273555159568787, -0.01123017817735672, -0.35836026072502136, -0.07555732876062393, -0.14664143323898315, -0.31466883420944214, -0.039565056562423706, 0.030732475221157074, 0.12260998785495758, -0.4338441491127014, -0.08831407129764557, 0.1498512625694275, -0.03603029623627663, -0.21133771538734436, 0.2756335437297821, -0.12238854169845581, -0.13243368268013, 0.23294436931610107, 0.17538508772850037, -0.26699990034103394, 0.11611384153366089, -0.042718566954135895, -0.07463457435369492, -0.1481872797012329, 0.2186056524515152, 0.15366169810295105, -0.14629478752613068, -0.47163692116737366, 0.13598811626434326, 0.6401850581169128, 0.04218073934316635, 0.28897354006767273, -0.07310275733470917, -0.43695950508117676, 0.015532453544437885, 0.4620799124240875, 0.08068913221359253, 0.10041597485542297, -0.33841726183891296, -0.10157036036252975, -0.3697504699230194, 0.23251771926879883, -0.004604890942573547, 0.41944393515586853, 0.2589608430862427, 0.06921792030334473, -0.11337653547525406, -0.09000243991613388, -0.49959272146224976, -0.20533235371112823, -0.2062569558620453, 0.26666173338890076, 0.03004572167992592, -0.039593130350112915, -0.06914851069450378, -0.011005955748260021, 0.24766340851783752, -0.10895386338233948, -0.19089244306087494, -0.4212443232536316, 0.07905811071395874, 0.06486299633979797, -0.07328388094902039, 0.17785662412643433, 0.20368161797523499, -0.09277285635471344, 0.02090410515666008, -0.08079733699560165, 0.28307482600212097, 0.08809114247560501, -0.01842651516199112, -0.08948870003223419, -0.20838399231433868, -0.2194376289844513, 0.0484493225812912, -0.05609401315450668, 0.08471525460481644, -0.17507292330265045, -0.1960044503211975, 0.07772433012723923, 0.05863363295793533, -0.12761080265045166, 0.3626596927642822, 0.4663952589035034, 0.5261986255645752, 0.2702198922634125, 0.032831400632858276, 0.2354278266429901, -0.15591895580291748, 0.1287633776664734, 0.387511283159256, 0.018544182181358337, -0.23295801877975464, -0.03372573107481003, 0.2658061981201172, 0.4254195988178253, -0.3060343563556671, -0.01364415418356657, 0.1295129656791687, -0.3757835030555725, 0.2591063976287842, 0.22694990038871765, 0.2333383560180664, -0.06343160569667816, -0.05277493596076965, 0.11757167428731918, 0.4148833453655243, -0.3589800000190735, -0.04726744815707207, 0.17091351747512817, -0.311109334230423, -0.14920750260353088, 0.6031191945075989, 0.12269395589828491, 0.2538783848285675, 0.20827315747737885, 0.5183627009391785, 0.7082799673080444, 0.3824617564678192, 0.21334104239940643, -0.06262730807065964, 0.005810346454381943, 0.5059486031532288, 0.16056367754936218, 0.125990629196167, -0.08475062996149063, 0.1595759391784668, 0.48066383600234985, -0.14565856754779816, -0.1797710806131363, 0.12485725432634354, 0.08852996677160263, -0.1963021457195282, 0.044917456805706024, -0.32280683517456055, 0.044969551265239716, -0.053648076951503754, -0.03474639356136322, 0.044170916080474854, 0.10307525098323822, 0.1566942036151886, -0.08803832530975342, 0.08716576546430588, -0.1019013375043869, 0.13044500350952148, -0.14800739288330078, 0.12009334564208984, -0.28015780448913574, 0.04832380264997482, -0.06751373410224915, -0.08398506045341492, 0.3857743740081787, 0.4231867492198944, 0.28302428126335144, 0.11169297248125076, -0.13438299298286438, -0.3727770149707794, -0.24043379724025726, -0.0014058034867048264, -0.3257724642753601, -0.05095934122800827, 0.013306237757205963, -0.1465146839618683, 0.1096293032169342, 0.34054240584373474, -0.25632500648498535, 0.23263689875602722, 0.19413074851036072, -0.5212419629096985, -0.23704513907432556, -0.1304582953453064, 0.40291911363601685, -0.3412455916404724, 0.11371225863695145, 0.22505754232406616, -0.3078371584415436, -0.037834532558918, 0.3997015357017517, -0.30986493825912476, 0.16563120484352112, -0.030372150242328644, 0.197523295879364, 0.38810327649116516, 0.102440744638443, 0.1240893006324768, 0.19808802008628845, -0.14226756989955902, -0.28302833437919617, -0.45221245288848877, 0.1459791511297226, 0.19276900589466095, -0.18252483010292053, -0.1296411156654358, -0.24828097224235535, 0.2661285698413849, -0.0018802396953105927, -0.005181238055229187, -0.1782299131155014, 0.06653742492198944, -0.14875712990760803, -0.34642329812049866, 0.15975059568881989, 0.092095747590065, 0.2908398509025574, 0.12124231457710266, -0.23656383156776428, 0.10079275071620941, 0.17260953783988953, 0.22081315517425537, -0.05251222103834152, -0.16296148300170898, 0.419859915971756, -0.30872461199760437, 0.3105804920196533, 0.010430824011564255, 0.3403211832046509, -0.2154572606086731, 0.15469418466091156, -0.22744259238243103, -0.06465748697519302, -0.28424346446990967, -0.12009211629629135, 0.00018936023116111755, -0.03479462116956711, -0.0993407666683197, -0.02065471187233925, -0.013356677256524563, -0.05642634257674217, 0.34083133935928345, 0.24984608590602875, -0.4254598319530487, 0.15649712085723877, -0.20692455768585205, 0.05775853618979454, -0.280195951461792, 0.1367262601852417, -0.06720028072595596, -0.10981077700853348, -0.3547810912132263, -0.23128271102905273, 0.3671650290489197, 0.15972372889518738, -0.4721297025680542, -0.17328709363937378, 0.26674389839172363, -0.09036801010370255, -0.08112350851297379, -0.26971033215522766, -0.07389667630195618, 0.07990390062332153, 0.1967759132385254, -0.1924283802509308, 0.30873653292655945, 0.0028365086764097214, 0.0047015659511089325, -0.07912591844797134, 0.022224418818950653, -0.037657156586647034, 0.029195936396718025, -0.380302757024765, -0.2371877133846283 ]
https://github.com/huggingface/datasets/pull/2191
Refactorize tests to use Dataset as context manager
@lhoestq, as this is a big refactoring, I had many problems to solve the conflicts with the master branch... Therefore, I think it is better to merge this as it is, and then to make other PRs with additional refactorings, before I get conflicts again with the master branch...
Refactorize Dataset tests to use Dataset as context manager.
49
text: Refactorize tests to use Dataset as context manager Refactorize Dataset tests to use Dataset as context manager. @lhoestq, as this is a big refactoring, I had many problems to solve the conflicts with the master branch... Therefore, I think it is better to merge this as it is, and then to make other PRs with additional refactorings, before I get conflicts again with the master branch...
[ -0.47865554690361023, -0.1285257190465927, -0.24031856656074524, -0.18903689086437225, 0.07034245133399963, 0.19382667541503906, 0.21443955600261688, 0.2545033097267151, -0.20931193232536316, 0.06539154052734375, -0.13634128868579865, 0.033269405364990234, -0.1048787385225296, 0.19987618923187256, -0.16820938885211945, -0.0016691535711288452, 0.29356011748313904, 0.24636739492416382, -0.17797896265983582, 0.32132643461227417, -0.19545195996761322, 0.14272987842559814, -0.1000850722193718, 0.047686535865068436, -0.06623715907335281, -0.007835784927010536, -0.18001258373260498, 0.26473817229270935, -0.22362172603607178, -0.35580340027809143, 0.08896315842866898, 0.27302467823028564, -0.009540682658553123, 0.2600046694278717, -0.00009657096961745992, -0.05510886758565903, 0.1773412525653839, 0.08213168382644653, -0.010292766615748405, 0.20680442452430725, -0.09974890947341919, 0.021749673411250114, -0.21484409272670746, -0.04887587949633598, -0.01284339651465416, -0.17247532308101654, -0.10519960522651672, 0.01786283403635025, 0.015115134418010712, 0.4507924020290375, 0.3439624011516571, -0.012609658762812614, -0.08176480233669281, -0.21263183653354645, -0.0964810773730278, -0.03716014325618744, 0.200669065117836, 0.1433664858341217, 0.09177833795547485, -0.021197516471147537, 0.03380048647522926, 0.16724266111850739, -0.04711035639047623, -0.0790967345237732, 0.1309831142425537, -0.41177791357040405, 0.30953800678253174, -0.010400854051113129, 0.18320685625076294, -0.10630539804697037, 0.49228858947753906, -0.24499401450157166, 0.10924860090017319, 0.029024556279182434, 0.005907728802412748, -0.21199972927570343, -0.002115122973918915, -0.05267488956451416, 0.1541019231081009, 0.3051113784313202, -0.03809487819671631, -0.3721776306629181, 0.158199280500412, -0.18332700431346893, -0.31025147438049316, 0.20875908434391022, 0.007815072312951088, -0.06684894114732742, 0.14895978569984436, -0.06530037522315979, 0.2325218766927719, -0.15746977925300598, -0.47798290848731995, -0.27156850695610046, -0.07133960723876953, -0.17658738791942596, -0.16062819957733154, -0.04995296150445938, 0.06079211086034775, 0.4312437176704407, -0.3413343131542206, -0.014924362301826477, 0.11313150078058243, 0.016074225306510925, 0.022476879879832268, 0.23031894862651825, 0.12246367335319519, 0.24056275188922882, 0.3042924404144287, 0.05005723610520363, -0.07138919085264206, 0.12627866864204407, -0.013688242062926292, -0.5000916719436646, -0.28174689412117004, 0.17947381734848022, 0.19504286348819733, -0.058530211448669434, -0.2927961051464081, -0.10274135321378708, -0.1905970573425293, -0.14637064933776855, -0.15167316794395447, 0.09060617536306381, 0.10746030509471893, 0.504012942314148, 0.16814033687114716, 0.005936155095696449, -0.012142562307417393, -0.011049972847104073, -0.21749992668628693, 0.17103108763694763, -0.26499584317207336, -0.26684489846229553, -0.22760452330112457, -0.14771263301372528, 0.23208710551261902, 0.03326942026615143, 0.08587805926799774, -0.2642776370048523, -0.10631123930215836, 0.16646185517311096, 0.19560784101486206, 0.20125362277030945, -0.023996103554964066, -0.21461762487888336, 0.007033277302980423, 0.09898951649665833, -0.1021314412355423, 0.1123332753777504, 0.19072076678276062, -0.3737502992153168, 0.10150329023599625, 0.4236494302749634, -0.05458961799740791, -0.027158334851264954, 0.02327095717191696, 0.2991880774497986, -0.09551989287137985, -0.12292955815792084, 0.13543877005577087, 0.008039692416787148, -0.03850315511226654, -0.0480622760951519, 0.037613265216350555, 0.028270870447158813, -0.0828995406627655, -0.03137079253792763, 0.0004110201261937618, -0.29215550422668457, -0.07842320948839188, 0.16940446197986603, -0.14484280347824097, 0.23893019556999207, -0.3073003590106964, -0.22668296098709106, 0.17341212928295135, -0.49371299147605896, -0.008654581382870674, -0.04986025393009186, -0.27645325660705566, -0.23232902586460114, 0.13539943099021912, -0.20977096259593964, -0.06449597328901291, -0.20349594950675964, 0.08567531406879425, 0.14571157097816467, -0.18976449966430664, 0.1942402720451355, -0.12439796328544617, -0.13351386785507202, 0.17849324643611908, -0.03098001703619957, 0.16854724287986755, 0.15445150434970856, -0.09057215601205826, 0.07719628512859344, 0.18117475509643555, -0.05998954549431801, 0.12608176469802856, 0.14803579449653625, 0.2341437041759491, -0.13176636397838593, -0.03587564080953598, -0.24600714445114136, -0.08170288056135178, -0.2593313753604889, 0.0549023374915123, 0.07756484299898148, 0.525367259979248, -0.3144102096557617, -0.2418312132358551, -0.20517916977405548, -0.04329352453351021, -0.566279411315918, 0.2782679498195648, 0.21114811301231384, -0.011278215795755386, -0.42247116565704346, -0.12467162311077118, 0.15509846806526184, -0.16222386062145233, 0.025068776682019234, 0.05603637918829918, -0.08438694477081299, -0.31884652376174927, 0.14531143009662628, 0.14809376001358032, 0.31374773383140564, -0.027293048799037933, 0.08455014228820801, 0.09758627414703369, 0.4349561929702759, -0.06295602768659592, 0.07853171974420547, 0.1630547046661377, -0.033059313893318176, 0.0915701687335968, -0.05968747287988663, -0.1989748775959015, -0.18102353811264038, -0.19920991361141205, 0.126297265291214, -0.22811466455459595, 0.3825593590736389, 0.2671637535095215, 0.1350325644016266, 0.1949705332517624, -0.024700108915567398, 0.09085752815008163, -0.08394983410835266, -0.11566128581762314, -0.007282249629497528, 0.024289755150675774, 0.1345047652721405, -0.022857345640659332, 0.30590152740478516, -0.2903454303741455, 0.19751858711242676, 0.09125871956348419, -0.21436460316181183, -0.27519726753234863, -0.011789616197347641, 0.0032110661268234253, -0.1543271839618683, 0.08407963067293167, 0.10132980346679688, 0.2754630446434021, 0.3907337486743927, -0.01149250939488411, 0.24208323657512665, 0.23887690901756287, -0.046986743807792664, 0.4013533592224121, 0.1992991417646408, 0.11091459542512894, 0.18539169430732727, 0.2310943305492401, -0.11938636749982834, -0.13967075943946838, -0.02563893422484398, 0.23649001121520996, 0.11027292907238007, -0.3104144334793091, -0.10782154649496078, -0.30939996242523193, -0.3090657889842987, -0.05164027959108353, 0.21848013997077942, -0.0002975650131702423, -0.23513638973236084, 0.03375987336039543, 0.18023431301116943, -0.3013495206832886, 0.2942199409008026, 0.20724937319755554, 0.49124181270599365, -0.2186025083065033, 0.17001378536224365, -0.05103609710931778, -0.08649612218141556, -0.017214149236679077, 0.30010730028152466, 0.2426557093858719, -0.030584868043661118, 0.408589243888855, -0.2160344272851944, -0.10156339406967163, -0.4412136971950531, -0.35832563042640686, 0.15632212162017822, -0.13772743940353394, -0.07794760167598724, 0.3870725929737091, -0.21105031669139862, 0.11232087016105652, -0.28353527188301086, -0.14661677181720734, 0.08716636151075363, -0.4302377998828888, -0.34442007541656494, 0.08151321113109589, 0.0805242657661438, -0.16332614421844482, -0.6585807204246521, -0.06812001764774323, -0.5978437066078186, 0.1613353192806244, -0.2256726771593094, 0.025959648191928864, -0.01756524294614792, -0.16112324595451355, -0.15070785582065582, -0.18766799569129944, -0.034116074442863464, -0.1573731154203415, 0.06994323432445526, -0.3087790012359619, -0.24802227318286896, -0.014075923711061478, 0.00415082648396492, 0.03905750811100006, 0.29832178354263306, -0.2394675612449646, 0.009098552167415619, -0.10772710293531418, 0.16052503883838654, 0.17840677499771118, 0.1792033463716507, 0.13096576929092407, 0.12950563430786133, 0.2396935224533081, -0.32951369881629944, 0.1160566583275795, -0.141153946518898, -0.019333913922309875, 0.10322099924087524, -0.0026645734906196594, -0.08589459210634232, 0.11161244660615921, -0.24726955592632294, 0.500495970249176, 0.2644381523132324, -0.04614024981856346, -0.17449073493480682, -0.04776434600353241, 0.23225632309913635, -0.036033354699611664, -0.17695222795009613, 0.2095727175474167, -0.09113024175167084, 0.041999273002147675, 0.25852590799331665, -0.07549984008073807, 0.14775986969470978, -0.04543179273605347, -0.014255734160542488, -0.23508599400520325, -0.22550509870052338, -0.09037017077207565, -0.43594488501548767, 0.1381257176399231, -0.13809843361377716, -0.39865878224372864, -0.04715856909751892, 0.2931450605392456, 0.22672435641288757, 0.39496397972106934, -0.09084691852331161, 0.08661489933729172, -0.4926430881023407, -0.004326322115957737, -0.232744961977005, 0.12039469927549362, -0.0014051224570721388, 0.19742581248283386, 0.021433714777231216, -0.21944501996040344, -0.16369466483592987, -0.19915306568145752, 0.5705125331878662, -0.25963154435157776, -0.22971658408641815, 0.12995590269565582, 0.004719160497188568, 0.26189327239990234, -0.08369144797325134, -0.04425030201673508, 0.30994713306427, 0.3728354573249817, 0.16319629549980164, -0.24775180220603943, -0.4990047216415405, 0.26635897159576416, -0.032825976610183716, 0.09039896726608276, -0.15260212123394012, -0.09243984520435333, -0.19409379363059998, -0.5066816210746765, 0.14592689275741577, 0.29522883892059326, 0.004087464418262243, -0.32229703664779663, 0.22816969454288483, 0.10038144141435623, -0.10877366364002228, 0.24913673102855682, -0.14562682807445526, 0.21096819639205933, 0.04426213353872299, 0.02118818461894989, -0.2169337272644043, 0.15405797958374023, 0.48021751642227173, 0.37735751271247864, -0.030082080513238907, -0.13902224600315094, 0.2924107313156128, 0.10178092122077942, 0.42240771651268005, 0.24046027660369873, 0.09185588359832764, 0.2184397578239441, -0.050724394619464874, -0.0037835538387298584, -0.1667928695678711, 0.17305484414100647, 0.03657018020749092, 0.4048910439014435, -0.18587930500507355, -0.24044714868068695, -0.020708687603473663, 0.2256491333246231, -0.17247989773750305, 0.18331633508205414, -0.02867027372121811, -0.31319019198417664, 0.03234056755900383, 0.051753975450992584, 0.8005416393280029, 0.1754024624824524, 0.1622060090303421, 0.03224869444966316, -0.4514780640602112, 0.3785731792449951, -0.4426789879798889, 0.18686790764331818, -0.40644606947898865, 0.2487960159778595, 0.11669287085533142, -0.1326037496328354, 0.010636601597070694, -0.11708807945251465, -0.3423701524734497, 0.20315247774124146, -0.06117960065603256, 0.27945080399513245, 0.16918177902698517, 0.44539836049079895, -0.02978149615228176, 0.002997790463268757, -0.06552348285913467, 0.23318442702293396, -0.023816868662834167, -0.0965212881565094, -0.25142621994018555, 0.02983369678258896, 0.05320261791348457, 0.05949600785970688, -0.13889169692993164, -0.05891271308064461, 0.06861408799886703, 0.1344493180513382, -0.1510923206806183, -0.044435758143663406, 0.14683066308498383, 0.17224344611167908, 0.39306098222732544, 0.17461317777633667, 0.13884633779525757, 0.2277880609035492, 0.34137269854545593, 0.22717580199241638, 0.059635505080223083, -0.19605743885040283, 0.4011939465999603, -0.21485298871994019, -0.2453954517841339, -0.038274213671684265, -0.15780219435691833, -0.22580263018608093, -0.2983158528804779, 0.019654005765914917, 0.09397991746664047, -0.3650597333908081, -0.06278529763221741, 0.2153768539428711, -0.2451753467321396, -0.31641077995300293, 0.27056047320365906, -0.07998661696910858, -0.29680272936820984, 0.03714106231927872, 0.09950962662696838, -0.22613079845905304, -0.00796586275100708, -0.02549593895673752, 0.061775319278240204, -0.22469918429851532, 0.2266562432050705, 0.08789505064487457, -0.17495682835578918, -0.3366710841655731, -0.11030879616737366, 0.5460549592971802, -0.010947681963443756, 0.3724752366542816, -0.12400542944669724, -0.43517470359802246, 0.21601587533950806, 0.3426569700241089, 0.19215355813503265, 0.18581566214561462, -0.24157699942588806, 0.04663602262735367, -0.5864515900611877, 0.13475462794303894, -0.17055514454841614, 0.42724770307540894, 0.3019556701183319, 0.2816149890422821, -0.14309130609035492, 0.09113850444555283, -0.4853687584400177, -0.13189591467380524, -0.23673389852046967, 0.19341501593589783, -0.26665690541267395, -0.1772955060005188, -0.10997660458087921, -0.14837618172168732, 0.20948104560375214, -0.05908379703760147, -0.12845095992088318, -0.3723573386669159, 0.11875216662883759, 0.06382366269826889, 0.02174484170973301, 0.011605360545217991, 0.15589523315429688, 0.08116702735424042, 0.07861794531345367, 0.24743588268756866, 0.23386046290397644, -0.18157941102981567, 0.09050743281841278, 0.02078818529844284, -0.1886899620294571, -0.3488791584968567, 0.13928963243961334, -0.016138684004545212, 0.06030959635972977, -0.2080855518579483, -0.22125504910945892, 0.222332164645195, -0.0791822224855423, -0.1349804848432541, 0.11587297171354294, 0.30863669514656067, 0.3411516547203064, 0.316501259803772, -0.03111579269170761, 0.0986749529838562, -0.3557257652282715, 0.04671493172645569, 0.35460564494132996, 0.11389715224504471, -0.13287515938282013, 0.005462119355797768, 0.16317099332809448, 0.36506691575050354, -0.35792282223701477, 0.018528446555137634, 0.027826212346553802, -0.2870778441429138, 0.15415872633457184, -0.01858731359243393, 0.3186834156513214, -0.10654491931200027, 0.1364353895187378, 0.36611226201057434, 0.2182959020137787, -0.07590727508068085, 0.22612369060516357, 0.1852167397737503, -0.09093350172042847, 0.03941771388053894, 0.565538763999939, 0.18454988300800323, 0.19933933019638062, 0.10600438714027405, 0.4282815456390381, 0.5947929620742798, 0.25160062313079834, 0.042824193835258484, 0.32148444652557373, -0.08058331906795502, 0.5676457285881042, -0.12181878089904785, 0.03078436106443405, -0.0824924036860466, 0.37015342712402344, 0.3711128234863281, -0.018556199967861176, -0.4342820346355438, 0.18232882022857666, 0.28082671761512756, -0.30010566115379333, -0.011532596312463284, -0.37323352694511414, -0.0626758337020874, 0.13222509622573853, 0.03214152529835701, 0.00022354349493980408, 0.09313714504241943, 0.3540729284286499, 0.010794427245855331, -0.06618978083133698, -0.017613785341382027, -0.035310789942741394, -0.07517531514167786, 0.16739386320114136, -0.17269384860992432, 0.008510585874319077, 0.09132788330316544, -0.18339475989341736, 0.38802072405815125, 0.4037410616874695, 0.45163077116012573, 0.002737848088145256, -0.20066146552562714, -0.29235702753067017, -0.0203198604285717, 0.030339041724801064, -0.05090641230344772, 0.027741292491555214, 0.05998425930738449, -0.1761215776205063, 0.09490159153938293, 0.3363019824028015, -0.2250695675611496, 0.013779468834400177, -0.02394424006342888, -0.6442965865135193, -0.2851957678794861, -0.0424249991774559, 0.39162591099739075, -0.3681977689266205, 0.07269696891307831, 0.4546878933906555, -0.11608563363552094, -0.03355155885219574, 0.340900182723999, -0.08835058659315109, 0.11755142360925674, -0.01316655334085226, 0.21132761240005493, 0.39558854699134827, 0.12889795005321503, 0.23986388742923737, 0.12263431400060654, -0.18937750160694122, -0.23469284176826477, -0.20932994782924652, 0.10918931663036346, 0.2805148959159851, 0.03533748537302017, 0.06240581348538399, -0.14944244921207428, 0.282574325799942, -0.16417697072029114, 0.0928400307893753, -0.03995268791913986, 0.06537710875272751, -0.09690845012664795, -0.423514187335968, 0.23268501460552216, 0.13945508003234863, 0.01704254373908043, 0.2692551612854004, -0.15769168734550476, 0.2313239872455597, 0.2731965482234955, 0.211783766746521, -0.07245201617479324, 0.05126427859067917, 0.4850561022758484, -0.3058094084262848, 0.06198367476463318, 0.12109368294477463, 0.26766765117645264, -0.2910075783729553, -0.056066617369651794, -0.16776834428310394, -0.012985466048121452, -0.3861737847328186, 0.06106648966670036, -0.09385061264038086, -0.01789691485464573, -0.12520438432693481, -0.2001318335533142, -0.11046333611011505, -0.057171620428562164, 0.20362262427806854, 0.2188846617937088, -0.38447651267051697, 0.12440677732229233, -0.009120620787143707, 0.03803428262472153, 0.03627663478255272, 0.3726709485054016, -0.05602370947599411, -0.09590186178684235, -0.5962731838226318, -0.297841340303421, 0.42383673787117004, 0.20309993624687195, -0.39383241534233093, -0.13843275606632233, 0.33139222860336304, 0.18052251636981964, 0.009041850455105305, -0.5498793125152588, -0.058598294854164124, 0.10769833624362946, -0.016077380627393723, -0.3023645877838135, 0.3030717372894287, -0.14168265461921692, 0.04409050568938255, -0.09834432601928711, 0.03253224864602089, 0.07432250678539276, -0.12715473771095276, -0.19660566747188568, -0.28594934940338135 ]
https://github.com/huggingface/datasets/pull/2191
Refactorize tests to use Dataset as context manager
There are still some conflicts that prevent merging. Moreover I noticed that you added one fixture per method of the Dataset object to be mocked. The code of all these fixtures is pretty much the same, feel free to factorize them into one fixture. Also feel free to create another branch from `master` if you don't want to fix the conflicts of this branch. Let me know if I can help you on this
Refactorize Dataset tests to use Dataset as context manager.
74
text: Refactorize tests to use Dataset as context manager Refactorize Dataset tests to use Dataset as context manager. There are still some conflicts that prevent merging. Moreover I noticed that you added one fixture per method of the Dataset object to be mocked. The code of all these fixtures is pretty much the same, feel free to factorize them into one fixture. Also feel free to create another branch from `master` if you don't want to fix the conflicts of this branch. Let me know if I can help you on this
[ -0.5014613270759583, -0.06705529242753983, -0.19197480380535126, 0.014680165797472, 0.20286615192890167, 0.0669606551527977, 0.42145055532455444, 0.31443291902542114, -0.17973566055297852, 0.11960908770561218, -0.1998744159936905, 0.16087347269058228, -0.11685297638177872, 0.04136090725660324, -0.08561890572309494, 0.0652296170592308, 0.08688025921583176, 0.2423102706670761, -0.6077538728713989, 0.25710487365722656, 0.016476519405841827, 0.17790789902210236, -0.10736440122127533, -0.04419755935668945, -0.1670529842376709, -0.04153186082839966, -0.29894980788230896, 0.11519958078861237, -0.18691079318523407, -0.31481659412384033, 0.027442874386906624, 0.1852344423532486, -0.2682120203971863, 0.6465725302696228, -0.00009640117787057534, -0.09654101729393005, 0.3932494521141052, 0.08148236572742462, -0.11277139186859131, 0.07684753835201263, -0.09531359374523163, -0.09824314713478088, -0.08559270203113556, -0.2025127410888672, -0.18015646934509277, -0.1366196572780609, -0.1235751360654831, -0.12478397786617279, 0.2091936618089676, 0.4030662178993225, 0.3482699394226074, 0.06979811936616898, -0.06897878646850586, -0.2306978553533554, 0.029167551547288895, -0.030488193035125732, 0.14795483648777008, 0.07505308091640472, 0.0542050264775753, 0.07709982991218567, -0.08347157388925552, 0.02263433299958706, -0.013068093918263912, -0.024730749428272247, 0.10683711618185043, -0.42673224210739136, 0.07172919809818268, 0.04266471415758133, 0.016799159348011017, -0.11992136389017105, 0.5631350874900818, -0.15143942832946777, 0.047897160053253174, 0.2239305078983307, -0.041500773280858994, -0.12583820521831512, -0.11663072556257248, -0.16586843132972717, 0.09005750715732574, 0.20926065742969513, -0.1875220686197281, -0.3972032368183136, 0.037342578172683716, 0.03274240344762802, -0.24918723106384277, 0.18072441220283508, -0.03654245287179947, 0.07654302567243576, 0.011815644800662994, -0.0798625648021698, 0.10839921981096268, -0.1713637113571167, -0.2804001569747925, -0.2193855345249176, -0.12762963771820068, -0.23587171733379364, 0.018822576850652695, 0.026643406599760056, 0.16428473591804504, 0.4873531460762024, -0.21309487521648407, 0.23934930562973022, 0.12849080562591553, 0.05202212929725647, 0.09836897253990173, 0.32405832409858704, 0.14803296327590942, 0.07805769145488739, 0.4086254835128784, 0.06875986605882645, -0.2936611771583557, 0.1295892894268036, 0.14930486679077148, -0.5700255036354065, -0.21368861198425293, 0.18324014544487, 0.25008493661880493, -0.18620948493480682, -0.04884558171033859, -0.22545558214187622, -0.15351691842079163, -0.024569518864154816, -0.13283556699752808, 0.19755089282989502, 0.08639227598905563, 0.12097088247537613, 0.23673899471759796, 0.12783432006835938, -0.056664563715457916, -0.11623838543891907, -0.26199424266815186, 0.16436508297920227, -0.23751497268676758, -0.12457454949617386, -0.035521987825632095, -0.1509966105222702, 0.35456064343452454, 0.09754864871501923, 0.13058270514011383, -0.1955968141555786, -0.04359162598848343, 0.16454870998859406, 0.07796967774629593, -0.06002389267086983, -0.04500551149249077, -0.1534356027841568, 0.08870910853147507, 0.22542895376682281, -0.051353052258491516, -0.06765089184045792, 0.14354358613491058, -0.23470401763916016, 0.04229903221130371, 0.3716115653514862, -0.17597168684005737, 0.18765461444854736, -0.04413343220949173, 0.12374533712863922, -0.15345120429992676, -0.12787002325057983, -0.08771219104528427, -0.02103251963853836, -0.06967279314994812, -0.09576202929019928, 0.18830318748950958, 0.24147838354110718, -0.15754257142543793, 0.08990165591239929, -0.10504221171140671, -0.12480784952640533, -0.18368172645568848, 0.0668414980173111, -0.25870510935783386, 0.23075097799301147, -0.44782212376594543, -0.2915712594985962, 0.09751497209072113, -0.5168797969818115, -0.12903720140457153, 0.06668081879615784, -0.33483952283859253, -0.09089718014001846, -0.008063308894634247, -0.15479595959186554, -0.12080118060112, -0.2038864642381668, -0.09953869879245758, 0.15679258108139038, -0.04070420563220978, 0.06294957548379898, -0.18703599274158478, -0.10842573642730713, 0.1281580924987793, -0.18558759987354279, 0.043851226568222046, 0.13029807806015015, -0.010252013802528381, -0.010738509707152843, 0.1977965235710144, -0.17084860801696777, 0.05260133743286133, 0.13993847370147705, 0.23011277616024017, -0.029851846396923065, -0.0012333076447248459, -0.2888813018798828, -0.15399938821792603, -0.11198216676712036, 0.14917239546775818, 0.3053145408630371, 0.33567649126052856, -0.1700812578201294, -0.30425187945365906, -0.20685508847236633, -0.011472027748823166, -0.4153103530406952, 0.33524107933044434, 0.18709568679332733, -0.1278693974018097, -0.37764278054237366, 0.01352984830737114, 0.16867493093013763, 0.049086347222328186, -0.034645240753889084, -0.0659777820110321, 0.07878012955188751, -0.3734208047389984, -0.02436324581503868, 0.3302331268787384, 0.28188231587409973, 0.17133021354675293, -0.14201243221759796, -0.08342225104570389, 0.48020684719085693, 0.08177226036787033, 0.17817085981369019, 0.12185558676719666, -0.18880648910999298, 0.05431514233350754, -0.21856822073459625, -0.07388168573379517, 0.03293263539671898, -0.08216685056686401, -0.09074543416500092, -0.183587908744812, 0.16415667533874512, 0.3252793252468109, -0.003587886691093445, 0.04711440950632095, 0.036846332252025604, 0.08293890208005905, -0.11929965019226074, -0.10708042234182358, -0.12420088052749634, 0.0457921028137207, 0.11893424391746521, 0.1268698275089264, 0.39561715722084045, -0.04131379351019859, 0.0410262756049633, 0.030968477949500084, -0.05863142013549805, -0.06380482763051987, -0.18979912996292114, -0.1452885866165161, -0.14202328026294708, 0.20291203260421753, -0.09119315445423126, 0.35330265760421753, 0.3875780403614044, 0.009257342666387558, 0.1789904236793518, 0.1422802209854126, -0.07697542011737823, 0.2546788156032562, 0.1525377631187439, 0.2974247634410858, 0.0487377755343914, 0.30184683203697205, -0.22846974432468414, -0.14690330624580383, -0.0409824438393116, 0.15923014283180237, 0.031453609466552734, -0.3904409110546112, -0.23841680586338043, -0.4476730525493622, -0.08479978144168854, -0.25699907541275024, 0.12567198276519775, 0.029934663325548172, -0.24406202137470245, 0.016594383865594864, 0.23067352175712585, -0.28433623909950256, 0.30113711953163147, 0.0983758419752121, 0.2884381115436554, -0.016694214195013046, 0.1654702126979828, -0.04479869082570076, -0.1527673602104187, -0.19945058226585388, 0.21916745603084564, 0.30408069491386414, 0.1286594420671463, 0.39120203256607056, -0.08325058221817017, -0.03750777989625931, -0.4345625936985016, -0.4233455955982208, 0.1453750729560852, -0.11653871834278107, 0.36027321219444275, 0.4443401098251343, -0.11509595811367035, 0.17108945548534393, -0.07201450318098068, -0.005337141454219818, 0.018607301637530327, -0.34584665298461914, -0.2161329984664917, 0.1153479591012001, 0.023121356964111328, -0.034337058663368225, -0.6506682634353638, 0.025474682450294495, -0.5726332664489746, -0.10758280754089355, -0.29305487871170044, -0.06850051879882812, -0.049284085631370544, -0.07569035142660141, 0.020485058426856995, 0.023603353649377823, 0.09179173409938812, -0.08650339394807816, 0.09256942570209503, -0.03812858834862709, -0.46914994716644287, -0.2058437019586563, -0.018786132335662842, 0.04793238639831543, 0.3646700978279114, -0.3013896942138672, -0.12460917234420776, -0.19434072077274323, 0.16636979579925537, 0.02293429896235466, 0.18767035007476807, 0.025189239531755447, 0.12650278210639954, 0.2567914128303528, -0.27253255248069763, -0.05317147076129913, -0.21919362246990204, 0.08772701770067215, 0.08455408364534378, 0.048264723271131516, -0.0856202244758606, 0.145960733294487, -0.1711329072713852, 0.3926849365234375, 0.2037961781024933, -0.08158184587955475, 0.03925539180636406, -0.09732098132371902, 0.19618859887123108, -0.08603423088788986, -0.31294313073158264, 0.20948101580142975, 0.023124560713768005, -0.005919307470321655, 0.2646291255950928, -0.05111977458000183, 0.10897557437419891, -0.04057794809341431, -0.07811619341373444, -0.20162808895111084, -0.3287103772163391, -0.1454029381275177, -0.508381724357605, -0.03411998599767685, -0.06603413820266724, -0.16454145312309265, -0.021774988621473312, 0.09740611910820007, 0.3952901065349579, 0.09438479691743851, -0.23718923330307007, 0.07371243089437485, -0.491538405418396, -0.01695830747485161, -0.2668238878250122, 0.3408237099647522, -0.026133477687835693, 0.16854731738567352, -0.04134022444486618, -0.14851918816566467, -0.12075561285018921, -0.18386176228523254, 0.5973606705665588, -0.29040205478668213, -0.05055824667215347, 0.126625195145607, 0.02463269978761673, 0.036580607295036316, -0.031932294368743896, -0.01318124309182167, 0.22360889613628387, 0.17690543830394745, 0.20426999032497406, -0.25344592332839966, -0.46873629093170166, 0.21915172040462494, 0.14111392199993134, 0.07191015779972076, -0.0848207175731659, -0.11028240621089935, -0.27305319905281067, -0.36802706122398376, -0.009190306067466736, 0.0598439946770668, 0.12611041963100433, -0.3256092369556427, -0.13493338227272034, -0.032560430467128754, -0.17895415425300598, 0.23687513172626495, -0.05544286221265793, 0.3089665174484253, -0.11806346476078033, 0.03791182115674019, -0.045478492975234985, 0.1281960904598236, 0.3354834020137787, 0.3407731056213379, 0.05009803920984268, 0.014274626970291138, 0.16203251481056213, -0.027997959405183792, 0.4558824896812439, 0.11770786345005035, 0.068901427090168, 0.009146839380264282, -0.2925668954849243, -0.00015989691019058228, -0.10089810192584991, 0.2196153849363327, 0.15986382961273193, 0.3864036202430725, -0.1625635176897049, -0.17386220395565033, 0.060234084725379944, 0.05940986052155495, -0.18784278631210327, 0.26187077164649963, 0.014066748321056366, -0.29910698533058167, 0.18598927557468414, 0.1021333709359169, 0.7468322515487671, 0.2713744640350342, -0.015973109751939774, 0.16337156295776367, -0.39624035358428955, 0.361738920211792, -0.02134850062429905, 0.18204668164253235, -0.31587880849838257, 0.12871138751506805, 0.1684289127588272, -0.20935150980949402, 0.1903226673603058, 0.13144713640213013, -0.3997141718864441, 0.2414126694202423, -0.10966110229492188, 0.39371076226234436, 0.0018176045268774033, 0.47297847270965576, 0.09944147616624832, 0.023842573165893555, -0.11764529347419739, 0.351647287607193, 0.009876172989606857, -0.03982098028063774, -0.18937072157859802, 0.0586504191160202, -0.04745492711663246, 0.02427911013364792, 0.039994075894355774, 0.23450860381126404, 0.04779258370399475, 0.21077248454093933, -0.22266951203346252, -0.1828354150056839, 0.17631195485591888, 0.21861545741558075, 0.1221899464726448, 0.16337496042251587, 0.042813509702682495, 0.2773449718952179, 0.11297527700662613, 0.26790541410446167, 0.03871896490454674, -0.2311074435710907, 0.446233332157135, -0.18721327185630798, -0.35789230465888977, 0.09399279206991196, -0.027825362980365753, -0.2693479359149933, 0.015321031212806702, -0.0796421468257904, 0.014493368566036224, -0.4511057138442993, -0.17442473769187927, 0.22322489321231842, -0.026601895689964294, -0.32377785444259644, 0.2862741947174072, -0.1124982237815857, -0.42377209663391113, 0.29993870854377747, 0.1499718427658081, -0.17847833037376404, 0.12491515278816223, 0.1530379354953766, -0.006279941648244858, -0.12521347403526306, 0.4180684983730316, 0.33670321106910706, 0.01699858531355858, -0.35773542523384094, -0.17527204751968384, 0.5447894930839539, 0.006048604846000671, 0.3670932650566101, -0.22598184645175934, -0.327019602060318, 0.1950041651725769, 0.4290311932563782, 0.148630291223526, 0.13329948484897614, -0.24976563453674316, 0.031509146094322205, -0.5393723845481873, 0.07690256834030151, 0.06016473472118378, 0.5326616764068604, 0.08471628278493881, 0.22986944019794464, -0.07188884168863297, 0.36284705996513367, -0.4907051920890808, -0.16693536937236786, -0.32555997371673584, 0.17340198159217834, -0.1347580850124359, -0.09671277552843094, -0.09887680411338806, -0.0678117573261261, 0.23013922572135925, -0.06460896879434586, -0.13953843712806702, -0.3797459900379181, 0.08267572522163391, 0.01867733895778656, 0.03455238789319992, 0.12252966314554214, 0.04913424327969551, -0.07053167372941971, 0.16893085837364197, 0.006085070315748453, 0.35050588846206665, -0.029164813458919525, -0.014035671949386597, -0.1055910512804985, -0.1657743901014328, -0.3169064521789551, 0.07666370272636414, -0.04137799143791199, 0.12969590723514557, -0.11197896301746368, -0.048788268119096756, 0.02348361164331436, 0.08341111242771149, -0.21841251850128174, 0.40804943442344666, 0.2647612690925598, 0.27612781524658203, 0.2580375075340271, -0.00569424033164978, 0.06914546340703964, -0.3302510678768158, 0.14969636499881744, 0.36938995122909546, 0.053746338933706284, 0.01736912690103054, -0.012613748200237751, 0.07198642194271088, 0.38513386249542236, -0.37971875071525574, 0.07582462579011917, 0.15862713754177094, -0.22522565722465515, 0.20321229100227356, 0.025441467761993408, 0.07150450348854065, -0.0788191556930542, 0.023689303547143936, 0.3038652837276459, 0.29020389914512634, -0.16027556359767914, 0.24651573598384857, 0.06604428589344025, -0.25224030017852783, -0.049388203769922256, 0.5459651350975037, 0.024649403989315033, 0.2959308326244354, 0.2177179604768753, 0.39154165983200073, 0.6321254968643188, 0.08250348269939423, 0.06649184226989746, 0.361755907535553, 0.09777410328388214, 0.3506585359573364, 0.12152338773012161, 0.2218128740787506, 0.0022792592644691467, 0.15582361817359924, 0.4952368140220642, -0.17050571739673615, -0.5393439531326294, 0.09322869777679443, 0.24656502902507782, -0.22026768326759338, 0.11124597489833832, -0.38618358969688416, -0.0457741804420948, 0.08315610885620117, -0.08597297221422195, 0.08241555094718933, -0.04442819952964783, 0.2957974672317505, 0.08161227405071259, -0.15915657579898834, -0.1637822687625885, -0.12472023814916611, -0.027098827064037323, 0.13793927431106567, -0.11989739537239075, 0.14361722767353058, 0.08639132231473923, -0.08940072357654572, 0.27126839756965637, 0.44898688793182373, 0.38484227657318115, 0.11536039412021637, -0.19546370208263397, -0.27644675970077515, 0.05625828728079796, -0.08785296231508255, -0.089879110455513, 0.023710934445261955, -0.1881580948829651, -0.2104918658733368, 0.20261560380458832, 0.3648419976234436, -0.21829041838645935, -0.006205599755048752, 0.01521773636341095, -0.534704327583313, -0.2868786156177521, 0.10265807062387466, 0.20522193610668182, -0.3569631278514862, 0.031465742737054825, 0.07838796824216843, -0.2839236557483673, -0.19811707735061646, 0.3657350540161133, -0.273662269115448, 0.03825383260846138, -0.1043863296508789, 0.2103748917579651, 0.21412181854248047, 0.14681947231292725, 0.08687187731266022, 0.17411741614341736, -0.2973073422908783, -0.38436853885650635, -0.49996617436408997, 0.08841881155967712, 0.20837141573429108, -0.069575734436512, -0.12579947710037231, -0.1112886294722557, 0.24774372577667236, -0.34742629528045654, 0.17991459369659424, -0.14652127027511597, 0.19788283109664917, -0.069689080119133, -0.47196248173713684, 0.154226616024971, -0.16499508917331696, -0.03325200825929642, 0.16633835434913635, -0.10319861769676208, 0.14353713393211365, 0.2561812102794647, 0.2077006995677948, 0.037303537130355835, 0.06720371544361115, 0.4808885455131531, -0.4434570372104645, 0.25380757451057434, 0.04396747797727585, 0.42359834909439087, -0.22296929359436035, 0.09151482582092285, -0.146926611661911, -0.0004311446100473404, -0.2721678912639618, 0.02451128512620926, -0.04107806459069252, 0.22326886653900146, -0.0477367639541626, 0.14112919569015503, -0.10975667089223862, 0.10582181066274643, 0.26839327812194824, 0.14348465204238892, -0.1925245225429535, 0.11184089630842209, -0.1232990249991417, 0.00983947142958641, 0.03472404554486275, 0.35883012413978577, -0.06369803100824356, 0.08977220952510834, -0.3764457106590271, -0.27011439204216003, 0.4519452154636383, 0.10197075456380844, -0.4627038538455963, -0.13126160204410553, 0.3639596402645111, 0.05535298213362694, -0.19095411896705627, -0.4121955633163452, -0.2615179419517517, -0.016676045954227448, 0.12731996178627014, -0.10934969782829285, 0.473725825548172, -0.0020769378170371056, 0.09164831042289734, -0.02954699657857418, 0.1563354730606079, 0.21269762516021729, 0.11202292144298553, -0.13012687861919403, -0.14470724761486053 ]
https://github.com/huggingface/datasets/pull/2191
Refactorize tests to use Dataset as context manager
@lhoestq, yes, the new conflicts appeared after today merge commits on master... I am definitely going to split this PR into smaller ones in order to avoid having to resolve many conflicts after each commit on master. There are lots of conflicts and these are painful to resolve.
Refactorize Dataset tests to use Dataset as context manager.
48
text: Refactorize tests to use Dataset as context manager Refactorize Dataset tests to use Dataset as context manager. @lhoestq, yes, the new conflicts appeared after today merge commits on master... I am definitely going to split this PR into smaller ones in order to avoid having to resolve many conflicts after each commit on master. There are lots of conflicts and these are painful to resolve.
[ -0.4075678586959839, 0.021595105528831482, -0.1908416599035263, 0.028543896973133087, 0.04733918234705925, -0.1410450041294098, 0.33312517404556274, 0.33350515365600586, -0.2571549415588379, 0.14860282838344574, 0.0025500974152237177, -0.015781326219439507, -0.053150154650211334, 0.08082013577222824, -0.29434582591056824, 0.04842124506831169, 0.15335045754909515, 0.09870032966136932, -0.23807162046432495, 0.20503352582454681, -0.21833540499210358, 0.17001962661743164, -0.21885794401168823, 0.11670061945915222, -0.12663418054580688, -0.08199170231819153, -0.12354392558336258, 0.3810974061489105, -0.07763087749481201, -0.5122196078300476, 0.24508322775363922, 0.30012357234954834, -0.23992404341697693, 0.4313652813434601, -0.00009770198084879667, -0.060400839895009995, 0.29678821563720703, 0.06292696297168732, -0.09287247061729431, 0.0664294883608818, -0.12284175306558609, -0.07178880274295807, -0.10547719895839691, -0.07213960587978363, -0.07894228398799896, -0.13459250330924988, -0.16556382179260254, -0.12174104154109955, 0.07376131415367126, 0.48969766497612, 0.34943389892578125, 0.19145965576171875, -0.08702569454908371, -0.31648293137550354, -0.05224441736936569, 0.13572701811790466, 0.12915542721748352, 0.10574252903461456, 0.20355066657066345, -0.04004882276058197, -0.06741667538881302, 0.10812848806381226, -0.009341087192296982, 0.0708860233426094, 0.14676174521446228, -0.3160626292228699, 0.2720537483692169, -0.12912316620349884, 0.24524599313735962, -0.03670971840620041, 0.43762242794036865, -0.11447864025831223, 0.06795089691877365, -0.13907061517238617, -0.04122484102845192, -0.17690740525722504, 0.1930692493915558, 0.021751999855041504, 0.084012970328331, 0.2042655497789383, -0.01038617268204689, -0.3304881751537323, 0.07937772572040558, -0.15118257701396942, -0.3314768373966217, 0.007031545042991638, -0.03331197425723076, 0.004031602293252945, 0.23603805899620056, -0.1083308756351471, 0.18635773658752441, -0.20742949843406677, -0.40417274832725525, -0.13928797841072083, -0.19223831593990326, -0.09784306585788727, -0.14527705311775208, -0.18032699823379517, -0.025568250566720963, 0.2822795808315277, -0.27714982628822327, 0.057451359927654266, 0.011707193218171597, -0.01764450967311859, 0.34077054262161255, 0.14384470880031586, 0.11631951481103897, 0.274336576461792, 0.5194517374038696, 0.038309384137392044, -0.05045248195528984, 0.19197499752044678, -0.02909145876765251, -0.565902054309845, -0.23418797552585602, 0.1396884173154831, 0.35184967517852783, -0.10029295086860657, -0.19617334008216858, 0.08178621530532837, -0.23835602402687073, -0.24860309064388275, -0.20051197707653046, 0.05114986002445221, 0.1290339231491089, 0.3010745644569397, 0.13841339945793152, 0.09230262786149979, -0.07245830446481705, -0.1580573320388794, -0.255452424287796, -0.058064866811037064, -0.2661445736885071, -0.31087201833724976, -0.07252149283885956, -0.22519290447235107, 0.15681032836437225, 0.09140928834676743, 0.07512732595205307, -0.27427569031715393, -0.11639446020126343, 0.18562880158424377, 0.1199738010764122, 0.20142896473407745, 0.00931800901889801, -0.014989936724305153, 0.016225431114435196, 0.027602441608905792, -0.08639216423034668, 0.21433508396148682, 0.07858560234308243, -0.3075750768184662, 0.14181239902973175, 0.4011807143688202, -0.13224104046821594, 0.1770649552345276, -0.021710947155952454, 0.15282297134399414, 0.0585220642387867, -0.04121395945549011, 0.1704576015472412, -0.12937548756599426, -0.12154433131217957, -0.03631967678666115, -0.050271548330783844, 0.20800763368606567, -0.28048959374427795, -0.04931623861193657, 0.033180318772792816, -0.1447214037179947, -0.17558664083480835, 0.2806170880794525, -0.18783196806907654, 0.1358375996351242, -0.26270830631256104, -0.22109253704547882, 0.05093909800052643, -0.4694869816303253, -0.19467999041080475, -0.10075004398822784, -0.33209508657455444, -0.11029406636953354, 0.2305971384048462, -0.2375672161579132, 0.052126191556453705, -0.3629319965839386, 0.04249131307005882, 0.07377664744853973, -0.09693373739719391, 0.13270586729049683, -0.10826624929904938, -0.10807349532842636, 0.11068066209554672, -0.11010271310806274, 0.2122386246919632, 0.046015992760658264, 0.13735823333263397, 0.14790983498096466, 0.14122852683067322, -0.09401534497737885, 0.04428446292877197, 0.2709045708179474, 0.23774030804634094, -0.14513081312179565, 0.09265384823083878, -0.07634226232767105, -0.035565055906772614, -0.008676040917634964, 0.1276041716337204, 0.12435956299304962, 0.49492496252059937, -0.20538583397865295, -0.17197665572166443, -0.22612853348255157, -0.11583440005779266, -0.48642757534980774, 0.20861360430717468, 0.05573691055178642, 0.04709682986140251, -0.16311119496822357, -0.05614023655653, 0.33056890964508057, -0.2451673150062561, -0.012368287891149521, 0.04770394787192345, 0.05144697427749634, -0.40378791093826294, 0.045775607228279114, 0.24702495336532593, 0.2989397943019867, -0.01315588504076004, -0.1351769119501114, 0.021603785455226898, 0.40485575795173645, 0.026231540367007256, 0.2066344916820526, 0.09041045606136322, 0.03954875469207764, 0.2804243266582489, -0.04656418040394783, -0.03204946964979172, -0.1254452019929886, -0.20814308524131775, 0.08105497807264328, -0.15332534909248352, 0.45365840196609497, 0.16999965906143188, 0.20151132345199585, 0.12903966009616852, -0.0437755323946476, 0.19656112790107727, -0.17295034229755402, 0.019382385537028313, -0.04560397192835808, 0.03679011017084122, 0.12905143201351166, -0.007895030081272125, 0.3465835452079773, -0.245994433760643, 0.2404148280620575, 0.24249589443206787, -0.10872182250022888, -0.23080140352249146, 0.04106535017490387, -0.10560861974954605, -0.09611522406339645, -0.028249332681298256, 0.2495376020669937, 0.3755257725715637, 0.3422161936759949, -0.1087123453617096, 0.23675765097141266, 0.09256643056869507, -0.20278052985668182, 0.4127510190010071, 0.15348419547080994, 0.0892491564154625, 0.14933522045612335, 0.3475097715854645, -0.06963029503822327, -0.1956501007080078, 0.2528378665447235, 0.2550804018974304, 0.1022854894399643, -0.41151589155197144, -0.11702672392129898, -0.46227240562438965, -0.27623066306114197, -0.06516092270612717, 0.2357335239648819, -0.05542871728539467, -0.2344585806131363, 0.18909473717212677, 0.16581924259662628, -0.19587180018424988, 0.3539804220199585, 0.13068023324012756, 0.6438984870910645, -0.07161735743284225, 0.48002317547798157, 0.06625105440616608, -0.2613533139228821, -0.2795078754425049, 0.24827349185943604, 0.35414209961891174, -0.210041806101799, 0.2740095555782318, -0.2798450291156769, 0.032138384878635406, -0.48888862133026123, -0.42812618613243103, 0.10947223007678986, -0.12441854178905487, 0.051727086305618286, 0.3029676675796509, -0.20989634096622467, 0.2420588880777359, -0.2296271175146103, -0.08288034051656723, -0.04319604113698006, -0.5188679695129395, -0.2663947641849518, 0.1382421851158142, -0.0019722329452633858, -0.20442813634872437, -0.7324481010437012, -0.0683392807841301, -0.4286856949329376, 0.19325584173202515, -0.17777588963508606, 0.100326307117939, -0.030118975788354874, -0.15528273582458496, -0.2311038076877594, -0.11217033118009567, -0.1326296329498291, -0.2730381190776825, 0.017651189118623734, -0.2991148829460144, -0.2733708620071411, -0.24453343451023102, 0.047549378126859665, 0.19787542521953583, 0.18555454909801483, -0.2525593042373657, -0.19431236386299133, -0.08809195458889008, 0.18799947202205658, 0.3326384425163269, 0.20233453810214996, 0.06868551671504974, 0.058451876044273376, 0.2828139066696167, -0.2854667007923126, 0.015579357743263245, -0.12242677807807922, 0.08004236221313477, 0.2110162377357483, 0.01663653552532196, -0.10224957019090652, -0.03143197298049927, -0.1426316350698471, 0.6247902512550354, 0.018109899014234543, -0.061398472636938095, -0.11567462980747223, 0.014202842488884926, 0.3153241276741028, 0.051837995648384094, -0.17058491706848145, 0.2726285457611084, -0.07605122029781342, 0.08024776726961136, 0.23262061178684235, -0.0011478476226329803, 0.0557560995221138, 0.0633222907781601, -0.029967237263917923, -0.17200109362602234, -0.3231857717037201, -0.1771935224533081, -0.4809228777885437, 0.07830733060836792, -0.002732662484049797, -0.37119847536087036, -0.14597243070602417, 0.14875221252441406, 0.0733906626701355, 0.2374231517314911, -0.10975455492734909, 0.004298078361898661, -0.5473241209983826, 0.06463130563497543, -0.16820448637008667, 0.14299696683883667, -0.15154018998146057, 0.25775209069252014, -0.17118410766124725, -0.19196707010269165, 0.013214275240898132, -0.15969479084014893, 0.6427446603775024, -0.13846677541732788, -0.1618940234184265, 0.11645086109638214, -0.03469834476709366, 0.08082396537065506, -0.2030048817396164, -0.1206866055727005, 0.26814159750938416, 0.4068298637866974, 0.12172551453113556, -0.10465170443058014, -0.4426440894603729, 0.24593085050582886, -0.011470838449895382, -0.06402614712715149, 0.028504837304353714, -0.10717251151800156, -0.09877011179924011, -0.4733431041240692, 0.1752086877822876, 0.19357630610466003, -0.0866599977016449, -0.4855652451515198, 0.10976254940032959, 0.07747642695903778, -0.03265593945980072, 0.08520889282226562, -0.17303821444511414, 0.14828166365623474, -0.14615726470947266, 0.04774649068713188, 0.10982581973075867, 0.11832983046770096, 0.5063032507896423, 0.4034861922264099, 0.051412664353847504, -0.20888370275497437, 0.33576956391334534, -0.08283430337905884, 0.3351340889930725, 0.2828937768936157, 0.10823217034339905, 0.1635391116142273, -0.047798968851566315, 0.06479617208242416, -0.40056729316711426, 0.18797019124031067, 0.22080297768115997, 0.30193382501602173, -0.17064644396305084, -0.29363006353378296, -0.24213111400604248, 0.15293166041374207, -0.27632635831832886, 0.28812870383262634, -0.05131740868091583, -0.22282472252845764, -0.03823620080947876, 0.048787422478199005, 0.6783953309059143, 0.18788406252861023, 0.035050664097070694, 0.14114005863666534, -0.5027256608009338, 0.4235430061817169, -0.34575581550598145, 0.24400447309017181, -0.3900509178638458, 0.20586742460727692, 0.09449579566717148, -0.21386079490184784, 0.15918371081352234, -0.14606024324893951, -0.30497685074806213, 0.10689646005630493, -0.08146610110998154, 0.18894565105438232, 0.08826018124818802, 0.36141324043273926, 0.005810409784317017, 0.08649030327796936, 0.0888870432972908, 0.2530003488063812, 0.07047951221466064, 0.13794086873531342, -0.19464272260665894, 0.008479655720293522, 0.007242530584335327, -0.06377728283405304, -0.27911317348480225, 0.053190164268016815, 0.0973452627658844, 0.027913931757211685, 0.08721695840358734, -0.05829407647252083, 0.21227163076400757, 0.19474704563617706, 0.4214933514595032, 0.22075702250003815, 0.08570554107427597, 0.4354650676250458, 0.2698866128921509, 0.3345925807952881, 0.14094167947769165, -0.10463204979896545, 0.37866300344467163, -0.1437925398349762, -0.3851054310798645, -0.04712093621492386, -0.15838535130023956, -0.1862517148256302, -0.44654735922813416, 0.0687502771615982, -0.11020247638225555, -0.23595334589481354, -0.03366972506046295, 0.10628239810466766, -0.2095392495393753, -0.2637692391872406, 0.26761317253112793, -0.10883939266204834, -0.1642526388168335, 0.03918470814824104, 0.03202125430107117, -0.34558698534965515, -0.01734994351863861, 0.17373621463775635, 0.20599398016929626, -0.18272878229618073, 0.4279460608959198, 0.15044428408145905, -0.09358123689889908, -0.31802183389663696, -0.1725635528564453, 0.5417507290840149, -0.13375043869018555, 0.3392547070980072, -0.18950185179710388, -0.4607786536216736, 0.36164724826812744, 0.4335152506828308, 0.12964817881584167, 0.09508992731571198, -0.34924107789993286, -0.111006960272789, -0.3433280885219574, 0.011468358337879181, -0.1513487994670868, 0.24814175069332123, 0.2718174159526825, 0.10191240906715393, -0.17006760835647583, 0.1788552850484848, -0.4459851086139679, -0.005544054321944714, -0.23123465478420258, 0.14780379831790924, -0.18147219717502594, -0.24825245141983032, -0.13671669363975525, -0.29087314009666443, 0.1315038502216339, -0.1454935520887375, -0.28831395506858826, -0.3208397924900055, -0.002763178199529648, 0.06789659708738327, -0.12532982230186462, -0.037266068160533905, -0.0027569595258682966, -0.14226162433624268, 0.2122858613729477, 0.2714190185070038, 0.38807955384254456, 0.02535919100046158, -0.09283842146396637, -0.21919472515583038, -0.16164720058441162, -0.2643762230873108, 0.25500309467315674, 0.16994452476501465, 0.01804092526435852, -0.20480339229106903, -0.1292407512664795, 0.17139917612075806, -0.06934097409248352, -0.05240563303232193, 0.06201927363872528, 0.31279197335243225, 0.18520137667655945, 0.3602263331413269, 0.15873576700687408, -0.03728724271059036, -0.30235037207603455, 0.031017540022730827, 0.35642850399017334, 0.2050451636314392, -0.06810540705919266, -0.23699934780597687, 0.108889140188694, 0.3225637674331665, -0.3542817533016205, -0.22010667622089386, 0.13209928572177887, -0.11203058809041977, 0.05906962975859642, -0.008277066051959991, 0.5118703842163086, -0.18541961908340454, 0.06874682754278183, 0.41140779852867126, 0.4254290461540222, -0.2534658908843994, 0.3645164966583252, 0.22364844381809235, -0.18139982223510742, -0.02909966930747032, 0.5719494223594666, -0.015338629484176636, 0.15741810202598572, 0.08988060802221298, 0.46356505155563354, 0.6932792663574219, 0.4369872808456421, -0.0408063642680645, 0.2652493715286255, -0.2579303979873657, 0.5025111436843872, -0.12371435761451721, -0.02411043643951416, -0.06461445242166519, 0.21762172877788544, 0.3836139440536499, -0.19778968393802643, -0.43308699131011963, -0.012553504668176174, 0.17032063007354736, -0.3162742853164673, -0.02988913096487522, -0.3704109489917755, -0.21562141180038452, 0.2223953902721405, 0.04957638308405876, 0.028495050966739655, 0.24355953931808472, 0.3755186200141907, -0.0344163253903389, -0.09826263785362244, -0.11224672198295593, -0.09151012450456619, -0.28283268213272095, 0.1383683979511261, -0.007425963878631592, 0.26291874051094055, 0.0158078670501709, -0.15311205387115479, 0.3967996835708618, 0.3813095986843109, 0.48790624737739563, 0.23536314070224762, -0.2302645593881607, -0.3994249701499939, 0.0898045152425766, 0.019313322380185127, -0.12770576775074005, 0.1836908459663391, -0.020937897264957428, -0.16660641133785248, 0.03795799985527992, 0.32472822070121765, -0.17737524211406708, 0.08689991384744644, 0.06479641795158386, -0.5020173192024231, -0.1744847446680069, -0.025243788957595825, 0.19633042812347412, -0.3323243260383606, 0.29586338996887207, 0.275686651468277, -0.15212462842464447, 0.06816767156124115, 0.43715542554855347, -0.16093705594539642, 0.15144005417823792, -0.15543872117996216, 0.22472435235977173, 0.3327650725841522, 0.3018646538257599, 0.24578100442886353, -0.09828942269086838, -0.1553814709186554, -0.17406150698661804, -0.3603138029575348, 0.3556772768497467, 0.019693341106176376, 0.14019455015659332, 0.06834420561790466, -0.028416737914085388, 0.26991695165634155, -0.1529269814491272, 0.26906561851501465, -0.2496558129787445, -0.03764501214027405, -0.18507398664951324, -0.7289013266563416, 0.2587519586086273, 0.20551158487796783, -0.1125098466873169, 0.08569049090147018, -0.05017853155732155, 0.34470176696777344, 0.1841772496700287, 0.19184428453445435, 0.03225589916110039, 0.034192606806755066, 0.44303104281425476, -0.21918237209320068, -0.027718201279640198, 0.07238752394914627, 0.2576155364513397, -0.06136878579854965, 0.049741655588150024, -0.3140539526939392, -0.19488577544689178, -0.2298664152622223, 0.11704813688993454, -0.21077534556388855, 0.06180786341428757, -0.1922701597213745, -0.12317804992198944, -0.19371265172958374, 0.0023564619477838278, 0.20123210549354553, 0.3115558624267578, -0.33197808265686035, 0.11753921955823898, 0.020691730082035065, 0.040306009352207184, 0.12440988421440125, 0.33212417364120483, 0.03751838952302933, 0.07965447008609772, -0.41580355167388916, -0.11691864579916, 0.29465916752815247, 0.21154823899269104, -0.3443370759487152, -0.13554747402668, 0.2942717373371124, 0.17256030440330505, -0.04639656841754913, -0.5140503644943237, -0.10200206190347672, 0.16982044279575348, -0.013784077018499374, -0.22466033697128296, 0.2524709403514862, -0.08596453070640564, -0.03326154127717018, 0.06911930441856384, 0.007184430956840515, -0.06243119388818741, -0.1886465847492218, -0.021738698706030846, -0.09626717865467072 ]
https://github.com/huggingface/datasets/pull/2182
Set default in-memory value depending on the dataset size
TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~
Set a default value for `in_memory` depending on the size of the dataset to be loaded. Close #2179. TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~
44
text: Set default in-memory value depending on the dataset size Set a default value for `in_memory` depending on the size of the dataset to be loaded. Close #2179. TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~ TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~
[ -0.4471150040626526, -0.346235454082489, -0.20065440237522125, 0.019343040883541107, 0.23685243725776672, -0.054252058267593384, 0.03318662941455841, 0.4031739830970764, 0.36366206407546997, 0.3840909004211426, 0.14795608818531036, 0.2021271139383316, -0.008777451701462269, -0.011549342423677444, -0.2382429540157318, 0.17847850918769836, 0.03713153302669525, 0.22650206089019775, -0.12494072318077087, -0.029985535889863968, -0.32767894864082336, 0.08089958876371384, 0.04304741322994232, -0.25524258613586426, -0.08192595094442368, -0.08030714094638824, 0.31437283754348755, 0.020786311477422714, -0.2660323679447174, -0.492017924785614, 0.10716502368450165, 0.23144979774951935, -0.023166198283433914, 0.1031654104590416, -0.0000987145904218778, -0.06181357428431511, 0.24686552584171295, -0.13362400233745575, -0.009181050583720207, 0.1670098900794983, -0.4618009924888611, -0.2574082911014557, -0.012470200657844543, -0.3637464642524719, 0.08422737568616867, 0.11868155747652054, 0.24188950657844543, -0.5923953056335449, 0.2636653184890747, 0.23526142537593842, 0.34064745903015137, -0.08151442557573318, -0.10788717865943909, -0.12944234907627106, 0.1312868893146515, -0.014836162328720093, -0.11983628571033478, 0.07901181280612946, -0.013017095625400543, -0.21105195581912994, -0.23198923468589783, 0.4518059194087982, -0.14312554895877838, 0.3473092317581177, 0.4152202308177948, -0.13011811673641205, 0.18975424766540527, -0.20576535165309906, 0.16054843366146088, 0.14807863533496857, 0.4752576947212219, -0.3859488070011139, 0.0032668346539139748, -0.05273914337158203, -0.2618776559829712, -0.2519272565841675, 0.29838255047798157, 0.00857272557914257, -0.13193246722221375, 0.06484322994947433, -0.2546382248401642, -0.14619874954223633, -0.15291862189769745, -0.028886549174785614, 0.004799753427505493, 0.1771506667137146, -0.12032102048397064, 0.04884425923228264, 0.15678589046001434, -0.11611233651638031, -0.030628345906734467, -0.0050872135907411575, -0.1934143304824829, 0.07961123436689377, -0.1530296802520752, -0.15667849779129028, -0.02159459888935089, 0.21060693264007568, 0.3514852821826935, -0.2910228967666626, 0.24733924865722656, 0.06598970293998718, 0.19915588200092316, 0.3149208426475525, -0.0663985013961792, 0.19449374079704285, 0.12080331146717072, -0.03685450926423073, 0.24225029349327087, -0.06133130565285683, -0.13289406895637512, -0.05722563713788986, 0.25693297386169434, -0.41343292593955994, 0.4404854476451874, 0.028133992105722427, 0.21693986654281616, -0.16278570890426636, 0.04392595589160919, 0.11138882488012314, 0.06436516344547272, -0.02727687917649746, -0.022508133202791214, 0.45525768399238586, -0.05851210653781891, 0.06589527428150177, 0.07582986354827881, -0.1831933856010437, -0.32446491718292236, -0.20202843844890594, -0.1827482432126999, 0.0853666216135025, -0.3148941993713379, 0.25600120425224304, 0.21590204536914825, 0.14812301099300385, 0.22281043231487274, -0.008815012872219086, -0.025683805346488953, 0.004304207861423492, 0.4297322928905487, -0.23561924695968628, 0.452459454536438, 0.31936922669410706, -0.11556762456893921, 0.10424528270959854, 0.08627162128686905, 0.04353123903274536, -0.28109413385391235, 0.3923087418079376, -0.20139294862747192, -0.2940535545349121, 0.09784290939569473, 0.35132572054862976, 0.09095894545316696, 0.027149150148034096, -0.03820934146642685, 0.2701217234134674, 0.2824224829673767, -0.2629505395889282, 0.2071303129196167, -0.05465319752693176, -0.2432597130537033, -0.23781844973564148, 0.09999224543571472, 0.4035494327545166, -0.3061077296733856, -0.06876987963914871, -0.08939432352781296, -0.20359037816524506, 0.08029171079397202, 0.1245221495628357, -0.2670130729675293, -0.020184502005577087, -0.13735893368721008, 0.21957342326641083, 0.15786029398441315, -0.35882341861724854, -0.30377858877182007, 0.04848835989832878, -0.04621519148349762, -0.2915424406528473, 0.13841411471366882, 0.1349015086889267, 0.13021275401115417, 0.030070580542087555, 0.21862289309501648, -0.05475591868162155, -0.07393551617860794, 0.27765923738479614, -0.30484676361083984, -0.1264999359846115, 0.007580285891890526, -0.07579664885997772, 0.15896011888980865, 0.036124274134635925, 0.01013059914112091, 0.10828712582588196, 0.15900912880897522, 0.20090849697589874, 0.045522771775722504, 0.2556767761707306, 0.2265542894601822, -0.2008582204580307, 0.04735681414604187, -0.06011427193880081, -0.2769705057144165, -0.0019810721278190613, -0.07499700039625168, -0.2733449339866638, -0.008040226995944977, -0.2636863589286804, -0.1872037649154663, -0.051816802471876144, 0.0595778189599514, -0.08142945170402527, 0.318717360496521, 0.1872221827507019, 0.0918390303850174, -0.23756782710552216, -0.09259234368801117, 0.1669873744249344, -0.257877379655838, -0.13031361997127533, -0.1105453222990036, -0.3660145401954651, 0.01093023270368576, 0.02164108119904995, -0.13170582056045532, -0.2996664345264435, 0.16837561130523682, 0.15444214642047882, -0.20099636912345886, 0.5185374021530151, 0.24919050931930542, 0.18493013083934784, 0.0483877956867218, 0.3428933918476105, -0.029111115261912346, -0.04714662581682205, 0.09523860365152359, -0.16044655442237854, 0.10197718441486359, 0.17508390545845032, -0.18113446235656738, 0.036190032958984375, 0.21728946268558502, -0.0644741877913475, 0.03959327191114426, -0.38811519742012024, 0.21823854744434357, -0.17594191431999207, -0.047277241945266724, -0.3591647446155548, -0.044433657079935074, 0.2511743903160095, 0.21801428496837616, 0.2096720039844513, -0.20257775485515594, -0.16154855489730835, 0.2843424677848816, 0.13943515717983246, 0.05652284622192383, 0.15239796042442322, 0.08731019496917725, -0.12655875086784363, 0.2523500323295593, 0.15280014276504517, 0.37780171632766724, 0.4051715135574341, 0.1423231065273285, -0.05525331199169159, -0.047048307955265045, -0.17833635210990906, 0.25585049390792847, -0.04511699825525284, 0.16015957295894623, 0.27231764793395996, 0.08709576725959778, -0.305931955575943, -0.47032231092453003, 0.015652742236852646, 0.2067069262266159, -0.062022484838962555, -0.18210458755493164, -0.14781399071216583, -0.06502557545900345, -0.18360492587089539, -0.09522401541471481, 0.2930252254009247, -0.12692059576511383, -0.06465408205986023, 0.19539649784564972, 0.23562602698802948, -0.23136714100837708, 0.32576197385787964, -0.09145918488502502, 0.5571310520172119, 0.09610666334629059, -0.11048173159360886, -0.07593244314193726, -0.030183006078004837, -0.011049773544073105, 0.1591612696647644, -0.011740090325474739, -0.19007717072963715, 0.3497663736343384, 0.032503776252269745, -0.1236889436841011, -0.2884599566459656, -0.20906874537467957, 0.17808791995048523, 0.1748552918434143, 0.033145107328891754, -0.06730914115905762, 0.33048659563064575, 0.1404198259115219, -0.08072305470705032, 0.027489282190799713, -0.21511909365653992, -0.05703860521316528, -0.36920681595802307, 0.05227266624569893, 0.1252330243587494, -0.22495682537555695, -0.3329595923423767, -0.06321737915277481, -0.5911120176315308, -0.0020469874143600464, 0.029110495001077652, 0.15697649121284485, 0.1521342247724533, 0.1437292844057083, -0.21194659173488617, -0.08555886149406433, 0.24993140995502472, -0.4661900997161865, -0.3851206302642822, 0.28175461292266846, -0.28049156069755554, -0.0775831937789917, 0.004252880811691284, -0.0530548058450222, 0.25886794924736023, 0.3722309470176697, -0.29039162397384644, -0.12092767655849457, -0.15987487137317657, -0.04413686692714691, -0.13264435529708862, -0.11065280437469482, 0.40083038806915283, 0.10784890502691269, -0.3231576383113861, -0.2759053111076355, -0.12761087715625763, 0.15801215171813965, -0.10062357038259506, 0.1273215413093567, 0.08350343257188797, 0.23328834772109985, -0.028895236551761627, 0.44179195165634155, -0.11480690538883209, 0.07159379869699478, 0.3224062919616699, 0.14644448459148407, 0.47216179966926575, -0.09986678510904312, 0.24713531136512756, -0.10200787335634232, 0.050766922533512115, -0.35693204402923584, 0.23309838771820068, -0.049408890306949615, -0.4800799489021301, -0.04055367410182953, 0.022734224796295166, -0.05381641536951065, -0.1958101987838745, 0.18977443873882294, 0.1398370862007141, 0.24162983894348145, -0.008536700159311295, -0.17237438261508942, -0.3599727153778076, 0.000772625207901001, 0.07131743431091309, 0.16973009705543518, 0.10236956179141998, -0.07252109050750732, -0.11504371464252472, 0.15657107532024384, -0.34346804022789, 0.2545285224914551, -0.06939411163330078, 0.10510078817605972, -0.2720555365085602, -0.281534343957901, -0.01757477968931198, -0.05406610295176506, 0.6678576469421387, -0.1078200712800026, -0.015598326921463013, -0.08351138234138489, 0.014655642211437225, 0.2099769562482834, -0.022181570529937744, -0.011835049837827682, 0.2566734254360199, 0.1521260291337967, 0.1972714066505432, -0.18015041947364807, -0.20978382229804993, 0.0054806191474199295, -0.1265541911125183, -0.1267930120229721, -0.30696284770965576, -0.06994380801916122, 0.05547391623258591, -0.28692930936813354, 0.10368389636278152, 0.302560418844223, -0.1510852426290512, 0.2317056804895401, -0.16043560206890106, -0.013257810845971107, -0.04202025383710861, 0.036580562591552734, 0.10692937672138214, 0.37204259634017944, 0.09747616946697235, -0.11266538500785828, 0.045037757605314255, 0.10244432836771011, 0.3070472776889801, 0.2363862544298172, -0.3381389081478119, 0.14830729365348816, 0.12110540270805359, 0.020705386996269226, 0.11777438223361969, 0.3444574177265167, -0.006085403263568878, -0.0017110556364059448, 0.17617332935333252, 0.25780367851257324, -0.49173057079315186, 0.28548380732536316, 0.016789525747299194, 0.005930144339799881, -0.2753782570362091, -0.45440706610679626, 0.5105328559875488, 0.2246546745300293, -0.2777521312236786, 0.5864396095275879, -0.15997596085071564, -0.4246644377708435, 0.14841341972351074, 0.3527717888355255, 0.9766417741775513, -0.018700256943702698, 0.09911153465509415, -0.1739373803138733, 0.08592790365219116, 0.07129701226949692, -0.43557947874069214, 0.11576277762651443, -0.1797286868095398, -0.05040747672319412, 0.01173793338239193, 0.006636321544647217, 0.17232459783554077, 0.17017100751399994, -0.31206050515174866, -0.02644777111709118, 0.06965582072734833, 0.17778971791267395, -0.22863368690013885, 0.33943793177604675, -0.27366137504577637, -0.2795325517654419, 0.01311052031815052, 0.2616603672504425, 0.06102631613612175, -0.06773613393306732, -0.24571487307548523, 0.02206500433385372, 0.2547847330570221, -0.17418751120567322, -0.057624995708465576, -0.25874873995780945, -0.364139199256897, 0.21385806798934937, -0.47124412655830383, 0.3092915415763855, -0.22116750478744507, 0.03709141165018082, 0.04079379513859749, 0.33361828327178955, -0.24655956029891968, 0.21733218431472778, 0.16184315085411072, 0.08016961812973022, -0.22687135636806488, -0.0027920976281166077, 0.2904094457626343, -0.044128675013780594, -0.06329826265573502, -0.05138925462961197, -0.21147042512893677, -0.13181400299072266, -0.11315885186195374, -0.19515515863895416, 0.1370299756526947, -0.40873897075653076, -0.2523151934146881, -0.07435411214828491, -0.19377672672271729, 0.06051355227828026, 0.30052635073661804, -0.027935750782489777, -0.045253902673721313, 0.19891270995140076, 0.13068479299545288, -0.3860010504722595, -0.13882620632648468, 0.3551926910877228, 0.1751948595046997, 0.01517515629529953, 0.12573039531707764, -0.3277481198310852, -0.2712719142436981, -0.3192610442638397, -0.1446874439716339, 0.00597168505191803, 0.18332603573799133, 0.2586001753807068, 0.02335256151854992, -0.25461697578430176, 0.08744451403617859, 0.12486732006072998, 0.23614582419395447, 0.31389960646629333, 0.023528102785348892, -0.15361842513084412, -0.46138596534729004, 0.05383297801017761, -0.3283234238624573, 0.47699838876724243, 0.2057044506072998, -0.1783156841993332, -0.004836410284042358, 0.12696002423763275, -0.5158631801605225, -0.1826900988817215, -0.2277597039937973, 0.14853158593177795, -0.024634353816509247, 0.37469759583473206, -0.05718594044446945, -0.08036299049854279, 0.13718192279338837, 0.29016292095184326, -0.41299521923065186, -0.382207453250885, 0.013259567320346832, 0.1339947134256363, -0.05781777203083038, 0.0053259399719536304, -0.04586572200059891, -0.38086938858032227, -0.023309189826250076, -0.2001962810754776, 0.205336332321167, 0.09414611011743546, -0.05064985156059265, 0.18730460107326508, 0.2248426228761673, -0.06320726126432419, 0.06792636960744858, -0.04263804852962494, 0.09083092212677002, 0.031128838658332825, -0.2492075115442276, 0.1303746998310089, -0.4363483190536499, -0.0847049355506897, 0.03296517953276634, 0.08604628592729568, 0.053444769233465195, 0.10957649350166321, -0.0902291014790535, 0.17272785305976868, -0.16570302844047546, 0.2495400756597519, 0.17546716332435608, 0.07290396094322205, -0.24585048854351044, -0.08865991234779358, 0.08536700904369354, 0.4010622799396515, -0.12411333620548248, 0.01909601129591465, 0.08433569967746735, -0.33390629291534424, 0.33716535568237305, 0.09694098681211472, 0.30390051007270813, -0.02961839735507965, 0.24402709305286407, 0.23928362131118774, 0.2889527380466461, -0.497832715511322, 0.10409568250179291, 0.0417231023311615, -0.056295473128557205, 0.07588741183280945, 0.47008511424064636, 0.3684433698654175, 0.5096568465232849, 0.5571953058242798, 0.12383965402841568, 0.5322725176811218, 0.09962721914052963, 0.009020775556564331, -0.3099095821380615, -0.3233237862586975, 0.37364473938941956, 0.4198134243488312, -0.21188262104988098, 0.19752949476242065, 0.3421363830566406, -0.17834731936454773, 0.05731474608182907, -0.15246093273162842, -0.008563747629523277, -0.026900019496679306, -0.28453168272972107, -0.06309641897678375, -0.1629621982574463, -0.18377727270126343, -0.13182654976844788, 0.05776049569249153, 0.041064321994781494, 0.10135558247566223, 0.5445812344551086, 0.052705392241477966, 0.06955866515636444, 0.18794405460357666, 0.12277308106422424, 0.05104159936308861, 0.2572912871837616, -0.43530404567718506, 0.05121903121471405, -0.017349019646644592, -0.16110245883464813, 0.14839108288288116, 0.2717095613479614, 0.2793751358985901, 0.4009377360343933, 0.04554145783185959, -0.03897753730416298, 0.14752544462680817, -0.030068082734942436, -0.36759254336357117, -0.003201086074113846, 0.30562615394592285, -0.031158026307821274, 0.1536227911710739, 0.33540600538253784, -0.2249758541584015, 0.17640714347362518, 0.10198993235826492, -0.03324754536151886, -0.03212800249457359, -0.22934499382972717, 0.5726021528244019, -0.08230283856391907, -0.0504026934504509, -0.023305028676986694, -0.5434748530387878, 0.009507090784609318, 0.29667630791664124, -0.19289597868919373, 0.2645238935947418, -0.1251101791858673, 0.1588849276304245, 0.14077620208263397, 0.43204131722450256, -0.14452138543128967, -0.11107312887907028, -0.31963130831718445, -0.2037140130996704, -0.530689001083374, 0.12627387046813965, -0.09328271448612213, 0.09781236946582794, 0.10995770245790482, 0.08946143090724945, 0.08710090070962906, 0.009936921298503876, 0.05900942534208298, -0.2436469942331314, -0.00661278422921896, -0.11557859182357788, -0.2921030521392822, -0.049042586237192154, 0.0951145738363266, -0.01776420883834362, 0.29104259610176086, -0.33214059472084045, 0.1974141150712967, -0.020831655710935593, 0.24670001864433289, -0.23848481476306915, -0.04436788335442543, 0.27848678827285767, 0.32108646631240845, 0.3537798523902893, 0.031935807317495346, 0.20500224828720093, -0.3773375153541565, 0.08201209455728531, 0.06264376640319824, 0.020948417484760284, -0.275705486536026, -0.1688365340232849, 0.13601753115653992, 0.1820322424173355, -0.2973500192165375, -0.2235478311777115, -0.15698496997356415, 0.2037934511899948, -0.29471278190612793, -0.1111128106713295, -0.1317196488380432, -0.06097199767827988, 0.2010163962841034, 0.044001366943120956, -0.17190422117710114, 0.2368265986442566, 0.00810224562883377, 0.26382872462272644, -0.37023383378982544, -0.3003361225128174, 0.4215257465839386, -0.11102139204740524, -0.2682434618473053, -0.12262719124555588, 0.29050225019454956, 0.161797896027565, 0.07611779868602753, -0.6690201163291931, 0.24006950855255127, 0.29033830761909485, -0.05602587014436722, -0.26764997839927673, 0.2524333894252777, -0.13194453716278076, 0.06683553755283356, -0.15252995491027832, 0.3381568491458893, 0.22141090035438538, -0.1799394190311432, -0.2818343937397003, -0.43981873989105225 ]
https://github.com/huggingface/datasets/pull/2182
Set default in-memory value depending on the dataset size
@lhoestq I have a question, regarding: > Also maybe we should add a warning if someone tries to specify cache_file_name= in map, filter etc. on a dataset that is in memory, since the computation is not going to be cached in this case. - It might be the case that the user has an in-memory dataset and might want to use `map` and cache it, by passing `cache_file_name=` - This is indeed allowed by the library and works as expected: the dataset is cached. Why adding a warning?
Set a default value for `in_memory` depending on the size of the dataset to be loaded. Close #2179. TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~
88
text: Set default in-memory value depending on the dataset size Set a default value for `in_memory` depending on the size of the dataset to be loaded. Close #2179. TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~ @lhoestq I have a question, regarding: > Also maybe we should add a warning if someone tries to specify cache_file_name= in map, filter etc. on a dataset that is in memory, since the computation is not going to be cached in this case. - It might be the case that the user has an in-memory dataset and might want to use `map` and cache it, by passing `cache_file_name=` - This is indeed allowed by the library and works as expected: the dataset is cached. Why adding a warning?
[ -0.2412005513906479, -0.33567652106285095, -0.18853268027305603, 0.004675325006246567, 0.289334774017334, 0.008565053343772888, 0.08916415274143219, 0.35627418756484985, 0.28978431224823, 0.39122748374938965, 0.2711510956287384, 0.1415719836950302, -0.06364558637142181, -0.3622429072856903, -0.19745084643363953, 0.12051811814308167, 0.19734245538711548, 0.07324910908937454, -0.11905564367771149, -0.0037141740322113037, -0.3146049976348877, 0.017953654751181602, -0.056298211216926575, -0.05488012731075287, -0.25586646795272827, -0.021266164258122444, 0.2804841697216034, -0.030285775661468506, -0.36805957555770874, -0.5809465050697327, 0.31359127163887024, 0.11099125444889069, -0.04923977702856064, 0.15444070100784302, -0.00011337424075463787, -0.07128959149122238, 0.4112663269042969, -0.16775326430797577, 0.09512120485305786, -0.11168992519378662, -0.3409425914287567, -0.23452405631542206, 0.02435760572552681, -0.3943326473236084, 0.23494952917099, 0.1372852325439453, 0.2145223468542099, -0.7347186803817749, 0.1415720134973526, 0.19916264712810516, 0.1663096845149994, -0.03506859019398689, -0.11225596070289612, 0.01620626263320446, 0.35108527541160583, 0.0921243280172348, -0.22984866797924042, 0.14363357424736023, 0.030684880912303925, -0.12979526817798615, -0.18655312061309814, 0.29529687762260437, -0.25036880373954773, 0.21871063113212585, 0.46444767713546753, -0.11717987805604935, -0.009967990219593048, -0.20590172708034515, 0.08381026983261108, 0.15455345809459686, 0.688961923122406, -0.42331573367118835, 0.013812488876283169, -0.009643185883760452, -0.3198773264884949, -0.11545486748218536, 0.36267924308776855, -0.07005725800991058, -0.023446746170520782, 0.0224645733833313, -0.19065611064434052, -0.1520213484764099, -0.145814448595047, -0.0068782418966293335, 0.19294339418411255, 0.2485567182302475, -0.15254881978034973, 0.33214107155799866, 0.06139671057462692, 0.10054703056812286, -0.022354234009981155, -0.13622073829174042, -0.14600108563899994, 0.11271929740905762, -0.09257635474205017, -0.16125193238258362, -0.04422919452190399, 0.1653662919998169, 0.41536200046539307, -0.26409679651260376, 0.22205598652362823, -0.09431499987840652, 0.15303359925746918, 0.3023419678211212, 0.32744550704956055, 0.18797069787979126, 0.1373661756515503, 0.04370635375380516, 0.17818672955036163, -0.1660766750574112, 0.06845647096633911, -0.16952985525131226, 0.42605748772621155, -0.3137170970439911, 0.47410356998443604, 0.12859126925468445, 0.23275227844715118, -0.3529649078845978, 0.11529133468866348, 0.09928113222122192, -0.1693207025527954, -0.31583118438720703, 0.07789337635040283, 0.2823764979839325, -0.04450707137584686, 0.009134160354733467, -0.05676255747675896, -0.21402612328529358, -0.11719034612178802, -0.03997138515114784, -0.059285830706357956, 0.16705714166164398, -0.3873136341571808, 0.2805190980434418, -0.012788582593202591, 0.10568837821483612, 0.24938371777534485, 0.040627848356962204, 0.22127442061901093, 0.10174162685871124, 0.4204292297363281, -0.32190823554992676, 0.587640643119812, 0.5246589183807373, -0.21584762632846832, 0.2750944197177887, 0.05782380327582359, 0.14974527060985565, -0.33757081627845764, 0.6342920064926147, -0.2695601284503937, -0.4709739685058594, 0.21863628923892975, 0.16047526895999908, -0.0413995087146759, 0.09242898225784302, -0.1843714416027069, 0.20873761177062988, 0.5341580510139465, -0.44678613543510437, 0.49695107340812683, -0.02955818548798561, -0.3106127083301544, -0.4062357246875763, -0.053814612329006195, 0.2695499658584595, -0.24858233332633972, -0.020288147032260895, -0.04803484305739403, -0.24969810247421265, 0.030360199511051178, 0.2770288288593292, -0.5055185556411743, -0.003915630280971527, -0.15635071694850922, 0.2602660655975342, 0.39998704195022583, -0.38965046405792236, -0.231282576918602, 0.1746971160173416, -0.009049098938703537, -0.23717182874679565, 0.16169382631778717, 0.10356887429952621, -0.00505572184920311, -0.214903324842453, 0.14931990206241608, -0.35139650106430054, -0.05378081649541855, 0.15167014300823212, -0.3134855031967163, -0.11067617684602737, 0.3185579776763916, -0.2271355241537094, -0.06643658876419067, 0.14508895576000214, 0.11424094438552856, 0.23277431726455688, 0.15751440823078156, 0.2091464102268219, -0.05901535600423813, 0.06977638602256775, 0.3147531747817993, -0.04398997873067856, 0.12980014085769653, 0.17639034986495972, -0.27089619636535645, -0.0100991390645504, 0.02193106710910797, -0.2144789695739746, -0.004897110164165497, -0.33682090044021606, 0.005571044981479645, 0.015673132613301277, 0.20875734090805054, -0.11180822551250458, 0.07253257185220718, 0.007989376783370972, 0.20278353989124298, -0.19287055730819702, -0.2573496401309967, 0.021081961691379547, -0.49455755949020386, -0.048221196979284286, -0.20819221436977386, -0.39739522337913513, -0.035885922610759735, 0.22509236633777618, -0.36187076568603516, -0.22341448068618774, 0.16231340169906616, 0.14783239364624023, -0.3375708758831024, 0.5284892320632935, 0.2543891966342926, 0.02571907639503479, -0.09726615995168686, 0.48936259746551514, 0.02055174484848976, -0.1413325071334839, 0.21461224555969238, -0.308618426322937, 0.1401263028383255, 0.06482212990522385, -0.054784342646598816, 0.001239970326423645, 0.0694374218583107, 0.01829482614994049, -0.19023427367210388, -0.4647018611431122, 0.0070048850029706955, 0.024970363825559616, -0.19938167929649353, -0.1613689363002777, -0.16539163887500763, 0.3017812669277191, 0.30823883414268494, 0.28503191471099854, -0.1077185571193695, -0.44905614852905273, 0.28513631224632263, 0.11493845283985138, -0.21422770619392395, 0.07075225561857224, 0.29359641671180725, -0.23907321691513062, 0.32122284173965454, 0.11142513155937195, 0.5861949920654297, 0.22393667697906494, 0.09641969949007034, -0.067388616502285, -0.08147317171096802, -0.19026952981948853, 0.149441197514534, 0.10902579128742218, 0.0685705691576004, 0.05395269766449928, -0.0574895441532135, 0.018579522147774696, -0.4664651155471802, -0.013933170586824417, 0.2091955989599228, -0.17244306206703186, -0.20105908811092377, 0.012775721028447151, 0.15508925914764404, -0.2682185173034668, -0.07371131330728531, 0.13821646571159363, -0.24290713667869568, -0.02438364550471306, 0.09538273513317108, 0.15666024386882782, -0.10754410922527313, 0.23657427728176117, -0.02912971004843712, 0.5268850922584534, 0.0037286188453435898, -0.25027403235435486, -0.10221324861049652, 0.007700685411691666, -0.02143106237053871, 0.04476045444607735, -0.10711956769227982, -0.3242126405239105, 0.30322903394699097, 0.1643785685300827, -0.12842807173728943, -0.31090012192726135, -0.4110027849674225, 0.0927380844950676, -0.0650084838271141, 0.0007272921502590179, 0.08152363449335098, 0.18704509735107422, 0.20660769939422607, -0.10619346797466278, -0.1406603306531906, -0.11979464441537857, 0.1137973815202713, -0.5714027881622314, 0.089952252805233, 0.025154780596494675, -0.3723944127559662, -0.26681438088417053, 0.002453075721859932, -0.44883033633232117, 0.08045974373817444, 0.02813998982310295, 0.127035990357399, 0.12466254085302353, 0.06761534512042999, -0.15070974826812744, -0.07783165574073792, 0.25319957733154297, -0.45002734661102295, -0.5563192963600159, 0.21876166760921478, -0.10420453548431396, -0.055429186671972275, 0.06109113618731499, 0.04090768098831177, 0.3101595640182495, 0.3477778434753418, -0.47071975469589233, -0.07275980710983276, 0.026445815339684486, -0.056922830641269684, 0.01398441195487976, -0.032827384769916534, 0.3346715569496155, -0.016763458028435707, -0.12560389935970306, -0.32047978043556213, -0.3359604775905609, 0.06153635308146477, -0.1557498574256897, 0.2984919250011444, 0.2668972313404083, 0.19795271754264832, 0.04477686807513237, 0.5292184352874756, -0.14938686788082123, 0.07885207235813141, 0.5242031812667847, 0.2756101191043854, 0.6882293820381165, -0.0457039400935173, 0.26966428756713867, -0.06989435106515884, 0.02969711273908615, -0.5262882709503174, 0.059018298983573914, -0.09462893754243851, -0.481744647026062, -0.015537645667791367, -0.02459905296564102, 0.2411545217037201, -0.15383674204349518, 0.16502085328102112, -0.009073417633771896, 0.14999467134475708, 0.08784812688827515, -0.16922809183597565, -0.12592685222625732, -0.058624885976314545, 0.21375027298927307, 0.37174421548843384, 0.3861025273799896, 0.004196327179670334, -0.13362669944763184, 0.06438753008842468, -0.2638302743434906, 0.1612994372844696, 0.061837345361709595, 0.27834874391555786, -0.32933658361434937, -0.2198658585548401, 0.10369958728551865, 0.08814102411270142, 0.6150718927383423, -0.11759818345308304, -0.19418279826641083, -0.09346428513526917, -0.024356843903660774, 0.3523333966732025, -0.08266504108905792, 0.13513444364070892, 0.4611209034919739, 0.12780264019966125, 0.09288458526134491, -0.1844625622034073, -0.1545955091714859, -0.0720934197306633, -0.06905893981456757, 0.02412036433815956, -0.3891121447086334, -0.14065603911876678, 0.02922927588224411, -0.3112727403640747, -0.06455390900373459, 0.23554663360118866, -0.24531157314777374, 0.2290899157524109, -0.006212811917066574, 0.20015060901641846, 0.059221670031547546, 0.022087596356868744, -0.03301664814352989, 0.2584409713745117, 0.06680513173341751, -0.15173184871673584, 0.009012240916490555, 0.1327156126499176, 0.3452531397342682, 0.294729083776474, -0.3548631966114044, 0.2698691487312317, 0.10608825832605362, 0.09500350803136826, 0.21855634450912476, 0.3432239294052124, -0.05643013119697571, 0.0836716964840889, 0.2744598984718323, 0.023009952157735825, -0.31283313035964966, 0.16790714859962463, 0.10324353724718094, -0.05578038841485977, -0.2765660583972931, -0.6245827674865723, 0.6200141906738281, 0.40062767267227173, -0.25298231840133667, 0.7886725068092346, -0.01479901373386383, -0.37796899676322937, 0.13534076511859894, 0.38363713026046753, 1.0472395420074463, 0.18756619095802307, 0.10812290012836456, -0.23020362854003906, 0.15595875680446625, 0.23240385949611664, -0.4276435375213623, -0.13394762575626373, -0.1429789960384369, -0.0839608907699585, -0.09645769000053406, -0.10816077888011932, 0.3705262243747711, 0.03665731102228165, -0.28089460730552673, -0.12524640560150146, 0.033562593162059784, 0.21159619092941284, -0.24563466012477875, 0.2794362008571625, -0.36809176206588745, -0.204970121383667, 0.14665070176124573, 0.07496163994073868, 0.09379572421312332, -0.009146880358457565, -0.17418667674064636, 0.09892698377370834, 0.17956271767616272, -0.3472917675971985, -0.12811611592769623, -0.44913193583488464, -0.27046287059783936, 0.23087920248508453, -0.37086954712867737, 0.373687744140625, 0.1243496984243393, 0.1382245272397995, 0.15686243772506714, 0.4041224718093872, -0.28253620862960815, 0.16573874652385712, 0.11606074869632721, 0.017107229679822922, -0.16003862023353577, 0.0340825617313385, 0.26649394631385803, 0.0870906338095665, 0.05743405967950821, 0.07984666526317596, -0.3858715295791626, -0.25119584798812866, -0.20795297622680664, -0.08262661099433899, 0.1009683609008789, -0.5692671537399292, -0.3404315412044525, 0.06442923843860626, -0.17868465185165405, 0.22057203948497772, 0.14868347346782684, 0.11746951192617416, -0.1163264587521553, 0.160258486866951, 0.054111748933792114, -0.5435295701026917, -0.16959215700626373, 0.22428834438323975, 0.23692351579666138, -0.17683903872966766, -0.011355951428413391, -0.4574471116065979, -0.22377300262451172, -0.030022358521819115, -0.14125174283981323, -0.04708271473646164, 0.13784736394882202, -0.07234562933444977, 0.11875282227993011, -0.07059162110090256, -0.09752459079027176, 0.13696976006031036, 0.24485553801059723, 0.3837116062641144, -0.01798485964536667, -0.16767874360084534, -0.4489270746707916, 0.17806033790111542, -0.4480845034122467, 0.541093111038208, 0.16254422068595886, -0.3644033968448639, 0.04694562405347824, 0.019586894661188126, -0.2906031310558319, -0.24688149988651276, 0.056568510830402374, 0.2709197402000427, 0.081332728266716, 0.575874388217926, -0.05679083988070488, -0.11799545586109161, -0.053266994655132294, 0.25008919835090637, -0.3859187662601471, -0.1448282152414322, 0.07273070514202118, 0.21608446538448334, 0.18863624334335327, 0.0028606385458260775, -0.2897984981536865, -0.43631815910339355, 0.0725090354681015, -0.10215231031179428, 0.18830592930316925, 0.1465727686882019, -0.08719316124916077, 0.2592625617980957, 0.24443824589252472, -0.07426097244024277, -0.1682519018650055, 0.09235699474811554, 0.048170920461416245, 0.01466398686170578, -0.24636739492416382, 0.11393316090106964, -0.471209853887558, -0.09622818231582642, -0.012961356900632381, 0.0545736625790596, -0.07541660964488983, 0.1458941400051117, -0.22155502438545227, 0.2791607975959778, 0.1036497950553894, 0.1782221645116806, 0.13094083964824677, 0.1825515329837799, -0.34465041756629944, -0.1745811402797699, 0.05216146633028984, 0.13142332434654236, 0.11460462212562561, -0.05083621293306351, -0.021290812641382217, -0.19353848695755005, 0.06761898100376129, 0.14736752212047577, 0.5052872896194458, 0.14325988292694092, 0.3772045373916626, 0.07788844406604767, 0.3215973675251007, -0.4741969704627991, 0.25258415937423706, 0.04847797006368637, -0.3889775276184082, 0.18033359944820404, 0.3709198534488678, 0.4473801255226135, 0.32736214995384216, 0.5905848741531372, 0.12517638504505157, 0.6357737183570862, 0.32934436202049255, -0.14854055643081665, -0.44731131196022034, -0.28664663434028625, 0.4913710355758667, 0.46128034591674805, -0.12721183896064758, 0.14169836044311523, 0.5073655843734741, -0.24718385934829712, 0.07319597899913788, 0.005668179132044315, 0.2602498531341553, -0.25580745935440063, -0.31946638226509094, 0.03531977906823158, -0.044878073036670685, -0.043836191296577454, -0.06588736176490784, -0.05417916178703308, 0.06776079535484314, 0.18187984824180603, 0.6358797550201416, -0.10692165791988373, -0.02693592756986618, 0.35573965311050415, 0.1839379370212555, 0.03180873394012451, 0.24455979466438293, -0.3555775284767151, 0.009316066280007362, -0.2720003128051758, -0.15244728326797485, 0.2625598907470703, 0.24840962886810303, 0.26506078243255615, 0.5242651700973511, 0.3455652892589569, -0.12676569819450378, 0.1091240793466568, 0.016904721036553383, -0.05441853404045105, 0.23665280640125275, 0.2540048062801361, -0.07498028874397278, 0.052310388535261154, 0.09788525104522705, -0.05521945655345917, 0.3620193302631378, 0.0393262654542923, 0.217233344912529, -0.07318596541881561, -0.23268678784370422, 0.4139474928379059, -0.07488709688186646, 0.07265693694353104, 0.03971196338534355, -0.48294126987457275, 0.07874411344528198, 0.3969029486179352, -0.20828403532505035, 0.16060730814933777, -0.34539663791656494, 0.07425852864980698, 0.20351223647594452, 0.38784751296043396, 0.09335607290267944, -0.06749490648508072, -0.43278101086616516, -0.14974220097064972, -0.6874474287033081, 0.06342330574989319, 0.03945644199848175, 0.24163594841957092, 0.12333964556455612, -0.11348443478345871, 0.022473245859146118, 0.21687887609004974, 0.07650540769100189, -0.34409281611442566, 0.007940293289721012, -0.2990134358406067, -0.14428004622459412, -0.17831476032733917, 0.0644463375210762, 0.06985550373792648, 0.15888060629367828, -0.15512019395828247, 0.2466897815465927, -0.13296671211719513, 0.07440400123596191, -0.47289544343948364, -0.057150594890117645, 0.23471927642822266, 0.6030255556106567, 0.28061798214912415, 0.10181228071451187, 0.37959718704223633, -0.20597133040428162, 0.13874243199825287, 0.10401169955730438, -0.04039837419986725, -0.13105402886867523, -0.10990237444639206, 0.05373871326446533, 0.14563754200935364, -0.3618118166923523, -0.23131687939167023, -0.1568075716495514, 0.20211687684059143, -0.38097262382507324, -0.03021082654595375, -0.18232297897338867, -0.18714402616024017, 0.011115923523902893, -0.015209822915494442, -0.12031017243862152, 0.17760726809501648, 0.20418275892734528, 0.2959457337856293, -0.31360486149787903, -0.1607763022184372, 0.5289973020553589, -0.1913459599018097, -0.10412928462028503, -0.14864198863506317, 0.10476437211036682, 0.20269042253494263, -0.019494662061333656, -1.0577514171600342, 0.12118884176015854, 0.38019171357154846, -0.04833056032657623, -0.3386595845222473, 0.08920609951019287, -0.15345488488674164, 0.09001365303993225, -0.14205501973628998, 0.42925286293029785, -0.037033773958683014, -0.16263267397880554, -0.04169764742255211, -0.5014366507530212 ]
https://github.com/huggingface/datasets/pull/2182
Set default in-memory value depending on the dataset size
Yes right, I meant if `load_from_cache_file` is set to True and `cache_file_name ` is None. my bad :p
Set a default value for `in_memory` depending on the size of the dataset to be loaded. Close #2179. TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~
18
text: Set default in-memory value depending on the dataset size Set a default value for `in_memory` depending on the size of the dataset to be loaded. Close #2179. TODO: - [x] Add a section in the docs about this. - ~Add a warning if someone tries to specify `cache_file_name=` in `map`, `filter` etc. on a dataset that is in memory, since the computation is not going to be cached in this case.~ Yes right, I meant if `load_from_cache_file` is set to True and `cache_file_name ` is None. my bad :p
[ -0.4127020239830017, -0.4079728424549103, -0.1929204761981964, 0.04299703612923622, 0.16688509285449982, -0.08430617302656174, -0.06411668658256531, 0.31687402725219727, 0.3272928297519684, 0.3256814777851105, 0.18479426205158234, 0.19287236034870148, 0.030679140239953995, -0.014116196893155575, -0.20312124490737915, 0.22687898576259613, 0.029586777091026306, 0.19914495944976807, -0.2261715829372406, -0.014363445341587067, -0.356757253408432, 0.15250153839588165, -0.08360736817121506, -0.2868318557739258, -0.07246231287717819, -0.05362003296613693, 0.28202298283576965, 0.044306084513664246, -0.313088059425354, -0.4785948693752289, 0.14160943031311035, 0.19589459896087646, -0.08096357434988022, 0.007482975721359253, -0.00009940737072611228, -0.10560557246208191, 0.31152331829071045, -0.1398582011461258, 0.032876595854759216, 0.21498903632164001, -0.4322578012943268, -0.23395538330078125, -0.014728672802448273, -0.3712812662124634, 0.06870519369840622, 0.16237740218639374, 0.1762397289276123, -0.5905872583389282, 0.23481406271457672, 0.24857363104820251, 0.3370624780654907, -0.14303487539291382, -0.025258179754018784, -0.1188875138759613, 0.13693256676197052, -0.05565279722213745, -0.15432557463645935, 0.0980679839849472, -0.058290690183639526, -0.21069933474063873, -0.12295214086771011, 0.32876822352409363, -0.18989114463329315, 0.32510921359062195, 0.5321449637413025, -0.10997273772954941, 0.20057427883148193, -0.24193361401557922, 0.1477120816707611, 0.18343845009803772, 0.5620316863059998, -0.3493984341621399, 0.106404609978199, -0.03738926723599434, -0.26329755783081055, -0.27122727036476135, 0.2283790409564972, -0.014916010200977325, -0.19307194650173187, 0.08258987963199615, -0.24326850473880768, -0.1940869241952896, -0.08358322083950043, -0.06688842177391052, -0.12852410972118378, 0.21477144956588745, -0.16593828797340393, 0.04895199090242386, 0.19666723906993866, 0.0010592564940452576, -0.014072234742343426, 0.019221436232328415, -0.2557276487350464, 0.2116541713476181, -0.16830843687057495, -0.13837739825248718, 0.07686597108840942, 0.17417174577713013, 0.34526190161705017, -0.23664827644824982, 0.2680552303791046, 0.06522038578987122, 0.1093745231628418, 0.3323889374732971, 0.0301176980137825, 0.28689756989479065, 0.0896366685628891, -0.09755060076713562, 0.23569408059120178, -0.13416321575641632, -0.025436386466026306, -0.03220250457525253, 0.26139432191848755, -0.4049680233001709, 0.4490593671798706, -0.009166579693555832, 0.31909292936325073, -0.2085839956998825, 0.0075563061982393265, 0.2227340191602707, 0.036313481628894806, -0.05981804057955742, -0.1157853826880455, 0.4121873080730438, -0.05741614103317261, 0.07238752394914627, 0.0901130884885788, -0.26360243558883667, -0.26707926392555237, -0.1656121164560318, -0.1671287715435028, 0.05254695564508438, -0.3414308726787567, 0.154483363032341, 0.14259685575962067, 0.13506576418876648, 0.26792940497398376, 0.060512445867061615, 0.046032678335905075, -0.09243763983249664, 0.3988235294818878, -0.20098674297332764, 0.5312692523002625, 0.39970162510871887, -0.10666362941265106, 0.1336105912923813, 0.12828856706619263, 0.018521979451179504, -0.30522647500038147, 0.5763186812400818, -0.2839031219482422, -0.30173590779304504, 0.1174575686454773, 0.3573375642299652, -0.030106429010629654, 0.01745535433292389, -0.06066601723432541, 0.26308098435401917, 0.2633645534515381, -0.2509394586086273, 0.36203068494796753, -0.09610158205032349, -0.18379506468772888, -0.2533665597438812, 0.16550593078136444, 0.4394124746322632, -0.4413260221481323, -0.017352048307657242, -0.08063358813524246, -0.30181175470352173, 0.05267992243170738, 0.22627630829811096, -0.3418649733066559, 0.019912071526050568, -0.1310175210237503, 0.22810517251491547, 0.16243332624435425, -0.1978011429309845, -0.30177390575408936, 0.07219141721725464, -0.019090823829174042, -0.27258583903312683, 0.018452182412147522, 0.15953463315963745, 0.0769943818449974, 0.024813909083604813, 0.23589618504047394, -0.10245001316070557, -0.07313042879104614, 0.23985326290130615, -0.3512643873691559, -0.11573158949613571, 0.06280562281608582, -0.14294694364070892, 0.16536565124988556, 0.08272352814674377, 0.021778501570224762, 0.1524270921945572, 0.15023471415042877, 0.2110792100429535, 0.004257753491401672, 0.21534039080142975, 0.27019980549812317, -0.2240878790616989, 0.07119147479534149, 0.019861139357089996, -0.24651303887367249, 0.03853631019592285, -0.0875503420829773, -0.23491916060447693, 0.11957257986068726, -0.19245083630084991, -0.17726954817771912, -0.01525457575917244, 0.017736181616783142, -0.1160493940114975, 0.29331663250923157, 0.043457984924316406, -0.006956329569220543, -0.20530997216701508, -0.2206965833902359, 0.21781842410564423, -0.2712572515010834, -0.14259544014930725, -0.14013247191905975, -0.3799225091934204, 0.054806746542453766, 0.0787123441696167, -0.1865033656358719, -0.31074249744415283, 0.18599224090576172, 0.13712741434574127, -0.2020736038684845, 0.5772082209587097, 0.2814696729183197, 0.11165560036897659, -0.06695722043514252, 0.3743376135826111, -0.019343523308634758, -0.08900081366300583, 0.1457565277814865, -0.1257021129131317, 0.16334353387355804, 0.10752250999212265, -0.1472339928150177, 0.06572811305522919, 0.12595121562480927, -0.09293053299188614, -0.019629575312137604, -0.3975655734539032, 0.1411774605512619, -0.13426630198955536, -0.048203244805336, -0.2495800256729126, -0.07781431078910828, 0.24427995085716248, 0.22237874567508698, 0.2864360213279724, -0.14315995573997498, -0.13973695039749146, 0.2831208407878876, 0.04480544105172157, -0.014349348843097687, 0.14929378032684326, 0.03380458056926727, -0.18661141395568848, 0.22468170523643494, 0.19316725432872772, 0.4328315258026123, 0.3096823990345001, 0.14362771809101105, 0.04675327241420746, -0.06603410840034485, -0.19562341272830963, 0.26749998331069946, -0.027240611612796783, 0.1688484102487564, 0.2518256604671478, -0.03903388977050781, -0.18820606172084808, -0.4661266803741455, 0.047185901552438736, 0.22272354364395142, 0.029559452086687088, -0.1779119074344635, -0.14061816036701202, 0.004916032776236534, -0.1284630447626114, -0.08891597390174866, 0.2944490313529968, -0.13881389796733856, -0.1551378071308136, 0.13021548092365265, 0.20542743802070618, -0.18832974135875702, 0.19830648601055145, -0.12720532715320587, 0.6183516979217529, 0.06513050943613052, -0.11699200421571732, -0.09864579141139984, -0.05039648339152336, -0.00008673965930938721, 0.1729288399219513, -0.06918217241764069, -0.15838776528835297, 0.25553780794143677, 0.04099979251623154, -0.14577645063400269, -0.27277684211730957, -0.2593534588813782, 0.19065800309181213, 0.15869778394699097, 0.05698544532060623, -0.040607258677482605, 0.29949191212654114, 0.08422302454710007, -0.012863509356975555, -0.041341833770275116, -0.1916339248418808, -0.04459748789668083, -0.34446948766708374, 0.02974381297826767, 0.052325475960969925, -0.2425317019224167, -0.34330448508262634, -0.02915146015584469, -0.5995957255363464, 0.04005708545446396, 0.04255211725831032, 0.16280597448349, 0.14675384759902954, 0.12062476575374603, -0.14659354090690613, -0.04745772108435631, 0.12434964627027512, -0.5316648483276367, -0.4193510115146637, 0.20838218927383423, -0.2908708155155182, -0.12353332340717316, 0.06655865907669067, 0.06786079704761505, 0.2737690806388855, 0.3381277918815613, -0.2369351089000702, -0.10379067808389664, -0.06966648250818253, -0.04328060522675514, -0.1661887764930725, -0.024170557036995888, 0.38783198595046997, 0.021000761538743973, -0.29899466037750244, -0.26465854048728943, -0.09761036932468414, 0.1108064129948616, -0.08268196880817413, 0.0883578360080719, 0.07663428783416748, 0.2430305778980255, -0.041450489312410355, 0.5471434593200684, -0.08289455622434616, 0.10146006941795349, 0.3325984477996826, 0.20296940207481384, 0.5459361672401428, -0.1520177125930786, 0.34743693470954895, -0.08143332600593567, 0.038298748433589935, -0.4128878712654114, 0.17142701148986816, -0.08736307173967361, -0.5448817014694214, -0.07442726194858551, -0.04011532664299011, -0.06500241160392761, -0.1569906771183014, 0.2171296626329422, 0.03323598951101303, 0.2684444487094879, 0.0019057635217905045, -0.13379180431365967, -0.32222676277160645, 0.013613829389214516, 0.029590949416160583, 0.10045862197875977, 0.1839587688446045, -0.052263982594013214, -0.1854868084192276, 0.0866241455078125, -0.3628491759300232, 0.2258722186088562, -0.20276860892772675, 0.2028878927230835, -0.2247539907693863, -0.3446607291698456, 0.04708658158779144, -0.0439177080988884, 0.6415305137634277, -0.0527082160115242, -0.052656352519989014, -0.0007617585361003876, 0.026874691247940063, 0.27268195152282715, -0.04202701151371002, 0.01717199757695198, 0.32007935643196106, 0.11577868461608887, 0.08918653428554535, -0.14415253698825836, -0.12204133719205856, -0.04220118373632431, -0.20767629146575928, -0.178180530667305, -0.3174934387207031, -0.1469324380159378, -0.020041851326823235, -0.23403824865818024, 0.12184540927410126, 0.3668648898601532, -0.24663753807544708, 0.18994206190109253, -0.10710790753364563, -0.05843261629343033, -0.044799454510211945, -0.019693344831466675, 0.1340710073709488, 0.3325774669647217, 0.06761492043733597, -0.12873250246047974, 0.06737948209047318, 0.03046957030892372, 0.14232118427753448, 0.28771084547042847, -0.2422637641429901, 0.24179258942604065, 0.16654962301254272, 0.09883149713277817, 0.10334769636392593, 0.2760079503059387, 0.0029836390167474747, -0.0030766725540161133, 0.1692134290933609, 0.2596105933189392, -0.5009117126464844, 0.2245698720216751, 0.016660215333104134, -0.04037871211767197, -0.27623212337493896, -0.49100545048713684, 0.6360037922859192, 0.18664610385894775, -0.3055652379989624, 0.6082131862640381, -0.052962854504585266, -0.35725587606430054, 0.12006649374961853, 0.40643012523651123, 0.9782929420471191, 0.0018800608813762665, 0.0639563649892807, -0.22564825415611267, 0.12120901048183441, 0.18387241661548615, -0.469104528427124, 0.12059193104505539, -0.22233155369758606, -0.027838055044412613, -0.06357084214687347, -0.08372439444065094, 0.16902422904968262, 0.0772634744644165, -0.24516409635543823, -0.09007062017917633, 0.01630862057209015, 0.17541053891181946, -0.08833487331867218, 0.29421961307525635, -0.2875138223171234, -0.18159951269626617, 0.07300065457820892, 0.24913495779037476, 0.008122686296701431, 0.04183490201830864, -0.27320414781570435, 0.05558876320719719, 0.2862781286239624, -0.1259746104478836, -0.06632716953754425, -0.20995944738388062, -0.29358237981796265, 0.2175275683403015, -0.3902026414871216, 0.3220348358154297, -0.19046761095523834, 0.014724861830472946, 0.08568330109119415, 0.34284260869026184, -0.2667562961578369, 0.203403040766716, 0.1532999724149704, 0.09280061721801758, -0.09668686240911484, 0.01079875323921442, 0.3640788197517395, -0.10021637380123138, -0.12146629393100739, 0.11112379282712936, -0.2464776337146759, -0.16316381096839905, -0.11792796850204468, -0.10343103110790253, 0.1508815884590149, -0.3620806932449341, -0.3379981517791748, -0.03264427185058594, -0.19218376278877258, 0.1024879664182663, 0.28128698468208313, 0.023128926753997803, -0.08508625626564026, 0.24445641040802002, 0.09129025042057037, -0.3626212179660797, -0.09934316575527191, 0.3446709215641022, 0.20786860585212708, 0.04751351475715637, 0.04959997534751892, -0.4045109152793884, -0.21796970069408417, -0.25384849309921265, -0.0846841037273407, 0.06354723870754242, 0.11327437311410904, 0.2080499529838562, -0.03819525986909866, -0.17664429545402527, 0.13005855679512024, 0.2444225549697876, 0.24888449907302856, 0.34354767203330994, -0.12040182948112488, -0.14842233061790466, -0.4143359661102295, 0.0035646259784698486, -0.3020683825016022, 0.4571226239204407, 0.246337890625, -0.21125845611095428, 0.11633272469043732, 0.10966655611991882, -0.4986221492290497, -0.19698694348335266, -0.21124354004859924, 0.16895823180675507, 0.054097868502140045, 0.32736507058143616, -0.1728610098361969, -0.08600030839443207, 0.10555213689804077, 0.36889755725860596, -0.4071829617023468, -0.3759073317050934, 0.005752116441726685, 0.1654001772403717, 0.02215525507926941, -0.038515910506248474, -0.048863865435123444, -0.4012000560760498, -0.08602346479892731, -0.14804546535015106, 0.2020329385995865, 0.06387470662593842, -0.10136175155639648, 0.17499065399169922, 0.26308882236480713, -0.011516869068145752, -0.01994597166776657, 0.018406735733151436, 0.13554656505584717, -0.048047393560409546, -0.13987736403942108, 0.17205506563186646, -0.44480079412460327, -0.05520930886268616, -0.017392195761203766, 0.1260347217321396, 0.03552074730396271, 0.0401870459318161, 0.03597845137119293, 0.11059996485710144, -0.13516560196876526, 0.09788043797016144, 0.21925689280033112, 0.1193377673625946, -0.25542885065078735, -0.15946955978870392, 0.059905607253313065, 0.36821404099464417, -0.10838191211223602, -0.09001380205154419, 0.02412731945514679, -0.25829121470451355, 0.28162235021591187, 0.06459760665893555, 0.3657647669315338, 0.024963848292827606, 0.24666130542755127, 0.23185762763023376, 0.34029969573020935, -0.5313730239868164, 0.15083009004592896, -0.008930865675210953, -0.15001517534255981, 0.08823364973068237, 0.5153605341911316, 0.29699230194091797, 0.5022050142288208, 0.605829656124115, 0.19221027195453644, 0.549898087978363, 0.12281468510627747, 0.06475040316581726, -0.29081234335899353, -0.378094881772995, 0.422732412815094, 0.4273655116558075, -0.23620399832725525, 0.20623484253883362, 0.3004471957683563, -0.19433674216270447, 0.00215339008718729, -0.08535776287317276, -0.035043202340602875, -0.018564101308584213, -0.2761688828468323, -0.059533581137657166, -0.10741891711950302, -0.2500346004962921, -0.04391615092754364, 0.035511087626218796, 0.022250473499298096, 0.013620134443044662, 0.6011525392532349, -0.00979788601398468, -0.07314491271972656, 0.2679530382156372, 0.1380956918001175, -0.00735071673989296, 0.24641558527946472, -0.4936739504337311, -0.010877231135964394, -0.09905999898910522, -0.20945623517036438, 0.10882680118083954, 0.29838958382606506, 0.24253883957862854, 0.5051342248916626, 0.0638471245765686, -0.018158413469791412, 0.2256774753332138, -0.043675024062395096, -0.25900375843048096, -0.01723305881023407, 0.3175516128540039, 0.029337799176573753, 0.12965603172779083, 0.3300988972187042, -0.19245193898677826, 0.21541354060173035, 0.07206577062606812, 0.08925114572048187, -0.16576983034610748, -0.21128630638122559, 0.5428493022918701, -0.11099204421043396, -0.043921492993831635, 0.04642916098237038, -0.5018880367279053, 0.045071832835674286, 0.291096955537796, -0.16437217593193054, 0.19962510466575623, -0.154832661151886, 0.16579458117485046, 0.17452895641326904, 0.47524693608283997, -0.11728666722774506, -0.09445365518331528, -0.342643141746521, -0.24610137939453125, -0.707373321056366, 0.18662011623382568, -0.020970817655324936, 0.11538046598434448, 0.2031649500131607, 0.09699299186468124, 0.0699862688779831, 0.08378756046295166, -0.01199541985988617, -0.21159431338310242, -0.010740216821432114, -0.15904322266578674, -0.1643567532300949, -0.06920816004276276, 0.0031694993376731873, -0.08847925066947937, 0.17494206130504608, -0.3872372508049011, 0.2657835781574249, -0.08084577322006226, 0.24001136422157288, -0.2514493465423584, -0.048383768647909164, 0.2766311466693878, 0.4018470048904419, 0.41518524289131165, 0.07467756420373917, 0.1578429937362671, -0.2556498944759369, 0.13449007272720337, 0.057838305830955505, 0.08280353248119354, -0.2419518530368805, -0.21501243114471436, 0.08560394495725632, 0.10416725277900696, -0.2713805139064789, -0.22170691192150116, -0.20258751511573792, 0.14810039103031158, -0.30964887142181396, -0.06886158138513565, -0.2588465213775635, -0.14418189227581024, 0.06378494203090668, 0.08696254342794418, -0.05724874138832092, 0.20337778329849243, 0.04462921991944313, 0.1845254749059677, -0.39938855171203613, -0.2032865732908249, 0.4408508241176605, -0.1109248697757721, -0.2026807814836502, -0.1771399825811386, 0.30237650871276855, 0.162905752658844, 0.022776134312152863, -0.6129014492034912, 0.1608383059501648, 0.37444445490837097, -0.07107096910476685, -0.27972912788391113, 0.22497737407684326, -0.17296063899993896, 0.030528966337442398, -0.2228965014219284, 0.3728313148021698, 0.22647881507873535, -0.12348541617393494, -0.24873888492584229, -0.48197394609451294 ]
https://github.com/huggingface/datasets/pull/2178
Fix cast memory usage by using map on subtables
I updated the bleurt mocking method and bleurt test is passing now. I also ran the slow tests and they are passing for bleurt.
The `cast` operation on a pyarrow Table may create new arrays in memory. This is an issue since users expect memory mapped datasets to not fill up the RAM. To fix that I used `map` to write a new arrow file on disk when cast is used. To make things more convenient I introduced the `arrow` formatting of a dataset, to make it return pyarrow tables instead of python dicts. This way one can use pyarrow transforms directly when using `map`. edit: we'll use the same mechanism for `filter`
24
text: Fix cast memory usage by using map on subtables The `cast` operation on a pyarrow Table may create new arrays in memory. This is an issue since users expect memory mapped datasets to not fill up the RAM. To fix that I used `map` to write a new arrow file on disk when cast is used. To make things more convenient I introduced the `arrow` formatting of a dataset, to make it return pyarrow tables instead of python dicts. This way one can use pyarrow transforms directly when using `map`. edit: we'll use the same mechanism for `filter` I updated the bleurt mocking method and bleurt test is passing now. I also ran the slow tests and they are passing for bleurt.
[ -0.07585635036230087, -0.1242060512304306, -0.09912407398223877, 0.024706512689590454, 0.16319607198238373, -0.27856990694999695, -0.01821727678179741, 0.2960522770881653, 0.09619089961051941, -0.1322013884782791, -0.2912794351577759, 0.5025848150253296, -0.1390238255262375, -0.22849898040294647, -0.06240619719028473, 0.00942942500114441, -0.14114803075790405, 0.26436033844947815, -0.1255018264055252, 0.05820368230342865, -0.17217081785202026, -0.01493058167397976, -0.2003018856048584, -0.14702266454696655, 0.1191529929637909, 0.13110685348510742, 0.09045302867889404, -0.03107336163520813, -0.10110850632190704, -0.6200314164161682, 0.05256637930870056, 0.14203953742980957, -0.16864992678165436, 0.3201693296432495, -0.00011271805851720273, -0.07139566540718079, 0.18848443031311035, -0.009433282539248466, -0.3738725185394287, 0.3289377689361572, -0.08331087231636047, -0.15672633051872253, 0.07550202310085297, -0.11221037805080414, -0.21861109137535095, -0.11297933757305145, -0.09516680240631104, -0.14888644218444824, 0.12849852442741394, 0.09285320341587067, 0.1950889527797699, 0.15068043768405914, -0.20071476697921753, 0.30153322219848633, 0.6874388456344604, 0.11161866784095764, -0.01310029998421669, 0.13915862143039703, 0.6993710994720459, -0.1262313574552536, -0.33164387941360474, 0.2376251220703125, -0.27668997645378113, 0.09158338606357574, 0.12138193845748901, -0.10650663077831268, 0.1963444948196411, 0.05164074897766113, 0.15462595224380493, -0.056945569813251495, 0.2957395315170288, -0.5788365006446838, -0.12771807610988617, 0.14681953191757202, -0.058763448148965836, -0.0402023009955883, -0.09254588931798935, 0.19369444251060486, -0.2180623710155487, -0.0027540922164916992, -0.520419716835022, -0.07346639037132263, 0.1474921554327011, -0.041080035269260406, 0.06419409811496735, 0.23267583549022675, 0.06926625221967697, 0.10423997044563293, -0.07041957974433899, -0.19440153241157532, 0.12956030666828156, -0.05564271658658981, -0.2264097034931183, 0.174833282828331, -0.053967442363500595, -0.2597014009952545, 0.12236295640468597, 0.0944138914346695, 0.07257775217294693, -0.18167616426944733, 0.15170511603355408, 0.276177316904068, 0.3051643967628479, 0.030655622482299805, 0.3736422657966614, 0.1564224362373352, 0.13038799166679382, 0.3366861343383789, 0.23918434977531433, 0.10694636404514313, -0.31258153915405273, 0.20814591646194458, 0.34685930609703064, -0.2185681164264679, 0.05588052049279213, -0.15290787816047668, 0.08035925030708313, -0.23965400457382202, -0.15069665014743805, -0.10516636818647385, -0.1763184666633606, 0.013066081330180168, 0.23098281025886536, 0.6378669738769531, -0.1821313351392746, -0.33534738421440125, 0.32739144563674927, -0.08732885867357254, -0.348909467458725, -0.13840746879577637, -0.19514285027980804, 0.07688310742378235, -0.32508787512779236, -0.11675334721803665, 0.09819205105304718, 0.08085013926029205, 0.12056081742048264, -0.13971444964408875, 0.09442853927612305, 0.29907912015914917, 0.03767748177051544, 0.0336202010512352, 0.5383487939834595, 0.38519302010536194, -0.2142476588487625, -0.25461089611053467, -0.00863775983452797, 0.03226962685585022, -0.17891153693199158, 0.6406921148300171, 0.05892487242817879, -0.2866452634334564, 0.25654366612434387, 0.17800088226795197, -0.18797816336154938, 0.12778419256210327, -0.017611220479011536, 0.16711308062076569, 0.31087085604667664, -0.5322226881980896, 0.07816648483276367, -0.2725610136985779, -0.07454084604978561, -0.3904680907726288, 0.3487297594547272, 0.05563826113939285, -0.41270697116851807, -0.22904977202415466, -0.1822439283132553, -0.17460569739341736, 0.5667571425437927, 0.2970694601535797, -0.12403909116983414, 0.04808644577860832, -0.008870622143149376, 0.06333568692207336, 0.3763219714164734, 0.14349262416362762, -0.5256196856498718, 0.006226242985576391, 0.11927519738674164, 0.005691299214959145, -0.04016190022230148, 0.1357094943523407, 0.34303274750709534, -0.020426928997039795, 0.03016219288110733, 0.12718628346920013, -0.31556621193885803, 0.33936911821365356, -0.5134336948394775, -0.1164885014295578, 0.13592594861984253, -0.05401944741606712, -0.04465291276574135, -0.18072810769081116, 0.15358227491378784, 0.12041022628545761, 0.34996744990348816, -0.21164396405220032, 0.015148073434829712, -0.1660718470811844, 0.4534588158130646, -0.43267059326171875, 0.23423565924167633, -0.10364270210266113, 0.3035500645637512, 0.3668331503868103, -0.034498654305934906, 0.11741317063570023, -0.18595658242702484, -0.17666445672512054, -0.016885807737708092, 0.3482358157634735, 0.1622612625360489, -0.11952683329582214, 0.15751224756240845, -0.18257907032966614, -0.08929815888404846, -0.3443233072757721, 0.06492088735103607, -0.31568726897239685, -0.18459287285804749, -0.1393054574728012, 0.06629309803247452, 0.3428945243358612, -0.0682339146733284, -0.30137649178504944, -0.18743015825748444, 0.08401603996753693, -0.11347285658121109, 0.0899747982621193, -0.08466407656669617, 0.012653935700654984, 0.3506220877170563, -0.1876608282327652, 0.05099804326891899, -0.10530664026737213, 0.0335024818778038, -0.38215184211730957, 0.16238422691822052, 0.18786026537418365, 0.12344376742839813, -0.02097654715180397, 0.11815465986728668, 0.009708844125270844, 0.26363223791122437, 0.06635609269142151, 0.169542133808136, -0.1129617914557457, 0.03281741589307785, 0.08471718430519104, 0.08683839440345764, -0.17022456228733063, 0.0018935240805149078, 0.14669962227344513, -0.1904112696647644, 0.2771797180175781, 0.003591574728488922, 0.23236986994743347, 0.4964182674884796, -0.1590844839811325, 0.1567351520061493, 0.19683116674423218, 0.017443925142288208, -0.23679542541503906, 0.2768481373786926, -0.11522766947746277, 0.16344551742076874, 0.1553027480840683, 0.1560157984495163, -0.07096937298774719, 0.005282170604914427, 0.048200927674770355, 0.32182061672210693, 0.14228323101997375, -0.1794583797454834, -0.2557709813117981, 0.09521730989217758, -0.2403881698846817, -0.14148756861686707, 0.11024118959903717, 0.17211051285266876, 0.20551684498786926, -0.387210488319397, -0.1283399760723114, -0.2609022855758667, -0.004662357270717621, 0.10173067450523376, -0.001279778778553009, 0.29211193323135376, 0.027718665078282356, 0.3021705150604248, 0.013948433101177216, -0.45145976543426514, 0.43010976910591125, 0.035546060651540756, 0.36117681860923767, 0.04565487056970596, -0.421608567237854, -0.22847166657447815, -0.4358765482902527, -0.1845467984676361, 0.18278785049915314, 0.30669867992401123, 0.2120783030986786, 0.24252162873744965, 0.053966619074344635, -0.2099631428718567, -0.311335027217865, -0.4420171082019806, 0.05394929647445679, -0.08307085931301117, 0.42151373624801636, 0.37694162130355835, 0.07670146226882935, -0.1923004537820816, -0.05897369608283043, 0.1032969206571579, -0.5090060234069824, -0.34164655208587646, 0.30534112453460693, 0.0776471421122551, -0.14130190014839172, -0.22935406863689423, -0.25722259283065796, 0.19367395341396332, -0.3843802809715271, 0.028491642326116562, -0.18405753374099731, 0.14068835973739624, -0.5631659030914307, 0.22623930871486664, 0.22955898940563202, -0.11077923327684402, 0.05163450539112091, 0.08801503479480743, 0.469842791557312, 0.003285463899374008, 0.04789833724498749, -0.20277827978134155, -0.06429797410964966, -0.24378953874111176, 0.2197231501340866, 0.2509097456932068, -0.41090404987335205, 0.05973852053284645, -0.11428910493850708, -0.09988677501678467, 0.34345346689224243, -0.05046018213033676, 0.07502646744251251, 0.41509631276130676, -0.21708723902702332, -0.0066374801099300385, -0.16616226732730865, -0.32712215185165405, 0.18176138401031494, 0.1477380394935608, 0.01787826418876648, 0.3411794900894165, 0.170308455824852, 0.5952402353286743, -0.10156086087226868, 0.18894843757152557, 0.13984021544456482, 0.1410498023033142, 0.017709925770759583, 0.03737246245145798, -0.2436617910861969, -0.03919927030801773, -0.16634422540664673, -0.4436948895454407, 0.3614908456802368, -0.013920065015554428, -0.6128471493721008, 0.07095437496900558, -0.19754846394062042, 0.16407495737075806, -0.27649635076522827, 0.4426068663597107, -0.015758972615003586, -0.10671671479940414, -0.10583090782165527, -0.06409959495067596, -0.13856065273284912, -0.10980325937271118, -0.09592790901660919, -0.33959728479385376, -0.06572411209344864, -0.17008693516254425, 0.12442740797996521, -0.3332332670688629, -0.3364879786968231, 0.4469679594039917, 0.2385614961385727, 0.09973698109388351, -0.07690785825252533, -0.3703668713569641, 0.04769344627857208, -0.17964307963848114, 0.24062132835388184, 0.0560908317565918, 0.1049235463142395, 0.2778417766094208, -0.117019422352314, -0.48541152477264404, 0.15050479769706726, -0.32307004928588867, -0.17126260697841644, 0.25496312975883484, -0.18707403540611267, -0.3110602796077728, -0.18841882050037384, 0.3920316994190216, 0.17160576581954956, -0.039697274565696716, 0.12360905855894089, -0.41398054361343384, -0.566031277179718, -0.3425099551677704, 0.27278345823287964, 0.19844987988471985, -0.07069767266511917, 0.007198123261332512, 0.02304195985198021, 0.14739610254764557, -0.04622132331132889, -0.145027294754982, 0.22580210864543915, 0.34655386209487915, -0.10572142153978348, 0.2945004105567932, -0.36497318744659424, -0.241612046957016, 0.2592659294605255, 0.6698075532913208, -0.3803696632385254, -0.09189169108867645, 0.009521344676613808, 0.35720404982566833, 0.2806747853755951, 0.35194262862205505, 0.006558309309184551, 0.2428174614906311, 0.012838088907301426, 0.19347670674324036, 0.17164316773414612, 0.028401141986250877, -0.021270951256155968, -0.08816823363304138, 0.16890624165534973, -0.2300029695034027, 0.24496152997016907, -0.07446688413619995, -0.2043546438217163, 0.5392094850540161, 0.07128814607858658, -0.23650625348091125, 0.5745189189910889, 0.555881142616272, 0.9878621697425842, -0.04124806076288223, 0.1628129780292511, 0.26226717233657837, -0.2802596092224121, -0.2271587997674942, -0.06964769959449768, 0.27768266201019287, -0.2128007411956787, -0.16005723178386688, 0.17224645614624023, -0.13842058181762695, 0.07266277074813843, 0.05114534869790077, -0.3993411362171173, 0.004707730375230312, -0.04389427974820137, 0.26523536443710327, 0.3432241380214691, -0.1100858673453331, 0.12129461765289307, 0.14332325756549835, -0.07231368869543076, 0.15815939009189606, 0.03533382713794708, -0.5060228109359741, -0.004665253683924675, 0.09160689264535904, 0.019140440970659256, -0.35963380336761475, -0.0740872472524643, 0.08270850032567978, -0.3464411795139313, 0.0522768497467041, -0.10508336126804352, -0.04709063842892647, 0.1572818011045456, 0.28390541672706604, -0.2568601965904236, 0.15281222760677338, 0.07346104830503464, 0.37118372321128845, 0.28230929374694824, 0.30587589740753174, 0.11074812710285187, 0.09368404746055603, 0.35452932119369507, -0.10688632726669312, -0.5140655636787415, 0.06454314291477203, -0.1752179116010666, -0.3334462642669678, 0.09402690827846527, 0.40065670013427734, 0.004093170166015625, -0.26664358377456665, 0.009943382814526558, -0.053850844502449036, -0.23800413310527802, -0.12837013602256775, 0.16805009543895721, 0.0720657929778099, -0.34271135926246643, 0.583374559879303, 0.1422572284936905, -0.40463826060295105, -0.06904959678649902, 0.01856847107410431, 0.2273561656475067, 0.44192612171173096, 0.3415038585662842, -0.058168090879917145, -0.24837885797023773, -0.18764886260032654, -0.43394404649734497, 0.46938419342041016, -0.18935547769069672, 0.30613377690315247, -0.299225777387619, -0.28558093309402466, 0.35285046696662903, 0.26185792684555054, 0.2205338031053543, 0.07521398365497589, -0.41491711139678955, 0.1843864619731903, -0.25306183099746704, 0.4709242582321167, 0.2284512221813202, 0.3006224036216736, 0.07088256627321243, 0.060482095927000046, -0.036263447254896164, 0.4852882921695709, -0.34141847491264343, -0.07984323054552078, -0.468889057636261, 0.42640331387519836, -0.24479618668556213, 0.09129013121128082, 0.1149047464132309, -0.055971067398786545, 0.10144862532615662, 0.04897832125425339, -0.2686448395252228, -0.24382531642913818, 0.2901701033115387, 0.11321622133255005, -0.009841393679380417, -0.11541301012039185, -0.33235129714012146, -0.09656179696321487, 0.14576223492622375, -0.15412117540836334, 0.1703837364912033, -0.22975316643714905, -0.03916395455598831, -0.07845613360404968, 0.3371896743774414, -0.4762544333934784, 0.16148541867733002, 0.06392833590507507, -0.08633090555667877, -0.03222036361694336, 0.188703715801239, 0.14259228110313416, 0.14660915732383728, -0.19628766179084778, 0.5953893065452576, -0.026912346482276917, 0.09697780013084412, 0.062044717371463776, 0.21665966510772705, 0.02054130658507347, -0.19368310272693634, -0.43358007073402405, 0.3230600953102112, 0.1599389612674713, -0.0018317215144634247, -0.19693617522716522, 0.37108778953552246, 0.2190380096435547, -0.3302953541278839, -0.30820581316947937, 0.3514590561389923, 0.02826855331659317, 0.14850077033042908, 0.2148587554693222, -0.06992223113775253, 0.20489874482154846, 0.3545585870742798, 0.1445821225643158, 0.24554972350597382, -0.30457985401153564, -0.17865906655788422, 0.21645721793174744, -0.15388526022434235, -0.024524439126253128, 0.03829546272754669, 0.08513197302818298, 0.18657660484313965, 0.124452143907547, -0.11252454668283463, 0.7035712599754333, -0.2282528579235077, 0.23585614562034607, 0.06330335140228271, -0.058757588267326355, 0.3050805926322937, 0.24004510045051575, -0.0716668963432312, -0.02371988445520401, 0.001462399959564209, 0.11599171161651611, 0.32737600803375244, -0.540846586227417, 0.038506194949150085, 0.18271827697753906, -0.09129611402750015, 0.021842289716005325, -0.13120710849761963, -0.06155337765812874, 0.18361786007881165, -0.06663240492343903, 0.10267309844493866, 0.012952230870723724, 0.3218752443790436, 0.03672857582569122, 0.10281768441200256, 0.06725495308637619, -0.1293097734451294, -0.11747357994318008, 0.09602373838424683, -0.26680371165275574, 0.05487588047981262, 0.01616201549768448, -0.03466968238353729, -0.022247396409511566, 0.18107734620571136, 0.2835637331008911, 0.29558050632476807, -0.3177533447742462, -0.21501524746418, -0.0039406828582286835, -0.11931722611188889, -0.3314436376094818, 0.3407123386859894, 0.25995194911956787, 0.14409509301185608, -0.062329601496458054, 0.13183379173278809, -0.14057201147079468, -0.08971184492111206, 0.2958606481552124, -0.27133673429489136, 0.028117980808019638, 0.16262134909629822, 0.21569672226905823, -0.4390835464000702, 0.019580094143748283, -0.2860657274723053, -0.31857603788375854, 0.14288979768753052, 0.3047429323196411, -0.4425794184207916, 0.11789644509553909, 0.03928017616271973, 0.08659909665584564, 0.32489100098609924, 0.5700422525405884, -0.12730950117111206, 0.3341846168041229, -0.37127768993377686, -0.12528608739376068, -0.3805192708969116, 0.038478098809719086, -0.18807284533977509, 0.09002052992582321, 0.15160363912582397, 0.15477335453033447, 0.10140863060951233, -0.04342331737279892, 0.05490995943546295, -0.3280816376209259, -0.11639725416898727, 0.06028231233358383, -0.1788896918296814, -0.1293540596961975, -0.05360808223485947, 0.035941943526268005, -0.05608628690242767, -0.4275861978530884, 0.2142484188079834, -0.4091959595680237, 0.12127503007650375, 0.04140190780162811, -0.2629258632659912, 0.5798001885414124, 0.24044591188430786, 0.12254846841096878, -0.07210548222064972, 0.5862817168235779, -0.013552213087677956, 0.11601019650697708, 0.0320245698094368, -0.2700593173503876, 0.010923412628471851, -0.21452996134757996, 0.16190549731254578, 0.28045904636383057, -0.025548744946718216, -0.08956848084926605, -0.1729229837656021, 0.296053409576416, -0.017460985109210014, 0.23698189854621887, 0.26324358582496643, -0.08064841479063034, 0.12726891040802002, 0.058555927127599716, -0.31938451528549194, 0.04966753348708153, -0.08454950153827667, -0.06122749298810959, -0.4568357467651367, -0.26991698145866394, 0.6216935515403748, -0.602549135684967, -0.22345039248466492, -0.07759194821119308, 0.12980957329273224, -0.06760821491479874, -0.23656493425369263, -0.5109341740608215, -0.2618746757507324, 0.03477958217263222, 0.020530879497528076, -0.26876336336135864, 0.1834227740764618, 0.2960091829299927, 0.2128293365240097, -0.24215006828308105, 0.3964099586009979, -0.17730838060379028, -0.07551794499158859, -0.3040366470813751, -0.27649956941604614 ]
https://github.com/huggingface/datasets/pull/2171
Fixed the link to wikiauto training data.
Also you can ignore the CI failing on `docs`, this has been fixed on master :)
16
text: Fixed the link to wikiauto training data. Also you can ignore the CI failing on `docs`, this has been fixed on master :)
[ -0.09465618431568146, 0.1505334973335266, -0.09316396713256836, 0.06271020323038101, 0.16108889877796173, -0.07564429938793182, 0.3784065842628479, 0.4253270626068115, -0.12974025309085846, 0.3157229423522949, 0.1422881782054901, -0.03282663971185684, 0.20795075595378876, 0.313873291015625, -0.07229848951101303, 0.08568565547466278, -0.04476655274629593, 0.09990522265434265, -0.0291205495595932, -0.1217375323176384, 0.025944165885448456, 0.18093644082546234, -0.10275457799434662, 0.16033832728862762, -0.4169996678829193, -0.019614482298493385, 0.10920347273349762, 0.11360735446214676, -0.26101183891296387, -0.3008338212966919, 0.25303781032562256, 0.0030582845211029053, -0.13767406344413757, 0.45682859420776367, -0.00009783152199815959, 0.14756299555301666, 0.41108304262161255, -0.027981268242001534, -0.3582358956336975, 0.014987602829933167, -0.06277555227279663, 0.09910838305950165, 0.07766550779342651, -0.18697711825370789, -0.3899678587913513, 0.2747442424297333, 0.015102066099643707, 0.2238783836364746, 0.1596667468547821, 0.3911474347114563, 0.3564460873603821, 0.0892925038933754, -0.0219513401389122, -0.15639342367649078, 0.10483766347169876, -0.05559609830379486, -0.18691129982471466, -0.04849495366215706, 0.17073073983192444, -0.08127396553754807, -0.09536200016736984, 0.5565951466560364, 0.15017032623291016, -0.05654509738087654, -0.09748595207929611, -0.030384518206119537, 0.420052170753479, -0.20016607642173767, 0.31499871611595154, -0.046830207109451294, 0.5437533259391785, 0.17713484168052673, -0.043306440114974976, 0.2140301764011383, 0.11213380843400955, 0.08440367877483368, 0.4737209677696228, 0.09822655469179153, -0.03896838426589966, 0.11853206157684326, 0.031497884541749954, -0.13267117738723755, -0.22876374423503876, -0.026250489056110382, -0.20582248270511627, 0.4184586703777313, -0.1160767450928688, -0.13484764099121094, 0.03883032500743866, -0.11748991906642914, 0.17080560326576233, 0.07002347707748413, -0.29088613390922546, -0.020722851157188416, 0.13642193377017975, -0.3572053909301758, 0.1035645455121994, 0.343685120344162, -0.0527474582195282, -0.1901284009218216, 0.3934497833251953, 0.14513054490089417, 0.03475641831755638, 0.033496201038360596, 0.21025028824806213, -0.05240467190742493, -0.06177353113889694, 0.2300281673669815, 0.44280534982681274, 0.5673172473907471, -0.21887542307376862, 0.005627289414405823, 0.026745129376649857, -0.18351884186267853, -0.4490395784378052, 0.026978975161910057, -0.001721952110528946, -0.43682393431663513, -0.03550475090742111, 0.20034801959991455, 0.21276795864105225, 0.12416785955429077, -0.10825398564338684, 0.24578288197517395, -0.41645702719688416, 0.12344403564929962, 0.04244589805603027, -0.005183715373277664, -0.304634153842926, 0.06678121536970139, -0.20113758742809296, 0.13034190237522125, -0.2645002007484436, 0.010629449971020222, 0.2520746886730194, 0.16891837120056152, 0.3289943337440491, 0.06499933451414108, 0.12223467230796814, -0.2181975394487381, -0.048528946936130524, 0.11040984094142914, 0.16256558895111084, 0.36109140515327454, 0.17322944104671478, 0.006997311487793922, 0.15434874594211578, -0.571307897567749, 0.2318457067012787, 0.03955140709877014, -0.5278727412223816, -0.2974366247653961, -0.18490606546401978, 0.35002556443214417, 0.06139591336250305, -0.040473178029060364, 0.16077634692192078, 0.021937433630228043, 0.11182089149951935, -0.22360138595104218, -0.15627387166023254, 0.19767791032791138, -0.02399253472685814, -0.0905144065618515, 0.19646799564361572, 0.11895109713077545, -0.053462959825992584, 0.09350670874118805, 0.1582658588886261, 0.08279770612716675, 0.1359606832265854, 0.19506582617759705, -0.3057982921600342, 0.08486644178628922, -0.09575416892766953, 0.027896344661712646, 0.2103998363018036, -0.48125332593917847, -0.15384185314178467, -0.0689028948545456, -0.007900316268205643, -0.14145760238170624, -0.24086278676986694, -0.23523443937301636, 0.4267112910747528, -0.06587593257427216, 0.04602470248937607, 0.1431046426296234, -0.014732854440808296, 0.15327434241771698, -0.5285230875015259, -0.19041948020458221, -0.40603917837142944, 0.11187778413295746, 0.146854966878891, 0.0022151991724967957, 0.10172402113676071, -0.14597336947917938, 0.47550538182258606, -0.18267425894737244, -0.013193268328905106, 0.09777183085680008, 0.26348647475242615, -0.05102315545082092, 0.10439304262399673, 0.4438639283180237, -0.005223192274570465, 0.005883082747459412, -0.01644515059888363, 0.42281752824783325, -0.03707332909107208, -0.1360621154308319, -0.13352125883102417, -0.13555511832237244, -0.27972930669784546, -0.36001715064048767, 0.37156933546066284, 0.020492739975452423, -0.29625430703163147, 0.07051973044872284, -0.0073934197425842285, -0.13063491880893707, -0.3979812264442444, 0.03702516853809357, 0.1850675493478775, 0.2043778896331787, -0.3670834004878998, -0.06205587089061737, 0.06864213198423386, 0.03806033730506897, 0.14908120036125183, -0.13344524800777435, -0.20019134879112244, 0.0544927679002285, 0.09740260243415833, 0.26855987310409546, 0.3647363781929016, 0.17056554555892944, 0.20620739459991455, -0.175705686211586, -0.19505591690540314, 0.20735648274421692, -0.017324283719062805, 0.008345097303390503, -0.3241054117679596, 0.22583970427513123, 0.10846155881881714, 0.01736433058977127, 0.06335484236478806, 0.14483219385147095, 0.32698768377304077, -0.15826477110385895, -0.1807757019996643, -0.176363006234169, -0.04267058148980141, 0.26517918705940247, -0.4138212203979492, -0.18565906584262848, -0.1744379699230194, 0.08230505883693695, 0.17264629900455475, 0.09081102907657623, 0.08095595240592957, -0.03367462009191513, 0.05112473666667938, -0.12125805020332336, 0.16746756434440613, 0.2791335880756378, 0.014827489852905273, 0.047360632568597794, 0.2611734867095947, 0.10156392306089401, -0.05020950734615326, -0.21307764947414398, 0.28161948919296265, -0.09825827181339264, 0.05796743184328079, 0.22267550230026245, 0.016726376488804817, -0.08421005308628082, -0.38714468479156494, 0.3794589340686798, -0.15841296315193176, 0.09198080748319626, -0.23776403069496155, -0.045027196407318115, -0.019492890685796738, 0.22789928317070007, 0.15101636946201324, 0.0238276906311512, -0.12565313279628754, -0.30703112483024597, 0.2528480887413025, 0.16761724650859833, -0.3074742555618286, 0.32551759481430054, -0.08591096103191376, 0.32698696851730347, -0.08341778069734573, 0.24302451312541962, -0.037651918828487396, -0.34707382321357727, -0.22905489802360535, 0.2826191484928131, 0.1176334023475647, -0.06689222157001495, 0.04573738947510719, -0.3731857240200043, 0.06749451160430908, -0.2444949746131897, -0.49942371249198914, 0.12244319915771484, 0.11835117638111115, 0.12480805069208145, 0.02924705296754837, 0.4253084659576416, -0.21214163303375244, -0.25565478205680847, 0.1937386691570282, -0.24594780802726746, -0.011487552896142006, -0.29959312081336975, -0.03176197037100792, -0.06434926390647888, -0.2612479329109192, -0.2771810293197632, 0.0289824977517128, -0.20734259486198425, -0.2839066982269287, 0.22493524849414825, 0.10766462981700897, 0.27692899107933044, 0.16744042932987213, -0.11620432883501053, -0.10218057036399841, 0.022201579064130783, -0.36568987369537354, -0.5493265986442566, 0.4046977162361145, -0.44933006167411804, -0.5289376974105835, 0.30572861433029175, 0.08915266394615173, 0.4756529629230499, 0.016542386263608932, -0.5876770615577698, 0.0588923804461956, 0.2651941180229187, -0.0411994606256485, -0.02757648378610611, 0.0625227764248848, 0.22143743932247162, 0.12234817445278168, -0.344699501991272, -0.23025307059288025, -0.10033924877643585, -0.017672300338745117, -0.012307483702898026, 0.29268088936805725, -0.3993934690952301, 0.12523382902145386, 0.1314142793416977, 0.5693511366844177, -0.0771881714463234, 0.0832844227552414, 0.10469867289066315, -0.09090591967105865, 0.3993442952632904, -0.006945371627807617, -0.11154855042695999, 0.2785624563694, -0.108216792345047, -0.10788596421480179, 0.43682003021240234, 0.07480978965759277, -0.47388121485710144, -0.3351673483848572, 0.2139323204755783, -0.18073567748069763, -0.4896421432495117, -0.000555107370018959, 0.04730592668056488, 0.2721045911312103, 0.33447200059890747, 0.267759770154953, -0.30412694811820984, -0.14428597688674927, 0.3147135376930237, 0.40527427196502686, -0.052082277834415436, -0.13126623630523682, 0.01872699335217476, -0.10351667553186417, -0.23804894089698792, -0.09612442553043365, -0.07080215960741043, 0.019880522042512894, -0.12423764169216156, -0.1545385718345642, 0.14424169063568115, -0.11512523144483566, 0.2250162661075592, -0.38588011264801025, -0.07699689269065857, 0.1545906811952591, -0.01913018897175789, -0.02685561217367649, -0.2272506207227707, -0.07399843633174896, 0.23590131103992462, 0.10907530784606934, 0.3568495213985443, -0.09145531058311462, -0.12821480631828308, 0.41832610964775085, -0.3204447031021118, -0.20622234046459198, 0.1266060471534729, -0.135368213057518, -0.33239760994911194, -0.16715452075004578, 0.11860789358615875, -0.0077983662486076355, 0.06090005114674568, -0.21673883497714996, -0.19326436519622803, -0.04037776589393616, 0.11283706873655319, -0.07912781834602356, 0.27999988198280334, 0.15602180361747742, 0.2680395245552063, -0.024658631533384323, 0.020364295691251755, 0.3624012768268585, -0.037560805678367615, 0.2240375131368637, 0.13698618113994598, 0.3637412190437317, -0.02476024255156517, -0.3279547095298767, 0.008878417313098907, 0.3499455451965332, 0.002900581806898117, -0.17985191941261292, -0.14152327179908752, -0.0264190211892128, 0.027072502300143242, 0.24939684569835663, 0.14507292211055756, 0.06956890970468521, -0.32589417695999146, 0.0025508757680654526, 0.2563628554344177, -0.10212258994579315, -0.11968585103750229, 0.22844968736171722, 0.1446346938610077, -0.17879533767700195, -0.07921911031007767, 0.29621076583862305, 0.8891160488128662, 0.2681560516357422, 0.252991646528244, 0.15500745177268982, 0.014392420649528503, 0.020758429542183876, -0.25109392404556274, 0.12312978506088257, -0.2918793559074402, -0.2217061072587967, -0.06542719900608063, 0.06723891198635101, -0.0342266708612442, 0.017864853143692017, -0.31741777062416077, -0.06120894104242325, -0.01843968778848648, 0.4250333905220032, 0.06961588561534882, -0.0828544870018959, 0.12714116275310516, -0.08696743845939636, -0.15649254620075226, 0.23705053329467773, 0.09652335196733475, 0.18589773774147034, -0.19336754083633423, -0.27572381496429443, 0.02640632912516594, -0.058583781123161316, -0.07923907041549683, 0.17826735973358154, -0.2895990312099457, 0.15838968753814697, -0.2284829318523407, -0.3307868540287018, 0.015235427767038345, 0.059757206588983536, 0.24746176600456238, 0.302039235830307, -0.33085259795188904, 0.44894731044769287, -0.17401093244552612, -0.06645162403583527, -0.16608987748622894, 0.19368676841259003, 0.04039362072944641, -0.34895792603492737, -0.28103506565093994, 0.1630045771598816, -0.09789380431175232, -0.10307577252388, -0.11892182379961014, -0.04732626676559448, 0.09179356694221497, -0.06090685352683067, -0.05958738923072815, 0.08830425888299942, -0.27914273738861084, -0.20720870792865753, 0.31404951214790344, -0.2914769649505615, 0.007493821904063225, 0.18830204010009766, 0.4292856454849243, -0.07709965854883194, -0.050612639635801315, 0.33125829696655273, 0.019047588109970093, -0.04166937246918678, 0.3138478696346283, 0.017589043825864792, -0.2138032764196396, -0.4071802496910095, -0.17908355593681335, 0.1038932278752327, -0.05148082226514816, -0.10049958527088165, -0.02126859687268734, -0.279349684715271, -0.025332003831863403, 0.4218977391719818, 0.1576407253742218, 0.14826637506484985, -0.05282038822770119, -0.09586575627326965, -0.4636124074459076, 0.18282118439674377, -0.1490144580602646, 0.14004576206207275, -0.13310593366622925, 0.18924707174301147, 0.30760127305984497, -0.14599472284317017, -0.47994449734687805, 0.1556144654750824, -0.282755047082901, 0.038546282798051834, 0.1176714301109314, -0.1077895238995552, 0.15630005300045013, 0.07571141421794891, 0.2047143429517746, -0.07555271685123444, -0.1652098000049591, -0.3352377116680145, -0.058808546513319016, 0.08775866031646729, 0.23376640677452087, -0.02482377178966999, 0.1420401781797409, 0.018549371510744095, -0.2441425919532776, 0.07313495129346848, 0.0570145808160305, -0.2663041949272156, 0.08162226527929306, 0.0058807553723454475, -0.04607926681637764, 0.22680789232254028, 0.028970256447792053, -0.05186759680509567, 0.23682335019111633, 0.35779207944869995, -0.13743998110294342, -0.1935630738735199, -0.17280733585357666, -0.23810841143131256, 0.32859665155410767, 0.29701468348503113, -0.24940530955791473, 0.44979533553123474, 0.22541582584381104, -0.20843632519245148, 0.01025434210896492, 0.15197046101093292, 0.010294567793607712, 0.17533868551254272, -0.11867660284042358, 0.027543751522898674, 0.11016477644443512, 0.39133062958717346, -0.22707805037498474, -0.20179013907909393, -0.04005897045135498, -0.13264815509319305, 0.10091659426689148, -0.03467663377523422, 0.072530597448349, -0.31399816274642944, 0.2073851227760315, 0.397539347410202, -0.138240247964859, -0.42755651473999023, 0.10799907147884369, 0.012552011758089066, -0.26110124588012695, 0.05930262431502342, -0.08833622187376022, -0.20078033208847046, -0.08702477067708969, 0.1896069347858429, -0.01098228245973587, 0.31752511858940125, 0.3205479383468628, -0.08859477937221527, 0.08843986690044403, 0.02810553088784218, 0.14640368521213531, 0.028481215238571167, 0.08449490368366241, 0.061659347265958786, 0.19022589921951294, -0.27789899706840515, -0.052836816757917404, -0.31245025992393494, -0.46720436215400696, -0.020055145025253296, -0.32226476073265076, -0.09017153084278107, -0.43320876359939575, -0.2871452271938324, 0.09682095050811768, 0.09668509662151337, -0.1266399472951889, 0.41526103019714355, 0.07914623618125916, -0.014736317098140717, -0.13425232470035553, -0.0020140763372182846, -0.13839629292488098, 0.18643084168434143, 0.34300878643989563, -0.036778852343559265, 0.19819897413253784, -0.0635029524564743, 0.06636416167020798, -0.09675221145153046, 0.1514279991388321, 0.338776558637619, 0.12212679535150528, 0.002989009954035282, -0.07852260768413544, -0.031046230345964432, -0.06808928400278091, -0.05195438116788864, 0.09996616840362549, 0.35354578495025635, -0.34583064913749695, 0.19071289896965027, 0.2643906772136688, -0.2925626337528229, 0.13043244183063507, -0.05913249030709267, -0.16023129224777222, 0.0795164555311203, -0.2528788149356842, 0.22622573375701904, -0.19289910793304443, -0.19386686384677887, -0.03830931335687637, -0.1421559453010559, 0.3148898184299469, 0.20030634105205536, 0.025238504633307457, 0.11323600262403488, -0.27758681774139404, 0.18131890892982483, 0.1802666187286377, 0.7542712092399597, 0.009847834706306458, -0.2241150140762329, -0.09304725378751755, -0.4443838596343994, -0.3417946398258209, 0.23808646202087402, 0.08208446204662323, 0.19682477414608002, -0.044307030737400055, 0.10677114129066467, 0.02529378980398178, 0.12183311581611633, 0.29866525530815125, -0.23222903907299042, 0.12806271016597748, -0.2703189551830292, -0.40267840027809143, -0.00781290978193283, -0.06156006455421448, 0.009908453561365604, 0.04264816641807556, -0.15080910921096802, 0.09341554343700409, 0.0006446363404393196, 0.30242300033569336, 0.09239084273576736, -0.004686512053012848, -0.052678611129522324, 0.0438944511115551, 0.12354526668787003, -0.04997178167104721, 0.2180359661579132, -0.2706854045391083, -0.15139338374137878, -0.3268422484397888, -0.29353877902030945, -0.12078788876533508, 0.27570581436157227, 0.16425855457782745, 0.18485313653945923, 0.25737011432647705, 0.0347839780151844, -0.1151074543595314, -0.024273984134197235, 0.21353746950626373, 0.3380240201950073, -0.0009888960048556328, 0.12353446334600449, 0.3689832389354706, 0.12383433431386948, 0.1284264773130417, 0.44277384877204895, -0.19224350154399872, -0.1292199343442917, -0.24838732182979584, -0.5769919753074646, 0.5295778512954712, -0.1392451524734497, -0.24610278010368347, -0.09592980146408081, 0.19705915451049805, -0.2574828565120697, 0.12349607795476913, -0.40673989057540894, 0.10039883106946945, 0.03655707836151123, -0.12210237234830856, -0.447055846452713, 0.1950022131204605, 0.160843163728714, 0.009343057870864868, -0.09705794602632523, 0.3269299864768982, 0.11136649549007416, -0.10552065819501877, -0.19701920449733734, -0.17247648537158966 ]
https://github.com/huggingface/datasets/pull/2171
Fixed the link to wikiauto training data.
@lhoestq I need to update other stuff on GEM later today too, so will merge this one and remove columns in the next PR!
24
text: Fixed the link to wikiauto training data. @lhoestq I need to update other stuff on GEM later today too, so will merge this one and remove columns in the next PR!
[ 0.07149335741996765, 0.136653333902359, -0.15547619760036469, 0.1460716724395752, 0.26436150074005127, -0.013745367527008057, 0.3884137272834778, 0.5583171248435974, -0.06660206615924835, 0.11348602920770645, 0.10905296355485916, 0.265882283449173, 0.19747726619243622, 0.11068176478147507, 0.10476300865411758, -0.14308162033557892, 0.07253991067409515, 0.07671019434928894, -0.18512827157974243, -0.02236437425017357, -0.0603044368326664, 0.14825960993766785, 0.05744333565235138, 0.22845353186130524, -0.45730388164520264, 0.089985191822052, 0.043477863073349, 0.351052463054657, -0.0013702493160963058, -0.10379854589700699, 0.02033977396786213, -0.03975212201476097, -0.3014504909515381, 0.08277563750743866, -0.00009610822598915547, 0.01857978105545044, 0.2517412304878235, 0.023277433589100838, -0.40230706334114075, -0.01969929039478302, -0.2191961705684662, -0.1348201334476471, -0.015676014125347137, -0.13693150877952576, -0.08332441747188568, 0.08111150562763214, -0.03194768726825714, 0.3548504412174225, -0.015767276287078857, 0.19229213893413544, 0.37060004472732544, -0.06677873432636261, 0.016075875610113144, -0.05457714945077896, 0.09221946448087692, -0.1399310827255249, 0.020859187468886375, -0.2192646861076355, -0.06484317779541016, 0.02985335700213909, -0.016451969742774963, 0.7660253047943115, 0.0024935267865657806, -0.23146839439868927, 0.03822363168001175, -0.01187759730964899, 0.27123361825942993, -0.0037643834948539734, 0.24174094200134277, 0.09809370338916779, 0.4150601327419281, 0.02805725298821926, -0.008086679503321648, 0.16307798027992249, 0.04467450827360153, -0.1829630732536316, 0.4159521162509918, 0.24116015434265137, 0.05849006399512291, 0.224998340010643, -0.008864959701895714, -0.3093029856681824, -0.033587727695703506, -0.11848039925098419, -0.10794972628355026, 0.379970520734787, 0.039704252034425735, -0.08819491416215897, 0.03642221540212631, -0.14813858270645142, -0.14033176004886627, 0.09588856995105743, -0.3061409294605255, -0.06112605705857277, 0.0531437061727047, -0.447885125875473, -0.010137863457202911, 0.16405749320983887, -0.08585123717784882, -0.004698798060417175, 0.10400307178497314, 0.17953327298164368, -0.10064887255430222, -0.048849135637283325, 0.12005245685577393, -0.1092173159122467, 0.11477991193532944, 0.05714517831802368, 0.15503118932247162, 0.35788264870643616, -0.0002481713891029358, 0.02065061405301094, 0.11934010684490204, -0.12771163880825043, -0.48606422543525696, 0.036031171679496765, -0.07150861620903015, -0.02165893092751503, -0.14147958159446716, 0.28080281615257263, 0.3605394661426544, -0.026875711977481842, -0.19821296632289886, 0.3082916736602783, -0.35762453079223633, 0.1454945057630539, -0.10368900746107101, 0.02121473103761673, -0.06339069455862045, -0.11122080683708191, -0.2208249419927597, 0.2935381531715393, -0.09018296003341675, -0.07854744046926498, -0.0451260544359684, 0.05846185237169266, 0.3293258249759674, 0.12033379822969437, -0.16616101562976837, -0.16490015387535095, -0.21487829089164734, 0.046716392040252686, 0.11191847920417786, 0.4700251519680023, -0.05285938084125519, 0.018671048805117607, 0.20738545060157776, -0.512204647064209, -0.022287093102931976, 0.30444708466529846, -0.5417658090591431, -0.380965918302536, -0.26658347249031067, 0.351674348115921, -0.008314814418554306, -0.15542490780353546, 0.2265356481075287, 0.2686654031276703, 0.013005770742893219, -0.2791958749294281, -0.02803611010313034, 0.3212153911590576, 0.06180371716618538, -0.1981639713048935, 0.1293479949235916, -0.03180527687072754, -0.3475532531738281, 0.08915747702121735, 0.06276646256446838, 0.01731189154088497, 0.27174368500709534, 0.1471434384584427, -0.23241938650608063, -0.13644376397132874, 0.13844959437847137, 0.2633413076400757, 0.36376598477363586, -0.02878895401954651, -0.1188255101442337, -0.20681458711624146, -0.14641302824020386, -0.0733783170580864, -0.20172667503356934, 0.002943179104477167, 0.08182382583618164, -0.10503675043582916, -0.03396609425544739, -0.04821838438510895, 0.030684377998113632, 0.06822064518928528, -0.5742762088775635, -0.2434931993484497, -0.007687758654356003, 0.05425198748707771, 0.04961686208844185, -0.05410786718130112, -0.12588906288146973, -0.16890846192836761, 0.5280308127403259, -0.013007048517465591, 0.021961500868201256, 0.012209398671984673, 0.1852882355451584, 0.13298994302749634, 0.09989350289106369, 0.0629575178027153, 0.029545016586780548, 0.006680231541395187, 0.298066109418869, 0.23838619887828827, 0.06193526089191437, -0.0823172777891159, -0.20649713277816772, -0.03799990937113762, -0.07313388586044312, -0.36885395646095276, 0.2997737526893616, -0.13198025524616241, -0.3977598547935486, -0.11083459854125977, -0.3241307735443115, -0.1512400358915329, -0.32427331805229187, 0.010293451137840748, 0.2285892367362976, 0.20865316689014435, -0.30787160992622375, 0.13254165649414062, -0.14986664056777954, 0.15315201878547668, -0.03966023772954941, -0.010378005914390087, 0.0387922003865242, 0.18351605534553528, 0.07770279794931412, 0.15584439039230347, 0.42283880710601807, 0.05341637134552002, 0.1371951699256897, 0.10503454506397247, -0.2626987397670746, -0.0424315445125103, -0.003838329343125224, 0.06859540194272995, -0.2807428240776062, 0.16041380167007446, 0.35841065645217896, 0.15108686685562134, -0.13750898838043213, 0.22126543521881104, 0.2844768762588501, -0.15745382010936737, 0.003900572657585144, -0.08477302640676498, -0.09659571945667267, 0.12435680627822876, -0.8532201647758484, 0.001421382650732994, -0.3565974235534668, 0.30573251843452454, 0.36678189039230347, -0.004214756190776825, 0.06917754560709, 0.13406667113304138, -0.0913003459572792, -0.2195495069026947, 0.007658167742192745, 0.2820740342140198, -0.05571284890174866, 0.1689608246088028, 0.12124888598918915, 0.02102741040289402, 0.09815288335084915, -0.17650391161441803, 0.4559292197227478, 0.12680214643478394, 0.07308153808116913, 0.15339329838752747, 0.08154939860105515, -0.008787271566689014, -0.19063913822174072, 0.18760277330875397, -0.15009872615337372, 0.20270031690597534, -0.11617723107337952, -0.003855668008327484, -0.056376002728939056, 0.4774632155895233, 0.21355004608631134, -0.3063403069972992, -0.27321353554725647, -0.28831058740615845, 0.4894525408744812, -0.10782225430011749, -0.3733482360839844, 0.22047613561153412, 0.08762794733047485, 0.35018813610076904, -0.12128555774688721, 0.18337151408195496, -0.3349950909614563, -0.42357778549194336, -0.023572806268930435, 0.31577935814857483, -0.1282985806465149, -0.000656618271023035, 0.053359150886535645, -0.223937526345253, -0.11019387096166611, -0.029458606615662575, -0.4303362965583801, -0.03260982781648636, -0.03217467665672302, 0.0631941631436348, 0.123534195125103, 0.4810004234313965, -0.33587783575057983, -0.45234450697898865, 0.22624465823173523, -0.11456272751092911, 0.1005532294511795, -0.2829417884349823, 0.14547055959701538, 0.23880867660045624, -0.22417540848255157, -0.3431749939918518, 0.09428970515727997, -0.24786104261875153, -0.1255510449409485, 0.1983555108308792, 0.32529503107070923, 0.08411026000976562, 0.2984667420387268, -0.10799801349639893, -0.10350131243467331, 0.007455752231180668, -0.3374003469944, -0.3529774844646454, 0.27024832367897034, -0.20306725800037384, -0.338922381401062, 0.1689622700214386, 0.029970671981573105, 0.2383117526769638, -0.03951012343168259, -0.43272483348846436, -0.08277253061532974, 0.2877129316329956, -0.18774335086345673, -0.03397452086210251, -0.1698601096868515, 0.2338203340768814, 0.21548010408878326, -0.43849632143974304, -0.061012547463178635, -0.08375335484743118, -0.1240389421582222, 0.16170907020568848, 0.20055755972862244, -0.23890069127082825, 0.15259194374084473, 0.049140822142362595, 0.7448448538780212, -0.06752784550189972, 0.0386049710214138, -0.12527503073215485, -0.04334208369255066, 0.2845590114593506, 0.00730828195810318, -0.01676849089562893, -0.062187325209379196, -0.13931787014007568, -0.06442141532897949, 0.28156620264053345, 0.14784777164459229, -0.20730841159820557, -0.1743013709783554, 0.19553819298744202, -0.2633255124092102, -0.4394512474536896, 0.14105547964572906, 0.21136628091335297, 0.08072595298290253, 0.30911797285079956, 0.1269932985305786, -0.20100967586040497, -0.1401364505290985, 0.3413487672805786, 0.5909163355827332, -0.10060562938451767, -0.18977513909339905, -0.04264247044920921, -0.15392950177192688, -0.2012007236480713, -0.1285608410835266, 0.043482705950737, -0.26107802987098694, -0.006479173898696899, -0.4117778241634369, 0.07005906850099564, -0.13571327924728394, 0.1927996277809143, -0.3567698001861572, -0.13438944518566132, -0.03818124532699585, 0.0712163969874382, -0.05211525410413742, -0.10439108312129974, 0.02427567169070244, 0.11910171061754227, 0.3467155992984772, 0.4282008707523346, -0.009438775479793549, -0.2353544533252716, 0.42643070220947266, -0.22138208150863647, -0.23878824710845947, 0.07491334527730942, -0.20560216903686523, -0.29627689719200134, -0.225114643573761, -0.0347098782658577, 0.016943225637078285, 0.18221987783908844, -0.18582816421985626, -0.14755092561244965, -0.030291946604847908, 0.12855809926986694, 0.0994735062122345, -0.019553447142243385, 0.2831744849681854, 0.2805311381816864, -0.2604285478591919, -0.008620478212833405, 0.26039543747901917, -0.2554035484790802, 0.20871572196483612, 0.19276072084903717, 0.5497968196868896, -0.2280164659023285, -0.2627713084220886, 0.2176864594221115, 0.3266124129295349, -0.01536024920642376, -0.03962744027376175, -0.17188167572021484, 0.10312168300151825, -0.03881259635090828, 0.15598417818546295, 0.10320132225751877, 0.03334860876202583, -0.12179499119520187, -0.21838286519050598, 0.2490825355052948, -0.23754873871803284, -0.23003433644771576, 0.23941802978515625, 0.1788329780101776, 0.11233851313591003, -0.04419351741671562, 0.16109073162078857, 1.033151388168335, 0.2106126993894577, 0.20225097239017487, 0.27884480357170105, -0.031971998512744904, 0.2510335445404053, -0.41702985763549805, 0.4244351387023926, -0.37357398867607117, -0.09130415320396423, -0.06459955126047134, 0.09999167919158936, -0.1724746823310852, -0.03828077018260956, -0.18825240433216095, -0.09588657319545746, -0.14756962656974792, 0.2128497213125229, 0.007368359249085188, -0.26015764474868774, 0.1230163499712944, 0.03657351806759834, -0.18597321212291718, 0.21464604139328003, 0.03190385177731514, -0.06966149806976318, -0.03048807755112648, -0.21680492162704468, -0.010387279093265533, -0.0830511674284935, -0.11305402219295502, 0.13367760181427002, 0.08014561980962753, 0.1681394726037979, -0.0808328241109848, -0.2298601269721985, -0.17263327538967133, 0.25641873478889465, -0.18739421665668488, 0.17491523921489716, -0.09300071746110916, 0.36214491724967957, -0.38383808732032776, 0.006327339448034763, -0.12902845442295074, 0.26969483494758606, -0.04376884549856186, -0.35047703981399536, -0.34509822726249695, 0.2019253671169281, -0.26937195658683777, -0.05824364721775055, -0.16566483676433563, 0.10056452453136444, 0.3128480911254883, -0.06540806591510773, 0.06267111003398895, 0.2640107274055481, -0.25768205523490906, -0.40735945105552673, 0.2950914800167084, -0.2886486053466797, 0.10628928244113922, 0.08024722337722778, 0.4237375557422638, -0.2492358386516571, -0.02106669917702675, 0.2617737352848053, 0.13535025715827942, 0.017550453543663025, 0.360733300447464, -0.06098144128918648, -0.31820833683013916, -0.46169835329055786, -0.25002431869506836, 0.03816026449203491, -0.2899662256240845, -0.04120957478880882, -0.13887394964694977, -0.15120261907577515, -0.10440810024738312, 0.15976299345493317, 0.21923714876174927, 0.2713020443916321, -0.2710894048213959, -0.1333858072757721, -0.3456398546695709, 0.2157769501209259, -0.032930631190538406, 0.16815249621868134, -0.26854050159454346, -0.013765579089522362, 0.09838966280221939, 0.08340152353048325, -0.5142614245414734, 0.17148630321025848, -0.08786527812480927, -0.03189963102340698, 0.03642972558736801, -0.05244876444339752, 0.3176662027835846, 0.0586458258330822, 0.24562221765518188, -0.34004396200180054, -0.23047572374343872, -0.3201899826526642, -0.16478168964385986, 0.0786110907793045, 0.07761318236589432, 0.01932143047451973, -0.03751114383339882, 0.11254602670669556, -0.05087025836110115, 0.07788687944412231, -0.017639346420764923, -0.324253112077713, 0.09017689526081085, 0.22650758922100067, 0.07081715762615204, 0.27160462737083435, 0.04787541925907135, -0.23618215322494507, 0.2829045057296753, 0.5552129745483398, -0.04924439638853073, -0.26621735095977783, -0.14728835225105286, -0.26667332649230957, 0.357939213514328, 0.30341267585754395, -0.12393306195735931, 0.13540658354759216, 0.14351502060890198, -0.057894185185432434, -0.04377702623605728, 0.06479199230670929, 0.21194349229335785, 0.29672008752822876, -0.12928292155265808, -0.13734106719493866, 0.05023317411541939, 0.4216945469379425, -0.30555981397628784, -0.1642802208662033, -0.04421504959464073, 0.10024095326662064, 0.06145182624459267, -0.024535559117794037, -0.0012663565576076508, -0.3419143557548523, 0.1374797523021698, 0.4084925949573517, 0.09961184114217758, -0.5827125310897827, 0.003316800110042095, 0.03431683033704758, -0.2797839045524597, 0.016340166330337524, -0.01471998356282711, -0.03956493362784386, -0.067528136074543, 0.14734849333763123, 0.06229535490274429, 0.2800996005535126, 0.3529967665672302, -0.12980680167675018, -0.06452799588441849, 0.12155243754386902, 0.23196224868297577, 0.302193820476532, -0.07956643402576447, -0.1007389947772026, 0.41751131415367126, -0.015271313488483429, 0.3484762907028198, -0.06095980480313301, -0.202506884932518, 0.10760672390460968, -0.28093788027763367, -0.13125526905059814, 0.04009614884853363, -0.2829030454158783, -0.009060084819793701, 0.01395774632692337, 0.1391964852809906, 0.3376343250274658, 0.5336739420890808, -0.03686637431383133, 0.036633625626564026, -0.15652993321418762, 0.19627904891967773, 0.1697942614555359, 0.3516674041748047, -0.08468859642744064, -0.157657191157341, 0.230604350566864, -0.019444741308689117, 0.14866799116134644, -0.1182771548628807, 0.16990117728710175, 0.02380209043622017, 0.06649109721183777, -0.06630092859268188, -0.19024518132209778, -0.0989740863442421, -0.004758336581289768, 0.07435254752635956, 0.3794926106929779, -0.22373147308826447, 0.21147574484348297, 0.28362545371055603, -0.3420325219631195, 0.2564791738986969, 0.07033377885818481, 0.23574472963809967, 0.06680268049240112, 0.16231229901313782, 0.3610045909881592, -0.2820962369441986, -0.06671083718538284, -0.13615202903747559, -0.11629248410463333, -0.056350693106651306, 0.27898871898651123, 0.11836210638284683, 0.0842779129743576, -0.2073618322610855, 0.18618282675743103, 0.2603529989719391, 0.4553593695163727, -0.07413892447948456, -0.44576457142829895, -0.0975726842880249, -0.27873533964157104, -0.18174268305301666, 0.18604311347007751, 0.05575890094041824, 0.12978395819664001, 0.16417919099330902, 0.11196795105934143, 0.024375274777412415, 0.15749870240688324, 0.15440434217453003, -0.2237142026424408, -0.021334391087293625, -0.2224636971950531, -0.3819235563278198, 0.23865768313407898, 0.02389908954501152, 0.16102778911590576, 0.2033955156803131, 0.04367028921842575, 0.1499578058719635, -0.09572207182645798, 0.29380759596824646, -0.023110661655664444, -0.07142458111047745, 0.13450685143470764, 0.07153204083442688, 0.11671903729438782, -0.1841152012348175, 0.06886811554431915, -0.2714831829071045, -0.2447575479745865, -0.25234341621398926, -0.24881939589977264, -0.1468421369791031, 0.21619045734405518, 0.1862342357635498, 0.08976907283067703, 0.24958324432373047, 0.07444846630096436, -0.04185422137379646, 0.019285697489976883, 0.09711378812789917, 0.3828216791152954, -0.004761451855301857, 0.022710995748639107, 0.46513134241104126, 0.20514380931854248, 0.01914658024907112, 0.2205866277217865, -0.08845861256122589, -0.08136643469333649, -0.2821991443634033, -0.5870016813278198, 0.6409583687782288, 0.0016388650983572006, -0.38743916153907776, -0.16662302613258362, 0.3029399514198303, 0.0413314625620842, 0.21393686532974243, -0.4833776354789734, -0.16714133322238922, 0.12364400178194046, 0.042882733047008514, -0.3751278221607208, 0.14948545396327972, 0.0068159825168550014, -0.015014667063951492, 0.01671348139643669, 0.1692393273115158, 0.08995440602302551, -0.2515466511249542, -0.3527342975139618, -0.3371502161026001 ]
https://github.com/huggingface/datasets/pull/2169
Updated WER metric implementation to avoid memory issues
Hi ! Thanks for suggesting this fix Unfortunately it looks like it's already been fixed by #2111 Feel free to share your thoughts about this PR ! I'm closing this one if you don't mind.
This is in order to fix this issue: https://github.com/huggingface/datasets/issues/2078
35
text: Updated WER metric implementation to avoid memory issues This is in order to fix this issue: https://github.com/huggingface/datasets/issues/2078 Hi ! Thanks for suggesting this fix Unfortunately it looks like it's already been fixed by #2111 Feel free to share your thoughts about this PR ! I'm closing this one if you don't mind.
[ -0.1746445596218109, -0.3288730978965759, -0.10542799532413483, 0.1381160318851471, 0.3729354739189148, -0.14499568939208984, 0.15066023170948029, 0.1994902789592743, 0.1390352100133896, 0.43947845697402954, -0.15564990043640137, -0.10737428069114685, 0.09066890180110931, 0.15608318150043488, -0.23414060473442078, -0.20858794450759888, -0.11933823674917221, 0.012074224650859833, -0.2559710443019867, -0.007122024893760681, -0.24240748584270477, 0.18519271910190582, -0.06507864594459534, -0.1073821485042572, -0.3207799196243286, 0.04300413280725479, -0.10992102324962616, 0.2569422125816345, -0.17435692250728607, -0.24979251623153687, 0.17374488711357117, 0.1535203754901886, -0.24981820583343506, 0.18340063095092773, -0.0001003899669740349, 0.03744494169950485, 0.3666030168533325, 0.04358639568090439, -0.3002222776412964, 0.1232161894440651, -0.049573369324207306, -0.21200792491436005, -0.026342013850808144, -0.01654002070426941, -0.2362273633480072, 0.10395022481679916, 0.09528274834156036, -0.1020108163356781, 0.06936834752559662, -0.049453381448984146, 0.3937281668186188, 0.3395002782344818, -0.005149666219949722, -0.2313428372144699, 0.07832557708024979, 0.017972003668546677, -0.029290592297911644, 0.051766909658908844, 0.20357707142829895, 0.05371628701686859, -0.5899048447608948, 0.5036190748214722, 0.2761901915073395, 0.26274052262306213, 0.13485345244407654, 0.05509449541568756, -0.13652431964874268, 0.13130855560302734, 0.026531614363193512, -0.004501271992921829, 0.17570161819458008, -0.09836114197969437, -0.08774001896381378, -0.15396519005298615, -0.16929888725280762, -0.43418145179748535, 0.2923417091369629, 0.04397093504667282, -0.2829510271549225, 0.04154428839683533, -0.3369230628013611, -0.21462608873844147, -0.31676772236824036, 0.013833541423082352, -0.20150622725486755, 0.11428137123584747, -0.18638195097446442, -0.05850384384393692, 0.2625976800918579, -0.11809588968753815, -0.24167820811271667, 0.14444206655025482, -0.09823168814182281, -0.37045782804489136, -0.12391476333141327, -0.11579311639070511, 0.1359005570411682, 0.04204307124018669, 0.298167884349823, 0.056667160242795944, 0.08894995599985123, 0.24108728766441345, 0.22814062237739563, 0.09170490503311157, 0.1351611465215683, 0.41540881991386414, -0.06006837636232376, -0.12405478954315186, 0.30293989181518555, 0.2156410813331604, -0.13600268959999084, -0.19746547937393188, 0.2799608111381531, -0.2269069105386734, -0.0451769195497036, -0.15039363503456116, -0.0591580793261528, -0.15805508196353912, -0.2299053817987442, 0.1675274521112442, 0.16857632994651794, 0.1093469187617302, 0.08222144842147827, 0.3280930519104004, -0.02374778315424919, 0.1362963765859604, 0.12798184156417847, -0.04684112221002579, -0.27951565384864807, -0.09631704539060593, -0.3964479863643646, -0.022236503660678864, -0.3647318482398987, -0.0554426908493042, 0.08102801442146301, -0.0434148870408535, 0.34864547848701477, -0.008353875949978828, 0.2250673770904541, -0.044580090790987015, 0.025716548785567284, -0.13177478313446045, 0.07180485874414444, 0.34450340270996094, 0.022522881627082825, -0.0063806986436247826, -0.10961098968982697, -0.025798022747039795, 0.13257208466529846, -0.009293988347053528, -0.019788742065429688, -0.1059582531452179, -0.04662029445171356, 0.3194921016693115, -0.0511065274477005, -0.09023194015026093, -0.09406734257936478, 0.14235199987888336, 0.05845654010772705, 0.08321346342563629, -0.20232492685317993, 0.1636045277118683, -0.48744019865989685, -0.057776667177677155, 0.09573487192392349, 0.23276010155677795, -0.07170833647251129, -0.30546391010284424, 0.30397409200668335, -0.27184203267097473, 0.27647665143013, 0.3730839192867279, 0.07861871272325516, -0.2653614580631256, -0.21804741024971008, 0.2443082481622696, 0.070810467004776, -0.3552107512950897, -0.3684444725513458, 0.19138669967651367, -0.25329235196113586, -0.08126924186944962, 0.041846223175525665, -0.02692589722573757, 0.12124627828598022, 0.26082250475883484, 0.19537675380706787, 0.15683427453041077, -0.10296079516410828, 0.16050340235233307, -0.38125577569007874, -0.12341522425413132, 0.00782647356390953, 0.10063865780830383, 0.26973670721054077, -0.15187257528305054, 0.0954182967543602, 0.07487297058105469, 0.24217760562896729, -0.16725841164588928, 0.2420693337917328, 0.3249436020851135, 0.3094058632850647, -0.10244940221309662, 0.06027987599372864, -0.10762124508619308, -0.18547019362449646, 0.07454682141542435, -0.00934995524585247, 0.2054767608642578, 0.294868528842926, 0.05388139933347702, -0.24833077192306519, -0.06130165606737137, -0.03489431366324425, -0.1228485107421875, 0.3223471939563751, 0.10286302864551544, -0.1423887461423874, -0.11263792216777802, -0.03640582412481308, 0.2362866997718811, -0.2777304947376251, 0.15213455259799957, -0.10257390141487122, 0.011892134323716164, -0.20766566693782806, -0.09734652191400528, 0.2182580828666687, 0.19022679328918457, 0.12774020433425903, -0.0033567275386303663, -0.049677811563014984, 0.200177401304245, 0.01819257065653801, 0.11424371600151062, 0.18558329343795776, 0.1904580146074295, 0.12007596343755722, -0.0766221433877945, -0.024965425953269005, -0.07363741099834442, -0.03949586674571037, -0.05343261733651161, -0.23044505715370178, 0.19824913144111633, 0.10839535295963287, 0.09935961663722992, 0.10164915025234222, 0.044697105884552, 0.23561057448387146, -0.16091489791870117, -0.02344585210084915, -0.3676031231880188, 0.2584235966205597, -0.18467210233211517, 0.03315107151865959, 0.062059514224529266, -0.2097274363040924, 0.08032096922397614, 0.44832637906074524, 0.12847666442394257, 0.03223998844623566, 0.387069433927536, -0.09133798629045486, -0.3434469401836395, 0.04121095687150955, -0.05210627242922783, 0.2794671952724457, 0.3397888243198395, 0.19477304816246033, 0.10211959481239319, -0.004797793924808502, -0.23265884816646576, 0.14105848968029022, 0.06117290258407593, -0.10928528755903244, 0.08490701019763947, 0.3366500735282898, -0.43504101037979126, -0.5686948895454407, 0.1069914698600769, 0.10867109149694443, 0.21856650710105896, -0.22449320554733276, -0.23088186979293823, -0.18824248015880585, -0.18705546855926514, 0.01535415556281805, 0.0019865157082676888, -0.11528569459915161, -0.3967578709125519, 0.1255882978439331, 0.32813674211502075, -0.2633267939090729, 0.2802800238132477, 0.22258706390857697, 0.4144480228424072, 0.07338503003120422, 0.40588459372520447, -0.09248009324073792, -0.018467791378498077, -0.14192262291908264, 0.22092288732528687, -0.0039595263078808784, -0.1286223977804184, 0.3573373556137085, -0.26812615990638733, 0.09777417033910751, -0.20835182070732117, -0.46470069885253906, 0.2201780080795288, 0.0917036309838295, 0.24973413348197937, 0.19701966643333435, 0.2703232765197754, -0.17273062467575073, 0.07369819283485413, 0.2011718899011612, -0.26361608505249023, -0.4390411972999573, 0.058678820729255676, -0.12236768007278442, 0.1444208025932312, -0.3903076648712158, -0.21734142303466797, 0.0023333486169576645, -0.36491307616233826, 0.22773824632167816, -0.05421711504459381, 0.045489244163036346, 0.278876394033432, 0.1461409628391266, 0.011843600310385227, -0.16975635290145874, -0.00874943658709526, -0.44718801975250244, -0.46683722734451294, 0.0600120835006237, -0.3490210473537445, -0.4046197533607483, -0.20604991912841797, 0.09342750161886215, 0.26817554235458374, 0.039456807076931, -0.3871546983718872, -0.5873807668685913, -0.17485390603542328, 0.21698325872421265, 0.07666218280792236, 0.07611941546201706, 0.10595519840717316, -0.06376255303621292, -0.40148454904556274, -0.22978070378303528, -0.20453524589538574, 0.32065895199775696, -0.08789169788360596, -0.22057566046714783, -0.23320984840393066, 0.25463923811912537, 0.15849052369594574, 0.4371587038040161, 0.09394626319408417, 0.034034114331007004, 0.41156426072120667, -0.06207505613565445, 0.5097786784172058, -0.11348780244588852, -0.08309371769428253, 0.3313530385494232, 0.07092523574829102, 0.02676970884203911, 0.2745123505592346, 0.19505584239959717, -0.08088240772485733, 0.11591778695583344, -0.05778302252292633, 0.1544857919216156, -0.3322468101978302, 0.008747885003685951, 0.45947176218032837, 0.13472801446914673, 0.26061931252479553, 0.04971572011709213, -0.2618843615055084, -0.17106997966766357, 0.21220500767230988, -0.07908569276332855, -0.04495162516832352, -0.17017288506031036, -0.15587672591209412, 0.2066219449043274, -0.5497903227806091, 0.12807458639144897, 0.06224390119314194, 0.08139355480670929, -0.2309831827878952, -0.16896659135818481, 0.06544604897499084, -0.021008780226111412, 0.5260961055755615, 0.11667486280202866, -0.032111525535583496, -0.16668331623077393, -0.3064720630645752, -0.24960178136825562, 0.28870147466659546, -0.23553016781806946, 0.0191048551350832, 0.2747325599193573, 0.4622056782245636, -0.32404181361198425, -0.19343985617160797, 0.17189137637615204, 0.20361994206905365, -0.19247519969940186, -0.1614208221435547, -0.166097953915596, -0.2908358871936798, -0.21083427965641022, 0.1160903126001358, 0.044458091259002686, 0.0870460569858551, 0.03627938777208328, -0.09818324446678162, -0.1056869775056839, -0.3084043264389038, 0.13877230882644653, 0.07039716839790344, 0.25347602367401123, -0.09598822891712189, 0.1437283456325531, 0.21278485655784607, 0.010522760450839996, 0.10149142891168594, 0.40939950942993164, -0.12142309546470642, -0.15427792072296143, 0.17075598239898682, -0.020282814279198647, 0.07424198091030121, 0.33771878480911255, -0.0303342342376709, 0.1370692104101181, 0.04201868176460266, 0.40870290994644165, -0.34865322709083557, 0.2982622981071472, 0.08150636404752731, 0.18581895530223846, 0.058415770530700684, 0.04539074748754501, 0.2041746824979782, -0.0008914247155189514, -0.04603175073862076, 0.20388105511665344, 0.25240978598594666, -0.0726046934723854, 0.12872664630413055, 0.06370829790830612, 0.9126796126365662, -0.02324496954679489, 0.1078939363360405, 0.4429076910018921, -0.2406821995973587, 0.005222076550126076, -0.03133266046643257, 0.24535872042179108, -0.38417935371398926, -0.2451506406068802, 0.17566019296646118, 0.052070874720811844, -0.054219476878643036, -0.22563667595386505, 0.19453690946102142, 0.1748919039964676, 0.014280252158641815, -0.006800726056098938, -0.1137097179889679, 0.038664914667606354, -0.10388896614313126, -0.26626908779144287, -0.0710824653506279, 0.32997411489486694, 0.07277578115463257, -0.11741085350513458, -0.049785517156124115, 0.09492174535989761, 0.23216256499290466, -0.1362079381942749, -0.18239273130893707, -0.019378069788217545, -0.08499155938625336, 0.17960000038146973, 0.07772764563560486, -0.05265063792467117, -0.27175435423851013, 0.13514494895935059, 0.34281301498413086, 0.18468622863292694, -0.05059513449668884, 0.40340015292167664, -0.035340629518032074, 0.20948736369609833, -0.060036368668079376, 0.17961396276950836, 0.22434239089488983, -0.17219027876853943, -0.23863673210144043, -0.15589135885238647, 0.06938493251800537, -0.20701205730438232, -0.16647924482822418, -0.015253223478794098, -0.26769202947616577, -0.26467883586883545, 0.09935508668422699, -0.1826452612876892, 0.051413748413324356, -0.3267853260040283, 0.24063318967819214, 0.18770232796669006, -0.09418103098869324, 0.2443883717060089, 0.3383329510688782, -0.17039470374584198, -0.18705077469348907, 0.5326681733131409, 0.005309058353304863, -0.11562726646661758, 0.3394934833049774, 0.10332430899143219, -0.3354935646057129, -0.24067726731300354, -0.2643895149230957, 0.29230979084968567, -0.32237493991851807, 0.3331811726093292, 0.15873458981513977, -0.15139783918857574, -0.15114012360572815, 0.2962702512741089, 0.01475084200501442, 0.08763230592012405, 0.017101097851991653, -0.04274687170982361, -0.5078179240226746, -0.03423553705215454, -0.25828585028648376, 0.21791554987430573, -0.09844043850898743, -0.053873468190431595, -0.24933061003684998, 0.008824927732348442, -0.47138506174087524, 0.11688622832298279, -0.4352021813392639, 0.04885787144303322, 0.04719726741313934, -0.3235775828361511, 0.26254725456237793, -0.020313367247581482, 0.25829413533210754, 0.2584269642829895, -0.22110815346240997, -0.34246453642845154, -0.2595200538635254, 0.03135843575000763, -0.031769681721925735, -0.10120762884616852, 0.05495554208755493, 0.25893956422805786, -0.11637932062149048, -0.13094840943813324, 0.31345149874687195, 0.41824865341186523, -0.02468738704919815, -0.019549842923879623, 0.026646174490451813, -0.07696946710348129, 0.5024987459182739, -0.051174528896808624, 0.283147931098938, 0.24123886227607727, -0.04896516352891922, -0.11442573368549347, -0.20930072665214539, -0.05185151472687721, 0.15311332046985626, 0.1920393705368042, 0.3646935820579529, -0.09502989798784256, 0.03277759253978729, -0.15009574592113495, -0.22774364054203033, 0.3198561370372772, 0.5189505815505981, -0.09470321238040924, -0.1885216385126114, -0.19281478226184845, 0.0658157467842102, 0.43889954686164856, -0.20601250231266022, -0.08992801606655121, 0.07326304167509079, 0.06515151262283325, 0.27215272188186646, 0.11574869602918625, 0.07027222216129303, -0.05147388577461243, 0.12833061814308167, 0.14933645725250244, 0.1773161143064499, -0.27971893548965454, -0.19883087277412415, -0.22100594639778137, -0.2183457314968109, -0.24729736149311066, 0.3222910761833191, 0.14815615117549896, 0.2593390941619873, 0.42899972200393677, 0.09655539691448212, 0.37567171454429626, -0.20886436104774475, 0.3188724219799042, -0.1061425730586052, -0.40437227487564087, 0.018665818497538567, 0.24416068196296692, 0.08969070762395859, 0.0858307033777237, -0.06721320748329163, 0.2532617747783661, 0.11299964785575867, -0.2110656499862671, -0.15839530527591705, 0.12163293361663818, -0.4443926215171814, -0.2510530948638916, 0.04439334571361542, -0.25455787777900696, -0.04992471635341644, 0.18977749347686768, 0.045342471450567245, 0.06623567640781403, 0.3935399055480957, -0.09691634774208069, -0.09452660381793976, -0.1716766208410263, -0.05258087068796158, 0.0971670150756836, 0.24735817313194275, -0.12274222075939178, 0.16432973742485046, 0.33389443159103394, 0.05587055906653404, 0.1429143100976944, 0.34783056378364563, 0.34896937012672424, 0.1179150864481926, 0.10732243955135345, -0.06899405270814896, -0.043351758271455765, -0.130311980843544, -0.40465423464775085, 0.12932591140270233, 0.2393488883972168, 0.019029922783374786, 0.33073103427886963, 0.22328872978687286, -0.32625675201416016, 0.22751204669475555, 0.1147412434220314, 0.0665479525923729, -0.17946569621562958, 0.2130877673625946, -0.0994226485490799, -0.021014578640460968, -0.24095997214317322, -0.3086831271648407, -0.33532771468162537, -0.16099824011325836, 0.13059782981872559, -0.18831217288970947, 0.18056032061576843, -0.22598394751548767, 0.1616208255290985, -0.03725316748023033, 0.5542173981666565, 0.031942397356033325, -0.19429588317871094, -0.3314739465713501, -0.20131950080394745, -0.4202260375022888, 0.25781121850013733, -0.00981321930885315, 0.17917802929878235, -0.06287383288145065, 0.22542704641819, -0.18058055639266968, -0.06399114429950714, 0.004103988409042358, 0.1450725942850113, -0.006810454651713371, -0.22716683149337769, -0.489685595035553, 0.18426354229450226, 0.03154083713889122, -0.25199005007743835, 0.3911791443824768, -0.23028305172920227, 0.016459640115499496, -0.2292453497648239, 0.24002614617347717, -0.05084490776062012, 0.256386399269104, -0.24171197414398193, 0.23143555223941803, 0.07577263563871384, 0.25796768069267273, 0.19404304027557373, -0.23894822597503662, -0.38082155585289, -0.0834868848323822, -0.3385319113731384, -0.3278306722640991, -0.0947728082537651, 0.03329252451658249, 0.42654791474342346, -0.014839492738246918, -0.2701719105243683, -0.035421621054410934, 0.279873788356781, 0.037630945444107056, 0.19366449117660522, -0.0005776621401309967, 0.4290679693222046, -0.09250594675540924, -0.0021738423965871334, 0.047734569758176804, 0.35507193207740784, 0.19698350131511688, 0.1556747406721115, -0.16369947791099548, -0.6030787825584412, 0.5608088970184326, -0.1220623180270195, -0.328870564699173, 0.07323150336742401, 0.14450407028198242, 0.33330994844436646, -0.4892641603946686, -0.691037118434906, 0.12102100998163223, 0.093772292137146, 0.17193198204040527, -0.15352194011211395, 0.20032919943332672, -0.13940760493278503, 0.03687712922692299, 0.04516765847802162, 0.31035155057907104, 0.3204929828643799, -0.4267407953739166, 0.14535623788833618, 0.024777747690677643 ]
https://github.com/huggingface/datasets/pull/2168
Preserve split type when realoding dataset
Thanks for diving into this ! Before going further, I just want to make sure if using `eval` is the right solution Personally I'm not a big fan of `eval` since it has many security concerns. Also storing string representations of python objects in the json files is not ideal either IMO, so maybe it's possible to change this aspect instead. Maybe it would be better to convert the `_RelativeInstruction` to a string (or "specs") ? It looks like `ReadInstruction.from_spec` already exists, but not the other way around. The specs are the string representation of instructions. For example: `train+validation[:50%]`. Let me know what you think ! And thanks again, this issue has been here for a while now ^^
Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ```
119
text: Preserve split type when realoding dataset Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ``` Thanks for diving into this ! Before going further, I just want to make sure if using `eval` is the right solution Personally I'm not a big fan of `eval` since it has many security concerns. Also storing string representations of python objects in the json files is not ideal either IMO, so maybe it's possible to change this aspect instead. Maybe it would be better to convert the `_RelativeInstruction` to a string (or "specs") ? It looks like `ReadInstruction.from_spec` already exists, but not the other way around. The specs are the string representation of instructions. For example: `train+validation[:50%]`. Let me know what you think ! And thanks again, this issue has been here for a while now ^^
[ -0.12167635560035706, -0.08596546202898026, -0.025233076885342598, 0.15333330631256104, 0.36211806535720825, -0.22087693214416504, 0.3443007171154022, 0.4192888140678406, -0.10569772124290466, 0.033381059765815735, -0.26377221941947937, 0.4139656722545624, -0.1281289905309677, 0.07008212804794312, 0.019343720749020576, -0.2067875862121582, -0.06792701035737991, 0.12654747068881989, 0.16704605519771576, -0.16982141137123108, -0.2502608001232147, 0.014495809562504292, -0.008946426212787628, 0.05504252761602402, 0.005393647588789463, -0.23378673195838928, 0.15157096087932587, 0.05109208822250366, -0.1821940690279007, -0.3754061758518219, -0.049904715269804, -0.2539806663990021, 0.12347091734409332, 0.15335014462471008, -0.00010362366447225213, 0.3318904638290405, 0.3013322949409485, -0.10562325268983841, -0.011055123060941696, -0.040468692779541016, -0.36786746978759766, -0.3359869122505188, 0.44012442231178284, -0.3372182548046112, 0.0070485398173332214, -0.2689424157142639, -0.24640019237995148, -0.5532270073890686, 0.8502871990203857, 0.39726483821868896, 0.2589957118034363, 0.008394710719585419, 0.11415670812129974, 0.22420531511306763, 0.19181779026985168, 0.2935945391654968, -0.1271423101425171, 0.16812781989574432, -0.07188379764556885, 0.39656177163124084, -0.025003232061862946, 0.17980141937732697, -0.04235944151878357, -0.2685924172401428, 0.28742823004722595, 0.06888925284147263, -0.18715757131576538, 0.020114950835704803, -0.057339899241924286, 0.21743261814117432, 0.33806082606315613, -0.2450166642665863, -0.37319880723953247, -0.23720118403434753, -0.0903685986995697, -0.4521952271461487, 0.1367706060409546, 0.2808447480201721, 0.044356316328048706, 0.3238804042339325, 0.036567866802215576, -0.22902299463748932, -0.3388330936431885, 0.04343476891517639, -0.028285082429647446, 0.38094693422317505, -0.009660660289227962, 0.06749679893255234, -0.0713636577129364, -0.16103573143482208, 0.2293274998664856, 0.17100383341312408, -0.09369930624961853, -0.06829522550106049, 0.006810639053583145, -0.06716525554656982, -0.20511269569396973, -0.3104758858680725, 0.0014074519276618958, 0.12799838185310364, 0.22602759301662445, 0.3122591972351074, 0.19400142133235931, 0.1370011568069458, 0.33240026235580444, 0.34178614616394043, 0.27932220697402954, 0.4793713688850403, 0.21629869937896729, 0.02992003597319126, -0.15294183790683746, 0.06862695515155792, 0.03281867504119873, -0.08690521866083145, -0.021485790610313416, 0.24978107213974, 0.09691331535577774, -0.21100907027721405, -0.08097586035728455, 0.11962482333183289, -0.4296628534793854, -0.09718651324510574, 0.0945565477013588, 0.3515692949295044, 0.06452421844005585, 0.23549026250839233, 0.24796749651432037, 0.07156017422676086, -0.2355700433254242, -0.30292052030563354, -0.12765362858772278, 0.18056103587150574, -0.2043655514717102, -0.2044905722141266, -0.13397811353206635, 0.15949392318725586, 0.20395129919052124, -0.08237224817276001, 0.05158188194036484, -0.1548742651939392, -0.021067410707473755, 0.021907828748226166, 0.23722094297409058, 0.2382746934890747, -0.07822944223880768, -0.18864062428474426, 0.03679276257753372, -0.26317423582077026, -0.25763043761253357, 0.11223112046718597, -0.039359934628009796, -0.3239976167678833, 0.05515021085739136, 0.2737989127635956, -0.34149932861328125, 0.047864880412817, 0.20407196879386902, 0.13935120403766632, 0.19337338209152222, 0.11386536061763763, 0.14454475045204163, -0.14333787560462952, -0.08813600987195969, -0.3514344096183777, 0.09076214581727982, 0.09222334623336792, -0.26193398237228394, -0.10801244527101517, -0.20788799226284027, -0.3182005286216736, 0.12445537745952606, 0.2216385006904602, -0.18031719326972961, 0.09007255733013153, 0.06389394402503967, 0.35190409421920776, 0.6236497759819031, -0.17871525883674622, -0.14938345551490784, 0.2842293679714203, -0.06798522919416428, -0.013940906152129173, 0.06680741161108017, -0.1149769201874733, 0.24227987229824066, 0.10015217214822769, 0.00008539855480194092, 0.47909051179885864, 0.015439334325492382, -0.0535699799656868, -0.3598487675189972, -0.18037483096122742, -0.0003898739814758301, 0.03227608650922775, -0.009176958352327347, -0.17963969707489014, 0.1490662693977356, -0.010613453574478626, 0.38536199927330017, -0.12426872551441193, 0.05320775508880615, 0.32980066537857056, 0.3361889123916626, 0.04952958598732948, 0.14504681527614594, -0.3035094439983368, -0.37839820981025696, -0.07895291596651077, -0.2502327263355255, -0.116233229637146, -0.23243393003940582, -0.2660333216190338, -0.11676164716482162, 0.3069944381713867, -0.24207551777362823, -0.09641027450561523, 0.1938796192407608, -0.12160205841064453, -0.13811036944389343, 0.05537690594792366, -0.3100695013999939, 0.14608079195022583, -0.018191387876868248, 0.18267658352851868, -0.23805855214595795, -0.018586372956633568, -0.08770779520273209, -0.17193539440631866, -0.12647557258605957, 0.30514129996299744, 0.03626846894621849, -0.08969678729772568, -0.18380224704742432, 0.4725396931171417, 0.3047528564929962, 0.05503005534410477, -0.3289487063884735, -0.07885490357875824, 0.1879151165485382, -0.3314867913722992, 0.054192304611206055, 0.19362464547157288, 0.04123657941818237, 0.13916364312171936, -0.24390184879302979, 0.5481153726577759, -0.2014681100845337, 0.2583787739276886, 0.022542834281921387, 0.06976210325956345, 0.2032914161682129, -0.017619531601667404, -0.16887281835079193, -0.5064936876296997, -0.11664602160453796, 0.3203938603401184, 0.07903310656547546, 0.012876559048891068, -0.006519801914691925, 0.1916814148426056, 0.5969840288162231, -0.04423502832651138, 0.1806715726852417, 0.10119184851646423, 0.08161131292581558, -0.066429503262043, 0.12617160379886627, 0.4296760857105255, 0.1982566863298416, 0.22756893932819366, 0.08516891300678253, 0.30017197132110596, 0.0657678097486496, -0.130853533744812, 0.5615646839141846, 0.2797480821609497, 0.11233512312173843, 0.1419367492198944, 0.0352899394929409, -0.23525868356227875, -0.20472955703735352, -0.016363251954317093, -0.07062561810016632, 0.049686089158058167, -0.4092114269733429, 0.18916645646095276, -0.4462805688381195, 0.27533912658691406, -0.45326364040374756, -0.20812183618545532, -0.304278701543808, -0.2999223470687866, 0.15629996359348297, -0.19714076817035675, -0.5265643000602722, 0.0937047153711319, -0.022384030744433403, 0.069831982254982, -0.12749798595905304, -0.3355830907821655, 0.1046796441078186, -0.3998470902442932, -0.34907931089401245, 0.06812718510627747, 0.3955945074558258, 0.1704816371202469, 0.3105735778808594, -0.05646827816963196, -0.01938050612807274, 0.11630477756261826, -0.37489134073257446, 0.045976486057043076, -0.00922006368637085, 0.13206756114959717, 0.41002899408340454, -0.12685443460941315, 0.09940160810947418, -0.368339478969574, 0.13024687767028809, -0.2630428671836853, -0.27277567982673645, 0.08654576539993286, 0.16189105808734894, 0.15845267474651337, -0.3788694441318512, -0.741197943687439, -0.42567235231399536, -0.5649008750915527, 0.5962351560592651, 0.08555062115192413, 0.16616497933864594, 0.033581461757421494, 0.09349332749843597, 0.06117651239037514, 0.11431911587715149, 0.21188285946846008, -0.14689411222934723, 0.038902830332517624, 0.2454281449317932, -0.21777167916297913, -0.07532019913196564, 0.09063681960105896, -0.2521337866783142, 0.03471434861421585, 0.20439696311950684, -0.10221273452043533, -0.13634736835956573, -0.06513293087482452, 0.20865103602409363, -0.163483664393425, 0.14622004330158234, 0.2672157883644104, 0.3566434383392334, -0.07899153232574463, -0.26020872592926025, -0.02148962765932083, 0.38748160004615784, -0.3454326093196869, -0.05726056545972824, -0.0962560623884201, 0.30854353308677673, 0.20767530798912048, 0.5539011359214783, 0.03988323360681534, -0.14613613486289978, -0.0874147117137909, 0.1068759635090828, 0.0715663880109787, -0.05533691495656967, -0.08315927535295486, -0.1192430779337883, -0.14707759022712708, -0.2537442445755005, 0.15445610880851746, 0.008871681988239288, -0.26195383071899414, -0.11547993868589401, -0.18781301379203796, -0.3459891378879547, -0.566292941570282, 0.3021944761276245, 0.37387964129447937, 0.1930125206708908, -0.022387903183698654, 0.1448403000831604, -0.12893147766590118, 0.1598658561706543, 0.16906283795833588, 0.014200948178768158, -0.2600751519203186, -0.05423761531710625, -0.45702487230300903, -0.3847370743751526, 0.13101767003536224, 0.42089444398880005, 0.21395574510097504, 0.3302974998950958, 0.14766977727413177, -0.44656988978385925, 0.1738492250442505, -0.169672891497612, 0.14912232756614685, -0.08205843716859818, -0.16514623165130615, 0.1931198388338089, -0.11682818084955215, -0.20191830396652222, 0.045188602060079575, -0.00928417220711708, -0.061506036669015884, 0.07901446521282196, -0.024561233818531036, -0.48902007937431335, -0.27420222759246826, 0.26908087730407715, 0.15776318311691284, -0.12789513170719147, 0.012871705926954746, -0.1681327074766159, -0.132884681224823, -0.1619500368833542, 0.05074487626552582, 0.06246521323919296, 0.017671983689069748, 0.06593368947505951, 0.16702449321746826, -0.05085611343383789, -0.20137661695480347, -0.03105659782886505, 0.1506797969341278, 0.485102117061615, -0.40169066190719604, -0.07286162674427032, 0.24539877474308014, 0.3516131043434143, 0.25496089458465576, 0.6788238883018494, -0.3304511606693268, -0.5037263035774231, -0.23332184553146362, -0.10146329551935196, 0.25619134306907654, 0.36270368099212646, -0.09905283153057098, -0.019989989697933197, 0.19233109056949615, -0.12426145374774933, 0.017401885241270065, 0.09184826910495758, -0.19766764342784882, -0.09650852531194687, 0.2746948301792145, -0.3699563145637512, 0.4303604066371918, 0.010205388069152832, -0.021853983402252197, 0.13652506470680237, -0.012176834046840668, -0.3142228424549103, 0.3871195912361145, 0.38823869824409485, 0.9507619142532349, 0.43902653455734253, 0.1247098445892334, 0.3824399411678314, -0.5367249250411987, 0.1544140726327896, -0.6819109916687012, 0.09389925748109818, -0.4230615794658661, 0.3200668394565582, 0.050947993993759155, -0.19007505476474762, 0.1959441602230072, -0.24329517781734467, -0.33547964692115784, -0.07203429937362671, -0.3546401262283325, 0.05625826120376587, -0.09531216323375702, 0.30525991320610046, -0.24457663297653198, -0.10619768500328064, -0.2428555190563202, 0.09936018288135529, -0.15058936178684235, -0.2707100808620453, 0.0518822968006134, -0.5024534463882446, -0.2965601086616516, -0.21545131504535675, -0.053670480847358704, 0.124898262321949, -0.22058194875717163, 0.3709293603897095, 0.026462379842996597, -0.11188714951276779, 0.16162782907485962, -0.06867393851280212, 0.2564718723297119, 0.0983375832438469, -0.11705745756626129, 0.20281685888767242, 0.025781918317079544, 0.32662665843963623, 0.1625206023454666, 0.1168467253446579, 0.3532688021659851, -0.1127181351184845, -0.005493968725204468, -0.16915300488471985, -0.14975394308567047, -0.16803686320781708, -0.11100612580776215, 0.16587907075881958, 0.26030176877975464, -0.4981781840324402, 0.24621503055095673, 0.1947188377380371, -0.0844033807516098, -0.25221920013427734, 0.14165398478507996, 0.050973955541849136, -0.2617638409137726, 0.16618245840072632, -0.10376596450805664, -0.11545537412166595, 0.006784440949559212, 0.06928396970033646, 0.43192189931869507, 0.02039508894085884, 0.24575652182102203, -0.166542649269104, -0.3457188606262207, -0.4215869903564453, 0.3528493046760559, 0.18511833250522614, -0.2992503046989441, 0.39710181951522827, -0.17103703320026398, -0.5723310708999634, -0.18936996161937714, 0.08234129846096039, -0.004971794784069061, 0.195722758769989, -0.2035619616508484, -0.13558214902877808, -0.3077293634414673, 0.3742032051086426, -0.1971510797739029, 0.19147253036499023, -0.15923787653446198, 0.6167188882827759, -0.23973765969276428, 0.12329452484846115, -0.368571400642395, 0.014628390781581402, -0.03442993387579918, 0.06442703306674957, -0.2411622405052185, -0.33019956946372986, 0.1663515567779541, 0.06426456570625305, 0.15324628353118896, 0.31393784284591675, -0.3298335075378418, -0.19938534498214722, -0.2531089782714844, 0.122132807970047, -0.1243220642209053, 0.16755187511444092, 0.09690959751605988, -0.10295897722244263, -0.12869255244731903, 0.07913970947265625, -0.08432704955339432, -0.04503097012639046, -0.04400455951690674, 0.2891882658004761, 0.12508803606033325, 0.16165129840373993, -0.08268968015909195, -0.09534084796905518, -0.2930845022201538, 0.22092102468013763, -0.2002556324005127, 0.08749563246965408, -0.34175562858581543, -0.1410047560930252, 0.0316661112010479, 0.06349344551563263, 0.109784796833992, 0.3236493766307831, 0.1304987370967865, -0.048094943165779114, -0.25877827405929565, -0.13752281665802002, 0.31964778900146484, 0.6498623490333557, -0.042543958872556686, 0.014946086332201958, 0.14176848530769348, 0.2804587781429291, -0.2999120354652405, 0.019724832847714424, 0.26483285427093506, -0.33964699506759644, 0.0696362555027008, 0.2757321298122406, 0.20617175102233887, 0.2658458352088928, 0.11245319247245789, 0.13429975509643555, 0.1214112788438797, -0.006949536502361298, 0.4507356584072113, 0.38094913959503174, -0.40015822649002075, -0.0674944519996643, 0.11383192986249924, -0.040796760469675064, 0.4496140480041504, 0.47703051567077637, -0.2045169472694397, 0.28780272603034973, 0.14008617401123047, 0.05918128043413162, 0.2983454167842865, -0.21991048753261566, 0.06783165782690048, -0.11169010400772095, 0.1578139066696167, 0.2816770672798157, 0.2696884274482727, 0.4733467996120453, -0.11452234536409378, -0.2556988000869751, 0.008438194170594215, 0.04821033775806427, -0.15295201539993286, 0.06089962646365166, -0.11764822155237198, -0.03407531604170799, -0.39427632093429565, -0.1954183578491211, 0.15668916702270508, -0.026323407888412476, 0.10408883541822433, 0.2872023582458496, 0.23684163391590118, -0.18357601761817932, -0.013078812509775162, -0.20032909512519836, 0.40354394912719727, -0.4373202323913574, 0.07718126475811005, 0.3274334669113159, -0.15017056465148926, -0.1382085233926773, -0.1028103306889534, 0.08998510241508484, 0.21687456965446472, -0.28661173582077026, -0.23994019627571106, -0.008951820433139801, -0.07176262140274048, -0.19454430043697357, 0.11157315224409103, 0.2738201916217804, 0.23185859620571136, 0.44237038493156433, 0.14217163622379303, -0.1973375678062439, 0.15130068361759186, 0.06296125799417496, 0.013751036487519741, -0.045743729919195175, 0.23729771375656128, 0.2247290313243866, -0.16278845071792603, -0.1641007959842682, -0.38085564970970154, -0.3229949176311493, -0.19393761456012726, 0.26096540689468384, 0.04774761199951172, 0.07669523358345032, -0.3029441237449646, 0.10243389755487442, 0.2426203489303589, 0.2645438611507416, 0.02894425019621849, 0.1315755397081375, -0.13712431490421295, 0.15352332592010498, -0.22588729858398438, 0.1554829180240631, 0.007960103452205658, -0.2514341473579407, 0.23207610845565796, 0.3368363380432129, 0.105100117623806, 0.26873770356178284, 0.01664656400680542, 0.28305670619010925, 0.22412456572055817, 0.10313263535499573, -0.38968390226364136, 0.21035510301589966, 0.1885833591222763, -0.020398220047354698, 0.28461065888404846, -0.4075700640678406, -0.004329007118940353, -0.0401095487177372, 0.06424961239099503, -0.05237315595149994, -0.3475688397884369, 0.34703004360198975, 0.25019320845603943, 0.3112611770629883, 0.22968098521232605, 0.18161627650260925, 0.05562025308609009, -0.22010065615177155, -0.03839264437556267, -0.16949854791164398, -0.26921960711479187, 0.4675261378288269, 0.2314511388540268, 0.5185706615447998, -0.18556652963161469, 0.013781119138002396, -0.3582307994365692, 0.12851081788539886, -0.13106995820999146, 0.11880607903003693, -0.24455168843269348, 0.29510238766670227, -0.0750032365322113, 0.14306853711605072, -0.015390701591968536, 0.39454326033592224, -0.23925048112869263, 0.011727593839168549, -0.3811849355697632, -0.37289491295814514, 0.5871715545654297, -0.14911650121212006, -0.3378528654575348, 0.2763526439666748, 0.2975110709667206, 0.4776678681373596, 0.047950852662324905, -0.6850880980491638, -0.18599142134189606, 0.28790268301963806, -0.18670767545700073, -0.13684168457984924, 0.15080028772354126, 0.3075859248638153, -0.2870050370693207, -0.10266135632991791, 0.0010077059268951416, 0.09638123214244843, -0.08999209851026535, 0.16873706877231598, -0.32325106859207153 ]
https://github.com/huggingface/datasets/pull/2168
Preserve split type when realoding dataset
@lhoestq Yes, before going with `eval`, I thought about this approach with the "spec". The only issue with this approach is that we have to come up with a represenation for the `rounding` arg. What do you think about this (maybe too verbose)? ```python >>> print(ReadInstruction("train", rounding="pct1_dropremainder", from_=10, to=30).to_spec()) train[10:30](pct1_dropremainder)
Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ```
50
text: Preserve split type when realoding dataset Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ``` @lhoestq Yes, before going with `eval`, I thought about this approach with the "spec". The only issue with this approach is that we have to come up with a represenation for the `rounding` arg. What do you think about this (maybe too verbose)? ```python >>> print(ReadInstruction("train", rounding="pct1_dropremainder", from_=10, to=30).to_spec()) train[10:30](pct1_dropremainder)
[ -0.4441779851913452, -0.2532147169113159, -0.025934699922800064, 0.09094531089067459, 0.24014657735824585, -0.1883561611175537, 0.291573703289032, 0.34045034646987915, -0.2963620126247406, 0.08699607849121094, -0.2809753119945526, 0.46352800726890564, -0.3107821047306061, 0.1979738026857376, -0.036722153425216675, -0.254574716091156, -0.05174548178911209, 0.18792474269866943, -0.01912645250558853, -0.14141038060188293, -0.1301582157611847, 0.010319468565285206, -0.2805323600769043, 0.025994248688220978, -0.04694277048110962, -0.2738756835460663, 0.2282600700855255, -0.11195854097604752, -0.09477704018354416, -0.23860348761081696, 0.014249427244067192, -0.18891294300556183, 0.17722633481025696, 0.3278879225254059, -0.0001086848642444238, 0.05090992897748947, 0.16054290533065796, -0.10034158080816269, -0.1488117128610611, 0.21479545533657074, -0.11993881314992905, -0.3587203919887543, 0.2976183593273163, -0.36432573199272156, -0.13271978497505188, -0.032761476933956146, -0.2822897136211395, -0.6710773706436157, 0.7084908485412598, 0.3697455823421478, 0.21628032624721527, 0.06729487329721451, -0.057583898305892944, 0.04860649257898331, 0.10385220497846603, 0.18975618481636047, -0.14245688915252686, 0.23012548685073853, -0.24546679854393005, 0.2714729607105255, -0.06805456429719925, 0.12622030079364777, -0.05700474604964256, -0.25265803933143616, 0.07617165148258209, 0.11774501204490662, -0.009705372154712677, -0.027140051126480103, 0.03946806117892265, 0.23897692561149597, 0.2205219268798828, -0.32355737686157227, -0.39237257838249207, -0.23358601331710815, 0.00465607363730669, -0.7173401713371277, -0.13605335354804993, 0.17686881124973297, -0.10341916978359222, 0.24195024371147156, 0.0577707402408123, -0.06457281857728958, -0.3084339201450348, 0.010357264429330826, -0.19275115430355072, 0.45135048031806946, -0.08035220950841904, 0.18218453228473663, -0.0835019201040268, -0.09152236580848694, 0.2565014958381653, 0.35647228360176086, 0.22442957758903503, 0.06930028647184372, 0.045863620936870575, -0.10144014656543732, -0.3382898271083832, 0.030421648174524307, -0.12312604486942291, 0.2327791452407837, -0.08699434250593185, 0.28940436244010925, 0.4023613929748535, 0.06324267387390137, 0.15798884630203247, 0.15675149857997894, 0.21973749995231628, 0.613667905330658, 0.055035077035427094, 0.12352598458528519, -0.08126135915517807, 0.07855691015720367, 0.0631648525595665, -0.14617089927196503, -0.07710755616426468, 0.22677239775657654, 0.03871212899684906, -0.1965617537498474, -0.1845158487558365, -0.032793331891298294, -0.1993086040019989, -0.10180910676717758, 0.08870206773281097, 0.1876021772623062, -0.020680632442235947, 0.38599517941474915, 0.2072947472333908, -0.0503966361284256, -0.32284805178642273, -0.31224098801612854, -0.21151261031627655, 0.13921557366847992, -0.2489800900220871, -0.18338759243488312, -0.2410793900489807, 0.28542277216911316, 0.18256902694702148, 0.00011525861918926239, 0.20019017159938812, -0.026229532435536385, -0.09889357537031174, -0.011561107821762562, 0.1783495843410492, 0.10934542119503021, -0.20539924502372742, -0.23979488015174866, 0.0822417363524437, 0.02296607196331024, -0.31434762477874756, 0.09930653870105743, 0.050470128655433655, -0.16256742179393768, 0.06213413178920746, 0.2543540596961975, -0.3218572735786438, -0.17184633016586304, 0.16973701119422913, 0.19830749928951263, 0.3390445411205292, -0.015859531238675117, 0.2743411660194397, -0.29218924045562744, -0.26898193359375, -0.3315330147743225, 0.35447245836257935, 0.013934604823589325, -0.17351537942886353, -0.22463485598564148, -0.27243512868881226, -0.2685030698776245, 0.3943536579608917, 0.15534614026546478, -0.13168483972549438, -0.054778046905994415, -0.0513700395822525, 0.24232299625873566, 0.7897884845733643, -0.055212222039699554, -0.14376865327358246, 0.06741667538881302, -0.11721701920032501, -0.08682384341955185, -0.039218537509441376, -0.08994265645742416, 0.23551659286022186, -0.005014433059841394, -0.004017464816570282, 0.31777888536453247, -0.18659119307994843, -0.21406619250774384, -0.35286372900009155, -0.1543906182050705, 0.1538296937942505, 0.062044594436883926, 0.17118167877197266, -0.19879889488220215, 0.025594860315322876, 0.03448530659079552, 0.449759840965271, 0.04495374858379364, 0.1374266892671585, 0.001064494252204895, 0.3786708116531372, 0.0034393295645713806, 0.09556442499160767, -0.5120115876197815, -0.12456373125314713, 0.0014050230383872986, -0.2244853377342224, -0.06279923021793365, 0.0032310038805007935, -0.32124656438827515, -0.35315942764282227, 0.20804426074028015, -0.014613602310419083, 0.000041328370571136475, 0.14488127827644348, -0.08692586421966553, -0.2369239777326584, 0.10406601428985596, -0.3095974922180176, 0.009737166576087475, -0.05845049023628235, 0.08581919223070145, 0.04781755805015564, -0.24507057666778564, 0.023151738569140434, -0.1817150115966797, -0.3123815357685089, 0.4291357398033142, 0.026232820004224777, 0.04299377277493477, -0.054348453879356384, 0.5116930603981018, 0.2765060365200043, 0.1272968351840973, -0.2962137460708618, -0.12694375216960907, 0.11710277944803238, -0.4470754861831665, 0.08611417561769485, 0.11144876480102539, 0.004603205248713493, 0.20266005396842957, -0.2574024498462677, 0.6409816145896912, -0.052094507962465286, 0.09626148641109467, -0.022684168070554733, 0.17571468651294708, -0.04847896471619606, -0.0825657993555069, -0.1492050439119339, -0.39768099784851074, -0.017432983964681625, 0.0068254051730036736, 0.33944496512413025, -0.0304549653083086, 0.10346060991287231, 0.16776034235954285, 0.4190434217453003, -0.11476248502731323, 0.10202790796756744, 0.1620939075946808, 0.06034563109278679, 0.11011404544115067, 0.1204116940498352, 0.20818783342838287, 0.1592506617307663, 0.26230114698410034, 0.34651193022727966, 0.37632107734680176, -0.11443781107664108, -0.019512619823217392, 0.5180119872093201, 0.3147289752960205, -0.08642512559890747, 0.040570832788944244, -0.09312523156404495, -0.08616135269403458, -0.0801270604133606, -0.0513513945043087, -0.18185701966285706, 0.04988469183444977, -0.296823650598526, 0.14582405984401703, -0.2775304317474365, 0.2553847134113312, -0.5140658020973206, -0.12818878889083862, -0.17703337967395782, -0.23468764126300812, -0.0008557625114917755, -0.346382737159729, -0.3638555705547333, 0.2583487629890442, -0.27767670154571533, 0.21248869597911835, 0.0391199067234993, -0.3280247151851654, 0.19252264499664307, -0.2697392404079437, -0.3390641510486603, 0.11386168003082275, 0.2750694453716278, 0.07717502862215042, 0.517085075378418, -0.05787894129753113, -0.08136522769927979, 0.2430383414030075, -0.4358653426170349, 0.015895400196313858, -0.03732290118932724, 0.14448672533035278, 0.482911616563797, -0.09093372523784637, -0.10169544070959091, -0.2270575612783432, 0.10100314766168594, -0.3512250483036041, -0.19807837903499603, -0.11088172346353531, 0.06345488876104355, 0.3122709095478058, -0.3390539586544037, -0.6490975618362427, -0.31946995854377747, -0.5640710592269897, 0.42657405138015747, 0.09680600464344025, 0.04065028578042984, -0.02332988753914833, 0.06649530678987503, 0.19887657463550568, 0.17085421085357666, 0.13746678829193115, -0.2476605325937271, 0.25220802426338196, 0.17809316515922546, -0.11115171015262604, 0.0579194575548172, -0.022516582161188126, -0.26947933435440063, 0.04277568310499191, 0.36786025762557983, -0.13257715106010437, -0.034486182034015656, -0.079587921500206, 0.27706363797187805, -0.1924201250076294, 0.3170059621334076, 0.23474419116973877, 0.24515806138515472, -0.04503588750958443, -0.20846101641654968, 0.065545454621315, 0.3686523139476776, -0.3964392840862274, -0.1676083207130432, -0.04253076761960983, 0.34023723006248474, 0.2825463116168976, 0.7770252823829651, 0.24909526109695435, -0.06153329834342003, -0.25387078523635864, -0.08261311054229736, 0.005457255989313126, 0.11459167301654816, 0.12773817777633667, 0.009768757037818432, -0.02520674467086792, -0.29236310720443726, 0.16718880832195282, -0.05895970016717911, -0.33834734559059143, -0.04697320610284805, -0.2565363943576813, -0.15515479445457458, -0.5483574271202087, 0.33221253752708435, 0.12451070547103882, 0.27795839309692383, -0.26345348358154297, 0.10322446376085281, -0.11812970042228699, 0.03571396321058273, 0.22439076006412506, -0.1204771101474762, -0.16530939936637878, -0.008800067938864231, -0.3980461061000824, -0.2469625622034073, -0.006853938102722168, 0.4295651316642761, 0.220889613032341, 0.36424168944358826, 0.15541309118270874, -0.5602980852127075, 0.11285275220870972, 0.04448118433356285, 0.05790342390537262, 0.020544562488794327, -0.23307107388973236, 0.16858041286468506, -0.03327278792858124, -0.44891357421875, -0.012772675603628159, -0.16264697909355164, -0.18478962779045105, -0.0631251335144043, -0.09594343602657318, -0.47369202971458435, -0.17570562660694122, 0.46551206707954407, 0.20275937020778656, 0.03817543014883995, 0.08979687839746475, -0.0644131749868393, -0.17231032252311707, -0.018222272396087646, 0.23919448256492615, 0.2259715348482132, 0.026661420240998268, 0.05991259962320328, 0.34376972913742065, -0.10736893117427826, -0.11953645199537277, 0.07259977608919144, 0.13776050508022308, 0.47995972633361816, -0.32456111907958984, -0.09862913191318512, 0.20618119835853577, 0.12995155155658722, 0.07429996877908707, 0.5702092051506042, -0.45413339138031006, -0.45185112953186035, -0.09657999128103256, 0.0060952892526984215, 0.4164069592952728, 0.38936132192611694, -0.20491686463356018, -0.027395114302635193, 0.22775155305862427, 0.10173613578081131, -0.17224811017513275, 0.26135990023612976, -0.39342355728149414, 0.01957295835018158, 0.10881802439689636, -0.25957950949668884, 0.5648418664932251, 0.18332044780254364, -0.022443152964115143, 0.21002264320850372, -0.012416884303092957, -0.27115944027900696, 0.32490718364715576, 0.4344415068626404, 0.9648038148880005, 0.44139325618743896, 0.15610434114933014, 0.4733913242816925, -0.30299270153045654, 0.03132660686969757, -0.38263481855392456, 0.04162583872675896, -0.4111116826534271, 0.23005282878875732, 0.043871425092220306, -0.14178404211997986, 0.08890122920274734, -0.3072168827056885, -0.3876383900642395, 0.05357624590396881, -0.5154494047164917, 0.024498986080288887, 0.11872923374176025, 0.06557544320821762, -0.23176884651184082, -0.03323749452829361, -0.002254912629723549, 0.07489851117134094, -0.03214412182569504, -0.23136034607887268, -0.007285114377737045, -0.22223031520843506, -0.4042811989784241, -0.18309682607650757, -0.061878789216279984, -0.06911440193653107, -0.41446012258529663, 0.2751426696777344, -0.1175900548696518, -0.1232384443283081, 0.11372837424278259, 0.024836188182234764, 0.31515640020370483, 0.11988213658332825, -0.03126189112663269, 0.1750536561012268, 0.057747792452573776, 0.27108392119407654, 0.2736688256263733, 0.10818538814783096, 0.3245077133178711, -0.057433418929576874, 0.08061402291059494, -0.11956173926591873, -0.11696846038103104, -0.043744899332523346, -0.07814387232065201, 0.13272486627101898, 0.38099175691604614, -0.5500914454460144, 0.2347840815782547, -0.047564953565597534, 0.033922720700502396, -0.17976607382297516, 0.11475197970867157, 0.058455344289541245, -0.2859373986721039, 0.31451207399368286, 0.03131101280450821, -0.17747259140014648, -0.008502975106239319, 0.0592663399875164, 0.4130637049674988, -0.19628407061100006, 0.2362881749868393, -0.2321089655160904, -0.367282509803772, -0.3735097050666809, 0.2537253797054291, 0.027919720858335495, -0.3975420594215393, 0.4091161787509918, -0.20122800767421722, -0.44462108612060547, -0.07798201590776443, 0.13630525767803192, 0.19880959391593933, 0.15625068545341492, -0.24850396811962128, -0.19247323274612427, -0.2628994882106781, 0.23878556489944458, -0.05360953137278557, 0.35897377133369446, -0.17850768566131592, 0.7176398038864136, -0.23905658721923828, 0.025333719328045845, -0.3799538016319275, 0.017043408006429672, 0.036718882620334625, 0.1307409554719925, -0.12207245826721191, -0.257428377866745, 0.10368983447551727, 0.3016964793205261, 0.17400214076042175, 0.37281495332717896, -0.29757943749427795, -0.17590022087097168, -0.2835671901702881, 0.11011795699596405, -0.32380732893943787, -0.0028960872441530228, 0.1911664605140686, 0.15840032696723938, -0.2529872953891754, -0.022875437512993813, -0.1591210514307022, -0.06968066096305847, -0.018846571445465088, 0.32206693291664124, 0.17857776582241058, 0.2538468837738037, -0.19530680775642395, -0.006371200084686279, -0.07465997338294983, 0.011432550847530365, -0.13857904076576233, 0.2570108473300934, -0.25959107279777527, -0.15859641134738922, 0.3424798548221588, 0.08267072588205338, 0.23778212070465088, -0.011270616203546524, 0.06950369477272034, 0.06080040708184242, -0.2666892111301422, 0.004544105846434832, 0.32915541529655457, 0.5975015163421631, -0.060975704342126846, -0.16423578560352325, 0.22474998235702515, 0.27106136083602905, -0.3729615807533264, 0.08582699298858643, 0.3987690508365631, -0.13516366481781006, 0.15975941717624664, 0.4736834466457367, 0.1720139980316162, 0.08572666347026825, 0.09302803874015808, 0.076484814286232, 0.026070836931467056, -0.26084083318710327, 0.4646998941898346, 0.42436590790748596, -0.25213268399238586, -0.04412241652607918, 0.10281495749950409, -0.020537249743938446, 0.42795252799987793, 0.38344764709472656, -0.23609870672225952, 0.3511064052581787, 0.011646969243884087, 0.10009633004665375, 0.16981136798858643, -0.29493871331214905, 0.2430584579706192, 0.16086387634277344, 0.06797154992818832, 0.21738475561141968, 0.11998598277568817, 0.5252560973167419, -0.12073709815740585, -0.3015472888946533, 0.12422432750463486, -0.024318654090166092, -0.26362594962120056, 0.08674490451812744, 0.05049894005060196, -0.07140666991472244, -0.5420211553573608, -0.4100190997123718, 0.17725622653961182, -0.0864063948392868, 0.27830350399017334, 0.23012061417102814, 0.35279977321624756, 0.07998843491077423, -0.32132717967033386, 0.03719177097082138, 0.4080830216407776, -0.49815768003463745, -0.010213976725935936, 0.31570786237716675, -0.11396393179893494, -0.12269721925258636, -0.12995734810829163, 0.10893473029136658, 0.19433224201202393, -0.4173668920993805, -0.1072564348578453, 0.2505018413066864, 0.03596474230289459, -0.18949882686138153, -0.018425818532705307, 0.2742863893508911, 0.3219093978404999, 0.3618388772010803, 0.12599651515483856, -0.26603972911834717, 0.13618379831314087, -0.1023554652929306, 0.0053145503625273705, -0.26255083084106445, 0.13197672367095947, 0.2020723670721054, -0.007306404411792755, -0.21214568614959717, -0.27104488015174866, -0.1390787959098816, -0.03124624863266945, 0.22361771762371063, -0.039748430252075195, 0.1049228236079216, -0.06087987869977951, 0.08987636119127274, 0.30474910140037537, 0.13899636268615723, 0.04098081216216087, 0.2678317725658417, -0.13097020983695984, -0.012561067938804626, -0.29632025957107544, 0.1550922691822052, 0.2153642475605011, -0.25731945037841797, 0.3164726793766022, 0.22342179715633392, 0.10900040715932846, 0.23328767716884613, 0.15179073810577393, 0.07710010558366776, 0.2742924094200134, 0.1981942504644394, -0.22859163582324982, 0.11037339270114899, -0.03547639399766922, -0.11831492185592651, 0.31999093294143677, -0.4790019392967224, -0.06098276004195213, -0.1335769146680832, 0.09457080811262131, -0.008486593142151833, -0.49504101276397705, 0.4086100459098816, 0.11312536150217056, 0.2302374243736267, 0.205869659781456, 0.27746832370758057, -0.014841964468359947, -0.07673153281211853, -0.0005807876586914062, -0.042633056640625, -0.41569963097572327, 0.3126397728919983, 0.14019496738910675, 0.39070695638656616, -0.2173355668783188, -0.08735959231853485, -0.24965046346187592, 0.21134887635707855, 0.18636712431907654, 0.04172810539603233, -0.1479494273662567, 0.24402952194213867, -0.026080403476953506, 0.04824602231383324, 0.03434206172823906, 0.5033159255981445, -0.177964985370636, 0.1642320603132248, -0.2670556902885437, -0.424822062253952, 0.5877811908721924, -0.22241151332855225, -0.32684746384620667, -0.0024745860137045383, 0.2916906476020813, 0.34797874093055725, 0.13603425025939941, -0.8175945281982422, -0.193475604057312, 0.39093464612960815, -0.18068018555641174, -0.03936145827174187, 0.26625367999076843, 0.2981269359588623, -0.26883381605148315, -0.063316710293293, 0.45284196734428406, -0.0815742239356041, -0.09374241530895233, 0.13829995691776276, -0.5273731350898743 ]
https://github.com/huggingface/datasets/pull/2168
Preserve split type when realoding dataset
Good idea ! First we must note that the rounding is only used for percentage instructions. For absolute instructions there's no rounding ambiguity. By default the rounding is set to `closest`. For example if you have a train set of 999 examples and if you provide an instruction spec `"train[:1%]"`, you're going to get the first ten examples (while the `pct1_dropremainder ` rounding would return 9 examples). Currently there's no way to get an instruction with a `pct1_dropremainder` rounding strategy from an instruction spec. So we can either drop the support of `pct1_dropremainder` or define a way to use this strategy from a spec. I don't think dropping `pct1_dropremainder` would be a good idea since it allows to load each percent to all have the same number of examples (even the last one). Therefore I think your suggestion makes total sense and we should add a representation of this rounding strategy. I like what you suggested `train[10%:30%](pct1_dropremainder)` is fine, and it seems compatible with the regex that parses the instructions specs.
Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ```
171
text: Preserve split type when realoding dataset Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ``` Good idea ! First we must note that the rounding is only used for percentage instructions. For absolute instructions there's no rounding ambiguity. By default the rounding is set to `closest`. For example if you have a train set of 999 examples and if you provide an instruction spec `"train[:1%]"`, you're going to get the first ten examples (while the `pct1_dropremainder ` rounding would return 9 examples). Currently there's no way to get an instruction with a `pct1_dropremainder` rounding strategy from an instruction spec. So we can either drop the support of `pct1_dropremainder` or define a way to use this strategy from a spec. I don't think dropping `pct1_dropremainder` would be a good idea since it allows to load each percent to all have the same number of examples (even the last one). Therefore I think your suggestion makes total sense and we should add a representation of this rounding strategy. I like what you suggested `train[10%:30%](pct1_dropremainder)` is fine, and it seems compatible with the regex that parses the instructions specs.
[ -0.38270291686058044, -0.28437286615371704, 0.02287602797150612, -0.00691194087266922, 0.29040318727493286, -0.18344560265541077, 0.3238582909107208, 0.3293350040912628, -0.4323981702327728, 0.17780093848705292, -0.27418816089630127, 0.3337787389755249, -0.25163352489471436, 0.10613337904214859, 0.050928447395563126, -0.2634616196155548, -0.08611530810594559, 0.3782859742641449, 0.024303875863552094, -0.12909048795700073, 0.0002133287489414215, 0.10421890020370483, -0.20841704308986664, 0.027594488114118576, -0.1368711143732071, -0.23395279049873352, 0.19821235537528992, -0.0788717195391655, -0.0065683890134096146, -0.37387168407440186, 0.017632821574807167, -0.2322225570678711, 0.3510074019432068, 0.2188856303691864, -0.00010851676051970571, 0.06526166200637817, 0.1879860758781433, -0.15636764466762543, -0.11436516046524048, 0.14978712797164917, -0.11753234267234802, -0.34049224853515625, 0.2164400964975357, -0.28345945477485657, -0.16468441486358643, 0.06943323463201523, -0.1618404984474182, -0.41421762108802795, 0.7808626294136047, 0.27659177780151367, 0.18076935410499573, 0.09227645397186279, -0.09550023078918457, 0.1156172975897789, 0.16219228506088257, 0.16278472542762756, -0.18044930696487427, 0.2873135209083557, -0.19432249665260315, 0.285122275352478, 0.038293249905109406, 0.14261318743228912, 0.0665406659245491, -0.21900053322315216, 0.0687415823340416, 0.18187373876571655, 0.05211608484387398, 0.05760560184717178, -0.038467928767204285, 0.3805147707462311, 0.3080084025859833, -0.133548766374588, -0.300607293844223, -0.32911810278892517, 0.0050965044647455215, -0.7236807346343994, -0.19201284646987915, 0.2352917492389679, -0.15708152949810028, 0.2758582830429077, 0.02749590203166008, -0.02886747010052204, -0.3226827383041382, 0.03040624037384987, -0.0832504853606224, 0.45421090722084045, -0.08619602024555206, 0.13800355792045593, -0.10451492667198181, -0.1018049418926239, 0.13113878667354584, 0.34592604637145996, 0.12319290637969971, 0.09513895958662033, 0.05851083993911743, -0.1288149207830429, -0.2941644489765167, 0.1515069305896759, 0.019167829304933548, 0.20570871233940125, 0.12256389856338501, 0.3400282859802246, 0.23723840713500977, 0.06843779236078262, 0.22882306575775146, 0.28455570340156555, 0.3129914402961731, 0.4953934848308563, 0.06940049678087234, 0.1847173124551773, -0.026718655601143837, 0.047194819897413254, -0.06271224468946457, -0.09860093891620636, -0.03749622032046318, 0.2772115468978882, -0.19016742706298828, -0.20053812861442566, -0.2253277599811554, -0.10251833498477936, 0.03205195069313049, -0.06351108103990555, 0.09121779352426529, 0.23401203751564026, -0.04018327221274376, 0.351728618144989, 0.047442726790905, -0.04746881127357483, -0.28395164012908936, -0.4891396462917328, -0.135905921459198, 0.08158978819847107, -0.40591001510620117, -0.13951927423477173, -0.19774457812309265, 0.19736099243164062, 0.25748810172080994, -0.0012302370741963387, 0.2245708405971527, -0.04765945300459862, -0.04345514625310898, 0.018055180087685585, 0.24641993641853333, 0.06955273449420929, -0.21762393414974213, -0.2430589348077774, -0.03194604441523552, 0.08799107372760773, -0.2802639603614807, 0.15796387195587158, -0.06151289492845535, -0.25999826192855835, 0.15028999745845795, 0.22497868537902832, -0.27618634700775146, -0.23950782418251038, -0.04358687251806259, 0.26672330498695374, 0.4373047649860382, 0.034612979739904404, 0.2335621416568756, -0.32657885551452637, -0.29659757018089294, -0.2895817756652832, 0.29935553669929504, 0.1201929897069931, -0.17939792573451996, -0.2598891854286194, -0.22601363062858582, -0.32434964179992676, 0.36470112204551697, 0.23242749273777008, -0.17246149480342865, -0.04273568093776703, -0.04475514590740204, 0.19897772371768951, 0.6283062696456909, -0.07432878762483597, -0.025359442457556725, 0.2250785082578659, -0.07994133234024048, -0.11210783571004868, 0.0014932453632354736, -0.15489216148853302, 0.35105574131011963, -0.07332894206047058, -0.009453341364860535, 0.305930495262146, -0.20245610177516937, -0.08579325675964355, -0.29874369502067566, -0.2680431604385376, 0.06432071328163147, 0.07899254560470581, 0.15760281682014465, -0.09973777085542679, -0.037174783647060394, 0.026111137121915817, 0.5260568857192993, -0.020810697227716446, 0.11877834051847458, 0.040152862668037415, 0.31980282068252563, -0.0054607093334198, 0.15309999883174896, -0.5589174032211304, -0.09069853276014328, 0.07068074494600296, -0.278062641620636, -0.10771454870700836, 0.14678248763084412, -0.3391563892364502, -0.31875893473625183, 0.08021373301744461, -0.01523316279053688, -0.010928098112344742, 0.1328151822090149, -0.10899606347084045, -0.14532314240932465, -0.01019018329679966, -0.2860926389694214, -0.0783834457397461, 0.10861295461654663, 0.13425280153751373, 0.10494533181190491, -0.21497076749801636, 0.12555687129497528, -0.2712651491165161, -0.29971829056739807, 0.49451619386672974, 0.050034672021865845, 0.005327104590833187, -0.018911143764853477, 0.6069099307060242, 0.3602199852466583, 0.031784847378730774, -0.32737496495246887, -0.13744787871837616, 0.15695931017398834, -0.29495322704315186, -0.05062904953956604, 0.009736881591379642, -0.12282492965459824, 0.25881093740463257, -0.22338613867759705, 0.5600013732910156, 0.07922614365816116, 0.10031002759933472, -0.03160878270864487, 0.1143573746085167, -0.05602194368839264, -0.023461638018488884, -0.12834744155406952, -0.5819973945617676, -0.06415010988712311, 0.15691761672496796, 0.2962031960487366, -0.0928545668721199, 0.032659731805324554, 0.18935047090053558, 0.3053532838821411, -0.12923923134803772, 0.08905668556690216, 0.152719184756279, 0.026929311454296112, 0.08616630733013153, 0.2194771021604538, 0.19676636159420013, 0.13869376480579376, 0.3295673131942749, 0.3329501748085022, 0.24457475543022156, -0.07680737972259521, -0.028474746271967888, 0.4798464775085449, 0.3202766180038452, -0.054547663778066635, -0.03487566113471985, -0.1645030379295349, -0.08875064551830292, -0.06996731460094452, -0.10993911325931549, -0.2130405306816101, -0.07859267294406891, -0.3384176790714264, 0.004672745242714882, -0.32386550307273865, 0.38663536310195923, -0.6281036734580994, -0.05487114563584328, -0.2218976616859436, -0.14836426079273224, 0.05700036883354187, -0.42261025309562683, -0.3988455533981323, 0.18628071248531342, -0.3039351999759674, 0.2008133828639984, -0.11483930796384811, -0.21652249991893768, 0.2736169695854187, -0.3420177102088928, -0.46670687198638916, 0.11698374152183533, 0.22158554196357727, -0.01057531125843525, 0.4743764400482178, -0.17209495604038239, -0.10173582285642624, 0.28085166215896606, -0.41414910554885864, 0.11741466820240021, -0.060210928320884705, 0.06258013099431992, 0.5954324007034302, -0.09783853590488434, -0.08111853897571564, -0.21402868628501892, 0.031869325786828995, -0.2915302813053131, -0.12045419216156006, -0.08697238564491272, -0.0074993884190917015, 0.23956605792045593, -0.30298635363578796, -0.5212727189064026, -0.2878144383430481, -0.4535106420516968, 0.3269613981246948, 0.18624746799468994, 0.03359522670507431, 0.00607547489926219, -0.022596444934606552, 0.13476933538913727, 0.11420689523220062, 0.14519497752189636, -0.2480785995721817, 0.13052521646022797, 0.14710241556167603, -0.2953651547431946, 0.0838598906993866, -0.06563683599233627, -0.2868198752403259, -0.07114648818969727, 0.3138399124145508, -0.042126260697841644, 0.03503967449069023, -0.17060720920562744, 0.19950953125953674, -0.2621005177497864, 0.36603787541389465, 0.1559276580810547, 0.20960921049118042, -0.055413868278265, -0.24375876784324646, 0.11295725405216217, 0.4544026851654053, -0.3600260317325592, -0.11142592877149582, 0.023682164028286934, 0.2925640046596527, 0.36908233165740967, 0.9195600748062134, 0.2465466558933258, -0.15286555886268616, -0.2300891876220703, -0.030885061249136925, 0.01198839396238327, 0.09421532601118088, 0.3754688501358032, 0.06456570327281952, 0.015899375081062317, -0.2048506885766983, 0.2223498523235321, 0.04027411341667175, -0.23429010808467865, 0.015310853719711304, -0.19967739284038544, -0.17955967783927917, -0.5276153683662415, 0.3325451910495758, 0.0036736950278282166, 0.27401262521743774, -0.2392328530550003, 0.06689613312482834, -0.19424475729465485, -0.015006916597485542, 0.22808703780174255, -0.08444477617740631, -0.1752718687057495, -0.015874439850449562, -0.34356689453125, -0.25451114773750305, -0.09663975983858109, 0.4030182957649231, 0.2912692427635193, 0.30628645420074463, 0.17480117082595825, -0.5026643872261047, 0.07318708300590515, 0.15130606293678284, 0.045872241258621216, -0.019813785329461098, -0.19763678312301636, -0.021508118137717247, -0.0032920651137828827, -0.32757171988487244, -0.10759885609149933, -0.20003923773765564, -0.20240987837314606, -0.048754800111055374, -0.11491954326629639, -0.6166115403175354, -0.13803282380104065, 0.4328038990497589, 0.19961701333522797, 0.06137031689286232, 0.06412326544523239, -0.14280812442302704, -0.0033621005713939667, 0.07778814435005188, 0.23331359028816223, 0.2112969160079956, -0.01290824357420206, 0.10853306204080582, 0.17754916846752167, 0.002740662544965744, -0.1872444748878479, 0.04867580533027649, 0.08699040114879608, 0.5324075222015381, -0.19264906644821167, -0.14575068652629852, 0.262138307094574, 0.27002382278442383, 0.2248087376356125, 0.5278171896934509, -0.5911876559257507, -0.369928240776062, -0.048978909850120544, -0.04909215867519379, 0.34828507900238037, 0.3514733910560608, -0.21274890005588531, -0.15844380855560303, 0.2416772097349167, 0.16176947951316833, -0.02159276232123375, 0.21815648674964905, -0.46320396661758423, 0.030996859073638916, 0.17252063751220703, -0.344189316034317, 0.5418782830238342, 0.10954229533672333, -0.02401737868785858, 0.11814451217651367, -0.04395866394042969, -0.31753578782081604, 0.35502922534942627, 0.42931464314460754, 0.8598019480705261, 0.42773205041885376, 0.24851496517658234, 0.4655858874320984, -0.2547307014465332, 0.11389542371034622, -0.3090841770172119, -0.01591460406780243, -0.3887787461280823, 0.2893301844596863, 0.10843013226985931, -0.09544803202152252, 0.031356919556856155, -0.12201003730297089, -0.3255375325679779, 0.16591067612171173, -0.55560302734375, 0.13633088767528534, 0.13212843239307404, 0.07476796954870224, -0.19800227880477905, -0.05395684763789177, -0.013265114277601242, 0.05115470290184021, -0.029890216886997223, -0.2896077334880829, -0.03490767627954483, -0.22864234447479248, -0.37045231461524963, -0.1656283587217331, -0.15722760558128357, -0.04361378401517868, -0.480508416891098, 0.29493874311447144, -0.010530218482017517, -0.1594354510307312, 0.11803269386291504, 0.0230413768440485, 0.3811700940132141, 0.01433555968105793, -0.13379481434822083, 0.19536429643630981, 0.061020009219646454, 0.33671295642852783, 0.24136407673358917, 0.12085054814815521, 0.40814900398254395, -0.04711291193962097, 0.05658476799726486, -0.12171857804059982, -0.12010974436998367, 0.046337902545928955, -0.1507110744714737, 0.09442464262247086, 0.2670854330062866, -0.4989676773548126, 0.17856326699256897, -0.063033327460289, 0.0594552718102932, -0.10417403280735016, 0.09763848781585693, 0.09243365377187729, -0.2649840712547302, 0.1940450370311737, 0.014027290046215057, -0.07128247618675232, 0.0003969445824623108, 0.043580956757068634, 0.30241677165031433, -0.3382375240325928, 0.26377344131469727, -0.26992762088775635, -0.3145800232887268, -0.32950735092163086, 0.3557673692703247, 0.1791287660598755, -0.2882986068725586, 0.45761755108833313, -0.21966585516929626, -0.37782949209213257, 0.008825132623314857, 0.1137947291135788, 0.27123576402664185, 0.18673312664031982, -0.2715187966823578, -0.07480122148990631, -0.27985402941703796, 0.23155739903450012, -0.15799176692962646, 0.32834240794181824, -0.22316935658454895, 0.7591774463653564, -0.15072262287139893, -0.07582985609769821, -0.3602871894836426, -0.02198021113872528, 0.10292359441518784, 0.1515597403049469, -0.18582111597061157, -0.1783641278743744, 0.06784625351428986, 0.3271464407444, 0.08122627437114716, 0.3865182399749756, -0.3913249671459198, -0.1547483205795288, -0.35402753949165344, 0.12521028518676758, -0.2607235908508301, 0.019912896677851677, 0.19417044520378113, 0.23353706300258636, -0.2339072823524475, -0.056773632764816284, -0.016895953565835953, -0.22350329160690308, -0.054333560168743134, 0.4250749945640564, 0.1794833540916443, 0.2991087734699249, -0.16055256128311157, -0.024794522672891617, -0.1804136335849762, 0.0512387789785862, 0.027351409196853638, 0.293489933013916, -0.25320103764533997, -0.1824575513601303, 0.32519662380218506, 0.12249427288770676, 0.2025388479232788, 0.06401433050632477, -0.03264593333005905, 0.0436653308570385, -0.25039583444595337, 0.00810215063393116, 0.30544108152389526, 0.43705278635025024, 0.05494994297623634, -0.2163313776254654, 0.2140980064868927, 0.2668730914592743, -0.25840166211128235, 0.1265915334224701, 0.30231809616088867, -0.15546062588691711, 0.1340038776397705, 0.49724674224853516, 0.2750610113143921, 0.05846622586250305, 0.1846870630979538, -0.048725370317697525, -0.012409538961946964, -0.21289409697055817, 0.41938677430152893, 0.47854486107826233, -0.22841781377792358, 0.031710125505924225, -0.005010718479752541, -0.14922812581062317, 0.4284416139125824, 0.334153413772583, -0.2250034511089325, 0.3887816071510315, 0.00040500983595848083, -0.02971591427922249, 0.16104260087013245, -0.4487033188343048, 0.16457048058509827, 0.1835261434316635, 0.1650921106338501, 0.2920268774032593, 0.10253481566905975, 0.6321315765380859, -0.05661942437291145, -0.24334046244621277, 0.02434953860938549, -0.1088554710149765, -0.16242948174476624, -0.05782485380768776, -0.06137464940547943, -0.03441939875483513, -0.6329705715179443, -0.4041852355003357, 0.1178547739982605, -0.053311169147491455, 0.20994892716407776, 0.26045334339141846, 0.3228285312652588, -0.06202123314142227, -0.3941210210323334, 0.07739434391260147, 0.4220220446586609, -0.5211217999458313, -0.021409427747130394, 0.1416444629430771, -0.15652181208133698, -0.06583932042121887, -0.24213771522045135, 0.10130372643470764, 0.32788702845573425, -0.3224638104438782, -0.17740163207054138, 0.26547229290008545, 0.13210976123809814, -0.2116202712059021, -0.06092523783445358, 0.30519890785217285, 0.28271856904029846, 0.3866378366947174, 0.09039756655693054, -0.2093425840139389, 0.033065587282180786, -0.09798918664455414, -0.11582536995410919, -0.3037768304347992, 0.1014326959848404, 0.30281519889831543, -0.1422545313835144, -0.18377134203910828, -0.2714173197746277, -0.15891364216804504, 0.09473612159490585, 0.06477102637290955, -0.07447531819343567, 0.03358412906527519, -0.12495298683643341, 0.08738087862730026, 0.25502312183380127, 0.22792190313339233, 0.006055843085050583, 0.2809866666793823, -0.24211201071739197, -0.023761801421642303, -0.19449886679649353, 0.10643137991428375, 0.15500083565711975, -0.4069660007953644, 0.34410229325294495, 0.20897799730300903, -0.012386694550514221, 0.2847447991371155, 0.19941666722297668, 0.2625749707221985, 0.21502533555030823, 0.12493441253900528, -0.19356977939605713, 0.21148814260959625, -0.041091375052928925, 0.018110504373908043, 0.30473294854164124, -0.485670804977417, -0.029822085052728653, 0.004686535336077213, -0.00028359144926071167, -0.06555395573377609, -0.42504075169563293, 0.47998887300491333, 0.06441523879766464, 0.29054850339889526, 0.21776168048381805, 0.2840096652507782, 0.025371551513671875, -0.09253821521997452, -0.15510080754756927, -0.052901096642017365, -0.4227951467037201, 0.23950374126434326, 0.12995105981826782, 0.33849477767944336, -0.20165953040122986, -0.16048851609230042, -0.34858039021492004, 0.2765145003795624, 0.28246212005615234, 0.09901002049446106, -0.11274915188550949, 0.2393837571144104, 0.004466712474822998, -0.022811872884631157, 0.12070459127426147, 0.5177553296089172, -0.2476615011692047, 0.06463254243135452, -0.2465241551399231, -0.43255868554115295, 0.3962090015411377, -0.23455238342285156, -0.34878480434417725, -0.16802722215652466, 0.44596508145332336, 0.4470655620098114, 0.007651776075363159, -0.7357406616210938, -0.1496638059616089, 0.3597550094127655, -0.1809346079826355, -0.15167365968227386, 0.23130685091018677, 0.3996622562408447, -0.22392749786376953, -0.05654255673289299, 0.3957618772983551, -0.023076273500919342, -0.11461583524942398, 0.07674811780452728, -0.6284468173980713 ]
https://github.com/huggingface/datasets/pull/2168
Preserve split type when realoding dataset
@lhoestq I've added a test and addressed the comments. Additionally, `ReadInstruction` is converted to its spec form in `builder.py` to avoid a circular import that would happen if this logic was in `arrow_reader.py`. If you think it's better to have this logic in `arrow_reader.py`, the import can be delayed by putting it inside a function.
Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ```
55
text: Preserve split type when realoding dataset Fixes #2167 Using `eval` is not ideal for security reasons (in web apps I assume), but without it the code would be much more complex IMO. In terms of style, instead of explicitly importing a private member (`_RelativeInstruction`), we can add these imports at the top of the module: ```python from . import arrow_reader # gives us access to ReadInstruction and _RelativeInstruction from . import splits # gives us access to NamedSplit ``` and then define the `eval` globals as follows: ```python {**arrow_reader.__dict__, **splits.__dict__} ``` @lhoestq I've added a test and addressed the comments. Additionally, `ReadInstruction` is converted to its spec form in `builder.py` to avoid a circular import that would happen if this logic was in `arrow_reader.py`. If you think it's better to have this logic in `arrow_reader.py`, the import can be delayed by putting it inside a function.
[ -0.40969401597976685, -0.059230148792266846, -0.055696193128824234, 0.15757769346237183, 0.3098284602165222, -0.1573677361011505, 0.4092487096786499, 0.2870536148548126, -0.05249719321727753, 0.15058964490890503, -0.4287712574005127, 0.4069366753101349, -0.136435866355896, 0.0034372229129076004, -0.05862034857273102, -0.06199617683887482, -0.04866241663694382, 0.29597076773643494, 0.13179807364940643, -0.07055341452360153, -0.3088107109069824, -0.05918531119823456, -0.10337106138467789, -0.02115178108215332, 0.038422632962465286, -0.11710930615663528, 0.05361134558916092, 0.06540574133396149, -0.21254894137382507, -0.30732178688049316, 0.11736750602722168, 0.00945613719522953, 0.09014859050512314, 0.18626968562602997, -0.00010557140922173858, 0.2776266932487488, 0.2714606821537018, -0.06813257187604904, -0.07914671301841736, 0.011480771005153656, -0.317099928855896, -0.3612942695617676, 0.4519049823284149, -0.3059975802898407, -0.08924102783203125, -0.3275330662727356, -0.18936830759048462, -0.4588181674480438, 0.6735988855361938, 0.19142736494541168, 0.27175694704055786, 0.031093686819076538, 0.18527933955192566, 0.03758971393108368, 0.15574446320533752, 0.19458851218223572, -0.0968686118721962, 0.11577847599983215, -0.0664825290441513, 0.4521939754486084, -0.033789508044719696, 0.1943051517009735, -0.12442401796579361, -0.08566291630268097, 0.31317171454429626, 0.0543515644967556, -0.025341399013996124, -0.1333303451538086, 0.0355115570127964, 0.33647462725639343, 0.23905211687088013, -0.25206130743026733, -0.29237377643585205, -0.2694101631641388, -0.13481444120407104, -0.3971332013607025, 0.03988250717520714, 0.24198195338249207, -0.06355702131986618, 0.29781270027160645, 0.23134076595306396, -0.23209317028522491, -0.25782936811447144, 0.05127084627747536, -0.19225195050239563, 0.4653159976005554, -0.07419909536838531, 0.1352376639842987, -0.06781789660453796, -0.08709962666034698, 0.41829589009284973, -0.040790677070617676, -0.06527230143547058, -0.051122575998306274, -0.00748225674033165, 0.03928433358669281, -0.12193099409341812, 0.0622735358774662, -0.17623990774154663, 0.15196570754051208, 0.0581679604947567, 0.39054208993911743, 0.21735917031764984, 0.20513847470283508, 0.23273161053657532, 0.19075939059257507, 0.20223554968833923, 0.6617915034294128, 0.2017785757780075, 0.054970961064100266, -0.19264167547225952, -0.009862933307886124, -0.0026804758235812187, -0.09181064367294312, 0.0827544629573822, 0.16996917128562927, 0.2706877589225769, -0.17442002892494202, -0.10433065891265869, -0.11510024219751358, -0.039020806550979614, -0.12825678288936615, 0.12786813080310822, 0.38165929913520813, 0.1596870869398117, 0.26974251866340637, 0.11382743716239929, 0.16615387797355652, -0.21984374523162842, -0.28503379225730896, -0.18628719449043274, 0.0033350102603435516, -0.14699867367744446, -0.21448750793933868, -0.19435743987560272, -0.001277802512049675, 0.0430879220366478, -0.02053958922624588, -0.021855145692825317, -0.020221224054694176, -0.03372962400317192, -0.0049255043268203735, 0.32520705461502075, 0.22911275923252106, -0.04376229643821716, -0.13343873620033264, 0.13403485715389252, -0.16794049739837646, -0.232786625623703, 0.06705114990472794, 0.01682981476187706, -0.2688163220882416, -0.02092648856341839, 0.30699288845062256, -0.22960281372070312, 0.0749770924448967, 0.38712942600250244, 0.1829807609319687, 0.28608348965644836, -0.09997522830963135, 0.1465114951133728, -0.17567582428455353, -0.08668330311775208, -0.42786088585853577, 0.15658371150493622, 0.18581891059875488, -0.25000879168510437, -0.15665540099143982, -0.3443942666053772, -0.3530157506465912, 0.15459999442100525, 0.07513047009706497, -0.14335645735263824, -0.058737240731716156, -0.02136971801519394, 0.1343076229095459, 0.8271975517272949, -0.10653664171695709, -0.22154808044433594, 0.1526089757680893, -0.025757700204849243, 0.01891770027577877, 0.18054234981536865, -0.03006991371512413, 0.12962877750396729, -0.018238278105854988, -0.2452506124973297, 0.46479207277297974, -0.09536153078079224, -0.13439805805683136, -0.19475728273391724, -0.2058045119047165, 0.1807498335838318, -0.08239765465259552, 0.04649358242750168, -0.06695506721735, 0.22365832328796387, -0.1165601834654808, 0.37829089164733887, -0.03961028531193733, 0.1295798122882843, 0.12529592216014862, 0.3134569227695465, 0.10209609568119049, 0.1245938390493393, -0.46274614334106445, -0.29022592306137085, 0.08202175050973892, -0.3404588997364044, -0.15224795043468475, -0.2819675803184509, -0.38607192039489746, -0.10530463606119156, 0.27961501479148865, -0.3881966173648834, -0.007045522332191467, 0.19481399655342102, 0.006576322019100189, -0.11590388417243958, -0.018191246315836906, -0.22300133109092712, -0.10589049011468887, 0.00209859199821949, 0.1693176031112671, -0.089039146900177, -0.09164799749851227, -0.04718106985092163, -0.12697330117225647, -0.28098732233047485, 0.34718751907348633, -0.018655426800251007, -0.025642067193984985, -0.16847339272499084, 0.4488799571990967, 0.11877096444368362, 0.2053743302822113, -0.2775188982486725, -0.14512361586093903, 0.08261413127183914, -0.40919917821884155, 0.2285291850566864, 0.15129366517066956, 0.08989949524402618, 0.10216084867715836, -0.14655843377113342, 0.46061092615127563, -0.0003670156002044678, 0.3133185803890228, -0.012250397354364395, 0.12061936408281326, 0.03285065293312073, 0.017453279346227646, 0.038876764476299286, -0.6059547662734985, -0.20677538216114044, 0.156696155667305, 0.14726270735263824, 0.10887133330106735, 0.10598929226398468, 0.2953410744667053, 0.40355950593948364, 0.0023290105164051056, 0.3017958402633667, -0.0065370164811611176, -0.11956756561994553, 0.015805251896381378, 0.11242221295833588, 0.4721279442310333, 0.19195440411567688, 0.27156513929367065, 0.20219790935516357, 0.20568545162677765, 0.09656203538179398, -0.11977182328701019, 0.5484751462936401, 0.4054233431816101, 0.164665088057518, 0.1362568736076355, 0.035436227917671204, -0.16965384781360626, -0.17874523997306824, 0.13242250680923462, -0.13024863600730896, -0.07216375321149826, -0.22691307961940765, 0.10164451599121094, -0.39556655287742615, 0.11405741423368454, -0.3939802646636963, -0.2567850351333618, -0.27819308638572693, -0.34708622097969055, 0.03243441879749298, -0.2592902183532715, -0.4315039813518524, 0.07829394191503525, -0.10570520162582397, 0.010509580373764038, -0.1005699634552002, -0.39507508277893066, 0.1006464809179306, -0.33300402760505676, -0.17765915393829346, 0.12441298365592957, 0.35895878076553345, 0.11028207093477249, 0.35067519545555115, 0.06853380054235458, 0.057488299906253815, 0.0824497789144516, -0.27721694111824036, 0.03667984530329704, -0.09173177182674408, 0.04415891692042351, 0.479081928730011, -0.20768128335475922, 0.32202762365341187, -0.3130362927913666, 0.176408052444458, -0.30721384286880493, -0.1897236853837967, 0.08092018961906433, 0.07754391431808472, 0.1322203129529953, -0.31079334020614624, -0.5133082270622253, -0.4617309868335724, -0.6121727228164673, 0.38488173484802246, 0.28700417280197144, 0.13726967573165894, 0.0023052599281072617, 0.06286711990833282, -0.013704560697078705, 0.10998336225748062, 0.2504187524318695, -0.14713890850543976, 0.3423977792263031, 0.19421584904193878, -0.25285646319389343, 0.04848605394363403, 0.036739904433488846, -0.40610307455062866, 0.12924352288246155, 0.07785466313362122, -0.016173727810382843, 0.018769849091768265, -0.1940428912639618, 0.3135423958301544, 0.05597935616970062, 0.32079359889030457, 0.28372037410736084, 0.4220030605792999, -0.12929795682430267, -0.2259630560874939, 0.09831894934177399, 0.30698537826538086, -0.36570456624031067, -0.22182798385620117, -0.030805591493844986, 0.07790930569171906, 0.044506680220365524, 0.565578818321228, 0.12103869020938873, -0.04163825139403343, -0.029671162366867065, 0.03999745845794678, 0.23765535652637482, -0.08513038605451584, -0.12622612714767456, -0.16548533737659454, -0.05911509692668915, -0.17158102989196777, 0.18323370814323425, -0.01699451357126236, -0.20580188930034637, -0.12109380960464478, -0.3906130790710449, -0.1786523461341858, -0.5175166130065918, 0.15567949414253235, 0.20522083342075348, 0.15766668319702148, -0.014262610115110874, 0.011384762823581696, -0.18002364039421082, 0.08533494919538498, 0.08017690479755402, -0.05078335106372833, -0.2528136074542999, 0.018404444679617882, -0.2595069408416748, -0.23099036514759064, 0.140616774559021, 0.5405073761940002, 0.1747296303510666, 0.0028997324407100677, 0.23785649240016937, -0.5652919411659241, 0.18246129155158997, -0.08496761322021484, 0.030488930642604828, -0.056041501462459564, -0.2872607111930847, 0.1672879308462143, -0.11017261445522308, -0.30887335538864136, 0.0007840320467948914, 0.008101426064968109, -0.034836918115615845, -0.2660062313079834, -0.2874048054218292, -0.5089665651321411, -0.24176302552223206, 0.33724159002304077, 0.2928467392921448, -0.17680984735488892, 0.04878772422671318, -0.2200240194797516, -0.024261368438601494, -0.23327374458312988, -0.05380048602819443, 0.005509931594133377, 0.07784591615200043, 0.01746266894042492, 0.1314968764781952, -0.14537455141544342, -0.13408619165420532, 0.024747073650360107, 0.1673266887664795, 0.4916935861110687, -0.4332417845726013, -0.15510505437850952, 0.2981579601764679, 0.3159824311733246, 0.0928926020860672, 0.7927820682525635, -0.3121514916419983, -0.418584406375885, -0.2016967236995697, -0.12927447259426117, 0.2659299373626709, 0.32554906606674194, -0.29088714718818665, 0.12312794476747513, 0.1780598759651184, -0.16248953342437744, -0.09614493697881699, -0.07507600635290146, -0.20353122055530548, -0.09677603095769882, 0.18197721242904663, -0.355639785528183, 0.42086976766586304, -0.07092927396297455, -0.12021816521883011, 0.19415873289108276, 0.08566194027662277, -0.19036586582660675, 0.41856664419174194, 0.41337329149246216, 0.9722653031349182, 0.31048518419265747, 0.13338042795658112, 0.30486443638801575, -0.3156701326370239, 0.09125784784555435, -0.35428768396377563, -0.002380870282649994, -0.41184836626052856, 0.26813632249832153, 0.03786858916282654, -0.1271834373474121, 0.18665553629398346, -0.32645654678344727, -0.319925993680954, 0.047047168016433716, -0.4444592595100403, 0.13449686765670776, -0.00023709703236818314, 0.16849872469902039, -0.34974420070648193, -0.12214107811450958, 0.026036422699689865, 0.12361690402030945, 0.0854618102312088, -0.20456106960773468, 0.028028905391693115, -0.2954425811767578, -0.18284043669700623, -0.06737160682678223, -0.036818765103816986, 0.10555551201105118, -0.3501169681549072, 0.31877416372299194, -0.10599216818809509, -0.15875543653964996, 0.21003977954387665, 0.0871402770280838, 0.16770866513252258, 0.03659038618206978, -0.049654118716716766, 0.17907918989658356, 0.20614275336265564, 0.3103117346763611, 0.09791040420532227, 0.039916470646858215, 0.29037585854530334, -0.03073984757065773, 0.03167401999235153, -0.04843474179506302, -0.1277589350938797, -0.10031887888908386, -0.038200683891773224, 0.1863749772310257, 0.48326271772384644, -0.5214933753013611, 0.1538393199443817, 0.029463399201631546, -0.0621495321393013, -0.24049414694309235, 0.14052346348762512, 0.047419510781764984, -0.2892514169216156, 0.14041171967983246, -0.19824637472629547, -0.10848887264728546, 0.016204284504055977, -0.03997731953859329, 0.504553496837616, 0.03846730291843414, 0.18024340271949768, -0.2108449935913086, -0.30784064531326294, -0.46028849482536316, 0.2025301456451416, 0.13398373126983643, -0.41050440073013306, 0.4743826389312744, -0.027610745280981064, -0.5745099186897278, -0.07773017883300781, 0.20553424954414368, -0.06902715563774109, 0.2464112639427185, -0.48534175753593445, -0.1425718069076538, -0.2202645242214203, 0.23507103323936462, -0.2070132941007614, 0.26726004481315613, -0.19442763924598694, 0.4391569495201111, -0.1884440779685974, 0.2304757535457611, -0.4063533544540405, -0.032142274081707, 0.04537912458181381, 0.06616874784231186, -0.3205008804798126, -0.21230050921440125, 0.13903698325157166, 0.12550592422485352, 0.17610439658164978, 0.23390868306159973, -0.2531328797340393, -0.27886536717414856, -0.1974996030330658, 0.13748493790626526, -0.22317731380462646, 0.18797169625759125, 0.07695629447698593, -0.12616468966007233, -0.06261874735355377, -0.08133771270513535, 0.09630072116851807, -0.16619905829429626, -0.0844697654247284, 0.13512356579303741, 0.2428273856639862, 0.038477618247270584, -0.31328892707824707, 0.07907066494226456, -0.36698639392852783, 0.06644507497549057, -0.28171470761299133, 0.1408660113811493, -0.4032464325428009, -0.1816014051437378, 0.23330627381801605, 0.15609048306941986, 0.2761875092983246, 0.14900517463684082, 0.19485673308372498, 0.051629967987537384, -0.2454412430524826, -0.16759023070335388, 0.4237480163574219, 0.5623754262924194, 0.019333167001605034, 0.03275982290506363, -0.005604216828942299, 0.2701468765735626, -0.43951597809791565, 0.09954695403575897, 0.1882062405347824, -0.3883666396141052, 0.25802305340766907, 0.43501389026641846, 0.2890583276748657, 0.2305217981338501, 0.10035494714975357, 0.06374727934598923, 0.12709349393844604, -0.0826672837138176, 0.4852182865142822, 0.5419105291366577, -0.1429501622915268, 0.07638365030288696, 0.3268471956253052, -0.037549953907728195, 0.35962000489234924, 0.5594501495361328, -0.2857784330844879, 0.37738358974456787, 0.17176523804664612, -0.09686291217803955, 0.4222538471221924, -0.3533996641635895, 0.34399673342704773, -0.16930514574050903, 0.18646174669265747, 0.1909569501876831, 0.17195403575897217, 0.4819001257419586, -0.23813174664974213, -0.24912415444850922, 0.06615423411130905, 0.16247311234474182, -0.1050611063838005, 0.0811358094215393, -0.030148722231388092, -0.06425256282091141, -0.37787726521492004, -0.41920897364616394, 0.256442129611969, -0.19204939901828766, 0.05860486626625061, 0.23309026658535004, 0.36729854345321655, -0.17648664116859436, 0.06248590350151062, -0.15098020434379578, 0.3660854995250702, -0.38268452882766724, 0.01134144701063633, 0.40259313583374023, -0.08567823469638824, -0.01046806201338768, 0.04661612957715988, 0.11979201436042786, 0.07280384749174118, -0.39112716913223267, -0.14355705678462982, 0.03878994658589363, -0.16798467934131622, -0.2528768479824066, -0.061846956610679626, 0.020913250744342804, 0.3831876516342163, 0.40266016125679016, 0.19048789143562317, -0.24526162445545197, -0.05248251184821129, 0.08931295573711395, 0.0430108904838562, -0.13868513703346252, 0.39397403597831726, 0.15752193331718445, -0.14789754152297974, -0.23900079727172852, -0.10824636369943619, -0.2799348533153534, -0.1210545152425766, 0.3637295365333557, -0.22530850768089294, -0.000073261559009552, -0.27841392159461975, 0.09522464871406555, 0.37348634004592896, 0.20829245448112488, 0.0055857934057712555, 0.28860539197921753, -0.18897745013237, 0.0650135725736618, -0.31315985321998596, 0.25229042768478394, 0.0823981836438179, -0.3399210572242737, 0.17424580454826355, 0.2638940215110779, 0.19412076473236084, 0.23518697917461395, 0.1157536655664444, 0.36556747555732727, 0.33463913202285767, 0.10279691964387894, -0.19815021753311157, 0.10496540367603302, 0.08935896307229996, -0.17051714658737183, 0.16982200741767883, -0.514069676399231, 0.04097122699022293, -0.15350723266601562, 0.110462985932827, 0.08536018431186676, -0.31414321064949036, 0.5268827080726624, 0.054396290332078934, 0.2812380790710449, 0.16222555935382843, 0.12823855876922607, -0.025702081620693207, -0.06875357031822205, 0.009026017040014267, -0.12395106256008148, -0.47867071628570557, 0.2945174276828766, 0.13124194741249084, 0.40091145038604736, -0.2027379870414734, -0.06499284505844116, -0.2953210175037384, 0.061764247715473175, 0.048130907118320465, 0.3495303690433502, -0.1416119635105133, 0.38241419196128845, -0.20729538798332214, 0.26465052366256714, 0.12568660080432892, 0.2608325481414795, -0.1483561098575592, -0.057676270604133606, -0.32828056812286377, -0.4672733545303345, 0.5164200663566589, -0.05483118072152138, -0.37942132353782654, 0.06000378727912903, 0.38180872797966003, 0.3824685513973236, 0.04803362488746643, -0.64145427942276, -0.1912599503993988, 0.3190060257911682, -0.15788841247558594, -0.028703590855002403, 0.07987070083618164, 0.2592329680919647, -0.20583246648311615, -0.16101953387260437, 0.020737558603286743, -0.008376751095056534, -0.032911449670791626, -0.025030244141817093, -0.2587164044380188 ]
https://github.com/huggingface/datasets/pull/2163
Concat only unique fields in DatasetInfo.from_merge
Hi @mariosasko, Just came across this PR and I was wondering if we can use `description = "\n\n".join(OrderedDict.fromkeys([info.description for info in dataset_infos]))` This will obviate the need for `unique` and is almost as fast as `set`. We could have used `dict` inplace of `OrderedDict` but it's available 3.7+ onwards
I thought someone from the community with less experience would be interested in fixing this issue, but that wasn't the case. Fixes #2103
49
text: Concat only unique fields in DatasetInfo.from_merge I thought someone from the community with less experience would be interested in fixing this issue, but that wasn't the case. Fixes #2103 Hi @mariosasko, Just came across this PR and I was wondering if we can use `description = "\n\n".join(OrderedDict.fromkeys([info.description for info in dataset_infos]))` This will obviate the need for `unique` and is almost as fast as `set`. We could have used `dict` inplace of `OrderedDict` but it's available 3.7+ onwards
[ -0.036218177527189255, -0.007601581513881683, -0.05699145048856735, -0.044949159026145935, 0.2409864366054535, 0.0008804276585578918, 0.0026735253632068634, 0.28165560960769653, -0.4334993362426758, -0.22214598953723907, -0.013154186308383942, 0.0979301854968071, 0.3758796453475952, 0.31496745347976685, -0.20981287956237793, 0.07810187339782715, 0.059917084872722626, 0.26998406648635864, 0.009120650589466095, -0.12976187467575073, -0.47125527262687683, 0.24318328499794006, -0.34006738662719727, -0.04230870306491852, -0.2542722225189209, -0.1197044774889946, -0.28540489077568054, 0.2154541313648224, -0.1191677376627922, -0.23554116487503052, 0.03827796131372452, 0.6808697581291199, -0.47397521138191223, -0.04243270307779312, -0.00011121921124868095, -0.16798922419548035, 0.077386274933815, -0.05318334698677063, -0.33130398392677307, -0.1279168277978897, -0.3606916069984436, -0.2410506159067154, -0.02974333055317402, -0.153202623128891, -0.013583950698375702, -0.14580801129341125, -0.006830153986811638, -0.28817713260650635, 0.12552893161773682, 0.0840548574924469, 0.19723574817180634, -0.07420486211776733, -0.05247991904616356, -0.27664265036582947, -0.079741932451725, 0.22375346720218658, -0.07418294996023178, -0.23775219917297363, 0.32625317573547363, -0.12807637453079224, 0.20816586911678314, 0.3979160785675049, -0.21647204458713531, -0.06929531693458557, 0.45306381583213806, -0.020406242460012436, -0.224999338388443, 0.11802458763122559, 0.05956418812274933, 0.43079063296318054, 0.33263662457466125, -0.391875296831131, -0.6017208099365234, -0.37568482756614685, 0.08576861023902893, -0.31363633275032043, 0.09721913188695908, -0.010285662487149239, -0.11821363866329193, 0.16099731624126434, -0.3372088074684143, -0.1296183317899704, 0.0675056129693985, -0.11064134538173676, -0.017499610781669617, 0.033785380423069, 0.14872287213802338, 0.03589455410838127, 0.019249171018600464, -0.19340865314006805, -0.12614239752292633, 0.10929055511951447, -0.4428587853908539, 0.06378256529569626, -0.6206093430519104, -0.24916036427021027, -0.09491228312253952, -0.2636938989162445, 0.4902873635292053, -0.1564374566078186, -0.03740759566426277, 0.17624422907829285, 0.046929601579904556, -0.0713614746928215, 0.39136409759521484, 0.40957432985305786, 0.4667159914970398, 0.3680655062198639, -0.014530807733535767, -0.4095888137817383, -0.40099331736564636, 0.2331213653087616, 0.006049738265573978, -0.07925195246934891, -0.11651943624019623, 0.16753965616226196, 0.26614171266555786, 0.03188512846827507, -0.41741108894348145, 0.4237179458141327, -0.12633484601974487, -0.1289866417646408, -0.08035271614789963, 0.2641390562057495, 0.010121427476406097, 0.15119501948356628, 0.3267223834991455, -0.02349904179573059, -0.020767129957675934, -0.3347304165363312, -0.24776199460029602, -0.028284691274166107, -0.059645965695381165, 0.05862487852573395, -0.1684844195842743, 0.05511682853102684, -0.05144495517015457, 0.13070560991764069, 0.13686920702457428, -0.019021594896912575, -0.16321982443332672, -0.14010486006736755, 0.018822357058525085, 0.0743219181895256, -0.03084753453731537, 0.15925456583499908, 0.29966169595718384, -0.47535645961761475, -0.1399160921573639, 0.2305748164653778, -0.022611208260059357, -0.5045424103736877, -0.20652663707733154, 0.319506973028183, -0.17069999873638153, -0.1518164426088333, 0.3019264042377472, 0.3352118134498596, 0.004449851810932159, 0.24631786346435547, -0.015579424798488617, 0.08902670443058014, -0.3784852921962738, -0.11352738738059998, -0.11477639526128769, 0.08865677565336227, -0.3873913586139679, 0.00183965265750885, 0.17898350954055786, 0.07464651763439178, 0.13237547874450684, 0.36016416549682617, -0.006658335216343403, 0.2589195668697357, 0.07052573561668396, -0.13130761682987213, 0.45594021677970886, -0.22826841473579407, -0.24756136536598206, 0.3576992452144623, -0.06580410897731781, 0.03718806803226471, 0.3463042378425598, 0.10531692206859589, 0.287449449300766, 0.14564897119998932, 0.5209558010101318, 0.05230015516281128, 0.09918380528688431, 0.06706518679857254, -0.28886470198631287, -0.373094379901886, -0.018886666744947433, -0.19229359924793243, -0.15605702996253967, 0.05055680125951767, -0.23124364018440247, -0.15227648615837097, 0.4155145585536957, -0.04403560236096382, -0.16521915793418884, 0.32548075914382935, 0.24763691425323486, 0.04197418689727783, 0.20593838393688202, 0.18377652764320374, -0.3673444390296936, 0.28798365592956543, -0.0015273988246917725, 0.1526421308517456, 0.18201638758182526, -0.6585946083068848, -0.11310708522796631, 0.2854361832141876, -0.1632760763168335, 0.013917723670601845, 0.19881802797317505, -0.20578032732009888, 0.06983157992362976, -0.3035907447338104, -0.35905954241752625, 0.39399608969688416, -0.14473900198936462, -0.03554617241024971, 0.00739680789411068, -0.21857669949531555, -0.060624778270721436, 0.14992518723011017, -0.027122970670461655, 0.3538953959941864, 0.2025347352027893, 0.20365522801876068, -0.09112641960382462, 0.42951130867004395, -0.21723192930221558, 0.08012744039297104, 0.03502564877271652, -0.07400064170360565, -0.1132761612534523, 0.10273274779319763, -0.2681453824043274, -0.023966800421476364, 0.03107331320643425, -0.26202502846717834, -0.6832157969474792, 0.5151451230049133, 0.08529366552829742, 0.1943548321723938, 0.15605388581752777, 0.0973299965262413, 0.3041698634624481, -0.13601164519786835, 0.05923864245414734, -0.34991082549095154, 0.1526341438293457, 0.4043387472629547, -0.08495135605335236, 0.39544472098350525, -0.44435831904411316, 0.31106582283973694, 0.3362714648246765, 0.21149881184101105, -0.012204982340335846, -0.01001947745680809, 0.08437223732471466, -0.10399963706731796, -0.09848971664905548, 0.1865357607603073, 0.2919151186943054, 0.32890236377716064, -0.1092546135187149, 0.2409786880016327, 0.08678142726421356, -0.01578328385949135, 0.36541616916656494, 0.14731070399284363, -0.06522592157125473, 0.26725754141807556, 0.06678054481744766, -0.018677063286304474, -0.1898951232433319, 0.03787140175700188, 0.1474064588546753, 0.3304731547832489, -0.2640742063522339, -0.17580048739910126, -0.15647569298744202, -0.3624061048030853, -0.027385249733924866, 0.10304753482341766, -0.16602981090545654, -0.15555794537067413, 0.3115566372871399, 0.12449875473976135, -0.18000437319278717, 0.21889092028141022, 0.08483034372329712, 0.3673359155654907, 0.14312323927879333, -0.09538083523511887, -0.11205019056797028, -0.2063351422548294, -0.028790727257728577, 0.178444042801857, -0.07035917788743973, -0.2086101621389389, 0.3241442143917084, -0.02176523022353649, 0.07215012609958649, -0.3748774230480194, -0.25177299976348877, -0.027227088809013367, -0.17696848511695862, -0.1816345602273941, 0.37799689173698425, 0.04304194450378418, -0.29562902450561523, -0.2044423669576645, 0.27571359276771545, 0.21351765096187592, -0.12521997094154358, -0.06807956099510193, -0.14473071694374084, -0.04714210703969002, 0.028044145554304123, -0.23238396644592285, 0.024631815031170845, -0.4133715331554413, 0.6340689659118652, -0.32697927951812744, 0.3230651021003723, 0.2735501229763031, -0.0851762667298317, -0.10047642141580582, 0.039106838405132294, 0.21493074297904968, -0.3326672613620758, -0.3198870122432709, 0.07537560164928436, 0.2795584499835968, -0.316890686750412, -0.03665763884782791, -0.23574399948120117, -0.11400145292282104, 0.04185657203197479, -0.08490309864282608, -0.1571420282125473, -0.17029651999473572, 0.15382760763168335, 0.032807573676109314, -0.09558887034654617, 0.20046114921569824, 0.09663014858961105, -0.3007948696613312, -0.09313848614692688, -0.28214165568351746, 0.18258076906204224, 0.013046575710177422, 0.1632336527109146, -0.2713761031627655, 0.39437776803970337, 0.1845187097787857, 0.39814525842666626, 0.2416578233242035, 0.274962842464447, -0.12874475121498108, -0.09650073945522308, 0.33645182847976685, 0.017106875777244568, -0.4401305019855499, -0.45210668444633484, -0.12162241339683533, -0.01158235315233469, 0.2033945471048355, 0.03893355652689934, 0.13470551371574402, -0.05532102659344673, 0.33511993288993835, -0.18636712431907654, -0.27732908725738525, -0.06710606068372726, -0.01113814115524292, 0.08273059129714966, 0.183281809091568, 0.11740805953741074, -0.08087243139743805, 0.07795510441064835, -0.18733319640159607, -0.04180055856704712, -0.2548938989639282, -0.30898383259773254, -0.35097548365592957, -0.6504387855529785, -0.24473410844802856, 0.07827300578355789, 0.06545668095350266, 0.3725445866584778, 0.13305094838142395, -0.2063693404197693, 0.20059379935264587, -0.0225948765873909, 0.9961580634117126, -0.03866153210401535, -0.34145087003707886, 0.43824100494384766, -0.02415435202419758, -0.0864628255367279, 0.07655365765094757, 0.10868924856185913, 0.05166042968630791, 0.28570756316185, 0.4568758010864258, -0.2137792855501175, -0.12664183974266052, 0.23578426241874695, 0.05646607652306557, -0.2766887843608856, -0.25106024742126465, -0.030670439824461937, -0.04691506177186966, -0.5326008796691895, 0.08796986937522888, 0.01239619217813015, 0.21232841908931732, 0.04112968593835831, -0.0010667331516742706, 0.056073471903800964, -0.006184376776218414, 0.36797088384628296, -0.11801135540008545, 0.18585330247879028, 0.21593348681926727, 0.5088947415351868, 0.10454636812210083, 0.06789110600948334, 0.04855532944202423, 0.8698262572288513, 0.013997651636600494, -0.330146849155426, -0.34056055545806885, -0.15740914642810822, 0.060189224779605865, 0.33161860704421997, 0.0984145775437355, 0.393252968788147, 0.03915762901306152, -0.04230906069278717, 0.023937109857797623, 0.04028010368347168, 0.06396463513374329, -0.18456046283245087, -0.4531325697898865, -0.2575564682483673, 0.2535777986049652, 0.018687378615140915, -0.1845218539237976, 0.3588121235370636, 0.270105242729187, -0.10861270129680634, 0.16383442282676697, -0.11879093199968338, 1.0899394750595093, -0.20845530927181244, 0.13740523159503937, -0.14728233218193054, -0.25706586241722107, 0.2089620977640152, -0.006562128663063049, -0.09014051407575607, -0.5552656650543213, -0.3185834586620331, 0.10835036635398865, -0.10500216484069824, -0.04033878445625305, 0.09141349792480469, -0.38320857286453247, -0.025510769337415695, 0.2721347212791443, 0.0235255379229784, 0.0963861271739006, 0.19474151730537415, -0.04691534489393234, -0.23288197815418243, 0.03324249014258385, 0.028243113309144974, 0.05156750604510307, -0.05970267578959465, -0.030397929251194, 0.029955681413412094, -0.016639120876789093, -0.38123899698257446, -0.3194943964481354, -0.04324031248688698, -0.035800497978925705, 0.2432984709739685, 0.1121913492679596, -0.32335689663887024, -0.15364494919776917, -0.0923287570476532, 0.17442315816879272, 0.13490888476371765, -0.1358221471309662, 0.25040632486343384, 0.3717963695526123, 0.3880828320980072, 0.08364906162023544, -0.17528051137924194, 0.3060897886753082, 0.05223541706800461, 0.008058175444602966, 0.0272514671087265, -0.09139232337474823, -0.16898059844970703, -0.4044993817806244, 0.07321310043334961, 0.1774730533361435, -0.18990670144557953, 0.145663782954216, 0.1759587526321411, -0.18132072687149048, -0.43026891350746155, 0.13970473408699036, 0.14388063549995422, 0.011710447259247303, 0.3200938403606415, -0.3292326331138611, -0.268606960773468, 0.020801514387130737, 0.35439056158065796, 0.590579092502594, -0.08644762635231018, 0.31098127365112305, 0.1196000874042511, -0.20903810858726501, -0.3187286853790283, 0.20316779613494873, -0.06772438436746597, -0.19873657822608948, 0.3303902745246887, -0.14705528318881989, -0.17763292789459229, 0.0832945927977562, 0.5787575840950012, 0.0556972399353981, 0.23030298948287964, 0.14053377509117126, 0.10891273617744446, -0.2978813350200653, 0.06899311393499374, 0.03776039183139801, 0.2760273218154907, 0.1404140293598175, 0.2582862079143524, -0.04679691419005394, 0.26909559965133667, -0.36773961782455444, -0.2740849554538727, -0.11246300488710403, -0.016404490917921066, 0.06489264965057373, 0.14065882563591003, -0.0870053768157959, -0.12728853523731232, 0.20400577783584595, -0.0929989367723465, 0.0417192205786705, -0.2993943393230438, -0.14242637157440186, 0.10851903259754181, 0.1736210286617279, 0.18191500008106232, 0.200490802526474, -0.05898216366767883, -0.017726510763168335, -0.119652658700943, 0.01422811672091484, 0.3499681353569031, -0.04144514352083206, 0.1825258880853653, 0.17624299228191376, 0.07351510226726532, -0.05965609475970268, -0.2213248312473297, 0.14860835671424866, 0.16641226410865784, -0.08406634628772736, 0.12952914834022522, -0.4264979660511017, -0.14322808384895325, 0.04746076464653015, -0.05442539602518082, -0.026879630982875824, 0.016004085540771484, 0.1932562291622162, -0.04417111724615097, -0.32344624400138855, 0.23079654574394226, 0.4398805797100067, 0.22619615495204926, -0.2645718455314636, -0.05785574018955231, -0.1409207582473755, 0.25344976782798767, -0.36950159072875977, -0.2380766123533249, -0.13065467774868011, -0.19448435306549072, 0.2649312913417816, 0.13546092808246613, 0.0043988339602947235, -0.1595805287361145, 0.23022766411304474, 0.06611210852861404, 0.2609182894229889, -0.09719675779342651, 0.24845339357852936, 0.359750896692276, 0.0732523649930954, -0.24448363482952118, 0.1407744586467743, 0.2790250778198242, 0.3291552662849426, 0.4007401466369629, 0.05699422210454941, 0.13801546394824982, 0.5106127858161926, 0.2845452129840851, 0.1839328110218048, -0.09510774910449982, 0.6323805451393127, -0.03767850995063782, -0.1094781756401062, -0.2632701098918915, 0.08968018740415573, -0.14020705223083496, -0.2519455552101135, 0.10658025741577148, 0.05072356015443802, 0.03130389750003815, 0.0009379833936691284, -0.10025306046009064, -0.09981677681207657, -0.04239926487207413, 0.15206831693649292, -0.1274936944246292, -0.01975354179739952, -0.18641690909862518, -0.01867605745792389, -0.2730593681335449, 0.4156807065010071, -0.33740758895874023, 0.18220287561416626, -0.20728754997253418, 0.27995994687080383, -0.5558090806007385, 0.015465653501451015, 0.21780700981616974, 0.036344483494758606, 0.49480897188186646, 0.43784257769584656, 0.4573378562927246, 0.34803566336631775, 0.1355864256620407, 0.15819382667541504, -0.3492316007614136, -0.06273538619279861, -0.021602284163236618, 0.16281095147132874, -0.03570002317428589, -0.29752540588378906, 0.22391925752162933, 0.13758811354637146, -0.1282038688659668, -0.13338391482830048, 0.1324068158864975, 0.11893466114997864, -0.23964516818523407, 0.20710931718349457, 0.3357778489589691, -0.4626654386520386, 0.2789788842201233, 0.14990296959877014, -0.04740305244922638, -0.289844274520874, 0.5416856408119202, 0.3856406509876251, 0.18604078888893127, -0.09566016495227814, 0.14152741432189941, 0.21624889969825745, 0.25967836380004883, 0.11361987143754959, -0.017364442348480225, -0.0770425945520401, -0.011385641992092133, -0.4051263630390167, 0.21140310168266296, -0.10688397288322449, -0.030164005234837532, 0.29994818568229675, 0.4357970654964447, 0.1160115897655487, 0.004476679489016533, 0.04504544287919998, -0.07661469280719757, -0.44011300802230835, -0.11710576713085175, -0.21668782830238342, -0.2710714340209961, 0.2661837339401245, -0.17215389013290405, 0.050521768629550934, -0.24214670062065125, 0.3955613970756531, 0.11233857274055481, 0.11136918514966965, -0.2879735827445984, -0.09452586621046066, 0.4166812300682068, 0.08479955047369003, -0.18993350863456726, 0.0949319452047348, 0.10085121542215347, 0.06001124531030655, 0.0008448529988527298, 0.10486064851284027, -0.108040951192379, -0.3042207956314087, 0.3078828454017639, 0.25666531920433044, -0.06716480106115341, 0.08450713753700256, -0.1463940143585205, 0.16249418258666992, -0.037317581474781036, -0.08495359867811203, -0.3846025764942169, -0.3020491898059845, 0.29687267541885376, 0.2293108105659485, 0.3247985541820526, -0.4498938024044037, 0.1955873668193817, 0.0971737951040268, 0.12994731962680817, -0.3627691864967346, -0.5715395212173462, 0.5387083292007446, -0.03798293694853783, -0.3916269540786743, -0.10538934916257858, 0.3323850631713867, -0.06304735690355301, 0.1995401382446289, -0.36985287070274353, -0.20538488030433655, 0.5081020593643188, -0.04316537082195282, -0.13775081932544708, 0.1475926786661148, -0.10736757516860962, -0.008371513336896896, -0.12039580941200256, -0.14208950102329254, -0.008995652198791504, -0.3502116799354553, -0.038141362369060516, -0.1593858003616333 ]
https://github.com/huggingface/datasets/pull/2163
Concat only unique fields in DatasetInfo.from_merge
Hi, let's see what @lhoestq thinks. Although my approach adds more code, it's more readable IMO.
I thought someone from the community with less experience would be interested in fixing this issue, but that wasn't the case. Fixes #2103
16
text: Concat only unique fields in DatasetInfo.from_merge I thought someone from the community with less experience would be interested in fixing this issue, but that wasn't the case. Fixes #2103 Hi, let's see what @lhoestq thinks. Although my approach adds more code, it's more readable IMO.
[ -0.16040842235088348, 0.05027249455451965, -0.10084730386734009, -0.12915877997875214, 0.1066926047205925, -0.07115394622087479, 0.16900667548179626, 0.42046430706977844, -0.3903625011444092, -0.027674198150634766, 0.02910202369093895, 0.21186991035938263, 0.23567940294742584, 0.2383168786764145, -0.33982184529304504, 0.2672223448753357, 0.0417068749666214, 0.20261354744434357, -0.23537075519561768, -0.17032289505004883, -0.3393738567829132, 0.1655263751745224, -0.09276168048381805, -0.017486363649368286, -0.3844046890735626, 0.16741983592510223, 0.011703448370099068, 0.32963356375694275, -0.19273436069488525, 0.05128571391105652, 0.03192894905805588, 0.4554784595966339, -0.4281591475009918, 0.053794946521520615, -0.00009814215445658192, -0.1561468243598938, 0.02634890377521515, 0.009103791788220406, -0.17044571042060852, -0.025204867124557495, -0.3815882205963135, -0.06909970194101334, -0.028979014605283737, -0.02608610689640045, -0.05016634613275528, 0.08431674540042877, -0.13737064599990845, -0.39051058888435364, 0.3293937146663666, 0.07786377519369125, 0.32073649764060974, -0.1963590830564499, -0.03538835793733597, -0.17193631827831268, -0.09995237737894058, 0.20688886940479279, -0.08031094074249268, -0.1156633198261261, 0.12467285990715027, -0.21358881890773773, 0.15932878851890564, 0.4651019275188446, 0.008344458416104317, -0.06519630551338196, 0.13904380798339844, -0.0771275982260704, -0.19853433966636658, -0.0539248064160347, 0.09439931809902191, 0.19504687190055847, 0.14450594782829285, -0.29710978269577026, -0.21112608909606934, -0.18699383735656738, 0.06251754611730576, -0.2867356836795807, 0.06307945400476456, -0.05721970647573471, -0.030312463641166687, 0.1189456582069397, -0.23597954213619232, -0.071810282766819, -0.05413840711116791, -0.19057883322238922, -0.1616232991218567, 0.028465531766414642, 0.13379240036010742, -0.04923095554113388, 0.2209319919347763, -0.08485274761915207, -0.07945720106363297, 0.2729022204875946, -0.25091448426246643, -0.02179737761616707, -0.4814770817756653, -0.13825112581253052, -0.08715485781431198, -0.3520343601703644, 0.3610936403274536, 0.05020633712410927, 0.005396355874836445, 0.18072503805160522, 0.0816231369972229, 0.06326518952846527, 0.36087578535079956, 0.10146838426589966, 0.3696131408214569, 0.1295720934867859, 0.08532516658306122, -0.36657050251960754, -0.38614779710769653, 0.17332831025123596, 0.05315463989973068, -0.20915140211582184, -0.09190408140420914, 0.07866139709949493, 0.3660266399383545, -0.05919898301362991, -0.33325308561325073, 0.2265535295009613, -0.11324558407068253, -0.26668769121170044, -0.06925792247056961, -0.021865203976631165, 0.1565147489309311, 0.2191980481147766, 0.1747758984565735, 0.09806688874959946, 0.031595826148986816, -0.4897182583808899, -0.2856278121471405, 0.05247333645820618, -0.27068737149238586, 0.03004441224038601, 0.1253947615623474, -0.17704831063747406, -0.15092559158802032, 0.28335490822792053, 0.038626350462436676, -0.21014103293418884, -0.10677064955234528, 0.07902736961841583, 0.0714561715722084, 0.10324081778526306, 0.09377682209014893, 0.11045718938112259, 0.3858877420425415, -0.4351400136947632, 0.06497383862733841, 0.19227334856987, -0.014315158128738403, -0.2932709753513336, -0.49762165546417236, 0.4766075313091278, 0.033627357333898544, -0.04340282827615738, 0.19290867447853088, 0.2575841248035431, -0.0723455473780632, 0.12550948560237885, 0.13050736486911774, 0.2364669144153595, -0.1140068992972374, -0.03379986062645912, -0.05898429453372955, 0.19479534029960632, -0.3612107038497925, 0.16282236576080322, -0.0409967303276062, -0.1991162747144699, 0.12553328275680542, 0.28299492597579956, -0.07508796453475952, 0.08559665083885193, 0.0655440017580986, 0.14819873869419098, 0.38971972465515137, 0.02662217989563942, -0.12508410215377808, 0.2223568856716156, -0.24648012220859528, -0.12954919040203094, 0.17419695854187012, -0.08659078925848007, 0.08423839509487152, 0.01188512984663248, 0.3768165409564972, 0.05920219048857689, -0.07341548055410385, 0.035725489258766174, -0.2967014014720917, -0.14971913397312164, -0.028083883225917816, -0.1255233883857727, 0.0007551535964012146, 0.18590128421783447, 0.12435700744390488, -0.17725904285907745, 0.3313438296318054, -0.1227853000164032, -0.20649218559265137, 0.37469911575317383, 0.2896559536457062, -0.27118784189224243, -0.02189895510673523, 0.04626043885946274, -0.39816975593566895, 0.06363720446825027, 0.04535198211669922, 0.01795598864555359, 0.25842922925949097, -0.4015920162200928, -0.24665987491607666, 0.15677668154239655, -0.0485161654651165, 0.0828673392534256, 0.29281166195869446, 0.021815363317728043, -0.1771877557039261, -0.2725263833999634, -0.3822047710418701, 0.4638633728027344, -0.018510030582547188, -0.0523395761847496, -0.08349728584289551, -0.08482999354600906, -0.20277179777622223, 0.1186380684375763, -0.012813471257686615, 0.20422548055648804, 0.21873855590820312, 0.15623998641967773, -0.02190224453806877, 0.3896045386791229, -0.24174557626247406, 0.16025450825691223, 0.3111211359500885, -0.06406190991401672, 0.026552746072411537, 0.05304135009646416, -0.2983523905277252, -0.15631920099258423, -0.04291596636176109, -0.17309997975826263, -0.44226309657096863, 0.22041834890842438, 0.13087084889411926, 0.04339216277003288, 0.19909630715847015, -0.04915253072977066, 0.15248779952526093, -0.2549769878387451, 0.15475647151470184, -0.3438999354839325, 0.02616741694509983, 0.18252117931842804, -0.09711521863937378, 0.5227910876274109, -0.46718207001686096, 0.42178651690483093, 0.2479686737060547, 0.07963313162326813, -0.026381157338619232, 0.05271671712398529, 0.10014845430850983, -0.05176553875207901, -0.1091299057006836, 0.3212741017341614, 0.29080045223236084, 0.2894892692565918, 0.039482876658439636, 0.28738296031951904, 0.0357915423810482, -0.13154062628746033, 0.37061288952827454, -0.0018467679619789124, 0.08359432220458984, 0.3172442615032196, 0.21287240087985992, -0.01053606253117323, -0.3401113450527191, 0.2061927765607834, 0.10414733737707138, 0.23206835985183716, -0.22448502480983734, -0.08827270567417145, -0.32841479778289795, -0.2463865876197815, -0.051318518817424774, 0.022535130381584167, -0.15315884351730347, -0.26516193151474, 0.35373544692993164, 0.4124133586883545, -0.3259506821632385, 0.10954522341489792, 0.01065981388092041, 0.42320719361305237, 0.07524988055229187, 0.08336488157510757, -0.2791803479194641, -0.05556950345635414, -0.1249241754412651, 0.3048553466796875, -0.016880681738257408, -0.15530671179294586, 0.22083981335163116, 0.041563451290130615, 0.2785145044326782, -0.4824199378490448, -0.3906160891056061, 0.0460270456969738, -0.1746436059474945, -0.10028684139251709, 0.1904049515724182, 0.00813128799200058, -0.28751128911972046, -0.5010948181152344, 0.21656878292560577, 0.12147019803524017, -0.11837682127952576, 0.002113664522767067, 0.01015243586152792, 0.01676616631448269, -0.22832351922988892, -0.3825048506259918, 0.09944970905780792, -0.4814571440219879, 0.34634143114089966, -0.21966902911663055, 0.21544058620929718, 0.32727569341659546, -0.01324213482439518, -0.22533591091632843, 0.05821448937058449, -0.06731708347797394, -0.4488067030906677, -0.1975429654121399, 0.15098361670970917, 0.09163276106119156, -0.2906295955181122, 0.0829714685678482, 0.016870059072971344, 0.03107062168419361, 0.06135120615363121, -0.0469958521425724, -0.037744585424661636, 0.10712150484323502, -0.01952059380710125, -0.12666372954845428, -0.009418724104762077, 0.024360790848731995, 0.14832749962806702, -0.421409547328949, -0.09194232523441315, -0.0727756917476654, 0.1738724708557129, -0.045307472348213196, 0.19033829867839813, -0.40047723054885864, 0.2433428168296814, 0.13454070687294006, 0.3490058183670044, 0.12638384103775024, 0.1824590414762497, 0.040394723415374756, -0.18628700077533722, 0.3999268710613251, 0.08125678449869156, -0.44314271211624146, -0.15637575089931488, -0.07641485333442688, -0.10195944458246231, 0.19355225563049316, 0.013742731884121895, 0.08433324843645096, -0.06849181652069092, 0.24428638815879822, -0.24608024954795837, -0.34847497940063477, 0.03916497156023979, 0.11013051867485046, -0.09911122173070908, 0.16360995173454285, -0.04758378118276596, 0.029087718576192856, 0.0840323269367218, -0.11653885245323181, -0.046876609325408936, -0.20693320035934448, -0.17477403581142426, -0.016877975314855576, -0.31566762924194336, -0.19987979531288147, 0.042193517088890076, -0.10422651469707489, 0.3019762635231018, -0.05616321414709091, -0.4198477566242218, 0.06376945227384567, 0.07820738852024078, 0.9089457988739014, -0.11872784048318863, -0.3548819422721863, 0.2768246829509735, 0.07930764555931091, 0.12909214198589325, 0.05403731390833855, 0.2744107246398926, -0.071125328540802, 0.3823279142379761, 0.25656747817993164, -0.09442388266324997, -0.16259723901748657, 0.42467057704925537, -0.027857359498739243, -0.10887592285871506, -0.15248198807239532, -0.060849230736494064, -0.1356489062309265, -0.5415825247764587, -0.07353775948286057, 0.12914614379405975, 0.02309797704219818, -0.04668290168046951, -0.05877746269106865, 0.1133628860116005, -0.08460959792137146, 0.2960696816444397, 0.005547504872083664, 0.14012554287910461, 0.1323672980070114, 0.279815673828125, 0.06794904917478561, 0.19202370941638947, 0.09805390983819962, 0.6122261881828308, -0.06178192421793938, -0.24139249324798584, -0.09878671914339066, -0.28871554136276245, 0.20340396463871002, 0.2547968327999115, 0.013944032602012157, 0.2765849530696869, -0.010591134428977966, 0.07384391874074936, 0.09640572220087051, 0.1990216225385666, 0.0006115548312664032, -0.26668137311935425, -0.2043401300907135, -0.03488345071673393, 0.35515597462654114, 0.15374432504177094, -0.19033300876617432, 0.5096306800842285, 0.07317227870225906, -0.15919315814971924, -0.17150498926639557, -0.1106162741780281, 0.8691413998603821, -0.10670925676822662, -0.05779976770281792, -0.11253917962312698, -0.27765971422195435, 0.14457747340202332, -0.1543356478214264, -0.0697171688079834, -0.44226932525634766, -0.3209652006626129, 0.09127862006425858, -0.023945298045873642, -0.020366139709949493, 0.16412289440631866, -0.2949063777923584, 0.0072329286485910416, -0.06336633116006851, 0.3041466176509857, 0.2006361037492752, 0.08830870687961578, 0.005273434333503246, -0.12715338170528412, 0.08509556204080582, 0.2124154269695282, -0.014415338635444641, -0.018672075122594833, -0.06370691955089569, -0.2183743566274643, 0.10868631303310394, -0.3063797354698181, -0.02198486030101776, 0.31344011425971985, 0.06087423488497734, 0.15559543669223785, 0.16806185245513916, -0.07946784794330597, -0.2380361557006836, -0.19301746785640717, 0.24260419607162476, 0.009142640978097916, -0.023515136912465096, 0.14706255495548248, 0.3477890193462372, 0.4913266599178314, -0.10805364698171616, -0.13122178614139557, 0.2649012506008148, -0.046079281717538834, -0.03346741944551468, -0.0722208097577095, -0.03619915992021561, -0.08423395454883575, -0.22055652737617493, 0.2858660817146301, 0.1661195158958435, -0.20631209015846252, 0.26227572560310364, 0.1481378972530365, -0.11515402793884277, -0.3916953206062317, 0.2546388506889343, -0.0582449734210968, 0.08417685329914093, 0.0985734611749649, -0.2626793086528778, -0.18602825701236725, 0.016524532809853554, 0.31992796063423157, 0.25073137879371643, -0.19823385775089264, 0.14659662544727325, 0.015369463711977005, -0.1613920032978058, -0.40349921584129333, 0.021879300475120544, 0.12837465107440948, -0.2372104823589325, 0.2045568972826004, -0.24741284549236298, -0.20348724722862244, 0.3695356845855713, 0.4431043565273285, 0.02964859828352928, 0.32755357027053833, 0.10313345491886139, -0.014499377459287643, -0.2826232314109802, -0.04442612826824188, -0.1407698094844818, 0.23771338164806366, 0.20761209726333618, 0.2949734926223755, 0.05034676939249039, 0.1240740418434143, -0.506365180015564, -0.20118644833564758, -0.12090077251195908, -0.1014021784067154, -0.020145822316408157, -0.026693828403949738, -0.11747729778289795, -0.18951672315597534, 0.34059417247772217, 0.040771447122097015, -0.06114637851715088, -0.40226927399635315, -0.10873062908649445, 0.07648873329162598, 0.11573334038257599, 0.13771717250347137, 0.06976719945669174, 0.06081455200910568, -0.05583549663424492, 0.11007595807313919, -0.051611773669719696, 0.11970528215169907, 0.06378116458654404, -0.003290293738245964, 0.01963433250784874, -0.04543507844209671, -0.011672228574752808, -0.34679776430130005, 0.08066427707672119, 0.22556383907794952, -0.1741492599248886, 0.15730512142181396, -0.4499712586402893, -0.07428629696369171, 0.08277908712625504, -0.10774055868387222, 0.12898801267147064, 0.06756967306137085, 0.2259516716003418, -0.14271937310695648, -0.4527120590209961, 0.23174168169498444, 0.3691972494125366, 0.06144887953996658, -0.3457154333591461, -0.15298745036125183, -0.16605931520462036, 0.40957292914390564, -0.39599141478538513, -0.221299946308136, -0.03666473552584648, -0.1758350133895874, 0.1606331765651703, 0.0843636766076088, 0.2340390384197235, -0.32510966062545776, 0.2951204776763916, 0.15122643113136292, 0.2206292748451233, -0.3153567314147949, 0.2174523025751114, 0.3792662024497986, -0.1897202879190445, -0.12670820951461792, 0.1029738262295723, 0.29068395495414734, 0.11674557626247406, 0.2837114930152893, 0.05732645094394684, 0.08028832823038101, 0.14497452974319458, 0.05932803079485893, 0.0624811127781868, -0.07155872881412506, 0.6393656730651855, 0.19012480974197388, -0.06492312252521515, -0.10645744949579239, 0.21382051706314087, -0.13416466116905212, -0.1483987420797348, -0.0421493798494339, 0.20567891001701355, 0.12786169350147247, 0.09368389844894409, 0.16751377284526825, -0.08154293894767761, -0.058059025555849075, -0.140840083360672, -0.12808401882648468, 0.05947059765458107, -0.10358819365501404, 0.2517201900482178, -0.03756114840507507, 0.23025622963905334, -0.1817518025636673, -0.05663944035768509, -0.05187515914440155, 0.22451576590538025, -0.43748196959495544, 0.09410905838012695, 0.27261149883270264, -0.2836550176143646, 0.38131824135780334, 0.24542170763015747, 0.34338146448135376, 0.2981645464897156, 0.33690527081489563, 0.057033147662878036, -0.20265671610832214, -0.14236387610435486, -0.06916315853595734, 0.06433163583278656, 0.1653098613023758, -0.14406393468379974, 0.13050878047943115, 0.28823867440223694, -0.28111329674720764, -0.027250763028860092, 0.07900754362344742, 0.20186617970466614, -0.20039305090904236, 0.05209340155124664, 0.36137428879737854, -0.36661145091056824, 0.1065971627831459, -0.07842449098825455, -0.08440449833869934, -0.24386771023273468, 0.5595945715904236, 0.2868858277797699, 0.15424183011054993, -0.1124056726694107, 0.18915992975234985, 0.43341147899627686, 0.16645915806293488, -0.047992754727602005, -0.20679008960723877, -0.09676506370306015, -0.18478083610534668, -0.46532052755355835, 0.3136730194091797, 0.025923604145646095, 0.09772580862045288, 0.22691459953784943, 0.29660263657569885, 0.2597745954990387, 0.022420424968004227, 0.18387119472026825, -0.19198685884475708, -0.23244693875312805, -0.1893186867237091, -0.2979343831539154, -0.09361612796783447, 0.18106070160865784, -0.19071657955646515, 0.12165288627147675, -0.12300947308540344, 0.5201323628425598, 0.09360404312610626, 0.27129361033439636, -0.20109303295612335, -0.09126846492290497, 0.28093549609184265, -0.15861426293849945, -0.15148136019706726, 0.08748284727334976, 0.013038702309131622, -0.17605522274971008, -0.04253751039505005, 0.07149872183799744, -0.18415647745132446, -0.3231240212917328, 0.18017782270908356, 0.33600789308547974, -0.01185701135545969, 0.20146571099758148, -0.11423179507255554, -0.1014670878648758, -0.10685916244983673, 0.05767330527305603, -0.20013868808746338, -0.41939660906791687, 0.26798996329307556, 0.338043212890625, 0.2570372223854065, -0.24674731492996216, 0.17895495891571045, 0.047493238002061844, 0.19962850213050842, -0.2731934189796448, -0.5659462809562683, 0.49545198678970337, 0.07983819395303726, -0.5431357026100159, -0.1527058184146881, 0.4617985188961029, 0.035389985889196396, 0.12645572423934937, -0.3756953775882721, -0.22521087527275085, 0.2632799446582794, -0.1477983295917511, -0.055902402848005295, 0.22923023998737335, -0.11633351445198059, -0.07164644449949265, 0.06653144955635071, -0.14750343561172485, 0.19711941480636597, -0.22048519551753998, 0.21014150977134705, -0.12462272495031357 ]
https://github.com/huggingface/datasets/pull/2155
Add table classes to the documentation
Just note that docstrings injected from PyArrow do not follow the same convention for formatting types in `Args` or `Returns` as we do... Not a big problem, anyway! 😄
Following #2025 , I added the table classes to the documentation cc @albertvillanova
29
text: Add table classes to the documentation Following #2025 , I added the table classes to the documentation cc @albertvillanova Just note that docstrings injected from PyArrow do not follow the same convention for formatting types in `Args` or `Returns` as we do... Not a big problem, anyway! 😄
[ 0.0006596222519874573, 0.21466052532196045, -0.11961650848388672, -0.026455290615558624, 0.2853037714958191, -0.09480850398540497, 0.19942478835582733, 0.5077618360519409, -0.5646567344665527, 0.3263294994831085, 0.014680189080536366, 0.49960121512413025, 0.03437406197190285, 0.0077786874026060104, 0.4665544033050537, -0.10381895303726196, 0.1763864904642105, 0.3609936237335205, 0.11810685694217682, 0.11390669643878937, -0.20280584692955017, -0.006963089108467102, -0.11071150004863739, 0.16586235165596008, -0.17533518373966217, 0.0126545000821352, -0.024695344269275665, -0.04551709443330765, -0.44455215334892273, -0.5148656964302063, 0.27715280652046204, 0.14819282293319702, 0.08973828703165054, 0.04419136792421341, -0.00010427022789372131, 0.041712626814842224, 0.1945887953042984, -0.009312327951192856, -0.05618799477815628, 0.1573089212179184, 0.2609492242336273, 0.06507138907909393, 0.2946193218231201, -0.18802136182785034, -0.28820547461509705, -0.22196488082408905, 0.053536489605903625, 0.523325502872467, -0.15595068037509918, 0.2937033474445343, 0.30153346061706543, 0.09624654799699783, 0.25173136591911316, -0.05252020061016083, 0.6360145211219788, -0.0012740343809127808, -0.23987506330013275, 0.2999301850795746, 0.3498111963272095, -0.10562852025032043, -0.3045441806316376, 0.12005594372749329, -0.029250232502818108, -0.12274029850959778, 0.13034921884536743, 0.20745213329792023, 0.2829785943031311, 0.17098207771778107, -0.0884423777461052, 0.05421143397688866, 0.4906623065471649, -0.37964048981666565, 0.02138185314834118, 0.11595965176820755, 0.1743587851524353, -0.453434556722641, 0.0613085962831974, 0.2388550192117691, -0.044261008501052856, 0.21893516182899475, 0.18565550446510315, 0.1125260591506958, -0.455016553401947, 0.20266146957874298, 0.07101799547672272, 0.12431931495666504, -0.047911178320646286, -0.17025133967399597, -0.04173445329070091, -0.1380520462989807, 0.2843906581401825, 0.18228945136070251, -0.1757899969816208, -0.04745962843298912, 0.23412860929965973, 0.002384539693593979, 0.2689704895019531, 0.1772327423095703, 0.4492356479167938, -0.0826444998383522, 0.08380694687366486, 0.20643943548202515, 0.4531235992908478, 0.08634675294160843, -0.19830799102783203, 0.009442904964089394, 0.22144362330436707, 0.1766037493944168, 0.26887527108192444, 0.19580228626728058, -0.10656450688838959, -0.07223223894834518, -0.10631969571113586, 0.0635094940662384, 0.11006878316402435, -0.02468768134713173, 0.15058892965316772, -0.13320086896419525, -0.02473866194486618, 0.16266922652721405, -0.007956858724355698, -0.008349603973329067, -0.18002308905124664, 0.44194912910461426, 0.09288465976715088, -0.10157524794340134, 0.27856695652008057, 0.0940852016210556, -0.23489628732204437, -0.2316444218158722, -0.1768711656332016, 0.1159844696521759, -0.29789870977401733, 0.0946461632847786, 0.34308937191963196, 0.17751695215702057, -0.11564624309539795, 0.23294752836227417, 0.25709691643714905, -0.0017224475741386414, -0.21522118151187897, 0.19079060852527618, 0.21862119436264038, 0.21918118000030518, -0.07374937832355499, -0.24905933439731598, -0.03903763368725777, -0.28147321939468384, -0.19542831182479858, 0.23454543948173523, -0.08373091369867325, -0.22192522883415222, -0.32514598965644836, 0.33444836735725403, 0.17331914603710175, -0.04594679921865463, 0.1486743986606598, 0.16528202593326569, 0.2067224681377411, -0.17766977846622467, 0.08882380276918411, -0.036614738404750824, 0.08041615784168243, -0.3067247271537781, 0.10287871211767197, -0.04291464388370514, -0.17910315096378326, 0.0022742003202438354, 0.3503803610801697, -0.02907959744334221, 0.1380533128976822, -0.15536990761756897, -0.2375612109899521, 0.304513543844223, -0.05464553087949753, 0.38469046354293823, 0.2131701409816742, -0.13019326329231262, -0.20447063446044922, -0.39858487248420715, 0.14026100933551788, -0.12879319489002228, 0.1433941125869751, -0.17632007598876953, 0.3330879807472229, 0.10590341687202454, 0.19819705188274384, 0.04918736591935158, -0.07466872036457062, 0.1651632934808731, -0.2056930959224701, -0.008687007240951061, 0.1609422117471695, 0.041022393852472305, -0.042163822799921036, -0.15870487689971924, -0.08841236680746078, -0.20069679617881775, 0.36741942167282104, -0.28372326493263245, -0.26952940225601196, -0.06039194017648697, 0.40508145093917847, 0.07355818152427673, 0.17480158805847168, -0.11301946640014648, -0.1704845130443573, -0.06615003198385239, -0.15384888648986816, 0.36826807260513306, 0.025581277906894684, -0.3621761202812195, 0.054564133286476135, 0.12384595721960068, -0.21348585188388824, -0.11018334329128265, 0.3586350381374359, -0.16679853200912476, 0.04403788223862648, 0.17390534281730652, 0.022052336484193802, -0.3696807026863098, -0.37730738520622253, 0.08888339251279831, 0.1066388338804245, 0.07700330764055252, -0.19927950203418732, -0.3141944408416748, 0.13555178046226501, 0.014303509145975113, 0.17173311114311218, 0.22479726374149323, 0.08719731867313385, 0.221026211977005, 0.3555666506290436, -0.33623337745666504, -0.2087377905845642, 0.38144415616989136, -0.01326393149793148, -0.2827182710170746, -0.12131420522928238, -0.06608119606971741, -0.06114198639988899, -0.05053360015153885, 0.06344951689243317, 0.43101412057876587, 0.1924983114004135, -0.049845434725284576, 0.004395090043544769, -0.14463095366954803, 0.19575177133083344, 0.12058788537979126, -0.07857109606266022, -0.045815736055374146, -0.1861124336719513, 0.11024938523769379, -0.19165723025798798, -0.09217120707035065, -0.2600974440574646, 0.25748762488365173, 0.4375493824481964, -0.15958271920681, 0.24087974429130554, -0.012154493480920792, 0.023478567600250244, -0.09336981922388077, 0.054402321577072144, -0.42010241746902466, 0.10078637301921844, 0.412839412689209, -0.018954109400510788, -0.0964367538690567, -0.4010390341281891, -0.17763766646385193, 0.21376818418502808, -0.07300668954849243, 0.05670919641852379, 0.12896722555160522, 0.2031148374080658, -0.10967696458101273, -0.5131538510322571, 0.2827101945877075, -0.2365415394306183, -0.10887789726257324, -0.44544291496276855, -0.08883052319288254, -0.272744357585907, -0.27420279383659363, 0.1091667115688324, -0.41913795471191406, 0.103594571352005, -0.11943754553794861, 0.4182407259941101, -0.005709175020456314, -0.15475383400917053, 0.24320513010025024, -0.0272984579205513, 0.37082719802856445, 0.018192773684859276, 0.08850076794624329, -0.10097852349281311, -0.09175501018762589, -0.2210460603237152, 0.20416764914989471, -0.02030794695019722, -0.17826811969280243, 0.32744529843330383, -0.23545940220355988, 0.16706837713718414, -0.10176398605108261, -0.6550732254981995, 0.20010250806808472, -0.08824965357780457, 0.113981693983078, 0.4467879831790924, 0.10670667886734009, 0.02875567227602005, -0.16073673963546753, 0.1958608478307724, -0.5072197914123535, -0.2438117265701294, 0.23029370605945587, -0.2107863426208496, -0.10057657957077026, -0.32252630591392517, -0.37004202604293823, 0.10798223316669464, -0.25333595275878906, 0.039754971861839294, 0.1064511388540268, 0.23172889649868011, 0.05400736257433891, 0.10442613810300827, 0.16227111220359802, -0.4310365617275238, 0.3072628676891327, -0.08479456603527069, 0.05433781072497368, 0.2942672371864319, -0.3869023323059082, -0.44272682070732117, -0.07098766416311264, -0.04455844312906265, 0.13136975467205048, -0.15855218470096588, 0.03243409842252731, -0.007931988686323166, 0.08089903742074966, 0.3712397813796997, 0.08737684786319733, 0.10846170037984848, 0.3034057021141052, 0.1578570157289505, -0.18546956777572632, -0.23975256085395813, -0.2857445478439331, -0.016928106546401978, -0.08411231637001038, -0.06073472648859024, -0.32345283031463623, 0.0110598374158144, -0.03257045894861221, 0.31135398149490356, -0.4101111888885498, -0.12959279119968414, 0.12466531246900558, -0.287272185087204, 0.2311738133430481, -0.11700085550546646, 0.11680571734905243, -0.27593791484832764, -0.16789361834526062, -0.02902594767510891, 0.3554966449737549, -0.039242010563611984, -0.34434935450553894, 0.07736890763044357, 0.0011660829186439514, -0.2974974513053894, -0.2834365963935852, 0.2643554210662842, 0.05417102575302124, 0.08901606500148773, -0.05968112498521805, 0.023855753242969513, -0.12949316203594208, -0.09361498057842255, 0.0023824702948331833, 0.05621979385614395, -0.10318762809038162, -0.04182463511824608, -0.13403411209583282, -0.3025476038455963, -0.21077483892440796, 0.2281489372253418, 0.251557320356369, -0.022630397230386734, 0.09277783334255219, -0.33646708726882935, 0.06527022272348404, -0.05290541052818298, 0.21326208114624023, 0.13313667476177216, -0.02578682452440262, 0.3600585162639618, -0.045255839824676514, -0.13190020620822906, -0.2968064844608307, -0.1795554757118225, -0.0318172350525856, -0.0792640745639801, -0.007394909858703613, -0.3493206202983856, 0.048125412315130234, 0.30157652497291565, -0.24138343334197998, 0.014312829822301865, -0.02017958089709282, -0.4210945665836334, -0.28532084822654724, 0.044458866119384766, 0.11206318438053131, 0.35898855328559875, 0.18275293707847595, -0.29615214467048645, -0.11334432661533356, 0.19144824147224426, 0.0487917885184288, -0.06983305513858795, 0.20373468101024628, 0.38191530108451843, -0.32338470220565796, -0.21717166900634766, -0.07952733337879181, -0.02637822926044464, 0.5365490913391113, 0.1964188814163208, -0.27635201811790466, -0.06272302567958832, 0.04859350621700287, -0.23403820395469666, 0.3811296224594116, 0.16939939558506012, -0.00975733995437622, 0.2786716818809509, -0.15637147426605225, -0.21219323575496674, -0.007049418054521084, -0.16213545203208923, 0.10639099776744843, -0.2625027298927307, 0.01131490245461464, -0.19405320286750793, 0.2246248722076416, -0.03085155040025711, -0.03145987167954445, 0.1409914195537567, 0.3086692690849304, -0.31099337339401245, 0.19026508927345276, 0.35717347264289856, 0.8048841953277588, -0.015960291028022766, 0.26448121666908264, 0.39034321904182434, -0.3937862515449524, -0.014680114574730396, -0.4541904330253601, 0.28336048126220703, -0.5015738010406494, -0.02144332230091095, -0.07672374695539474, -0.06512090563774109, -0.04964204132556915, -0.10071702301502228, -0.31009289622306824, -0.20080000162124634, -0.3194727897644043, 0.44614115357398987, 0.1874030977487564, 0.056148119270801544, 0.10817851126194, 0.026325643062591553, -0.2867664098739624, 0.2000836879014969, 0.0333981066942215, -0.4632367193698883, -0.256945937871933, -0.19318675994873047, -0.06173783168196678, -0.3238447308540344, -0.07495957612991333, 0.08939388394355774, -0.18896330893039703, 0.0670391172170639, 0.1799754649400711, 0.025734037160873413, -0.20020660758018494, 0.14141614735126495, -0.23394261300563812, 0.004326328635215759, -0.24465617537498474, 0.05689758062362671, 0.08480098843574524, 0.08858741074800491, -0.15281912684440613, 0.21384023129940033, 0.21758930385112762, -0.17969077825546265, -0.13422948122024536, 0.011159617453813553, 0.05884336680173874, -0.21957261860370636, -0.4087417721748352, 0.0036476626992225647, 0.1911061853170395, -0.31335413455963135, 0.24587009847164154, -0.1701490879058838, -0.03243650496006012, -0.24366649985313416, 0.25846266746520996, 0.08393064141273499, -0.009148938581347466, 0.1381569355726242, 0.3821631073951721, -0.09127688407897949, -0.009953655302524567, 0.031863272190093994, 0.22467204928398132, 0.36417156457901, -0.011156708002090454, 0.2560195326805115, -0.34808433055877686, -0.3054862916469574, -0.06766408681869507, 0.32610654830932617, -0.47606194019317627, -0.03411053493618965, 0.19928567111492157, 0.0500999391078949, 0.15676376223564148, 0.2683657109737396, 0.022326240316033363, -0.04722888022661209, -0.2024437040090561, 0.28429216146469116, -0.13695621490478516, 0.4052882194519043, -0.053714197129011154, 0.1610316038131714, 0.3452620804309845, 0.34289538860321045, 0.262759268283844, -0.08648403733968735, -0.44356289505958557, -0.17447049915790558, -0.16517232358455658, 0.1373978853225708, -0.24934399127960205, 0.1416449248790741, -0.08975888788700104, -0.03917108476161957, 0.25147977471351624, 0.09075029194355011, 0.04129582643508911, -0.30776873230934143, -0.1268298327922821, 0.06600050628185272, -0.012505073100328445, 0.4078200161457062, -0.05024474486708641, 0.1321926862001419, -0.17030619084835052, 0.016229787841439247, 0.2367905080318451, -0.16120654344558716, -0.12470908463001251, 0.3909274935722351, 0.2565694749355316, 0.05752142146229744, 0.23309142887592316, -0.10648110508918762, -0.08473721146583557, 0.09739673882722855, 0.010716160759329796, -0.10859651863574982, -0.3183407485485077, -0.1662406027317047, 0.4399798810482025, 0.40284672379493713, 0.01956053078174591, -0.009026553481817245, 0.1888558566570282, -0.06493884325027466, -0.1647484451532364, -0.518130898475647, 0.003202224150300026, 0.043196067214012146, -0.2190980315208435, -0.025050431489944458, 0.01427569892257452, 0.3358248174190521, -0.23778584599494934, -0.18347571790218353, -0.13408102095127106, -0.1702694147825241, 0.021915365010499954, 0.19342416524887085, 0.25683096051216125, -0.10942722856998444, -0.063148632645607, 0.12066034227609634, 0.09559265524148941, 0.12742894887924194, -0.12900882959365845, 0.28941792249679565, -0.2550247013568878, -0.03347683325409889, 0.27962639927864075, 0.09041377902030945, -0.04281667619943619, -0.16564896702766418, 0.32483547925949097, 0.1489722728729248, -0.08999323099851608, -0.2568563222885132, 0.26328229904174805, 0.13774146139621735, -0.19354799389839172, 0.046718135476112366, 0.3229922652244568, -0.07296182960271835, 0.09994076192378998, 0.3584922254085541, 0.5203996300697327, -0.17402860522270203, -0.11548270285129547, -0.24736209213733673, -0.2086857557296753, 0.1438501477241516, -0.19714705646038055, -0.007395945489406586, 0.0857764482498169, -0.3463987410068512, -0.06446442008018494, 0.2016335427761078, 0.11466527730226517, 0.014770351350307465, 0.042294904589653015, -0.19072064757347107, 0.3463243544101715, -0.01420503854751587, 0.1509953886270523, -0.07060953229665756, 0.15655864775180817, -0.09846784174442291, -0.013243652880191803, -0.04160381481051445, 0.1948547661304474, 0.4031910002231598, 0.336534708738327, -0.04585184529423714, -0.43279314041137695, -0.2023407369852066, -0.020952623337507248, -0.10612946003675461, 0.05171642825007439, 0.48851558566093445, 0.13599158823490143, -0.005669513717293739, 0.32041415572166443, -0.1627524495124817, -0.020251471549272537, 0.11542211472988129, 0.046813108026981354, 0.3004308342933655, -0.2641702890396118, 0.13485577702522278, -0.4173648953437805, 0.06442572176456451, 0.10827779024839401, -0.2565329372882843, 0.07819896936416626, 0.372881144285202, 0.20700068771839142, -0.02489613927900791, -0.3401574194431305, 0.15571126341819763, 0.5070493817329407, 0.5286089777946472, 0.07617710530757904, 0.2931111752986908, -0.05470798909664154, -0.29333245754241943, -0.06361354887485504, 0.256292462348938, -0.16230972111225128, -0.08347979933023453, 0.22439362108707428, 0.1532716453075409, 0.33071368932724, 0.025142980739474297, 0.3170585036277771, -0.30501455068588257, -0.2795039117336273, 0.031983524560928345, -0.32045382261276245, 0.0167551189661026, 0.013851340860128403, -0.06832880526781082, -0.1311139166355133, -0.13473063707351685, -0.04616904631257057, -0.26120248436927795, 0.32189658284187317, -0.39532095193862915, 0.19511723518371582, 0.27060240507125854, 0.4268985390663147, 0.2733897566795349, 0.02499556727707386, 0.4183919429779053, -0.2793451249599457, -0.02472209930419922, 0.1166556179523468, -0.06282945722341537, -0.16465967893600464, 0.1707431674003601, -0.21134287118911743, -0.12470860034227371, 0.23410052061080933, -0.377700537443161, -0.043932780623435974, 0.1262909173965454, 0.12364886701107025, 0.33632388710975647, -0.19547121226787567, 0.22846506536006927, 0.06370589882135391, -0.26154017448425293, -0.31053298711776733, -0.04202625900506973, -0.04028373956680298, -0.04282103478908539, -0.2169007956981659, -0.48759305477142334, 0.36261025071144104, -0.1623353213071823, -0.2822521924972534, 0.0873769000172615, 0.20109465718269348, 0.07651656121015549, 0.1325031816959381, -0.6333712935447693, -0.07379274070262909, 0.1555420458316803, 0.04673290252685547, -0.4276425838470459, 0.4857439696788788, 0.14945779740810394, 0.20869265496730804, -0.14297932386398315, 0.15974974632263184, -0.03545864671468735, 0.1995103508234024, -0.5696449279785156, -0.5553629398345947 ]
https://github.com/huggingface/datasets/pull/2151
Add support for axis in concatenate datasets
@lhoestq I was thinking that the order of the TableBlocks is not relevant, isn't it? I mean, in order to consolidate _consecutive_ in-memory table blocks, in this case: ``` blocks = [in_memory_1, memory_mapped, in_memory_2] ``` I could reorder the list: ``` blocks = [in_memory_1, in_memory_2, memory_mapped] ``` so that the first 2 can be consolidated into a single one: ``` blocks = [in_memory_3, memory_mapped] ```
Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853.
65
text: Add support for axis in concatenate datasets Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853. @lhoestq I was thinking that the order of the TableBlocks is not relevant, isn't it? I mean, in order to consolidate _consecutive_ in-memory table blocks, in this case: ``` blocks = [in_memory_1, memory_mapped, in_memory_2] ``` I could reorder the list: ``` blocks = [in_memory_1, in_memory_2, memory_mapped] ``` so that the first 2 can be consolidated into a single one: ``` blocks = [in_memory_3, memory_mapped] ```
[ -0.30659574270248413, -0.19055792689323425, -0.16542217135429382, 0.26851269602775574, -0.13543622195720673, 0.34982529282569885, 0.10558315366506577, 0.22824865579605103, 0.16713964939117432, 0.27561041712760925, 0.09794586151838303, 0.27359917759895325, 0.2213495671749115, 0.004990803077816963, -0.21194760501384735, 0.022121276706457138, 0.29527655243873596, 0.433704674243927, -0.3493115305900574, 0.1702820509672165, -0.5983675718307495, 0.04339946433901787, -0.5265856981277466, -0.33637768030166626, -0.17172271013259888, 0.19816885888576508, 0.011309424415230751, 0.11695215106010437, -0.08439649641513824, -0.42161011695861816, -0.137204110622406, 0.43183255195617676, -0.02737114019691944, 0.02236746996641159, -0.00011556547542568296, 0.05247483402490616, -0.14331413805484772, -0.07346323132514954, -0.28827977180480957, 0.07546696811914444, -0.6695746183395386, -0.3785986304283142, -0.25242504477500916, -0.04860299453139305, 0.08573393523693085, -0.04978007823228836, 0.016116049140691757, -0.4333694577217102, -0.02913723886013031, 0.04619232192635536, 0.17885038256645203, 0.02101077511906624, -0.018651265650987625, -0.31488683819770813, -0.1300986409187317, -0.11810034513473511, -0.12320192158222198, -0.06458435952663422, 0.13192301988601685, 0.22801706194877625, 0.35982441902160645, 0.34417396783828735, -0.0016304850578308105, 0.007864808663725853, 0.23655864596366882, -0.0003978293389081955, 0.38871100544929504, -0.03860025852918625, 0.1473967730998993, 0.2034599781036377, 0.5005527138710022, -0.18705081939697266, -0.06866660714149475, 0.01346869021654129, 0.10395240783691406, -0.06901171058416367, -0.10833635181188583, 0.015940526500344276, 0.35228219628334045, 0.16389134526252747, 0.0783022940158844, -0.01820811815559864, 0.02811550348997116, 0.016963038593530655, -0.051817554980516434, 0.5360234975814819, 0.016765819862484932, 0.20783159136772156, 0.09841445088386536, 0.005498478189110756, 0.1715179830789566, -0.25865623354911804, -0.10933925211429596, -0.11147736757993698, -0.23407040536403656, 0.03618444502353668, 0.1663026213645935, -0.02079366147518158, 0.10698095709085464, 0.1318586766719818, 0.30223655700683594, 0.054996177554130554, 0.01025987695902586, -0.038555808365345, 0.11642833054065704, 0.08428291976451874, 0.01628205180168152, 0.39215803146362305, -0.1418042629957199, 0.03935246542096138, 0.15016907453536987, 0.04953151196241379, -0.18154697120189667, -0.5423391461372375, -0.2268301248550415, 0.24501392245292664, 0.07251301407814026, 0.04710594192147255, -0.47092878818511963, -0.011907755397260189, -0.26046109199523926, -0.08089045435190201, -0.03320420905947685, 0.27300766110420227, 0.07682324945926666, 0.3816484808921814, 0.11559943854808807, -0.1561424434185028, 0.19368384778499603, 0.0703071653842926, -0.1816508024930954, 0.055024199187755585, -0.2330731451511383, 0.10738947987556458, -0.17041124403476715, -0.05749529227614403, -0.0160522498190403, -0.031134240329265594, 0.2362692952156067, 0.18682916462421417, -0.12587597966194153, -0.2811592221260071, 0.6058866381645203, 0.4415558874607086, 0.009463299065828323, -0.006198671646416187, -0.04987184330821037, 0.05857337266206741, -0.21864211559295654, 0.5122107863426208, -0.20198017358779907, -0.29313671588897705, -0.1605190634727478, 0.17127929627895355, 0.0037684310227632523, 0.1412353515625, -0.09841478615999222, 0.056611932814121246, 0.09780438244342804, -0.3596597909927368, 0.3217717707157135, -0.07974961400032043, -0.037028223276138306, -0.2596626281738281, -0.15023726224899292, 0.1050223708152771, -0.529473602771759, 0.12839916348457336, 0.2160498946905136, -0.09046173095703125, 0.15777690708637238, 0.2983502745628357, -0.21309320628643036, -0.009447760879993439, -0.08427201956510544, 0.06111687421798706, 0.22987036406993866, -0.19525839388370514, -0.26349306106567383, -0.2750544846057892, -0.3724532723426819, -0.003966363146901131, 0.2500864565372467, 0.23441281914710999, 0.1083068922162056, -0.07532023638486862, 0.4515214264392853, -0.13952404260635376, 0.05246948450803757, -0.11478304117918015, 0.009243257343769073, 0.22175559401512146, 0.7442050576210022, 0.062350090593099594, -0.2652093768119812, 0.19830191135406494, -0.27978312969207764, -0.11121262609958649, 0.3952884078025818, -0.046167779713869095, -0.04445013403892517, 0.16265730559825897, 0.22836986184120178, -0.21571172773838043, 0.08455663919448853, 0.14661118388175964, -0.4336436986923218, 0.1316187083721161, 0.0057714954018592834, -0.08179579675197601, -0.1189296543598175, -0.21958665549755096, 0.13756036758422852, -0.10925236344337463, -0.08272191882133484, 0.23002101480960846, 0.1271286904811859, 0.1566162258386612, -0.05815785005688667, -0.34982484579086304, -0.25584062933921814, 0.5525394678115845, -0.22670269012451172, -0.2560426592826843, 0.0780024379491806, 0.15002261102199554, -0.0801972895860672, 0.25716841220855713, -0.052080586552619934, 0.25625696778297424, -0.0029299184679985046, -0.09240388125181198, 0.2404097020626068, 0.3512783646583557, -0.10338018089532852, -0.3622249960899353, -0.19951745867729187, -0.03166520595550537, -0.08906752616167068, 0.15781694650650024, -0.09532011300325394, -0.4029001295566559, 0.0374002680182457, -0.15626993775367737, 0.04935465008020401, 0.33049827814102173, 0.006821099668741226, 0.33687570691108704, 0.11145232617855072, -0.011419177986681461, 0.08190926164388657, 0.16867844760417938, -0.23868872225284576, -0.28858840465545654, 0.2014571875333786, 0.7607772350311279, -0.036150842905044556, 0.43189314007759094, -0.5318417549133301, 0.4104137718677521, 0.8487720489501953, -0.03371525555849075, -0.1712329089641571, 0.061403289437294006, 0.1281803399324417, -0.03830448165535927, 0.3335528075695038, -0.09061680734157562, 0.5586487054824829, 0.34327438473701477, 0.004036888480186462, 0.13877949118614197, -0.2037949115037918, -0.16706478595733643, 0.0555771104991436, 0.0997975766658783, 0.1609441488981247, 0.21100997924804688, 0.002329241018742323, -0.00992786604911089, -0.08568325638771057, -0.33965644240379333, 0.12334383279085159, 0.13638314604759216, -0.2566869258880615, -0.13142961263656616, -0.2763810157775879, -0.2108854353427887, 0.06773631274700165, -0.14791269600391388, 0.0308810006827116, -0.34145766496658325, 0.22447016835212708, -0.20510375499725342, -0.2672367990016937, 0.3446480929851532, 0.024932116270065308, 0.5099424719810486, -0.3091909885406494, 0.29883047938346863, -0.03637663275003433, -0.1060221716761589, 0.014459062367677689, 0.14892174303531647, -0.17571765184402466, 0.17496933043003082, 0.19611139595508575, -0.29064857959747314, 0.02859044447541237, -0.18483008444309235, 0.17559483647346497, -0.061205245554447174, -0.14541317522525787, -0.7469403743743896, 0.2513660788536072, 0.3851335644721985, -0.2529457211494446, -0.20588991045951843, 0.023554163053631783, 0.2163834422826767, -0.16435571014881134, 0.01959965005517006, -0.21599002182483673, -0.33077773451805115, -0.2795936167240143, -0.3101535141468048, -0.09565841406583786, -0.6306050419807434, 0.27080821990966797, 0.24430154263973236, 0.0919073149561882, -0.045674704015254974, 0.039106592535972595, -0.04290712997317314, -0.025866160169243813, -0.015627490356564522, -0.33945396542549133, -0.05827696621417999, 0.2505470812320709, -0.21245518326759338, 0.0074221789836883545, -0.02306651696562767, 0.024238474667072296, 0.25212085247039795, 0.3714296221733093, 0.08575017750263214, 0.23727039992809296, 0.04416967183351517, -0.20546306669712067, -0.38298702239990234, 0.20617246627807617, 0.6501712799072266, 0.0036840655375272036, -0.11555244028568268, -0.1690453290939331, -0.15215471386909485, 0.2863706350326538, 0.22471055388450623, -0.005023151636123657, -0.12010804563760757, 0.3232688307762146, 0.18762736022472382, -0.03557171672582626, 0.28843116760253906, -0.004296418279409409, 0.07918893545866013, 0.08617240935564041, 0.44724351167678833, -0.2552890479564667, 0.23043888807296753, -0.13844211399555206, 0.2584480047225952, 0.06349083036184311, -0.046677365899086, -0.10845234990119934, 0.19888867437839508, -0.022541159763932228, 0.26507821679115295, 0.03914564102888107, 0.0819745808839798, 0.14043985307216644, -0.04667114466428757, 0.2625405192375183, -0.04726644977927208, -0.2915647029876709, -0.45341867208480835, 0.26089558005332947, -0.09291894733905792, 0.2719956040382385, 0.18043634295463562, -0.16530728340148926, -0.2919413447380066, -0.26827067136764526, -0.4502136707305908, 0.371837317943573, 0.3010278344154358, 0.20698395371437073, 0.11305895447731018, -0.18816542625427246, -0.09119406342506409, -0.03151685371994972, 0.36600708961486816, -0.1457609385251999, -0.5135725140571594, 0.483338862657547, 0.05778764188289642, -0.1991686373949051, -0.14057673513889313, -0.09582661092281342, 0.26080122590065, -0.020423132926225662, 0.10678012669086456, -0.3526502251625061, -0.3440346419811249, 0.3872637450695038, 0.0938161090016365, -0.03199025243520737, -0.4290774464607239, -0.39091289043426514, -0.0073223598301410675, -0.29578259587287903, -0.21268051862716675, 0.48199525475502014, 0.013520188629627228, -0.0024224596563726664, -0.2475387156009674, 0.15622900426387787, -0.40642642974853516, -0.08971433341503143, -0.05649476498365402, 0.3975241184234619, 0.39729321002960205, -0.20005451142787933, 0.024539807811379433, -0.03802315145730972, 0.5667200684547424, 0.4837367534637451, -0.06861872971057892, 0.08107246458530426, 0.08031443506479263, -0.25740987062454224, 0.3674865663051605, 0.43488651514053345, -0.09265158325433731, 0.3072472810745239, -0.07472826540470123, 0.19733388721942902, -0.07732938975095749, -0.01871502585709095, 0.126095250248909, -0.24188143014907837, -0.8799803853034973, -0.2875405251979828, 0.20516741275787354, 0.32653430104255676, -0.2025429606437683, 0.7388647198677063, 0.2546878159046173, -0.28818219900131226, -0.15400369465351105, 0.10916733741760254, 1.064089059829712, -0.02200063318014145, 0.3573383390903473, 0.20472922921180725, -0.0013667456805706024, 0.22716568410396576, -0.17348450422286987, 0.23476670682430267, -0.056835390627384186, -0.32664209604263306, -0.21109694242477417, -0.32464733719825745, 0.12536174058914185, 0.09345581382513046, -0.4513273239135742, 0.012855025008320808, -0.19599062204360962, 0.25006771087646484, -0.15017610788345337, -0.1375252902507782, 0.051062583923339844, -0.07814507186412811, -0.21064631640911102, -0.0023400485515594482, 0.2657589316368103, -0.39455994963645935, -0.3586268424987793, -0.0033184699714183807, -0.10797955095767975, -0.05624021589756012, -0.11676672101020813, -0.22951632738113403, -0.21934987604618073, 0.13458788394927979, -0.06984205543994904, 0.2296791523694992, -0.1038796454668045, -0.22493651509284973, 0.0981934666633606, -0.08544756472110748, 0.10542545467615128, -0.20825448632240295, 0.22747305035591125, 0.0916484072804451, -0.07347510755062103, -0.3267630636692047, 0.30632176995277405, -0.023232076317071915, 0.16010338068008423, 0.21751269698143005, -0.07486723363399506, -0.6074389815330505, -0.30807098746299744, 0.38677144050598145, -0.48649144172668457, 0.02017076127231121, -0.3877788484096527, 0.45890963077545166, -0.08620531857013702, -0.05246688425540924, 0.13093023002147675, 0.15134380757808685, -0.1076827347278595, 0.12451222538948059, -0.2912672162055969, -0.3265931308269501, -0.19739492237567902, 0.2206585705280304, 0.24627068638801575, 0.09669651091098785, -0.004491742700338364, 0.006894733756780624, -0.2988436818122864, -0.1375356763601303, -0.291252076625824, 0.5098136067390442, -0.13606853783130646, 0.09195171296596527, -0.11013074964284897, -0.10233816504478455, -0.013958858326077461, 0.6518267393112183, 0.2762538492679596, 0.2748197913169861, -0.25180062651634216, -0.030531246215105057, -0.4218309223651886, 0.22802889347076416, -0.02142104133963585, 0.3379821479320526, 0.00202878937125206, 0.5865112543106079, -0.030762888491153717, -0.14585107564926147, -0.3336426615715027, -0.32003360986709595, -0.33835554122924805, 0.043873950839042664, -0.4871910512447357, 0.34602004289627075, -0.18708445131778717, 0.09097522497177124, 0.12696032226085663, 0.29236483573913574, -0.22344084084033966, -0.17879584431648254, 0.0875781923532486, 0.16412028670310974, 0.2750847637653351, -0.12489517778158188, 0.01768505945801735, -0.2903726100921631, -0.17030055820941925, 0.004075571894645691, 0.04617992416024208, 0.1967054307460785, -0.028276629745960236, 0.07410524785518646, 0.24143418669700623, -0.07790771871805191, 0.10869452357292175, 0.027653031051158905, 0.1389344185590744, -0.0032049044966697693, -0.19206975400447845, 0.23982656002044678, -0.23560449481010437, 0.01064707338809967, -0.28741610050201416, 0.26805374026298523, 0.12817108631134033, -0.08199972659349442, -0.07081309705972672, 0.036947861313819885, -0.09879742562770844, -0.005114867351949215, 0.31662067770957947, 0.3157613277435303, 0.022898050025105476, -0.09105923771858215, -0.18362709879875183, 0.17376592755317688, -0.17305758595466614, -0.2612946629524231, 0.11097170412540436, 0.2266242355108261, 0.16145002841949463, 0.012993820011615753, 0.20400485396385193, -0.05323440581560135, 0.21185703575611115, 0.13828608393669128, -0.1252388209104538, -0.4061928987503052, 0.29020044207572937, -0.14892181754112244, 0.3331730365753174, 0.24619248509407043, 0.025244861841201782, 0.19440865516662598, 0.3026410937309265, 0.027160106226801872, 0.2095555067062378, 0.34294331073760986, 0.38961124420166016, 0.015269946306943893, 0.1007424145936966, -0.0742916464805603, 0.0653081014752388, 0.5499109029769897, -0.23056244850158691, -0.061630330979824066, 0.5266447067260742, -0.2719413936138153, -0.16092345118522644, -0.10157380998134613, -0.030501630157232285, -0.11349810659885406, -0.32613739371299744, 0.03936721011996269, -0.0034585632383823395, -0.20500847697257996, -0.17620253562927246, -0.10414700210094452, 0.07396337389945984, 0.2144155651330948, 0.4708353579044342, -0.1414746344089508, 0.32177168130874634, -0.027076957747340202, 0.30837875604629517, 0.04060244560241699, 0.2628742456436157, -0.215036079287529, -0.15208618342876434, 0.1318124234676361, -0.1172623485326767, 0.3075283169746399, 0.09064648300409317, 0.3692752420902252, 0.28551656007766724, 0.3206193447113037, -0.11978668719530106, -0.05189719423651695, -0.14361897110939026, -0.07240709662437439, 0.06939885020256042, 0.30713316798210144, -0.25604447722435, 0.2143034189939499, 0.2885146737098694, -0.19672809541225433, 0.47810012102127075, 0.09257198870182037, 0.18270380795001984, -0.33569711446762085, 0.061471082270145416, -0.16128422319889069, -0.30810412764549255, 0.2719537615776062, 0.1578577160835266, -0.17609217762947083, 0.014013257808983326, -0.038265328854322433, -0.14757558703422546, -0.04329724609851837, -0.24032385647296906, 0.10903654992580414, 0.1764908879995346, 0.31303486227989197, -0.03247777745127678, 0.36287298798561096, -0.35538148880004883, -0.5883395671844482, -0.12698301672935486, 0.03102632611989975, -0.0925561785697937, 0.11450307071208954, 0.23622705042362213, 0.16937565803527832, -0.020893894135951996, -0.013723019510507584, 0.3794925808906555, 0.07888417690992355, -0.11453453451395035, -0.006604202091693878, -0.27527475357055664, 0.03213867172598839, 0.3956300616264343, -0.1905955970287323, 0.031837865710258484, -0.1866350769996643, 0.01878909021615982, 0.16105914115905762, 0.059252746403217316, -0.33987098932266235, 0.24453899264335632, 0.23129361867904663, 0.5193911194801331, 0.2412530481815338, -0.05803260952234268, 0.21159133315086365, -0.071560800075531, 0.07539365440607071, 0.021916672587394714, -0.15807747840881348, -0.23502369225025177, 0.19254198670387268, 0.008386846631765366, 0.20850232243537903, -0.3614700734615326, -0.1754664182662964, 0.15322239696979523, -0.16481913626194, 0.025059007108211517, 0.5890920758247375, -0.5612866282463074, 0.2879626452922821, -0.0767318457365036, 0.1298854947090149, 0.04681910574436188, 0.08010277152061462, 0.347229927778244, -0.05686703324317932, -0.17702937126159668, -0.15085966885089874, 0.3252699375152588, 0.23510900139808655, -0.39191144704818726, 0.11851196736097336, 0.11205102503299713, 0.12239342927932739, -0.09800484031438828, -0.5449509024620056, -0.370621919631958, 0.3346308171749115, 0.15795224905014038, -0.34009718894958496, 0.34867236018180847, -0.0869179219007492, -0.0036386102437973022, -0.18206697702407837, 0.24351312220096588, -0.12383333593606949, -0.5974242687225342, -0.22296737134456635, -0.5672741532325745 ]
https://github.com/huggingface/datasets/pull/2151
Add support for axis in concatenate datasets
I think the order is important, users won't expect the dataset to be "shuffled" when they add a new item
Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853.
20
text: Add support for axis in concatenate datasets Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853. I think the order is important, users won't expect the dataset to be "shuffled" when they add a new item
[ -0.12763141095638275, -0.09143974632024765, -0.20951323211193085, -0.03785308450460434, 0.08503247797489166, 0.2454189956188202, 0.26070645451545715, 0.24139268696308136, -0.050031207501888275, 0.2240656614303589, 0.0382121279835701, 0.329585999250412, 0.22057190537452698, 0.4408142864704132, -0.4432525634765625, 0.020343497395515442, 0.06180353835225105, 0.5916247963905334, -0.2949858605861664, 0.030350595712661743, -0.5409935712814331, 0.06811442226171494, -0.3850516080856323, -0.11919724941253662, -0.20065338909626007, 0.006292484700679779, 0.09552212059497833, 0.27472755312919617, -0.22648991644382477, -0.48036786913871765, -0.011617426760494709, 0.3508635461330414, -0.07824988663196564, 0.17312896251678467, -0.00010285413009114563, -0.19663484394550323, -0.04174727201461792, 0.05401366204023361, -0.3058263659477234, 0.004308193922042847, -0.5048375129699707, -0.4363769292831421, 0.008501763455569744, -0.1733752191066742, 0.09241438657045364, -0.3863835334777832, 0.08134845644235611, -0.47363802790641785, 0.057790253311395645, 0.019352059811353683, 0.3016722500324249, -0.1486230194568634, 0.18878771364688873, -0.3147762417793274, -0.05455339699983597, -0.03233280032873154, -0.058296188712120056, -0.003960806876420975, 0.20142468810081482, 0.21554285287857056, 0.0035015493631362915, 0.2881885766983032, -0.04622558504343033, -0.11434182524681091, 0.2079010009765625, -0.006159319542348385, 0.42889338731765747, -0.3384903371334076, 0.08685636520385742, 0.22524848580360413, 0.6461307406425476, -0.15171334147453308, -0.0647987425327301, -0.05233379080891609, 0.13725051283836365, -0.08725371211767197, -0.014466255903244019, 0.1032143384218216, 0.21369537711143494, 0.18428820371627808, 0.14864332973957062, -0.16437149047851562, -0.23441465198993683, 0.16990752518177032, -0.061328087002038956, 0.4882394075393677, 0.07100602239370346, 0.009860515594482422, 0.15193872153759003, -0.2768425941467285, 0.18117958307266235, -0.08689230680465698, -0.13595719635486603, 0.023770740255713463, -0.2887651026248932, -0.16413185000419617, 0.06525290012359619, 0.008534811437129974, 0.06116349250078201, 0.13611102104187012, 0.1649446189403534, 0.15877893567085266, -0.005485365632921457, 0.09042525291442871, 0.12945201992988586, 0.17371238768100739, 0.3101378381252289, 0.11185360699892044, 0.13561862707138062, -0.14635005593299866, 0.26440098881721497, -0.022404488176107407, -0.12837661802768707, -0.6570631265640259, -0.20729945600032806, 0.28049588203430176, 0.26769405603408813, 0.04019588604569435, -0.37572628259658813, -0.06682641804218292, 0.026013918220996857, -0.12270950525999069, -0.01590951904654503, 0.25271305441856384, 0.005077386274933815, 0.4521145224571228, -0.019020717591047287, 0.07740518450737, 0.08014217019081116, -0.008589154109358788, -0.15669845044612885, 0.24830009043216705, -0.20201750099658966, -0.02170584909617901, -0.1887526959180832, -0.09334835410118103, -0.02219933643937111, 0.17774344980716705, 0.13852375745773315, -0.04716646671295166, 0.12761902809143066, 0.011437337845563889, 0.3023807108402252, 0.2690349519252777, 0.11795578896999359, 0.16043134033679962, 0.016356809064745903, 0.11105892062187195, -0.09694823622703552, 0.4936447739601135, -0.39792004227638245, -0.343788743019104, -0.6246811747550964, 0.33937644958496094, -0.06572139263153076, -0.20387403666973114, 0.09212374687194824, -0.03818420693278313, -0.1610245406627655, -0.2761599123477936, 0.16453446447849274, 0.19791845977306366, 0.01514265313744545, -0.2986835539340973, -0.23129884898662567, 0.12053115665912628, -0.38068974018096924, 0.19414889812469482, -0.15076467394828796, -0.24286681413650513, 0.2603313624858856, 0.13457901775836945, -0.30305927991867065, -0.020161814987659454, -0.07271330058574677, 0.30628538131713867, 0.5100461840629578, -0.309224396944046, -0.04441332817077637, -0.020144380629062653, -0.4967467784881592, -0.11041973531246185, 0.1975746899843216, 0.18122585117816925, 0.06386040151119232, -0.164031520485878, 0.18732693791389465, -0.19572579860687256, 0.12006165087223053, 0.04006128013134003, -0.19558534026145935, -0.1048319861292839, 0.5374676585197449, -0.044558554887771606, -0.30941733717918396, 0.19098949432373047, 0.02366870641708374, -0.26489338278770447, 0.34993723034858704, -0.23978456854820251, -0.015377581119537354, 0.0638502985239029, 0.34912511706352234, -0.09232519567012787, -0.0856439545750618, 0.1744229793548584, -0.49519526958465576, 0.004212666302919388, 0.04921339452266693, 0.032273318618535995, 0.04289519414305687, -0.3104659914970398, -0.24968543648719788, -0.17374542355537415, -0.12992414832115173, -0.017652727663517, 0.27785569429397583, 0.21287360787391663, -0.3115316927433014, -0.26133790612220764, -0.23069943487644196, 0.46360212564468384, -0.18021228909492493, -0.10856175422668457, 0.008458402007818222, -0.053858980536460876, -0.057281412184238434, 0.2440127283334732, -0.06857854127883911, 0.12076063454151154, 0.15520189702510834, -0.1279427856206894, 0.14461061358451843, 0.6640904545783997, -0.1965416818857193, -0.14511315524578094, 0.07307153940200806, 0.11296117305755615, 0.07417449355125427, 0.2592294216156006, -0.16633658111095428, -0.3486742377281189, 0.01297807227820158, -0.014446709305047989, -0.3075917959213257, 0.4677920341491699, -0.16030405461788177, -0.036018915474414825, 0.0016207769513130188, 0.05274032801389694, 0.05828157812356949, -0.01644633337855339, -0.2076723575592041, -0.30128079652786255, 0.07077144086360931, 0.3177860379219055, -0.09650059044361115, 0.3978559970855713, -0.29283055663108826, 0.24950572848320007, 0.8455915451049805, -0.019846156239509583, 0.12948694825172424, 0.1644313633441925, 0.15062245726585388, 0.08931048959493637, 0.18805688619613647, 0.13276556134223938, 0.41901737451553345, 0.3414093554019928, -0.08776609599590302, 0.027307499200105667, -0.050939369946718216, -0.22119437158107758, 0.141288623213768, 0.006853319704532623, 0.18288667500019073, 0.26990342140197754, 0.1942029595375061, 0.04154568165540695, -0.13848333060741425, -0.3222075402736664, 0.03334616869688034, 0.3021049499511719, -0.23748619854450226, -0.2037784457206726, -0.06450984627008438, 0.06852948665618896, 0.014413483440876007, -0.27504807710647583, 0.010429037734866142, -0.40241286158561707, 0.2579074203968048, -0.044768933206796646, -0.28670448064804077, 0.31537437438964844, -0.08447782695293427, 0.41361865401268005, -0.2338104546070099, 0.2450713813304901, -0.04377974569797516, 0.058165136724710464, -0.0162167027592659, 0.2329704463481903, -0.14626987278461456, 0.04180588200688362, 0.251566082239151, -0.21019825339317322, 0.23332253098487854, -0.15943890810012817, -0.16823545098304749, -0.12330304086208344, 0.04252718389034271, -0.5133340358734131, 0.1590600311756134, 0.39721912145614624, -0.20479846000671387, -0.40883326530456543, -0.018496030941605568, 0.19885550439357758, -0.15481187403202057, -0.0748782604932785, -0.030459459871053696, -0.04132971167564392, -0.23057256639003754, -0.5296075940132141, -0.03335612267255783, -0.7059326767921448, 0.15009164810180664, 0.06681890785694122, 0.19369055330753326, -0.0503586046397686, 0.14141762256622314, -0.09160205721855164, -0.1258038431406021, 0.0659184455871582, -0.16099011898040771, -0.3900804817676544, 0.27198854088783264, -0.28885936737060547, -0.07962396740913391, 0.12027159333229065, -0.002638014033436775, 0.21137459576129913, 0.18980585038661957, 0.08753854036331177, -0.2796492874622345, -0.07219334691762924, 0.02914087101817131, -0.514772355556488, 0.0310540571808815, 0.5100147724151611, 0.15599201619625092, -0.2971963584423065, -0.10623233020305634, -0.05574755370616913, 0.1778612732887268, 0.1452925205230713, -0.18060457706451416, -0.315046101808548, 0.07147470116615295, 0.04054754599928856, 0.04442344233393669, 0.23134174942970276, 0.0015669241547584534, 0.046631403267383575, 0.06952884048223495, 0.32671546936035156, 0.005242154002189636, -0.0333089679479599, -0.17473578453063965, 0.28640544414520264, 0.4611760973930359, 0.15189170837402344, -0.18389692902565002, -0.0220783818513155, -0.15487246215343475, 0.09839892387390137, -0.36436405777931213, 0.013179127126932144, 0.21826425194740295, -0.0995258241891861, 0.36726054549217224, -0.158900648355484, -0.00435565784573555, -0.3792498707771301, 0.16333457827568054, -0.11180904507637024, 0.2128312587738037, 0.1319386065006256, -0.13996806740760803, -0.3085883855819702, -0.300721138715744, -0.2696152925491333, 0.26895132660865784, 0.07600671052932739, 0.3188602924346924, 0.03695624694228172, -0.21811288595199585, -0.02121933549642563, -0.0019265217706561089, 0.5788217186927795, -0.2480618804693222, -0.5672864317893982, 0.20069746673107147, 0.21038150787353516, -0.14402242004871368, 0.08584818243980408, -0.14116904139518738, 0.3418029546737671, 0.149790421128273, 0.43603870272636414, -0.2506980895996094, -0.30571821331977844, 0.522304892539978, -0.20464126765727997, 0.11510594189167023, -0.22425846755504608, -0.2343553751707077, 0.018976353108882904, -0.2907921075820923, -0.13964956998825073, 0.13434375822544098, 0.10265019536018372, -0.15673887729644775, -0.2207494080066681, 0.09064970910549164, -0.20246776938438416, -0.02841278910636902, 0.2218427062034607, 0.2577096223831177, 0.4508379101753235, -0.19127418100833893, 0.17677049338817596, 0.04381221905350685, 0.36851292848587036, 0.2791426181793213, -0.04221399500966072, -0.2670862078666687, 0.06062417849898338, -0.3169279098510742, 0.30825233459472656, 0.2824240028858185, -0.05936498939990997, 0.12654340267181396, -0.09395432472229004, 0.2311273217201233, -0.042933642864227295, 0.14010918140411377, 0.32632216811180115, -0.17657634615898132, -0.7608820199966431, -0.25024786591529846, 0.24883151054382324, 0.13209810853004456, -0.13600122928619385, 0.4672136902809143, 0.12283912301063538, -0.22308966517448425, -0.130279079079628, 0.10163968056440353, 0.9430943727493286, 0.045376330614089966, 0.21477855741977692, 0.160114586353302, -0.210714653134346, 0.3422418236732483, -0.21480311453342438, 0.1820138543844223, -0.21233686804771423, -0.1442285031080246, -0.18123851716518402, -0.1445692628622055, 0.27706554532051086, 0.17254966497421265, -0.5175190567970276, -0.003853993723168969, -0.2230072021484375, 0.04024890065193176, -0.10631657391786575, 0.20910710096359253, -0.022025926038622856, -0.17280134558677673, -0.13334383070468903, 0.13277585804462433, 0.013730503618717194, -0.11420375108718872, -0.3601300120353699, -0.11041731387376785, 0.03596632555127144, -0.08866746723651886, 0.015049740672111511, -0.21208429336547852, -0.08761001378297806, 0.08257577568292618, 0.08749464899301529, -0.13331244885921478, 0.0986853539943695, -0.1339707374572754, 0.17688734829425812, -0.05328803136944771, 0.1141563206911087, -0.16771894693374634, 0.16083790361881256, -0.013270546682178974, -0.0015380464028567076, -0.16894277930259705, 0.20647098124027252, -0.05140898376703262, -0.05178539454936981, 0.18538981676101685, 0.02244678884744644, -0.20660905539989471, -0.2916675806045532, 0.39969009160995483, -0.16653381288051605, -0.2689885199069977, -0.06764265894889832, 0.3474230170249939, -0.15745428204536438, -0.3063364028930664, 0.23222996294498444, 0.08869344741106033, -0.03728284314274788, 0.20512408018112183, -0.13558940589427948, -0.31403595209121704, -0.16772620379924774, 0.19817790389060974, 0.11674881726503372, -0.14675648510456085, 0.11185196787118912, -0.08340734988451004, -0.21764646470546722, -0.3234441578388214, 0.08755753189325333, 0.2574843168258667, -0.32666561007499695, 0.08519867807626724, 0.08362696319818497, -0.14260341227054596, -0.0049149831756949425, 0.4326688051223755, 0.049685657024383545, 0.32914507389068604, -0.0994323343038559, -0.264149010181427, -0.2367447465658188, 0.0443127267062664, 0.1507052183151245, 0.30667051672935486, -0.21013754606246948, 0.4927901029586792, 0.06308622658252716, -0.2576267421245575, -0.48166754841804504, -0.09856125712394714, -0.2391226887702942, -0.003274019807577133, 0.11977149546146393, 0.17393451929092407, -0.0760829821228981, 0.08989180624485016, 0.22103676199913025, 0.11943922191858292, -0.17320331931114197, -0.3316892981529236, 0.05546100065112114, 0.09691561758518219, -0.021130595356225967, -0.22189152240753174, 0.1946674883365631, -0.15307290852069855, -0.30417773127555847, 0.06989727914333344, -0.025011936202645302, 0.21009409427642822, -0.13548149168491364, 0.18026593327522278, -0.03083823248744011, 0.005704432725906372, 0.17035475373268127, -0.045646339654922485, 0.07878965884447098, -0.04966254532337189, -0.0956188440322876, 0.31389087438583374, -0.20728200674057007, -0.03628102317452431, 0.21155500411987305, 0.18762245774269104, 0.2887428104877472, -0.018905173987150192, -0.17602327466011047, -0.07322995364665985, -0.01353282481431961, 0.22397202253341675, 0.21271874010562897, 0.20766565203666687, -0.10265674442052841, -0.095549076795578, 0.10287871956825256, 0.36376476287841797, -0.19171470403671265, -0.3631261885166168, 0.12739373743534088, 0.1765189915895462, 0.27404260635375977, 0.037345051765441895, 0.0005899891257286072, -0.019974537193775177, 0.26577049493789673, 0.16836345195770264, -0.05346570909023285, -0.3589823842048645, 0.4737966060638428, 0.13252118229866028, -0.11127348244190216, 0.03327653929591179, 0.1962655931711197, 0.26910361647605896, 0.26194003224372864, 0.2711745500564575, 0.19600513577461243, 0.34002506732940674, 0.4483546316623688, 0.07191184163093567, -0.19264039397239685, -0.3128538131713867, 0.15692265331745148, 0.41802775859832764, -0.14175191521644592, -0.024075165390968323, 0.6179299354553223, -0.13836225867271423, -0.15602438151836395, -0.01866230182349682, -0.000005934387445449829, -0.06494097411632538, -0.24857747554779053, 0.0014027096331119537, 0.011541120707988739, -0.22480779886245728, -0.18700945377349854, -0.17071866989135742, -0.008838120847940445, 0.10019728541374207, 0.41087815165519714, -0.06352898478507996, 0.18085046112537384, -0.1940576285123825, 0.2954665422439575, 0.22286149859428406, 0.39953485131263733, -0.14715085923671722, -0.10960952192544937, 0.25426119565963745, -0.14721770584583282, 0.33971813321113586, 0.23691031336784363, 0.3129286766052246, 0.3243313729763031, 0.18284374475479126, -0.007726737298071384, -0.19028986990451813, -0.1027081161737442, -0.043562933802604675, -0.10093085467815399, 0.2613809108734131, -0.09904181957244873, 0.22935302555561066, 0.3710485100746155, -0.31213924288749695, 0.3927592933177948, 0.11678346991539001, -0.05416528508067131, -0.39835330843925476, 0.04882865399122238, 0.03689824789762497, -0.44512277841567993, 0.04709905385971069, -0.019634142518043518, -0.19008484482765198, -0.11507957428693771, 0.09116294980049133, 0.04426166042685509, 0.05203564465045929, -0.2505802512168884, 0.16662383079528809, 0.34233802556991577, 0.3082737922668457, 0.026901282370090485, 0.11953727900981903, -0.3049386441707611, -0.5092968940734863, -0.3235728144645691, 0.1521131992340088, 0.07511869817972183, 0.12622621655464172, 0.08825694769620895, 0.0894411951303482, 0.014905489981174469, 0.018777308985590935, 0.390769362449646, 0.06714846193790436, -0.06379759311676025, -0.04452461749315262, -0.3555154800415039, 0.13596080243587494, 0.39915913343429565, -0.16228829324245453, -0.0013192612677812576, -0.18414521217346191, 0.21214242279529572, 0.12465430796146393, 0.19946104288101196, -0.09147153794765472, 0.08023405075073242, 0.04262809827923775, 0.0998271256685257, 0.20851872861385345, 0.09893947839736938, 0.08420682698488235, -0.17754316329956055, 0.22345589101314545, 0.024097610265016556, -0.17072078585624695, -0.17109589278697968, 0.18494606018066406, 0.3439159691333771, 0.23285630345344543, -0.19887296855449677, -0.17071013152599335, -0.0620209164917469, -0.26048094034194946, 0.06687814742326736, 0.4328860640525818, -0.4168291389942169, 0.5426654815673828, 0.25225475430488586, -0.09707607328891754, -0.14758802950382233, 0.11242621392011642, 0.1912427693605423, -0.14485423266887665, -0.22207508981227875, -0.22753702104091644, 0.31548696756362915, 0.23336687684059143, -0.4189222753047943, -0.06573593616485596, 0.3222622275352478, -0.008655354380607605, 0.16962410509586334, -0.19801080226898193, -0.12380488961935043, 0.3384981155395508, 0.13950367271900177, -0.35599198937416077, 0.31007495522499084, -0.2539215087890625, -0.24699151515960693, 0.004686612635850906, 0.1732393503189087, 0.1588592529296875, -0.277437686920166, -0.041948094964027405, -0.4160076379776001 ]
https://github.com/huggingface/datasets/pull/2151
Add support for axis in concatenate datasets
> I think the order is important, users won't expect the dataset to be "shuffled" when they add a new item OK, therefore I leave `_consolidate_blocks` as it is, which currently keeps the order of the blocks (no shuffling).
Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853.
39
text: Add support for axis in concatenate datasets Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853. > I think the order is important, users won't expect the dataset to be "shuffled" when they add a new item OK, therefore I leave `_consolidate_blocks` as it is, which currently keeps the order of the blocks (no shuffling).
[ -0.20455516874790192, -0.139354407787323, -0.17035318911075592, -0.021196648478507996, 0.18287211656570435, 0.22786664962768555, 0.2820925712585449, 0.34475401043891907, -0.0012904983013868332, 0.22103747725486755, 0.06006453186273575, 0.2969832122325897, 0.1446092128753662, 0.3223159909248352, -0.311568945646286, 0.03966253250837326, 0.15970823168754578, 0.5519592761993408, -0.24839550256729126, 0.11930710077285767, -0.4952588677406311, 0.07377837598323822, -0.3173413574695587, -0.1659533530473709, -0.11481179296970367, 0.09044656902551651, 0.07405462861061096, 0.13103589415550232, -0.21193908154964447, -0.4830463230609894, -0.06968673318624496, 0.4942876994609833, -0.11112945526838303, 0.11640334129333496, -0.00010142284008907154, -0.0785890594124794, -0.02973548322916031, 0.10035046935081482, -0.395753413438797, -0.12270598113536835, -0.4794332683086395, -0.5028332471847534, -0.11558344215154648, -0.08439190685749054, -0.04943341016769409, -0.43672338128089905, 0.017967969179153442, -0.31873345375061035, 0.06718026846647263, -0.11678825318813324, 0.3121720850467682, -0.09174051880836487, 0.019256610423326492, -0.2954646944999695, -0.10524684935808182, 0.022274140268564224, -0.0888499841094017, 0.08516402542591095, 0.24507015943527222, 0.3456035852432251, 0.12073235213756561, 0.34897521138191223, 0.0009690355509519577, -0.14920365810394287, 0.2750692665576935, -0.05660995841026306, 0.5076665282249451, -0.2073432356119156, 0.03245604410767555, 0.23901620507240295, 0.6397501230239868, -0.16214123368263245, -0.09229371696710587, -0.06546201556921005, 0.20476539433002472, -0.036358848214149475, -0.12035509198904037, 0.1428769826889038, 0.22895361483097076, 0.14612242579460144, 0.062200967222452164, -0.11794597655534744, -0.05428343266248703, 0.0991658866405487, 0.10130372643470764, 0.504963219165802, 0.10983999818563461, 0.024622563272714615, 0.2285446971654892, -0.22081921994686127, 0.26966241002082825, -0.23534521460533142, -0.2659687399864197, -0.10675356537103653, -0.23441602289676666, -0.17128804326057434, 0.10928239673376083, 0.026287194341421127, 0.050155170261859894, 0.25532951951026917, 0.16590234637260437, 0.19373935461044312, 0.11521631479263306, 0.05644730478525162, 0.14400625228881836, 0.1650947779417038, 0.20420429110527039, 0.13197341561317444, 0.11240337789058685, 0.13474935293197632, 0.19695962965488434, -0.055530473589897156, -0.17068448662757874, -0.5759018063545227, -0.28569215536117554, 0.2704104781150818, 0.16816499829292297, 0.054715145379304886, -0.23804309964179993, -0.1867426484823227, 0.0682496726512909, -0.06259661167860031, 0.06841833889484406, 0.12972484529018402, -0.010898208245635033, 0.5102324485778809, 0.01658918336033821, -0.015277061611413956, 0.06375724077224731, 0.04932546988129616, -0.19616290926933289, 0.13132911920547485, -0.2686828374862671, -0.061514779925346375, -0.16923478245735168, -0.19120879471302032, -0.056139253079891205, 0.23888541758060455, 0.1268216371536255, 0.02965148538351059, 0.05166283994913101, -0.005602684337645769, 0.443308025598526, 0.30816128849983215, 0.004614189267158508, 0.03655114769935608, -0.022024106234312057, 0.05348331481218338, -0.09036368876695633, 0.38229796290397644, -0.38581714034080505, -0.32960447669029236, -0.5342745780944824, 0.35145655274391174, -0.03860302269458771, 0.09421636164188385, -0.004237718880176544, 0.061653707176446915, -0.1916736364364624, -0.3630220592021942, 0.1449277102947235, 0.044873058795928955, 0.06466713547706604, -0.24120432138442993, -0.09716363996267319, 0.09025357663631439, -0.38833388686180115, 0.09038808941841125, -0.09776170551776886, -0.2436096966266632, 0.12110897898674011, 0.23192745447158813, -0.3277871310710907, -0.042821064591407776, -0.1516348272562027, 0.12921841442584991, 0.44550859928131104, -0.15526723861694336, -0.1650467962026596, -0.1326790452003479, -0.45490777492523193, -0.07271906733512878, 0.1646834909915924, 0.20477278530597687, 0.11359409987926483, -0.13792739808559418, 0.2419096976518631, -0.0712004080414772, 0.1122840940952301, 0.10328603535890579, -0.12601129710674286, -0.08137539774179459, 0.4997110962867737, -0.06593544781208038, -0.3554531931877136, 0.16947542130947113, -0.05813365429639816, -0.21262633800506592, 0.3215150237083435, -0.23421913385391235, -0.00769481435418129, 0.045740071684122086, 0.4086311161518097, -0.3024653196334839, 0.001121575478464365, 0.11563042551279068, -0.47930169105529785, -0.0034940429031848907, 0.06672458350658417, -0.017657138407230377, -0.015590116381645203, -0.2965696454048157, -0.11497057229280472, -0.23403821885585785, -0.09671203792095184, 0.05311153456568718, 0.2680806517601013, 0.13592588901519775, -0.19791679084300995, -0.3157282769680023, -0.26605847477912903, 0.4134906232357025, -0.049062035977840424, -0.03824245557188988, 0.005707426927983761, 0.14000223577022552, -0.03164017200469971, 0.18502521514892578, -0.11979733407497406, 0.23196002840995789, 0.05473235622048378, -0.19453756511211395, 0.1027754619717598, 0.5245955586433411, -0.25405144691467285, -0.09611114859580994, -0.05747177451848984, -0.0047009289264678955, 0.09114493429660797, 0.38270100951194763, -0.08826830238103867, -0.3346642255783081, -0.04770839959383011, -0.04738536477088928, -0.23795369267463684, 0.43004095554351807, -0.09650783240795135, 0.06267889589071274, 0.13173112273216248, 0.008449386805295944, 0.18001636862754822, 0.030169907957315445, -0.1354263871908188, -0.3718831539154053, 0.057238973677158356, 0.4406641125679016, 0.01925741881132126, 0.3889051377773285, -0.2785029411315918, 0.37084102630615234, 0.8655256032943726, -0.04526462405920029, -0.01152113825082779, 0.1663854718208313, 0.03666841983795166, 0.07771571725606918, 0.34912097454071045, 0.2648041546344757, 0.37593698501586914, 0.34807199239730835, -0.08900314569473267, 0.07320957630872726, 0.032306741923093796, -0.25405800342559814, 0.14537519216537476, 0.01663380116224289, 0.1314866542816162, 0.338100790977478, 0.2045476734638214, -0.03212938457727432, -0.12513504922389984, -0.2903352975845337, -0.005137267522513866, 0.23325087130069733, -0.18189650774002075, -0.22515910863876343, -0.26322925090789795, -0.06585128605365753, -0.03539781644940376, -0.14251580834388733, -0.053988318890333176, -0.4447425305843353, 0.24278832972049713, 0.0175310205668211, -0.3093920350074768, 0.22925537824630737, -0.060392484068870544, 0.399131715297699, -0.3161366283893585, 0.3285105526447296, -0.13006490468978882, -0.01749403215944767, 0.050818245857954025, 0.24524399638175964, -0.1059117540717125, 0.1505749374628067, 0.2275613695383072, -0.13197769224643707, 0.21209323406219482, -0.08006005734205246, -0.12133215367794037, -0.07278279960155487, 0.02225562185049057, -0.5997285842895508, 0.14825713634490967, 0.39416855573654175, -0.12382239103317261, -0.4274124503135681, 0.018437357619404793, 0.10398504137992859, -0.1815749555826187, 0.027720171958208084, -0.05991892144083977, -0.16533486545085907, -0.4909735918045044, -0.3662240505218506, -0.09018287807703018, -0.6803269982337952, 0.1732238382101059, 0.056583430618047714, 0.10859421640634537, -0.06934159249067307, 0.16110891103744507, -0.1448851078748703, -0.17169007658958435, -0.09130378067493439, -0.21972934901714325, -0.4721900522708893, 0.24956750869750977, -0.3456706702709198, -0.0769302099943161, 0.048770416527986526, -0.08985635638237, 0.17200294137001038, 0.21606214344501495, 0.20619146525859833, -0.027984101325273514, -0.07197297364473343, -0.03460244461894035, -0.3798736035823822, 0.04444960504770279, 0.49336159229278564, 0.1968434900045395, -0.2591874301433563, -0.009490247815847397, -0.022797714918851852, 0.2339707612991333, 0.32520243525505066, -0.025650210678577423, -0.26644375920295715, 0.1826067566871643, 0.17292390763759613, 0.050728939473629, 0.22096513211727142, -0.07472750544548035, -0.01875799149274826, 0.13390181958675385, 0.47897055745124817, -0.10925232619047165, -0.004173869267106056, 0.007412582635879517, 0.30578240752220154, 0.3523595929145813, 0.0588807575404644, -0.026675250381231308, 0.16894078254699707, -0.1322673261165619, 0.1675003618001938, -0.15263262391090393, -0.06265892088413239, 0.17397597432136536, -0.0006042644381523132, 0.1337037980556488, -0.15187107026576996, 0.009692765772342682, -0.39024555683135986, 0.08412198722362518, -0.01989188976585865, 0.2594459354877472, 0.07947365194559097, -0.14013387262821198, -0.27195751667022705, -0.1799781620502472, -0.3848089277744293, 0.27868521213531494, 0.19267158210277557, 0.10234534740447998, 0.05188574269413948, -0.164610356092453, -0.08213554322719574, -0.09603756666183472, 0.47144615650177, -0.1796189397573471, -0.4911707043647766, 0.24648943543434143, 0.2712310254573822, -0.2097322642803192, -0.06635434925556183, -0.04051832854747772, 0.24665160477161407, 0.18195360898971558, 0.449476420879364, -0.27993249893188477, -0.3666708469390869, 0.3079269230365753, 0.04063728079199791, 0.06518730521202087, -0.32195600867271423, -0.18646368384361267, 0.01483340933918953, -0.318584144115448, -0.15324854850769043, 0.10509222000837326, 0.07968374341726303, -0.26822689175605774, -0.33493873476982117, 0.3010471761226654, -0.324881911277771, -0.09053701162338257, 0.16720858216285706, 0.39183804392814636, 0.35567688941955566, -0.21278820931911469, 0.19686676561832428, -0.0231219083070755, 0.4194057583808899, 0.35389354825019836, -0.01091376319527626, -0.107014000415802, -0.03226974233984947, -0.2605978846549988, 0.27542397379875183, 0.2998896837234497, -0.08036146312952042, 0.13651439547538757, -0.08812633901834488, 0.26788997650146484, -0.03242418169975281, 0.09962350875139236, 0.24680323898792267, -0.1413940042257309, -0.6676620841026306, -0.169944629073143, 0.11500438302755356, 0.15972021222114563, -0.1137206181883812, 0.6177101135253906, 0.05916229262948036, -0.27699294686317444, -0.09458068758249283, 0.025201939046382904, 0.9507350325584412, 0.03880509361624718, 0.2491394430398941, 0.26703789830207825, -0.19606557488441467, 0.43561500310897827, -0.31184208393096924, 0.21680934727191925, -0.3241662085056305, -0.21196886897087097, -0.11924189329147339, -0.17712146043777466, 0.28510722517967224, 0.23569674789905548, -0.45759427547454834, 0.010413086973130703, -0.33774906396865845, 0.1761055290699005, -0.2513904571533203, 0.2124839723110199, -0.043963029980659485, -0.16543246805667877, -0.1688169687986374, 0.17077423632144928, -0.0961550623178482, -0.14863930642604828, -0.27412596344947815, -0.16749829053878784, 0.016771350055933, -0.05088981240987778, 0.025491662323474884, 0.0587257444858551, 0.10336548089981079, 0.09476608783006668, 0.048274338245391846, -0.09432841837406158, -0.00943098496645689, -0.40499359369277954, 0.20679379999637604, 0.0008077099919319153, 0.17804919183254242, -0.1311698853969574, 0.19881969690322876, 0.18066060543060303, 0.015674171969294548, -0.18979492783546448, 0.26500582695007324, -0.05969978868961334, -0.06609755754470825, 0.06983571499586105, 0.13513179123401642, -0.3356095552444458, -0.22489365935325623, 0.22129620611667633, -0.41189664602279663, -0.2612636387348175, -0.15705697238445282, 0.3319850564002991, -0.14175817370414734, -0.23784388601779938, 0.24710775911808014, 0.14081282913684845, -0.11663804948329926, 0.13735654950141907, -0.1354851871728897, -0.10801094770431519, -0.15694144368171692, 0.15409418940544128, 0.08505755662918091, -0.08598189055919647, -0.006753847002983093, -0.038541607558727264, -0.2730695903301239, -0.28587302565574646, -0.11764129996299744, 0.3102208077907562, -0.160527765750885, 0.20169739425182343, 0.023445673286914825, -0.21480199694633484, 0.038247108459472656, 0.2656886577606201, 0.009962320327758789, 0.2931463122367859, -0.20397646725177765, -0.19314050674438477, -0.4160764515399933, 0.0758417621254921, 0.07953111827373505, 0.3407839834690094, -0.0892660990357399, 0.5189405083656311, 0.03629019856452942, -0.17766313254833221, -0.4824669361114502, -0.1318090409040451, -0.1403559148311615, -0.027068976312875748, -0.24423006176948547, 0.08075298368930817, -0.13752423226833344, -0.02826259844005108, 0.2381555736064911, 0.1160033717751503, -0.19436028599739075, -0.35968804359436035, 0.03066254034638405, 0.06387421488761902, 0.03153567388653755, -0.18306796252727509, 0.16541467607021332, -0.17113201320171356, -0.18574143946170807, -0.03434649109840393, 0.04632166400551796, 0.052020713686943054, -0.0848945826292038, 0.22270497679710388, 0.1328897476196289, -0.018642917275428772, 0.2225443571805954, 0.05330779030919075, 0.06484761089086533, 0.010803699493408203, -0.022342078387737274, 0.2786576449871063, -0.2739775478839874, -0.051239125430583954, -0.04820573329925537, 0.178298681974411, 0.24761618673801422, 0.07442712783813477, 0.077280692756176, -0.05373665690422058, -0.0801922082901001, 0.12950795888900757, 0.31585177779197693, 0.17309504747390747, 0.07689470797777176, -0.12892308831214905, 0.023545637726783752, 0.3502231240272522, -0.2101147323846817, -0.36619117856025696, 0.3213779330253601, 0.31650084257125854, 0.20813924074172974, -0.04012545198202133, 0.03162841871380806, -0.13594233989715576, 0.17701351642608643, 0.18672752380371094, -0.1292525827884674, -0.4724501371383667, 0.45939791202545166, 0.11800692975521088, 0.04301460459828377, 0.045133110135793686, 0.057058848440647125, 0.055582307279109955, 0.2713512182235718, 0.09949703514575958, 0.18746840953826904, 0.23413044214248657, 0.4710785448551178, 0.013279542326927185, -0.03053385764360428, -0.27969425916671753, 0.13081449270248413, 0.3991244435310364, -0.08471061289310455, 0.018795717507600784, 0.6752657890319824, -0.184425950050354, -0.14809653162956238, -0.18775677680969238, -0.023682963103055954, 0.05175797641277313, -0.3460955321788788, 0.07577553391456604, 0.026145219802856445, -0.10059941560029984, -0.0667068287730217, -0.08917837589979172, -0.009837038815021515, 0.017386015504598618, 0.4176444709300995, 0.012491773813962936, 0.19167563319206238, -0.1553620547056198, 0.1828238070011139, 0.17525339126586914, 0.42360633611679077, -0.06983964890241623, -0.16518761217594147, 0.331992506980896, -0.21789765357971191, 0.3296532928943634, 0.11791279166936874, 0.27284345030784607, 0.3020434081554413, 0.19119217991828918, -0.06974635273218155, -0.15168794989585876, -0.13230493664741516, -0.06382548809051514, -0.06319759786128998, 0.3672548830509186, -0.13978895545005798, 0.1811048686504364, 0.38908395171165466, -0.29637038707733154, 0.3304297626018524, 0.09675158560276031, -0.03729710727930069, -0.400542676448822, 0.1726461946964264, 0.1672854721546173, -0.5348927974700928, 0.0767897441983223, -0.06965609639883041, -0.096668541431427, -0.17423181235790253, 0.16908645629882812, 0.008593645878136158, -0.033502064645290375, -0.36523762345314026, 0.17376424372196198, 0.3018682301044464, 0.26850104331970215, -0.08712704479694366, 0.0044574253261089325, -0.25562208890914917, -0.4143143892288208, -0.2763281464576721, 0.0526207834482193, 0.013416841626167297, 0.21186845004558563, 0.07829345017671585, 0.13325321674346924, -0.06011458486318588, -0.01973235234618187, 0.26451224088668823, 0.16738706827163696, 0.08780935406684875, -0.16505102813243866, -0.4356905221939087, 0.1446034461259842, 0.24081425368785858, -0.2925780713558197, 0.03963085263967514, -0.18356680870056152, 0.16822262108325958, 0.05545838549733162, 0.1737339198589325, -0.003214605152606964, 0.1746707260608673, 0.13846056163311005, 0.08703503757715225, 0.1943056434392929, 0.04752442240715027, -0.08627991378307343, -0.10138506442308426, 0.21002830564975739, -0.02365310862660408, -0.13943208754062653, -0.2778986990451813, 0.23237064480781555, 0.19164547324180603, 0.31308451294898987, -0.24176056683063507, -0.11419019103050232, -0.1328226625919342, -0.20669201016426086, 0.062073178589344025, 0.3584560453891754, -0.43584007024765015, 0.4179973006248474, 0.21409878134727478, -0.038499969989061356, -0.03577123582363129, 0.1792314052581787, 0.14689573645591736, -0.19504933059215546, -0.15521065890789032, -0.1632245033979416, 0.3344525098800659, 0.166202574968338, -0.42847391963005066, 0.02196429669857025, 0.2748200297355652, -0.014949589967727661, 0.02008613385260105, -0.22283118963241577, -0.10709598660469055, 0.2543395757675171, 0.07523971796035767, -0.13488677144050598, 0.24893459677696228, -0.17020951211452484, -0.04520741105079651, -0.07221563160419464, 0.22808712720870972, 0.1881386637687683, -0.3980477750301361, -0.09906460344791412, -0.38698452711105347 ]
https://github.com/huggingface/datasets/pull/2151
Add support for axis in concatenate datasets
Thank you guys for implementing this. Minor thing I noticed in the [documentation](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.concatenate_datasets): it says "Converts a list of Dataset with **the same schema** into a single Dataset". With the addition of the axis parameter, perhaps this should be reworded, no?
Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853.
41
text: Add support for axis in concatenate datasets Add support for `axis` (0 or 1) in `concatenate_datasets`. Close #853. Thank you guys for implementing this. Minor thing I noticed in the [documentation](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.concatenate_datasets): it says "Converts a list of Dataset with **the same schema** into a single Dataset". With the addition of the axis parameter, perhaps this should be reworded, no?
[ -0.22539032995700836, -0.2778759002685547, -0.11643895506858826, 0.013204976916313171, 0.2287532538175583, 0.17282336950302124, 0.11151334643363953, 0.08390304446220398, -0.011903097853064537, 0.1996210217475891, -0.3607037663459778, 0.3651832938194275, 0.0386507622897625, 0.6492222547531128, -0.13215036690235138, -0.22270017862319946, 0.2236284762620926, 0.343572735786438, -0.23497778177261353, -0.03273128718137741, -0.37146472930908203, 0.27711111307144165, -0.18122164905071259, -0.08342054486274719, -0.42052677273750305, 0.07121492922306061, -0.08915261179208755, 0.1649080365896225, -0.31884920597076416, -0.3266255557537079, 0.1818072497844696, 0.33819082379341125, 0.0368022546172142, 0.459684282541275, -0.00010955578181892633, -0.07689011096954346, 0.14259091019630432, 0.04964239150285721, -0.2541142702102661, -0.0645802766084671, -0.2114160656929016, -0.4155707359313965, 0.16146156191825867, -0.03637973964214325, -0.018423574045300484, -0.16200987994670868, -0.04369542747735977, -0.20833683013916016, 0.1645270138978958, -0.044680528342723846, 0.24934321641921997, 0.005076173692941666, 0.38127604126930237, -0.3386227488517761, -0.15967592597007751, 0.3854658007621765, -0.24892079830169678, 0.08045090734958649, 0.1568676233291626, 0.20444299280643463, -0.05058152228593826, 0.376776784658432, 0.05425995588302612, -0.08904905617237091, 0.4106513559818268, 0.0836627259850502, 0.2025594711303711, -0.3775542378425598, -0.019899163395166397, 0.15768137574195862, 0.7451584935188293, -0.2114197313785553, -0.3359512388706207, -0.23732295632362366, 0.09065350145101547, -0.1206681951880455, -0.19499889016151428, 0.08085378259420395, -0.0888269692659378, 0.20522455871105194, -0.11799045652151108, -0.3972248435020447, -0.28341609239578247, 0.05889904499053955, -0.10107294470071793, 0.3043484687805176, -0.10822083055973053, 0.09514951705932617, 0.3018995225429535, -0.13748899102210999, -0.08117048442363739, -0.08982477337121964, -0.09541164338588715, 0.16373485326766968, -0.44460350275039673, -0.22009490430355072, 0.060075901448726654, 0.21466922760009766, 0.4355165362358093, 0.2585781216621399, 0.1474151462316513, 0.13570988178253174, -0.19889508187770844, 0.19444388151168823, 0.28543621301651, 0.24807213246822357, 0.16680166125297546, -0.012354182079434395, 0.3006209433078766, 0.15191900730133057, 0.3690488934516907, -0.058022767305374146, -0.05434035509824753, -0.307536244392395, -0.2825027108192444, -0.03677787259221077, 0.3505222201347351, -0.04820027947425842, -0.17772100865840912, -0.11104775220155716, 0.047705523669719696, -0.23237662017345428, -0.10823146253824234, 0.18774202466011047, -0.003780477214604616, 0.40718892216682434, 0.15337075293064117, 0.09251925349235535, 0.08323892951011658, -0.10006827861070633, -0.1682746261358261, 0.208811417222023, -0.06751323491334915, 0.1558579057455063, -0.152481347322464, -0.4387218654155731, 0.09169010818004608, 0.22760321199893951, 0.5126596689224243, 0.09146316349506378, -0.12665300071239471, 0.009860668331384659, 0.11710240691900253, 0.12903276085853577, 0.01540461927652359, -0.05230017751455307, 0.17697472870349884, -0.0545884408056736, -0.10950428992509842, 0.15741853415966034, -0.17192640900611877, -0.2857637107372284, -0.5875023007392883, 0.15317502617835999, -0.11469557881355286, -0.10645937919616699, -0.27595704793930054, 0.4881080389022827, -0.3022267520427704, -0.08437079191207886, 0.20240116119384766, 0.20047105848789215, 0.09682328999042511, -0.17961779236793518, 0.16523157060146332, 0.2590915262699127, -0.24196621775627136, -0.16840222477912903, 0.15498611330986023, -0.39801162481307983, -0.03637894243001938, 0.28476884961128235, -0.2568904459476471, 0.034349408000707626, -0.14672715961933136, 0.1252928525209427, 0.29773885011672974, -0.3721604645252228, 0.1307261884212494, 0.015576248057186604, -0.16180962324142456, 0.07695570588111877, 0.05876409634947777, -0.06778837740421295, 0.18074095249176025, 0.07767587155103683, 0.06725769490003586, -0.1349203884601593, 0.0033414121717214584, -0.12200570851564407, -0.12370750308036804, -0.0714038833975792, 0.32706916332244873, -0.015125923790037632, -0.3286716341972351, 0.23015674948692322, 0.1323203444480896, -0.2976946234703064, 0.39503923058509827, -0.23829805850982666, 0.15817736089229584, 0.1560523808002472, 0.337289959192276, -0.041003964841365814, 0.060844533145427704, 0.1688203513622284, -0.6743027567863464, -0.08100402355194092, 0.22272735834121704, 0.4047412872314453, 0.08941580355167389, -0.2645930349826813, -0.11498075723648071, -0.08811324089765549, -0.15791021287441254, -0.2713310420513153, 0.10458774864673615, -0.07049208879470825, 0.030920378863811493, -0.056611381471157074, -0.4711613357067108, 0.3793849050998688, -0.18058761954307556, 0.039701513946056366, -0.41227129101753235, 0.13559278845787048, 0.019989730790257454, 0.2655790448188782, -0.11637435853481293, 0.29632270336151123, 0.01839281991124153, -0.24240781366825104, 0.17886927723884583, 0.45142123103141785, -0.27680903673171997, -0.04528960585594177, 0.17521566152572632, 0.3121173083782196, 0.2894260883331299, 0.04236280545592308, 0.04751700162887573, -0.5453925132751465, 0.1899620145559311, -0.11890058219432831, -0.3050495982170105, 0.27997761964797974, -0.15221372246742249, 0.05294911563396454, -0.0020285621285438538, 0.12570057809352875, 0.27064675092697144, 0.090617835521698, -0.5304368734359741, -0.140931636095047, 0.018781494349241257, 0.1366988867521286, -0.2006407082080841, 0.22568608820438385, -0.4087847173213959, 0.08018896728754044, 0.6514421105384827, -0.17860829830169678, -0.17059987783432007, 0.2748514413833618, -0.06489001959562302, -0.04990050941705704, 0.34568485617637634, -0.006332360208034515, 0.429510235786438, 0.2769613564014435, 0.030855469405651093, 0.26659244298934937, 0.0024095503613352776, -0.023677024990320206, 0.25605881214141846, 0.12384641170501709, 0.11455544084310532, 0.15736901760101318, 0.0014684791676700115, 0.15276359021663666, -0.20081397891044617, -0.35345321893692017, -0.06959410011768341, 0.17488160729408264, -0.29996201395988464, -0.18948259949684143, 0.07923400402069092, 0.003013819456100464, -0.02159819006919861, -0.3051563799381256, -0.3755466938018799, -0.4976572096347809, -0.14550615847110748, 0.029562676325440407, -0.07599548995494843, 0.3822726607322693, -0.049326226115226746, 0.5414769053459167, -0.24403375387191772, 0.0826621875166893, -0.17840734124183655, -0.0751262679696083, 0.08614804595708847, 0.06525692343711853, -0.16563569009304047, -0.06795205920934677, 0.18585190176963806, -0.2541933059692383, 0.3383169174194336, -0.4772263467311859, -0.19438296556472778, 0.2634924650192261, -0.31775808334350586, -0.2475193440914154, 0.3708338141441345, 0.3587070107460022, -0.23122107982635498, -0.17308370769023895, 0.1441785991191864, -0.09549981355667114, -0.18114495277404785, -0.21760043501853943, -0.08422885090112686, -0.0491948276758194, -0.29813194274902344, -0.1591418981552124, -0.09494037181138992, -0.5607154965400696, 0.526483416557312, -0.03896104544401169, 0.020484179258346558, 0.2936064600944519, 0.084553062915802, 0.3012067973613739, -0.32756656408309937, 0.05847920477390289, -0.3319135010242462, -0.6137305498123169, 0.2915704548358917, -0.2777118682861328, -0.15071262419223785, 0.1833793967962265, 0.147959366440773, 0.27591586112976074, -0.12059557437896729, -0.03687063604593277, -0.42011216282844543, 0.029266564175486565, 0.24099698662757874, -0.33969584107398987, 0.4207049608230591, 0.4067971706390381, 0.19692569971084595, -0.1099320650100708, -0.1317456066608429, -0.33116695284843445, -0.07782918959856033, 0.15499350428581238, -0.12356362491846085, -0.039559416472911835, 0.31779634952545166, 0.043687980622053146, 0.1217687577009201, 0.41389983892440796, 0.08767907321453094, 0.22647009789943695, -0.0451110303401947, 0.5310532450675964, -0.10165127366781235, -0.2814720869064331, 0.026713449507951736, -0.11961629986763, 0.2815932035446167, 0.037620946764945984, 0.09683170914649963, 0.2840956151485443, -0.31847381591796875, 0.08343319594860077, -0.15599435567855835, -0.07397770881652832, 0.013719549402594566, 0.059712693095207214, 0.19053080677986145, -0.19619625806808472, -0.19225135445594788, -0.19459523260593414, 0.28435567021369934, 0.10681174695491791, 0.335976243019104, 0.2876551151275635, -0.059700366109609604, -0.46854862570762634, -0.12378774583339691, -0.6483826637268066, 0.3843895196914673, 0.08196577429771423, -0.059810198843479156, 0.007160726934671402, -0.13249683380126953, -0.06039133667945862, 0.11724637448787689, 0.6942598819732666, 0.011290536262094975, -0.7104926109313965, 0.13501738011837006, -0.1308394968509674, -0.3059543967247009, 0.16770488023757935, -0.050916291773319244, 0.23567986488342285, 0.17714864015579224, 0.5563311576843262, -0.3879067897796631, -0.4553424119949341, 0.511821985244751, -0.09390171617269516, 0.1252349317073822, -0.0033439635299146175, -0.14868620038032532, -0.2525753974914551, -0.37946099042892456, -0.3068193793296814, 0.16594529151916504, 0.1880556344985962, -0.004603920504450798, -0.05543689802289009, 0.18857239186763763, -0.20420539379119873, 0.0630858838558197, 0.17743347585201263, 0.24350428581237793, 0.3376390039920807, -0.17461080849170685, 0.3689211308956146, 0.031376808881759644, 0.2545658051967621, 0.48681536316871643, -0.28611651062965393, -0.5465182662010193, 0.08637011051177979, -0.07411283254623413, 0.5733885765075684, 0.15128345787525177, 0.050458963960409164, 0.0961221233010292, -0.14373327791690826, 0.21192634105682373, -0.2720939815044403, -0.015393141657114029, 0.2104462832212448, 0.15050183236598969, -0.7654074430465698, -0.24812926352024078, 0.40568625926971436, 0.16480304300785065, -0.01074817031621933, 0.47696274518966675, 0.41053104400634766, -0.14948201179504395, -0.29346638917922974, 0.0062578096985816956, 0.9552457332611084, 0.15062619745731354, 0.35710853338241577, 0.25486016273498535, -0.1482854038476944, 0.6258504986763, -0.2737555503845215, 0.09290077537298203, -0.11080210655927658, -0.02597092092037201, -0.23241032660007477, -0.16344700753688812, 0.3052404224872589, -0.11699378490447998, -0.5278367400169373, 0.04164095222949982, -0.20978842675685883, 0.08540935814380646, -0.11783634126186371, 0.1686365008354187, -0.01659327931702137, -0.4573799967765808, -0.4279848039150238, 0.12565641105175018, -0.034539684653282166, 0.02138858661055565, -0.2848004400730133, -0.15924303233623505, -0.014594607055187225, -0.11005014926195145, -0.20330193638801575, -0.3209801912307739, -0.053311243653297424, -0.002662191167473793, 0.3524039685726166, -0.19328716397285461, 0.22777330875396729, 0.07527033984661102, 0.2667720317840576, -0.26757028698921204, -0.13756318390369415, -0.1443055272102356, -0.14210644364356995, 0.16253583133220673, -0.09434983879327774, -0.12000066787004471, 0.2223467379808426, 0.036055661737918854, -0.1040448546409607, 0.18508142232894897, -0.023172207176685333, -0.3425152897834778, -0.2103380262851715, 0.181861013174057, -0.29496198892593384, -0.3603435754776001, 0.020447928458452225, 0.23010289669036865, 0.03585966303944588, -0.22066037356853485, 0.09792888164520264, 0.32079172134399414, -0.31012314558029175, 0.04607437178492546, 0.2232145071029663, -0.3045986592769623, -0.11171896755695343, 0.20665013790130615, -0.22848796844482422, -0.2532200217247009, -0.030550651252269745, 0.12488855421543121, -0.23040053248405457, -0.13498017191886902, 0.150037944316864, 0.443020224571228, -0.46971559524536133, 0.0854584202170372, 0.1677705943584442, -0.03257398307323456, -0.17679837346076965, 0.531873881816864, 0.1947963535785675, 0.20628860592842102, -0.044796522706747055, -0.17785128951072693, -0.34691518545150757, 0.22769080102443695, -0.10159943997859955, 0.37430471181869507, -0.007283266633749008, 0.2994078993797302, 0.26491299271583557, -0.22102610766887665, -0.3507724106311798, -0.17908315360546112, -0.13277584314346313, -0.05285285413265228, 0.5360462665557861, -0.045845627784729004, 0.13776765763759613, -0.02490152232348919, 0.13939811289310455, 0.19515469670295715, -0.25115901231765747, -0.16012471914291382, -0.10880781710147858, 0.14580504596233368, 0.167212575674057, -0.2147546410560608, 0.17761506140232086, 0.16648872196674347, -0.3289091885089874, -0.19497844576835632, 0.23662203550338745, 0.21174201369285583, -0.09851357340812683, 0.22441266477108002, 0.048287976533174515, -0.13627129793167114, 0.20813056826591492, -0.22132810950279236, 0.42068973183631897, 0.1835436224937439, 0.04101767763495445, 0.14155331254005432, -0.26596397161483765, -0.07253007590770721, 0.10023429989814758, 0.5107810497283936, 0.4263759255409241, 0.04913290962576866, -0.02137725055217743, 0.008579492568969727, -0.025641068816184998, 0.1422732174396515, 0.4758487641811371, 0.11432142555713654, -0.1948164403438568, 0.1527811884880066, 0.1518646776676178, 0.20670431852340698, -0.08473828434944153, -0.31930890679359436, 0.2734130024909973, 0.19815653562545776, 0.15841202437877655, 0.10099897533655167, 0.016925733536481857, 0.17415496706962585, 0.19328263401985168, 0.04532299190759659, 0.26173487305641174, -0.20252642035484314, 0.5048761963844299, 0.04367869347333908, -0.17946791648864746, 0.09748068451881409, 0.22874411940574646, 0.38876670598983765, 0.25175100564956665, 0.15067383646965027, -0.2215559482574463, 0.21445147693157196, 0.12061141431331635, 0.21102231740951538, 0.14492350816726685, -0.30309048295021057, 0.026335639879107475, 0.049725525081157684, -0.23119837045669556, -0.008618436753749847, 0.09909193962812424, 0.24781477451324463, -0.16719739139080048, -0.1830293834209442, -0.06164582073688507, 0.1787707507610321, -0.23571762442588806, -0.08535021543502808, 0.08938591182231903, -0.26707473397254944, 0.09203758835792542, -0.06868422031402588, 0.029535474255681038, -0.02770376205444336, 0.5663697123527527, -0.1632792204618454, 0.0760059654712677, -0.271589994430542, 0.21046149730682373, 0.10450218617916107, 0.41693058609962463, 0.04880363866686821, -0.11361361294984818, 0.32312142848968506, -0.13935618102550507, 0.036259833723306656, 0.4650464951992035, 0.466967910528183, 0.08698080480098724, 0.2472386509180069, 0.11523205786943436, -0.3920018970966339, 0.023751912638545036, 0.14083422720432281, -0.05415460467338562, 0.07976096123456955, -0.43066713213920593, 0.1969568133354187, 0.216395765542984, -0.09965554624795914, 0.25571998953819275, -0.1553381085395813, 0.03603781759738922, -0.6768624782562256, 0.16526135802268982, -0.18130244314670563, -0.1878816783428192, -0.05391344428062439, 0.1665470004081726, -0.12799179553985596, -0.22272178530693054, 0.1940513700246811, 0.008300943300127983, -0.06123463064432144, -0.24789617955684662, 0.11054493486881256, 0.26530879735946655, 0.29831042885780334, 0.04670276492834091, 0.28691935539245605, -0.19645223021507263, -0.244317889213562, -0.35553067922592163, -0.11346624046564102, 0.3220129609107971, 0.019478296861052513, 0.06919260323047638, 0.003226805478334427, 0.03638564422726631, 0.16473940014839172, 0.3443726897239685, 0.014333134517073631, 0.245703786611557, -0.2767193913459778, -0.21791964769363403, 0.052050936967134476, 0.24446462094783783, -0.09819458425045013, 0.174289271235466, -0.004354417324066162, 0.19259698688983917, 0.05754655972123146, 0.002981901168823242, -0.2665836811065674, 0.31995460391044617, 0.010294552892446518, -0.17370805144309998, 0.20951661467552185, 0.2352103888988495, 0.11358813941478729, -0.15357059240341187, -0.01963868737220764, -0.02380300685763359, -0.22257135808467865, -0.20843540132045746, 0.3917142152786255, 0.0023736469447612762, 0.15406329929828644, -0.3812921643257141, -0.3952479958534241, -0.12002871930599213, -0.0073878029361367226, 0.14178913831710815, 0.15445445477962494, -0.4172292649745941, 0.3951909840106964, 0.09347084909677505, -0.25502917170524597, 0.035312436521053314, 0.18540820479393005, 0.13888093829154968, 0.024938439950346947, -0.1625591367483139, -0.16527879238128662, 0.4632447361946106, 0.0772000104188919, -0.3251565992832184, -0.05740315467119217, -0.038462430238723755, 0.060680899769067764, -0.2809607982635498, -0.603067934513092, -0.09469414502382278, 0.23908135294914246, 0.21044248342514038, -0.4181126058101654, 0.3943991959095001, -0.10389512777328491, -0.27037161588668823, -0.1738346666097641, 0.3174584209918976, 0.15984386205673218, -0.04576337710022926, 0.16878068447113037, -0.28912097215652466 ]
https://github.com/huggingface/datasets/pull/2145
Implement Dataset add_column
#2274 has been merged. You can now merge master into this branch and use `assert_arrow_metadata_are_synced_with_dataset_features(dset)` to make sure that the metadata are good :)
Implement `Dataset.add_column`. Close #1954.
24
text: Implement Dataset add_column Implement `Dataset.add_column`. Close #1954. #2274 has been merged. You can now merge master into this branch and use `assert_arrow_metadata_are_synced_with_dataset_features(dset)` to make sure that the metadata are good :)
[ -0.43835458159446716, 0.04901327192783356, -0.17769142985343933, 0.008659455925226212, 0.13006296753883362, 0.18238982558250427, 0.28498339653015137, 0.3003826141357422, -0.022954661399126053, 0.07832315564155579, 0.05601275712251663, 0.5791818499565125, -0.09871383011341095, 0.2824605703353882, -0.20819850265979767, 0.28262078762054443, 0.130965456366539, 0.2987058758735657, -0.5640227794647217, -0.06421229243278503, -0.2006470113992691, 0.04552341625094414, -0.01649932563304901, -0.005191989243030548, -0.26892685890197754, 0.0034968461841344833, 0.04349931329488754, 0.14051444828510284, -0.3032098412513733, -0.4413970410823822, -0.007508242502808571, 0.14390476047992706, -0.21927852928638458, 0.4346698820590973, -0.00010035280138254166, 0.049798384308815, 0.43790751695632935, 0.10399563610553741, -0.4298742711544037, 0.13073818385601044, -0.32718056440353394, -0.27765703201293945, 0.10652528703212738, -0.20047897100448608, 0.13114234805107117, -0.31151020526885986, -0.09726905822753906, -0.06442822515964508, -0.13505394756793976, 0.17290303111076355, 0.3560516834259033, 0.18598200380802155, 0.3360901176929474, -0.35572242736816406, -0.008842624723911285, -0.025216825306415558, 0.05046100914478302, 0.18538135290145874, -0.06409010291099548, 0.026313303038477898, 0.11348730325698853, 0.38589611649513245, 0.05745546519756317, -0.10494604706764221, 0.2508881688117981, -0.06773034483194351, 0.3289223313331604, -0.05625227093696594, 0.19666039943695068, 0.08662417531013489, 0.8269675374031067, -0.30216214060783386, -0.012968450784683228, 0.09931167215108871, -0.07957753539085388, -0.31998541951179504, 0.11114978790283203, -0.146837517619133, 0.21112985908985138, 0.06847752630710602, 0.14981435239315033, -0.40905311703681946, -0.0034506842494010925, -0.019740119576454163, -0.306427001953125, 0.4780098795890808, 0.06256356090307236, -0.15065380930900574, 0.07706625759601593, -0.17548367381095886, 0.02631480246782303, 0.08130757510662079, -0.2747178077697754, -0.06349653005599976, -0.06569617986679077, -0.1434135138988495, 0.03619428351521492, -0.34252625703811646, 0.008227184414863586, 0.3244967460632324, -0.022432826459407806, 0.024745101109147072, -0.0771007165312767, 0.2773970067501068, 0.18041002750396729, 0.03785189613699913, 0.0026741400361061096, 0.24324734508991241, 0.22442059218883514, -0.110514335334301, -0.00937436893582344, -0.02594352513551712, -0.05929267406463623, -0.19309008121490479, 0.10350275039672852, 0.013147524558007717, 0.39421623945236206, -0.15001122653484344, 0.033072926104068756, 0.17020411789417267, 0.10807358473539352, -0.20639173686504364, -0.0023967819288372993, 0.24915525317192078, 0.05735545977950096, -0.041957609355449677, 0.04353626072406769, 0.018057163804769516, 0.18432576954364777, 0.03893107920885086, -0.23524406552314758, 0.10381439328193665, -0.0199233740568161, -0.2698811888694763, -0.06540646404027939, -0.12870649993419647, 0.14549598097801208, 0.20282861590385437, -0.12726162374019623, 0.06061427295207977, -0.08497994393110275, -0.03836371749639511, 0.17217779159545898, 0.3145596385002136, -0.019245930016040802, 0.03634561598300934, 0.051649246364831924, 0.1538672298192978, -0.13379815220832825, 0.06115954741835594, -0.07422364503145218, -0.483757346868515, -0.6616382598876953, 0.39651355147361755, 0.04190445691347122, -0.1376693844795227, -0.049701713025569916, 0.07972632348537445, 0.03132055699825287, -0.19455184042453766, 0.1408233940601349, 0.12199869006872177, -0.03434941917657852, -0.14901378750801086, 0.04823824763298035, 0.17099615931510925, -0.4678487777709961, 0.102739617228508, -0.1944737583398819, -0.18269087374210358, -0.14107146859169006, 0.03482842072844505, -0.13222864270210266, 0.13088274002075195, -0.18421098589897156, -0.030891146510839462, 0.32163670659065247, -0.17216193675994873, -0.12466169893741608, -0.09429547935724258, -0.17165687680244446, -0.2289358228445053, 0.009204939007759094, -0.09058290719985962, 0.07133544981479645, -0.16620464622974396, -0.08984555304050446, -0.04470277577638626, 0.0707310140132904, -0.10292011499404907, -0.1733669638633728, -0.08448285609483719, -0.08375634998083115, -0.014280950650572777, 0.08213910460472107, -0.07764492183923721, 0.2501007318496704, -0.02779967337846756, 0.0912274420261383, 0.0606551356613636, 0.08432591706514359, 0.18847912549972534, 0.3994333744049072, 0.05102568119764328, -0.09216996282339096, -0.05989041179418564, -0.322804719209671, 0.07822657376527786, 0.4833630621433258, 0.22458896040916443, -0.042915329337120056, -0.2984050512313843, -0.20754989981651306, 0.12431644648313522, -0.1251438707113266, 0.0901985764503479, 0.3521749675273895, 0.16701850295066833, -0.2845848798751831, -0.0064172931015491486, -0.3072156608104706, 0.17841500043869019, -0.19934247434139252, 0.07105262577533722, -0.0596628375351429, 0.07109679281711578, -0.06196273863315582, 0.09457939863204956, -0.05967262014746666, 0.1678231954574585, -0.005664698779582977, -0.08406282961368561, -0.07463716715574265, 0.43638813495635986, -0.20328085124492645, 0.17301595211029053, 0.04155092313885689, 0.1944565325975418, 0.05061487853527069, -0.0527900755405426, -0.09382559359073639, -0.022119998931884766, 0.10619556158781052, -0.005954999476671219, -0.2842012643814087, -0.07748293876647949, 0.21437548100948334, -0.051606617867946625, 0.2567092180252075, -0.02216971665620804, 0.17972534894943237, 0.09697148203849792, -0.01750705949962139, -0.40163329243659973, -0.14031152427196503, 0.0421532541513443, -0.03997232764959335, 0.2732189893722534, -0.09174075722694397, 0.1443035900592804, 0.6713862419128418, 0.009348642081022263, 0.23337528109550476, -0.0024887025356292725, -0.16287744045257568, -0.03378194943070412, 0.14260993897914886, 0.10981427133083344, 0.3986817002296448, 0.28031501173973083, 0.27472251653671265, 0.23979125916957855, -0.01533657405525446, 0.04561006650328636, 0.3126891851425171, 0.18671691417694092, 0.25843507051467896, 0.1932562291622162, 0.16196762025356293, -0.05095013603568077, -0.20976558327674866, -0.0058952197432518005, 0.2120838165283203, 0.25993138551712036, -0.288628488779068, -0.237870454788208, -0.3990894854068756, -0.029195301234722137, -0.0985792949795723, -0.224652960896492, -0.22560277581214905, -0.43160372972488403, 0.02915217913687229, 0.18311142921447754, -0.18825365602970123, 0.24997465312480927, -0.18753263354301453, 0.1286233514547348, -0.07388483732938766, 0.014142774045467377, -0.11765662580728531, -0.27599427103996277, -0.008595418184995651, 0.2050018161535263, 0.17865541577339172, 0.0003838040865957737, 0.3545438349246979, 0.21351812779903412, 0.14702939987182617, -0.461331844329834, -0.49637943506240845, 0.14622348546981812, -0.23693053424358368, -0.2215840220451355, 0.27795588970184326, -0.013411737978458405, 0.09627456963062286, -0.19223059713840485, 0.05155203863978386, 0.07223507761955261, -0.2929026186466217, -0.11990147083997726, -0.055739521980285645, -0.14349746704101562, -0.20097509026527405, -0.5169058442115784, -0.19688808917999268, -0.6066614985466003, 0.1873212456703186, -0.0943545401096344, 0.23794957995414734, 0.11250469088554382, -0.18002621829509735, -0.008188818581402302, -0.03135421499609947, -0.017692020162940025, -0.360651433467865, 0.03665749356150627, 0.1647496372461319, -0.41007113456726074, -0.16264887154102325, 0.29145559668540955, -0.0025486815720796585, 0.4052397906780243, -0.23189131915569305, -0.10707135498523712, -0.1768653839826584, -0.13942228257656097, 0.082355797290802, -0.11346970498561859, 0.10256515443325043, 0.27823036909103394, 0.25157320499420166, -0.2613199055194855, -0.08924718201160431, -0.1809958517551422, 0.23716697096824646, 0.02938067354261875, 0.0736657902598381, -0.21922320127487183, 0.5598919987678528, -0.21761469542980194, 0.26695817708969116, -0.13421544432640076, -0.19553770124912262, 0.07762271165847778, -0.19793079793453217, 0.4787202477455139, -0.1053854301571846, -0.20860618352890015, -0.15715846419334412, -0.05698975920677185, 0.1191256195306778, 0.14214271306991577, -0.27620717883110046, 0.022286904975771904, -0.1331905722618103, -0.016037732362747192, -0.24546951055526733, -0.1468634307384491, -0.11230188608169556, -0.21271014213562012, 0.12099939584732056, -0.10300835967063904, -0.13652682304382324, -0.15399262309074402, 0.13607531785964966, 0.21568478643894196, 0.25285205245018005, -0.15394583344459534, -0.10954359173774719, -0.2489015758037567, -0.012566154822707176, -0.1738891899585724, 0.3034486174583435, -0.18353471159934998, 0.21329209208488464, -0.08891158550977707, -0.38391077518463135, -0.07942688465118408, -0.11946676671504974, 0.4296954870223999, -0.21945565938949585, -0.10365678369998932, 0.164170503616333, 0.22371187806129456, 0.11101355403661728, -0.25268861651420593, -0.029770884662866592, 0.07707832008600235, 0.2411259561777115, 0.3555753231048584, -0.29150107502937317, -0.16140997409820557, 0.6040266752243042, -0.32875606417655945, -0.06334280222654343, -0.02242499217391014, -0.3312111794948578, -0.1614559143781662, -0.17143678665161133, 0.10845258831977844, 0.062141209840774536, -0.0195990689098835, -0.05982820689678192, -0.17830225825309753, -0.11285269260406494, -0.2871832251548767, 0.07903168350458145, 0.2327944040298462, 0.24565964937210083, 0.07122409343719482, 0.20825092494487762, -0.1737595796585083, 0.2914673388004303, 0.44718122482299805, 0.5975955128669739, -0.03873041644692421, -0.08308237791061401, 0.15687116980552673, -0.4548431634902954, 0.6147114038467407, -0.03267697989940643, 0.029974360018968582, 0.4435693323612213, -0.3704797029495239, -0.01018650084733963, -0.196091890335083, -0.06253427267074585, 0.2416636198759079, 0.07464590668678284, -0.3408171534538269, -0.13102304935455322, 0.5366347432136536, 0.197164386510849, -0.07116218656301498, 0.24353960156440735, -0.015670955181121826, -0.21376514434814453, -0.03760465234518051, 0.15650515258312225, 0.7963513731956482, 0.03516434505581856, -0.056917864829301834, 0.15279333293437958, -0.44129854440689087, 0.5335877537727356, -0.2718808650970459, -0.10359032452106476, -0.26186373829841614, -0.18133538961410522, -0.04948849231004715, 0.04981636628508568, 0.09285938739776611, -0.022647902369499207, -0.39207348227500916, -0.0703364759683609, -0.15745103359222412, 0.4373887777328491, -0.04549725353717804, 0.33172333240509033, 0.06142539530992508, -0.09467758238315582, -0.15339604020118713, 0.2593548595905304, 0.00347273051738739, -0.04566735401749611, -0.24548551440238953, -0.20379355549812317, -0.05386725068092346, -0.12103942781686783, -0.06744372099637985, 0.03304819390177727, 0.13893957436084747, 0.2538028359413147, -0.05818865820765495, -0.0866372212767601, 0.013286948204040527, -0.4758104681968689, 0.30438292026519775, 0.11157983541488647, 0.10832559317350388, 0.20804424583911896, 0.25762882828712463, 0.09485166519880295, -0.10111761093139648, 0.007315781898796558, 0.2785523533821106, -0.21564647555351257, -0.09331686794757843, 0.34131062030792236, 0.01488338690251112, -0.26987266540527344, -0.16044044494628906, 0.054053328931331635, 0.08979383111000061, -0.1513998806476593, -0.16494670510292053, 0.19643427431583405, -0.22031164169311523, -0.1985415667295456, 0.2692677080631256, -0.1218903660774231, -0.18969330191612244, 0.07215490937232971, 0.02351822331547737, -0.2039358913898468, -0.03732076659798622, 0.29669639468193054, -0.06404121965169907, 0.10367514193058014, 0.36626890301704407, 0.10145330429077148, -0.10782231390476227, -0.32270702719688416, -0.2542458474636078, 0.3827395737171173, -0.35494765639305115, 0.050257518887519836, 0.051961928606033325, -0.251626193523407, 0.2823818624019623, 0.27707430720329285, 0.08198664337396622, 0.27142754197120667, -0.289133757352829, -0.15336589515209198, -0.6112499833106995, 0.15998125076293945, -0.21144156157970428, 0.41079458594322205, -0.1805674433708191, 0.032679151743650436, -0.009718366898596287, 0.21680760383605957, -0.5083043575286865, -0.07510987669229507, -0.16271357238292694, -0.002602841705083847, 0.3124561011791229, -0.026408270001411438, -0.06156478822231293, -0.3044378161430359, 0.2712516784667969, 0.13625667989253998, -0.23458966612815857, -0.3227415084838867, 0.07120364904403687, 0.062032319605350494, -0.00323527492582798, 0.21427130699157715, -0.1053415983915329, -0.056313686072826385, -0.20284497737884521, 0.2003169059753418, 0.07963193953037262, -0.21832656860351562, -0.06070958077907562, 0.15022100508213043, 0.05939335748553276, -0.09344396740198135, -0.12991464138031006, -0.08339305967092514, 0.21812309324741364, -0.0764608234167099, -0.17541897296905518, 0.13723310828208923, -0.2938879728317261, -0.05382049083709717, 0.24251428246498108, 0.11989734321832657, -0.11721964180469513, 0.08087953925132751, 0.3601197600364685, -0.12556849420070648, -0.11837230622768402, 0.026061734184622765, 0.32555195689201355, 0.06312160938978195, -0.06499126553535461, -0.18689441680908203, 0.10210863500833511, 0.3732706904411316, -0.5255438089370728, -0.13823524117469788, -0.07190358638763428, 0.006223267875611782, 0.13984964787960052, 0.08557773381471634, 0.372551828622818, 0.07597179710865021, -0.09849898517131805, 0.4214302599430084, 0.02454901486635208, -0.12329180538654327, 0.18636372685432434, 0.7173132300376892, -0.08828512579202652, 0.09514372050762177, 0.4065706729888916, 0.2400875687599182, 0.25151801109313965, 0.4842345118522644, 0.21771779656410217, 0.43330928683280945, 0.48185864090919495, -0.135664165019989, 0.26890215277671814, -0.23894500732421875, 0.3675038516521454, 0.16769415140151978, 0.16928403079509735, 0.06230610981583595, 0.3135741353034973, 0.003669232130050659, 0.06237487494945526, -0.32283321022987366, -0.16182272136211395, 0.13091358542442322, -0.15515384078025818, 0.08860170841217041, -0.13654214143753052, -0.17671537399291992, -0.13981232047080994, -0.07156163454055786, -0.013404980301856995, 0.048607438802719116, 0.12113313376903534, -0.019557930529117584, 0.028116509318351746, 0.026471756398677826, -0.18179923295974731, 0.07009269297122955, 0.17921105027198792, -0.12738344073295593, 0.08214103430509567, 0.16222086548805237, -0.22706127166748047, 0.05735793709754944, 0.33312317728996277, 0.38549813628196716, 0.1949985772371292, 0.09970051050186157, 0.21380868554115295, 0.0019598081707954407, -0.10889352858066559, 0.05486772209405899, 0.07509732246398926, 0.22710032761096954, -0.16091179847717285, 0.03462376073002815, 0.309187114238739, -0.2758726179599762, 0.22650137543678284, -0.08008652925491333, -0.08946484327316284, -0.19751395285129547, 0.22409525513648987, 0.4055033028125763, -0.5128679871559143, -0.04225023090839386, 0.030362792313098907, -0.20329594612121582, -0.35568103194236755, 0.6584774255752563, 0.2103099375963211, 0.09681140631437302, -0.17174692451953888, 0.18742689490318298, 0.18047533929347992, 0.4889814257621765, 0.32106637954711914, -0.0256781205534935, -0.0015087984502315521, -0.320017546415329, -0.6901119351387024, 0.11942003667354584, -0.14000314474105835, -0.15597975254058838, 0.2607342004776001, -0.033798329532146454, 0.3841243088245392, -0.12738730013370514, 0.3593367338180542, -0.1726885437965393, -0.01086873933672905, -0.15898169577121735, -0.3622380495071411, -0.03919662907719612, 0.04754982143640518, -0.31739598512649536, 0.036091163754463196, -0.10729314386844635, 0.09976174682378769, 0.026484880596399307, 0.24394196271896362, -0.07903923839330673, 0.12394319474697113, 0.2037927657365799, 0.031323596835136414, 0.3250921666622162, -0.1386391669511795, 0.368575781583786, -0.11750335991382599, 0.06623800098896027, -0.11953450739383698, 0.0663677379488945, -0.34068381786346436, 0.4474792778491974, 0.10859677195549011, 0.1606019139289856, 0.10550963878631592, 0.03835618495941162, -0.23885786533355713, 0.08303651958703995, -0.07189091295003891, 0.026264207437634468, -0.3373946249485016, 0.178517684340477, 0.031862929463386536, -0.03119485080242157, 0.20149485766887665, 0.07587069272994995, 0.06659088283777237, 0.037835732102394104, -0.3779032230377197, -0.4648696482181549, 0.41107872128486633, 0.05452746897935867, -0.32812002301216125, -0.2526797354221344, 0.2990916073322296, 0.1606139838695526, 0.08676525950431824, -0.6466101408004761, -0.1608198583126068, 0.3144499361515045, -0.10355982929468155, -0.29221111536026, 0.27120381593704224, 0.007639546878635883, 0.08330582082271576, -0.12630851566791534, 0.36815905570983887, -0.013091932982206345, -0.06553684175014496, -0.1868690699338913, -0.20987890660762787 ]
https://github.com/huggingface/datasets/pull/2141
added spans field for the wikiann datasets
Hi @lhoestq Thanks a lot for taking time checking it. I update "dataset_infos.json", I added description to the function of _generate_samples in wikiann.py but I was not sure about the format to write in README. thanks.
Hi @lhoestq I tried to add spans to the wikiann datasets. Thanks a lot for kindly having a look. This addresses https://github.com/huggingface/datasets/issues/2130. Best regards Rabeeh
36
text: added spans field for the wikiann datasets Hi @lhoestq I tried to add spans to the wikiann datasets. Thanks a lot for kindly having a look. This addresses https://github.com/huggingface/datasets/issues/2130. Best regards Rabeeh Hi @lhoestq Thanks a lot for taking time checking it. I update "dataset_infos.json", I added description to the function of _generate_samples in wikiann.py but I was not sure about the format to write in README. thanks.
[ 0.07305355370044708, -0.3331873416900635, -0.07325264811515808, 0.04083961248397827, 0.4220309257507324, 0.11020379513502121, 0.35898661613464355, -0.06673605740070343, -0.014116013422608376, 0.03249288350343704, 0.20712724328041077, 0.15488260984420776, -0.06113876402378082, 0.38902339339256287, 0.4070814251899719, -0.5847718715667725, 0.1631695032119751, 0.2007959634065628, 0.004636771976947784, 0.041140928864479065, -0.3131495416164398, 0.21679924428462982, -0.2815176248550415, -0.2725944519042969, -0.4670642018318176, -0.3607600927352905, -0.10947049409151077, 0.0011391863226890564, -0.2191658616065979, -0.6296705603599548, 0.08807463943958282, 0.05514325946569443, -0.08256229758262634, -0.22169223427772522, -0.00011054026253987104, -0.10177186131477356, 0.4605538845062256, 0.054955869913101196, 0.08505506813526154, 0.32237547636032104, 0.06060472130775452, -0.528896689414978, 0.07853902131319046, -0.3912030756473541, -0.1640288233757019, -0.3794444501399994, -0.2898361086845398, -0.11955438554286957, 0.034890420734882355, 0.07786053419113159, 0.18141421675682068, 0.5775359869003296, 0.41656744480133057, -0.1347774714231491, 0.33370015025138855, -0.10672925412654877, -0.2683464586734772, -0.31042832136154175, 0.351000040769577, 0.011513082310557365, 0.07220418006181717, 0.467149555683136, -0.04058823361992836, -0.18710601329803467, 0.42503562569618225, 0.05255134403705597, -0.31494688987731934, -0.37325409054756165, 0.05613930523395538, 0.2692702114582062, 0.7817687392234802, -0.21377500891685486, -0.3277246952056885, -0.4126322567462921, 0.11657048761844635, 0.08055408298969269, -0.01683184504508972, 0.2773442566394806, 0.07112103700637817, 0.12658590078353882, -0.16774503886699677, -0.1781010627746582, -0.1760190725326538, 0.15994444489479065, -0.030529724434018135, 0.4631626307964325, -0.0360240712761879, 0.11496733129024506, 0.08740991353988647, -0.19929467141628265, 0.2390642911195755, 0.20468004047870636, -0.2864217460155487, 0.1524050086736679, -0.4190003573894501, -0.20169518887996674, 0.01263413205742836, 0.1592177152633667, 0.30319100618362427, 0.14038491249084473, -0.26937830448150635, -0.1909608244895935, 0.012662691064178944, 0.0542699359357357, 0.015181035734713078, 0.0156145840883255, 0.1824866384267807, 0.22749093174934387, -0.01558355987071991, 0.23506517708301544, 0.29317376017570496, -0.23394525051116943, 0.0801234245300293, -0.16303366422653198, -0.04953458905220032, -0.17663022875785828, 0.28535860776901245, 0.03979921713471413, 0.022032996639609337, 0.07308699935674667, 0.06226847320795059, -0.17631135880947113, -0.15247009694576263, 0.419362336397171, 0.04394261911511421, 0.3395571708679199, -0.008166410028934479, 0.31000816822052, 0.12296736985445023, -0.07171255350112915, -0.23813992738723755, 0.32386595010757446, -0.04252234846353531, 0.2135523557662964, 0.060546476393938065, -0.14505517482757568, 0.4029710292816162, 0.17151182889938354, 0.10622956603765488, -0.23606139421463013, -0.08226021379232407, 0.15512192249298096, -0.14010953903198242, 0.4085814356803894, -0.18079893290996552, 0.3139449656009674, 0.07933659851551056, 0.10082273185253143, 0.023301690816879272, 0.226008802652359, -0.4741939902305603, -0.11245058476924896, -0.25256580114364624, 0.17175360023975372, -0.0332585945725441, -0.24324005842208862, -0.1081622913479805, 0.2395026534795761, 0.19730128347873688, -0.08145862817764282, 0.2559589445590973, 0.11705669015645981, -0.050442591309547424, -0.19581463932991028, 0.5527905821800232, 0.09115475416183472, -0.2948858141899109, -0.2224280834197998, 0.004693855065852404, -0.014249235391616821, 0.31436124444007874, 0.295308381319046, -0.017253223806619644, 0.18243128061294556, -0.11594723165035248, 0.6180790066719055, 0.3271999955177307, -0.32350072264671326, -0.20795993506908417, -0.1443176120519638, 0.0598142147064209, 0.11229722946882248, 0.10543063282966614, -0.004610821139067411, 0.504577100276947, 0.040148019790649414, 0.02806248888373375, 0.04988441616296768, 0.12665900588035583, 0.243737131357193, -0.3285045623779297, -0.06572462618350983, 0.07626824826002121, 0.18602608144283295, 0.011467259377241135, -0.1566224992275238, 0.2353295087814331, 0.2926439344882965, 0.13351203501224518, -0.2713478207588196, 0.2377200871706009, 0.3323032259941101, 0.27925240993499756, 0.2581145167350769, 0.1825713962316513, -0.09447195380926132, -0.29146331548690796, 0.0244893878698349, -0.021347835659980774, 0.35796695947647095, 0.06815274059772491, -0.36565953493118286, -0.3052370250225067, 0.011503079906105995, -0.2771868407726288, -0.5387687683105469, 0.1337212771177292, -0.21319162845611572, -0.054690755903720856, 0.17965397238731384, -0.22733010351657867, -0.19547992944717407, -0.23780633509159088, 0.127830371260643, -0.40266525745391846, 0.23200546205043793, -0.06223578006029129, -0.06361647695302963, 0.017268206924200058, 0.4224313199520111, 0.12079645693302155, 0.05717931687831879, 0.0016834493726491928, 0.24195095896720886, -0.11826299130916595, 0.2631358504295349, 0.10092897713184357, 0.16906708478927612, 0.10974438488483429, -0.49795934557914734, 0.24341750144958496, -0.0961298942565918, -0.07605821639299393, -0.1640104502439499, 0.02250063791871071, 0.09439919888973236, 0.04995999485254288, 0.18339744210243225, -0.24878767132759094, -0.02727941982448101, 0.1686127483844757, -0.0884806215763092, -0.08803194761276245, -0.11689383536577225, -0.15915775299072266, -0.3666042685508728, 0.21397528052330017, -0.3402487635612488, -0.3503081202507019, 0.37321001291275024, 0.7004224061965942, -0.16276246309280396, 0.15985099971294403, 0.07004906237125397, -0.3801453113555908, -0.0245536956936121, -0.0417647659778595, 0.10941101610660553, 0.028799861669540405, 0.17102579772472382, 0.02389436960220337, 0.1921921968460083, 0.24212343990802765, -0.0612366646528244, 0.22929596900939941, 0.12263373285531998, 0.14419881999492645, 0.3629216253757477, 0.29409468173980713, -0.09159163385629654, -0.2137775719165802, 0.13128209114074707, -0.1640319973230362, 0.3211081027984619, -0.3411969244480133, -0.18454787135124207, 0.024901090189814568, -0.1377323865890503, -0.1656699776649475, -0.06867369264364243, -0.27933090925216675, -0.4103999137878418, 0.019011396914720535, 0.014792270958423615, 0.05111456289887428, 0.2489379644393921, 0.2011815756559372, 0.36511969566345215, 0.08182131499052048, 0.221170574426651, -0.45012760162353516, 0.033681776374578476, 0.08037392795085907, 0.12993499636650085, -0.0748860314488411, -0.053524091839790344, 0.32831406593322754, -0.28801068663597107, 0.15052653849124908, -0.2910026013851166, -0.3323560357093811, 0.03969717025756836, -0.3375774621963501, 0.09879368543624878, 0.3507605493068695, 0.747788667678833, 0.04212034493684769, -0.17853081226348877, 0.3624219596385956, -0.1952637881040573, -0.1803479790687561, -0.17813685536384583, -0.03881802782416344, 0.18340365588665009, -0.14456897974014282, -0.16261661052703857, -0.2889825701713562, -0.3466169834136963, 0.44968390464782715, -0.12630745768547058, 0.01095544919371605, -0.04398130998015404, 0.07996018975973129, 0.20244204998016357, -0.11792311072349548, -0.09387166053056717, -0.06830953061580658, -0.380422443151474, 0.4421907961368561, -0.1511816382408142, -0.1328670233488083, 0.2623407244682312, -0.0887717455625534, 0.2378220558166504, -0.23035940527915955, -0.2547950744628906, -0.2639884948730469, 0.0798795148730278, 0.037451375275850296, 0.11465948820114136, 0.273162841796875, 0.4985540211200714, -0.101408451795578, 0.03384750336408615, -0.2639000117778778, -0.05042777955532074, -0.17882132530212402, -0.2100827693939209, 0.12638740241527557, -0.15036216378211975, 0.23242735862731934, -0.07481911778450012, 0.26332640647888184, 0.4018934369087219, 0.36586543917655945, 0.18591487407684326, -0.21208499372005463, 0.14549702405929565, -0.11726713925600052, -0.21438658237457275, 0.15684981644153595, -0.031020119786262512, -0.03646375983953476, 0.2027864009141922, 0.11379750818014145, 0.05139312148094177, 0.04202400892972946, -0.30321046710014343, -0.3532703220844269, -0.15369586646556854, 0.09844616055488586, 0.3108707070350647, 0.3549763858318329, -0.390299528837204, 0.018580995500087738, -0.007432351820170879, -0.28921037912368774, 0.021447502076625824, 0.553380012512207, -0.009928368031978607, 0.07118308544158936, -0.4720948040485382, 0.028446989133954048, -0.4394705891609192, -0.037785932421684265, -0.04283425584435463, 0.25918030738830566, -0.1101638674736023, 0.06699728965759277, 0.19491273164749146, -0.11446546763181686, 0.535330593585968, -0.6344000697135925, -0.44291532039642334, -0.1799355447292328, 0.2900639772415161, -0.09096073359251022, -0.11681985855102539, -0.08381713926792145, -0.18656028807163239, 0.133843794465065, 0.4255257844924927, -0.2772706151008606, -0.028738338500261307, 0.510474443435669, 0.3336980938911438, -0.20291052758693695, -0.2155247926712036, -0.29266786575317383, -0.5204874277114868, -0.4437520205974579, -0.09657878428697586, 0.11117967218160629, 0.2634207308292389, -0.10674714297056198, -0.18400853872299194, 0.14009827375411987, 0.05561958998441696, -0.06396229565143585, 0.07946500182151794, 0.4280155599117279, 0.15363754332065582, -0.10713043808937073, 0.21587228775024414, -0.2683012783527374, 0.17450492084026337, 0.449083536863327, -0.08786478638648987, -0.2609217166900635, -0.1604864001274109, -0.25610342621803284, 0.3595309257507324, 0.016060546040534973, 0.05352569743990898, 0.3862990438938141, 0.12243659794330597, 0.17698507010936737, -0.19103354215621948, 0.15118888020515442, 0.6029903292655945, 0.07138864696025848, -0.32060664892196655, -0.5892847776412964, 0.4525134861469269, -0.12528012692928314, 0.2430175095796585, 0.2814750671386719, 0.3916102647781372, -0.14775606989860535, -0.14046569168567657, 0.0425541028380394, 0.862837016582489, -0.012436442077159882, 0.06865434348583221, 0.21054226160049438, 0.16191643476486206, 0.3818008005619049, -0.3131129741668701, 0.075371153652668, -0.6286338567733765, 0.141353040933609, -0.016370536759495735, -0.02056640386581421, 0.2712806761264801, -0.3394049406051636, -0.3577616214752197, -0.1110435426235199, 0.13131709396839142, 0.2769150137901306, -0.14513729512691498, 0.21204370260238647, -0.06240430474281311, -0.3924591541290283, -0.15751007199287415, 0.09791843593120575, -0.32205623388290405, 0.005451563745737076, -0.022181883454322815, -0.1722528040409088, -0.013794463127851486, -0.1682601422071457, -0.4131265878677368, 0.09420715272426605, -0.06002116948366165, -0.06729220598936081, 0.26902538537979126, -0.38462287187576294, 0.1495305448770523, 0.2097795307636261, 0.27221089601516724, 0.21475468575954437, -0.2647385001182556, 0.2517751157283783, -0.2940044105052948, -0.20357631146907806, -0.12719129025936127, 0.033608779311180115, 0.028639137744903564, -0.20837929844856262, -0.5352368950843811, 0.11145861446857452, -0.2633734345436096, -0.05981609970331192, -0.2778695821762085, -0.23761208355426788, -0.13757021725177765, -0.4010634422302246, -0.13699007034301758, 0.23812074959278107, 0.1322651356458664, -0.3303118050098419, 0.1327400654554367, -0.06491795182228088, -0.09347447752952576, 0.018073849380016327, 0.09913726150989532, 0.10757948458194733, 0.028082938864827156, -0.08768882602453232, -0.03543863445520401, 0.07804832607507706, 0.3636910021305084, 0.3003062903881073, -0.2703356146812439, -0.23510092496871948, 0.1325594186782837, 0.12747129797935486, -0.4094277620315552, -0.13228367269039154, 0.363753080368042, 0.09573149681091309, -0.13661305606365204, 0.5087479948997498, -0.17099249362945557, 0.17301660776138306, -0.11652471125125885, -0.28957319259643555, -0.391948401927948, 0.3370884656906128, -0.10401149094104767, 0.24879947304725647, 0.07101472467184067, 0.3829596936702728, 0.054578982293605804, 0.0421224869787693, -0.3332411050796509, -0.20737504959106445, -0.08474275469779968, -0.049063265323638916, 0.10294114798307419, -0.16521567106246948, 0.24665133655071259, -0.022929590195417404, 0.05321887135505676, 0.0026992522180080414, -0.020756322890520096, -0.12315332144498825, -0.062370963394641876, 0.1430850625038147, 0.12190355360507965, 0.0651639997959137, -0.021283570677042007, 0.06537357717752457, -0.025930166244506836, -0.1992589384317398, 0.303923100233078, -0.1952628195285797, -0.08423522114753723, 0.39480283856391907, 0.08295048773288727, 0.1773354411125183, -0.293179452419281, -0.09797894954681396, 0.005953840911388397, 0.0365372933447361, -0.14110104739665985, -0.04958771914243698, 0.18895994126796722, 0.043359026312828064, 0.3503722846508026, 0.37773969769477844, 0.1260393261909485, 0.26460811495780945, 0.2585197985172272, -0.18683291971683502, 0.09088701009750366, -0.047389764338731766, 0.19468195736408234, -0.01441502571105957, -0.3649303913116455, 0.06352967768907547, 0.12740486860275269, 0.17008739709854126, -0.2482668161392212, -0.03700278326869011, 0.3249951899051666, -0.032228730618953705, 0.11500789225101471, 0.26393187046051025, 0.3414435088634491, -0.17341268062591553, -0.13554395735263824, 0.040114182978868484, 0.6869336366653442, -0.1651564985513687, 0.2507564425468445, 0.249871164560318, 0.006832297891378403, 0.008632447570562363, 0.14216715097427368, 0.04888277128338814, -0.005321979522705078, 0.1288439929485321, -0.019203491508960724, 0.42071768641471863, -0.014831822365522385, 0.07640790194272995, -0.004788540303707123, -0.2113579958677292, 0.25239235162734985, -0.181540846824646, 0.02130357176065445, -0.09400229901075363, -0.033877089619636536, 0.2842053174972534, 0.193323016166687, -0.2061299830675125, -0.09625469893217087, 0.37804749608039856, -0.2668139636516571, -0.12307603657245636, -0.1625574231147766, -0.20267444849014282, 0.2776854634284973, -0.1836361289024353, 0.1601831614971161, 0.07850281149148941, 0.06750238686800003, -0.2317504733800888, -0.03897133469581604, -0.10043652355670929, 0.14102624356746674, 0.18340688943862915, 0.3474072515964508, -0.09079758822917938, 0.19298209249973297, 0.4411150813102722, 0.0693754106760025, -0.05000034347176552, 0.2980623245239258, 0.36798417568206787, 0.0016603991389274597, 0.3051145374774933, 0.10385570675134659, -0.2692354917526245, -0.08483017235994339, 0.429889976978302, 0.11353257298469543, 0.20332032442092896, -0.2170225828886032, 0.042391031980514526, 0.08069726824760437, -0.19818617403507233, 0.3281508684158325, -0.20013149082660675, -0.10726854205131531, -0.0018618041649460793, -0.34949806332588196, -0.24396681785583496, -0.3764588236808777, -0.40417081117630005, 0.21453608572483063, -0.41280344128608704, 0.09046799689531326, 0.6420339345932007, 0.03843937814235687, -0.13084053993225098, -0.23559385538101196, 0.0853218212723732, 0.09718450903892517, 0.5661590695381165, 0.40553852915763855, 0.1203516349196434, 0.177151620388031, -0.4649711847305298, -0.4185759127140045, 0.08005163073539734, -0.2881426215171814, -0.2718279957771301, 0.14818130433559418, -0.14792655408382416, 0.045244477689266205, -0.003586266189813614, 0.2228952944278717, 0.11732514202594757, 0.09042872488498688, 0.03574584424495697, -0.28873777389526367, 0.02657257206737995, 0.042313940823078156, 0.13317438960075378, 0.02746865153312683, 0.3495793640613556, 0.14665064215660095, 0.006698728539049625, 0.052348390221595764, -0.16131967306137085, 0.39569440484046936, -0.0786500945687294, -0.3634815514087677, -0.08181546628475189, 0.10364077240228653, 0.4058515727519989, -0.32547691464424133, 0.010970821604132652, -0.17698980867862701, -0.3521641194820404, -0.1030583456158638, 0.34465694427490234, 0.1975630223751068, 0.5282464027404785, 0.21667806804180145, -0.34490683674812317, -0.20709799230098724, 0.05653449147939682, 0.02707793563604355, 0.012376523576676846, -0.23630861937999725, 0.20940376818180084, 0.22470897436141968, -0.09266025573015213, 0.2539503872394562, -0.09599234908819199, 0.0047920458018779755, -0.10339325666427612, -0.17582443356513977, -0.6272360682487488, 0.445720374584198, -0.19320793449878693, -0.22492466866970062, -0.011384177953004837, -0.04420487582683563, -0.015839122235774994, 0.09291212260723114, -1.0202293395996094, 0.03237193077802658, 0.3092079162597656, 0.20127835869789124, -0.054870229214429855, 0.29769280552864075, -0.0847768485546112, -0.0769367590546608, -0.02009519748389721, -0.2002878189086914, 0.08516208827495575, 0.09103991091251373, -0.10862292349338531, -0.20175926387310028 ]
https://github.com/huggingface/datasets/pull/2141
added spans field for the wikiann datasets
Thanks ! For the fields description in the dataset card, something like this does the job: ``` - `tokens`: a `list` of `string` features. - `langs`: a `list` of `string` features that correspond to the language of each token. - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-PER` (1), `I-PER` (2), `B-ORG` (3), `I-ORG` (4), `B-LOC` (5), `I-LOC` (6). - `spans`: a `list` of `string` features, that is the list of named entities in the input text formatted as ``<TAG>: <mention>`` ``` Also for information, I think the trailer of rick and morty season 5 is out now :)
Hi @lhoestq I tried to add spans to the wikiann datasets. Thanks a lot for kindly having a look. This addresses https://github.com/huggingface/datasets/issues/2130. Best regards Rabeeh
104
text: added spans field for the wikiann datasets Hi @lhoestq I tried to add spans to the wikiann datasets. Thanks a lot for kindly having a look. This addresses https://github.com/huggingface/datasets/issues/2130. Best regards Rabeeh Thanks ! For the fields description in the dataset card, something like this does the job: ``` - `tokens`: a `list` of `string` features. - `langs`: a `list` of `string` features that correspond to the language of each token. - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-PER` (1), `I-PER` (2), `B-ORG` (3), `I-ORG` (4), `B-LOC` (5), `I-LOC` (6). - `spans`: a `list` of `string` features, that is the list of named entities in the input text formatted as ``<TAG>: <mention>`` ``` Also for information, I think the trailer of rick and morty season 5 is out now :)
[ 0.027890559285879135, -0.1391163319349289, -0.06565622985363007, 0.10010002553462982, 0.371112585067749, 0.17324641346931458, 0.2954080104827881, 0.039632320404052734, -0.10317184031009674, -0.010292813181877136, 0.10786145180463791, 0.02506212331354618, -0.05712049454450607, 0.2206166684627533, 0.363935261964798, -0.6239262819290161, 0.0829576626420021, 0.07815316319465637, -0.2545895278453827, -0.000203009694814682, -0.24521280825138092, 0.10797303915023804, -0.15248817205429077, -0.08003826439380646, -0.7331634759902954, -0.04847772419452667, -0.15161487460136414, -0.016441531479358673, -0.09676428139209747, -0.5545167326927185, 0.2711438834667206, 0.12077315151691437, 0.01101723499596119, -0.1370830237865448, -0.00011367960541974753, -0.1927398145198822, 0.4473917484283447, 0.1779119223356247, 0.03162461891770363, 0.27904942631721497, 0.08136437088251114, -0.296693354845047, 0.047858819365501404, -0.2738838791847229, -0.01614517532289028, -0.2566832900047302, -0.2722548842430115, -0.12694862484931946, -0.22566251456737518, -0.13863161206245422, 0.10980602353811264, 0.316082239151001, 0.13291311264038086, -0.027706371620297432, 0.5762399435043335, -0.027071557939052582, -0.38651829957962036, -0.23846367001533508, 0.39240822196006775, -0.13877896964550018, 0.27682003378868103, 0.6060315370559692, 0.056952834129333496, -0.4049125909805298, 0.408943235874176, 0.1231352910399437, -0.03893354535102844, -0.151022806763649, 0.09534511715173721, 0.5298468470573425, 0.559475839138031, 0.06478226184844971, -0.10032359510660172, -0.3608101010322571, 0.2890143394470215, -0.26881489157676697, 0.027102399617433548, -0.09198342263698578, 0.06762382388114929, 0.009643007069826126, -0.1788611114025116, -0.008932260796427727, -0.1464371383190155, 0.30856212973594666, -0.0889928936958313, 0.6490153074264526, 0.164714977145195, 0.04845957085490227, 0.03161720931529999, -0.291332483291626, 0.09038867056369781, 0.14278486371040344, -0.1685468554496765, 0.3196723163127899, -0.6058743000030518, -0.2066294103860855, -0.11184536665678024, 0.16337187588214874, 0.32075875997543335, 0.09423203766345978, -0.3932090103626251, 0.04246920347213745, -0.018543891608715057, -0.07158572226762772, 0.17660106718540192, 0.05068497732281685, 0.09602372348308563, 0.24955855309963226, -0.07911185920238495, 0.07292091101408005, 0.09604482352733612, -0.12854695320129395, -0.12287692725658417, 0.1981775462627411, -0.08589713275432587, -0.205282062292099, 0.2110181450843811, 0.047643568366765976, -0.014264754951000214, 0.0910661369562149, -0.12319798767566681, -0.18605411052703857, 0.13676166534423828, 0.5256186723709106, 0.22702263295650482, 0.39632484316825867, -0.20907439291477203, 0.32150137424468994, 0.26060253381729126, -0.1192285493016243, -0.2081780582666397, 0.06995642185211182, -0.11886325478553772, 0.1605260968208313, 0.12811802327632904, -0.2986573576927185, 0.09016899019479752, 0.014774040319025517, -0.023830831050872803, -0.0956755205988884, -0.2849104404449463, -0.007314515300095081, -0.14394912123680115, 0.2831971347332001, -0.3521767854690552, 0.35091423988342285, 0.06699153780937195, 0.30047863721847534, 0.05309263616800308, 0.13623180985450745, -0.2565980553627014, -0.08956961333751678, -0.12916211783885956, 0.15488433837890625, 0.008496511727571487, -0.37738820910453796, -0.009304791688919067, 0.43855154514312744, 0.04991917684674263, -0.0029189176857471466, 0.099163718521595, 0.06702712178230286, -0.414966881275177, 0.16702225804328918, 0.31676843762397766, 0.21329757571220398, -0.31663748621940613, -0.336068719625473, -0.18765544891357422, 0.14576952159404755, 0.12653043866157532, 0.14748014509677887, 0.1696673333644867, 0.20565292239189148, -0.10708329826593399, 0.7707491517066956, 0.3896390199661255, 0.0017099827527999878, 0.07508441805839539, 0.03354593738913536, 0.029457278549671173, 0.2432134598493576, 0.08582033216953278, 0.23280830681324005, 0.37337827682495117, -0.003688474651426077, -0.09830117225646973, 0.23119716346263885, -0.13236725330352783, 0.11635937541723251, -0.13709111511707306, -0.07777868956327438, 0.22538287937641144, 0.23155678808689117, 0.2678868770599365, -0.1271858811378479, 0.08726821839809418, 0.4586137533187866, 0.05185569077730179, -0.1302003115415573, 0.26232197880744934, 0.17026852071285248, 0.022514816373586655, 0.4734002947807312, 0.15595579147338867, -0.4783148169517517, -0.40626442432403564, 0.07013695687055588, 0.15779578685760498, 0.3612366020679474, 0.303122878074646, -0.1421666145324707, -0.5008109211921692, 0.17578554153442383, -0.3846825957298279, -0.22209718823432922, 0.0882226973772049, -0.027439408004283905, -0.40174511075019836, -0.05161671340465546, -0.279994934797287, -0.3884868323802948, -0.035043369978666306, 0.23073329031467438, 0.03043472021818161, 0.26890555024147034, -0.17872145771980286, -0.06493161618709564, -0.23063348233699799, 0.472079336643219, 0.25093403458595276, 0.018590262159705162, -0.056412942707538605, 0.27817851305007935, -0.0840398520231247, 0.12146247923374176, 0.05811282619833946, 0.3510150611400604, 0.08666031062602997, -0.4634834825992584, 0.14796273410320282, -0.15517984330654144, 0.10259915888309479, -0.3416602611541748, -0.09191667288541794, -0.047452256083488464, 0.03949728608131409, 0.41690772771835327, -0.2604004144668579, 0.03633883595466614, 0.10499098896980286, 0.000561010092496872, -0.033789411187171936, -0.3656116724014282, 0.14579643309116364, -0.3936404585838318, -0.05943412706255913, -0.15562154352664948, -0.3328600227832794, 0.3003008961677551, 0.5857143402099609, -0.0187145434319973, 0.09595124423503876, 0.007376514375209808, -0.45418351888656616, 0.1679762899875641, -0.2700396180152893, 0.09426406025886536, 0.1480274200439453, 0.19975979626178741, 0.044171325862407684, 0.10019233077764511, 0.14445503056049347, -0.061163827776908875, 0.2213195264339447, 0.30188262462615967, 0.027363261207938194, 0.4798886179924011, 0.21930721402168274, -0.05863675847649574, -0.16465331614017487, 0.09469036757946014, -0.043832115828990936, 0.06980431824922562, -0.17488238215446472, -0.0938534140586853, -0.14019793272018433, -0.48210760951042175, -0.24021688103675842, -0.24121975898742676, -0.2669307291507721, -0.6351767778396606, 0.4288552403450012, -0.3097327947616577, -0.18024200201034546, 0.31895148754119873, -0.07823313772678375, 0.2761029005050659, 0.08793169260025024, 0.2079230695962906, -0.44828781485557556, -0.20060725510120392, 0.08343477547168732, 0.09663514792919159, 0.01181830931454897, -0.09460856020450592, 0.15858861804008484, -0.05764203518629074, 0.232367604970932, -0.33306777477264404, -0.6489923596382141, 0.21413645148277283, -0.3861510753631592, -0.10710202157497406, 0.32781481742858887, 0.45446282625198364, 0.09683984518051147, -0.2733161747455597, 0.3586675822734833, -0.30257806181907654, -0.12221188843250275, 0.16085690259933472, -0.0312584824860096, 0.1149524673819542, -0.1382933259010315, -0.22314435243606567, -0.04050074517726898, -0.299730122089386, 0.1161927729845047, 0.10751558840274811, -0.11918190121650696, 0.15837596356868744, -0.136989563703537, 0.06975439935922623, -0.11559081822633743, 0.04557839035987854, -0.18077553808689117, 0.06334991753101349, 0.598811686038971, -0.10238812863826752, -0.02460070699453354, 0.33188125491142273, -0.2150525599718094, 0.1260015368461609, -0.22385744750499725, -0.10421447455883026, 0.016375575214624405, 0.13268783688545227, -0.17379559576511383, 0.2928113639354706, 0.018634650856256485, 0.3416782021522522, -0.14947862923145294, 0.04658212512731552, -0.08605284988880157, -0.026213904842734337, -0.10397277027368546, -0.08461947739124298, 0.15468688309192657, -0.1957434117794037, 0.18949732184410095, -0.10965733230113983, 0.22598762810230255, -0.10193628072738647, 0.39788147807121277, 0.4101214110851288, -0.2502846121788025, 0.18965686857700348, -0.1713888943195343, -0.17340731620788574, 0.22301647067070007, 0.09951261430978775, 0.11865049600601196, 0.24956659972667694, 0.20610353350639343, 0.1769675612449646, 0.09485086798667908, 0.021191418170928955, -0.04866679012775421, -0.11750432848930359, 0.19567513465881348, -0.24560698866844177, 0.17267850041389465, -0.1644897758960724, 0.006921134889125824, 0.06433939933776855, -0.46433961391448975, 0.050633009523153305, 0.2654114067554474, -0.04985208064317703, -0.0543256551027298, -0.322204053401947, 0.2241828292608261, -0.03509421646595001, -0.021334722638130188, 0.01336444541811943, 0.13315488398075104, -0.39698147773742676, -0.07268032431602478, 0.23684215545654297, 0.2067277431488037, 0.4859405755996704, -0.47756263613700867, -0.2993531823158264, -0.08811512589454651, 0.25369420647621155, -0.1379910707473755, -0.18195313215255737, -0.199030339717865, -0.7619651556015015, 0.038914162665605545, 0.1868068426847458, -0.293558269739151, 0.21226336061954498, 0.8311651945114136, 0.1232156902551651, -0.2425970584154129, -0.3591422438621521, -0.1692284643650055, 0.0706595629453659, -0.4843059778213501, -0.15931293368339539, 0.18477606773376465, 0.33016133308410645, -0.0753156989812851, -0.22469161450862885, -0.06162029504776001, 0.05093011260032654, 0.053887512534856796, 0.11284145712852478, 0.25986894965171814, 0.06910185515880585, -0.07937495410442352, 0.21594998240470886, -0.1291230469942093, -0.08293363451957703, 0.26570194959640503, -0.13797353208065033, -0.25677648186683655, 0.1374097615480423, -0.3314749300479889, 0.4418770372867584, 0.027526989579200745, 0.07327526062726974, 0.2457762360572815, 0.05190522223711014, -0.00533197820186615, -0.18661659955978394, 0.24176743626594543, 0.6709257960319519, 0.11913477629423141, -0.03023277036845684, -0.46167054772377014, 0.3983403444290161, -0.17006483674049377, 0.08367139101028442, -0.15217997133731842, 0.5356881022453308, -0.05733920633792877, 0.12300041317939758, -0.050247929990291595, 1.1008087396621704, -0.08993783593177795, -0.0597793273627758, 0.1067752093076706, 0.29064154624938965, 0.5699806213378906, -0.5827072262763977, -0.11660933494567871, -0.45280933380126953, 0.16992200911045074, -0.0384334921836853, 0.13525161147117615, -0.05623321235179901, -0.2001982480287552, -0.25390779972076416, 0.07144598662853241, 0.045911774039268494, 0.4295840263366699, -0.25993773341178894, 0.08190654218196869, 0.007195744663476944, -0.4585227966308594, -0.17521579563617706, 0.06181584298610687, -0.15294891595840454, 0.23056016862392426, -0.10427676886320114, 0.0021614190191030502, 0.15905435383319855, -0.3034871816635132, -0.4003469944000244, 0.14594388008117676, 0.09100954979658127, -0.19952146708965302, 0.22917866706848145, -0.24740782380104065, 0.20947998762130737, 0.17575478553771973, 0.21807660162448883, -0.10111977159976959, -0.22579294443130493, 0.35653191804885864, -0.23396655917167664, -0.04869399219751358, -0.20112912356853485, -0.025448832660913467, 0.1422239989042282, -0.1375635415315628, -0.3189358115196228, 0.07047196477651596, -0.014806071296334267, 0.1290101408958435, -0.30028966069221497, -0.26932764053344727, 0.342576801776886, -0.22212184965610504, -0.019901148974895477, 0.1044706329703331, 0.27269309759140015, -0.4482780396938324, 0.0975315272808075, -0.10456052422523499, -0.1425866186618805, -0.15767931938171387, 0.27110281586647034, 0.18130305409431458, 0.045946016907691956, -0.025157392024993896, -0.12266173213720322, -0.17534397542476654, 0.5237137079238892, 0.5229784250259399, -0.2356475293636322, -0.16730529069900513, -0.0021911300718784332, 0.3187871277332306, -0.4276010990142822, -0.41214925050735474, 0.45461949706077576, -0.15688934922218323, 0.016287868842482567, 0.5081167817115784, -0.15083301067352295, 0.17640426754951477, -0.3642801344394684, -0.2690083980560303, -0.2607167065143585, 0.2811036705970764, -0.22799597680568695, 0.3953869640827179, -0.1018223688006401, 0.336908757686615, 0.19651912152767181, 0.20922663807868958, -0.27692854404449463, -0.40759530663490295, -0.23322467505931854, -0.009663451462984085, 0.3432629108428955, -0.1284090280532837, 0.13192373514175415, -0.008233543485403061, 0.08656570315361023, 0.09214501082897186, 0.1756618767976761, -0.06488555669784546, -0.1334015280008316, 0.11625975370407104, 0.1608048975467682, 0.13893261551856995, -0.2780528664588928, 0.14639446139335632, -0.051289383322000504, -0.24681302905082703, 0.2147979438304901, -0.39541560411453247, -0.11652188003063202, 0.392810583114624, 0.09366418421268463, 0.0767844095826149, -0.32382404804229736, 0.16788910329341888, 0.05187801271677017, 0.10866846889257431, 0.10302764922380447, -0.1156880259513855, 0.05034416913986206, -0.13904151320457458, 0.18444184958934784, 0.4294946789741516, 0.31906598806381226, 0.03790299594402313, 0.22369354963302612, -0.05586867779493332, 0.04757155105471611, 0.08966270834207535, 0.18711312115192413, -0.15889617800712585, -0.1234743595123291, -0.1907835751771927, 0.014273321256041527, 0.14282560348510742, -0.3342229425907135, -0.02381438948214054, 0.34022265672683716, -0.05835191160440445, 0.11039493978023529, 0.21139279007911682, 0.17550726234912872, 0.04939809441566467, -0.26482468843460083, 0.051289916038513184, 0.337388277053833, -0.21033704280853271, 0.22635172307491302, 0.270026832818985, 0.023137439042329788, 0.03147392347455025, 0.06704149395227432, 0.023195624351501465, -0.0744270458817482, 0.3230382204055786, -0.13203921914100647, 0.15157142281532288, -0.1857251226902008, 0.17825767397880554, 0.310244619846344, -0.04709587246179581, 0.15512418746948242, 0.15859681367874146, -0.10565325617790222, -0.17044302821159363, -0.03447379171848297, 0.0025568902492523193, 0.37147611379623413, -0.20091570913791656, -0.3055809438228607, 0.3066651523113251, -0.08348409086465836, -0.05757114663720131, -0.404644638299942, -0.1486777365207672, -0.03146695718169212, -0.36758461594581604, 0.07474488019943237, 0.1134113222360611, 0.0052286311984062195, -0.046830929815769196, 0.16183176636695862, -0.25597813725471497, -0.010021142661571503, 0.1993260383605957, 0.18907497823238373, -0.155786395072937, 0.2108394205570221, 0.41473472118377686, 0.11932270973920822, 0.3429190516471863, 0.16387896239757538, 0.2057005763053894, -0.03450387716293335, 0.4354790449142456, 0.1079762727022171, -0.27868518233299255, -0.22083531320095062, 0.2809637784957886, 0.18316258490085602, 0.0425514280796051, 0.06968767940998077, 0.14609159529209137, 0.04484965652227402, -0.19552305340766907, 0.06651674211025238, -0.16820400953292847, 0.33119189739227295, 0.08480216562747955, -0.31503134965896606, -0.05576314777135849, -0.34244802594184875, -0.4704250991344452, 0.30990877747535706, -0.37994834780693054, 0.01654253713786602, 0.4601493775844574, -0.018887190148234367, -0.05330641567707062, -0.23765498399734497, 0.052037231624126434, 0.19121472537517548, 0.4054275155067444, 0.2649007737636566, -0.023290060460567474, 0.030159827321767807, -0.30276650190353394, -0.4206775724887848, 0.01553405076265335, 0.00019392743706703186, -0.3253653347492218, 0.18589724600315094, -0.20601122081279755, 0.178732231259346, 0.018640222027897835, 0.19253095984458923, 0.11949789524078369, 0.13054147362709045, 0.11615623533725739, -0.21980012953281403, -0.04671725258231163, 0.3448318839073181, -0.004991440102458, -0.0716840848326683, 0.5103679895401001, 0.04992678761482239, 0.04471605643630028, -0.030266351997852325, -0.01310032233595848, 0.09977203607559204, -0.19268377125263214, -0.05794765055179596, -0.4027230143547058, 0.004543418064713478, 0.535476803779602, -0.01638784259557724, 0.3612498342990875, -0.31969165802001953, -0.6120277643203735, -0.19285306334495544, 0.05739661306142807, 0.11434729397296906, 0.29985618591308594, 0.15811051428318024, -0.11888405680656433, -0.17345619201660156, -0.11275901645421982, -0.17096151411533356, 0.12955953180789948, -0.33876121044158936, 0.21093454957008362, 0.053493790328502655, 0.18204370141029358, 0.1724194437265396, -0.14450031518936157, 0.15033504366874695, -0.11214814335107803, 0.08359378576278687, -0.7345143556594849, 0.3378278911113739, 0.24703779816627502, -0.30106496810913086, -0.1738736480474472, -0.16291967034339905, 0.2265925407409668, 0.18575766682624817, -0.9247456192970276, 0.11378676444292068, 0.22111158072948456, 0.15013104677200317, 0.10373762249946594, 0.2734375298023224, 0.039836011826992035, -0.033031828701496124, -0.19545117020606995, -0.48054954409599304, 0.16219758987426758, 0.24854479730129242, -0.2110891491174698, -0.09810718148946762 ]
https://github.com/huggingface/datasets/pull/2141
added spans field for the wikiann datasets
Hi @lhoestq thank you! This is updated now, please feel free to let me know if I need to modify something :) thanks
Hi @lhoestq I tried to add spans to the wikiann datasets. Thanks a lot for kindly having a look. This addresses https://github.com/huggingface/datasets/issues/2130. Best regards Rabeeh
23
text: added spans field for the wikiann datasets Hi @lhoestq I tried to add spans to the wikiann datasets. Thanks a lot for kindly having a look. This addresses https://github.com/huggingface/datasets/issues/2130. Best regards Rabeeh Hi @lhoestq thank you! This is updated now, please feel free to let me know if I need to modify something :) thanks
[ -0.05914541333913803, -0.4104021489620209, -0.1213630884885788, -0.0012496784329414368, 0.3259558081626892, 0.06316425651311874, 0.40168341994285583, 0.005148962140083313, 0.01762060448527336, 0.1784743219614029, 0.10063987225294113, 0.06433933973312378, 0.10800763964653015, 0.3982769250869751, 0.2916351556777954, -0.5705885887145996, 0.08500558137893677, 0.11507117003202438, -0.04253090173006058, 0.053033649921417236, -0.32325273752212524, 0.16058267652988434, -0.21101731061935425, -0.17535872757434845, -0.6270979046821594, -0.20656384527683258, -0.1408340483903885, 0.10285962373018265, -0.07928706705570221, -0.3553183078765869, 0.2146623134613037, -0.04181349650025368, -0.15477780997753143, -0.15863779187202454, -0.0000987484963843599, -0.0908728688955307, 0.4274919629096985, 0.157598078250885, 0.04654765501618385, 0.26253682374954224, -0.0892423465847969, -0.40817326307296753, 0.04077988117933273, -0.21708622574806213, -0.15305648744106293, -0.09416183084249496, -0.22826920449733734, -0.13179397583007812, -0.026646137237548828, -0.01417994499206543, 0.2986781895160675, 0.6103785037994385, 0.3233938217163086, -0.2944050133228302, 0.33734288811683655, -0.2658582925796509, -0.27928510308265686, -0.20347526669502258, 0.3700975775718689, 0.015420380979776382, 0.12096396088600159, 0.5699949860572815, 0.06477867811918259, -0.20961318910121918, 0.29725420475006104, 0.0028626909479498863, -0.3039262592792511, -0.22782427072525024, 0.12576870620250702, 0.16239376366138458, 0.6307157874107361, -0.0008551962673664093, -0.19592790305614471, -0.3899025022983551, 0.13764525949954987, 0.015956955030560493, 0.10688455402851105, 0.09077954292297363, 0.16222192347049713, 0.10900978744029999, -0.16756567358970642, -0.2259906828403473, -0.09843382984399796, 0.20909899473190308, -0.17841202020645142, 0.295058935880661, -0.15894052386283875, 0.04930849373340607, 0.18875214457511902, -0.09078541398048401, -0.018192589282989502, 0.23737308382987976, -0.20265249907970428, 0.07364551723003387, -0.4053097367286682, -0.1335621029138565, 0.05786505341529846, 0.3267420828342438, 0.11078465729951859, 0.2317371517419815, -0.20820799469947815, -0.031176790595054626, -0.022452400997281075, 0.05735408142209053, 0.041548337787389755, 0.02617621049284935, 0.05137765035033226, 0.15134203433990479, 0.2054067999124527, 0.2156134396791458, 0.20147107541561127, -0.2036036252975464, 0.12400580942630768, -0.19879963994026184, -0.24717570841312408, -0.22365593910217285, 0.3542864918708801, 0.03804830089211464, -0.05437080189585686, 0.10648109018802643, 0.1594865322113037, -0.1717301607131958, -0.013769936747848988, 0.38424044847488403, 0.07369285076856613, 0.2597496509552002, -0.033974334597587585, 0.29167020320892334, 0.16168352961540222, -0.12236718833446503, -0.37861502170562744, 0.1713058054447174, -0.10607604682445526, 0.1332937777042389, 0.19179199635982513, -0.28894102573394775, 0.26156771183013916, 0.19386322796344757, 0.13543105125427246, -0.07775656878948212, -0.2584754526615143, 0.014283010736107826, -0.19593888521194458, 0.34225016832351685, -0.12792883813381195, 0.22976665198802948, 0.12503723800182343, 0.06495595723390579, 0.15623337030410767, 0.15258124470710754, -0.37237098813056946, -0.05412595719099045, -0.35243889689445496, 0.2942596971988678, 0.01353960856795311, -0.3386189639568329, -0.08583394438028336, 0.35021674633026123, 0.05736372992396355, -0.0774175375699997, 0.2204807996749878, 0.2303101271390915, -0.1567331850528717, 0.00024909537751227617, 0.36435970664024353, 0.05058682709932327, -0.26853957772254944, -0.2842259407043457, 0.007863055914640427, -0.10327383875846863, 0.23866760730743408, 0.3213164210319519, -0.0066074891947209835, 0.12049172073602676, -0.21036382019519806, 0.5714350342750549, 0.23335886001586914, -0.06198015809059143, -0.2810271084308624, -0.1708708107471466, -0.08741563558578491, 0.06636042147874832, -0.026843823492527008, 0.11650855839252472, 0.29136139154434204, 0.017623530700802803, 0.021822955459356308, 0.0025706887245178223, 0.00007164664566516876, 0.10245739668607712, -0.32894065976142883, 0.03361199051141739, -0.036935366690158844, 0.2809956669807434, 0.166683167219162, -0.08488064259290695, 0.23579013347625732, 0.3223341703414917, -0.0104760080575943, -0.1919919103384018, 0.1961134672164917, 0.28940314054489136, 0.25690320134162903, 0.288235604763031, 0.07095251232385635, -0.3172307312488556, -0.36920005083084106, 0.004103034734725952, 0.0096086785197258, 0.25866109132766724, 0.1754964143037796, -0.24154837429523468, -0.35733258724212646, -0.019927995279431343, -0.24325086176395416, -0.31339600682258606, 0.2040271759033203, -0.001461714506149292, -0.2227277010679245, 0.049333374947309494, -0.21865344047546387, -0.10479709506034851, -0.1888105273246765, 0.13197973370552063, -0.18753746151924133, 0.28516316413879395, -0.23791785538196564, 0.008883576840162277, -0.06345397233963013, 0.43373167514801025, 0.10364747047424316, -0.0035894664470106363, 0.01693035662174225, 0.23308253288269043, -0.2903570532798767, 0.2348870187997818, 0.2524186670780182, 0.08741878718137741, 0.14930832386016846, -0.441848486661911, -0.012856701388955116, -0.21180887520313263, -0.04246584698557854, -0.191643625497818, -0.017246372997760773, 0.026434309780597687, -0.033409442752599716, -0.014080174267292023, -0.23889712989330292, -0.019480088725686073, 0.10649900138378143, -0.14503304660320282, -0.030994929373264313, -0.25816139578819275, 0.04408889263868332, -0.33382749557495117, 0.16077163815498352, -0.14031417667865753, -0.435268372297287, 0.285126268863678, 0.6533451676368713, -0.020800219848752022, 0.09020045399665833, 0.11599027365446091, -0.2775312066078186, 0.10848880559206009, -0.12638568878173828, 0.059328559786081314, 0.10657128691673279, 0.2901048958301544, 0.09682738780975342, 0.1614852249622345, 0.21259452402591705, -0.19704987108707428, 0.23924753069877625, 0.15686902403831482, 0.018991069868206978, 0.32374048233032227, 0.30816650390625, -0.024867374449968338, -0.32381924986839294, 0.2518015503883362, -0.10434000939130783, 0.16043904423713684, -0.19275809824466705, -0.2573995590209961, -0.1341949701309204, -0.3439730405807495, -0.07605931162834167, -0.21210747957229614, -0.3878251612186432, -0.41225147247314453, 0.22861607372760773, -0.028156835585832596, -0.09613455832004547, 0.31864723563194275, 0.20808905363082886, 0.46348875761032104, -0.06713422387838364, 0.18586692214012146, -0.5443153381347656, 0.018237795680761337, -0.034645505249500275, 0.2641388177871704, -0.00785079039633274, -0.25784412026405334, 0.39732030034065247, -0.19532695412635803, 0.22656132280826569, -0.35515788197517395, -0.5128530859947205, 0.06011408567428589, -0.2924308776855469, -0.0344405397772789, 0.29921090602874756, 0.5450064539909363, -0.06494370102882385, -0.24950166046619415, 0.4257424771785736, -0.18955852091312408, -0.17991416156291962, -0.1627093404531479, 0.007198926992714405, 0.09177406132221222, -0.19651494920253754, -0.14386028051376343, -0.12204446643590927, -0.36168113350868225, 0.4516586661338806, -0.1677182912826538, -0.08965091407299042, 0.053913164883852005, 0.01889314129948616, 0.19488173723220825, -0.1296309381723404, -0.07334431260824203, -0.2906429171562195, -0.2985420823097229, 0.349016010761261, -0.12089639902114868, -0.22071437537670135, 0.1858942061662674, 0.026653196662664413, 0.18721091747283936, -0.2553045153617859, -0.2931867837905884, -0.28777411580085754, -0.000607730820775032, 0.08645235002040863, 0.1979762464761734, 0.17030982673168182, 0.39919406175613403, -0.1949695497751236, -0.15451587736606598, -0.22954240441322327, -0.11848102509975433, -0.15420347452163696, -0.2116124927997589, 0.140241801738739, -0.2504132390022278, 0.07979733496904373, -0.03960781916975975, 0.33222997188568115, 0.17757998406887054, 0.3000301420688629, 0.44106873869895935, -0.12796567380428314, 0.3210671544075012, -0.17748552560806274, -0.35766181349754333, 0.271616131067276, -0.044822558760643005, 0.09901288151741028, 0.30809423327445984, 0.09239789098501205, -0.02596575953066349, -0.031615857034921646, -0.32367220520973206, -0.18308675289154053, -0.1809123009443283, -0.019578294828534126, 0.14798671007156372, 0.2441941201686859, -0.057818539440631866, -0.2022084891796112, -0.016622159630060196, -0.20483702421188354, 0.13638152182102203, 0.3607250452041626, -0.0515703484416008, -0.04920918121933937, -0.3763952851295471, 0.058184463530778885, -0.3416171669960022, 0.14340469241142273, -0.037607721984386444, 0.1104956716299057, -0.19298100471496582, -0.07191947102546692, 0.1355736404657364, 0.022412212565541267, 0.5655920505523682, -0.3866686224937439, -0.40116554498672485, -0.2159634828567505, 0.13189482688903809, -0.15259651839733124, -0.082924023270607, -0.1311265528202057, -0.179984912276268, 0.26179105043411255, 0.5092311501502991, -0.20986124873161316, 0.08469635993242264, 0.5486299991607666, 0.1618579626083374, -0.08559297025203705, -0.17494428157806396, -0.35131800174713135, -0.2564597427845001, -0.3563466966152191, 0.1025349423289299, 0.1658591628074646, 0.2849486768245697, 0.019824206829071045, -0.17102353274822235, -0.035627253353595734, -0.07717036455869675, -0.06626538932323456, 0.10881952941417694, 0.2736852467060089, 0.15225179493427277, -0.10300324857234955, 0.14002230763435364, -0.06174258142709732, 0.04722307622432709, 0.49780237674713135, -0.11617763340473175, -0.27702704071998596, 0.03219572827219963, -0.27957677841186523, 0.4014554023742676, 0.10556436330080032, 0.11423757672309875, 0.27710404992103577, 0.1065073236823082, 0.3026634454727173, -0.16691124439239502, 0.08521779626607895, 0.5017508268356323, 0.2474135160446167, -0.12984761595726013, -0.20480461418628693, 0.3095993101596832, -0.10158360004425049, 0.17521069943904877, 0.21353992819786072, 0.6035077571868896, 0.002214765176177025, -0.28644049167633057, -0.0697774812579155, 0.9277853965759277, -0.0022141560912132263, 0.015104446560144424, 0.13060861825942993, 0.09257493913173676, 0.47329574823379517, -0.21678495407104492, 0.12570756673812866, -0.4141383171081543, -0.12976107001304626, 0.04315142333507538, 0.05914941802620888, 0.2138020396232605, -0.39742594957351685, -0.25575679540634155, -0.11889617145061493, 0.22955776751041412, 0.37346065044403076, -0.1581934541463852, 0.06349167972803116, -0.046578750014305115, -0.3273513913154602, -0.24590161442756653, 0.21670450270175934, -0.13747523725032806, 0.19265173375606537, -0.17254072427749634, -0.02422751486301422, 0.09502868354320526, -0.309337317943573, -0.363018274307251, 0.11575940996408463, -0.13658124208450317, -0.10270778089761734, 0.3628738820552826, -0.2415226846933365, 0.1662771850824356, 0.2145536243915558, 0.39716845750808716, 0.05374564230442047, -0.3165149688720703, 0.31220802664756775, -0.2896750271320343, -0.10346656292676926, -0.16784176230430603, 0.008910284377634525, 0.049518316984176636, -0.26603060960769653, -0.3781069815158844, 0.0978243350982666, -0.12456640601158142, -0.08464043587446213, -0.3309251368045807, -0.02031596750020981, -0.11565236747264862, -0.23948028683662415, -0.07405611872673035, 0.08605004101991653, 0.30160513520240784, -0.49085724353790283, 0.23036710917949677, -0.19802440702915192, 0.0396072156727314, -0.14866632223129272, 0.19069628417491913, -0.01773369312286377, 0.022758236154913902, 0.1263105869293213, -0.11878114193677902, 0.009646594524383545, 0.47957298159599304, 0.2641008496284485, -0.34749895334243774, -0.2919994592666626, -0.05624689906835556, 0.1366124004125595, -0.45994845032691956, -0.09148924797773361, 0.36709830164909363, -0.07212647050619125, -0.05602908506989479, 0.44663354754447937, -0.0718279629945755, 0.18313345313072205, -0.12675032019615173, -0.29877662658691406, -0.31652167439460754, 0.21805305778980255, -0.150898739695549, 0.28039684891700745, 0.0879163071513176, 0.387433797121048, 0.18628375232219696, 0.1381387710571289, -0.4426822066307068, -0.21153473854064941, -0.30064305663108826, -0.060517601668834686, 0.09895043820142746, -0.29945099353790283, 0.2948058843612671, -0.06091781705617905, 0.16936923563480377, 0.08001843094825745, -0.054962776601314545, -0.26274365186691284, -0.05708341300487518, 0.06383027136325836, 0.10482224076986313, 0.1246364563703537, 0.006260687485337257, 0.12534771859645844, -0.014715075492858887, -0.1189502477645874, 0.2472212016582489, -0.12022526562213898, 0.016282059252262115, 0.21865515410900116, 0.19218005239963531, 0.04072679579257965, -0.09359881281852722, -0.11193530261516571, 0.08462058752775192, 0.07917236536741257, -0.17216554284095764, -0.15843194723129272, 0.1321326643228531, -0.01631747931241989, 0.38924136757850647, 0.3512975871562958, 0.34331488609313965, 0.21879437565803528, 0.09375998377799988, -0.16896508634090424, 0.060272153466939926, 0.06494409590959549, 0.26580676436424255, -0.2383878231048584, -0.2687308192253113, -0.052048828452825546, 0.10040370374917984, 0.28350135684013367, -0.487353652715683, -0.08868835866451263, 0.3223947286605835, -0.030458901077508926, 0.11562593281269073, 0.13294127583503723, 0.3237362802028656, -0.07942687720060349, -0.04424767196178436, 0.05452205240726471, 0.43947532773017883, -0.21002739667892456, 0.19567668437957764, 0.1394628882408142, -0.07456639409065247, -0.07221744954586029, 0.1655828207731247, 0.038070570677518845, -0.08807504922151566, 0.15752874314785004, -0.1981511116027832, 0.24661412835121155, -0.11045572906732559, 0.17336411774158478, 0.21786656975746155, -0.22370389103889465, 0.20820727944374084, -0.11262008547782898, -0.01994074136018753, -0.2213374674320221, 0.00008721649646759033, 0.2320367693901062, 0.16371090710163116, -0.1803170144557953, -0.10169155150651932, 0.36623767018318176, -0.29651033878326416, -0.07668182253837585, -0.23051002621650696, -0.17560046911239624, 0.17049655318260193, -0.21798928081989288, 0.11422257125377655, 0.20403055846691132, 0.21655088663101196, -0.1414596140384674, 0.0012643411755561829, -0.12240007519721985, 0.04579225555062294, 0.14528623223304749, 0.27376097440719604, 0.01649930700659752, 0.24645988643169403, 0.34781593084335327, 0.009255923330783844, 0.1785861700773239, 0.3825579285621643, 0.21298305690288544, -0.054884813725948334, 0.38211312890052795, 0.12659038603305817, -0.2623426914215088, -0.14063505828380585, 0.1835034340620041, 0.22129343450069427, 0.2360256463289261, -0.06244276836514473, 0.19372190535068512, 0.20481950044631958, -0.30373984575271606, 0.34896257519721985, -0.25849002599716187, 0.11865930259227753, -0.075726717710495, -0.23210281133651733, -0.3060321807861328, -0.223763108253479, -0.49718353152275085, 0.20270362496376038, -0.33276107907295227, 0.05356704443693161, 0.45451802015304565, -0.06837688386440277, -0.046484820544719696, -0.22443675994873047, 0.1548115313053131, 0.17344912886619568, 0.5367767214775085, 0.4448029696941376, 0.04594502970576286, 0.1401170790195465, -0.4694370627403259, -0.456584095954895, 0.22544988989830017, -0.0836850255727768, -0.0903669148683548, 0.09828800708055496, -0.14772124588489532, 0.06685860455036163, -0.0978710800409317, 0.36949047446250916, 0.0834067165851593, 0.13046632707118988, -0.1823970079421997, -0.33223074674606323, 0.1675700843334198, 0.0492863655090332, -0.09757014364004135, 0.11568902432918549, 0.31109151244163513, 0.1298496574163437, 0.1060631051659584, 0.12194596976041794, -0.07202883809804916, 0.29074975848197937, -0.3009467124938965, -0.3388653099536896, -0.07852505147457123, 0.10054972767829895, 0.3008356988430023, -0.3114146888256073, 0.11810968071222305, -0.12484420835971832, -0.45339009165763855, -0.32306578755378723, 0.22255995869636536, 0.14693403244018555, 0.3471558094024658, 0.1364462822675705, -0.30378448963165283, -0.07423648983240128, 0.06828299909830093, 0.10435308516025543, 0.2220456898212433, -0.28077423572540283, 0.22599133849143982, 0.2492714524269104, 0.01953619346022606, 0.23586487770080566, 0.011672444641590118, 0.04226211830973625, -0.04875665903091431, -0.17566946148872375, -0.6764867901802063, 0.4691270589828491, -0.06075916066765785, -0.2637982964515686, -0.045370399951934814, -0.04215015470981598, 0.2239362895488739, -0.03145737200975418, -0.896308422088623, -0.07769297808408737, 0.26663336157798767, 0.1723022162914276, -0.016525551676750183, 0.34308016300201416, -0.10865680873394012, 0.004350464791059494, -0.07731592655181885, -0.16825322806835175, 0.15661585330963135, 0.05453641712665558, 0.026000533252954483, -0.08893129229545593 ]
https://github.com/huggingface/datasets/pull/2121
Add Validation For README
Good start! Here are some proposed next steps: - We want the Class structure to reflect the template - so the parser know what section titles to expect and when something has gone wrong - As a result, we don't need to parse the table of contents, since it will always be the same - For each section/subsection it would be cool to have a variable saying whether it's filled out or not (when it's either empty or has `[More Information Needed]`) - `attributes` should probably be `text`
Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan
88
text: Add Validation For README Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan Good start! Here are some proposed next steps: - We want the Class structure to reflect the template - so the parser know what section titles to expect and when something has gone wrong - As a result, we don't need to parse the table of contents, since it will always be the same - For each section/subsection it would be cool to have a variable saying whether it's filled out or not (when it's either empty or has `[More Information Needed]`) - `attributes` should probably be `text`
[ -0.062220145016908646, 0.1453738808631897, -0.1334857940673828, 0.24961628019809723, 0.2254566252231598, 0.2698098123073578, 0.18070510029792786, 0.39705872535705566, 0.1556602567434311, -0.05715087056159973, 0.09762268513441086, 0.27325108647346497, -0.14209480583667755, -0.05973687767982483, -0.22095350921154022, 0.027295557782053947, 0.046654436737298965, 0.0836859866976738, 0.10413768142461777, -0.1497908979654312, -0.011771652847528458, 0.22533047199249268, 0.008201032876968384, 0.011668838560581207, 0.17776642739772797, -0.098935566842556, 0.20812280476093292, -0.04371263086795807, -0.5918548703193665, -0.4672010540962219, 0.17680487036705017, 0.03675317019224167, -0.33186861872673035, 0.1315297782421112, -0.000105837250885088, -0.08187699317932129, 0.14413917064666748, -0.0048612505197525024, -0.036721162497997284, -0.2674272060394287, -0.21669545769691467, 0.08665703982114792, -0.038047581911087036, -0.12795275449752808, -0.051646240055561066, -0.14305026829242706, -0.18197192251682281, -0.1836794912815094, 0.5622107982635498, 0.40971139073371887, 0.20119021832942963, -0.5221631526947021, 0.1337578147649765, 0.0849897488951683, 0.23652473092079163, 0.41343802213668823, 0.03404192626476288, 0.01629919931292534, 0.25599730014801025, 0.23243306577205658, -0.02148071676492691, 0.5193160772323608, -0.18719837069511414, -0.023369107395410538, 0.2915549576282501, -0.1446523666381836, 0.3426592946052551, -0.183702290058136, 0.14684748649597168, 0.25377488136291504, 0.7058746814727783, -0.2441769242286682, -0.03342004865407944, -0.32688039541244507, -0.3478306233882904, 0.11575402319431305, -0.07530312985181808, 0.05971083790063858, 0.06573279201984406, 0.3640945553779602, -0.010617021471261978, -0.10240369290113449, -0.17683859169483185, -0.006738699972629547, -0.012445002794265747, 0.5645154714584351, -0.14826767146587372, -0.16649606823921204, 0.20272083580493927, -0.12670786678791046, -0.02809068188071251, -0.06672872602939606, -0.41096097230911255, 0.12627390027046204, 0.13003157079219818, -0.4389002323150635, 0.03395744785666466, -0.37247511744499207, 0.3041967749595642, 0.1934918314218521, -0.08706611394882202, 0.2732134163379669, 0.08986655622720718, 0.27807778120040894, 0.3210962116718292, -0.011705581098794937, 0.372115820646286, 0.4393428564071655, -0.08319894969463348, 0.024861084297299385, 0.15250903367996216, -0.09469770640134811, -0.03755075857043266, 0.2574442923069, 0.10363994538784027, 0.1902109682559967, 0.0108400359749794, -0.4078061580657959, -0.17307357490062714, 0.2898893654346466, -0.07566296309232712, -0.3063163757324219, 0.003271169029176235, 0.4401112198829651, 0.03680207207798958, 0.1541440635919571, 0.06786933541297913, 0.04801227152347565, 0.05260073393583298, -0.08707039803266525, -0.12626370787620544, 0.42046353220939636, -0.02275390923023224, -0.1182541772723198, 0.13888369500637054, 0.1505070924758911, -0.008338945917785168, -0.1784294694662094, -0.21130214631557465, -0.5156262516975403, 0.1009392961859703, -0.17482981085777283, 0.5397642254829407, 0.020850330591201782, -0.31506896018981934, 0.07230153679847717, 0.23631425201892853, -0.4557652473449707, -0.2822198271751404, 0.09469212591648102, -0.41236740350723267, -0.2070118486881256, -0.09632818400859833, 0.3105356693267822, -0.05545753240585327, 0.0026805363595485687, -0.23852986097335815, 0.3484346270561218, 0.2606240510940552, -0.13756009936332703, 0.1658879518508911, 0.1562100499868393, -0.148212730884552, -0.11700630187988281, -0.032593317329883575, 0.2528995871543884, -0.17594964802265167, -0.02729509025812149, -0.22996318340301514, -0.125409796833992, -0.06298550218343735, 0.048190392553806305, -0.10024291276931763, 0.4487791359424591, -0.039892036467790604, 0.4614870548248291, 0.6218039989471436, -0.49660104513168335, -0.2050483077764511, 0.3639084994792938, -0.09923753142356873, -0.02785533107817173, 0.2716364562511444, -0.20378564298152924, 0.2607461214065552, -0.21103812754154205, -0.03150828182697296, -0.02898295596241951, 0.09623221307992935, 0.006301911547780037, -0.09586121141910553, 0.038073085248470306, -0.06424687802791595, 0.2324054092168808, -0.0665118396282196, -0.30449995398521423, 0.14818459749221802, -0.12121115624904633, 0.45462581515312195, -0.2603372633457184, 0.17461805045604706, 0.19516772031784058, 0.6494988203048706, -0.06303104758262634, 0.09778819978237152, -0.3720415532588959, -0.0354355126619339, -0.11298806220293045, 0.42360642552375793, -0.010642260313034058, -0.003677971661090851, -0.09147223830223083, -0.37476667761802673, -0.039354268461465836, -0.30765819549560547, -0.3547999858856201, 0.2587301731109619, -0.09948670864105225, -0.024357521906495094, -0.23816680908203125, -0.2577337920665741, 0.21263009309768677, -0.17098602652549744, 0.15585742890834808, -0.3342427909374237, 0.12439101934432983, -0.19803619384765625, 0.013881049118936062, -0.0799378976225853, 0.1778881996870041, 0.037198256701231, -0.09430748224258423, 0.10701843351125717, 0.14108559489250183, 0.43564245104789734, -0.09973526000976562, -0.2852849066257477, 0.28076162934303284, 0.0008717402815818787, -0.2700980007648468, 0.07877396792173386, -0.1181076318025589, 0.05943237990140915, -0.12797848880290985, -0.3351447582244873, 0.3062768876552582, 0.34755587577819824, 0.06814155727624893, -0.14467814564704895, -0.2532750070095062, 0.10530412197113037, -0.16489578783512115, -0.16799187660217285, -0.38588976860046387, -0.049262385815382004, 0.04968325048685074, -0.15022796392440796, -0.032936953008174896, 0.15119266510009766, 0.008145526051521301, 0.46615150570869446, -0.03392429277300835, 0.07919236272573471, 0.1155640110373497, -0.07941380888223648, -0.08957711607217789, -0.038711048662662506, 0.411126971244812, -0.024577125906944275, 0.16570881009101868, 0.08118166029453278, 0.06497986614704132, 0.044056858867406845, 0.004239343106746674, 0.14163827896118164, -0.019781507551670074, 0.32012590765953064, 0.394845187664032, -0.07111404091119766, 0.13942421972751617, -0.2101961374282837, -0.20172297954559326, -0.07984213531017303, 0.11843810230493546, -0.3281734883785248, 0.26935988664627075, -0.09120288491249084, 0.30300387740135193, -0.029983792454004288, -0.21735532581806183, 0.04240097105503082, -0.3174941837787628, 0.01633472926914692, 0.030830051749944687, -0.11789429187774658, -0.08514828234910965, -0.07955218851566315, 0.10701598227024078, -0.023881636559963226, 0.052160024642944336, -0.24127770960330963, -0.31932365894317627, -0.07421840727329254, 0.17507614195346832, 0.13528361916542053, 0.2279454469680786, 0.16021747887134552, -0.20039571821689606, 0.039258137345314026, 0.09058176726102829, -0.5231971144676208, 0.1725783348083496, -0.15838180482387543, 0.18457166850566864, 0.14868813753128052, 0.18331089615821838, 0.1474488526582718, -0.19422759115695953, 0.02995353192090988, 0.11170630156993866, -0.35287752747535706, 0.05759649723768234, 0.0717083290219307, -0.13241048157215118, -0.058862704783678055, -0.3451214134693146, -0.025874866172671318, -0.22763855755329132, 0.3535920977592468, 0.013689093291759491, 0.2765697240829468, 0.1613883525133133, 0.03691629320383072, -0.02960427850484848, -0.31044942140579224, 0.44298192858695984, -0.27986517548561096, -0.2367476522922516, 0.5191361904144287, -0.024855975061655045, -0.07120770215988159, 0.24193722009658813, -0.0713316947221756, 0.2528459131717682, -0.1305142641067505, -0.2531728744506836, -0.06244479492306709, 0.08748673647642136, -0.14935685694217682, -0.08575665950775146, -0.20792900025844574, 0.23403942584991455, 0.36288878321647644, -0.13709627091884613, -0.10166849195957184, -0.1633133441209793, 0.07035353034734726, -0.00760878250002861, 0.12434586137533188, -0.30668389797210693, 0.20309802889823914, 0.30429694056510925, 0.11456617712974548, -0.05997819826006889, -0.029206257313489914, -0.08685190975666046, 0.3506316542625427, 0.05409272387623787, 0.3228210508823395, -0.3661712110042572, 0.206746444106102, -0.017224133014678955, -0.1142391711473465, 0.2597101628780365, -0.15546825528144836, -0.06499096751213074, -0.22114740312099457, 0.1382533311843872, -0.41605740785598755, -0.2896616756916046, 0.18607042729854584, 0.08249890804290771, 0.029389724135398865, -0.17806832492351532, 0.4227427840232849, 0.09017576277256012, 0.08013969659805298, 0.23670022189617157, 0.574912428855896, -0.07201600819826126, -0.030468937009572983, -0.21656309068202972, -0.20247408747673035, 0.013196155428886414, 0.04437660425901413, 0.10083822160959244, -0.07134444266557693, -0.0009073764085769653, -0.020230460911989212, -0.15337438881397247, -0.3785537779331207, 0.14669831097126007, -0.3548630475997925, 0.12843522429466248, 0.12941356003284454, 0.128298819065094, 0.4117496609687805, 0.07618226110935211, -0.13436686992645264, -0.23829025030136108, 0.10690948367118835, 0.05296242982149124, -0.647280216217041, -0.1271098107099533, 0.1809268742799759, -0.3405722379684448, -0.008881144225597382, -0.32224273681640625, 0.05661306902766228, -0.15656539797782898, -0.4801022410392761, 0.14909471571445465, 0.24683095514774323, 0.0596323125064373, 0.1336967498064041, -0.09490175545215607, 0.15290221571922302, -0.0322016142308712, 0.3901042342185974, 0.08752128481864929, 0.023292088881134987, -0.16541419923305511, -0.12500987946987152, -0.13621997833251953, -0.02298855036497116, 0.584050714969635, 0.380316823720932, -0.006736356765031815, -0.33732613921165466, -0.19399550557136536, -0.17037765681743622, 0.25079146027565, 0.05011161416769028, 0.18680283427238464, 0.050831668078899384, 0.38230448961257935, -0.10715791583061218, -0.09064248204231262, 0.09241554141044617, -0.06057259440422058, -0.06679600477218628, -0.30331048369407654, -0.47385117411613464, 0.2723347246646881, 0.028441905975341797, 0.014972224831581116, 0.08201935887336731, 0.04589450731873512, -0.3111841380596161, 0.06137080490589142, 0.4502478241920471, 0.989497721195221, 0.30587297677993774, -0.09528003633022308, 0.044641364365816116, -0.3480510115623474, 0.058490216732025146, -0.6109122633934021, 0.04030377417802811, -0.2546410858631134, 0.09248705208301544, -0.2391379028558731, -0.021122734993696213, 0.40439027547836304, 0.4455535411834717, -0.33715134859085083, -0.15508601069450378, 0.24256880581378937, 0.21113969385623932, -0.013787124305963516, 0.4585508704185486, -0.01975727267563343, -0.12314645946025848, -0.1114850789308548, 0.2072964757680893, -0.15837401151657104, -0.22546792030334473, 0.045432087033987045, -0.2351304590702057, -0.17400498688220978, -0.30528271198272705, -0.3945038318634033, -0.0956745445728302, -0.0955362468957901, -0.10312861949205399, 0.314120352268219, -0.35593533515930176, 0.557654619216919, -0.14042523503303528, -0.003947757184505463, 0.3466304540634155, -0.32617565989494324, 0.29457613825798035, 0.040690526366233826, -0.07026561349630356, -0.2538524568080902, -0.16557176411151886, 0.41474637389183044, -0.07962666451931, 0.060507632791996, -0.013655692338943481, -0.18851052224636078, -0.10737301409244537, 0.26087915897369385, 0.08368150144815445, 0.1162855252623558, -0.4384618401527405, 0.08069445192813873, 0.2505485713481903, -0.3149406909942627, -0.11131899058818817, 0.20384788513183594, 0.262350469827652, -0.41306257247924805, -0.10014898329973221, 0.1106916069984436, -0.1397789716720581, 0.1687115579843521, -0.029680609703063965, 0.06368043273687363, -0.3783923387527466, 0.23507171869277954, 0.13624240458011627, -0.38587355613708496, -0.45712271332740784, -0.2328079342842102, 0.46148040890693665, 0.2571079432964325, -0.16569463908672333, -0.18830710649490356, -0.34491485357284546, 0.15837526321411133, 0.06316318362951279, 0.24263761937618256, 0.22274109721183777, 0.05583181604743004, -0.4421909749507904, -0.19179517030715942, 0.11268414556980133, -0.18956422805786133, 0.11571231484413147, -0.3522947132587433, 0.1453697830438614, -0.1540728658437729, 0.46173331141471863, -0.41619473695755005, -0.11046016961336136, -0.0747452899813652, 0.07155157625675201, 0.2448565661907196, -0.2016998529434204, -0.20091068744659424, -0.09280076622962952, 0.18505792319774628, 0.28127413988113403, -0.3414607346057892, -0.2783629596233368, -0.10919564962387085, 0.04996362328529358, 0.2922757863998413, 0.24378779530525208, 0.009705199860036373, 0.26137930154800415, -0.21491017937660217, -0.232205331325531, -0.18118178844451904, -0.21438679099082947, 0.06499963253736496, 0.2757204473018646, 0.28056538105010986, 0.17167730629444122, -0.16106051206588745, -0.3141649067401886, -0.1897066831588745, 0.27315908670425415, -0.08822090923786163, -0.13618731498718262, 0.058925315737724304, 0.02605488896369934, 0.0998791977763176, 0.38201823830604553, 0.4516848921775818, -0.006533682346343994, 0.4076753854751587, -0.03156374394893646, -0.049441348761320114, 0.21561434864997864, 0.053439900279045105, 0.5263511538505554, -0.20606105029582977, 0.04576878994703293, -0.0004257187247276306, 0.2759711444377899, 0.04691682755947113, 0.1582268327474594, 0.14627446234226227, -0.1524493396282196, 0.10433048009872437, 0.23138201236724854, -0.04778943955898285, 0.15559141337871552, -0.0316297709941864, 0.31517308950424194, 0.4057631492614746, -0.0928855687379837, 0.2152998447418213, 0.22404441237449646, -0.2572307288646698, -0.21136559545993805, 0.32809746265411377, 0.17385776340961456, 0.3070858418941498, 0.2317868173122406, 0.22631463408470154, 0.2809487581253052, 0.4163462221622467, 0.21164250373840332, -0.2160971462726593, -0.11871393024921417, 0.2858908772468567, 0.4409613311290741, 0.14439545571804047, 0.01677507907152176, 0.28947606682777405, -0.3281685709953308, 0.33186250925064087, -0.003574811387807131, 0.05231020599603653, 0.2429804652929306, -0.13306456804275513, 0.09906166791915894, -0.07942710071802139, -0.11177355796098709, -0.24518175423145294, -0.2747117280960083, 0.09447664022445679, -0.2858782410621643, -0.03318828344345093, -0.14127926528453827, -0.15742503106594086, -0.14862608909606934, 0.008063087239861488, -0.045062147080898285, 0.2656489610671997, -0.531337320804596, 0.12649548053741455, 0.13838697969913483, -0.052632056176662445, 0.14626841247081757, -0.137953981757164, 0.2984483242034912, 0.2306843250989914, -0.1587613821029663, 0.10238434374332428, -0.34751468896865845, -0.47992825508117676, 0.13820643723011017, 0.3155311942100525, 0.06852388381958008, 0.08473032712936401, 0.33213213086128235, 0.25644832849502563, -0.1954057663679123, -0.13002640008926392, 0.017548929899930954, -0.06793393194675446, -0.06354477256536484, 0.041683394461870193, 0.24282920360565186, -0.2581382393836975, -0.20602786540985107, -0.23073101043701172, -0.4034236669540405, -0.37011072039604187, 0.099031463265419, 0.08180967718362808, 0.23330694437026978, -0.09293314814567566, 0.12780418992042542, 0.31755581498146057, 0.13910996913909912, 0.21170833706855774, 0.05761365592479706, -0.10722135752439499, -0.2944210171699524, -0.3802275061607361, -0.08125507086515427, -0.18714354932308197, -0.34035396575927734, -0.02866937965154648, 0.12091726064682007, 0.2569708228111267, 0.4090837240219116, -0.19256769120693207, 0.07502925395965576, 0.18358607590198517, 0.26242053508758545, -0.16372345387935638, 0.07118155062198639, 0.3987107276916504, -0.005884118378162384, 0.14723077416419983, 0.06101003289222717, -0.036473456770181656, 0.18546810746192932, 0.1999574601650238, -0.08763773739337921, 0.08378131687641144, -0.007786761969327927, 0.23974159359931946, 0.2052232027053833, 0.024818740785121918, 0.34266167879104614, -0.22307458519935608, -0.1534397304058075, 0.14188064634799957, 0.3161235749721527, 0.058264780789613724, 0.4063868224620819, 0.1564667820930481, 0.5133110284805298, 0.047327376902103424, 0.006307870149612427, -0.2425059676170349, -0.09803498536348343, -0.09080124646425247, -0.21286515891551971, -0.6478087902069092, 0.1315714716911316, 0.0626140758395195, 0.1702558845281601, -0.2607923150062561, -0.24034783244132996, 0.053939901292324066, -0.048728492110967636, -0.2779194712638855, -0.4708806276321411, 0.2743675410747528, 0.024356111884117126, -0.4496534764766693, -0.16965971887111664, 0.16451114416122437, 0.0007475093007087708, 0.28233563899993896, -0.7982839345932007, -0.010401330888271332, 0.4095080494880676, -0.10528764873743057, -0.1517000049352646, 0.038865283131599426, 0.02745947800576687, -0.14807800948619843, -0.11255009472370148, 0.24126681685447693, 0.11861192435026169, -0.04071949049830437, -0.2710612118244171, -0.2115236520767212 ]
https://github.com/huggingface/datasets/pull/2121
Add Validation For README
@yjernite @lhoestq I have added basic validation checking in the class. It works based on a YAML string. The YAML string determines the expected structure and which text is to be checked. The `text` can be true or false showing whether the text has to be checked or not for emptiness. Similarly, each subsection is parsed recursively. I have used print statement currently so that all issues are shown. Please let me know your thoughts. I haven't added a variable that keeps a track of whether the text is empty or not but it can be done easliy if required.
Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan
100
text: Add Validation For README Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan @yjernite @lhoestq I have added basic validation checking in the class. It works based on a YAML string. The YAML string determines the expected structure and which text is to be checked. The `text` can be true or false showing whether the text has to be checked or not for emptiness. Similarly, each subsection is parsed recursively. I have used print statement currently so that all issues are shown. Please let me know your thoughts. I haven't added a variable that keeps a track of whether the text is empty or not but it can be done easliy if required.
[ -0.062220145016908646, 0.1453738808631897, -0.1334857940673828, 0.24961628019809723, 0.2254566252231598, 0.2698098123073578, 0.18070510029792786, 0.39705872535705566, 0.1556602567434311, -0.05715087056159973, 0.09762268513441086, 0.27325108647346497, -0.14209480583667755, -0.05973687767982483, -0.22095350921154022, 0.027295557782053947, 0.046654436737298965, 0.0836859866976738, 0.10413768142461777, -0.1497908979654312, -0.011771652847528458, 0.22533047199249268, 0.008201032876968384, 0.011668838560581207, 0.17776642739772797, -0.098935566842556, 0.20812280476093292, -0.04371263086795807, -0.5918548703193665, -0.4672010540962219, 0.17680487036705017, 0.03675317019224167, -0.33186861872673035, 0.1315297782421112, -0.000105837250885088, -0.08187699317932129, 0.14413917064666748, -0.0048612505197525024, -0.036721162497997284, -0.2674272060394287, -0.21669545769691467, 0.08665703982114792, -0.038047581911087036, -0.12795275449752808, -0.051646240055561066, -0.14305026829242706, -0.18197192251682281, -0.1836794912815094, 0.5622107982635498, 0.40971139073371887, 0.20119021832942963, -0.5221631526947021, 0.1337578147649765, 0.0849897488951683, 0.23652473092079163, 0.41343802213668823, 0.03404192626476288, 0.01629919931292534, 0.25599730014801025, 0.23243306577205658, -0.02148071676492691, 0.5193160772323608, -0.18719837069511414, -0.023369107395410538, 0.2915549576282501, -0.1446523666381836, 0.3426592946052551, -0.183702290058136, 0.14684748649597168, 0.25377488136291504, 0.7058746814727783, -0.2441769242286682, -0.03342004865407944, -0.32688039541244507, -0.3478306233882904, 0.11575402319431305, -0.07530312985181808, 0.05971083790063858, 0.06573279201984406, 0.3640945553779602, -0.010617021471261978, -0.10240369290113449, -0.17683859169483185, -0.006738699972629547, -0.012445002794265747, 0.5645154714584351, -0.14826767146587372, -0.16649606823921204, 0.20272083580493927, -0.12670786678791046, -0.02809068188071251, -0.06672872602939606, -0.41096097230911255, 0.12627390027046204, 0.13003157079219818, -0.4389002323150635, 0.03395744785666466, -0.37247511744499207, 0.3041967749595642, 0.1934918314218521, -0.08706611394882202, 0.2732134163379669, 0.08986655622720718, 0.27807778120040894, 0.3210962116718292, -0.011705581098794937, 0.372115820646286, 0.4393428564071655, -0.08319894969463348, 0.024861084297299385, 0.15250903367996216, -0.09469770640134811, -0.03755075857043266, 0.2574442923069, 0.10363994538784027, 0.1902109682559967, 0.0108400359749794, -0.4078061580657959, -0.17307357490062714, 0.2898893654346466, -0.07566296309232712, -0.3063163757324219, 0.003271169029176235, 0.4401112198829651, 0.03680207207798958, 0.1541440635919571, 0.06786933541297913, 0.04801227152347565, 0.05260073393583298, -0.08707039803266525, -0.12626370787620544, 0.42046353220939636, -0.02275390923023224, -0.1182541772723198, 0.13888369500637054, 0.1505070924758911, -0.008338945917785168, -0.1784294694662094, -0.21130214631557465, -0.5156262516975403, 0.1009392961859703, -0.17482981085777283, 0.5397642254829407, 0.020850330591201782, -0.31506896018981934, 0.07230153679847717, 0.23631425201892853, -0.4557652473449707, -0.2822198271751404, 0.09469212591648102, -0.41236740350723267, -0.2070118486881256, -0.09632818400859833, 0.3105356693267822, -0.05545753240585327, 0.0026805363595485687, -0.23852986097335815, 0.3484346270561218, 0.2606240510940552, -0.13756009936332703, 0.1658879518508911, 0.1562100499868393, -0.148212730884552, -0.11700630187988281, -0.032593317329883575, 0.2528995871543884, -0.17594964802265167, -0.02729509025812149, -0.22996318340301514, -0.125409796833992, -0.06298550218343735, 0.048190392553806305, -0.10024291276931763, 0.4487791359424591, -0.039892036467790604, 0.4614870548248291, 0.6218039989471436, -0.49660104513168335, -0.2050483077764511, 0.3639084994792938, -0.09923753142356873, -0.02785533107817173, 0.2716364562511444, -0.20378564298152924, 0.2607461214065552, -0.21103812754154205, -0.03150828182697296, -0.02898295596241951, 0.09623221307992935, 0.006301911547780037, -0.09586121141910553, 0.038073085248470306, -0.06424687802791595, 0.2324054092168808, -0.0665118396282196, -0.30449995398521423, 0.14818459749221802, -0.12121115624904633, 0.45462581515312195, -0.2603372633457184, 0.17461805045604706, 0.19516772031784058, 0.6494988203048706, -0.06303104758262634, 0.09778819978237152, -0.3720415532588959, -0.0354355126619339, -0.11298806220293045, 0.42360642552375793, -0.010642260313034058, -0.003677971661090851, -0.09147223830223083, -0.37476667761802673, -0.039354268461465836, -0.30765819549560547, -0.3547999858856201, 0.2587301731109619, -0.09948670864105225, -0.024357521906495094, -0.23816680908203125, -0.2577337920665741, 0.21263009309768677, -0.17098602652549744, 0.15585742890834808, -0.3342427909374237, 0.12439101934432983, -0.19803619384765625, 0.013881049118936062, -0.0799378976225853, 0.1778881996870041, 0.037198256701231, -0.09430748224258423, 0.10701843351125717, 0.14108559489250183, 0.43564245104789734, -0.09973526000976562, -0.2852849066257477, 0.28076162934303284, 0.0008717402815818787, -0.2700980007648468, 0.07877396792173386, -0.1181076318025589, 0.05943237990140915, -0.12797848880290985, -0.3351447582244873, 0.3062768876552582, 0.34755587577819824, 0.06814155727624893, -0.14467814564704895, -0.2532750070095062, 0.10530412197113037, -0.16489578783512115, -0.16799187660217285, -0.38588976860046387, -0.049262385815382004, 0.04968325048685074, -0.15022796392440796, -0.032936953008174896, 0.15119266510009766, 0.008145526051521301, 0.46615150570869446, -0.03392429277300835, 0.07919236272573471, 0.1155640110373497, -0.07941380888223648, -0.08957711607217789, -0.038711048662662506, 0.411126971244812, -0.024577125906944275, 0.16570881009101868, 0.08118166029453278, 0.06497986614704132, 0.044056858867406845, 0.004239343106746674, 0.14163827896118164, -0.019781507551670074, 0.32012590765953064, 0.394845187664032, -0.07111404091119766, 0.13942421972751617, -0.2101961374282837, -0.20172297954559326, -0.07984213531017303, 0.11843810230493546, -0.3281734883785248, 0.26935988664627075, -0.09120288491249084, 0.30300387740135193, -0.029983792454004288, -0.21735532581806183, 0.04240097105503082, -0.3174941837787628, 0.01633472926914692, 0.030830051749944687, -0.11789429187774658, -0.08514828234910965, -0.07955218851566315, 0.10701598227024078, -0.023881636559963226, 0.052160024642944336, -0.24127770960330963, -0.31932365894317627, -0.07421840727329254, 0.17507614195346832, 0.13528361916542053, 0.2279454469680786, 0.16021747887134552, -0.20039571821689606, 0.039258137345314026, 0.09058176726102829, -0.5231971144676208, 0.1725783348083496, -0.15838180482387543, 0.18457166850566864, 0.14868813753128052, 0.18331089615821838, 0.1474488526582718, -0.19422759115695953, 0.02995353192090988, 0.11170630156993866, -0.35287752747535706, 0.05759649723768234, 0.0717083290219307, -0.13241048157215118, -0.058862704783678055, -0.3451214134693146, -0.025874866172671318, -0.22763855755329132, 0.3535920977592468, 0.013689093291759491, 0.2765697240829468, 0.1613883525133133, 0.03691629320383072, -0.02960427850484848, -0.31044942140579224, 0.44298192858695984, -0.27986517548561096, -0.2367476522922516, 0.5191361904144287, -0.024855975061655045, -0.07120770215988159, 0.24193722009658813, -0.0713316947221756, 0.2528459131717682, -0.1305142641067505, -0.2531728744506836, -0.06244479492306709, 0.08748673647642136, -0.14935685694217682, -0.08575665950775146, -0.20792900025844574, 0.23403942584991455, 0.36288878321647644, -0.13709627091884613, -0.10166849195957184, -0.1633133441209793, 0.07035353034734726, -0.00760878250002861, 0.12434586137533188, -0.30668389797210693, 0.20309802889823914, 0.30429694056510925, 0.11456617712974548, -0.05997819826006889, -0.029206257313489914, -0.08685190975666046, 0.3506316542625427, 0.05409272387623787, 0.3228210508823395, -0.3661712110042572, 0.206746444106102, -0.017224133014678955, -0.1142391711473465, 0.2597101628780365, -0.15546825528144836, -0.06499096751213074, -0.22114740312099457, 0.1382533311843872, -0.41605740785598755, -0.2896616756916046, 0.18607042729854584, 0.08249890804290771, 0.029389724135398865, -0.17806832492351532, 0.4227427840232849, 0.09017576277256012, 0.08013969659805298, 0.23670022189617157, 0.574912428855896, -0.07201600819826126, -0.030468937009572983, -0.21656309068202972, -0.20247408747673035, 0.013196155428886414, 0.04437660425901413, 0.10083822160959244, -0.07134444266557693, -0.0009073764085769653, -0.020230460911989212, -0.15337438881397247, -0.3785537779331207, 0.14669831097126007, -0.3548630475997925, 0.12843522429466248, 0.12941356003284454, 0.128298819065094, 0.4117496609687805, 0.07618226110935211, -0.13436686992645264, -0.23829025030136108, 0.10690948367118835, 0.05296242982149124, -0.647280216217041, -0.1271098107099533, 0.1809268742799759, -0.3405722379684448, -0.008881144225597382, -0.32224273681640625, 0.05661306902766228, -0.15656539797782898, -0.4801022410392761, 0.14909471571445465, 0.24683095514774323, 0.0596323125064373, 0.1336967498064041, -0.09490175545215607, 0.15290221571922302, -0.0322016142308712, 0.3901042342185974, 0.08752128481864929, 0.023292088881134987, -0.16541419923305511, -0.12500987946987152, -0.13621997833251953, -0.02298855036497116, 0.584050714969635, 0.380316823720932, -0.006736356765031815, -0.33732613921165466, -0.19399550557136536, -0.17037765681743622, 0.25079146027565, 0.05011161416769028, 0.18680283427238464, 0.050831668078899384, 0.38230448961257935, -0.10715791583061218, -0.09064248204231262, 0.09241554141044617, -0.06057259440422058, -0.06679600477218628, -0.30331048369407654, -0.47385117411613464, 0.2723347246646881, 0.028441905975341797, 0.014972224831581116, 0.08201935887336731, 0.04589450731873512, -0.3111841380596161, 0.06137080490589142, 0.4502478241920471, 0.989497721195221, 0.30587297677993774, -0.09528003633022308, 0.044641364365816116, -0.3480510115623474, 0.058490216732025146, -0.6109122633934021, 0.04030377417802811, -0.2546410858631134, 0.09248705208301544, -0.2391379028558731, -0.021122734993696213, 0.40439027547836304, 0.4455535411834717, -0.33715134859085083, -0.15508601069450378, 0.24256880581378937, 0.21113969385623932, -0.013787124305963516, 0.4585508704185486, -0.01975727267563343, -0.12314645946025848, -0.1114850789308548, 0.2072964757680893, -0.15837401151657104, -0.22546792030334473, 0.045432087033987045, -0.2351304590702057, -0.17400498688220978, -0.30528271198272705, -0.3945038318634033, -0.0956745445728302, -0.0955362468957901, -0.10312861949205399, 0.314120352268219, -0.35593533515930176, 0.557654619216919, -0.14042523503303528, -0.003947757184505463, 0.3466304540634155, -0.32617565989494324, 0.29457613825798035, 0.040690526366233826, -0.07026561349630356, -0.2538524568080902, -0.16557176411151886, 0.41474637389183044, -0.07962666451931, 0.060507632791996, -0.013655692338943481, -0.18851052224636078, -0.10737301409244537, 0.26087915897369385, 0.08368150144815445, 0.1162855252623558, -0.4384618401527405, 0.08069445192813873, 0.2505485713481903, -0.3149406909942627, -0.11131899058818817, 0.20384788513183594, 0.262350469827652, -0.41306257247924805, -0.10014898329973221, 0.1106916069984436, -0.1397789716720581, 0.1687115579843521, -0.029680609703063965, 0.06368043273687363, -0.3783923387527466, 0.23507171869277954, 0.13624240458011627, -0.38587355613708496, -0.45712271332740784, -0.2328079342842102, 0.46148040890693665, 0.2571079432964325, -0.16569463908672333, -0.18830710649490356, -0.34491485357284546, 0.15837526321411133, 0.06316318362951279, 0.24263761937618256, 0.22274109721183777, 0.05583181604743004, -0.4421909749507904, -0.19179517030715942, 0.11268414556980133, -0.18956422805786133, 0.11571231484413147, -0.3522947132587433, 0.1453697830438614, -0.1540728658437729, 0.46173331141471863, -0.41619473695755005, -0.11046016961336136, -0.0747452899813652, 0.07155157625675201, 0.2448565661907196, -0.2016998529434204, -0.20091068744659424, -0.09280076622962952, 0.18505792319774628, 0.28127413988113403, -0.3414607346057892, -0.2783629596233368, -0.10919564962387085, 0.04996362328529358, 0.2922757863998413, 0.24378779530525208, 0.009705199860036373, 0.26137930154800415, -0.21491017937660217, -0.232205331325531, -0.18118178844451904, -0.21438679099082947, 0.06499963253736496, 0.2757204473018646, 0.28056538105010986, 0.17167730629444122, -0.16106051206588745, -0.3141649067401886, -0.1897066831588745, 0.27315908670425415, -0.08822090923786163, -0.13618731498718262, 0.058925315737724304, 0.02605488896369934, 0.0998791977763176, 0.38201823830604553, 0.4516848921775818, -0.006533682346343994, 0.4076753854751587, -0.03156374394893646, -0.049441348761320114, 0.21561434864997864, 0.053439900279045105, 0.5263511538505554, -0.20606105029582977, 0.04576878994703293, -0.0004257187247276306, 0.2759711444377899, 0.04691682755947113, 0.1582268327474594, 0.14627446234226227, -0.1524493396282196, 0.10433048009872437, 0.23138201236724854, -0.04778943955898285, 0.15559141337871552, -0.0316297709941864, 0.31517308950424194, 0.4057631492614746, -0.0928855687379837, 0.2152998447418213, 0.22404441237449646, -0.2572307288646698, -0.21136559545993805, 0.32809746265411377, 0.17385776340961456, 0.3070858418941498, 0.2317868173122406, 0.22631463408470154, 0.2809487581253052, 0.4163462221622467, 0.21164250373840332, -0.2160971462726593, -0.11871393024921417, 0.2858908772468567, 0.4409613311290741, 0.14439545571804047, 0.01677507907152176, 0.28947606682777405, -0.3281685709953308, 0.33186250925064087, -0.003574811387807131, 0.05231020599603653, 0.2429804652929306, -0.13306456804275513, 0.09906166791915894, -0.07942710071802139, -0.11177355796098709, -0.24518175423145294, -0.2747117280960083, 0.09447664022445679, -0.2858782410621643, -0.03318828344345093, -0.14127926528453827, -0.15742503106594086, -0.14862608909606934, 0.008063087239861488, -0.045062147080898285, 0.2656489610671997, -0.531337320804596, 0.12649548053741455, 0.13838697969913483, -0.052632056176662445, 0.14626841247081757, -0.137953981757164, 0.2984483242034912, 0.2306843250989914, -0.1587613821029663, 0.10238434374332428, -0.34751468896865845, -0.47992825508117676, 0.13820643723011017, 0.3155311942100525, 0.06852388381958008, 0.08473032712936401, 0.33213213086128235, 0.25644832849502563, -0.1954057663679123, -0.13002640008926392, 0.017548929899930954, -0.06793393194675446, -0.06354477256536484, 0.041683394461870193, 0.24282920360565186, -0.2581382393836975, -0.20602786540985107, -0.23073101043701172, -0.4034236669540405, -0.37011072039604187, 0.099031463265419, 0.08180967718362808, 0.23330694437026978, -0.09293314814567566, 0.12780418992042542, 0.31755581498146057, 0.13910996913909912, 0.21170833706855774, 0.05761365592479706, -0.10722135752439499, -0.2944210171699524, -0.3802275061607361, -0.08125507086515427, -0.18714354932308197, -0.34035396575927734, -0.02866937965154648, 0.12091726064682007, 0.2569708228111267, 0.4090837240219116, -0.19256769120693207, 0.07502925395965576, 0.18358607590198517, 0.26242053508758545, -0.16372345387935638, 0.07118155062198639, 0.3987107276916504, -0.005884118378162384, 0.14723077416419983, 0.06101003289222717, -0.036473456770181656, 0.18546810746192932, 0.1999574601650238, -0.08763773739337921, 0.08378131687641144, -0.007786761969327927, 0.23974159359931946, 0.2052232027053833, 0.024818740785121918, 0.34266167879104614, -0.22307458519935608, -0.1534397304058075, 0.14188064634799957, 0.3161235749721527, 0.058264780789613724, 0.4063868224620819, 0.1564667820930481, 0.5133110284805298, 0.047327376902103424, 0.006307870149612427, -0.2425059676170349, -0.09803498536348343, -0.09080124646425247, -0.21286515891551971, -0.6478087902069092, 0.1315714716911316, 0.0626140758395195, 0.1702558845281601, -0.2607923150062561, -0.24034783244132996, 0.053939901292324066, -0.048728492110967636, -0.2779194712638855, -0.4708806276321411, 0.2743675410747528, 0.024356111884117126, -0.4496534764766693, -0.16965971887111664, 0.16451114416122437, 0.0007475093007087708, 0.28233563899993896, -0.7982839345932007, -0.010401330888271332, 0.4095080494880676, -0.10528764873743057, -0.1517000049352646, 0.038865283131599426, 0.02745947800576687, -0.14807800948619843, -0.11255009472370148, 0.24126681685447693, 0.11861192435026169, -0.04071949049830437, -0.2710612118244171, -0.2115236520767212 ]
https://github.com/huggingface/datasets/pull/2121
Add Validation For README
This looks like a good start ! Maybe we can use a field named `allow_empty` instead of `text` ? Also +1 for keeping track of empty texts Do you think you can have a way to collect all the validation fails of a readme and then raise an error showing all the failures instead of using print ? Then we can create a `tests/test_dataset_cards.py` test file to make sure all the readmes of the repo are valid !
Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan
78
text: Add Validation For README Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan This looks like a good start ! Maybe we can use a field named `allow_empty` instead of `text` ? Also +1 for keeping track of empty texts Do you think you can have a way to collect all the validation fails of a readme and then raise an error showing all the failures instead of using print ? Then we can create a `tests/test_dataset_cards.py` test file to make sure all the readmes of the repo are valid !
[ -0.062220145016908646, 0.1453738808631897, -0.1334857940673828, 0.24961628019809723, 0.2254566252231598, 0.2698098123073578, 0.18070510029792786, 0.39705872535705566, 0.1556602567434311, -0.05715087056159973, 0.09762268513441086, 0.27325108647346497, -0.14209480583667755, -0.05973687767982483, -0.22095350921154022, 0.027295557782053947, 0.046654436737298965, 0.0836859866976738, 0.10413768142461777, -0.1497908979654312, -0.011771652847528458, 0.22533047199249268, 0.008201032876968384, 0.011668838560581207, 0.17776642739772797, -0.098935566842556, 0.20812280476093292, -0.04371263086795807, -0.5918548703193665, -0.4672010540962219, 0.17680487036705017, 0.03675317019224167, -0.33186861872673035, 0.1315297782421112, -0.000105837250885088, -0.08187699317932129, 0.14413917064666748, -0.0048612505197525024, -0.036721162497997284, -0.2674272060394287, -0.21669545769691467, 0.08665703982114792, -0.038047581911087036, -0.12795275449752808, -0.051646240055561066, -0.14305026829242706, -0.18197192251682281, -0.1836794912815094, 0.5622107982635498, 0.40971139073371887, 0.20119021832942963, -0.5221631526947021, 0.1337578147649765, 0.0849897488951683, 0.23652473092079163, 0.41343802213668823, 0.03404192626476288, 0.01629919931292534, 0.25599730014801025, 0.23243306577205658, -0.02148071676492691, 0.5193160772323608, -0.18719837069511414, -0.023369107395410538, 0.2915549576282501, -0.1446523666381836, 0.3426592946052551, -0.183702290058136, 0.14684748649597168, 0.25377488136291504, 0.7058746814727783, -0.2441769242286682, -0.03342004865407944, -0.32688039541244507, -0.3478306233882904, 0.11575402319431305, -0.07530312985181808, 0.05971083790063858, 0.06573279201984406, 0.3640945553779602, -0.010617021471261978, -0.10240369290113449, -0.17683859169483185, -0.006738699972629547, -0.012445002794265747, 0.5645154714584351, -0.14826767146587372, -0.16649606823921204, 0.20272083580493927, -0.12670786678791046, -0.02809068188071251, -0.06672872602939606, -0.41096097230911255, 0.12627390027046204, 0.13003157079219818, -0.4389002323150635, 0.03395744785666466, -0.37247511744499207, 0.3041967749595642, 0.1934918314218521, -0.08706611394882202, 0.2732134163379669, 0.08986655622720718, 0.27807778120040894, 0.3210962116718292, -0.011705581098794937, 0.372115820646286, 0.4393428564071655, -0.08319894969463348, 0.024861084297299385, 0.15250903367996216, -0.09469770640134811, -0.03755075857043266, 0.2574442923069, 0.10363994538784027, 0.1902109682559967, 0.0108400359749794, -0.4078061580657959, -0.17307357490062714, 0.2898893654346466, -0.07566296309232712, -0.3063163757324219, 0.003271169029176235, 0.4401112198829651, 0.03680207207798958, 0.1541440635919571, 0.06786933541297913, 0.04801227152347565, 0.05260073393583298, -0.08707039803266525, -0.12626370787620544, 0.42046353220939636, -0.02275390923023224, -0.1182541772723198, 0.13888369500637054, 0.1505070924758911, -0.008338945917785168, -0.1784294694662094, -0.21130214631557465, -0.5156262516975403, 0.1009392961859703, -0.17482981085777283, 0.5397642254829407, 0.020850330591201782, -0.31506896018981934, 0.07230153679847717, 0.23631425201892853, -0.4557652473449707, -0.2822198271751404, 0.09469212591648102, -0.41236740350723267, -0.2070118486881256, -0.09632818400859833, 0.3105356693267822, -0.05545753240585327, 0.0026805363595485687, -0.23852986097335815, 0.3484346270561218, 0.2606240510940552, -0.13756009936332703, 0.1658879518508911, 0.1562100499868393, -0.148212730884552, -0.11700630187988281, -0.032593317329883575, 0.2528995871543884, -0.17594964802265167, -0.02729509025812149, -0.22996318340301514, -0.125409796833992, -0.06298550218343735, 0.048190392553806305, -0.10024291276931763, 0.4487791359424591, -0.039892036467790604, 0.4614870548248291, 0.6218039989471436, -0.49660104513168335, -0.2050483077764511, 0.3639084994792938, -0.09923753142356873, -0.02785533107817173, 0.2716364562511444, -0.20378564298152924, 0.2607461214065552, -0.21103812754154205, -0.03150828182697296, -0.02898295596241951, 0.09623221307992935, 0.006301911547780037, -0.09586121141910553, 0.038073085248470306, -0.06424687802791595, 0.2324054092168808, -0.0665118396282196, -0.30449995398521423, 0.14818459749221802, -0.12121115624904633, 0.45462581515312195, -0.2603372633457184, 0.17461805045604706, 0.19516772031784058, 0.6494988203048706, -0.06303104758262634, 0.09778819978237152, -0.3720415532588959, -0.0354355126619339, -0.11298806220293045, 0.42360642552375793, -0.010642260313034058, -0.003677971661090851, -0.09147223830223083, -0.37476667761802673, -0.039354268461465836, -0.30765819549560547, -0.3547999858856201, 0.2587301731109619, -0.09948670864105225, -0.024357521906495094, -0.23816680908203125, -0.2577337920665741, 0.21263009309768677, -0.17098602652549744, 0.15585742890834808, -0.3342427909374237, 0.12439101934432983, -0.19803619384765625, 0.013881049118936062, -0.0799378976225853, 0.1778881996870041, 0.037198256701231, -0.09430748224258423, 0.10701843351125717, 0.14108559489250183, 0.43564245104789734, -0.09973526000976562, -0.2852849066257477, 0.28076162934303284, 0.0008717402815818787, -0.2700980007648468, 0.07877396792173386, -0.1181076318025589, 0.05943237990140915, -0.12797848880290985, -0.3351447582244873, 0.3062768876552582, 0.34755587577819824, 0.06814155727624893, -0.14467814564704895, -0.2532750070095062, 0.10530412197113037, -0.16489578783512115, -0.16799187660217285, -0.38588976860046387, -0.049262385815382004, 0.04968325048685074, -0.15022796392440796, -0.032936953008174896, 0.15119266510009766, 0.008145526051521301, 0.46615150570869446, -0.03392429277300835, 0.07919236272573471, 0.1155640110373497, -0.07941380888223648, -0.08957711607217789, -0.038711048662662506, 0.411126971244812, -0.024577125906944275, 0.16570881009101868, 0.08118166029453278, 0.06497986614704132, 0.044056858867406845, 0.004239343106746674, 0.14163827896118164, -0.019781507551670074, 0.32012590765953064, 0.394845187664032, -0.07111404091119766, 0.13942421972751617, -0.2101961374282837, -0.20172297954559326, -0.07984213531017303, 0.11843810230493546, -0.3281734883785248, 0.26935988664627075, -0.09120288491249084, 0.30300387740135193, -0.029983792454004288, -0.21735532581806183, 0.04240097105503082, -0.3174941837787628, 0.01633472926914692, 0.030830051749944687, -0.11789429187774658, -0.08514828234910965, -0.07955218851566315, 0.10701598227024078, -0.023881636559963226, 0.052160024642944336, -0.24127770960330963, -0.31932365894317627, -0.07421840727329254, 0.17507614195346832, 0.13528361916542053, 0.2279454469680786, 0.16021747887134552, -0.20039571821689606, 0.039258137345314026, 0.09058176726102829, -0.5231971144676208, 0.1725783348083496, -0.15838180482387543, 0.18457166850566864, 0.14868813753128052, 0.18331089615821838, 0.1474488526582718, -0.19422759115695953, 0.02995353192090988, 0.11170630156993866, -0.35287752747535706, 0.05759649723768234, 0.0717083290219307, -0.13241048157215118, -0.058862704783678055, -0.3451214134693146, -0.025874866172671318, -0.22763855755329132, 0.3535920977592468, 0.013689093291759491, 0.2765697240829468, 0.1613883525133133, 0.03691629320383072, -0.02960427850484848, -0.31044942140579224, 0.44298192858695984, -0.27986517548561096, -0.2367476522922516, 0.5191361904144287, -0.024855975061655045, -0.07120770215988159, 0.24193722009658813, -0.0713316947221756, 0.2528459131717682, -0.1305142641067505, -0.2531728744506836, -0.06244479492306709, 0.08748673647642136, -0.14935685694217682, -0.08575665950775146, -0.20792900025844574, 0.23403942584991455, 0.36288878321647644, -0.13709627091884613, -0.10166849195957184, -0.1633133441209793, 0.07035353034734726, -0.00760878250002861, 0.12434586137533188, -0.30668389797210693, 0.20309802889823914, 0.30429694056510925, 0.11456617712974548, -0.05997819826006889, -0.029206257313489914, -0.08685190975666046, 0.3506316542625427, 0.05409272387623787, 0.3228210508823395, -0.3661712110042572, 0.206746444106102, -0.017224133014678955, -0.1142391711473465, 0.2597101628780365, -0.15546825528144836, -0.06499096751213074, -0.22114740312099457, 0.1382533311843872, -0.41605740785598755, -0.2896616756916046, 0.18607042729854584, 0.08249890804290771, 0.029389724135398865, -0.17806832492351532, 0.4227427840232849, 0.09017576277256012, 0.08013969659805298, 0.23670022189617157, 0.574912428855896, -0.07201600819826126, -0.030468937009572983, -0.21656309068202972, -0.20247408747673035, 0.013196155428886414, 0.04437660425901413, 0.10083822160959244, -0.07134444266557693, -0.0009073764085769653, -0.020230460911989212, -0.15337438881397247, -0.3785537779331207, 0.14669831097126007, -0.3548630475997925, 0.12843522429466248, 0.12941356003284454, 0.128298819065094, 0.4117496609687805, 0.07618226110935211, -0.13436686992645264, -0.23829025030136108, 0.10690948367118835, 0.05296242982149124, -0.647280216217041, -0.1271098107099533, 0.1809268742799759, -0.3405722379684448, -0.008881144225597382, -0.32224273681640625, 0.05661306902766228, -0.15656539797782898, -0.4801022410392761, 0.14909471571445465, 0.24683095514774323, 0.0596323125064373, 0.1336967498064041, -0.09490175545215607, 0.15290221571922302, -0.0322016142308712, 0.3901042342185974, 0.08752128481864929, 0.023292088881134987, -0.16541419923305511, -0.12500987946987152, -0.13621997833251953, -0.02298855036497116, 0.584050714969635, 0.380316823720932, -0.006736356765031815, -0.33732613921165466, -0.19399550557136536, -0.17037765681743622, 0.25079146027565, 0.05011161416769028, 0.18680283427238464, 0.050831668078899384, 0.38230448961257935, -0.10715791583061218, -0.09064248204231262, 0.09241554141044617, -0.06057259440422058, -0.06679600477218628, -0.30331048369407654, -0.47385117411613464, 0.2723347246646881, 0.028441905975341797, 0.014972224831581116, 0.08201935887336731, 0.04589450731873512, -0.3111841380596161, 0.06137080490589142, 0.4502478241920471, 0.989497721195221, 0.30587297677993774, -0.09528003633022308, 0.044641364365816116, -0.3480510115623474, 0.058490216732025146, -0.6109122633934021, 0.04030377417802811, -0.2546410858631134, 0.09248705208301544, -0.2391379028558731, -0.021122734993696213, 0.40439027547836304, 0.4455535411834717, -0.33715134859085083, -0.15508601069450378, 0.24256880581378937, 0.21113969385623932, -0.013787124305963516, 0.4585508704185486, -0.01975727267563343, -0.12314645946025848, -0.1114850789308548, 0.2072964757680893, -0.15837401151657104, -0.22546792030334473, 0.045432087033987045, -0.2351304590702057, -0.17400498688220978, -0.30528271198272705, -0.3945038318634033, -0.0956745445728302, -0.0955362468957901, -0.10312861949205399, 0.314120352268219, -0.35593533515930176, 0.557654619216919, -0.14042523503303528, -0.003947757184505463, 0.3466304540634155, -0.32617565989494324, 0.29457613825798035, 0.040690526366233826, -0.07026561349630356, -0.2538524568080902, -0.16557176411151886, 0.41474637389183044, -0.07962666451931, 0.060507632791996, -0.013655692338943481, -0.18851052224636078, -0.10737301409244537, 0.26087915897369385, 0.08368150144815445, 0.1162855252623558, -0.4384618401527405, 0.08069445192813873, 0.2505485713481903, -0.3149406909942627, -0.11131899058818817, 0.20384788513183594, 0.262350469827652, -0.41306257247924805, -0.10014898329973221, 0.1106916069984436, -0.1397789716720581, 0.1687115579843521, -0.029680609703063965, 0.06368043273687363, -0.3783923387527466, 0.23507171869277954, 0.13624240458011627, -0.38587355613708496, -0.45712271332740784, -0.2328079342842102, 0.46148040890693665, 0.2571079432964325, -0.16569463908672333, -0.18830710649490356, -0.34491485357284546, 0.15837526321411133, 0.06316318362951279, 0.24263761937618256, 0.22274109721183777, 0.05583181604743004, -0.4421909749507904, -0.19179517030715942, 0.11268414556980133, -0.18956422805786133, 0.11571231484413147, -0.3522947132587433, 0.1453697830438614, -0.1540728658437729, 0.46173331141471863, -0.41619473695755005, -0.11046016961336136, -0.0747452899813652, 0.07155157625675201, 0.2448565661907196, -0.2016998529434204, -0.20091068744659424, -0.09280076622962952, 0.18505792319774628, 0.28127413988113403, -0.3414607346057892, -0.2783629596233368, -0.10919564962387085, 0.04996362328529358, 0.2922757863998413, 0.24378779530525208, 0.009705199860036373, 0.26137930154800415, -0.21491017937660217, -0.232205331325531, -0.18118178844451904, -0.21438679099082947, 0.06499963253736496, 0.2757204473018646, 0.28056538105010986, 0.17167730629444122, -0.16106051206588745, -0.3141649067401886, -0.1897066831588745, 0.27315908670425415, -0.08822090923786163, -0.13618731498718262, 0.058925315737724304, 0.02605488896369934, 0.0998791977763176, 0.38201823830604553, 0.4516848921775818, -0.006533682346343994, 0.4076753854751587, -0.03156374394893646, -0.049441348761320114, 0.21561434864997864, 0.053439900279045105, 0.5263511538505554, -0.20606105029582977, 0.04576878994703293, -0.0004257187247276306, 0.2759711444377899, 0.04691682755947113, 0.1582268327474594, 0.14627446234226227, -0.1524493396282196, 0.10433048009872437, 0.23138201236724854, -0.04778943955898285, 0.15559141337871552, -0.0316297709941864, 0.31517308950424194, 0.4057631492614746, -0.0928855687379837, 0.2152998447418213, 0.22404441237449646, -0.2572307288646698, -0.21136559545993805, 0.32809746265411377, 0.17385776340961456, 0.3070858418941498, 0.2317868173122406, 0.22631463408470154, 0.2809487581253052, 0.4163462221622467, 0.21164250373840332, -0.2160971462726593, -0.11871393024921417, 0.2858908772468567, 0.4409613311290741, 0.14439545571804047, 0.01677507907152176, 0.28947606682777405, -0.3281685709953308, 0.33186250925064087, -0.003574811387807131, 0.05231020599603653, 0.2429804652929306, -0.13306456804275513, 0.09906166791915894, -0.07942710071802139, -0.11177355796098709, -0.24518175423145294, -0.2747117280960083, 0.09447664022445679, -0.2858782410621643, -0.03318828344345093, -0.14127926528453827, -0.15742503106594086, -0.14862608909606934, 0.008063087239861488, -0.045062147080898285, 0.2656489610671997, -0.531337320804596, 0.12649548053741455, 0.13838697969913483, -0.052632056176662445, 0.14626841247081757, -0.137953981757164, 0.2984483242034912, 0.2306843250989914, -0.1587613821029663, 0.10238434374332428, -0.34751468896865845, -0.47992825508117676, 0.13820643723011017, 0.3155311942100525, 0.06852388381958008, 0.08473032712936401, 0.33213213086128235, 0.25644832849502563, -0.1954057663679123, -0.13002640008926392, 0.017548929899930954, -0.06793393194675446, -0.06354477256536484, 0.041683394461870193, 0.24282920360565186, -0.2581382393836975, -0.20602786540985107, -0.23073101043701172, -0.4034236669540405, -0.37011072039604187, 0.099031463265419, 0.08180967718362808, 0.23330694437026978, -0.09293314814567566, 0.12780418992042542, 0.31755581498146057, 0.13910996913909912, 0.21170833706855774, 0.05761365592479706, -0.10722135752439499, -0.2944210171699524, -0.3802275061607361, -0.08125507086515427, -0.18714354932308197, -0.34035396575927734, -0.02866937965154648, 0.12091726064682007, 0.2569708228111267, 0.4090837240219116, -0.19256769120693207, 0.07502925395965576, 0.18358607590198517, 0.26242053508758545, -0.16372345387935638, 0.07118155062198639, 0.3987107276916504, -0.005884118378162384, 0.14723077416419983, 0.06101003289222717, -0.036473456770181656, 0.18546810746192932, 0.1999574601650238, -0.08763773739337921, 0.08378131687641144, -0.007786761969327927, 0.23974159359931946, 0.2052232027053833, 0.024818740785121918, 0.34266167879104614, -0.22307458519935608, -0.1534397304058075, 0.14188064634799957, 0.3161235749721527, 0.058264780789613724, 0.4063868224620819, 0.1564667820930481, 0.5133110284805298, 0.047327376902103424, 0.006307870149612427, -0.2425059676170349, -0.09803498536348343, -0.09080124646425247, -0.21286515891551971, -0.6478087902069092, 0.1315714716911316, 0.0626140758395195, 0.1702558845281601, -0.2607923150062561, -0.24034783244132996, 0.053939901292324066, -0.048728492110967636, -0.2779194712638855, -0.4708806276321411, 0.2743675410747528, 0.024356111884117126, -0.4496534764766693, -0.16965971887111664, 0.16451114416122437, 0.0007475093007087708, 0.28233563899993896, -0.7982839345932007, -0.010401330888271332, 0.4095080494880676, -0.10528764873743057, -0.1517000049352646, 0.038865283131599426, 0.02745947800576687, -0.14807800948619843, -0.11255009472370148, 0.24126681685447693, 0.11861192435026169, -0.04071949049830437, -0.2710612118244171, -0.2115236520767212 ]
https://github.com/huggingface/datasets/pull/2121
Add Validation For README
Hi @lhoestq I have added changes accordingly. I prepared a list which stores all the errors and raises them at the end. I'm not sure if there is a better way.
Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan
31
text: Add Validation For README Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan Hi @lhoestq I have added changes accordingly. I prepared a list which stores all the errors and raises them at the end. I'm not sure if there is a better way.
[ -0.062220145016908646, 0.1453738808631897, -0.1334857940673828, 0.24961628019809723, 0.2254566252231598, 0.2698098123073578, 0.18070510029792786, 0.39705872535705566, 0.1556602567434311, -0.05715087056159973, 0.09762268513441086, 0.27325108647346497, -0.14209480583667755, -0.05973687767982483, -0.22095350921154022, 0.027295557782053947, 0.046654436737298965, 0.0836859866976738, 0.10413768142461777, -0.1497908979654312, -0.011771652847528458, 0.22533047199249268, 0.008201032876968384, 0.011668838560581207, 0.17776642739772797, -0.098935566842556, 0.20812280476093292, -0.04371263086795807, -0.5918548703193665, -0.4672010540962219, 0.17680487036705017, 0.03675317019224167, -0.33186861872673035, 0.1315297782421112, -0.000105837250885088, -0.08187699317932129, 0.14413917064666748, -0.0048612505197525024, -0.036721162497997284, -0.2674272060394287, -0.21669545769691467, 0.08665703982114792, -0.038047581911087036, -0.12795275449752808, -0.051646240055561066, -0.14305026829242706, -0.18197192251682281, -0.1836794912815094, 0.5622107982635498, 0.40971139073371887, 0.20119021832942963, -0.5221631526947021, 0.1337578147649765, 0.0849897488951683, 0.23652473092079163, 0.41343802213668823, 0.03404192626476288, 0.01629919931292534, 0.25599730014801025, 0.23243306577205658, -0.02148071676492691, 0.5193160772323608, -0.18719837069511414, -0.023369107395410538, 0.2915549576282501, -0.1446523666381836, 0.3426592946052551, -0.183702290058136, 0.14684748649597168, 0.25377488136291504, 0.7058746814727783, -0.2441769242286682, -0.03342004865407944, -0.32688039541244507, -0.3478306233882904, 0.11575402319431305, -0.07530312985181808, 0.05971083790063858, 0.06573279201984406, 0.3640945553779602, -0.010617021471261978, -0.10240369290113449, -0.17683859169483185, -0.006738699972629547, -0.012445002794265747, 0.5645154714584351, -0.14826767146587372, -0.16649606823921204, 0.20272083580493927, -0.12670786678791046, -0.02809068188071251, -0.06672872602939606, -0.41096097230911255, 0.12627390027046204, 0.13003157079219818, -0.4389002323150635, 0.03395744785666466, -0.37247511744499207, 0.3041967749595642, 0.1934918314218521, -0.08706611394882202, 0.2732134163379669, 0.08986655622720718, 0.27807778120040894, 0.3210962116718292, -0.011705581098794937, 0.372115820646286, 0.4393428564071655, -0.08319894969463348, 0.024861084297299385, 0.15250903367996216, -0.09469770640134811, -0.03755075857043266, 0.2574442923069, 0.10363994538784027, 0.1902109682559967, 0.0108400359749794, -0.4078061580657959, -0.17307357490062714, 0.2898893654346466, -0.07566296309232712, -0.3063163757324219, 0.003271169029176235, 0.4401112198829651, 0.03680207207798958, 0.1541440635919571, 0.06786933541297913, 0.04801227152347565, 0.05260073393583298, -0.08707039803266525, -0.12626370787620544, 0.42046353220939636, -0.02275390923023224, -0.1182541772723198, 0.13888369500637054, 0.1505070924758911, -0.008338945917785168, -0.1784294694662094, -0.21130214631557465, -0.5156262516975403, 0.1009392961859703, -0.17482981085777283, 0.5397642254829407, 0.020850330591201782, -0.31506896018981934, 0.07230153679847717, 0.23631425201892853, -0.4557652473449707, -0.2822198271751404, 0.09469212591648102, -0.41236740350723267, -0.2070118486881256, -0.09632818400859833, 0.3105356693267822, -0.05545753240585327, 0.0026805363595485687, -0.23852986097335815, 0.3484346270561218, 0.2606240510940552, -0.13756009936332703, 0.1658879518508911, 0.1562100499868393, -0.148212730884552, -0.11700630187988281, -0.032593317329883575, 0.2528995871543884, -0.17594964802265167, -0.02729509025812149, -0.22996318340301514, -0.125409796833992, -0.06298550218343735, 0.048190392553806305, -0.10024291276931763, 0.4487791359424591, -0.039892036467790604, 0.4614870548248291, 0.6218039989471436, -0.49660104513168335, -0.2050483077764511, 0.3639084994792938, -0.09923753142356873, -0.02785533107817173, 0.2716364562511444, -0.20378564298152924, 0.2607461214065552, -0.21103812754154205, -0.03150828182697296, -0.02898295596241951, 0.09623221307992935, 0.006301911547780037, -0.09586121141910553, 0.038073085248470306, -0.06424687802791595, 0.2324054092168808, -0.0665118396282196, -0.30449995398521423, 0.14818459749221802, -0.12121115624904633, 0.45462581515312195, -0.2603372633457184, 0.17461805045604706, 0.19516772031784058, 0.6494988203048706, -0.06303104758262634, 0.09778819978237152, -0.3720415532588959, -0.0354355126619339, -0.11298806220293045, 0.42360642552375793, -0.010642260313034058, -0.003677971661090851, -0.09147223830223083, -0.37476667761802673, -0.039354268461465836, -0.30765819549560547, -0.3547999858856201, 0.2587301731109619, -0.09948670864105225, -0.024357521906495094, -0.23816680908203125, -0.2577337920665741, 0.21263009309768677, -0.17098602652549744, 0.15585742890834808, -0.3342427909374237, 0.12439101934432983, -0.19803619384765625, 0.013881049118936062, -0.0799378976225853, 0.1778881996870041, 0.037198256701231, -0.09430748224258423, 0.10701843351125717, 0.14108559489250183, 0.43564245104789734, -0.09973526000976562, -0.2852849066257477, 0.28076162934303284, 0.0008717402815818787, -0.2700980007648468, 0.07877396792173386, -0.1181076318025589, 0.05943237990140915, -0.12797848880290985, -0.3351447582244873, 0.3062768876552582, 0.34755587577819824, 0.06814155727624893, -0.14467814564704895, -0.2532750070095062, 0.10530412197113037, -0.16489578783512115, -0.16799187660217285, -0.38588976860046387, -0.049262385815382004, 0.04968325048685074, -0.15022796392440796, -0.032936953008174896, 0.15119266510009766, 0.008145526051521301, 0.46615150570869446, -0.03392429277300835, 0.07919236272573471, 0.1155640110373497, -0.07941380888223648, -0.08957711607217789, -0.038711048662662506, 0.411126971244812, -0.024577125906944275, 0.16570881009101868, 0.08118166029453278, 0.06497986614704132, 0.044056858867406845, 0.004239343106746674, 0.14163827896118164, -0.019781507551670074, 0.32012590765953064, 0.394845187664032, -0.07111404091119766, 0.13942421972751617, -0.2101961374282837, -0.20172297954559326, -0.07984213531017303, 0.11843810230493546, -0.3281734883785248, 0.26935988664627075, -0.09120288491249084, 0.30300387740135193, -0.029983792454004288, -0.21735532581806183, 0.04240097105503082, -0.3174941837787628, 0.01633472926914692, 0.030830051749944687, -0.11789429187774658, -0.08514828234910965, -0.07955218851566315, 0.10701598227024078, -0.023881636559963226, 0.052160024642944336, -0.24127770960330963, -0.31932365894317627, -0.07421840727329254, 0.17507614195346832, 0.13528361916542053, 0.2279454469680786, 0.16021747887134552, -0.20039571821689606, 0.039258137345314026, 0.09058176726102829, -0.5231971144676208, 0.1725783348083496, -0.15838180482387543, 0.18457166850566864, 0.14868813753128052, 0.18331089615821838, 0.1474488526582718, -0.19422759115695953, 0.02995353192090988, 0.11170630156993866, -0.35287752747535706, 0.05759649723768234, 0.0717083290219307, -0.13241048157215118, -0.058862704783678055, -0.3451214134693146, -0.025874866172671318, -0.22763855755329132, 0.3535920977592468, 0.013689093291759491, 0.2765697240829468, 0.1613883525133133, 0.03691629320383072, -0.02960427850484848, -0.31044942140579224, 0.44298192858695984, -0.27986517548561096, -0.2367476522922516, 0.5191361904144287, -0.024855975061655045, -0.07120770215988159, 0.24193722009658813, -0.0713316947221756, 0.2528459131717682, -0.1305142641067505, -0.2531728744506836, -0.06244479492306709, 0.08748673647642136, -0.14935685694217682, -0.08575665950775146, -0.20792900025844574, 0.23403942584991455, 0.36288878321647644, -0.13709627091884613, -0.10166849195957184, -0.1633133441209793, 0.07035353034734726, -0.00760878250002861, 0.12434586137533188, -0.30668389797210693, 0.20309802889823914, 0.30429694056510925, 0.11456617712974548, -0.05997819826006889, -0.029206257313489914, -0.08685190975666046, 0.3506316542625427, 0.05409272387623787, 0.3228210508823395, -0.3661712110042572, 0.206746444106102, -0.017224133014678955, -0.1142391711473465, 0.2597101628780365, -0.15546825528144836, -0.06499096751213074, -0.22114740312099457, 0.1382533311843872, -0.41605740785598755, -0.2896616756916046, 0.18607042729854584, 0.08249890804290771, 0.029389724135398865, -0.17806832492351532, 0.4227427840232849, 0.09017576277256012, 0.08013969659805298, 0.23670022189617157, 0.574912428855896, -0.07201600819826126, -0.030468937009572983, -0.21656309068202972, -0.20247408747673035, 0.013196155428886414, 0.04437660425901413, 0.10083822160959244, -0.07134444266557693, -0.0009073764085769653, -0.020230460911989212, -0.15337438881397247, -0.3785537779331207, 0.14669831097126007, -0.3548630475997925, 0.12843522429466248, 0.12941356003284454, 0.128298819065094, 0.4117496609687805, 0.07618226110935211, -0.13436686992645264, -0.23829025030136108, 0.10690948367118835, 0.05296242982149124, -0.647280216217041, -0.1271098107099533, 0.1809268742799759, -0.3405722379684448, -0.008881144225597382, -0.32224273681640625, 0.05661306902766228, -0.15656539797782898, -0.4801022410392761, 0.14909471571445465, 0.24683095514774323, 0.0596323125064373, 0.1336967498064041, -0.09490175545215607, 0.15290221571922302, -0.0322016142308712, 0.3901042342185974, 0.08752128481864929, 0.023292088881134987, -0.16541419923305511, -0.12500987946987152, -0.13621997833251953, -0.02298855036497116, 0.584050714969635, 0.380316823720932, -0.006736356765031815, -0.33732613921165466, -0.19399550557136536, -0.17037765681743622, 0.25079146027565, 0.05011161416769028, 0.18680283427238464, 0.050831668078899384, 0.38230448961257935, -0.10715791583061218, -0.09064248204231262, 0.09241554141044617, -0.06057259440422058, -0.06679600477218628, -0.30331048369407654, -0.47385117411613464, 0.2723347246646881, 0.028441905975341797, 0.014972224831581116, 0.08201935887336731, 0.04589450731873512, -0.3111841380596161, 0.06137080490589142, 0.4502478241920471, 0.989497721195221, 0.30587297677993774, -0.09528003633022308, 0.044641364365816116, -0.3480510115623474, 0.058490216732025146, -0.6109122633934021, 0.04030377417802811, -0.2546410858631134, 0.09248705208301544, -0.2391379028558731, -0.021122734993696213, 0.40439027547836304, 0.4455535411834717, -0.33715134859085083, -0.15508601069450378, 0.24256880581378937, 0.21113969385623932, -0.013787124305963516, 0.4585508704185486, -0.01975727267563343, -0.12314645946025848, -0.1114850789308548, 0.2072964757680893, -0.15837401151657104, -0.22546792030334473, 0.045432087033987045, -0.2351304590702057, -0.17400498688220978, -0.30528271198272705, -0.3945038318634033, -0.0956745445728302, -0.0955362468957901, -0.10312861949205399, 0.314120352268219, -0.35593533515930176, 0.557654619216919, -0.14042523503303528, -0.003947757184505463, 0.3466304540634155, -0.32617565989494324, 0.29457613825798035, 0.040690526366233826, -0.07026561349630356, -0.2538524568080902, -0.16557176411151886, 0.41474637389183044, -0.07962666451931, 0.060507632791996, -0.013655692338943481, -0.18851052224636078, -0.10737301409244537, 0.26087915897369385, 0.08368150144815445, 0.1162855252623558, -0.4384618401527405, 0.08069445192813873, 0.2505485713481903, -0.3149406909942627, -0.11131899058818817, 0.20384788513183594, 0.262350469827652, -0.41306257247924805, -0.10014898329973221, 0.1106916069984436, -0.1397789716720581, 0.1687115579843521, -0.029680609703063965, 0.06368043273687363, -0.3783923387527466, 0.23507171869277954, 0.13624240458011627, -0.38587355613708496, -0.45712271332740784, -0.2328079342842102, 0.46148040890693665, 0.2571079432964325, -0.16569463908672333, -0.18830710649490356, -0.34491485357284546, 0.15837526321411133, 0.06316318362951279, 0.24263761937618256, 0.22274109721183777, 0.05583181604743004, -0.4421909749507904, -0.19179517030715942, 0.11268414556980133, -0.18956422805786133, 0.11571231484413147, -0.3522947132587433, 0.1453697830438614, -0.1540728658437729, 0.46173331141471863, -0.41619473695755005, -0.11046016961336136, -0.0747452899813652, 0.07155157625675201, 0.2448565661907196, -0.2016998529434204, -0.20091068744659424, -0.09280076622962952, 0.18505792319774628, 0.28127413988113403, -0.3414607346057892, -0.2783629596233368, -0.10919564962387085, 0.04996362328529358, 0.2922757863998413, 0.24378779530525208, 0.009705199860036373, 0.26137930154800415, -0.21491017937660217, -0.232205331325531, -0.18118178844451904, -0.21438679099082947, 0.06499963253736496, 0.2757204473018646, 0.28056538105010986, 0.17167730629444122, -0.16106051206588745, -0.3141649067401886, -0.1897066831588745, 0.27315908670425415, -0.08822090923786163, -0.13618731498718262, 0.058925315737724304, 0.02605488896369934, 0.0998791977763176, 0.38201823830604553, 0.4516848921775818, -0.006533682346343994, 0.4076753854751587, -0.03156374394893646, -0.049441348761320114, 0.21561434864997864, 0.053439900279045105, 0.5263511538505554, -0.20606105029582977, 0.04576878994703293, -0.0004257187247276306, 0.2759711444377899, 0.04691682755947113, 0.1582268327474594, 0.14627446234226227, -0.1524493396282196, 0.10433048009872437, 0.23138201236724854, -0.04778943955898285, 0.15559141337871552, -0.0316297709941864, 0.31517308950424194, 0.4057631492614746, -0.0928855687379837, 0.2152998447418213, 0.22404441237449646, -0.2572307288646698, -0.21136559545993805, 0.32809746265411377, 0.17385776340961456, 0.3070858418941498, 0.2317868173122406, 0.22631463408470154, 0.2809487581253052, 0.4163462221622467, 0.21164250373840332, -0.2160971462726593, -0.11871393024921417, 0.2858908772468567, 0.4409613311290741, 0.14439545571804047, 0.01677507907152176, 0.28947606682777405, -0.3281685709953308, 0.33186250925064087, -0.003574811387807131, 0.05231020599603653, 0.2429804652929306, -0.13306456804275513, 0.09906166791915894, -0.07942710071802139, -0.11177355796098709, -0.24518175423145294, -0.2747117280960083, 0.09447664022445679, -0.2858782410621643, -0.03318828344345093, -0.14127926528453827, -0.15742503106594086, -0.14862608909606934, 0.008063087239861488, -0.045062147080898285, 0.2656489610671997, -0.531337320804596, 0.12649548053741455, 0.13838697969913483, -0.052632056176662445, 0.14626841247081757, -0.137953981757164, 0.2984483242034912, 0.2306843250989914, -0.1587613821029663, 0.10238434374332428, -0.34751468896865845, -0.47992825508117676, 0.13820643723011017, 0.3155311942100525, 0.06852388381958008, 0.08473032712936401, 0.33213213086128235, 0.25644832849502563, -0.1954057663679123, -0.13002640008926392, 0.017548929899930954, -0.06793393194675446, -0.06354477256536484, 0.041683394461870193, 0.24282920360565186, -0.2581382393836975, -0.20602786540985107, -0.23073101043701172, -0.4034236669540405, -0.37011072039604187, 0.099031463265419, 0.08180967718362808, 0.23330694437026978, -0.09293314814567566, 0.12780418992042542, 0.31755581498146057, 0.13910996913909912, 0.21170833706855774, 0.05761365592479706, -0.10722135752439499, -0.2944210171699524, -0.3802275061607361, -0.08125507086515427, -0.18714354932308197, -0.34035396575927734, -0.02866937965154648, 0.12091726064682007, 0.2569708228111267, 0.4090837240219116, -0.19256769120693207, 0.07502925395965576, 0.18358607590198517, 0.26242053508758545, -0.16372345387935638, 0.07118155062198639, 0.3987107276916504, -0.005884118378162384, 0.14723077416419983, 0.06101003289222717, -0.036473456770181656, 0.18546810746192932, 0.1999574601650238, -0.08763773739337921, 0.08378131687641144, -0.007786761969327927, 0.23974159359931946, 0.2052232027053833, 0.024818740785121918, 0.34266167879104614, -0.22307458519935608, -0.1534397304058075, 0.14188064634799957, 0.3161235749721527, 0.058264780789613724, 0.4063868224620819, 0.1564667820930481, 0.5133110284805298, 0.047327376902103424, 0.006307870149612427, -0.2425059676170349, -0.09803498536348343, -0.09080124646425247, -0.21286515891551971, -0.6478087902069092, 0.1315714716911316, 0.0626140758395195, 0.1702558845281601, -0.2607923150062561, -0.24034783244132996, 0.053939901292324066, -0.048728492110967636, -0.2779194712638855, -0.4708806276321411, 0.2743675410747528, 0.024356111884117126, -0.4496534764766693, -0.16965971887111664, 0.16451114416122437, 0.0007475093007087708, 0.28233563899993896, -0.7982839345932007, -0.010401330888271332, 0.4095080494880676, -0.10528764873743057, -0.1517000049352646, 0.038865283131599426, 0.02745947800576687, -0.14807800948619843, -0.11255009472370148, 0.24126681685447693, 0.11861192435026169, -0.04071949049830437, -0.2710612118244171, -0.2115236520767212 ]
https://github.com/huggingface/datasets/pull/2121
Add Validation For README
Hi @lhoestq I have added some basic tests, also have restructured `ReadMe` class slightly. There is one print statement currently, I'm not sure how to remove it. Basically, I want to warn but not stop further validation. I can't append to a list because the `error_list` and `warning_list` are both only present in `validate` method, and this print is present in the `parse` method. This is done when someone has repeated a section multiple times. For e.g.: ```markdown --- --- # Dataset Card for FashionMNIST ## Dataset Description ## Dataset Description ``` In this case, I check for validation only in the latest entry. I can also raise an error (ideal case scenario), but still, it is in the `parse`. Should I add `error_lines` and `warning_lines` as instance variables? That would probably solve the issue. In tests, I'm using a dummy YAML string for structure, we can also make it into a file but I feel that is not a hard requirement. Let me know your thoughts. I will add tests for `from_readme` as well. However, I would love to be able to check the exact message in the test when an error is raised. I checked a couple of methods but couldn't get it working. Let me know if you're aware of a way to do that.
Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan
218
text: Add Validation For README Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan Hi @lhoestq I have added some basic tests, also have restructured `ReadMe` class slightly. There is one print statement currently, I'm not sure how to remove it. Basically, I want to warn but not stop further validation. I can't append to a list because the `error_list` and `warning_list` are both only present in `validate` method, and this print is present in the `parse` method. This is done when someone has repeated a section multiple times. For e.g.: ```markdown --- --- # Dataset Card for FashionMNIST ## Dataset Description ## Dataset Description ``` In this case, I check for validation only in the latest entry. I can also raise an error (ideal case scenario), but still, it is in the `parse`. Should I add `error_lines` and `warning_lines` as instance variables? That would probably solve the issue. In tests, I'm using a dummy YAML string for structure, we can also make it into a file but I feel that is not a hard requirement. Let me know your thoughts. I will add tests for `from_readme` as well. However, I would love to be able to check the exact message in the test when an error is raised. I checked a couple of methods but couldn't get it working. Let me know if you're aware of a way to do that.
[ -0.062220145016908646, 0.1453738808631897, -0.1334857940673828, 0.24961628019809723, 0.2254566252231598, 0.2698098123073578, 0.18070510029792786, 0.39705872535705566, 0.1556602567434311, -0.05715087056159973, 0.09762268513441086, 0.27325108647346497, -0.14209480583667755, -0.05973687767982483, -0.22095350921154022, 0.027295557782053947, 0.046654436737298965, 0.0836859866976738, 0.10413768142461777, -0.1497908979654312, -0.011771652847528458, 0.22533047199249268, 0.008201032876968384, 0.011668838560581207, 0.17776642739772797, -0.098935566842556, 0.20812280476093292, -0.04371263086795807, -0.5918548703193665, -0.4672010540962219, 0.17680487036705017, 0.03675317019224167, -0.33186861872673035, 0.1315297782421112, -0.000105837250885088, -0.08187699317932129, 0.14413917064666748, -0.0048612505197525024, -0.036721162497997284, -0.2674272060394287, -0.21669545769691467, 0.08665703982114792, -0.038047581911087036, -0.12795275449752808, -0.051646240055561066, -0.14305026829242706, -0.18197192251682281, -0.1836794912815094, 0.5622107982635498, 0.40971139073371887, 0.20119021832942963, -0.5221631526947021, 0.1337578147649765, 0.0849897488951683, 0.23652473092079163, 0.41343802213668823, 0.03404192626476288, 0.01629919931292534, 0.25599730014801025, 0.23243306577205658, -0.02148071676492691, 0.5193160772323608, -0.18719837069511414, -0.023369107395410538, 0.2915549576282501, -0.1446523666381836, 0.3426592946052551, -0.183702290058136, 0.14684748649597168, 0.25377488136291504, 0.7058746814727783, -0.2441769242286682, -0.03342004865407944, -0.32688039541244507, -0.3478306233882904, 0.11575402319431305, -0.07530312985181808, 0.05971083790063858, 0.06573279201984406, 0.3640945553779602, -0.010617021471261978, -0.10240369290113449, -0.17683859169483185, -0.006738699972629547, -0.012445002794265747, 0.5645154714584351, -0.14826767146587372, -0.16649606823921204, 0.20272083580493927, -0.12670786678791046, -0.02809068188071251, -0.06672872602939606, -0.41096097230911255, 0.12627390027046204, 0.13003157079219818, -0.4389002323150635, 0.03395744785666466, -0.37247511744499207, 0.3041967749595642, 0.1934918314218521, -0.08706611394882202, 0.2732134163379669, 0.08986655622720718, 0.27807778120040894, 0.3210962116718292, -0.011705581098794937, 0.372115820646286, 0.4393428564071655, -0.08319894969463348, 0.024861084297299385, 0.15250903367996216, -0.09469770640134811, -0.03755075857043266, 0.2574442923069, 0.10363994538784027, 0.1902109682559967, 0.0108400359749794, -0.4078061580657959, -0.17307357490062714, 0.2898893654346466, -0.07566296309232712, -0.3063163757324219, 0.003271169029176235, 0.4401112198829651, 0.03680207207798958, 0.1541440635919571, 0.06786933541297913, 0.04801227152347565, 0.05260073393583298, -0.08707039803266525, -0.12626370787620544, 0.42046353220939636, -0.02275390923023224, -0.1182541772723198, 0.13888369500637054, 0.1505070924758911, -0.008338945917785168, -0.1784294694662094, -0.21130214631557465, -0.5156262516975403, 0.1009392961859703, -0.17482981085777283, 0.5397642254829407, 0.020850330591201782, -0.31506896018981934, 0.07230153679847717, 0.23631425201892853, -0.4557652473449707, -0.2822198271751404, 0.09469212591648102, -0.41236740350723267, -0.2070118486881256, -0.09632818400859833, 0.3105356693267822, -0.05545753240585327, 0.0026805363595485687, -0.23852986097335815, 0.3484346270561218, 0.2606240510940552, -0.13756009936332703, 0.1658879518508911, 0.1562100499868393, -0.148212730884552, -0.11700630187988281, -0.032593317329883575, 0.2528995871543884, -0.17594964802265167, -0.02729509025812149, -0.22996318340301514, -0.125409796833992, -0.06298550218343735, 0.048190392553806305, -0.10024291276931763, 0.4487791359424591, -0.039892036467790604, 0.4614870548248291, 0.6218039989471436, -0.49660104513168335, -0.2050483077764511, 0.3639084994792938, -0.09923753142356873, -0.02785533107817173, 0.2716364562511444, -0.20378564298152924, 0.2607461214065552, -0.21103812754154205, -0.03150828182697296, -0.02898295596241951, 0.09623221307992935, 0.006301911547780037, -0.09586121141910553, 0.038073085248470306, -0.06424687802791595, 0.2324054092168808, -0.0665118396282196, -0.30449995398521423, 0.14818459749221802, -0.12121115624904633, 0.45462581515312195, -0.2603372633457184, 0.17461805045604706, 0.19516772031784058, 0.6494988203048706, -0.06303104758262634, 0.09778819978237152, -0.3720415532588959, -0.0354355126619339, -0.11298806220293045, 0.42360642552375793, -0.010642260313034058, -0.003677971661090851, -0.09147223830223083, -0.37476667761802673, -0.039354268461465836, -0.30765819549560547, -0.3547999858856201, 0.2587301731109619, -0.09948670864105225, -0.024357521906495094, -0.23816680908203125, -0.2577337920665741, 0.21263009309768677, -0.17098602652549744, 0.15585742890834808, -0.3342427909374237, 0.12439101934432983, -0.19803619384765625, 0.013881049118936062, -0.0799378976225853, 0.1778881996870041, 0.037198256701231, -0.09430748224258423, 0.10701843351125717, 0.14108559489250183, 0.43564245104789734, -0.09973526000976562, -0.2852849066257477, 0.28076162934303284, 0.0008717402815818787, -0.2700980007648468, 0.07877396792173386, -0.1181076318025589, 0.05943237990140915, -0.12797848880290985, -0.3351447582244873, 0.3062768876552582, 0.34755587577819824, 0.06814155727624893, -0.14467814564704895, -0.2532750070095062, 0.10530412197113037, -0.16489578783512115, -0.16799187660217285, -0.38588976860046387, -0.049262385815382004, 0.04968325048685074, -0.15022796392440796, -0.032936953008174896, 0.15119266510009766, 0.008145526051521301, 0.46615150570869446, -0.03392429277300835, 0.07919236272573471, 0.1155640110373497, -0.07941380888223648, -0.08957711607217789, -0.038711048662662506, 0.411126971244812, -0.024577125906944275, 0.16570881009101868, 0.08118166029453278, 0.06497986614704132, 0.044056858867406845, 0.004239343106746674, 0.14163827896118164, -0.019781507551670074, 0.32012590765953064, 0.394845187664032, -0.07111404091119766, 0.13942421972751617, -0.2101961374282837, -0.20172297954559326, -0.07984213531017303, 0.11843810230493546, -0.3281734883785248, 0.26935988664627075, -0.09120288491249084, 0.30300387740135193, -0.029983792454004288, -0.21735532581806183, 0.04240097105503082, -0.3174941837787628, 0.01633472926914692, 0.030830051749944687, -0.11789429187774658, -0.08514828234910965, -0.07955218851566315, 0.10701598227024078, -0.023881636559963226, 0.052160024642944336, -0.24127770960330963, -0.31932365894317627, -0.07421840727329254, 0.17507614195346832, 0.13528361916542053, 0.2279454469680786, 0.16021747887134552, -0.20039571821689606, 0.039258137345314026, 0.09058176726102829, -0.5231971144676208, 0.1725783348083496, -0.15838180482387543, 0.18457166850566864, 0.14868813753128052, 0.18331089615821838, 0.1474488526582718, -0.19422759115695953, 0.02995353192090988, 0.11170630156993866, -0.35287752747535706, 0.05759649723768234, 0.0717083290219307, -0.13241048157215118, -0.058862704783678055, -0.3451214134693146, -0.025874866172671318, -0.22763855755329132, 0.3535920977592468, 0.013689093291759491, 0.2765697240829468, 0.1613883525133133, 0.03691629320383072, -0.02960427850484848, -0.31044942140579224, 0.44298192858695984, -0.27986517548561096, -0.2367476522922516, 0.5191361904144287, -0.024855975061655045, -0.07120770215988159, 0.24193722009658813, -0.0713316947221756, 0.2528459131717682, -0.1305142641067505, -0.2531728744506836, -0.06244479492306709, 0.08748673647642136, -0.14935685694217682, -0.08575665950775146, -0.20792900025844574, 0.23403942584991455, 0.36288878321647644, -0.13709627091884613, -0.10166849195957184, -0.1633133441209793, 0.07035353034734726, -0.00760878250002861, 0.12434586137533188, -0.30668389797210693, 0.20309802889823914, 0.30429694056510925, 0.11456617712974548, -0.05997819826006889, -0.029206257313489914, -0.08685190975666046, 0.3506316542625427, 0.05409272387623787, 0.3228210508823395, -0.3661712110042572, 0.206746444106102, -0.017224133014678955, -0.1142391711473465, 0.2597101628780365, -0.15546825528144836, -0.06499096751213074, -0.22114740312099457, 0.1382533311843872, -0.41605740785598755, -0.2896616756916046, 0.18607042729854584, 0.08249890804290771, 0.029389724135398865, -0.17806832492351532, 0.4227427840232849, 0.09017576277256012, 0.08013969659805298, 0.23670022189617157, 0.574912428855896, -0.07201600819826126, -0.030468937009572983, -0.21656309068202972, -0.20247408747673035, 0.013196155428886414, 0.04437660425901413, 0.10083822160959244, -0.07134444266557693, -0.0009073764085769653, -0.020230460911989212, -0.15337438881397247, -0.3785537779331207, 0.14669831097126007, -0.3548630475997925, 0.12843522429466248, 0.12941356003284454, 0.128298819065094, 0.4117496609687805, 0.07618226110935211, -0.13436686992645264, -0.23829025030136108, 0.10690948367118835, 0.05296242982149124, -0.647280216217041, -0.1271098107099533, 0.1809268742799759, -0.3405722379684448, -0.008881144225597382, -0.32224273681640625, 0.05661306902766228, -0.15656539797782898, -0.4801022410392761, 0.14909471571445465, 0.24683095514774323, 0.0596323125064373, 0.1336967498064041, -0.09490175545215607, 0.15290221571922302, -0.0322016142308712, 0.3901042342185974, 0.08752128481864929, 0.023292088881134987, -0.16541419923305511, -0.12500987946987152, -0.13621997833251953, -0.02298855036497116, 0.584050714969635, 0.380316823720932, -0.006736356765031815, -0.33732613921165466, -0.19399550557136536, -0.17037765681743622, 0.25079146027565, 0.05011161416769028, 0.18680283427238464, 0.050831668078899384, 0.38230448961257935, -0.10715791583061218, -0.09064248204231262, 0.09241554141044617, -0.06057259440422058, -0.06679600477218628, -0.30331048369407654, -0.47385117411613464, 0.2723347246646881, 0.028441905975341797, 0.014972224831581116, 0.08201935887336731, 0.04589450731873512, -0.3111841380596161, 0.06137080490589142, 0.4502478241920471, 0.989497721195221, 0.30587297677993774, -0.09528003633022308, 0.044641364365816116, -0.3480510115623474, 0.058490216732025146, -0.6109122633934021, 0.04030377417802811, -0.2546410858631134, 0.09248705208301544, -0.2391379028558731, -0.021122734993696213, 0.40439027547836304, 0.4455535411834717, -0.33715134859085083, -0.15508601069450378, 0.24256880581378937, 0.21113969385623932, -0.013787124305963516, 0.4585508704185486, -0.01975727267563343, -0.12314645946025848, -0.1114850789308548, 0.2072964757680893, -0.15837401151657104, -0.22546792030334473, 0.045432087033987045, -0.2351304590702057, -0.17400498688220978, -0.30528271198272705, -0.3945038318634033, -0.0956745445728302, -0.0955362468957901, -0.10312861949205399, 0.314120352268219, -0.35593533515930176, 0.557654619216919, -0.14042523503303528, -0.003947757184505463, 0.3466304540634155, -0.32617565989494324, 0.29457613825798035, 0.040690526366233826, -0.07026561349630356, -0.2538524568080902, -0.16557176411151886, 0.41474637389183044, -0.07962666451931, 0.060507632791996, -0.013655692338943481, -0.18851052224636078, -0.10737301409244537, 0.26087915897369385, 0.08368150144815445, 0.1162855252623558, -0.4384618401527405, 0.08069445192813873, 0.2505485713481903, -0.3149406909942627, -0.11131899058818817, 0.20384788513183594, 0.262350469827652, -0.41306257247924805, -0.10014898329973221, 0.1106916069984436, -0.1397789716720581, 0.1687115579843521, -0.029680609703063965, 0.06368043273687363, -0.3783923387527466, 0.23507171869277954, 0.13624240458011627, -0.38587355613708496, -0.45712271332740784, -0.2328079342842102, 0.46148040890693665, 0.2571079432964325, -0.16569463908672333, -0.18830710649490356, -0.34491485357284546, 0.15837526321411133, 0.06316318362951279, 0.24263761937618256, 0.22274109721183777, 0.05583181604743004, -0.4421909749507904, -0.19179517030715942, 0.11268414556980133, -0.18956422805786133, 0.11571231484413147, -0.3522947132587433, 0.1453697830438614, -0.1540728658437729, 0.46173331141471863, -0.41619473695755005, -0.11046016961336136, -0.0747452899813652, 0.07155157625675201, 0.2448565661907196, -0.2016998529434204, -0.20091068744659424, -0.09280076622962952, 0.18505792319774628, 0.28127413988113403, -0.3414607346057892, -0.2783629596233368, -0.10919564962387085, 0.04996362328529358, 0.2922757863998413, 0.24378779530525208, 0.009705199860036373, 0.26137930154800415, -0.21491017937660217, -0.232205331325531, -0.18118178844451904, -0.21438679099082947, 0.06499963253736496, 0.2757204473018646, 0.28056538105010986, 0.17167730629444122, -0.16106051206588745, -0.3141649067401886, -0.1897066831588745, 0.27315908670425415, -0.08822090923786163, -0.13618731498718262, 0.058925315737724304, 0.02605488896369934, 0.0998791977763176, 0.38201823830604553, 0.4516848921775818, -0.006533682346343994, 0.4076753854751587, -0.03156374394893646, -0.049441348761320114, 0.21561434864997864, 0.053439900279045105, 0.5263511538505554, -0.20606105029582977, 0.04576878994703293, -0.0004257187247276306, 0.2759711444377899, 0.04691682755947113, 0.1582268327474594, 0.14627446234226227, -0.1524493396282196, 0.10433048009872437, 0.23138201236724854, -0.04778943955898285, 0.15559141337871552, -0.0316297709941864, 0.31517308950424194, 0.4057631492614746, -0.0928855687379837, 0.2152998447418213, 0.22404441237449646, -0.2572307288646698, -0.21136559545993805, 0.32809746265411377, 0.17385776340961456, 0.3070858418941498, 0.2317868173122406, 0.22631463408470154, 0.2809487581253052, 0.4163462221622467, 0.21164250373840332, -0.2160971462726593, -0.11871393024921417, 0.2858908772468567, 0.4409613311290741, 0.14439545571804047, 0.01677507907152176, 0.28947606682777405, -0.3281685709953308, 0.33186250925064087, -0.003574811387807131, 0.05231020599603653, 0.2429804652929306, -0.13306456804275513, 0.09906166791915894, -0.07942710071802139, -0.11177355796098709, -0.24518175423145294, -0.2747117280960083, 0.09447664022445679, -0.2858782410621643, -0.03318828344345093, -0.14127926528453827, -0.15742503106594086, -0.14862608909606934, 0.008063087239861488, -0.045062147080898285, 0.2656489610671997, -0.531337320804596, 0.12649548053741455, 0.13838697969913483, -0.052632056176662445, 0.14626841247081757, -0.137953981757164, 0.2984483242034912, 0.2306843250989914, -0.1587613821029663, 0.10238434374332428, -0.34751468896865845, -0.47992825508117676, 0.13820643723011017, 0.3155311942100525, 0.06852388381958008, 0.08473032712936401, 0.33213213086128235, 0.25644832849502563, -0.1954057663679123, -0.13002640008926392, 0.017548929899930954, -0.06793393194675446, -0.06354477256536484, 0.041683394461870193, 0.24282920360565186, -0.2581382393836975, -0.20602786540985107, -0.23073101043701172, -0.4034236669540405, -0.37011072039604187, 0.099031463265419, 0.08180967718362808, 0.23330694437026978, -0.09293314814567566, 0.12780418992042542, 0.31755581498146057, 0.13910996913909912, 0.21170833706855774, 0.05761365592479706, -0.10722135752439499, -0.2944210171699524, -0.3802275061607361, -0.08125507086515427, -0.18714354932308197, -0.34035396575927734, -0.02866937965154648, 0.12091726064682007, 0.2569708228111267, 0.4090837240219116, -0.19256769120693207, 0.07502925395965576, 0.18358607590198517, 0.26242053508758545, -0.16372345387935638, 0.07118155062198639, 0.3987107276916504, -0.005884118378162384, 0.14723077416419983, 0.06101003289222717, -0.036473456770181656, 0.18546810746192932, 0.1999574601650238, -0.08763773739337921, 0.08378131687641144, -0.007786761969327927, 0.23974159359931946, 0.2052232027053833, 0.024818740785121918, 0.34266167879104614, -0.22307458519935608, -0.1534397304058075, 0.14188064634799957, 0.3161235749721527, 0.058264780789613724, 0.4063868224620819, 0.1564667820930481, 0.5133110284805298, 0.047327376902103424, 0.006307870149612427, -0.2425059676170349, -0.09803498536348343, -0.09080124646425247, -0.21286515891551971, -0.6478087902069092, 0.1315714716911316, 0.0626140758395195, 0.1702558845281601, -0.2607923150062561, -0.24034783244132996, 0.053939901292324066, -0.048728492110967636, -0.2779194712638855, -0.4708806276321411, 0.2743675410747528, 0.024356111884117126, -0.4496534764766693, -0.16965971887111664, 0.16451114416122437, 0.0007475093007087708, 0.28233563899993896, -0.7982839345932007, -0.010401330888271332, 0.4095080494880676, -0.10528764873743057, -0.1517000049352646, 0.038865283131599426, 0.02745947800576687, -0.14807800948619843, -0.11255009472370148, 0.24126681685447693, 0.11861192435026169, -0.04071949049830437, -0.2710612118244171, -0.2115236520767212 ]
https://github.com/huggingface/datasets/pull/2121
Add Validation For README
Hi @lhoestq Thanks for merging. :) Thanks a lot to you and @yjernite for guiding me and helping me out. Yes, I'll also use the next PR for combining the readme and tags validation. ^_^
Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan
35
text: Add Validation For README Hi @lhoestq, @yjernite This is a simple Readme parser. All classes specific to different sections can inherit `Section` class, and we can define more attributes in each. Let me know if this is going in the right direction :) Currently the output looks like this, for `to_dict()` on `FashionMNIST` `README.md`: ```json { "name": "./datasets/fashion_mnist/README.md", "attributes": "", "subsections": [ { "name": "Dataset Card for FashionMNIST", "attributes": "", "subsections": [ { "name": "Table of Contents", "attributes": "- [Dataset Description](#dataset-description)\n - [Dataset Summary](#dataset-summary)\n - [Supported Tasks](#supported-tasks-and-leaderboards)\n - [Languages](#languages)\n- [Dataset Structure](#dataset-structure)\n - [Data Instances](#data-instances)\n - [Data Fields](#data-instances)\n - [Data Splits](#data-instances)\n- [Dataset Creation](#dataset-creation)\n - [Curation Rationale](#curation-rationale)\n - [Source Data](#source-data)\n - [Annotations](#annotations)\n - [Personal and Sensitive Information](#personal-and-sensitive-information)\n- [Considerations for Using the Data](#considerations-for-using-the-data)\n - [Social Impact of Dataset](#social-impact-of-dataset)\n - [Discussion of Biases](#discussion-of-biases)\n - [Other Known Limitations](#other-known-limitations)\n- [Additional Information](#additional-information)\n - [Dataset Curators](#dataset-curators)\n - [Licensing Information](#licensing-information)\n - [Citation Information](#citation-information)\n - [Contributions](#contributions)", "subsections": [] }, { "name": "Dataset Description", "attributes": "- **Homepage:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Repository:** [GitHub](https://github.com/zalandoresearch/fashion-mnist)\n- **Paper:** [arXiv](https://arxiv.org/pdf/1708.07747.pdf)\n- **Leaderboard:**\n- **Point of Contact:**", "subsections": [ { "name": "Dataset Summary", "attributes": "Fashion-MNIST is a dataset of Zalando's article images\u2014consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grayscale image, associated with a label from 10 classes. We intend Fashion-MNIST to serve as a direct drop-in replacement for the original MNIST dataset for benchmarking machine learning algorithms. It shares the same image size and structure of training and testing splits.", "subsections": [] }, { "name": "Supported Tasks and Leaderboards", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Languages", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Dataset Structure", "attributes": "", "subsections": [ { "name": "Data Instances", "attributes": "A data point comprises an image and its label.", "subsections": [] }, { "name": "Data Fields", "attributes": "- `image`: a 2d array of integers representing the 28x28 image.\n- `label`: an integer between 0 and 9 representing the classes with the following mapping:\n | Label | Description |\n | --- | --- |\n | 0 | T-shirt/top |\n | 1 | Trouser |\n | 2 | Pullover |\n | 3 | Dress |\n | 4 | Coat |\n | 5 | Sandal |\n | 6 | Shirt |\n | 7 | Sneaker |\n | 8 | Bag |\n | 9 | Ankle boot |", "subsections": [] }, { "name": "Data Splits", "attributes": "The data is split into training and test set. The training set contains 60,000 images and the test set 10,000 images.", "subsections": [] } ] }, { "name": "Dataset Creation", "attributes": "", "subsections": [ { "name": "Curation Rationale", "attributes": "**From the arXiv paper:**\nThe original MNIST dataset contains a lot of handwritten digits. Members of the AI/ML/Data Science community love this dataset and use it as a benchmark to validate their algorithms. In fact, MNIST is often the first dataset researchers try. \"If it doesn't work on MNIST, it won't work at all\", they said. \"Well, if it does work on MNIST, it may still fail on others.\"\nHere are some good reasons:\n- MNIST is too easy. Convolutional nets can achieve 99.7% on MNIST. Classic machine learning algorithms can also achieve 97% easily. Check out our side-by-side benchmark for Fashion-MNIST vs. MNIST, and read \"Most pairs of MNIST digits can be distinguished pretty well by just one pixel.\"\n- MNIST is overused. In this April 2017 Twitter thread, Google Brain research scientist and deep learning expert Ian Goodfellow calls for people to move away from MNIST.\n- MNIST can not represent modern CV tasks, as noted in this April 2017 Twitter thread, deep learning expert/Keras author Fran\u00e7ois Chollet.", "subsections": [] }, { "name": "Source Data", "attributes": "", "subsections": [ { "name": "Initial Data Collection and Normalization", "attributes": "**From the arXiv paper:**\nFashion-MNIST is based on the assortment on Zalando\u2019s website. Every fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit. The original picture has a light-gray background (hexadecimal color: #fdfdfd) and stored in 762 \u00d7 1000 JPEG format. For efficiently serving different frontend components, the original picture is resampled with multiple resolutions, e.g. large, medium, small, thumbnail and tiny.\nWe use the front look thumbnail images of 70,000 unique products to build Fashion-MNIST. Those products come from different gender groups: men, women, kids and neutral. In particular, whitecolor products are not included in the dataset as they have low contrast to the background. The thumbnails (51 \u00d7 73) are then fed into the following conversion pipeline:\n1. Converting the input to a PNG image.\n2. Trimming any edges that are close to the color of the corner pixels. The \u201ccloseness\u201d is defined by the distance within 5% of the maximum possible intensity in RGB space.\n3. Resizing the longest edge of the image to 28 by subsampling the pixels, i.e. some rows and columns are skipped over.\n4. Sharpening pixels using a Gaussian operator of the radius and standard deviation of 1.0, with increasing effect near outlines.\n5. Extending the shortest edge to 28 and put the image to the center of the canvas.\n6. Negating the intensities of the image.\n7. Converting the image to 8-bit grayscale pixels.", "subsections": [] }, { "name": "Who are the source image producers?", "attributes": "**From the arXiv paper:**\nEvery fashion product on Zalando has a set of pictures shot by professional photographers, demonstrating different aspects of the product, i.e. front and back looks, details, looks with model and in an outfit.", "subsections": [] } ] }, { "name": "Annotations", "attributes": "", "subsections": [ { "name": "Annotation process", "attributes": "**From the arXiv paper:**\nFor the class labels, they use the silhouette code of the product. The silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando. Each product Zalando is the Europe\u2019s largest online fashion platform. Each product contains only one silhouette code.", "subsections": [] }, { "name": "Who are the annotators?", "attributes": "**From the arXiv paper:**\nThe silhouette code is manually labeled by the in-house fashion experts and reviewed by a separate team at Zalando.", "subsections": [] } ] }, { "name": "Personal and Sensitive Information", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Considerations for Using the Data", "attributes": "", "subsections": [ { "name": "Social Impact of Dataset", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Discussion of Biases", "attributes": "[More Information Needed]", "subsections": [] }, { "name": "Other Known Limitations", "attributes": "[More Information Needed]", "subsections": [] } ] }, { "name": "Additional Information", "attributes": "", "subsections": [ { "name": "Dataset Curators", "attributes": "Han Xiao and Kashif Rasul and Roland Vollgraf", "subsections": [] }, { "name": "Licensing Information", "attributes": "MIT Licence", "subsections": [] }, { "name": "Citation Information", "attributes": "@article{DBLP:journals/corr/abs-1708-07747,\n author = {Han Xiao and\n Kashif Rasul and\n Roland Vollgraf},\n title = {Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning\n Algorithms},\n journal = {CoRR},\n volume = {abs/1708.07747},\n year = {2017},\n url = {http://arxiv.org/abs/1708.07747},\n archivePrefix = {arXiv},\n eprint = {1708.07747},\n timestamp = {Mon, 13 Aug 2018 16:47:27 +0200},\n biburl = {https://dblp.org/rec/bib/journals/corr/abs-1708-07747},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}", "subsections": [] }, { "name": "Contributions", "attributes": "Thanks to [@gchhablani](https://github.com/gchablani) for adding this dataset.", "subsections": [] } ] } ] } ] } ``` Thanks, Gunjan Hi @lhoestq Thanks for merging. :) Thanks a lot to you and @yjernite for guiding me and helping me out. Yes, I'll also use the next PR for combining the readme and tags validation. ^_^
[ -0.062220145016908646, 0.1453738808631897, -0.1334857940673828, 0.24961628019809723, 0.2254566252231598, 0.2698098123073578, 0.18070510029792786, 0.39705872535705566, 0.1556602567434311, -0.05715087056159973, 0.09762268513441086, 0.27325108647346497, -0.14209480583667755, -0.05973687767982483, -0.22095350921154022, 0.027295557782053947, 0.046654436737298965, 0.0836859866976738, 0.10413768142461777, -0.1497908979654312, -0.011771652847528458, 0.22533047199249268, 0.008201032876968384, 0.011668838560581207, 0.17776642739772797, -0.098935566842556, 0.20812280476093292, -0.04371263086795807, -0.5918548703193665, -0.4672010540962219, 0.17680487036705017, 0.03675317019224167, -0.33186861872673035, 0.1315297782421112, -0.000105837250885088, -0.08187699317932129, 0.14413917064666748, -0.0048612505197525024, -0.036721162497997284, -0.2674272060394287, -0.21669545769691467, 0.08665703982114792, -0.038047581911087036, -0.12795275449752808, -0.051646240055561066, -0.14305026829242706, -0.18197192251682281, -0.1836794912815094, 0.5622107982635498, 0.40971139073371887, 0.20119021832942963, -0.5221631526947021, 0.1337578147649765, 0.0849897488951683, 0.23652473092079163, 0.41343802213668823, 0.03404192626476288, 0.01629919931292534, 0.25599730014801025, 0.23243306577205658, -0.02148071676492691, 0.5193160772323608, -0.18719837069511414, -0.023369107395410538, 0.2915549576282501, -0.1446523666381836, 0.3426592946052551, -0.183702290058136, 0.14684748649597168, 0.25377488136291504, 0.7058746814727783, -0.2441769242286682, -0.03342004865407944, -0.32688039541244507, -0.3478306233882904, 0.11575402319431305, -0.07530312985181808, 0.05971083790063858, 0.06573279201984406, 0.3640945553779602, -0.010617021471261978, -0.10240369290113449, -0.17683859169483185, -0.006738699972629547, -0.012445002794265747, 0.5645154714584351, -0.14826767146587372, -0.16649606823921204, 0.20272083580493927, -0.12670786678791046, -0.02809068188071251, -0.06672872602939606, -0.41096097230911255, 0.12627390027046204, 0.13003157079219818, -0.4389002323150635, 0.03395744785666466, -0.37247511744499207, 0.3041967749595642, 0.1934918314218521, -0.08706611394882202, 0.2732134163379669, 0.08986655622720718, 0.27807778120040894, 0.3210962116718292, -0.011705581098794937, 0.372115820646286, 0.4393428564071655, -0.08319894969463348, 0.024861084297299385, 0.15250903367996216, -0.09469770640134811, -0.03755075857043266, 0.2574442923069, 0.10363994538784027, 0.1902109682559967, 0.0108400359749794, -0.4078061580657959, -0.17307357490062714, 0.2898893654346466, -0.07566296309232712, -0.3063163757324219, 0.003271169029176235, 0.4401112198829651, 0.03680207207798958, 0.1541440635919571, 0.06786933541297913, 0.04801227152347565, 0.05260073393583298, -0.08707039803266525, -0.12626370787620544, 0.42046353220939636, -0.02275390923023224, -0.1182541772723198, 0.13888369500637054, 0.1505070924758911, -0.008338945917785168, -0.1784294694662094, -0.21130214631557465, -0.5156262516975403, 0.1009392961859703, -0.17482981085777283, 0.5397642254829407, 0.020850330591201782, -0.31506896018981934, 0.07230153679847717, 0.23631425201892853, -0.4557652473449707, -0.2822198271751404, 0.09469212591648102, -0.41236740350723267, -0.2070118486881256, -0.09632818400859833, 0.3105356693267822, -0.05545753240585327, 0.0026805363595485687, -0.23852986097335815, 0.3484346270561218, 0.2606240510940552, -0.13756009936332703, 0.1658879518508911, 0.1562100499868393, -0.148212730884552, -0.11700630187988281, -0.032593317329883575, 0.2528995871543884, -0.17594964802265167, -0.02729509025812149, -0.22996318340301514, -0.125409796833992, -0.06298550218343735, 0.048190392553806305, -0.10024291276931763, 0.4487791359424591, -0.039892036467790604, 0.4614870548248291, 0.6218039989471436, -0.49660104513168335, -0.2050483077764511, 0.3639084994792938, -0.09923753142356873, -0.02785533107817173, 0.2716364562511444, -0.20378564298152924, 0.2607461214065552, -0.21103812754154205, -0.03150828182697296, -0.02898295596241951, 0.09623221307992935, 0.006301911547780037, -0.09586121141910553, 0.038073085248470306, -0.06424687802791595, 0.2324054092168808, -0.0665118396282196, -0.30449995398521423, 0.14818459749221802, -0.12121115624904633, 0.45462581515312195, -0.2603372633457184, 0.17461805045604706, 0.19516772031784058, 0.6494988203048706, -0.06303104758262634, 0.09778819978237152, -0.3720415532588959, -0.0354355126619339, -0.11298806220293045, 0.42360642552375793, -0.010642260313034058, -0.003677971661090851, -0.09147223830223083, -0.37476667761802673, -0.039354268461465836, -0.30765819549560547, -0.3547999858856201, 0.2587301731109619, -0.09948670864105225, -0.024357521906495094, -0.23816680908203125, -0.2577337920665741, 0.21263009309768677, -0.17098602652549744, 0.15585742890834808, -0.3342427909374237, 0.12439101934432983, -0.19803619384765625, 0.013881049118936062, -0.0799378976225853, 0.1778881996870041, 0.037198256701231, -0.09430748224258423, 0.10701843351125717, 0.14108559489250183, 0.43564245104789734, -0.09973526000976562, -0.2852849066257477, 0.28076162934303284, 0.0008717402815818787, -0.2700980007648468, 0.07877396792173386, -0.1181076318025589, 0.05943237990140915, -0.12797848880290985, -0.3351447582244873, 0.3062768876552582, 0.34755587577819824, 0.06814155727624893, -0.14467814564704895, -0.2532750070095062, 0.10530412197113037, -0.16489578783512115, -0.16799187660217285, -0.38588976860046387, -0.049262385815382004, 0.04968325048685074, -0.15022796392440796, -0.032936953008174896, 0.15119266510009766, 0.008145526051521301, 0.46615150570869446, -0.03392429277300835, 0.07919236272573471, 0.1155640110373497, -0.07941380888223648, -0.08957711607217789, -0.038711048662662506, 0.411126971244812, -0.024577125906944275, 0.16570881009101868, 0.08118166029453278, 0.06497986614704132, 0.044056858867406845, 0.004239343106746674, 0.14163827896118164, -0.019781507551670074, 0.32012590765953064, 0.394845187664032, -0.07111404091119766, 0.13942421972751617, -0.2101961374282837, -0.20172297954559326, -0.07984213531017303, 0.11843810230493546, -0.3281734883785248, 0.26935988664627075, -0.09120288491249084, 0.30300387740135193, -0.029983792454004288, -0.21735532581806183, 0.04240097105503082, -0.3174941837787628, 0.01633472926914692, 0.030830051749944687, -0.11789429187774658, -0.08514828234910965, -0.07955218851566315, 0.10701598227024078, -0.023881636559963226, 0.052160024642944336, -0.24127770960330963, -0.31932365894317627, -0.07421840727329254, 0.17507614195346832, 0.13528361916542053, 0.2279454469680786, 0.16021747887134552, -0.20039571821689606, 0.039258137345314026, 0.09058176726102829, -0.5231971144676208, 0.1725783348083496, -0.15838180482387543, 0.18457166850566864, 0.14868813753128052, 0.18331089615821838, 0.1474488526582718, -0.19422759115695953, 0.02995353192090988, 0.11170630156993866, -0.35287752747535706, 0.05759649723768234, 0.0717083290219307, -0.13241048157215118, -0.058862704783678055, -0.3451214134693146, -0.025874866172671318, -0.22763855755329132, 0.3535920977592468, 0.013689093291759491, 0.2765697240829468, 0.1613883525133133, 0.03691629320383072, -0.02960427850484848, -0.31044942140579224, 0.44298192858695984, -0.27986517548561096, -0.2367476522922516, 0.5191361904144287, -0.024855975061655045, -0.07120770215988159, 0.24193722009658813, -0.0713316947221756, 0.2528459131717682, -0.1305142641067505, -0.2531728744506836, -0.06244479492306709, 0.08748673647642136, -0.14935685694217682, -0.08575665950775146, -0.20792900025844574, 0.23403942584991455, 0.36288878321647644, -0.13709627091884613, -0.10166849195957184, -0.1633133441209793, 0.07035353034734726, -0.00760878250002861, 0.12434586137533188, -0.30668389797210693, 0.20309802889823914, 0.30429694056510925, 0.11456617712974548, -0.05997819826006889, -0.029206257313489914, -0.08685190975666046, 0.3506316542625427, 0.05409272387623787, 0.3228210508823395, -0.3661712110042572, 0.206746444106102, -0.017224133014678955, -0.1142391711473465, 0.2597101628780365, -0.15546825528144836, -0.06499096751213074, -0.22114740312099457, 0.1382533311843872, -0.41605740785598755, -0.2896616756916046, 0.18607042729854584, 0.08249890804290771, 0.029389724135398865, -0.17806832492351532, 0.4227427840232849, 0.09017576277256012, 0.08013969659805298, 0.23670022189617157, 0.574912428855896, -0.07201600819826126, -0.030468937009572983, -0.21656309068202972, -0.20247408747673035, 0.013196155428886414, 0.04437660425901413, 0.10083822160959244, -0.07134444266557693, -0.0009073764085769653, -0.020230460911989212, -0.15337438881397247, -0.3785537779331207, 0.14669831097126007, -0.3548630475997925, 0.12843522429466248, 0.12941356003284454, 0.128298819065094, 0.4117496609687805, 0.07618226110935211, -0.13436686992645264, -0.23829025030136108, 0.10690948367118835, 0.05296242982149124, -0.647280216217041, -0.1271098107099533, 0.1809268742799759, -0.3405722379684448, -0.008881144225597382, -0.32224273681640625, 0.05661306902766228, -0.15656539797782898, -0.4801022410392761, 0.14909471571445465, 0.24683095514774323, 0.0596323125064373, 0.1336967498064041, -0.09490175545215607, 0.15290221571922302, -0.0322016142308712, 0.3901042342185974, 0.08752128481864929, 0.023292088881134987, -0.16541419923305511, -0.12500987946987152, -0.13621997833251953, -0.02298855036497116, 0.584050714969635, 0.380316823720932, -0.006736356765031815, -0.33732613921165466, -0.19399550557136536, -0.17037765681743622, 0.25079146027565, 0.05011161416769028, 0.18680283427238464, 0.050831668078899384, 0.38230448961257935, -0.10715791583061218, -0.09064248204231262, 0.09241554141044617, -0.06057259440422058, -0.06679600477218628, -0.30331048369407654, -0.47385117411613464, 0.2723347246646881, 0.028441905975341797, 0.014972224831581116, 0.08201935887336731, 0.04589450731873512, -0.3111841380596161, 0.06137080490589142, 0.4502478241920471, 0.989497721195221, 0.30587297677993774, -0.09528003633022308, 0.044641364365816116, -0.3480510115623474, 0.058490216732025146, -0.6109122633934021, 0.04030377417802811, -0.2546410858631134, 0.09248705208301544, -0.2391379028558731, -0.021122734993696213, 0.40439027547836304, 0.4455535411834717, -0.33715134859085083, -0.15508601069450378, 0.24256880581378937, 0.21113969385623932, -0.013787124305963516, 0.4585508704185486, -0.01975727267563343, -0.12314645946025848, -0.1114850789308548, 0.2072964757680893, -0.15837401151657104, -0.22546792030334473, 0.045432087033987045, -0.2351304590702057, -0.17400498688220978, -0.30528271198272705, -0.3945038318634033, -0.0956745445728302, -0.0955362468957901, -0.10312861949205399, 0.314120352268219, -0.35593533515930176, 0.557654619216919, -0.14042523503303528, -0.003947757184505463, 0.3466304540634155, -0.32617565989494324, 0.29457613825798035, 0.040690526366233826, -0.07026561349630356, -0.2538524568080902, -0.16557176411151886, 0.41474637389183044, -0.07962666451931, 0.060507632791996, -0.013655692338943481, -0.18851052224636078, -0.10737301409244537, 0.26087915897369385, 0.08368150144815445, 0.1162855252623558, -0.4384618401527405, 0.08069445192813873, 0.2505485713481903, -0.3149406909942627, -0.11131899058818817, 0.20384788513183594, 0.262350469827652, -0.41306257247924805, -0.10014898329973221, 0.1106916069984436, -0.1397789716720581, 0.1687115579843521, -0.029680609703063965, 0.06368043273687363, -0.3783923387527466, 0.23507171869277954, 0.13624240458011627, -0.38587355613708496, -0.45712271332740784, -0.2328079342842102, 0.46148040890693665, 0.2571079432964325, -0.16569463908672333, -0.18830710649490356, -0.34491485357284546, 0.15837526321411133, 0.06316318362951279, 0.24263761937618256, 0.22274109721183777, 0.05583181604743004, -0.4421909749507904, -0.19179517030715942, 0.11268414556980133, -0.18956422805786133, 0.11571231484413147, -0.3522947132587433, 0.1453697830438614, -0.1540728658437729, 0.46173331141471863, -0.41619473695755005, -0.11046016961336136, -0.0747452899813652, 0.07155157625675201, 0.2448565661907196, -0.2016998529434204, -0.20091068744659424, -0.09280076622962952, 0.18505792319774628, 0.28127413988113403, -0.3414607346057892, -0.2783629596233368, -0.10919564962387085, 0.04996362328529358, 0.2922757863998413, 0.24378779530525208, 0.009705199860036373, 0.26137930154800415, -0.21491017937660217, -0.232205331325531, -0.18118178844451904, -0.21438679099082947, 0.06499963253736496, 0.2757204473018646, 0.28056538105010986, 0.17167730629444122, -0.16106051206588745, -0.3141649067401886, -0.1897066831588745, 0.27315908670425415, -0.08822090923786163, -0.13618731498718262, 0.058925315737724304, 0.02605488896369934, 0.0998791977763176, 0.38201823830604553, 0.4516848921775818, -0.006533682346343994, 0.4076753854751587, -0.03156374394893646, -0.049441348761320114, 0.21561434864997864, 0.053439900279045105, 0.5263511538505554, -0.20606105029582977, 0.04576878994703293, -0.0004257187247276306, 0.2759711444377899, 0.04691682755947113, 0.1582268327474594, 0.14627446234226227, -0.1524493396282196, 0.10433048009872437, 0.23138201236724854, -0.04778943955898285, 0.15559141337871552, -0.0316297709941864, 0.31517308950424194, 0.4057631492614746, -0.0928855687379837, 0.2152998447418213, 0.22404441237449646, -0.2572307288646698, -0.21136559545993805, 0.32809746265411377, 0.17385776340961456, 0.3070858418941498, 0.2317868173122406, 0.22631463408470154, 0.2809487581253052, 0.4163462221622467, 0.21164250373840332, -0.2160971462726593, -0.11871393024921417, 0.2858908772468567, 0.4409613311290741, 0.14439545571804047, 0.01677507907152176, 0.28947606682777405, -0.3281685709953308, 0.33186250925064087, -0.003574811387807131, 0.05231020599603653, 0.2429804652929306, -0.13306456804275513, 0.09906166791915894, -0.07942710071802139, -0.11177355796098709, -0.24518175423145294, -0.2747117280960083, 0.09447664022445679, -0.2858782410621643, -0.03318828344345093, -0.14127926528453827, -0.15742503106594086, -0.14862608909606934, 0.008063087239861488, -0.045062147080898285, 0.2656489610671997, -0.531337320804596, 0.12649548053741455, 0.13838697969913483, -0.052632056176662445, 0.14626841247081757, -0.137953981757164, 0.2984483242034912, 0.2306843250989914, -0.1587613821029663, 0.10238434374332428, -0.34751468896865845, -0.47992825508117676, 0.13820643723011017, 0.3155311942100525, 0.06852388381958008, 0.08473032712936401, 0.33213213086128235, 0.25644832849502563, -0.1954057663679123, -0.13002640008926392, 0.017548929899930954, -0.06793393194675446, -0.06354477256536484, 0.041683394461870193, 0.24282920360565186, -0.2581382393836975, -0.20602786540985107, -0.23073101043701172, -0.4034236669540405, -0.37011072039604187, 0.099031463265419, 0.08180967718362808, 0.23330694437026978, -0.09293314814567566, 0.12780418992042542, 0.31755581498146057, 0.13910996913909912, 0.21170833706855774, 0.05761365592479706, -0.10722135752439499, -0.2944210171699524, -0.3802275061607361, -0.08125507086515427, -0.18714354932308197, -0.34035396575927734, -0.02866937965154648, 0.12091726064682007, 0.2569708228111267, 0.4090837240219116, -0.19256769120693207, 0.07502925395965576, 0.18358607590198517, 0.26242053508758545, -0.16372345387935638, 0.07118155062198639, 0.3987107276916504, -0.005884118378162384, 0.14723077416419983, 0.06101003289222717, -0.036473456770181656, 0.18546810746192932, 0.1999574601650238, -0.08763773739337921, 0.08378131687641144, -0.007786761969327927, 0.23974159359931946, 0.2052232027053833, 0.024818740785121918, 0.34266167879104614, -0.22307458519935608, -0.1534397304058075, 0.14188064634799957, 0.3161235749721527, 0.058264780789613724, 0.4063868224620819, 0.1564667820930481, 0.5133110284805298, 0.047327376902103424, 0.006307870149612427, -0.2425059676170349, -0.09803498536348343, -0.09080124646425247, -0.21286515891551971, -0.6478087902069092, 0.1315714716911316, 0.0626140758395195, 0.1702558845281601, -0.2607923150062561, -0.24034783244132996, 0.053939901292324066, -0.048728492110967636, -0.2779194712638855, -0.4708806276321411, 0.2743675410747528, 0.024356111884117126, -0.4496534764766693, -0.16965971887111664, 0.16451114416122437, 0.0007475093007087708, 0.28233563899993896, -0.7982839345932007, -0.010401330888271332, 0.4095080494880676, -0.10528764873743057, -0.1517000049352646, 0.038865283131599426, 0.02745947800576687, -0.14807800948619843, -0.11255009472370148, 0.24126681685447693, 0.11861192435026169, -0.04071949049830437, -0.2710612118244171, -0.2115236520767212 ]
https://github.com/huggingface/datasets/pull/2118
Remove os.environ.copy in Dataset.map
I thought deepcopy on `os.environ` is unsafe (see [this](https://stackoverflow.com/questions/13142972/using-copy-deepcopy-on-os-environ-in-python-appears-broken)), but I can't replicate the behavior described in the linked SO thread. Closing this one because #2119 has a much cleaner approach.
Replace `os.environ.copy` with in-place modification Fixes #2115
31
text: Remove os.environ.copy in Dataset.map Replace `os.environ.copy` with in-place modification Fixes #2115 I thought deepcopy on `os.environ` is unsafe (see [this](https://stackoverflow.com/questions/13142972/using-copy-deepcopy-on-os-environ-in-python-appears-broken)), but I can't replicate the behavior described in the linked SO thread. Closing this one because #2119 has a much cleaner approach.
[ -0.11605341732501984, -0.009037628769874573, -0.11417604982852936, -0.25580883026123047, 0.06837578862905502, -0.2127772569656372, 0.13041752576828003, 0.3820343613624573, -0.045587293803691864, 0.22358857095241547, -0.1480964869260788, 0.6278707981109619, 0.1636086255311966, 0.13337019085884094, -0.05870293825864792, 0.16916462779045105, 0.01985882967710495, 0.04943406581878662, -0.3070487380027771, -0.29634517431259155, -0.4711068570613861, -0.1317126601934433, 0.0609121173620224, -0.10020957887172699, 0.112592913210392, 0.0017688628286123276, -0.28801941871643066, 0.4364025294780731, -0.06638778001070023, -0.07972393184900284, 0.09115906059741974, 0.06123083084821701, -0.17502497136592865, 0.29689472913742065, -0.00009838549885898829, 0.2685003876686096, 0.22538229823112488, -0.005210531875491142, 0.04059905558824539, 0.07335029542446136, -0.08766946196556091, -0.12280803173780441, 0.14220255613327026, -0.36118707060813904, 0.05177316814661026, -0.17217832803726196, 0.08084903657436371, -0.07588280737400055, 0.6092252731323242, 0.18628786504268646, 0.33619025349617004, 0.5238388776779175, -0.11723211407661438, 0.029569732025265694, 0.12210509181022644, -0.08068262040615082, 0.07078217715024948, 0.09034347534179688, 0.24413643777370453, 0.069280706346035, -0.12578850984573364, 0.21894009411334991, -0.4161231517791748, -0.11129644513130188, -0.04791361093521118, -0.04350331425666809, 0.1381475329399109, -0.08527486771345139, 0.12368390709161758, 0.1344415694475174, 0.02543313056230545, -0.21456947922706604, -0.30574747920036316, 0.055299706757068634, -0.13397939503192902, -0.4495144784450531, 0.13472427427768707, 0.04976985603570938, 0.19715316593647003, 0.27663642168045044, -0.18113605678081512, -0.12347811460494995, -0.12310629338026047, 0.22145545482635498, -0.19583891332149506, 0.22412852942943573, 0.021560193970799446, -0.017644286155700684, 0.2525007128715515, -0.04182453453540802, 0.14452262222766876, -0.058543041348457336, -0.02807481959462166, -0.055361997336149216, -0.018749672919511795, -0.2608689069747925, 0.055486951023340225, 0.2102627456188202, 0.17988979816436768, 0.11333246529102325, 0.06774118542671204, 0.13163822889328003, -0.13004468381404877, 0.28325414657592773, 0.21711932122707367, -0.002309883013367653, -0.35767310857772827, 0.4185381829738617, 0.369907021522522, -0.1704077422618866, 0.10727082192897797, 0.08224397897720337, 0.19666442275047302, -0.29853639006614685, 0.040874991565942764, 0.048411838710308075, 0.5293264389038086, -0.26494503021240234, -0.27975714206695557, 0.04246209189295769, -0.2907276451587677, 0.06920131295919418, 0.010194577276706696, 0.4686732590198517, 0.19276271760463715, -0.3022230565547943, 0.37692707777023315, 0.3191067576408386, -0.20588375627994537, 0.13614459335803986, -0.3502323031425476, 0.18476155400276184, 0.11732460558414459, -0.2505178451538086, -0.0694212093949318, -0.0053371042013168335, 0.33661654591560364, 0.010527295060455799, 0.19631052017211914, 0.037083834409713745, 0.022726183757185936, 0.2291513830423355, 0.2614227831363678, 0.25818926095962524, -0.08861660957336426, -0.18598957359790802, 0.2184019833803177, 0.03924263268709183, -0.1460689753293991, 0.17856396734714508, -0.38745859265327454, -0.08044272661209106, -0.14065034687519073, 0.3270924389362335, 0.07001017034053802, -0.0890565812587738, 0.20965272188186646, -0.3043454885482788, 0.19246648252010345, 0.2367658019065857, 0.24492871761322021, -0.027172613888978958, -0.11068649590015411, -0.13153322041034698, 0.09294555336236954, 0.34091511368751526, 0.001772373914718628, -0.05209112912416458, -0.12412328273057938, 0.1714535504579544, 0.2740372121334076, 0.25014570355415344, -0.03129422292113304, 0.0421881303191185, -0.05740875005722046, -0.018867895007133484, 0.18618977069854736, -0.15434330701828003, -0.30732202529907227, 0.1065141037106514, -0.388602614402771, -0.02742031216621399, 0.06414943933486938, -0.04669881612062454, 0.005463945679366589, -0.19719552993774414, 0.13605955243110657, 0.1597619354724884, 0.12211382389068604, 0.23221486806869507, -0.43174299597740173, -0.1837608814239502, -0.011138513684272766, 0.053532715886831284, 0.04191545397043228, 0.049455203115940094, 0.07135941088199615, -0.2125367671251297, 0.3136308491230011, -0.14206066727638245, -0.007393768988549709, 0.24360091984272003, 0.37754330039024353, 0.04138502478599548, -0.08149658143520355, 0.19275808334350586, 0.02527061104774475, 0.08044116944074631, 0.060726605355739594, -0.08889341354370117, 0.019533276557922363, -0.3096047043800354, -0.0636383444070816, 0.23207895457744598, -0.4230042099952698, -0.06827177107334137, 0.3207876682281494, -0.06588611006736755, 0.03396327421069145, 0.09208427369594574, 0.1429622918367386, 0.030152281746268272, -0.13210269808769226, 0.15511803328990936, -0.25819066166877747, 0.1174371987581253, -0.21104581654071808, -0.0005324380472302437, -0.06760688871145248, 0.16244307160377502, 0.15116336941719055, -0.12041880935430527, -0.15303263068199158, 0.37264883518218994, -0.2352469563484192, 0.013189591467380524, -0.3168323040008545, 0.17982561886310577, 0.1334971934556961, -0.24472187459468842, 0.30883774161338806, 0.3960375189781189, 0.049380332231521606, 0.1837618052959442, -0.29601308703422546, 0.21826434135437012, 0.005758106708526611, -0.011106260120868683, 0.0027840174734592438, 0.08579599112272263, 0.05512528866529465, -0.364359050989151, -0.10674963891506195, -0.18901029229164124, 0.06982385367155075, 0.20553359389305115, 0.20112992823123932, 0.029636021703481674, -0.08706948161125183, 0.10578673332929611, 0.09461615234613419, -0.03641132265329361, 0.2117323875427246, 0.10392193496227264, 0.03913101181387901, 0.06375753879547119, -0.09671352803707123, 0.5487142205238342, 0.26709306240081787, 0.28554412722587585, 0.23899754881858826, 0.21603421866893768, 0.09944023936986923, -0.016708767041563988, 0.256911039352417, 0.18453052639961243, 0.31024372577667236, 0.04096877947449684, 0.17588408291339874, -0.09998562932014465, -0.4447271525859833, 0.042438846081495285, -0.05659087002277374, 0.05509202927350998, -0.20688262581825256, 0.1123747006058693, -0.46596360206604004, -0.03871028125286102, -0.1001727283000946, 0.057669296860694885, -0.012822449207305908, -0.2899143695831299, 0.2882925271987915, 0.13796907663345337, -0.604813814163208, 0.23974944651126862, 0.05187424644827843, -0.07739849388599396, 0.1391330510377884, -0.23936231434345245, 0.025826051831245422, -0.03576698526740074, 0.09466798603534698, 0.16087423264980316, -0.0066490741446614265, -0.14209316670894623, 0.2984491288661957, 0.006610512733459473, -0.31684625148773193, -0.3281455338001251, -0.23755168914794922, 0.07192575186491013, -0.14487016201019287, 0.04775286465883255, 0.16595964133739471, -0.04425482451915741, 0.0256119966506958, -0.17392222583293915, -0.06322035193443298, -0.1574815958738327, -0.3651983439922333, -0.04373422637581825, 0.18921802937984467, -0.0931347981095314, -0.17826241254806519, -0.2355535328388214, -0.1757860779762268, -0.30364495515823364, 0.312721848487854, -0.04669869691133499, 0.12829402089118958, 0.23836742341518402, 0.11210239678621292, 0.08469659835100174, 0.19617336988449097, 0.10230521112680435, -0.320238322019577, -0.20594854652881622, 0.16983111202716827, -0.176198810338974, -0.2549363374710083, -0.15915696322917938, 0.025679752230644226, 0.07675045728683472, -0.06183142215013504, -0.20780901610851288, -0.4778585731983185, -0.3592629134654999, 0.31008562445640564, -0.047112926840782166, 0.23241668939590454, 0.4355609714984894, 0.07999441027641296, -0.2539544105529785, -0.14218461513519287, -0.03984334319829941, 0.15142911672592163, 0.28927886486053467, -0.03954801708459854, -0.02466675266623497, 0.37552472949028015, -0.1435120850801468, 0.1718961000442505, 0.12492331862449646, 0.11052967607975006, 0.4742208421230316, -0.07132425159215927, 0.4793868958950043, -0.2619907259941101, -0.30893999338150024, -0.21476370096206665, -0.049490734934806824, -0.3008500933647156, 0.15502354502677917, -0.22443020343780518, -0.18378861248493195, 0.27921241521835327, -0.26313722133636475, -0.17984327673912048, -0.3501582443714142, -0.030303562059998512, 0.052479907870292664, -0.06690847128629684, 0.15799055993556976, 0.16613605618476868, -0.08274073898792267, 0.1089325100183487, 0.08881396055221558, 0.0598251149058342, -0.07278528064489365, -0.19473202526569366, -0.146989643573761, -0.16156621277332306, -0.6504403948783875, 0.3155805468559265, -0.12359201908111572, 0.00007589161396026611, 0.05552368238568306, -0.3510737121105194, -0.04174678027629852, -0.29107409715652466, 0.6379201412200928, -0.022526292130351067, 0.30234628915786743, 0.04205434024333954, -0.21271823346614838, -0.044873062521219254, 0.04961497709155083, -0.1808888167142868, 0.15860483050346375, 0.16660933196544647, 0.12340766191482544, -0.08697446435689926, -0.10531464964151382, 0.3959686756134033, 0.103927381336689, -0.10250421613454819, 0.18252228200435638, -0.2303810566663742, -0.522547721862793, -0.20168687403202057, -0.020205795764923096, 0.3296748697757721, -0.08541592955589294, -0.2611429691314697, -0.023941997438669205, -0.14785517752170563, -0.018124034628272057, 0.05523943528532982, -0.11176198720932007, 0.3573150336742401, -0.08550821244716644, 0.13666480779647827, -0.0953441709280014, 0.3425184488296509, 0.2052471935749054, 0.7525365948677063, -0.40237221121788025, -0.16938135027885437, -0.04549079388380051, -0.22511403262615204, 0.34177443385124207, 0.2993863821029663, 0.06965310871601105, -0.08094342797994614, -0.2687261998653412, 0.09084449708461761, -0.23069033026695251, -0.07988020032644272, 0.12622235715389252, 0.1020100936293602, 0.16854767501354218, 0.018628286197781563, 0.332441508769989, 0.10644179582595825, -0.05239728465676308, 0.19080816209316254, -0.04197096824645996, -0.3200879693031311, 0.5785341858863831, 0.15574532747268677, 0.7684544324874878, -0.05329093337059021, 0.26888662576675415, 0.20691606402397156, 0.11680002510547638, 0.11911394447088242, 0.017376810312271118, -0.05240663141012192, -0.18353454768657684, -0.5552770495414734, 0.10498574376106262, 0.10745373368263245, -0.08140196651220322, -0.1357440948486328, -0.4068108797073364, 0.18919874727725983, -0.004296049475669861, -0.12937845289707184, -0.046428605914115906, -0.09884712100028992, 0.1505546122789383, -0.26448190212249756, -0.15891744196414948, 0.29306817054748535, 0.24495254456996918, -0.11210465431213379, 0.01772228814661503, -0.09485035389661789, -0.061154719442129135, -0.4707145690917969, 0.15768788754940033, 0.21691778302192688, -0.19662746787071228, 0.3014829754829407, 0.007847284898161888, -0.05992533639073372, -0.17959783971309662, 0.07073637843132019, 0.2651817202568054, 0.24717658758163452, -0.02733500860631466, -0.02624824270606041, 0.39380231499671936, 0.16450124979019165, 0.04892392084002495, -0.026048917323350906, -0.014597458764910698, -0.015078183263540268, -0.14681227505207062, -0.14381477236747742, -0.05125952884554863, -0.25228017568588257, 0.05200988054275513, -0.02027440071105957, 0.25376448035240173, -0.11716265976428986, -0.17750388383865356, 0.16381868720054626, -0.04075290262699127, -0.41984379291534424, 0.26146334409713745, 0.025965984910726547, -0.21345429122447968, 0.08372846245765686, -0.031149405986070633, -0.4208860397338867, 0.0636216253042221, 0.5490041375160217, 0.14526453614234924, 0.3392593562602997, 0.5531207323074341, -0.19037434458732605, -0.06343533098697662, -0.33242207765579224, 0.21309208869934082, 0.15169891715049744, 0.026400476694107056, 0.23179751634597778, -0.2170265167951584, -0.18483275175094604, -0.07747723907232285, 0.1808461844921112, -0.14172722399234772, 0.1162114292383194, -0.2860264182090759, -0.17463019490242004, -0.24056997895240784, 0.12722304463386536, -0.08516888320446014, 0.34482550621032715, -0.01149018295109272, 0.2691149413585663, -0.2001836895942688, -0.06470273435115814, -0.47972017526626587, 0.07267061620950699, -0.10972675681114197, -0.04882404953241348, 0.20514701306819916, -0.1180567815899849, 0.3131521940231323, -0.17440328001976013, 0.2601760923862457, 0.08816361427307129, -0.0728754773736, -0.39422082901000977, -0.12767641246318817, 0.04143044352531433, -0.19651371240615845, 0.06463959068059921, 0.28149163722991943, -0.13988810777664185, -0.10423290729522705, -0.09901543706655502, 0.2509472668170929, 0.03468859940767288, 0.03770160675048828, 0.18709063529968262, 0.08082100003957748, -0.035649582743644714, 0.20386014878749847, -0.15671177208423615, -0.21080103516578674, -0.034532710909843445, -0.3346116840839386, 0.16634315252304077, -0.34598731994628906, -0.1750430017709732, 0.2550800144672394, -0.035945773124694824, -0.017496466636657715, 0.24467569589614868, 0.1442795693874359, 0.15573126077651978, -0.30412888526916504, -0.06175290793180466, 0.2815166413784027, 0.19599081575870514, -0.2479083389043808, -0.17184877395629883, 0.16616106033325195, 0.3689654767513275, -0.38795989751815796, -0.1827683001756668, 0.2085181027650833, -0.16104911267757416, 0.36737924814224243, 0.3814176917076111, -0.12494984269142151, -0.09586144238710403, 0.13356587290763855, 0.1769666075706482, 0.3636452853679657, -0.2624043822288513, 0.24068741500377655, 0.45684757828712463, -0.07803371548652649, 0.02684623748064041, 0.09386079013347626, 0.14582057297229767, 0.3510031998157501, 0.15984663367271423, 0.09089906513690948, 0.4050716161727905, -0.007177617400884628, 0.11130361258983612, 0.00955701619386673, -0.455419659614563, 0.3892245590686798, -0.00958162546157837, 0.05800705775618553, 0.2688329517841339, 0.24170942604541779, 0.08295007795095444, -0.21780981123447418, -0.25126591324806213, -0.3312046229839325, 0.4188396632671356, -0.14928308129310608, -0.2781030237674713, 0.0035713426768779755, -0.018674448132514954, -0.11344088613986969, 0.11533994972705841, 0.05344657972455025, -0.021801576018333435, 0.20197606086730957, -0.016306385397911072, -0.0664982944726944, -0.08139516413211823, -0.22080621123313904, -0.3836888372898102, 0.03002643585205078, -0.33180466294288635, 0.038439881056547165, 0.10562741011381149, -0.19649174809455872, -0.18558114767074585, 0.32374170422554016, 0.30813509225845337, 0.14863258600234985, -0.04445385932922363, 0.15512189269065857, -0.13755019009113312, -0.0987963080406189, -0.12332355231046677, -0.16141445934772491, -0.23994439840316772, -0.018143393099308014, 0.29281893372535706, 0.22246085107326508, -0.24369624257087708, 0.14377622306346893, 0.23488891124725342, 0.1980375349521637, 0.09647862613201141, 0.038562435656785965, 0.3417273759841919, -0.23853576183319092, -0.061075516045093536, -0.28610074520111084, -0.41764187812805176, -0.2301410585641861, 0.10606978833675385, -0.2985396981239319, 0.23897910118103027, 0.024354834109544754, 0.17343570291996002, 0.11629793047904968, 0.4305688440799713, 0.28024840354919434, -0.22548308968544006, -0.3989980220794678, -0.06566736102104187, -0.2857629358768463, 0.13497264683246613, -0.28415101766586304, -0.4728066325187683, 0.13477952778339386, 0.06821873039007187, 0.11703141033649445, -0.11849460005760193, -0.08120881021022797, 0.00793197937309742, -0.14904704689979553, -0.06627751886844635, -0.32935264706611633, -0.2161356657743454, 0.28917038440704346, -0.09046049416065216, 0.30670395493507385, -0.455078125, -0.033356036990880966, -0.014310326427221298, 0.24504536390304565, 0.0281514935195446, 0.017187684774398804, -0.06630085408687592, 0.00507780909538269, 0.2946864366531372, 0.09422532469034195, -0.1985284984111786, -0.4924290180206299, -0.13735084235668182, 0.01889941841363907, -0.09135487675666809, -0.5024121403694153, 0.02086871862411499, 0.17374952137470245, 0.09223984181880951, -0.08252420276403427, -0.23342923820018768, -0.1942165344953537, 0.09327364712953568, 0.12958699464797974, -0.2569706439971924, -0.2375900000333786, 0.5749105215072632, -0.009526632726192474, 0.14696571230888367, -0.054912272840738297, 0.14941388368606567, -0.09572593867778778, 0.3470412492752075, -0.157586932182312, -0.4441414177417755, 0.693068265914917, -0.2557741701602936, -0.0640101283788681, -0.08155562728643417, 0.2559407651424408, -0.15100222826004028, -0.12212327867746353, -0.20849350094795227, 0.023931123316287994, 0.01749759167432785, -0.018360864371061325, -0.5042974948883057, 0.29548555612564087, -0.1354832500219345, -0.045210134238004684, -0.06245611235499382, 0.45558223128318787, 0.2639058828353882, -0.30034196376800537, 0.18152596056461334, -0.30121785402297974 ]
https://github.com/huggingface/datasets/pull/2114
Support for legal NLP datasets (EURLEX, ECtHR cases and EU-REG-IR)
> Awesome thank you :) > This is really cool > > I left a few comments. > > Also it looks like the dummy data are quite big (100-200KB each). Can you try to reduce their sizes please ? For example I noticed that all the jsonl files inside the `dummy_data.zip` files have 20 lines. Can you only keep 2 lines instead ? Hi @lhoestq, I did my best to improve the README files, while I also decreased dummy data examples. I included one more legal dataset.
Add support for two legal NLP datasets: - EURLEX (https://www.aclweb.org/anthology/P19-1636/) - ECtHR cases (https://arxiv.org/abs/2103.13084) - EU-REG-IR (https://arxiv.org/abs/2101.10726)
88
text: Support for legal NLP datasets (EURLEX, ECtHR cases and EU-REG-IR) Add support for two legal NLP datasets: - EURLEX (https://www.aclweb.org/anthology/P19-1636/) - ECtHR cases (https://arxiv.org/abs/2103.13084) - EU-REG-IR (https://arxiv.org/abs/2101.10726) > Awesome thank you :) > This is really cool > > I left a few comments. > > Also it looks like the dummy data are quite big (100-200KB each). Can you try to reduce their sizes please ? For example I noticed that all the jsonl files inside the `dummy_data.zip` files have 20 lines. Can you only keep 2 lines instead ? Hi @lhoestq, I did my best to improve the README files, while I also decreased dummy data examples. I included one more legal dataset.
[ 0.16345266997814178, -0.034658461809158325, -0.2232317179441452, 0.19211016595363617, -0.376018762588501, 0.044536374509334564, 0.09103260189294815, 0.2963884472846985, 0.177625373005867, -0.1798022836446762, -0.08831654489040375, 0.1736968606710434, -0.09947742521762848, 0.06892529875040054, 0.053628500550985336, -0.20051732659339905, 0.11800344288349152, 0.18041816353797913, 0.18271349370479584, -0.1757945418357849, -0.1392611712217331, 0.3889129161834717, -0.3361305594444275, 0.03611025586724281, 0.04095478728413582, -0.16492965817451477, -0.08841738104820251, 0.2011002004146576, -0.5574613213539124, -0.2814323306083679, -0.051638923585414886, 0.21070481836795807, -0.05341394245624542, 0.1768214851617813, -0.00010594239574857056, -0.34986740350723267, 0.24830250442028046, 0.02547352947294712, -0.07519799470901489, 0.008766904473304749, -0.11164795607328415, -0.5336640477180481, -0.17606677114963531, -0.2101661115884781, 0.13910901546478271, -0.31848788261413574, 0.030163424089550972, 0.06556250900030136, 0.4023469090461731, 0.3941076099872589, 0.21042394638061523, -0.32652196288108826, 0.2963210344314575, 0.1307014524936676, 0.26237788796424866, 0.3041747212409973, -0.19817394018173218, -0.11663806438446045, 0.46408504247665405, 0.010880118235945702, 0.10667003691196442, 0.17277076840400696, -0.15978780388832092, -0.2469618171453476, -0.04398023337125778, -0.18220208585262299, 0.06153075397014618, -0.4004873037338257, -0.01568077877163887, 0.3242001235485077, 0.5128116011619568, -0.12531107664108276, -0.10595303028821945, 0.007863707840442657, 0.1593490093946457, -0.011499112471938133, -0.013346843421459198, 0.46461185812950134, -0.027828777208924294, 0.010723212733864784, -0.12640605866909027, -0.36477842926979065, -0.22530052065849304, 0.08445577323436737, -0.012639474123716354, 0.6980260610580444, 0.08602152019739151, -0.10800469666719437, 0.2029496133327484, -0.13365940749645233, -0.006937951780855656, -0.030611552298069, -0.2580641210079193, 0.17594775557518005, -0.07597039639949799, -0.2809111773967743, -0.0029468461871147156, 0.03615777567028999, 0.29315871000289917, 0.08724169433116913, 0.14267484843730927, 0.13879209756851196, -0.21170614659786224, 0.19574403762817383, 0.1279706358909607, 0.05655862018465996, 0.03143206238746643, 0.2629711627960205, 0.2588563561439514, 0.07269922643899918, 0.48786717653274536, 0.25056836009025574, -0.20818321406841278, 0.07158065587282181, -0.6342138648033142, 0.030072782188653946, -0.04967885464429855, -0.3721561133861542, -0.08992014825344086, 0.1862442046403885, -0.16957424581050873, -0.22232839465141296, -0.31813135743141174, 0.12817150354385376, -0.18047372996807098, -0.17515242099761963, -0.027837535366415977, 0.12875911593437195, -0.015270145609974861, -0.27196866273880005, -0.09003328531980515, 0.2281549870967865, -0.23754097521305084, -0.1831667125225067, 0.19580431282520294, 0.5001235008239746, 0.24274785816669464, 0.10207542032003403, 0.02872471883893013, 0.010487869381904602, 0.4582602083683014, 0.032230593264102936, 0.15726497769355774, 0.07113848626613617, 0.0036044903099536896, -0.16673603653907776, -0.11776778101921082, -0.24921806156635284, -0.26508527994155884, 0.22129186987876892, -0.2607942819595337, -0.07824093103408813, -0.4426388144493103, 0.23846925795078278, -0.32916104793548584, -0.18161271512508392, -0.014679156243801117, 0.4385876953601837, -0.14149394631385803, -0.297615110874176, 0.1802983283996582, 0.06626084446907043, -0.3010532259941101, 0.011472435668110847, 0.04233434796333313, 0.1246301531791687, -0.2907562851905823, -0.011734049767255783, 0.0392775721848011, -0.044601622968912125, 0.11756071448326111, 0.10751140117645264, -0.29396483302116394, 0.13845975697040558, -0.24435529112815857, 0.2185971587896347, 0.3017907440662384, -0.2320132851600647, -0.17390713095664978, 0.23333954811096191, 0.09936074912548065, -0.10515943169593811, 0.21161459386348724, -0.17193768918514252, 0.1265803873538971, -0.0876239538192749, -0.24462658166885376, 0.2306080162525177, 0.07923359423875809, 0.013118566945195198, -0.4684121310710907, -0.146609365940094, 0.2344816029071808, 0.11098957061767578, -0.15680406987667084, -0.22179901599884033, 0.042851489037275314, -0.18051862716674805, 0.3961292803287506, -0.08890800178050995, 0.08479804545640945, 0.29715126752853394, 0.1302577555179596, -0.2932148575782776, 0.2504936456680298, 0.20280486345291138, -0.3691050112247467, -0.1951064169406891, -0.3274954855442047, 0.7614538669586182, 0.07192633301019669, -0.14243029057979584, -0.3201841115951538, -0.156150221824646, -0.04822469875216484, -0.44277065992355347, 0.2616870105266571, -0.05720336735248566, -0.0858445093035698, 0.07306128740310669, 0.055492501705884933, 0.26386648416519165, -0.06160060316324234, -0.07257451862096786, -0.5047522783279419, 0.13796791434288025, -0.1032453402876854, 0.1957676112651825, 0.16389769315719604, 0.3369850218296051, -0.09966648370027542, -0.13498343527317047, 0.009269429370760918, 0.04470062255859375, 0.10438325256109238, 0.3392263650894165, 0.18110641837120056, 0.16049650311470032, 0.3724014461040497, -0.26582518219947815, 0.2774498760700226, 0.20099185407161713, -0.02123936265707016, -0.11643130332231522, -0.41458097100257874, 0.2768844962120056, 0.1404120773077011, 0.07536601275205612, -0.023115936666727066, 0.026133587583899498, 0.15678048133850098, -0.16317392885684967, -0.3047957122325897, 0.11178334057331085, 0.1715114563703537, 0.34291085600852966, 0.005036409944295883, -0.06214836984872818, -0.19975611567497253, 0.26781925559043884, 0.2793627381324768, -0.15307794511318207, -0.03236761689186096, 0.2424154281616211, -0.11391080170869827, -0.2807657718658447, 0.31599166989326477, 0.29089322686195374, 0.19953766465187073, 0.2921692430973053, 0.021332237869501114, 0.0359235517680645, -0.13012421131134033, -0.1310388147830963, 0.20338687300682068, 0.07417034357786179, -0.3212684690952301, 0.1436299979686737, 0.003596737515181303, -0.033036354929208755, -0.40632474422454834, -0.43809494376182556, 0.020733585581183434, 0.29199233651161194, -0.1497718244791031, -0.1542523205280304, 0.049712978303432465, -0.1840362548828125, -0.06386759132146835, -0.04265845566987991, -0.15117618441581726, -0.306672066450119, 0.18107210099697113, -0.05293707922101021, -0.28134360909461975, 0.25816595554351807, 0.01986711099743843, 0.6306796073913574, -0.37045103311538696, 0.36572301387786865, -0.144212543964386, 0.03279940411448479, -0.3451080322265625, 0.2512933909893036, 0.30304527282714844, 0.39274701476097107, 0.4125751852989197, -0.07836931198835373, 0.16030436754226685, -0.1316823959350586, -0.5784119963645935, 0.0700952410697937, -0.13548678159713745, 0.22288282215595245, 0.17509369552135468, -0.0704348087310791, -0.37595999240875244, -0.10595305263996124, -0.23094990849494934, -0.017814815044403076, -0.30993130803108215, -0.1440536379814148, -0.2720007300376892, -0.009287599474191666, -0.27182283997535706, -0.6086004972457886, -0.2592971622943878, -0.4034283459186554, 0.2996644973754883, 0.05345718190073967, 0.28119128942489624, 0.06629053503274918, 0.12621432542800903, 0.19671288132667542, -0.06177706643939018, 0.058252088725566864, -0.220169335603714, -0.20334073901176453, 0.3943883180618286, -0.19552724063396454, -0.34449702501296997, -0.04857872426509857, -0.11896907538175583, 0.2625095248222351, -0.17504435777664185, -0.4334304928779602, -0.10017372667789459, 0.010696513578295708, -0.28563809394836426, -0.2823823094367981, 0.062474898993968964, 0.28223544359207153, 0.13010020554065704, -0.1976022869348526, 0.008668504655361176, -0.1880451738834381, -0.09786923974752426, -0.14330598711967468, 0.2232837826013565, -0.13877424597740173, 0.024919630959630013, 0.031125526875257492, 0.12763537466526031, 0.3621739447116852, 0.3901631236076355, 0.12256549298763275, 0.3146965205669403, 0.09831899404525757, 0.23066926002502441, -0.07770111411809921, 0.1445525735616684, 0.1037009209394455, -0.01232715230435133, 0.367085337638855, 0.09273187071084976, -0.34746915102005005, -0.03150559216737747, -0.04823428764939308, -0.04471093416213989, 0.02501562610268593, 0.4289396405220032, 0.04027429223060608, 0.21768364310264587, -0.01956094801425934, -0.3249256908893585, -0.24241729080677032, -0.12630334496498108, -0.09197214245796204, 0.018116377294063568, 0.19710280001163483, 0.1495182067155838, -0.6858611702919006, -0.08493674546480179, -0.3373892605304718, 0.23468990623950958, 0.019360054284334183, 0.13677822053432465, -0.059724319726228714, 0.22439438104629517, 0.04792364686727524, 0.05957098677754402, 0.16761723160743713, -0.47779473662376404, -0.37810593843460083, 0.28964319825172424, 0.4960046410560608, -0.03696953505277634, 0.1930435597896576, -0.24480965733528137, -0.0007943110540509224, 0.4364190995693207, 0.2677968740463257, -0.18654131889343262, -0.09720645099878311, 0.2569310963153839, 0.011521498672664165, -0.042424604296684265, -0.33274316787719727, 0.021377425640821457, -0.14023351669311523, -0.4714202582836151, 0.08906719833612442, 0.3494565188884735, -0.28603532910346985, -0.2597441077232361, -0.21850568056106567, 0.3912445604801178, 0.02097540721297264, 0.33799779415130615, 0.16824966669082642, 0.09613866358995438, -0.01808878220617771, -0.15282033383846283, 0.0629604384303093, -0.14857496321201324, -0.08994647115468979, 0.3923136293888092, -0.09017424285411835, 0.08725984394550323, 0.15731215476989746, -0.2750571668148041, 0.43413883447647095, 0.2673541307449341, 0.2970704734325409, -0.0121208056807518, -0.23680830001831055, 0.12790949642658234, -0.14937850832939148, 0.1797671914100647, 0.11949480324983597, -0.061704788357019424, -0.24187272787094116, -0.3327583074569702, 0.23410433530807495, 0.08152838051319122, -0.3097156882286072, 0.17794080078601837, 0.27636411786079407, -0.18954139947891235, 0.26033157110214233, 0.18604056537151337, 1.1034653186798096, 0.39699649810791016, 0.18103091418743134, 0.007339196279644966, -0.3034425675868988, 0.42374441027641296, -0.5349679589271545, -0.13129419088363647, -0.09199926257133484, 0.33286604285240173, -0.10204465687274933, -0.06214284896850586, 0.16583657264709473, 0.2502797245979309, -0.5662510395050049, 0.11096052080392838, 0.39489251375198364, -0.10284805297851562, 0.24147646129131317, 0.6721974611282349, -0.004135476425290108, -0.1872587651014328, 0.0930321142077446, 0.1984245330095291, -0.11362642049789429, -0.21604487299919128, -0.13916224241256714, -0.41451406478881836, -0.28765738010406494, -0.13958093523979187, -0.3449690341949463, -0.02097993902862072, 0.24610064923763275, -0.010985134169459343, 0.03631232678890228, -0.13361500203609467, 0.45048385858535767, -0.10011930763721466, 0.2759249806404114, 0.25175216794013977, -0.3690853416919708, 0.09340234845876694, -0.1099095270037651, -0.19417352974414825, 0.15096606314182281, -0.07449229061603546, 0.1971416473388672, -0.2772253453731537, -0.2976134717464447, 0.024200908839702606, -0.07395527511835098, -0.04817822948098183, -0.3699082136154175, 0.11808057129383087, 0.20909804105758667, -0.17617590725421906, -0.04221341758966446, 0.21570217609405518, -0.3292718827724457, -0.17300182580947876, 0.21623507142066956, 0.3136524558067322, -0.13293984532356262, 0.20746561884880066, 0.36890166997909546, -0.22146479785442352, -0.18641500174999237, 0.00951947271823883, 0.2322477400302887, -0.19055140018463135, 0.40013208985328674, -0.08145588636398315, -0.028082506731152534, -0.41425883769989014, 0.014148317277431488, 0.18123891949653625, -0.4649728238582611, -0.24467580020427704, -0.23295912146568298, -0.3947497606277466, -0.05646850913763046, 0.2558552324771881, 0.09376856684684753, 0.1435318887233734, 0.09591220319271088, -0.40953943133354187, -0.1794002205133438, 0.28361034393310547, -0.31152114272117615, 0.3260495066642761, -0.05231550335884094, 0.05288001894950867, 0.16001594066619873, 0.1983165144920349, -0.4287547469139099, 0.22947870194911957, -0.1468798816204071, -0.120057612657547, 0.25391149520874023, -0.13092687726020813, -0.28093597292900085, -0.014979058876633644, 0.0810575932264328, 0.19385060667991638, -0.35101693868637085, -0.2267071008682251, -0.04385874420404434, 0.13511034846305847, 0.19609344005584717, -0.37512606382369995, 0.10752887278795242, 0.03412666544318199, -0.12335130572319031, 0.25277188420295715, -0.22169406712055206, -0.3977014124393463, 0.04919543117284775, 0.3182753324508667, -0.3154752552509308, 0.21476471424102783, 0.22255106270313263, 0.050878480076789856, 0.24495157599449158, 0.09619981050491333, 0.3058509826660156, 0.2172079086303711, 0.12201806157827377, -0.05681581050157547, -0.06153618544340134, 0.3248479664325714, 0.3003161549568176, 0.24403825402259827, 0.33893734216690063, 0.027835983783006668, 0.1037578284740448, -0.02166050113737583, -0.04021722823381424, 0.3006366491317749, -0.29108569025993347, -0.059421882033348083, 0.24198532104492188, 0.3278807997703552, -0.29015281796455383, -0.2119605839252472, 0.1642417013645172, -0.09295829385519028, -0.0264529287815094, 0.045379988849163055, 0.6926553845405579, -0.006494171917438507, 0.2484630048274994, 0.11882580071687698, 0.3668648302555084, -0.2159896194934845, -0.05666515603661537, -0.08256997168064117, -0.5505996942520142, -0.14320988953113556, -0.04379386454820633, 0.055382564663887024, 0.24100378155708313, -0.08177542686462402, 0.43481558561325073, 0.3329753577709198, 0.20434024930000305, 0.41856881976127625, 0.21062013506889343, -0.14401520788669586, 0.38090193271636963, 0.3824021816253662, 0.1574571281671524, 0.18487095832824707, 0.31132256984710693, 0.4001030921936035, 0.01650024950504303, -0.0391211174428463, -0.29998788237571716, 0.0693032443523407, -0.03548198938369751, -0.02383491024374962, 0.017853017896413803, -0.21902310848236084, -0.40942850708961487, -0.09542690217494965, -0.13911382853984833, -0.016800813376903534, 0.022834904491901398, -0.25130152702331543, -0.16795997321605682, -0.1333920657634735, -0.049322858452796936, 0.19261473417282104, 0.10036319494247437, -0.36023250222206116, 0.28978708386421204, 0.17446613311767578, -0.14797081053256989, -0.06945239007472992, 0.23280265927314758, 0.39619937539100647, 0.13708288967609406, -0.05343722924590111, -0.08270077407360077, -0.1503177136182785, 0.02145508863031864, -0.048684559762477875, 0.4669177532196045, 0.4072171449661255, -0.1187782883644104, 0.20483455061912537, 0.12149244546890259, -0.1705619841814041, 0.08591677248477936, 0.16359513998031616, -0.34170398116111755, 0.055444251745939255, 0.0917193815112114, 0.02468068152666092, -0.2784956395626068, -0.08963499963283539, -0.2103697657585144, -0.32839199900627136, -0.06875471770763397, 0.23033878207206726, 0.04050374776124954, 0.0870828628540039, -0.4291832447052002, 0.11761224269866943, -0.12183701992034912, 0.3858160078525543, 0.342489093542099, 0.26078829169273376, -0.2921965420246124, -0.4602648615837097, -0.5302494764328003, 0.28243759274482727, -0.11113546788692474, 0.003472091630101204, -0.004434116184711456, 0.0541718527674675, 0.3624471127986908, 0.10175694525241852, -0.10881322622299194, -0.01725918985903263, -0.1397417187690735, -0.10248593986034393, -0.44576573371887207, 0.20078139007091522, 0.4310351610183716, 0.43836796283721924, 0.013778317719697952, 0.01257556676864624, 0.15939651429653168, 0.17243631184101105, 0.12071684747934341, -0.2843073010444641, -0.051924753934144974, -0.10367526113986969, 0.41913458704948425, 0.2989354729652405, 0.38679295778274536, 0.3339083194732666, -0.15733569860458374, -0.1476191282272339, -0.20376452803611755, 0.1669563204050064, -0.03908480703830719, 0.25444677472114563, 0.3310071527957916, 0.30511221289634705, -0.1463455855846405, -0.020871464163064957, 0.12866897881031036, -0.006267305463552475, -0.1360936164855957, -0.04355619475245476, -0.44321581721305847, 0.19784627854824066, -0.014648593962192535, 0.030612243339419365, -0.32468897104263306, 0.09091391414403915, 0.15042251348495483, -0.17633160948753357, -0.10365229845046997, -0.1497114598751068, 0.4344049096107483, 0.24379339814186096, -0.08217312395572662, 0.17717483639717102, 0.16700036823749542, 0.051407940685749054, 0.17306768894195557, -0.9007200598716736, -0.06352514028549194, 0.2414032369852066, 0.16960352659225464, 0.08604952692985535, 0.29112187027931213, 0.28650251030921936, -0.1933787763118744, -0.1407395750284195, 0.4472011923789978, 0.1063808798789978, -0.09196672588586807, 0.10942217707633972, -0.3691611886024475 ]
https://github.com/huggingface/datasets/pull/2114
Support for legal NLP datasets (EURLEX, ECtHR cases and EU-REG-IR)
@lhoestq thanks for your review. I shortened the examples in README files and removed `DEFAULT_CONFIG_BUILDER` from `eu_regulatory_ir.py`.
Add support for two legal NLP datasets: - EURLEX (https://www.aclweb.org/anthology/P19-1636/) - ECtHR cases (https://arxiv.org/abs/2103.13084) - EU-REG-IR (https://arxiv.org/abs/2101.10726)
17
text: Support for legal NLP datasets (EURLEX, ECtHR cases and EU-REG-IR) Add support for two legal NLP datasets: - EURLEX (https://www.aclweb.org/anthology/P19-1636/) - ECtHR cases (https://arxiv.org/abs/2103.13084) - EU-REG-IR (https://arxiv.org/abs/2101.10726) @lhoestq thanks for your review. I shortened the examples in README files and removed `DEFAULT_CONFIG_BUILDER` from `eu_regulatory_ir.py`.
[ 0.1189536303281784, -0.1654156744480133, -0.13159438967704773, -0.1499730944633484, -0.038489311933517456, 0.016778044402599335, 0.4686282277107239, 0.18985608220100403, 0.19485650956630707, 0.014723241329193115, -0.0015201135538518429, 0.16973912715911865, -0.07411700487136841, 0.10782686620950699, 0.1030670627951622, -0.13291744887828827, 0.0877276360988617, 0.3001452088356018, 0.3168150782585144, -0.19221711158752441, 0.13192327320575714, 0.2329120934009552, -0.1843092441558838, 0.3445693254470825, -0.035297952592372894, -0.01794092170894146, 0.23352259397506714, 0.01075182855129242, -0.19808141887187958, -0.4045369327068329, 0.13679635524749756, 0.17200632393360138, -0.13760140538215637, -0.03601238876581192, -0.0001072454615496099, -0.14845803380012512, 0.15514710545539856, -0.009192010387778282, 0.0780564546585083, -0.0782008171081543, -0.10773133486509323, -0.37442687153816223, -0.051813431084156036, -0.15760913491249084, 0.1450788676738739, -0.41067442297935486, 0.12331929802894592, 0.13021312654018402, 0.3670046925544739, 0.6325794458389282, 0.21013428270816803, -0.07474380731582642, 0.24029262363910675, -0.12284845858812332, 0.17230013012886047, -0.05654342472553253, -0.013978743925690651, -0.16339880228042603, 0.09069447219371796, 0.05380736291408539, 0.07048453390598297, 0.10941451787948608, -0.17537812888622284, -0.19208282232284546, -0.3580622375011444, -0.05919168144464493, 0.2032429277896881, -0.5099750757217407, 0.17905288934707642, 0.35480791330337524, 0.4069903492927551, -0.09182270616292953, -0.14063334465026855, 0.052998028695583344, 0.29144150018692017, -0.07077257335186005, -0.0012963712215423584, 0.342847615480423, -0.16699247062206268, 0.04742510989308357, -0.13691425323486328, -0.1995912790298462, -0.22455552220344543, 0.07681417465209961, -0.12662699818611145, 0.5894840955734253, 0.13968831300735474, -0.01563192903995514, 0.20306861400604248, -0.18596307933330536, 0.019511019811034203, 0.3405744433403015, -0.1473575085401535, 0.13030783832073212, -0.12586018443107605, -0.028186285868287086, 0.08203516155481339, 0.33414578437805176, 0.188949316740036, 0.35946226119995117, -0.15797176957130432, 0.16060757637023926, 0.0077054379507899284, 0.3210785388946533, -0.43102961778640747, -0.05136408284306526, 0.2063659429550171, 0.22930675745010376, 0.29231080412864685, -0.05456935986876488, 0.3617117404937744, 0.05302828550338745, -0.2446126490831375, -0.12309152632951736, -0.44714605808258057, -0.05630357563495636, -0.13556626439094543, -0.15515702962875366, -0.23583702743053436, 0.09410911798477173, 0.14763528108596802, -0.10744237154722214, -0.1356189250946045, 0.37819167971611023, -0.006017263047397137, -0.3387966454029083, -0.18931642174720764, 0.1693882793188095, -0.02816963568329811, -0.27608567476272583, -0.13867537677288055, 0.2648588716983795, -0.2215975522994995, -0.08402270823717117, 0.00012520328164100647, 0.2597794830799103, 0.33458244800567627, 0.01445880439132452, 0.34275442361831665, 0.0003012046217918396, 0.06379514187574387, -0.11682836711406708, 0.18780019879341125, 0.4095470905303955, -0.07991655170917511, -0.07941440492868423, -0.05070013180375099, -0.480052649974823, -0.15008755028247833, 0.09426224231719971, -0.17308446764945984, -0.22299408912658691, -0.3725042939186096, 0.2811305820941925, -0.25322744250297546, -0.31321948766708374, 0.27096185088157654, 0.29781922698020935, -0.03305094689130783, -0.666801929473877, 0.1501535177230835, -0.17230930924415588, -0.05091175436973572, -0.18978169560432434, 0.2656109035015106, -0.012450650334358215, 0.04448245093226433, -0.24411341547966003, -0.22628459334373474, -0.15946143865585327, 0.1633012294769287, 0.3148390054702759, -0.3052058517932892, 0.0839458778500557, -0.2689644694328308, 0.1988808661699295, 0.6681827902793884, -0.3589826822280884, -0.3309021294116974, -0.004743169527500868, -0.07156331837177277, -0.32252201437950134, 0.3782314956188202, -0.0981646478176117, 0.2540062963962555, -0.1628887802362442, -0.24984318017959595, 0.21418599784374237, -0.07580786943435669, -0.08882084488868713, -0.15917807817459106, 0.007006315514445305, 0.031083952635526657, 0.14183317124843597, 0.2049153596162796, -0.06230247765779495, 0.0948619544506073, -0.1186588704586029, 0.25231418013572693, -0.05483325943350792, 0.08104679733514786, 0.07287868857383728, 0.20929239690303802, -0.2771478295326233, 0.051105644553899765, -0.01587948575615883, 0.006138671189546585, -0.015204161405563354, -0.3270905613899231, 0.7103237509727478, 0.13714852929115295, -0.02400514855980873, -0.44094762206077576, -0.06096791476011276, -0.21525578200817108, -0.38530415296554565, 0.2802228629589081, 0.23491327464580536, -0.18734805285930634, 0.1543048769235611, 0.09319904446601868, 0.25518766045570374, -0.14360828697681427, -0.05358858034014702, -0.21045003831386566, 0.05850175768136978, -0.2847757637500763, 0.16417494416236877, -0.27839016914367676, 0.13334839046001434, -0.06671275943517685, 0.059371381998062134, 0.13262653350830078, 0.12486241012811661, 0.22074449062347412, 0.34593135118484497, 0.26494747400283813, 0.13040289282798767, 0.2051524966955185, -0.3030036687850952, 0.024889465421438217, 0.17191019654273987, 0.07225918024778366, 0.11119600385427475, -0.28808021545410156, 0.19194170832633972, 0.40287235379219055, -0.044302575290203094, 0.09941169619560242, 0.20731894671916962, 0.36546847224235535, -0.1728394627571106, -0.2889670729637146, -0.2344471961259842, 0.04938695207238197, 0.187647745013237, -0.14088524878025055, -0.12711119651794434, -0.3829367458820343, 0.24257320165634155, 0.26509571075439453, -0.1111908107995987, 0.04054489731788635, 0.2768273651599884, -0.057627178728580475, -0.2567806541919708, 0.1690872311592102, 0.34465840458869934, 0.2220437228679657, 0.4013717472553253, 0.08738362789154053, -0.01645326428115368, -0.2812575697898865, -0.1874864250421524, 0.12266410887241364, 0.1607438027858734, -0.30062463879585266, 0.09641178697347641, 0.14038565754890442, 0.09737098962068558, -0.35736435651779175, -0.6091734170913696, -0.06448069959878922, 0.08320333808660507, -0.23845064640045166, -0.03760330006480217, -0.2055400013923645, -0.13468985259532928, -0.26813769340515137, -0.025331832468509674, -0.27971673011779785, -0.23060107231140137, 0.1272667944431305, -0.19082695245742798, -0.2022690773010254, 0.44666925072669983, -0.015487004071474075, 0.2125937044620514, -0.22462500631809235, 0.11641404032707214, -0.05384640768170357, 0.08310948312282562, -0.4950166344642639, 0.22774294018745422, -0.056477177888154984, 0.17971552908420563, 0.5379592180252075, 0.0021401122212409973, 0.00826345942914486, -0.28216585516929626, -0.7138562202453613, 0.171709805727005, -0.23110981285572052, 0.36389341950416565, 0.11940371990203857, -0.22848518192768097, -0.27042585611343384, -0.09121129661798477, 0.0009971344843506813, -0.1963866502046585, -0.00461600162088871, -0.04126705229282379, -0.28089025616645813, 0.07992750406265259, -0.14856508374214172, -0.42528530955314636, -0.2900189161300659, -0.48498356342315674, 0.034219883382320404, 0.03440958634018898, 0.1704733520746231, 0.23072625696659088, 0.05371347442269325, 0.11956163495779037, -0.17966103553771973, 0.28759005665779114, -0.11512882262468338, 0.2460620105266571, 0.343839555978775, -0.1494438648223877, -0.30141663551330566, -0.027722030878067017, -0.23992402851581573, 0.2976141571998596, 0.35361170768737793, -0.18803198635578156, 0.004743530414998531, 0.0788896232843399, -0.21807602047920227, -0.1488286405801773, 0.08951694518327713, 0.23570798337459564, 0.1388089656829834, -0.2590148448944092, -0.003376137465238571, -0.17000114917755127, -0.01666705310344696, -0.11352597922086716, 0.10506753623485565, -0.04611480236053467, 0.1807585060596466, 0.00673549622297287, 0.12527455389499664, 0.1880713254213333, 0.3823658525943756, 0.1455347239971161, 0.0002122931182384491, 0.18395322561264038, 0.002963840961456299, -0.08214662224054337, 0.25995975732803345, 0.22030256688594818, -0.16889846324920654, 0.2054576426744461, -0.05926030874252319, -0.16592688858509064, -0.0867638811469078, -0.029903383925557137, -0.15049287676811218, -0.0843832790851593, 0.3102155327796936, 0.0516841858625412, 0.5615255832672119, -0.08885708451271057, -0.22676226496696472, -0.17059774696826935, 0.0551750510931015, -0.2648342251777649, 0.21287068724632263, 0.10565686970949173, 0.07069435715675354, -0.5248552560806274, -0.210028275847435, -0.19693750143051147, 0.15982340276241302, 0.12019878625869751, 0.48105040192604065, -0.14684510231018066, -0.050775621086359024, 0.07772395759820938, 0.14507971704006195, -0.13481830060482025, -0.45196664333343506, -0.28496015071868896, 0.23118123412132263, 0.4121631681919098, -0.18815428018569946, 0.0561332069337368, -0.1231156587600708, -0.042450424283742905, 0.23635107278823853, 0.08918987959623337, -0.042598165571689606, -0.17305074632167816, 0.413974791765213, -0.002701300196349621, -0.1238860934972763, -0.18695597350597382, -0.07362987846136093, -0.2759377658367157, -0.38751235604286194, 0.1528623104095459, 0.1427764743566513, -0.3337733745574951, -0.23841765522956848, 0.037218037992715836, 0.28346070647239685, 0.06172539293766022, 0.26660650968551636, 0.17143593728542328, 0.19943737983703613, -0.28075793385505676, -0.2592136859893799, -0.19220305979251862, -0.5418323278427124, -0.1915627419948578, 0.23616214096546173, -0.0005721263587474823, -0.1373865306377411, 0.051314420998096466, -0.1028030663728714, 0.26858967542648315, 0.23010441660881042, 0.09617909789085388, 0.12379716336727142, -0.04674648493528366, 0.23618461191654205, 0.20737412571907043, 0.26722678542137146, 0.24039581418037415, -0.2234419584274292, -0.2875572144985199, -0.24217158555984497, 0.23417916893959045, 0.11600053310394287, -0.293506383895874, -0.008643720299005508, 0.5206832885742188, -0.1812816709280014, 0.3376888036727905, 0.2453881800174713, 0.927786648273468, 0.33494287729263306, 0.21994809806346893, 0.36017003655433655, -0.2251000553369522, 0.4980541169643402, 0.04990127682685852, 0.055008355528116226, -0.23275116086006165, 0.12360531836748123, -0.12844428420066833, -0.03526967763900757, 0.09021681547164917, 0.1519531011581421, -0.40552806854248047, 0.30509328842163086, 0.21704597771167755, 0.134325310587883, 0.48066839575767517, 0.3858804404735565, -0.12333066016435623, -0.1572108417749405, -0.07488048076629639, 0.1924118548631668, -0.1115969717502594, -0.1287246197462082, -0.0376252606511116, -0.25259310007095337, -0.2096785008907318, -0.07464286684989929, -0.4698036313056946, -0.09725706279277802, 0.37914955615997314, 0.20869021117687225, -0.04450735077261925, -0.33811575174331665, 0.24873220920562744, -0.05469108745455742, 0.18629190325737, 0.18929138779640198, -0.23317855596542358, 0.0891447365283966, 0.02082277461886406, -0.2987586259841919, -0.09489604085683823, -0.08633416146039963, 0.3346080780029297, -0.29144054651260376, -0.34969377517700195, 0.08731740713119507, -0.1296018362045288, 0.11551637947559357, -0.4079703688621521, 0.26910990476608276, 0.07853731513023376, 0.10629910975694656, 0.059713397175073624, -0.02332589030265808, -0.24627944827079773, -0.23521541059017181, 0.1868348866701126, 0.018153443932533264, 0.09493394941091537, -0.021362416446208954, 0.25459668040275574, -0.18427512049674988, -0.1913081854581833, -0.04720122367143631, 0.2712962329387665, 0.050538331270217896, 0.35634317994117737, -0.35961514711380005, -0.03880760073661804, -0.3568635582923889, -0.27396658062934875, 0.10431073606014252, -0.6356108784675598, -0.24745576083660126, -0.15146951377391815, -0.28965243697166443, 0.12696142494678497, 0.10337106883525848, 0.1508062481880188, 0.02875882014632225, -0.16362901031970978, -0.5063572525978088, -0.33031731843948364, 0.25113463401794434, -0.6034463047981262, 0.10201570391654968, 0.11077093333005905, 0.21655488014221191, 0.27019086480140686, -0.12651696801185608, -0.4188389778137207, 0.05175642669200897, -0.294073224067688, -0.07773341238498688, 0.49944671988487244, -0.09849440306425095, -0.18699148297309875, 0.22576786577701569, 0.16185039281845093, -0.10661333799362183, -0.41128110885620117, -0.2029208540916443, -0.045641206204891205, 0.11186138540506363, 0.09207922220230103, -0.12337813526391983, -0.07359237968921661, 0.12182009220123291, -0.1506926417350769, 0.10712047666311264, 0.005535576492547989, -0.0932057648897171, -0.011554457247257233, 0.34949973225593567, -0.40242114663124084, 0.17511878907680511, 0.3142567276954651, -0.038488537073135376, 0.16472846269607544, -0.2894127368927002, 0.475971519947052, 0.3645875155925751, 0.03930313140153885, -0.040763307362794876, -0.14395278692245483, 0.253677099943161, 0.39016830921173096, -0.0046197399497032166, 0.16976669430732727, -0.07279379665851593, 0.09973099827766418, -0.12926575541496277, 0.06539060920476913, 0.3769499957561493, -0.22037126123905182, -0.09843708574771881, 0.34828126430511475, 0.30515167117118835, -0.333662211894989, -0.1679653525352478, -0.03030163049697876, -0.18688850104808807, 0.06668370962142944, 0.2021583616733551, 0.6788671016693115, -0.09424863755702972, 0.3990621566772461, 0.20993176102638245, 0.3265064060688019, -0.6326225996017456, -0.14589835703372955, -0.2385055124759674, -0.32644540071487427, 0.05152340233325958, 0.118669793009758, -0.08044469356536865, 0.3196904957294464, -0.08800575137138367, 0.3221808969974518, 0.5324465036392212, 0.03874160349369049, 0.1773267239332199, 0.36070162057876587, -0.40693017840385437, 0.23644524812698364, 0.13752777874469757, 0.02597898244857788, -0.16301006078720093, 0.3227725625038147, 0.2628171741962433, 0.06541461497545242, 0.15184879302978516, -0.3337404429912567, 0.0888882428407669, 0.029608266428112984, -0.1646631807088852, 0.4210073947906494, -0.1542033851146698, -0.3185383975505829, -0.2410525530576706, 0.14443254470825195, 0.1457357406616211, -0.06407998502254486, -0.1533837914466858, -0.0964624285697937, -0.19804058969020844, -0.2311176061630249, 0.27274584770202637, -0.23609858751296997, -0.2676135003566742, 0.07434902340173721, 0.1631941795349121, -0.18287837505340576, -0.04981689527630806, -0.013736611232161522, 0.6603168845176697, 0.018303750082850456, 0.14919424057006836, -0.19910883903503418, -0.06497044861316681, -0.04545396566390991, -0.0023532360792160034, 0.4012138843536377, 0.6251887083053589, 0.45540472865104675, 0.24213416874408722, 0.1824231594800949, -0.20860110223293304, -0.020842108875513077, 0.05276864022016525, -0.2740339934825897, -0.11251291632652283, 0.10934581607580185, 0.14270488917827606, -0.22257447242736816, -0.09119721502065659, 0.021718837320804596, -0.4175160229206085, 0.08458829671144485, 0.2749580144882202, 0.25289639830589294, 0.047962039709091187, -0.2399427741765976, 0.10399942845106125, 0.2053685188293457, 0.3316251337528229, 0.22580285370349884, 0.41181275248527527, -0.009936132468283176, -0.4321590065956116, -0.43188774585723877, 0.4664021134376526, 0.07164203375577927, -0.010511556640267372, 0.07817497849464417, -0.15468984842300415, 0.3378716707229614, -0.12337030470371246, 0.18330605328083038, -0.20541171729564667, 0.1131601557135582, -0.1122581958770752, -0.04014241322875023, 0.05536486953496933, 0.4127146005630493, 0.1333925873041153, 0.024203132838010788, 0.0032063275575637817, 0.14215484261512756, 0.018691226840019226, 0.24280193448066711, -0.28592950105667114, -0.03170548379421234, 0.10687129199504852, 0.18014183640480042, 0.4991554617881775, 0.3557293713092804, 0.6023030281066895, -0.2539282441139221, -0.06442020833492279, -0.3709481358528137, 0.1673683375120163, -0.2052285373210907, 0.21810820698738098, 0.24074889719486237, 0.2783066928386688, -0.02832397073507309, 0.04880502074956894, -0.025653671473264694, 0.08322248607873917, 0.01945655792951584, -0.013651654124259949, -0.2864680886268616, 0.1877191960811615, 0.05415123701095581, -0.028896601870656013, -0.23736657202243805, -0.12703511118888855, 0.18118463456630707, -0.1544848531484604, -0.08613801002502441, -0.3884958326816559, 0.48810163140296936, 0.27698439359664917, -0.17862652242183685, 0.012460528872907162, 0.22927430272102356, -0.00007345527410507202, 0.25582149624824524, -0.9930019378662109, -0.0657777339220047, 0.2092297077178955, 0.07107387483119965, -0.2115994095802307, 0.20138102769851685, 0.05858547240495682, -0.1392747014760971, -0.03838617354631424, 0.2878401577472687, 0.011713340878486633, -0.22699353098869324, -0.13842123746871948, -0.3924660086631775 ]
https://github.com/huggingface/datasets/pull/2111
Compute WER metric iteratively
I discussed with Patrick and I think we could have a nice addition: have a parameter `concatenate_texts` that, if `True`, uses the old implementation. By default `concatenate_texts` would be `False`, so that sentences are evaluated independently, and to save resources (the WER computation has a quadratic complexity). Some users might still want to use the old implementation.
Compute WER metric iteratively to avoid MemoryError. Fix #2078.
57
text: Compute WER metric iteratively Compute WER metric iteratively to avoid MemoryError. Fix #2078. I discussed with Patrick and I think we could have a nice addition: have a parameter `concatenate_texts` that, if `True`, uses the old implementation. By default `concatenate_texts` would be `False`, so that sentences are evaluated independently, and to save resources (the WER computation has a quadratic complexity). Some users might still want to use the old implementation.
[ -0.09923185408115387, -0.18950623273849487, -0.08800546824932098, -0.02946419268846512, 0.0367206446826458, -0.22793680429458618, 0.10922015458345413, 0.3703782260417938, 0.002497496083378792, 0.36930352449417114, 0.21363671123981476, 0.18417014181613922, -0.022797968238592148, -0.278043657541275, -0.32663899660110474, -0.10836081206798553, -0.09966930001974106, -0.06219017505645752, -0.34300169348716736, 0.08504411578178406, -0.30396270751953125, 0.15739977359771729, -0.21668656170368195, -0.18044383823871613, -0.05307735502719879, 0.13073207437992096, -0.2428073287010193, 0.21750006079673767, -0.11756154149770737, -0.45190760493278503, -0.08274276554584503, 0.44343626499176025, -0.04563674330711365, 0.16810502111911774, -0.00009920571028487757, -0.17727145552635193, 0.31846970319747925, -0.15632715821266174, -0.2651672661304474, -0.060223162174224854, 0.10036341100931168, -0.3093034029006958, -0.026980796828866005, -0.18716904520988464, 0.02776797115802765, 0.17565123736858368, 0.1876746267080307, -0.10468289256095886, 0.07944732159376144, 0.24111542105674744, 0.29319068789482117, -0.049808792769908905, 0.04833872243762016, -0.2305595576763153, -0.06533775478601456, -0.11376920342445374, -0.007039124146103859, 0.16017763316631317, 0.27122989296913147, 0.08671115338802338, -0.5699933171272278, 0.3071818947792053, 0.20723387598991394, 0.05791381746530533, 0.14534002542495728, -0.0747501403093338, 0.11994831264019012, 0.06591890752315521, -0.1321440041065216, 0.004788395017385483, 0.46374398469924927, -0.15597400069236755, -0.06197015941143036, 0.07060744613409042, -0.0708228051662445, -0.6170824766159058, 0.30342188477516174, -0.18518047034740448, -0.27011826634407043, 0.011924993246793747, -0.21234145760536194, -0.36046773195266724, -0.4352085590362549, -0.02570575475692749, -0.026230808347463608, 0.4651966989040375, 0.19893188774585724, -0.1864699423313141, 0.3192662298679352, -0.148413747549057, 0.34585198760032654, 0.1662612408399582, -0.1352590173482895, -0.18680532276630402, -0.0325210802257061, -0.13527944684028625, 0.03623900189995766, -0.38262516260147095, 0.2588512599468231, -0.10438503324985504, 0.11955258995294571, 0.34759074449539185, 0.20488715171813965, 0.09375431388616562, -0.04310741648077965, 0.6093623042106628, 0.3563991189002991, -0.07312396168708801, 0.08566588163375854, 0.25065577030181885, -0.11383992433547974, -0.0748768299818039, -0.03632756695151329, -0.2376660704612732, 0.12746664881706238, 0.08803391456604004, -0.12804830074310303, 0.07240651547908783, 0.003308335319161415, 0.09840893745422363, -0.1882120668888092, -0.15298044681549072, -0.026160400360822678, 0.22834643721580505, 0.07117346674203873, 0.44601836800575256, 0.2529381513595581, -0.09535527229309082, -0.01867547817528248, -0.09578870981931686, -0.2251172512769699, 0.06519164144992828, -0.22071067988872528, 0.06632567942142487, -0.09118270874023438, 0.022364817559719086, 0.04985246807336807, 0.03550855815410614, 0.2246391773223877, -0.3290497064590454, -0.17754657566547394, 0.007528342306613922, 0.14248786866664886, -0.1638854295015335, -0.005949683487415314, -0.2754879295825958, -0.03769366070628166, -0.27720797061920166, -0.01581995189189911, 0.2785215675830841, -0.20590543746948242, -0.25628766417503357, -0.11544206738471985, 0.307806134223938, -0.07957270741462708, -0.23372012376785278, 0.22858086228370667, 0.4162501096725464, 0.22859889268875122, 0.11551737785339355, 0.02834448218345642, 0.06901435554027557, -0.470337837934494, 0.0186014324426651, -0.14188434183597565, 0.325151264667511, -0.270535945892334, -0.13239538669586182, 0.10275187343358994, 0.011967864818871021, 0.10174078494310379, 0.2949007749557495, 0.07297883182764053, 0.04489520192146301, -0.10408644378185272, 0.20130251348018646, 0.195468008518219, -0.454760879278183, -0.018562553450465202, 0.0093224523589015, -0.08210071176290512, 0.1371103674173355, 0.20273879170417786, -0.18302644789218903, 0.04067234694957733, 0.05147142335772514, 0.40632393956184387, -0.14434877038002014, 0.0032768063247203827, -0.03968348726630211, -0.32248350977897644, 0.01573312096297741, 0.18102866411209106, -0.17217466235160828, 0.44042736291885376, 0.0013109371066093445, -0.09733489900827408, 0.07436325401067734, 0.38054564595222473, -0.3132593035697937, -0.04576617479324341, 0.0895485207438469, 0.34506911039352417, -0.07365685701370239, 0.20385852456092834, 0.021121781319379807, 0.13659408688545227, -0.002088535577058792, -0.047738149762153625, 0.31198543310165405, 0.3637876510620117, 0.05155421793460846, -0.02036459743976593, 0.016773326322436333, 0.25329187512397766, -0.04232998564839363, 0.3343179523944855, 0.10771028697490692, -0.18252459168434143, -0.0857827216386795, -0.2300519347190857, 0.25961217284202576, -0.4363696575164795, -0.028241481631994247, 0.15866607427597046, -0.2975750267505646, -0.12954774498939514, -0.06862957775592804, 0.15057674050331116, 0.08551757782697678, 0.1505611389875412, 0.03518182411789894, -0.06637687236070633, 0.4615795314311981, -0.18977907299995422, -0.022372283041477203, -0.0937291756272316, -0.06402139365673065, -0.04307711869478226, 0.10633179545402527, -0.09608229249715805, -0.10093796253204346, -0.1162761002779007, -0.05686483159661293, -0.07562781125307083, 0.15090788900852203, 0.39273902773857117, 0.24076730012893677, 0.20459584891796112, -0.028588585555553436, 0.14720900356769562, -0.07538890093564987, -0.12932421267032623, -0.2683422267436981, 0.3393249809741974, -0.3624127507209778, -0.21510536968708038, 0.03127743676304817, -0.21904191374778748, 0.03978520631790161, 0.5476136803627014, 0.09783580899238586, 0.09372610598802567, 0.5246496796607971, 0.22773268818855286, -0.27638009190559387, -0.24519607424736023, -0.2680366635322571, 0.25612834095954895, 0.27366042137145996, -0.04209795966744423, 0.27012038230895996, 0.054188285022974014, -0.1591767966747284, 0.3510264754295349, 0.19059866666793823, 0.21919812262058258, 0.2291436791419983, 0.22846701741218567, -0.3472655117511749, -0.27399882674217224, -0.02145678736269474, -0.047896936535835266, 0.10882832854986191, -0.19426870346069336, -0.18144457042217255, -0.19287796318531036, -0.3686050474643707, -0.20588155090808868, 0.05481179058551788, -0.09939643740653992, -0.39339324831962585, 0.22376614809036255, 0.2517259418964386, -0.2844752371311188, 0.2929224371910095, 0.3721459209918976, 0.6052630543708801, 0.026685351505875587, 0.33464515209198, -0.046736039221286774, -0.2718939185142517, -0.07544820010662079, 0.2214682549238205, 0.017327930778265, -0.3567371964454651, 0.12267084419727325, -0.41248488426208496, 0.0637386217713356, -0.18929706513881683, -0.4603566825389862, 0.15983758866786957, 0.1394484043121338, -0.02856099046766758, 0.22592689096927643, -0.0982644110918045, -0.09226498007774353, -0.18309102952480316, 0.08253363519906998, -0.26726773381233215, -0.25211086869239807, 0.18555948138237, 0.05010925978422165, -0.009215721860527992, -0.19454433023929596, -0.528999388217926, 0.0066130515187978745, -0.41510242223739624, 0.3810446858406067, 0.06855928897857666, 0.294402539730072, 0.1994452327489853, 0.13432909548282623, 0.05192270129919052, -0.00690573500469327, 0.10429371148347855, -0.12607774138450623, -0.07611339539289474, 0.028591573238372803, -0.24891066551208496, -0.26661887764930725, -0.3360832929611206, 0.039258286356925964, 0.216721773147583, 0.028513358905911446, -0.12542901933193207, -0.42506498098373413, 0.0475456640124321, -0.014819500967860222, -0.06911389529705048, -0.12034827470779419, 0.27913138270378113, 0.11908108741044998, -0.38436827063560486, -0.17971104383468628, -0.09871253371238708, 0.39364781975746155, -0.030626289546489716, 0.07885139435529709, -0.052827849984169006, 0.223373144865036, 0.33065053820610046, 0.18804031610488892, 0.16580751538276672, 0.17306022346019745, 0.19120514392852783, 0.04311138018965721, 0.35447385907173157, -0.08780916780233383, 0.0302466731518507, 0.12306451052427292, -0.0005945563316345215, -0.12067461013793945, 0.3371354639530182, -0.06426388025283813, -0.32206064462661743, -0.047193821519613266, -0.25544556975364685, 0.23551833629608154, -0.3357473611831665, 0.16291478276252747, -0.08322082459926605, 0.20795157551765442, 0.14457882940769196, -0.017530709505081177, -0.2704375386238098, -0.12447509169578552, 0.1688181459903717, -0.046330392360687256, 0.01984461396932602, -0.16586951911449432, -0.15875113010406494, 0.1471540331840515, -0.4793487787246704, 0.3551133871078491, 0.3701286017894745, 0.4064059555530548, 0.005247343331575394, -0.45815345644950867, -0.2314203530550003, -0.21555042266845703, 0.40539079904556274, 0.037371762096881866, -0.4915459156036377, 0.172447070479393, 0.04091271758079529, -0.11912062019109726, 0.03371157869696617, -0.19567523896694183, 0.19825910031795502, 0.3001426160335541, 0.369838148355484, -0.15144091844558716, -0.0074989451095461845, 0.1832452416419983, 0.1294550895690918, -0.1419648975133896, -0.3136717975139618, -0.1315227746963501, -0.16494345664978027, -0.2886417508125305, 0.11279022693634033, 0.06830233335494995, 0.06318383663892746, -0.04426322877407074, 0.10118156671524048, 0.11398690193891525, -0.35508260130882263, 0.22695229947566986, -0.10126210749149323, 0.08309232443571091, -0.30067527294158936, -0.14809004962444305, -0.06982237845659256, -0.2594406306743622, 0.10079491883516312, 0.01712418720126152, -0.10755190253257751, -0.056650206446647644, -0.15407872200012207, -0.110650435090065, 0.43949949741363525, 0.25330254435539246, -0.09566117823123932, 0.3257365822792053, 0.03302404284477234, 0.23411411046981812, -0.18142254650592804, -0.1360902339220047, 0.05937550961971283, 0.10258004069328308, -0.2465280294418335, -0.12892138957977295, 0.0986175686120987, 0.15069593489170074, -0.15240831673145294, 0.18985553085803986, -0.26681387424468994, -0.29439836740493774, 0.16778503358364105, 0.12004010379314423, 0.9095364212989807, 0.13483908772468567, -0.1520117074251175, 0.15519803762435913, 0.11118568480014801, 0.16952082514762878, -0.24404247105121613, 0.3514419198036194, -0.2414567917585373, -0.1017528623342514, 0.12551893293857574, 0.06960074603557587, -0.09956672042608261, -0.38520848751068115, -0.4134458005428314, 0.4091988503932953, -0.007421769201755524, 0.10090676695108414, 0.2259977012872696, 0.1567283272743225, -0.45304614305496216, -0.16114412248134613, 0.17100392282009125, 0.2072254717350006, -0.027485162019729614, -0.37016066908836365, -0.2516440153121948, -0.01300886645913124, 0.3830425441265106, -0.19940185546875, -0.31938907504081726, 0.08297434449195862, 0.0018671248108148575, 0.11443968117237091, -0.002685554325580597, 0.1566874235868454, -0.15547814965248108, 0.05126062035560608, 0.36888402700424194, 0.19036626815795898, 0.0986371785402298, 0.25438857078552246, 0.15502798557281494, 0.08120892941951752, 0.10913299024105072, -0.010117139667272568, 0.3094765245914459, -0.18938621878623962, -0.2153474986553192, -0.12309203296899796, 0.12376707792282104, -0.372850239276886, -0.2755779027938843, -0.07872834801673889, 0.045932088047266006, -0.05715126916766167, 0.20893429219722748, 0.21600686013698578, -0.24403585493564606, -0.3961988687515259, 0.23446515202522278, -0.12535034120082855, -0.028121432289481163, 0.28571856021881104, 0.07328106462955475, -0.1556016504764557, -0.07447664439678192, 0.2832629382610321, 0.2904430031776428, -0.1586286425590515, 0.12741568684577942, 0.273131787776947, -0.23101535439491272, -0.20682311058044434, -0.3640139400959015, -0.2669880986213684, -0.2133323848247528, 0.36777424812316895, -0.03566889092326164, -0.24367913603782654, -0.2645130455493927, 0.3433012068271637, -0.019691526889801025, 0.4002848267555237, -0.10079249739646912, 0.00400717556476593, -0.4265575110912323, 0.06525857746601105, -0.16150961816310883, 0.09791207313537598, -0.17508533596992493, 0.08582861721515656, -0.24277491867542267, 0.047888364642858505, -0.49183934926986694, -0.17600174248218536, -0.3602730929851532, 0.007097601890563965, -0.010903310030698776, -0.13917887210845947, 0.006789240054786205, 0.11397098004817963, 0.2130071371793747, 0.5499798059463501, 0.031944118440151215, -0.32892510294914246, -0.07384331524372101, 0.06784175336360931, 0.03725576773285866, 0.04546899348497391, 0.25633132457733154, 0.06751122325658798, 0.0980999767780304, -0.19979020953178406, -0.24016883969306946, 0.26919320225715637, -0.10490922629833221, 0.2233254611492157, -0.04960571601986885, 0.10975900292396545, 0.4904944896697998, -0.033371396362781525, 0.27843230962753296, 0.3470146059989929, -0.3347293436527252, 0.11552564799785614, -0.3049856722354889, -0.0825633853673935, 0.11679375171661377, 0.2779826819896698, 0.2638314366340637, 0.0756746158003807, -0.04728023707866669, 0.008730288594961166, -0.46498918533325195, -0.12572111189365387, 0.27588528394699097, 0.16651836037635803, -0.22849267721176147, -0.220970019698143, 0.05897996947169304, 0.4076305031776428, -0.22298604249954224, -0.02302536368370056, -0.24932897090911865, -0.14607854187488556, 0.09149131178855896, 0.19948957860469818, 0.1984771490097046, -0.3256814479827881, 0.2178010195493698, 0.1551896631717682, 0.03340906277298927, -0.35936862230300903, -0.1635664999485016, -0.2337307631969452, -0.0828162133693695, -0.28589800000190735, 0.1567956805229187, 0.09950856864452362, 0.3854924738407135, 0.22135326266288757, 0.080759696662426, 0.23060914874076843, 0.05231250450015068, 0.2433905303478241, 0.06447446346282959, 0.14838993549346924, 0.21519175171852112, 0.3331509828567505, 0.15826013684272766, 0.18366390466690063, 0.032810356467962265, 0.17745548486709595, 0.26544344425201416, -0.09669400006532669, -0.14155173301696777, 0.14326995611190796, -0.20700553059577942, -0.1783248484134674, 0.01847793534398079, -0.29443928599357605, -0.155366912484169, -0.008935894817113876, 0.2534753680229187, 0.20839709043502808, 0.15380454063415527, 0.06491697579622269, 0.14517083764076233, -0.10364033281803131, 0.19614198803901672, -0.147380530834198, 0.5146204233169556, -0.4256715476512909, 0.2399810552597046, 0.5177983045578003, 0.02516849711537361, 0.23029740154743195, 0.5794848799705505, 0.501235842704773, 0.3499186933040619, 0.10472729802131653, 0.09380163997411728, -0.295225590467453, -0.11466948688030243, -0.20024774968624115, 0.1599200814962387, 0.40193983912467957, -0.14237213134765625, 0.18866822123527527, 0.19547197222709656, -0.28436219692230225, 0.5538961291313171, 0.0514594241976738, 0.009810609742999077, -0.23525483906269073, 0.12158061563968658, 0.4837323725223541, -0.07838726788759232, -0.027494661509990692, -0.19997528195381165, -0.395700603723526, -0.12411019206047058, 0.26548370718955994, -0.08370645344257355, 0.13845908641815186, -0.13659702241420746, 0.1734084039926529, 0.10107876360416412, 0.43247729539871216, -0.010232973843812943, -0.09508531540632248, -0.10821938514709473, -0.18384549021720886, -0.2265796959400177, 0.07885302603244781, 0.00285894051194191, 0.3987165689468384, 0.026449037715792656, 0.26167532801628113, 0.1090836375951767, 0.009263021871447563, 0.12171266973018646, 0.03902951627969742, -0.3054107129573822, -0.1619175225496292, -0.45061397552490234, 0.08245120942592621, 0.5502417683601379, -0.21325325965881348, 0.41976144909858704, -0.18131953477859497, -0.02419206127524376, -0.4968675673007965, 0.26380467414855957, -0.03202110156416893, 0.15942348539829254, 0.3557061553001404, 0.4144420027732849, 0.11232277005910873, 0.30916762351989746, 0.09395446628332138, -0.3395679295063019, -0.14666491746902466, -0.056909579783678055, -0.3227561414241791, -0.5072603225708008, -0.1046765074133873, 0.10652251541614532, 0.13217976689338684, -0.14017526805400848, -0.23490707576274872, 0.014069737866520882, 0.2517046630382538, -0.03420576453208923, 0.012570604681968689, -0.21235592663288116, 0.23832523822784424, -0.06768152862787247, 0.043736886233091354, -0.25061625242233276, 0.38137421011924744, 0.18246418237686157, 0.26561376452445984, -0.21947553753852844, -0.5371646285057068, 0.5467708110809326, -0.030599672347307205, -0.4179708659648895, 0.04595928266644478, 0.1813925802707672, 0.5277979969978333, -0.25120991468429565, -0.6958247423171997, -0.10130013525485992, 0.24190808832645416, 0.2776513993740082, -0.2349161058664322, 0.25771307945251465, -0.21437755227088928, 0.13253997266292572, -0.023285875096917152, 0.15756872296333313, -0.010462116450071335, -0.5030390024185181, -0.1411714404821396, -0.19540701806545258 ]
https://github.com/huggingface/datasets/pull/2111
Compute WER metric iteratively
@lhoestq @patrickvonplaten are you sure of the parameter name `concatenate_texts`? I was thinking about something like `iter`...
Compute WER metric iteratively to avoid MemoryError. Fix #2078.
17
text: Compute WER metric iteratively Compute WER metric iteratively to avoid MemoryError. Fix #2078. @lhoestq @patrickvonplaten are you sure of the parameter name `concatenate_texts`? I was thinking about something like `iter`...
[ -0.3111961781978607, -0.24600829184055328, -0.15530246496200562, 0.21342679858207703, 0.12106790393590927, -0.07827367633581161, 0.08248104155063629, 0.41443440318107605, 0.02557128295302391, 0.3262333869934082, 0.15101461112499237, 0.023541055619716644, 0.010449346154928207, -0.09931740909814835, -0.2734452784061432, -0.13504967093467712, -0.18811169266700745, 0.12385160475969315, -0.370760053396225, 0.11385281383991241, -0.402332067489624, 0.2864395081996918, -0.2906183898448944, -0.2438591569662094, -0.09915037453174591, 0.01866106130182743, -0.20916719734668732, 0.34555232524871826, -0.18767014145851135, -0.2629374563694, -0.16418491303920746, 0.22117654979228973, -0.11463211476802826, 0.2954382300376892, -0.000098719923698809, -0.14231202006340027, 0.05614272877573967, -0.12858915328979492, -0.27670061588287354, -0.10892540216445923, 0.04513384401798248, -0.1968834400177002, -0.15451809763908386, -0.24954164028167725, 0.06068991869688034, 0.1850729137659073, 0.031066633760929108, -0.41947850584983826, 0.04031689465045929, 0.36020180583000183, 0.3135034441947937, 0.041814837604761124, 0.046772923320531845, -0.23403261601924896, -0.15092167258262634, -0.24664102494716644, 0.047895997762680054, 0.19437777996063232, 0.158508762717247, 0.1156044602394104, -0.30363965034484863, 0.29664453864097595, 0.13049350678920746, 0.007614875212311745, 0.08882778882980347, 0.18030691146850586, 0.21294143795967102, -0.054820865392684937, 0.0062758177518844604, -0.16557955741882324, 0.41955915093421936, -0.3411521017551422, 0.12127900123596191, 0.220413476228714, -0.1262671798467636, -0.5856460928916931, 0.32589706778526306, -0.03310510516166687, -0.14844708144664764, 0.029808174818754196, -0.07576313614845276, -0.18875747919082642, -0.46246030926704407, -0.014289073646068573, 0.06719505786895752, 0.22955195605754852, 0.07898278534412384, -0.0722121074795723, 0.23334018886089325, -0.21051158010959625, 0.2714897394180298, -0.01479959487915039, -0.15908931195735931, 0.10437922924757004, -0.18409401178359985, -0.06066923215985298, -0.1287004053592682, -0.47608426213264465, 0.26233217120170593, -0.11247412860393524, 0.14179259538650513, 0.13801917433738708, 0.31238701939582825, 0.2027253806591034, -0.11641506850719452, 0.360021710395813, 0.2703448534011841, 0.13469922542572021, -0.10597939789295197, 0.15015625953674316, -0.05433378368616104, -0.18736734986305237, -0.032478854060173035, -0.4467443525791168, 0.1543513387441635, -0.012883510440587997, -0.1146763488650322, 0.1557455062866211, -0.1299687623977661, 0.13089236617088318, -0.14571437239646912, -0.1801026612520218, -0.02483043447136879, 0.21384382247924805, 0.0990670770406723, 0.24749904870986938, 0.46430301666259766, -0.058209046721458435, -0.023607205599546432, -0.030106399208307266, -0.30297374725341797, 0.24492904543876648, -0.15149644017219543, 0.16400432586669922, -0.14328192174434662, 0.03763207048177719, -0.007173084653913975, 0.01602950319647789, 0.3033839464187622, -0.3019478917121887, -0.005087997764348984, -0.07924394309520721, -0.018630027770996094, -0.09967154264450073, 0.08940152823925018, -0.1767161339521408, 0.02186191827058792, -0.2888050079345703, 0.06611541658639908, 0.13870707154273987, -0.1862693727016449, -0.10084028542041779, -0.1738223284482956, 0.3647804260253906, 0.2401280552148819, -0.01589726284146309, 0.3055356442928314, 0.26788046956062317, 0.32245516777038574, 0.051267992705106735, -0.04645184427499771, 0.1695019155740738, -0.30210360884666443, -0.15727488696575165, 0.10400042682886124, 0.2834357023239136, -0.22758802771568298, -0.1557999849319458, 0.2003488838672638, 0.03616851568222046, 0.2835196852684021, 0.2992495000362396, 0.2092275768518448, 0.11354751884937286, -0.12567687034606934, 0.3397320508956909, 0.32670503854751587, -0.34186363220214844, 0.07332851737737656, 0.15026873350143433, -0.32573235034942627, -0.06850536167621613, 0.24173182249069214, -0.1499464362859726, -0.033294059336185455, 0.15757574141025543, 0.617711067199707, -0.03703516349196434, -0.06643132865428925, -0.1403336077928543, -0.3222335875034332, 0.17010049521923065, 0.04471193999052048, -0.13463684916496277, 0.34980639815330505, 0.11467567831277847, -0.14781248569488525, -0.14694739878177643, 0.3222852945327759, -0.3976728022098541, 0.12345423549413681, 0.19577758014202118, 0.3061079680919647, -0.16892804205417633, 0.1691977083683014, -0.0897052139043808, 0.2446749210357666, -0.03659386560320854, -0.013609349727630615, 0.10026738047599792, 0.18577256798744202, 0.16300301253795624, -0.11224687844514847, 0.1629001647233963, 0.1848134994506836, 0.06355861574411392, 0.3307424783706665, 0.19602108001708984, -0.04191480949521065, -0.09965115785598755, -0.3105379641056061, 0.2774432599544525, -0.4621134400367737, -0.014013093896210194, -0.05903756245970726, -0.14429296553134918, -0.22818247973918915, -0.09312829375267029, 0.1146666407585144, 0.047141801565885544, 0.0755038782954216, 0.10179997980594635, 0.07847488671541214, 0.47355955839157104, -0.29573923349380493, -0.12796801328659058, 0.23237335681915283, 0.009591475129127502, -0.019710464403033257, 0.008017998188734055, -0.048798732459545135, -0.40178510546684265, 0.06040951609611511, -0.2095661461353302, 0.32618317008018494, 0.1791793256998062, 0.08961717039346695, 0.29407548904418945, 0.10385075211524963, 0.0818149670958519, 0.09870994091033936, -0.05345116928219795, 0.007963854819536209, -0.12752807140350342, 0.4445197582244873, -0.19065241515636444, 0.004592500627040863, -0.15782181918621063, -0.19028179347515106, -0.07594136148691177, 0.3953854441642761, 0.09098194539546967, 0.040429554879665375, 0.248507559299469, 0.05701857805252075, -0.11406038701534271, -0.5429246425628662, -0.37644076347351074, 0.40970557928085327, 0.1688147336244583, -0.024228248745203018, 0.28762495517730713, 0.04418036341667175, -0.12131866812705994, 0.3713967204093933, 0.12469838559627533, 0.14480239152908325, 0.3635246157646179, -0.00937587395310402, -0.3765123784542084, -0.22268646955490112, -0.060191117227077484, -0.022541239857673645, 0.13009361922740936, -0.17639781534671783, -0.026523033156991005, 0.08493572473526001, -0.10767506808042526, -0.21351712942123413, -0.014984714798629284, 0.009834399446845055, -0.29066333174705505, 0.08348482847213745, 0.277791827917099, -0.0758485496044159, 0.1592349261045456, 0.40097683668136597, 0.6116563677787781, 0.3376018702983856, 0.25440502166748047, -0.12786461412906647, -0.17228426039218903, 0.003333158791065216, 0.20079009234905243, -0.05001211538910866, -0.34763526916503906, 0.2520366311073303, -0.4956264793872833, 0.22112174332141876, -0.09860508143901825, -0.22857433557510376, 0.05773833021521568, -0.03874131292104721, -0.016297580674290657, 0.17623403668403625, -0.008251972496509552, -0.11671873927116394, -0.1968531608581543, 0.22333626449108124, -0.07321389019489288, -0.22942033410072327, 0.21979586780071259, -0.04909041151404381, -0.13158150017261505, -0.09383945167064667, -0.408253014087677, -0.0744919627904892, -0.4732803404331207, 0.291637659072876, 0.08014731109142303, 0.28148773312568665, 0.15243744850158691, 0.22361096739768982, 0.18495586514472961, 0.10676868259906769, 0.10953618586063385, -0.15371905267238617, -0.17793649435043335, 0.11509423702955246, -0.27447953820228577, -0.2350795716047287, -0.11610354483127594, -0.0029988549649715424, 0.2826669216156006, 0.10393989831209183, -0.2096644937992096, -0.3079018294811249, 0.1420345902442932, -0.07100166380405426, -0.22524985671043396, -0.06662992388010025, 0.16341006755828857, 0.10860781371593475, -0.3465918302536011, -0.24027886986732483, -0.2248634696006775, 0.27105051279067993, -0.020746339112520218, 0.14630313217639923, -0.10847223550081253, 0.3050388991832733, 0.18192730844020844, 0.24452875554561615, 0.2362571656703949, 0.10611634701490402, 0.16223478317260742, -0.04024450480937958, 0.1829526126384735, 0.13635432720184326, -0.2230960875749588, 0.07222972810268402, 0.021011874079704285, -0.2216358780860901, 0.22273436188697815, -0.12881934642791748, -0.15208208560943604, -0.16219592094421387, -0.13830165565013885, 0.1401386260986328, -0.17834296822547913, 0.20582593977451324, -0.07489543408155441, 0.30861109495162964, -0.06754505634307861, -0.1115574985742569, -0.267527312040329, -0.0055678533390164375, 0.027046658098697662, 0.005625858902931213, -0.12287987023591995, -0.20404063165187836, -0.16231563687324524, 0.05809297785162926, -0.4823238253593445, 0.3657350540161133, 0.246604323387146, 0.4243929386138916, -0.032436031848192215, -0.3739301860332489, -0.13898368179798126, -0.1750319004058838, 0.6622119545936584, -0.008833400905132294, -0.5555543899536133, 0.23065927624702454, -0.034333132207393646, -0.04971031844615936, 0.1472836285829544, -0.24732868373394012, 0.2826066315174103, 0.19669194519519806, 0.37956732511520386, -0.23995321989059448, 0.11725878715515137, 0.17515401542186737, 0.05956671014428139, -0.1628175675868988, -0.22974252700805664, -0.05140361562371254, -0.18957236409187317, -0.33550870418548584, 0.01621522754430771, -0.07293729484081268, 0.44611749053001404, 0.15651573240756989, 0.2392876297235489, 0.13285566866397858, -0.216050922870636, 0.23487374186515808, -0.23753222823143005, 0.15563499927520752, -0.23727917671203613, 0.05414677783846855, 0.13393853604793549, -0.13632184267044067, 0.11502693593502045, 0.153394877910614, 0.014630120247602463, -0.24500080943107605, 0.036369603127241135, -0.1995621621608734, 0.5215646028518677, 0.1841995269060135, -0.08027233928442001, 0.27952101826667786, 0.06013496220111847, 0.3114720582962036, -0.1668355017900467, 0.07021849602460861, 0.24169044196605682, 0.1422445923089981, -0.5141191482543945, -0.13940979540348053, -0.011371493339538574, 0.1335805356502533, 0.08266781270503998, 0.43981459736824036, -0.3695176839828491, -0.36259403824806213, 0.08739685267210007, 0.1408652514219284, 0.8431352376937866, 0.04111538082361221, -0.1327648013830185, 0.12444175034761429, 0.20510070025920868, -0.05378030613064766, -0.3292959928512573, 0.31945639848709106, -0.36046212911605835, -0.214603990316391, 0.06184753030538559, -0.08876045048236847, -0.04923883080482483, -0.24508370459079742, -0.5067986845970154, 0.14809170365333557, -0.13917504251003265, 0.07220561057329178, 0.0792561024427414, -0.0672241821885109, -0.3822653889656067, -0.23163504898548126, 0.16089192032814026, 0.23581546545028687, -0.022869527339935303, -0.34329909086227417, -0.20751062035560608, -0.12113167345523834, 0.25729501247406006, -0.2546297013759613, -0.2187437117099762, 0.024610083550214767, -0.17516100406646729, 0.11984039843082428, 0.10173548758029938, 0.08289992809295654, -0.2708072364330292, 0.021335642784833908, 0.4142202138900757, 0.08175373822450638, 0.08270369470119476, 0.077988401055336, 0.0724845826625824, -0.19154895842075348, -0.05963355302810669, 0.013364673592150211, 0.16907602548599243, -0.09757445752620697, -0.09920242428779602, 0.06934777647256851, 0.16091877222061157, -0.37125855684280396, -0.2806324362754822, -0.02197122573852539, -0.06810884177684784, -0.1899918168783188, 0.18702475726604462, 0.21971182525157928, -0.1942330002784729, -0.28739482164382935, 0.2494538128376007, 0.059208374470472336, -0.256962388753891, 0.3185187876224518, 0.004068251699209213, -0.23054835200309753, 0.03045911341905594, 0.25967755913734436, 0.1999407410621643, -0.17767617106437683, 0.1640169620513916, 0.22583816945552826, -0.2166135460138321, -0.2893558442592621, -0.35474491119384766, -0.1525401473045349, -0.24485698342323303, 0.44038811326026917, 0.06159922853112221, -0.12154967337846756, -0.1260758936405182, 0.42117050290107727, 0.0654655173420906, 0.20887205004692078, -0.030491378158330917, -0.13824838399887085, -0.3695017993450165, -0.002173677086830139, 0.027088264003396034, 0.09014050662517548, -0.13681560754776, 0.128418430685997, -0.20836101472377777, 0.15023556351661682, -0.49820277094841003, -0.2627915143966675, -0.5146952867507935, 0.07964271306991577, 0.08459743112325668, -0.08892685920000076, 0.1843888759613037, 0.29926687479019165, 0.2648389935493469, 0.5093098282814026, -0.08710900694131851, -0.3605590760707855, 0.0014545377343893051, 0.029287606477737427, -0.04003226011991501, -0.007837733253836632, 0.13608330488204956, -0.010764709673821926, -0.08098223805427551, -0.16821937263011932, -0.28394100069999695, 0.1007888987660408, -0.12316310405731201, 0.09471454471349716, -0.17827163636684418, 0.037703584879636765, 0.3826296329498291, -0.053117573261260986, 0.24943023920059204, 0.3175433576107025, -0.31475740671157837, 0.11546318978071213, -0.31965669989585876, -0.14356344938278198, 0.05893699824810028, 0.18210133910179138, 0.37312304973602295, -0.0186668299138546, 0.051589690148830414, -0.16018718481063843, -0.35377416014671326, -0.11011183261871338, 0.3167458474636078, 0.41964346170425415, -0.38314947485923767, 0.009187677875161171, -0.11966236680746078, 0.3902149498462677, -0.12237067520618439, -0.07454345375299454, -0.24212893843650818, -0.14791643619537354, 0.1184762716293335, 0.1777563989162445, 0.049311380833387375, -0.28032368421554565, 0.14208045601844788, 0.1053236797451973, 0.12654359638690948, -0.3300330638885498, -0.2087644636631012, -0.1604023575782776, 0.03829050436615944, -0.08519729971885681, 0.14977921545505524, 0.3870795667171478, 0.22808992862701416, 0.24668434262275696, -0.05101635307073593, 0.22061818838119507, -0.0661703571677208, -0.02541874721646309, -0.06244433671236038, 0.008099518716335297, 0.16475039720535278, 0.2873759865760803, 0.10806306451559067, 0.11723670363426208, -0.09107385575771332, 0.07344843447208405, 0.06981728225946426, 0.001714502926915884, -0.06594771891832352, 0.0867890864610672, -0.21553435921669006, -0.020826540887355804, -0.08923401683568954, -0.2497703731060028, -0.14087305963039398, -0.11255379021167755, 0.4048050343990326, 0.276925265789032, 0.3000262379646301, -0.03249196708202362, 0.195553719997406, -0.17886540293693542, 0.13198241591453552, 0.14368607103824615, 0.11695949733257294, -0.4947681725025177, 0.2626244127750397, 0.3876824378967285, 0.15611925721168518, 0.1614973396062851, 0.387392520904541, 0.5514276623725891, 0.3680272698402405, 0.008669971488416195, 0.10889880359172821, -0.37503835558891296, -0.16292685270309448, -0.12865690886974335, 0.24944648146629333, 0.2582574784755707, -0.20506826043128967, 0.3307904303073883, 0.22957997024059296, -0.26481539011001587, 0.3801509737968445, 0.13986606895923615, 0.09564943611621857, -0.10854470729827881, -0.08559765666723251, 0.18240462243556976, 0.022495076060295105, -0.16657736897468567, -0.3211861252784729, -0.4975874125957489, -0.1203588992357254, 0.31802594661712646, -0.18970322608947754, 0.19675952196121216, -0.019903771579265594, 0.18228431046009064, 0.16427555680274963, 0.453066885471344, 0.02480943500995636, -0.0011330880224704742, -0.29969897866249084, -0.2606375813484192, -0.061445362865924835, 0.13777875900268555, 0.11301164329051971, 0.22176063060760498, -0.1530258059501648, 0.40365442633628845, 0.13486820459365845, -0.1533428281545639, 0.09421245753765106, -0.040585413575172424, -0.3310929536819458, 0.0652322918176651, -0.4148504137992859, -0.02308579906821251, 0.4682234525680542, -0.11597077548503876, 0.397407203912735, -0.1191493570804596, 0.10270397365093231, -0.321746826171875, 0.32653844356536865, -0.21325725317001343, 0.1451101154088974, 0.4185779094696045, 0.2899428606033325, 0.06488538533449173, 0.0772414356470108, 0.2139367163181305, -0.45272478461265564, 0.001628424972295761, 0.10691525042057037, -0.3640214502811432, -0.30439379811286926, -0.06103212386369705, 0.27020370960235596, -0.028412606567144394, -0.11201853305101395, -0.17517340183258057, -0.051545873284339905, 0.2508939802646637, 0.014481522142887115, -0.017263228073716164, -0.07166435569524765, 0.21693752706050873, 0.035856619477272034, -0.008928230032324791, -0.10801073163747787, 0.34839317202568054, 0.17753955721855164, 0.3639325201511383, -0.1540917605161667, -0.5604335069656372, 0.47304973006248474, -0.02077104151248932, -0.5519397854804993, 0.18777567148208618, 0.11916547268629074, 0.38737577199935913, -0.04685109853744507, -0.6563955545425415, -0.07285889238119125, 0.2779654562473297, 0.11093001812696457, -0.28461796045303345, 0.3896721303462982, -0.1139371395111084, 0.17657141387462616, 0.09281088411808014, 0.0715663880109787, 0.036825504153966904, -0.3576377034187317, -0.10591496527194977, -0.22537101805210114 ]
https://github.com/huggingface/datasets/pull/2111
Compute WER metric iteratively
Not sure about the name, if you can improve it feel free to do so ^^' The old implementation computes the WER on the concatenation of all the input texts, while the new one makes WER measures computation independent for each reference/prediction pair. That's why I thought of `concatenate_texts`
Compute WER metric iteratively to avoid MemoryError. Fix #2078.
49
text: Compute WER metric iteratively Compute WER metric iteratively to avoid MemoryError. Fix #2078. Not sure about the name, if you can improve it feel free to do so ^^' The old implementation computes the WER on the concatenation of all the input texts, while the new one makes WER measures computation independent for each reference/prediction pair. That's why I thought of `concatenate_texts`
[ -0.15238240361213684, -0.35215502977371216, -0.068848617374897, -0.21293102204799652, -0.06032054126262665, -0.089266836643219, 0.15329240262508392, 0.4552992582321167, -0.02597656473517418, 0.4277283549308777, 0.24735155701637268, 0.025341857224702835, 0.06170370429754257, -0.1581878513097763, -0.10772403329610825, -0.14166130125522614, 0.05220161750912666, 0.03035081923007965, -0.2820834517478943, 0.1073569804430008, -0.351427286863327, 0.02276672050356865, -0.41083741188049316, -0.11964297294616699, -0.11459251493215561, 0.2255251109600067, -0.3123881220817566, 0.11965380609035492, -0.16226637363433838, -0.4391612410545349, 0.07085514068603516, 0.26523342728614807, -0.2055073231458664, 0.23331093788146973, -0.00010239928815281019, -0.11119317263364792, 0.2953023910522461, -0.16312375664710999, -0.042924974113702774, -0.09402672946453094, -0.12932297587394714, -0.2986423075199127, 0.03070741705596447, -0.20247673988342285, 0.2051253616809845, 0.16077858209609985, 0.2011006772518158, -0.12881337106227875, -0.12955622375011444, 0.09097994118928909, 0.2664538323879242, 0.05010226368904114, 0.17003516852855682, -0.2585899531841278, -0.03138759732246399, -0.20003275573253632, -0.005652688443660736, 0.1487521082162857, 0.22326095402240753, 0.05424320697784424, -0.47187381982803345, 0.27337175607681274, 0.09157805144786835, 0.05247156322002411, 0.19656875729560852, 0.13523417711257935, 0.07473108172416687, -0.09531056880950928, -0.24575966596603394, -0.010847315192222595, 0.43743011355400085, -0.1703740656375885, 0.20884723961353302, 0.13938048481941223, -0.07600198686122894, -0.4864131212234497, 0.2555423080921173, -0.05797254294157028, -0.34273821115493774, -0.05216751620173454, -0.10629810392856598, -0.09765215963125229, -0.41360458731651306, 0.07438398897647858, -0.038624368607997894, 0.49384790658950806, 0.15109498798847198, -0.05271168053150177, 0.4191615879535675, 0.015685729682445526, 0.3605532944202423, 0.003087356686592102, 0.051976289600133896, -0.04274199530482292, -0.3183525800704956, -0.09125088155269623, -0.12155019491910934, -0.3717232048511505, 0.19631892442703247, -0.07013756781816483, 0.14085620641708374, 0.25122061371803284, 0.3163469433784485, 0.2726232707500458, -0.21629035472869873, 0.5368670225143433, 0.2039329707622528, -0.03613710775971413, 0.025885896757245064, 0.3047221302986145, -0.04008305445313454, 0.04340415820479393, 0.1272965669631958, -0.30674418807029724, 0.10447168350219727, -0.0637727752327919, -0.1986578106880188, 0.1529514491558075, -0.2288445383310318, 0.2070178985595703, -0.2997274100780487, -0.26672419905662537, 0.026097197085618973, 0.05958534777164459, 0.06310324370861053, 0.3867572247982025, 0.42261844873428345, -0.3010913133621216, 0.05089913308620453, -0.0720909833908081, -0.25245046615600586, 0.09535132348537445, -0.30507007241249084, 0.11505202949047089, -0.11064210534095764, -0.07957476377487183, 0.14819064736366272, 0.01908082142472267, 0.3189256191253662, -0.31501102447509766, -0.023921463638544083, 0.03263263404369354, 0.3703972399234772, -0.07353736460208893, -0.025700189173221588, -0.35947877168655396, 0.04910159483551979, -0.3267560601234436, -0.03015829622745514, 0.24428817629814148, -0.27201271057128906, -0.17876389622688293, -0.09425121545791626, 0.2822437286376953, -0.021336643025279045, -0.1278180181980133, 0.19732312858104706, 0.48078808188438416, 0.11795487999916077, 0.11554612219333649, 0.11576559394598007, 0.15749576687812805, -0.2957259714603424, -0.1006435826420784, 0.08035340905189514, 0.24298812448978424, -0.2739231586456299, -0.10661453008651733, 0.1338757574558258, -0.06294161081314087, 0.15531094372272491, 0.1991906613111496, -0.001830030931159854, 0.033401500433683395, -0.16108550131320953, 0.39936012029647827, 0.37004372477531433, -0.3743026852607727, -0.05905994027853012, -0.026062622666358948, -0.048117466270923615, 0.09797460585832596, 0.1592523455619812, -0.04849476367235184, -0.20938391983509064, 0.1725442260503769, 0.563758373260498, -0.24296508729457855, -0.0378546416759491, -0.2089105099439621, -0.23491781949996948, 0.037013232707977295, 0.159826397895813, -0.15372855961322784, 0.3109568953514099, 0.05562857538461685, -0.18104004859924316, -0.08215699344873428, 0.39674341678619385, -0.32449159026145935, 0.011204680427908897, 0.11515065282583237, 0.2455327957868576, -0.2159683257341385, 0.10956624895334244, -0.14482149481773376, 0.1981581151485443, -0.07899928092956543, -0.22658398747444153, 0.2393180876970291, 0.30214184522628784, 0.1633545458316803, -0.0831276997923851, 0.11893586069345474, 0.10989490151405334, 0.09699836373329163, 0.2908570170402527, 0.10184809565544128, -0.09989899396896362, -0.11844280362129211, -0.29640352725982666, 0.22441652417182922, -0.4403892457485199, -0.06166643649339676, -0.10584257543087006, -0.18954096734523773, -0.18375331163406372, -0.08893904834985733, -0.007682204246520996, 0.13287681341171265, -0.005648627877235413, 0.06274004280567169, -0.03926951438188553, 0.5285579562187195, -0.32154086232185364, -0.25098347663879395, -0.09670265763998032, 0.1604951024055481, -0.20403192937374115, 0.07681688666343689, -0.060485564172267914, -0.2400524765253067, -0.03951854258775711, -0.07131955772638321, 0.1799495816230774, 0.0953359380364418, 0.2769554555416107, 0.14557170867919922, 0.08183769881725311, 0.08774835616350174, -0.12991899251937866, -0.007637593895196915, -0.15031813085079193, -0.24439533054828644, 0.3255177140235901, -0.23118586838245392, 0.09046630561351776, -0.03357527405023575, -0.3574255406856537, -0.036391861736774445, 0.6341630816459656, -0.07948659360408783, 0.08530345559120178, 0.45184463262557983, -0.02147572487592697, -0.30327850580215454, -0.5071858167648315, -0.11375351250171661, 0.4964950680732727, 0.13059844076633453, -0.10391035676002502, 0.3083690106868744, -0.009515848942101002, -0.17244772613048553, 0.4548133611679077, 0.3190046548843384, 0.10155940800905228, 0.180747851729393, 0.2436659038066864, -0.29509201645851135, -0.1633017659187317, -0.011661244556307793, -0.1184057667851448, 0.025933168828487396, 0.06614552438259125, 0.004440508782863617, -0.19052405655384064, -0.1526033580303192, -0.5427528023719788, 0.00976064894348383, -0.13208666443824768, -0.4416366219520569, 0.011773498728871346, 0.17421746253967285, -0.13980260491371155, 0.10865337401628494, 0.3127171993255615, 0.47655367851257324, 0.037693046033382416, 0.11729832738637924, -0.08585314452648163, -0.15380598604679108, -0.13818278908729553, 0.16077879071235657, -0.05290624499320984, -0.3743569254875183, 0.18314698338508606, -0.28178367018699646, 0.21035060286521912, -0.009744487702846527, -0.5686809420585632, 0.17775125801563263, -0.03474216163158417, -0.09640820324420929, 0.2635640501976013, -0.23027198016643524, -0.12571337819099426, -0.36288803815841675, 0.08484704047441483, -0.11878396570682526, -0.26314055919647217, 0.15425683557987213, -0.019838744774460793, -0.06277183443307877, -0.1609468311071396, -0.4957437813282013, -0.1066201701760292, -0.3305942416191101, 0.24077565968036652, 0.020654194056987762, 0.2604527771472931, 0.08399797230958939, 0.04682399705052376, 0.1687268316745758, 0.178748220205307, 0.05761941522359848, -0.1530960351228714, -0.16718751192092896, 0.09997458010911942, -0.2990724742412567, -0.19845303893089294, -0.299416184425354, -0.07451789081096649, 0.2941638231277466, 0.10454494506120682, -0.171761155128479, -0.2647908329963684, 0.030127258971333504, -0.004105854779481888, -0.04006011784076691, -0.022988202050328255, 0.34578394889831543, 0.19377344846725464, -0.37705284357070923, -0.16225698590278625, -0.13821876049041748, 0.18581023812294006, -0.04944787919521332, 0.13080868124961853, 0.026097511872649193, 0.01712634228169918, 0.2976779341697693, 0.19267846643924713, 0.17453275620937347, -0.1283772736787796, 0.06313081830739975, 0.13776394724845886, 0.16269464790821075, -0.1992824375629425, -0.07522730529308319, 0.062047701328992844, -0.061215534806251526, -0.014462522231042385, 0.22399693727493286, -0.20173221826553345, -0.28882330656051636, -0.08543804287910461, -0.22700539231300354, 0.29923129081726074, -0.20309196412563324, 0.010894061997532845, -0.07568082958459854, 0.3647898733615875, 0.12346827983856201, -0.06795110553503036, -0.24436812102794647, -0.20194104313850403, 0.07424604892730713, -0.03289829194545746, -0.21491479873657227, -0.25273025035858154, -0.1946108043193817, 0.0023943425621837378, -0.6008089780807495, 0.47408902645111084, 0.32800957560539246, 0.39887499809265137, 0.21742357313632965, -0.4835173785686493, -0.1735602170228958, -0.02417670376598835, 0.37525588274002075, 0.1342146247625351, -0.6299425363540649, 0.1096566766500473, 0.15649063885211945, 0.02116202749311924, 0.007710937410593033, -0.1478273570537567, 0.2432147115468979, 0.33006370067596436, 0.3455783426761627, 0.006639100611209869, -0.14828388392925262, 0.46451762318611145, 0.2320868968963623, -0.08452296257019043, -0.25354868173599243, -0.24839523434638977, -0.09231233596801758, -0.061853982508182526, -0.04619657248258591, -0.04360853135585785, 0.2993299067020416, -0.0011524921283125877, 0.2959443926811218, 0.10175566375255585, -0.23186182975769043, 0.22214405238628387, -0.12727658450603485, -0.06657630205154419, -0.19552460312843323, -0.11470213532447815, 0.07927130162715912, -0.03827795386314392, 0.10030364990234375, 0.02746247872710228, 0.04107866808772087, -0.3278046250343323, 0.08468756079673767, -0.16621851921081543, 0.47320592403411865, 0.06355374306440353, -0.03830020874738693, 0.4080014228820801, 0.06665439158678055, 0.1804339438676834, -0.33029356598854065, -0.08639528602361679, 0.14511774480342865, 0.17718739807605743, -0.3145879805088043, -0.11599450558423996, 0.13493585586547852, 0.2026100903749466, -0.12126923352479935, 0.4113956093788147, -0.32131099700927734, -0.21948792040348053, 0.18032358586788177, 0.15683381259441376, 0.8461918830871582, 0.06679553538560867, 0.038430895656347275, 0.2775112986564636, 0.11676542460918427, 0.06051015853881836, -0.2178608626127243, 0.4763314127922058, -0.27406254410743713, -0.22630853950977325, 0.048939600586891174, -0.1564396470785141, 0.022982191294431686, -0.4052625894546509, -0.4172615706920624, 0.4180797338485718, -0.05525411292910576, 0.09649486839771271, 0.1971450001001358, -0.05503212288022041, -0.09523514658212662, -0.2458696961402893, 0.1830431967973709, 0.18056358397006989, 0.01165793463587761, -0.3016734719276428, -0.11972538381814957, 0.02940351888537407, 0.19016027450561523, -0.2579915225505829, -0.2965002655982971, 0.1469292938709259, -0.0018517682328820229, 0.31610727310180664, 0.16144372522830963, 0.1398579329252243, 0.012006063014268875, 0.2378857135772705, 0.4506983160972595, 0.17860695719718933, 0.18696902692317963, 0.3030047118663788, 0.14764410257339478, 0.018033938482403755, 0.14087016880512238, -0.14942610263824463, 0.4207022786140442, -0.037944529205560684, -0.31512171030044556, 0.07387055456638336, 0.1349775493144989, -0.4742056727409363, -0.4539044201374054, 0.16004729270935059, 0.022311076521873474, -0.11789907515048981, 0.1905377209186554, 0.27760112285614014, -0.06714441627264023, -0.28908243775367737, 0.19136185944080353, -0.11328980326652527, -0.1973627507686615, 0.2863190770149231, -0.04588264599442482, -0.25656771659851074, 0.11632393300533295, 0.2820221781730652, 0.3194175362586975, -0.264430969953537, 0.3439213037490845, 0.04546457156538963, -0.07656623423099518, -0.19195854663848877, -0.2266700267791748, -0.19348128139972687, -0.11606545001268387, 0.3930005133152008, -0.11181503534317017, -0.22465907037258148, -0.14719292521476746, 0.4820164144039154, -0.06464883685112, 0.45994171500205994, -0.08025020360946655, -0.0013525187969207764, -0.5068575739860535, -0.10510168969631195, -0.007136847823858261, 0.15667833387851715, -0.1258014440536499, 0.24552007019519806, -0.2768086791038513, 0.08247289061546326, -0.4438832104206085, -0.13976480066776276, -0.4612370729446411, 0.0633334293961525, -0.01752457022666931, -0.1633293330669403, 0.1452176421880722, 0.30773910880088806, 0.21986840665340424, 0.5987110733985901, -0.15200525522232056, -0.2969752252101898, -0.17500410974025726, 0.05554287135601044, -0.03872361779212952, -0.033028945326805115, 0.12637870013713837, 0.056856587529182434, 0.02704988606274128, -0.12281349301338196, -0.18067443370819092, 0.23078638315200806, -0.06767241656780243, 0.21689359843730927, -0.2213296741247177, 0.05174576863646507, 0.47443658113479614, -0.1162177324295044, 0.104829341173172, 0.36127668619155884, -0.18789388239383698, 0.1682252287864685, -0.3897598087787628, -0.15802009403705597, -0.11832515150308609, 0.30693328380584717, 0.2565831243991852, -0.01721051335334778, 0.006896086037158966, -0.06417511403560638, -0.5577681064605713, -0.3172752559185028, 0.17118169367313385, 0.15359750390052795, -0.2616901099681854, -0.3080430328845978, -0.03963775932788849, 0.304544061422348, -0.1572915017604828, -0.21058399975299835, -0.10077148675918579, 0.06724592298269272, 0.13755105435848236, 0.0173100084066391, 0.36069807410240173, -0.06632333248853683, 0.0617804080247879, 0.04455263912677765, -0.04551983252167702, -0.38655269145965576, 0.053649548441171646, -0.22403761744499207, 0.2001401036977768, -0.16849254071712494, 0.14940111339092255, 0.01881089061498642, 0.38635385036468506, 0.07730938494205475, -0.04500686377286911, 0.1819256842136383, -0.07245857268571854, -0.06662826240062714, 0.021500878036022186, 0.217339888215065, 0.21067355573177338, 0.39143431186676025, -0.04349315166473389, 0.21360212564468384, 0.015938498079776764, 0.19845494627952576, 0.14681535959243774, 0.02155296504497528, 0.03151201456785202, 0.017447521910071373, -0.09713757783174515, -0.26464056968688965, -0.016138426959514618, -0.3170475959777832, -0.1873786449432373, 0.025421086698770523, 0.4526958465576172, 0.22257734835147858, 0.5080546736717224, 0.0060864463448524475, 0.12488706409931183, 0.0034467624500393867, 0.2604915201663971, 0.1071634292602539, 0.4520761966705322, -0.40251338481903076, -0.04417534917593002, 0.5168493390083313, 0.05233072489500046, 0.3941638469696045, 0.4677073061466217, 0.46712493896484375, 0.3237336575984955, -0.07299341261386871, 0.0634291023015976, -0.3427298367023468, -0.23192307353019714, -0.08431418985128403, 0.16889502108097076, 0.39263609051704407, -0.2104177623987198, 0.2890297770500183, 0.17134708166122437, -0.2106771320104599, 0.4364856779575348, 0.2587614059448242, 0.17199057340621948, -0.34877821803092957, 0.002693943679332733, 0.34150010347366333, -0.08485452085733414, -0.08988090604543686, -0.034840114414691925, -0.46931979060173035, -0.06937853991985321, 0.3654938042163849, -0.062389351427555084, 0.04399464279413223, -0.13251520693302155, 0.16285239160060883, 0.13045549392700195, 0.6434596180915833, 0.022693529725074768, 0.04108365625143051, -0.1682126522064209, -0.3232758045196533, 0.07301250100135803, 0.13039350509643555, 0.301323264837265, 0.31206214427948, -0.09625522047281265, 0.3647128641605377, -0.04464354366064072, -0.21913288533687592, -0.000654168426990509, -0.19713789224624634, -0.2929944396018982, -0.038679130375385284, -0.3746318221092224, 0.0717671811580658, 0.37480372190475464, -0.2925678789615631, 0.38273346424102783, -0.28603169322013855, -0.18792149424552917, -0.2847813367843628, 0.1958206593990326, -0.1796378493309021, 0.27384915947914124, 0.36285215616226196, 0.40768539905548096, 0.3109062910079956, 0.3088643550872803, 0.17014797031879425, -0.4102347195148468, -0.25168517231941223, -0.014804642647504807, -0.3227592706680298, -0.46308767795562744, 0.10231185704469681, 0.13714608550071716, 0.07346300780773163, -0.1343337744474411, -0.1871015429496765, 0.014706246554851532, 0.32635200023651123, 0.0681523010134697, -0.04017658531665802, -0.18631453812122345, 0.11682779341936111, -0.013768244534730911, 0.07776644825935364, 0.03892527148127556, 0.4808063209056854, 0.18446409702301025, 0.4685535728931427, -0.05215541645884514, -0.34253689646720886, 0.41417089104652405, -0.04625576362013817, -0.2821398079395294, 0.051641110330820084, 0.07110550999641418, 0.4825264811515808, -0.15379251539707184, -0.9630668759346008, -0.18318362534046173, 0.348609983921051, 0.21150347590446472, -0.3672741651535034, 0.36463531851768494, -0.1374979168176651, 0.07665975391864777, 0.023669864982366562, 0.2252606302499771, 0.03329086676239967, -0.4292784631252289, -0.005432788282632828, -0.21750470995903015 ]
https://github.com/huggingface/datasets/pull/2111
Compute WER metric iteratively
@lhoestq yes, but the end user does not necessarily know the details of the implementation of the WER computation. From the end user perspective I think it might make more sense: how do you want to compute the metric? - all in once, more RAM memory needed? - iteratively, less RAM requirements? Because of that I was thinking of something like `iter` or `iterative`...
Compute WER metric iteratively to avoid MemoryError. Fix #2078.
64
text: Compute WER metric iteratively Compute WER metric iteratively to avoid MemoryError. Fix #2078. @lhoestq yes, but the end user does not necessarily know the details of the implementation of the WER computation. From the end user perspective I think it might make more sense: how do you want to compute the metric? - all in once, more RAM memory needed? - iteratively, less RAM requirements? Because of that I was thinking of something like `iter` or `iterative`...
[ -0.22003236413002014, -0.49322596192359924, -0.2298029363155365, -0.06551194190979004, -0.014118529856204987, -0.029651843011379242, -0.17078375816345215, 0.1760866343975067, 0.12445396184921265, 0.2798535227775574, 0.38885417580604553, -0.023120762780308723, -0.2526038587093353, -0.2678273916244507, -0.0202559232711792, -0.020940743386745453, -0.06034938246011734, 0.10498490184545517, -0.17649266123771667, 0.23201794922351837, -0.35403305292129517, -0.24365447461605072, -0.20757319033145905, 0.03276089206337929, 0.1649608165025711, -0.3281802535057068, -0.12185563892126083, 0.0504223071038723, -0.23743434250354767, -0.40562552213668823, 0.03833131492137909, 0.2754864990711212, -0.03107793629169464, -0.00327291339635849, -0.00010630139877321199, -0.0639018788933754, 0.15836265683174133, -0.011834593489766121, -0.1921740621328354, 0.3127160370349884, -0.12166595458984375, -0.30701205134391785, -0.13927650451660156, -0.4563025236129761, 0.14621302485466003, 0.22431935369968414, 0.31756591796875, -0.41642317175865173, 0.15207844972610474, -0.01674485206604004, 0.26908478140830994, -0.09589400887489319, -0.12469068169593811, 0.035531289875507355, -0.13671180605888367, -0.20723624527454376, -0.2457624077796936, 0.4404449462890625, -0.06126900017261505, 0.010669000446796417, -0.38555169105529785, 0.14277470111846924, 0.18716251850128174, 0.3097781836986542, 0.37313759326934814, 0.024544227868318558, 0.4112425744533539, 0.10575646907091141, -0.2868770658969879, -0.023598909378051758, 0.42774924635887146, -0.20092865824699402, -0.0797930657863617, 0.1812935471534729, -0.2189231514930725, -0.5870624780654907, 0.06350835412740707, -0.1780269891023636, -0.3280113637447357, -0.03546642139554024, -0.21683970093727112, -0.31770798563957214, -0.25750410556793213, -0.03098660707473755, -0.29272669553756714, 0.2896091938018799, 0.09934710711240768, 0.18120840191841125, 0.12485054135322571, -0.05809866636991501, 0.2170950174331665, 0.2862001061439514, 0.17341874539852142, 0.11140885949134827, -0.12364917993545532, -0.18527615070343018, -0.10936576873064041, -0.22826814651489258, 0.18622130155563354, -0.05659878998994827, 0.40427687764167786, -0.010995537042617798, 0.2928028702735901, 0.28278568387031555, -0.2104913592338562, 0.26316037774086, 0.17966139316558838, -0.12886103987693787, -0.010004639625549316, 0.27158498764038086, 0.05542483553290367, -0.11582700163125992, 0.1625133901834488, -0.32062309980392456, 0.40526241064071655, 0.19105654954910278, -0.12285688519477844, 0.3365385830402374, -0.40059369802474976, 0.10965103656053543, -0.24278438091278076, -0.30878502130508423, -0.11262697726488113, 0.09146279096603394, 0.14872953295707703, 0.15394368767738342, 0.07943455129861832, -0.24244831502437592, 0.08098341524600983, 0.1346997171640396, -0.19154669344425201, 0.2881564795970917, -0.38282668590545654, 0.4089548587799072, -0.4548337757587433, 0.18755672872066498, 0.345170259475708, 0.03674457594752312, 0.14352089166641235, -0.4707338511943817, 0.1389334797859192, -0.10055027902126312, 0.11623678356409073, 0.17208969593048096, -0.12677641212940216, -0.14987853169441223, -0.07531702518463135, -0.05385879427194595, -0.11842477321624756, 0.2304348647594452, -0.04470595717430115, 0.06103677675127983, 0.2936691641807556, 0.25555768609046936, -0.11138902604579926, -0.1336737424135208, 0.14967653155326843, 0.10764670372009277, 0.300663560628891, -0.06454531103372574, 0.38640740513801575, 0.1320193111896515, -0.389167845249176, -0.1915259212255478, -0.053632430732250214, 0.12016549706459045, -0.23026540875434875, -0.2416997253894806, 0.012566758319735527, -0.08364535868167877, 0.15504534542560577, 0.3187521994113922, 0.2227548062801361, 0.3338012099266052, -0.21075095236301422, 0.04976482689380646, 0.4096129536628723, -0.41513586044311523, 0.11947371810674667, 0.0852222740650177, -0.29997074604034424, 0.1925116628408432, 0.2904198467731476, 0.16751515865325928, -0.14576034247875214, 0.10935726761817932, 0.38987216353416443, -0.25732600688934326, -0.21216432750225067, -0.2871055006980896, -0.1149393767118454, 0.16933797299861908, 0.09465411305427551, -0.035648275166749954, 0.647415280342102, 0.11911676079034805, -0.20344850420951843, 0.198537215590477, 0.27183929085731506, -0.08048711717128754, -0.05334768444299698, -0.1632259339094162, 0.29272326827049255, -0.260101854801178, -0.011654675006866455, -0.35639992356300354, 0.10114805400371552, 0.08699110895395279, -0.13343748450279236, -0.14848342537879944, 0.5044840574264526, -0.05420295149087906, -0.3192172348499298, 0.06971312314271927, 0.24982234835624695, 0.061944566667079926, 0.28003087639808655, 0.11828584223985672, -0.07172876596450806, -0.3051764965057373, -0.3643640875816345, 0.17591337859630585, -0.5023870468139648, -0.06231826916337013, 0.15154555439949036, -0.3446257710456848, 0.0005176588892936707, 0.14998859167099, -0.18915824592113495, -0.20757868885993958, -0.025339864194393158, 0.011206813156604767, 0.22764548659324646, 0.39368268847465515, -0.02847236953675747, -0.02378077805042267, 0.06873253732919693, 0.45706772804260254, 0.007709995843470097, 0.058047372847795486, -0.17259037494659424, -0.196312814950943, 0.06363066285848618, -0.17159098386764526, 0.30949512124061584, 0.08585239946842194, 0.19319263100624084, 0.34245142340660095, -0.009241119027137756, 0.02335740439593792, -0.07445423305034637, -0.06661906838417053, -0.44205236434936523, 0.013863064348697662, 0.24874770641326904, -0.16994020342826843, 0.05539428070187569, -0.3598155677318573, 0.03478327393531799, -0.37672439217567444, 0.5229764580726624, -0.18158990144729614, 0.07333821058273315, 0.3841819763183594, 0.344653457403183, -0.10343138873577118, -0.2583650052547455, -0.31406164169311523, 0.32456398010253906, 0.021118443459272385, 0.023974057286977768, 0.3989560306072235, 0.013922877609729767, 0.14042715728282928, 0.17611819505691528, 0.41006726026535034, 0.37716537714004517, 0.07295951247215271, -0.24041669070720673, -0.23444341123104095, 0.006099823862314224, -0.3714301884174347, 0.09738260507583618, 0.08227171748876572, -0.1204710453748703, -0.09368669241666794, 0.14729569852352142, -0.002813059836626053, -0.306816965341568, 0.0013258140534162521, -0.07857297360897064, -0.3296707570552826, -0.10679109394550323, 0.15218617022037506, -0.14801949262619019, 0.22116945683956146, -0.03140890225768089, 0.6132597327232361, 0.0352761372923851, 0.32824939489364624, -0.09126480668783188, 0.018877917900681496, 0.19285979866981506, 0.20419862866401672, -0.10839822888374329, -0.4270341396331787, 0.6048105955123901, -0.45313969254493713, 0.23078815639019012, -0.2997468411922455, -0.29790034890174866, 0.23057349026203156, 0.16355763375759125, -0.07762287557125092, 0.29271650314331055, 0.03951111435890198, -0.14630559086799622, -0.08356939256191254, 0.1720724254846573, -0.17281372845172882, -0.11421434581279755, -0.2395085096359253, 0.04030109941959381, 0.18790693581104279, 0.15050795674324036, -0.07756242901086807, -0.1292351484298706, -0.47315850853919983, 0.21186582744121552, -0.02695866860449314, 0.3067377805709839, -0.13900648057460785, -0.0837840586900711, 0.1909054070711136, 0.33018776774406433, -0.014716880396008492, -0.19839753210544586, -0.05077863857150078, -0.23369984328746796, -0.17726722359657288, 0.22141262888908386, -0.29459118843078613, -0.057354796677827835, 0.36954465508461, 0.40055984258651733, -0.28807735443115234, -0.40482258796691895, 0.16018876433372498, -0.07486774027347565, -0.05098096281290054, -0.06131631135940552, 0.23168154060840607, -0.11391953378915787, -0.32322385907173157, -0.03796965256333351, -0.345754474401474, 0.10912513732910156, -0.0939028337597847, -0.14781737327575684, 0.235533207654953, 0.582857072353363, 0.25868749618530273, 0.6086557507514954, 0.14872248470783234, 0.16935525834560394, 0.014302235096693039, -0.03685437887907028, -0.12555855512619019, 0.20091833174228668, 0.11063583195209503, 0.08129101246595383, 0.008398130536079407, -0.52277672290802, 0.2818174362182617, -0.16618603467941284, -0.1643618941307068, -0.1405266523361206, -0.17421329021453857, 0.17547595500946045, -0.07686816155910492, 0.23653049767017365, -0.27072200179100037, 0.390342116355896, -0.042915672063827515, -0.06365381181240082, -0.10730977356433868, 0.15039771795272827, 0.030730776488780975, 0.07344375550746918, 0.183100163936615, -0.14236146211624146, -0.26936864852905273, -0.028674732893705368, -0.48508816957473755, 0.29614919424057007, 0.18175573647022247, 0.5156109929084778, 0.09951059520244598, -0.29034045338630676, -0.11350654065608978, -0.23697394132614136, 0.2578947842121124, 0.08602718263864517, -0.35174381732940674, 0.057761747390031815, -0.18085575103759766, -0.02927456982433796, 0.04945551976561546, -0.10453200340270996, 0.4951711893081665, 0.3630901873111725, 0.16111555695533752, -0.22429266571998596, 0.03195294365286827, 0.16839201748371124, -0.07876037806272507, -0.3844180703163147, -0.38048407435417175, -0.27325722575187683, -0.332195520401001, 0.08495742827653885, 0.22550833225250244, 0.11894556134939194, -0.02865646779537201, 0.4179517924785614, 0.11383941769599915, -0.011068461462855339, -0.027864422649145126, 0.2002023309469223, -0.08966626226902008, -0.2821663022041321, -0.19755730032920837, -0.09721314907073975, 0.03704246133565903, -0.29214993119239807, -0.05029038339853287, 0.06674663722515106, -0.0004909485578536987, 0.02539733052253723, 0.15143591165542603, -0.014539090916514397, 0.3291686773300171, 0.04349055886268616, 0.07456281036138535, 0.09162157773971558, 0.26631855964660645, 0.3714457154273987, -0.5866555571556091, -0.12169179320335388, 0.09554067999124527, 0.03209894895553589, -0.5106159448623657, -0.28384295105934143, 0.6059995889663696, 0.48842138051986694, -0.1407313346862793, 0.4364165663719177, 0.2887001037597656, -0.385794460773468, -0.060778696089982986, 0.5130535960197449, 0.8417527079582214, -0.0984439104795456, -0.2049502432346344, 0.05924209952354431, 0.04787357151508331, 0.054097432643175125, -0.39100128412246704, 0.17861734330654144, -0.17378196120262146, -0.09059087932109833, -0.11338050663471222, -0.15256395936012268, 0.07329904288053513, -0.17765174806118011, -0.334195613861084, 0.5210797190666199, -0.052298128604888916, 0.16764844954013824, 0.3661600947380066, 0.03369336575269699, -0.28926271200180054, -0.12138736248016357, 0.29844793677330017, 0.16092224419116974, -0.16650918126106262, 0.008598331362009048, -0.3985323905944824, 0.14176185429096222, 0.40734705328941345, -0.0303645096719265, -0.3141002058982849, -0.4671517014503479, -0.11452589184045792, -0.0008725747466087341, -0.19850844144821167, 0.24764318764209747, -0.19138994812965393, -0.18512611091136932, 0.27871328592300415, 0.05833997577428818, 0.19889037311077118, 0.04411947354674339, 0.18793067336082458, 0.029262525960803032, 0.04218893498182297, 0.05001910775899887, 0.22661328315734863, -0.23598438501358032, 0.1531449258327484, 0.16161608695983887, -0.08538014441728592, -0.3670220375061035, -0.17642800509929657, 0.045919016003608704, -0.03877005726099014, -0.10582097619771957, 0.18705470860004425, 0.12024611234664917, -0.11313942074775696, -0.15756180882453918, 0.17875619232654572, 0.02514563873410225, -0.16907361149787903, 0.35862043499946594, 0.0727185308933258, -0.1554355025291443, 0.0394359827041626, -0.10079815238714218, 0.30039918422698975, -0.24149221181869507, 0.1766843944787979, -0.4725229740142822, -0.23548999428749084, -0.19463977217674255, -0.28298625349998474, -0.04921864718198776, -0.04635955020785332, 0.32358989119529724, 0.003529713023453951, 0.009591400623321533, -0.34216809272766113, 0.05356397107243538, 0.42867088317871094, 0.49563857913017273, -0.14571449160575867, -0.20041915774345398, -0.3207116723060608, 0.1058897078037262, 0.22106876969337463, 0.1307125836610794, -0.2518749535083771, -0.19206637144088745, -0.09184888005256653, 0.15733018517494202, -0.3971836268901825, -0.35524433851242065, -0.6006736755371094, 0.14158940315246582, 0.09274610877037048, 0.18969732522964478, -0.16827887296676636, 0.4242746829986572, 0.23817983269691467, 0.42120569944381714, -0.1940917819738388, -0.2452094554901123, 0.038443729281425476, 0.16661213338375092, -0.04885108023881912, 0.04687181115150452, 0.452713280916214, 0.19010098278522491, 0.12706966698169708, -0.015925398096442223, -0.15581607818603516, 0.2597317695617676, 0.03364742174744606, 0.1493973284959793, -0.06966090202331543, 0.19764378666877747, 0.07872424274682999, 0.05517730116844177, 0.2706057131290436, 0.3778824210166931, -0.26361432671546936, 0.45886164903640747, -0.10673672705888748, -0.11386311054229736, 0.019494811072945595, 0.17493543028831482, 0.23603177070617676, -0.04867576062679291, -0.05559172481298447, 0.021095633506774902, -0.14203189313411713, -0.034206535667181015, 0.38946864008903503, 0.39214128255844116, -0.3596920073032379, -0.05189262330532074, -0.10506781190633774, 0.34284719824790955, -0.037640150636434555, 0.15674735605716705, -0.17481710016727448, -0.11491604894399643, 0.17746491730213165, 0.25678402185440063, 0.1540689617395401, -0.23229506611824036, 0.378262460231781, -0.23654833436012268, 0.02480776607990265, -0.499478816986084, -0.06625880300998688, -0.17543324828147888, -0.13830724358558655, -0.017649497836828232, 0.39657145738601685, 0.06334707140922546, 0.2894054055213928, 0.1360398679971695, 0.0038370490074157715, 0.40287458896636963, -0.007438257336616516, 0.14210745692253113, -0.023275993764400482, 0.16335076093673706, 0.004289116710424423, 0.4870011508464813, -0.01659313589334488, 0.18196678161621094, -0.005099684000015259, -0.18450215458869934, 0.3005918562412262, 0.09067539870738983, -0.12645362317562103, -0.09112392365932465, -0.1103995218873024, -0.03114127553999424, -0.06199517101049423, -0.2563595771789551, -0.1543309986591339, -0.14293116331100464, 0.25315794348716736, -0.10485349595546722, 0.2907520830631256, -0.04032064974308014, 0.11729364097118378, 0.34796398878097534, 0.144060879945755, 0.031523168087005615, 0.17140549421310425, -0.6797997951507568, 0.028603537008166313, 0.4775581359863281, 0.07428230345249176, -0.03682815656065941, 0.39501652121543884, 0.3409537374973297, 0.37359002232551575, -0.11257563531398773, 0.18329128623008728, -0.19535478949546814, -0.10771951824426651, -0.25333696603775024, 0.08127749711275101, 0.14248700439929962, -0.05710751935839653, 0.305097758769989, 0.18235409259796143, -0.278131365776062, 0.4647456109523773, 0.007801413536071777, 0.02892233617603779, -0.4348500669002533, 0.027107663452625275, 0.0918223112821579, 0.10868708044290543, 0.05388882756233215, 0.0940767377614975, -0.33795788884162903, -0.05016792565584183, -0.00854354165494442, -0.5130418539047241, 0.019768010824918747, 0.12643885612487793, 0.12312862277030945, -0.21816286444664001, 0.5325356125831604, -0.032283615320920944, 0.20173045992851257, -0.38023641705513, -0.1852310597896576, -0.02698204666376114, -0.02377375215291977, 0.009039610624313354, -0.06596500426530838, 0.12931838631629944, 0.2821744382381439, -0.06531622260808945, 0.018773164600133896, 0.11398252844810486, -0.3087505102157593, -0.5080406665802002, 0.29682591557502747, -0.0371662937104702, -0.0016822069883346558, 0.24327901005744934, -0.1862800270318985, 0.26935872435569763, -0.4490851163864136, -0.07164065539836884, -0.39733147621154785, 0.12649467587471008, -0.16746807098388672, 0.1799849271774292, 0.4706383943557739, 0.38700973987579346, 0.5161055326461792, 0.1533191204071045, 0.32032108306884766, -0.3188380002975464, -0.1648954600095749, 0.035448234528303146, -0.0669652447104454, -0.38207942247390747, -0.008804120123386383, 0.08956742286682129, 0.08054015040397644, -0.07796082645654678, -0.19601011276245117, -0.1093725636601448, 0.2872353196144104, -0.08937759697437286, 0.04176003113389015, -0.07272575795650482, -0.031628042459487915, -0.14280429482460022, -0.0352763831615448, 0.06339076161384583, 0.30605989694595337, 0.15363118052482605, 0.2207653969526291, -0.3787459135055542, -0.28427955508232117, 0.4111902117729187, 0.09476719796657562, -0.31369301676750183, 0.043701644986867905, 0.29117900133132935, 0.38269272446632385, -0.046356625854969025, -0.48514556884765625, -0.0399128794670105, 0.5684172511100769, 0.21939218044281006, -0.1423320770263672, 0.28499990701675415, -0.08719402551651001, -0.024610040709376335, 0.0905841737985611, 0.22718407213687897, -0.25712957978248596, -0.44152551889419556, -0.10528655350208282, -0.5412569642066956 ]
https://github.com/huggingface/datasets/pull/2110
Fix incorrect assertion in builder.py
Hi ! The SplitInfo is not always available. By default you would get `split_info.num_examples == 0` So unfortunately we can't use this assertion you suggested
Fix incorrect num_examples comparison assertion in builder.py
25
text: Fix incorrect assertion in builder.py Fix incorrect num_examples comparison assertion in builder.py Hi ! The SplitInfo is not always available. By default you would get `split_info.num_examples == 0` So unfortunately we can't use this assertion you suggested
[ -0.39079156517982483, -0.2946471571922302, -0.07499083131551743, 0.21796004474163055, -0.16526775062084198, -0.11505666375160217, 0.37919947504997253, 0.4887849986553192, -0.3721808195114136, 0.40974360704421997, 0.20879268646240234, -0.012114386074244976, -0.02236751839518547, 0.16652140021324158, -0.1834474802017212, -0.13577774167060852, -0.1658383309841156, 0.30165278911590576, 0.3209773898124695, 0.0561441034078598, -0.237063929438591, 0.2235225886106491, -0.4398431181907654, 0.023508455604314804, -0.20940609276294708, -0.14731702208518982, 0.18041732907295227, 0.45527952909469604, 0.04167265072464943, -0.4702640473842621, 0.08979998528957367, -0.014326635748147964, -0.388670414686203, 0.11824893951416016, -0.0001051210638252087, 0.013376615941524506, 0.3032679557800293, 0.09503118693828583, -0.15903913974761963, 0.1031603217124939, -0.33875301480293274, -0.14455732703208923, -0.15357473492622375, -0.08980613946914673, -0.1285410374403, 0.18420720100402832, -0.15167540311813354, 0.21879330277442932, 0.5113484263420105, 0.33424481749534607, 0.25965219736099243, 0.0655478686094284, 0.3259388506412506, -0.25815343856811523, 0.05069301277399063, 0.10939422994852066, -0.05094996839761734, -0.08993199467658997, -0.1388331651687622, -0.025770772248506546, 0.1383020430803299, 0.5560882091522217, 0.09245559573173523, 0.25589948892593384, -0.2277657389640808, -0.284061461687088, 0.28658750653266907, -0.17017389833927155, 0.004251517355442047, 0.2896411418914795, -0.052115462720394135, 0.10038866102695465, -0.2707681655883789, -0.318874716758728, -0.338798850774765, -0.19754323363304138, -0.011999085545539856, 0.22475017607212067, -0.2845912575721741, 0.30818721652030945, -0.15404002368450165, -0.13186177611351013, -0.004893295466899872, 0.0047440677881240845, -0.24895542860031128, 0.4823652505874634, -0.006626656278967857, 0.21411889791488647, -0.022344741970300674, 0.09410025179386139, 0.10044359415769577, 0.13524103164672852, -0.27751484513282776, -0.17970871925354004, -0.14029690623283386, -0.2660122513771057, 0.20063960552215576, 0.08873225748538971, 0.28670626878738403, -0.12594811618328094, -0.34466221928596497, 0.24540212750434875, 0.14009271562099457, 0.03426780551671982, 0.046830665320158005, 0.14882490038871765, 0.318574458360672, 0.41157591342926025, 0.2099166214466095, 0.3719835579395294, -0.32336631417274475, 0.03826175630092621, 0.14668035507202148, -0.5002808570861816, 0.015771374106407166, 0.32123836874961853, 0.43177443742752075, -0.10411354899406433, -0.47620683908462524, -0.11992212384939194, -0.2918940484523773, -0.24386213719844818, 0.35584309697151184, 0.3816102147102356, 0.0707421749830246, 0.06810206174850464, -0.09014685451984406, 0.14554031193256378, -0.4030511677265167, -0.49610427021980286, -0.264669269323349, 0.20296907424926758, -0.16926400363445282, -0.023073548451066017, 0.004727348685264587, 0.030815768986940384, 0.2824864983558655, 0.07377588003873825, 0.31580618023872375, -0.22992846369743347, 0.3444267511367798, -0.17896994948387146, 0.26462963223457336, 0.02066574990749359, -0.18373499810695648, -0.03056960366666317, 0.5312986969947815, 0.2130497246980667, -0.09010908007621765, 0.12176786363124847, -0.26186883449554443, -0.4718122184276581, -0.09859998524188995, 0.30864474177360535, 0.0316338986158371, 0.22783225774765015, 0.5976828932762146, 0.07863638550043106, 0.2536845803260803, -0.38252556324005127, 0.10357259213924408, -0.11327457427978516, -0.21578265726566315, -0.11168776452541351, 0.24295076727867126, 0.18003222346305847, -0.1510305404663086, -0.03935173526406288, -0.397339403629303, -0.16789650917053223, -0.029703699052333832, 0.27699777483940125, -0.16104921698570251, -0.06509659439325333, -0.2124587446451187, 0.11878830194473267, 0.4039076566696167, -0.2284862995147705, -0.16003099083900452, 0.04673503339290619, 0.13254204392433167, -0.11837587505578995, 0.2540498673915863, -0.24220937490463257, 0.06530400365591049, -0.24110935628414154, 0.3241952657699585, 0.00564751960337162, 0.04089946299791336, 0.20593073964118958, -0.35248613357543945, -0.16461549699306488, 0.10739962011575699, -0.03689621388912201, 0.2930092215538025, -0.27531740069389343, -0.024707436561584473, -0.009282144717872143, 0.3844013214111328, -0.03683469071984291, -0.2838647961616516, -0.06704545766115189, 0.28230908513069153, -0.16455939412117004, 0.23242484033107758, -0.0930449590086937, 0.08134259283542633, 0.4133444130420685, -0.3120873272418976, 0.0951090157032013, 0.2087097465991974, -0.2694031596183777, -0.3079516887664795, 0.21446169912815094, -0.01690969243645668, -0.41990187764167786, 0.324045330286026, -0.2340846061706543, 0.19309067726135254, -0.07084046304225922, -0.2157224416732788, -0.19740411639213562, -0.1254996359348297, -0.014342255890369415, 0.297880619764328, 0.11554121971130371, -0.2723076641559601, -0.12796758115291595, -0.27741244435310364, 0.30716460943222046, 0.021944981068372726, -0.0013214584905654192, -0.1906951665878296, 0.5411576628684998, 0.2744063436985016, -0.22759799659252167, -0.1691741645336151, -0.3556366562843323, 0.027942124754190445, -0.3976988196372986, -0.006317460909485817, 0.18969926238059998, -0.21128292381763458, 0.21980398893356323, -0.1973176896572113, 0.31344759464263916, 0.2886982262134552, 0.18139848113059998, 0.22658346593379974, -0.11243841052055359, 0.025211164727807045, -0.1974719613790512, 0.03707260638475418, -0.48415711522102356, 0.11595480144023895, -0.17363156378269196, -0.11227160692214966, 0.003112364560365677, -0.10120606422424316, 0.2552775740623474, 0.5137458443641663, 0.21855974197387695, 0.10354902595281601, -0.06557665020227432, 0.0059150755405426025, -0.11296827346086502, 0.22441130876541138, -0.10458602011203766, 0.11915955692529678, 0.3040498197078705, -0.07853662967681885, 0.012539217248558998, 0.14612126350402832, -0.00599305983632803, 0.21535801887512207, 0.21559204161167145, -0.016754746437072754, 0.25728553533554077, 0.10020916163921356, -0.16742393374443054, -0.2412504255771637, 0.09757575392723083, -0.12155450880527496, 0.04528369754552841, -0.21728527545928955, 0.07621478289365768, -0.06567814201116562, -0.10422197729349136, -0.1964612901210785, -0.39680132269859314, -0.3889477550983429, -0.2771960496902466, 0.5220299959182739, -0.05299882963299751, -0.07341239601373672, 0.21618494391441345, 0.028146494179964066, 0.02601243555545807, 0.09979921579360962, 0.26471543312072754, 0.08006903529167175, -0.070106640458107, -0.0702182725071907, 0.140946626663208, 0.1313808709383011, 0.24224354326725006, 0.2032531350851059, -0.27250856161117554, -0.3346325159072876, 0.0837092474102974, -0.44984757900238037, 0.08920236676931381, -0.006833747029304504, 0.1567041426897049, 0.459070086479187, 0.026307791471481323, 0.43345147371292114, -0.30719122290611267, 0.285236120223999, -0.3313290476799011, -0.022435138002038002, -0.10456957668066025, 0.2712765038013458, -0.05331921577453613, -0.20487652719020844, -0.2752964496612549, -0.11011684685945511, -0.46532392501831055, 0.09711317718029022, 0.3771933317184448, 0.08098410069942474, 0.0584210529923439, 0.2340300977230072, -0.05045027658343315, -0.004855804610997438, 0.2591003179550171, -0.1415642499923706, 0.059123825281858444, -0.15789346396923065, 0.03730737417936325, 0.06941299885511398, -0.007500987499952316, -0.49565839767456055, 0.007063556462526321, -0.36228781938552856, 0.03349209576845169, -0.244765043258667, -0.29286113381385803, 0.047471437603235245, -0.13076052069664001, 0.04000089317560196, 0.1244693398475647, 0.10777859389781952, -0.24912044405937195, -0.2696269750595093, -0.028019823133945465, 0.16164426505565643, -0.15848463773727417, 0.313571572303772, -0.27606531977653503, 0.20067396759986877, 0.1182495653629303, 0.3777461051940918, 0.2938704490661621, 0.044706497341394424, -0.0020419135689735413, -0.06874855607748032, 0.05530162155628204, -0.10597007721662521, -0.23912599682807922, 0.14581529796123505, 0.3245369791984558, -0.3676854372024536, 0.4084252119064331, 0.11339505016803741, 0.01973385363817215, -0.03940657153725624, -0.192727729678154, -0.15204018354415894, -0.41622740030288696, -0.18625518679618835, 0.22160732746124268, 0.10437031835317612, 0.07589428126811981, 0.1229928508400917, -0.1285717487335205, 0.16167569160461426, -0.048734307289123535, 0.10804878175258636, 0.0346003957092762, -0.17040029168128967, 0.17478150129318237, -0.22742246091365814, -0.0032753050327301025, 0.387282133102417, 0.3550002872943878, -0.09219543635845184, 0.03272387012839317, -0.24783450365066528, 0.12959128618240356, -0.07053109258413315, 0.6095984578132629, -0.2658891975879669, 0.009071961045265198, 0.07572188973426819, 0.050596512854099274, 0.1736263632774353, -0.21340662240982056, -0.0954207256436348, 0.36129799485206604, 0.22668078541755676, 0.2510376572608948, -0.22848844528198242, -0.12716299295425415, 0.6781829595565796, 0.12610387802124023, -0.18303526937961578, -0.2355232834815979, -0.3461534380912781, 0.05035155266523361, -0.530469536781311, 0.07802973687648773, 0.24620725214481354, -0.00833745114505291, 0.07061631232500076, -0.00901007279753685, 0.06282389909029007, -0.13459424674510956, -0.007599189877510071, 0.1583632379770279, 0.33893686532974243, -0.20823855698108673, -0.19572095572948456, -0.0902356207370758, -0.15503396093845367, 0.2321462631225586, 0.2057584673166275, 0.08104467391967773, 0.07246407866477966, -0.44408607482910156, 0.059556763619184494, 0.04094253480434418, 0.3534480631351471, -0.2969568073749542, 0.1256960928440094, -0.033156681805849075, 0.4000621438026428, 0.11683454364538193, -0.05080169439315796, 0.09712479263544083, -0.017783375456929207, -0.06473293155431747, -0.07594656199216843, 0.12370792031288147, -0.13185983896255493, 0.031968213617801666, 0.15401455760002136, 0.1218823492527008, -0.18228596448898315, -0.07640179991722107, 0.1416926383972168, 0.8108184337615967, 0.3049370050430298, -0.13774164021015167, 0.11317359656095505, 0.18643225729465485, 0.12063287943601608, 0.08113245666027069, 0.26338499784469604, -0.45057204365730286, -0.2927573025226593, 0.10565392673015594, -0.07141955196857452, 0.18244460225105286, -0.22995732724666595, -0.42950132489204407, 0.2140001654624939, -0.20148777961730957, -0.06913448870182037, -0.16929279267787933, 0.02481963485479355, -0.22838033735752106, 0.3501178026199341, -0.05270159989595413, 0.18670430779457092, 0.18544478714466095, 0.07511506974697113, -0.15793287754058838, -0.040622442960739136, 0.06941258907318115, -0.3305191993713379, -0.20178478956222534, -0.02009511925280094, 0.09250004589557648, 0.2650259733200073, 0.20975849032402039, 0.09797656536102295, -0.008295510895550251, -0.3476749658584595, 0.2923848330974579, 0.3285888731479645, -0.06862488389015198, 0.1511659473180771, 0.07538997381925583, 0.011111898347735405, 0.03136056661605835, 0.33542871475219727, 0.4474007785320282, -0.07193983346223831, -0.27537086606025696, -0.0615866556763649, -0.36274492740631104, 0.039678700268268585, -0.2741362154483795, -0.1631859689950943, 0.2936566472053528, -0.28438428044319153, 0.07714319229125977, -0.09155744314193726, -0.2704068422317505, -0.29920414090156555, 0.21458256244659424, -0.10698466002941132, -0.30927687883377075, -0.016563966870307922, -0.10050010681152344, -0.28997308015823364, 0.165598064661026, 0.06652286648750305, -0.06716418266296387, 0.30464285612106323, 0.40579953789711, -0.052557870745658875, -0.08132731914520264, -0.26833221316337585, -0.07847607880830765, -0.12078570574522018, -0.16083979606628418, 0.45920372009277344, 0.006280041765421629, -0.084236279129982, 0.0729362964630127, 0.34372973442077637, 0.1664111614227295, 0.6065155267715454, -0.34469372034072876, -0.22174103558063507, -0.016043851152062416, 0.15490394830703735, -0.17370721697807312, 0.15939311683177948, -0.16763663291931152, 0.2917502522468567, 0.12026283144950867, 0.10017018020153046, -0.4262445867061615, -0.08833136409521103, -0.3889507055282593, 0.11995670944452286, -0.3863537609577179, -0.2340191900730133, -0.2278202325105667, 0.01715768687427044, 0.17587910592556, -0.024547912180423737, -0.19711199402809143, -0.282728374004364, -0.013702991418540478, 0.11766459792852402, 0.04028993099927902, 0.06004197895526886, 0.16757838428020477, -0.036214519292116165, 0.19963860511779785, 0.0234743170440197, 0.07661177217960358, -0.18744388222694397, 0.030389998108148575, 0.21965013444423676, 0.1136757880449295, 0.09860491752624512, -0.45243000984191895, 0.077235147356987, -0.09314750134944916, -0.16238079965114594, -0.3243611752986908, 0.10330268740653992, -0.30019786953926086, -0.026517439633607864, 0.30269885063171387, 0.13736936450004578, -0.16102536022663116, 0.1912544071674347, -0.05463481694459915, -0.00809486210346222, 0.019390303641557693, -0.04432797431945801, 0.4949094355106354, 0.11508204787969589, -0.03074679523706436, 0.21736958622932434, -0.05522114038467407, 0.3244341015815735, -0.40447673201560974, 0.2399442195892334, 0.06627130508422852, -0.4701552093029022, 0.3638492226600647, 0.30055657029151917, -0.01613352820277214, -0.06445644050836563, 0.3854537606239319, 0.25497135519981384, 0.12057898938655853, -0.22796739637851715, 0.06009311228990555, 0.8111447691917419, -0.5649698376655579, 0.12077434360980988, 0.25819000601768494, -0.19990597665309906, 0.5059976577758789, 0.10286448895931244, -0.25075817108154297, 0.455325722694397, -0.03504983335733414, -0.08763092756271362, 0.16930076479911804, 0.2145892232656479, 0.3881976306438446, 0.1301857978105545, 0.4923297166824341, -0.23356503248214722, -0.019417114555835724, 0.34944289922714233, -0.344183087348938, 0.17410892248153687, -0.14488789439201355, 0.10720700025558472, 0.011260952800512314, -0.16831471025943756, -0.237092524766922, -0.07494942098855972, -0.40367868542671204, -0.31827378273010254, 0.1478370726108551, 0.16197569668293, 0.13844911754131317, 0.02819327637553215, 0.056603848934173584, -0.16312071681022644, -0.018038790673017502, -0.01456473395228386, 0.21459563076496124, -0.35725682973861694, 0.13742083311080933, 0.33132779598236084, 0.19044211506843567, 0.23177258670330048, 0.14426042139530182, 0.48897111415863037, 0.142350435256958, -0.010580815374851227, -0.5522668957710266, 0.06024793162941933, -0.023748081177473068, -0.2120194137096405, -0.0001716800034046173, -0.10843756794929504, 0.286122590303421, 0.2019346058368683, 0.18533630669116974, -0.3522166311740875, 0.15133990347385406, -0.11462990939617157, -0.07328847050666809, -0.29836902022361755, 0.2327091097831726, 0.08678040653467178, -0.19652590155601501, -0.08874906599521637, -0.007814541459083557, -0.3419492542743683, -0.1273762732744217, 0.002355811186134815, -0.11930590867996216, 0.06270451843738556, 0.031057968735694885, 0.12917232513427734, -0.033651817589998245, 0.12569965422153473, -0.19588442146778107, -0.19352015852928162, -0.132547527551651, 0.06085984408855438, -0.4939788579940796, 0.15000741183757782, -0.13897137343883514, -0.2539004385471344, 0.24119454622268677, 0.18215680122375488, -0.1256062090396881, 0.18494999408721924, 0.44585347175598145, -0.009204233065247536, 0.1419977992773056, 0.0005370825529098511, -0.224526509642601, 0.1360260248184204, 0.08020569384098053, -0.3555857241153717, 0.23074647784233093, -0.22307473421096802, 0.21178129315376282, -0.2729671597480774, 0.14907163381576538, 0.30258405208587646, -0.1446419656276703, 0.5648266077041626, -0.28784075379371643, -0.17018312215805054, 0.150037944316864, 0.21527497470378876, -0.16856008768081665, 0.20454761385917664, 0.07697856426239014, -0.30988046526908875, -0.39506253600120544, 0.18711435794830322, 0.09447391331195831, 0.30612412095069885, 0.09665727615356445, -0.15944968163967133, -0.11043611168861389, 0.23354265093803406, 0.16591531038284302, 0.058478668332099915, -0.17644724249839783, 0.27861660718917847, -0.06440803408622742, 0.12382875382900238, 0.2040233463048935, -0.05661698430776596, -0.06213480979204178, -0.16855713725090027, -0.3739604353904724, -0.6289554834365845, 0.5432784557342529, 0.10781916975975037, -0.4358135759830475, -0.30791687965393066, 0.31779271364212036, 0.1221424788236618, -0.30159351229667664, -0.24634841084480286, 0.02358342707157135, 0.3311261534690857, 0.033423103392124176, -0.13187316060066223, 0.08398734033107758, 0.17592152953147888, 0.041246119886636734, 0.15427827835083008, -0.2360251545906067, 0.08940185606479645, -0.010250547900795937, 0.14110542833805084, 0.09171666204929352 ]
https://github.com/huggingface/datasets/pull/2110
Fix incorrect assertion in builder.py
> Hi ! The SplitInfo is not always available. By default you would get `split_info.num_examples == 0` > So unfortunately we can't use this assertion you suggested Then it would be better to just remove the assertion, because the existing assertion does nothing.
Fix incorrect num_examples comparison assertion in builder.py
43
text: Fix incorrect assertion in builder.py Fix incorrect num_examples comparison assertion in builder.py > Hi ! The SplitInfo is not always available. By default you would get `split_info.num_examples == 0` > So unfortunately we can't use this assertion you suggested Then it would be better to just remove the assertion, because the existing assertion does nothing.
[ -0.31300657987594604, -0.2984176278114319, -0.06898605823516846, 0.15662890672683716, -0.21472527086734772, -0.0638296902179718, 0.34997522830963135, 0.37066471576690674, -0.34702372550964355, 0.34181320667266846, 0.24539606273174286, 0.00003214494790881872, -0.06268633157014847, 0.09180265665054321, -0.09117022901773453, -0.031128667294979095, -0.1913202404975891, 0.2965579628944397, 0.3919532299041748, 0.018982991576194763, -0.2930377125740051, 0.11491582542657852, -0.3554670810699463, 0.02657921612262726, -0.23417825996875763, -0.2351522445678711, 0.2544037997722626, 0.4954063892364502, 0.056529298424720764, -0.6047436594963074, 0.061437323689460754, 0.06643449515104294, -0.34611597657203674, 0.03493665158748627, -0.00010491757711861283, -0.043349236249923706, 0.35748130083084106, 0.1416914165019989, -0.08832928538322449, 0.24725206196308136, -0.321341335773468, -0.16480213403701782, -0.16820798814296722, -0.07600724697113037, -0.07273560762405396, 0.14651304483413696, -0.19552071392536163, 0.2041863203048706, 0.42248982191085815, 0.343088835477829, 0.25234922766685486, -0.0006266050040721893, 0.2885872721672058, -0.1628744751214981, -0.00025068968534469604, 0.05872633308172226, 0.05694829672574997, -0.028710443526506424, -0.16113494336605072, 0.06995859742164612, 0.17025615274906158, 0.6057521104812622, -0.034785494208335876, 0.2875251770019531, -0.14748075604438782, -0.33283179998397827, 0.3032148778438568, -0.1174418181180954, 0.0008850395679473877, 0.22657427191734314, -0.03646526485681534, 0.007941287010908127, -0.23495209217071533, -0.2598972022533417, -0.2536050081253052, -0.2457023561000824, 0.041177134960889816, 0.23429985344409943, -0.21848012506961823, 0.3228552043437958, -0.09672659635543823, -0.28927111625671387, 0.040231384336948395, -0.05665042996406555, -0.2865132689476013, 0.5489959716796875, 0.06391331553459167, 0.22345104813575745, -0.012394990772008896, 0.09777014702558517, 0.08565731346607208, 0.1389271765947342, -0.3139621615409851, -0.1638156771659851, -0.09900932013988495, -0.2692669630050659, 0.1715831458568573, 0.04331118240952492, 0.2881929278373718, -0.17314043641090393, -0.32715559005737305, 0.2364424765110016, 0.13765113055706024, -0.040998831391334534, -0.03795180842280388, 0.15130281448364258, 0.3637935221195221, 0.39303770661354065, 0.16006487607955933, 0.3717465102672577, -0.25053346157073975, 0.0670381635427475, 0.21428072452545166, -0.4900720417499542, 0.08938589692115784, 0.36243247985839844, 0.48379939794540405, -0.13405916094779968, -0.3963899314403534, 0.02969011291861534, -0.3338356018066406, -0.19556348025798798, 0.2910759747028351, 0.3604336678981781, 0.08206374198198318, 0.15690878033638, -0.06344613432884216, 0.12055156379938126, -0.4024658501148224, -0.5974605083465576, -0.23446139693260193, 0.19993126392364502, -0.14560069143772125, 0.08648782223463058, -0.06261667609214783, 0.11148537695407867, 0.2179783284664154, 0.0460343100130558, 0.2459365576505661, -0.16834405064582825, 0.2916012108325958, -0.18159492313861847, 0.28296783566474915, 0.028106138110160828, -0.2718506157398224, -0.004622898995876312, 0.45500126481056213, 0.190725639462471, -0.08066743612289429, 0.2221519649028778, -0.21588897705078125, -0.4644258916378021, -0.09765887260437012, 0.3321044147014618, -0.07314573228359222, 0.17827746272087097, 0.5924716591835022, 0.04810555279254913, 0.15525545179843903, -0.43499886989593506, 0.20908772945404053, -0.060054659843444824, -0.16677100956439972, -0.08903705328702927, 0.23392334580421448, 0.11984190344810486, -0.12447398900985718, -0.06569363176822662, -0.39698657393455505, -0.1516096442937851, -0.06715705245733261, 0.25520777702331543, -0.17126747965812683, 0.054774537682533264, -0.19842451810836792, 0.08468438684940338, 0.37580406665802, -0.1946098357439041, -0.20212075114250183, -0.03812217712402344, 0.06936714053153992, 0.012972639873623848, 0.16200993955135345, -0.18951383233070374, -0.035373322665691376, -0.22493302822113037, 0.3467789590358734, -0.05722511559724808, 0.11534754186868668, 0.16257938742637634, -0.4797005355358124, -0.14719675481319427, 0.007671341300010681, -0.09087210893630981, 0.30082255601882935, -0.15362972021102905, -0.063729427754879, 0.025800425559282303, 0.3297075927257538, -0.017494145780801773, -0.21042199432849884, -0.025794435292482376, 0.3017054796218872, -0.24788053333759308, 0.15608514845371246, -0.1237630695104599, 0.11817452311515808, 0.38317301869392395, -0.29100990295410156, 0.07883743941783905, 0.17083953320980072, -0.3656662106513977, -0.25397175550460815, 0.19305932521820068, 0.009614471346139908, -0.420235276222229, 0.2927217185497284, -0.2246105968952179, 0.17329208552837372, -0.12127824127674103, -0.27274954319000244, -0.2661444842815399, -0.18994341790676117, 0.06627321988344193, 0.3019982576370239, 0.009286796674132347, -0.25062525272369385, -0.0765591636300087, -0.33496448397636414, 0.2765537202358246, -0.08928904682397842, 0.06646338850259781, -0.1932649314403534, 0.5474669337272644, 0.10871654748916626, -0.20317913591861725, -0.1595524251461029, -0.28764182329177856, -0.027004679664969444, -0.44863972067832947, 0.04506716504693031, 0.1910557895898819, -0.23116596043109894, 0.2852994203567505, -0.13716977834701538, 0.2338474988937378, 0.22246654331684113, 0.11550820618867874, 0.08620423078536987, -0.17727650701999664, 0.03283312916755676, -0.2034718096256256, -0.06344801187515259, -0.3830017149448395, 0.09544475376605988, -0.09635090827941895, -0.06943178176879883, 0.0651424303650856, -0.08510032296180725, 0.21026811003684998, 0.4371001422405243, 0.1356368511915207, 0.04204494133591652, 0.044710490852594376, -0.029131777584552765, -0.11705733090639114, 0.21654272079467773, -0.09257429838180542, 0.15691021084785461, 0.2812018394470215, -0.1609283983707428, 0.052417248487472534, 0.19569680094718933, -0.0003358796238899231, 0.23469869792461395, 0.2947421669960022, -0.0935794934630394, 0.34642916917800903, 0.07352078706026077, -0.09396962076425552, -0.20559656620025635, 0.10507000982761383, -0.13480278849601746, 0.11675554513931274, -0.27449554204940796, 0.10401057451963425, -0.020896196365356445, -0.1315421462059021, -0.2061721682548523, -0.34691059589385986, -0.5436736941337585, -0.16153235733509064, 0.495771586894989, -0.13543164730072021, -0.13256075978279114, 0.24456268548965454, 0.03286503255367279, 0.15216150879859924, 0.0329446867108345, 0.16800165176391602, 0.10634152591228485, -0.12354883551597595, -0.01060815155506134, 0.1285708248615265, 0.04853762313723564, 0.26370367407798767, 0.23808521032333374, -0.32206249237060547, -0.36315929889678955, 0.061066754162311554, -0.3500370681285858, 0.04878535494208336, 0.041457198560237885, 0.09130578488111496, 0.48386043310165405, 0.10223014652729034, 0.4969536066055298, -0.3163323998451233, 0.25477439165115356, -0.2765059471130371, 0.05477023124694824, -0.19710208475589752, 0.28791898488998413, 0.029817912727594376, -0.17456935346126556, -0.25029170513153076, 0.007101588882505894, -0.5168333649635315, 0.11194618791341782, 0.32708975672721863, 0.03316747024655342, 0.07753816992044449, 0.19998641312122345, -0.0095462491735816, -0.04283662512898445, 0.2772497534751892, -0.1555822491645813, 0.04786732420325279, -0.19966454803943634, 0.1677601933479309, 0.06125462427735329, 0.014281485229730606, -0.5810762643814087, 0.085314080119133, -0.30766552686691284, 0.001927010715007782, -0.252326637506485, -0.2729685604572296, -0.009222012013196945, -0.24792611598968506, 0.046142250299453735, 0.1490997076034546, 0.10526134818792343, -0.2731625437736511, -0.18657714128494263, -0.09671102464199066, 0.07357822358608246, -0.1844319999217987, 0.35596606135368347, -0.15187811851501465, 0.19297164678573608, 0.08724038302898407, 0.3079008162021637, 0.22316649556159973, 0.042830850929021835, -0.05211017280817032, -0.033410996198654175, 0.1109301745891571, -0.061911918222904205, -0.26643648743629456, 0.1424492448568344, 0.3923274874687195, -0.44607436656951904, 0.42395681142807007, 0.016116980463266373, 0.06645368784666061, 0.004058957099914551, -0.24359047412872314, -0.09453372657299042, -0.39423486590385437, -0.09703569114208221, 0.11746933311223984, 0.15008226037025452, 0.08662964403629303, 0.048774391412734985, -0.11588375270366669, 0.09186418354511261, -0.05475427955389023, 0.13575583696365356, 0.09050526469945908, -0.19352374970912933, 0.10677473247051239, -0.1711733341217041, -0.011788882315158844, 0.4565849304199219, 0.33208346366882324, -0.04298589378595352, 0.08517119288444519, -0.27139079570770264, 0.16670119762420654, -0.06510478258132935, 0.47531622648239136, -0.29457738995552063, -0.0762246623635292, 0.02100643515586853, 0.15055051445960999, 0.1992301195859909, -0.18214717507362366, -0.09223387390375137, 0.3483707308769226, 0.23847046494483948, 0.2506672739982605, -0.16152530908584595, -0.12799066305160522, 0.6435269117355347, 0.14194262027740479, -0.17745262384414673, -0.25571995973587036, -0.41989532113075256, 0.029039867222309113, -0.5848771929740906, 0.20550967752933502, 0.19579750299453735, -0.012752185575664043, 0.14754197001457214, 0.08495986461639404, 0.0853891596198082, -0.15205401182174683, -0.05149415135383606, 0.1103479415178299, 0.40079692006111145, -0.18095116317272186, -0.2523021399974823, -0.0944032371044159, -0.13653311133384705, 0.2393697202205658, 0.21330329775810242, 0.11450403928756714, 0.10206973552703857, -0.5196986198425293, 0.12625554203987122, 0.05572723597288132, 0.4156067669391632, -0.2416204959154129, 0.19882547855377197, -0.03549676388502121, 0.37949705123901367, 0.014782793819904327, 0.014447152614593506, 0.0685308575630188, 0.02048969268798828, -0.006118730176240206, -0.014807207509875298, 0.11269526183605194, -0.08655813336372375, 0.01022782176733017, 0.13933543860912323, 0.19270937144756317, -0.23732680082321167, -0.07011360675096512, 0.22103053331375122, 0.8791000843048096, 0.36869752407073975, -0.029825489968061447, -0.020537108182907104, 0.27151811122894287, 0.2065582424402237, 0.06568264216184616, 0.2796834707260132, -0.3516995310783386, -0.320359468460083, 0.08761421591043472, -0.04050315171480179, 0.19370180368423462, -0.24802161753177643, -0.3932584226131439, 0.21725638210773468, -0.16318145394325256, -0.07539798319339752, -0.10158979892730713, 0.04592989385128021, -0.21121437847614288, 0.32727327942848206, -0.06788542121648788, 0.14739443361759186, 0.01838642731308937, 0.0783521831035614, -0.1981479525566101, 0.05728694051504135, 0.17271749675273895, -0.42189162969589233, -0.15105275809764862, -0.1402047872543335, 0.09495154023170471, 0.1736270636320114, 0.15685024857521057, 0.1575365960597992, -0.02924094907939434, -0.37564799189567566, 0.32913637161254883, 0.3395966589450836, -0.008459536358714104, 0.13760799169540405, 0.14120200276374817, 0.05573555827140808, 0.07549883425235748, 0.34924712777137756, 0.44532695412635803, -0.05360788851976395, -0.333028644323349, -0.008431822061538696, -0.37505555152893066, 0.06664018332958221, -0.2844852805137634, -0.158684641122818, 0.294345885515213, -0.2735612392425537, 0.04456062987446785, -0.05175177752971649, -0.21440261602401733, -0.23182392120361328, 0.21600154042243958, -0.047311872243881226, -0.3141925632953644, 0.03855006396770477, -0.07790139317512512, -0.3705005645751953, 0.14172711968421936, 0.014623455703258514, -0.13493987917900085, 0.2627719044685364, 0.41536739468574524, -0.16650442779064178, -0.09082552045583725, -0.2657768428325653, -0.10313580930233002, -0.14727579057216644, -0.11221866309642792, 0.40753453969955444, 0.03046826645731926, -0.11475301533937454, -0.05305980145931244, 0.34749558568000793, 0.17275381088256836, 0.5751525163650513, -0.33679166436195374, -0.12972989678382874, -0.03602861613035202, 0.2364867627620697, -0.16236914694309235, 0.2149159461259842, -0.09379495680332184, 0.3156042993068695, 0.0792362242937088, 0.13068611919879913, -0.4293399453163147, -0.09005045145750046, -0.37525561451911926, 0.1329321563243866, -0.4137560725212097, -0.14020541310310364, -0.23771783709526062, -0.08103419840335846, 0.14105147123336792, -0.03241486847400665, -0.13203857839107513, -0.2850682735443115, 0.0851643979549408, 0.12667064368724823, -0.029711075127124786, 0.0029374808073043823, 0.24292027950286865, -0.04983413964509964, 0.2864551246166229, 0.050427231937646866, 0.00888766348361969, -0.1674758791923523, 0.04187135398387909, 0.27948981523513794, 0.08839132636785507, 0.1019817665219307, -0.5218051075935364, 0.03492440655827522, -0.16629819571971893, -0.1871825009584427, -0.33890315890312195, 0.16483299434185028, -0.35226020216941833, -0.029844388365745544, 0.3165757954120636, 0.10769028216600418, -0.15381105244159698, 0.23465347290039062, -0.08934587985277176, -0.00805944949388504, -0.005300592631101608, -0.06448762118816376, 0.5110061168670654, 0.12591464817523956, -0.0929696187376976, 0.06484578549861908, -0.07170766592025757, 0.3531918227672577, -0.404867559671402, 0.3301016092300415, 0.05456772819161415, -0.560034990310669, 0.33205506205558777, 0.380741149187088, 0.01111278310418129, -0.09348617494106293, 0.3823796510696411, 0.2986027002334595, 0.10795266181230545, -0.27453070878982544, 0.04646581783890724, 0.7022605538368225, -0.5604820251464844, 0.09175437688827515, 0.2230321615934372, -0.15486839413642883, 0.458053320646286, 0.09373605251312256, -0.28658434748649597, 0.39027532935142517, 0.049927935004234314, -0.03272770717740059, 0.08322390913963318, 0.21681742370128632, 0.43536195158958435, 0.0912349745631218, 0.4295397102832794, -0.23442599177360535, 0.09335865080356598, 0.3325171172618866, -0.33135536313056946, 0.045682430267333984, -0.06552433967590332, 0.10646988451480865, -0.01898845285177231, -0.11159439384937286, -0.30324965715408325, -0.01186542958021164, -0.34826886653900146, -0.3151402473449707, 0.20107430219650269, 0.1671704649925232, 0.20155447721481323, 0.07540149241685867, 0.04011191055178642, -0.23426754772663116, 0.003436388447880745, -0.04841902107000351, 0.2619316279888153, -0.36220085620880127, 0.10079564899206161, 0.3024637997150421, 0.22310875356197357, 0.34615084528923035, 0.27357301115989685, 0.43866589665412903, 0.10603988915681839, 0.011234602890908718, -0.4294873774051666, -0.014359235763549805, 0.015013759955763817, -0.2043476700782776, -0.046607606112957, -0.05401650071144104, 0.2571094036102295, 0.1268218606710434, 0.17438668012619019, -0.3601967394351959, 0.14842776954174042, -0.21744440495967865, -0.09252816438674927, -0.33528587222099304, 0.272282212972641, 0.23425079882144928, -0.20631107687950134, -0.1549805998802185, -0.0266144797205925, -0.34383291006088257, -0.1574067920446396, 0.03216845914721489, -0.12251763790845871, 0.06191815435886383, 0.0013692525681108236, 0.12376098334789276, -0.006310911849141121, 0.15366415679454803, -0.08205941319465637, -0.24674305319786072, -0.1681792438030243, 0.1362917572259903, -0.5792773962020874, 0.16684995591640472, -0.09622466564178467, -0.27450665831565857, 0.29297375679016113, 0.1212080717086792, -0.17719754576683044, 0.15882205963134766, 0.40518617630004883, -0.0060081882402300835, 0.0930924192070961, -0.1200517863035202, -0.20454376935958862, 0.1931050717830658, 0.03561384975910187, -0.35748276114463806, 0.23203933238983154, -0.21055415272712708, 0.1945485919713974, -0.2096135914325714, 0.16006314754486084, 0.3742998242378235, -0.13810476660728455, 0.5438289642333984, -0.22673043608665466, -0.10743960738182068, 0.18801310658454895, 0.19444984197616577, -0.15016469359397888, 0.14207518100738525, 0.0364811085164547, -0.2645138204097748, -0.4685320258140564, 0.2118411660194397, 0.12164677679538727, 0.3466506600379944, 0.09658684581518173, -0.147404283285141, -0.12554162740707397, 0.22197069227695465, 0.14526928961277008, 0.05724098160862923, -0.294281005859375, 0.28860893845558167, -0.024743307381868362, 0.18200671672821045, 0.18284296989440918, 0.0060829222202301025, 0.011959388852119446, -0.08700250089168549, -0.4934091567993164, -0.6318153738975525, 0.6228066086769104, 0.17076967656612396, -0.42454034090042114, -0.23798197507858276, 0.41066402196884155, 0.15408378839492798, -0.3540908098220825, -0.31457507610321045, -0.03229063004255295, 0.3075965344905853, 0.07423102855682373, -0.18747633695602417, 0.06485199928283691, 0.059820812195539474, 0.04509406164288521, 0.0977330207824707, -0.2210727334022522, 0.07601764053106308, -0.030336380004882812, 0.13407158851623535, 0.08707752078771591 ]
https://github.com/huggingface/datasets/pull/2109
Add more issue templates and customize issue template chooser
If you agree, I could also add a link to [Discussions](https://github.com/huggingface/datasets/discussions) in order to reinforce the use of Discussion to make Questions (instead of Issues). I could also add some other templates: Bug, Feature Request,...
When opening an issue, it is not evident for the users how to choose a blank issue template. There is a link at the bottom of all the other issue templates (`Don’t see your issue here? Open a blank issue.`), but this is not very visible for users. This is the reason why many users finally chose the `add-dataset` template instead (this is more visible) for issues that indeed are not requesting the addition of a new dataset. ~~With this PR, the default blank issue template would be as visible as the other templates (as the `add-dataset` template), thus making easier for the users to choose it.~~ With this PR: - more issue templates, besides `add-dataset`, are added: `bug-report` and `feature-request` - the issue template chooser is customized, so that it now includes a link to `Discussions` for questions
35
text: Add more issue templates and customize issue template chooser When opening an issue, it is not evident for the users how to choose a blank issue template. There is a link at the bottom of all the other issue templates (`Don’t see your issue here? Open a blank issue.`), but this is not very visible for users. This is the reason why many users finally chose the `add-dataset` template instead (this is more visible) for issues that indeed are not requesting the addition of a new dataset. ~~With this PR, the default blank issue template would be as visible as the other templates (as the `add-dataset` template), thus making easier for the users to choose it.~~ With this PR: - more issue templates, besides `add-dataset`, are added: `bug-report` and `feature-request` - the issue template chooser is customized, so that it now includes a link to `Discussions` for questions If you agree, I could also add a link to [Discussions](https://github.com/huggingface/datasets/discussions) in order to reinforce the use of Discussion to make Questions (instead of Issues). I could also add some other templates: Bug, Feature Request,...
[ -0.09766735881567001, -0.1992277055978775, -0.04385402053594589, 0.008559785783290863, -0.036845363676548004, 0.21235206723213196, 0.134715735912323, 0.2289445847272873, -0.2102040946483612, 0.19070327281951904, 0.10608772188425064, 0.35334938764572144, -0.02831905335187912, 0.07653165608644485, 0.07173238694667816, -0.3501591086387634, -0.10743539780378342, 0.30674272775650024, 0.49743688106536865, 0.2642754316329956, -0.30341804027557373, 0.13329994678497314, -0.09160041809082031, 0.16406776010990143, -0.2087748944759369, -0.17911842465400696, -0.010994473472237587, 0.2108858823776245, -0.2904054522514343, -0.4994678199291229, -0.04680309444665909, 0.32904717326164246, -0.2475038766860962, -0.050589658319950104, -0.00010751777881523594, -0.13632413744926453, 0.4209730625152588, 0.1740107238292694, -0.2819397449493408, -0.14804799854755402, -0.273671954870224, -0.46817824244499207, 0.17083270847797394, 0.06310267001390457, -0.12395984679460526, -0.28418490290641785, -0.052285052835941315, 0.43339502811431885, 0.1425759196281433, 0.08679462969303131, 0.18693727254867554, 0.09699643403291702, 0.3031993508338928, -0.2894870340824127, 0.24357900023460388, 0.31043559312820435, -0.44917765259742737, 0.1286112517118454, 0.3296164870262146, 0.18752364814281464, 0.11812208592891693, 0.2962383031845093, 0.09369923919439316, -0.014871656894683838, 0.3708099126815796, 0.02180876024067402, 0.27423298358917236, -0.40603625774383545, -0.006700970232486725, 0.2747422456741333, 0.49807262420654297, -0.0043085478246212006, -0.012858660891652107, -0.368990957736969, 0.1836322695016861, 0.011524086818099022, -0.0746525451540947, -0.04021292179822922, -0.46009212732315063, 0.20155096054077148, 0.17979636788368225, -0.5616547465324402, -0.19846494495868683, 0.07891659438610077, 0.34080347418785095, -0.00014904886484146118, -0.025120437145233154, -0.08055204898118973, 0.16196338832378387, 0.0781158059835434, 0.029133982956409454, -0.14181290566921234, -0.041409965604543686, -0.161136656999588, -0.0653245747089386, -0.0840873122215271, 0.5031992793083191, 0.33483684062957764, 0.08362983912229538, 0.16977424919605255, 0.005570295266807079, 0.07030494511127472, 0.033327922224998474, 0.004989020526409149, 0.057552240788936615, -0.19581282138824463, -0.0854412093758583, 0.0476565919816494, 0.21177174150943756, 0.2544166147708893, 0.6524189710617065, -0.008215155452489853, 0.00797721091657877, -0.1218676045536995, -0.1781892329454422, -0.0714307576417923, 0.5900177359580994, 0.06875525414943695, 0.08299176394939423, 0.05870698392391205, 0.00723879411816597, -0.17946073412895203, -0.024612288922071457, 0.2616089880466461, -0.05466854199767113, 0.23663803935050964, 0.007635992020368576, -0.16910935938358307, -0.19533491134643555, -0.09135644882917404, -0.23241478204727173, -0.1799979954957962, -0.2678568959236145, 0.2949684262275696, 0.10096403956413269, -0.10252159833908081, 0.11259284615516663, 0.4365774989128113, 0.3617902994155884, -0.0032264702022075653, 0.26830658316612244, 0.09541349112987518, -0.10708891600370407, 0.1832992434501648, -0.2331872284412384, 0.035344064235687256, 0.2577124834060669, -0.04266905039548874, -0.0499597005546093, 0.3644907474517822, -0.10973390191793442, -0.2683841586112976, -0.3368670642375946, 0.20942169427871704, -0.010631351731717587, 0.2665002644062042, -0.00818759948015213, 0.4404295086860657, -0.3901670575141907, -0.22190852463245392, 0.23483479022979736, 0.08281607925891876, -0.03995022177696228, -0.15409409999847412, 0.21820266544818878, 0.5185982584953308, -0.005022596567869186, -0.11037058383226395, 0.06725846230983734, -0.4242309629917145, -0.26667219400405884, -0.1232592910528183, -0.17427287995815277, 0.011190354824066162, -0.32939451932907104, 0.15823602676391602, 0.15008577704429626, -0.1384722888469696, -0.23255555331707, 0.13761582970619202, -0.29341310262680054, 0.1328694075345993, 0.283196359872818, 0.06609533727169037, 0.25498563051223755, -0.019711965695023537, 0.17653189599514008, -0.369662880897522, -0.11027191579341888, -0.07997547090053558, -0.5776109099388123, 0.11196397244930267, 0.0032343976199626923, 0.03195521607995033, -0.08922900259494781, 0.13081225752830505, -0.14987877011299133, 0.2736835777759552, 0.2687941789627075, -0.029476609081029892, -0.07230711728334427, 0.13929438591003418, 0.787265956401825, -0.09477615356445312, 0.00037024402990937233, -0.06137249618768692, -0.7364404201507568, -0.19062939286231995, -0.1483190953731537, 0.2988972067832947, 0.33069050312042236, -0.20664989948272705, -0.441158652305603, -0.18719840049743652, -0.13530486822128296, -0.4012194573879242, 0.0900188535451889, 0.12499970197677612, -0.09835989773273468, -0.1830928474664688, -0.3724789619445801, 0.1587532013654709, -0.29505664110183716, 0.305482417345047, -0.14908187091350555, 0.16349034011363983, -0.18515697121620178, 0.04769100621342659, -0.005129579454660416, 0.10705579072237015, 0.09094981104135513, 0.014298776164650917, 0.06649594008922577, 0.23948076367378235, -0.04042026028037071, 0.13625097274780273, -0.10159484297037125, 0.20971763134002686, 0.2363760620355606, -0.4597350060939789, 0.023390993475914, -0.054421622306108475, -0.12311568111181259, 0.08825180679559708, -0.36300432682037354, 0.18486696481704712, -0.13983474671840668, 0.25432851910591125, -0.06765604764223099, 0.03663411736488342, -0.13505685329437256, -0.13713961839675903, -0.24875721335411072, -0.2050694227218628, 0.018005643039941788, 0.16833290457725525, 0.38136130571365356, 0.19328618049621582, -0.47021302580833435, 0.35003456473350525, 0.2534579932689667, -0.07792429625988007, -0.14321395754814148, 0.3891245424747467, -0.12718427181243896, -0.40771546959877014, 0.07929747551679611, -0.20460179448127747, 0.22028817236423492, 0.38789471983909607, -0.2814808487892151, 0.29320570826530457, -0.1104101687669754, -0.24273890256881714, 0.10673660039901733, 0.18702971935272217, -0.40374383330345154, 0.2690771520137787, 0.08262099325656891, 0.09697158634662628, 0.06638538092374802, 0.002705138176679611, 0.029190080240368843, 0.2645227611064911, -0.279837042093277, -0.34947019815444946, 0.10689735412597656, -0.05121254920959473, 0.06861867010593414, 0.2545589208602905, -0.03965914621949196, -0.3753429651260376, 0.3366212248802185, -0.02917357161641121, -0.04682540521025658, 0.32376739382743835, 0.013818293809890747, 0.6849437355995178, -0.44932231307029724, 0.4381709396839142, -0.4865947961807251, 0.03633144870400429, -0.1868777573108673, 0.204355388879776, -0.2325490117073059, 0.2864706218242645, 0.15014077723026276, -0.30625462532043457, 0.24133910238742828, -0.2840585708618164, -0.5244328379631042, 0.31066417694091797, 0.028333064168691635, 0.5503774881362915, 0.3247920274734497, 0.18267573416233063, -0.22659417986869812, -0.10596998035907745, 0.3233798146247864, -0.02663412131369114, -0.23761558532714844, -0.33812347054481506, -0.16998620331287384, 0.38944369554519653, -0.13315370678901672, -0.47815433144569397, -0.005081020295619965, -0.6043133735656738, 0.17119738459587097, -0.07494398951530457, 0.07825149595737457, 0.2598054111003876, 0.2781405746936798, 0.2009110450744629, -0.22513103485107422, 0.16503359377384186, -0.14069430530071259, -0.3036350905895233, -0.07097360491752625, -0.23097467422485352, 0.1261521428823471, -0.06963746249675751, -0.0755099207162857, -0.06484194099903107, -0.11813504993915558, -0.29367393255233765, -0.5445771217346191, 0.1086740493774414, 0.21522292494773865, -0.058101192116737366, 0.0861489400267601, 0.3810868263244629, 0.17195691168308258, -0.2727311849594116, 0.05106819421052933, -0.3069669008255005, -0.15330421924591064, -0.23189032077789307, 0.24369120597839355, 0.16063255071640015, 0.13949856162071228, -0.11978428065776825, 0.8690851926803589, 0.4581269323825836, 0.3685031831264496, 0.12038007378578186, 0.13601425290107727, 0.5320335030555725, -0.051776401698589325, -0.30644258856773376, 0.33735960721969604, 0.34676027297973633, 0.12779811024665833, 0.19125233590602875, 0.3044419288635254, 0.03551580384373665, 0.057777807116508484, -0.2815096378326416, -0.07778849452733994, -0.29933664202690125, 0.20678989589214325, -0.013211492449045181, 0.4291478097438812, -0.16122819483280182, -0.21165910363197327, -0.20588494837284088, 0.020214037969708443, 0.0715053528547287, 0.6524041295051575, 0.23488068580627441, -0.15142405033111572, -0.21089786291122437, 0.5883305668830872, -0.3037170171737671, 0.09543192386627197, -0.2358935922384262, -0.24040359258651733, -0.18488088250160217, -0.19437813758850098, 0.15873382985591888, 0.21002233028411865, 0.49355530738830566, -0.4040295481681824, -0.5530868768692017, 0.1502770334482193, 0.0431596040725708, 0.051682353019714355, 0.15710978209972382, -0.1578131467103958, 0.25384798645973206, 0.36815395951271057, 0.5716224908828735, -0.44720160961151123, -0.3760052025318146, 0.24663744866847992, -0.16318650543689728, -0.08154589682817459, -0.22810886800289154, 0.001614198088645935, 0.04725293815135956, -0.26940053701400757, 0.1671932190656662, 0.00989115796983242, 0.0003138771280646324, 0.25818324089050293, -0.012965606525540352, -0.07696530967950821, 0.006667371839284897, 0.08850818872451782, 0.22857454419136047, 0.20303598046302795, 0.05193154513835907, -0.14631898701190948, 0.17176251113414764, 0.04571620374917984, 0.24000360071659088, 0.23757104575634003, -0.4910490810871124, -0.43619978427886963, 0.2549228370189667, -0.15798044204711914, 0.17635180056095123, 0.34161072969436646, 0.07577143609523773, 0.0920906811952591, 0.10701272636651993, 0.5007303953170776, -0.14529277384281158, 0.18952792882919312, 0.09946082532405853, -0.1736339032649994, -0.20784172415733337, -0.4957205653190613, 0.04178090766072273, 0.11869886517524719, -0.2897549271583557, 0.2506466507911682, 0.38808804750442505, 0.08731365948915482, -0.03394092619419098, 0.035793449729681015, 1.0277985334396362, 0.2604520916938782, 0.09001942723989487, 0.15451467037200928, -0.18825885653495789, 0.4338201880455017, -0.20737262070178986, 0.012299593538045883, -0.07992586493492126, 0.06601303070783615, 0.022356504574418068, -0.13099516928195953, 0.30188629031181335, 0.003179248422384262, -0.16579996049404144, 0.017294825986027718, -0.011168189346790314, 0.07249435782432556, 0.20796193182468414, 0.2397885024547577, -0.10986048728227615, -0.20097260177135468, -0.2551734149456024, 0.1343417465686798, -0.1351236253976822, -0.021746303886175156, -0.04313504695892334, -0.14585870504379272, 0.12678243219852448, -0.24080848693847656, -0.4343753457069397, -0.286939799785614, -0.19938790798187256, -0.18804040551185608, 0.47870296239852905, -0.4771604537963867, 0.3575458526611328, 0.10554161667823792, 0.16619527339935303, 0.22059346735477448, -0.29506394267082214, 0.04574935883283615, -0.005591541528701782, -0.055644307285547256, -0.08501587063074112, -0.062159258872270584, 0.42918938398361206, -0.13092365860939026, -0.33099690079689026, 0.37482768297195435, -0.20915167033672333, -0.20932164788246155, -0.42810216546058655, -0.052451297640800476, 0.04956851899623871, -0.17117007076740265, -0.2319921851158142, -0.05311994254589081, 0.05123845115303993, -0.4548281133174896, 0.1653221994638443, 0.1486557424068451, -0.08524016290903091, -0.22570326924324036, 0.27405181527137756, -0.09357734024524689, -0.06143123283982277, -0.3623945415019989, -0.12389013916254044, -0.33379024267196655, 0.16798236966133118, 0.037282783538103104, -0.16630978882312775, -0.3752906322479248, 0.03948851674795151, 0.1930702030658722, -0.3545384705066681, 0.05106528103351593, 0.23152166604995728, -0.1267828792333603, 0.0056202588602900505, 0.26816561818122864, 0.14687678217887878, 0.2988263964653015, -0.11400578916072845, -0.20946384966373444, -0.22129018604755402, 0.15797236561775208, -0.08713574707508087, 0.18461449444293976, -0.10315921157598495, -0.0037229079753160477, 0.22594663500785828, 0.11768054217100143, -0.4168495833873749, -0.03256671130657196, -0.37098824977874756, -0.12063583731651306, -0.19008418917655945, -0.03607458621263504, -0.040690746158361435, -0.18349052965641022, 0.05056270956993103, 0.018541818484663963, -0.28426939249038696, -0.19518697261810303, -0.288160115480423, 0.14873260259628296, -0.043015822768211365, -0.006680279038846493, 0.17067073285579681, 0.4164265990257263, 0.0479457788169384, 0.13447272777557373, 0.24781906604766846, 0.016084622591733932, 0.025217611342668533, -0.16886049509048462, -0.08566892147064209, 0.1449524462223053, -0.10155361890792847, -0.006114151328802109, 0.17066428065299988, 0.2918367385864258, 0.15448243916034698, -0.15456411242485046, -0.22893984615802765, 0.04022589325904846, 0.05650865286588669, 0.3734707534313202, 0.38815557956695557, 0.1751554012298584, -0.04791734367609024, 0.25246259570121765, -0.03932536765933037, 0.04834865406155586, -0.12493275105953217, -0.03926751762628555, 0.013216337189078331, 0.1308048516511917, 0.1912153959274292, 0.2301788032054901, -0.14197063446044922, 0.1440228819847107, 0.21293960511684418, -0.24509985744953156, 0.24165788292884827, 0.23734056949615479, 0.18213321268558502, 0.06520332396030426, -0.03296112269163132, 0.11976488679647446, 0.19499704241752625, -0.3263643980026245, 0.2808208763599396, 0.31662455201148987, -0.33401209115982056, 0.11381959915161133, 0.5861198306083679, 0.15613983571529388, 0.036030113697052, -0.1865057498216629, 0.002871684730052948, 0.2485039085149765, -0.0682210847735405, 0.2587986886501312, 0.2482459545135498, 0.004662130028009415, 0.34949246048927307, 0.07902592420578003, -0.016812801361083984, -0.016472861170768738, 0.005613222718238831, 0.04973304271697998, 0.05860472097992897, 0.1371256560087204, 0.1014617308974266, 0.04625113308429718, 0.062240391969680786, -0.3120327889919281, 0.0632207989692688, -0.22393882274627686, -0.1897321194410324, -0.012050598859786987, 0.0752837285399437, -0.29265469312667847, 0.2757362127304077, -0.1771337389945984, 0.059112463146448135, -0.2672335207462311, 0.2793283760547638, 0.17867892980575562, 0.12796446681022644, 0.04924701526761055, 0.1410277932882309, -0.2840125560760498, 0.020994946360588074, 0.08269741386175156, 0.655304491519928, 0.2420179843902588, 0.11772055923938751, 0.20257849991321564, -0.24363663792610168, -0.20041736960411072, 0.06643826514482498, -0.0412842258810997, 0.009906379505991936, 0.41591203212738037, 0.17635983228683472, -0.04911171644926071, 0.14553475379943848, -0.33059993386268616, 0.26690277457237244, -0.28693318367004395, -0.09718626737594604, -0.4291488528251648, 0.3548664450645447, -0.07316770404577255, -0.15448930859565735, -0.004208266735076904, -0.07905847579240799, -0.32801979780197144, 0.08213420957326889, 0.2912755608558655, 0.05973413214087486, -0.1877898871898651, -0.34630894660949707, 0.12138669192790985, 0.15492933988571167, -0.023514803498983383, 0.26218700408935547, -0.03937903046607971, -0.2207450270652771, -0.05789447948336601, -0.42476820945739746, 0.31694287061691284, 0.08534136414527893, -0.11546703428030014, 0.20254983007907867, -0.008237693458795547, 0.0005850642919540405, 0.2882097363471985, 0.01871815323829651, 0.1134897917509079, -0.03416590765118599, 0.023314014077186584, -0.40633994340896606, 0.338741272687912, 0.20118263363838196, 0.12853655219078064, 0.16893862187862396, 0.24710613489151, -0.07932506501674652, 0.6859866976737976, 0.014086447656154633, -0.32270604372024536, -0.058227650821208954, 0.19616733491420746, -0.2985859513282776, 0.26998013257980347, 0.22386030852794647, -0.188168466091156, -0.03916851058602333, -0.38485410809516907, -0.14089739322662354, -0.1552376002073288, -0.03500169515609741, 0.23290404677391052, 0.1525155007839203, 0.3291219174861908, -0.1490403264760971, -0.724209189414978, -0.20061202347278595, -0.33443593978881836, 0.003450267016887665, -0.0661049336194992, -0.22608838975429535, 0.19249697029590607, 0.1348290741443634, -0.12700147926807404, 0.15646366775035858, 0.08119980245828629, -0.03549659252166748, -0.21871881186962128, -0.10758410394191742, -0.27861568331718445, 0.18011853098869324, -0.04138898849487305, -0.0024814624339342117, -0.06994367390871048, 0.20852446556091309, -0.12215093523263931, -0.14820799231529236, -0.7708377838134766, -0.14461204409599304, 0.2942393124103546, 0.10617287456989288, 0.014334101229906082, 0.14365144073963165, -0.0806826800107956, 0.01767747476696968, -0.05965367704629898, 0.17394813895225525, 0.07686244696378708, -0.03905586153268814, -0.09921211004257202, -0.20831893384456635 ]
https://github.com/huggingface/datasets/pull/2107
Metadata validation
> Also I was wondering this is really needed to have `utils.metadata` as a submodule of `datasets` ? This is only used by the CI so I'm not sure we should have this in the actual `datasets` package. I'm unclear on the suggestion, would you rather have a root-level `./metadata.py` file? I think it's well where it is, if anything we could move it out of utils and into `datasets` as it could be used by e.g. `DatasetDict` so that users can pull the metadata easily rather than have to reparse the readme.
- `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b)
93
text: Metadata validation - `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b) > Also I was wondering this is really needed to have `utils.metadata` as a submodule of `datasets` ? This is only used by the CI so I'm not sure we should have this in the actual `datasets` package. I'm unclear on the suggestion, would you rather have a root-level `./metadata.py` file? I think it's well where it is, if anything we could move it out of utils and into `datasets` as it could be used by e.g. `DatasetDict` so that users can pull the metadata easily rather than have to reparse the readme.
[ 0.01775188371539116, 0.03438307344913483, -0.05208645015954971, 0.040266744792461395, 0.3834760785102844, 0.2889469861984253, 0.32024112343788147, 0.13446541130542755, -0.3413233757019043, -0.2165180891752243, -0.003386294934898615, 0.14972420036792755, -0.21496161818504333, 0.050957903265953064, 0.11620207130908966, 0.18718349933624268, 0.060928672552108765, -0.0941290557384491, -0.054101914167404175, 0.012567132711410522, -0.01967712864279747, -0.2412538081407547, -0.00859300047159195, 0.1901121735572815, -0.43294742703437805, -0.05133382976055145, -0.01722402311861515, 0.2223372757434845, -0.438484251499176, -0.7748907208442688, 0.37697166204452515, 0.25402286648750305, 0.019793659448623657, 0.43791306018829346, -0.00011229721712879837, -0.030248910188674927, 0.4548327326774597, -0.038012467324733734, -0.4042714238166809, 0.010933540761470795, -0.15410399436950684, 0.12359544634819031, -0.16278904676437378, -0.09039823710918427, 0.15096253156661987, -0.13053317368030548, -0.25090911984443665, -0.19806934893131256, -0.15184451639652252, 0.5100787281990051, 0.1800881028175354, 0.17001685500144958, -0.011830579489469528, -0.04530062898993492, -0.17194804549217224, 0.37819981575012207, 0.011808419600129128, 0.23833848536014557, 0.3546162247657776, 0.046778008341789246, 0.17774125933647156, 0.22081343829631805, -0.030690468847751617, -0.19655387103557587, 0.4017604887485504, -0.0632249116897583, 0.15411749482154846, -0.44622787833213806, 0.22564393281936646, 0.09848959743976593, 0.8231806755065918, -0.4961688816547394, -0.42556050419807434, -0.0681619867682457, -0.08677628636360168, -0.05255994200706482, 0.0123622827231884, 0.39089253544807434, 0.1187935471534729, 0.27471572160720825, 0.12440596520900726, -0.15018388628959656, -0.12330066412687302, -0.021279819309711456, -0.07663297653198242, 0.34361597895622253, 0.0856318473815918, -0.021145261824131012, 0.15851721167564392, -0.16981112957000732, 0.21832634508609772, -0.20790719985961914, -0.11454501748085022, 0.33190107345581055, 0.08360343426465988, -0.21081899106502533, -0.03285402059555054, -0.19863420724868774, 0.32529717683792114, 0.09294275939464569, -0.15904292464256287, -0.15424585342407227, -0.22696533799171448, 0.23783844709396362, 0.3677124083042145, -0.17381058633327484, 0.26203352212905884, 0.45404115319252014, 0.2768741846084595, -0.0877552404999733, 0.43830808997154236, -0.03530498594045639, -0.13240115344524384, -0.08181873708963394, 0.34273675084114075, 0.22937306761741638, 0.42390239238739014, -0.37501516938209534, -0.26857325434684753, 0.1412593424320221, -0.053055718541145325, -0.047945279628038406, 0.040836527943611145, 0.01032298058271408, -0.003977403976023197, 0.030850796028971672, -0.33701997995376587, 0.18115395307540894, 0.1411416083574295, 0.07817437499761581, -0.1167900338768959, 0.30911731719970703, -0.23072732985019684, 0.13695989549160004, 0.017084293067455292, -0.3570345342159271, 0.16913962364196777, 0.004254111088812351, 0.0579245463013649, -0.2333415299654007, 0.06640654802322388, -0.21734878420829773, -0.06720412522554398, 0.6926581263542175, -0.3396356403827667, 0.16597802937030792, 0.20944426953792572, 0.03304541856050491, -0.23612219095230103, 0.15865787863731384, -0.37020623683929443, -0.6546340584754944, -0.18722350895404816, 0.2198202908039093, -0.2810625433921814, 0.000553671270608902, -0.23505479097366333, -0.29387736320495605, 0.3704811930656433, -0.04764901474118233, 0.13406877219676971, -0.1095278412103653, 0.022764917463064194, -0.30353623628616333, -0.1840519905090332, 0.27107518911361694, -0.2598187029361725, 0.16087794303894043, -0.14716361463069916, -0.017076734453439713, 0.028535060584545135, 0.14682552218437195, -0.2770075500011444, 0.304395467042923, -0.253519207239151, 0.10074077546596527, 0.20747970044612885, -0.5309591293334961, 0.06666206568479538, 0.08743602782487869, 0.05338842421770096, 0.0246406402438879, 0.10854597389698029, -0.008626428432762623, 0.08701818436384201, -0.551222562789917, 0.09188287705183029, -0.09391419589519501, -0.28510093688964844, -0.16996003687381744, -0.18249601125717163, -0.09596557170152664, 0.1547023355960846, 0.11894412338733673, 0.27686673402786255, -0.0662924125790596, 0.14660516381263733, 0.14935435354709625, 0.3028455674648285, -0.12485037744045258, -0.00114054000005126, 0.14772625267505646, 0.7048803567886353, 0.11915867030620575, 0.06961832195520401, -0.36651411652565, -0.3562479615211487, 0.14656656980514526, 0.44991886615753174, 0.3848544657230377, -0.14889943599700928, -0.4811862111091614, -0.300908625125885, -0.05595719814300537, -0.29861146211624146, -0.38005346059799194, 0.07366445660591125, -0.09868419170379639, -0.05367045849561691, -0.07321560382843018, -0.3533215820789337, 0.1387847363948822, -0.27324867248535156, 0.18693555891513824, -0.11287648975849152, 0.23718784749507904, -0.2864733040332794, 0.12067556381225586, -0.005674295127391815, 0.17253148555755615, -0.0333651602268219, -0.06892409175634384, -0.04300658032298088, 0.3331873118877411, 0.4843178987503052, -0.23532094061374664, 0.08862441778182983, 0.8965518474578857, 0.2402457892894745, -0.29893943667411804, 0.12474928796291351, 0.18249404430389404, -0.024722564965486526, -0.07700282335281372, -0.12769919633865356, 0.14225882291793823, -0.11767642199993134, 0.021865375339984894, 0.059188440442085266, -0.0673925131559372, 0.3297150731086731, 0.21153178811073303, -0.41244274377822876, -0.28899314999580383, -0.12630115449428558, -0.12884201109409332, 0.16719287633895874, 0.26470205187797546, 0.014621615409851074, 0.14562320709228516, 0.13870267570018768, -0.13515593111515045, 0.17780262231826782, 0.14992016553878784, 0.02129758894443512, -0.07531265914440155, 0.028722263872623444, 0.1756492406129837, 0.4605463743209839, -0.06037136912345886, -0.17416173219680786, 0.1780821979045868, -0.059452466666698456, -0.06401762366294861, 0.032108575105667114, 0.250572144985199, 0.12839722633361816, 0.1392114907503128, -0.04510840028524399, 0.12946605682373047, -0.15613314509391785, -0.19339966773986816, 0.05524803698062897, 0.309148907661438, -0.40031787753105164, 0.25159546732902527, -0.22525089979171753, -0.02974255383014679, -0.21711091697216034, -0.28527531027793884, -0.33726486563682556, -0.36097949743270874, 0.0167196337133646, 0.05197114124894142, -0.1705235093832016, 0.26210713386535645, -0.1766093224287033, 0.044427067041397095, 0.01388402096927166, -0.00954500027000904, -0.05727960169315338, -0.24869026243686676, 0.059613145887851715, 0.029406968504190445, 0.18369044363498688, -0.24175186455249786, 0.44409048557281494, -0.0004896260797977448, 0.06985335052013397, -0.46598610281944275, -0.6357583999633789, 0.016541089862585068, 0.003516152501106262, 0.059850141406059265, 0.3835471570491791, 0.005932055413722992, 0.5956498980522156, -0.0273110494017601, 0.11448723077774048, 0.060816578567028046, -0.06944619119167328, 0.04351658374071121, -0.040980804711580276, -0.16178129613399506, -0.09926053881645203, -0.3533334732055664, -0.4713239073753357, -0.2956124246120453, -0.2828983664512634, -0.052505820989608765, 0.13696406781673431, 0.5461496710777283, -0.13426333665847778, -0.25727182626724243, -0.23065589368343353, 0.07531119883060455, -0.18915966153144836, -0.1762761026620865, 0.021715465933084488, -0.08608903735876083, -0.18135562539100647, 0.15128324925899506, 0.07926265150308609, 0.34693843126296997, 0.13511353731155396, -0.03086041659116745, -0.31564444303512573, 0.011213047429919243, 0.09333108365535736, -0.11330026388168335, 0.04393067955970764, 0.146613210439682, 0.15513594448566437, 0.06066267192363739, -0.023427074775099754, -0.11635482311248779, -0.17636814713478088, 0.22465255856513977, 0.12218368053436279, -0.13080856204032898, 0.23603186011314392, 0.26028165221214294, 0.3753117322921753, 0.1421414315700531, -0.17687532305717468, -0.15919208526611328, -0.02141704224050045, 0.34522098302841187, 0.0758967399597168, -0.45805349946022034, 0.07746366411447525, -0.044852107763290405, -0.32506370544433594, 0.22630706429481506, -0.055062420666217804, 0.14998942613601685, 0.1389942318201065, 0.06525437533855438, -0.25572139024734497, -0.03895003721117973, 0.1004212349653244, -0.035492703318595886, 0.31993991136550903, -0.04618161916732788, 0.02974284440279007, -0.12144406139850616, 0.06888995319604874, 0.11332951486110687, 0.7114652395248413, 0.10699035972356796, 0.17594501376152039, -0.10490790009498596, -0.20658576488494873, -0.1766192615032196, -0.11047808825969696, 0.04404604434967041, 0.3623669147491455, -0.02184683084487915, 0.13506600260734558, -0.10328364372253418, 0.015087280422449112, -0.011500060558319092, -0.35919302701950073, 0.03233692795038223, 0.221896693110466, 0.0028022974729537964, -0.06893082708120346, -0.32525667548179626, 0.017993014305830002, 0.28024736046791077, 0.34029942750930786, 0.2971770167350769, -0.2825506329536438, -0.22645671665668488, 0.30214500427246094, -0.010399425402283669, -0.061952728778123856, -0.18803948163986206, -0.24219255149364471, -0.501583993434906, -0.26247885823249817, 0.08317583799362183, 0.3350431025028229, -0.03166786953806877, -0.08333290368318558, 0.14538492262363434, 0.3110050559043884, -0.14572805166244507, 0.18327444791793823, 0.1205788254737854, -0.038842033594846725, -0.09030802547931671, 0.14721490442752838, -0.14871689677238464, 0.043710485100746155, 0.8263166546821594, 0.5532900094985962, -0.0719386488199234, -0.26480406522750854, -0.19279876351356506, -0.29836544394493103, 0.46058282256126404, 0.011424362659454346, -0.0718577429652214, 0.24952638149261475, -0.1647699922323227, -0.20623405277729034, -0.4237937331199646, 0.14368067681789398, 0.17257297039031982, -0.0663684606552124, -0.44388943910598755, -0.580771803855896, 0.2815448045730591, 0.23384694755077362, -0.06111173331737518, 0.3187284767627716, -0.04272212088108063, -0.3831847608089447, -0.10067898035049438, 0.37769433856010437, 0.7837913036346436, 0.1572885811328888, 0.10512074828147888, 0.13739004731178284, 0.0665409043431282, 0.28684961795806885, -0.34501928091049194, -0.15936681628227234, -0.505429208278656, -0.19551530480384827, -0.11879919469356537, -0.11885513365268707, 0.33215177059173584, 0.00822000578045845, -0.2195313721895218, 0.26015108823776245, -0.20700578391551971, 0.42814818024635315, 0.23485207557678223, 0.3475729823112488, -0.15524587035179138, -0.06314393877983093, -0.017029501497745514, 0.1843681037425995, -0.13667143881320953, 0.2827821969985962, -0.30963215231895447, 0.0325845405459404, 0.049214545637369156, -0.19551801681518555, -0.4818136692047119, -0.12237614393234253, 0.11517713963985443, 0.24655364453792572, -0.03249889984726906, 0.21933893859386444, 0.26815614104270935, -0.3044966459274292, 0.5618203282356262, 0.3289133608341217, -0.032082438468933105, 0.04129846766591072, -0.04551520198583603, -0.10692442953586578, -0.09449291229248047, -0.13486099243164062, 0.48517242074012756, -0.0990390032529831, 0.00479462742805481, -0.0996585264801979, -0.05991927161812782, -0.14679178595542908, -0.27334532141685486, -0.12690359354019165, 0.17144668102264404, -0.33899039030075073, -0.1735486537218094, -0.09546427428722382, -0.20083868503570557, -0.16797634959220886, 0.13703563809394836, 0.38827764987945557, -0.21830081939697266, 0.43105238676071167, -0.5029464364051819, 0.013757146894931793, -0.07093635201454163, -0.00019485503435134888, 0.16357046365737915, -0.1584298312664032, -0.10070078074932098, -0.004218868911266327, -0.15296223759651184, -0.24095141887664795, 0.03607145696878433, 0.04284202679991722, -0.07414788752794266, 0.04949638620018959, 0.12504905462265015, -0.13811856508255005, -0.031655456870794296, -0.0551941879093647, 0.31815481185913086, -0.02524503320455551, -0.2837432622909546, -0.46096572279930115, -0.38574764132499695, 0.174841046333313, -0.033052798360586166, 0.12417025864124298, -0.22586998343467712, 0.18770496547222137, -0.008807891979813576, 0.05629511922597885, -0.32867151498794556, -0.16083627939224243, -0.05152801424264908, 0.14993491768836975, 0.4544139504432678, -0.04532680660486221, -0.020398085936903954, -0.24927234649658203, 0.0017760414630174637, -0.02059439942240715, -0.06469936668872833, -0.11515332013368607, -0.048848964273929596, 0.1384996920824051, 0.19787746667861938, 0.15910014510154724, 0.3023625910282135, -0.07531408965587616, -0.3609096109867096, 0.10815766453742981, 0.10201488435268402, 0.2414429485797882, 0.0894225537776947, 0.317164808511734, 0.07743406295776367, -0.011670276522636414, -0.08836865425109863, 0.14486581087112427, -0.122397780418396, 0.08429667353630066, 0.042974598705768585, 0.19008246064186096, -0.12888775765895844, -0.11796048283576965, 0.05684615299105644, 0.3048696517944336, -0.032891079783439636, -0.011466719210147858, 0.2959442436695099, -0.2612742781639099, 0.2735044062137604, 0.24458779394626617, 0.29157137870788574, 0.4633961617946625, -0.19771650433540344, 0.08602176606655121, 0.11879821866750717, 0.2052459865808487, -0.22985300421714783, -0.2742671072483063, -0.22609920799732208, 0.008252006024122238, -0.009080670773983002, 0.3022475242614746, 0.30299967527389526, 0.056933775544166565, 0.199122816324234, 0.17357510328292847, 0.5329432487487793, -0.25204998254776, 0.21455711126327515, 0.338199257850647, -0.0452762171626091, 0.088966503739357, 0.26359423995018005, -0.04715985432267189, 0.13980183005332947, 0.3935587406158447, 0.1143200546503067, 0.5649675130844116, 0.5529618263244629, -0.39391735196113586, 0.15849491953849792, -0.13107718527317047, -0.08625622093677521, 0.2457374930381775, 0.2132546603679657, -0.03903906047344208, 0.19069477915763855, 0.0592842623591423, -0.17539171874523163, -0.20709671080112457, -0.12388022243976593, -0.09865441918373108, -0.010687891393899918, 0.25221511721611023, -0.21203415095806122, 0.04644455760717392, 0.024782612919807434, -0.1108427494764328, -0.03692347928881645, -0.06803575158119202, -0.12464921176433563, -0.23238246142864227, -0.2054390162229538, -0.1305704116821289, -0.23374250531196594, 0.37829136848449707, 0.1665254533290863, -0.05768977105617523, 0.1363976150751114, 0.10340713709592819, -0.16187921166419983, 0.013100013136863708, 0.24010004103183746, 0.5326566100120544, 0.30071762204170227, 0.09831370413303375, 0.11544330418109894, -0.3563329875469208, -0.03793454170227051, 0.26843687891960144, 0.2121073305606842, -0.13877776265144348, 0.05117720365524292, 0.25679391622543335, 0.12854821979999542, -0.10102377831935883, -0.029374215751886368, -0.05674542859196663, -0.2411099374294281, -0.05148366838693619, 0.37540125846862793, 0.2676048278808594, -0.35229063034057617, 0.017157498747110367, 0.4080188572406769, -0.22775515913963318, -0.4306398034095764, 0.9190185070037842, 0.28554800152778625, 0.09714511036872864, -0.23279504477977753, 0.08928384631872177, 0.09407150745391846, 0.41677504777908325, 0.4730038344860077, -0.06024249643087387, -0.27967947721481323, 0.025334499776363373, -0.6517684459686279, 0.12289740890264511, -0.3884578049182892, -0.14477312564849854, 0.2803162932395935, -0.18627969920635223, 0.0857718363404274, 0.2385266125202179, -0.012607574462890625, -0.05949566513299942, 0.1453990787267685, -0.1681939959526062, -0.24698121845722198, -0.03748733177781105, -0.17441512644290924, 0.04970894753932953, -0.006169116124510765, -0.2451285421848297, 0.06298291683197021, -0.3159884512424469, 0.07395275682210922, -0.1765327900648117, 0.11134873330593109, 0.3333470821380615, 0.2083379030227661, 0.2843642830848694, -0.1320207267999649, 0.4888775050640106, 0.1342555284500122, -0.015746116638183594, -0.34396636486053467, -0.11148924380540848, -0.23228797316551208, 0.28295350074768066, 0.02355514094233513, 0.2329104244709015, -0.11978879570960999, -0.2428099662065506, -0.5278014540672302, 0.1495729237794876, -0.1022275984287262, -0.2503528892993927, -0.32345134019851685, 0.39921391010284424, -0.12815268337726593, 0.017727306112647057, 0.18674017488956451, 0.19329515099525452, -0.004025336354970932, 0.15381823480129242, -0.24433307349681854, -0.5771005749702454, 0.6017652750015259, 0.19288094341754913, -0.35389137268066406, -0.2652406692504883, 0.3776376247406006, -0.038510166108608246, 0.18055109679698944, -0.4340975284576416, 0.025201834738254547, 0.3267882466316223, 0.043107710778713226, -0.3386542797088623, 0.03339008986949921, 0.12009170651435852, -0.17367826402187347, -0.00241750106215477, 0.2559140920639038, -0.24147602915763855, -0.13526242971420288, 0.053596850484609604, -0.1207093894481659 ]
https://github.com/huggingface/datasets/pull/2107
Metadata validation
Ok that makes sense if we want to have functions that parse the metadata for users
- `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b)
16
text: Metadata validation - `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b) Ok that makes sense if we want to have functions that parse the metadata for users
[ -0.019358303397893906, -0.06304053962230682, -0.16601896286010742, 0.028328221291303635, 0.24748198688030243, 0.04477477818727493, 0.3282396197319031, 0.2053535133600235, -0.3477977216243744, -0.011601582169532776, 0.010404398664832115, 0.17222799360752106, -0.30840003490448, 0.0885431244969368, -0.12880119681358337, -0.04023554176092148, -0.04969324916601181, 0.0017274916172027588, 0.001612745225429535, 0.12320783734321594, -0.09976499527692795, -0.088706836104393, 0.01393204927444458, 0.3058943748474121, -0.2888343036174774, -0.05664429813623428, 0.04246998578310013, 0.22315379977226257, -0.26277345418930054, -0.6147876381874084, 0.18569158017635345, 0.033165495842695236, -0.20563817024230957, 0.2505394220352173, -0.00010438901517773047, -0.13653379678726196, 0.35094135999679565, -0.15442340075969696, -0.2571444511413574, -0.12130193412303925, -0.04607587680220604, 0.19925770163536072, -0.23951199650764465, -0.23718509078025818, -0.0049956683069467545, -0.19005480408668518, -0.11647939682006836, -0.08159026503562927, 0.25400400161743164, 0.43339768052101135, 0.2854622006416321, -0.07638329267501831, -0.11091692745685577, -0.11994940042495728, -0.192419171333313, 0.3072160482406616, 0.020598722621798515, 0.294273316860199, 0.20465630292892456, -0.11997811496257782, 0.24171921610832214, 0.328789085149765, -0.2356724590063095, -0.13522109389305115, 0.2876509428024292, -0.177059605717659, 0.16083359718322754, -0.4548852741718292, 0.2989062964916229, 0.15906570851802826, 0.5344318151473999, -0.07944332808256149, -0.05947483330965042, -0.07402677834033966, -0.2361917644739151, -0.05020541697740555, -0.10623633116483688, 0.3463033437728882, -0.023908907547593117, 0.145309716463089, 0.10829217731952667, 0.16165278851985931, -0.15980380773544312, -0.10350117087364197, -0.11136120557785034, 0.46765196323394775, 0.04892507940530777, -0.034897275269031525, 0.1918172389268875, -0.20334868133068085, -0.13243304193019867, -0.01227949932217598, 0.0004432015120983124, 0.4015374183654785, 0.036822058260440826, -0.26317518949508667, 0.0036522001028060913, -0.19000887870788574, 0.3948823809623718, 0.22465883195400238, 0.08695448189973831, -0.015134613960981369, -0.21713577210903168, 0.3119369447231293, 0.18922482430934906, -0.13434557616710663, 0.3312075436115265, 0.3194639980792999, 0.1572844386100769, -0.17500701546669006, 0.3256526291370392, -0.057225003838539124, -0.06885790079832077, -0.04464808478951454, 0.33595454692840576, 0.44788792729377747, 0.3836326003074646, -0.2357650101184845, -0.5159454941749573, 0.2051149159669876, -0.18389350175857544, -0.03833802044391632, -0.1136191114783287, 0.3186929523944855, -0.10196646302938461, -0.1558329463005066, -0.3652896285057068, 0.11045827716588974, 0.09538907557725906, 0.04652232676744461, -0.10012877732515335, 0.35393959283828735, -0.09374295175075531, -0.08531031757593155, 0.08457145094871521, -0.5005337595939636, 0.23831360042095184, -0.11713215708732605, 0.019487187266349792, -0.41385963559150696, 0.12139339745044708, -0.38231971859931946, 0.23792150616645813, 0.5843051075935364, -0.10699477791786194, -0.05486515164375305, 0.1940532922744751, -0.11766678839921951, -0.23816457390785217, 0.1970798671245575, -0.4365918040275574, -0.43945249915122986, -0.24675996601581573, 0.32506585121154785, -0.06521933525800705, -0.09895840287208557, -0.13834050297737122, 0.007164448499679565, 0.2523490786552429, -0.1818363219499588, 0.08160664141178131, -0.021905597299337387, 0.06684093177318573, -0.2425190657377243, -0.2337750643491745, 0.3153589069843292, 0.0014993548393249512, 0.20125532150268555, 0.020943600684404373, 0.04907601326704025, 0.16616052389144897, 0.20030474662780762, -0.1253853142261505, 0.2309689223766327, -0.23079994320869446, 0.4099389314651489, 0.14945608377456665, -0.37984806299209595, 0.412506103515625, 0.007671379018574953, 0.032242245972156525, -0.05838149040937424, 0.14435674250125885, -0.2617546319961548, 0.3148076832294464, -0.5641593933105469, -0.12795953452587128, -0.09109416604042053, -0.1096995621919632, -0.025612080469727516, -0.13477814197540283, 0.048790790140628815, 0.234310582280159, 0.05527448281645775, 0.4079309403896332, -0.059947095811367035, 0.2891177535057068, 0.14133962988853455, 0.22365626692771912, -0.19487738609313965, -0.07998643815517426, 0.10102659463882446, 0.49112388491630554, -0.00846264511346817, 0.12649019062519073, -0.32056745886802673, -0.24700969457626343, -0.05421622097492218, 0.2802002429962158, 0.31162896752357483, -0.019999340176582336, -0.35132962465286255, -0.5776011943817139, 0.06040824204683304, -0.2701573967933655, -0.18139098584651947, 0.26773422956466675, 0.005596533417701721, 0.028116825968027115, -0.06375961005687714, -0.16738544404506683, 0.1941005438566208, -0.17888575792312622, -0.01825561560690403, 0.012639101594686508, 0.26987898349761963, -0.2163362056016922, -0.015447552315890789, -0.06160109117627144, 0.08679764717817307, 0.22203606367111206, -0.08209439367055893, 0.08063258975744247, 0.18523544073104858, 0.32299110293388367, -0.337981641292572, -0.17160049080848694, 0.9989949464797974, 0.11237584799528122, -0.2363024652004242, -0.017141500487923622, 0.15017355978488922, 0.1279059648513794, -0.2035372257232666, -0.26054784655570984, 0.15496881306171417, -0.2817568778991699, -0.06734318286180496, -0.09002380073070526, 0.009095359593629837, 0.5347976088523865, -0.04997606948018074, -0.3429577648639679, -0.1897088587284088, 0.06319660693407059, -0.1591055989265442, -0.1581868827342987, -0.04178597033023834, -0.2896137237548828, 0.019115932285785675, 0.26901134848594666, -0.12903118133544922, 0.42168673872947693, 0.02370624430477619, 0.1654975712299347, 0.01593898981809616, 0.0698913112282753, -0.0761401429772377, 0.35702982544898987, -0.09975022822618484, -0.15946699678897858, 0.33234095573425293, -0.018232136964797974, -0.05003911256790161, 0.1360367387533188, 0.04745686054229736, 0.2735930383205414, 0.1704019159078598, 0.04359367862343788, 0.21760515868663788, -0.214924156665802, -0.37821444869041443, 0.1348382830619812, 0.23959589004516602, -0.3892480134963989, 0.2937864661216736, -0.034630026668310165, -0.06066889315843582, -0.09261232614517212, -0.4169203042984009, -0.26475149393081665, -0.4192180037498474, 0.0950365662574768, 0.2715868055820465, -0.2504938244819641, 0.0990535095334053, 0.03284558653831482, 0.19877633452415466, 0.002379460260272026, 0.01335418876260519, -0.4453144073486328, -0.2142282873392105, 0.0970718115568161, 0.13851003348827362, 0.10271326452493668, -0.24469594657421112, 0.4544559419155121, -0.2194843590259552, 0.04526284337043762, -0.40926995873451233, -0.593215823173523, 0.2320234477519989, -0.10345281660556793, -0.15160296857357025, 0.21555177867412567, 0.10637305676937103, 0.4642639756202698, -0.07341944426298141, 0.10552908480167389, -0.04099317640066147, -0.03495537489652634, 0.21954171359539032, -0.05319482833147049, -0.037014562636613846, -0.2530120015144348, -0.2411869466304779, -0.46717754006385803, -0.24190792441368103, -0.07194815576076508, 0.09569679200649261, 0.26493388414382935, 0.7016139030456543, -0.19230353832244873, -0.30852770805358887, -0.35146859288215637, 0.03303232789039612, -0.36927756667137146, 0.09792585670948029, -0.0735931545495987, -0.27641549706459045, -0.16903087496757507, 0.16590552031993866, 0.18715748190879822, 0.28307726979255676, -0.050436101853847504, 0.05087161809206009, -0.4165010452270508, 0.24348004162311554, 0.08635096251964569, -0.265973836183548, -0.18818295001983643, 0.22016800940036774, 0.1327442228794098, -0.059553928673267365, -0.05814759060740471, -0.13921001553535461, -0.1551266312599182, 0.2361758053302765, -0.12040892988443375, -0.24362361431121826, 0.16231849789619446, 0.25615841150283813, 0.36950361728668213, 0.015159238129854202, -0.08060219883918762, 0.06498627364635468, -0.19861990213394165, 0.1609913557767868, -0.00003308802843093872, -0.32970675826072693, 0.018567746505141258, -0.08120448887348175, -0.2807839512825012, 0.272836297750473, -0.23701423406600952, -0.22219006717205048, 0.050953492522239685, -0.10202345252037048, -0.5321974754333496, 0.06459181010723114, 0.08996123820543289, 0.09324747323989868, 0.14781391620635986, 0.09725488722324371, 0.07118961960077286, -0.17545612156391144, 0.022259782999753952, 0.1518101692199707, 0.31154492497444153, 0.05936296656727791, 0.07148194313049316, 0.15215842425823212, -0.10611025989055634, -0.16348865628242493, 0.10535866022109985, -0.03802208974957466, 0.16692063212394714, -0.11952486634254456, 0.07975410670042038, -0.025401465594768524, -0.1367395520210266, -0.046405479311943054, -0.35256195068359375, 0.30810993909835815, 0.23058000206947327, -0.010936379432678223, 0.2770909070968628, -0.2208210676908493, -0.19516463577747345, 0.18557807803153992, 0.34421926736831665, 0.505653977394104, -0.3936450481414795, -0.08579229563474655, 0.3338908553123474, -0.3261443078517914, -0.04353427141904831, -0.12027574330568314, -0.1467491239309311, -0.5197117924690247, -0.2099517434835434, 0.27371081709861755, 0.4816053807735443, 0.08731614053249359, -0.20459724962711334, 0.17242908477783203, 0.12931400537490845, 0.03271951153874397, 0.295848548412323, 0.2218204289674759, -0.23739570379257202, 0.07834717631340027, -0.14328259229660034, -0.18976710736751556, 0.058390431106090546, 0.27862274646759033, 0.5060351490974426, 0.18897169828414917, -0.36894312500953674, 0.023259051144123077, -0.3061438500881195, 0.42912980914115906, -0.05730453133583069, -0.0087951784953475, 0.030417796224355698, -0.14335165917873383, 0.015617500990629196, -0.3668336570262909, 0.14273235201835632, 0.18915106356143951, -0.041252050548791885, -0.3825390338897705, -0.30384430289268494, 0.32353606820106506, 0.26429644227027893, -0.08461876958608627, 0.04554933309555054, -0.19373174011707306, -0.2753516137599945, -0.004538010805845261, 0.5272269248962402, 0.7978282570838928, 0.12327621877193451, -0.050918687134981155, 0.20284616947174072, -0.009378299117088318, 0.2384486347436905, -0.4852932095527649, -0.08977579325437546, -0.6326390504837036, -0.2222236841917038, -0.15018244087696075, 0.02703327313065529, 0.2519715130329132, 0.06244325637817383, -0.2644318640232086, 0.2637660503387451, -0.25071555376052856, 0.41372278332710266, 0.2453501969575882, 0.24265611171722412, -0.12755541503429413, -0.010375406593084335, -0.16823020577430725, 0.28774797916412354, -0.23961283266544342, 0.2601233720779419, -0.35372108221054077, -0.01013241894543171, 0.2043786644935608, -0.36597520112991333, -0.37857747077941895, -0.02757970802485943, -0.0222154650837183, 0.0524040050804615, 0.02457389608025551, 0.2077842801809311, 0.08373118937015533, -0.34579533338546753, 0.27739208936691284, 0.20234006643295288, 0.02346421219408512, -0.10211643576622009, -0.08656208962202072, -0.14001844823360443, -0.03367961570620537, -0.037469301372766495, 0.49786704778671265, -0.21396812796592712, 0.22409853339195251, 0.18806299567222595, -0.13056178390979767, -0.09970174729824066, -0.3126369118690491, 0.27681267261505127, -0.04080747067928314, -0.15931947529315948, -0.017804842442274094, -0.061192601919174194, -0.32780516147613525, -0.02917207032442093, 0.1993240863084793, 0.1487022042274475, -0.20481960475444794, 0.3039909899234772, -0.3361424505710602, -0.15837842226028442, -0.05793864652514458, -0.153053879737854, 0.17000755667686462, -0.08577810972929001, 0.020277107134461403, -0.15090782940387726, -0.10705256462097168, -0.3275051414966583, -0.1715197116136551, 0.06671788543462753, -0.3280974328517914, 0.0970810204744339, 0.06890541315078735, -0.29183897376060486, 0.15635967254638672, 0.3511240482330322, 0.1621602177619934, 0.17814864218235016, -0.29588642716407776, -0.7303313612937927, -0.13095980882644653, 0.047741666436195374, -0.009339090436697006, -0.07336023449897766, 0.024797171354293823, 0.18393230438232422, 0.03774374723434448, 0.006025336682796478, -0.4264836013317108, -0.2483992725610733, -0.23176632821559906, 0.18061329424381256, 0.20034343004226685, -0.2047393023967743, -0.02497432753443718, 0.061845820397138596, 0.06312449276447296, 0.3440273404121399, -0.08418303728103638, -0.21300369501113892, -0.04263298958539963, 0.10807701200246811, 0.14725515246391296, 0.27228254079818726, 0.01160778384655714, -0.09147239476442337, -0.2858668565750122, 0.11111296713352203, 0.15433278679847717, 0.15512296557426453, -0.023228757083415985, 0.21098320186138153, 0.10975475609302521, 0.23063427209854126, 0.04822947084903717, 0.015360824763774872, -0.05647607147693634, 0.037833619862794876, -0.21909259259700775, 0.12777136266231537, -0.1632567048072815, -0.13430079817771912, 0.01824226602911949, 0.2400699257850647, 0.1951071321964264, -0.13939863443374634, 0.4567086398601532, -0.23429428040981293, 0.2276356816291809, 0.07935898751020432, 0.29024744033813477, 0.2545843720436096, -0.1438654512166977, 0.0444905161857605, 0.14721161127090454, 0.29725882411003113, -0.24785320460796356, -0.2434692084789276, -0.24044480919837952, 0.2550258934497833, 0.02702632173895836, 0.21726179122924805, 0.3130980432033539, 0.0054045915603637695, 0.27791160345077515, 0.12891539931297302, 0.5354752540588379, -0.29740649461746216, -0.0071740178391337395, 0.11523592472076416, -0.31262537837028503, 0.02525295317173004, 0.4545033872127533, -0.05386260524392128, 0.12763097882270813, 0.07113606482744217, 0.20048916339874268, 0.5089948177337646, 0.5295851230621338, -0.274720698595047, 0.15127262473106384, -0.0851152241230011, -0.15362882614135742, 0.2493031919002533, 0.15238383412361145, 0.2914991080760956, -0.01020762324333191, -0.12151322513818741, -0.03454393893480301, 0.1474955826997757, -0.3822074830532074, 0.21203039586544037, -0.0656701847910881, 0.31867924332618713, -0.12729617953300476, -0.027248933911323547, 0.02217135578393936, -0.31539711356163025, -0.026685509830713272, -0.019857503473758698, 0.25597089529037476, -0.23415668308734894, -0.1735049933195114, 0.15986368060112, -0.3624933958053589, 0.29067277908325195, 0.309021532535553, -0.3667793273925781, 0.16636429727077484, 0.23795339465141296, -0.004195861518383026, -0.0358530692756176, 0.2964775264263153, 0.7466570138931274, 0.2966916263103485, -0.040940482169389725, -0.006377203390002251, -0.5762872099876404, -0.03734594210982323, 0.25413793325424194, 0.4283551573753357, 0.19696852564811707, 0.11123010516166687, 0.3761620819568634, 0.1690809726715088, -0.22602562606334686, 0.15262539684772491, 0.03901483863592148, 0.016160834580659866, -0.024574823677539825, 0.04164990410208702, 0.22712066769599915, -0.29442545771598816, -0.04549667239189148, 0.20182853937149048, -0.21008619666099548, -0.34711939096450806, 0.4589128792285919, 0.3286658823490143, 0.2134418785572052, -0.1665535718202591, 0.14443033933639526, 0.16108332574367523, 0.3724689781665802, 0.2737825810909271, 0.1540714055299759, -0.2319173812866211, 0.08306807279586792, -0.34532374143600464, 0.22251828014850616, -0.30136343836784363, -0.17450402677059174, 0.24815231561660767, -0.16499389708042145, 0.2062501460313797, 0.2454197108745575, -0.22063420712947845, -0.10303842276334763, 0.14147816598415375, 0.020424816757440567, -0.2757457494735718, 0.21238024532794952, -0.0716465413570404, 0.02914038673043251, 0.07264110445976257, -0.13655021786689758, 0.19858095049858093, -0.34519168734550476, 0.1830993890762329, -0.13728168606758118, 0.053383685648441315, 0.20522382855415344, 0.32059893012046814, 0.13401059806346893, -0.017508668825030327, 0.5279444456100464, 0.013762611895799637, 0.18160127103328705, -0.23172512650489807, 0.044437870383262634, -0.17117555439472198, 0.26308056712150574, 0.17095497250556946, 0.08698101341724396, 0.16584882140159607, 0.043058570474386215, -0.243767648935318, -0.002208772813901305, -0.18066738545894623, -0.028384774923324585, -0.37650418281555176, 0.1770928055047989, -0.1236986592411995, 0.004939131438732147, -0.04540972411632538, 0.22173339128494263, 0.1218094527721405, 0.017606044188141823, -0.28384464979171753, -0.5700689554214478, 0.5008705854415894, 0.04309559240937233, -0.5418307781219482, -0.33981069922447205, 0.4121566116809845, 0.0013847798109054565, 0.08713517338037491, -0.32779601216316223, 0.03758164495229721, 0.2938038408756256, 0.10459310561418533, -0.18759199976921082, -0.11283089220523834, -0.0030683306977152824, -0.21559423208236694, -0.012056462466716766, 0.07463626563549042, 0.02374104969203472, 0.019462497904896736, -0.02104877308011055, -0.20014619827270508 ]
https://github.com/huggingface/datasets/pull/2107
Metadata validation
Hi @theo-m @lhoestq This seems very interesting. Should I add the descriptions to the PR on `datasets-tagging`? Alternatively, I can also create a google-sheet/markdown table :) Sorry for the delay in responding. Thanks, Gunjan
- `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b)
34
text: Metadata validation - `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b) Hi @theo-m @lhoestq This seems very interesting. Should I add the descriptions to the PR on `datasets-tagging`? Alternatively, I can also create a google-sheet/markdown table :) Sorry for the delay in responding. Thanks, Gunjan
[ -0.11756397783756256, -0.1138395369052887, -0.11605256795883179, 0.16921888291835785, 0.22490637004375458, 0.3442898690700531, 0.040828973054885864, 0.008182037621736526, -0.17651918530464172, -0.201935276389122, 0.15464384853839874, 0.10017242282629013, -0.10489838570356369, 0.26374781131744385, 0.09560313075780869, -0.16235139966011047, 0.10232531279325485, 0.1483302116394043, 0.14312273263931274, 0.09863258898258209, -0.0704316720366478, -0.20847253501415253, 0.04230005294084549, 0.29047831892967224, -0.3636907935142517, -0.2523355484008789, -0.13216105103492737, 0.03227464109659195, -0.31840771436691284, -0.749603807926178, -0.031855907291173935, 0.08289475739002228, 0.03542859107255936, 0.06401631236076355, -0.00011470347089925781, -0.15678411722183228, 0.14503011107444763, -0.13509231805801392, -0.09635533392429352, 0.09248609840869904, -0.08441171050071716, -0.018970167264342308, -0.05960460752248764, -0.07260896265506744, 0.2104719579219818, -0.485991895198822, -0.18592989444732666, 0.1464456468820572, -0.10083945095539093, 0.33307555317878723, 0.18219448626041412, 0.025228265672922134, -0.112369105219841, -0.25037190318107605, -0.05632966011762619, 0.2029580920934677, -0.05498572811484337, 0.2112792432308197, 0.34376057982444763, -0.22971168160438538, 0.03078722208738327, 0.39622175693511963, -0.04863544553518295, -0.10139915347099304, 0.33886951208114624, -0.1754297912120819, -0.009272150695323944, -0.34930986166000366, 0.4099791347980499, 0.13445733487606049, 0.9466654062271118, -0.3980334997177124, -0.3003610670566559, -0.000605657696723938, -0.18885724246501923, -0.23219428956508636, 0.05556944012641907, 0.49498504400253296, 0.006668278947472572, 0.046704210340976715, -0.13354378938674927, 0.04952126368880272, -0.09793486446142197, -0.1674441248178482, -0.16673097014427185, 0.3187456727027893, 0.159729465842247, -0.05903564393520355, 0.06563763320446014, -0.3048285245895386, -0.043731510639190674, -0.06658387929201126, -0.16544081270694733, 0.186249241232872, 0.034489601850509644, -0.19537365436553955, -0.05145254731178284, -0.12367301434278488, 0.3681239187717438, 0.145417258143425, -0.1237255334854126, -0.25427842140197754, -0.22538182139396667, 0.19774657487869263, 0.329880028963089, -0.15411972999572754, 0.14531980454921722, 0.4712071716785431, -0.08515128493309021, -0.12119318544864655, 0.43755435943603516, -0.18313255906105042, -0.09871958941221237, -0.03936789557337761, 0.2604799270629883, 0.1026444211602211, 0.1058616042137146, -0.29785922169685364, -0.6010292768478394, 0.44636067748069763, -0.3318368196487427, 0.06705601513385773, -0.22380764782428741, 0.41168731451034546, -0.08407209068536758, -0.14657586812973022, -0.1683523803949356, -0.025160599499940872, 0.1868300884962082, -0.0626671090722084, -0.085971400141716, 0.39298853278160095, -0.31377702951431274, 0.1579670011997223, -0.04831491783261299, -0.1650988757610321, 0.28662946820259094, -0.05022257938981056, -0.010333672165870667, -0.16530472040176392, -0.2889343202114105, -0.24977681040763855, 0.19646647572517395, 0.7104795575141907, -0.11118398606777191, 0.057064689695835114, 0.10975207388401031, -0.12329249829053879, -0.20670776069164276, 0.29123935103416443, -0.17986005544662476, -0.3616023659706116, -0.3044913113117218, 0.22217786312103271, -0.17916809022426605, -0.25160306692123413, -0.050067491829395294, 0.14268571138381958, 0.3160153329372406, -0.030156293883919716, 0.12795299291610718, 0.08785770833492279, 0.05252933129668236, -0.19043000042438507, -0.07438753545284271, 0.4470752477645874, -0.2324729859828949, 0.08588622510433197, 0.36401402950286865, 0.06794458627700806, 0.31553131341934204, 0.14003348350524902, -0.027697980403900146, 0.43440356850624084, -0.18926309049129486, 0.16863243281841278, 0.008913762867450714, -0.26790472865104675, 0.25481483340263367, 0.024703223258256912, 0.16869506239891052, -0.0702841654419899, 0.08672025799751282, -0.11046651005744934, 0.2866826355457306, -0.3086235225200653, 0.08643322438001633, -0.2843479514122009, -0.20338541269302368, 0.06421949714422226, -0.20837384462356567, 0.05991722643375397, 0.3269827365875244, 0.0978558361530304, 0.2689010202884674, 0.12680694460868835, 0.048292700201272964, 0.26316675543785095, 0.16906695067882538, 0.05989330634474754, -0.040064841508865356, 0.33468395471572876, 0.2809865176677704, 0.06409451365470886, -0.015555290505290031, -0.41662734746932983, -0.1872733235359192, -0.12659227848052979, 0.3512345552444458, 0.3250572383403778, -0.022668175399303436, -0.41520023345947266, -0.5545770525932312, 0.12588036060333252, -0.24025385081768036, -0.45889103412628174, 0.1496036797761917, -0.157949760556221, 0.015807047486305237, -0.10778851807117462, -0.09173703193664551, 0.0990108922123909, -0.40081077814102173, 0.11784952878952026, -0.0031725969165563583, 0.22364826500415802, -0.21373991668224335, -0.08003067970275879, 0.08657610416412354, 0.19419260323047638, 0.20423665642738342, 0.294927716255188, -0.021071607246994972, 0.1842065453529358, 0.10427819192409515, -0.17814908921718597, 0.07563689351081848, 0.9759619235992432, 0.1427355259656906, -0.33943498134613037, 0.012867266312241554, -0.034381669014692307, -0.01782083325088024, 0.04089682549238205, -0.40283259749412537, -0.029756620526313782, -0.21161411702632904, 0.09067317843437195, 0.05930043011903763, -0.04266984760761261, 0.45723387598991394, 0.08240701258182526, -0.22819943726062775, -0.09715810418128967, 0.05417177081108093, 0.11212588846683502, -0.005169454962015152, 0.07659862190485, -0.37616923451423645, 0.08536452800035477, 0.3356769382953644, -0.08695337176322937, 0.15745684504508972, 0.18177396059036255, -0.10683690756559372, -0.0976502001285553, 0.29692932963371277, -0.14429634809494019, 0.24117299914360046, 0.07835906744003296, -0.1895979642868042, 0.21493199467658997, -0.1566777378320694, -0.032058004289865494, 0.17233391106128693, 0.14600211381912231, -0.07390096783638, 0.24161246418952942, 0.06505849957466125, 0.08559944480657578, -0.17701181769371033, -0.3062502443790436, 0.15761791169643402, 0.46092402935028076, -0.5238919258117676, 0.20483721792697906, -0.013520853593945503, -0.17489078640937805, -0.15190142393112183, -0.25949031114578247, -0.2722010612487793, -0.35161876678466797, 0.09794864058494568, 0.04511244595050812, -0.18389175832271576, 0.23353688418865204, -0.010338686406612396, 0.1396206021308899, -0.009296020492911339, 0.2087794542312622, -0.23174916207790375, -0.15936043858528137, 0.08909222483634949, 0.09598982334136963, 0.0663163885474205, -0.18892644345760345, 0.6487664580345154, -0.31357359886169434, -0.09708274900913239, -0.5056151747703552, -0.4078107476234436, 0.21370667219161987, -0.02826077491044998, -0.20034529268741608, 0.2504124641418457, 0.21962541341781616, 0.260448694229126, -0.10599230974912643, 0.08077901601791382, 0.13396164774894714, -0.1131214126944542, 0.0509343147277832, -0.24378834664821625, -0.03955353796482086, -0.12540608644485474, -0.4594193994998932, -0.32337328791618347, -0.32483476400375366, 0.05794021487236023, -0.06758371740579605, 0.2817389965057373, 0.490058034658432, -0.13938511908054352, -0.21772290766239166, -0.4209267795085907, 0.15504813194274902, -0.25540220737457275, -0.07063374668359756, -0.05905595049262047, -0.04735144227743149, -0.14661356806755066, 0.2825355529785156, 0.11887510120868683, 0.0026929788291454315, 0.11589708179235458, 0.007326684892177582, -0.3952939808368683, 0.08168669790029526, 0.1316596418619156, -0.23027446866035461, -0.10578034818172455, 0.3098333775997162, 0.11894434690475464, -0.02955719083547592, -0.0061122700572013855, -0.2579886317253113, -0.16228389739990234, -0.03561845421791077, 0.11892543733119965, -0.24873054027557373, 0.156734436750412, 0.10326528549194336, 0.4459027051925659, 0.3994738757610321, -0.3371261954307556, -0.0917433351278305, -0.22004561126232147, 0.11993744969367981, 0.07790416479110718, -0.32878002524375916, -0.11136456578969955, -0.20197376608848572, -0.3095473647117615, 0.17579790949821472, -0.23135170340538025, 0.08209682255983353, 0.1749633103609085, 0.18101614713668823, -0.37295079231262207, 0.1901155561208725, 0.1385512799024582, 0.02520061656832695, 0.4817618727684021, -0.15089887380599976, -0.00021520256996154785, -0.1350020468235016, 0.04186694696545601, 0.07398596405982971, 0.5622953176498413, 0.13423565030097961, 0.05498151853680611, -0.0862523764371872, -0.33121100068092346, -0.20469564199447632, -0.17854230105876923, 0.09410037845373154, 0.27752408385276794, -0.2898656129837036, 0.23150718212127686, -0.048277854919433594, -0.019252154976129532, 0.16410613059997559, -0.552066445350647, 0.2064797580242157, 0.13797365128993988, 0.16999858617782593, 0.3360198438167572, -0.2813936769962311, -0.28919491171836853, 0.33013099431991577, 0.41534411907196045, 0.38833802938461304, -0.4039127826690674, -0.11937902867794037, 0.39614608883857727, -0.16315464675426483, -0.04318824037909508, -0.12777400016784668, -0.16938070952892303, -0.3338359594345093, -0.17373910546302795, 0.33405888080596924, 0.5613903999328613, -0.09327967464923859, -0.03863820433616638, 0.30391475558280945, 0.3727678656578064, 0.20757871866226196, 0.21509839594364166, 0.14084388315677643, 0.03272648900747299, 0.031535543501377106, 0.07103259861469269, -0.26011666655540466, 0.10504543036222458, 0.6267209649085999, 0.6813584566116333, -0.015029650181531906, -0.5639027953147888, 0.1604650318622589, -0.2310139238834381, 0.5007300972938538, 0.08455716073513031, 0.11397287994623184, 0.2822686731815338, -0.22024084627628326, -0.11393536627292633, -0.4068227708339691, 0.13994204998016357, 0.16809014976024628, -0.06429745256900787, -0.2945517301559448, -0.3965369760990143, 0.44325950741767883, 0.3881133794784546, -0.14176049828529358, 0.08276486396789551, -0.27191829681396484, -0.270584374666214, -0.08565708994865417, 0.3441388010978699, 0.9405231475830078, 0.028896193951368332, -0.05137002095580101, -0.04569399356842041, -0.23538357019424438, 0.2566870450973511, -0.490520715713501, -0.14216509461402893, -0.6226034760475159, -0.33494648337364197, -0.1204608678817749, -0.06549503654241562, 0.26680898666381836, 0.029309241101145744, -0.3357481360435486, 0.27034178376197815, -0.10070377588272095, 0.4085911810398102, 0.34372401237487793, 0.17456264793872833, -0.027545055374503136, -0.23504450917243958, -0.2979501485824585, 0.08376866579055786, -0.29609817266464233, 0.10595808923244476, -0.2996829152107239, -0.062362030148506165, 0.08560220897197723, -0.17212650179862976, -0.7519347667694092, -0.174513041973114, 0.1477055549621582, -0.2027835100889206, 0.05159883201122284, 0.12527932226657867, 0.26943638920783997, -0.11585237085819244, 0.20890043675899506, 0.2678981423377991, -0.14712882041931152, -0.025525834411382675, -0.3141978681087494, -0.1481200009584427, -0.11975837498903275, 0.014213408343493938, 0.4452514350414276, -0.09547074139118195, 0.03132817894220352, 0.1515914499759674, -0.09017933905124664, 0.0219058096408844, -0.3906055688858032, 0.05782385170459747, 0.09905339777469635, -0.33538463711738586, 0.11022777855396271, -0.08570367097854614, -0.18660733103752136, -0.22614260017871857, 0.12698577344417572, 0.17714574933052063, -0.16000863909721375, 0.2281566560268402, -0.22339405119419098, -0.027701430022716522, -0.13777892291545868, -0.001588679850101471, 0.07271458953619003, 0.006509773433208466, -0.047475047409534454, 0.05870058760046959, -0.21704719960689545, -0.2672056257724762, -0.10601775348186493, 0.16053974628448486, -0.3661493957042694, -0.10338065773248672, 0.0648357942700386, -0.2598660886287689, 0.007176991086453199, 0.28713977336883545, 0.31828922033309937, 0.06148502975702286, -0.1623985469341278, -0.4141838848590851, -0.28171950578689575, 0.1866452395915985, 0.002600114792585373, -0.014162402600049973, -0.06871359050273895, 0.4708566963672638, 0.17423249781131744, 0.11433688551187515, -0.32698479294776917, -0.28738054633140564, -0.3846466839313507, 0.2506035566329956, -0.0012578144669532776, -0.0971158817410469, -0.0716664120554924, -0.13474015891551971, -0.0841759741306305, 0.27676278352737427, 0.03791772574186325, -0.12427965551614761, 0.1598842293024063, 0.1856677383184433, 0.210780531167984, 0.17331719398498535, -0.015115143731236458, 0.08864937722682953, -0.19057293236255646, 0.03218412399291992, 0.18407230079174042, 0.14703330397605896, -0.03347581624984741, 0.23107129335403442, -0.049213457852602005, 0.33164238929748535, -0.007240787148475647, -0.19044646620750427, -0.06409178674221039, 0.2477509081363678, 0.07063709944486618, 0.014675652608275414, -0.14682161808013916, -0.05943865701556206, -0.17209921777248383, 0.3946038484573364, 0.1222161278128624, -0.11149931699037552, 0.35896822810173035, -0.23103760182857513, 0.24163132905960083, 0.2861260771751404, 0.37991440296173096, 0.1812523603439331, -0.19687782227993011, 0.045701608061790466, 0.07113853096961975, 0.2405920922756195, -0.34165826439857483, -0.18432064354419708, -0.2538066506385803, -0.007537274621427059, 0.04366704449057579, 0.28038105368614197, 0.48857882618904114, -0.11998648941516876, 0.22867275774478912, 0.14320793747901917, 0.6584559082984924, -0.2015017718076706, -0.022241320461034775, 0.21788939833641052, -0.06321512907743454, 0.23373810946941376, 0.4026826322078705, 0.2442878633737564, 0.05653006583452225, 0.1844862848520279, 0.4696841835975647, 0.5286130905151367, 0.6340559124946594, -0.12638334929943085, -0.0383194163441658, -0.11200596392154694, 0.027856988832354546, 0.14554280042648315, 0.2370489239692688, 0.12602782249450684, 0.04096381366252899, -0.12747600674629211, -0.032356083393096924, -0.06441331654787064, -0.33140653371810913, -0.027705196291208267, -0.10313338786363602, 0.279537558555603, -0.09399637579917908, -0.09205682575702667, 0.0841427892446518, -0.08610303699970245, 0.10463637113571167, -0.1560789942741394, 0.2830932140350342, -0.4974769949913025, -0.12330137193202972, -0.04020204395055771, -0.11465173214673996, 0.290520042181015, 0.4251881241798401, -0.25990426540374756, 0.2622339427471161, 0.19744466245174408, -0.14891012012958527, 0.016062524169683456, 0.46562013030052185, 0.7064580917358398, 0.2371196746826172, 0.2242760807275772, 0.044104915112257004, -0.5434707403182983, -0.021596617996692657, 0.3186706304550171, 0.33917468786239624, 0.08702166378498077, -0.08973796665668488, 0.22664768993854523, 0.07620088756084442, -0.13186943531036377, 0.20813722908496857, 0.10671282559633255, -0.0014078635722398758, -0.01192992553114891, -0.04467345029115677, 0.26058197021484375, -0.4378891587257385, 0.09996873140335083, 0.2207275629043579, -0.13077592849731445, -0.25968486070632935, 0.5647612810134888, 0.2820594608783722, 0.14714616537094116, -0.15995915234088898, 0.10560527443885803, 0.21188127994537354, 0.3313133120536804, 0.49026161432266235, 0.16618560254573822, -0.2912718951702118, 0.03786008059978485, -0.2792504131793976, 0.15717941522598267, -0.4361281394958496, -0.22167593240737915, 0.28248921036720276, -0.246765598654747, 0.07442012429237366, 0.26229721307754517, -0.21701155602931976, 0.021516824141144753, 0.10090939700603485, 0.17793267965316772, -0.39232441782951355, -0.08713184297084808, -0.031301550567150116, 0.2773090898990631, -0.062126778066158295, 0.10817045718431473, 0.1177939772605896, -0.135318323969841, 0.09753910452127457, -0.19332462549209595, -0.009759169071912766, 0.29236242175102234, 0.48393362760543823, 0.15017327666282654, 0.03561533987522125, 0.6670759916305542, -0.10914973169565201, -0.04799903929233551, -0.08415181934833527, -0.19240407645702362, -0.20536881685256958, 0.42528048157691956, 0.049361150711774826, 0.0063659921288490295, 0.18448036909103394, -0.17120015621185303, -0.218449205160141, -0.033381830900907516, -0.19164590537548065, -0.00516559137031436, -0.3597513735294342, 0.13554440438747406, 0.10578886419534683, -0.0310668982565403, 0.011634097434580326, 0.1750015765428543, 0.1455305814743042, -0.028639480471611023, -0.2189355492591858, -0.6955408453941345, 0.3944496810436249, 0.14444133639335632, -0.331186980009079, -0.06575503200292587, 0.3617417812347412, 0.05563436448574066, 0.31158483028411865, -0.6364884972572327, -0.0442231111228466, 0.29302576184272766, 0.030772458761930466, -0.3307908773422241, -0.08141371607780457, -0.11346818506717682, -0.13015878200531006, -0.009107645601034164, 0.3081051707267761, -0.09543942660093307, -0.19839824736118317, -0.0018767081201076508, -0.2826306223869324 ]
https://github.com/huggingface/datasets/pull/2107
Metadata validation
> Hi @theo-m @lhoestq > > This seems very interesting. Should I add the descriptions to the PR on `datasets-tagging`? Alternatively, I can also create a google-sheet/markdown table :) > > Sorry for the delay in responding. > > Thanks, > Gunjan Hi @gchhablani, yes I think at the moment the best solution is for you to write in `datasets-tagging`, as the PR will allow us to discuss and review, even though the work will be ported to this repo in the end. Or we wait for this to be merged and you reopen the PR here, your call :)
- `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b)
100
text: Metadata validation - `pydantic` metadata schema with dedicated validators against our taxonomy - ci script to validate new changes against this schema and start a vertuous loop - soft validation on tasks ids since we expect the taxonomy to undergo some changes in the near future for reference with the current validation we have ~365~ 378 datasets with invalid metadata! full error report [_here_.](https://gist.github.com/theo-m/61b3c0c47fc6121d08d3174bd4c2a26b) > Hi @theo-m @lhoestq > > This seems very interesting. Should I add the descriptions to the PR on `datasets-tagging`? Alternatively, I can also create a google-sheet/markdown table :) > > Sorry for the delay in responding. > > Thanks, > Gunjan Hi @gchhablani, yes I think at the moment the best solution is for you to write in `datasets-tagging`, as the PR will allow us to discuss and review, even though the work will be ported to this repo in the end. Or we wait for this to be merged and you reopen the PR here, your call :)
[ -0.09226122498512268, -0.09562293440103531, -0.14878423511981964, 0.12921074032783508, 0.2655288577079773, 0.2125621736049652, 0.019667398184537888, -0.042359109967947006, -0.17602476477622986, -0.2254589945077896, 0.17706499993801117, 0.12558279931545258, -0.11470095068216324, 0.23383377492427826, 0.16424953937530518, -0.163242369890213, 0.07562704384326935, 0.12392520904541016, 0.20350883901119232, 0.15525230765342712, -0.07887132465839386, -0.2210710644721985, 0.1275264173746109, 0.30172762274742126, -0.2738288342952728, -0.2645367681980133, -0.10153034329414368, 0.15270459651947021, -0.2980837821960449, -0.7410425543785095, 0.03427712619304657, 0.1424804925918579, -0.03406349569559097, 0.11195835471153259, -0.00011103339056717232, -0.04762203246355057, 0.15975534915924072, -0.13055026531219482, -0.05388471111655235, -0.010268747806549072, -0.08703149855136871, 0.05110836774110794, -0.1546434909105301, -0.04363320767879486, 0.14369577169418335, -0.4655439555644989, -0.1594124585390091, 0.14858390390872955, -0.14696113765239716, 0.3557107150554657, 0.22974227368831635, 0.07119720429182053, -0.047029100358486176, -0.3202590048313141, -0.03795894235372543, 0.18913999199867249, -0.037764910608530045, 0.256594181060791, 0.3103843927383423, -0.18862219154834747, 0.07284358143806458, 0.27909258008003235, -0.025129683315753937, -0.14585693180561066, 0.41606464982032776, -0.16082705557346344, 0.0563078299164772, -0.3597494661808014, 0.34141841530799866, -0.034118421375751495, 0.8357596397399902, -0.407254695892334, -0.2832680940628052, 0.011453725397586823, -0.17336173355579376, -0.26339539885520935, 0.10095902532339096, 0.4238000810146332, -0.04143204912543297, 0.10308247804641724, -0.10929100215435028, -0.08095008879899979, -0.10926604270935059, -0.11638747155666351, -0.15836696326732635, 0.3241475522518158, 0.24038776755332947, -0.08461526781320572, 0.06371182948350906, -0.2664222717285156, -0.06571178138256073, 0.004073968157172203, -0.20376434922218323, 0.10216114670038223, 0.1295066624879837, -0.1950690597295761, -0.04064732789993286, -0.19549492001533508, 0.41379180550575256, 0.22987668216228485, -0.14290159940719604, -0.27481764554977417, -0.1538349986076355, 0.16272705793380737, 0.31816717982292175, -0.11435462534427643, 0.1120595932006836, 0.46429383754730225, 0.024243522435426712, -0.06178924813866615, 0.40293440222740173, -0.18587231636047363, -0.1928127259016037, -0.08015145361423492, 0.1934300661087036, 0.07537336647510529, 0.2016073763370514, -0.2875387966632843, -0.5605953931808472, 0.4237748980522156, -0.27655887603759766, 0.03811188414692879, -0.2603270709514618, 0.4683305025100708, -0.057110872119665146, -0.09322509914636612, -0.1619098037481308, 0.002865629270672798, 0.19033145904541016, 0.017281003296375275, -0.08648325502872467, 0.41611120104789734, -0.2985835373401642, 0.21565024554729462, -0.07039786875247955, -0.12474577128887177, 0.27532142400741577, -0.019076086580753326, 0.07019158452749252, -0.2614564597606659, -0.26816317439079285, -0.20344899594783783, 0.14863038063049316, 0.7196351885795593, -0.1622498780488968, -0.04263554513454437, 0.09543415904045105, -0.1462358832359314, -0.15105180442333221, 0.39494776725769043, -0.05555123835802078, -0.4257681667804718, -0.22855369746685028, 0.258672297000885, -0.1534728705883026, -0.24409547448158264, -0.14123785495758057, 0.10097381472587585, 0.2871723771095276, -0.036422695964574814, 0.16826194524765015, 0.1550184041261673, 0.11604169011116028, -0.1931130290031433, -0.06712231785058975, 0.2744091749191284, -0.132877916097641, 0.155551016330719, 0.3391420841217041, 0.08849503099918365, 0.33606892824172974, 0.21927593648433685, -0.059235505759716034, 0.3847014605998993, -0.09691963344812393, 0.17420388758182526, 0.01569296419620514, -0.25676867365837097, 0.15728051960468292, 0.0005956493550911546, 0.03829161077737808, -0.12489643692970276, 0.17571231722831726, -0.09923097491264343, 0.2661365866661072, -0.36269426345825195, 0.10151000320911407, -0.27426737546920776, -0.21753515303134918, 0.10202912241220474, -0.30926600098609924, 0.018350875005126, 0.24968202412128448, 0.0952029824256897, 0.1969287097454071, 0.09315700829029083, -0.011768639087677002, 0.20897139608860016, 0.10463844239711761, -0.01298518106341362, -0.06902958452701569, 0.359821081161499, 0.3937545120716095, 0.10579633712768555, -0.07440736889839172, -0.38228458166122437, -0.15639880299568176, -0.13417038321495056, 0.28429046273231506, 0.28636234998703003, -0.0006915181875228882, -0.3884018063545227, -0.5789607763290405, 0.10408281534910202, -0.17038403451442719, -0.5135658979415894, 0.15054042637348175, -0.07041677832603455, 0.05420892313122749, -0.16442106664180756, -0.14299926161766052, 0.14173002541065216, -0.3714893162250519, 0.13461226224899292, 0.054625242948532104, 0.2788317799568176, -0.2573476731777191, -0.10359327495098114, 0.10283420979976654, 0.21554484963417053, 0.20160061120986938, 0.2892207205295563, 0.0024922178126871586, 0.18818709254264832, 0.07736155390739441, -0.1795162409543991, 0.14366957545280457, 0.9513867497444153, 0.19951122999191284, -0.3251633644104004, -0.032919250428676605, -0.0765438824892044, -0.012306556105613708, 0.08986444026231766, -0.44222578406333923, 0.04066586494445801, -0.18132799863815308, 0.046288616955280304, 0.13722972571849823, -0.13447408378124237, 0.41444218158721924, 0.04856834188103676, -0.2162632942199707, -0.017665792256593704, 0.10614370554685593, 0.16728730499744415, 0.027583379298448563, 0.07680585235357285, -0.4138997197151184, 0.1385340839624405, 0.3447187542915344, -0.1442258656024933, 0.150150865316391, 0.22317004203796387, -0.0669650062918663, -0.12072054296731949, 0.1856917142868042, -0.09255136549472809, 0.24490241706371307, 0.1382698267698288, -0.19805720448493958, 0.14403365552425385, -0.14127402007579803, -0.05596635490655899, 0.18916654586791992, 0.17769156396389008, -0.016715699806809425, 0.19967707991600037, 0.1539195030927658, 0.07677828520536423, -0.08942291140556335, -0.2480318248271942, 0.15569853782653809, 0.43491998314857483, -0.4040614366531372, 0.10617714375257492, 0.03964274376630783, -0.17582806944847107, -0.13832899928092957, -0.24355749785900116, -0.26574984192848206, -0.28825369477272034, 0.10704830288887024, 0.04532898589968681, -0.20416513085365295, 0.22899499535560608, 0.13495652377605438, 0.15137067437171936, -0.1372932493686676, 0.19028165936470032, -0.19000601768493652, -0.23199808597564697, 0.13069048523902893, 0.09243085980415344, 0.1227303147315979, -0.2047106772661209, 0.759917140007019, -0.21691150963306427, -0.17540088295936584, -0.4775606393814087, -0.4175077974796295, 0.1539870947599411, 0.020100342109799385, -0.19060033559799194, 0.16485700011253357, 0.25656598806381226, 0.3688608407974243, -0.19537253677845, 0.14621205627918243, 0.157265767455101, -0.1777392327785492, -0.05477055162191391, -0.18769513070583344, 0.008524250239133835, -0.18518699705600739, -0.48626282811164856, -0.28571200370788574, -0.44275951385498047, 0.09034207463264465, -0.05862511321902275, 0.2179746776819229, 0.38931888341903687, -0.1223897859454155, -0.24967928230762482, -0.3054344952106476, 0.13127218186855316, -0.24887989461421967, -0.0160018652677536, -0.1002265214920044, -0.05355855077505112, -0.12674269080162048, 0.21643221378326416, 0.09310279786586761, 0.00012236833572387695, 0.08232185989618301, 0.024279847741127014, -0.48205137252807617, 0.04437371343374252, 0.18239597976207733, -0.16736136376857758, -0.19537565112113953, 0.32811468839645386, 0.12949146330356598, -0.11170314252376556, -0.009322132915258408, -0.35290056467056274, -0.09688303619623184, 0.06235601380467415, 0.02433124929666519, -0.13807830214500427, 0.16986235976219177, 0.04160667583346367, 0.5335976481437683, 0.34143683314323425, -0.2914530038833618, -0.1384052038192749, -0.1458384394645691, 0.018164336681365967, 0.06674917042255402, -0.26955369114875793, -0.08069057017564774, -0.19346749782562256, -0.2742675542831421, 0.2180747389793396, -0.1723775863647461, 0.0019227070733904839, 0.15538513660430908, 0.049350861459970474, -0.3464556038379669, 0.16964814066886902, 0.22759869694709778, 0.12287911027669907, 0.4508107900619507, -0.1900484710931778, -0.06961137801408768, -0.2336031198501587, 0.06276872009038925, 0.09050071239471436, 0.600374162197113, 0.08811056613922119, 0.03784901276230812, -0.024542665109038353, -0.22520820796489716, -0.26347866654396057, -0.13782231509685516, 0.10466694831848145, 0.28539589047431946, -0.2970556616783142, 0.16261062026023865, 0.021751895546913147, -0.12474709004163742, 0.11239203065633774, -0.45143938064575195, 0.10474616289138794, 0.11441342532634735, 0.14308571815490723, 0.420364648103714, -0.205909863114357, -0.14468732476234436, 0.345427006483078, 0.4273086488246918, 0.3760203421115875, -0.47303077578544617, -0.09364864975214005, 0.347905695438385, -0.18619848787784576, -0.02795860730111599, -0.12934798002243042, -0.14488787949085236, -0.3955971598625183, -0.31923651695251465, 0.28989583253860474, 0.6287534236907959, -0.05674547329545021, -0.04900039732456207, 0.31343671679496765, 0.42503273487091064, 0.16890248656272888, 0.16982170939445496, 0.09736481308937073, 0.019166449084877968, -0.08213859051465988, 0.048634398728609085, -0.1553872972726822, 0.10328932851552963, 0.6667861342430115, 0.6377677917480469, 0.013508668169379234, -0.513400137424469, 0.1431708037853241, -0.22738514840602875, 0.47701963782310486, 0.16879338026046753, 0.19899961352348328, 0.30041635036468506, -0.17753611505031586, -0.10126370191574097, -0.3881760537624359, 0.11791077256202698, 0.11030101776123047, -0.09789107739925385, -0.3078610897064209, -0.47760680317878723, 0.36506742238998413, 0.34006088972091675, -0.15435020625591278, 0.07167232036590576, -0.2941880226135254, -0.3032873868942261, -0.07431896030902863, 0.3628358244895935, 1.0147576332092285, 0.010703284293413162, -0.033964287489652634, -0.03715652972459793, -0.3339206576347351, 0.21739710867404938, -0.5612512230873108, -0.06049584597349167, -0.6417410373687744, -0.29224467277526855, -0.0567912682890892, -0.10315638780593872, 0.2570657730102539, -0.023018330335617065, -0.3647399842739105, 0.19865567982196808, -0.03784262761473656, 0.3200807571411133, 0.33028072118759155, 0.23504415154457092, 0.07142830640077591, -0.19836552441120148, -0.3775789439678192, 0.1094726175069809, -0.27509981393814087, 0.12410354614257812, -0.2782236337661743, -0.08251985162496567, 0.009276974946260452, -0.10392606258392334, -0.7642222046852112, -0.22439220547676086, 0.09429838508367538, -0.1833416074514389, 0.01638517528772354, 0.07197034358978271, 0.26233309507369995, -0.083340123295784, 0.28774404525756836, 0.1599755734205246, -0.10211716592311859, 0.01365579478442669, -0.2866920232772827, -0.1565706580877304, -0.1806785762310028, -0.012374636717140675, 0.3848423361778259, -0.22549211978912354, 0.008884258568286896, 0.123039111495018, -0.13492384552955627, -0.08084486424922943, -0.4781745374202728, 0.02719784528017044, 0.17427779734134674, -0.3083548843860626, 0.09044091403484344, -0.0594794899225235, -0.16847726702690125, -0.26241248846054077, 0.1585737019777298, 0.15708550810813904, -0.14175966382026672, 0.0495755597949028, -0.23378504812717438, 0.0006793439388275146, -0.1157471239566803, -0.06306431442499161, 0.09866196662187576, -0.0006500221788883209, -0.026616312563419342, 0.05134980008006096, -0.2603876292705536, -0.30314144492149353, -0.16168393194675446, 0.16219563782215118, -0.3984323740005493, -0.01852927729487419, 0.0366671085357666, -0.32591456174850464, 0.02777501381933689, 0.2758455276489258, 0.35934150218963623, -0.01354924589395523, -0.21103501319885254, -0.36559709906578064, -0.3701299726963043, 0.158468097448349, 0.03357620909810066, -0.02152280882000923, -0.1450662910938263, 0.5396602749824524, 0.14064686000347137, 0.10280945897102356, -0.38152623176574707, -0.3376118838787079, -0.4773281216621399, 0.21481424570083618, 0.05930265784263611, -0.18689411878585815, -0.03384292125701904, -0.10311698913574219, -0.04120553284883499, 0.24054859578609467, 0.015477105975151062, -0.16178244352340698, 0.1378239393234253, 0.16993524134159088, 0.19060811400413513, 0.16706165671348572, -0.014493251219391823, 0.10564389824867249, -0.07949173450469971, 0.136268749833107, 0.20925016701221466, 0.017591767013072968, -0.015954725444316864, 0.1534985899925232, -0.0020699091255664825, 0.4182300269603729, -0.05288757383823395, -0.18025170266628265, -0.07515688240528107, 0.3603054881095886, 0.06596869975328445, 0.03983873873949051, -0.17311754822731018, -0.03590596467256546, -0.1610155701637268, 0.3359327018260956, 0.1788526326417923, -0.016378190368413925, 0.2818199396133423, -0.24093903601169586, 0.1370481550693512, 0.29442399740219116, 0.2588921785354614, 0.12505076825618744, -0.23763366043567657, 0.07804872840642929, 0.05508720129728317, 0.28134673833847046, -0.3229716122150421, -0.14661110937595367, -0.2085953950881958, -0.13301481306552887, 0.07041256129741669, 0.31548401713371277, 0.5095470547676086, -0.02196521684527397, 0.19077566266059875, 0.22758594155311584, 0.6060516238212585, -0.21984954178333282, -0.043419864028692245, 0.12336476147174835, -0.016821537166833878, 0.19953207671642303, 0.3973323106765747, 0.28566673398017883, 0.06745025515556335, 0.08439294993877411, 0.4313080906867981, 0.5508038401603699, 0.6208475232124329, -0.13987793028354645, 0.0665847510099411, -0.06853501498699188, 0.1000935435295105, 0.17930974066257477, 0.3229502737522125, 0.07231573760509491, 0.08687172830104828, -0.07352506369352341, -0.00210768636316061, -0.0011052102781832218, -0.23971587419509888, -0.010627690702676773, -0.08995722979307175, 0.28728410601615906, -0.11565086245536804, -0.10696732997894287, 0.03976214677095413, -0.08854082971811295, 0.10001100599765778, -0.14872656762599945, 0.30746859312057495, -0.46935224533081055, -0.11512824892997742, -0.029323069378733635, -0.14993348717689514, 0.21230226755142212, 0.3876200020313263, -0.17086125910282135, 0.38170161843299866, 0.23560526967048645, -0.169855996966362, 0.08162234723567963, 0.42410433292388916, 0.6503403186798096, 0.17532400786876678, 0.12390659749507904, 0.05323312431573868, -0.41650137305259705, -0.050884444266557693, 0.25828298926353455, 0.28370609879493713, 0.07561719417572021, -0.011249568313360214, 0.16345736384391785, 0.12429523468017578, -0.1514952927827835, 0.20855535566806793, 0.11921307444572449, -0.10165262222290039, 0.07077792286872864, 0.06575947254896164, 0.26154109835624695, -0.5029724836349487, 0.13466128706932068, 0.1919804960489273, -0.055220168083906174, -0.28715747594833374, 0.4696052074432373, 0.2960072159767151, 0.1322077214717865, -0.11647723615169525, 0.13354675471782684, 0.24929718673229218, 0.27256709337234497, 0.41776707768440247, 0.13109810650348663, -0.3341635763645172, 0.008560091257095337, -0.2221655696630478, 0.2183600515127182, -0.4237109124660492, -0.21838001906871796, 0.30541011691093445, -0.2541736364364624, 0.10106176137924194, 0.20546671748161316, -0.16491951048374176, -0.07790987938642502, 0.09432141482830048, 0.20494018495082855, -0.44965237379074097, -0.003462269902229309, 0.04467116296291351, 0.24289925396442413, 0.02027537301182747, 0.05558484047651291, 0.05370116978883743, -0.047857675701379776, 0.15077930688858032, -0.2701694965362549, 0.07512345910072327, 0.38026848435401917, 0.42507705092430115, 0.08263979852199554, 0.03609788045287132, 0.5918910503387451, -0.09352356195449829, -0.22479738295078278, 0.04261922836303711, -0.18194934725761414, -0.26820966601371765, 0.3609839677810669, 0.11725902557373047, 0.07145118713378906, 0.14416609704494476, -0.23909731209278107, -0.2788611650466919, -0.00240903627127409, -0.2147277146577835, -0.025403345003724098, -0.30401891469955444, 0.15260078012943268, 0.1348457932472229, -0.12901179492473602, 0.042772457003593445, 0.1837649941444397, 0.14270959794521332, -0.10639877617359161, -0.3239303231239319, -0.5633326172828674, 0.4532849192619324, 0.0827859565615654, -0.3528846502304077, 0.021465759724378586, 0.34725749492645264, 0.036363258957862854, 0.3473553955554962, -0.633820116519928, -0.0036185234785079956, 0.23303887248039246, 0.050393253564834595, -0.38089415431022644, -0.11066313087940216, -0.036788903176784515, -0.12580542266368866, -0.0005565136671066284, 0.3087688684463501, -0.13074055314064026, -0.2648637294769287, -0.0341118685901165, -0.24586711823940277 ]
https://github.com/huggingface/datasets/pull/2101
MIAM dataset - new citation details
Hi ! Looks like there's a unicode error in the new citation in the miam.py file. Could you try to fix it ? Not sure from which character it comes from though You can test if it works on your side with ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_miam ```
Hi @lhoestq, I have updated the citations to reference an OpenReview preprint.
47
text: MIAM dataset - new citation details Hi @lhoestq, I have updated the citations to reference an OpenReview preprint. Hi ! Looks like there's a unicode error in the new citation in the miam.py file. Could you try to fix it ? Not sure from which character it comes from though You can test if it works on your side with ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_miam ```
[ -0.12384982407093048, -0.01826239377260208, 0.011546824127435684, -0.026878029108047485, 0.504343569278717, 0.08587320894002914, 0.08016099035739899, 0.5535467863082886, -0.3363194465637207, 0.02171352505683899, 0.0006965592037886381, 0.047231100499629974, 0.025856181979179382, -0.2672536373138428, -0.1494629681110382, 0.08673551678657532, -0.031636349856853485, -0.04115498065948486, 0.1679723858833313, -0.1554083526134491, -0.33150672912597656, 0.2562158405780792, 0.03735703229904175, 0.1392454206943512, -0.23600496351718903, -0.20057228207588196, 0.08239355683326721, 0.20382452011108398, -0.16553501784801483, -0.6897917985916138, -0.1632474809885025, -0.022588390856981277, -0.15298572182655334, 0.08646467328071594, -0.00010376884893048555, -0.01000089943408966, 0.5580249428749084, 0.030148683115839958, -0.1991816610097885, -0.19803805649280548, 0.1862485408782959, -0.09978692978620529, -0.07594578713178635, -0.2657748758792877, -0.09257888048887253, -0.3001903295516968, -0.037158966064453125, -0.22699037194252014, -0.0931553989648819, 0.5329965353012085, 0.34602004289627075, 0.07904417812824249, 0.18279176950454712, -0.30353063344955444, -0.004919335246086121, -0.08015665411949158, 0.16601072251796722, 0.09133180975914001, 0.2035585641860962, 0.15081487596035004, -0.048645056784152985, 0.2995736002922058, -0.21305786073207855, -0.06992481648921967, -0.05975130945444107, 0.09510757029056549, 0.3049001097679138, 0.0001464150846004486, 0.058103449642658234, 0.08013357222080231, 0.5864595770835876, -0.35712677240371704, -0.15224432945251465, 0.19505983591079712, -0.15094159543514252, 0.08884916454553604, -0.0747920349240303, 0.19819092750549316, -0.1999664306640625, 0.07142391800880432, 0.40378496050834656, -0.3475332260131836, 0.06380893290042877, 0.005440637469291687, -0.10404451936483383, -0.05737195909023285, 0.09666597098112106, 0.0749024823307991, -0.041963446885347366, -0.22451205551624298, -0.11934784799814224, 0.29497379064559937, -0.1600872129201889, -0.056216564029455185, 0.05397816747426987, -0.0619102343916893, 0.1179870218038559, -0.10396825522184372, -0.043147195130586624, -0.21078938245773315, -0.021187040954828262, 0.21833419799804688, -0.05969883129000664, 0.23001158237457275, -0.22192728519439697, -0.1898287981748581, 0.12630558013916016, 0.19393949210643768, 0.31016629934310913, -0.13032017648220062, -0.09542962908744812, 0.00015981867909431458, 0.0006101634353399277, -0.4669758081436157, -0.08758331835269928, 0.0983172357082367, 0.5743488669395447, -0.2319023460149765, -0.18412715196609497, -0.04837649315595627, 0.10971597582101822, -0.038220640271902084, -0.29488056898117065, 0.3087324798107147, -0.02234721928834915, -0.28185439109802246, 0.015843983739614487, 0.10918788611888885, -0.3123781979084015, -0.2165452241897583, -0.291443794965744, 0.4211978316307068, -0.013677947223186493, 0.005121675319969654, -0.012675786390900612, -0.05338749662041664, 0.24226050078868866, 0.05576592683792114, 0.2187776416540146, -0.006664387881755829, 0.01813548244535923, -0.03537549823522568, -0.14682930707931519, 0.2555350065231323, -0.1524377316236496, 0.2153455764055252, 0.574249804019928, -0.2317025065422058, -0.09794021397829056, 0.4692484736442566, -0.395755410194397, -0.27524101734161377, 0.03989993780851364, 0.2817212641239166, -0.1717914640903473, -0.20130802690982819, 0.3525303900241852, -0.11820615828037262, 0.2055487185716629, -0.2034073770046234, -0.0072903260588645935, -0.06239401549100876, 0.03627164289355278, -0.11603245884180069, 0.0334293395280838, 0.5504233241081238, -0.25171005725860596, -0.036067649722099304, -0.13262754678726196, -0.11785508692264557, 0.2248450070619583, 0.16198141872882843, 0.01700587011873722, -0.10123313218355179, -0.048409733921289444, 0.24142803251743317, 0.21183425188064575, -0.6432479023933411, -0.22372806072235107, -0.34492436051368713, -0.27371716499328613, -0.2811681926250458, 0.06458808481693268, -0.01562045980244875, 0.2569180727005005, -0.16789017617702484, 0.07511800527572632, -0.23816551268100739, 0.17210562527179718, -0.018586546182632446, -0.5585068464279175, -0.0867040753364563, 0.09869012236595154, 0.0726504921913147, 0.13929224014282227, -0.07788511365652084, 0.35616788268089294, 0.04682964086532593, 0.38531360030174255, -0.0391039215028286, -0.01993658021092415, 0.27950459718704224, 0.6735526323318481, -0.2847442030906677, 0.4465107023715973, 0.006147541105747223, 0.3366438150405884, 0.07394026964902878, -0.3112180829048157, 0.4496538043022156, -0.416728138923645, -0.05611871927976608, -0.23417365550994873, -0.04452851414680481, -0.050596874207258224, -0.12861080467700958, 0.24050748348236084, -0.18582841753959656, 0.03480072692036629, 0.3483721911907196, 0.06300896406173706, 0.048152245581150055, -0.31582361459732056, 0.11437875777482986, -0.012956596910953522, 0.08583433926105499, -0.14456915855407715, -0.11560345441102982, 0.06894213706254959, 0.08259320259094238, 0.29686757922172546, 0.07503768801689148, -0.16014626622200012, 0.1949234902858734, 0.5274884104728699, 0.11796284466981888, 0.022474216297268867, 0.10258828848600388, 0.08679492771625519, -0.41067203879356384, 0.13194090127944946, 0.13405415415763855, 0.10843387991189957, 0.15303665399551392, 0.07769738137722015, 0.35108572244644165, -0.13467197120189667, -0.03118174523115158, 0.125296488404274, 0.14294816553592682, 0.3160136342048645, 0.1051647812128067, 0.0785716325044632, -0.5085070729255676, 0.16634587943553925, 0.2870882749557495, 0.017952091991901398, -0.057734765112400055, 0.026075534522533417, 0.04368375241756439, 0.5586532950401306, 0.03770245984196663, 0.06221383064985275, 0.21755045652389526, -0.30517444014549255, 0.021565325558185577, -0.12446247041225433, -0.11028933525085449, 0.1870824247598648, 0.13063521683216095, -0.058726441115140915, 0.3803287148475647, 0.15324388444423676, -0.23631314933300018, 0.34672826528549194, 0.07549558579921722, 0.029706934466958046, 0.17813760042190552, 0.16511574387550354, -0.07654816657304764, -0.3497401475906372, 0.19888533651828766, 0.10533171892166138, 0.40042680501937866, -0.25072407722473145, -0.03509152680635452, -0.14873117208480835, 0.3025253117084503, -0.2226359099149704, -0.29290059208869934, -0.207810178399086, -0.2269195020198822, 0.09882145375013351, 0.144742950797081, 0.16892129182815552, 0.2763747572898865, 0.19738741219043732, 0.17970475554466248, 0.19940690696239471, 0.06947832554578781, 0.07786071300506592, -0.4094453454017639, -0.046063266694545746, 0.147370383143425, -0.05061398074030876, 0.00739948870614171, 0.019908178597688675, -0.25397735834121704, 0.055077724158763885, -0.35626378655433655, -0.542030930519104, -0.024778306484222412, -0.1277216225862503, 0.16209816932678223, 0.0651392787694931, 0.06554470956325531, 0.05838453024625778, -0.10732448101043701, 0.19459448754787445, -0.18146733939647675, -0.24303460121154785, 0.19635483622550964, -0.24479767680168152, -0.15812188386917114, -0.026821589097380638, -0.379788875579834, -0.341415137052536, -0.28917840123176575, -0.05740680545568466, -0.06489188224077225, 0.01385178416967392, 0.2877650558948517, 0.007489136420190334, 0.09601621329784393, -0.07098734378814697, 0.10115367919206619, -0.09368903934955597, 0.024474408477544785, 0.23903484642505646, -0.4031147360801697, -0.5136743783950806, 0.1588820517063141, 0.15066540241241455, 0.08220016956329346, -0.0791349932551384, -0.3836660385131836, -0.3390875458717346, -0.1126076877117157, 0.11702233552932739, 0.02158340811729431, -0.08159684389829636, 0.27810513973236084, 0.14236433804035187, -0.2892840504646301, -0.3177903890609741, 0.1194816529750824, 0.0004124939441680908, 0.04166792705655098, -0.009684741497039795, -0.2120644450187683, 0.07962442934513092, -0.12035837769508362, 0.21014127135276794, 0.18082985281944275, 0.15065975487232208, 0.12358827143907547, 0.029716096818447113, 0.21067887544631958, 0.10374082624912262, -0.2915843427181244, 0.22468894720077515, -0.05865649878978729, -0.22256357967853546, 0.19216689467430115, -0.20758143067359924, -0.1726846545934677, 0.02181905508041382, -0.0738053023815155, -0.26312685012817383, -0.29599055647850037, -0.06467725336551666, -0.23858481645584106, 0.26034483313560486, 0.17278288304805756, 0.016787610948085785, -0.29951369762420654, -0.14688590168952942, 0.240216463804245, 0.3192130923271179, -0.11778316646814346, 0.007074873428791761, 0.07447494566440582, 0.01485193520784378, -0.17104899883270264, 0.27386343479156494, 0.03625833988189697, 0.29101815819740295, -0.1135215163230896, -0.016972925513982773, 0.25743407011032104, -0.11378750950098038, 0.606080174446106, -0.0980757623910904, -0.01882251352071762, 0.3132674992084503, -0.003988143056631088, -0.37574532628059387, 0.0036893337965011597, -0.22974295914173126, 0.3718465566635132, 0.011545948684215546, 0.055242668837308884, -0.14188498258590698, 0.18571296334266663, -0.22633233666419983, 0.0671667531132698, -0.2404664009809494, 0.12869428098201752, -0.4583052396774292, -0.3278338611125946, -0.40373387932777405, -0.14399296045303345, 0.05745735764503479, 0.31452059745788574, -0.026497099548578262, 0.1157146692276001, 0.018953584134578705, 0.03531434386968613, 0.16896101832389832, 0.21108563244342804, 0.498629629611969, -0.11587854474782944, 0.14245596528053284, 0.09854695200920105, 0.030133221298456192, 0.44938042759895325, 0.4765322506427765, -0.20793019235134125, -0.38610315322875977, -0.12706881761550903, -0.33873170614242554, 0.08429074287414551, 0.07659857720136642, -0.09739451855421066, 0.29591596126556396, -0.18152910470962524, 0.023908205330371857, -0.055634815245866776, 0.14382624626159668, 0.18085287511348724, 0.2558026909828186, -0.45599472522735596, -0.23802022635936737, -0.04347740858793259, 0.03231402859091759, 0.04564213752746582, 0.3748718500137329, 0.25641655921936035, -0.13806426525115967, 0.12434728443622589, 0.2096937745809555, 0.8708117008209229, -0.13019505143165588, -0.04517059400677681, 0.1672985553741455, 0.14741334319114685, 0.21269865334033966, 0.13448375463485718, 0.1849326491355896, -0.5130538940429688, -0.4091135561466217, 0.05394355207681656, -0.022143404930830002, 0.30990198254585266, -0.15552034974098206, -0.40389958024024963, -0.34074878692626953, -0.19891569018363953, -0.23067975044250488, 0.2147754281759262, 0.07354936003684998, 0.21334639191627502, 0.055036045610904694, -0.06212373077869415, 0.2902594208717346, -0.16563716530799866, 0.13798455893993378, 0.03389507532119751, -0.04452399164438248, -0.0052253566682338715, -0.2908400893211365, -0.38712799549102783, -0.0987771674990654, 0.13692080974578857, 0.1795949637889862, 0.11721153557300568, -0.24520476162433624, 0.11854733526706696, 0.04232076182961464, 0.4692453145980835, 0.22459635138511658, -0.1221005916595459, 0.0872688740491867, 0.02972809597849846, -0.2871387302875519, 0.049844890832901, 0.16685549914836884, 0.2303958684206009, -0.19500291347503662, -0.44665953516960144, 0.3053140938282013, -0.016971493139863014, -0.20478110015392303, -0.11034201085567474, -0.12422069907188416, -0.010829538106918335, -0.04895178973674774, -0.06666985154151917, -0.16862261295318604, -0.13499459624290466, -0.3695184290409088, 0.18800945580005646, 0.020662866532802582, -0.24989528954029083, 0.282137393951416, 0.17804297804832458, -0.4534006714820862, 0.22418366372585297, 0.2810108959674835, 0.24516382813453674, 0.04642028361558914, 0.4299946129322052, 0.11817918717861176, -0.20342721045017242, -0.2756446301937103, -0.02952352538704872, -0.06719719618558884, -0.1441592425107956, 0.2299283891916275, 0.1979455053806305, 0.2056138962507248, 0.10485271364450455, 0.2932244539260864, -0.039122581481933594, 0.3560471534729004, -0.310817688703537, -0.5451506972312927, -0.39987120032310486, 0.0692894384264946, -0.07313515245914459, -0.22909577190876007, -0.025558948516845703, 0.13599811494350433, -0.1786368489265442, 0.1865064948797226, -0.4363936483860016, 0.16220268607139587, -0.042441707104444504, 0.2674776613712311, -0.017600219696760178, -0.26348844170570374, 0.24823319911956787, -0.05572906509041786, 0.1753852367401123, 0.08181551098823547, -0.16454103589057922, -0.2637089788913727, -0.28275617957115173, 0.08010062575340271, -0.12655654549598694, -0.04153808206319809, 0.0569990798830986, 0.052324406802654266, 0.001814311370253563, 0.0697193443775177, -0.053062595427036285, 0.4161962866783142, -0.1686822921037674, 0.1426199972629547, 0.18142859637737274, 0.07741175591945648, -0.12702901661396027, -0.18008142709732056, -0.028992071747779846, 0.03990587219595909, 0.03899622708559036, 0.01162378117442131, -0.1593332439661026, 0.02271992713212967, 0.2199147492647171, 0.11180445551872253, 0.07530771195888519, 0.06355205178260803, 0.3319353759288788, -0.0916057676076889, 0.18356899917125702, -0.019344709813594818, 0.1531730741262436, 0.07831458747386932, -0.09806419163942337, -0.19804728031158447, 0.19957107305526733, 0.28550276160240173, -0.5713920593261719, -0.3465101420879364, 0.04880402237176895, -0.32641202211380005, 0.15422922372817993, 0.26895177364349365, 0.10776165127754211, -0.11991187930107117, 0.17221644520759583, 0.11059067398309708, 0.7151960134506226, -0.3163248896598816, 0.029169460758566856, 0.25863733887672424, 0.01693781092762947, -0.14564061164855957, 0.28165245056152344, 0.27173566818237305, -0.039632104337215424, 0.4143889546394348, -0.23885995149612427, 0.3846849501132965, 0.06183500587940216, -0.16859357059001923, -0.043658383190631866, -0.2135806381702423, 0.6522618532180786, 0.16876547038555145, 0.1377505362033844, -0.03815358132123947, -0.07574121654033661, 0.1336258202791214, 0.1270226091146469, 0.009221653454005718, 0.08143002539873123, 0.20929791033267975, -0.17786765098571777, -0.192470520734787, 0.0862087532877922, -0.06839936971664429, 0.03366139531135559, -0.10944372415542603, 0.08300402760505676, 0.10900330543518066, 0.15219466388225555, 0.10312558710575104, -0.24087731540203094, -0.19344888627529144, -0.058630555868148804, -0.04824833571910858, 0.25374555587768555, -0.2572377920150757, 0.2032345086336136, 0.17457973957061768, 0.023320913314819336, 0.22346137464046478, 0.08555106818675995, 0.5259738564491272, 0.3422435522079468, -0.18507486581802368, 0.042544614523649216, -0.42892488837242126, 0.04094782471656799, 0.1466316282749176, 0.19892184436321259, 0.24541829526424408, 0.0025600679218769073, 0.016241800040006638, 0.20487923920154572, -0.159160315990448, 0.4117862582206726, 0.23671625554561615, -0.059983331710100174, 0.22679626941680908, 0.19942882657051086, 0.12335944175720215, -0.02501864731311798, -0.35227110981941223, 0.11275652796030045, -0.5218232870101929, 0.055504798889160156, 0.5923536419868469, -0.11857760697603226, -0.05880609527230263, -0.021867185831069946, 0.14876745641231537, 0.09472119808197021, 0.23957209289073944, 0.40141868591308594, 0.1804700493812561, -0.04411642253398895, -0.059628117829561234, -0.5724465847015381, 0.6492511034011841, -0.10759124159812927, -0.017424752935767174, -0.01991432160139084, -0.17707280814647675, 0.35295569896698, -0.003183674067258835, 0.1542157232761383, 0.13331933319568634, -0.5702943205833435, -0.14341022074222565, -0.363798588514328, 0.021694574505090714, -0.04293516278266907, -0.09290104359388351, -0.04854593798518181, 0.10320549458265305, 0.1451808363199234, -0.32488366961479187, 0.2449318766593933, -0.26968884468078613, -0.34401583671569824, 0.07937568426132202, 0.0628826841711998, 0.22350762784481049, 0.13040116429328918, 0.4540286362171173, -0.14484566450119019, -0.19040635228157043, -0.027219709008932114, -0.26600876450538635, -0.20172561705112457, 0.3074951469898224, 0.14763036370277405, 0.2319895625114441, 0.03531336039304733, -0.4681507647037506, -0.23902705311775208, 0.4441973567008972, -0.0003507956862449646, -0.24524758756160736, -0.11308073997497559, 0.2766740620136261, 0.08850916475057602, -0.03681332245469093, 0.0353907085955143, 0.12612871825695038, 0.1230592206120491, 0.3030528724193573, -0.38096922636032104, -0.607931911945343, 0.6596251130104065, -0.32256487011909485, -0.2746608853340149, -0.21248652040958405, 0.42759954929351807, -0.546724259853363, -0.04605088382959366, -0.4211934804916382, 0.07224685698747635, 0.33575087785720825, 0.03927936404943466, -0.3625551462173462, 0.04786393791437149, 0.20616337656974792, -0.009639494121074677, -0.1390017718076706, 0.4303381145000458, 0.008006110787391663, -0.015332522802054882, -0.1570407748222351, -0.18197813630104065 ]
https://github.com/huggingface/datasets/pull/2100
Fix deprecated warning message and docstring
I have a question: what about `dictionary_encode_column_`? - It is deprecated in Dataset, but it recommends using a non-existing method instead: `Dataset.dictionary_encode_column` does not exist. - It is NOT deprecated in DatasetDict.
Fix deprecated warnings: - Use deprecated Sphinx directive in docstring - Fix format of deprecated message - Raise FutureWarning
32
text: Fix deprecated warning message and docstring Fix deprecated warnings: - Use deprecated Sphinx directive in docstring - Fix format of deprecated message - Raise FutureWarning I have a question: what about `dictionary_encode_column_`? - It is deprecated in Dataset, but it recommends using a non-existing method instead: `Dataset.dictionary_encode_column` does not exist. - It is NOT deprecated in DatasetDict.
[ 0.059791091829538345, -0.1629633605480194, -0.08189604431390762, 0.008871808648109436, 0.08486758172512054, 0.24715596437454224, 0.10389995574951172, 0.287503719329834, 0.03394506499171257, -0.18088515102863312, 0.21417605876922607, 0.3571584224700928, -0.10669944435358047, -0.10281165689229965, -0.2912229597568512, 0.013636045157909393, 0.2484961450099945, 0.14564919471740723, -0.031306564807891846, -0.12607401609420776, -0.3183555006980896, 0.17438142001628876, -0.33258962631225586, -0.032929569482803345, -0.04744315519928932, 0.1520530730485916, -0.06582051515579224, 0.15336595475673676, -0.4254693388938904, -0.6698265671730042, 0.3482832908630371, 0.050656095147132874, 0.15483880043029785, 0.10891667008399963, -0.00011498082312755287, 0.05041123181581497, 0.3480982780456543, -0.10458584129810333, -0.23710159957408905, -0.24817414581775665, -0.5240898132324219, -0.45081931352615356, -0.019320275634527206, -0.19139212369918823, -0.11392933875322342, -0.49707403779029846, -0.08518405258655548, -0.37930405139923096, 0.374370813369751, 0.3533661961555481, 0.17709732055664062, -0.12134917825460434, 0.32371985912323, -0.10847385227680206, -0.05406854301691055, 0.19910968840122223, 0.01820063777267933, 0.1812971532344818, 0.2927212417125702, 0.5209988951683044, -0.10958085209131241, 0.23889243602752686, -0.11633818596601486, -0.005725160241127014, 0.11278565227985382, -0.11049731820821762, 0.24038466811180115, -0.2113441824913025, 0.08263880014419556, -0.003346450626850128, 0.8092893958091736, -0.25734832882881165, -0.2974550127983093, 0.11925066262483597, -0.14448952674865723, -0.3276713788509369, 0.17799581587314606, -0.30158841609954834, 0.061411354690790176, 0.27120116353034973, 0.030361687764525414, -0.5922295451164246, -0.2256963700056076, -0.25983381271362305, -0.17183168232440948, 0.43219539523124695, 0.03926786407828331, -0.024533458054065704, -0.2872316241264343, -0.21511580049991608, 0.3354678750038147, 0.10324648022651672, -0.09630075097084045, 0.03575670346617699, -0.006809938699007034, -0.44414693117141724, -0.0774732306599617, -0.04467543214559555, 0.4707993268966675, 0.010147184133529663, -0.2986936867237091, 0.10856414586305618, -0.06446316093206406, 0.08045366406440735, 0.090940460562706, -0.24789388477802277, 0.2686472535133362, 0.2893545627593994, 0.3008815050125122, 0.10757871717214584, 0.11299976706504822, -0.1378340721130371, 0.0008139356505125761, -0.11588141322135925, 0.09249518811702728, 0.2967073321342468, 0.397361695766449, -0.6457765102386475, -0.2761105000972748, 0.1291232705116272, 0.08121394366025925, -0.35877907276153564, -0.04830345883965492, 0.34724506735801697, 0.2536149322986603, -0.007641524076461792, -0.12190520763397217, -0.04932425916194916, 0.05518142133951187, -0.6928352117538452, 0.0016270331107079983, 0.04221753403544426, -0.05097329989075661, 0.1865510791540146, -0.027457064017653465, 0.05530653893947601, 0.08788327872753143, 0.23769091069698334, -0.20170138776302338, 0.14343202114105225, -0.29658645391464233, -0.2762800455093384, 0.39557167887687683, 0.08248875290155411, -0.40047842264175415, -0.12854816019535065, 0.0890619158744812, -0.07889150083065033, -0.28192195296287537, 0.2850029170513153, -0.17272737622261047, -0.4535672962665558, -0.5461443662643433, 0.10881733894348145, 0.028673376888036728, 0.024460548534989357, 0.434200644493103, 0.5170488953590393, 0.18181149661540985, -0.23404553532600403, 0.21214458346366882, -0.11113350093364716, -0.29112520813941956, -0.2748943865299225, 0.28671902418136597, 0.4112388491630554, -0.5397249460220337, 0.06502832472324371, 0.14016693830490112, -0.20517510175704956, 0.1041073352098465, 0.37744268774986267, -0.18411841988563538, 0.028303641825914383, 0.051821961998939514, 0.009025588631629944, 0.16775695979595184, -0.22221018373966217, -0.08206844329833984, 0.12751504778862, 0.24235625565052032, 0.17039921879768372, 0.10105054825544357, -0.20979194343090057, 0.38064125180244446, -0.2633587718009949, 0.07637374103069305, 0.029679402709007263, 0.016697512939572334, -0.2969999313354492, -0.2896137535572052, -0.12966370582580566, 0.5314855575561523, -0.17735397815704346, 0.0496891625225544, 0.1511065661907196, -0.0624503418803215, 0.19063106179237366, -0.02075739949941635, -0.015452604740858078, -0.12348411232233047, 0.24809181690216064, 0.13635778427124023, 0.2075745016336441, 0.07783526182174683, 0.013791650533676147, -0.5676787495613098, -0.13603881001472473, 0.30937546491622925, -0.12305693328380585, -0.2093714326620102, -0.35365158319473267, -0.18003380298614502, 0.0025468822568655014, 0.15663805603981018, -0.0007353052496910095, 0.14270980656147003, -0.3117107152938843, 0.3641222417354584, 0.40872976183891296, -0.4601832330226898, 0.22165143489837646, -0.43548235297203064, 0.18947236239910126, -0.05079755559563637, 0.07226058095693588, -0.15957342088222504, -0.08450765162706375, 0.11823362112045288, 0.25527632236480713, 0.31360647082328796, -0.03585905581712723, -0.05374035984277725, 0.3510834872722626, -0.18292085826396942, -0.16759638488292694, -0.30131757259368896, 0.20726533234119415, 0.17818263173103333, -0.28021174669265747, 0.2587648928165436, -0.024105966091156006, 0.008864899165928364, 0.11259856075048447, -0.18792152404785156, -0.09687025845050812, 0.4335649907588959, -0.07818939536809921, 0.10876378417015076, -0.16147547960281372, 0.1231137365102768, 0.061668071895837784, -0.1235136091709137, -0.49775367975234985, -0.30991578102111816, -0.021524306386709213, -0.12728315591812134, 0.1286083459854126, 0.08430659770965576, -0.1173204556107521, 0.5890620350837708, -0.2037738412618637, 0.051226504147052765, 0.41946637630462646, 0.14399251341819763, -0.29676154255867004, 0.1453310251235962, 0.3964199721813202, 0.5191292762756348, 0.17022259533405304, 0.23009957373142242, 0.06915459036827087, -0.18159496784210205, -0.0807405561208725, 0.30743321776390076, 0.13246914744377136, -0.23174813389778137, 0.11839225888252258, -0.10903646796941757, 0.12366996705532074, -0.2881382703781128, -0.21692629158496857, 0.13412758708000183, 0.2671940326690674, -0.2249733805656433, -0.06461244821548462, -0.6277283430099487, -0.4730309247970581, 0.2939779460430145, 0.05722304433584213, 0.00905529223382473, -0.1820213496685028, 0.05241703987121582, -0.23220646381378174, -0.10146145522594452, 0.15036353468894958, -0.31484365463256836, 0.34716904163360596, -0.35976842045783997, 0.5151980519294739, -0.3326002359390259, -0.19255536794662476, -0.062459565699100494, 0.010678377002477646, -0.0624815970659256, -0.21208804845809937, 0.37965884804725647, -0.16118454933166504, -0.1407099962234497, -0.47988614439964294, -0.26830798387527466, 0.11524055898189545, -0.27056872844696045, 0.024990007281303406, 0.35677996277809143, 0.08626893907785416, -0.00004816800355911255, -0.22138680517673492, 0.09872452169656754, -0.07573740184307098, 0.11102105677127838, -0.45048362016677856, -0.0443580187857151, 0.08158267289400101, -0.22056344151496887, -0.5341058373451233, -0.2646942734718323, -0.36611294746398926, -0.0940331518650055, -0.25886258482933044, 0.15148942172527313, 0.028695572167634964, -0.17795422673225403, -0.03278506547212601, 0.025683242827653885, 0.3005084693431854, -0.2326987236738205, -0.2972555458545685, 0.32972270250320435, -0.18756769597530365, -0.1443106234073639, 0.14821532368659973, 0.11439289152622223, 0.3555121123790741, -0.06567785143852234, -0.1562228500843048, 0.20651963353157043, -0.11907608807086945, -0.010959804058074951, 0.09360566735267639, -0.363647997379303, 0.17071008682250977, 0.1692361682653427, -0.08556647598743439, 0.025548473000526428, -0.3506219983100891, -0.0700899139046669, -0.16098415851593018, 0.007955573499202728, 0.43424251675605774, 0.5818846821784973, 0.09972138702869415, -0.023790664970874786, 0.05506877228617668, -0.1704060435295105, 0.4246785640716553, 0.17164422571659088, 0.4870293438434601, 0.015085980296134949, 0.09697768092155457, -0.3181840777397156, -0.06757591664791107, 0.0661265030503273, -0.03259328007698059, 0.016966696828603745, 0.03238530457019806, 0.016182798892259598, -0.3059754967689514, 0.01860007643699646, -0.32797589898109436, 0.02912621572613716, -0.34625858068466187, 0.25985223054885864, -0.10679814219474792, 0.21769466996192932, -0.004496471025049686, 0.18391817808151245, 0.19204416871070862, 0.2613484263420105, 0.3866675794124603, -0.13882508873939514, 0.0023619569838047028, -0.025795793160796165, -0.2356380820274353, 0.3025016188621521, 0.11175486445426941, 0.5694557428359985, -0.1981344074010849, 0.06578504294157028, 0.045057427138090134, 0.061630524694919586, -0.22052891552448273, -0.29179874062538147, -0.27007579803466797, 0.41331005096435547, -0.1204887330532074, 0.12283311039209366, -0.05929161608219147, 0.009310856461524963, 0.17081432044506073, -0.27402785420417786, 0.09008099883794785, -0.3271915912628174, -0.39190787076950073, 0.5618563890457153, 0.03152022510766983, -0.059615761041641235, 0.0740843266248703, 0.0585811547935009, -0.33421632647514343, -0.28032806515693665, -0.060973308980464935, 0.1822541356086731, -0.22669652104377747, -0.35003066062927246, -0.10966895520687103, 0.17275507748126984, -0.003651615232229233, 0.07545749843120575, 0.2360479086637497, 0.27777397632598877, -0.3371065557003021, 0.07526539266109467, 0.20056557655334473, 0.1649494469165802, 0.39826062321662903, 0.03878689557313919, -0.1332225650548935, -0.28577911853790283, -0.17202714085578918, -0.07970891147851944, 0.5288802981376648, 0.11642234027385712, -0.1767662763595581, 0.4250894784927368, -0.0642227828502655, -0.21405239403247833, -0.17982245981693268, -0.5183161497116089, 0.43734845519065857, -0.040016431361436844, -0.45677706599235535, -0.4708825945854187, 0.23806247115135193, 0.3551288843154907, -0.13024359941482544, 0.24501901865005493, 0.29935237765312195, -0.3409796953201294, 0.20758408308029175, 0.5132598876953125, 1.007873773574829, 0.051370590925216675, 0.009573504328727722, 0.05755580961704254, -0.01902822032570839, 0.47125372290611267, -0.029545824974775314, 0.012537810951471329, -0.03154943138360977, -0.2129335105419159, -0.1167391762137413, 0.10256282985210419, 0.5732543468475342, -0.14155544340610504, -0.6187056303024292, 0.34409844875335693, -0.2826922535896301, 0.16716855764389038, -0.02660229615867138, 0.09918850660324097, -0.2169770449399948, -0.11491701006889343, 0.050179027020931244, 0.12554392218589783, 0.017224878072738647, -0.09827764332294464, -0.2633572816848755, -0.07558941096067429, 0.347433865070343, -0.34653306007385254, -0.5555824637413025, -0.31382882595062256, 0.3153465986251831, 0.3441174626350403, -0.20823019742965698, -0.18031355738639832, 0.5953408479690552, 0.26445797085762024, 0.5478413105010986, 0.03816533088684082, -0.05307004600763321, -0.09059153497219086, 0.053778424859046936, -0.061014559119939804, -0.08489029109477997, 0.19186829030513763, 0.1922944337129593, -0.0640644058585167, -0.12104003131389618, 0.37554672360420227, -0.07351670414209366, -0.15815319120883942, -0.6951927542686462, -0.14002515375614166, 0.2555912733078003, -0.1810680776834488, 0.08296556770801544, 0.016634933650493622, -0.010680200532078743, -0.23384889960289001, 0.127566859126091, 0.1018013209104538, -0.0641290545463562, 0.18936440348625183, 0.0135868601500988, -0.19072508811950684, -0.11896835267543793, 0.06497915089130402, 0.17986252903938293, 0.04899871349334717, 0.5018798112869263, -0.10787365585565567, -0.37329304218292236, -0.24360010027885437, -0.2635933458805084, 0.12866586446762085, -0.006410181522369385, 0.11497200280427933, -0.20962238311767578, 0.12414620816707611, -0.1481468677520752, 0.18949691951274872, 0.08450603485107422, 0.028684861958026886, -0.38778555393218994, -0.02579600363969803, -0.37348735332489014, 0.3798672556877136, -0.12124069035053253, 0.25687170028686523, -0.34831473231315613, -0.2986297011375427, 0.11808949708938599, -0.17371143400669098, -0.27213695645332336, -0.09774280339479446, -0.19887036085128784, 0.07904720306396484, 0.18390609323978424, 0.20640945434570312, -0.24357225000858307, -0.1985798180103302, 0.012134311720728874, 0.2000393122434616, 0.09832979738712311, -0.042073532938957214, -0.0789402425289154, 0.1931338906288147, 0.2025572955608368, -0.006989282555878162, -0.1556767225265503, -0.16235753893852234, -0.036238543689250946, 0.0996236652135849, 0.00482063926756382, 0.35093575716018677, 0.06552532315254211, 0.6642616987228394, 0.07762409001588821, 0.4836399555206299, -0.053977616131305695, 0.07806192338466644, 0.17535699903964996, 0.554541289806366, 0.03486260026693344, 0.036743998527526855, -0.2754923105239868, -0.08398967981338501, -0.28403377532958984, 0.2992744743824005, 0.20941942930221558, 0.07020443677902222, 0.2972942292690277, 0.08899907767772675, 0.15859393775463104, 0.052438706159591675, 0.16240473091602325, 0.2762286067008972, -0.21979735791683197, -0.16163666546344757, 0.445980966091156, 0.11301715672016144, -0.10378503054380417, -0.17407909035682678, -0.011906448751688004, -0.12525421380996704, -0.1561107039451599, 0.15952304005622864, 0.2291041910648346, 0.11426262557506561, 0.07103712856769562, 0.0468737855553627, 0.37095099687576294, -0.08550117909908295, 0.11004959046840668, 0.49463534355163574, 0.02582792565226555, 0.04028521478176117, 0.042282912880182266, 0.2288142442703247, 0.335808664560318, 0.4001655578613281, -0.10239040106534958, 0.47172290086746216, 0.2726130783557892, 0.3119891285896301, 0.0773804560303688, -0.15441922843456268, 0.3692980408668518, 0.22032999992370605, 0.17303572595119476, 0.0358145609498024, 0.17295405268669128, -0.38984715938568115, 0.14650623500347137, -0.2531927824020386, -0.1614462286233902, 0.17548157274723053, -0.18588164448738098, -0.16677893698215485, 0.19627465307712555, 0.10120391100645065, -0.011229254305362701, -0.07319138199090958, 0.06089671701192856, 0.007315691560506821, 0.14969389140605927, -0.17300018668174744, 0.13911263644695282, 0.07667415589094162, 0.5723744034767151, -0.20905497670173645, 0.27142468094825745, -0.002923276275396347, 0.27005141973495483, 0.3010319471359253, -0.07615438103675842, 0.4388938546180725, 0.20747724175453186, 0.2626422643661499, 0.3705931007862091, 0.018656011670827866, -0.03609825670719147, -0.3649677634239197, -0.06152089685201645, 0.2597859799861908, 0.6070750951766968, -0.16131563484668732, 0.11921504139900208, 0.1300700604915619, 0.11336122453212738, -0.00045990385115146637, 0.0732322707772255, 0.262734055519104, 0.21744973957538605, -0.0746120810508728, 0.4386438727378845, 0.26409679651260376, -0.31612733006477356, 0.27587437629699707, -0.0009667426347732544, -0.16714851558208466, -0.3791966438293457, 0.17979973554611206, 0.13338777422904968, 0.08386627584695816, -0.0003600389463827014, 0.06273696571588516, 0.31526514887809753, 0.27754655480384827, 0.2220645546913147, -0.0017256736755371094, -0.09214537590742111, -0.2623838782310486, -0.5002455115318298, -0.26848241686820984, 0.021844659000635147, -0.22051572799682617, 0.3276352286338806, -0.039939068257808685, 0.2826976478099823, 0.11553432047367096, 0.1498042643070221, 0.05255111679434776, -0.43790552020072937, -0.2639557123184204, -0.13553689420223236, -0.1586793065071106, 0.1942017376422882, -0.08505967259407043, -0.19904230535030365, -0.09024424850940704, 0.2548985481262207, 0.11698298156261444, -0.07145436108112335, -0.3073834776878357, 0.21691423654556274, 0.18241626024246216, 0.06845688819885254, 0.35062137246131897, 0.18137846887111664, 0.3157033920288086, -0.021164488047361374, -0.055368583649396896, -0.010586518794298172, 0.1805434376001358, -0.12339305132627487, 0.6566247940063477, 0.08242395520210266, -0.15094250440597534, -0.23240801692008972, -0.18022924661636353, -0.26196709275245667, 0.44907712936401367, -0.2080179750919342, -0.07255565375089645, -0.6022899746894836, 0.2337951958179474, 0.16062918305397034, -0.21984562277793884, -0.014920467510819435, -0.10776040703058243, -0.02476639300584793, 0.2523726224899292, -0.2920655310153961, -0.005321435630321503, 0.6269458532333374, -0.11087194085121155, -0.09102647006511688, -0.27682942152023315, 0.2399934083223343, 0.44874536991119385, -0.06326942145824432, -0.5034719109535217, -0.1186503991484642, 0.28966039419174194, 0.06445842981338501, -0.3020326793193817, 0.14330421388149261, 0.25598978996276855, -0.17062123119831085, -0.1850571483373642, 0.5380668640136719, -0.34478673338890076, -0.18792670965194702, 0.010170552879571915, -0.09360495209693909 ]
https://github.com/huggingface/datasets/pull/2100
Fix deprecated warning message and docstring
`dictionary_encode_column_ ` should be deprecated since it never worked correctly. It will be removed in a major release. This has to be deprecated in `DatasetDict` as well. And `Dataset.dictionary_encode_column` doesn't exist indeed.
Fix deprecated warnings: - Use deprecated Sphinx directive in docstring - Fix format of deprecated message - Raise FutureWarning
32
text: Fix deprecated warning message and docstring Fix deprecated warnings: - Use deprecated Sphinx directive in docstring - Fix format of deprecated message - Raise FutureWarning `dictionary_encode_column_ ` should be deprecated since it never worked correctly. It will be removed in a major release. This has to be deprecated in `DatasetDict` as well. And `Dataset.dictionary_encode_column` doesn't exist indeed.
[ -0.08473807573318481, 0.01473209261894226, -0.13887210190296173, -0.03963186591863632, 0.3677489757537842, 0.1300663948059082, 0.10677340626716614, 0.42791399359703064, 0.13287970423698425, 0.0892854779958725, 0.2653867304325104, 0.3423779308795929, -0.11656584590673447, 0.09536493569612503, -0.2825302481651306, -0.059460557997226715, 0.19428741931915283, 0.23660263419151306, -0.17776992917060852, -0.10226111859083176, -0.3084959089756012, 0.2097058892250061, -0.14406618475914001, 0.10828576982021332, -0.10045983642339706, -0.00917101837694645, -0.038212284445762634, 0.07763578742742538, -0.48087963461875916, -0.6195582747459412, 0.12917545437812805, 0.08032411336898804, 0.13635849952697754, 0.15981461107730865, -0.00009870516805676743, 0.08454081416130066, 0.3903752565383911, -0.019007107242941856, -0.3388550579547882, -0.19577421247959137, -0.3546741008758545, -0.3225077986717224, 0.11356748640537262, -0.23445048928260803, -0.23297277092933655, -0.4465389847755432, 0.000027652829885482788, -0.29415202140808105, 0.3054872751235962, 0.32281383872032166, 0.33761152625083923, -0.0026083309203386307, 0.4155411124229431, -0.16928091645240784, 0.02993113547563553, 0.026518549770116806, -0.12383509427309036, 0.07404115796089172, 0.17585532367229462, 0.31808504462242126, -0.06218811124563217, 0.3825910687446594, -0.12867361307144165, -0.0695081502199173, 0.1010095626115799, -0.02094300091266632, 0.19634392857551575, -0.2825823426246643, 0.13077503442764282, -0.1046033725142479, 0.7357393503189087, -0.3526109755039215, -0.26598402857780457, 0.1790369749069214, -0.020421188324689865, -0.28193342685699463, 0.28202757239341736, -0.12106725573539734, 0.06112561747431755, 0.2055291086435318, 0.2114308625459671, -0.2980828285217285, -0.13884785771369934, -0.13149067759513855, -0.14553281664848328, 0.5032397508621216, -0.019910145550966263, -0.04335074871778488, -0.1500891149044037, -0.23063446581363678, 0.2296825349330902, 0.17075854539871216, -0.22741323709487915, -0.08538754284381866, -0.16421139240264893, -0.41455399990081787, 0.02923397719860077, -0.16776257753372192, 0.2628728449344635, -0.06077882647514343, -0.2647431790828705, 0.22545722126960754, -0.024720659479498863, 0.05335957556962967, 0.13728924095630646, -0.06977473199367523, 0.25961676239967346, 0.35189950466156006, 0.25191444158554077, 0.040268611162900925, 0.12876275181770325, -0.10479672998189926, 0.0020236331038177013, -0.14189773797988892, 0.012213248759508133, 0.17215588688850403, 0.3715319037437439, -0.3430172801017761, -0.23873271048069, 0.24153313040733337, 0.09016906470060349, -0.13375362753868103, -0.09793154150247574, 0.3418807089328766, 0.157462015748024, -0.08113988488912582, -0.0006695650517940521, -0.03453020006418228, -0.015658415853977203, -0.5670456290245056, -0.21053874492645264, 0.13643380999565125, -0.13380824029445648, 0.0432925745844841, -0.003465205430984497, 0.12806162238121033, 0.09086807817220688, 0.19060464203357697, -0.33803075551986694, 0.12409287691116333, -0.20495936274528503, -0.1415986716747284, 0.3011844754219055, 0.20935198664665222, -0.1836465299129486, -0.06323795020580292, 0.23088306188583374, -0.15290293097496033, -0.18873262405395508, 0.22354936599731445, -0.10693233460187912, -0.3542053997516632, -0.6485359072685242, 0.3127746880054474, 0.036754388362169266, -0.06717926263809204, 0.45208975672721863, 0.3647240698337555, 0.13524484634399414, -0.25171178579330444, 0.13078071177005768, 0.0041312649846076965, -0.25638890266418457, -0.12174966186285019, 0.19763804972171783, 0.3560284376144409, -0.4790412485599518, 0.1529809683561325, 0.17629002034664154, -0.16163234412670135, 0.19375556707382202, 0.2904336452484131, -0.0809219479560852, 0.04601167514920235, 0.022185342386364937, 0.08864322304725647, 0.04157301038503647, -0.17572295665740967, -0.2017078399658203, 0.15026971697807312, 0.05156370997428894, -0.011868738569319248, 0.052742891013622284, -0.19081509113311768, 0.32391056418418884, -0.11161138862371445, 0.07107546925544739, 0.0012379512190818787, 0.1355406492948532, 0.018513167276978493, -0.39715510606765747, -0.1775178611278534, 0.3175467252731323, -0.12867088615894318, 0.03449247404932976, 0.0900823175907135, 0.06882309913635254, 0.09113447368144989, 0.07280147075653076, -0.0527619831264019, -0.0817672535777092, 0.26275959610939026, 0.18600182235240936, 0.18534532189369202, -0.004184996709227562, 0.013904668390750885, -0.3859803080558777, -0.1414792537689209, 0.1999996304512024, 0.23218590021133423, -0.35190701484680176, -0.2539898753166199, -0.12540501356124878, 0.039239607751369476, -0.07455083727836609, -0.06619270145893097, 0.30288615822792053, -0.26095718145370483, 0.18403208255767822, 0.29020053148269653, -0.27205297350883484, 0.2049689143896103, -0.4118482172489166, 0.09771627187728882, -0.16323575377464294, 0.04348903149366379, -0.2408362776041031, -0.03400176391005516, 0.13391545414924622, 0.1914057433605194, 0.202562153339386, 0.09528273344039917, -0.11985292285680771, 0.30642494559288025, -0.21161623299121857, -0.18746010959148407, -0.19590714573860168, 0.06943418830633163, 0.15620817244052887, -0.24800293147563934, 0.1906372308731079, 0.002586841583251953, 0.07190326601266861, 0.20138019323349, -0.22682291269302368, -0.046208739280700684, 0.35549455881118774, -0.19676977396011353, -0.0045632608234882355, -0.08938906341791153, 0.3560764193534851, -0.05097636207938194, -0.11987610161304474, -0.49605098366737366, -0.3454028069972992, 0.057342834770679474, -0.17152249813079834, 0.037439748644828796, -0.029650244861841202, 0.039650727063417435, 0.6234045624732971, -0.15791645646095276, 0.17671078443527222, 0.26226529479026794, 0.08255303651094437, -0.2479117214679718, 0.030516935512423515, 0.4730208218097687, 0.3949677348136902, 0.27650555968284607, 0.13945883512496948, 0.116105817258358, -0.2120533585548401, -0.10575487464666367, 0.3735450208187103, 0.03803623467683792, -0.19699452817440033, 0.2138565182685852, -0.12968440353870392, 0.06386686116456985, -0.3543573021888733, -0.19420146942138672, 0.07506536692380905, 0.4308432638645172, -0.3331272006034851, -0.14386053383350372, -0.5013269782066345, -0.4226073622703552, 0.22244882583618164, -0.013624138198792934, 0.009882384911179543, -0.32369622588157654, 0.15297649800777435, -0.11257922649383545, -0.3188028037548065, 0.188686802983284, -0.15051135420799255, 0.20330263674259186, 0.03223121911287308, 0.40799134969711304, -0.22207985818386078, -0.24637950956821442, -0.05167841911315918, 0.1666502058506012, -0.055996328592300415, -0.07142436504364014, 0.2458314150571823, -0.19733110070228577, -0.04577550292015076, -0.5213751792907715, -0.2966863811016083, 0.18809086084365845, -0.2652653455734253, -0.030494557693600655, 0.286959171295166, 0.12814165651798248, -0.012949006631970406, -0.3856315314769745, 0.16844595968723297, -0.1276918649673462, -0.05118183046579361, -0.1691877692937851, -0.04945288226008415, -0.13354581594467163, -0.2341679483652115, -0.5173819661140442, -0.31782400608062744, -0.4450417160987854, -0.07289181649684906, -0.1985025554895401, 0.17339515686035156, 0.2510181665420532, 0.03475167229771614, -0.03422854095697403, -0.05010827258229256, 0.15171171724796295, -0.41902956366539, -0.3353276252746582, 0.3634640872478485, -0.2823033332824707, -0.258043497800827, 0.13440243899822235, -0.002198493108153343, 0.28009292483329773, -0.285367488861084, -0.25448593497276306, 0.1542477160692215, -0.24522764980793, -0.08136700093746185, 0.044962700456380844, -0.1591719388961792, 0.15188103914260864, 0.16508391499519348, -0.27795422077178955, -0.023044204339385033, -0.22213700413703918, -0.03524252027273178, -0.10920620709657669, 0.09918814152479172, 0.005501696839928627, 0.523688018321991, -0.023166052997112274, -0.02623996138572693, -0.02353401482105255, -0.11347608268260956, 0.32979679107666016, 0.06080295145511627, 0.6100435853004456, -0.18372419476509094, -0.03074616566300392, -0.22249500453472137, -0.07374633848667145, 0.07970920205116272, 0.08696387708187103, -0.12642082571983337, 0.05387388914823532, 0.061835989356040955, -0.24672485888004303, -0.010578986257314682, -0.3982415795326233, -0.0075087882578372955, -0.20509982109069824, 0.09651132673025131, 0.02016543224453926, 0.2018381655216217, 0.02843340113759041, 0.16687995195388794, 0.14338813722133636, 0.1505432426929474, 0.06239287555217743, -0.13263359665870667, -0.043575119227170944, -0.038207441568374634, -0.34863272309303284, 0.2177014797925949, -0.05430004000663757, 0.46266883611679077, -0.13505926728248596, -0.09806260466575623, 0.08986459672451019, 0.10803868621587753, 0.04369184374809265, -0.22214464843273163, -0.08408398926258087, 0.26509878039360046, -0.04702644795179367, 0.07768421620130539, -0.05310851335525513, -0.03654645383358002, 0.16998660564422607, -0.2669474184513092, 0.09763304889202118, -0.3046019375324249, -0.24182993173599243, 0.5524089336395264, -0.0475248284637928, -0.13489726185798645, -0.04986102506518364, -0.1895379275083542, -0.26768407225608826, -0.3549887239933014, 0.05019873008131981, 0.2324451357126236, -0.08156944811344147, -0.2887932360172272, -0.240077942609787, 0.14418725669384003, -0.031257156282663345, 0.02753283828496933, 0.22761356830596924, 0.3383824825286865, -0.13170498609542847, 0.10677097737789154, 0.16222134232521057, 0.08981063961982727, 0.2651551067829132, 0.24491356313228607, -0.06878182291984558, -0.16904890537261963, 0.10501529276371002, -0.15934324264526367, 0.17679660022258759, 0.10445861518383026, -0.016149554401636124, 0.21941253542900085, -0.016229920089244843, 0.07756094634532928, -0.08772630244493484, -0.3099179267883301, 0.3021075129508972, 0.10545404255390167, -0.3213408291339874, -0.43736645579338074, 0.20886611938476562, 0.17124855518341064, -0.03954792022705078, 0.33644065260887146, 0.27582278847694397, -0.26801422238349915, 0.35409092903137207, 0.3655461072921753, 0.8672459721565247, -0.04561661183834076, 0.06363478302955627, 0.13466879725456238, 0.047741807997226715, 0.5068500638008118, -0.20361922681331635, 0.07673986256122589, -0.2205985188484192, -0.2863282859325409, -0.05133428797125816, 0.22880417108535767, 0.35801488161087036, -0.16029058396816254, -0.664189875125885, 0.15878638625144958, -0.12401547282934189, 0.01871778629720211, 0.05602235347032547, 0.17976343631744385, -0.2657322585582733, -0.1162685751914978, 0.08105742931365967, 0.2689998149871826, -0.01878322660923004, -0.05219001695513725, -0.10218635201454163, -0.08532387763261795, 0.3567287027835846, -0.39846575260162354, -0.4575309753417969, -0.02425580844283104, 0.22973580658435822, 0.408592164516449, -0.16007699072360992, -0.05845753848552704, 0.3887093961238861, 0.1289064884185791, 0.33597689867019653, 0.24065230786800385, -0.15277455747127533, 0.018268784508109093, 0.11305879801511765, -0.03183893859386444, -0.1375879943370819, 0.20698672533035278, 0.2541637718677521, -0.057278867810964584, -0.31481367349624634, 0.19261249899864197, -0.018461160361766815, -0.16507300734519958, -0.5601444244384766, -0.021924316883087158, 0.10675439238548279, -0.2746109664440155, 0.10984016954898834, -0.012262783944606781, -0.01746062934398651, -0.3132597804069519, 0.2665586471557617, 0.04906417429447174, -0.09898258000612259, 0.13620850443840027, 0.14206719398498535, -0.3903038799762726, -0.09089715778827667, 0.20319214463233948, 0.11016916483640671, 0.14268901944160461, 0.5258724689483643, 0.027398038655519485, -0.33219796419143677, -0.3810582458972931, -0.24693074822425842, 0.08496711403131485, 0.009255781769752502, 0.09567330032587051, -0.10637826472520828, -0.01630285382270813, 0.08750250190496445, 0.24702785909175873, 0.005276374518871307, 0.07162143290042877, -0.24504870176315308, -0.16114655137062073, -0.36172643303871155, 0.27929067611694336, -0.21783418953418732, 0.29203537106513977, -0.11786042898893356, -0.08337035775184631, 0.16729335486888885, -0.11794337630271912, -0.46655356884002686, -0.19727873802185059, -0.21984229981899261, -0.01918765902519226, 0.1989748626947403, -0.03931201994419098, -0.04381834715604782, -0.15676450729370117, 0.19586504995822906, 0.24118010699748993, -0.01107146218419075, -0.27043211460113525, -0.15486271679401398, 0.08476738631725311, 0.09826681017875671, 0.2476540356874466, -0.15086372196674347, -0.13821732997894287, -0.05747434124350548, 0.06714580953121185, 0.05949108675122261, 0.3883453905582428, 0.002236694097518921, 0.5999273657798767, 0.01265813410282135, 0.2717696726322174, 0.07881954312324524, -0.08176106959581375, 0.09657647460699081, 0.2831120193004608, 0.03237447887659073, 0.02974017523229122, -0.33741527795791626, -0.05736050382256508, -0.148642897605896, 0.21076706051826477, 0.0888843834400177, 0.15054285526275635, 0.3137471079826355, 0.06288362294435501, 0.007822617888450623, 0.04367043077945709, 0.20212896168231964, 0.1474725604057312, -0.21932470798492432, -0.3835541903972626, 0.38550710678100586, 0.334027498960495, -0.2675095498561859, -0.19051682949066162, -0.16031228005886078, -0.0936511978507042, -0.022146152332425117, 0.08211848139762878, 0.1807246059179306, -0.05417618900537491, 0.1773594617843628, 0.17564880847930908, 0.3843154013156891, -0.11206163465976715, 0.157598614692688, 0.4981697201728821, -0.2164503037929535, -0.0070858485996723175, 0.23522043228149414, 0.08954328298568726, 0.2771454453468323, 0.6096624135971069, -0.12506619095802307, 0.4130122661590576, 0.1716238260269165, 0.2969694137573242, -0.15999272465705872, -0.19440987706184387, 0.41842925548553467, 0.023072287440299988, -0.05886946618556976, -0.043431319296360016, 0.21993747353553772, -0.29207223653793335, 0.02491430938243866, -0.05761551111936569, -0.21975749731063843, 0.19475731253623962, -0.24470576643943787, -0.030410036444664, 0.14082804322242737, 0.03259102255105972, 0.027572184801101685, -0.08105666935443878, 0.09882012009620667, 0.0730009526014328, 0.14332322776317596, -0.09051427245140076, -0.009531401097774506, -0.06034774333238602, 0.40458500385284424, -0.12983283400535583, 0.19004105031490326, -0.1693500131368637, 0.23611408472061157, 0.3218997120857239, -0.1523337960243225, 0.17331895232200623, 0.09990312159061432, 0.39063185453414917, 0.459966778755188, 0.033965788781642914, -0.029742423444986343, -0.33848413825035095, -0.14496362209320068, 0.0957338735461235, 0.4524046778678894, 0.03118528053164482, 0.08550906926393509, 0.19119976460933685, 0.28045907616615295, -0.19812293350696564, -0.018987085670232773, 0.30780228972435, 0.37300583720207214, 0.10220707952976227, 0.34918949007987976, 0.3666873574256897, -0.2524012327194214, 0.08403649926185608, -0.022981062531471252, -0.43520739674568176, -0.3102920353412628, 0.27022549510002136, 0.0481971800327301, 0.031838539987802505, -0.26829323172569275, 0.15752968192100525, 0.34213316440582275, 0.474636971950531, 0.26289620995521545, 0.042889539152383804, -0.15929962694644928, -0.09291291981935501, -0.47246792912483215, 0.021879255771636963, -0.05200442299246788, -0.22142481803894043, 0.13511162996292114, 0.02385724149644375, 0.23759344220161438, 0.0834486335515976, 0.1109134778380394, 0.06984534859657288, -0.4410955011844635, -0.27547580003738403, -0.2625230848789215, 0.07957726716995239, 0.1220671534538269, -0.0332462415099144, -0.025430820882320404, -0.18129268288612366, 0.2349446415901184, 0.11749440431594849, 0.1370193064212799, -0.21211905777454376, 0.10180312395095825, 0.09611232578754425, -0.022722698748111725, 0.35632091760635376, 0.14871422946453094, 0.3396930694580078, -0.18877899646759033, 0.007169326767325401, -0.10437572002410889, 0.0014881724491715431, -0.16862636804580688, 0.5227514505386353, 0.3030804991722107, 0.03430545702576637, -0.07728751003742218, -0.26310113072395325, -0.2714521288871765, 0.3821452856063843, -0.16313712298870087, -0.027918580919504166, -0.47173383831977844, 0.37486207485198975, 0.23929175734519958, -0.13647273182868958, -0.13530747592449188, -0.03857344388961792, 0.08544252067804337, 0.2336534708738327, -0.24285343289375305, -0.32793018221855164, 0.5036400556564331, -0.15663181245326996, -0.28475433588027954, -0.14227066934108734, 0.20611026883125305, 0.32408449053764343, -0.09610448777675629, -0.49948152899742126, 0.08916156738996506, 0.1181311160326004, 0.11148574948310852, -0.29608863592147827, 0.24049179255962372, 0.16321596503257751, 0.029009971767663956, -0.09166888147592545, 0.4897534251213074, -0.07079081237316132, -0.23285464942455292, -0.10171259939670563, -0.29518991708755493 ]
https://github.com/huggingface/datasets/pull/2093
Fix: Allows a feature to be named "_type"
Nice thank you ! This looks like a pretty simple yet effective fix ;) Could you just add a test in `test_features.py` to make sure that you can create `features` with a `_type` field and that it is possible to convert it as a dict and reload it ? ```python from datasets import Features, Value # We usually use `asdict` on a `DatasetInfo` object which is a dataclass instance that contains the features. # So we need the conversion of features to dict to work. # You can test that using `dataclasses._asdict_inner`. # This is the function used by `dataclasses.asdict` to convert a dataclass instance attribute to a dict from dataclasses import _asdict_inner f = Features({"_type": Value("string")}) reloaded_f = Features.from_dict(_asdict_inner(f, dict)) assert reloaded_f == f ```
This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq
126
text: Fix: Allows a feature to be named "_type" This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq Nice thank you ! This looks like a pretty simple yet effective fix ;) Could you just add a test in `test_features.py` to make sure that you can create `features` with a `_type` field and that it is possible to convert it as a dict and reload it ? ```python from datasets import Features, Value # We usually use `asdict` on a `DatasetInfo` object which is a dataclass instance that contains the features. # So we need the conversion of features to dict to work. # You can test that using `dataclasses._asdict_inner`. # This is the function used by `dataclasses.asdict` to convert a dataclass instance attribute to a dict from dataclasses import _asdict_inner f = Features({"_type": Value("string")}) reloaded_f = Features.from_dict(_asdict_inner(f, dict)) assert reloaded_f == f ```
[ 0.03641268238425255, -0.21272754669189453, -0.07868475466966629, -0.07983431220054626, 0.46802616119384766, -0.06793104857206345, 0.4820980727672577, 0.45023155212402344, 0.019515033811330795, 0.038453683257102966, 0.2818446755409241, 0.44142356514930725, -0.002169494517147541, 0.5228968262672424, -0.0951496958732605, -0.16557049751281738, 0.09196995943784714, 0.17529991269111633, 0.04431468993425369, 0.0702584981918335, -0.29298457503318787, 0.11699569225311279, -0.0711621344089508, 0.23683778941631317, -0.11625052243471146, -0.11193665117025375, 0.18843358755111694, -0.010750800371170044, -0.48472923040390015, -0.5220482349395752, 0.03211183100938797, 0.12701404094696045, -0.009701157920062542, 0.0648544430732727, -0.00009801497799344361, 0.03303952515125275, 0.36955636739730835, 0.06032463163137436, -0.1422526240348816, -0.2055400162935257, -0.17035749554634094, -0.3925406038761139, 0.3041728734970093, -0.29672959446907043, 0.03261251747608185, -0.09185623377561569, 0.01236824132502079, 0.008060067892074585, 0.0759393721818924, 0.33674371242523193, 0.37990832328796387, 0.1787218302488327, 0.24392376840114594, -0.21758262813091278, 0.34849467873573303, 0.2903865575790405, -0.4004445970058441, -0.19043874740600586, 0.18465036153793335, 0.09911712259054184, 0.1949898600578308, 0.03955496475100517, 0.008368218317627907, 0.006756225600838661, 0.3839762210845947, -0.136152982711792, 0.2117047905921936, -0.18606185913085938, 0.004495326429605484, -0.0438537523150444, 0.43787074089050293, -0.1059388592839241, -0.338079571723938, -0.008228003978729248, -0.13317988812923431, -0.2679620683193207, 0.055862560868263245, -0.10721457004547119, -0.03505276143550873, -0.08013375103473663, 0.4559408128261566, -0.22256506979465485, -0.060599714517593384, -0.048986226320266724, -0.10253969579935074, 0.24660097062587738, -0.04082271084189415, 0.09021754562854767, -0.17161321640014648, -0.3354029655456543, -0.005216307006776333, 0.08387557417154312, -0.1085154116153717, -0.13271990418434143, -0.1507626175880432, -0.06105658411979675, 0.29532793164253235, -0.28887122869491577, 0.1320878267288208, 0.03848937153816223, 0.013060715049505234, 0.13663379848003387, -0.18051844835281372, 0.22462522983551025, 0.13079135119915009, 0.1780456155538559, 0.3006915748119354, 0.16948358714580536, 0.43858885765075684, 0.19562284648418427, -0.2491084337234497, -0.09270323067903519, -0.07441265881061554, -0.12997038662433624, 0.10052222013473511, 0.02857207879424095, 0.6174086928367615, -0.1565811038017273, -0.33855748176574707, 0.25550031661987305, 0.09211582690477371, 0.05979572981595993, 0.12093298882246017, 0.3511955738067627, 0.09725923836231232, 0.22414901852607727, 0.2604641318321228, 0.21948163211345673, -0.09589458256959915, 0.020166613161563873, -0.14632870256900787, 0.04237636923789978, -0.14872261881828308, -0.3454830050468445, -0.02771371230483055, 0.35938477516174316, 0.18710580468177795, -0.0837499126791954, 0.11812375485897064, -0.19069719314575195, -0.06410883367061615, 0.20009282231330872, -0.04295174032449722, 0.30591684579849243, -0.4131684899330139, -0.10047808289527893, 0.304098904132843, -0.2501383423805237, -0.09825931489467621, 0.2096935212612152, -0.05719853192567825, -0.22774699330329895, -0.2344568818807602, 0.39223888516426086, -0.014896156266331673, -0.041466571390628815, 0.24105390906333923, 0.012378618121147156, 0.08460094034671783, -0.19542306661605835, 0.08995196968317032, -0.10442112386226654, 0.14090923964977264, -0.20663678646087646, 0.08875743299722672, 0.03234275430440903, -0.1526581197977066, -0.006170317530632019, -0.10531652718782425, 0.023845424875617027, 0.1545199602842331, 0.004582662135362625, -0.09708085656166077, -0.025494635105133057, -0.21932996809482574, 0.05168350040912628, 0.2172270566225052, 0.08216792345046997, -0.024364305660128593, -0.1489822268486023, -0.19069629907608032, 0.02933335490524769, 0.18483224511146545, 0.04963529109954834, 0.028220076113939285, -0.16145141422748566, 0.07026056945323944, -0.026574838906526566, 0.03249480202794075, -0.06305614858865738, -0.3723495602607727, 0.1443612277507782, 0.04502265527844429, -0.18594594299793243, 0.015664629638195038, 0.2648123800754547, 0.002316698431968689, 0.039118692278862, 0.028737999498844147, -0.144802063703537, -0.11664589494466782, -0.12017831206321716, 0.6219230890274048, 0.048908136785030365, 0.09817931801080704, -0.20298489928245544, -0.12696629762649536, 0.027529165148735046, -0.13476473093032837, 0.21859239041805267, -0.04352472722530365, -0.3538111448287964, -0.3322623074054718, 0.22092266380786896, 0.1205696389079094, -0.19352178275585175, 0.2846740782260895, 0.12156346440315247, -0.3195493221282959, -0.21806000173091888, -0.258771687746048, -0.06626422703266144, -0.23420307040214539, 0.051304928958415985, -0.14488713443279266, -0.1668584644794464, -0.24840079247951508, 0.07381900399923325, -0.183885395526886, 0.17355147004127502, 0.25495368242263794, -0.05877160280942917, -0.2833232879638672, 0.24327707290649414, 0.28921350836753845, -0.144134521484375, 0.06734903156757355, 0.27189725637435913, 0.04955889284610748, -0.15705864131450653, -0.09578611701726913, 0.2662737965583801, 0.24322767555713654, -0.07176296412944794, -0.04540206491947174, 0.4506354331970215, 0.32083654403686523, 0.014123886823654175, 0.12510880827903748, 0.22942546010017395, 0.2655446529388428, -0.0056327879428863525, -0.3600008189678192, -0.204043909907341, 0.0463111512362957, 0.11695671081542969, -0.4654761254787445, -0.011968685314059258, -0.44449135661125183, 0.0840107873082161, 0.25208935141563416, 0.12070710957050323, 0.14181795716285706, 0.16952228546142578, 0.040717530995607376, 0.14600399136543274, -0.14957958459854126, 0.037504229694604874, 0.1321064829826355, 0.16993014514446259, -0.15352804958820343, 0.05219287425279617, 0.1335148811340332, -0.09882707893848419, 0.39537760615348816, 0.16562232375144958, -0.09464585781097412, 0.11443600803613663, 0.2840995490550995, -0.13688325881958008, -0.24120423197746277, 0.10256384313106537, 0.17168746888637543, 0.04567240923643112, -0.3385542035102844, -0.08248379826545715, -0.17412060499191284, 0.08318612724542618, 0.014535744674503803, -0.16206777095794678, -0.046273719519376755, -0.19039207696914673, 0.23345713317394257, 0.2553431987762451, -0.4032381474971771, 0.45004352927207947, 0.028201233595609665, 0.4014347493648529, 0.09861566126346588, -0.017122289165854454, -0.14043401181697845, -0.17885281145572662, -0.11928386241197586, 0.16927292943000793, 0.0643896758556366, -0.2065262496471405, 0.34284448623657227, 0.025316918268799782, -0.1774791032075882, -0.49811410903930664, -0.6287479400634766, -0.10541680455207825, -0.17538149654865265, 0.3372468948364258, 0.4214766025543213, 0.09064839035272598, -0.04226554557681084, -0.09850577265024185, 0.30998414754867554, -0.3179091215133667, -0.192447692155838, 0.0858585387468338, 0.09430547803640366, 0.0005283585633151233, -0.30949005484580994, -0.522596001625061, -0.08586233854293823, -0.39303919672966003, 0.4069211483001709, 0.041612979024648666, 0.12833663821220398, 0.3502381443977356, -0.07913850247859955, -0.08975041657686234, 0.5324976444244385, 0.12442747503519058, -0.2978573739528656, -0.2299187332391739, 0.1637021005153656, -0.2636975347995758, -0.35159504413604736, -0.03816278651356697, -0.1695690155029297, -0.14128579199314117, -0.2376929074525833, -0.056050367653369904, -0.3752489387989044, 0.00984086375683546, 0.5347466468811035, 0.2591634690761566, -0.026208514347672462, 0.05161947011947632, 0.1670256406068802, -0.33097949624061584, -0.34671103954315186, -0.3734113872051239, 0.2616567611694336, 0.09327587485313416, 0.1788509488105774, 0.06332239508628845, 0.12470702826976776, -0.1791074424982071, 0.1473492980003357, -0.26995018124580383, 0.02796412818133831, 0.3840078115463257, -0.05931001156568527, -0.05530054494738579, -0.36121222376823425, -0.3192221224308014, 0.08023548871278763, -0.31283244490623474, -0.40040355920791626, 0.023313462734222412, -0.1751033067703247, -0.11901185661554337, -0.00998682901263237, 0.1717042773962021, -0.01328851655125618, -0.21438273787498474, 0.025561319664120674, -0.308329701423645, 0.19020500779151917, 0.14680327475070953, -0.029046040028333664, -0.2857438623905182, 0.19682615995407104, 0.057478275150060654, 0.09624692052602768, -0.07319992035627365, -0.24631915986537933, -0.20082928240299225, -0.2733575403690338, -0.1831459403038025, 0.2703120708465576, -0.14775419235229492, 0.4166839122772217, 0.030822012573480606, -0.3104398250579834, 0.16299155354499817, -0.06341174989938736, 0.6226915717124939, -0.04683899134397507, 0.11738023161888123, 0.3440815508365631, -0.08610634505748749, 0.20688724517822266, -0.1581534594297409, -0.06276501715183258, 0.25440552830696106, 0.018191933631896973, 0.2662676274776459, -0.2835598289966583, -0.054696399718523026, 0.1702936440706253, -0.1542789191007614, -0.10775629431009293, 0.07721102982759476, -0.1584504097700119, -0.21699479222297668, -0.30417975783348083, 0.0475173257291317, 0.2609736919403076, 0.15514175593852997, -0.15280725061893463, 0.04552697762846947, -0.32886940240859985, 0.00522410124540329, 0.1368228942155838, 0.1906026005744934, 0.2841041684150696, -0.10908447206020355, 0.2380545735359192, -0.24047014117240906, 0.1360011100769043, 0.19029521942138672, 0.4554217457771301, 0.1576877236366272, -0.45402270555496216, -0.07825218886137009, 0.07591132074594498, 0.1186138466000557, 0.14255237579345703, 0.00998246856033802, 0.10488037019968033, -0.1342041939496994, -0.022982686758041382, -0.1946028470993042, 0.13160359859466553, 0.31925201416015625, 0.18706835806369781, -0.12718679010868073, -0.32599276304244995, 0.2882227599620819, -0.05625314638018608, -0.11828384548425674, 0.1212688684463501, 0.10656322538852692, -0.20563332736492157, 0.4653673768043518, 0.043415483087301254, 0.8016327023506165, 0.04157078266143799, -0.018217768520116806, 0.031227780506014824, -0.3481830358505249, 0.3557746410369873, -0.09901051223278046, 0.18091531097888947, -0.46424052119255066, -0.27769798040390015, 0.1039036363363266, -0.08864554762840271, 0.3578246533870697, -0.25246983766555786, -0.32494091987609863, -0.15582841634750366, -0.4501844048500061, 0.24475286900997162, 0.14998874068260193, 0.09831975400447845, 0.09422067552804947, -0.08695772290229797, -0.03584456816315651, 0.23015150427818298, -0.11729864776134491, 0.046858787536621094, 0.0006755422800779343, -0.09932412207126617, 0.11827901005744934, -0.40723901987075806, -0.3356923460960388, -0.07049453258514404, 0.04793766885995865, 0.12737303972244263, 0.16897696256637573, -0.2670390009880066, 0.03301728516817093, -0.0003996901214122772, 0.20531123876571655, 0.17462123930454254, -0.052493512630462646, 0.2866230607032776, 0.2915467917919159, 0.09279295057058334, -0.0380723662674427, 0.17223666608333588, 0.4171003997325897, -0.082667775452137, -0.1451282799243927, 0.016735661774873734, -0.15482471883296967, 0.015693187713623047, 0.024278923869132996, -0.05804279446601868, 0.3870586156845093, -0.3352881371974945, -0.16041973233222961, -0.10705144703388214, -0.07479608803987503, -0.5542402267456055, 0.2941949665546417, -0.08872190117835999, -0.5248695611953735, -0.028823189437389374, 0.22887839376926422, -0.07785388827323914, 0.10697507858276367, -0.250142902135849, 0.1873680055141449, 0.2973088026046753, 0.37086421251296997, 0.12370094656944275, -0.012560661882162094, -0.33846521377563477, 0.1428501307964325, 0.18700748682022095, 0.03806467354297638, 0.45277824997901917, 0.09119107574224472, -0.5150460004806519, -0.22691211104393005, 0.4765227437019348, -0.04465114325284958, 0.25937169790267944, -0.1718774437904358, -0.3815228044986725, -0.46113526821136475, -0.07470329105854034, -0.2414454072713852, 0.2402482032775879, -0.06768573075532913, 0.333944708108902, -0.21338266134262085, 0.033603593707084656, -0.48354342579841614, -0.13788604736328125, -0.3207058012485504, 0.22867169976234436, -0.24562335014343262, -0.0637398362159729, 0.019713789224624634, -0.029067393392324448, 0.2894135117530823, 0.057401835918426514, -0.06365282088518143, -0.360645592212677, -0.03829747810959816, 0.09991306811571121, -0.020698972046375275, 0.07841862738132477, 0.03182809799909592, 0.030394691973924637, -0.11492955684661865, 0.06856463849544525, -0.09643605351448059, 0.15955376625061035, -0.16720226407051086, 0.44387683272361755, -0.07448744773864746, 0.08411581814289093, 0.42578738927841187, -0.09512278437614441, 0.1324414163827896, 0.1930428445339203, -0.02989323064684868, 0.030551034957170486, -0.34492188692092896, -0.004685133695602417, 0.013987881131470203, 0.0791068896651268, -0.0934760570526123, 0.2650842070579529, 0.1579384207725525, -0.10218234360218048, -0.1322319656610489, -0.021718639880418777, 0.15316571295261383, 0.38782942295074463, -0.14562106132507324, 0.1582978218793869, 0.13655129075050354, 0.3277454078197479, -0.5178784728050232, -0.009136361069977283, 0.18015749752521515, -0.19965435564517975, 0.17950010299682617, 0.2584420442581177, 0.10527989268302917, 0.0391826331615448, -0.11401638388633728, 0.0782216265797615, 0.10578064620494843, -0.0845068171620369, 0.30533280968666077, 0.19764646887779236, -0.13054560124874115, 0.06275852769613266, 0.2054699957370758, 0.2087472528219223, 0.05124189332127571, 0.44095665216445923, -0.03725060820579529, 0.2286844551563263, 0.3785988390445709, 0.1399116963148117, 0.14366620779037476, 0.06536416709423065, 0.41868647933006287, -0.03170187771320343, 0.11044500023126602, 0.09240677952766418, 0.2121463268995285, 0.0359940230846405, -0.2892129123210907, -0.16735519468784332, -0.09769107401371002, -0.053269024938344955, -0.22829154133796692, -0.28922903537750244, -0.24991533160209656, -0.0894433781504631, -0.04056689515709877, -0.193451389670372, -0.025752510875463486, 0.2583540380001068, 0.4265478551387787, -0.18029393255710602, 0.07217684388160706, -0.4105127453804016, 0.2237141728401184, -0.2254224419593811, 0.36425912380218506, -0.14758345484733582, 0.22757995128631592, -0.019841492176055908, -0.03804318606853485, 0.20522162318229675, 0.29496195912361145, 0.33859771490097046, 0.4089846909046173, -0.19930009543895721, -0.12058671563863754, -0.3781954050064087, -0.1505090445280075, -0.06341175734996796, 0.12159307301044464, 0.16119462251663208, 0.3164101541042328, 0.1465020626783371, 0.20314092934131622, -0.1814774125814438, 0.207655668258667, 0.056524183601140976, -0.11904814839363098, -0.1568835824728012, 0.2374744415283203, 0.19284522533416748, -0.19630584120750427, 0.0397346094250679, -0.027638711035251617, -0.11349031329154968, -0.2924778461456299, 0.3433232307434082, 0.30168142914772034, 0.11932704597711563, -0.047961197793483734, 0.1977585256099701, -0.19941265881061554, 0.2858401834964752, 0.0012972243130207062, 0.10427651554346085, -0.10454998910427094, 0.0987459123134613, -0.3347531259059906, 0.30914953351020813, 0.29905620217323303, -0.3368326425552368, 0.4154931604862213, -0.05883120745420456, 0.1626257598400116, -0.14724722504615784, 0.03365328162908554, -0.2810641825199127, -0.04246276989579201, 0.1460312306880951, -0.31580206751823425, -0.12862353026866913, 0.06646840274333954, 0.03570816293358803, 0.19253556430339813, -0.15474489331245422, -0.002116534858942032, -0.0019188951700925827, 0.18422254920005798, -0.019758790731430054, -0.1667376160621643, 0.1732570230960846, -0.09037700295448303, 0.4683782458305359, 0.23407182097434998, 0.25095194578170776, -0.19427120685577393, -0.06214531511068344, -0.007118593901395798, -0.327036589384079, -0.4713318943977356, 0.13542313873767853, 0.054066773504018784, 0.29368969798088074, 0.048577211797237396, -0.023733343929052353, -0.1862049698829651, 0.039512667804956436, -0.024825744330883026, -0.41878557205200195, -0.30310866236686707, 0.41912177205085754, 0.10929945856332779, -0.01778268627822399, -0.22673100233078003, 0.22100409865379333, -0.05979497730731964, 0.04249141365289688, -0.30555838346481323, -0.6212161779403687, 0.7972941994667053, 0.10564997792243958, -0.5022236108779907, 0.03974289819598198, 0.32274049520492554, 0.023005027323961258, -0.11105334013700485, -0.6177607774734497, -0.11149341613054276, 0.1033058911561966, -0.13300126791000366, -0.3141807019710541, -0.00793958269059658, -0.21686768531799316, -0.021732661873102188, -0.1242702454328537, 0.33132678270339966, 0.01677856408059597, 0.10599857568740845, 0.036232154816389084, -0.18433119356632233 ]
https://github.com/huggingface/datasets/pull/2093
Fix: Allows a feature to be named "_type"
Sure, i will add a test. One question: are the posted benchmarks reliable? The extra type check seems to add quite some overhead judging by the relative differences. Do you think this is an issue?
This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq
35
text: Fix: Allows a feature to be named "_type" This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq Sure, i will add a test. One question: are the posted benchmarks reliable? The extra type check seems to add quite some overhead judging by the relative differences. Do you think this is an issue?
[ -0.1118524819612503, -0.22682547569274902, -0.07640163600444794, 0.0709257498383522, 0.1233365461230278, -0.204091876745224, 0.27552172541618347, 0.5483670234680176, -0.10818544030189514, 0.16437840461730957, 0.2495916783809662, 0.2883206307888031, 0.025030337274074554, 0.38258323073387146, 0.02352629229426384, -0.27714797854423523, 0.14496707916259766, 0.17769309878349304, 0.07913888990879059, 0.1583782434463501, -0.41759368777275085, 0.19590355455875397, -0.2317926585674286, 0.055219098925590515, 0.05827393755316734, -0.06119685620069504, 0.21574759483337402, 0.07422705739736557, -0.46969637274742126, -0.29543209075927734, 0.15687412023544312, 0.06678720563650131, -0.046460069715976715, 0.047817058861255646, -0.00010056532482849434, 0.04522345960140228, 0.4645758271217346, 0.029444320127367973, 0.09415440261363983, 0.12181145697832108, -0.2713921070098877, -0.1806264966726303, 0.005785033572465181, -0.1421716809272766, 0.24304479360580444, 0.04601185396313667, 0.059048622846603394, -0.02688753977417946, 0.0020972266793251038, 0.22065211832523346, 0.31412214040756226, 0.2914973199367523, 0.1238803118467331, -0.08224909007549286, 0.5405266284942627, 0.3296259641647339, -0.3116994798183441, -0.21888576447963715, 0.34882852435112, 0.22228357195854187, 0.0525958389043808, 0.13505354523658752, 0.1100945770740509, 0.08861412107944489, 0.36228713393211365, -0.2955392301082611, 0.23020485043525696, 0.06841529905796051, -0.08652951568365097, 0.10554639995098114, 0.48819881677627563, 0.1738218069076538, -0.1605706363916397, 0.02787906676530838, -0.2903951108455658, -0.16933639347553253, 0.24232017993927002, -0.18024994432926178, -0.05962209030985832, -0.12920822203159332, 0.15480810403823853, -0.0303880013525486, -0.04605352133512497, -0.32659614086151123, 0.10327531397342682, 0.2057902067899704, 0.01770196110010147, -0.03591116517782211, 0.2533806562423706, -0.07864154875278473, -0.02539551630616188, -0.12783780694007874, -0.29458943009376526, -0.37711647152900696, -0.14020222425460815, -0.22220566868782043, 0.27772462368011475, -0.04894987493753433, 0.054680950939655304, -0.007434483617544174, 0.27734607458114624, 0.3813297748565674, -0.04329326003789902, 0.12367769330739975, 0.15150883793830872, 0.2173130363225937, 0.16220290958881378, 0.14654655754566193, 0.5381687879562378, 0.09175295382738113, -0.08770570904016495, -0.03124038130044937, 0.03337502479553223, -0.20018570125102997, -0.04104918614029884, 0.15708208084106445, 0.1052204817533493, -0.20711399614810944, -0.265413373708725, 0.1756841391324997, -0.15995295345783234, -0.12873126566410065, 0.24883736670017242, 0.22178000211715698, 0.15514837205410004, 0.26085636019706726, 0.24621711671352386, -0.030506767332553864, -0.42263203859329224, 0.05758656933903694, -0.06330627202987671, 0.013968948274850845, -0.16887810826301575, -0.36614543199539185, -0.03335830196738243, 0.28845539689064026, 0.01702961139380932, 0.037811025977134705, 0.20501206815242767, -0.06525228917598724, 0.01980462484061718, 0.17957958579063416, 0.10058140009641647, 0.20631051063537598, -0.4001249372959137, -0.27710580825805664, 0.09926212579011917, -0.10226047039031982, -0.3432549238204956, 0.17824630439281464, 0.10570497065782547, -0.3038889467716217, -0.227230504155159, 0.3181595504283905, -0.007752241566777229, 0.030051428824663162, 0.062423255294561386, 0.11112192273139954, -0.06161414831876755, -0.311079740524292, 0.19215843081474304, -0.05069982260465622, 0.06387224793434143, 0.05591646209359169, -0.1698445826768875, 0.0758831799030304, -0.09485696256160736, -0.05698949843645096, -0.09786674380302429, 0.09498350322246552, 0.32151785492897034, -0.001834176480770111, -0.1133698895573616, -0.09731493145227432, -0.4380704462528229, -0.00014109909534454346, 0.12607571482658386, 0.07923515141010284, 0.09294858574867249, -0.11496240645647049, -0.11442159116268158, 0.20062734186649323, 0.348742812871933, 0.04435500130057335, 0.06302915513515472, -0.29233676195144653, 0.0602446012198925, -0.08426175266504288, -0.06293708831071854, -0.03556068241596222, -0.4965716302394867, 0.38273632526397705, -0.3264448046684265, -0.17697347700595856, -0.019153740257024765, 0.0018811747431755066, -0.09558842331171036, 0.11505276709794998, -0.020763255655765533, -0.17965471744537354, -0.1661026030778885, -0.16606222093105316, 0.46168673038482666, -0.3701024651527405, 0.1794162541627884, -0.17317089438438416, -0.021364271640777588, -0.0754387378692627, -0.23210538923740387, 0.23323452472686768, 0.44255441427230835, -0.19374345242977142, -0.18102699518203735, 0.05677005648612976, 0.19394423067569733, -0.17353041470050812, 0.19850744307041168, 0.2572278380393982, -0.24709944427013397, -0.17413176596164703, -0.12440864741802216, -0.2113146036863327, -0.2939143180847168, -0.10216997563838959, 0.015103334560990334, -0.34834614396095276, -0.2823833227157593, 0.18366312980651855, -0.13821528851985931, -0.02667364478111267, 0.06107642501592636, -0.07727864384651184, -0.32260972261428833, 0.21228286623954773, 0.1988443285226822, -0.12050849199295044, 0.10504671931266785, 0.4945167303085327, 0.1979978233575821, -0.18802179396152496, -0.04834775626659393, 0.21888191998004913, 0.1165766790509224, -0.08186502754688263, -0.1450888216495514, 0.4730621576309204, 0.28099575638771057, 0.0022072643041610718, -0.004664652049541473, -0.09235356748104095, 0.05960652977228165, 0.062329765409231186, -0.23365864157676697, -0.07891273498535156, 0.3304080665111542, 0.5465750098228455, -0.46968552470207214, 0.0779382660984993, -0.4161863923072815, 0.024536140263080597, 0.33217883110046387, 0.009051214903593063, 0.14893066883087158, 0.2981205880641937, 0.09191587567329407, -0.06553618609905243, -0.1743418127298355, 0.022074777632951736, 0.2249966561794281, 0.1949731409549713, -0.01644555851817131, -0.23482659459114075, 0.22656920552253723, -0.23931166529655457, 0.5345132946968079, 0.07796772569417953, -0.06488843262195587, 0.12681171298027039, 0.15736979246139526, -0.018071506172418594, -0.3006950616836548, 0.1261037290096283, 0.11458029597997665, -0.11292919516563416, -0.28901758790016174, -0.06326291710138321, -0.14442178606987, -0.03152769058942795, -0.03229338303208351, 0.0652276799082756, -0.07392404973506927, -0.2651748061180115, 0.30340784788131714, 0.14017291367053986, -0.5569338202476501, 0.5502328872680664, 0.19874052703380585, 0.7283164262771606, 0.003032064065337181, -0.012272195890545845, -0.1770819127559662, -0.1713765412569046, -0.4011072516441345, 0.14981608092784882, 0.29651129245758057, -0.4436030089855194, 0.28176823258399963, -0.3083883821964264, 0.03737249970436096, -0.17587324976921082, -0.7372158169746399, 0.029580477625131607, -0.03651920706033707, 0.15283046662807465, 0.4594201445579529, -0.1240256130695343, -0.07713204622268677, 0.04427033290266991, 0.06637297570705414, -0.520894467830658, -0.371099591255188, -0.018426770344376564, 0.007135452702641487, 0.16934490203857422, -0.37643519043922424, -0.39122164249420166, 0.3249376714229584, -0.37641817331314087, 0.49219685792922974, -0.22551113367080688, 0.17672580480575562, 0.18813377618789673, -0.11667975038290024, 0.005103958770632744, 0.3467283844947815, 0.01749403402209282, -0.20387472212314606, -0.32418665289878845, 0.22871346771717072, -0.0927123948931694, -0.28586387634277344, -0.15346942842006683, -0.1427040994167328, -0.20548227429389954, -0.3181613087654114, -0.1780846267938614, -0.2582699656486511, 0.02758481353521347, 0.34496331214904785, 0.12737929821014404, 0.034684985876083374, 0.19721141457557678, 0.06527259200811386, -0.4097479581832886, -0.40642815828323364, -0.46602168679237366, 0.10598555952310562, -0.09648584574460983, 0.3086055517196655, 0.08299814909696579, -0.1181638315320015, -0.08544952422380447, 0.24969853460788727, -0.45010292530059814, -0.08726556599140167, 0.2612358331680298, 0.23213502764701843, -0.009930405765771866, -0.285889208316803, -0.07023611664772034, 0.19498947262763977, -0.1364678144454956, -0.35382795333862305, 0.22654955089092255, -0.13895732164382935, -0.4489235579967499, 0.0139530710875988, -0.03585965558886528, 0.1719714105129242, -0.11013829708099365, 0.20652587711811066, -0.17390350997447968, 0.10399353504180908, 0.12607932090759277, -0.04163956642150879, -0.208443284034729, 0.1491304337978363, 0.08572766184806824, 0.055409468710422516, 0.1611073613166809, -0.4607134759426117, -0.18235433101654053, -0.25253570079803467, -0.13410228490829468, 0.572246789932251, 0.016651708632707596, 0.11379390954971313, -0.026372727006673813, -0.35552021861076355, 0.013246461749076843, -0.06400767713785172, 0.5681558847427368, -0.18486754596233368, 0.10271162539720535, 0.1880725771188736, 0.06087165325880051, 0.18391858041286469, -0.08561347424983978, -0.059648819267749786, 0.17660371959209442, 0.13808287680149078, 0.27354228496551514, -0.20864541828632355, 0.009388025850057602, 0.18965452909469604, -0.37176236510276794, 0.044549714773893356, -0.24230481684207916, -0.24643655121326447, -0.04428209364414215, -0.039712920784950256, 0.29876235127449036, 0.3939267098903656, 0.17514927685260773, -0.2154465913772583, -0.09542976319789886, -0.07971645146608353, 0.0810743197798729, 0.11914844810962677, 0.03821203485131264, 0.26210206747055054, -0.03947961702942848, 0.11059768497943878, -0.4095451831817627, 0.04513794183731079, 0.39781931042671204, 0.13007374107837677, -0.04615308716893196, -0.2163199782371521, 0.3075871169567108, 0.035076484084129333, -0.020764820277690887, 0.21245528757572174, 0.12280328571796417, -0.06931179016828537, -0.029023248702287674, -0.05383265018463135, -0.21666625142097473, 0.028670573607087135, 0.12768405675888062, 0.28930410742759705, -0.029853656888008118, -0.056078337132930756, 0.2150859236717224, 0.13339348137378693, -0.1440734565258026, 0.2769307792186737, 0.033677347004413605, -0.2726384699344635, 0.08331748843193054, 0.333757221698761, 0.8649025559425354, 0.10937009006738663, -0.031862106174230576, -0.07955216616392136, -0.8115002512931824, 0.28129905462265015, -0.15725307166576385, 0.3408382534980774, -0.28908050060272217, -0.14524231851100922, 0.06989207118749619, -0.1924445629119873, 0.29608678817749023, -0.47063112258911133, -0.45358744263648987, -0.3616635501384735, -0.31176555156707764, 0.38249799609184265, 0.023097142577171326, 0.08984869718551636, -0.18700475990772247, -0.09514719247817993, 0.09824036806821823, 0.15186481177806854, -0.04342038929462433, -0.05939498916268349, -0.12136702239513397, -0.2563663721084595, 0.15554340183734894, -0.45266038179397583, -0.6022797226905823, -0.26759231090545654, 0.2167951911687851, -0.06839804351329803, 0.19430719316005707, -0.19272005558013916, 0.14644968509674072, -0.025759924203157425, 0.11270087957382202, 0.1239175945520401, -0.05643967539072037, 0.3151911199092865, 0.19047421216964722, 0.33365246653556824, 0.12875138223171234, -0.05078042671084404, 0.15665198862552643, -0.1063101515173912, 0.04381578415632248, -0.1966363787651062, -0.3200841546058655, -0.09272342175245285, -0.10022160410881042, 0.13244332373142242, 0.23146580159664154, -0.06043669953942299, 0.10636763274669647, 0.0016786158084869385, -0.09309853613376617, -0.5250852704048157, 0.2930411994457245, -0.21171094477176666, -0.3178945779800415, 0.1401362419128418, 0.07652229070663452, -0.19425037503242493, 0.08326112478971481, -0.2425629198551178, 0.03637979179620743, 0.38023465871810913, 0.1993371993303299, 0.08030357956886292, -0.13446123898029327, -0.33514687418937683, 0.4212437570095062, 0.27875515818595886, -0.036159198731184006, 0.5543577671051025, -0.14311589300632477, -0.6552861332893372, -0.13755552470684052, 0.6418328881263733, -0.031855762004852295, 0.36125850677490234, -0.03197450563311577, -0.24118751287460327, -0.30222657322883606, -0.05260913074016571, -0.5448751449584961, 0.3017032742500305, -0.17647793889045715, 0.16126307845115662, -0.05775913596153259, 0.08483011275529861, -0.44685661792755127, -0.12423773854970932, -0.34494224190711975, 0.09095063805580139, -0.5408862829208374, 0.04867761582136154, 0.1263897866010666, -0.016021160408854485, 0.13470213115215302, 0.34591031074523926, -0.3006880283355713, -0.25836607813835144, 0.08316880464553833, 0.09573206305503845, -0.2624892294406891, -0.010988332331180573, 0.205841526389122, 0.2873408794403076, -0.14181096851825714, 0.19979803264141083, -0.18692681193351746, -0.21433758735656738, -0.19043119251728058, 0.2443721741437912, -0.0073434896767139435, 0.06842648983001709, 0.4211447238922119, -0.06792891025543213, 0.0524895116686821, 0.4814738631248474, -0.1411440074443817, 0.016722816973924637, -0.2519763708114624, -0.23921944200992584, 0.22329962253570557, 0.13364464044570923, 0.13705886900424957, 0.37261077761650085, 0.041211482137441635, 0.005879197269678116, -0.2919495701789856, 0.04915304109454155, 0.08849295973777771, 0.31135135889053345, -0.00581630552187562, -0.12259931117296219, -0.18903005123138428, 0.28358033299446106, -0.20986609160900116, -0.056230299174785614, 0.02580474130809307, -0.08513899892568588, 0.08955629169940948, 0.21447473764419556, 0.28215089440345764, -0.05699543654918671, 0.09503216296434402, 0.15809845924377441, 0.07715922594070435, -0.04744596779346466, 0.21437855064868927, -0.0026554130017757416, -0.23199225962162018, 0.0002224743366241455, 0.2581929862499237, -0.024795755743980408, 0.14738120138645172, -0.01090964674949646, 0.06252770125865936, 0.10517722368240356, 0.3255913555622101, 0.5336170196533203, 0.047655656933784485, -0.06443572789430618, 0.5764327645301819, 0.2757079005241394, 0.09227176010608673, 0.44554024934768677, 0.3946492671966553, 0.06667745113372803, -0.2955712080001831, -0.06720121949911118, -0.3098306655883789, -0.21063940227031708, -0.132780522108078, -0.2423454076051712, -0.411489337682724, -0.1820676624774933, -0.05455571413040161, 0.09618371725082397, 0.012864477932453156, 0.5915167927742004, 0.37012651562690735, -0.1671849936246872, 0.0754818469285965, -0.2083614319562912, 0.27009716629981995, -0.32978934049606323, 0.4584275484085083, -0.18727776408195496, 0.26733580231666565, 0.06916286796331406, 0.0355868935585022, 0.3057102560997009, 0.5277791023254395, 0.24025216698646545, 0.28192585706710815, -0.13493263721466064, -0.2684452533721924, -0.27279132604599, 0.143769770860672, -0.1269071400165558, 0.17605583369731903, 0.3014701008796692, 0.24053607881069183, 0.07106265425682068, 0.1027802973985672, -0.14636647701263428, 0.5143908262252808, -0.07451990246772766, -0.2402438223361969, -0.07404598593711853, -0.006077587604522705, 0.16548453271389008, 0.08271605521440506, 0.12081530690193176, 0.10715579986572266, 0.023604407906532288, -0.2256125807762146, 0.10938441753387451, 0.21327543258666992, -0.03511499613523483, 0.05353586748242378, 0.16833697259426117, -0.13911084830760956, 0.4879113435745239, -0.0768299549818039, -0.03387017548084259, -0.16939447820186615, -0.058341413736343384, -0.00019099563360214233, 0.328098863363266, 0.2990005612373352, -0.11592789739370346, 0.35593298077583313, 0.1439988613128662, 0.22763103246688843, -0.23452432453632355, 0.28061360120773315, -0.3383878171443939, 0.04908192902803421, 0.2255035638809204, -0.5582497119903564, 0.13368666172027588, 0.16551640629768372, -0.15788239240646362, 0.2516038715839386, -0.20445817708969116, 0.04632997140288353, 0.10950036346912384, 0.2429688274860382, -0.05190984904766083, -0.2034241259098053, 0.2932838201522827, 0.2321687489748001, 0.46023377776145935, 0.4485852122306824, 0.09207912534475327, -0.13772797584533691, -0.13525807857513428, 0.24043765664100647, -0.13420771062374115, -0.350439190864563, 0.09164628386497498, -0.004189308732748032, 0.1750430017709732, -0.2443939447402954, -0.005215633660554886, -0.15214578807353973, 0.1377454698085785, 0.03488321602344513, -0.215730220079422, -0.27413374185562134, 0.1463993340730667, 0.055706217885017395, -0.1063774824142456, -0.2167426198720932, 0.2860856056213379, 0.06375949084758759, -0.11728781461715698, -0.44006770849227905, -0.3369576334953308, 0.5412622094154358, 0.30856743454933167, -0.25503602623939514, 0.11028245091438293, 0.2290107011795044, 0.13729579746723175, 0.041653525084257126, -0.8091716766357422, -0.2675626277923584, 0.18692684173583984, 0.022924944758415222, -0.10135775804519653, 0.03519391268491745, -0.02189435437321663, -0.05906900763511658, -0.21699205040931702, 0.12052066624164581, 0.05580013990402222, 0.07106760889291763, 0.07389083504676819, -0.20725007355213165 ]
https://github.com/huggingface/datasets/pull/2093
Fix: Allows a feature to be named "_type"
The benchmark has a bit of noise, the values are fine ;) especially in the change you did since the overhead added is negligible.
This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq
24
text: Fix: Allows a feature to be named "_type" This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq The benchmark has a bit of noise, the values are fine ;) especially in the change you did since the overhead added is negligible.
[ -0.28024083375930786, -0.20331844687461853, -0.12723718583583832, 0.0767451673746109, 0.09028048813343048, -0.28491517901420593, 0.23300252854824066, 0.500135600566864, -0.10141801834106445, 0.3646741509437561, 0.1698710322380066, 0.3449060022830963, -0.027728095650672913, 0.28962305188179016, -0.14771558344364166, -0.2664344012737274, 0.07967398315668106, 0.2620830833911896, 0.04800630733370781, 0.06651284545660019, -0.3400638699531555, 0.22570782899856567, -0.22252613306045532, 0.035138096660375595, 0.04785359650850296, -0.11243251711130142, 0.22541922330856323, 0.08906016498804092, -0.467916339635849, -0.3292846381664276, -0.00582859106361866, 0.11465364694595337, -0.08570805937051773, 0.11609841883182526, -0.00009626255632610992, 0.009574681520462036, 0.3920298218727112, 0.06409449875354767, 0.042486388236284256, 0.2505543529987335, -0.22245091199874878, -0.14064481854438782, 0.02608814276754856, -0.1849219799041748, 0.022975444793701172, -0.0059211719781160355, 0.04121914505958557, -0.13085705041885376, 0.044835492968559265, 0.2637665271759033, 0.3785941004753113, 0.29931557178497314, -0.11356289684772491, -0.08056666702032089, 0.5853659510612488, 0.09179411828517914, -0.30724674463272095, -0.254188597202301, 0.3467930853366852, 0.13422010838985443, -0.21070954203605652, 0.1463305503129959, 0.11399026215076447, 0.10523170232772827, 0.3703364431858063, -0.21642573177814484, 0.25289109349250793, 0.14586320519447327, -0.0396377295255661, 0.12604424357414246, 0.4178929030895233, 0.12919354438781738, -0.11354036629199982, 0.11821544915437698, -0.3013804256916046, -0.3097259998321533, 0.06116801127791405, -0.15109238028526306, -0.007547198329120874, -0.08893872797489166, 0.0160976555198431, 0.07807714492082596, -0.140621155500412, -0.3256579637527466, 0.17049361765384674, 0.19696110486984253, 0.0025758352130651474, -0.07968660444021225, 0.21424616873264313, -0.1546858698129654, -0.04369464889168739, -0.10055762529373169, -0.24103587865829468, -0.32007431983947754, -0.15706339478492737, -0.12243477255105972, 0.31276658177375793, -0.11874545365571976, -0.0017340891063213348, -0.0806153416633606, 0.2873346209526062, 0.4102204442024231, 0.1913713961839676, 0.18674591183662415, 0.04838309437036514, 0.23259705305099487, 0.1690942943096161, 0.006252757273614407, 0.4260280132293701, 0.1078476831316948, -0.18213973939418793, -0.08594361692667007, 0.07606483995914459, -0.14088568091392517, -0.0873340368270874, 0.10785593837499619, 0.030209023505449295, -0.1622956395149231, -0.29071053862571716, 0.1779782474040985, -0.10899128019809723, -0.06534309685230255, 0.17533956468105316, 0.2593730688095093, 0.12407048046588898, 0.023488890379667282, 0.2652515769004822, 0.01228174939751625, -0.5040174722671509, 0.041076961904764175, -0.20709450542926788, 0.0929156094789505, -0.2004164755344391, -0.31479063630104065, -0.02690698578953743, 0.2987053096294403, 0.12622857093811035, 0.12056481093168259, 0.1895441710948944, -0.11878923326730728, 0.17967526614665985, 0.22540143132209778, 0.09829196333885193, 0.05182845890522003, -0.2065882384777069, -0.25556182861328125, 0.03735266625881195, -0.10473962873220444, -0.19790996611118317, 0.13067308068275452, 0.1463855803012848, -0.32224395871162415, -0.1494094282388687, 0.37332257628440857, 0.09514299780130386, 0.08011682331562042, 0.21022015810012817, 0.35556429624557495, -0.01236136257648468, -0.12208670377731323, 0.06081409007310867, 0.0210433229804039, -0.14915624260902405, 0.05636332184076309, -0.09723454713821411, 0.14566874504089355, -0.19060449302196503, -0.040283121168613434, -0.03445230796933174, 0.13222503662109375, 0.33304572105407715, 0.07241195440292358, -0.2100314497947693, -0.08174578100442886, -0.24338103830814362, -0.007878847420215607, 0.0522441640496254, -0.010974638164043427, -0.05281092971563339, -0.029604019597172737, -0.2683236598968506, 0.054035186767578125, 0.3595734238624573, 0.12217392027378082, 0.18341581523418427, -0.2432071417570114, 0.0645359456539154, -0.05517742037773132, 0.008750451728701591, 0.05493765324354172, -0.4601901173591614, 0.2846028506755829, -0.254669725894928, -0.02947373129427433, -0.06607045233249664, -0.023224622011184692, -0.14247727394104004, 0.05574112385511398, 0.04026804864406586, -0.1331145018339157, -0.14510776102542877, 0.03323808312416077, 0.3735906481742859, -0.4074140787124634, 0.16549871861934662, -0.07343369722366333, 0.034451618790626526, 0.061335816979408264, -0.2417764961719513, 0.2747243344783783, 0.5108513236045837, -0.1598699390888214, -0.22953402996063232, 0.10401564091444016, 0.14062558114528656, -0.2141323834657669, 0.26347318291664124, 0.11604133248329163, -0.2568114399909973, -0.21595193445682526, 0.070376917719841, -0.17639140784740448, -0.2040071189403534, -0.12121754139661789, 0.01846199482679367, -0.3152715265750885, -0.2682707607746124, 0.07406920939683914, 0.017159759998321533, -0.057109586894512177, 0.16619053483009338, 0.001711369724944234, -0.3188464641571045, 0.19604143500328064, 0.15764355659484863, 0.026604652404785156, 0.2201310694217682, 0.3994523286819458, 0.11607807874679565, -0.22282671928405762, 0.1872931569814682, 0.29232487082481384, 0.03806088864803314, -0.0985584482550621, -0.2207830250263214, 0.5380694270133972, 0.28856226801872253, 0.026363462209701538, 0.0264836847782135, -0.10445517301559448, 0.006725506857037544, 0.05921221897006035, -0.14237983524799347, -0.11292830854654312, 0.37054377794265747, 0.49523425102233887, -0.28781837224960327, 0.03769287094473839, -0.39832329750061035, 0.07533130794763565, 0.4261721670627594, 0.10088342428207397, 0.06435106694698334, 0.31203964352607727, 0.009528003633022308, -0.15033191442489624, -0.095135897397995, -0.05521825700998306, 0.1780257523059845, 0.25103092193603516, 0.13504600524902344, -0.19447463750839233, 0.18908920884132385, -0.2526722252368927, 0.4273741841316223, 0.01361905038356781, -0.09733062237501144, 0.055326152592897415, 0.20581193268299103, -0.0975169762969017, -0.40703994035720825, 0.09093266725540161, 0.12233486026525497, -0.011086611077189445, -0.11767566204071045, -0.05389478802680969, -0.11328345537185669, 0.07940966635942459, 0.06540516763925552, 0.04176989570260048, 0.021907025948166847, -0.1988934725522995, 0.3258923292160034, 0.2168150246143341, -0.47978341579437256, 0.5612286329269409, 0.2396828830242157, 0.6085888147354126, 0.06858217716217041, 0.06594232469797134, -0.18773230910301208, -0.227815642952919, -0.354692667722702, 0.19598808884620667, 0.08213136345148087, -0.23486244678497314, 0.16298100352287292, -0.16348327696323395, 0.12685148417949677, -0.12086237221956253, -0.5844829678535461, -0.08876723051071167, 0.010523101314902306, 0.20136532187461853, 0.2908063530921936, -0.10711227357387543, -0.1573670506477356, 0.06499794125556946, 0.1444702297449112, -0.49874264001846313, -0.41396769881248474, 0.012093652039766312, -0.038691066205501556, 0.06479673832654953, -0.2458072006702423, -0.3863079249858856, 0.31945350766181946, -0.42322155833244324, 0.36606889963150024, -0.11852343380451202, 0.1862698793411255, 0.1394915133714676, -0.007038581185042858, 0.010703549720346928, 0.38494935631752014, 0.005988732445985079, -0.24546077847480774, -0.3934027850627899, 0.15925399959087372, -0.21694955229759216, -0.3622700273990631, -0.24642224609851837, 0.025639645755290985, -0.16469484567642212, -0.24011415243148804, -0.18909847736358643, -0.154699444770813, -0.04457575082778931, 0.3854259252548218, 0.10775512456893921, -0.07854122668504715, 0.1227991133928299, 0.04680442810058594, -0.45922279357910156, -0.38364607095718384, -0.5314728617668152, 0.20414017140865326, -0.14693722128868103, 0.15211692452430725, -0.054661497473716736, 0.06337691843509674, -0.022020453587174416, 0.32214590907096863, -0.28603482246398926, -0.09145154058933258, 0.2412807196378708, 0.1658937931060791, -0.028413113206624985, -0.27900242805480957, -0.07266155630350113, 0.19896844029426575, 0.04511406272649765, -0.2742597460746765, 0.39413487911224365, -0.133348286151886, -0.464813768863678, 0.031515009701251984, -0.0030390117317438126, 0.18117019534111023, -0.07754954695701599, 0.08709599077701569, -0.11590223014354706, 0.11029849201440811, 0.18610011041164398, 0.09547031670808792, -0.26924535632133484, 0.1700034737586975, 0.023219551891088486, -0.08974528312683105, 0.04257027059793472, -0.45936882495880127, -0.2777867615222931, 0.06556378304958344, -0.3019498288631439, 0.4404211640357971, -0.04143494740128517, 0.15844421088695526, -0.12036509066820145, -0.2965533435344696, 0.04936046153306961, -0.09874138236045837, 0.5353728532791138, -0.06432239711284637, 0.12045179307460785, 0.239500492811203, -0.044046446681022644, 0.1065368577837944, -0.04675959795713425, -0.16256745159626007, 0.24398748576641083, 0.2569124698638916, 0.29235315322875977, -0.17853203415870667, -0.0178083349019289, 0.15613201260566711, -0.43478918075561523, -0.028596743941307068, -0.27782881259918213, -0.27667734026908875, -0.12119472771883011, -0.03049996681511402, 0.283889502286911, 0.2820115387439728, 0.22893039882183075, -0.19488932192325592, -0.22955438494682312, -0.053541578352451324, 0.027936287224292755, 0.09030340611934662, 0.026123329997062683, 0.2819964289665222, -0.15628772974014282, 0.16373789310455322, -0.31263601779937744, -0.027673624455928802, 0.269060879945755, 0.050002288073301315, -0.036886442452669144, -0.15924471616744995, 0.22339951992034912, 0.0025002220645546913, 0.006243884563446045, 0.23467615246772766, 0.11319713294506073, 0.021898873150348663, -0.11974555253982544, 0.05817351117730141, -0.2293950617313385, 0.023908941075205803, 0.16871152818202972, 0.2578330934047699, 0.0416049100458622, 0.07277443259954453, 0.30638667941093445, 0.04521020129323006, -0.17693215608596802, 0.17736664414405823, -0.1771739274263382, -0.2424795776605606, 0.06303803622722626, 0.3608493506908417, 0.8521912693977356, -0.016640789806842804, -0.08204257488250732, 0.018984243273735046, -0.7210571765899658, 0.1349460482597351, -0.09219381213188171, 0.24836359918117523, -0.4197724163532257, -0.29858317971229553, 0.172897070646286, -0.11002594232559204, 0.266793817281723, -0.3308398723602295, -0.4112657308578491, -0.3887733519077301, -0.2912752628326416, 0.29410320520401, -0.04228663444519043, 0.14971774816513062, -0.0211643073707819, -0.12832129001617432, 0.03208185359835625, 0.2367808222770691, -0.019231826066970825, -0.15356755256652832, -0.08152255415916443, -0.2565631866455078, 0.04304054006934166, -0.3096888065338135, -0.36572736501693726, -0.12406080961227417, 0.15824924409389496, 0.06197643652558327, 0.12621288001537323, -0.3458749055862427, 0.006900528445839882, -0.03092515841126442, 0.06918741017580032, 0.07563278824090958, -0.0479782298207283, 0.36410585045814514, 0.02158428728580475, 0.29304075241088867, 0.12478607892990112, 0.01199765969067812, 0.03126206248998642, -0.13006043434143066, -0.01617610454559326, -0.11998371034860611, -0.21222034096717834, -0.06888322532176971, 0.0371922105550766, -0.014939047396183014, 0.22186817228794098, -0.10398447513580322, -0.01661534234881401, -0.06728343665599823, -0.12938739359378815, -0.5016816258430481, 0.33928370475769043, -0.16845856606960297, -0.3766074776649475, 0.17709624767303467, 0.21038605272769928, -0.221543088555336, 0.025944923982024193, -0.019374147057533264, 0.06875276565551758, 0.4261761009693146, 0.23619616031646729, 0.19661980867385864, -0.1266956627368927, -0.3622490465641022, 0.3222525417804718, 0.35602277517318726, 0.010878264904022217, 0.47643032670021057, -0.17360664904117584, -0.5361043214797974, 0.020709838718175888, 0.514956533908844, -0.0888570249080658, 0.2950892448425293, -0.0789799913764, 0.00025738030672073364, -0.346046507358551, -0.1708473265171051, -0.5386312007904053, 0.31257471442222595, -0.18907546997070312, 0.05783454701304436, -0.08865638822317123, 0.1776096075773239, -0.5064099431037903, -0.12013158202171326, -0.3937736749649048, 0.07951731979846954, -0.31345099210739136, -0.12639471888542175, 0.0715976357460022, 0.1635899841785431, 0.18059590458869934, 0.2987663745880127, -0.41743141412734985, -0.3497910797595978, 0.026936739683151245, 0.06285668164491653, -0.2861793339252472, -0.07091954350471497, 0.10702429711818695, 0.2629588842391968, -0.35815030336380005, 0.04594307765364647, -0.034771330654621124, -0.18301641941070557, -0.1424538940191269, 0.2453669160604477, -0.024036187678575516, 0.0834324061870575, 0.3710554242134094, -0.14447595179080963, 0.10799599438905716, 0.4453144073486328, -0.1950000375509262, -0.07173531502485275, -0.15149806439876556, -0.3290189206600189, 0.19903239607810974, 0.14734667539596558, 0.0715201199054718, 0.3444947898387909, 0.08542849123477936, 0.02764877676963806, -0.15984678268432617, 0.042435597628355026, 0.09182380884885788, 0.16475848853588104, 0.012977511622011662, -0.22576966881752014, -0.2977929413318634, 0.3867746591567993, -0.22174088656902313, -0.25137826800346375, 0.08062854409217834, -0.13030605018138885, 0.1562882959842682, 0.13142985105514526, 0.18547990918159485, 0.004791662096977234, 0.06931033730506897, 0.19908297061920166, 0.05536671727895737, -0.1310875564813614, -0.018064096570014954, -0.13923810422420502, -0.13516618311405182, 0.0161132849752903, 0.36463963985443115, 0.23871435225009918, 0.26169684529304504, 0.1983698159456253, 0.07681819051504135, 0.20469175279140472, 0.3625173568725586, 0.47685083746910095, -0.09444684535264969, -0.032966602593660355, 0.3960283398628235, 0.3966597318649292, 0.09754051268100739, 0.29049229621887207, 0.24850614368915558, 0.08095848560333252, -0.2709534764289856, -0.06835474818944931, -0.3267047703266144, -0.09507246315479279, -0.19870644807815552, -0.3540904223918915, -0.2739766836166382, -0.10407526046037674, -0.12801872193813324, 0.03673442080616951, -0.016218990087509155, 0.6146425604820251, 0.2944498062133789, -0.21836353838443756, 0.21419474482536316, -0.2725641131401062, 0.1410183310508728, -0.231819748878479, 0.4061640501022339, -0.24321769177913666, 0.3031783998012543, 0.13921596109867096, 0.11831748485565186, 0.25969889760017395, 0.4077821969985962, 0.16962629556655884, 0.19930994510650635, -0.2034941166639328, -0.13750103116035461, -0.23647280037403107, 0.004824558272957802, -0.16609494388103485, 0.14616820216178894, 0.32875967025756836, 0.22768117487430573, 0.09741950035095215, 0.15686331689357758, -0.23241399228572845, 0.4652611017227173, 0.15048037469387054, -0.19612731039524078, -0.0027257786132395267, -0.07474871724843979, 0.17097993195056915, -0.07538758218288422, 0.041009943932294846, 0.07682777941226959, -0.0030025355517864227, -0.22752705216407776, 0.140008345246315, 0.10538066923618317, 0.02137647569179535, 0.05025444179773331, 0.18413256108760834, -0.1608850061893463, 0.5343728065490723, -0.14360742270946503, 0.04134172201156616, -0.25975096225738525, -0.16109973192214966, -0.00047332048416137695, 0.3560483157634735, 0.2845401167869568, -0.07017426937818527, 0.2122597098350525, 0.22424650192260742, 0.08821816742420197, -0.24477578699588776, 0.29797548055648804, -0.23737762868404388, 0.013951155357062817, 0.1572631448507309, -0.5433369278907776, 0.20057082176208496, 0.14464956521987915, -0.19170117378234863, 0.21525628864765167, -0.16175037622451782, -0.005149196833372116, 0.03210761025547981, 0.3374802768230438, -0.1438656598329544, -0.19039054214954376, 0.2445375621318817, 0.16618122160434723, 0.40756285190582275, 0.3255200684070587, -0.03463023900985718, -0.2159751057624817, -0.14933139085769653, 0.2613860070705414, -0.03223548084497452, -0.2864256799221039, -0.09554935246706009, 0.08296143263578415, 0.3238552212715149, -0.06905510276556015, 0.022216279059648514, -0.0012512190733104944, 0.24149692058563232, 0.11186522245407104, -0.3042551577091217, -0.2538745701313019, 0.21520328521728516, 0.049700021743774414, -0.0993509516119957, -0.21681207418441772, 0.3392675220966339, 0.14022208750247955, -0.02272210828959942, -0.41960376501083374, -0.3805428445339203, 0.6113429069519043, 0.23047101497650146, -0.25407615303993225, 0.18213744461536407, 0.24959926307201385, 0.1990564912557602, -0.05463451147079468, -0.608563244342804, -0.11434447020292282, 0.14636234939098358, -0.0747065395116806, -0.15196610987186432, 0.13353027403354645, -0.08017604053020477, 0.06649239361286163, -0.14970409870147705, 0.05327987298369408, 0.08199332654476166, 0.0977947860956192, 0.006122954189777374, -0.08438551425933838 ]
https://github.com/huggingface/datasets/pull/2093
Fix: Allows a feature to be named "_type"
Ok, i added the test you described above. I avoided importing the private `_asdict_inner` method and directly used the `DatasetInfo` class, if this is ok with you. Thanks a lot for your support during this PR!
This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq
36
text: Fix: Allows a feature to be named "_type" This PR tries to fix issue #1110. Sorry for taking so long to come back to this. It's a simple fix, but i am not sure if it works for all possible types of `obj`. Let me know what you think @lhoestq Ok, i added the test you described above. I avoided importing the private `_asdict_inner` method and directly used the `DatasetInfo` class, if this is ok with you. Thanks a lot for your support during this PR!
[ -0.20968878269195557, -0.08232924342155457, -0.08566125482320786, 0.07386396825313568, 0.2665102481842041, -0.11508424580097198, 0.25927308201789856, 0.4237591624259949, 0.13948309421539307, 0.2949800491333008, 0.11126068234443665, 0.25118833780288696, 0.0029621366411447525, 0.2940075695514679, 0.023101361468434334, -0.1235087513923645, 0.031979307532310486, 0.18742690980434418, -0.028840109705924988, -0.007989007979631424, -0.25664225220680237, 0.25671786069869995, -0.10350019484758377, -0.012488551437854767, 0.15136143565177917, -0.13071367144584656, 0.13439568877220154, 0.17771652340888977, -0.6005922555923462, -0.42268744111061096, 0.11990748345851898, 0.1771692931652069, 0.018237870186567307, 0.19556942582130432, -0.00009976292494684458, 0.0646800696849823, 0.28091493248939514, 0.06113576889038086, -0.170772522687912, -0.035394176840782166, -0.39045533537864685, -0.09705542773008347, 0.18356893956661224, -0.3035668730735779, 0.005583610385656357, -0.021543744951486588, 0.033528611063957214, -0.12919071316719055, 0.0478709377348423, 0.3381137251853943, 0.32653331756591797, 0.2282097041606903, 0.22036786377429962, -0.33368414640426636, 0.3469015061855316, 0.10951027274131775, -0.1858411580324173, -0.30129367113113403, 0.14664576947689056, 0.35977721214294434, -0.0007972940802574158, 0.07726070284843445, 0.07109622657299042, 0.07402607798576355, 0.2225874364376068, -0.18741008639335632, 0.06888315081596375, -0.005911529064178467, -0.11185171455144882, -0.07744840532541275, 0.8002349734306335, -0.2239779829978943, -0.25792184472084045, 0.19111114740371704, -0.13887599110603333, -0.2657443881034851, 0.21400511264801025, -0.11885197460651398, -0.11769703030586243, 0.19298720359802246, 0.4022842049598694, -0.030389031395316124, -0.20472371578216553, -0.0602707713842392, -0.0980137437582016, 0.1739724576473236, -0.06091904640197754, -0.060945890843868256, -0.0988081693649292, -0.1674354523420334, 0.07901015132665634, -0.045098163187503815, -0.3170575499534607, -0.2065698653459549, -0.06322450935840607, -0.1948333978652954, 0.30407899618148804, -0.18369141221046448, 0.3695881962776184, -0.15918175876140594, 0.19325831532478333, 0.3173016905784607, -0.31414881348609924, 0.3013276755809784, 0.161664217710495, 0.27539440989494324, 0.4314112365245819, 0.3732089400291443, 0.5203576683998108, 0.06321297585964203, -0.1699133664369583, -0.11328060179948807, -0.018565721809864044, 0.008071769960224628, -0.013745244592428207, 0.014021987095475197, 0.38726651668548584, -0.4933294355869293, -0.4012533724308014, 0.26437699794769287, -0.08381856977939606, -0.1468161791563034, 0.15207436680793762, 0.4133041501045227, 0.29373055696487427, 0.11158407479524612, 0.2925119400024414, -0.032405786216259, -0.17215871810913086, -0.16067424416542053, -0.1829686462879181, -0.02524590492248535, -0.12807072699069977, -0.21063829958438873, 0.17863820493221283, 0.2683478891849518, 0.18243274092674255, 0.016331050544977188, -0.0885552316904068, -0.04537004604935646, -0.1007067933678627, 0.07517486810684204, 0.20841063559055328, 0.28330332040786743, -0.2392527163028717, -0.2154015153646469, 0.17523261904716492, -0.28060442209243774, -0.195156067609787, 0.19069546461105347, 0.2250564992427826, -0.19226880371570587, -0.12172715365886688, 0.35004326701164246, -0.14360477030277252, -0.05119267851114273, 0.5109395384788513, 0.11858326196670532, -0.0169498473405838, -0.28428614139556885, 0.05793457850813866, -0.06977686285972595, -0.10313598066568375, 0.07333675026893616, 0.035747818648815155, 0.2268339991569519, -0.38667789101600647, 0.04214691370725632, 0.05359566956758499, -0.11302599310874939, 0.08329540491104126, 0.04718465358018875, -0.048992037773132324, 0.03892913833260536, -0.2719230353832245, 0.015162542462348938, 0.22162897884845734, 0.11211353540420532, -0.3023826479911804, -0.11707795411348343, -0.20215332508087158, 0.05871742218732834, 0.28293558955192566, 0.1001640260219574, 0.11164470762014389, -0.18015605211257935, 0.2269236147403717, 0.033919524401426315, 0.10100553184747696, -0.006048187613487244, -0.3809349238872528, 0.21706873178482056, -0.15183919668197632, -0.058246735483407974, -0.08072270452976227, 0.29585132002830505, 0.09780701249837875, -0.053381018340587616, 0.09246784448623657, -0.3066198527812958, -0.08482426404953003, -0.027998998761177063, 0.5384112000465393, -0.1742895245552063, 0.13322018086910248, -0.3236907422542572, -0.23206818103790283, 0.048685021698474884, -0.10256550461053848, 0.1489778757095337, 0.07755671441555023, -0.2730475068092346, -0.2648388743400574, 0.13289275765419006, 0.16628378629684448, -0.06510205566883087, 0.2625010311603546, 0.25870591402053833, -0.19821061193943024, -0.20835953950881958, -0.13489533960819244, -0.02228063903748989, -0.2773700952529907, -0.016363948583602905, -0.048641469329595566, -0.16523538529872894, -0.10218945890665054, 0.05488520860671997, 0.03992418199777603, 0.06098952516913414, 0.09908619523048401, -0.04890866577625275, -0.3581039309501648, 0.18543949723243713, 0.1296176165342331, -0.3969889283180237, -0.0016087740659713745, 0.24701228737831116, -0.05765579640865326, -0.2918335795402527, -0.013727443292737007, 0.08430665731430054, 0.226050466299057, -0.0015018433332443237, -0.1775752305984497, 0.26380816102027893, 0.21225064992904663, -0.17773935198783875, 0.05365844815969467, 0.12138248234987259, 0.38122689723968506, 0.038540128618478775, -0.2411891669034958, -0.42634692788124084, 0.22088755667209625, 0.14569441974163055, -0.31540149450302124, 0.02370612509548664, -0.41415467858314514, 0.12436732649803162, 0.39131879806518555, 0.14216580986976624, 0.23474270105361938, 0.23992964625358582, 0.08196431398391724, 0.13877028226852417, -0.08446560055017471, 0.20147041976451874, 0.3143981695175171, 0.35753995180130005, -0.03251009061932564, 0.05403781682252884, 0.15028811991214752, -0.23410286009311676, 0.3896470069885254, 0.06678283214569092, -0.09051065146923065, 0.11106139421463013, 0.125160813331604, -0.07135690003633499, -0.41930416226387024, 0.20147112011909485, 0.08785130083560944, 0.07124002277851105, -0.359202116727829, -0.08611764013767242, -0.23199093341827393, -0.05473531782627106, -0.0664917603135109, -0.08927969634532928, 0.043563053011894226, -0.09089064598083496, 0.22778703272342682, 0.12368962168693542, -0.5639764070510864, 0.44156768918037415, -0.04111466929316521, 0.5505643486976624, 0.013610200956463814, -0.02958185411989689, -0.1491207778453827, -0.15742135047912598, -0.06027345359325409, 0.16221573948860168, 0.29163461923599243, -0.11360788345336914, 0.3532315492630005, 0.027148937806487083, 0.08147542923688889, -0.45575273036956787, -0.546720027923584, 0.11372287571430206, -0.02881043404340744, 0.2702997028827667, 0.4202061593532562, 0.012179315090179443, -0.05952048301696777, -0.026515979319810867, 0.09392496198415756, -0.3535118103027344, -0.3597760796546936, 0.10439980775117874, 0.018137170001864433, -0.15555182099342346, -0.42360931634902954, -0.44800737500190735, -0.06508337706327438, -0.4171373248100281, 0.40815943479537964, -0.13600651919841766, 0.2071797102689743, 0.2328263521194458, -0.16863182187080383, 0.03544790670275688, 0.3950369954109192, 0.1387854665517807, -0.2320694476366043, -0.12489728629589081, 0.21419942378997803, -0.3190193176269531, -0.3844687342643738, -0.0427955761551857, -0.12774249911308289, -0.08611190319061279, -0.17739611864089966, -0.12589210271835327, -0.08429709821939468, -0.17820927500724792, 0.5894595980644226, 0.26836323738098145, 0.006891136988997459, 0.3600465655326843, 0.10542270541191101, -0.33590173721313477, -0.5060142278671265, -0.52321857213974, 0.25054213404655457, -0.26347899436950684, 0.048036884516477585, -0.10725250095129013, 0.23164492845535278, -0.14002323150634766, 0.011281147599220276, -0.30319786071777344, -0.028292711824178696, 0.2839435338973999, 0.20721931755542755, 0.10683895647525787, -0.3477753698825836, -0.2293962985277176, -0.002156237605959177, -0.12330842018127441, -0.3743649125099182, 0.2317066490650177, -0.27642694115638733, -0.360158771276474, 0.04741493612527847, 0.0405348502099514, 0.010091345757246017, -0.1453491598367691, 0.0899457186460495, -0.10883654654026031, 0.27293333411216736, 0.2811400890350342, -0.09112706780433655, -0.1898421198129654, 0.11049345880746841, -0.025738023221492767, 0.05275484547019005, -0.08215370029211044, -0.3012983798980713, -0.28959235548973083, -0.24272938072681427, -0.36035600304603577, 0.5157669186592102, -0.023518076166510582, 0.38765794038772583, -0.15534280240535736, -0.2995316982269287, -0.04462425410747528, -0.10657962411642075, 0.5327251553535461, -0.060494087636470795, 0.1424049437046051, 0.40723559260368347, 0.00009867176413536072, 0.10854332894086838, 0.026668991893529892, -0.23747646808624268, 0.22498580813407898, -0.05145617946982384, 0.14512473344802856, -0.30916452407836914, -0.09188318997621536, 0.3491905629634857, -0.21005524694919586, -0.023733532056212425, -0.2992425560951233, -0.09550753235816956, -0.20898619294166565, -0.07167133688926697, 0.2509562373161316, 0.2506231963634491, 0.27849963307380676, -0.28823092579841614, 0.002337627112865448, -0.1815965622663498, 0.06622771173715591, 0.10454045236110687, 0.10870781540870667, 0.37544387578964233, 0.01874460279941559, 0.20921210944652557, -0.051678553223609924, 0.2037603110074997, 0.35582324862480164, 0.4209359884262085, -0.15784700214862823, -0.3211943805217743, 0.19905194640159607, -0.09536204487085342, 0.10431644320487976, 0.19193285703659058, 0.020352810621261597, 0.08026105165481567, -0.005976313725113869, -0.2377854436635971, -0.15314804017543793, -0.021065225824713707, -0.04362118989229202, 0.29435017704963684, 0.03034643456339836, -0.22950933873653412, 0.21125704050064087, -0.018883641809225082, -0.2143346518278122, 0.33337536454200745, -0.005882330238819122, -0.37629562616348267, 0.4036276340484619, 0.08328177779912949, 0.6919011473655701, -0.007340960204601288, 0.006014436483383179, 0.07558301091194153, -0.4328230619430542, 0.19831113517284393, -0.03249717503786087, 0.20052191615104675, -0.38369694352149963, -0.29581254720687866, 0.041363149881362915, -0.11247986555099487, 0.3902296721935272, -0.22786776721477509, -0.6014133095741272, -0.2913968563079834, -0.14248040318489075, 0.2503022849559784, 0.2251710593700409, 0.24244633316993713, 0.0921570211648941, -0.2006615698337555, -0.22128933668136597, 0.25452107191085815, -0.10219669342041016, -0.1729547530412674, -0.0920574963092804, -0.14480619132518768, 0.12133736908435822, -0.43072253465652466, -0.17558880150318146, -0.0020417775958776474, 0.06636841595172882, 0.026654573157429695, 0.07673598825931549, -0.08689597249031067, 0.3210267126560211, 0.060230545699596405, 0.37848490476608276, 0.2556058466434479, -0.08944761008024216, 0.2307957261800766, 0.1793256253004074, 0.23921306431293488, 0.048648424446582794, 0.04936368018388748, 0.2719571590423584, -0.05934634432196617, -0.13741135597229004, -0.0023049265146255493, -0.13896460831165314, -0.16230227053165436, 0.023442238569259644, -0.04375109076499939, 0.3163691759109497, -0.337871253490448, -0.11485369503498077, 0.04170110076665878, -0.05447745323181152, -0.5167366862297058, 0.2818479537963867, -0.00662057101726532, -0.43547722697257996, -0.035382047295570374, 0.19681520760059357, -0.20638176798820496, 0.1782054305076599, -0.08513239771127701, 0.05910994112491608, 0.20820041000843048, 0.5161510705947876, 0.1432676464319229, 0.02302238717675209, -0.40987297892570496, 0.24157866835594177, 0.2221687287092209, 0.0722559466958046, 0.41036614775657654, -0.049875568598508835, -0.47540372610092163, -0.08240357041358948, 0.4848376512527466, -0.06266197562217712, 0.17056137323379517, -0.21178816258907318, -0.3170214891433716, -0.4469989836215973, -0.011150404810905457, -0.30596035718917847, 0.33183616399765015, -0.10029315948486328, 0.12695282697677612, -0.16579778492450714, 0.06216812878847122, -0.4790390133857727, -0.2027655392885208, -0.31759175658226013, 0.19761265814304352, -0.25858643651008606, 0.016304921358823776, 0.05930045619606972, -0.10180036723613739, 0.1568218618631363, 0.2779710292816162, -0.2552616000175476, -0.3402188718318939, -0.06319594383239746, 0.09850446879863739, -0.0968167781829834, 0.14815132319927216, 0.13278290629386902, 0.10214114189147949, -0.11999379098415375, 0.09332834184169769, -0.02677292376756668, -0.028590817004442215, -0.25390690565109253, 0.4417053461074829, 0.03990516811609268, 0.05216037482023239, 0.22366733849048615, -0.11894416809082031, 0.18657802045345306, 0.2201921045780182, -0.13623715937137604, 0.10323353111743927, -0.47552093863487244, -0.09379706531763077, 0.19537445902824402, 0.09192181378602982, 0.06426875293254852, 0.3416494131088257, -0.03231847286224365, -0.12999649345874786, -0.22488762438297272, 0.09653997421264648, 0.09771072864532471, 0.10137723386287689, -0.26441439986228943, -0.0038808081299066544, -0.008476141840219498, 0.3240543305873871, -0.2813395857810974, 0.044098690152168274, 0.321283221244812, -0.12469426542520523, 0.16605666279792786, 0.10444840788841248, 0.09561927616596222, -0.056980282068252563, 0.12329316884279251, 0.14713403582572937, 0.17664413154125214, -0.026002660393714905, 0.19627442955970764, 0.12035062909126282, -0.16881990432739258, 0.0444335862994194, 0.1668417751789093, 0.21572177112102509, 0.07012757658958435, 0.6153447031974792, 0.05165836587548256, 0.03145827353000641, 0.2420024275779724, 0.3243996202945709, 0.023856408894062042, -0.009118547663092613, 0.5214844346046448, 0.06583016365766525, 0.17601129412651062, 0.14306318759918213, 0.08359529823064804, 0.04336108639836311, -0.4090212285518646, -0.1589394062757492, -0.2543734312057495, -0.23136074841022491, -0.18877965211868286, -0.22011546790599823, -0.6578689217567444, -0.08710489422082901, 0.11403127014636993, -0.19636563956737518, -0.09455215930938721, 0.4973253011703491, 0.16736386716365814, -0.18055088818073273, 0.01968786120414734, -0.3431560695171356, 0.2195192277431488, -0.14561381936073303, 0.1590520441532135, -0.2781580686569214, 0.4583134651184082, 0.028121784329414368, 0.02810000255703926, 0.2749907374382019, 0.4640349745750427, 0.14505073428153992, 0.3284855782985687, 0.1101500391960144, -0.16059565544128418, -0.5209864377975464, -0.09098875522613525, -0.1891665905714035, 0.24780990183353424, 0.29412591457366943, 0.12418964505195618, 0.15673919022083282, 0.17395782470703125, -0.1623578816652298, 0.2946073114871979, 0.18855653703212738, 0.08986997604370117, -0.10884305834770203, -0.08297988027334213, 0.2808073163032532, -0.2196473479270935, 0.14476676285266876, -0.03612350672483444, -0.0643201544880867, -0.11681124567985535, 0.32104265689849854, 0.13789668679237366, 0.08006568998098373, -0.08092974126338959, 0.17385883629322052, -0.03048621118068695, 0.41235631704330444, 0.02871083840727806, 0.2123943567276001, -0.17317545413970947, -0.14211389422416687, -0.37790271639823914, 0.23854929208755493, 0.1899990290403366, -0.1904144436120987, 0.21857967972755432, 0.06253848224878311, 0.2851707637310028, -0.10796450078487396, 0.05459781736135483, -0.1454552561044693, -0.28355783224105835, 0.0038357190787792206, -0.35314035415649414, -0.051237497478723526, 0.22389188408851624, -0.03145792335271835, 0.13806919753551483, -0.21552595496177673, -0.0669468343257904, 0.0446852445602417, 0.19841471314430237, 0.004185296595096588, -0.0395854115486145, 0.13512296974658966, -0.007956888526678085, 0.42765018343925476, 0.4527629613876343, 0.3155870735645294, -0.1524120271205902, -0.09025262296199799, 0.06728432327508926, -0.38811206817626953, -0.40787583589553833, 0.01793251559138298, 0.0892016738653183, 0.5168116092681885, -0.04922039806842804, -0.19709230959415436, -0.04650726914405823, 0.20133031904697418, -0.04866645485162735, -0.2819252610206604, -0.10808458924293518, 0.3494359850883484, -0.03307340294122696, -0.02636341005563736, -0.18769299983978271, 0.32716163992881775, -0.04704605042934418, -0.014496482908725739, -0.29031214118003845, -0.43696656823158264, 0.6056255102157593, 0.021580789238214493, -0.4035366177558899, 0.14894840121269226, 0.3895810544490814, 0.08485335111618042, -0.32347622513771057, -0.473915159702301, -0.11045065522193909, 0.1955489218235016, -0.05814497917890549, -0.317872554063797, 0.14855985343456268, 0.06272576749324799, 0.11903858184814453, -0.2183440625667572, 0.3033329248428345, 0.12984585762023926, -0.08079265803098679, 0.011774223297834396, -0.21511614322662354 ]
https://github.com/huggingface/datasets/pull/2087
Update metadata if dataset features are modified
@lhoestq I'll try to add a test later if you think this approach with the wrapper is good.
This PR adds a decorator that updates the dataset metadata if a previously executed transform modifies its features. Fixes #2083
18
text: Update metadata if dataset features are modified This PR adds a decorator that updates the dataset metadata if a previously executed transform modifies its features. Fixes #2083 @lhoestq I'll try to add a test later if you think this approach with the wrapper is good.
[ -0.2103852480649948, -0.08104453235864639, -0.15791022777557373, -0.20900805294513702, 0.11650369316339493, -0.2771385908126831, 0.08638229966163635, 0.22575610876083374, -0.2995084822177887, -0.04564771056175232, 0.2643018662929535, 0.40837737917900085, -0.11965075880289078, 0.15224607288837433, 0.0542278029024601, -0.30350130796432495, 0.11446093767881393, 0.2698068618774414, -0.03691861033439636, 0.11224742233753204, -0.18527841567993164, -0.16174863278865814, -0.2319367229938507, 0.044760726392269135, -0.19298146665096283, 0.10173048079013824, -0.045657940208911896, 0.07565075159072876, -0.19062381982803345, -0.3892683982849121, 0.08510259538888931, 0.45514586567878723, -0.12800835072994232, 0.006473340094089508, -0.00009864367893896997, 0.09841710329055786, 0.31808793544769287, -0.02881334349513054, 0.012650785967707634, 0.07027894258499146, -0.049451228231191635, -0.2620541751384735, -0.18908576667308807, -0.1647721379995346, -0.08399370312690735, -0.2538609206676483, -0.06382530927658081, 0.20237833261489868, 0.14505618810653687, 0.13290725648403168, 0.3146941363811493, 0.051102377474308014, -0.07873178273439407, -0.050184667110443115, 0.22756212949752808, 0.17589595913887024, -0.037454746663570404, -0.14121195673942566, 0.2735300064086914, 0.32200443744659424, -0.04032380133867264, 0.4202372133731842, -0.3609200716018677, -0.025224391371011734, 0.5341769456863403, -0.07788968831300735, 0.06548361480236053, -0.01039620116353035, 0.11358422040939331, -0.1735454499721527, 0.6176136136054993, -0.3409726619720459, 0.1393117606639862, -0.07014862447977066, -0.16388465464115143, -0.1859082579612732, 0.005331061780452728, -0.13762116432189941, 0.060660671442747116, -0.007607623934745789, -0.21803446114063263, -0.18602852523326874, -0.10663174092769623, -0.11409926414489746, -0.20878751575946808, 0.5180002450942993, -0.08442550897598267, 0.11919492483139038, -0.15705031156539917, -0.00014348328113555908, 0.3673866391181946, -0.014947962015867233, -0.17852024734020233, 0.11763062328100204, 0.29086223244667053, -0.2696011960506439, 0.0025580227375030518, 0.032358307391405106, -0.11629163473844528, 0.4598291516304016, -0.2497004121541977, 0.2646853029727936, -0.15784955024719238, 0.19895726442337036, 0.0722033828496933, -0.05032036826014519, 0.15492862462997437, 0.358001708984375, 0.3009488582611084, -0.2196751832962036, 0.07781195640563965, -0.003041531890630722, 0.3147781789302826, -0.01535200234502554, 0.09075014293193817, 0.15972745418548584, 0.43197256326675415, -0.020852047950029373, -0.0911785364151001, 0.29363423585891724, 0.11169572919607162, -0.2670316696166992, -0.06537192314863205, 0.278836190700531, 0.04543575644493103, 0.05624556541442871, 0.1316794604063034, -0.23327477276325226, 0.16214852035045624, -0.12312815338373184, -0.2325465828180313, 0.17388446629047394, -0.18824444711208344, -0.15315014123916626, -0.065836101770401, 0.08671721816062927, 0.05786769092082977, 0.15892525017261505, 0.08690425008535385, -0.09156395494937897, 0.1167326271533966, 0.1282784789800644, 0.3932623267173767, 0.47369545698165894, -0.27222514152526855, -0.1709662675857544, 0.0639752522110939, -0.12160448729991913, -0.20023176074028015, 0.26312121748924255, -0.030395619571208954, -0.18206414580345154, -0.01950197108089924, 0.376238077878952, -0.019367501139640808, -0.1078082025051117, 0.19802361726760864, 0.1546994298696518, -0.009348168969154358, -0.24371777474880219, 0.5415991544723511, 0.1498580425977707, -0.05502845346927643, -0.07011707872152328, -0.14704309403896332, 0.30607765913009644, -0.25597047805786133, -0.1444610059261322, 0.27147209644317627, -0.4636043310165405, -0.041996099054813385, -0.15724793076515198, -0.01749657653272152, -0.055559851229190826, -0.10418609529733658, -0.24175885319709778, 0.41608959436416626, -0.1552872657775879, -0.21045063436031342, 0.08063625544309616, -0.23013894259929657, 0.009020281955599785, 0.1678871065378189, 0.25347253680229187, -0.08135871589183807, -0.3054247796535492, -0.4512086808681488, -0.02880798652768135, -0.14532631635665894, 0.0017552953213453293, -0.10984723269939423, 0.34417855739593506, 0.004468239843845367, 0.09766411781311035, 0.11905980110168457, 0.1788875013589859, -0.11306896060705185, 0.336642861366272, 0.0947987288236618, 0.08470319956541061, 0.14518871903419495, 0.08079972118139267, 0.09073506295681, 0.18179747462272644, 0.0423964187502861, -0.08772401511669159, -0.16358599066734314, -0.18415528535842896, -0.003428678959608078, 0.13194170594215393, 0.06388368457555771, -0.2552228271961212, -0.31633415818214417, 0.032633014023303986, -0.10880807042121887, -0.4554566740989685, 0.3321727514266968, 0.20722004771232605, -0.08819660544395447, -0.3520561456680298, -0.21245059370994568, 0.24404442310333252, -0.02733641117811203, 0.03196006268262863, -0.03650761395692825, 0.05252451449632645, -0.13804271817207336, 0.08160427957773209, -0.2845098078250885, 0.07465842366218567, -0.11326735466718674, -0.34261301159858704, -0.08346379548311234, 0.47497063875198364, -0.01851337030529976, -0.011828973889350891, -0.14174765348434448, 0.23846276104450226, 0.18195848166942596, -0.06345520168542862, 0.21172857284545898, 0.06441659480333328, 0.04634571820497513, -0.08643204718828201, -0.3883499503135681, 0.035900212824344635, 0.2446555197238922, -0.05545661598443985, -0.18279102444648743, -0.21353743970394135, 0.031188366934657097, -0.14739316701889038, -0.20394380390644073, -0.23503220081329346, -0.42946183681488037, 0.23417866230010986, 0.29076460003852844, 0.1009974330663681, -0.19116294384002686, 0.13354530930519104, 0.2601603865623474, -0.22242167592048645, -0.054310597479343414, 0.21305355429649353, -0.15551629662513733, -0.04098731279373169, -0.17345958948135376, 0.07898838818073273, 0.3097124993801117, 0.11850736290216446, 0.05235262215137482, 0.39571526646614075, 0.059750813990831375, -0.18368852138519287, 0.15888012945652008, 0.08250914514064789, -0.2589547634124756, 0.035966552793979645, 0.07261708378791809, 0.15064413845539093, -0.26035982370376587, -0.18743233382701874, 0.15516385436058044, 0.23001331090927124, -0.0931633710861206, 0.004772743210196495, -0.06144396960735321, -0.31329891085624695, -0.07267947494983673, -0.16920970380306244, -0.18248942494392395, -0.1570940911769867, 0.12434705346822739, -0.10186778008937836, -0.24699608981609344, 0.35201913118362427, 0.41022777557373047, 0.3474135398864746, 0.04914717376232147, -0.12264008074998856, -0.20792293548583984, -0.15874940156936646, -0.08047084510326385, 0.21110273897647858, -0.07059317082166672, -0.17127203941345215, 0.42521217465400696, -0.08800198882818222, 0.2596357464790344, -0.45528608560562134, -0.4662604033946991, 0.069040946662426, -0.16046009957790375, -0.27730607986450195, 0.5255892872810364, -0.06863649189472198, 0.3658676743507385, -0.02151128090918064, 0.15132437646389008, -0.08040396869182587, -0.06585793197154999, -0.24372607469558716, 0.11924009770154953, -0.07263508439064026, -0.4336877763271332, -0.19722723960876465, 0.045053981244564056, -0.3531734347343445, 0.05278958007693291, 0.05747678503394127, 0.0669659748673439, 0.10006585717201233, -0.019305702298879623, -0.05494067817926407, 0.08985622972249985, -0.09080679714679718, -0.2619887888431549, -0.15460051596164703, -0.14413602650165558, 0.004507861100137234, 0.06772084534168243, -0.09067261219024658, 0.026347070932388306, 0.18035155534744263, -0.05332115292549133, -0.22217218577861786, -0.40177884697914124, 0.06070268154144287, 0.3048778772354126, 0.05658320337533951, 0.1493476927280426, 0.2914145290851593, 0.18122944235801697, -0.3119855523109436, -0.1476791799068451, -0.24446506798267365, -0.26623669266700745, -0.34375813603401184, -0.09070087224245071, -0.11730309575796127, 0.08061796426773071, -0.14808069169521332, 0.3075064420700073, -0.31730812788009644, -0.3282977044582367, 0.10817138105630875, 0.006384870037436485, 0.4812379777431488, -0.06463197618722916, 0.04264354705810547, 0.15792623162269592, -0.06544598937034607, -0.03787631541490555, 0.12432640045881271, -0.1544429063796997, -0.1303672045469284, -0.061807334423065186, -0.2401646375656128, 0.15107661485671997, -0.08787327259778976, 0.04147486388683319, 0.03583675995469093, 0.2896975874900818, 0.05421852692961693, -0.05908004567027092, -0.19882553815841675, 0.2325129210948944, 0.23004305362701416, 0.20947648584842682, 0.1571100354194641, -0.13749928772449493, -0.2992528975009918, 0.14512288570404053, 0.07950931787490845, 0.3351038098335266, -0.03231919929385185, -0.07919801771640778, 0.0835544764995575, -0.4017052948474884, -0.016072407364845276, 0.01504567265510559, 0.48146843910217285, -0.2067641317844391, -0.028009139001369476, 0.12817592918872833, 0.024155236780643463, 0.07155771553516388, -0.21133211255073547, -0.24139997363090515, 0.09055996686220169, 0.16654692590236664, 0.5570240616798401, -0.01676565408706665, -0.23507080972194672, 0.3813025653362274, -0.2197476476430893, -0.08497047424316406, -0.06114024296402931, -0.21026726067066193, -0.042141515761613846, -0.2721727788448334, 0.36539846658706665, 0.10076326876878738, -0.3329194188117981, -0.01766454614698887, 0.03789694234728813, 0.1511297971010208, 0.017330411821603775, -0.17380164563655853, 0.27430281043052673, 0.04182438552379608, 0.12424898147583008, -0.23190569877624512, -0.32135382294654846, 0.10915045440196991, 0.030088573694229126, 0.2435126006603241, -0.108854278922081, -0.25670844316482544, 0.10023292899131775, -0.09709949046373367, 0.32221728563308716, 0.019659817218780518, 0.29265281558036804, 0.18486277759075165, -0.3919880986213684, 0.27270686626434326, -0.42713314294815063, 0.1090363934636116, -0.04529254138469696, -0.0352836437523365, -0.07320499420166016, -0.5252698659896851, 0.6969853043556213, 0.2542504072189331, -0.2287476509809494, -0.05707355588674545, 0.038401540368795395, -0.1972031593322754, 0.18667390942573547, 0.4775448739528656, 0.8549241423606873, 0.2966955006122589, 0.14084270596504211, -0.0271480493247509, -0.45114362239837646, 0.46674439311027527, -0.48333024978637695, 0.06477732956409454, -0.3892791271209717, -0.44085970520973206, -0.1444639414548874, -0.05134794861078262, 0.17234402894973755, -0.05027998238801956, -0.8465675711631775, -0.05861771106719971, -0.14757676422595978, -0.09707134962081909, 0.26113954186439514, 0.0584273636341095, -0.20234094560146332, -0.017769690603017807, 0.2700595557689667, 0.2623741626739502, -0.01716458797454834, 0.1524091362953186, -0.21894240379333496, 0.090207539498806, 0.26773175597190857, -0.22261641919612885, -0.23777282238006592, 0.013285297900438309, 0.23114249110221863, -0.038569651544094086, 0.3365398943424225, 0.04528927803039551, -0.03709910809993744, -0.2815491259098053, 0.3726083040237427, 0.20657885074615479, 0.20339536666870117, 0.36890077590942383, 0.234693706035614, 0.36128029227256775, 0.14198219776153564, -0.04799135401844978, 0.4358613193035126, 0.005578942596912384, -0.11247646063566208, 0.1402704417705536, -0.26673606038093567, -0.03959611803293228, -0.4022056460380554, 0.2935584783554077, 0.1669853925704956, -0.18832927942276, 0.13706298172473907, 0.2113334834575653, -0.17956595122814178, -0.16292856633663177, 0.22519856691360474, -0.1769493818283081, -0.07958069443702698, -0.05274396389722824, -0.053876202553510666, -0.4682025611400604, 0.05602683871984482, -0.015539079904556274, 0.106254443526268, -0.014269065111875534, 0.18232767283916473, -0.2254945933818817, 0.005681287497282028, -0.335361123085022, -0.08885692059993744, 0.12285631150007248, -0.282260000705719, 0.2369135320186615, 0.19886760413646698, -0.3369984030723572, 0.2413535863161087, 0.33869582414627075, -0.13293497264385223, 0.38901373744010925, -0.37608835101127625, -0.13765546679496765, -0.2910798192024231, -0.3118847608566284, -0.11959907412528992, 0.35157012939453125, 0.04378817230463028, 0.4197850227355957, 0.3109115660190582, 0.17594362795352936, -0.4575895071029663, -0.18478341400623322, -0.12499392777681351, 0.24010984599590302, 0.25704342126846313, 0.03380930796265602, -0.5062751173973083, 0.027620218694210052, 0.11270220577716827, 0.3318038582801819, -0.3171151280403137, -0.29503893852233887, -0.1545395702123642, 0.092049241065979, -0.00906655564904213, 0.05776029825210571, -0.27638670802116394, 0.41509461402893066, 0.09748397767543793, 0.05504661798477173, 0.19461342692375183, 0.02484413981437683, -0.18902866542339325, 0.34849637746810913, -0.17408603429794312, 0.20943337678909302, 0.12154227495193481, -0.23241400718688965, 0.13878008723258972, 0.06191651523113251, 0.004019846674054861, 0.04812699556350708, -0.4343946874141693, -0.03694659471511841, 0.292697012424469, 0.2823863923549652, 0.35706084966659546, 0.1095358207821846, 0.16634035110473633, 0.17247091233730316, 0.09760606288909912, -0.002629435621201992, 0.08319102227687836, 0.3912673592567444, -0.21741154789924622, -0.42152854800224304, 0.15481632947921753, 0.36072471737861633, -0.416858434677124, -0.180846706032753, -0.11374731361865997, 0.05663784593343735, 0.09118476510047913, 0.1376665234565735, 0.34945181012153625, 0.1782824993133545, 0.19980788230895996, 0.3315846025943756, 0.6247362494468689, -0.30465173721313477, 0.08219705522060394, 0.39146316051483154, -0.2618063986301422, -0.06794992089271545, 0.40215349197387695, 0.042163677513599396, 0.11646244674921036, 0.219232976436615, 0.3683570325374603, 0.5295324325561523, 0.2235296368598938, 0.11032305657863617, 0.03979568928480148, 0.00801444798707962, 0.29556846618652344, 0.18609210848808289, 0.1373547613620758, 0.2851877212524414, 0.338791161775589, -0.34172505140304565, 0.03920451179146767, -0.0688149482011795, 0.06483987718820572, 0.24681177735328674, 0.053145263344049454, -0.11316686868667603, -0.027936633676290512, -0.05321260914206505, -0.34111493825912476, -0.09473498165607452, 0.18704603612422943, 0.022147104144096375, 0.3638622760772705, -0.19894595444202423, -0.00840742141008377, 0.1747576743364334, -0.13613471388816833, -0.17511442303657532, 0.020738258957862854, -0.16492772102355957, -0.04554770886898041, 0.39111024141311646, -0.10207478702068329, 0.411113977432251, 0.1523798555135727, 0.17875108122825623, 0.23024368286132812, -0.09574750065803528, 0.2068297415971756, -0.4294948875904083, -0.05628421902656555, -0.21110419929027557, 0.07101746648550034, 0.03448152542114258, -0.10101671516895294, 0.02025860920548439, 0.25464874505996704, -0.25889816880226135, 0.3295692503452301, 0.11932031810283661, 0.03926215320825577, -0.24759532511234283, 0.20575875043869019, 0.4073547422885895, -0.3233971893787384, -0.027231458574533463, 0.16592083871364594, -0.3606506586074829, -0.3539043962955475, 0.31896543502807617, 0.005273620598018169, 0.1668248176574707, -0.14488273859024048, 0.15373501181602478, 0.3338325619697571, 0.6958657503128052, 0.35840004682540894, -0.1202673390507698, 0.022361746057868004, -0.4131596088409424, -0.39799410104751587, 0.19218726456165314, 0.21957732737064362, -0.48784300684928894, 0.05862235650420189, -0.26477906107902527, 0.16948628425598145, -0.07760711014270782, -0.09829024970531464, -0.19609110057353973, -0.05259516090154648, -0.25846320390701294, -0.2564014494419098, 0.05596170201897621, 0.00490889698266983, -0.04089854657649994, 0.26278379559516907, -0.0801372230052948, -0.14218999445438385, 0.17121663689613342, 0.3378607928752899, -0.16359646618366241, -0.023720920085906982, 0.0937134325504303, 0.20088078081607819, 0.4475662112236023, 0.12302634119987488, 0.09325389564037323, -0.16865813732147217, 0.19321651756763458, -0.2021489441394806, 0.13280460238456726, -0.4471171498298645, 0.11916640400886536, 0.14308419823646545, -0.10952973365783691, 0.0698353499174118, -0.09216275811195374, -0.19142252206802368, 0.025017641484737396, 0.16843456029891968, 0.19797873497009277, -0.4694269895553589, 0.1398342102766037, -0.14060895144939423, 0.08492210507392883, -0.18783381581306458, 0.1722252070903778, 0.156128391623497, 0.0942406877875328, -0.376487672328949, -0.35894277691841125, 0.604759156703949, 0.13112479448318481, -0.5352325439453125, -0.13866907358169556, 0.029166921973228455, -0.2625441551208496, -0.09501927345991135, -0.545793354511261, -0.12487781047821045, 0.2659490406513214, 0.027805093675851822, -0.4750639498233795, 0.0006094193086028099, 0.009178293868899345, -0.11974869668483734, -0.23430684208869934, 0.5519576668739319, 0.020644135773181915, -0.061954058706760406, -0.08521958440542221, -0.2645382583141327 ]
https://github.com/huggingface/datasets/pull/2087
Update metadata if dataset features are modified
@lhoestq Added a test. To verify that this change fixes the problem, replace: ``` !pip install datasets==1.5 ``` with: ``` !pip install git+https://github.com/mariosasko/datasets-1.git@update-metadata ``` in the first cell of the notebook that is attached to the linked issue. The CI failure is unrelated I think (building the docs locally doesn't throw an error).
This PR adds a decorator that updates the dataset metadata if a previously executed transform modifies its features. Fixes #2083
53
text: Update metadata if dataset features are modified This PR adds a decorator that updates the dataset metadata if a previously executed transform modifies its features. Fixes #2083 @lhoestq Added a test. To verify that this change fixes the problem, replace: ``` !pip install datasets==1.5 ``` with: ``` !pip install git+https://github.com/mariosasko/datasets-1.git@update-metadata ``` in the first cell of the notebook that is attached to the linked issue. The CI failure is unrelated I think (building the docs locally doesn't throw an error).
[ -0.45937564969062805, 0.16156542301177979, -0.10237415134906769, -0.12046150863170624, 0.15238678455352783, -0.18913140892982483, 0.14729410409927368, 0.31579726934432983, -0.23859161138534546, 0.14732612669467926, 0.3016856014728546, 0.42910903692245483, 0.007261088117957115, 0.41383105516433716, -0.11792711913585663, -0.050603389739990234, 0.02976515144109726, 0.27030372619628906, -0.18153589963912964, 0.01182161271572113, 0.022817030549049377, 0.16915127635002136, -0.1344614326953888, 0.03203100338578224, -0.09568241238594055, -0.016096865758299828, -0.001399260014295578, 0.052992284297943115, -0.38919493556022644, -0.3260718286037445, 0.23456208407878876, 0.2955802083015442, -0.12504760921001434, 0.3862054646015167, -0.00010099817154696211, 0.14020518958568573, 0.34142374992370605, -0.045060254633426666, -0.19327972829341888, -0.24879662692546844, -0.09024779498577118, -0.31308653950691223, -0.06643010675907135, -0.1747264862060547, -0.16375496983528137, 0.06602749973535538, -0.1304304450750351, 0.12514318525791168, 0.22776983678340912, 0.2902674376964569, 0.3545492887496948, 0.47287943959236145, 0.07906937599182129, -0.16554267704486847, 0.3088289201259613, 0.21785052120685577, -0.24893087148666382, -0.03465528413653374, 0.3086104989051819, 0.11441650986671448, 0.19366858899593353, 0.4316243827342987, -0.1939920336008072, 0.026887072250247, 0.26590657234191895, -0.07400865852832794, 0.11635633558034897, -0.3102762699127197, 0.30506476759910583, -0.23629823327064514, 0.6921507120132446, -0.2663438022136688, -0.17335352301597595, 0.07135706394910812, -0.011621586978435516, -0.17541146278381348, 0.31162795424461365, -0.10021423548460007, -0.08520150184631348, 0.028986338526010513, -0.24704453349113464, -0.15138506889343262, -0.06936255842447281, 0.026798129081726074, -0.020023390650749207, 0.2740778923034668, -0.15229424834251404, 0.06238001957535744, -0.16479359567165375, -0.20587390661239624, 0.17914263904094696, 0.104141466319561, -0.17055974900722504, 0.22616003453731537, 0.19726641476154327, -0.2291194647550583, 0.10030673444271088, 0.18669119477272034, -0.04066981002688408, 0.3026239275932312, -0.1454196721315384, 0.01799788698554039, -0.06436379998922348, 0.20028939843177795, 0.10773305594921112, 0.07851338386535645, 0.018835626542568207, 0.48208972811698914, 0.3387953042984009, 0.02986847795546055, 0.00713806226849556, -0.017020512372255325, 0.09368231892585754, -0.20640847086906433, 0.023926541209220886, 0.09410391002893448, 0.5084007382392883, -0.1639140248298645, -0.18735769391059875, 0.26359835267066956, 0.18164145946502686, 0.035746678709983826, -0.22567448019981384, 0.05588135868310928, 0.01207148376852274, -0.09081332385540009, 0.16370731592178345, -0.07619256526231766, -0.06490416824817657, 0.004057327285408974, -0.18476100265979767, -0.005791595205664635, -0.21881446242332458, -0.03860687464475632, 0.19852706789970398, -0.04482338950037956, 0.277751088142395, 0.08778051286935806, 0.23225580155849457, -0.052552152425050735, -0.023742249235510826, 0.1800374686717987, 0.043670620769262314, 0.7881810069084167, -0.14310067892074585, -0.0005196593701839447, 0.26827487349510193, -0.3452562093734741, -0.037454646080732346, 0.19116470217704773, -0.17389371991157532, -0.15568849444389343, -0.25916460156440735, 0.30397042632102966, 0.051500990986824036, -0.03247477114200592, -0.21881785988807678, -0.1618552953004837, 0.18964099884033203, -0.24098896980285645, 0.11571268737316132, -0.0866607204079628, 0.18438546359539032, -0.12004993855953217, 0.051128171384334564, 0.2565416395664215, -0.010446816682815552, -0.024175941944122314, -0.005120164714753628, -0.11234122514724731, -0.02196299284696579, 0.0065113864839077, -0.04132748022675514, 0.033836234360933304, -0.11091957986354828, -0.12960444390773773, 0.4691266417503357, -0.6637278199195862, -0.35745447874069214, 0.23007825016975403, -0.14974960684776306, -0.09983919560909271, -0.14932364225387573, 0.07294413447380066, 0.17826813459396362, -0.2563830614089966, -0.3001898229122162, -0.06567252427339554, -0.2652900815010071, 0.0651245266199112, -0.2835789918899536, -0.031175410374999046, -0.36902564764022827, 0.11889861524105072, 0.22813110053539276, 0.23065856099128723, 0.2612512707710266, 0.03385688364505768, 0.005677342414855957, 0.06583165377378464, 0.1622774600982666, 0.24687343835830688, 0.3732784390449524, 0.06553029268980026, 0.12957756221294403, -0.03227280080318451, -0.1677512228488922, 0.031386010348796844, 0.0702584907412529, 0.17294186353683472, -0.10639326274394989, -0.22716563940048218, -0.45285531878471375, -0.03643608093261719, -0.13728146255016327, -0.28765901923179626, 0.2909315824508667, 0.1622907668352127, -0.03844591975212097, -0.09224755316972733, -0.09531629085540771, 0.12364097684621811, -0.03304857015609741, 0.14367735385894775, -0.036369554698467255, 0.1331724375486374, -0.3460316061973572, -0.18611367046833038, -0.04041862487792969, -0.028803668916225433, 0.030493009835481644, -0.24870005249977112, -0.34146854281425476, 0.48179134726524353, -0.1898580938577652, 0.1012595072388649, -0.028618715703487396, 0.2348290979862213, 0.026660477742552757, -0.11776306480169296, -0.046242401003837585, 0.06849516928195953, 0.09095166623592377, 0.048061348497867584, -0.30663400888442993, -0.0672166645526886, -0.30073967576026917, -0.06240656226873398, 0.013950414955615997, 0.09991444647312164, 0.3499066233634949, -0.1404617428779602, -0.31580790877342224, -0.3098441958427429, -0.09073401987552643, 0.07059100270271301, 0.18789219856262207, -0.09305606037378311, -0.1765429526567459, 0.1138501837849617, 0.3074114918708801, 0.09952788054943085, -0.16913920640945435, 0.15954150259494781, 0.04035309702157974, 0.15965819358825684, 0.030749976634979248, 0.41866520047187805, 0.4218606948852539, 0.08038794994354248, -0.10801833868026733, 0.28720346093177795, 0.0604969747364521, -0.13252827525138855, 0.16089783608913422, 0.011314690113067627, -0.04934418201446533, 0.301546186208725, 0.15253520011901855, 0.24453946948051453, -0.2146182656288147, -0.06782349199056625, 0.07700388133525848, 0.3715624213218689, -0.1842501163482666, 0.11550212651491165, -0.0824585035443306, -0.15774357318878174, -0.010462108068168163, -0.2929486930370331, -0.11655260622501373, -0.2335834950208664, 0.14165568351745605, 0.06600132584571838, -0.11895425617694855, 0.4075903296470642, 0.23897624015808105, 0.08564050495624542, 0.07961605489253998, -0.07601051777601242, -0.1388821303844452, -0.17120906710624695, -0.11418769508600235, 0.14393779635429382, 0.11713472008705139, -0.058911871165037155, 0.3141113221645355, -0.3787972033023834, 0.2517644166946411, -0.5555462837219238, -0.575831949710846, 0.0648297518491745, -0.33947986364364624, 0.3384685516357422, 0.38681694865226746, 0.01728416234254837, 0.13835673034191132, -0.16740307211875916, 0.20083880424499512, -0.16958025097846985, -0.052574075758457184, -0.14223363995552063, 0.10266204178333282, -0.3391030728816986, -0.4262235760688782, -0.35445156693458557, -0.02381894178688526, -0.4010862112045288, 0.0008537024259567261, 0.11241878569126129, 0.06422939896583557, 0.3353848159313202, 0.09044570475816727, -0.14606645703315735, 0.07815580070018768, -0.07412239909172058, -0.1718316674232483, -0.3716667592525482, 0.016142550855875015, -0.2753278613090515, -0.357258141040802, 0.2106177806854248, 0.2771698236465454, 0.4684666097164154, 0.04044415429234505, -0.35217928886413574, -0.09632595628499985, -0.032983772456645966, 0.3055906891822815, -0.015037517994642258, 0.16432638466358185, 0.38734158873558044, 0.1559879183769226, -0.24375218152999878, -0.3283989131450653, -0.2249213010072708, -0.08566660434007645, -0.07048715651035309, 0.07120083272457123, -0.2856947183609009, 0.22436273097991943, -0.027259718626737595, 0.4545806050300598, 0.003990650177001953, -0.1727684885263443, 0.15394407510757446, 0.07100410014390945, 0.5653066635131836, -0.14014369249343872, -0.23867224156856537, 0.1330769807100296, -0.0031950175762176514, -0.09592000395059586, 0.4097248315811157, -0.016051385551691055, -0.22084157168865204, -0.17750272154808044, -0.05778798460960388, -0.08408328145742416, -0.27061694860458374, -0.1588113158941269, -0.10612386465072632, 0.4376274347305298, 0.24175137281417847, 0.01999640464782715, -0.34281912446022034, 0.06026355177164078, -0.03842238336801529, 0.4487849473953247, 0.04804264008998871, 0.025882508605718613, -0.10698815435171127, -0.12508393824100494, -0.03668264299631119, 0.18196266889572144, -0.08204729855060577, 0.13521981239318848, -0.1922522932291031, -0.1151876226067543, 0.0023491978645324707, -0.03674386814236641, -0.05031950771808624, -0.36604198813438416, -0.057328611612319946, 0.3215906322002411, 0.10147611796855927, -0.14697526395320892, -0.41856858134269714, -0.2036503553390503, 0.4089202284812927, 0.3241729736328125, 0.6931777000427246, 0.0006669908761978149, -0.28407108783721924, 0.5332311391830444, -0.1884658932685852, 0.12435680627822876, 0.08405506610870361, -0.17957568168640137, -0.3526966869831085, -0.3668058514595032, 0.2449294626712799, 0.15701092779636383, -0.27765774726867676, -0.14598894119262695, 0.06575775146484375, 0.038484424352645874, 0.17932751774787903, -0.15951840579509735, 0.20321275293827057, 0.11347879469394684, 0.09228892624378204, 0.05496111884713173, -0.2679852843284607, -0.016911886632442474, 0.35271504521369934, 0.4276750683784485, -0.03494860604405403, -0.22389304637908936, 0.02889923006296158, -0.3662335276603699, -0.005717195570468903, 0.07481035590171814, 0.0484984889626503, -0.10414547473192215, -0.09367284178733826, 0.20123928785324097, -0.14247560501098633, 0.12407208979129791, 0.07120953500270844, -0.03267477825284004, -0.09849247336387634, -0.19816333055496216, 0.3480720520019531, 0.1584562361240387, -0.14863872528076172, 0.18009637296199799, 0.03673853352665901, -0.10349296778440475, 0.17944039404392242, 0.28567928075790405, 0.688833475112915, 0.23098933696746826, -0.09050808846950531, -0.04000864177942276, -0.14966543018817902, 0.22172234952449799, -0.10797924548387527, -0.02238088846206665, -0.3504490256309509, -0.5003640055656433, -0.022370126098394394, 0.04096590355038643, 0.3278850018978119, -0.036147430539131165, -0.8346863389015198, 0.012749914079904556, -0.03384134918451309, 0.1042955070734024, 0.08232826739549637, -0.10366351902484894, -0.20775078237056732, -0.011630374938249588, 0.1662227362394333, 0.2951797544956207, -0.08249743282794952, 0.41108760237693787, -0.1955631971359253, 0.03893589600920677, -0.0557846836745739, -0.2642877399921417, -0.567742645740509, -0.09717243164777756, -0.05359450727701187, 0.007421490736305714, 0.1135733425617218, -0.07088223099708557, 0.10750740766525269, -0.036204513162374496, 0.5573999881744385, 0.4373730719089508, -0.13506248593330383, 0.30619749426841736, 0.16271154582500458, 0.0010898791952058673, -0.023419927805662155, 0.038818083703517914, 0.18780337274074554, -0.15020501613616943, -0.15735170245170593, -0.09135998040437698, -0.2656209468841553, -0.14234399795532227, -0.11833997070789337, 0.022094622254371643, 0.04686063528060913, -0.18890415132045746, 0.12585760653018951, -0.0035774558782577515, -0.17631427943706512, -0.2852926552295685, 0.2522895634174347, -0.2644329071044922, 0.07955143600702286, 0.29298412799835205, -0.04442960396409035, -0.3361232578754425, 0.055430974811315536, 0.03291342034935951, 0.018732968717813492, -0.16175979375839233, 0.22543832659721375, -0.12315134704113007, -0.09874269366264343, -0.3769483268260956, 0.026470370590686798, -0.22232744097709656, -0.1943867951631546, 0.17957603931427002, 0.09130267798900604, -0.12816038727760315, 0.3449682593345642, 0.6810042858123779, 0.02404136396944523, 0.12170971930027008, -0.16340814530849457, -0.21528072655200958, -0.3197033405303955, -0.00025294721126556396, -0.21406124532222748, 0.2547580897808075, 0.021110981702804565, 0.13627029955387115, 0.2952713966369629, 0.07040567696094513, -0.45369473099708557, 0.03420824557542801, -0.3929424583911896, 0.23016895353794098, 0.626989483833313, 0.02603985369205475, -0.15401732921600342, -0.09256391227245331, 0.05923329293727875, 0.01785896345973015, -0.183563694357872, -0.2906022369861603, -0.02737453021109104, 0.08133509755134583, 0.05711264908313751, 0.07142963260412216, 0.04297435283660889, 0.07107456773519516, -0.15714769065380096, -0.0663905143737793, 0.22523002326488495, 0.02302560955286026, -0.15756656229496002, 0.20914781093597412, -0.2248253971338272, 0.31698521971702576, 0.24273903667926788, -0.12461404502391815, 0.06965528428554535, 0.07458282262086868, -0.2257358282804489, 0.13501021265983582, -0.04009994864463806, -0.07116511464118958, 0.048147350549697876, 0.17138046026229858, 0.12446735054254532, 0.31613868474960327, 0.1709764450788498, -0.2254815250635147, 0.2893419563770294, 0.27731654047966003, 0.14740845561027527, 0.2014404982328415, -0.1183597669005394, -0.27358725666999817, 0.24095192551612854, 0.37061095237731934, -0.29956895112991333, -0.21594485640525818, -0.03726827725768089, 0.018452385440468788, 0.025952067226171494, 0.07066866755485535, 0.37106895446777344, -0.21772146224975586, 0.20689719915390015, 0.4493597149848938, 0.5479558110237122, -0.341935932636261, 0.23640644550323486, 0.385685533285141, -0.12593266367912292, 0.04330603778362274, 0.061477236449718475, -0.1622803956270218, -0.037925295531749725, 0.4082986116409302, -0.006159499287605286, 0.2940671145915985, 0.3349389433860779, 0.015562493354082108, -0.04276258498430252, -0.19148854911327362, 0.2799723446369171, -0.21921780705451965, 0.08048980683088303, 0.1266005039215088, 0.32668840885162354, -0.22488650679588318, -0.17495635151863098, -0.03878597170114517, -0.27787095308303833, 0.17417697608470917, -0.15911421179771423, -0.0301378071308136, -0.1482921987771988, -0.11954072117805481, -0.06063199043273926, -0.011392440646886826, -0.08021235466003418, 0.4236527681350708, 0.4082736670970917, 0.04877307265996933, -0.05938981473445892, -0.1670207381248474, -0.14561939239501953, -0.04540577530860901, -0.0813886746764183, -0.1097162663936615, 0.2964978814125061, 0.1313847452402115, -0.1873999834060669, 0.027724571526050568, 0.4445698857307434, 0.5535106658935547, 0.3633720576763153, 0.08760321140289307, 0.08798510581254959, -0.37991753220558167, -0.039880361407995224, -0.1028703823685646, 0.2298620343208313, -0.06046892702579498, 0.09493974596261978, -0.03325125575065613, 0.2513781487941742, -0.2065611481666565, 0.12737368047237396, -0.2233877032995224, -0.11913420259952545, -0.2355669140815735, 0.038064468652009964, 0.1342659890651703, -0.17556989192962646, -0.06852385401725769, 0.2052152156829834, -0.22132635116577148, -0.10543309152126312, 0.3618178069591522, 0.2764008939266205, 0.12261662632226944, -0.2735151946544647, 0.17950552701950073, 0.1363428831100464, 0.65754234790802, 0.4782157242298126, -0.09101151674985886, -0.013553944416344166, -0.4173193573951721, -0.4876346290111542, 0.14216746389865875, 0.02958868071436882, -0.18799707293510437, 0.09387876093387604, -0.09347611665725708, 0.045453231781721115, -0.007496032863855362, 0.1903742551803589, -0.4133397936820984, 0.09325309097766876, -0.12491084635257721, -0.3592887818813324, 0.001986190676689148, 0.0024853646755218506, -0.2196655124425888, 0.13628435134887695, -0.28150200843811035, 0.009545225650072098, -0.007461879402399063, 0.26518407464027405, -0.15454550087451935, -0.11050533503293991, 0.27628862857818604, 0.05000314861536026, 0.36670589447021484, 0.23324032127857208, 0.1180770993232727, -0.10278134793043137, -0.13912168145179749, -0.47039908170700073, -0.16826486587524414, -0.3267257809638977, 0.30975037813186646, 0.019638963043689728, 0.20996548235416412, -0.08376758545637131, -0.010634306818246841, -0.3488616943359375, -0.13018977642059326, -0.022043226286768913, 0.1411736011505127, -0.1402692347764969, 0.07571541517972946, -0.041761256754398346, 0.15152908861637115, -0.03962752968072891, 0.22123640775680542, 0.0019709616899490356, 0.32619258761405945, -0.35242998600006104, -0.5260903835296631, 0.6456354856491089, -0.04093855991959572, -0.4941186010837555, -0.13128288090229034, -0.00014740973711013794, -0.2156902253627777, -0.18360751867294312, -0.3647763431072235, 0.003730855882167816, 0.14162251353263855, 0.08336643874645233, -0.430316686630249, 0.14679846167564392, 0.015581728890538216, 0.006364017724990845, -0.08989490568637848, 0.6580679416656494, -0.04117502272129059, -0.09083473682403564, -0.04607320949435234, -0.14020982384681702 ]
https://github.com/huggingface/datasets/pull/2086
change user permissions to -rw-r--r--
I tried this with `ade_corpus_v2` dataset. `ade_corpus_v2-train.arrow` (downloaded dataset) and `cache-25d41a4d3c2d8a25.arrow` (ran a mapping function on the dataset) both had file permission with octal value of `0644`.
Fix for #2065
27
text: change user permissions to -rw-r--r-- Fix for #2065 I tried this with `ade_corpus_v2` dataset. `ade_corpus_v2-train.arrow` (downloaded dataset) and `cache-25d41a4d3c2d8a25.arrow` (ran a mapping function on the dataset) both had file permission with octal value of `0644`.
[ -0.209206685423851, 0.16743925213813782, -0.12597502768039703, -0.1134888231754303, 0.026288561522960663, 0.04258771240711212, 0.26792222261428833, 0.4292735755443573, 0.017584364861249924, 0.20771244168281555, -0.1483602076768875, 0.23405109345912933, -0.053209371864795685, -0.3172106444835663, -0.16401943564414978, -0.061133936047554016, -0.0876581147313118, 0.2930141091346741, -0.19217440485954285, -0.09408052265644073, -0.2973375618457794, -0.02993241511285305, -0.027497801929712296, -0.02848827838897705, -0.08994375914335251, -0.10376381129026413, 0.2706947326660156, 0.14780506491661072, -0.135135218501091, -0.23630137741565704, 0.18714436888694763, 0.07091423869132996, 0.23627951741218567, 0.17944180965423584, -0.0001046885154210031, 0.059091657400131226, 0.10882942378520966, 0.0709633007645607, -0.0033086249604821205, 0.07363422214984894, 0.04846472293138504, -0.002078242599964142, 0.00579958688467741, -0.22387447953224182, -0.2118675708770752, 0.0037151039578020573, 0.3187422454357147, -0.4246711730957031, 0.4710060954093933, 0.5586742758750916, 0.3203645646572113, -0.04230279102921486, 0.17080560326576233, -0.058025360107421875, 0.40460994839668274, -0.13369445502758026, -0.22393889725208282, 0.10561659932136536, 0.20323637127876282, 0.0744352713227272, -0.00804072618484497, 0.391305536031723, 0.07019037753343582, 0.26474815607070923, -0.02038521319627762, -0.26324522495269775, 0.3041399121284485, -0.3628773093223572, 0.3759574890136719, 0.061884649097919464, 0.613021731376648, -0.025561876595020294, -0.11727887392044067, 0.13876166939735413, 0.09729845076799393, -0.09521734714508057, 0.40374454855918884, 0.20217767357826233, 0.045054640620946884, 0.09262829273939133, 0.09290002286434174, -0.1486404538154602, -0.2491742968559265, 0.01969323679804802, -0.08646262437105179, 0.22865049540996552, -0.08152756094932556, -0.0797903761267662, 0.11358553171157837, -0.28939175605773926, 0.04129000008106232, 0.46359944343566895, -0.19285456836223602, 0.29391857981681824, 0.07298815250396729, 0.12780940532684326, -0.2962036430835724, -0.2966090142726898, -0.15904980897903442, 0.18412034213542938, 0.413166344165802, 0.22288569808006287, 0.022015735507011414, 0.13954561948776245, -0.15385712683200836, 0.21392224729061127, 0.24945053458213806, 0.4191426932811737, 0.29514080286026, 0.05950145050883293, -0.241680309176445, -0.025520484894514084, -0.33022040128707886, -0.6432763934135437, -0.1059204638004303, 0.12881863117218018, 0.1563669890165329, -0.33763062953948975, -0.030052579939365387, 0.004336431156843901, -0.12191864848136902, 0.09136001020669937, -0.08323393762111664, 0.41537344455718994, 0.06666333973407745, -0.334984689950943, 0.2675188183784485, 0.028230182826519012, -0.05139792710542679, -0.09266763925552368, -0.1833592653274536, -0.09618581831455231, -0.32994964718818665, -0.17333051562309265, 0.33248183131217957, -0.07046675682067871, 0.24304336309432983, -0.2119668871164322, -0.048554807901382446, -0.039690036326646805, 0.39962854981422424, -0.011556887999176979, 0.3732113540172577, 0.47630074620246887, 0.10520198941230774, 0.2177225947380066, 0.10205943137407303, -0.07628390192985535, -0.048487454652786255, 0.21316540241241455, -0.2469741702079773, -0.25798508524894714, -0.3420710861682892, 0.2491840273141861, 0.06811905652284622, -0.0570143461227417, 0.02716677635908127, -0.16255879402160645, 0.20240867137908936, -0.1581699699163437, 0.34715092182159424, 0.03638814017176628, -0.1904023438692093, -0.15930968523025513, -0.037239186465740204, 0.11856560409069061, -0.31338441371917725, -0.026912622153759003, -0.14649131894111633, -0.012677088379859924, 0.04501119256019592, 0.1279972344636917, -0.14288970828056335, -0.14926335215568542, -0.12278185784816742, 0.28480303287506104, 0.5738137364387512, -0.5079776048660278, -0.5107221007347107, 0.06272246688604355, -0.072425477206707, -0.2949889600276947, 0.11467587947845459, -0.1375860571861267, 0.290797621011734, -0.25277018547058105, -0.15224824845790863, 0.11913857609033585, 0.43505510687828064, 0.1716078370809555, -0.1416700780391693, -0.11370910704135895, -0.16113921999931335, 0.08748975396156311, 0.25103363394737244, 0.028555959463119507, 0.30190566182136536, -0.20428811013698578, 0.3141558766365051, -0.12611019611358643, 0.2753005027770996, 0.3048233985900879, 0.322712779045105, -0.11519533395767212, 0.2099507600069046, -0.11881115287542343, -0.012984566390514374, 0.15202325582504272, -0.2452060878276825, 0.0029573626816272736, 0.0685577541589737, -0.20309138298034668, -0.27657318115234375, -0.21035806834697723, -0.39471912384033203, -0.20339740812778473, 0.24631714820861816, -0.010925933718681335, 0.014688163995742798, -0.07787585258483887, 0.019985724240541458, -0.1348266452550888, -0.1620660424232483, 0.11472170799970627, -0.05202512815594673, 0.003743145614862442, -0.09440046548843384, -0.1283353567123413, -0.06990780681371689, -0.13352346420288086, 0.1858314573764801, -0.10437554866075516, -0.2624097168445587, 0.20584270358085632, -0.1791113317012787, 0.07878120243549347, -0.2909183204174042, 0.3959764838218689, -0.09547681361436844, -0.218014195561409, 0.10398528724908829, 0.1268608272075653, -0.03873172402381897, 0.10616979748010635, -0.1937594711780548, 0.053757913410663605, 0.1799549013376236, -0.10374873131513596, -0.0308452807366848, 0.22200557589530945, 0.27685096859931946, -0.11046095192432404, 0.0188922006636858, -0.3029858469963074, 0.17742663621902466, 0.003675272688269615, 0.11927001178264618, -0.009208904579281807, 0.1431836634874344, 0.018361546099185944, 0.26793402433395386, 0.40293481945991516, 0.14595559239387512, -0.05010435730218887, -0.2546194791793823, 0.14018994569778442, 0.2748096287250519, 0.5709865689277649, 0.040776968002319336, 0.21438167989253998, 0.3843737542629242, 0.02506018616259098, 0.10900513082742691, -0.14760349690914154, 0.16179022192955017, -0.2217477411031723, 0.26963284611701965, 0.14067210257053375, -0.02120036631822586, -0.05173484608530998, -0.5311481952667236, 0.11555019021034241, 0.2260926067829132, 0.2885045111179352, -0.12537595629692078, -0.20990343391895294, -0.158498615026474, -0.2357437014579773, 0.033924650400877, -0.009381410665810108, -0.05888325348496437, 0.016616882756352425, 0.12716969847679138, 0.22075589001178741, -0.29983437061309814, 0.39429980516433716, -0.43583622574806213, -0.0015377551317214966, 0.052002228796482086, -0.07478637993335724, -0.19621822237968445, 0.20368291437625885, -0.1655292510986328, 0.1968730092048645, 0.2840098440647125, -0.04843692481517792, 0.07100707292556763, -0.010923687368631363, 0.40034323930740356, -0.32133254408836365, -0.23569121956825256, -0.002391267567873001, 0.2076113522052765, -0.04472307860851288, -0.10394088923931122, -0.0658864825963974, -0.07208260148763657, -0.24277059733867645, -0.06318699568510056, -0.18321993947029114, -0.24929559230804443, -0.11807923763990402, -0.02531256340444088, 0.0261350329965353, -0.31929436326026917, -0.30012303590774536, 0.017811357975006104, -0.5208773016929626, 0.10664665699005127, 0.29710909724235535, 0.3275420069694519, 0.3779585063457489, -0.026100724935531616, 0.09734366834163666, 0.039774127304553986, 0.2765378952026367, -0.31563034653663635, -0.06307201832532883, 0.3195008337497711, -0.650757372379303, -0.3841778337955475, 0.13271676003932953, 0.04329735040664673, 0.21911874413490295, 0.42153066396713257, -0.16658419370651245, -0.09489818662405014, -0.38403618335723877, -0.1696842759847641, -0.17951370775699615, 0.04209475219249725, 0.4488518536090851, 0.12692520022392273, -0.18280604481697083, -0.01819111965596676, 0.02784610167145729, 0.37907058000564575, 0.057762786746025085, -0.1252792775630951, -0.2564924657344818, 0.1702461540699005, 0.05435371771454811, 0.29287341237068176, 0.11562162637710571, 0.0975552424788475, 0.46575599908828735, 0.007526688277721405, 0.38222089409828186, -0.15173664689064026, -0.015871718525886536, 0.1653490960597992, 0.23365278542041779, 0.07857631891965866, 0.3150091767311096, 0.06802713125944138, -0.4457922875881195, 0.0810093879699707, -0.21553577482700348, -0.3290869891643524, -0.3999461829662323, 0.09382440149784088, -0.3688153326511383, 0.18196651339530945, 0.05617715045809746, 0.1913340985774994, -0.2871720492839813, -0.23257121443748474, 0.1997203677892685, 0.0675397738814354, 0.059108734130859375, 0.026411231607198715, -0.2163047194480896, 0.146441251039505, -0.3340841829776764, 0.44419270753860474, -0.13683299720287323, 0.3825865685939789, -0.3294658064842224, -0.2163994312286377, 0.14326855540275574, -0.0042623612098395824, 0.547831118106842, -0.5722942352294922, 0.37226229906082153, 0.08572763204574585, 0.2438541054725647, 0.00950736366212368, -0.16621874272823334, -0.04762984439730644, 0.4702411890029907, -0.03550989553332329, 0.2478526383638382, 0.04343339055776596, 0.026218682527542114, 0.0010774936527013779, -0.5398302674293518, -0.08610953390598297, -0.10571286827325821, -0.09966182708740234, -0.03383564203977585, -0.29564663767814636, 0.000647909939289093, 0.3314005732536316, 0.011768929660320282, 0.01755259931087494, -0.04876461625099182, -0.3816363215446472, 0.039229653775691986, 0.1330842822790146, 0.16638340055942535, 0.283699631690979, 0.22228361666202545, -0.01271626353263855, 0.37255164980888367, 0.05730525031685829, 0.17814894020557404, 0.3426321744918823, -0.31512758135795593, -0.09884758293628693, -0.004172408953309059, -0.30512329936027527, 0.19964610040187836, 0.17537403106689453, 0.022164225578308105, -0.11031515151262283, -0.0038949698209762573, -0.24756143987178802, 0.04713317006826401, 0.17216119170188904, 0.16965550184249878, 0.06256113946437836, -0.11762632429599762, -0.4331529438495636, 0.22787347435951233, 0.24205000698566437, -0.2142469882965088, 0.2887879014015198, 0.20355312526226044, -0.3008728623390198, 0.23802800476551056, 0.2233797311782837, 0.7620226740837097, -0.19890637695789337, 0.05644184350967407, -0.1646430790424347, -0.10862854868173599, 0.38593533635139465, -0.09593828022480011, 0.1473800241947174, -0.2745414078235626, -0.3898193836212158, -0.0022903382778167725, -0.06050553917884827, 0.03146471828222275, 0.2140827476978302, -0.015798982232809067, -0.044648487120866776, -0.130830779671669, -0.05767468735575676, -0.14823727309703827, -0.0342707596719265, -0.20497238636016846, -0.09759955108165741, -0.009417159482836723, 0.25844281911849976, -0.0240563303232193, 0.21175119280815125, -0.10036369413137436, -0.1404942125082016, 0.09642916917800903, -0.15784411132335663, -0.179221972823143, 0.24008122086524963, -0.3080664873123169, 0.09466142952442169, 0.07409001886844635, -0.1390441507101059, 0.19605134427547455, 0.20847515761852264, 0.3885117173194885, 0.15043042600154877, -0.13243570923805237, 0.2133074551820755, 0.42449307441711426, -0.30905184149742126, -0.003838910022750497, 0.14750252664089203, 0.4329291582107544, -0.22290420532226562, 0.11843746155500412, 0.06647346168756485, 0.025348510593175888, -0.3219047784805298, 0.21580827236175537, 0.08333341777324677, 0.0770634263753891, -0.07221392542123795, -0.09640710055828094, -0.05757761001586914, -0.31460145115852356, -0.13286183774471283, 0.21040721237659454, -0.1630084216594696, -0.15866175293922424, 0.034990280866622925, 0.20450690388679504, -0.3551563620567322, 0.2585042417049408, 0.3968007564544678, -0.11371231824159622, -0.18224208056926727, 0.639126181602478, -0.036172054708004, -0.12798945605754852, -0.3281036913394928, -0.28702953457832336, 0.2965030372142792, -0.5518084764480591, 0.10430333763360977, 0.1526212841272354, -0.2752111554145813, 0.3218502402305603, 0.2661581039428711, 0.0444415882229805, 0.0992400273680687, -0.02886965312063694, -0.15963296592235565, -0.4640039801597595, 0.0076665133237838745, -0.3486308455467224, 0.21735064685344696, -0.3272415101528168, -0.3380783796310425, 0.1395864188671112, -0.12600316107273102, -0.3979600965976715, 0.21162594854831696, -0.1559581756591797, -0.05833445489406586, -0.11772651970386505, -0.12084045261144638, 0.04321283847093582, 0.005721350200474262, 0.08369571715593338, 0.23166963458061218, -0.4048663377761841, -0.3214011788368225, -0.16576838493347168, 0.10650067031383514, 0.019280046224594116, -0.1811000257730484, 0.12377560883760452, -0.4072135090827942, -0.24593347311019897, -0.08470799773931503, -0.053600382059812546, 0.14520174264907837, 0.09127959609031677, 0.14435544610023499, 0.16620440781116486, 0.08866938948631287, 0.10403023660182953, 0.16059806942939758, -0.16227230429649353, -0.09943561255931854, -0.33339962363243103, 0.11374539136886597, -0.3165845274925232, -0.030735302716493607, 0.14632022380828857, -0.015456050634384155, 0.11395459622144699, -0.026394885033369064, -0.022658921778202057, -0.20857258141040802, -0.012013193219900131, 0.1126374825835228, 0.3431818187236786, 0.026341482996940613, -0.16122321784496307, -0.04848086088895798, 0.23292693495750427, 0.36469975113868713, -0.31533440947532654, -0.00777417654171586, 0.006371119059622288, -0.09695372730493546, 0.19354163110256195, -0.03177814930677414, 0.17470905184745789, -0.317646861076355, 0.15486711263656616, 0.29880693554878235, 0.0775979682803154, -0.5534217953681946, 0.1493307501077652, 0.04758371412754059, -0.23508621752262115, -0.1597101390361786, 0.4264248311519623, 0.27377840876579285, 0.24553605914115906, 0.3212140202522278, -0.0494125559926033, 0.10136532038450241, 0.4899200201034546, -0.06623157858848572, 0.2725316286087036, -0.37867471575737, 0.06399989873170853, 0.3272688686847687, 0.2004309743642807, 0.3902908265590668, 0.3038162589073181, 0.2875521779060364, 0.05995508283376694, -0.0368446484208107, -0.3283582329750061, -0.18360695242881775, -0.23614925146102905, -0.043685898184776306, -0.305015504360199, -0.0847146287560463, -0.13845744729042053, -0.2030562311410904, -0.3398239314556122, 0.07165811955928802, 0.08953595906496048, 0.047121547162532806, -0.08774401247501373, -0.021588118746876717, -0.02693219482898712, 0.04788808524608612, 0.1087862104177475, -0.27829721570014954, 0.23461131751537323, -0.1657334417104721, -0.13105922937393188, 0.33525392413139343, 0.3344947397708893, 0.24619364738464355, 0.14517603814601898, 0.02940627932548523, 0.20146720111370087, 0.12427093088626862, -0.1069290041923523, -0.3675956428050995, 0.42877528071403503, 0.4369833171367645, 0.0977773517370224, 0.11914634704589844, 0.16213640570640564, -0.2681899666786194, 0.19874361157417297, -0.3724394738674164, 0.2565007507801056, 0.2554539144039154, -0.07996634393930435, -0.15443971753120422, -0.312420129776001, -0.1230512410402298, -0.26148083806037903, -0.13108766078948975, -0.01464934553951025, 0.2705680727958679, -0.11807648837566376, 0.05759526044130325, -0.3444229066371918, 0.11890999972820282, 0.18095216155052185, 0.19039230048656464, 0.3181960880756378, 0.1886366903781891, 0.010690839029848576, -0.22077937424182892, -0.7117826342582703, 0.3553776741027832, -0.012547079473733902, 0.08639790862798691, 0.09350333362817764, -0.03779733553528786, 0.26858818531036377, -0.1809302717447281, 0.3237009644508362, 0.02917838655412197, -0.002316380850970745, 0.174529030919075, -0.2860581576824188, 0.07250545173883438, 0.37231242656707764, 0.00997193157672882, 0.239238440990448, -0.5715205669403076, 0.001631762832403183, -0.02193770557641983, 0.18164563179016113, -0.07381671667098999, -0.14254748821258545, 0.053586963564157486, 0.2551257610321045, 0.5138869285583496, 0.09039527922868729, 0.12194468080997467, -0.22963091731071472, 0.08582504093647003, -0.45010286569595337, -0.034005437046289444, -0.27399367094039917, -0.07620742172002792, 0.15415294468402863, 0.26125964522361755, -0.18413420021533966, 0.19250550866127014, -0.11586862802505493, -0.010902950540184975, -0.16832686960697174, 0.2897636890411377, -0.24965885281562805, 0.20178095996379852, -0.04844071716070175, -0.07569710910320282, 0.0974547266960144, 0.08346803486347198, 0.14353960752487183, -0.23348549008369446, -0.4137635827064514, -0.5524231791496277, 0.605319619178772, -0.5554399490356445, -0.35466262698173523, 0.17150457203388214, 0.46350517868995667, 0.36530637741088867, -0.18301783502101898, -0.3712697923183441, 0.2098957598209381, 0.16507287323474884, -0.13791468739509583, -0.21953095495700836, -0.01219087839126587, -0.23449739813804626, 0.09659130871295929, -0.1288696825504303, 0.6798324584960938, 0.2852405905723572, -0.11499323695898056, -0.3031929135322571, -0.4579053521156311 ]
https://github.com/huggingface/datasets/pull/2074
Fix size categories in YAML Tags
> It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. We can also update the task lists here: https://github.com/huggingface/datasets-tagging/blob/main/task_set.json
This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too.
53
text: Fix size categories in YAML Tags This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too. > It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. We can also update the task lists here: https://github.com/huggingface/datasets-tagging/blob/main/task_set.json
[ 0.13570840656757355, -0.16369587182998657, -0.16992522776126862, 0.06400378793478012, 0.5627598762512207, 0.04084876924753189, 0.2803543508052826, 0.13068334758281708, -0.20304599404335022, -0.05140462517738342, 0.20192950963974, -0.34266817569732666, 0.002866317518055439, 0.5861956477165222, 0.11881574243307114, -0.059470854699611664, 0.05964416638016701, 0.08426179736852646, 0.017957236617803574, -0.046733129769563675, -0.035164687782526016, -0.05400608479976654, 0.25452709197998047, -0.06006850302219391, 0.0033751262817531824, 0.050553012639284134, -0.2007070928812027, 0.12323832511901855, -0.519839882850647, -0.5176283717155457, 0.07608918845653534, 0.08216969668865204, -0.007380892522633076, -0.15343260765075684, -0.00011226798233110458, -0.17836102843284607, 0.15237383544445038, -0.3539685904979706, -0.02261146903038025, -0.038056790828704834, 0.13543978333473206, -0.43869611620903015, -0.026425672695040703, 0.04097897559404373, 0.16240927577018738, -0.326404869556427, -0.2537377178668976, -0.2460063397884369, 0.13663740456104279, 0.26708197593688965, 0.1636194884777069, -0.2485186904668808, 0.24672336876392365, 0.05968775972723961, 0.2871354818344116, 0.2899057865142822, -0.17455868422985077, 0.10791362822055817, 0.5678572654724121, 0.16050976514816284, 0.13568611443042755, 0.6227396726608276, 0.08356068283319473, 0.08530634641647339, 0.4848502278327942, -0.1703285127878189, 0.3938594162464142, -0.5893052816390991, 0.12935809791088104, 0.06536161154508591, 0.38776764273643494, -0.292283296585083, -0.3396238684654236, -0.5900073051452637, -0.2571059763431549, -0.5815608501434326, -0.09903372079133987, 0.5329484939575195, -0.07993808388710022, -0.007656484842300415, -0.017493361607193947, -0.11847393959760666, -0.10652767866849899, -0.02869708091020584, 0.21567592024803162, 0.3719518184661865, 0.13469862937927246, -0.0340515673160553, -0.017476048320531845, 0.0057360827922821045, 0.1745864599943161, 0.09221512824296951, -0.31566232442855835, 0.14141348004341125, -0.019086744636297226, 0.1325961798429489, 0.1290481835603714, 0.12529000639915466, 0.3937523365020752, -0.16377320885658264, 0.21403053402900696, 0.06012335419654846, 0.10428301990032196, -0.1372600495815277, 0.17568643391132355, 0.3827287554740906, 0.17140960693359375, 0.23533810675144196, -0.2524731159210205, 0.014566263183951378, 0.3543398976325989, 0.019020242616534233, -0.022821318358182907, -0.252491295337677, -0.03799590468406677, 0.16822174191474915, 0.08811808377504349, -0.07595108449459076, -0.19783605635166168, 0.1224035993218422, -0.5353314876556396, 0.01341010071337223, 0.03025033324956894, 0.3057418763637543, 0.0020791771821677685, 0.35420241951942444, 0.05461768060922623, 0.18670547008514404, 0.08529964834451675, -0.04383617639541626, -0.14011001586914062, -0.05027099326252937, -0.08989681303501129, 0.007779779378324747, 0.019613116979599, -0.1432381123304367, 0.27683091163635254, 0.04216167330741882, -0.19920499622821808, 0.031328700482845306, -0.0830976814031601, 0.23462772369384766, 0.06392769515514374, 0.2781766653060913, -0.17551478743553162, -0.16125628352165222, 0.18309076130390167, -0.07604260742664337, -0.08046071231365204, 0.3820238709449768, -0.3187418282032013, -0.284432977437973, -0.30619898438453674, 0.29303810000419617, -0.06239867955446243, 0.12673375010490417, -0.1273055374622345, 0.39027348160743713, 0.2863270342350006, 0.09151971340179443, 0.30455970764160156, -0.212736114859581, 0.3153548538684845, -0.04639974981546402, -0.1035638228058815, 0.03258929401636124, -0.1303795427083969, -0.3552324175834656, -0.14436666667461395, 0.2048366218805313, 0.46423155069351196, -0.06376151740550995, 0.0031982518266886473, 0.06445324420928955, 0.0081715676933527, 0.2035025805234909, 0.55058354139328, -0.37293487787246704, -0.4173748195171356, -0.058578141033649445, 0.21373040974140167, 0.07193920761346817, 0.23912322521209717, -0.0878986269235611, 0.34822744131088257, 0.19300201535224915, -0.07503515481948853, -0.1761304885149002, -0.2910340428352356, 0.05455388128757477, -0.42734935879707336, 0.07168504595756531, 0.04897178336977959, 0.03453182429075241, 0.278259813785553, -0.09086117893457413, 0.21043714880943298, 0.31474366784095764, 0.43799886107444763, -0.16335391998291016, 0.3049815893173218, 0.09901602566242218, 0.16423732042312622, 0.17798738181591034, 0.2975245416164398, 0.07023129612207413, -0.06839650124311447, 0.08687133342027664, -0.1642005741596222, 0.1942301243543625, 0.05075659230351448, -0.2097935825586319, -0.2996067702770233, -0.09042234718799591, -0.052042681723833084, -0.5454548597335815, 0.10248909890651703, -0.03284414857625961, -0.007144106552004814, -0.015244442969560623, -0.057939134538173676, 0.5133849382400513, -0.20134401321411133, 0.24095869064331055, 0.27971479296684265, 0.09694333374500275, -0.07557034492492676, -0.10045287013053894, 0.08075582981109619, 0.3464769721031189, -0.0018279291689395905, -0.0023142832797020674, -0.25137728452682495, 0.2371577024459839, -0.16494308412075043, -0.2023334950208664, -0.09639858454465866, 0.31229954957962036, 0.4280649721622467, 0.20084801316261292, -0.0386260449886322, 0.11380349099636078, 0.1748931109905243, 0.08538248389959335, -0.24588656425476074, 0.2142537236213684, -0.24233822524547577, 0.11081559211015701, 0.04701421409845352, 0.050600893795490265, 0.25451165437698364, 0.2363370656967163, -0.3429230749607086, -0.1774715632200241, 0.2872522175312042, -0.4143451154232025, 0.016935065388679504, -0.08801260590553284, -0.009677864611148834, 0.49110254645347595, 0.4572601914405823, -0.09124112129211426, 0.007837332785129547, 0.3161756992340088, -0.2409672737121582, -0.09626972675323486, 0.16865910589694977, 0.21623297035694122, 0.27836722135543823, 0.30674535036087036, -0.25280308723449707, 0.00457332469522953, 0.3315083086490631, -0.17089802026748657, 0.30518513917922974, 0.24363701045513153, -0.15056143701076508, 0.231205016374588, 0.5651274919509888, -0.09284227341413498, -0.27032899856567383, -0.10679358243942261, -0.19912774860858917, 0.21212854981422424, -0.19865307211875916, 0.12970119714736938, -0.016244802623987198, -0.1855059564113617, 0.11292219161987305, -0.5710452795028687, -0.23269131779670715, -0.3120012581348419, 0.2872777581214905, -0.0020894184708595276, -0.07376856356859207, -0.023826254531741142, -0.07339055836200714, 0.0673021674156189, 0.2123124748468399, 0.3172897398471832, -0.26193052530288696, -0.15279246866703033, -0.1040005311369896, 0.12895728647708893, -0.213138148188591, -0.30538463592529297, 0.3584492802619934, -0.2988921105861664, 0.19389645755290985, -0.11924955993890762, -0.6878717541694641, 0.06544241309165955, -0.10117995738983154, 0.21840399503707886, -0.0225914865732193, 0.05234973877668381, -0.11017534881830215, -0.039990875869989395, 0.10818956792354584, 0.3521837294101715, -0.24709443747997284, -0.13692888617515564, -0.07604120671749115, 0.05317604914307594, -0.41766083240509033, -0.3844151794910431, -0.4394811689853668, -0.41286566853523254, 0.33042585849761963, 0.2425500899553299, 0.1517217457294464, 0.2678951621055603, -0.1615304797887802, -0.04920896142721176, 0.20713339745998383, 0.021764099597930908, -0.13181346654891968, 0.1854735016822815, 0.24271506071090698, -0.10025648772716522, -0.22081749141216278, -0.009527895599603653, -0.191294863820076, -0.09006147086620331, -0.0006653890013694763, -0.24210800230503082, 0.08477555960416794, 0.11774688959121704, -0.18359139561653137, 0.0025946348905563354, -0.21269449591636658, 0.39624178409576416, 0.25606149435043335, -0.006475048139691353, -0.1951999068260193, 0.15729592740535736, -0.09743773192167282, 0.1756283938884735, 0.3484587073326111, -0.28361767530441284, 0.19787180423736572, 0.15488474071025848, 0.3711366653442383, -0.15502114593982697, -0.06711134314537048, 0.3850499987602234, 0.16780751943588257, 0.10211611539125443, -0.12167046219110489, -0.3813041150569916, 0.3549632132053375, -0.00033961236476898193, 0.13806377351284027, 0.2529083490371704, 0.251603901386261, -0.01896345429122448, 0.20154555141925812, 0.12950147688388824, -0.3918929100036621, -0.10014083981513977, -0.11318926513195038, -0.13254867494106293, -0.019458740949630737, 0.020672578364610672, 0.07724753767251968, -0.1546720415353775, -0.30026477575302124, -0.19596469402313232, 0.33781272172927856, 0.003581404685974121, 0.3406068980693817, -0.10637778043746948, -0.1358620673418045, -0.3226148784160614, 0.2612762749195099, 0.015166733413934708, -0.423921674489975, 0.046964388340711594, -0.18139564990997314, -0.14910998940467834, 0.0020741077605634928, 0.102446049451828, 0.03395480290055275, -0.28679609298706055, -0.05772663652896881, 0.30738601088523865, -0.02641836553812027, -0.22742806375026703, -0.06475497037172318, 0.3482634723186493, 0.21925143897533417, 0.09816379100084305, -0.38843321800231934, 0.012780718505382538, -0.09319910407066345, -0.010701421648263931, -0.04774230346083641, 0.2804378271102905, -0.10324988514184952, -0.22023698687553406, -0.4001869261264801, 0.17624147236347198, 0.05948641151189804, 0.3567267954349518, -0.2408880740404129, -0.24740254878997803, 0.10471934080123901, -0.040065642446279526, 0.07766686379909515, 0.05101815238595009, 0.3481082618236542, -0.0759330615401268, -0.011834053322672844, -0.25174593925476074, 0.63190758228302, 0.47833606600761414, 0.21303224563598633, 0.39466357231140137, -0.4731231927871704, 0.13189604878425598, -0.12635333836078644, 0.19219568371772766, 0.21951860189437866, 0.02956683188676834, -0.10399053245782852, 0.028112631291151047, 0.3084443509578705, 0.12962090969085693, 0.5261604189872742, 0.10411277413368225, -0.082054503262043, -0.15836480259895325, -0.4054059386253357, 0.10854152590036392, -0.13391940295696259, -0.020817764103412628, 0.5825765132904053, -0.04540321230888367, -0.374691903591156, 0.15300612151622772, 0.10185935348272324, 1.0142494440078735, -0.036239564418792725, -0.11258973181247711, 0.07487038522958755, -0.182306170463562, 0.08931916952133179, -0.3253489136695862, 0.3657829165458679, -0.26022136211395264, 0.25029194355010986, -0.029988644644618034, 0.14254942536354065, 0.05973221734166145, -0.17174944281578064, -0.4217219650745392, 0.24855752289295197, 0.003690749406814575, -0.03157487139105797, 0.06049620360136032, -0.16813641786575317, -0.38881728053092957, -0.30702948570251465, -0.15920709073543549, 0.11007201671600342, -0.21604691445827484, 0.22885090112686157, -0.11328084021806717, -0.26614534854888916, -0.22777605056762695, -0.3253612518310547, -0.48516106605529785, -0.16974854469299316, -0.7316581606864929, -0.29450148344039917, -0.23179012537002563, -0.09837333112955093, -0.3405430018901825, 0.44640690088272095, 0.01776926964521408, -0.0242011658847332, -0.1564563661813736, 0.2601523697376251, -0.04520750045776367, 0.043583840131759644, 0.3158396780490875, 0.12666472792625427, 0.11178392916917801, -0.18057429790496826, -0.15815067291259766, -0.062327705323696136, -0.10427799075841904, -0.005086582154035568, -0.5603070259094238, -0.06505385041236877, 0.418038010597229, -0.23386403918266296, 0.18954209983348846, -0.02833053469657898, -0.20626111328601837, -0.33511534333229065, 0.13224098086357117, -0.03815227001905441, 0.025899643078446388, -0.24809077382087708, -0.06403863430023193, -0.04080842062830925, -0.3563956916332245, -0.13157960772514343, 0.05791117250919342, 0.20141196250915527, -0.13569627702236176, -0.0003864280879497528, -0.08710651099681854, -0.187099426984787, 0.11108825355768204, -0.1189204752445221, -0.1571529358625412, -0.03728560358285904, -0.07975839823484421, -0.5473974347114563, -0.00005558354314416647, 0.3544871211051941, 0.11887957900762558, 0.24172168970108032, 0.006012279540300369, -0.2591937780380249, -0.3652990162372589, 0.3029780387878418, -0.1045641154050827, -0.09246677160263062, -0.3297942578792572, -0.01985025778412819, -0.0012600459158420563, 0.3097035884857178, -0.30331316590309143, -0.2519492506980896, 0.15636205673217773, 0.0798749327659607, -0.08665942400693893, 0.02783200331032276, 0.27584123611450195, -0.006365150213241577, 0.07031358033418655, 0.10616602003574371, -0.17983484268188477, -0.19492807984352112, -0.105133056640625, 0.1495874971151352, -0.06635357439517975, 0.03772301226854324, -0.050533726811409, 0.16943369805812836, -0.016171894967556, -0.21993613243103027, 0.13003219664096832, -0.06242838501930237, 0.071836918592453, -0.08365057408809662, 0.2741973400115967, 0.17377522587776184, 0.28112971782684326, -0.29306110739707947, 0.02440374344587326, 0.3864933252334595, -0.0582820288836956, -0.09107378125190735, 0.23694267868995667, -0.024327334016561508, -0.16258662939071655, 0.046459514647722244, 0.18024519085884094, 0.08085328340530396, 0.4330109655857086, -0.12950478494167328, 0.07771725952625275, 0.1948661506175995, 0.5047270059585571, 0.12233561277389526, 0.10356712341308594, 0.15631960332393646, -0.17364925146102905, 0.2229703962802887, -0.3334577679634094, -0.005583868827670813, -0.28414401412010193, 0.017490126192569733, -0.03613835573196411, 0.37039628624916077, 0.08583065867424011, -0.16167399287223816, -0.07720248401165009, 0.2681468725204468, 0.524290144443512, -0.0015467554330825806, 0.23366768658161163, 0.6055750846862793, -0.3482533097267151, 0.14448170363903046, 0.3221675455570221, -0.27995389699935913, 0.317472904920578, 0.3075569272041321, -0.026288166642189026, 0.24600426852703094, 0.3709750175476074, -0.03890198841691017, -0.12039179354906082, 0.185853973031044, -0.5328410863876343, 0.10117857903242111, 0.09151793271303177, 0.2516235113143921, 0.169590562582016, 0.10876624286174774, 0.2660508453845978, -0.45638802647590637, -0.10589736700057983, 0.1480550765991211, -0.08661796897649765, -0.04589790478348732, 0.26305195689201355, -0.31246259808540344, -0.2088892012834549, -0.12154282629489899, 0.014511166140437126, -0.05214262008666992, 0.47702381014823914, -0.12082330882549286, -0.1491936296224594, -0.2542015314102173, -0.13639026880264282, 0.19193711876869202, 0.23135653138160706, -0.15864534676074982, 0.13393999636173248, 0.4068042039871216, -0.1255713850259781, 0.08318474888801575, 0.14607764780521393, 0.40524035692214966, 0.3890931308269501, -0.26975390315055847, 0.05043639987707138, -0.20119033753871918, -0.21171623468399048, -0.08914116770029068, 0.2232072800397873, 0.2891916036605835, -0.1578652709722519, -0.07241775095462799, 0.143889918923378, -0.2418784499168396, 0.6210914850234985, -0.15714013576507568, -0.048325855284929276, -0.02286602556705475, 0.3200870752334595, -0.11911197006702423, -0.10389422625303268, -0.10232219099998474, -0.11152967065572739, -0.4000644087791443, -0.2703824043273926, 0.13366934657096863, 0.3149121105670929, -0.020835308358073235, -0.32581570744514465, 0.08655594289302826, 0.006684686988592148, 0.1617560237646103, 0.007726557552814484, -0.16805630922317505, -0.10655374825000763, 0.20143167674541473, -0.1328776478767395, -0.2206721305847168, -0.23653921484947205, -0.17470960319042206, 0.05034226179122925, 0.09451331198215485, 0.1812092363834381, 0.10838571190834045, 0.18762372434139252, -0.06261260062456131, 0.26296886801719666, -0.15362034738063812, -0.46480780839920044, 0.11054010689258575, 0.11792317032814026, 0.300773561000824, 0.19972124695777893, -0.41206902265548706, 0.27839842438697815, -0.5090740919113159, 0.1478305459022522, 0.06915266811847687, 0.032708361744880676, 0.4838721752166748, 0.3174029290676117, 0.4250282347202301, 0.12566906213760376, -0.004066929221153259, -0.272941529750824, -0.27549248933792114, -0.2156791090965271, -0.4665088951587677, -0.17304134368896484, 0.4485468864440918, -0.11266866326332092, 0.35898011922836304, -0.24911421537399292, -0.5427915453910828, -0.31719714403152466, 0.12963326275348663, 0.07866109162569046, -0.3787127137184143, -0.06397159397602081, 0.18038593232631683, 0.00831615924835205, 0.06296881288290024, -0.10598289966583252, 0.04215960204601288, -0.1256779432296753, -0.08110874891281128, -0.12082691490650177, -0.5962765216827393, 0.5595332384109497, -0.0009504416957497597, -0.02018028497695923, 0.07973378896713257, 0.24942618608474731, 0.8977795839309692, 0.12242799252271652, -0.5830606818199158, 0.024546556174755096, 0.2819695770740509, 0.21936649084091187, -0.4289262294769287, 0.019094198942184448, 0.12419411540031433, -0.1958754062652588, -0.029514815658330917, -0.08415891230106354, 0.07387886196374893, -0.11359846591949463, 0.18106567859649658, -0.09240315854549408 ]
https://github.com/huggingface/datasets/pull/2074
Fix size categories in YAML Tags
Hi @lhoestq, Thanks for approving. How do I add the new categories to the tagging app? What I have added is till `1T` and not `1M`. I'll also check the task list :) Thanks, Gunjan
This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too.
35
text: Fix size categories in YAML Tags This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too. Hi @lhoestq, Thanks for approving. How do I add the new categories to the tagging app? What I have added is till `1T` and not `1M`. I'll also check the task list :) Thanks, Gunjan
[ 0.13570840656757355, -0.16369587182998657, -0.16992522776126862, 0.06400378793478012, 0.5627598762512207, 0.04084876924753189, 0.2803543508052826, 0.13068334758281708, -0.20304599404335022, -0.05140462517738342, 0.20192950963974, -0.34266817569732666, 0.002866317518055439, 0.5861956477165222, 0.11881574243307114, -0.059470854699611664, 0.05964416638016701, 0.08426179736852646, 0.017957236617803574, -0.046733129769563675, -0.035164687782526016, -0.05400608479976654, 0.25452709197998047, -0.06006850302219391, 0.0033751262817531824, 0.050553012639284134, -0.2007070928812027, 0.12323832511901855, -0.519839882850647, -0.5176283717155457, 0.07608918845653534, 0.08216969668865204, -0.007380892522633076, -0.15343260765075684, -0.00011226798233110458, -0.17836102843284607, 0.15237383544445038, -0.3539685904979706, -0.02261146903038025, -0.038056790828704834, 0.13543978333473206, -0.43869611620903015, -0.026425672695040703, 0.04097897559404373, 0.16240927577018738, -0.326404869556427, -0.2537377178668976, -0.2460063397884369, 0.13663740456104279, 0.26708197593688965, 0.1636194884777069, -0.2485186904668808, 0.24672336876392365, 0.05968775972723961, 0.2871354818344116, 0.2899057865142822, -0.17455868422985077, 0.10791362822055817, 0.5678572654724121, 0.16050976514816284, 0.13568611443042755, 0.6227396726608276, 0.08356068283319473, 0.08530634641647339, 0.4848502278327942, -0.1703285127878189, 0.3938594162464142, -0.5893052816390991, 0.12935809791088104, 0.06536161154508591, 0.38776764273643494, -0.292283296585083, -0.3396238684654236, -0.5900073051452637, -0.2571059763431549, -0.5815608501434326, -0.09903372079133987, 0.5329484939575195, -0.07993808388710022, -0.007656484842300415, -0.017493361607193947, -0.11847393959760666, -0.10652767866849899, -0.02869708091020584, 0.21567592024803162, 0.3719518184661865, 0.13469862937927246, -0.0340515673160553, -0.017476048320531845, 0.0057360827922821045, 0.1745864599943161, 0.09221512824296951, -0.31566232442855835, 0.14141348004341125, -0.019086744636297226, 0.1325961798429489, 0.1290481835603714, 0.12529000639915466, 0.3937523365020752, -0.16377320885658264, 0.21403053402900696, 0.06012335419654846, 0.10428301990032196, -0.1372600495815277, 0.17568643391132355, 0.3827287554740906, 0.17140960693359375, 0.23533810675144196, -0.2524731159210205, 0.014566263183951378, 0.3543398976325989, 0.019020242616534233, -0.022821318358182907, -0.252491295337677, -0.03799590468406677, 0.16822174191474915, 0.08811808377504349, -0.07595108449459076, -0.19783605635166168, 0.1224035993218422, -0.5353314876556396, 0.01341010071337223, 0.03025033324956894, 0.3057418763637543, 0.0020791771821677685, 0.35420241951942444, 0.05461768060922623, 0.18670547008514404, 0.08529964834451675, -0.04383617639541626, -0.14011001586914062, -0.05027099326252937, -0.08989681303501129, 0.007779779378324747, 0.019613116979599, -0.1432381123304367, 0.27683091163635254, 0.04216167330741882, -0.19920499622821808, 0.031328700482845306, -0.0830976814031601, 0.23462772369384766, 0.06392769515514374, 0.2781766653060913, -0.17551478743553162, -0.16125628352165222, 0.18309076130390167, -0.07604260742664337, -0.08046071231365204, 0.3820238709449768, -0.3187418282032013, -0.284432977437973, -0.30619898438453674, 0.29303810000419617, -0.06239867955446243, 0.12673375010490417, -0.1273055374622345, 0.39027348160743713, 0.2863270342350006, 0.09151971340179443, 0.30455970764160156, -0.212736114859581, 0.3153548538684845, -0.04639974981546402, -0.1035638228058815, 0.03258929401636124, -0.1303795427083969, -0.3552324175834656, -0.14436666667461395, 0.2048366218805313, 0.46423155069351196, -0.06376151740550995, 0.0031982518266886473, 0.06445324420928955, 0.0081715676933527, 0.2035025805234909, 0.55058354139328, -0.37293487787246704, -0.4173748195171356, -0.058578141033649445, 0.21373040974140167, 0.07193920761346817, 0.23912322521209717, -0.0878986269235611, 0.34822744131088257, 0.19300201535224915, -0.07503515481948853, -0.1761304885149002, -0.2910340428352356, 0.05455388128757477, -0.42734935879707336, 0.07168504595756531, 0.04897178336977959, 0.03453182429075241, 0.278259813785553, -0.09086117893457413, 0.21043714880943298, 0.31474366784095764, 0.43799886107444763, -0.16335391998291016, 0.3049815893173218, 0.09901602566242218, 0.16423732042312622, 0.17798738181591034, 0.2975245416164398, 0.07023129612207413, -0.06839650124311447, 0.08687133342027664, -0.1642005741596222, 0.1942301243543625, 0.05075659230351448, -0.2097935825586319, -0.2996067702770233, -0.09042234718799591, -0.052042681723833084, -0.5454548597335815, 0.10248909890651703, -0.03284414857625961, -0.007144106552004814, -0.015244442969560623, -0.057939134538173676, 0.5133849382400513, -0.20134401321411133, 0.24095869064331055, 0.27971479296684265, 0.09694333374500275, -0.07557034492492676, -0.10045287013053894, 0.08075582981109619, 0.3464769721031189, -0.0018279291689395905, -0.0023142832797020674, -0.25137728452682495, 0.2371577024459839, -0.16494308412075043, -0.2023334950208664, -0.09639858454465866, 0.31229954957962036, 0.4280649721622467, 0.20084801316261292, -0.0386260449886322, 0.11380349099636078, 0.1748931109905243, 0.08538248389959335, -0.24588656425476074, 0.2142537236213684, -0.24233822524547577, 0.11081559211015701, 0.04701421409845352, 0.050600893795490265, 0.25451165437698364, 0.2363370656967163, -0.3429230749607086, -0.1774715632200241, 0.2872522175312042, -0.4143451154232025, 0.016935065388679504, -0.08801260590553284, -0.009677864611148834, 0.49110254645347595, 0.4572601914405823, -0.09124112129211426, 0.007837332785129547, 0.3161756992340088, -0.2409672737121582, -0.09626972675323486, 0.16865910589694977, 0.21623297035694122, 0.27836722135543823, 0.30674535036087036, -0.25280308723449707, 0.00457332469522953, 0.3315083086490631, -0.17089802026748657, 0.30518513917922974, 0.24363701045513153, -0.15056143701076508, 0.231205016374588, 0.5651274919509888, -0.09284227341413498, -0.27032899856567383, -0.10679358243942261, -0.19912774860858917, 0.21212854981422424, -0.19865307211875916, 0.12970119714736938, -0.016244802623987198, -0.1855059564113617, 0.11292219161987305, -0.5710452795028687, -0.23269131779670715, -0.3120012581348419, 0.2872777581214905, -0.0020894184708595276, -0.07376856356859207, -0.023826254531741142, -0.07339055836200714, 0.0673021674156189, 0.2123124748468399, 0.3172897398471832, -0.26193052530288696, -0.15279246866703033, -0.1040005311369896, 0.12895728647708893, -0.213138148188591, -0.30538463592529297, 0.3584492802619934, -0.2988921105861664, 0.19389645755290985, -0.11924955993890762, -0.6878717541694641, 0.06544241309165955, -0.10117995738983154, 0.21840399503707886, -0.0225914865732193, 0.05234973877668381, -0.11017534881830215, -0.039990875869989395, 0.10818956792354584, 0.3521837294101715, -0.24709443747997284, -0.13692888617515564, -0.07604120671749115, 0.05317604914307594, -0.41766083240509033, -0.3844151794910431, -0.4394811689853668, -0.41286566853523254, 0.33042585849761963, 0.2425500899553299, 0.1517217457294464, 0.2678951621055603, -0.1615304797887802, -0.04920896142721176, 0.20713339745998383, 0.021764099597930908, -0.13181346654891968, 0.1854735016822815, 0.24271506071090698, -0.10025648772716522, -0.22081749141216278, -0.009527895599603653, -0.191294863820076, -0.09006147086620331, -0.0006653890013694763, -0.24210800230503082, 0.08477555960416794, 0.11774688959121704, -0.18359139561653137, 0.0025946348905563354, -0.21269449591636658, 0.39624178409576416, 0.25606149435043335, -0.006475048139691353, -0.1951999068260193, 0.15729592740535736, -0.09743773192167282, 0.1756283938884735, 0.3484587073326111, -0.28361767530441284, 0.19787180423736572, 0.15488474071025848, 0.3711366653442383, -0.15502114593982697, -0.06711134314537048, 0.3850499987602234, 0.16780751943588257, 0.10211611539125443, -0.12167046219110489, -0.3813041150569916, 0.3549632132053375, -0.00033961236476898193, 0.13806377351284027, 0.2529083490371704, 0.251603901386261, -0.01896345429122448, 0.20154555141925812, 0.12950147688388824, -0.3918929100036621, -0.10014083981513977, -0.11318926513195038, -0.13254867494106293, -0.019458740949630737, 0.020672578364610672, 0.07724753767251968, -0.1546720415353775, -0.30026477575302124, -0.19596469402313232, 0.33781272172927856, 0.003581404685974121, 0.3406068980693817, -0.10637778043746948, -0.1358620673418045, -0.3226148784160614, 0.2612762749195099, 0.015166733413934708, -0.423921674489975, 0.046964388340711594, -0.18139564990997314, -0.14910998940467834, 0.0020741077605634928, 0.102446049451828, 0.03395480290055275, -0.28679609298706055, -0.05772663652896881, 0.30738601088523865, -0.02641836553812027, -0.22742806375026703, -0.06475497037172318, 0.3482634723186493, 0.21925143897533417, 0.09816379100084305, -0.38843321800231934, 0.012780718505382538, -0.09319910407066345, -0.010701421648263931, -0.04774230346083641, 0.2804378271102905, -0.10324988514184952, -0.22023698687553406, -0.4001869261264801, 0.17624147236347198, 0.05948641151189804, 0.3567267954349518, -0.2408880740404129, -0.24740254878997803, 0.10471934080123901, -0.040065642446279526, 0.07766686379909515, 0.05101815238595009, 0.3481082618236542, -0.0759330615401268, -0.011834053322672844, -0.25174593925476074, 0.63190758228302, 0.47833606600761414, 0.21303224563598633, 0.39466357231140137, -0.4731231927871704, 0.13189604878425598, -0.12635333836078644, 0.19219568371772766, 0.21951860189437866, 0.02956683188676834, -0.10399053245782852, 0.028112631291151047, 0.3084443509578705, 0.12962090969085693, 0.5261604189872742, 0.10411277413368225, -0.082054503262043, -0.15836480259895325, -0.4054059386253357, 0.10854152590036392, -0.13391940295696259, -0.020817764103412628, 0.5825765132904053, -0.04540321230888367, -0.374691903591156, 0.15300612151622772, 0.10185935348272324, 1.0142494440078735, -0.036239564418792725, -0.11258973181247711, 0.07487038522958755, -0.182306170463562, 0.08931916952133179, -0.3253489136695862, 0.3657829165458679, -0.26022136211395264, 0.25029194355010986, -0.029988644644618034, 0.14254942536354065, 0.05973221734166145, -0.17174944281578064, -0.4217219650745392, 0.24855752289295197, 0.003690749406814575, -0.03157487139105797, 0.06049620360136032, -0.16813641786575317, -0.38881728053092957, -0.30702948570251465, -0.15920709073543549, 0.11007201671600342, -0.21604691445827484, 0.22885090112686157, -0.11328084021806717, -0.26614534854888916, -0.22777605056762695, -0.3253612518310547, -0.48516106605529785, -0.16974854469299316, -0.7316581606864929, -0.29450148344039917, -0.23179012537002563, -0.09837333112955093, -0.3405430018901825, 0.44640690088272095, 0.01776926964521408, -0.0242011658847332, -0.1564563661813736, 0.2601523697376251, -0.04520750045776367, 0.043583840131759644, 0.3158396780490875, 0.12666472792625427, 0.11178392916917801, -0.18057429790496826, -0.15815067291259766, -0.062327705323696136, -0.10427799075841904, -0.005086582154035568, -0.5603070259094238, -0.06505385041236877, 0.418038010597229, -0.23386403918266296, 0.18954209983348846, -0.02833053469657898, -0.20626111328601837, -0.33511534333229065, 0.13224098086357117, -0.03815227001905441, 0.025899643078446388, -0.24809077382087708, -0.06403863430023193, -0.04080842062830925, -0.3563956916332245, -0.13157960772514343, 0.05791117250919342, 0.20141196250915527, -0.13569627702236176, -0.0003864280879497528, -0.08710651099681854, -0.187099426984787, 0.11108825355768204, -0.1189204752445221, -0.1571529358625412, -0.03728560358285904, -0.07975839823484421, -0.5473974347114563, -0.00005558354314416647, 0.3544871211051941, 0.11887957900762558, 0.24172168970108032, 0.006012279540300369, -0.2591937780380249, -0.3652990162372589, 0.3029780387878418, -0.1045641154050827, -0.09246677160263062, -0.3297942578792572, -0.01985025778412819, -0.0012600459158420563, 0.3097035884857178, -0.30331316590309143, -0.2519492506980896, 0.15636205673217773, 0.0798749327659607, -0.08665942400693893, 0.02783200331032276, 0.27584123611450195, -0.006365150213241577, 0.07031358033418655, 0.10616602003574371, -0.17983484268188477, -0.19492807984352112, -0.105133056640625, 0.1495874971151352, -0.06635357439517975, 0.03772301226854324, -0.050533726811409, 0.16943369805812836, -0.016171894967556, -0.21993613243103027, 0.13003219664096832, -0.06242838501930237, 0.071836918592453, -0.08365057408809662, 0.2741973400115967, 0.17377522587776184, 0.28112971782684326, -0.29306110739707947, 0.02440374344587326, 0.3864933252334595, -0.0582820288836956, -0.09107378125190735, 0.23694267868995667, -0.024327334016561508, -0.16258662939071655, 0.046459514647722244, 0.18024519085884094, 0.08085328340530396, 0.4330109655857086, -0.12950478494167328, 0.07771725952625275, 0.1948661506175995, 0.5047270059585571, 0.12233561277389526, 0.10356712341308594, 0.15631960332393646, -0.17364925146102905, 0.2229703962802887, -0.3334577679634094, -0.005583868827670813, -0.28414401412010193, 0.017490126192569733, -0.03613835573196411, 0.37039628624916077, 0.08583065867424011, -0.16167399287223816, -0.07720248401165009, 0.2681468725204468, 0.524290144443512, -0.0015467554330825806, 0.23366768658161163, 0.6055750846862793, -0.3482533097267151, 0.14448170363903046, 0.3221675455570221, -0.27995389699935913, 0.317472904920578, 0.3075569272041321, -0.026288166642189026, 0.24600426852703094, 0.3709750175476074, -0.03890198841691017, -0.12039179354906082, 0.185853973031044, -0.5328410863876343, 0.10117857903242111, 0.09151793271303177, 0.2516235113143921, 0.169590562582016, 0.10876624286174774, 0.2660508453845978, -0.45638802647590637, -0.10589736700057983, 0.1480550765991211, -0.08661796897649765, -0.04589790478348732, 0.26305195689201355, -0.31246259808540344, -0.2088892012834549, -0.12154282629489899, 0.014511166140437126, -0.05214262008666992, 0.47702381014823914, -0.12082330882549286, -0.1491936296224594, -0.2542015314102173, -0.13639026880264282, 0.19193711876869202, 0.23135653138160706, -0.15864534676074982, 0.13393999636173248, 0.4068042039871216, -0.1255713850259781, 0.08318474888801575, 0.14607764780521393, 0.40524035692214966, 0.3890931308269501, -0.26975390315055847, 0.05043639987707138, -0.20119033753871918, -0.21171623468399048, -0.08914116770029068, 0.2232072800397873, 0.2891916036605835, -0.1578652709722519, -0.07241775095462799, 0.143889918923378, -0.2418784499168396, 0.6210914850234985, -0.15714013576507568, -0.048325855284929276, -0.02286602556705475, 0.3200870752334595, -0.11911197006702423, -0.10389422625303268, -0.10232219099998474, -0.11152967065572739, -0.4000644087791443, -0.2703824043273926, 0.13366934657096863, 0.3149121105670929, -0.020835308358073235, -0.32581570744514465, 0.08655594289302826, 0.006684686988592148, 0.1617560237646103, 0.007726557552814484, -0.16805630922317505, -0.10655374825000763, 0.20143167674541473, -0.1328776478767395, -0.2206721305847168, -0.23653921484947205, -0.17470960319042206, 0.05034226179122925, 0.09451331198215485, 0.1812092363834381, 0.10838571190834045, 0.18762372434139252, -0.06261260062456131, 0.26296886801719666, -0.15362034738063812, -0.46480780839920044, 0.11054010689258575, 0.11792317032814026, 0.300773561000824, 0.19972124695777893, -0.41206902265548706, 0.27839842438697815, -0.5090740919113159, 0.1478305459022522, 0.06915266811847687, 0.032708361744880676, 0.4838721752166748, 0.3174029290676117, 0.4250282347202301, 0.12566906213760376, -0.004066929221153259, -0.272941529750824, -0.27549248933792114, -0.2156791090965271, -0.4665088951587677, -0.17304134368896484, 0.4485468864440918, -0.11266866326332092, 0.35898011922836304, -0.24911421537399292, -0.5427915453910828, -0.31719714403152466, 0.12963326275348663, 0.07866109162569046, -0.3787127137184143, -0.06397159397602081, 0.18038593232631683, 0.00831615924835205, 0.06296881288290024, -0.10598289966583252, 0.04215960204601288, -0.1256779432296753, -0.08110874891281128, -0.12082691490650177, -0.5962765216827393, 0.5595332384109497, -0.0009504416957497597, -0.02018028497695923, 0.07973378896713257, 0.24942618608474731, 0.8977795839309692, 0.12242799252271652, -0.5830606818199158, 0.024546556174755096, 0.2819695770740509, 0.21936649084091187, -0.4289262294769287, 0.019094198942184448, 0.12419411540031433, -0.1958754062652588, -0.029514815658330917, -0.08415891230106354, 0.07387886196374893, -0.11359846591949463, 0.18106567859649658, -0.09240315854549408 ]
https://github.com/huggingface/datasets/pull/2074
Fix size categories in YAML Tags
Hi @lhoestq, I have made a PR for size categories on `datasets-tagging` For tags, I have thought of adding more tags and categories, based on what I know about the existing datasets, any list will not be exhaustive because the contributors can be very specific or very general. Hence, there could be a continuous process of evaluating existing tags and adding more and more. ```json { "image-classification": { "description": "image classification tasks", "options": [ "multi-class-classification", "multi-label-classification", "other" ] }, "conditional-text-generation": { "description": "data-to-text and text transduction tasks such as translation or summarization", "options": [ "machine-translation", "sentence-splitting-fusion", "extractive-and-abstractive-summarization", "abstractive-summarization", "extractive-summarization", "multi-document-summarization", "table-to-text", "text-simplification", "explanation-generation", "stuctured-to-text", "other" ] }, "conditional-speech-generation": { "description": "speech generation tasks", "options": [ "text-to-speech", "speech-translation", "other" ] }, "conditional-structure-generation":{ "description": "text or speech to structured data", "options":[ "knowlege-graph-mining", "code-generation", ] }, "question-answering": { "description": "question answering tasks", "options": [ "open-domain-qa", "closed-domain-qa", "multiple-choice-qa", "extractive-qa", "abstractive-qa", "conversational-qa", "multi-document-qa", "other" ] }, "speech-classification": { "description": "speech to label tasks", "options": [ "other" ] }, "sequence-modeling": { "description": "such as language, speech or dialogue modeling", "options": [ "dialogue-modeling", "language-modeling", "speech-modeling", "multi-turn", "slot-filling", "other" ] }, "speech-recognition": { "description": "speech to text tasks", "options": [ "automatic-speech-recognition", "other" ] }, "structure-prediction": { "description": "predicting structural properties of the text, such as syntax", "options": [ "coreference-resolution", "named-entity-recognition", "part-of-speech-tagging", "parsing", "sentence-segmentation", "single-span-prediction", "multi-span-prediction", "clause-or-phrase-segmentation", "dependency-parsing", "constituency-parsing", "other" ] }, "text-classification": { "description": "predicting a class index or boolean value", "options": [ "acceptability-classification", "entity-linking-classification", "relation-extraction", "common-sense-reasoning", "fact-checking", "intent-classification", "multi-class-classification", "multi-label-classification", "natural-language-inference", "semantic-similarity-classification", "sentiment-classification", "topic-classification", "emotion-classification", "token-classification", "word-sense-disambiguation", "offense-classification", "hate-speech-classification", "language-classification", "bias-classification", "other" ] }, "text-retrieval": { "description": "information or text retrieval tasks", "options": [ "document-retrieval", "utterance-retrieval", "entity-linking-retrieval", "fact-checking-retrieval", "other" ] }, "text-scoring": { "description": "text scoring tasks, predicting a real valued score for some text", "options": [ "semantic-similarity-scoring", "sentiment-scoring", "other" ] }, "other": { "description": "raw data or other task families", "options": [ "data-mining", "raw-text", "raw-speech", "raw-image", "other" ] } } ``` I'll sort this when adding it to the .json. Also, I'll change categories according to this if this seems okay to you and commit it to this PR. I'll also fix spelling others, and some categories which are partially correct, for e.g. `other-machine-translation` to the correct tag. Lastly, with the options also we can add a description to make it easier for the users to understand what we mean by each option. Example, for "emotion-classification", we can explain what kinds of data we are talking about, or what we mean by "single-span-prediction", etc.
This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too.
408
text: Fix size categories in YAML Tags This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too. Hi @lhoestq, I have made a PR for size categories on `datasets-tagging` For tags, I have thought of adding more tags and categories, based on what I know about the existing datasets, any list will not be exhaustive because the contributors can be very specific or very general. Hence, there could be a continuous process of evaluating existing tags and adding more and more. ```json { "image-classification": { "description": "image classification tasks", "options": [ "multi-class-classification", "multi-label-classification", "other" ] }, "conditional-text-generation": { "description": "data-to-text and text transduction tasks such as translation or summarization", "options": [ "machine-translation", "sentence-splitting-fusion", "extractive-and-abstractive-summarization", "abstractive-summarization", "extractive-summarization", "multi-document-summarization", "table-to-text", "text-simplification", "explanation-generation", "stuctured-to-text", "other" ] }, "conditional-speech-generation": { "description": "speech generation tasks", "options": [ "text-to-speech", "speech-translation", "other" ] }, "conditional-structure-generation":{ "description": "text or speech to structured data", "options":[ "knowlege-graph-mining", "code-generation", ] }, "question-answering": { "description": "question answering tasks", "options": [ "open-domain-qa", "closed-domain-qa", "multiple-choice-qa", "extractive-qa", "abstractive-qa", "conversational-qa", "multi-document-qa", "other" ] }, "speech-classification": { "description": "speech to label tasks", "options": [ "other" ] }, "sequence-modeling": { "description": "such as language, speech or dialogue modeling", "options": [ "dialogue-modeling", "language-modeling", "speech-modeling", "multi-turn", "slot-filling", "other" ] }, "speech-recognition": { "description": "speech to text tasks", "options": [ "automatic-speech-recognition", "other" ] }, "structure-prediction": { "description": "predicting structural properties of the text, such as syntax", "options": [ "coreference-resolution", "named-entity-recognition", "part-of-speech-tagging", "parsing", "sentence-segmentation", "single-span-prediction", "multi-span-prediction", "clause-or-phrase-segmentation", "dependency-parsing", "constituency-parsing", "other" ] }, "text-classification": { "description": "predicting a class index or boolean value", "options": [ "acceptability-classification", "entity-linking-classification", "relation-extraction", "common-sense-reasoning", "fact-checking", "intent-classification", "multi-class-classification", "multi-label-classification", "natural-language-inference", "semantic-similarity-classification", "sentiment-classification", "topic-classification", "emotion-classification", "token-classification", "word-sense-disambiguation", "offense-classification", "hate-speech-classification", "language-classification", "bias-classification", "other" ] }, "text-retrieval": { "description": "information or text retrieval tasks", "options": [ "document-retrieval", "utterance-retrieval", "entity-linking-retrieval", "fact-checking-retrieval", "other" ] }, "text-scoring": { "description": "text scoring tasks, predicting a real valued score for some text", "options": [ "semantic-similarity-scoring", "sentiment-scoring", "other" ] }, "other": { "description": "raw data or other task families", "options": [ "data-mining", "raw-text", "raw-speech", "raw-image", "other" ] } } ``` I'll sort this when adding it to the .json. Also, I'll change categories according to this if this seems okay to you and commit it to this PR. I'll also fix spelling others, and some categories which are partially correct, for e.g. `other-machine-translation` to the correct tag. Lastly, with the options also we can add a description to make it easier for the users to understand what we mean by each option. Example, for "emotion-classification", we can explain what kinds of data we are talking about, or what we mean by "single-span-prediction", etc.
[ 0.13570840656757355, -0.16369587182998657, -0.16992522776126862, 0.06400378793478012, 0.5627598762512207, 0.04084876924753189, 0.2803543508052826, 0.13068334758281708, -0.20304599404335022, -0.05140462517738342, 0.20192950963974, -0.34266817569732666, 0.002866317518055439, 0.5861956477165222, 0.11881574243307114, -0.059470854699611664, 0.05964416638016701, 0.08426179736852646, 0.017957236617803574, -0.046733129769563675, -0.035164687782526016, -0.05400608479976654, 0.25452709197998047, -0.06006850302219391, 0.0033751262817531824, 0.050553012639284134, -0.2007070928812027, 0.12323832511901855, -0.519839882850647, -0.5176283717155457, 0.07608918845653534, 0.08216969668865204, -0.007380892522633076, -0.15343260765075684, -0.00011226798233110458, -0.17836102843284607, 0.15237383544445038, -0.3539685904979706, -0.02261146903038025, -0.038056790828704834, 0.13543978333473206, -0.43869611620903015, -0.026425672695040703, 0.04097897559404373, 0.16240927577018738, -0.326404869556427, -0.2537377178668976, -0.2460063397884369, 0.13663740456104279, 0.26708197593688965, 0.1636194884777069, -0.2485186904668808, 0.24672336876392365, 0.05968775972723961, 0.2871354818344116, 0.2899057865142822, -0.17455868422985077, 0.10791362822055817, 0.5678572654724121, 0.16050976514816284, 0.13568611443042755, 0.6227396726608276, 0.08356068283319473, 0.08530634641647339, 0.4848502278327942, -0.1703285127878189, 0.3938594162464142, -0.5893052816390991, 0.12935809791088104, 0.06536161154508591, 0.38776764273643494, -0.292283296585083, -0.3396238684654236, -0.5900073051452637, -0.2571059763431549, -0.5815608501434326, -0.09903372079133987, 0.5329484939575195, -0.07993808388710022, -0.007656484842300415, -0.017493361607193947, -0.11847393959760666, -0.10652767866849899, -0.02869708091020584, 0.21567592024803162, 0.3719518184661865, 0.13469862937927246, -0.0340515673160553, -0.017476048320531845, 0.0057360827922821045, 0.1745864599943161, 0.09221512824296951, -0.31566232442855835, 0.14141348004341125, -0.019086744636297226, 0.1325961798429489, 0.1290481835603714, 0.12529000639915466, 0.3937523365020752, -0.16377320885658264, 0.21403053402900696, 0.06012335419654846, 0.10428301990032196, -0.1372600495815277, 0.17568643391132355, 0.3827287554740906, 0.17140960693359375, 0.23533810675144196, -0.2524731159210205, 0.014566263183951378, 0.3543398976325989, 0.019020242616534233, -0.022821318358182907, -0.252491295337677, -0.03799590468406677, 0.16822174191474915, 0.08811808377504349, -0.07595108449459076, -0.19783605635166168, 0.1224035993218422, -0.5353314876556396, 0.01341010071337223, 0.03025033324956894, 0.3057418763637543, 0.0020791771821677685, 0.35420241951942444, 0.05461768060922623, 0.18670547008514404, 0.08529964834451675, -0.04383617639541626, -0.14011001586914062, -0.05027099326252937, -0.08989681303501129, 0.007779779378324747, 0.019613116979599, -0.1432381123304367, 0.27683091163635254, 0.04216167330741882, -0.19920499622821808, 0.031328700482845306, -0.0830976814031601, 0.23462772369384766, 0.06392769515514374, 0.2781766653060913, -0.17551478743553162, -0.16125628352165222, 0.18309076130390167, -0.07604260742664337, -0.08046071231365204, 0.3820238709449768, -0.3187418282032013, -0.284432977437973, -0.30619898438453674, 0.29303810000419617, -0.06239867955446243, 0.12673375010490417, -0.1273055374622345, 0.39027348160743713, 0.2863270342350006, 0.09151971340179443, 0.30455970764160156, -0.212736114859581, 0.3153548538684845, -0.04639974981546402, -0.1035638228058815, 0.03258929401636124, -0.1303795427083969, -0.3552324175834656, -0.14436666667461395, 0.2048366218805313, 0.46423155069351196, -0.06376151740550995, 0.0031982518266886473, 0.06445324420928955, 0.0081715676933527, 0.2035025805234909, 0.55058354139328, -0.37293487787246704, -0.4173748195171356, -0.058578141033649445, 0.21373040974140167, 0.07193920761346817, 0.23912322521209717, -0.0878986269235611, 0.34822744131088257, 0.19300201535224915, -0.07503515481948853, -0.1761304885149002, -0.2910340428352356, 0.05455388128757477, -0.42734935879707336, 0.07168504595756531, 0.04897178336977959, 0.03453182429075241, 0.278259813785553, -0.09086117893457413, 0.21043714880943298, 0.31474366784095764, 0.43799886107444763, -0.16335391998291016, 0.3049815893173218, 0.09901602566242218, 0.16423732042312622, 0.17798738181591034, 0.2975245416164398, 0.07023129612207413, -0.06839650124311447, 0.08687133342027664, -0.1642005741596222, 0.1942301243543625, 0.05075659230351448, -0.2097935825586319, -0.2996067702770233, -0.09042234718799591, -0.052042681723833084, -0.5454548597335815, 0.10248909890651703, -0.03284414857625961, -0.007144106552004814, -0.015244442969560623, -0.057939134538173676, 0.5133849382400513, -0.20134401321411133, 0.24095869064331055, 0.27971479296684265, 0.09694333374500275, -0.07557034492492676, -0.10045287013053894, 0.08075582981109619, 0.3464769721031189, -0.0018279291689395905, -0.0023142832797020674, -0.25137728452682495, 0.2371577024459839, -0.16494308412075043, -0.2023334950208664, -0.09639858454465866, 0.31229954957962036, 0.4280649721622467, 0.20084801316261292, -0.0386260449886322, 0.11380349099636078, 0.1748931109905243, 0.08538248389959335, -0.24588656425476074, 0.2142537236213684, -0.24233822524547577, 0.11081559211015701, 0.04701421409845352, 0.050600893795490265, 0.25451165437698364, 0.2363370656967163, -0.3429230749607086, -0.1774715632200241, 0.2872522175312042, -0.4143451154232025, 0.016935065388679504, -0.08801260590553284, -0.009677864611148834, 0.49110254645347595, 0.4572601914405823, -0.09124112129211426, 0.007837332785129547, 0.3161756992340088, -0.2409672737121582, -0.09626972675323486, 0.16865910589694977, 0.21623297035694122, 0.27836722135543823, 0.30674535036087036, -0.25280308723449707, 0.00457332469522953, 0.3315083086490631, -0.17089802026748657, 0.30518513917922974, 0.24363701045513153, -0.15056143701076508, 0.231205016374588, 0.5651274919509888, -0.09284227341413498, -0.27032899856567383, -0.10679358243942261, -0.19912774860858917, 0.21212854981422424, -0.19865307211875916, 0.12970119714736938, -0.016244802623987198, -0.1855059564113617, 0.11292219161987305, -0.5710452795028687, -0.23269131779670715, -0.3120012581348419, 0.2872777581214905, -0.0020894184708595276, -0.07376856356859207, -0.023826254531741142, -0.07339055836200714, 0.0673021674156189, 0.2123124748468399, 0.3172897398471832, -0.26193052530288696, -0.15279246866703033, -0.1040005311369896, 0.12895728647708893, -0.213138148188591, -0.30538463592529297, 0.3584492802619934, -0.2988921105861664, 0.19389645755290985, -0.11924955993890762, -0.6878717541694641, 0.06544241309165955, -0.10117995738983154, 0.21840399503707886, -0.0225914865732193, 0.05234973877668381, -0.11017534881830215, -0.039990875869989395, 0.10818956792354584, 0.3521837294101715, -0.24709443747997284, -0.13692888617515564, -0.07604120671749115, 0.05317604914307594, -0.41766083240509033, -0.3844151794910431, -0.4394811689853668, -0.41286566853523254, 0.33042585849761963, 0.2425500899553299, 0.1517217457294464, 0.2678951621055603, -0.1615304797887802, -0.04920896142721176, 0.20713339745998383, 0.021764099597930908, -0.13181346654891968, 0.1854735016822815, 0.24271506071090698, -0.10025648772716522, -0.22081749141216278, -0.009527895599603653, -0.191294863820076, -0.09006147086620331, -0.0006653890013694763, -0.24210800230503082, 0.08477555960416794, 0.11774688959121704, -0.18359139561653137, 0.0025946348905563354, -0.21269449591636658, 0.39624178409576416, 0.25606149435043335, -0.006475048139691353, -0.1951999068260193, 0.15729592740535736, -0.09743773192167282, 0.1756283938884735, 0.3484587073326111, -0.28361767530441284, 0.19787180423736572, 0.15488474071025848, 0.3711366653442383, -0.15502114593982697, -0.06711134314537048, 0.3850499987602234, 0.16780751943588257, 0.10211611539125443, -0.12167046219110489, -0.3813041150569916, 0.3549632132053375, -0.00033961236476898193, 0.13806377351284027, 0.2529083490371704, 0.251603901386261, -0.01896345429122448, 0.20154555141925812, 0.12950147688388824, -0.3918929100036621, -0.10014083981513977, -0.11318926513195038, -0.13254867494106293, -0.019458740949630737, 0.020672578364610672, 0.07724753767251968, -0.1546720415353775, -0.30026477575302124, -0.19596469402313232, 0.33781272172927856, 0.003581404685974121, 0.3406068980693817, -0.10637778043746948, -0.1358620673418045, -0.3226148784160614, 0.2612762749195099, 0.015166733413934708, -0.423921674489975, 0.046964388340711594, -0.18139564990997314, -0.14910998940467834, 0.0020741077605634928, 0.102446049451828, 0.03395480290055275, -0.28679609298706055, -0.05772663652896881, 0.30738601088523865, -0.02641836553812027, -0.22742806375026703, -0.06475497037172318, 0.3482634723186493, 0.21925143897533417, 0.09816379100084305, -0.38843321800231934, 0.012780718505382538, -0.09319910407066345, -0.010701421648263931, -0.04774230346083641, 0.2804378271102905, -0.10324988514184952, -0.22023698687553406, -0.4001869261264801, 0.17624147236347198, 0.05948641151189804, 0.3567267954349518, -0.2408880740404129, -0.24740254878997803, 0.10471934080123901, -0.040065642446279526, 0.07766686379909515, 0.05101815238595009, 0.3481082618236542, -0.0759330615401268, -0.011834053322672844, -0.25174593925476074, 0.63190758228302, 0.47833606600761414, 0.21303224563598633, 0.39466357231140137, -0.4731231927871704, 0.13189604878425598, -0.12635333836078644, 0.19219568371772766, 0.21951860189437866, 0.02956683188676834, -0.10399053245782852, 0.028112631291151047, 0.3084443509578705, 0.12962090969085693, 0.5261604189872742, 0.10411277413368225, -0.082054503262043, -0.15836480259895325, -0.4054059386253357, 0.10854152590036392, -0.13391940295696259, -0.020817764103412628, 0.5825765132904053, -0.04540321230888367, -0.374691903591156, 0.15300612151622772, 0.10185935348272324, 1.0142494440078735, -0.036239564418792725, -0.11258973181247711, 0.07487038522958755, -0.182306170463562, 0.08931916952133179, -0.3253489136695862, 0.3657829165458679, -0.26022136211395264, 0.25029194355010986, -0.029988644644618034, 0.14254942536354065, 0.05973221734166145, -0.17174944281578064, -0.4217219650745392, 0.24855752289295197, 0.003690749406814575, -0.03157487139105797, 0.06049620360136032, -0.16813641786575317, -0.38881728053092957, -0.30702948570251465, -0.15920709073543549, 0.11007201671600342, -0.21604691445827484, 0.22885090112686157, -0.11328084021806717, -0.26614534854888916, -0.22777605056762695, -0.3253612518310547, -0.48516106605529785, -0.16974854469299316, -0.7316581606864929, -0.29450148344039917, -0.23179012537002563, -0.09837333112955093, -0.3405430018901825, 0.44640690088272095, 0.01776926964521408, -0.0242011658847332, -0.1564563661813736, 0.2601523697376251, -0.04520750045776367, 0.043583840131759644, 0.3158396780490875, 0.12666472792625427, 0.11178392916917801, -0.18057429790496826, -0.15815067291259766, -0.062327705323696136, -0.10427799075841904, -0.005086582154035568, -0.5603070259094238, -0.06505385041236877, 0.418038010597229, -0.23386403918266296, 0.18954209983348846, -0.02833053469657898, -0.20626111328601837, -0.33511534333229065, 0.13224098086357117, -0.03815227001905441, 0.025899643078446388, -0.24809077382087708, -0.06403863430023193, -0.04080842062830925, -0.3563956916332245, -0.13157960772514343, 0.05791117250919342, 0.20141196250915527, -0.13569627702236176, -0.0003864280879497528, -0.08710651099681854, -0.187099426984787, 0.11108825355768204, -0.1189204752445221, -0.1571529358625412, -0.03728560358285904, -0.07975839823484421, -0.5473974347114563, -0.00005558354314416647, 0.3544871211051941, 0.11887957900762558, 0.24172168970108032, 0.006012279540300369, -0.2591937780380249, -0.3652990162372589, 0.3029780387878418, -0.1045641154050827, -0.09246677160263062, -0.3297942578792572, -0.01985025778412819, -0.0012600459158420563, 0.3097035884857178, -0.30331316590309143, -0.2519492506980896, 0.15636205673217773, 0.0798749327659607, -0.08665942400693893, 0.02783200331032276, 0.27584123611450195, -0.006365150213241577, 0.07031358033418655, 0.10616602003574371, -0.17983484268188477, -0.19492807984352112, -0.105133056640625, 0.1495874971151352, -0.06635357439517975, 0.03772301226854324, -0.050533726811409, 0.16943369805812836, -0.016171894967556, -0.21993613243103027, 0.13003219664096832, -0.06242838501930237, 0.071836918592453, -0.08365057408809662, 0.2741973400115967, 0.17377522587776184, 0.28112971782684326, -0.29306110739707947, 0.02440374344587326, 0.3864933252334595, -0.0582820288836956, -0.09107378125190735, 0.23694267868995667, -0.024327334016561508, -0.16258662939071655, 0.046459514647722244, 0.18024519085884094, 0.08085328340530396, 0.4330109655857086, -0.12950478494167328, 0.07771725952625275, 0.1948661506175995, 0.5047270059585571, 0.12233561277389526, 0.10356712341308594, 0.15631960332393646, -0.17364925146102905, 0.2229703962802887, -0.3334577679634094, -0.005583868827670813, -0.28414401412010193, 0.017490126192569733, -0.03613835573196411, 0.37039628624916077, 0.08583065867424011, -0.16167399287223816, -0.07720248401165009, 0.2681468725204468, 0.524290144443512, -0.0015467554330825806, 0.23366768658161163, 0.6055750846862793, -0.3482533097267151, 0.14448170363903046, 0.3221675455570221, -0.27995389699935913, 0.317472904920578, 0.3075569272041321, -0.026288166642189026, 0.24600426852703094, 0.3709750175476074, -0.03890198841691017, -0.12039179354906082, 0.185853973031044, -0.5328410863876343, 0.10117857903242111, 0.09151793271303177, 0.2516235113143921, 0.169590562582016, 0.10876624286174774, 0.2660508453845978, -0.45638802647590637, -0.10589736700057983, 0.1480550765991211, -0.08661796897649765, -0.04589790478348732, 0.26305195689201355, -0.31246259808540344, -0.2088892012834549, -0.12154282629489899, 0.014511166140437126, -0.05214262008666992, 0.47702381014823914, -0.12082330882549286, -0.1491936296224594, -0.2542015314102173, -0.13639026880264282, 0.19193711876869202, 0.23135653138160706, -0.15864534676074982, 0.13393999636173248, 0.4068042039871216, -0.1255713850259781, 0.08318474888801575, 0.14607764780521393, 0.40524035692214966, 0.3890931308269501, -0.26975390315055847, 0.05043639987707138, -0.20119033753871918, -0.21171623468399048, -0.08914116770029068, 0.2232072800397873, 0.2891916036605835, -0.1578652709722519, -0.07241775095462799, 0.143889918923378, -0.2418784499168396, 0.6210914850234985, -0.15714013576507568, -0.048325855284929276, -0.02286602556705475, 0.3200870752334595, -0.11911197006702423, -0.10389422625303268, -0.10232219099998474, -0.11152967065572739, -0.4000644087791443, -0.2703824043273926, 0.13366934657096863, 0.3149121105670929, -0.020835308358073235, -0.32581570744514465, 0.08655594289302826, 0.006684686988592148, 0.1617560237646103, 0.007726557552814484, -0.16805630922317505, -0.10655374825000763, 0.20143167674541473, -0.1328776478767395, -0.2206721305847168, -0.23653921484947205, -0.17470960319042206, 0.05034226179122925, 0.09451331198215485, 0.1812092363834381, 0.10838571190834045, 0.18762372434139252, -0.06261260062456131, 0.26296886801719666, -0.15362034738063812, -0.46480780839920044, 0.11054010689258575, 0.11792317032814026, 0.300773561000824, 0.19972124695777893, -0.41206902265548706, 0.27839842438697815, -0.5090740919113159, 0.1478305459022522, 0.06915266811847687, 0.032708361744880676, 0.4838721752166748, 0.3174029290676117, 0.4250282347202301, 0.12566906213760376, -0.004066929221153259, -0.272941529750824, -0.27549248933792114, -0.2156791090965271, -0.4665088951587677, -0.17304134368896484, 0.4485468864440918, -0.11266866326332092, 0.35898011922836304, -0.24911421537399292, -0.5427915453910828, -0.31719714403152466, 0.12963326275348663, 0.07866109162569046, -0.3787127137184143, -0.06397159397602081, 0.18038593232631683, 0.00831615924835205, 0.06296881288290024, -0.10598289966583252, 0.04215960204601288, -0.1256779432296753, -0.08110874891281128, -0.12082691490650177, -0.5962765216827393, 0.5595332384109497, -0.0009504416957497597, -0.02018028497695923, 0.07973378896713257, 0.24942618608474731, 0.8977795839309692, 0.12242799252271652, -0.5830606818199158, 0.024546556174755096, 0.2819695770740509, 0.21936649084091187, -0.4289262294769287, 0.019094198942184448, 0.12419411540031433, -0.1958754062652588, -0.029514815658330917, -0.08415891230106354, 0.07387886196374893, -0.11359846591949463, 0.18106567859649658, -0.09240315854549408 ]
https://github.com/huggingface/datasets/pull/2074
Fix size categories in YAML Tags
Good idea thank you ! Can you open a PR on datasets-tagging for the tasks as well ? Also you can update the dataset card with the new tasks categories in another PR if you don't mind
This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too.
37
text: Fix size categories in YAML Tags This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too. Good idea thank you ! Can you open a PR on datasets-tagging for the tasks as well ? Also you can update the dataset card with the new tasks categories in another PR if you don't mind
[ 0.13570840656757355, -0.16369587182998657, -0.16992522776126862, 0.06400378793478012, 0.5627598762512207, 0.04084876924753189, 0.2803543508052826, 0.13068334758281708, -0.20304599404335022, -0.05140462517738342, 0.20192950963974, -0.34266817569732666, 0.002866317518055439, 0.5861956477165222, 0.11881574243307114, -0.059470854699611664, 0.05964416638016701, 0.08426179736852646, 0.017957236617803574, -0.046733129769563675, -0.035164687782526016, -0.05400608479976654, 0.25452709197998047, -0.06006850302219391, 0.0033751262817531824, 0.050553012639284134, -0.2007070928812027, 0.12323832511901855, -0.519839882850647, -0.5176283717155457, 0.07608918845653534, 0.08216969668865204, -0.007380892522633076, -0.15343260765075684, -0.00011226798233110458, -0.17836102843284607, 0.15237383544445038, -0.3539685904979706, -0.02261146903038025, -0.038056790828704834, 0.13543978333473206, -0.43869611620903015, -0.026425672695040703, 0.04097897559404373, 0.16240927577018738, -0.326404869556427, -0.2537377178668976, -0.2460063397884369, 0.13663740456104279, 0.26708197593688965, 0.1636194884777069, -0.2485186904668808, 0.24672336876392365, 0.05968775972723961, 0.2871354818344116, 0.2899057865142822, -0.17455868422985077, 0.10791362822055817, 0.5678572654724121, 0.16050976514816284, 0.13568611443042755, 0.6227396726608276, 0.08356068283319473, 0.08530634641647339, 0.4848502278327942, -0.1703285127878189, 0.3938594162464142, -0.5893052816390991, 0.12935809791088104, 0.06536161154508591, 0.38776764273643494, -0.292283296585083, -0.3396238684654236, -0.5900073051452637, -0.2571059763431549, -0.5815608501434326, -0.09903372079133987, 0.5329484939575195, -0.07993808388710022, -0.007656484842300415, -0.017493361607193947, -0.11847393959760666, -0.10652767866849899, -0.02869708091020584, 0.21567592024803162, 0.3719518184661865, 0.13469862937927246, -0.0340515673160553, -0.017476048320531845, 0.0057360827922821045, 0.1745864599943161, 0.09221512824296951, -0.31566232442855835, 0.14141348004341125, -0.019086744636297226, 0.1325961798429489, 0.1290481835603714, 0.12529000639915466, 0.3937523365020752, -0.16377320885658264, 0.21403053402900696, 0.06012335419654846, 0.10428301990032196, -0.1372600495815277, 0.17568643391132355, 0.3827287554740906, 0.17140960693359375, 0.23533810675144196, -0.2524731159210205, 0.014566263183951378, 0.3543398976325989, 0.019020242616534233, -0.022821318358182907, -0.252491295337677, -0.03799590468406677, 0.16822174191474915, 0.08811808377504349, -0.07595108449459076, -0.19783605635166168, 0.1224035993218422, -0.5353314876556396, 0.01341010071337223, 0.03025033324956894, 0.3057418763637543, 0.0020791771821677685, 0.35420241951942444, 0.05461768060922623, 0.18670547008514404, 0.08529964834451675, -0.04383617639541626, -0.14011001586914062, -0.05027099326252937, -0.08989681303501129, 0.007779779378324747, 0.019613116979599, -0.1432381123304367, 0.27683091163635254, 0.04216167330741882, -0.19920499622821808, 0.031328700482845306, -0.0830976814031601, 0.23462772369384766, 0.06392769515514374, 0.2781766653060913, -0.17551478743553162, -0.16125628352165222, 0.18309076130390167, -0.07604260742664337, -0.08046071231365204, 0.3820238709449768, -0.3187418282032013, -0.284432977437973, -0.30619898438453674, 0.29303810000419617, -0.06239867955446243, 0.12673375010490417, -0.1273055374622345, 0.39027348160743713, 0.2863270342350006, 0.09151971340179443, 0.30455970764160156, -0.212736114859581, 0.3153548538684845, -0.04639974981546402, -0.1035638228058815, 0.03258929401636124, -0.1303795427083969, -0.3552324175834656, -0.14436666667461395, 0.2048366218805313, 0.46423155069351196, -0.06376151740550995, 0.0031982518266886473, 0.06445324420928955, 0.0081715676933527, 0.2035025805234909, 0.55058354139328, -0.37293487787246704, -0.4173748195171356, -0.058578141033649445, 0.21373040974140167, 0.07193920761346817, 0.23912322521209717, -0.0878986269235611, 0.34822744131088257, 0.19300201535224915, -0.07503515481948853, -0.1761304885149002, -0.2910340428352356, 0.05455388128757477, -0.42734935879707336, 0.07168504595756531, 0.04897178336977959, 0.03453182429075241, 0.278259813785553, -0.09086117893457413, 0.21043714880943298, 0.31474366784095764, 0.43799886107444763, -0.16335391998291016, 0.3049815893173218, 0.09901602566242218, 0.16423732042312622, 0.17798738181591034, 0.2975245416164398, 0.07023129612207413, -0.06839650124311447, 0.08687133342027664, -0.1642005741596222, 0.1942301243543625, 0.05075659230351448, -0.2097935825586319, -0.2996067702770233, -0.09042234718799591, -0.052042681723833084, -0.5454548597335815, 0.10248909890651703, -0.03284414857625961, -0.007144106552004814, -0.015244442969560623, -0.057939134538173676, 0.5133849382400513, -0.20134401321411133, 0.24095869064331055, 0.27971479296684265, 0.09694333374500275, -0.07557034492492676, -0.10045287013053894, 0.08075582981109619, 0.3464769721031189, -0.0018279291689395905, -0.0023142832797020674, -0.25137728452682495, 0.2371577024459839, -0.16494308412075043, -0.2023334950208664, -0.09639858454465866, 0.31229954957962036, 0.4280649721622467, 0.20084801316261292, -0.0386260449886322, 0.11380349099636078, 0.1748931109905243, 0.08538248389959335, -0.24588656425476074, 0.2142537236213684, -0.24233822524547577, 0.11081559211015701, 0.04701421409845352, 0.050600893795490265, 0.25451165437698364, 0.2363370656967163, -0.3429230749607086, -0.1774715632200241, 0.2872522175312042, -0.4143451154232025, 0.016935065388679504, -0.08801260590553284, -0.009677864611148834, 0.49110254645347595, 0.4572601914405823, -0.09124112129211426, 0.007837332785129547, 0.3161756992340088, -0.2409672737121582, -0.09626972675323486, 0.16865910589694977, 0.21623297035694122, 0.27836722135543823, 0.30674535036087036, -0.25280308723449707, 0.00457332469522953, 0.3315083086490631, -0.17089802026748657, 0.30518513917922974, 0.24363701045513153, -0.15056143701076508, 0.231205016374588, 0.5651274919509888, -0.09284227341413498, -0.27032899856567383, -0.10679358243942261, -0.19912774860858917, 0.21212854981422424, -0.19865307211875916, 0.12970119714736938, -0.016244802623987198, -0.1855059564113617, 0.11292219161987305, -0.5710452795028687, -0.23269131779670715, -0.3120012581348419, 0.2872777581214905, -0.0020894184708595276, -0.07376856356859207, -0.023826254531741142, -0.07339055836200714, 0.0673021674156189, 0.2123124748468399, 0.3172897398471832, -0.26193052530288696, -0.15279246866703033, -0.1040005311369896, 0.12895728647708893, -0.213138148188591, -0.30538463592529297, 0.3584492802619934, -0.2988921105861664, 0.19389645755290985, -0.11924955993890762, -0.6878717541694641, 0.06544241309165955, -0.10117995738983154, 0.21840399503707886, -0.0225914865732193, 0.05234973877668381, -0.11017534881830215, -0.039990875869989395, 0.10818956792354584, 0.3521837294101715, -0.24709443747997284, -0.13692888617515564, -0.07604120671749115, 0.05317604914307594, -0.41766083240509033, -0.3844151794910431, -0.4394811689853668, -0.41286566853523254, 0.33042585849761963, 0.2425500899553299, 0.1517217457294464, 0.2678951621055603, -0.1615304797887802, -0.04920896142721176, 0.20713339745998383, 0.021764099597930908, -0.13181346654891968, 0.1854735016822815, 0.24271506071090698, -0.10025648772716522, -0.22081749141216278, -0.009527895599603653, -0.191294863820076, -0.09006147086620331, -0.0006653890013694763, -0.24210800230503082, 0.08477555960416794, 0.11774688959121704, -0.18359139561653137, 0.0025946348905563354, -0.21269449591636658, 0.39624178409576416, 0.25606149435043335, -0.006475048139691353, -0.1951999068260193, 0.15729592740535736, -0.09743773192167282, 0.1756283938884735, 0.3484587073326111, -0.28361767530441284, 0.19787180423736572, 0.15488474071025848, 0.3711366653442383, -0.15502114593982697, -0.06711134314537048, 0.3850499987602234, 0.16780751943588257, 0.10211611539125443, -0.12167046219110489, -0.3813041150569916, 0.3549632132053375, -0.00033961236476898193, 0.13806377351284027, 0.2529083490371704, 0.251603901386261, -0.01896345429122448, 0.20154555141925812, 0.12950147688388824, -0.3918929100036621, -0.10014083981513977, -0.11318926513195038, -0.13254867494106293, -0.019458740949630737, 0.020672578364610672, 0.07724753767251968, -0.1546720415353775, -0.30026477575302124, -0.19596469402313232, 0.33781272172927856, 0.003581404685974121, 0.3406068980693817, -0.10637778043746948, -0.1358620673418045, -0.3226148784160614, 0.2612762749195099, 0.015166733413934708, -0.423921674489975, 0.046964388340711594, -0.18139564990997314, -0.14910998940467834, 0.0020741077605634928, 0.102446049451828, 0.03395480290055275, -0.28679609298706055, -0.05772663652896881, 0.30738601088523865, -0.02641836553812027, -0.22742806375026703, -0.06475497037172318, 0.3482634723186493, 0.21925143897533417, 0.09816379100084305, -0.38843321800231934, 0.012780718505382538, -0.09319910407066345, -0.010701421648263931, -0.04774230346083641, 0.2804378271102905, -0.10324988514184952, -0.22023698687553406, -0.4001869261264801, 0.17624147236347198, 0.05948641151189804, 0.3567267954349518, -0.2408880740404129, -0.24740254878997803, 0.10471934080123901, -0.040065642446279526, 0.07766686379909515, 0.05101815238595009, 0.3481082618236542, -0.0759330615401268, -0.011834053322672844, -0.25174593925476074, 0.63190758228302, 0.47833606600761414, 0.21303224563598633, 0.39466357231140137, -0.4731231927871704, 0.13189604878425598, -0.12635333836078644, 0.19219568371772766, 0.21951860189437866, 0.02956683188676834, -0.10399053245782852, 0.028112631291151047, 0.3084443509578705, 0.12962090969085693, 0.5261604189872742, 0.10411277413368225, -0.082054503262043, -0.15836480259895325, -0.4054059386253357, 0.10854152590036392, -0.13391940295696259, -0.020817764103412628, 0.5825765132904053, -0.04540321230888367, -0.374691903591156, 0.15300612151622772, 0.10185935348272324, 1.0142494440078735, -0.036239564418792725, -0.11258973181247711, 0.07487038522958755, -0.182306170463562, 0.08931916952133179, -0.3253489136695862, 0.3657829165458679, -0.26022136211395264, 0.25029194355010986, -0.029988644644618034, 0.14254942536354065, 0.05973221734166145, -0.17174944281578064, -0.4217219650745392, 0.24855752289295197, 0.003690749406814575, -0.03157487139105797, 0.06049620360136032, -0.16813641786575317, -0.38881728053092957, -0.30702948570251465, -0.15920709073543549, 0.11007201671600342, -0.21604691445827484, 0.22885090112686157, -0.11328084021806717, -0.26614534854888916, -0.22777605056762695, -0.3253612518310547, -0.48516106605529785, -0.16974854469299316, -0.7316581606864929, -0.29450148344039917, -0.23179012537002563, -0.09837333112955093, -0.3405430018901825, 0.44640690088272095, 0.01776926964521408, -0.0242011658847332, -0.1564563661813736, 0.2601523697376251, -0.04520750045776367, 0.043583840131759644, 0.3158396780490875, 0.12666472792625427, 0.11178392916917801, -0.18057429790496826, -0.15815067291259766, -0.062327705323696136, -0.10427799075841904, -0.005086582154035568, -0.5603070259094238, -0.06505385041236877, 0.418038010597229, -0.23386403918266296, 0.18954209983348846, -0.02833053469657898, -0.20626111328601837, -0.33511534333229065, 0.13224098086357117, -0.03815227001905441, 0.025899643078446388, -0.24809077382087708, -0.06403863430023193, -0.04080842062830925, -0.3563956916332245, -0.13157960772514343, 0.05791117250919342, 0.20141196250915527, -0.13569627702236176, -0.0003864280879497528, -0.08710651099681854, -0.187099426984787, 0.11108825355768204, -0.1189204752445221, -0.1571529358625412, -0.03728560358285904, -0.07975839823484421, -0.5473974347114563, -0.00005558354314416647, 0.3544871211051941, 0.11887957900762558, 0.24172168970108032, 0.006012279540300369, -0.2591937780380249, -0.3652990162372589, 0.3029780387878418, -0.1045641154050827, -0.09246677160263062, -0.3297942578792572, -0.01985025778412819, -0.0012600459158420563, 0.3097035884857178, -0.30331316590309143, -0.2519492506980896, 0.15636205673217773, 0.0798749327659607, -0.08665942400693893, 0.02783200331032276, 0.27584123611450195, -0.006365150213241577, 0.07031358033418655, 0.10616602003574371, -0.17983484268188477, -0.19492807984352112, -0.105133056640625, 0.1495874971151352, -0.06635357439517975, 0.03772301226854324, -0.050533726811409, 0.16943369805812836, -0.016171894967556, -0.21993613243103027, 0.13003219664096832, -0.06242838501930237, 0.071836918592453, -0.08365057408809662, 0.2741973400115967, 0.17377522587776184, 0.28112971782684326, -0.29306110739707947, 0.02440374344587326, 0.3864933252334595, -0.0582820288836956, -0.09107378125190735, 0.23694267868995667, -0.024327334016561508, -0.16258662939071655, 0.046459514647722244, 0.18024519085884094, 0.08085328340530396, 0.4330109655857086, -0.12950478494167328, 0.07771725952625275, 0.1948661506175995, 0.5047270059585571, 0.12233561277389526, 0.10356712341308594, 0.15631960332393646, -0.17364925146102905, 0.2229703962802887, -0.3334577679634094, -0.005583868827670813, -0.28414401412010193, 0.017490126192569733, -0.03613835573196411, 0.37039628624916077, 0.08583065867424011, -0.16167399287223816, -0.07720248401165009, 0.2681468725204468, 0.524290144443512, -0.0015467554330825806, 0.23366768658161163, 0.6055750846862793, -0.3482533097267151, 0.14448170363903046, 0.3221675455570221, -0.27995389699935913, 0.317472904920578, 0.3075569272041321, -0.026288166642189026, 0.24600426852703094, 0.3709750175476074, -0.03890198841691017, -0.12039179354906082, 0.185853973031044, -0.5328410863876343, 0.10117857903242111, 0.09151793271303177, 0.2516235113143921, 0.169590562582016, 0.10876624286174774, 0.2660508453845978, -0.45638802647590637, -0.10589736700057983, 0.1480550765991211, -0.08661796897649765, -0.04589790478348732, 0.26305195689201355, -0.31246259808540344, -0.2088892012834549, -0.12154282629489899, 0.014511166140437126, -0.05214262008666992, 0.47702381014823914, -0.12082330882549286, -0.1491936296224594, -0.2542015314102173, -0.13639026880264282, 0.19193711876869202, 0.23135653138160706, -0.15864534676074982, 0.13393999636173248, 0.4068042039871216, -0.1255713850259781, 0.08318474888801575, 0.14607764780521393, 0.40524035692214966, 0.3890931308269501, -0.26975390315055847, 0.05043639987707138, -0.20119033753871918, -0.21171623468399048, -0.08914116770029068, 0.2232072800397873, 0.2891916036605835, -0.1578652709722519, -0.07241775095462799, 0.143889918923378, -0.2418784499168396, 0.6210914850234985, -0.15714013576507568, -0.048325855284929276, -0.02286602556705475, 0.3200870752334595, -0.11911197006702423, -0.10389422625303268, -0.10232219099998474, -0.11152967065572739, -0.4000644087791443, -0.2703824043273926, 0.13366934657096863, 0.3149121105670929, -0.020835308358073235, -0.32581570744514465, 0.08655594289302826, 0.006684686988592148, 0.1617560237646103, 0.007726557552814484, -0.16805630922317505, -0.10655374825000763, 0.20143167674541473, -0.1328776478767395, -0.2206721305847168, -0.23653921484947205, -0.17470960319042206, 0.05034226179122925, 0.09451331198215485, 0.1812092363834381, 0.10838571190834045, 0.18762372434139252, -0.06261260062456131, 0.26296886801719666, -0.15362034738063812, -0.46480780839920044, 0.11054010689258575, 0.11792317032814026, 0.300773561000824, 0.19972124695777893, -0.41206902265548706, 0.27839842438697815, -0.5090740919113159, 0.1478305459022522, 0.06915266811847687, 0.032708361744880676, 0.4838721752166748, 0.3174029290676117, 0.4250282347202301, 0.12566906213760376, -0.004066929221153259, -0.272941529750824, -0.27549248933792114, -0.2156791090965271, -0.4665088951587677, -0.17304134368896484, 0.4485468864440918, -0.11266866326332092, 0.35898011922836304, -0.24911421537399292, -0.5427915453910828, -0.31719714403152466, 0.12963326275348663, 0.07866109162569046, -0.3787127137184143, -0.06397159397602081, 0.18038593232631683, 0.00831615924835205, 0.06296881288290024, -0.10598289966583252, 0.04215960204601288, -0.1256779432296753, -0.08110874891281128, -0.12082691490650177, -0.5962765216827393, 0.5595332384109497, -0.0009504416957497597, -0.02018028497695923, 0.07973378896713257, 0.24942618608474731, 0.8977795839309692, 0.12242799252271652, -0.5830606818199158, 0.024546556174755096, 0.2819695770740509, 0.21936649084091187, -0.4289262294769287, 0.019094198942184448, 0.12419411540031433, -0.1958754062652588, -0.029514815658330917, -0.08415891230106354, 0.07387886196374893, -0.11359846591949463, 0.18106567859649658, -0.09240315854549408 ]
https://github.com/huggingface/datasets/pull/2074
Fix size categories in YAML Tags
We can merge this one once the PR on dataset sizes is merged on `datasets-tagging` ;)
This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too.
16
text: Fix size categories in YAML Tags This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too. We can merge this one once the PR on dataset sizes is merged on `datasets-tagging` ;)
[ 0.13570840656757355, -0.16369587182998657, -0.16992522776126862, 0.06400378793478012, 0.5627598762512207, 0.04084876924753189, 0.2803543508052826, 0.13068334758281708, -0.20304599404335022, -0.05140462517738342, 0.20192950963974, -0.34266817569732666, 0.002866317518055439, 0.5861956477165222, 0.11881574243307114, -0.059470854699611664, 0.05964416638016701, 0.08426179736852646, 0.017957236617803574, -0.046733129769563675, -0.035164687782526016, -0.05400608479976654, 0.25452709197998047, -0.06006850302219391, 0.0033751262817531824, 0.050553012639284134, -0.2007070928812027, 0.12323832511901855, -0.519839882850647, -0.5176283717155457, 0.07608918845653534, 0.08216969668865204, -0.007380892522633076, -0.15343260765075684, -0.00011226798233110458, -0.17836102843284607, 0.15237383544445038, -0.3539685904979706, -0.02261146903038025, -0.038056790828704834, 0.13543978333473206, -0.43869611620903015, -0.026425672695040703, 0.04097897559404373, 0.16240927577018738, -0.326404869556427, -0.2537377178668976, -0.2460063397884369, 0.13663740456104279, 0.26708197593688965, 0.1636194884777069, -0.2485186904668808, 0.24672336876392365, 0.05968775972723961, 0.2871354818344116, 0.2899057865142822, -0.17455868422985077, 0.10791362822055817, 0.5678572654724121, 0.16050976514816284, 0.13568611443042755, 0.6227396726608276, 0.08356068283319473, 0.08530634641647339, 0.4848502278327942, -0.1703285127878189, 0.3938594162464142, -0.5893052816390991, 0.12935809791088104, 0.06536161154508591, 0.38776764273643494, -0.292283296585083, -0.3396238684654236, -0.5900073051452637, -0.2571059763431549, -0.5815608501434326, -0.09903372079133987, 0.5329484939575195, -0.07993808388710022, -0.007656484842300415, -0.017493361607193947, -0.11847393959760666, -0.10652767866849899, -0.02869708091020584, 0.21567592024803162, 0.3719518184661865, 0.13469862937927246, -0.0340515673160553, -0.017476048320531845, 0.0057360827922821045, 0.1745864599943161, 0.09221512824296951, -0.31566232442855835, 0.14141348004341125, -0.019086744636297226, 0.1325961798429489, 0.1290481835603714, 0.12529000639915466, 0.3937523365020752, -0.16377320885658264, 0.21403053402900696, 0.06012335419654846, 0.10428301990032196, -0.1372600495815277, 0.17568643391132355, 0.3827287554740906, 0.17140960693359375, 0.23533810675144196, -0.2524731159210205, 0.014566263183951378, 0.3543398976325989, 0.019020242616534233, -0.022821318358182907, -0.252491295337677, -0.03799590468406677, 0.16822174191474915, 0.08811808377504349, -0.07595108449459076, -0.19783605635166168, 0.1224035993218422, -0.5353314876556396, 0.01341010071337223, 0.03025033324956894, 0.3057418763637543, 0.0020791771821677685, 0.35420241951942444, 0.05461768060922623, 0.18670547008514404, 0.08529964834451675, -0.04383617639541626, -0.14011001586914062, -0.05027099326252937, -0.08989681303501129, 0.007779779378324747, 0.019613116979599, -0.1432381123304367, 0.27683091163635254, 0.04216167330741882, -0.19920499622821808, 0.031328700482845306, -0.0830976814031601, 0.23462772369384766, 0.06392769515514374, 0.2781766653060913, -0.17551478743553162, -0.16125628352165222, 0.18309076130390167, -0.07604260742664337, -0.08046071231365204, 0.3820238709449768, -0.3187418282032013, -0.284432977437973, -0.30619898438453674, 0.29303810000419617, -0.06239867955446243, 0.12673375010490417, -0.1273055374622345, 0.39027348160743713, 0.2863270342350006, 0.09151971340179443, 0.30455970764160156, -0.212736114859581, 0.3153548538684845, -0.04639974981546402, -0.1035638228058815, 0.03258929401636124, -0.1303795427083969, -0.3552324175834656, -0.14436666667461395, 0.2048366218805313, 0.46423155069351196, -0.06376151740550995, 0.0031982518266886473, 0.06445324420928955, 0.0081715676933527, 0.2035025805234909, 0.55058354139328, -0.37293487787246704, -0.4173748195171356, -0.058578141033649445, 0.21373040974140167, 0.07193920761346817, 0.23912322521209717, -0.0878986269235611, 0.34822744131088257, 0.19300201535224915, -0.07503515481948853, -0.1761304885149002, -0.2910340428352356, 0.05455388128757477, -0.42734935879707336, 0.07168504595756531, 0.04897178336977959, 0.03453182429075241, 0.278259813785553, -0.09086117893457413, 0.21043714880943298, 0.31474366784095764, 0.43799886107444763, -0.16335391998291016, 0.3049815893173218, 0.09901602566242218, 0.16423732042312622, 0.17798738181591034, 0.2975245416164398, 0.07023129612207413, -0.06839650124311447, 0.08687133342027664, -0.1642005741596222, 0.1942301243543625, 0.05075659230351448, -0.2097935825586319, -0.2996067702770233, -0.09042234718799591, -0.052042681723833084, -0.5454548597335815, 0.10248909890651703, -0.03284414857625961, -0.007144106552004814, -0.015244442969560623, -0.057939134538173676, 0.5133849382400513, -0.20134401321411133, 0.24095869064331055, 0.27971479296684265, 0.09694333374500275, -0.07557034492492676, -0.10045287013053894, 0.08075582981109619, 0.3464769721031189, -0.0018279291689395905, -0.0023142832797020674, -0.25137728452682495, 0.2371577024459839, -0.16494308412075043, -0.2023334950208664, -0.09639858454465866, 0.31229954957962036, 0.4280649721622467, 0.20084801316261292, -0.0386260449886322, 0.11380349099636078, 0.1748931109905243, 0.08538248389959335, -0.24588656425476074, 0.2142537236213684, -0.24233822524547577, 0.11081559211015701, 0.04701421409845352, 0.050600893795490265, 0.25451165437698364, 0.2363370656967163, -0.3429230749607086, -0.1774715632200241, 0.2872522175312042, -0.4143451154232025, 0.016935065388679504, -0.08801260590553284, -0.009677864611148834, 0.49110254645347595, 0.4572601914405823, -0.09124112129211426, 0.007837332785129547, 0.3161756992340088, -0.2409672737121582, -0.09626972675323486, 0.16865910589694977, 0.21623297035694122, 0.27836722135543823, 0.30674535036087036, -0.25280308723449707, 0.00457332469522953, 0.3315083086490631, -0.17089802026748657, 0.30518513917922974, 0.24363701045513153, -0.15056143701076508, 0.231205016374588, 0.5651274919509888, -0.09284227341413498, -0.27032899856567383, -0.10679358243942261, -0.19912774860858917, 0.21212854981422424, -0.19865307211875916, 0.12970119714736938, -0.016244802623987198, -0.1855059564113617, 0.11292219161987305, -0.5710452795028687, -0.23269131779670715, -0.3120012581348419, 0.2872777581214905, -0.0020894184708595276, -0.07376856356859207, -0.023826254531741142, -0.07339055836200714, 0.0673021674156189, 0.2123124748468399, 0.3172897398471832, -0.26193052530288696, -0.15279246866703033, -0.1040005311369896, 0.12895728647708893, -0.213138148188591, -0.30538463592529297, 0.3584492802619934, -0.2988921105861664, 0.19389645755290985, -0.11924955993890762, -0.6878717541694641, 0.06544241309165955, -0.10117995738983154, 0.21840399503707886, -0.0225914865732193, 0.05234973877668381, -0.11017534881830215, -0.039990875869989395, 0.10818956792354584, 0.3521837294101715, -0.24709443747997284, -0.13692888617515564, -0.07604120671749115, 0.05317604914307594, -0.41766083240509033, -0.3844151794910431, -0.4394811689853668, -0.41286566853523254, 0.33042585849761963, 0.2425500899553299, 0.1517217457294464, 0.2678951621055603, -0.1615304797887802, -0.04920896142721176, 0.20713339745998383, 0.021764099597930908, -0.13181346654891968, 0.1854735016822815, 0.24271506071090698, -0.10025648772716522, -0.22081749141216278, -0.009527895599603653, -0.191294863820076, -0.09006147086620331, -0.0006653890013694763, -0.24210800230503082, 0.08477555960416794, 0.11774688959121704, -0.18359139561653137, 0.0025946348905563354, -0.21269449591636658, 0.39624178409576416, 0.25606149435043335, -0.006475048139691353, -0.1951999068260193, 0.15729592740535736, -0.09743773192167282, 0.1756283938884735, 0.3484587073326111, -0.28361767530441284, 0.19787180423736572, 0.15488474071025848, 0.3711366653442383, -0.15502114593982697, -0.06711134314537048, 0.3850499987602234, 0.16780751943588257, 0.10211611539125443, -0.12167046219110489, -0.3813041150569916, 0.3549632132053375, -0.00033961236476898193, 0.13806377351284027, 0.2529083490371704, 0.251603901386261, -0.01896345429122448, 0.20154555141925812, 0.12950147688388824, -0.3918929100036621, -0.10014083981513977, -0.11318926513195038, -0.13254867494106293, -0.019458740949630737, 0.020672578364610672, 0.07724753767251968, -0.1546720415353775, -0.30026477575302124, -0.19596469402313232, 0.33781272172927856, 0.003581404685974121, 0.3406068980693817, -0.10637778043746948, -0.1358620673418045, -0.3226148784160614, 0.2612762749195099, 0.015166733413934708, -0.423921674489975, 0.046964388340711594, -0.18139564990997314, -0.14910998940467834, 0.0020741077605634928, 0.102446049451828, 0.03395480290055275, -0.28679609298706055, -0.05772663652896881, 0.30738601088523865, -0.02641836553812027, -0.22742806375026703, -0.06475497037172318, 0.3482634723186493, 0.21925143897533417, 0.09816379100084305, -0.38843321800231934, 0.012780718505382538, -0.09319910407066345, -0.010701421648263931, -0.04774230346083641, 0.2804378271102905, -0.10324988514184952, -0.22023698687553406, -0.4001869261264801, 0.17624147236347198, 0.05948641151189804, 0.3567267954349518, -0.2408880740404129, -0.24740254878997803, 0.10471934080123901, -0.040065642446279526, 0.07766686379909515, 0.05101815238595009, 0.3481082618236542, -0.0759330615401268, -0.011834053322672844, -0.25174593925476074, 0.63190758228302, 0.47833606600761414, 0.21303224563598633, 0.39466357231140137, -0.4731231927871704, 0.13189604878425598, -0.12635333836078644, 0.19219568371772766, 0.21951860189437866, 0.02956683188676834, -0.10399053245782852, 0.028112631291151047, 0.3084443509578705, 0.12962090969085693, 0.5261604189872742, 0.10411277413368225, -0.082054503262043, -0.15836480259895325, -0.4054059386253357, 0.10854152590036392, -0.13391940295696259, -0.020817764103412628, 0.5825765132904053, -0.04540321230888367, -0.374691903591156, 0.15300612151622772, 0.10185935348272324, 1.0142494440078735, -0.036239564418792725, -0.11258973181247711, 0.07487038522958755, -0.182306170463562, 0.08931916952133179, -0.3253489136695862, 0.3657829165458679, -0.26022136211395264, 0.25029194355010986, -0.029988644644618034, 0.14254942536354065, 0.05973221734166145, -0.17174944281578064, -0.4217219650745392, 0.24855752289295197, 0.003690749406814575, -0.03157487139105797, 0.06049620360136032, -0.16813641786575317, -0.38881728053092957, -0.30702948570251465, -0.15920709073543549, 0.11007201671600342, -0.21604691445827484, 0.22885090112686157, -0.11328084021806717, -0.26614534854888916, -0.22777605056762695, -0.3253612518310547, -0.48516106605529785, -0.16974854469299316, -0.7316581606864929, -0.29450148344039917, -0.23179012537002563, -0.09837333112955093, -0.3405430018901825, 0.44640690088272095, 0.01776926964521408, -0.0242011658847332, -0.1564563661813736, 0.2601523697376251, -0.04520750045776367, 0.043583840131759644, 0.3158396780490875, 0.12666472792625427, 0.11178392916917801, -0.18057429790496826, -0.15815067291259766, -0.062327705323696136, -0.10427799075841904, -0.005086582154035568, -0.5603070259094238, -0.06505385041236877, 0.418038010597229, -0.23386403918266296, 0.18954209983348846, -0.02833053469657898, -0.20626111328601837, -0.33511534333229065, 0.13224098086357117, -0.03815227001905441, 0.025899643078446388, -0.24809077382087708, -0.06403863430023193, -0.04080842062830925, -0.3563956916332245, -0.13157960772514343, 0.05791117250919342, 0.20141196250915527, -0.13569627702236176, -0.0003864280879497528, -0.08710651099681854, -0.187099426984787, 0.11108825355768204, -0.1189204752445221, -0.1571529358625412, -0.03728560358285904, -0.07975839823484421, -0.5473974347114563, -0.00005558354314416647, 0.3544871211051941, 0.11887957900762558, 0.24172168970108032, 0.006012279540300369, -0.2591937780380249, -0.3652990162372589, 0.3029780387878418, -0.1045641154050827, -0.09246677160263062, -0.3297942578792572, -0.01985025778412819, -0.0012600459158420563, 0.3097035884857178, -0.30331316590309143, -0.2519492506980896, 0.15636205673217773, 0.0798749327659607, -0.08665942400693893, 0.02783200331032276, 0.27584123611450195, -0.006365150213241577, 0.07031358033418655, 0.10616602003574371, -0.17983484268188477, -0.19492807984352112, -0.105133056640625, 0.1495874971151352, -0.06635357439517975, 0.03772301226854324, -0.050533726811409, 0.16943369805812836, -0.016171894967556, -0.21993613243103027, 0.13003219664096832, -0.06242838501930237, 0.071836918592453, -0.08365057408809662, 0.2741973400115967, 0.17377522587776184, 0.28112971782684326, -0.29306110739707947, 0.02440374344587326, 0.3864933252334595, -0.0582820288836956, -0.09107378125190735, 0.23694267868995667, -0.024327334016561508, -0.16258662939071655, 0.046459514647722244, 0.18024519085884094, 0.08085328340530396, 0.4330109655857086, -0.12950478494167328, 0.07771725952625275, 0.1948661506175995, 0.5047270059585571, 0.12233561277389526, 0.10356712341308594, 0.15631960332393646, -0.17364925146102905, 0.2229703962802887, -0.3334577679634094, -0.005583868827670813, -0.28414401412010193, 0.017490126192569733, -0.03613835573196411, 0.37039628624916077, 0.08583065867424011, -0.16167399287223816, -0.07720248401165009, 0.2681468725204468, 0.524290144443512, -0.0015467554330825806, 0.23366768658161163, 0.6055750846862793, -0.3482533097267151, 0.14448170363903046, 0.3221675455570221, -0.27995389699935913, 0.317472904920578, 0.3075569272041321, -0.026288166642189026, 0.24600426852703094, 0.3709750175476074, -0.03890198841691017, -0.12039179354906082, 0.185853973031044, -0.5328410863876343, 0.10117857903242111, 0.09151793271303177, 0.2516235113143921, 0.169590562582016, 0.10876624286174774, 0.2660508453845978, -0.45638802647590637, -0.10589736700057983, 0.1480550765991211, -0.08661796897649765, -0.04589790478348732, 0.26305195689201355, -0.31246259808540344, -0.2088892012834549, -0.12154282629489899, 0.014511166140437126, -0.05214262008666992, 0.47702381014823914, -0.12082330882549286, -0.1491936296224594, -0.2542015314102173, -0.13639026880264282, 0.19193711876869202, 0.23135653138160706, -0.15864534676074982, 0.13393999636173248, 0.4068042039871216, -0.1255713850259781, 0.08318474888801575, 0.14607764780521393, 0.40524035692214966, 0.3890931308269501, -0.26975390315055847, 0.05043639987707138, -0.20119033753871918, -0.21171623468399048, -0.08914116770029068, 0.2232072800397873, 0.2891916036605835, -0.1578652709722519, -0.07241775095462799, 0.143889918923378, -0.2418784499168396, 0.6210914850234985, -0.15714013576507568, -0.048325855284929276, -0.02286602556705475, 0.3200870752334595, -0.11911197006702423, -0.10389422625303268, -0.10232219099998474, -0.11152967065572739, -0.4000644087791443, -0.2703824043273926, 0.13366934657096863, 0.3149121105670929, -0.020835308358073235, -0.32581570744514465, 0.08655594289302826, 0.006684686988592148, 0.1617560237646103, 0.007726557552814484, -0.16805630922317505, -0.10655374825000763, 0.20143167674541473, -0.1328776478767395, -0.2206721305847168, -0.23653921484947205, -0.17470960319042206, 0.05034226179122925, 0.09451331198215485, 0.1812092363834381, 0.10838571190834045, 0.18762372434139252, -0.06261260062456131, 0.26296886801719666, -0.15362034738063812, -0.46480780839920044, 0.11054010689258575, 0.11792317032814026, 0.300773561000824, 0.19972124695777893, -0.41206902265548706, 0.27839842438697815, -0.5090740919113159, 0.1478305459022522, 0.06915266811847687, 0.032708361744880676, 0.4838721752166748, 0.3174029290676117, 0.4250282347202301, 0.12566906213760376, -0.004066929221153259, -0.272941529750824, -0.27549248933792114, -0.2156791090965271, -0.4665088951587677, -0.17304134368896484, 0.4485468864440918, -0.11266866326332092, 0.35898011922836304, -0.24911421537399292, -0.5427915453910828, -0.31719714403152466, 0.12963326275348663, 0.07866109162569046, -0.3787127137184143, -0.06397159397602081, 0.18038593232631683, 0.00831615924835205, 0.06296881288290024, -0.10598289966583252, 0.04215960204601288, -0.1256779432296753, -0.08110874891281128, -0.12082691490650177, -0.5962765216827393, 0.5595332384109497, -0.0009504416957497597, -0.02018028497695923, 0.07973378896713257, 0.24942618608474731, 0.8977795839309692, 0.12242799252271652, -0.5830606818199158, 0.024546556174755096, 0.2819695770740509, 0.21936649084091187, -0.4289262294769287, 0.019094198942184448, 0.12419411540031433, -0.1958754062652588, -0.029514815658330917, -0.08415891230106354, 0.07387886196374893, -0.11359846591949463, 0.18106567859649658, -0.09240315854549408 ]
https://github.com/huggingface/datasets/pull/2074
Fix size categories in YAML Tags
Hi @lhoestq, One problem with this approach is that for datasets like `ccaligned_multilingual`, the infos won't be complete because we don't have all configs. In that case, people might face trouble finding the datatset using the tag. Although, they probably won't be checking the size tag for a dataset like that. What do you think? CC @theo-m
This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too.
57
text: Fix size categories in YAML Tags This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too. Hi @lhoestq, One problem with this approach is that for datasets like `ccaligned_multilingual`, the infos won't be complete because we don't have all configs. In that case, people might face trouble finding the datatset using the tag. Although, they probably won't be checking the size tag for a dataset like that. What do you think? CC @theo-m
[ 0.13570840656757355, -0.16369587182998657, -0.16992522776126862, 0.06400378793478012, 0.5627598762512207, 0.04084876924753189, 0.2803543508052826, 0.13068334758281708, -0.20304599404335022, -0.05140462517738342, 0.20192950963974, -0.34266817569732666, 0.002866317518055439, 0.5861956477165222, 0.11881574243307114, -0.059470854699611664, 0.05964416638016701, 0.08426179736852646, 0.017957236617803574, -0.046733129769563675, -0.035164687782526016, -0.05400608479976654, 0.25452709197998047, -0.06006850302219391, 0.0033751262817531824, 0.050553012639284134, -0.2007070928812027, 0.12323832511901855, -0.519839882850647, -0.5176283717155457, 0.07608918845653534, 0.08216969668865204, -0.007380892522633076, -0.15343260765075684, -0.00011226798233110458, -0.17836102843284607, 0.15237383544445038, -0.3539685904979706, -0.02261146903038025, -0.038056790828704834, 0.13543978333473206, -0.43869611620903015, -0.026425672695040703, 0.04097897559404373, 0.16240927577018738, -0.326404869556427, -0.2537377178668976, -0.2460063397884369, 0.13663740456104279, 0.26708197593688965, 0.1636194884777069, -0.2485186904668808, 0.24672336876392365, 0.05968775972723961, 0.2871354818344116, 0.2899057865142822, -0.17455868422985077, 0.10791362822055817, 0.5678572654724121, 0.16050976514816284, 0.13568611443042755, 0.6227396726608276, 0.08356068283319473, 0.08530634641647339, 0.4848502278327942, -0.1703285127878189, 0.3938594162464142, -0.5893052816390991, 0.12935809791088104, 0.06536161154508591, 0.38776764273643494, -0.292283296585083, -0.3396238684654236, -0.5900073051452637, -0.2571059763431549, -0.5815608501434326, -0.09903372079133987, 0.5329484939575195, -0.07993808388710022, -0.007656484842300415, -0.017493361607193947, -0.11847393959760666, -0.10652767866849899, -0.02869708091020584, 0.21567592024803162, 0.3719518184661865, 0.13469862937927246, -0.0340515673160553, -0.017476048320531845, 0.0057360827922821045, 0.1745864599943161, 0.09221512824296951, -0.31566232442855835, 0.14141348004341125, -0.019086744636297226, 0.1325961798429489, 0.1290481835603714, 0.12529000639915466, 0.3937523365020752, -0.16377320885658264, 0.21403053402900696, 0.06012335419654846, 0.10428301990032196, -0.1372600495815277, 0.17568643391132355, 0.3827287554740906, 0.17140960693359375, 0.23533810675144196, -0.2524731159210205, 0.014566263183951378, 0.3543398976325989, 0.019020242616534233, -0.022821318358182907, -0.252491295337677, -0.03799590468406677, 0.16822174191474915, 0.08811808377504349, -0.07595108449459076, -0.19783605635166168, 0.1224035993218422, -0.5353314876556396, 0.01341010071337223, 0.03025033324956894, 0.3057418763637543, 0.0020791771821677685, 0.35420241951942444, 0.05461768060922623, 0.18670547008514404, 0.08529964834451675, -0.04383617639541626, -0.14011001586914062, -0.05027099326252937, -0.08989681303501129, 0.007779779378324747, 0.019613116979599, -0.1432381123304367, 0.27683091163635254, 0.04216167330741882, -0.19920499622821808, 0.031328700482845306, -0.0830976814031601, 0.23462772369384766, 0.06392769515514374, 0.2781766653060913, -0.17551478743553162, -0.16125628352165222, 0.18309076130390167, -0.07604260742664337, -0.08046071231365204, 0.3820238709449768, -0.3187418282032013, -0.284432977437973, -0.30619898438453674, 0.29303810000419617, -0.06239867955446243, 0.12673375010490417, -0.1273055374622345, 0.39027348160743713, 0.2863270342350006, 0.09151971340179443, 0.30455970764160156, -0.212736114859581, 0.3153548538684845, -0.04639974981546402, -0.1035638228058815, 0.03258929401636124, -0.1303795427083969, -0.3552324175834656, -0.14436666667461395, 0.2048366218805313, 0.46423155069351196, -0.06376151740550995, 0.0031982518266886473, 0.06445324420928955, 0.0081715676933527, 0.2035025805234909, 0.55058354139328, -0.37293487787246704, -0.4173748195171356, -0.058578141033649445, 0.21373040974140167, 0.07193920761346817, 0.23912322521209717, -0.0878986269235611, 0.34822744131088257, 0.19300201535224915, -0.07503515481948853, -0.1761304885149002, -0.2910340428352356, 0.05455388128757477, -0.42734935879707336, 0.07168504595756531, 0.04897178336977959, 0.03453182429075241, 0.278259813785553, -0.09086117893457413, 0.21043714880943298, 0.31474366784095764, 0.43799886107444763, -0.16335391998291016, 0.3049815893173218, 0.09901602566242218, 0.16423732042312622, 0.17798738181591034, 0.2975245416164398, 0.07023129612207413, -0.06839650124311447, 0.08687133342027664, -0.1642005741596222, 0.1942301243543625, 0.05075659230351448, -0.2097935825586319, -0.2996067702770233, -0.09042234718799591, -0.052042681723833084, -0.5454548597335815, 0.10248909890651703, -0.03284414857625961, -0.007144106552004814, -0.015244442969560623, -0.057939134538173676, 0.5133849382400513, -0.20134401321411133, 0.24095869064331055, 0.27971479296684265, 0.09694333374500275, -0.07557034492492676, -0.10045287013053894, 0.08075582981109619, 0.3464769721031189, -0.0018279291689395905, -0.0023142832797020674, -0.25137728452682495, 0.2371577024459839, -0.16494308412075043, -0.2023334950208664, -0.09639858454465866, 0.31229954957962036, 0.4280649721622467, 0.20084801316261292, -0.0386260449886322, 0.11380349099636078, 0.1748931109905243, 0.08538248389959335, -0.24588656425476074, 0.2142537236213684, -0.24233822524547577, 0.11081559211015701, 0.04701421409845352, 0.050600893795490265, 0.25451165437698364, 0.2363370656967163, -0.3429230749607086, -0.1774715632200241, 0.2872522175312042, -0.4143451154232025, 0.016935065388679504, -0.08801260590553284, -0.009677864611148834, 0.49110254645347595, 0.4572601914405823, -0.09124112129211426, 0.007837332785129547, 0.3161756992340088, -0.2409672737121582, -0.09626972675323486, 0.16865910589694977, 0.21623297035694122, 0.27836722135543823, 0.30674535036087036, -0.25280308723449707, 0.00457332469522953, 0.3315083086490631, -0.17089802026748657, 0.30518513917922974, 0.24363701045513153, -0.15056143701076508, 0.231205016374588, 0.5651274919509888, -0.09284227341413498, -0.27032899856567383, -0.10679358243942261, -0.19912774860858917, 0.21212854981422424, -0.19865307211875916, 0.12970119714736938, -0.016244802623987198, -0.1855059564113617, 0.11292219161987305, -0.5710452795028687, -0.23269131779670715, -0.3120012581348419, 0.2872777581214905, -0.0020894184708595276, -0.07376856356859207, -0.023826254531741142, -0.07339055836200714, 0.0673021674156189, 0.2123124748468399, 0.3172897398471832, -0.26193052530288696, -0.15279246866703033, -0.1040005311369896, 0.12895728647708893, -0.213138148188591, -0.30538463592529297, 0.3584492802619934, -0.2988921105861664, 0.19389645755290985, -0.11924955993890762, -0.6878717541694641, 0.06544241309165955, -0.10117995738983154, 0.21840399503707886, -0.0225914865732193, 0.05234973877668381, -0.11017534881830215, -0.039990875869989395, 0.10818956792354584, 0.3521837294101715, -0.24709443747997284, -0.13692888617515564, -0.07604120671749115, 0.05317604914307594, -0.41766083240509033, -0.3844151794910431, -0.4394811689853668, -0.41286566853523254, 0.33042585849761963, 0.2425500899553299, 0.1517217457294464, 0.2678951621055603, -0.1615304797887802, -0.04920896142721176, 0.20713339745998383, 0.021764099597930908, -0.13181346654891968, 0.1854735016822815, 0.24271506071090698, -0.10025648772716522, -0.22081749141216278, -0.009527895599603653, -0.191294863820076, -0.09006147086620331, -0.0006653890013694763, -0.24210800230503082, 0.08477555960416794, 0.11774688959121704, -0.18359139561653137, 0.0025946348905563354, -0.21269449591636658, 0.39624178409576416, 0.25606149435043335, -0.006475048139691353, -0.1951999068260193, 0.15729592740535736, -0.09743773192167282, 0.1756283938884735, 0.3484587073326111, -0.28361767530441284, 0.19787180423736572, 0.15488474071025848, 0.3711366653442383, -0.15502114593982697, -0.06711134314537048, 0.3850499987602234, 0.16780751943588257, 0.10211611539125443, -0.12167046219110489, -0.3813041150569916, 0.3549632132053375, -0.00033961236476898193, 0.13806377351284027, 0.2529083490371704, 0.251603901386261, -0.01896345429122448, 0.20154555141925812, 0.12950147688388824, -0.3918929100036621, -0.10014083981513977, -0.11318926513195038, -0.13254867494106293, -0.019458740949630737, 0.020672578364610672, 0.07724753767251968, -0.1546720415353775, -0.30026477575302124, -0.19596469402313232, 0.33781272172927856, 0.003581404685974121, 0.3406068980693817, -0.10637778043746948, -0.1358620673418045, -0.3226148784160614, 0.2612762749195099, 0.015166733413934708, -0.423921674489975, 0.046964388340711594, -0.18139564990997314, -0.14910998940467834, 0.0020741077605634928, 0.102446049451828, 0.03395480290055275, -0.28679609298706055, -0.05772663652896881, 0.30738601088523865, -0.02641836553812027, -0.22742806375026703, -0.06475497037172318, 0.3482634723186493, 0.21925143897533417, 0.09816379100084305, -0.38843321800231934, 0.012780718505382538, -0.09319910407066345, -0.010701421648263931, -0.04774230346083641, 0.2804378271102905, -0.10324988514184952, -0.22023698687553406, -0.4001869261264801, 0.17624147236347198, 0.05948641151189804, 0.3567267954349518, -0.2408880740404129, -0.24740254878997803, 0.10471934080123901, -0.040065642446279526, 0.07766686379909515, 0.05101815238595009, 0.3481082618236542, -0.0759330615401268, -0.011834053322672844, -0.25174593925476074, 0.63190758228302, 0.47833606600761414, 0.21303224563598633, 0.39466357231140137, -0.4731231927871704, 0.13189604878425598, -0.12635333836078644, 0.19219568371772766, 0.21951860189437866, 0.02956683188676834, -0.10399053245782852, 0.028112631291151047, 0.3084443509578705, 0.12962090969085693, 0.5261604189872742, 0.10411277413368225, -0.082054503262043, -0.15836480259895325, -0.4054059386253357, 0.10854152590036392, -0.13391940295696259, -0.020817764103412628, 0.5825765132904053, -0.04540321230888367, -0.374691903591156, 0.15300612151622772, 0.10185935348272324, 1.0142494440078735, -0.036239564418792725, -0.11258973181247711, 0.07487038522958755, -0.182306170463562, 0.08931916952133179, -0.3253489136695862, 0.3657829165458679, -0.26022136211395264, 0.25029194355010986, -0.029988644644618034, 0.14254942536354065, 0.05973221734166145, -0.17174944281578064, -0.4217219650745392, 0.24855752289295197, 0.003690749406814575, -0.03157487139105797, 0.06049620360136032, -0.16813641786575317, -0.38881728053092957, -0.30702948570251465, -0.15920709073543549, 0.11007201671600342, -0.21604691445827484, 0.22885090112686157, -0.11328084021806717, -0.26614534854888916, -0.22777605056762695, -0.3253612518310547, -0.48516106605529785, -0.16974854469299316, -0.7316581606864929, -0.29450148344039917, -0.23179012537002563, -0.09837333112955093, -0.3405430018901825, 0.44640690088272095, 0.01776926964521408, -0.0242011658847332, -0.1564563661813736, 0.2601523697376251, -0.04520750045776367, 0.043583840131759644, 0.3158396780490875, 0.12666472792625427, 0.11178392916917801, -0.18057429790496826, -0.15815067291259766, -0.062327705323696136, -0.10427799075841904, -0.005086582154035568, -0.5603070259094238, -0.06505385041236877, 0.418038010597229, -0.23386403918266296, 0.18954209983348846, -0.02833053469657898, -0.20626111328601837, -0.33511534333229065, 0.13224098086357117, -0.03815227001905441, 0.025899643078446388, -0.24809077382087708, -0.06403863430023193, -0.04080842062830925, -0.3563956916332245, -0.13157960772514343, 0.05791117250919342, 0.20141196250915527, -0.13569627702236176, -0.0003864280879497528, -0.08710651099681854, -0.187099426984787, 0.11108825355768204, -0.1189204752445221, -0.1571529358625412, -0.03728560358285904, -0.07975839823484421, -0.5473974347114563, -0.00005558354314416647, 0.3544871211051941, 0.11887957900762558, 0.24172168970108032, 0.006012279540300369, -0.2591937780380249, -0.3652990162372589, 0.3029780387878418, -0.1045641154050827, -0.09246677160263062, -0.3297942578792572, -0.01985025778412819, -0.0012600459158420563, 0.3097035884857178, -0.30331316590309143, -0.2519492506980896, 0.15636205673217773, 0.0798749327659607, -0.08665942400693893, 0.02783200331032276, 0.27584123611450195, -0.006365150213241577, 0.07031358033418655, 0.10616602003574371, -0.17983484268188477, -0.19492807984352112, -0.105133056640625, 0.1495874971151352, -0.06635357439517975, 0.03772301226854324, -0.050533726811409, 0.16943369805812836, -0.016171894967556, -0.21993613243103027, 0.13003219664096832, -0.06242838501930237, 0.071836918592453, -0.08365057408809662, 0.2741973400115967, 0.17377522587776184, 0.28112971782684326, -0.29306110739707947, 0.02440374344587326, 0.3864933252334595, -0.0582820288836956, -0.09107378125190735, 0.23694267868995667, -0.024327334016561508, -0.16258662939071655, 0.046459514647722244, 0.18024519085884094, 0.08085328340530396, 0.4330109655857086, -0.12950478494167328, 0.07771725952625275, 0.1948661506175995, 0.5047270059585571, 0.12233561277389526, 0.10356712341308594, 0.15631960332393646, -0.17364925146102905, 0.2229703962802887, -0.3334577679634094, -0.005583868827670813, -0.28414401412010193, 0.017490126192569733, -0.03613835573196411, 0.37039628624916077, 0.08583065867424011, -0.16167399287223816, -0.07720248401165009, 0.2681468725204468, 0.524290144443512, -0.0015467554330825806, 0.23366768658161163, 0.6055750846862793, -0.3482533097267151, 0.14448170363903046, 0.3221675455570221, -0.27995389699935913, 0.317472904920578, 0.3075569272041321, -0.026288166642189026, 0.24600426852703094, 0.3709750175476074, -0.03890198841691017, -0.12039179354906082, 0.185853973031044, -0.5328410863876343, 0.10117857903242111, 0.09151793271303177, 0.2516235113143921, 0.169590562582016, 0.10876624286174774, 0.2660508453845978, -0.45638802647590637, -0.10589736700057983, 0.1480550765991211, -0.08661796897649765, -0.04589790478348732, 0.26305195689201355, -0.31246259808540344, -0.2088892012834549, -0.12154282629489899, 0.014511166140437126, -0.05214262008666992, 0.47702381014823914, -0.12082330882549286, -0.1491936296224594, -0.2542015314102173, -0.13639026880264282, 0.19193711876869202, 0.23135653138160706, -0.15864534676074982, 0.13393999636173248, 0.4068042039871216, -0.1255713850259781, 0.08318474888801575, 0.14607764780521393, 0.40524035692214966, 0.3890931308269501, -0.26975390315055847, 0.05043639987707138, -0.20119033753871918, -0.21171623468399048, -0.08914116770029068, 0.2232072800397873, 0.2891916036605835, -0.1578652709722519, -0.07241775095462799, 0.143889918923378, -0.2418784499168396, 0.6210914850234985, -0.15714013576507568, -0.048325855284929276, -0.02286602556705475, 0.3200870752334595, -0.11911197006702423, -0.10389422625303268, -0.10232219099998474, -0.11152967065572739, -0.4000644087791443, -0.2703824043273926, 0.13366934657096863, 0.3149121105670929, -0.020835308358073235, -0.32581570744514465, 0.08655594289302826, 0.006684686988592148, 0.1617560237646103, 0.007726557552814484, -0.16805630922317505, -0.10655374825000763, 0.20143167674541473, -0.1328776478767395, -0.2206721305847168, -0.23653921484947205, -0.17470960319042206, 0.05034226179122925, 0.09451331198215485, 0.1812092363834381, 0.10838571190834045, 0.18762372434139252, -0.06261260062456131, 0.26296886801719666, -0.15362034738063812, -0.46480780839920044, 0.11054010689258575, 0.11792317032814026, 0.300773561000824, 0.19972124695777893, -0.41206902265548706, 0.27839842438697815, -0.5090740919113159, 0.1478305459022522, 0.06915266811847687, 0.032708361744880676, 0.4838721752166748, 0.3174029290676117, 0.4250282347202301, 0.12566906213760376, -0.004066929221153259, -0.272941529750824, -0.27549248933792114, -0.2156791090965271, -0.4665088951587677, -0.17304134368896484, 0.4485468864440918, -0.11266866326332092, 0.35898011922836304, -0.24911421537399292, -0.5427915453910828, -0.31719714403152466, 0.12963326275348663, 0.07866109162569046, -0.3787127137184143, -0.06397159397602081, 0.18038593232631683, 0.00831615924835205, 0.06296881288290024, -0.10598289966583252, 0.04215960204601288, -0.1256779432296753, -0.08110874891281128, -0.12082691490650177, -0.5962765216827393, 0.5595332384109497, -0.0009504416957497597, -0.02018028497695923, 0.07973378896713257, 0.24942618608474731, 0.8977795839309692, 0.12242799252271652, -0.5830606818199158, 0.024546556174755096, 0.2819695770740509, 0.21936649084091187, -0.4289262294769287, 0.019094198942184448, 0.12419411540031433, -0.1958754062652588, -0.029514815658330917, -0.08415891230106354, 0.07387886196374893, -0.11359846591949463, 0.18106567859649658, -0.09240315854549408 ]
https://github.com/huggingface/datasets/pull/2074
Fix size categories in YAML Tags
For datasets like `ccaligned_multilingual` it's important to have all the tags for users to search and find it. Currently is has the full list of tags (without the config names). So you can actually find the dataset, but you don't know what tag correspond to what configuration.
This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too.
47
text: Fix size categories in YAML Tags This PR fixes several `size_categories` in YAML tags and makes them consistent. Additionally, I have added a few more categories after `1M`, up to `1T`. I would like to add that to the streamlit app also. This PR also adds a couple of infos that I found missing. The code for generating this: ```python for dataset in sorted(os.listdir('./datasets/')): if '.' not in dataset and dataset not in ['c4', 'csv', 'downloads', 'cc100', 'ccaligned_multilingual', 'celeb_a', 'chr_en', 'emea', 'glue']: infos = {} stats = {} st = '' with open(f'datasets/{dataset}/README.md') as f: d = f.read() start_dash = d.find('---') + 3 end_dash = d[start_dash:].find('---') + 3 rest_text = d[end_dash + 3:] try: full_yaml = OmegaConf.create(d[start_dash:end_dash]) readme = OmegaConf.to_container(full_yaml['size_categories'], resolve=True) except Exception as e: print(e) continue try: with open(f'datasets/{dataset}/dataset_infos.json') as f: data = json.load(f) except Exception as e: print(e) continue # Skip those without infos. done_set = set([]) num_keys = len(data.keys()) for keys in data: # dataset = load_dataset('opus100', f'{dirs}') total = 0 for split in data[keys]['splits']: total = total + data[keys]['splits'][split]['num_examples'] if total < 1000: st += "- n<1K" + '\n' infos[keys] = ["n<1K"] elif total >= 1000 and total < 10000: infos[keys] = ["1K<n<10K"] elif total >= 10000 and total < 100000: infos[keys] = ["10K<n<100K"] elif total >= 100000 and total < 1000000: infos[keys] = ["100K<n<1M"] elif total >= 1000000 and total < 10000000: infos[keys] = ["1M<n<10M"] elif total >= 10000000 and total < 100000000: infos[keys] = ["10M<n<100M"] elif total >= 100000000 and total < 1000000000: infos[keys] = ["100M<n<1B"] elif total >= 1000000000 and total < 10000000000: infos[keys] = ["1B<n<10B"] elif total >= 10000000000 and total < 100000000000: infos[keys] = ["10B<n<100B"] elif total >= 100000000000 and total < 1000000000000: infos[keys] = ["100B<n<1T"] else: infos[keys] = ["n>1T"] done_set = done_set.union(infos[keys]) if (isinstance(readme, list) and list(infos.values())[0] != readme) or (isinstance(readme, dict) and readme != infos): print('-' * 30) print(done_set) print(f"Changing Full YAML for {dataset}") print(OmegaConf.to_yaml(full_yaml)) if len(done_set) == 1: full_yaml['size_categories'] = list(done_set) else: full_yaml['size_categories'] = dict([(k, v) for k, v in sorted(infos.items(), key=lambda x: x[0])]) full_yaml_string = OmegaConf.to_yaml(full_yaml) print('-' * 30) print(full_yaml_string) inp = input('Do you wish to continue?(Y/N)') if inp == 'Y': with open(f'./datasets/{dataset}/README.md', 'w') as f: f.write('---\n') f.write(full_yaml_string) f.write('---') f.write(rest_text) else: break ``` Note that the lower-bound is inclusive. I'm unsure if this is how it is done in the tagging app. EDIT: It would be great if there was a way to make the task categories consistent too. For this, the streamlit app can look into all the datasets and check for existing categories and show them in the list. This may add some consistency. EDIT: I understand this will not work for cases where only the infos for some of the configs are present, for example: `ccaligned_multingual` has only 5 out of several configs present, and infos has only information about them. Hence, I have skipped a few datasets in the code, if there are more such datasets, then I'll ignore them too. For datasets like `ccaligned_multilingual` it's important to have all the tags for users to search and find it. Currently is has the full list of tags (without the config names). So you can actually find the dataset, but you don't know what tag correspond to what configuration.
[ 0.13570840656757355, -0.16369587182998657, -0.16992522776126862, 0.06400378793478012, 0.5627598762512207, 0.04084876924753189, 0.2803543508052826, 0.13068334758281708, -0.20304599404335022, -0.05140462517738342, 0.20192950963974, -0.34266817569732666, 0.002866317518055439, 0.5861956477165222, 0.11881574243307114, -0.059470854699611664, 0.05964416638016701, 0.08426179736852646, 0.017957236617803574, -0.046733129769563675, -0.035164687782526016, -0.05400608479976654, 0.25452709197998047, -0.06006850302219391, 0.0033751262817531824, 0.050553012639284134, -0.2007070928812027, 0.12323832511901855, -0.519839882850647, -0.5176283717155457, 0.07608918845653534, 0.08216969668865204, -0.007380892522633076, -0.15343260765075684, -0.00011226798233110458, -0.17836102843284607, 0.15237383544445038, -0.3539685904979706, -0.02261146903038025, -0.038056790828704834, 0.13543978333473206, -0.43869611620903015, -0.026425672695040703, 0.04097897559404373, 0.16240927577018738, -0.326404869556427, -0.2537377178668976, -0.2460063397884369, 0.13663740456104279, 0.26708197593688965, 0.1636194884777069, -0.2485186904668808, 0.24672336876392365, 0.05968775972723961, 0.2871354818344116, 0.2899057865142822, -0.17455868422985077, 0.10791362822055817, 0.5678572654724121, 0.16050976514816284, 0.13568611443042755, 0.6227396726608276, 0.08356068283319473, 0.08530634641647339, 0.4848502278327942, -0.1703285127878189, 0.3938594162464142, -0.5893052816390991, 0.12935809791088104, 0.06536161154508591, 0.38776764273643494, -0.292283296585083, -0.3396238684654236, -0.5900073051452637, -0.2571059763431549, -0.5815608501434326, -0.09903372079133987, 0.5329484939575195, -0.07993808388710022, -0.007656484842300415, -0.017493361607193947, -0.11847393959760666, -0.10652767866849899, -0.02869708091020584, 0.21567592024803162, 0.3719518184661865, 0.13469862937927246, -0.0340515673160553, -0.017476048320531845, 0.0057360827922821045, 0.1745864599943161, 0.09221512824296951, -0.31566232442855835, 0.14141348004341125, -0.019086744636297226, 0.1325961798429489, 0.1290481835603714, 0.12529000639915466, 0.3937523365020752, -0.16377320885658264, 0.21403053402900696, 0.06012335419654846, 0.10428301990032196, -0.1372600495815277, 0.17568643391132355, 0.3827287554740906, 0.17140960693359375, 0.23533810675144196, -0.2524731159210205, 0.014566263183951378, 0.3543398976325989, 0.019020242616534233, -0.022821318358182907, -0.252491295337677, -0.03799590468406677, 0.16822174191474915, 0.08811808377504349, -0.07595108449459076, -0.19783605635166168, 0.1224035993218422, -0.5353314876556396, 0.01341010071337223, 0.03025033324956894, 0.3057418763637543, 0.0020791771821677685, 0.35420241951942444, 0.05461768060922623, 0.18670547008514404, 0.08529964834451675, -0.04383617639541626, -0.14011001586914062, -0.05027099326252937, -0.08989681303501129, 0.007779779378324747, 0.019613116979599, -0.1432381123304367, 0.27683091163635254, 0.04216167330741882, -0.19920499622821808, 0.031328700482845306, -0.0830976814031601, 0.23462772369384766, 0.06392769515514374, 0.2781766653060913, -0.17551478743553162, -0.16125628352165222, 0.18309076130390167, -0.07604260742664337, -0.08046071231365204, 0.3820238709449768, -0.3187418282032013, -0.284432977437973, -0.30619898438453674, 0.29303810000419617, -0.06239867955446243, 0.12673375010490417, -0.1273055374622345, 0.39027348160743713, 0.2863270342350006, 0.09151971340179443, 0.30455970764160156, -0.212736114859581, 0.3153548538684845, -0.04639974981546402, -0.1035638228058815, 0.03258929401636124, -0.1303795427083969, -0.3552324175834656, -0.14436666667461395, 0.2048366218805313, 0.46423155069351196, -0.06376151740550995, 0.0031982518266886473, 0.06445324420928955, 0.0081715676933527, 0.2035025805234909, 0.55058354139328, -0.37293487787246704, -0.4173748195171356, -0.058578141033649445, 0.21373040974140167, 0.07193920761346817, 0.23912322521209717, -0.0878986269235611, 0.34822744131088257, 0.19300201535224915, -0.07503515481948853, -0.1761304885149002, -0.2910340428352356, 0.05455388128757477, -0.42734935879707336, 0.07168504595756531, 0.04897178336977959, 0.03453182429075241, 0.278259813785553, -0.09086117893457413, 0.21043714880943298, 0.31474366784095764, 0.43799886107444763, -0.16335391998291016, 0.3049815893173218, 0.09901602566242218, 0.16423732042312622, 0.17798738181591034, 0.2975245416164398, 0.07023129612207413, -0.06839650124311447, 0.08687133342027664, -0.1642005741596222, 0.1942301243543625, 0.05075659230351448, -0.2097935825586319, -0.2996067702770233, -0.09042234718799591, -0.052042681723833084, -0.5454548597335815, 0.10248909890651703, -0.03284414857625961, -0.007144106552004814, -0.015244442969560623, -0.057939134538173676, 0.5133849382400513, -0.20134401321411133, 0.24095869064331055, 0.27971479296684265, 0.09694333374500275, -0.07557034492492676, -0.10045287013053894, 0.08075582981109619, 0.3464769721031189, -0.0018279291689395905, -0.0023142832797020674, -0.25137728452682495, 0.2371577024459839, -0.16494308412075043, -0.2023334950208664, -0.09639858454465866, 0.31229954957962036, 0.4280649721622467, 0.20084801316261292, -0.0386260449886322, 0.11380349099636078, 0.1748931109905243, 0.08538248389959335, -0.24588656425476074, 0.2142537236213684, -0.24233822524547577, 0.11081559211015701, 0.04701421409845352, 0.050600893795490265, 0.25451165437698364, 0.2363370656967163, -0.3429230749607086, -0.1774715632200241, 0.2872522175312042, -0.4143451154232025, 0.016935065388679504, -0.08801260590553284, -0.009677864611148834, 0.49110254645347595, 0.4572601914405823, -0.09124112129211426, 0.007837332785129547, 0.3161756992340088, -0.2409672737121582, -0.09626972675323486, 0.16865910589694977, 0.21623297035694122, 0.27836722135543823, 0.30674535036087036, -0.25280308723449707, 0.00457332469522953, 0.3315083086490631, -0.17089802026748657, 0.30518513917922974, 0.24363701045513153, -0.15056143701076508, 0.231205016374588, 0.5651274919509888, -0.09284227341413498, -0.27032899856567383, -0.10679358243942261, -0.19912774860858917, 0.21212854981422424, -0.19865307211875916, 0.12970119714736938, -0.016244802623987198, -0.1855059564113617, 0.11292219161987305, -0.5710452795028687, -0.23269131779670715, -0.3120012581348419, 0.2872777581214905, -0.0020894184708595276, -0.07376856356859207, -0.023826254531741142, -0.07339055836200714, 0.0673021674156189, 0.2123124748468399, 0.3172897398471832, -0.26193052530288696, -0.15279246866703033, -0.1040005311369896, 0.12895728647708893, -0.213138148188591, -0.30538463592529297, 0.3584492802619934, -0.2988921105861664, 0.19389645755290985, -0.11924955993890762, -0.6878717541694641, 0.06544241309165955, -0.10117995738983154, 0.21840399503707886, -0.0225914865732193, 0.05234973877668381, -0.11017534881830215, -0.039990875869989395, 0.10818956792354584, 0.3521837294101715, -0.24709443747997284, -0.13692888617515564, -0.07604120671749115, 0.05317604914307594, -0.41766083240509033, -0.3844151794910431, -0.4394811689853668, -0.41286566853523254, 0.33042585849761963, 0.2425500899553299, 0.1517217457294464, 0.2678951621055603, -0.1615304797887802, -0.04920896142721176, 0.20713339745998383, 0.021764099597930908, -0.13181346654891968, 0.1854735016822815, 0.24271506071090698, -0.10025648772716522, -0.22081749141216278, -0.009527895599603653, -0.191294863820076, -0.09006147086620331, -0.0006653890013694763, -0.24210800230503082, 0.08477555960416794, 0.11774688959121704, -0.18359139561653137, 0.0025946348905563354, -0.21269449591636658, 0.39624178409576416, 0.25606149435043335, -0.006475048139691353, -0.1951999068260193, 0.15729592740535736, -0.09743773192167282, 0.1756283938884735, 0.3484587073326111, -0.28361767530441284, 0.19787180423736572, 0.15488474071025848, 0.3711366653442383, -0.15502114593982697, -0.06711134314537048, 0.3850499987602234, 0.16780751943588257, 0.10211611539125443, -0.12167046219110489, -0.3813041150569916, 0.3549632132053375, -0.00033961236476898193, 0.13806377351284027, 0.2529083490371704, 0.251603901386261, -0.01896345429122448, 0.20154555141925812, 0.12950147688388824, -0.3918929100036621, -0.10014083981513977, -0.11318926513195038, -0.13254867494106293, -0.019458740949630737, 0.020672578364610672, 0.07724753767251968, -0.1546720415353775, -0.30026477575302124, -0.19596469402313232, 0.33781272172927856, 0.003581404685974121, 0.3406068980693817, -0.10637778043746948, -0.1358620673418045, -0.3226148784160614, 0.2612762749195099, 0.015166733413934708, -0.423921674489975, 0.046964388340711594, -0.18139564990997314, -0.14910998940467834, 0.0020741077605634928, 0.102446049451828, 0.03395480290055275, -0.28679609298706055, -0.05772663652896881, 0.30738601088523865, -0.02641836553812027, -0.22742806375026703, -0.06475497037172318, 0.3482634723186493, 0.21925143897533417, 0.09816379100084305, -0.38843321800231934, 0.012780718505382538, -0.09319910407066345, -0.010701421648263931, -0.04774230346083641, 0.2804378271102905, -0.10324988514184952, -0.22023698687553406, -0.4001869261264801, 0.17624147236347198, 0.05948641151189804, 0.3567267954349518, -0.2408880740404129, -0.24740254878997803, 0.10471934080123901, -0.040065642446279526, 0.07766686379909515, 0.05101815238595009, 0.3481082618236542, -0.0759330615401268, -0.011834053322672844, -0.25174593925476074, 0.63190758228302, 0.47833606600761414, 0.21303224563598633, 0.39466357231140137, -0.4731231927871704, 0.13189604878425598, -0.12635333836078644, 0.19219568371772766, 0.21951860189437866, 0.02956683188676834, -0.10399053245782852, 0.028112631291151047, 0.3084443509578705, 0.12962090969085693, 0.5261604189872742, 0.10411277413368225, -0.082054503262043, -0.15836480259895325, -0.4054059386253357, 0.10854152590036392, -0.13391940295696259, -0.020817764103412628, 0.5825765132904053, -0.04540321230888367, -0.374691903591156, 0.15300612151622772, 0.10185935348272324, 1.0142494440078735, -0.036239564418792725, -0.11258973181247711, 0.07487038522958755, -0.182306170463562, 0.08931916952133179, -0.3253489136695862, 0.3657829165458679, -0.26022136211395264, 0.25029194355010986, -0.029988644644618034, 0.14254942536354065, 0.05973221734166145, -0.17174944281578064, -0.4217219650745392, 0.24855752289295197, 0.003690749406814575, -0.03157487139105797, 0.06049620360136032, -0.16813641786575317, -0.38881728053092957, -0.30702948570251465, -0.15920709073543549, 0.11007201671600342, -0.21604691445827484, 0.22885090112686157, -0.11328084021806717, -0.26614534854888916, -0.22777605056762695, -0.3253612518310547, -0.48516106605529785, -0.16974854469299316, -0.7316581606864929, -0.29450148344039917, -0.23179012537002563, -0.09837333112955093, -0.3405430018901825, 0.44640690088272095, 0.01776926964521408, -0.0242011658847332, -0.1564563661813736, 0.2601523697376251, -0.04520750045776367, 0.043583840131759644, 0.3158396780490875, 0.12666472792625427, 0.11178392916917801, -0.18057429790496826, -0.15815067291259766, -0.062327705323696136, -0.10427799075841904, -0.005086582154035568, -0.5603070259094238, -0.06505385041236877, 0.418038010597229, -0.23386403918266296, 0.18954209983348846, -0.02833053469657898, -0.20626111328601837, -0.33511534333229065, 0.13224098086357117, -0.03815227001905441, 0.025899643078446388, -0.24809077382087708, -0.06403863430023193, -0.04080842062830925, -0.3563956916332245, -0.13157960772514343, 0.05791117250919342, 0.20141196250915527, -0.13569627702236176, -0.0003864280879497528, -0.08710651099681854, -0.187099426984787, 0.11108825355768204, -0.1189204752445221, -0.1571529358625412, -0.03728560358285904, -0.07975839823484421, -0.5473974347114563, -0.00005558354314416647, 0.3544871211051941, 0.11887957900762558, 0.24172168970108032, 0.006012279540300369, -0.2591937780380249, -0.3652990162372589, 0.3029780387878418, -0.1045641154050827, -0.09246677160263062, -0.3297942578792572, -0.01985025778412819, -0.0012600459158420563, 0.3097035884857178, -0.30331316590309143, -0.2519492506980896, 0.15636205673217773, 0.0798749327659607, -0.08665942400693893, 0.02783200331032276, 0.27584123611450195, -0.006365150213241577, 0.07031358033418655, 0.10616602003574371, -0.17983484268188477, -0.19492807984352112, -0.105133056640625, 0.1495874971151352, -0.06635357439517975, 0.03772301226854324, -0.050533726811409, 0.16943369805812836, -0.016171894967556, -0.21993613243103027, 0.13003219664096832, -0.06242838501930237, 0.071836918592453, -0.08365057408809662, 0.2741973400115967, 0.17377522587776184, 0.28112971782684326, -0.29306110739707947, 0.02440374344587326, 0.3864933252334595, -0.0582820288836956, -0.09107378125190735, 0.23694267868995667, -0.024327334016561508, -0.16258662939071655, 0.046459514647722244, 0.18024519085884094, 0.08085328340530396, 0.4330109655857086, -0.12950478494167328, 0.07771725952625275, 0.1948661506175995, 0.5047270059585571, 0.12233561277389526, 0.10356712341308594, 0.15631960332393646, -0.17364925146102905, 0.2229703962802887, -0.3334577679634094, -0.005583868827670813, -0.28414401412010193, 0.017490126192569733, -0.03613835573196411, 0.37039628624916077, 0.08583065867424011, -0.16167399287223816, -0.07720248401165009, 0.2681468725204468, 0.524290144443512, -0.0015467554330825806, 0.23366768658161163, 0.6055750846862793, -0.3482533097267151, 0.14448170363903046, 0.3221675455570221, -0.27995389699935913, 0.317472904920578, 0.3075569272041321, -0.026288166642189026, 0.24600426852703094, 0.3709750175476074, -0.03890198841691017, -0.12039179354906082, 0.185853973031044, -0.5328410863876343, 0.10117857903242111, 0.09151793271303177, 0.2516235113143921, 0.169590562582016, 0.10876624286174774, 0.2660508453845978, -0.45638802647590637, -0.10589736700057983, 0.1480550765991211, -0.08661796897649765, -0.04589790478348732, 0.26305195689201355, -0.31246259808540344, -0.2088892012834549, -0.12154282629489899, 0.014511166140437126, -0.05214262008666992, 0.47702381014823914, -0.12082330882549286, -0.1491936296224594, -0.2542015314102173, -0.13639026880264282, 0.19193711876869202, 0.23135653138160706, -0.15864534676074982, 0.13393999636173248, 0.4068042039871216, -0.1255713850259781, 0.08318474888801575, 0.14607764780521393, 0.40524035692214966, 0.3890931308269501, -0.26975390315055847, 0.05043639987707138, -0.20119033753871918, -0.21171623468399048, -0.08914116770029068, 0.2232072800397873, 0.2891916036605835, -0.1578652709722519, -0.07241775095462799, 0.143889918923378, -0.2418784499168396, 0.6210914850234985, -0.15714013576507568, -0.048325855284929276, -0.02286602556705475, 0.3200870752334595, -0.11911197006702423, -0.10389422625303268, -0.10232219099998474, -0.11152967065572739, -0.4000644087791443, -0.2703824043273926, 0.13366934657096863, 0.3149121105670929, -0.020835308358073235, -0.32581570744514465, 0.08655594289302826, 0.006684686988592148, 0.1617560237646103, 0.007726557552814484, -0.16805630922317505, -0.10655374825000763, 0.20143167674541473, -0.1328776478767395, -0.2206721305847168, -0.23653921484947205, -0.17470960319042206, 0.05034226179122925, 0.09451331198215485, 0.1812092363834381, 0.10838571190834045, 0.18762372434139252, -0.06261260062456131, 0.26296886801719666, -0.15362034738063812, -0.46480780839920044, 0.11054010689258575, 0.11792317032814026, 0.300773561000824, 0.19972124695777893, -0.41206902265548706, 0.27839842438697815, -0.5090740919113159, 0.1478305459022522, 0.06915266811847687, 0.032708361744880676, 0.4838721752166748, 0.3174029290676117, 0.4250282347202301, 0.12566906213760376, -0.004066929221153259, -0.272941529750824, -0.27549248933792114, -0.2156791090965271, -0.4665088951587677, -0.17304134368896484, 0.4485468864440918, -0.11266866326332092, 0.35898011922836304, -0.24911421537399292, -0.5427915453910828, -0.31719714403152466, 0.12963326275348663, 0.07866109162569046, -0.3787127137184143, -0.06397159397602081, 0.18038593232631683, 0.00831615924835205, 0.06296881288290024, -0.10598289966583252, 0.04215960204601288, -0.1256779432296753, -0.08110874891281128, -0.12082691490650177, -0.5962765216827393, 0.5595332384109497, -0.0009504416957497597, -0.02018028497695923, 0.07973378896713257, 0.24942618608474731, 0.8977795839309692, 0.12242799252271652, -0.5830606818199158, 0.024546556174755096, 0.2819695770740509, 0.21936649084091187, -0.4289262294769287, 0.019094198942184448, 0.12419411540031433, -0.1958754062652588, -0.029514815658330917, -0.08415891230106354, 0.07387886196374893, -0.11359846591949463, 0.18106567859649658, -0.09240315854549408 ]
https://github.com/huggingface/datasets/pull/2072
Fix docstring issues
I think I will stop pushing to this PR, so that it can me merged for today release. I will open another PR for further fixing docs. Do you agree, @lhoestq ?
Fix docstring issues.
32
text: Fix docstring issues Fix docstring issues. I think I will stop pushing to this PR, so that it can me merged for today release. I will open another PR for further fixing docs. Do you agree, @lhoestq ?
[ -0.16670191287994385, -0.3355986475944519, -0.12824010848999023, -0.21586860716342926, 0.15914826095104218, -0.07865743339061737, -0.010857094079256058, 0.2924025356769562, -0.39421847462654114, 0.09798027575016022, 0.21213607490062714, -0.06247778609395027, -0.0901520699262619, 0.053605757653713226, 0.009218389168381691, -0.09543554484844208, 0.1925026923418045, 0.2892059087753296, 0.3470664918422699, 0.2164941281080246, -0.32880523800849915, 0.04977819323539734, -0.12198345363140106, 0.14428740739822388, -0.1906716376543045, -0.17432363331317902, 0.1908835768699646, 0.1455780565738678, -0.2857568860054016, -0.162117138504982, -0.26312223076820374, 0.30142682790756226, -0.04646013677120209, 0.03572285920381546, -0.00010585204290691763, -0.132310688495636, 0.31829583644866943, 0.06800255179405212, -0.1489870399236679, 0.02907441556453705, -0.15805813670158386, -0.060373254120349884, -0.3555491268634796, 0.256728857755661, -0.03677055984735489, -0.08364919573068619, -0.1708907186985016, 0.07376150786876678, 0.3150147795677185, 0.24925565719604492, 0.24125036597251892, 0.04490728676319122, 0.274292528629303, 0.06186005473136902, 0.17418184876441956, -0.07700903713703156, -0.05616355687379837, -0.10518962144851685, 0.271700382232666, 0.14524734020233154, 0.21344298124313354, 0.33618783950805664, -0.20302054286003113, -0.2102687507867813, 0.2740734815597534, -0.21813899278640747, 0.4781084656715393, -0.3997642993927002, 0.322194904088974, -0.26891613006591797, 0.34016692638397217, -0.016044609248638153, 0.03365631401538849, -0.07781972736120224, -0.08002328872680664, -0.43811964988708496, 0.11515092849731445, 0.07386413961648941, -0.10104738175868988, 0.08728756755590439, -0.1252577006816864, -0.6456354260444641, -0.024427831172943115, 0.038636427372694016, -0.1261545717716217, -0.023787856101989746, 0.04876992478966713, -0.11915872246026993, 0.14517973363399506, 0.10563313215970993, 0.3561866283416748, -0.005819283425807953, -0.276090145111084, -0.3550455570220947, 0.15582342445850372, -0.16541439294815063, -0.14662235975265503, 0.06399407982826233, 0.14934775233268738, 0.04971637949347496, -0.5285759568214417, 0.07852819561958313, 0.09259512275457382, -0.12484892457723618, 0.2311805933713913, 0.04098318889737129, 0.1758522093296051, 0.5472355484962463, 0.10140295326709747, 0.07534424960613251, 0.1194867342710495, 0.03887438774108887, 0.14375142753124237, -0.23448112607002258, -0.31743186712265015, 0.06639303267002106, 0.23221494257450104, -0.15158604085445404, -0.23527683317661285, 0.3410772681236267, -0.08671785891056061, -0.07073366641998291, -0.2942744791507721, 0.08852837234735489, -0.014136739075183868, 0.6423684358596802, 0.38694244623184204, -0.05632568895816803, -0.010763736441731453, -0.11816021054983139, -0.09211023896932602, -0.0015524625778198242, -0.20459520816802979, 0.01545171719044447, -0.2720009982585907, -0.21923881769180298, -0.1390186995267868, 0.26983147859573364, 0.18841129541397095, -0.18496134877204895, -0.4087873697280884, 0.11356775462627411, 0.2448822259902954, 0.11018328368663788, -0.2233894318342209, -0.020079823210835457, 0.008350078016519547, -0.2915905714035034, 0.05616293102502823, 0.5281909108161926, -0.18697726726531982, -0.30143243074417114, -0.28604358434677124, 0.3677680492401123, 0.28848958015441895, 0.07612541317939758, 0.2265889048576355, 0.09329351782798767, -0.03643011301755905, 0.11447131633758545, 0.39743196964263916, -0.039353616535663605, -0.1526518017053604, 0.01852540858089924, -0.04070533812046051, -0.06537427008152008, 0.07677893340587616, -0.07091745734214783, 0.41139474511146545, 0.08465598523616791, -0.015953898429870605, 0.3201109766960144, -0.1727195382118225, -0.06798850744962692, -0.08552252501249313, -0.056975044310092926, 0.051767341792583466, -0.3697499930858612, -0.20994791388511658, -0.023519719019532204, -0.24457424879074097, -0.3478201925754547, 0.07598581910133362, -0.292973130941391, 0.4639790654182434, -0.10654653608798981, 0.2913030982017517, -0.15390519797801971, -0.29531329870224, -0.005144946277141571, -0.6825558543205261, -0.1464610993862152, -0.16201388835906982, -0.1104426383972168, 0.20092616975307465, 0.03561960160732269, -0.34228554368019104, 0.4811638295650482, 0.2745526134967804, 0.15219798684120178, 0.008588634431362152, -0.011200271546840668, 0.3327395021915436, -0.04152931272983551, 0.07914716005325317, -0.06847013533115387, -0.29379382729530334, -0.32950302958488464, 0.23419705033302307, 0.12926506996154785, 0.4087602496147156, -0.2740580141544342, -0.053799428045749664, -0.0341280922293663, 0.11867077648639679, -0.3364683985710144, 0.18803730607032776, 0.004625044763088226, -0.16554881632328033, -0.08505405485630035, -0.4059743881225586, 0.025880098342895508, -0.35123664140701294, 0.13519616425037384, 0.2898227870464325, 0.01668466441333294, -0.2769135534763336, 0.17277877032756805, -0.08039401471614838, 0.15968550741672516, 0.08026224374771118, -0.11788517981767654, 0.20367473363876343, 0.2390473484992981, -0.12704698741436005, 0.043151263147592545, 0.009314853698015213, 0.057933419942855835, 0.3500816822052002, -0.19612371921539307, -0.2084561437368393, -0.0993233174085617, -0.160794198513031, -0.04346771538257599, -0.19768577814102173, 0.10663469135761261, -0.06970983743667603, 0.0011066123843193054, 0.10218989849090576, -0.149205282330513, 0.04085828363895416, -0.1759471446275711, -0.21587586402893066, -0.017003439366817474, 0.1049516499042511, 0.049153976142406464, -0.03308930620551109, 0.0455971397459507, -0.26060745120048523, 0.16214711964130402, 0.3542296886444092, -0.06339633464813232, -0.37147143483161926, 0.35451042652130127, 0.06872140616178513, -0.0360264927148819, -0.46046581864356995, -0.046072978526353836, -0.06875734031200409, 0.3246704638004303, -0.09054955840110779, 0.13301979005336761, 0.43286576867103577, -0.09177647531032562, 0.38411980867385864, 0.3294414281845093, -0.23947176337242126, 0.41263729333877563, 0.04938525706529617, 0.22060196101665497, -0.11127576977014542, 0.32227087020874023, -0.08421307057142258, 0.20834065973758698, -0.12511976063251495, -0.4189428985118866, 0.12172697484493256, -0.47958076000213623, -0.13715751469135284, -0.01235432829707861, -0.26333725452423096, -0.05440736562013626, 0.2671721577644348, -0.20749470591545105, -0.05129515752196312, 0.2533285617828369, 0.06708423793315887, 0.6838457584381104, -0.2712360918521881, 0.3126503825187683, -0.12659421563148499, 0.1538512110710144, -0.2695709764957428, 0.17955581843852997, 0.21226011216640472, -0.40267932415008545, 0.5096887350082397, -0.24083270132541656, -0.1807900071144104, -0.2335519790649414, -0.2948107421398163, 0.29186853766441345, -0.08788001537322998, -0.13949285447597504, 0.14459209144115448, -0.03810150921344757, -0.019073281437158585, -0.2730172276496887, -0.03019501268863678, -0.19925373792648315, -0.19040891528129578, -0.6386616230010986, 0.18402576446533203, 0.14245252311229706, -0.31433215737342834, -0.406241774559021, 0.31669461727142334, -0.40834569931030273, 0.2611597180366516, -0.0776105672121048, -0.0871705561876297, 0.04469909891486168, -0.19825273752212524, -0.10256705433130264, -0.0042806765995919704, -0.21916645765304565, -0.03330353647470474, 0.005576271563768387, -0.3401567041873932, 0.23698690533638, -0.014617715030908585, 0.033582668751478195, 0.19211551547050476, -0.4026084244251251, -0.012757886201143265, -0.27792003750801086, -0.11143917590379715, 0.13052178919315338, 0.21352604031562805, -0.08828304708003998, -0.1632479727268219, 0.3601756691932678, 0.11755254119634628, -0.2544945478439331, 0.062272779643535614, -0.4346564710140228, -0.0698152706027031, 0.2504706382751465, 0.17832723259925842, 0.17069128155708313, 0.282148152589798, -0.11920337378978729, 0.6086167097091675, 0.07076336443424225, 0.018181219696998596, -0.036815814673900604, 0.0731290802359581, 0.40180036425590515, -0.1406240165233612, -0.21583925187587738, 0.11100597679615021, 0.05822579562664032, -0.21810901165008545, 0.3040590286254883, 0.28814855217933655, 0.04332248121500015, -0.09967854619026184, -0.217656672000885, -0.19096145033836365, -0.1262253373861313, 0.1543726623058319, -0.09138470888137817, 0.13698990643024445, -0.16311512887477875, -0.321880966424942, 0.13077543675899506, 0.004593357443809509, 0.09273315966129303, 0.2497469186782837, 0.3820190131664276, -0.044565387070178986, 0.16740305721759796, 0.39329400658607483, -0.2160567045211792, 0.07183049619197845, 0.10817547887563705, 0.06644824147224426, -0.15723924338817596, -0.0988566055893898, 0.015244491398334503, -0.28145548701286316, 0.5135524868965149, -0.11196734756231308, -0.14673063158988953, 0.09572038054466248, 0.0828823447227478, 0.5634867548942566, -0.04903370514512062, 0.04582672193646431, 0.18703266978263855, 0.5694640278816223, 0.5465757250785828, -0.1852024793624878, -0.22795118391513824, 0.22027432918548584, -0.2939024269580841, 0.10612031817436218, 0.007769822143018246, 0.05164862051606178, -0.10070061683654785, -0.24866843223571777, 0.25000128149986267, 0.532604455947876, -0.019952675327658653, -0.23060883581638336, -0.1483457386493683, 0.3450082242488861, -0.23765170574188232, 0.02242119610309601, -0.4470401406288147, 0.20801353454589844, -0.0692395269870758, 0.011389955878257751, 0.0791691318154335, 0.286024808883667, 0.36134082078933716, 0.1781315803527832, -0.14327144622802734, -0.22050264477729797, -0.06425785273313522, -0.28775033354759216, 0.13770747184753418, 0.3618350028991699, 0.12184244394302368, 0.124860018491745, 0.02261202409863472, 0.39381855726242065, 0.1099347323179245, -0.09923611581325531, 0.3486306071281433, 0.022714927792549133, -0.41449111700057983, -0.09446991980075836, 0.00817079097032547, 0.17945531010627747, -0.05199878290295601, 0.13307049870491028, 0.11175072193145752, -0.22972817718982697, -0.13898059725761414, 0.17729279398918152, 1.138264775276184, -0.025506146252155304, 0.03799089416861534, -0.30466166138648987, -0.4385461211204529, 0.4716516137123108, -0.6130548715591431, 0.19429443776607513, -0.24583078920841217, 0.07189533114433289, -0.07564765959978104, 0.062131840735673904, -0.03187689185142517, -0.24604065716266632, -0.4918574094772339, -0.03906839340925217, -0.27790096402168274, 0.186819389462471, 0.19641165435314178, 0.32269954681396484, -0.09545395523309708, 0.21788986027240753, -0.035636648535728455, 0.06518203765153885, -0.08771170675754547, 0.08425036072731018, -0.2537209689617157, -0.21193738281726837, 0.1635735034942627, -0.2678258419036865, -0.5844517946243286, -0.33194977045059204, 0.11299524456262589, -0.21860381960868835, 0.04233325645327568, 0.09768271446228027, 0.031233064830303192, 0.12594978511333466, 0.29657283425331116, -0.03882092610001564, -0.09973220527172089, 0.2684195339679718, 0.18355786800384521, -0.28183507919311523, -0.061009109020233154, -0.06781240552663803, 0.15916287899017334, -0.34867146611213684, -0.07397360354661942, 0.12918730080127716, -0.11417039483785629, -0.42702406644821167, -0.862899661064148, 0.12592318654060364, 0.5477628707885742, -0.08566511422395706, 0.038255926221609116, 0.1673828363418579, -0.17577561736106873, -0.26010096073150635, 0.23812894523143768, -0.2401735633611679, 0.009055059403181076, -0.14929112792015076, 0.23503179848194122, -0.19502243399620056, -0.02790900692343712, -0.11578815430402756, 0.2635299265384674, -0.2707284688949585, 0.15652358531951904, 0.04208805039525032, -0.35752642154693604, -0.3809655010700226, -0.1586686670780182, -0.026069507002830505, -0.25373849272727966, 0.3667837977409363, 0.009444904513657093, -0.09836620092391968, 0.17559906840324402, 0.43689101934432983, 0.07164765149354935, 0.27672699093818665, -0.18179142475128174, -0.10098971426486969, -0.17787900567054749, -0.04800534248352051, -0.3282380700111389, 0.18756571412086487, 0.2023964524269104, 0.3252326250076294, 0.24885293841362, 0.09399663656949997, -0.38202086091041565, -0.03410426527261734, -0.12771469354629517, -0.04294620454311371, -0.2651858925819397, -0.028189368546009064, -0.12443339079618454, -0.229098379611969, 0.08190653473138809, 0.0112876296043396, -0.12174955010414124, -0.29031404852867126, 0.0903797298669815, 0.14759649336338043, 0.11751458793878555, 0.04470784217119217, 0.07965085655450821, 0.21898497641086578, 0.07837556302547455, 0.37642836570739746, -0.026120275259017944, -0.11721465736627579, 0.03928155452013016, 0.009094093926250935, 0.11862561106681824, 0.24101406335830688, 0.19423849880695343, -0.002998761832714081, 0.12029950320720673, 0.5222287178039551, -0.07443849742412567, 0.1399047076702118, -0.1569911688566208, -0.010051138699054718, -0.10808715969324112, 0.13815131783485413, 0.2948879599571228, 0.3844355642795563, 0.06326748430728912, -0.3767746686935425, -0.3882381021976471, -0.04449887573719025, 0.25289520621299744, 0.33094555139541626, -0.3672614097595215, -0.18698878586292267, 0.13854417204856873, 0.2826734483242035, -0.08778975903987885, -0.01134751457720995, -0.061900246888399124, -0.24999971687793732, -0.12760841846466064, 0.15955208241939545, 0.28963956236839294, -0.37854892015457153, 0.07469060271978378, 0.31705164909362793, 0.4364033639431, -0.5364454984664917, 0.05976223573088646, 0.12737907469272614, -0.06651809066534042, -0.10005684196949005, 0.1206631138920784, 0.05536450818181038, -0.05104369670152664, -0.32060641050338745, 0.26942580938339233, 0.15521301329135895, 0.5158877372741699, 0.3396424651145935, 0.22117000818252563, 0.03023471310734749, 0.5116495490074158, 0.027422435581684113, -0.13777586817741394, 0.17936161160469055, 0.3413739502429962, 0.04180552437901497, 0.4596794545650482, -0.17293888330459595, 0.18861716985702515, 0.0620894730091095, -0.18774065375328064, 0.08010806143283844, 0.08765728771686554, -0.10588282346725464, 0.07784585654735565, 0.18536128103733063, 0.07248289883136749, 0.2024976760149002, 0.38005053997039795, 0.062064096331596375, -0.12012933194637299, 0.29397863149642944, 0.11996757239103317, -0.25698122382164, 0.3530128002166748, -0.21259157359600067, 0.17104752361774445, -0.19241558015346527, 0.06074140965938568, 0.16984085738658905, 0.3964884579181671, 0.43545547127723694, 0.3995126485824585, -0.19739946722984314, -0.18630164861679077, 0.044359125196933746, 0.178544819355011, 0.18146109580993652, 0.21172133088111877, 0.2586553692817688, -0.047245677560567856, -0.002813149243593216, 0.21532076597213745, -0.28166088461875916, 0.17865046858787537, -0.2441311925649643, -0.0913691520690918, -0.04442686587572098, -0.15054064989089966, 0.37528854608535767, -0.26810625195503235, -0.15574617683887482, 0.07231011986732483, 0.04612305015325546, -0.052602991461753845, 0.22059595584869385, 0.03446201980113983, -0.023271184414625168, -0.06414973735809326, 0.1604444980621338, 0.22737357020378113, 0.020324163138866425, 0.15654632449150085, 0.15161928534507751, -0.036759063601493835, -0.09170980006456375, 0.0637255609035492, 0.2502928078174591, 0.11646929383277893, 0.033017128705978394, 0.24616186320781708, -0.1097143366932869, 0.2724514603614807, 0.01282314769923687, -0.002262890338897705, -0.10331995040178299, -0.11667518317699432, 0.07463682442903519, -0.13879811763763428, 0.43346527218818665, 0.5126169323921204, 0.2613968849182129, 0.18910162150859833, -0.15045559406280518, 0.3225894868373871, 0.29521995782852173, 0.14647606015205383, -0.2449275702238083, 0.2564523220062256, 0.3140525817871094, 0.05760546028614044, -0.23082777857780457, 0.13487841188907623, 0.0398990660905838, -0.2877817749977112, -0.12129858136177063, 0.13441792130470276, 0.07468601316213608, -0.5142815113067627, 0.12605787813663483, 0.14117465913295746, -0.2927343547344208, -0.12149912118911743, -0.4648280441761017, -0.234846293926239, 0.07422205805778503, 0.07414361834526062, 0.4090346395969391, -0.10292895883321762, -0.05666253715753555, 0.1957665979862213, -0.017458440735936165, -0.08618465065956116, 0.14455914497375488, -0.08314979076385498, -0.41210079193115234, -0.5853490829467773, -0.3469594419002533, 0.2928577959537506, 0.17173804342746735, -0.24562808871269226, 0.09940720349550247, 0.35393625497817993, 0.43075448274612427, 0.06030263751745224, -0.9098060727119446, -0.3442290723323822, 0.33575019240379333, -0.0688042864203453, -0.4242199659347534, 0.2214650809764862, 0.07517878711223602, -0.06682578474283218, -0.06113634258508682, 0.23058131337165833, 0.10356627404689789, -0.07104746997356415, -0.018677348271012306, -0.2768041491508484 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
I thought at first that the multiproc test was not relevant now that we do stuff only in memory, but I think there's something that's actually broken, my tiny benchmark on bookcorpus runs forever (2hrs+) when I add `num_proc=4` as a kwarg, will investigate 👀 I'm not familiar with the caching you describe for `.map`, I'll look it up.
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
59
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. I thought at first that the multiproc test was not relevant now that we do stuff only in memory, but I think there's something that's actually broken, my tiny benchmark on bookcorpus runs forever (2hrs+) when I add `num_proc=4` as a kwarg, will investigate 👀 I'm not familiar with the caching you describe for `.map`, I'll look it up.
[ -0.32101866602897644, -0.42640435695648193, -0.14284908771514893, 0.14785292744636536, -0.09889782965183258, -0.15285998582839966, 0.14874202013015747, 0.2666562497615814, 0.25016313791275024, -0.0046841055154800415, -0.1415831297636032, 0.15509538352489471, -0.002744731493294239, 0.2095618098974228, -0.14565546810626984, 0.02003007009625435, 0.05034603551030159, -0.026640966534614563, 0.09108468890190125, 0.08658021688461304, -0.13526833057403564, 0.16220760345458984, -0.30528730154037476, -0.22581060230731964, -0.09418954700231552, -0.2040589153766632, -0.007042940706014633, 0.00684705376625061, -0.06545694917440414, -0.44413435459136963, 0.10380284488201141, 0.23779389262199402, -0.34859713912010193, 0.5590100288391113, -0.00010562403622316197, -0.11861797422170639, 0.22797924280166626, -0.06250149756669998, -0.01176593266427517, 0.08639301359653473, 0.1038685068488121, -0.0062364134937524796, 0.10663910210132599, -0.21374526619911194, -0.2467227280139923, 0.3758828043937683, -0.0465615913271904, -0.3899867832660675, 0.27492672204971313, 0.28409862518310547, 0.257899671792984, 0.4779665470123291, -0.09738661348819733, 0.11249057948589325, 0.1868772804737091, -0.013751469552516937, -0.13811111450195312, 0.0538458526134491, 0.6645798683166504, -0.09402962774038315, -0.4305444359779358, 0.7259214520454407, -0.187420055270195, 0.13369686901569366, 0.22990399599075317, 0.013238776475191116, 0.06088930368423462, -0.2909057140350342, 0.15798300504684448, 0.27184757590293884, 0.24055418372154236, -0.1325109601020813, -0.38967281579971313, -0.22911018133163452, -0.4779466390609741, -0.21549513936042786, 0.16315487027168274, 0.02605724334716797, -0.25263741612434387, 0.021053649485111237, -0.567394495010376, 0.09197266399860382, 0.16566382348537445, -0.09254811704158783, -0.1268657147884369, 0.21098849177360535, -0.04862014576792717, 0.008578140288591385, 0.23535844683647156, 0.04253281280398369, -0.2190125286579132, -0.18277844786643982, 0.11972010135650635, 0.37356284260749817, -0.153445303440094, -0.18271195888519287, 0.1310323029756546, 0.1534106433391571, 0.11917506903409958, -0.09539395570755005, -0.0011491002514958382, 0.33224862813949585, -0.004362788051366806, 0.17354661226272583, 0.3269481360912323, 0.09750960767269135, 0.12011365592479706, 0.012232066132128239, 0.2333345264196396, 0.0781492292881012, -0.2524050176143646, -0.02073625847697258, 0.37563803791999817, -0.10417072474956512, 0.21569907665252686, -0.1448816955089569, -0.07144984602928162, -0.328937292098999, 0.0683785006403923, 0.1389126181602478, 0.05675561726093292, -0.16167332231998444, 0.1446874439716339, 0.26520827412605286, -0.23034802079200745, 0.12843652069568634, 0.13914714753627777, -0.2373650223016739, -0.3577529191970825, -0.03945859521627426, -0.3015158176422119, 0.0042020585387945175, -0.3431012034416199, 0.05309274047613144, 0.07579655945301056, -0.34027406573295593, 0.20672760903835297, -0.07321286201477051, -0.012573733925819397, -0.08823947608470917, -0.010801667347550392, -0.2990736663341522, 0.29964348673820496, 0.31051546335220337, -0.18765082955360413, 0.05243755877017975, 0.09132032841444016, -0.08025092631578445, -0.3035203218460083, -0.013785168528556824, -0.07269946485757828, -0.20349743962287903, 0.16271135210990906, 0.23722104728221893, 0.010328907519578934, 0.08420707285404205, -0.09774985164403915, 0.40725618600845337, 0.49047020077705383, -0.23394958674907684, 0.07371299713850021, 0.19708405435085297, -0.6061150431632996, -0.00747576542198658, 0.16050614416599274, 0.3165273368358612, -0.09454675018787384, -0.12073832750320435, 0.05894998833537102, 0.18692868947982788, 0.09864550083875656, 0.3526928126811981, -0.155728280544281, -0.1624111831188202, 0.02946060709655285, 0.2841835021972656, -0.02746785432100296, -0.36502915620803833, -0.33544501662254333, 0.17161259055137634, 0.012254178524017334, 0.19657908380031586, 0.00452037900686264, 0.036051854491233826, 0.32023870944976807, -0.2398490309715271, 0.3597501814365387, 0.14336489140987396, -0.021385470405220985, 0.11909713596105576, -0.4364762008190155, -0.05923871695995331, 0.041079942137002945, 0.05924045667052269, 0.20137079060077667, -0.09677358716726303, -0.2093898057937622, -0.22523297369480133, 0.24612799286842346, 0.1493755429983139, 0.2317461371421814, 0.3453027606010437, 0.18017108738422394, 0.12371070683002472, 0.07687415927648544, -0.36726266145706177, -0.04561203718185425, 0.19770005345344543, 0.15747135877609253, 0.19974400103092194, 0.11124829202890396, -0.27605652809143066, -0.09780462831258774, 0.002011669799685478, 0.04402078688144684, -0.45495712757110596, 0.10709366202354431, -0.1704016476869583, 0.11251462996006012, 0.03422580286860466, -0.10593622922897339, 0.2703608572483063, -0.01752779260277748, 0.014593779109418392, -0.2848820686340332, -0.08503080904483795, -0.04908890277147293, -0.0501779243350029, -0.09072328358888626, -0.03809937834739685, -0.019967123866081238, 0.10463659465312958, -0.12784162163734436, 0.2685907781124115, 0.03440273180603981, 0.25154078006744385, -0.0471511110663414, 0.23871265351772308, 0.13975822925567627, -0.1060263067483902, 0.13920745253562927, 0.25024881958961487, 0.2526562809944153, -0.22512805461883545, -0.5385304093360901, 0.4622839093208313, 0.27702584862709045, 0.32370835542678833, 0.1089286208152771, -0.08553282171487808, 0.19302095472812653, -0.14637993276119232, 0.011871928349137306, -0.006563864648342133, 0.2964504361152649, -0.14327719807624817, 0.37533992528915405, 0.19762921333312988, -0.35468411445617676, 0.2556615471839905, 0.40911388397216797, 0.08101457357406616, -0.06182550638914108, 0.362455278635025, -0.17675739526748657, -0.47122085094451904, 0.10568807274103165, -0.16643676161766052, 0.19060510396957397, 0.27867835760116577, 0.2716512382030487, -0.04493849724531174, 0.0026922794058918953, -0.16212931275367737, 0.3109137713909149, -0.07100100815296173, 0.0298059843480587, 0.057939548045396805, 0.24909208714962006, 0.004778516478836536, -0.5102344751358032, 0.03522868826985359, -0.0926441177725792, 0.034645043313503265, -0.010768290609121323, 0.1214258000254631, 0.05056218057870865, -0.1808781921863556, 0.26091131567955017, 0.02850981056690216, -0.23849791288375854, -0.2744615077972412, 0.1900731474161148, 0.37235191464424133, -0.024235859513282776, 0.25054532289505005, 0.13881081342697144, 0.23272494971752167, 0.13960380852222443, -0.15527459979057312, -0.3149918019771576, -0.47986873984336853, -0.10833901911973953, 0.13570421934127808, 0.03631645813584328, 0.018292391672730446, 0.4476107060909271, -0.021000830456614494, -0.09842928498983383, -0.062378980219364166, -0.3553730845451355, 0.06990793347358704, -0.08342477679252625, 0.20813147723674774, -0.017752036452293396, 0.23830397427082062, -0.027091313153505325, -0.00030895229429006577, 0.21323508024215698, -0.4197995662689209, -0.36795178055763245, -0.09252927452325821, 0.0685429498553276, 0.10454849153757095, -0.17326371371746063, -0.1849040389060974, -0.1337481588125229, -0.3890329897403717, 0.27554255723953247, -0.05316538363695145, 0.09420168399810791, 0.2639215588569641, 0.0007553817704319954, 0.03525885194540024, -0.019687356427311897, 0.1636907458305359, -0.4365633726119995, -0.30204442143440247, 0.10987406224012375, -0.028215842321515083, -0.2223237007856369, -0.20665022730827332, 0.040482744574546814, 0.03279845416545868, 0.148014098405838, -0.4373443126678467, -0.29527679085731506, -0.3860604166984558, -0.05202260613441467, 0.2543092668056488, -0.01991688646376133, 0.4632723033428192, -0.03627894073724747, -0.348356693983078, -0.05081205070018768, -0.3503991663455963, -0.044790156185626984, 0.0006004422903060913, -0.057367272675037384, 0.04627225548028946, 0.33613935112953186, 0.22015881538391113, 0.537219762802124, 0.26235249638557434, 0.09933822602033615, 0.19447484612464905, 0.10832886397838593, 0.1411660611629486, -0.32258427143096924, -0.2502630352973938, -0.0727100819349289, -0.26920950412750244, -0.03092767857015133, 0.3371838927268982, 0.1828087866306305, -0.5457803010940552, -0.1878928542137146, -0.18749630451202393, -0.37205103039741516, -0.3807728886604309, 0.06915283203125, 0.17073439061641693, 0.1813964545726776, 0.25744184851646423, 0.04417943209409714, -0.1923351138830185, -0.2530411183834076, -0.042458344250917435, 0.053196243941783905, -0.0020587071776390076, -0.15049909055233002, -0.37909379601478577, 0.22396865487098694, -0.6130864024162292, 0.3049730658531189, 0.12364102154970169, 0.09251227974891663, -0.10438872128725052, -0.1719048023223877, 0.07486708462238312, -0.1587815135717392, 0.6836286187171936, -0.23377270996570587, 0.07409899681806564, 0.19470249116420746, -0.4288398325443268, -0.2728099822998047, 0.06770507991313934, -0.13250091671943665, 0.30319103598594666, 0.304185688495636, 0.4199281632900238, -0.22398456931114197, -0.2530486285686493, -0.04244463890790939, -0.01937023364007473, 0.024032223969697952, -0.012927623465657234, -0.18494632840156555, -0.12522967159748077, -0.2639314830303192, 0.4873082935810089, 0.2613201439380646, 0.08018209785223007, 0.17128391563892365, -0.11731214821338654, 0.1511826515197754, 0.09802935272455215, 0.14676183462142944, 0.07880274951457977, 0.259971022605896, 0.0006831729551777244, 0.25603461265563965, -0.008121032267808914, -0.14327001571655273, -0.2723645269870758, 0.5012946128845215, -0.33746805787086487, 0.03137940913438797, -0.03761706501245499, -0.04829079657793045, 0.04892325773835182, 0.4916633367538452, 0.18691733479499817, 0.210550919175148, 0.1722884178161621, 0.319133996963501, -0.41431304812431335, 0.09071534872055054, -0.018632929772138596, 0.38741812109947205, -0.4143122732639313, -0.40121766924858093, 0.2946101725101471, 0.16849778592586517, -0.2343389391899109, 0.5901779532432556, -0.19373364746570587, -0.3184337019920349, 0.27501630783081055, 0.16502967476844788, 1.0492488145828247, -0.3401734232902527, 0.23427119851112366, -0.21361008286476135, 0.21306385099887848, 0.11156287789344788, -0.31833428144454956, 0.22620780766010284, -0.08410095423460007, -0.1842757612466812, -0.035829927772283554, 0.10719509422779083, -0.04857189208269119, 0.042856305837631226, -0.30365750193595886, 0.1975383460521698, 0.08210672438144684, 0.3540137708187103, -0.11088691651821136, 0.10192558169364929, -0.05345609784126282, -0.3257373869419098, -0.306016206741333, 0.226494699716568, 0.15962302684783936, 0.08232161402702332, -0.01913459599018097, 0.15801255404949188, 0.11616989970207214, -0.32057368755340576, -0.4051656723022461, -0.09129083901643753, -0.23891998827457428, 0.1566869020462036, 0.07562168687582016, -0.04851102456450462, -0.19998905062675476, 0.2766837179660797, -0.003138028085231781, 0.11422699689865112, -0.18428628146648407, 0.31311383843421936, 0.03535350784659386, 0.1932561844587326, 0.08283745497465134, -0.07123982161283493, 0.34824246168136597, -0.09629754722118378, -0.04783448576927185, -0.08190368860960007, -0.2895766496658325, -0.30710071325302124, 0.10582703351974487, 0.28423935174942017, 0.01710386946797371, -0.15669317543506622, -0.11362828314304352, 0.09968920052051544, -0.14585116505622864, -0.3541513681411743, 0.187453031539917, 0.11250963807106018, -0.15400181710720062, 0.3939189612865448, 0.11941631138324738, -0.3267129063606262, -0.10438898205757141, 0.5782577991485596, 0.3153170049190521, 0.06023067235946655, 0.12337376177310944, 0.3592091500759125, -0.4558313488960266, -0.3111962080001831, -0.3507947325706482, 0.01935279183089733, -0.23852333426475525, 0.3731946051120758, -0.11657631397247314, -0.3607139587402344, 0.2968418598175049, 0.43586376309394836, -0.017303794622421265, 0.029601819813251495, -0.10652637481689453, -0.27596986293792725, -0.18758493661880493, 0.1019391417503357, -0.09194593131542206, 0.212034672498703, 0.13116863369941711, 0.018616218119859695, 0.002198353409767151, 0.30340856313705444, -0.4328116476535797, -0.00009974231943488121, -0.3479791283607483, 0.25404834747314453, 0.04455609992146492, -0.07970841974020004, 0.4152028262615204, -0.11157830059528351, 0.11626684665679932, 0.3247724771499634, -0.43361443281173706, -0.321134090423584, -0.039699897170066833, 0.09494737535715103, -0.30098503828048706, -0.12125097960233688, 0.12891370058059692, 0.09150917828083038, -0.07697165012359619, -0.400677889585495, 0.1368991732597351, 0.25675421953201294, 0.06673798710107803, -0.0980808362364769, 0.07874994724988937, -0.005340069532394409, -0.0254047978669405, 0.018796483054757118, -0.23794683814048767, -0.04053506255149841, -0.015232600271701813, -0.11698715388774872, -0.037906039506196976, -0.0612315759062767, 0.27691274881362915, 0.15463292598724365, 0.035598669201135635, -0.02529703825712204, 0.2626563608646393, 0.08188752084970474, -0.053798601031303406, 0.22057603299617767, 0.443195641040802, 0.18817390501499176, -0.08229632675647736, -0.052086710929870605, 0.005563787184655666, 0.30794015526771545, -0.36547473073005676, -0.3014892637729645, 0.2800039052963257, -0.1028425320982933, 0.30742183327674866, 0.07775566726922989, 0.14565396308898926, 0.19843685626983643, 0.3576606512069702, 0.2950216233730316, 0.49073928594589233, -0.35791802406311035, -0.01816374808549881, -0.1378636360168457, 0.35711175203323364, 0.025267962366342545, 0.34671828150749207, 0.18933936953544617, 0.23188671469688416, 0.2645910978317261, 0.23795819282531738, 0.2944153845310211, 0.08857536315917969, 0.44140106439590454, -0.27747443318367004, -0.22576341032981873, 0.27479225397109985, 0.3900070786476135, -0.2971727252006531, 0.31037968397140503, 0.05058473348617554, 0.2515467405319214, -0.2564132809638977, -0.27762895822525024, -0.10234811902046204, 0.3632262349128723, -0.08031687140464783, -0.194296732544899, 0.30896633863449097, -0.19167548418045044, 0.014810636639595032, 0.16065140068531036, 0.09737730026245117, 0.21598821878433228, 0.528485894203186, -0.12785354256629944, 0.15391412377357483, -0.2247275859117508, -0.29444536566734314, -0.430702805519104, 0.6126983165740967, -0.29715827107429504, 0.22291284799575806, 0.006735742092132568, 0.07092788070440292, 0.08967489749193192, 0.20760856568813324, 0.2124016433954239, 0.042375348508358, -0.19265811145305634, 0.2970291078090668, -0.2544831335544586, -0.09359760582447052, -0.2045375108718872, 0.35637038946151733, 0.20925042033195496, 0.0191040001809597, 0.09007391333580017, 0.18944811820983887, -0.21778638660907745, 0.14049455523490906, 0.055044613778591156, 0.029498983174562454, -0.008887135423719883, -0.02543850988149643, 0.02676534466445446, -0.13212496042251587, -0.19197075068950653, -0.025079816579818726, -0.32793381810188293, -0.009593323804438114, 0.2873011827468872, -0.4018021821975708, 0.27286189794540405, -0.08633290976285934, 0.15075288712978363, 0.1154821515083313, 0.5233277082443237, 0.21318386495113373, 0.14080587029457092, -0.15640659630298615, -0.2522791922092438, -0.47360026836395264, -0.16578543186187744, -0.24510031938552856, 0.07881995290517807, 0.11950253695249557, 0.25803518295288086, 0.1927184760570526, 0.26154762506484985, 0.015484616160392761, -0.2523610293865204, -0.1678171455860138, -0.17777323722839355, -0.4431738555431366, 0.1421700417995453, -0.08232614398002625, -0.00574101135134697, 0.32680660486221313, -0.31135523319244385, 0.13596902787685394, -0.3278099596500397, 0.23645153641700745, -0.23099572956562042, -0.04422824829816818, 0.1614162176847458, 0.16898514330387115, 0.20521365106105804, -0.027447352185845375, 0.060644086450338364, -0.11625649034976959, -0.13619492948055267, 0.032520461827516556, 0.08521406352519989, -0.1906864196062088, -0.08295116573572159, 0.12108342349529266, 0.35094255208969116, -0.2500164806842804, -0.17338848114013672, 0.09696752578020096, 0.4047560691833496, 0.12476825714111328, -0.1476919949054718, -0.19689159095287323, -0.07403036206960678, 0.05092642456293106, 0.10554932802915573, -0.0859294980764389, 0.54710453748703, -0.024547196924686432, -0.006142087280750275, -0.3103554844856262, -0.5896708965301514, 0.5688981413841248, -0.52945876121521, -0.2349121868610382, -0.047747209668159485, 0.05475080758333206, 0.21131232380867004, -0.24218934774398804, -0.7404427528381348, -0.1408897340297699, 0.18855969607830048, 0.14899320900440216, -0.5372810959815979, 0.2568309009075165, -0.15093864500522614, -0.09874673187732697, -0.19662922620773315, 0.17170169949531555, 0.12903833389282227, -0.21359239518642426, -0.08669213205575943, -0.21527014672756195 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
turns out the multi proc issue is also on master, I won't fix it in this PR but opened #2071 to track the problem.
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
24
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. turns out the multi proc issue is also on master, I won't fix it in this PR but opened #2071 to track the problem.
[ -0.39695537090301514, -0.48651123046875, -0.14700374007225037, 0.18163874745368958, -0.06274694204330444, -0.31163886189460754, 0.2660488486289978, 0.12378498911857605, -0.0836377888917923, 0.2590774893760681, -0.1536637842655182, 0.06812062859535217, 0.08553803712129593, 0.38502824306488037, -0.3033279478549957, 0.00458332896232605, 0.028392814099788666, 0.0416373535990715, 0.08338139951229095, 0.19235099852085114, 0.04234514385461807, 0.21811269223690033, -0.2695533037185669, -0.2062968760728836, -0.009616388939321041, -0.0688793957233429, -0.010038532316684723, 0.02429448440670967, -0.03781413286924362, -0.33157679438591003, -0.02295379340648651, 0.23902565240859985, -0.28065213561058044, 0.660956859588623, -0.00010816809663083404, -0.14755091071128845, 0.09068118780851364, -0.01740533858537674, -0.06087491288781166, 0.039843179285526276, 0.2155168354511261, -0.044497840106487274, 0.27152279019355774, -0.17880119383335114, -0.3464960753917694, 0.276497483253479, -0.15279293060302734, -0.12291805446147919, 0.11847130954265594, 0.3510752022266388, 0.24706576764583588, 0.638090968132019, -0.1456533968448639, -0.10269474983215332, 0.04758625850081444, -0.08533492684364319, -0.10444393754005432, 0.056795064359903336, 0.6471773386001587, 0.10458991676568985, -0.3531438708305359, 0.5544079542160034, -0.02736065350472927, 0.1141432523727417, 0.14523401856422424, -0.020876526832580566, 0.0587674081325531, -0.23112550377845764, -0.02402585744857788, 0.3372310400009155, 0.17344817519187927, -0.14455854892730713, -0.3181001543998718, -0.364347368478775, -0.22243890166282654, -0.2735632658004761, -0.031115800142288208, 0.14447623491287231, -0.19460594654083252, -0.010921768844127655, -0.28747305274009705, 0.23495826125144958, 0.05762141942977905, -0.150349423289299, -0.2198607325553894, 0.14411497116088867, -0.11647329479455948, 0.03146801516413689, 0.14336171746253967, 0.06955578923225403, -0.3432522714138031, -0.14461567997932434, 0.20237861573696136, 0.10750405490398407, -0.1662738174200058, -0.15790130198001862, 0.09618734568357468, 0.14031295478343964, -0.11499271541833878, 0.1448766142129898, -0.2549818754196167, 0.22570860385894775, 0.05344569310545921, 0.12812602519989014, 0.30817100405693054, -0.0995183140039444, 0.08525039255619049, -0.06342051923274994, 0.09063810855150223, 0.264873743057251, -0.21909800171852112, -0.1285833716392517, 0.3371042013168335, -0.05821863189339638, -0.04498246684670448, -0.11961076408624649, -0.06098616495728493, -0.3667285442352295, -0.04009154811501503, 0.18233241140842438, 0.1517183780670166, -0.07219866663217545, 0.2126130759716034, 0.3053513169288635, -0.2552310526371002, 0.3120005130767822, 0.15722399950027466, -0.04135024547576904, -0.4251921772956848, -0.17576341331005096, -0.29995816946029663, 0.05275023356080055, -0.3654925227165222, -0.06879448890686035, 0.03049975261092186, -0.37195220589637756, 0.16469702124595642, 0.12905462086200714, 0.22472310066223145, -0.18866722285747528, -0.2351449877023697, -0.33822202682495117, 0.07203871756792068, 0.24599801003932953, 0.022220604121685028, 0.015041423961520195, 0.13421811163425446, -0.21817447245121002, -0.159454345703125, -0.06899406760931015, 0.2024061679840088, -0.10388320684432983, -0.14259830117225647, 0.2657420039176941, 0.07166418433189392, 0.09382109344005585, -0.009418383240699768, 0.3034615218639374, 0.5759226679801941, -0.10350912809371948, 0.08366487920284271, 0.09070317447185516, -0.4768349826335907, 0.16679278016090393, 0.1064872220158577, 0.14484351873397827, -0.11031147837638855, -0.024470672011375427, 0.16608889400959015, 0.10013793408870697, 0.24016213417053223, 0.3364003598690033, -0.018605368211865425, -0.23448997735977173, 0.08665747940540314, 0.1198277473449707, -0.17416754364967346, -0.2844373285770416, -0.18779677152633667, 0.1462210863828659, -0.08755289763212204, 0.16770325601100922, 0.19789965450763702, 0.001507570268586278, 0.2671217918395996, -0.2977978587150574, 0.19898945093154907, 0.17219781875610352, -0.1007283627986908, 0.05564302206039429, -0.32444706559181213, 0.08478761464357376, -0.11450710892677307, 0.23005028069019318, 0.25949349999427795, -0.12862172722816467, -0.22088444232940674, -0.19487108290195465, 0.43293267488479614, 0.10791689157485962, 0.1409682333469391, 0.3454521894454956, 0.06520556658506393, 0.31502842903137207, 0.021870644763112068, -0.41923579573631287, 0.21653065085411072, 0.10645579546689987, 0.22885918617248535, 0.3934306502342224, 0.061116863042116165, -0.25065916776657104, -0.11720575392246246, 0.1083826795220375, 0.04422542825341225, -0.2982312738895416, 0.12267088890075684, -0.04206538200378418, -0.14689278602600098, 0.024742547422647476, -0.047699905931949615, 0.2827116847038269, -0.1377612203359604, 0.13009078800678253, -0.264530748128891, -0.04604332521557808, -0.08889959752559662, -0.06221555173397064, 0.13151158392429352, 0.22777670621871948, 0.01455238088965416, 0.24076861143112183, -0.07594935595989227, 0.16793319582939148, -0.12921969592571259, 0.25629881024360657, -0.11244574934244156, 0.06822310388088226, 0.1278175413608551, -0.08253967761993408, 0.08304190635681152, 0.3130064606666565, 0.30457204580307007, -0.14259232580661774, -0.5659090876579285, 0.4951760172843933, 0.29568755626678467, 0.36298850178718567, 0.2058175951242447, -0.18200749158859253, 0.11653997004032135, -0.14385288953781128, 0.032940320670604706, -0.05042336881160736, 0.5280646681785583, 0.10240939259529114, 0.1353561282157898, 0.15447144210338593, -0.511062741279602, 0.4106100797653198, 0.3996829390525818, 0.1475621461868286, -0.23252445459365845, 0.4177745580673218, -0.09949841350317001, -0.2661268413066864, 0.07991156727075577, -0.17780670523643494, 0.14246365427970886, 0.3989957273006439, 0.17667032778263092, -0.09321325272321701, -0.09666959941387177, -0.25471246242523193, 0.28010621666908264, -0.0073973312973976135, -0.020760463550686836, 0.08441031724214554, 0.2658798098564148, 0.003979198634624481, -0.6227642893791199, -0.1596980094909668, -0.21606573462486267, -0.001997264102101326, -0.0190388523042202, 0.14701977372169495, -0.025840826332569122, -0.19708630442619324, 0.277317076921463, -0.13073241710662842, -0.10331641137599945, -0.28372302651405334, 0.15209943056106567, 0.5055639743804932, -0.06434226036071777, 0.1213783547282219, 0.17583248019218445, 0.11004354059696198, 0.1654244065284729, 0.07119180262088776, -0.14155268669128418, -0.2533836364746094, -0.1089734211564064, 0.15702086687088013, 0.04975910857319832, 0.07635677605867386, 0.4673176109790802, -0.044045329093933105, -0.08147942274808884, -0.010725293308496475, -0.3798610270023346, 0.029151223599910736, -0.11324378848075867, 0.32322683930397034, -0.08810453116893768, 0.0667969360947609, 0.12082859873771667, -0.0011702002957463264, 0.23110592365264893, -0.26459816098213196, -0.2363252490758896, -0.0815095379948616, -0.026538776233792305, 0.03694747015833855, -0.19297759234905243, -0.1489850878715515, -0.15280672907829285, -0.391666978597641, 0.18456661701202393, -0.013325151056051254, 0.12445319443941116, 0.08989802747964859, -0.06120212748646736, -0.08938276767730713, 0.09576112031936646, 0.27655157446861267, -0.35209912061691284, -0.3216986060142517, -0.09666159749031067, -0.08710023015737534, -0.2573617398738861, -0.3580099642276764, 0.12045224010944366, -0.12603579461574554, -0.10097839683294296, -0.3038858473300934, -0.3563680946826935, -0.5510150790214539, -0.060465406626462936, 0.19077593088150024, -0.06468748301267624, 0.3352336883544922, -0.07707184553146362, -0.3960694372653961, -0.061644524335861206, -0.45413875579833984, 0.012539923191070557, -0.15999874472618103, -0.19772914052009583, -0.1703414022922516, 0.42883262038230896, 0.2914356291294098, 0.3743255138397217, 0.1993415504693985, 0.08557558804750443, 0.24430881440639496, -0.022542892023921013, 0.16658145189285278, -0.22457006573677063, -0.2753080427646637, 0.07310996949672699, -0.11943748593330383, 0.11006185412406921, 0.45751428604125977, 0.11931823939085007, -0.30065497756004333, -0.0757606029510498, -0.11236868798732758, -0.4538712799549103, -0.3872189223766327, -0.07617747038602829, 0.18127509951591492, 0.02231374755501747, 0.2637237310409546, 0.10912976413965225, -0.010054104030132294, -0.16808107495307922, -0.24082547426223755, 0.25604796409606934, -0.21998611092567444, -0.2371244877576828, -0.2123338133096695, 0.10690135508775711, -0.5866127610206604, 0.2070399522781372, 0.11150993406772614, 0.08195364475250244, 0.054700817912817, -0.2119581699371338, 0.12010502815246582, -0.1971675157546997, 0.5530592799186707, 0.04915725439786911, 0.10508344322443008, 0.2233542650938034, -0.5370149612426758, -0.40109509229660034, 0.024102140218019485, -0.28014075756073, 0.12084964662790298, 0.20336629450321198, 0.26278388500213623, -0.30115678906440735, -0.29521235823631287, 0.14511758089065552, -0.09347707778215408, 0.07058969140052795, -0.0839778333902359, -0.0566454753279686, -0.1890910565853119, -0.31411227583885193, 0.5736669301986694, 0.23194323480129242, 0.39926037192344666, -0.10975436121225357, -0.2258944809436798, 0.01380186341702938, 0.02835361286997795, 0.3273056149482727, 0.008935036137700081, 0.1463530957698822, -0.09938705712556839, 0.3271857798099518, -0.2886010408401489, -0.04889731854200363, -0.08238701522350311, 0.377581924200058, -0.18675844371318817, -0.1017879843711853, 0.09218215197324753, -0.14844484627246857, 0.0400882363319397, 0.47856462001800537, 0.24041742086410522, 0.38643011450767517, 0.05498762056231499, 0.6512503623962402, -0.1846935898065567, 0.08808783441781998, -0.11083562672138214, 0.4952683746814728, -0.3322699964046478, -0.27589651942253113, 0.21902680397033691, 0.03340913727879524, -0.0977637842297554, 0.29165390133857727, -0.1998654454946518, -0.13947446644306183, 0.048776865005493164, 0.004447802901268005, 1.0138754844665527, -0.25864601135253906, 0.2445184737443924, -0.03487822413444519, 0.10159656405448914, 0.06613967567682266, -0.32761967182159424, 0.16166146099567413, -0.17315152287483215, -0.2931925654411316, 0.035255685448646545, 0.19246074557304382, -0.08490443974733353, -0.11335152387619019, -0.30711477994918823, 0.13351471722126007, 0.0027204081416130066, 0.1697852462530136, 0.009896616451442242, 0.15204143524169922, -0.1660204827785492, -0.34343796968460083, -0.41880011558532715, 0.18365533649921417, 0.21097595989704132, -0.040180888026952744, -0.03347157686948776, 0.1326468586921692, 0.21098938584327698, -0.23616424202919006, -0.45180052518844604, -0.048654936254024506, -0.09769625216722488, -0.04528062045574188, 0.10748837888240814, -0.2834141254425049, -0.11956880986690521, 0.1753774732351303, 0.10850796103477478, 0.110428586602211, -0.059060364961624146, 0.3806508779525757, -0.13326996564865112, 0.11380887776613235, -0.039219751954078674, -0.09524470567703247, 0.28377991914749146, -0.19537818431854248, -0.09282070398330688, -0.1523314118385315, -0.09938972443342209, -0.2033536732196808, 0.285353422164917, 0.30413907766342163, 0.007990233600139618, -0.12155720591545105, 0.03202320635318756, 0.12743724882602692, -0.0490623340010643, -0.5327047109603882, 0.1696040779352188, 0.06008279323577881, -0.25502029061317444, 0.2782486081123352, 0.16336382925510406, -0.3553710877895355, -0.2377251237630844, 0.4526103734970093, 0.42295363545417786, 0.2098008245229721, 0.14330217242240906, 0.5659398436546326, -0.409606397151947, -0.3443312346935272, -0.32083389163017273, 0.0492992177605629, -0.308281272649765, 0.42047974467277527, -0.10995704680681229, -0.3320698142051697, 0.49505990743637085, 0.3503899872303009, -0.1453002691268921, -0.026447534561157227, -0.11072959005832672, -0.3272630572319031, -0.015766501426696777, -0.09566099941730499, -0.23849143087863922, 0.09783968329429626, 0.1823423206806183, 0.3080810606479645, 0.06579788029193878, 0.2105349451303482, -0.4301280379295349, 0.0940174087882042, -0.5444974899291992, 0.30522263050079346, 0.11724398285150528, -0.2179112434387207, 0.3608054518699646, 0.0030751219019293785, 0.18596121668815613, 0.3366772532463074, -0.2804374694824219, -0.3269128203392029, -0.08278845250606537, 0.08212544769048691, -0.20149943232536316, 0.0018240339122712612, 0.16810078918933868, 0.2960566282272339, -0.27844691276550293, -0.2898186147212982, 0.21481217443943024, 0.16064026951789856, 0.027755793184041977, -0.14095482230186462, 0.11657555401325226, 0.0953233614563942, -0.061169013381004333, -0.06792427599430084, -0.12135361135005951, 0.02530629187822342, 0.035331841558218, -0.11851847171783447, -0.10388432443141937, -0.013488434255123138, 0.2902528643608093, 0.13922980427742004, 0.19504640996456146, 0.06413065642118454, 0.1271757036447525, 0.13156521320343018, -0.07105617970228195, 0.1593715250492096, 0.6133434772491455, 0.14717057347297668, 0.03773486614227295, -0.02276132069528103, 0.029177896678447723, 0.31874722242355347, -0.4884375333786011, -0.22630104422569275, 0.05418618023395538, -0.1396358460187912, 0.3557935059070587, 0.13383698463439941, 0.09289781749248505, 0.18875697255134583, 0.3315800428390503, 0.28275394439697266, 0.28920504450798035, -0.20025107264518738, -0.0805828869342804, -0.012674782425165176, 0.358854204416275, 0.056731633841991425, 0.41011369228363037, 0.14877362549304962, 0.17417778074741364, 0.4277273416519165, 0.21127429604530334, 0.3814980983734131, 0.12520824372768402, 0.3109845221042633, -0.18369799852371216, -0.18941755592823029, 0.17204566299915314, 0.329792857170105, -0.16225799918174744, 0.08183767646551132, -0.0524994432926178, 0.3313594162464142, -0.26584476232528687, -0.22803255915641785, -0.14910481870174408, 0.41022199392318726, -0.04005110263824463, -0.20272605121135712, 0.1937873214483261, -0.15686893463134766, -0.019354384392499924, 0.031948935240507126, 0.11163632571697235, 0.23658883571624756, 0.3381274938583374, -0.15214017033576965, 0.21663838624954224, -0.49457675218582153, -0.32337844371795654, -0.3635680675506592, 0.5244894623756409, -0.25494176149368286, 0.1706005185842514, 0.16016799211502075, 0.047257475554943085, 0.17301329970359802, 0.1376434564590454, 0.32866013050079346, -0.0423208624124527, -0.18655447661876678, 0.21023529767990112, -0.27846309542655945, -0.07090369611978531, -0.08219052106142044, 0.1945926696062088, 0.24784252047538757, 0.24395652115345, 0.14938026666641235, 0.20026957988739014, -0.28251218795776367, 0.19958241283893585, 0.14263470470905304, -0.10071836411952972, -0.23537039756774902, 0.12879090011119843, 0.05376502871513367, -0.03259236738085747, -0.24982735514640808, -0.04594364017248154, -0.39790332317352295, 0.006791200488805771, 0.40289103984832764, -0.3836425840854645, 0.17806297540664673, -0.09192367643117905, 0.14693374931812286, 0.1455942541360855, 0.3992805480957031, 0.07396836578845978, 0.22754207253456116, -0.061187535524368286, -0.25041037797927856, -0.3651815354824066, -0.09372534602880478, -0.05515526607632637, 0.040834441781044006, 0.2065591663122177, 0.24931128323078156, 0.1825263500213623, 0.18319545686244965, 0.0942397341132164, -0.0889536663889885, -0.02430947870016098, -0.12057468295097351, -0.5197036862373352, 0.12167996168136597, -0.04727192968130112, -0.19406822323799133, 0.3117077946662903, -0.2433161437511444, -0.007128085941076279, -0.4788866341114044, 0.24946483969688416, -0.13681726157665253, 0.06132452189922333, 0.11448310315608978, 0.031172815710306168, 0.14665448665618896, -0.10917270183563232, 0.08153349161148071, -0.11717507988214493, -0.1481115072965622, 0.15755613148212433, 0.16357015073299408, -0.2993071377277374, 0.057451047003269196, 0.09784974157810211, 0.38279029726982117, -0.11515538394451141, 0.020288685336709023, 0.2643350064754486, 0.3829432427883148, 0.26094579696655273, -0.019473252817988396, -0.20179253816604614, 0.015827059745788574, 0.09038010984659195, 0.1829598993062973, -0.20915640890598297, 0.5095392465591431, 0.03749965876340866, 0.02269531972706318, -0.2214323878288269, -0.6913135647773743, 0.5575002431869507, -0.32619035243988037, -0.2705930173397064, -0.21645185351371765, 0.10048218816518784, 0.08844265341758728, -0.17538043856620789, -0.5904821157455444, -0.0717153549194336, 0.14713892340660095, 0.1251257359981537, -0.5777697563171387, 0.3976983428001404, -0.14649465680122375, -0.25164392590522766, -0.15437857806682587, 0.07039803266525269, 0.22929486632347107, -0.3058405816555023, -0.02190231904387474, -0.25148460268974304 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
tracemalloc outputs from this script: ```python import logging import sys import time import tracemalloc from datasets import load_dataset, set_caching_enabled if __name__ == "__main__": set_caching_enabled(False) logging.basicConfig(level=logging.DEBUG) tracemalloc.start() bc = load_dataset("bookcorpus") now = time.time() try: snapshot1 = tracemalloc.take_snapshot() bc["train"].filter(lambda x: len(x["text"]) < 64, num_proc=int(sys.argv[1])) except Exception as e: print(f"cancelled: {e}") exit(1) snapshot2 = tracemalloc.take_snapshot() tracemalloc.stop() elapsed = time.time() - now print(elapsed) top_stats = snapshot2.compare_to(snapshot1, "lineno") print("[ Top 10 differences ]") for stat in top_stats[:10]: print(stat) ``` This branch: ``` ssh://theo@35.205.12.130:22/home/theo/.local/share/miniconda3/envs/datasets/bin/python -u benchmark_filter.py 1 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): s3.amazonaws.com:443 DEBUG:urllib3.connectionpool:https://s3.amazonaws.com:443 "HEAD /datasets.huggingface.co/datasets/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/dataset_infos.json HTTP/1.1" 200 0 WARNING:datasets.builder:Reusing dataset bookcorpus (/home/theo/.cache/huggingface/datasets/bookcorpus/plain_text/1.0.0/af844be26c089fb64810e9f2cd841954fd8bd596d6ddd26326e4c70e2b8c96fc) 0%| | 0/74005 [00:00<?, ?ba/s]2021-03-23 10:23:20.051255: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2021-03-23 10:23:20.051304: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. DEBUG:tensorflow:Falling back to TensorFlow client; we recommended you install the Cloud TPU client directly with pip install cloud-tpu-client. 100%|████████████████████████████████████| 74005/74005 [12:16<00:00, 100.54ba/s] 815.6356580257416 [ Top 10 differences ] <frozen importlib._bootstrap_external>:580: size=38.0 MiB (+33.7 MiB), count=326226 (+307928), average=122 B <frozen importlib._bootstrap>:219: size=7643 KiB (+7553 KiB), count=26372 (+25473), average=297 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/torch/__init__.py:427: size=1291 KiB (+1291 KiB), count=5924 (+5924), average=223 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/abc.py:85: size=1039 KiB (+1026 KiB), count=3428 (+3384), average=310 B <frozen importlib._bootstrap_external>:64: size=917 KiB (+891 KiB), count=5300 (+5132), average=177 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/collections/__init__.py:456: size=720 KiB (+709 KiB), count=3403 (+3349), average=217 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_export.py:346: size=607 KiB (+607 KiB), count=3962 (+3962), average=157 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/linecache.py:137: size=998 KiB (+487 KiB), count=9551 (+4517), average=107 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_decorator.py:241: size=367 KiB (+367 KiB), count=5225 (+5225), average=72 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/decorator_utils.py:114: size=359 KiB (+359 KiB), count=330 (+330), average=1114 B ``` On master: ``` ssh://theo@35.205.12.130:22/home/theo/.local/share/miniconda3/envs/datasets/bin/python -u benchmark_filter.py 1 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): s3.amazonaws.com:443 DEBUG:urllib3.connectionpool:https://s3.amazonaws.com:443 "HEAD /datasets.huggingface.co/datasets/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/dataset_infos.json HTTP/1.1" 200 0 WARNING:datasets.builder:Reusing dataset bookcorpus (/home/theo/.cache/huggingface/datasets/bookcorpus/plain_text/1.0.0/af844be26c089fb64810e9f2cd841954fd8bd596d6ddd26326e4c70e2b8c96fc) 0%| | 0/74005 [00:00<?, ?ba/s]2021-03-23 12:26:47.219622: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2021-03-23 12:26:47.219669: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. DEBUG:tensorflow:Falling back to TensorFlow client; we recommended you install the Cloud TPU client directly with pip install cloud-tpu-client. 100%|███████████████████████████████████| 74005/74005 [1:02:17<00:00, 19.80ba/s] 3738.870892047882 [ Top 10 differences ] <frozen importlib._bootstrap_external>:580: size=38.0 MiB (+33.7 MiB), count=326221 (+307919), average=122 B <frozen importlib._bootstrap>:219: size=7648 KiB (+7557 KiB), count=26455 (+25555), average=296 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/torch/__init__.py:427: size=1291 KiB (+1291 KiB), count=5924 (+5924), average=223 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/abc.py:85: size=1039 KiB (+1026 KiB), count=3429 (+3385), average=310 B <frozen importlib._bootstrap_external>:64: size=917 KiB (+891 KiB), count=5300 (+5132), average=177 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/collections/__init__.py:456: size=720 KiB (+709 KiB), count=3403 (+3349), average=217 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_export.py:346: size=607 KiB (+607 KiB), count=3962 (+3962), average=157 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/linecache.py:137: size=1000 KiB (+489 KiB), count=9569 (+4535), average=107 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_decorator.py:241: size=367 KiB (+367 KiB), count=5225 (+5225), average=72 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/decorator_utils.py:114: size=359 KiB (+359 KiB), count=330 (+330), average=1114 B ``` I'm not concluding much, it seems nothing is really happening to memory on `pyarrow::Table.filter`?
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
518
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. tracemalloc outputs from this script: ```python import logging import sys import time import tracemalloc from datasets import load_dataset, set_caching_enabled if __name__ == "__main__": set_caching_enabled(False) logging.basicConfig(level=logging.DEBUG) tracemalloc.start() bc = load_dataset("bookcorpus") now = time.time() try: snapshot1 = tracemalloc.take_snapshot() bc["train"].filter(lambda x: len(x["text"]) < 64, num_proc=int(sys.argv[1])) except Exception as e: print(f"cancelled: {e}") exit(1) snapshot2 = tracemalloc.take_snapshot() tracemalloc.stop() elapsed = time.time() - now print(elapsed) top_stats = snapshot2.compare_to(snapshot1, "lineno") print("[ Top 10 differences ]") for stat in top_stats[:10]: print(stat) ``` This branch: ``` ssh://theo@35.205.12.130:22/home/theo/.local/share/miniconda3/envs/datasets/bin/python -u benchmark_filter.py 1 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): s3.amazonaws.com:443 DEBUG:urllib3.connectionpool:https://s3.amazonaws.com:443 "HEAD /datasets.huggingface.co/datasets/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/dataset_infos.json HTTP/1.1" 200 0 WARNING:datasets.builder:Reusing dataset bookcorpus (/home/theo/.cache/huggingface/datasets/bookcorpus/plain_text/1.0.0/af844be26c089fb64810e9f2cd841954fd8bd596d6ddd26326e4c70e2b8c96fc) 0%| | 0/74005 [00:00<?, ?ba/s]2021-03-23 10:23:20.051255: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2021-03-23 10:23:20.051304: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. DEBUG:tensorflow:Falling back to TensorFlow client; we recommended you install the Cloud TPU client directly with pip install cloud-tpu-client. 100%|████████████████████████████████████| 74005/74005 [12:16<00:00, 100.54ba/s] 815.6356580257416 [ Top 10 differences ] <frozen importlib._bootstrap_external>:580: size=38.0 MiB (+33.7 MiB), count=326226 (+307928), average=122 B <frozen importlib._bootstrap>:219: size=7643 KiB (+7553 KiB), count=26372 (+25473), average=297 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/torch/__init__.py:427: size=1291 KiB (+1291 KiB), count=5924 (+5924), average=223 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/abc.py:85: size=1039 KiB (+1026 KiB), count=3428 (+3384), average=310 B <frozen importlib._bootstrap_external>:64: size=917 KiB (+891 KiB), count=5300 (+5132), average=177 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/collections/__init__.py:456: size=720 KiB (+709 KiB), count=3403 (+3349), average=217 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_export.py:346: size=607 KiB (+607 KiB), count=3962 (+3962), average=157 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/linecache.py:137: size=998 KiB (+487 KiB), count=9551 (+4517), average=107 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_decorator.py:241: size=367 KiB (+367 KiB), count=5225 (+5225), average=72 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/decorator_utils.py:114: size=359 KiB (+359 KiB), count=330 (+330), average=1114 B ``` On master: ``` ssh://theo@35.205.12.130:22/home/theo/.local/share/miniconda3/envs/datasets/bin/python -u benchmark_filter.py 1 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): s3.amazonaws.com:443 DEBUG:urllib3.connectionpool:https://s3.amazonaws.com:443 "HEAD /datasets.huggingface.co/datasets/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/bookcorpus.py HTTP/1.1" 200 0 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com:443 DEBUG:urllib3.connectionpool:https://raw.githubusercontent.com:443 "HEAD /huggingface/datasets/master/datasets/bookcorpus/dataset_infos.json HTTP/1.1" 200 0 WARNING:datasets.builder:Reusing dataset bookcorpus (/home/theo/.cache/huggingface/datasets/bookcorpus/plain_text/1.0.0/af844be26c089fb64810e9f2cd841954fd8bd596d6ddd26326e4c70e2b8c96fc) 0%| | 0/74005 [00:00<?, ?ba/s]2021-03-23 12:26:47.219622: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2021-03-23 12:26:47.219669: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. DEBUG:tensorflow:Falling back to TensorFlow client; we recommended you install the Cloud TPU client directly with pip install cloud-tpu-client. 100%|███████████████████████████████████| 74005/74005 [1:02:17<00:00, 19.80ba/s] 3738.870892047882 [ Top 10 differences ] <frozen importlib._bootstrap_external>:580: size=38.0 MiB (+33.7 MiB), count=326221 (+307919), average=122 B <frozen importlib._bootstrap>:219: size=7648 KiB (+7557 KiB), count=26455 (+25555), average=296 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/torch/__init__.py:427: size=1291 KiB (+1291 KiB), count=5924 (+5924), average=223 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/abc.py:85: size=1039 KiB (+1026 KiB), count=3429 (+3385), average=310 B <frozen importlib._bootstrap_external>:64: size=917 KiB (+891 KiB), count=5300 (+5132), average=177 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/collections/__init__.py:456: size=720 KiB (+709 KiB), count=3403 (+3349), average=217 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_export.py:346: size=607 KiB (+607 KiB), count=3962 (+3962), average=157 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/linecache.py:137: size=1000 KiB (+489 KiB), count=9569 (+4535), average=107 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/tf_decorator.py:241: size=367 KiB (+367 KiB), count=5225 (+5225), average=72 B /home/theo/.local/share/miniconda3/envs/datasets/lib/python3.8/site-packages/tensorflow/python/util/decorator_utils.py:114: size=359 KiB (+359 KiB), count=330 (+330), average=1114 B ``` I'm not concluding much, it seems nothing is really happening to memory on `pyarrow::Table.filter`?
[ -0.37395304441452026, -0.24417565762996674, -0.2015218585729599, 0.03264067322015762, -0.016750991344451904, -0.24752745032310486, 0.25200486183166504, 0.26599404215812683, -0.0044791121035814285, -0.04985566437244415, -0.23408685624599457, 0.13357073068618774, 0.1316613405942917, 0.2592502236366272, -0.18428859114646912, 0.15102046728134155, -0.021071553230285645, -0.0240364670753479, -0.004207201302051544, 0.07739630341529846, -0.08241705596446991, 0.14708305895328522, -0.12517407536506653, -0.4362637400627136, -0.07133165746927261, -0.08758995682001114, 0.26843562722206116, 0.0791262537240982, -0.23414568603038788, -0.40317440032958984, 0.30534225702285767, 0.1879582703113556, -0.19544003903865814, 0.629275381565094, -0.00010853976709768176, 0.06204918026924133, 0.17172349989414215, 0.09172261506319046, -0.3348088562488556, -0.1103067696094513, 0.13822343945503235, -0.07614036649465561, 0.1627902388572693, -0.1412164717912674, -0.22791334986686707, 0.152203768491745, -0.13216666877269745, -0.18862438201904297, 0.36422812938690186, 0.37794557213783264, 0.2749386429786682, 0.5406656265258789, -0.2558000683784485, 0.04050135239958763, 0.4851868152618408, -0.015966035425662994, -0.3388751447200775, 0.1529131978750229, 0.5288115739822388, 0.13495774567127228, -0.33336758613586426, 0.6196123361587524, -0.23415066301822662, 0.1470498889684677, 0.15703612565994263, -0.06354103237390518, 0.05115118622779846, -0.17665062844753265, 0.16720959544181824, 0.25715723633766174, 0.25400516390800476, -0.2889401614665985, -0.3605800271034241, -0.2300160825252533, -0.35807979106903076, -0.19124963879585266, -0.0005082562565803528, -0.03131330758333206, -0.15172667801380157, -0.07674504816532135, -0.407785028219223, 0.12554219365119934, -0.012421805411577225, 0.1016397476196289, -0.11128820478916168, 0.44998642802238464, -0.26600009202957153, -0.008240871131420135, 0.06411456316709518, -0.051122911274433136, 0.2830098867416382, -0.28940093517303467, 0.1632159799337387, 0.024494927376508713, -0.31217867136001587, -0.1812913566827774, 0.22032350301742554, -0.0874730572104454, -0.05755823850631714, 0.30456411838531494, 0.06698179990053177, 0.28831490874290466, 0.30625706911087036, 0.09922768920660019, 0.09410521388053894, 0.1289687156677246, 0.11486148834228516, 0.195956751704216, 0.2663037180900574, 0.5033909678459167, -0.07858899980783463, 0.09820789098739624, 0.33063891530036926, -0.23920181393623352, -0.028826814144849777, -0.04518427699804306, 0.16774232685565948, -0.35073649883270264, -0.34285661578178406, 0.09114331007003784, -0.16650183498859406, -0.11009329557418823, 0.17567643523216248, 0.41444236040115356, -0.2342345118522644, -0.07400535047054291, 0.11805939674377441, -0.12044204771518707, -0.4365813136100769, 0.09971202164888382, -0.2732517421245575, -0.04221983626484871, -0.15526920557022095, -0.11803009361028671, 0.19099615514278412, -0.3468632698059082, 0.29988062381744385, -0.001321248710155487, 0.05516546964645386, -0.026887493208050728, 0.1771497279405594, -0.2660350203514099, 0.3045690059661865, 0.23876728117465973, 0.0948910117149353, -0.010436397977173328, 0.19327518343925476, -0.0756358653306961, -0.19163350760936737, -0.1786211133003235, 0.0474957637488842, -0.11808435618877411, 0.030404996126890182, 0.26010265946388245, -0.03659055009484291, -0.17564627528190613, 0.0565389059484005, 0.21744950115680695, 0.2216486930847168, 0.001787673681974411, 0.11344145238399506, 0.08633138239383698, -0.6628903150558472, 0.0665130540728569, 0.27119022607803345, 0.1891210973262787, -0.30043691396713257, -0.23743997514247894, -0.047776997089385986, 0.1606946736574173, 0.2144950032234192, 0.2963252067565918, -0.10550206154584885, -0.04007917642593384, 0.14021874964237213, 0.3281118869781494, 0.04925750941038132, -0.4299905300140381, -0.4499111771583557, 0.3476467728614807, -0.035062942653894424, 0.0776844173669815, 0.15668892860412598, -0.0037341038696467876, 0.30491194128990173, -0.1898084580898285, 0.3091106414794922, 0.062452320009469986, 0.06725197285413742, 0.049745284020900726, -0.36467841267585754, -0.0644354298710823, -0.07757558673620224, 0.19482950866222382, 0.13972079753875732, -0.20597901940345764, -0.05292471498250961, -0.24786172807216644, 0.13447913527488708, 0.04447593167424202, 0.04176723212003708, 0.3323363661766052, 0.3674160838127136, 0.10665085911750793, 0.17256642878055573, -0.12515631318092346, -0.03928827494382858, 0.13455840945243835, 0.012110356241464615, 0.29106783866882324, -0.053491830825805664, -0.2171935737133026, -0.3913297951221466, -0.09264561533927917, -0.11491519212722778, -0.289974570274353, 0.17041213810443878, -0.05544541776180267, 0.009896781295537949, -0.08270137012004852, -0.018251612782478333, -0.030757924541831017, -0.2940436601638794, 0.05438115447759628, -0.2627562880516052, 0.20540575683116913, -0.08365053683519363, -0.0906032845377922, 0.08639082312583923, 0.03858822211623192, 0.1031937301158905, 0.12339601665735245, -0.07745769619941711, 0.24921280145645142, -0.11687055230140686, 0.35595154762268066, 0.31593379378318787, 0.22101175785064697, 0.055840715765953064, -0.10910820960998535, 0.1611550748348236, 0.3122078776359558, 0.1982184648513794, 0.0666981115937233, -0.278200626373291, 0.46376293897628784, 0.12566092610359192, 0.4146129786968231, 0.20793600380420685, -0.34029531478881836, 0.040942512452602386, -0.15032808482646942, -0.05674438923597336, -0.05203081667423248, 0.3957464098930359, -0.10723543167114258, 0.15955081582069397, -0.01536758802831173, -0.2366100251674652, 0.3031357228755951, 0.30325713753700256, 0.08554120361804962, 0.13200567662715912, 0.2941425144672394, -0.15957212448120117, -0.34888318181037903, 0.023632191121578217, 0.24231697618961334, 0.22776493430137634, 0.32256507873535156, 0.34766528010368347, 0.1548357456922531, -0.010047760792076588, -0.19891357421875, 0.39547377824783325, 0.12177224457263947, 0.007840742357075214, 0.31642815470695496, 0.18699149787425995, 0.0015015322715044022, -0.6122616529464722, -0.17874015867710114, -0.18021255731582642, 0.10977230966091156, -0.19470255076885223, 0.23475567996501923, -0.09997883439064026, -0.3363114595413208, 0.1787046194076538, 0.1780131608247757, -0.021994955837726593, -0.2684195041656494, 0.09686171263456345, 0.37964048981666565, -0.10385999083518982, 0.2137543112039566, -0.0670647919178009, 0.2768649458885193, 0.04042384773492813, -0.05447440594434738, -0.2437310367822647, -0.2566215991973877, -0.2549668550491333, 0.21504108607769012, 0.1455128937959671, 0.05161340907216072, 0.42758116126060486, -0.11384789645671844, -0.14973554015159607, -0.22068263590335846, -0.5925801992416382, 0.07059037685394287, -0.019833609461784363, 0.29568859934806824, 0.2595323622226715, 0.058612484484910965, -0.2160356491804123, -0.08214074373245239, 0.1376475989818573, -0.16337384283542633, -0.4161677658557892, -0.29469770193099976, -0.23626044392585754, 0.010389148257672787, 0.014073915779590607, -0.4264325201511383, -0.049399927258491516, -0.37713348865509033, 0.03378346562385559, -0.0473766028881073, 0.13761070370674133, 0.05450819805264473, -0.05473330616950989, 0.23268330097198486, -0.09055264294147491, 0.3403506577014923, -0.3364017903804779, -0.41747432947158813, 0.11208726465702057, -0.03121298924088478, -0.2561546862125397, -0.0930330902338028, 0.04903747886419296, -0.016128938645124435, 0.05878547951579094, -0.6014600992202759, -0.13793304562568665, -0.2871036231517792, -0.06375972181558609, 0.13559654355049133, 0.07757798582315445, 0.2963090240955353, -0.06365439295768738, -0.3180687129497528, -0.11066240817308426, -0.34226194024086, -0.28409361839294434, -0.254090815782547, 0.10518651455640793, -0.2771190106868744, 0.4741742014884949, 0.3925631642341614, 0.5718053579330444, 0.17743146419525146, 0.0037190690636634827, 0.2502819001674652, 0.057804882526397705, 0.15182611346244812, -0.1661010980606079, -0.2959132194519043, 0.04791685566306114, -0.24917307496070862, -0.040728650987148285, 0.4120616316795349, 0.10660245269536972, -0.19910204410552979, -0.15151208639144897, -0.15998439490795135, -0.3859443962574005, -0.2681505084037781, -0.032468512654304504, 0.21220235526561737, 0.18974977731704712, 0.0742756575345993, 0.06351020187139511, -0.04842907562851906, -0.19990721344947815, -0.11968529224395752, 0.1223374754190445, -0.21652159094810486, -0.12222278863191605, -0.3281276822090149, 0.2379188984632492, -0.6624653935432434, 0.3926265835762024, 0.14748962223529816, 0.19837510585784912, -0.20130179822444916, -0.13911589980125427, 0.06794513761997223, -0.18239466845989227, 0.5240825414657593, -0.24163539707660675, 0.26254504919052124, 0.09415432810783386, -0.3647576570510864, -0.5413511991500854, 0.12513063848018646, -0.3251497447490692, 0.18223150074481964, 0.3530307710170746, 0.46176114678382874, -0.20391029119491577, -0.14874789118766785, 0.19606558978557587, -0.22155070304870605, 0.16786952316761017, 0.045916181057691574, -0.26713308691978455, -0.30025848746299744, -0.22713328897953033, 0.2802554965019226, 0.13371752202510834, 0.10206866264343262, -0.0019231911282986403, -0.1355741024017334, 0.1151798814535141, -0.07800386846065521, 0.16412436962127686, 0.13375510275363922, 0.09977343678474426, 0.06957216560840607, 0.30856338143348694, -0.16979745030403137, -0.012765400111675262, 0.03944563865661621, 0.7056846618652344, -0.10777543485164642, -0.3165532350540161, 0.053362537175416946, 0.16910892724990845, 0.043336108326911926, 0.45399999618530273, 0.1448773741722107, 0.26358264684677124, 0.2052711695432663, 0.3139023780822754, -0.05430370941758156, 0.10271529108285904, 0.20532043278217316, 0.4276258945465088, -0.2617579698562622, -0.09397058933973312, 0.37183767557144165, 0.026250679045915604, -0.027448661625385284, 0.31744012236595154, -0.27119070291519165, -0.24848617613315582, 0.16411124169826508, 0.11200070381164551, 0.879997193813324, 0.13201633095741272, 0.26732563972473145, -0.0013579018414020538, -0.07910987734794617, 0.253768652677536, -0.25328195095062256, 0.05396253243088722, -0.10935202240943909, -0.16859428584575653, -0.033058591187000275, -0.03997674584388733, 0.08082155138254166, -0.30210477113723755, -0.18847613036632538, 0.10264431685209274, -0.055394139140844345, 0.2060556709766388, 0.011831245385110378, 0.1369587779045105, -0.28801432251930237, -0.06788651645183563, -0.3207636773586273, 0.1964530646800995, -0.020166471600532532, 0.12917864322662354, -0.023581339046359062, 0.20275668799877167, -0.07600138336420059, -0.2167212963104248, -0.17200806736946106, 0.04593300074338913, -0.21269740164279938, 0.05531785264611244, 0.10965333878993988, -0.2519592344760895, -0.010780185461044312, -0.08803077042102814, 0.07135222852230072, -0.058696385473012924, -0.08455139398574829, 0.35009321570396423, 0.10416624695062637, 0.2562510073184967, 0.27162519097328186, -0.16520097851753235, 0.1677122861146927, -0.21507519483566284, -0.11592274159193039, -0.18119516968727112, 0.06563816964626312, -0.22366659343242645, 0.14863455295562744, 0.08595498651266098, 0.054486170411109924, -0.4200597107410431, -0.04010634869337082, 0.019741885364055634, -0.21543434262275696, -0.4614346921443939, 0.18737834692001343, -0.10407635569572449, -0.25195592641830444, 0.24734261631965637, 0.13431398570537567, -0.41985392570495605, -0.17202557623386383, 0.7175160646438599, 0.11153007298707962, 0.27504831552505493, 0.2842708230018616, 0.3686985969543457, -0.38766270875930786, -0.28004375100135803, -0.0660843700170517, 0.10495547205209732, -0.12674415111541748, 0.36224016547203064, -0.21866407990455627, -0.21404299139976501, 0.2855265438556671, 0.43175432085990906, -0.0030805282294750214, 0.1316920816898346, -0.09860068559646606, -0.32846373319625854, 0.15263894200325012, 0.034358471632003784, 0.12124943733215332, 0.21121223270893097, 0.037186674773693085, 0.1384553611278534, -0.048743754625320435, -0.09715723991394043, -0.41813570261001587, 0.1690664291381836, -0.3658907115459442, 0.1870681494474411, -0.28301936388015747, -0.14705568552017212, 0.45294511318206787, -0.08900822699069977, 0.14928346872329712, 0.207291379570961, -0.4212382733821869, -0.350702166557312, -0.13456134498119354, 0.10087606310844421, -0.1160740777850151, -0.36389097571372986, 0.04735109210014343, 0.21293972432613373, -0.1091570109128952, -0.18094590306282043, 0.17207394540309906, 0.31369051337242126, 0.022900432348251343, -0.0239708349108696, -0.17187650501728058, -0.07045576721429825, 0.02234501764178276, -0.16269589960575104, -0.19531571865081787, -0.029861748218536377, 0.15981850028038025, 0.15078145265579224, 0.02210584469139576, -0.05925650894641876, 0.20820903778076172, 0.045010410249233246, 0.10271664708852768, 0.09909087419509888, 0.2570517659187317, -0.10141278803348541, -0.15473294258117676, 0.07354146987199783, 0.5103483200073242, 0.40468424558639526, -0.11120162904262543, -0.270109623670578, -0.15520423650741577, 0.3291742503643036, -0.34025123715400696, -0.212117537856102, -0.06083749607205391, -0.07765733450651169, 0.31024834513664246, -0.12342996150255203, 0.017508793622255325, 0.2692050337791443, 0.28628480434417725, 0.27395716309547424, 0.33667388558387756, -0.3165961503982544, 0.3167881369590759, -0.013617690652608871, 0.12737546861171722, 0.06401385366916656, 0.25437697768211365, -0.05847179517149925, 0.07766298204660416, 0.11776624619960785, 0.1654452085494995, 0.5108304023742676, -0.04042696952819824, 0.49468091130256653, -0.19249334931373596, -0.17837722599506378, 0.3574000597000122, 0.2572244107723236, -0.25466188788414, 0.14779368042945862, 0.0705152302980423, 0.2196447253227234, -0.009836808778345585, -0.014078430831432343, -0.04391777515411377, 0.12940748035907745, -0.10463029891252518, -0.36376187205314636, -0.3402167558670044, -0.15300697088241577, -0.02831549197435379, 0.06443531811237335, 0.02211202122271061, 0.1084851324558258, -0.017408370971679688, -0.047045543789863586, -0.03296244144439697, -0.4183216989040375, -0.2558363676071167, -0.3339255154132843, 0.4041219651699066, -0.18705423176288605, 0.26677390933036804, 0.2662696838378906, 0.14640690386295319, -0.00801832228899002, 0.3947419226169586, 0.42767441272735596, -0.02676529809832573, -0.1806914210319519, 0.027376115322113037, -0.11314886808395386, -0.15696018934249878, -0.13063111901283264, 0.18750305473804474, 0.19400155544281006, 0.0337056927382946, 0.16091129183769226, 0.24023255705833435, -0.27577924728393555, 0.3338131308555603, -0.02565981075167656, -0.16493089497089386, -0.03274492919445038, 0.13259467482566833, -0.1150062084197998, 0.038130998611450195, -0.19674554467201233, 0.12326706945896149, -0.428358793258667, -0.09229007363319397, 0.5855742692947388, -0.36043021082878113, 0.2140572965145111, -0.12157819420099258, 0.13147211074829102, 0.029709655791521072, 0.5383133888244629, 0.09408032894134521, 0.0275585874915123, -0.23205947875976562, -0.047962285578250885, -0.17832371592521667, 0.023812122642993927, -0.022388089448213577, -0.11534300446510315, -0.032758429646492004, 0.3885776698589325, -0.022683918476104736, 0.266326904296875, 0.13230425119400024, -0.23415294289588928, -0.1070355698466301, -0.15747420489788055, -0.3440060317516327, 0.1486046314239502, -0.13636314868927002, -0.03270789235830307, 0.18550501763820648, -0.32011350989341736, -0.02786881849169731, -0.3246060013771057, 0.13773700594902039, -0.17824390530586243, -0.31640201807022095, 0.3155669867992401, -0.021043255925178528, 0.24046115577220917, -0.09302546083927155, 0.31161412596702576, -0.22779101133346558, -0.07979071140289307, 0.10184052586555481, -0.20347659289836884, -0.26209184527397156, 0.16340330243110657, 0.1062852293252945, 0.4157349765300751, -0.05481480807065964, -0.17196016013622284, 0.06949163228273392, 0.4694820046424866, 0.09299702942371368, -0.17369668185710907, -0.04107045382261276, 0.015853704884648323, 0.22121122479438782, 0.06746800988912582, -0.31685101985931396, 0.39177843928337097, 0.029652081429958344, 0.10771635174751282, -0.4273470640182495, -0.6482974290847778, 0.6124809980392456, -0.4301930367946625, 0.010343693196773529, -0.17548753321170807, 0.23296573758125305, 0.40895992517471313, -0.12620319426059723, -0.5956754684448242, 0.038608066737651825, 0.26871711015701294, 0.06678302586078644, -0.25262072682380676, 0.4637056887149811, -0.10978205502033234, 0.14535611867904663, -0.0863507017493248, 0.14482900500297546, 0.0953124612569809, -0.21239125728607178, -0.18088997900485992, -0.3253605365753174 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
Cool ! Maybe it increases the memory a bit but what's brought in memory is not the resulting Table but something else (not sure what though). What's the length of the resulting dataset ? You can also take a look at `pyarrow.total_allocated_memory()` to show how much memory is being used by pyarrow
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
52
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. Cool ! Maybe it increases the memory a bit but what's brought in memory is not the resulting Table but something else (not sure what though). What's the length of the resulting dataset ? You can also take a look at `pyarrow.total_allocated_memory()` to show how much memory is being used by pyarrow
[ -0.225839301943779, -0.16195987164974213, -0.18584056198596954, 0.20122016966342926, -0.04734811186790466, -0.08212847262620926, 0.013871550559997559, 0.2741747200489044, -0.23369570076465607, -0.005757816135883331, -0.30545559525489807, 0.31630218029022217, 0.06611732393503189, 0.18339411914348602, 0.23066489398479462, -0.137997567653656, 0.19562700390815735, 0.04414613917469978, 0.03519533574581146, 0.19640685617923737, -0.11328664422035217, -0.03513123840093613, -0.3271769881248474, -0.19970683753490448, -0.04506709426641464, 0.04614609479904175, 0.014096884056925774, -0.042187273502349854, -0.2547210156917572, -0.4135407507419586, 0.003860432654619217, 0.2826089859008789, -0.3516690731048584, 0.4603264629840851, -0.00011214385449420661, -0.07001378387212753, 0.05288095027208328, -0.006918100640177727, -0.15905162692070007, 0.24100905656814575, 0.42663124203681946, -0.18108543753623962, 0.2746768593788147, -0.08666577190160751, 0.004694987088441849, -0.023536328226327896, -0.18364053964614868, 0.17769742012023926, 0.09355171769857407, 0.2851282060146332, 0.23303037881851196, 0.4880807101726532, 0.0006894618272781372, 0.1696295589208603, 0.6353442072868347, -0.03816983103752136, -0.13740362226963043, 0.2957223057746887, 0.6072111129760742, -0.1711367666721344, -0.373977929353714, 0.4777309000492096, -0.1629699170589447, -0.00792691484093666, 0.3006132245063782, 0.15422576665878296, -0.20487681031227112, 0.04344750940799713, 0.12889069318771362, 0.10431769490242004, 0.29368463158607483, -0.4934764802455902, -0.11844178289175034, -0.28093329071998596, -0.2958984673023224, -0.38344088196754456, 0.08385935425758362, 0.18770208954811096, -0.34960687160491943, 0.0941210687160492, -0.21490173041820526, 0.0929139107465744, -0.012850642204284668, -0.06038908660411835, -0.1538715660572052, 0.21835869550704956, 0.0245608352124691, 0.014104478061199188, 0.311876505613327, 0.07514044642448425, 0.0448274128139019, -0.11350813508033752, 0.08890630304813385, 0.2296701967716217, -0.1833082139492035, -0.01125524565577507, 0.049632471054792404, 0.22387781739234924, 0.2063230574131012, -0.10784341394901276, -0.0007533589377999306, 0.21766257286071777, 0.38882046937942505, -0.007577143609523773, 0.18495017290115356, 0.0888645350933075, -0.09773697704076767, -0.007234763354063034, 0.04140155017375946, 0.17657499015331268, -0.045340850949287415, -0.1546856164932251, 0.25998392701148987, -0.031185034662485123, 0.2155604511499405, -0.4510745108127594, 0.06532188504934311, -0.16584858298301697, -0.05423080921173096, 0.15701229870319366, -0.08010132610797882, -0.037380460649728775, 0.052125755697488785, 0.42265960574150085, -0.3064987063407898, -0.06124548614025116, 0.2302970439195633, -0.18165773153305054, -0.45453596115112305, -0.3160756230354309, -0.28298255801200867, 0.07122387737035751, -0.4037955105304718, -0.020416969433426857, 0.029978010803461075, -0.18891455233097076, 0.06482331454753876, 0.047695860266685486, -0.0032403022050857544, 0.02452976256608963, -0.007536783814430237, -0.22105011343955994, 0.3113657534122467, 0.43726202845573425, -0.06173718348145485, -0.1534682959318161, -0.10101799666881561, -0.17919832468032837, -0.18966123461723328, 0.42348116636276245, 0.18552814424037933, -0.3091821074485779, -0.018664291128516197, 0.21495701372623444, -0.05201008543372154, -0.07248575240373611, -0.22956103086471558, 0.4122040867805481, 0.4317895472049713, -0.11615502834320068, 0.11950036883354187, 0.06556542217731476, -0.38263335824012756, -0.10077366232872009, 0.20617757737636566, 0.1901697963476181, -0.5352485179901123, -0.12646043300628662, 0.11378025263547897, -0.1402299553155899, 0.21233275532722473, 0.3540574610233307, -0.10925916582345963, 0.01704666018486023, 0.1962452083826065, 0.33387815952301025, 0.009234137833118439, -0.0794815719127655, -0.5468316078186035, -0.09883888810873032, 0.06549906730651855, 0.29999518394470215, -0.003687910735607147, 0.14589469134807587, 0.24502843618392944, 0.04105063155293465, 0.4024515748023987, 0.11377891898155212, -0.14108633995056152, 0.02464115060865879, -0.392098069190979, 0.06631119549274445, 0.11840806901454926, 0.19897624850273132, 0.16369079053401947, -0.19363868236541748, -0.2633192539215088, -0.17943601310253143, 0.4059906601905823, 0.14894507825374603, 0.09804856032133102, 0.1008187085390091, 0.18056079745292664, 0.29288288950920105, 0.1867150068283081, -0.36089545488357544, -0.0025909319519996643, 0.08326701074838638, 0.16425609588623047, 0.30066394805908203, -0.12404489517211914, -0.48411989212036133, -0.14041391015052795, 0.3057016432285309, 0.09299495071172714, -0.24464789032936096, 0.10248808562755585, -0.25208577513694763, 0.1633397340774536, 0.04943772777915001, -0.03188853710889816, 0.033737726509571075, -0.292790025472641, 0.16744059324264526, -0.138541579246521, 0.14572489261627197, -0.01175319217145443, -0.2731271982192993, -0.05824683606624603, 0.07671430706977844, -0.1796274185180664, 0.30327731370925903, 0.07374051213264465, 0.2845665216445923, -0.00476432079449296, 0.01168832927942276, -0.22207602858543396, 0.2212076187133789, 0.07917926460504532, -0.08299935609102249, 0.1876121312379837, -0.012240525335073471, 0.30270540714263916, -0.09870011359453201, -0.24482890963554382, 0.26330918073654175, 0.17967729270458221, 0.14514963328838348, 0.15587812662124634, -0.20428872108459473, -0.03665245324373245, 0.08378879725933075, 0.05401255190372467, 0.04483991861343384, 0.35561445355415344, -0.04772455617785454, 0.12161152064800262, 0.23070964217185974, -0.4541052579879761, 0.2905070185661316, 0.4226354658603668, -0.13312192261219025, -0.04138850420713425, 0.33916908502578735, -0.2684725821018219, -0.4832492768764496, -0.0453760102391243, -0.4023151695728302, 0.19294461607933044, 0.38713589310646057, 0.058788906782865524, 0.10217562317848206, 0.006268245633691549, -0.16691438853740692, 0.2642963230609894, 0.12932515144348145, -0.11487729847431183, -0.05746176838874817, 0.28548169136047363, -0.11162718385457993, -0.6132093071937561, 0.05847877636551857, -0.059875987470149994, 0.21979185938835144, -0.22728204727172852, 0.04815676808357239, 0.012187158688902855, -0.42662423849105835, 0.31498903036117554, -0.09008530527353287, -0.10266764461994171, -0.1364031285047531, 0.21914878487586975, 0.3050024211406708, -0.04937819391489029, 0.20176446437835693, 0.24848586320877075, 0.2752132713794708, 0.11769483983516693, -0.11905113607645035, -0.274924635887146, -0.3218880593776703, -0.11558658629655838, 0.14627547562122345, 0.06461100280284882, -0.051268987357616425, 0.4396497905254364, -0.1412459909915924, -0.040467388927936554, -0.04252028465270996, -0.4375547170639038, 0.07316520065069199, -0.25429224967956543, 0.3582466244697571, 0.06507378816604614, 0.1676623523235321, -0.10737619549036026, 0.11312519013881683, 0.1779056191444397, -0.3079330027103424, -0.40550175309181213, -0.03269847854971886, -0.012647468596696854, 0.15435384213924408, -0.005100026726722717, -0.10980124026536942, -0.07976191490888596, -0.33763158321380615, 0.3679090142250061, -0.009998129680752754, 0.19879642128944397, 0.16558372974395752, 0.10103122144937515, 0.055900201201438904, -0.11673146486282349, 0.2046726644039154, -0.27780839800834656, -0.15032930672168732, 0.02034737914800644, -0.002150047104805708, -0.2770184874534607, -0.2359975129365921, 0.058133043348789215, -0.17599278688430786, 0.1626041680574417, -0.5528352856636047, -0.17451632022857666, -0.342693030834198, 0.1284523606300354, 0.14239180088043213, 0.01681528240442276, 0.32241979241371155, -0.04897032305598259, -0.25721827149391174, -0.028956754133105278, -0.5102307200431824, -0.22001659870147705, -0.131145179271698, -0.14933454990386963, -0.22506770491600037, 0.4791262447834015, 0.2581837773323059, 0.4140334725379944, -0.14696460962295532, 0.3340701162815094, 0.2923116087913513, -0.12606395781040192, 0.13836564123630524, -0.3673003017902374, -0.11010470241308212, -0.10568757355213165, -0.235866516828537, -0.014736294746398926, 0.4117695093154907, 0.13447099924087524, -0.3818179965019226, -0.016864310950040817, -0.48671236634254456, -0.32389944791793823, -0.24814707040786743, 0.26196223497390747, 0.3577549159526825, 0.09868739545345306, 0.3170354664325714, -0.08072151243686676, -0.1558012217283249, -0.3960818648338318, -0.21245397627353668, -0.04235900938510895, -0.1741296648979187, -0.12274610996246338, -0.273914098739624, -0.05298333615064621, -0.6432307362556458, 0.22521668672561646, 0.10730089247226715, -0.07880804687738419, 0.061628151684999466, -0.3745819926261902, 0.2746543288230896, -0.04190303757786751, 0.7320864200592041, 0.23667596280574799, -0.13039399683475494, 0.15929727256298065, -0.32926174998283386, -0.4616730809211731, 0.04265503212809563, -0.261576384305954, 0.04175873473286629, 0.14026466012001038, 0.09473985433578491, -0.21932345628738403, -0.10030146688222885, 0.3838309943675995, 0.19121837615966797, -0.05089235305786133, -0.0008853450417518616, -0.3675084412097931, -0.40599074959754944, -0.21293750405311584, 0.48928067088127136, 0.2617473900318146, 0.2783169150352478, 0.20589879155158997, 0.010828085243701935, 0.11692414432764053, -0.057552218437194824, 0.1601869761943817, 0.07359999418258667, 0.23734617233276367, -0.11108630895614624, 0.30817773938179016, -0.2513335943222046, -0.27333730459213257, 0.18090635538101196, 0.49240821599960327, -0.1757461130619049, -0.08933967351913452, -0.019328851252794266, -0.020036151632666588, 0.36164695024490356, 0.5082646608352661, 0.11732167750597, 0.41630780696868896, 0.13657338917255402, 0.32893723249435425, -0.20581144094467163, -0.04569431021809578, 0.03668113052845001, 0.29870545864105225, -0.41844233870506287, -0.3193724453449249, 0.29602935910224915, 0.14237691462039948, -0.056423552334308624, 0.3217271566390991, 0.020085275173187256, -0.20796959102153778, 0.2290196567773819, 0.10307519882917404, 1.173789381980896, -0.3711027503013611, 0.4689624011516571, 0.3333013951778412, 0.0056020841002464294, 0.012086307629942894, -0.3615281581878662, 0.314913272857666, -0.13540677726268768, -0.2971874177455902, 0.07828540354967117, -0.04581785947084427, -0.046548791229724884, -0.19253210723400116, -0.13156165182590485, -0.013460145331919193, -0.23962321877479553, 0.3261798024177551, 0.0827280655503273, -0.008570108562707901, -0.10975027829408646, -0.17292071878910065, -0.4314259886741638, 0.16419388353824615, 0.10022895783185959, -0.19118228554725647, -0.12638911604881287, 0.28495800495147705, 0.0937490463256836, -0.1758158951997757, -0.23280397057533264, -0.21930795907974243, -0.12111881375312805, -0.06707142293453217, 0.028323031961917877, -0.32749301195144653, -0.29187509417533875, -0.06121668592095375, -0.27789175510406494, 0.01876075193285942, 0.15525951981544495, 0.362313449382782, -0.015592165291309357, 0.15254676342010498, 0.22869792580604553, 0.012824448756873608, 0.3661075234413147, -0.17518234252929688, -0.14943866431713104, -0.014830730855464935, -0.04897678270936012, -0.3585240840911865, 0.022526487708091736, 0.3190213739871979, 0.12323231250047684, -0.328508198261261, -0.06231030821800232, -0.09030604362487793, -0.01252138800919056, -0.35067057609558105, 0.14917561411857605, -0.012017086148262024, -0.19394856691360474, 0.30304914712905884, 0.10928930342197418, -0.39048275351524353, -0.2810235619544983, 0.29510295391082764, 0.5529078245162964, 0.2418045699596405, 0.20441482961177826, 0.5340936183929443, -0.42172127962112427, -0.15385353565216064, -0.30358755588531494, 0.33818545937538147, -0.47333717346191406, 0.4466031491756439, -0.12184601277112961, -0.028952226042747498, 0.08158934861421585, 0.4125279486179352, -0.0393604040145874, -0.019669771194458008, -0.16053692996501923, -0.1692652702331543, -0.07542310655117035, 0.3265743851661682, 0.2575557827949524, 0.0966632142663002, 0.2447078824043274, 0.3421691954135895, 0.06358533352613449, 0.19675599038600922, -0.3811991810798645, 0.002818912034854293, -0.2524973750114441, 0.32514774799346924, -0.12906041741371155, 0.0030583105981349945, 0.33380326628685, -0.045290376991033554, 0.1512446105480194, 0.39496439695358276, -0.16896364092826843, -0.32139837741851807, 0.04923861101269722, 0.07848332077264786, -0.2677415609359741, -0.14275981485843658, 0.10456240922212601, 0.05414998531341553, -0.19307662546634674, -0.24193356931209564, 0.28990674018859863, 0.12724092602729797, 0.02561291679739952, -0.2542257010936737, 0.28853124380111694, -0.1308610439300537, 0.1368577629327774, 0.062251027673482895, -0.19223076105117798, 0.05330081656575203, 0.11943262815475464, -0.018090538680553436, -0.1026846244931221, 0.05132058262825012, 0.1465485543012619, 0.212603360414505, 0.05554579570889473, -0.2110603153705597, 0.13809552788734436, -0.0663318857550621, -0.14914444088935852, -0.04674600064754486, 0.5558156967163086, 0.4029611349105835, -0.04301220923662186, -0.14703381061553955, 0.09628917276859283, 0.26838213205337524, -0.34229812026023865, -0.22376808524131775, 0.06148682162165642, -0.20160381495952606, 0.15786461532115936, 0.14149516820907593, 0.03538641706109047, 0.37931379675865173, 0.03675980120897293, 0.2115747034549713, 0.32605814933776855, 0.005157964304089546, -0.1663983166217804, 0.0674327090382576, 0.25876131653785706, -0.06680738925933838, 0.3956865668296814, 0.38997671008110046, 0.13540337979793549, 0.2637515664100647, 0.10039903223514557, 0.1564195603132248, 0.048248015344142914, 0.3216071128845215, -0.241012841463089, -0.1137085109949112, -0.06676046550273895, 0.4601390063762665, -0.2400514781475067, 0.05844850838184357, 0.027788173407316208, 0.24769815802574158, 0.43053340911865234, -0.17703232169151306, -0.07876624166965485, 0.28176793456077576, -0.07193154841661453, -0.07181498408317566, 0.21525642275810242, -0.26811039447784424, 0.028410203754901886, 0.14707590639591217, 0.059216830879449844, -0.15167853236198425, 0.35066965222358704, -0.17049936950206757, 0.20162050426006317, -0.3624480962753296, 0.08732270449399948, -0.2694956958293915, 0.3121935725212097, -0.1920708864927292, 0.025466274470090866, 0.0072370171546936035, 0.09942416101694107, 0.16774578392505646, 0.2297041416168213, 0.3293607532978058, 0.022050216794013977, -0.1845734715461731, 0.17485322058200836, -0.3876781165599823, -0.05656168609857559, -0.23902033269405365, 0.21434485912322998, 0.6235520839691162, 0.4076600670814514, -0.05639210343360901, 0.18081937730312347, -0.19586513936519623, -0.008423469960689545, 0.2617771625518799, -0.04704148694872856, -0.30667686462402344, -0.02787519246339798, 0.024027105420827866, -0.23826375603675842, -0.1514880359172821, -0.09712284058332443, -0.347812294960022, 0.06197083368897438, 0.3663889467716217, -0.25399860739707947, 0.07122018933296204, -0.08032640069723129, 0.12174020707607269, 0.08627250790596008, 0.5709459781646729, 0.05561669543385506, 0.3918555974960327, -0.17465104162693024, -0.22355572879314423, -0.33907175064086914, -0.07258438318967819, -0.3462095558643341, -0.0034045949578285217, 0.270943284034729, 0.38428911566734314, 0.01463751494884491, 0.22782553732395172, 0.1647687405347824, -0.218695729970932, -0.403228759765625, -0.06898801028728485, -0.18275606632232666, 0.08381370455026627, -0.10270997881889343, 0.03692275285720825, 0.054816365242004395, -0.23227781057357788, 0.13292016088962555, -0.582972526550293, 0.15568509697914124, -0.37405192852020264, -0.02766118198633194, 0.25891706347465515, 0.2992970943450928, 0.36700403690338135, -0.08463651686906815, 0.15034985542297363, 0.02155875787138939, -0.020843515172600746, 0.03843612223863602, -0.059901732951402664, -0.2870543897151947, 0.13815107941627502, 0.0678708553314209, 0.05086918920278549, -0.09408633410930634, -0.18619564175605774, 0.2805754244327545, 0.49012866616249084, 0.060130201280117035, 0.06183004379272461, -0.018338866531848907, -0.10914691537618637, 0.24628734588623047, 0.11493617296218872, -0.23757733404636383, 0.337191104888916, 0.04252966120839119, 0.007014133036136627, -0.39953333139419556, -0.5770852565765381, 0.5652412176132202, -0.4600474238395691, -0.303412526845932, -0.019422363489866257, -0.022770032286643982, 0.2668733298778534, -0.36316758394241333, -0.728115975856781, -0.12339989840984344, 0.21669939160346985, 0.028772827237844467, -0.4361026883125305, 0.4678449332714081, -0.18265698850154877, 0.09957882761955261, -0.12749341130256653, 0.15067611634731293, -0.12022463232278824, -0.24768002331256866, -0.16606509685516357, -0.4064403772354126 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
```diff diff --git a/benchmarks/benchmark_filter.py b/benchmarks/benchmark_filter.py index 4b9efd4e..a862c204 100644 --- a/benchmarks/benchmark_filter.py +++ b/benchmarks/benchmark_filter.py @@ -1,6 +1,9 @@ import logging import sys import time +import tracemalloc + +import pyarrow as pa from datasets import load_dataset, set_caching_enabled @@ -9,13 +12,28 @@ if __name__ == "__main__": set_caching_enabled(False) logging.basicConfig(level=logging.DEBUG) + tracemalloc.start() bc = load_dataset("bookcorpus") now = time.time() try: + snapshot1 = tracemalloc.take_snapshot() + pamem1 = pa.total_allocated_bytes() bc["train"].filter(lambda x: len(x["text"]) < 64, num_proc=int(sys.argv[1])) + pamem2 = pa.total_allocated_bytes() + snapshot2 = tracemalloc.take_snapshot() except Exception as e: print(f"cancelled: {e}") + exit(1) + tracemalloc.stop() elapsed = time.time() - now print(elapsed) + top_stats = snapshot2.compare_to(snapshot1, "lineno") + + print("[ Top 10 differences ]") + for stat in top_stats[:10]: + print(stat) + + print("[ pyarrow reporting ]") + print(f"before: ({pamem1}) after: ({pamem2})") ``` this yields 0-0, does not seem like a good tool 😛 and the documentation is [quite mysterious.](https://arrow.apache.org/docs/python/generated/pyarrow.total_allocated_bytes.html)
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
139
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. ```diff diff --git a/benchmarks/benchmark_filter.py b/benchmarks/benchmark_filter.py index 4b9efd4e..a862c204 100644 --- a/benchmarks/benchmark_filter.py +++ b/benchmarks/benchmark_filter.py @@ -1,6 +1,9 @@ import logging import sys import time +import tracemalloc + +import pyarrow as pa from datasets import load_dataset, set_caching_enabled @@ -9,13 +12,28 @@ if __name__ == "__main__": set_caching_enabled(False) logging.basicConfig(level=logging.DEBUG) + tracemalloc.start() bc = load_dataset("bookcorpus") now = time.time() try: + snapshot1 = tracemalloc.take_snapshot() + pamem1 = pa.total_allocated_bytes() bc["train"].filter(lambda x: len(x["text"]) < 64, num_proc=int(sys.argv[1])) + pamem2 = pa.total_allocated_bytes() + snapshot2 = tracemalloc.take_snapshot() except Exception as e: print(f"cancelled: {e}") + exit(1) + tracemalloc.stop() elapsed = time.time() - now print(elapsed) + top_stats = snapshot2.compare_to(snapshot1, "lineno") + + print("[ Top 10 differences ]") + for stat in top_stats[:10]: + print(stat) + + print("[ pyarrow reporting ]") + print(f"before: ({pamem1}) after: ({pamem2})") ``` this yields 0-0, does not seem like a good tool 😛 and the documentation is [quite mysterious.](https://arrow.apache.org/docs/python/generated/pyarrow.total_allocated_bytes.html)
[ -0.36165276169776917, -0.15809565782546997, -0.19966746866703033, 0.030374038964509964, 0.020258286967873573, -0.17358747124671936, 0.23347288370132446, 0.39162179827690125, -0.05131986737251282, 0.07093878090381622, -0.267873078584671, 0.19932754337787628, 0.1454480141401291, 0.2285374253988266, 0.010490810498595238, -0.06135325878858566, -0.01979745179414749, 0.012977100908756256, 0.07559690624475479, 0.10748410224914551, 0.0017491430044174194, 0.1633177250623703, -0.20621906220912933, -0.25575679540634155, -0.05803960934281349, -0.05185404419898987, 0.237993061542511, -0.02545762062072754, -0.19491708278656006, -0.34820660948753357, 0.18532593548297882, 0.2316131442785263, -0.34124597907066345, 0.6415295004844666, -0.00010484475205885246, 0.011146388947963715, 0.11178791522979736, 0.05819849669933319, -0.20484350621700287, 0.023647189140319824, 0.38372746109962463, -0.04321593418717384, 0.0715179294347763, -0.20284825563430786, -0.21129995584487915, 0.16707001626491547, -0.11424113810062408, -0.0803845226764679, 0.27376067638397217, 0.32113751769065857, 0.2831061780452728, 0.439242422580719, -0.11340276896953583, -0.00825636275112629, 0.31826117634773254, -0.007854931056499481, -0.23871614038944244, 0.1770322173833847, 0.5545674562454224, 0.019572651013731956, -0.4356900453567505, 0.618200421333313, -0.2467086762189865, 0.05989271029829979, 0.07029493898153305, -0.041232503950595856, 0.04789378494024277, -0.18471528589725494, 0.14253950119018555, 0.19257387518882751, 0.163445383310318, -0.37105128169059753, -0.34816738963127136, -0.37703779339790344, -0.3384980857372284, -0.36368656158447266, -0.02315720170736313, -0.024454304948449135, -0.27250346541404724, 0.00802835077047348, -0.30622318387031555, 0.1674221009016037, 0.01532776653766632, -0.09070070087909698, -0.11783475428819656, 0.2199125587940216, -0.1416741907596588, -0.0960918739438057, 0.27952513098716736, 0.08757651597261429, 0.007699393201619387, -0.23369386792182922, 0.09155744314193726, 0.1628069281578064, -0.23321105539798737, -0.17752233147621155, 0.15144696831703186, -0.006006672978401184, 0.1666729748249054, 0.12795734405517578, -0.02943253144621849, 0.21526110172271729, 0.34032300114631653, 0.056361373513936996, 0.11457924544811249, 0.1681361347436905, 0.10509516298770905, 0.03590161353349686, 0.13623201847076416, 0.3890419602394104, -0.15058837831020355, 0.014190275222063065, 0.2915974259376526, -0.27740278840065, 0.013523712754249573, -0.168503999710083, 0.06826601922512054, -0.3868487775325775, -0.2811771035194397, 0.13764019310474396, -0.20536482334136963, -0.13108690083026886, 0.15525375306606293, 0.33866652846336365, -0.19567683339118958, -0.07211002707481384, 0.19594606757164001, -0.17115357518196106, -0.41415801644325256, -0.04306884855031967, -0.30911919474601746, 0.047449611127376556, -0.26836931705474854, -0.1340082734823227, 0.22659246623516083, -0.3870426118373871, 0.21248604357242584, 0.07861808687448502, 0.07827643305063248, -0.03210454061627388, 0.05067574977874756, -0.3277522027492523, 0.1873246282339096, 0.2573263645172119, -0.036760516464710236, -0.0389944389462471, 0.14719675481319427, -0.15760841965675354, -0.17769140005111694, 0.011232905089855194, 0.08601056039333344, -0.15636326372623444, 0.16169370710849762, 0.31967100501060486, 0.07068291306495667, -0.08233334124088287, -0.07443816214799881, 0.42633211612701416, 0.36388593912124634, -0.07081341743469238, 0.12228571623563766, 0.09814165532588959, -0.5230885744094849, 0.06731107831001282, 0.2614579200744629, 0.16645430028438568, -0.36198195815086365, -0.18555748462677002, 0.07380052655935287, -0.02470332384109497, 0.1693396419286728, 0.295958012342453, -0.09028247743844986, 0.04276380315423012, 0.07782457768917084, 0.35345709323883057, 0.051111213862895966, -0.32732659578323364, -0.4773026406764984, 0.15872374176979065, -0.08439186960458755, 0.18271872401237488, 0.1314191073179245, -0.05324874445796013, 0.3272579610347748, -0.2057151049375534, 0.4311748743057251, 0.18338444828987122, -0.011179430410265923, -0.018403874710202217, -0.3817809224128723, 0.060750797390937805, -0.05015520006418228, 0.23240713775157928, 0.18886025249958038, -0.23472893238067627, -0.1982816457748413, -0.15858924388885498, 0.28725776076316833, 0.047626689076423645, 0.1093350276350975, 0.30353498458862305, 0.23474940657615662, 0.17489616572856903, 0.14082248508930206, -0.25769081711769104, 0.06498190760612488, 0.07647020369768143, 0.03847184032201767, 0.26959890127182007, 0.032799430191516876, -0.3801795244216919, -0.2809792757034302, -0.005670642480254173, -0.09190893173217773, -0.3188728392124176, 0.23726114630699158, -0.12383262813091278, 0.03703134134411812, 0.01859409734606743, -0.08171185851097107, 0.0757790207862854, -0.4257816672325134, 0.12162792682647705, -0.11745251715183258, 0.10371099412441254, -0.11694972962141037, -0.1959288865327835, -0.016119560226798058, 0.15226136147975922, -0.04253554344177246, 0.1637253612279892, -0.07383572310209274, 0.2713291347026825, -0.07180070877075195, 0.15703508257865906, 0.015370693057775497, 0.15461581945419312, 0.04032238572835922, -0.09640146791934967, -0.016195571050047874, 0.25531235337257385, 0.18458399176597595, 0.009061664342880249, -0.3523572087287903, 0.4237637519836426, 0.11204656958580017, 0.2907117009162903, 0.2545554041862488, -0.29388484358787537, 0.07247188687324524, -0.17694638669490814, -0.03725875914096832, -0.013083349913358688, 0.5583691596984863, -0.18531346321105957, 0.22134406864643097, 0.14018025994300842, -0.3861297070980072, 0.23484015464782715, 0.3345354199409485, 0.0591978095471859, -0.0008011162281036377, 0.2587938904762268, -0.158529132604599, -0.26476654410362244, -0.1459207385778427, -0.04599892348051071, 0.102671779692173, 0.3895653784275055, 0.2341383844614029, 0.0393051952123642, -0.02393524721264839, -0.20857574045658112, 0.3327348828315735, 0.05509478598833084, 0.010233861394226551, 0.29386594891548157, 0.19330479204654694, -0.009822136722505093, -0.6441922187805176, -0.13429045677185059, -0.1314530223608017, 0.06595586240291595, -0.08885110169649124, 0.06200611591339111, 0.042509451508522034, -0.4114967882633209, 0.05531047284603119, 0.006479552946984768, -0.03417539969086647, -0.18517658114433289, 0.2052208036184311, 0.39616912603378296, -0.08672317862510681, 0.23315703868865967, 0.07832124829292297, 0.2614917457103729, 0.05153799057006836, -0.09002945572137833, -0.23395179212093353, -0.24434737861156464, -0.17552047967910767, 0.24075445532798767, 0.07084769010543823, -0.007974437437951565, 0.43026003241539, -0.1666942834854126, -0.14427858591079712, -0.07969467341899872, -0.5732210874557495, 0.10818938165903091, -0.12398134171962738, 0.3208504617214203, 0.03605697304010391, 0.1144881546497345, -0.1417863965034485, -0.04226965829730034, 0.13038034737110138, -0.2327355295419693, -0.4299245774745941, -0.1479153037071228, -0.10269148647785187, 0.11418929696083069, -0.17429876327514648, -0.2854804992675781, -0.10390570014715195, -0.40166041254997253, 0.1035066768527031, -0.012953033670783043, 0.1650180220603943, 0.340217262506485, -0.0158148892223835, 0.08905042707920074, -0.07282371819019318, 0.3732515871524811, -0.342023104429245, -0.25613731145858765, 0.05621659755706787, -0.07122039794921875, -0.26683858036994934, -0.25900813937187195, 0.012982986867427826, -0.04879724606871605, 0.04862078279256821, -0.5021344423294067, -0.23845089972019196, -0.22640804946422577, -0.023098362609744072, 0.1705215573310852, -0.007332736626267433, 0.3262493908405304, -0.05754352733492851, -0.3637198805809021, -0.13653942942619324, -0.3688984215259552, -0.08810725063085556, -0.29316970705986023, 0.009091272950172424, -0.2603919506072998, 0.37989985942840576, 0.384615421295166, 0.5267348885536194, 0.10655531287193298, 0.13947276771068573, 0.219951793551445, 0.04248857870697975, 0.1908019632101059, -0.3022487759590149, -0.3422642946243286, 0.08489345759153366, -0.15184107422828674, -0.05073295533657074, 0.37042099237442017, 0.07045921683311462, -0.235538050532341, -0.10864167660474777, -0.26515743136405945, -0.3485071659088135, -0.3277064561843872, 0.05600056052207947, 0.38681724667549133, 0.15622155368328094, 0.11369828879833221, 0.07524267584085464, -0.01109627541154623, -0.14317834377288818, -0.023995500057935715, 0.2288895845413208, -0.11648837476968765, -0.09923344850540161, -0.33944910764694214, 0.2137630134820938, -0.6048780679702759, 0.21497097611427307, 0.1261959969997406, 0.01604308933019638, -0.14323660731315613, -0.13260391354560852, 0.024630188941955566, -0.18335369229316711, 0.6299808621406555, 0.06425238400697708, 0.19620870053768158, 0.17626702785491943, -0.3925805389881134, -0.3598520755767822, 0.08871637284755707, -0.2883864939212799, 0.15380653738975525, 0.3419411778450012, 0.3756137490272522, -0.31513845920562744, -0.20747026801109314, 0.24065753817558289, 0.020838093012571335, 0.11531755328178406, 0.016316525638103485, -0.23278047144412994, -0.2571024000644684, -0.28682827949523926, 0.47265931963920593, 0.22068437933921814, 0.29923656582832336, 0.04960808902978897, -0.04388375207781792, 0.08466798067092896, -0.056659311056137085, 0.26432549953460693, 0.05786348506808281, 0.21106472611427307, 0.009630182757973671, 0.29157403111457825, -0.13236986100673676, 0.02787129394710064, 0.037622105330228806, 0.45754942297935486, -0.1672879308462143, -0.10259628295898438, -0.04495203495025635, 0.09705430269241333, 0.13242095708847046, 0.4377582371234894, 0.14947926998138428, 0.31262287497520447, 0.06092625483870506, 0.19465523958206177, -0.10526789724826813, 0.0668596625328064, 0.14473319053649902, 0.4021964967250824, -0.42033907771110535, -0.2893616855144501, 0.31793636083602905, 0.15278542041778564, -0.07825641334056854, 0.3285579979419708, -0.12544873356819153, -0.2883010804653168, 0.15233230590820312, 0.02812708541750908, 0.9657301902770996, -0.01626495271921158, 0.22378963232040405, 0.12405580282211304, 0.030957579612731934, 0.12703345715999603, -0.24586127698421478, 0.26777517795562744, -0.18292301893234253, -0.2584907114505768, 0.03658093512058258, -0.00018857792019844055, 0.018004707992076874, -0.206948921084404, -0.22171726822853088, 0.037558913230895996, -0.10396788269281387, 0.21103757619857788, -0.01580875553190708, 0.07820260524749756, -0.12662498652935028, -0.1921270191669464, -0.4319051504135132, 0.20843614637851715, 0.08548961579799652, 0.09920274466276169, -0.05632910132408142, 0.14260849356651306, 0.005662489682435989, -0.1686752885580063, -0.2178390622138977, -0.020070701837539673, -0.1973687708377838, -0.007026497274637222, 0.08916356414556503, -0.32976460456848145, -0.17279121279716492, -0.060196761041879654, 0.03669622167944908, 0.06657201796770096, 0.03466183319687843, 0.3257630467414856, 0.03810834139585495, 0.18288925290107727, 0.21554389595985413, -0.08297006040811539, 0.40756943821907043, -0.17385095357894897, -0.05408909171819687, -0.103642039000988, -0.022350579500198364, -0.28523895144462585, 0.0802353024482727, -0.002638980746269226, 0.07727760821580887, -0.45881223678588867, -0.04995574802160263, 0.047498155385255814, -0.07293780893087387, -0.42772430181503296, 0.21861834824085236, -0.07705101370811462, -0.21594442427158356, 0.1983940601348877, 0.12381225824356079, -0.3389592468738556, -0.1811385452747345, 0.4998001456260681, 0.2714558243751526, 0.1328473836183548, 0.2481013983488083, 0.4119754731655121, -0.3964628577232361, -0.31503671407699585, -0.3335946798324585, 0.24409344792366028, -0.2830311954021454, 0.4792940020561218, -0.10816920548677444, -0.27011197805404663, 0.28819942474365234, 0.4905359447002411, 0.02228681370615959, 0.003411918878555298, -0.19865058362483978, -0.2878616750240326, -0.1002904549241066, 0.11102336645126343, 0.09254381060600281, 0.2210114598274231, 0.11825492233037949, 0.3150874972343445, -0.07086141407489777, 0.026088984683156013, -0.4723448157310486, 0.0780286118388176, -0.27476048469543457, 0.24092797935009003, -0.13487254083156586, -0.16140297055244446, 0.33866846561431885, 0.027699220925569534, 0.20248086750507355, 0.2662407159805298, -0.34694308042526245, -0.3928178548812866, -0.09091310203075409, 0.07908866554498672, -0.24607956409454346, -0.2082558423280716, 0.17468471825122833, 0.20172947645187378, -0.2092946320772171, -0.2102430909872055, 0.17345915734767914, 0.2934143543243408, 0.06206487864255905, -0.11848748475313187, -0.07179300487041473, 0.05599085986614227, 0.06880113482475281, -0.1602291315793991, -0.17300128936767578, -0.014040492475032806, 0.08148391544818878, -0.029132179915905, -0.095443956553936, -0.008604288101196289, 0.12306437641382217, 0.07816574722528458, 0.10455623269081116, -0.010450515896081924, 0.1576215773820877, -0.09183022379875183, -0.08645318448543549, 0.27628839015960693, 0.5834059715270996, 0.29011112451553345, -0.08417066186666489, -0.1528061330318451, -0.14483198523521423, 0.38190215826034546, -0.4016978442668915, -0.12472621351480484, 0.1969870924949646, -0.17825515568256378, 0.29072117805480957, -0.012724347412586212, 0.0760394036769867, 0.25037890672683716, 0.23052750527858734, 0.3050207197666168, 0.34446337819099426, -0.0709499791264534, 0.08875498175621033, 0.21695752441883087, 0.3313748240470886, -0.011553768068552017, 0.34408697485923767, 0.13830788433551788, 0.2441299557685852, 0.18986737728118896, 0.017138995230197906, 0.3983880281448364, -0.01013009250164032, 0.3923921585083008, -0.15972506999969482, -0.0772053450345993, 0.28540998697280884, 0.43659138679504395, -0.15209031105041504, 0.11845244467258453, 0.0024185478687286377, 0.21368944644927979, -0.010993235744535923, -0.09973975270986557, -0.0466403104364872, 0.2478889375925064, -0.18764114379882812, -0.20754531025886536, -0.11565962433815002, -0.30582955479621887, -0.010564446449279785, 0.06600449979305267, 0.049244485795497894, 0.12871256470680237, 0.18713167309761047, -0.19955657422542572, 0.059038881212472916, -0.3377174735069275, -0.1907063126564026, -0.25713273882865906, 0.4887964129447937, -0.1714377999305725, 0.25437384843826294, 0.12948980927467346, 0.11446641385555267, 0.1406930834054947, 0.45929789543151855, 0.3572103977203369, -0.004214834421873093, -0.10839647054672241, 0.015766113996505737, -0.2389310747385025, -0.09234748035669327, -0.1606033444404602, 0.2411792129278183, 0.25676363706588745, 0.07355444133281708, 0.18536904454231262, 0.24939897656440735, -0.3085390627384186, 0.10769014060497284, 0.13242009282112122, -0.22874628007411957, -0.11007224023342133, 0.0399647057056427, 0.00006010010838508606, -0.04301239922642708, -0.25775444507598877, -0.032380737364292145, -0.2795349061489105, -0.14098937809467316, 0.47227293252944946, -0.22315576672554016, 0.13920029997825623, -0.057830456644296646, 0.1651429384946823, 0.1595190018415451, 0.3364480137825012, 0.13353125751018524, 0.0721522644162178, -0.1958681046962738, -0.09755635261535645, -0.3473298251628876, 0.029942788183689117, -0.009155943989753723, -0.04641552269458771, 0.07952316850423813, 0.2901001274585724, 0.04890301078557968, 0.26441311836242676, 0.12996651232242584, -0.2814529240131378, -0.020603615790605545, -0.21238356828689575, -0.41782504320144653, 0.14084045588970184, -0.06761637330055237, -0.06097600609064102, 0.20340104401111603, -0.25150221586227417, -0.056795384734869, -0.43212926387786865, 0.2542687654495239, -0.19300168752670288, -0.1552724838256836, 0.29022353887557983, 0.028435222804546356, 0.18627560138702393, -0.10569366812705994, 0.17764230072498322, -0.17867103219032288, -0.09860922396183014, 0.1993308812379837, -0.007745515089482069, -0.3567792773246765, 0.1225801408290863, 0.09236606955528259, 0.34468531608581543, -0.03128209710121155, -0.1897321492433548, 0.19063058495521545, 0.47355377674102783, 0.17839676141738892, -0.2003949135541916, -0.1830078810453415, 0.02034684829413891, 0.17785373330116272, 0.032956644892692566, -0.24330677092075348, 0.5798309445381165, 0.05917145684361458, 0.10031857341527939, -0.408949613571167, -0.7574349045753479, 0.5883725881576538, -0.6099135279655457, -0.0708509087562561, -0.15657879412174225, 0.09816893935203552, 0.44448503851890564, -0.19153939187526703, -0.6946418881416321, -0.0629832074046135, 0.1967935711145401, 0.04868399351835251, -0.3180338740348816, 0.41599977016448975, -0.1961473971605301, 0.08380962908267975, -0.0692681074142456, 0.11458555608987808, 0.14497902989387512, -0.2113703042268753, -0.1252543032169342, -0.3099666237831116 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
Personally if I use your script to benchmark on this branch ```python bc = load_dataset("bookcorpus", split="train[:1%]") bc = bc.filter(lambda x: len(x["text"]) < 64) ``` then I get ``` [ pyarrow reporting ] before: (0) after: (15300672) ``` Maybe you got 0-0 because the filter output is directly garbage collected, since you didn't do ```python bc["train"] = bc["train"].filter(...) ``` Can you try again on your side just to make sure ? Even if the documentation doesn't say much, `pa.total_allocated_bytes` if pretty useful, and also very consistent. It tracks the number of bytes used for arrow data.
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
95
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. Personally if I use your script to benchmark on this branch ```python bc = load_dataset("bookcorpus", split="train[:1%]") bc = bc.filter(lambda x: len(x["text"]) < 64) ``` then I get ``` [ pyarrow reporting ] before: (0) after: (15300672) ``` Maybe you got 0-0 because the filter output is directly garbage collected, since you didn't do ```python bc["train"] = bc["train"].filter(...) ``` Can you try again on your side just to make sure ? Even if the documentation doesn't say much, `pa.total_allocated_bytes` if pretty useful, and also very consistent. It tracks the number of bytes used for arrow data.
[ -0.3553064167499542, -0.24245083332061768, -0.09310805797576904, 0.14736002683639526, 0.12259810417890549, -0.2229430079460144, 0.11268092691898346, 0.305343896150589, -0.28602567315101624, 0.08797956258058548, -0.10658995807170868, 0.28892573714256287, -0.0025655431672930717, 0.16500933468341827, 0.12431122362613678, -0.07326303422451019, 0.07060341536998749, 0.0819002166390419, 0.060883019119501114, 0.13624237477779388, 0.03324113041162491, 0.22104081511497498, -0.3051752746105194, -0.08011069893836975, -0.14470727741718292, -0.032448284327983856, 0.14515015482902527, -0.06178509443998337, -0.19590625166893005, -0.4880126714706421, 0.1791415959596634, 0.04825611412525177, -0.34144335985183716, 0.6266810297966003, -0.00011074551730416715, -0.04329928383231163, 0.24318206310272217, 0.05737282335758209, -0.12620437145233154, 0.04497440159320831, 0.508320152759552, -0.16033387184143066, 0.24228602647781372, -0.08590369671583176, -0.03341883048415184, -0.036956436932086945, -0.12583482265472412, 0.0024531446397304535, 0.3534863293170929, 0.3339405357837677, 0.23362421989440918, 0.5566354990005493, 0.015298012644052505, 0.1711108535528183, 0.4787925183773041, 0.09789130836725235, -0.16826549172401428, 0.25536036491394043, 0.42576849460601807, -0.015352063812315464, -0.49537527561187744, 0.5103743076324463, -0.038846783339977264, 0.0486348494887352, 0.23085340857505798, 0.24308444559574127, -0.10373061150312424, -0.169198140501976, -0.01285180076956749, 0.27781111001968384, 0.19758503139019012, -0.47809669375419617, -0.38049715757369995, -0.426907479763031, -0.296645849943161, -0.4982265830039978, 0.04058794304728508, 0.2399316281080246, -0.3223983347415924, 0.0561964213848114, -0.30846482515335083, 0.3382887840270996, -0.15010401606559753, -0.05858731269836426, -0.19764003157615662, 0.16468016803264618, -0.08787170797586441, 0.05458076298236847, 0.3197096884250641, 0.14966131746768951, -0.0862937644124031, -0.09161374717950821, 0.024177195504307747, 0.2894565761089325, -0.194285586476326, -0.17771776020526886, 0.139070063829422, 0.002365313470363617, 0.2329423427581787, 0.09101374447345734, 0.09095983952283859, 0.2625657320022583, 0.1903904229402542, -0.006562426686286926, 0.26270586252212524, 0.16026215255260468, -0.09561768919229507, 0.08311593532562256, 0.10381857305765152, 0.3110726773738861, -0.00987989827990532, -0.13174480199813843, 0.29867103695869446, -0.22033736109733582, 0.22189240157604218, -0.2419028878211975, 0.14411389827728271, -0.35494452714920044, -0.22694365680217743, 0.17752967774868011, -0.05039117857813835, -0.16719774901866913, 0.10505605489015579, 0.3967871069908142, -0.2521418631076813, -0.055174410343170166, 0.05709647387266159, -0.0666842982172966, -0.3824371099472046, -0.06813988834619522, -0.2568468451499939, -0.024292130023241043, -0.47498926520347595, -0.015749869868159294, 0.17183122038841248, -0.2203974425792694, 0.20155520737171173, 0.0671129822731018, 0.1692156344652176, -0.0323953814804554, 0.11199769377708435, -0.19446149468421936, 0.29317522048950195, 0.4593087136745453, -0.10192282497882843, 0.05391654372215271, -0.03602726384997368, 0.09650100767612457, -0.27976393699645996, 0.1561499536037445, -0.015088751912117004, -0.3729449510574341, -0.006580425426363945, 0.2217329889535904, -0.1401197910308838, -0.11890670657157898, -0.13663145899772644, 0.35461342334747314, 0.32727131247520447, -0.031951382756233215, 0.2061351239681244, 0.12074670940637589, -0.482587605714798, -0.06953075528144836, 0.32056230306625366, 0.19884629547595978, -0.5086736679077148, -0.19769001007080078, 0.009230077266693115, -0.023454248905181885, 0.3355312943458557, 0.4672900140285492, -0.2650616765022278, -0.06273288279771805, 0.017215678468346596, 0.37855929136276245, 0.1771671324968338, -0.33174094557762146, -0.4301002323627472, 0.06298186630010605, 0.013706371188163757, 0.09846093505620956, 0.10561373829841614, -0.024289896711707115, 0.20491543412208557, -0.04341226816177368, 0.2514992952346802, 0.10400249809026718, 0.031118091195821762, 0.004621809348464012, -0.26846978068351746, 0.03757566958665848, 0.16624632477760315, 0.2261952906847, 0.017122745513916016, -0.35194066166877747, -0.2381018102169037, -0.2876133918762207, 0.3492090702056885, 0.08546088635921478, 0.09016890078783035, 0.2203259915113449, 0.3031945824623108, 0.0836295410990715, 0.3076753318309784, -0.2597661316394806, -0.032682038843631744, 0.13505566120147705, 0.051124945282936096, 0.1735306978225708, -0.118750661611557, -0.40581756830215454, -0.27933287620544434, 0.23764099180698395, 0.011996623128652573, -0.3107518255710602, 0.10192731022834778, -0.32306405901908875, 0.13583044707775116, 0.12772198021411896, -0.2450839728116989, -0.030900863930583, -0.16563130915164948, 0.2271738052368164, -0.12144684791564941, 0.2374102622270584, 0.032739005982875824, -0.3336086869239807, 0.0628865510225296, 0.18483403325080872, -0.1208595260977745, 0.31028762459754944, -0.020294446498155594, 0.2582565248012543, 0.09918345510959625, 0.1748422086238861, 0.0073909275233745575, 0.18342120945453644, 0.1702488511800766, -0.2606015205383301, 0.20094317197799683, 0.3152376711368561, 0.1738111972808838, 0.011409908533096313, -0.40139076113700867, 0.51566082239151, 0.1548025906085968, 0.14697858691215515, 0.09317225217819214, -0.28959929943084717, 0.09439711272716522, -0.12408499419689178, -0.10151822865009308, 0.07275405526161194, 0.5069394707679749, -0.22680796682834625, 0.3957728147506714, 0.2141152322292328, -0.3892270028591156, 0.22639113664627075, 0.5659843683242798, -0.22683271765708923, -0.10581512004137039, 0.5195988416671753, -0.3385206162929535, -0.3854222893714905, 0.0000386945903301239, -0.23798565566539764, 0.11101392656564713, 0.3708917796611786, 0.18316152691841125, 0.06791932135820389, -0.07800658792257309, -0.212249755859375, 0.3588540554046631, 0.032245513051748276, -0.011564492247998714, 0.16720125079154968, 0.22886234521865845, -0.011802186258137226, -0.7576415538787842, -0.05060741677880287, -0.27434852719306946, 0.25164952874183655, -0.2630067765712738, -0.03611106425523758, 0.030981263145804405, -0.2655673325061798, 0.05015450716018677, -0.19984854757785797, -0.14924220740795135, -0.20362064242362976, 0.22259216010570526, 0.24695542454719543, 0.0054475851356983185, 0.1469230353832245, -0.04270549863576889, 0.1834029257297516, 0.18935048580169678, -0.036097802221775055, -0.31632736325263977, -0.34144309163093567, -0.22333607077598572, 0.1413584202528, 0.02856401354074478, 0.12368087470531464, 0.3783070147037506, -0.10332176834344864, 0.022568341344594955, 0.0058124009519815445, -0.4780263602733612, 0.11790795624256134, -0.17721392214298248, 0.36847031116485596, 0.10569965094327927, 0.16994068026542664, -0.13032713532447815, -0.08809299767017365, 0.19308827817440033, -0.2877492904663086, -0.48812708258628845, 0.21290096640586853, -0.09356284886598587, 0.049524180591106415, -0.17778845131397247, -0.18038174510002136, -0.05225859582424164, -0.32225313782691956, 0.26403117179870605, -0.034674983471632004, 0.18410956859588623, 0.26628077030181885, 0.020971108227968216, 0.1661255657672882, -0.12934814393520355, 0.15087328851222992, -0.2503076493740082, -0.3294917345046997, 0.2045828104019165, -0.05535303056240082, -0.2880301773548126, -0.0750216692686081, 0.042544588446617126, -0.17337268590927124, 0.11955275386571884, -0.6069353818893433, -0.1853969842195511, -0.3385237753391266, 0.041656624525785446, 0.08312809467315674, 0.0720582976937294, 0.28696006536483765, -0.011412663385272026, -0.2690050005912781, -0.11246705800294876, -0.33047613501548767, -0.0978112444281578, -0.17301928997039795, -0.023612402379512787, -0.15771052241325378, 0.36710354685783386, 0.24975064396858215, 0.6268383860588074, 0.21905675530433655, 0.05032103881239891, 0.3126617670059204, -0.13411138951778412, 0.17818164825439453, -0.24473202228546143, -0.0573464035987854, 0.08315686881542206, -0.16413509845733643, -0.03713503107428551, 0.41348105669021606, 0.16730964183807373, -0.32587727904319763, -0.020415710285305977, -0.2095661610364914, -0.5348894596099854, -0.38145309686660767, 0.1960938274860382, 0.23925718665122986, 0.057957712560892105, -0.005994550883769989, 0.09575704485177994, -0.052001189440488815, -0.3803579807281494, 0.11487190425395966, 0.10582257807254791, -0.10429521650075912, -0.18668127059936523, -0.22766968607902527, 0.11131715774536133, -0.7052872776985168, 0.21837523579597473, -0.0023555471561849117, -0.1007416695356369, 0.0038076452910900116, -0.2651239037513733, 0.25590434670448303, -0.18327827751636505, 0.6998253464698792, 0.15206977725028992, 0.040679171681404114, 0.1695222705602646, -0.2684524655342102, -0.596272885799408, -0.015674665570259094, -0.40663865208625793, 0.036701977252960205, 0.11712646484375, 0.21241603791713715, -0.4721335470676422, -0.14035797119140625, 0.14451880753040314, 0.06598404049873352, 0.017563384026288986, -0.011798348277807236, -0.4192468225955963, -0.26871421933174133, -0.16000936925411224, 0.40717020630836487, 0.13182249665260315, 0.20243774354457855, 0.0402955561876297, -0.2797383964061737, 0.10672338306903839, -0.0793866515159607, 0.17674697935581207, 0.1719968169927597, 0.4031252861022949, -0.18691380321979523, 0.2794080078601837, -0.08395609259605408, -0.13933932781219482, 0.16894450783729553, 0.46532922983169556, -0.0079788938164711, -0.1815280020236969, -0.05487437546253204, -0.08244404196739197, 0.2623973488807678, 0.46289902925491333, 0.005200542509555817, 0.3146013021469116, 0.1813202202320099, 0.36187654733657837, -0.30003780126571655, 0.04116449132561684, 0.22244425117969513, 0.3723514676094055, -0.3090527355670929, -0.12670987844467163, 0.26590895652770996, 0.1001511812210083, -0.11720208823680878, 0.4238300323486328, 0.06058139353990555, -0.18298006057739258, 0.2805343270301819, 0.10792254656553268, 1.086763620376587, -0.18648765981197357, 0.26887232065200806, 0.3697149157524109, -0.0030158907175064087, 0.11026515066623688, -0.11406249552965164, 0.23386548459529877, -0.2696688771247864, -0.0978628396987915, 0.008841054514050484, -0.13225504755973816, -0.07329916208982468, -0.2174139767885208, -0.2562883496284485, 0.012486902996897697, -0.1907537430524826, 0.13406141102313995, -0.11359409987926483, 0.05533395707607269, -0.19490830600261688, -0.20079834759235382, -0.49526941776275635, 0.14860571920871735, -0.1186702698469162, 0.09713603556156158, -0.048672761768102646, 0.06001076474785805, -0.09044703841209412, -0.16116729378700256, -0.36119794845581055, -0.13071319460868835, -0.09023398905992508, -0.19039660692214966, 0.2667528986930847, -0.3665387034416199, -0.23365077376365662, 0.011292863637208939, 0.02188083529472351, -0.04633263126015663, -0.08273104578256607, 0.35261261463165283, -0.23552674055099487, 0.2690582275390625, 0.23409199714660645, -0.0917019173502922, 0.317335844039917, -0.12342667579650879, -0.11554478108882904, -0.0799269750714302, -0.081367626786232, -0.16146305203437805, 0.25872471928596497, 0.0932852178812027, -0.09805305302143097, -0.42855310440063477, 0.06864020228385925, -0.09372608363628387, 0.0904681533575058, -0.24370907247066498, 0.15597127377986908, 0.15168766677379608, -0.2652846574783325, 0.3203229010105133, 0.20172390341758728, -0.38010141253471375, -0.23392625153064728, 0.2255077064037323, 0.23453453183174133, 0.2170288860797882, 0.24312257766723633, 0.39545825123786926, -0.3653820753097534, -0.13417494297027588, -0.26960474252700806, 0.4119507670402527, -0.510683536529541, 0.360231876373291, 0.014569662511348724, -0.0007491856813430786, 0.26370537281036377, 0.4382396340370178, 0.04232953488826752, 0.02101544290781021, -0.16304731369018555, -0.2693381905555725, -0.24732019007205963, 0.32824742794036865, 0.13292716443538666, 0.17339642345905304, 0.016643691807985306, 0.18093083798885345, 0.18326310813426971, 0.03032202646136284, -0.389599084854126, 0.057788677513599396, -0.22298696637153625, 0.24697484076023102, -0.16153837740421295, -0.16618475317955017, 0.3532753586769104, -0.0973128080368042, 0.1076870709657669, 0.2657827138900757, -0.3563768267631531, -0.28114667534828186, -0.11900469660758972, 0.09403850138187408, -0.30122408270835876, -0.1412276029586792, 0.16089966893196106, 0.2513900399208069, -0.17891809344291687, -0.3123990297317505, 0.16673104465007782, 0.13248828053474426, 0.01424066349864006, -0.06623902916908264, 0.2031794935464859, -0.019905582070350647, -0.06470474600791931, -0.12353947758674622, -0.18459981679916382, 0.1615545153617859, 0.11390422284603119, -0.05312754213809967, -0.1433141827583313, -0.071579210460186, 0.29797038435935974, 0.09768929332494736, 0.1372048258781433, -0.011469371616840363, 0.17710831761360168, -0.043808795511722565, -0.1929599791765213, -0.05471682548522949, 0.7729235887527466, 0.41814154386520386, 0.010653944686055183, -0.19303297996520996, -0.014767823740839958, 0.26869016885757446, -0.40642037987709045, -0.15871231257915497, 0.1697305589914322, -0.06282045692205429, 0.07091683149337769, 0.014045722782611847, 0.0718492865562439, 0.2764352560043335, 0.10908953845500946, 0.23885053396224976, 0.3506174683570862, -0.07769327610731125, -0.14376790821552277, 0.14884814620018005, 0.1438661813735962, 0.030156966298818588, 0.3760780096054077, 0.1905830055475235, 0.3213050663471222, 0.2833966612815857, 0.009686581790447235, 0.3494991660118103, 0.13309186697006226, 0.3989023268222809, -0.40215808153152466, -0.1611926555633545, -0.08804115653038025, 0.3756900429725647, -0.17298594117164612, 0.08118940889835358, 0.16528338193893433, 0.5098462104797363, 0.3690090775489807, -0.3381805717945099, -0.11394254863262177, 0.2848619818687439, -0.10156785696744919, -0.1415875256061554, -0.018452739343047142, -0.15998706221580505, -0.02403832972049713, 0.10088780522346497, 0.10600918531417847, 0.01711273565888405, 0.3594590425491333, -0.014570847153663635, 0.08361300826072693, -0.3378119468688965, -0.01128249242901802, -0.25695955753326416, 0.5493292212486267, -0.1414019912481308, 0.21438010036945343, 0.030402429401874542, 0.07211930304765701, 0.14191153645515442, 0.2508305609226227, 0.4578104317188263, -0.04654335230588913, -0.2851351201534271, 0.17537565529346466, -0.11107476055622101, 0.020755575969815254, -0.12102556228637695, 0.2826414108276367, 0.4520455300807953, 0.3115925192832947, 0.10037687420845032, 0.19095954298973083, -0.243458554148674, 0.027766957879066467, 0.0012404434382915497, -0.0283149853348732, -0.2235347181558609, -0.04927196353673935, -0.08131562918424606, -0.10788452625274658, -0.2912232577800751, -0.22753697633743286, -0.34139397740364075, 0.018677331507205963, 0.338168203830719, -0.16059736907482147, 0.04354989528656006, -0.1420067548751831, 0.12815892696380615, 0.18341027200222015, 0.4175238311290741, 0.180254727602005, 0.40833622217178345, -0.19328224658966064, -0.17225806415081024, -0.5383814573287964, 0.059904251247644424, -0.16498002409934998, 0.10453987121582031, 0.13099068403244019, 0.2918468117713928, -0.11161036044359207, 0.3505573868751526, 0.2985379695892334, -0.2387343794107437, -0.1363782286643982, -0.040195293724536896, -0.3496362864971161, 0.2176291048526764, -0.10770387947559357, -0.08430139720439911, 0.051800698041915894, -0.2429467737674713, 0.12706401944160461, -0.552879273891449, 0.08633901923894882, -0.017737552523612976, -0.12028004229068756, 0.19721156358718872, 0.17189225554466248, 0.40794143080711365, -0.08091473579406738, 0.11949611455202103, -0.08516492694616318, 0.05417031794786453, 0.03657952696084976, -0.057747963815927505, -0.27750900387763977, 0.09348321706056595, -0.016207247972488403, 0.2875850200653076, -0.053368017077445984, -0.1750393658876419, 0.06309161335229874, 0.4873473048210144, 0.2536458373069763, -0.23902668058872223, -0.0704653188586235, -0.04413846135139465, 0.17606568336486816, -0.07145664840936661, -0.17229923605918884, 0.4156407117843628, 0.04521000757813454, 0.00722883827984333, -0.301352858543396, -0.6685081124305725, 0.6732896566390991, -0.5905057787895203, -0.11047118902206421, -0.09621432423591614, 0.048967018723487854, 0.5275946855545044, -0.3010035753250122, -0.7943288683891296, -0.0614248551428318, 0.17920130491256714, 0.03683481365442276, -0.419344037771225, 0.28853195905685425, -0.14183063805103302, -0.035030871629714966, -0.08290885388851166, 0.2912761867046356, 0.009745946153998375, -0.2654111683368683, -0.049521248787641525, -0.3889051675796509 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
> Maybe you got 0-0 because the filter output is directly garbage collected, since you didn't do > > ```python > bc["train"] = bc["train"].filter(...) > ``` Nice catch! I get 1.74GB for this branch
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
34
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. > Maybe you got 0-0 because the filter output is directly garbage collected, since you didn't do > > ```python > bc["train"] = bc["train"].filter(...) > ``` Nice catch! I get 1.74GB for this branch
[ -0.3191443383693695, -0.3345010280609131, -0.17839249968528748, 0.20380081236362457, 0.024101726710796356, -0.10887936502695084, 0.11916301399469376, 0.3020992875099182, -0.04809229075908661, 0.11036526411771774, -0.20594419538974762, 0.06790260225534439, -0.10579771548509598, 0.25562456250190735, -0.1008552759885788, -0.08706124126911163, 0.05782639607787132, 0.0032273977994918823, 0.026975952088832855, 0.10331952571868896, -0.018245790153741837, 0.2633477747440338, -0.20845215022563934, -0.3238459825515747, -0.07437489926815033, -0.0005736593157052994, 0.01131005771458149, 0.047397129237651825, -0.19528062641620636, -0.31273001432418823, 0.10279516875743866, 0.14382842183113098, -0.252194881439209, 0.7599114775657654, -0.00010854830907192081, -0.09658368676900864, 0.14079004526138306, -0.009680736809968948, -0.17788287997245789, -0.0462578684091568, 0.38374513387680054, -0.16516922414302826, 0.06302160769701004, -0.10446663945913315, -0.2496281862258911, 0.20168140530586243, -0.10729961097240448, -0.1847788542509079, 0.25868165493011475, 0.38445499539375305, 0.2544376254081726, 0.45668935775756836, -0.08101584017276764, 0.0029367939569056034, 0.23169729113578796, -0.028426632285118103, -0.08793535083532333, 0.1850290447473526, 0.5967658758163452, 0.14484095573425293, -0.2956237494945526, 0.6963022947311401, -0.049531444907188416, -0.03237529844045639, 0.26294928789138794, 0.06649763882160187, -0.10584072023630142, -0.12343280017375946, 0.04172525182366371, 0.19989082217216492, 0.21528831124305725, -0.17004936933517456, -0.35506728291511536, -0.3471221923828125, -0.20344173908233643, -0.35981103777885437, 0.03831510618329048, 0.194014310836792, -0.19931256771087646, 0.030796639621257782, -0.46321555972099304, 0.15209782123565674, -0.15890437364578247, -0.044633716344833374, -0.16951626539230347, 0.19985327124595642, -0.16529527306556702, -0.09409474581480026, 0.2343565970659256, 0.07643777132034302, -0.3152744472026825, -0.13460832834243774, 0.06359423696994781, 0.2534748315811157, -0.14514774084091187, -0.22380515933036804, 0.07098741084337234, 0.11518561094999313, 0.21060845255851746, 0.03444698452949524, -0.07059121876955032, 0.0631062462925911, 0.16176986694335938, -0.07999343425035477, 0.27788519859313965, 0.16397298872470856, -0.034133173525333405, -0.015503153204917908, 0.05282921344041824, 0.26902642846107483, -0.1644413024187088, -0.1664106845855713, 0.2262231409549713, -0.023628152906894684, -0.01814928650856018, -0.3095671832561493, 0.11738261580467224, -0.3657299876213074, -0.08916359394788742, 0.26012927293777466, 0.02605728805065155, 0.021887224167585373, 0.17815130949020386, 0.31038111448287964, -0.3376414477825165, -0.003246959298849106, 0.3408595323562622, -0.12316663563251495, -0.32975131273269653, -0.15943048894405365, -0.3559250831604004, 0.1263834685087204, -0.39359167218208313, -0.21714521944522858, 0.05527655407786369, -0.3295063376426697, 0.22068312764167786, -0.06900329142808914, 0.14237363636493683, -0.039152223616838455, 0.06355629116296768, -0.2851901352405548, 0.20140594244003296, 0.2904074490070343, -0.10822393000125885, -0.029430117458105087, 0.05365743115544319, -0.1000298261642456, -0.18985621631145477, 0.04802317172288895, 0.0410546213388443, -0.267656534910202, -0.0523034930229187, 0.2844221889972687, 0.009053602814674377, -0.01819053292274475, -0.07167699187994003, 0.5562142133712769, 0.36865025758743286, -0.007538657635450363, 0.04395759105682373, 0.20161229372024536, -0.542331337928772, 0.053879618644714355, 0.23897194862365723, 0.27950233221054077, -0.3590935170650482, -0.13074655830860138, -0.04939320310950279, 0.10095037519931793, 0.14983327686786652, 0.45121684670448303, -0.03134673461318016, -0.09432650357484818, 0.06736551225185394, 0.21671538054943085, 0.02775411307811737, -0.3430343270301819, -0.35420748591423035, 0.2071589082479477, -0.08832429349422455, 0.08403190225362778, 0.013794541358947754, 0.10229784995317459, 0.23852089047431946, -0.178589329123497, 0.33847692608833313, 0.11457503587007523, -0.15392136573791504, 0.005340902134776115, -0.389701783657074, -0.05967407673597336, 0.04857037216424942, 0.13808724284172058, 0.2939854562282562, -0.18259036540985107, -0.27724042534828186, -0.00031395815312862396, 0.32563886046409607, 0.1606363207101822, 0.1005551666021347, 0.3958330750465393, 0.19885309040546417, 0.31481701135635376, 0.028122678399086, -0.3935708701610565, 0.12050393968820572, 0.11669544130563736, 0.3182860016822815, 0.2933868169784546, 0.15029795467853546, -0.36000871658325195, -0.27214738726615906, 0.06639272719621658, 0.08301684260368347, -0.28849440813064575, 0.18011029064655304, -0.1929970681667328, 0.12219060957431793, 0.13263686001300812, -0.11873576045036316, 0.17271658778190613, -0.2923823893070221, 0.17208153009414673, -0.2772160768508911, 0.027694081887602806, 0.021325454115867615, -0.21572905778884888, 0.04811542481184006, 0.14022377133369446, -0.11935562640428543, 0.2316761612892151, -0.048043832182884216, 0.31318947672843933, -0.15878786146640778, 0.12474486976861954, -0.00938095897436142, 0.14611311256885529, 0.13083243370056152, -0.14941024780273438, 0.21277166903018951, 0.3215463161468506, 0.2808261215686798, -0.06020618602633476, -0.49114128947257996, 0.35363656282424927, 0.19397038221359253, 0.20775747299194336, 0.17203645408153534, -0.2385457307100296, -0.030839156359434128, -0.12037673592567444, -0.14291222393512726, 0.006397895514965057, 0.47335749864578247, -0.2303011268377304, 0.1888256072998047, 0.26782146096229553, -0.44979724287986755, 0.15699081122875214, 0.4693125784397125, 0.005467310547828674, -0.17942434549331665, 0.474870890378952, -0.184610515832901, -0.37625083327293396, 0.002350281924009323, -0.18011786043643951, 0.13369351625442505, 0.37544140219688416, 0.2902286648750305, 0.05574797838926315, -0.0027783866971731186, -0.14396339654922485, 0.2778007388114929, 0.01975341886281967, -0.1425331085920334, 0.08866936713457108, 0.2036578208208084, 0.05366123095154762, -0.5889440178871155, -0.06543800234794617, -0.21036730706691742, 0.1862677037715912, -0.10522572696208954, 0.00041113048791885376, 0.09161295741796494, -0.36068016290664673, 0.23744253814220428, 0.0007750764489173889, -0.0743572860956192, -0.2698315680027008, 0.15653936564922333, 0.33037394285202026, -0.028400227427482605, 0.08933558315038681, 0.0547395758330822, 0.2006770670413971, 0.21335072815418243, 0.013003205880522728, -0.20061588287353516, -0.20577372610569, -0.25687986612319946, 0.1727857142686844, 0.046940878033638, -0.009737676940858364, 0.5086234211921692, -0.1330980658531189, -0.13349229097366333, 0.06576129049062729, -0.43514469265937805, 0.053559619933366776, -0.21447981894016266, 0.3845670223236084, 0.083580881357193, 0.26752209663391113, -0.17252609133720398, 0.05389082431793213, 0.1323070228099823, -0.23442085087299347, -0.3522592782974243, -0.08856310695409775, 0.03893761709332466, 0.1619294285774231, -0.18020902574062347, -0.24947938323020935, -0.09927566349506378, -0.4026001989841461, 0.25731343030929565, -0.013124864548444748, 0.054674725979566574, 0.3149077296257019, 0.030156373977661133, 0.10828020423650742, 0.12476728111505508, 0.25598233938217163, -0.3274896442890167, -0.47602495551109314, 0.15001434087753296, 0.004070402123034, -0.30837053060531616, -0.09525345265865326, 0.09507671743631363, -0.13846823573112488, -0.00011141598224639893, -0.46278679370880127, -0.2563682496547699, -0.2910436987876892, -0.10984538495540619, 0.058448679745197296, -0.023376373574137688, 0.22141355276107788, -0.1841050535440445, -0.2885366976261139, -0.07042384892702103, -0.3273559510707855, -0.01782096177339554, -0.1780773401260376, -0.008970148861408234, -0.18742850422859192, 0.4628453552722931, 0.3687814474105835, 0.3887677788734436, 0.24206939339637756, 0.15751372277736664, 0.19553972780704498, 0.10480095446109772, 0.2052735537290573, -0.3250589370727539, -0.26132693886756897, 0.12387064844369888, 0.0052833110094070435, -0.0412198007106781, 0.4895666837692261, 0.2814018726348877, -0.1748223602771759, -0.08282369375228882, -0.31766849756240845, -0.38176172971725464, -0.3072165250778198, 0.0490887351334095, 0.15364283323287964, 0.0037435144186019897, 0.11643010377883911, -0.006958611309528351, -0.06987646222114563, -0.30253171920776367, -0.09278741478919983, 0.1934165060520172, -0.22236338257789612, -0.030734524130821228, -0.2281283587217331, 0.2632312476634979, -0.6579051613807678, 0.16477882862091064, 0.00810451339930296, -0.08460693806409836, -0.03343234211206436, -0.1518571674823761, 0.11680077016353607, -0.10388432443141937, 0.7081512808799744, 0.08417247235774994, 0.04272950068116188, 0.15205439925193787, -0.4084392488002777, -0.3411147892475128, 0.07722790539264679, -0.3157890737056732, 0.09065291285514832, 0.3870847523212433, 0.30050748586654663, -0.2721651494503021, -0.23785793781280518, 0.2322043925523758, 0.04653974249958992, 0.08890144526958466, 0.010654381476342678, -0.21215222775936127, -0.3661491870880127, -0.21049091219902039, 0.4763873815536499, 0.2999075651168823, 0.31749165058135986, 0.18379847705364227, -0.2688153386116028, 0.03741241991519928, 0.015281260013580322, 0.4228264093399048, -0.05958494171500206, 0.3331906199455261, -0.14648236334323883, 0.3534579873085022, -0.1918092668056488, -0.12281875312328339, -0.053198687732219696, 0.35974565148353577, -0.19098061323165894, -0.03558611869812012, -0.004526915028691292, -0.15186628699302673, 0.15839964151382446, 0.4466930627822876, 0.07215443253517151, 0.20821788907051086, 0.17634640634059906, 0.46080726385116577, -0.3069928288459778, 0.19662439823150635, 0.049968987703323364, 0.41952529549598694, -0.4163530766963959, -0.3280234932899475, 0.18913476169109344, 0.09918645024299622, -0.024984732270240784, 0.38547268509864807, -0.0871657282114029, -0.31457898020744324, 0.1335431933403015, 0.07631177455186844, 1.0238242149353027, -0.1619894802570343, 0.27875107526779175, 0.2069457471370697, 0.15906068682670593, 0.2585987150669098, -0.2610626518726349, 0.17858320474624634, -0.07074492424726486, -0.22266025841236115, 0.010049359872937202, 0.13767747581005096, 0.02531629428267479, -0.09893275797367096, -0.2717585265636444, 0.08221684396266937, -0.15370823442935944, 0.23812733590602875, -0.12525415420532227, 0.14537575840950012, -0.23310276865959167, -0.2507609724998474, -0.49869096279144287, 0.2676455080509186, 0.10818508267402649, -0.01768668368458748, -0.18823650479316711, 0.18208327889442444, 0.004011332988739014, -0.16706423461437225, -0.4018619656562805, -0.20252910256385803, -0.03160196170210838, -0.028013836592435837, 0.07683165371417999, -0.31982770562171936, -0.22324047982692719, 0.13366056978702545, 0.17245224118232727, 0.24591010808944702, -0.06967782974243164, 0.2958306074142456, -0.22004559636116028, 0.14534828066825867, 0.16213358938694, -0.08524005860090256, 0.4270577132701874, -0.20438092947006226, 0.05089675635099411, -0.18097221851348877, -0.05678893253207207, -0.1358475387096405, 0.17939308285713196, 0.10833147913217545, -0.06972499191761017, -0.37091657519340515, -0.16281858086585999, -0.023518040776252747, -0.049504105001688004, -0.3158007562160492, 0.19460566341876984, 0.18536144495010376, -0.35534748435020447, 0.23707488179206848, 0.2062869817018509, -0.4474092125892639, -0.2395910769701004, 0.41011449694633484, 0.4261265993118286, 0.11227737367153168, 0.2400345653295517, 0.49365782737731934, -0.3937361240386963, -0.23591715097427368, -0.24553343653678894, 0.2790334224700928, -0.3247871696949005, 0.5712245106697083, -0.044032782316207886, -0.17763400077819824, 0.30035772919654846, 0.4291127920150757, 0.06336100399494171, -0.051600828766822815, -0.08175739645957947, -0.23814623057842255, -0.2889330983161926, 0.20573246479034424, 0.02413707785308361, 0.21498514711856842, 0.02306479960680008, 0.1961817443370819, 0.09071652591228485, -0.06310711055994034, -0.43579843640327454, 0.04100928455591202, -0.45037075877189636, 0.2029990702867508, 0.04789953678846359, -0.13697153329849243, 0.33810439705848694, -0.0811520516872406, 0.15442197024822235, 0.3592027425765991, -0.3378853499889374, -0.3195314407348633, -0.09958963096141815, 0.05793677270412445, -0.24243858456611633, -0.048647187650203705, 0.17708750069141388, 0.16882401704788208, -0.2826744616031647, -0.27032536268234253, 0.1403990387916565, 0.3066920340061188, 0.12612982094287872, -0.1512710303068161, 0.020164083689451218, 0.027674883604049683, 0.08802163600921631, -0.09041658043861389, -0.11176590621471405, 0.021049074828624725, 0.06405682861804962, -0.10388614237308502, 0.06836509704589844, -0.04911291226744652, 0.15465620160102844, 0.11614135652780533, -0.020033419132232666, -0.010632112622261047, 0.2193211019039154, 0.058810602873563766, 0.010084085166454315, 0.2761494517326355, 0.5973771810531616, 0.24539513885974884, -0.11353996396064758, -0.10215771943330765, -0.03851759433746338, 0.32634735107421875, -0.3863926827907562, -0.14743268489837646, 0.11458486318588257, -0.17728249728679657, 0.13983067870140076, 0.062066324055194855, -0.014034807682037354, 0.3487895131111145, 0.04459356516599655, 0.309228777885437, 0.351319819688797, -0.10799780488014221, 0.022601302713155746, 0.09295216202735901, 0.183135524392128, -0.022540774196386337, 0.17307864129543304, 0.2435356080532074, 0.17868176102638245, 0.35317546129226685, 0.1130928322672844, 0.2879299521446228, 0.054670367389917374, 0.4318011999130249, -0.4179210364818573, -0.1586003601551056, 0.07607991993427277, 0.480846643447876, -0.250743567943573, 0.22571143507957458, 0.023495472967624664, 0.22928181290626526, -0.018118634819984436, -0.3048747479915619, -0.07602183520793915, 0.2655680775642395, -0.07991313189268112, -0.14770016074180603, 0.0912298858165741, -0.15812933444976807, -0.0871705412864685, 0.16362476348876953, 0.12846095860004425, 0.07491838932037354, 0.12058044970035553, -0.1445867419242859, 0.17186884582042694, -0.36857882142066956, -0.07993672788143158, -0.281429648399353, 0.3818378746509552, -0.2529996931552887, 0.18463636934757233, 0.034810811281204224, 0.1737222969532013, 0.25138625502586365, 0.16241048276424408, 0.2839621603488922, -0.002719644457101822, -0.06510934233665466, 0.27070847153663635, -0.1324898898601532, -0.11368481814861298, -0.20999504625797272, 0.20235151052474976, 0.35978779196739197, 0.29245495796203613, 0.13154518604278564, 0.20947811007499695, -0.25800156593322754, 0.1862514466047287, 0.05885728448629379, -0.10375380516052246, -0.3606591820716858, 0.1430547833442688, -0.011000141501426697, -0.0636335238814354, -0.2934477925300598, -0.09897666424512863, -0.3976697623729706, -0.08628236502408981, 0.30714526772499084, -0.16341908276081085, 0.19062981009483337, -0.059486713260412216, 0.14972256124019623, 0.13247549533843994, 0.32515180110931396, 0.11785228550434113, 0.15646260976791382, -0.15736036002635956, -0.22496376931667328, -0.5588515996932983, -0.1597101092338562, -0.09048120677471161, 0.089849092066288, 0.05275943502783775, 0.2943776249885559, -0.02182386815547943, 0.10487707704305649, 0.10646181553602219, -0.2672349512577057, -0.16477246582508087, -0.18242616951465607, -0.3219674229621887, 0.06307930499315262, -0.1008908748626709, 0.05688955634832382, 0.22734001278877258, -0.17897242307662964, 0.0028525516390800476, -0.40863412618637085, 0.1963396966457367, -0.1749471127986908, 0.007630281150341034, 0.06574209034442902, 0.06127472594380379, 0.1422411948442459, -0.00839456357061863, 0.038847193121910095, -0.12093571573495865, -0.10899525880813599, 0.016398534178733826, 0.10421691834926605, -0.3595055937767029, 0.14183662831783295, 0.04817977547645569, 0.44115298986434937, -0.19398747384548187, -0.06553235650062561, 0.23757974803447723, 0.47261539101600647, 0.22512950003147125, -0.22313900291919708, -0.30011358857154846, 0.056055448949337006, 0.13712182641029358, 0.12064825743436813, -0.08508341014385223, 0.5329296588897705, -0.025983557105064392, 0.02583441697061062, -0.3276117146015167, -0.6422445178031921, 0.7636793851852417, -0.37625885009765625, -0.26836803555488586, -0.15783770382404327, -0.06093120574951172, 0.5356752276420593, -0.26235130429267883, -0.8251047730445862, -0.09933489561080933, 0.2313787341117859, 0.05645676702260971, -0.3928583562374115, 0.4122507870197296, -0.11469991505146027, -0.028406791388988495, -0.05550902709364891, 0.12063257396221161, 0.05014663189649582, -0.2615830898284912, 0.09657624363899231, -0.2859969139099121 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
Looks like we may need to write the filtered table on the disk then. The other option is to slice the table to keep only the good rows and concatenate them but this is too slow at the moment since slicing is O(n) until #1803 is fixed. I'll work on this issue this afternoon
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
54
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. Looks like we may need to write the filtered table on the disk then. The other option is to slice the table to keep only the good rows and concatenate them but this is too slow at the moment since slicing is O(n) until #1803 is fixed. I'll work on this issue this afternoon
[ -0.36794793605804443, -0.21990841627120972, -0.1802113801240921, 0.1242886409163475, -0.15128400921821594, -0.06521166115999222, 0.018762286752462387, 0.4224574565887451, -0.05774126946926117, 0.06495422124862671, -0.29278087615966797, 0.19739004969596863, 0.21731780469417572, 0.29121848940849304, -0.13143856823444366, 0.08865194022655487, 0.02239663153886795, 0.13266289234161377, 0.02214907854795456, 0.15541519224643707, -0.1085028126835823, 0.12297045439481735, -0.2079162448644638, -0.2813812494277954, 0.07534454017877579, 0.06213541328907013, 0.19517505168914795, -0.0616423562169075, -0.13646307587623596, -0.26605454087257385, -0.052511174231767654, 0.31231963634490967, -0.316616415977478, 0.5606991052627563, -0.00010489732085261494, -0.18740546703338623, -0.004320591688156128, -0.059379272162914276, -0.2089667171239853, 0.04850464314222336, 0.2593117356300354, -0.23707722127437592, 0.09942390024662018, -0.162523552775383, -0.32653459906578064, 0.21385110914707184, -0.293025404214859, -0.08177995681762695, 0.11707936227321625, 0.20322956144809723, 0.2776397466659546, 0.40735360980033875, -0.23402166366577148, -0.07428059726953506, 0.318305104970932, -0.006954938173294067, -0.19510018825531006, 0.13361534476280212, 0.6501398086547852, 0.15087150037288666, -0.3211381733417511, 0.675756573677063, -0.049564529210329056, -0.04060832038521767, 0.13832873106002808, 0.04772774130105972, -0.10179752856492996, 0.057080335915088654, 0.19119521975517273, 0.2640703320503235, 0.2609800100326538, -0.10968967527151108, -0.2745305299758911, -0.330503910779953, -0.11853121966123581, -0.3665403723716736, 0.08442113548517227, 0.030088381841778755, -0.13705554604530334, 0.14353665709495544, -0.18320316076278687, 0.1555955559015274, -0.06386850774288177, -0.13495850563049316, -0.11397890746593475, 0.0284431055188179, -0.08985725790262222, -0.23791587352752686, 0.22098395228385925, -0.11185458302497864, -0.08621814101934433, -0.1278821974992752, 0.12525086104869843, 0.22547391057014465, -0.25079473853111267, -0.19625835120677948, 0.008631788194179535, 0.30324438214302063, 0.09938656538724899, 0.011367365717887878, -0.02289516106247902, 0.2900676429271698, 0.31291672587394714, -0.11198275536298752, 0.07977864146232605, -0.08462682366371155, 0.08528221398591995, 0.012911195866763592, 0.09875967353582382, 0.33208075165748596, 0.0021698661148548126, -0.08963983505964279, 0.18302106857299805, -0.04272589087486267, -0.10500109195709229, -0.27596962451934814, -0.005009293556213379, -0.39065641164779663, -0.16470791399478912, 0.21011193096637726, 0.08823861926794052, -0.017124168574810028, 0.23584069311618805, 0.36687350273132324, -0.24034735560417175, -0.025449175387620926, 0.33683663606643677, -0.18087628483772278, -0.334800124168396, -0.16208629310131073, -0.25771039724349976, -0.02266857773065567, -0.15039926767349243, -0.14223377406597137, 0.20035651326179504, -0.48954707384109497, 0.04899417608976364, 0.07914149761199951, 0.06543654203414917, 0.03277433663606644, -0.23023711144924164, -0.36686787009239197, 0.2883441746234894, 0.33753472566604614, -0.004212778061628342, -0.1204325258731842, 0.03704963997006416, -0.20750682055950165, -0.1274409145116806, 0.033773668110370636, 0.2184264361858368, -0.12463362514972687, -0.17683221399784088, 0.3253425061702728, 0.04004688560962677, 0.04068540781736374, -0.04452768713235855, 0.3959439694881439, 0.3263012170791626, -0.06508427113294601, 0.016445226967334747, 0.08465272188186646, -0.43077003955841064, 0.2014368772506714, 0.3161102533340454, 0.2037029266357422, -0.3249815106391907, 0.009844519197940826, 0.002330079674720764, 0.15677163004875183, 0.10877851396799088, 0.3968845009803772, 0.01660333015024662, -0.08448850363492966, 0.07382870465517044, 0.1942511647939682, -0.061692915856838226, 0.009560361504554749, -0.3395613729953766, 0.08684190362691879, 0.0019607320427894592, 0.21936039626598358, 0.09191268682479858, 0.031772587448358536, 0.47970300912857056, -0.18949013948440552, 0.40220052003860474, 0.15727952122688293, -0.09099788963794708, -0.12719856202602386, -0.28986144065856934, 0.16077663004398346, 0.16513772308826447, 0.20526504516601562, 0.014765441417694092, -0.07163859158754349, -0.313901424407959, -0.09652284532785416, 0.3262915313243866, 0.13455715775489807, 0.03399266302585602, 0.23201900720596313, 0.1371408998966217, 0.3169361352920532, 0.14393484592437744, -0.27450552582740784, -0.0034308210015296936, 0.0015514232218265533, 0.36547309160232544, 0.20371200144290924, -0.12244610488414764, -0.43250250816345215, -0.26197054982185364, 0.07651704549789429, 0.026351649314165115, -0.071862131357193, 0.19147241115570068, -0.2791087329387665, -0.01180342398583889, -0.017236586660146713, -0.059887051582336426, 0.18044322729110718, -0.36616870760917664, 0.06558991223573685, -0.23986099660396576, 0.055535949766635895, -0.020420124754309654, -0.10275110602378845, 0.24321597814559937, 0.18960493803024292, 0.061648376286029816, 0.20784147083759308, 0.01763777807354927, 0.20531883835792542, -0.08030207455158234, 0.08915624022483826, -0.09711071103811264, 0.124440036714077, 0.019115161150693893, 0.041217293590307236, -0.05226720869541168, 0.18798211216926575, 0.2692677974700928, -0.057521138340234756, -0.569929301738739, 0.47358161211013794, 0.056337691843509674, 0.33113613724708557, 0.18271781504154205, -0.12414589524269104, 0.17485137283802032, -0.05904664099216461, -0.07274327427148819, -0.19249574840068817, 0.6771793365478516, -0.10322161018848419, 0.025157447904348373, 0.2555972933769226, -0.4231904149055481, 0.4449195861816406, 0.2846454083919525, -0.02307834103703499, -0.13809576630592346, 0.41669371724128723, 0.04748959094285965, -0.18331262469291687, -0.05512290447950363, -0.15640108287334442, 0.03978263586759567, 0.40503638982772827, 0.12408697605133057, -0.009152809157967567, -0.04601864889264107, -0.16921575367450714, 0.2501663267612457, 0.062401775270700455, -0.0308774895966053, 0.2288202941417694, 0.1577741950750351, -0.03181253746151924, -0.6655597686767578, 0.008218333125114441, -0.19845739006996155, 0.1537250578403473, -0.0989607572555542, 0.006563175469636917, -0.06210153549909592, -0.3690685033798218, 0.26473933458328247, -0.0069442735984921455, -0.010853879153728485, -0.2736716866493225, 0.20245106518268585, 0.40343594551086426, -0.15676485002040863, 0.18690276145935059, 0.09965404868125916, 0.30721279978752136, 0.2656916677951813, 0.12545111775398254, -0.3682762384414673, -0.2287268489599228, 0.017102517187595367, 0.20472683012485504, -0.017314482480287552, 0.18170613050460815, 0.5028843879699707, -0.25696834921836853, -0.03338261693716049, -0.13740403950214386, -0.40670761466026306, 0.013544127345085144, -0.25855278968811035, 0.18387910723686218, 0.08439896255731583, 0.3224768340587616, -0.12275093048810959, 0.05551944673061371, 0.12217644602060318, -0.2520143389701843, -0.32859453558921814, 0.016605418175458908, -0.0002199385198764503, 0.044301629066467285, -0.048717159777879715, -0.3029854893684387, -0.058753564953804016, -0.44124093651771545, 0.19255079329013824, -0.10624051094055176, 0.14287075400352478, 0.05717594549059868, -0.0892970860004425, -0.0899936780333519, 0.07303373515605927, 0.25502288341522217, -0.3140849471092224, -0.23971202969551086, 0.21769899129867554, -0.1332949995994568, -0.2997751533985138, -0.1925618052482605, 0.17356735467910767, -0.25700056552886963, -0.007048262283205986, -0.2847415804862976, -0.076166532933712, -0.2883128821849823, -0.13459771871566772, -0.012778181582689285, -0.13080209493637085, 0.22177131474018097, -0.19250644743442535, -0.3375280797481537, -0.13472381234169006, -0.38055527210235596, 0.00993654876947403, -0.1876865029335022, -0.13766413927078247, -0.26781758666038513, 0.4497050344944, 0.2816992402076721, 0.06027126684784889, 0.16551338136196136, 0.33117637038230896, 0.10986655950546265, 0.20747797191143036, 0.2669867277145386, -0.23736032843589783, -0.2856842875480652, -0.13406670093536377, -0.01656205952167511, 0.07390190660953522, 0.5128664970397949, 0.1623084545135498, -0.04675466567277908, -0.09758156538009644, -0.29612040519714355, -0.39781656861305237, -0.32662060856819153, 0.0023788325488567352, 0.15513697266578674, 0.12446336448192596, 0.278070330619812, 0.07012970000505447, 0.02402373030781746, -0.22796189785003662, -0.03448238968849182, 0.19818592071533203, -0.0829194113612175, -0.1413932889699936, -0.27914807200431824, 0.026858296245336533, -0.6459909081459045, 0.23022839426994324, 0.09888534992933273, 0.15027490258216858, -0.02068300172686577, -0.2340008020401001, 0.05946105718612671, -0.010025965049862862, 0.6691064834594727, 0.01493093278259039, 0.042278919368982315, 0.19453328847885132, -0.3441765010356903, -0.2986038625240326, 0.1423773318529129, -0.23220066726207733, -0.021018285304307938, 0.36588039994239807, 0.3135101795196533, -0.31746906042099, -0.21824407577514648, 0.3137322664260864, 0.0686858668923378, 0.05319051072001457, -0.10785024613142014, -0.09054383635520935, -0.28664982318878174, -0.23482076823711395, 0.43089762330055237, 0.38949304819107056, 0.3835150897502899, 0.01615850254893303, -0.16455800831317902, 0.04289913922548294, -0.04945874959230423, 0.3164374828338623, 0.06636907160282135, 0.2628744840621948, 0.017162548378109932, 0.4297785758972168, -0.14272919297218323, -0.00023681297898292542, 0.02009456232190132, 0.5174099206924438, -0.18011990189552307, -0.13584530353546143, -0.03236068785190582, -0.2059018313884735, 0.08504702895879745, 0.47491154074668884, 0.10915234684944153, 0.4188699424266815, 0.08751250058412552, 0.3610116243362427, -0.12486531585454941, -0.06570927053689957, -0.07816306501626968, 0.35983261466026306, -0.4343893527984619, -0.2642675042152405, 0.23570474982261658, -0.036580465734004974, -0.03648292273283005, 0.1996876448392868, -0.007489629089832306, -0.16519196331501007, 0.1842985898256302, -0.028400056064128876, 1.0107945203781128, -0.20511366426944733, 0.1173442006111145, 0.060391269624233246, 0.019951485097408295, 0.053347907960414886, -0.3105408549308777, 0.14665861427783966, -0.08550605177879333, -0.43102651834487915, -0.021925339475274086, 0.1359408050775528, -0.0495351180434227, -0.11197079718112946, -0.26240482926368713, 0.0508514903485775, -0.14697018265724182, 0.2267911583185196, -0.04764474928379059, 0.03441423922777176, -0.14234696328639984, -0.33086690306663513, -0.7180489897727966, 0.19885121285915375, 0.1480315923690796, -0.06294921040534973, -0.08565540611743927, 0.18729127943515778, 0.20314568281173706, -0.12841084599494934, -0.2714995741844177, -0.14778730273246765, -0.048870157450437546, -0.07639887928962708, 0.06312711536884308, -0.41401445865631104, -0.13394847512245178, -0.1466401368379593, 0.0654115378856659, 0.20084019005298615, -0.034465156495571136, 0.43272319436073303, 0.016798686236143112, 0.10424544662237167, 0.10321754217147827, -0.05913730338215828, 0.23340176045894623, -0.1551138162612915, 0.13441938161849976, -0.20565560460090637, 0.05839712917804718, -0.25605863332748413, 0.30144158005714417, 0.11082097142934799, 0.0372559130191803, -0.3041020929813385, -0.09619884192943573, 0.04495484009385109, -0.01270352117717266, -0.5165548324584961, 0.2156895101070404, 0.09932735562324524, -0.1994800865650177, 0.19732987880706787, 0.1703287810087204, -0.31042641401290894, -0.32701700925827026, 0.47120848298072815, 0.3383501470088959, 0.009455405175685883, 0.1258072406053543, 0.6534057259559631, -0.5501537322998047, -0.26962795853614807, -0.1673649102449417, 0.18136821687221527, -0.4256807863712311, 0.4882400929927826, -0.08465515077114105, -0.13778769969940186, 0.32443976402282715, 0.37447017431259155, -0.07068907469511032, -0.17182713747024536, -0.12139581143856049, -0.20900225639343262, 0.09523285180330276, 0.13692201673984528, 0.19019463658332825, 0.1367466151714325, 0.09446906298398972, 0.2834876477718353, -0.1703549474477768, 0.049198560416698456, -0.47248202562332153, 0.038480907678604126, -0.44544050097465515, 0.1980699896812439, 0.016238734126091003, -0.05355878919363022, 0.21804314851760864, -0.02993626333773136, 0.22674672305583954, 0.4216024875640869, -0.1900046020746231, -0.3746752142906189, -0.07098902016878128, 0.042608097195625305, -0.24712631106376648, -0.03727342188358307, 0.012469685636460781, 0.01634271815419197, -0.2996976375579834, -0.2303714007139206, 0.07285581529140472, 0.10072166472673416, 0.10381366312503815, -0.2473515421152115, 0.0701703131198883, -0.07418254762887955, 0.1966128945350647, -0.00896545872092247, -0.10653798282146454, -0.05440516769886017, -0.004801605828106403, -0.15051887929439545, -0.15995077788829803, 0.026709266006946564, 0.18058469891548157, 0.1455974280834198, -0.00934695452451706, -0.1557837724685669, 0.3186689019203186, 0.11711955070495605, -0.02688746340572834, 0.2545844614505768, 0.5582634210586548, 0.3439677953720093, 0.01715385913848877, -0.23861064016819, -0.001216270960867405, 0.3480475842952728, -0.5027626752853394, -0.302389532327652, -0.04797181859612465, -0.1474648416042328, 0.22799110412597656, 0.07722936570644379, -0.08220598101615906, 0.2378683090209961, 0.09786391258239746, 0.2993803024291992, 0.23877905309200287, -0.1310735046863556, -0.05776020139455795, 0.14265190064907074, 0.4031257629394531, -0.07292072474956512, 0.19147813320159912, 0.3092968463897705, 0.06495863199234009, 0.2729840874671936, 0.21130284667015076, 0.22405332326889038, 0.158318430185318, 0.4285203218460083, -0.30691200494766235, -0.130301833152771, 0.1637258678674698, 0.39656341075897217, -0.26128703355789185, 0.10892393440008163, 0.06413941085338593, -0.04313797503709793, -0.14484143257141113, -0.23964127898216248, -0.09597767144441605, 0.23993709683418274, -0.1076749786734581, -0.04730089753866196, 0.16986919939517975, -0.18807944655418396, 0.027815453708171844, -0.07529991120100021, 0.1616077721118927, 0.23611319065093994, 0.10271290689706802, -0.09670965373516083, 0.3570210933685303, -0.4426501393318176, -0.09306196123361588, -0.461393266916275, 0.4991399049758911, -0.20833341777324677, 0.07718925923109055, 0.05915166810154915, 0.1796208918094635, 0.2614925503730774, 0.2004765272140503, 0.19534170627593994, -0.007978659123182297, 0.024920055642724037, 0.07999885827302933, -0.3152107298374176, -0.11195678263902664, -0.08359440416097641, 0.224609375, 0.27599841356277466, 0.10721385478973389, 0.1451723724603653, 0.22150474786758423, -0.24971559643745422, 0.15588867664337158, 0.05685456842184067, -0.02197960764169693, -0.16169874370098114, 0.036638692021369934, 0.09740163385868073, -0.09973812103271484, -0.24631687998771667, -0.168846994638443, -0.17107059061527252, -0.023785479366779327, 0.2430950552225113, -0.2709527909755707, 0.15243440866470337, -0.10476791858673096, 0.17594300210475922, 0.1463511884212494, 0.37877383828163147, 0.08385901153087616, 0.16166722774505615, -0.12640973925590515, -0.2897702157497406, -0.3285824954509735, -0.18741339445114136, -0.08720409870147705, 0.005109863355755806, 0.398688942193985, 0.31548330187797546, 0.20560041069984436, 0.1942201554775238, 0.14231368899345398, -0.20717573165893555, -0.28989627957344055, -0.22880318760871887, -0.29227104783058167, -0.007154155522584915, 0.06648720800876617, -0.013941438868641853, 0.023501921445131302, -0.1419416218996048, 0.16069208085536957, -0.3635806441307068, 0.25807592272758484, -0.2517247796058655, 0.04034744203090668, 0.11399851739406586, 0.11175168305635452, -0.007716529071331024, -0.0024932753294706345, -0.09140020608901978, -0.11729580163955688, -0.05871603637933731, 0.1918628066778183, -0.06567344814538956, -0.2584036886692047, 0.23757842183113098, 0.14886702597141266, 0.22773060202598572, 0.058303385972976685, -0.23443736135959625, 0.3265939950942993, 0.3872738778591156, 0.04610349237918854, 0.13493701815605164, -0.21253973245620728, 0.07437186688184738, 0.13427957892417908, 0.28159594535827637, -0.27804747223854065, 0.3460805416107178, 0.00923357903957367, 0.09354036301374435, -0.2565690279006958, -0.741938054561615, 0.5757012367248535, -0.2845197319984436, -0.2872466742992401, 0.01250432152301073, 0.14903968572616577, 0.3845774531364441, -0.156196728348732, -0.6364500522613525, -0.15371586382389069, 0.1423218995332718, 0.007317792624235153, -0.3293607532978058, 0.4875562787055969, -0.15041974186897278, -0.0004413723945617676, -0.14308494329452515, 0.10947079211473465, 0.14628872275352478, -0.3485930263996124, -0.0636032447218895, -0.2749650180339813 ]
https://github.com/huggingface/datasets/pull/2060
Filtering refactor
From investigation it looks like the lib's `Table.filter` cannot send its output to memorymap, asked a question on the mailing list, see [here](https://lists.apache.org/thread.html/r8cd8591ce83a967eb0097a7f31785ac2f3ee95ea371c8c5beb0720ad%40%3Cuser.arrow.apache.org%3E)
fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds.
23
text: Filtering refactor fix https://github.com/huggingface/datasets/issues/2032 benchmarking is somewhat inconclusive, currently running on `book_corpus` with: ```python bc = load_dataset("bookcorpus") now = time.time() bc.filter(lambda x: len(x["text"]) < 64) elapsed = time.time() - now print(elapsed) ``` this branch does it in 233 seconds, master in 1409 seconds. From investigation it looks like the lib's `Table.filter` cannot send its output to memorymap, asked a question on the mailing list, see [here](https://lists.apache.org/thread.html/r8cd8591ce83a967eb0097a7f31785ac2f3ee95ea371c8c5beb0720ad%40%3Cuser.arrow.apache.org%3E)
[ -0.36633920669555664, -0.17559799551963806, -0.14351452887058258, 0.12099328637123108, -0.13812001049518585, -0.10628437995910645, 0.03913067281246185, 0.43766695261001587, -0.005643410608172417, -0.03773696720600128, -0.08572978526353836, 0.20143620669841766, 0.13515251874923706, -0.055081598460674286, -0.06488839536905289, 0.14904546737670898, -0.03755383938550949, 0.07389086484909058, -0.15088507533073425, 0.19787226617336273, -0.14961332082748413, 0.124580517411232, -0.23353160917758942, -0.21597321331501007, -0.027062606066465378, -0.033653080463409424, 0.06471079587936401, -0.18701982498168945, -0.16124297678470612, -0.3782788813114166, -0.06136485934257507, 0.10829904675483704, -0.3771359622478485, 0.45189568400382996, -0.00011133966472698376, 0.03304602950811386, 0.08669651299715042, 0.0499812588095665, -0.16823267936706543, 0.029745474457740784, 0.09382417052984238, -0.0321042463183403, 0.19403386116027832, -0.05188662186264992, -0.031913720071315765, 0.23904982209205627, -0.09162221103906631, -0.2400141805410385, 0.2540968656539917, 0.2367665320634842, 0.2522793412208557, 0.35759401321411133, -0.17854706943035126, -0.04939932003617287, 0.4649783670902252, 0.036964479833841324, -0.21199943125247955, 0.1279820203781128, 0.5466303825378418, -0.17129948735237122, -0.4661863446235657, 0.6669819951057434, -0.11863231658935547, 0.16084441542625427, 0.23905181884765625, 0.04471192881464958, -0.18169885873794556, 0.024154026061296463, 0.23586532473564148, 0.17534011602401733, 0.3477608263492584, -0.22253060340881348, -0.07824353128671646, -0.13537324965000153, -0.4074583053588867, -0.18137536942958832, 0.1785334348678589, 0.0753042921423912, -0.13977332413196564, 0.17013809084892273, -0.19047367572784424, 0.13454897701740265, -0.010667849332094193, -0.21731658279895782, -0.11886964738368988, 0.3067900538444519, -0.07485800981521606, 0.029435057193040848, 0.14585131406784058, 0.034135591238737106, -0.1430138349533081, -0.09213606268167496, 0.13672319054603577, 0.3590294420719147, 0.029777422547340393, -0.015085548162460327, 0.2305496633052826, -0.11930864304304123, 0.26674994826316833, 0.023686911910772324, 0.27173662185668945, 0.29198843240737915, 0.17041558027267456, -0.013442859053611755, 0.1437854766845703, 0.06269745528697968, 0.06715895980596542, 0.14969630539417267, 0.2589355409145355, 0.3008388876914978, -0.08976230025291443, -0.0880010649561882, 0.3719537556171417, -0.042927335947752, 0.12223884463310242, -0.21577215194702148, -0.02212967909872532, -0.41406986117362976, -0.1369667649269104, 0.27513644099235535, -0.11763706803321838, -0.06600506603717804, 0.039143793284893036, 0.4141034185886383, -0.27817803621292114, 0.11027787625789642, 0.46338385343551636, -0.344560444355011, -0.3979647755622864, -0.2314002811908722, -0.21902815997600555, -0.044583823531866074, -0.45832136273384094, 0.08813007175922394, 0.2758862376213074, -0.1317530870437622, 0.08608420193195343, 0.10029084980487823, -0.07085639238357544, -0.021085968241095543, 0.0028278734534978867, -0.271138995885849, 0.4626113772392273, 0.44403913617134094, -0.11092248558998108, 0.07068288326263428, 0.08268463611602783, 0.07807336747646332, -0.12828101217746735, 0.044378794729709625, 0.16730466485023499, -0.060163840651512146, 0.19625192880630493, 0.280467689037323, 0.11712177097797394, 0.0050008296966552734, -0.12369047850370407, 0.4151846766471863, 0.3987392783164978, -0.20701506733894348, -0.045200325548648834, 0.3309829831123352, -0.5192868709564209, -0.012784520164132118, 0.18039226531982422, 0.34059906005859375, -0.505309522151947, -0.13320744037628174, 0.05891411378979683, 0.19951274991035461, 0.061516087502241135, 0.3831844925880432, -0.0385110005736351, -0.10997001081705093, 0.039230458438396454, 0.3146834969520569, -0.1635722517967224, -0.12267743051052094, -0.38302430510520935, 0.09764551371335983, 0.0718490481376648, 0.06279268115758896, 0.0058780089020729065, -0.05289291590452194, 0.4575507342815399, -0.039837341755628586, 0.4073224663734436, 0.1337197870016098, -0.0426427498459816, 0.11464155465364456, -0.3748878240585327, 0.09214078634977341, 0.06570502370595932, 0.12621168792247772, 0.17493936419487, -0.1338287591934204, -0.17774054408073425, -0.23029480874538422, 0.3030102252960205, 0.2505713105201721, 0.2219879925251007, 0.33630794286727905, 0.14920078217983246, 0.220126211643219, 0.19140882790088654, -0.3679848313331604, 0.13661876320838928, 0.05716727674007416, 0.17805489897727966, 0.31020477414131165, -0.17468588054180145, -0.18429985642433167, -0.21840238571166992, 0.29539018869400024, 0.044243983924388885, -0.27478235960006714, 0.12722274661064148, -0.25398457050323486, -0.02916562557220459, 0.06173115596175194, -0.054820578545331955, 0.45240163803100586, -0.12015332281589508, 0.16682615876197815, -0.28569287061691284, 0.06635953485965729, -0.08566495031118393, -0.13676197826862335, 0.10224315524101257, 0.03237810358405113, -0.003640204668045044, 0.2970690429210663, -0.08961150795221329, 0.19969385862350464, -0.07603772729635239, 0.07180923968553543, 0.06093985587358475, 0.07186978310346603, 0.20634494721889496, -0.2557472586631775, 0.2765685021877289, 0.2446622997522354, 0.3289750814437866, -0.1766452193260193, -0.31955233216285706, 0.43318676948547363, 0.2341848611831665, 0.42582967877388, 0.13768231868743896, -0.07626824080944061, 0.18840743601322174, 0.042718056589365005, -0.0279427170753479, -0.08264745771884918, 0.43538758158683777, 0.15183743834495544, 0.2796297073364258, 0.13868223130702972, -0.20046420395374298, 0.19059893488883972, 0.3383905589580536, 0.02820337563753128, -0.0695054903626442, 0.37413838505744934, -0.21855178475379944, -0.4662249982357025, 0.107587531208992, -0.24725128710269928, 0.24389725923538208, 0.3147217333316803, 0.1311647891998291, 0.01818080060184002, -0.2488010823726654, -0.15316033363342285, 0.2434103786945343, -0.09074744582176208, 0.12285349518060684, -0.011294186115264893, 0.20540006458759308, -0.025029364973306656, -0.6409710049629211, -0.15084883570671082, -0.2292088270187378, 0.06766615062952042, -0.09897530823945999, 0.05047767609357834, -0.09287849068641663, -0.40243566036224365, 0.2636081874370575, 0.14674466848373413, -0.2813493311405182, -0.3152216076850891, 0.28043776750564575, 0.2817208170890808, -0.13672983646392822, 0.21692092716693878, 0.1480245590209961, 0.2813422679901123, 0.20010800659656525, 0.14573714137077332, -0.4879835546016693, -0.3506944179534912, -0.09617427736520767, 0.1488880068063736, -0.17092663049697876, 0.096341073513031, 0.4879591166973114, -0.12206648290157318, -0.057307448238134384, -0.08913898468017578, -0.40478456020355225, 0.08025694638490677, -0.1271129846572876, 0.09211666136980057, 0.12729862332344055, 0.3135150074958801, 0.08140391111373901, 0.18144471943378448, 0.30410584807395935, -0.4411141574382782, -0.34652772545814514, 0.060504645109176636, -0.06250970810651779, 0.1304846554994583, -0.08991445600986481, -0.288944810628891, 0.03645038604736328, -0.46882039308547974, 0.12255680561065674, -0.029991615563631058, 0.12424054741859436, 0.36528483033180237, 0.0064353784546256065, 0.06459006667137146, 0.050919316709041595, 0.2822410762310028, -0.3221893012523651, -0.14717870950698853, 0.12040897458791733, -0.17865151166915894, -0.25896570086479187, -0.16912461817264557, 0.1511913537979126, -0.037820298224687576, 0.2247568666934967, -0.5317949652671814, -0.018799087032675743, -0.45646435022354126, -0.19335204362869263, 0.009946957230567932, -0.022293133661150932, 0.36101219058036804, -0.05146104469895363, -0.3450579345226288, -0.2450357973575592, -0.5870453119277954, -0.033876560628414154, -0.18309682607650757, -0.10268654674291611, -0.018714353442192078, 0.6611059904098511, 0.3623409867286682, 0.3850558400154114, 0.07280485332012177, 0.23369087278842926, 0.3575180470943451, 0.13328389823436737, 0.25719738006591797, -0.336313933134079, -0.07314173877239227, -0.18522654473781586, -0.12653034925460815, -0.018522925674915314, 0.2693103551864624, 0.14406171441078186, -0.2358533889055252, -0.20381370186805725, -0.18220806121826172, -0.3175507187843323, -0.29792293906211853, 0.03654506430029869, 0.14218489825725555, 0.13823957741260529, 0.35908403992652893, -0.0040225982666015625, -0.24577169120311737, -0.19104787707328796, -0.004871738143265247, 0.0927247554063797, -0.18735823035240173, -0.12839286029338837, -0.3095644414424896, 0.25851765275001526, -0.6679725646972656, 0.3621494770050049, -0.06785024702548981, 0.24570246040821075, -0.20815733075141907, -0.2506653368473053, 0.18878163397312164, 0.009683453477919102, 0.5950117707252502, 0.008509754203259945, 0.23515932261943817, 0.19795306026935577, -0.34396085143089294, -0.42193153500556946, 0.02900780364871025, -0.1808600276708603, 0.08160503208637238, 0.09234210848808289, 0.197408989071846, -0.2621806561946869, -0.17644566297531128, 0.16319170594215393, -0.14779891073703766, 0.06703777611255646, 0.018484514206647873, -0.1921621710062027, -0.17647439241409302, -0.24770702421665192, 0.3121112585067749, 0.3812878131866455, 0.17574451863765717, 0.20548179745674133, -0.35574615001678467, 0.21988490223884583, -0.16824227571487427, 0.06439226120710373, 0.0971524715423584, 0.16983237862586975, -0.21870650351047516, 0.3045913279056549, -0.12245570123195648, 0.06683234125375748, -0.010983647778630257, 0.42333984375, -0.21838825941085815, -0.19881492853164673, 0.10821407288312912, -0.0512126125395298, 0.15514402091503143, 0.47215554118156433, 0.17000006139278412, 0.34173768758773804, 0.14461764693260193, 0.3060861825942993, -0.21811749041080475, 0.010111162438988686, -0.053317539393901825, 0.28537991642951965, -0.4503858685493469, -0.4022141098976135, 0.26961979269981384, 0.22232499718666077, -0.10498624294996262, 0.5201554894447327, -0.23743091523647308, -0.2883796989917755, 0.3122367858886719, 0.12251546233892441, 1.0004911422729492, -0.44411444664001465, 0.29786550998687744, -0.08345718681812286, -0.031781233847141266, -0.1040017232298851, -0.40109682083129883, 0.2083570659160614, -0.2054462879896164, -0.19418965280056, -0.010834317654371262, -0.005276836454868317, 0.09137345850467682, -0.0283527672290802, -0.23295600712299347, 0.028483642265200615, 0.08957640826702118, 0.3622055947780609, 0.04442621022462845, -0.0041862353682518005, -0.40960121154785156, -0.23028405010700226, -0.49428433179855347, 0.20547735691070557, 0.0002585761249065399, -0.0695168524980545, -0.1786096692085266, 0.17475996911525726, 0.04875670000910759, -0.29144859313964844, -0.4284484386444092, -0.012619421817362309, -0.3843251168727875, 0.13113847374916077, -0.07903119921684265, -0.05598357692360878, -0.29525455832481384, -0.15004049241542816, -0.21812044084072113, 0.1313686966896057, -0.03893366456031799, 0.33964401483535767, -0.2748197615146637, 0.2426631897687912, 0.08437435328960419, 0.12654516100883484, 0.39812710881233215, -0.1742667555809021, -0.02885027974843979, -0.16417548060417175, -0.2063891887664795, -0.4789639115333557, 0.1584458351135254, 0.23761628568172455, 0.2436170130968094, -0.23610717058181763, 0.1276625245809555, 0.026829790323972702, -0.18757502734661102, -0.3640853762626648, 0.15427199006080627, 0.18519052863121033, -0.14495648443698883, 0.2778276205062866, 0.23626568913459778, -0.4653190076351166, -0.19273316860198975, 0.4876987934112549, 0.24767184257507324, 0.2688620984554291, 0.13828301429748535, 0.5776384472846985, -0.48075342178344727, -0.28720301389694214, -0.12930554151535034, 0.26848480105400085, -0.4089689552783966, 0.5068628191947937, -0.1610383689403534, -0.23779702186584473, 0.33424487709999084, 0.41663262248039246, -0.03517312556505203, -0.023698806762695312, -0.16735059022903442, -0.34715044498443604, -0.11192581057548523, 0.26535189151763916, -0.16255195438861847, 0.10762595385313034, 0.2026362419128418, 0.12610796093940735, 0.05475861579179764, 0.00004900246858596802, -0.4025808870792389, -0.038775086402893066, -0.23321440815925598, 0.2662273049354553, -0.15254367887973785, -0.04729354381561279, 0.2342987209558487, 0.021667633205652237, 0.14462853968143463, 0.5344691872596741, -0.31987905502319336, -0.2800641357898712, -0.0033828113228082657, 0.06365162134170532, -0.2589518129825592, -0.02670830301940441, -0.16483010351657867, -0.09134609997272491, -0.1712108701467514, -0.31368646025657654, 0.1247769147157669, 0.18529000878334045, 0.04752172902226448, -0.09371225535869598, 0.24225327372550964, -0.037519559264183044, 0.19437791407108307, 0.09636301547288895, -0.23577290773391724, 0.005842849612236023, -0.005228849593549967, -0.18608781695365906, -0.07897530496120453, -0.038607846945524216, 0.07918940484523773, 0.1818542778491974, -0.11907897889614105, -0.1553296446800232, 0.31213146448135376, 0.07359996438026428, -0.06049202382564545, 0.2239622324705124, 0.5174560546875, 0.2691854238510132, 0.07242542505264282, -0.16830036044120789, -0.09088687598705292, 0.2887810170650482, -0.39343172311782837, -0.18293428421020508, 0.04309671372175217, -0.16601228713989258, 0.1176120787858963, -0.014065973460674286, 0.00388132780790329, 0.3257432281970978, 0.3223385810852051, 0.2720411419868469, 0.3187772035598755, -0.21013784408569336, -0.06173107400536537, 0.06403655558824539, 0.30352866649627686, 0.10560603439807892, 0.32162603735923767, 0.2509029507637024, 0.24755534529685974, 0.30511027574539185, 0.21005454659461975, 0.34337109327316284, 0.13530921936035156, 0.3779626488685608, -0.14691504836082458, -0.1845201849937439, -0.016196902841329575, 0.5090726017951965, -0.2106974720954895, 0.2299920618534088, 0.09061679989099503, 0.11600665003061295, -0.018722325563430786, -0.2510090470314026, -0.0735827088356018, 0.10308127105236053, -0.08943258970975876, 0.009229620918631554, 0.20519079267978668, -0.18036538362503052, -0.10808826982975006, 0.0874706506729126, 0.11349979043006897, 0.24179773032665253, 0.34502315521240234, -0.12330888211727142, 0.13309383392333984, -0.46502265334129333, -0.13082990050315857, -0.43376868963241577, 0.42424583435058594, -0.2085617631673813, -0.003455856814980507, -0.17181675136089325, 0.14621227979660034, 0.16510167717933655, 0.2394619882106781, 0.1798405945301056, 0.08897972106933594, -0.15239790081977844, 0.2205905318260193, -0.19196270406246185, -0.1259840577840805, -0.24112828075885773, 0.35223621129989624, 0.4925086796283722, 0.08788743615150452, 0.007864110171794891, 0.17161470651626587, -0.17064829170703888, -0.03597346320748329, 0.1337329000234604, 0.05275183543562889, -0.06378550082445145, 0.00726618617773056, -0.025325890630483627, -0.22877496480941772, -0.1957535743713379, -0.1026061400771141, -0.43246546387672424, -0.023390397429466248, 0.32579565048217773, -0.493686705827713, 0.02959035336971283, -0.22411538660526276, 0.10864077508449554, 0.04143216088414192, 0.2916780114173889, 0.30811235308647156, -0.014784380793571472, -0.14842988550662994, -0.34359508752822876, -0.35742416977882385, -0.09345152229070663, -0.14367307722568512, 0.04394961893558502, 0.047971609979867935, 0.2518397569656372, 0.23625904321670532, 0.14286074042320251, 0.3745245933532715, -0.3766246736049652, -0.1664855033159256, -0.11813564598560333, -0.3399488627910614, 0.05934127792716026, 0.1060824990272522, -0.009046593680977821, 0.06971631944179535, -0.1669345498085022, 0.07700377702713013, -0.1671052724123001, 0.20800453424453735, -0.4491737484931946, -0.09714215248823166, 0.25990229845046997, 0.25105172395706177, 0.30922818183898926, 0.028867240995168686, 0.017228513956069946, -0.05591314285993576, -0.17907766997814178, -0.018665987998247147, -0.09325648099184036, -0.08611153811216354, 0.11800771951675415, 0.045544158667325974, 0.29660940170288086, -0.057065099477767944, -0.18073256313800812, 0.1808607280254364, 0.3851538896560669, -0.06694860011339188, 0.04829699546098709, -0.2958605885505676, -0.03512721508741379, 0.0905618742108345, 0.1690240204334259, -0.26977065205574036, 0.34783655405044556, 0.031026212498545647, 0.03179293870925903, -0.3902534246444702, -0.6055865287780762, 0.4526488780975342, -0.44723066687583923, -0.3710327446460724, 0.053437795490026474, 0.06228593364357948, 0.0481526181101799, -0.3122992515563965, -0.7722869515419006, -0.272207111120224, 0.13686104118824005, -0.030392806977033615, -0.42804327607154846, 0.4078279435634613, -0.04512563720345497, 0.02723720297217369, -0.16641631722450256, 0.23585258424282074, 0.06483043730258942, -0.2953101098537445, -0.059153635054826736, -0.34031784534454346 ]
https://github.com/huggingface/datasets/pull/2053
Add bAbI QA tasks
Hi @lhoestq, Should I remove the 160 configurations? Is it too much? EDIT: Can you also check the task category? I'm not sure if there is an appropriate tag for the same.
- **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass.
32
text: Add bAbI QA tasks - **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass. Hi @lhoestq, Should I remove the 160 configurations? Is it too much? EDIT: Can you also check the task category? I'm not sure if there is an appropriate tag for the same.
[ -0.14379265904426575, -0.23776546120643616, -0.16119952499866486, -0.10497778654098511, 0.12279532849788666, 0.12302198261022568, 0.24087852239608765, 0.38729149103164673, 0.33260080218315125, 0.13559813797473907, 0.023749537765979767, 0.08510088175535202, 0.07430587708950043, 0.6599835157394409, -0.05204492807388306, 0.06157059222459793, 0.03615454584360123, -0.005362212657928467, 0.3594759702682495, 0.06941306591033936, -0.209721177816391, 0.16588880121707916, -0.020377419888973236, -0.09209725260734558, -0.03020874597132206, -0.36778944730758667, -0.041796255856752396, 0.06802404671907425, -0.11647395044565201, -0.2571457028388977, -0.12896180152893066, 0.30620983242988586, -0.19204223155975342, 0.20714223384857178, -0.0001089174475055188, -0.1480274498462677, -0.01918463408946991, -0.16065159440040588, -0.3841131627559662, -0.09465651214122772, 0.09182516485452652, -0.24536670744419098, -0.0800584927201271, -0.041864823549985886, -0.06875507533550262, -0.242772176861763, 0.15676090121269226, 0.05371803790330887, 0.42917340993881226, 0.40802156925201416, 0.2057267129421234, -0.028928546234965324, 0.1637069135904312, -0.2386111468076706, 0.2202478051185608, 0.19586285948753357, -0.3181277811527252, 0.12006175518035889, 0.6415802240371704, 0.073117196559906, -0.11348966509103775, 0.28123778104782104, 0.17833222448825836, 0.08465822041034698, 0.16712597012519836, -0.2680830657482147, 0.5269069075584412, -0.4405931830406189, 0.22626620531082153, 0.2695978879928589, 0.2480337917804718, -0.08705427497625351, -0.23788052797317505, -0.3068891167640686, 0.01828654855489731, 0.18291908502578735, -0.1315459907054901, 0.1713322252035141, -0.2782474756240845, 0.09978482127189636, -0.13633181154727936, -0.2782749831676483, -0.14108845591545105, -0.11640837788581848, 0.16878899931907654, 0.11623476445674896, -0.14980363845825195, -0.12809377908706665, 0.14638575911521912, -0.07056912779808044, 0.34163281321525574, -0.05696205049753189, 0.010672159492969513, -0.008622883819043636, -0.3869488537311554, 0.035313211381435394, 0.448273241519928, 0.22290131449699402, 0.39475828409194946, 0.4531819224357605, 0.2291695922613144, 0.10653681308031082, -0.11521217972040176, 0.11109688878059387, -0.06739693880081177, 0.2619011700153351, -0.02584899216890335, 0.12810400128364563, -0.07435201108455658, 0.5345590114593506, -0.03741805627942085, -0.050971873104572296, -0.19830934703350067, 0.08626656979322433, -0.020659539848566055, -0.11747924238443375, 0.20282544195652008, -0.18809212744235992, -0.4508413076400757, 0.176004558801651, -0.18935421109199524, -0.06659422069787979, -0.023237790912389755, 0.5726940631866455, -0.10125492513179779, -0.057582877576351166, 0.035894446074962616, 0.251459538936615, -0.19391965866088867, 0.042397841811180115, -0.1058884784579277, -0.2531401216983795, -0.11845380067825317, 0.04888531565666199, 0.3383675217628479, 0.06631037592887878, 0.44415831565856934, -0.20699526369571686, 0.10212156176567078, -0.08384676277637482, 0.4557325541973114, -0.28016000986099243, 0.18915671110153198, 0.3523802161216736, -0.008338527753949165, -0.13885167241096497, -0.054291676729917526, -0.03041316382586956, -0.29760757088661194, 0.24999555945396423, -0.07412806898355484, -0.13487493991851807, -0.010198807343840599, 0.22491121292114258, -0.081453338265419, -0.05274134874343872, 0.2666454315185547, 0.5390653610229492, 0.13671784102916718, -0.11844652891159058, -0.007650941610336304, -0.0343371257185936, 0.041338685899972916, -0.16028912365436554, 0.3725060820579529, 0.36126166582107544, -0.38075512647628784, -0.1864958107471466, 0.031248006969690323, 0.06443929672241211, 0.10934818536043167, 0.06301417946815491, -0.0052247499115765095, 0.6728090643882751, 0.0062148310244083405, 0.15682865679264069, -0.08247051388025284, -0.09330663084983826, -0.18830934166908264, 0.07943832129240036, 0.025993555784225464, 0.151847243309021, 0.1931956708431244, 0.09188638627529144, 0.14544296264648438, -0.13333912193775177, 0.14057868719100952, 0.18295502662658691, -0.3506658673286438, -0.03907914459705353, -0.27505820989608765, -0.4001103937625885, 0.23031456768512726, 0.5738481879234314, 0.05592697486281395, -0.2610510289669037, 0.022941403090953827, -0.16611316800117493, -0.06653668731451035, -0.21053072810173035, 0.017196061089634895, 0.10909305512905121, 0.176365926861763, -0.06426526606082916, 0.14371956884860992, -0.062066491693258286, -0.1469879448413849, 0.057777538895606995, 0.021219369024038315, 0.23445799946784973, 0.06041096895933151, -0.1318698525428772, -0.45771679282188416, -0.05337127298116684, -0.40479403734207153, -0.4547331929206848, 0.16512906551361084, 0.017981085926294327, -0.17947456240653992, -0.18765315413475037, -0.2040046602487564, 0.2931961119174957, -0.39004337787628174, -0.22731634974479675, -0.29609227180480957, -0.15737757086753845, -0.36015400290489197, -0.01566549763083458, 0.23369315266609192, 0.23477813601493835, -0.07713761180639267, 0.09636440128087997, -0.006069617345929146, 0.04994497075676918, -0.09062658995389938, -0.02366778999567032, 0.34039610624313354, 0.3203577399253845, -0.06910581141710281, 0.013042081147432327, 0.30656298995018005, 0.11789879202842712, 0.03539351001381874, -0.2747989892959595, 0.0327882394194603, 0.19306962192058563, 0.000025499612092971802, 0.4013596177101135, 0.05026574432849884, -0.26240235567092896, 0.1898116171360016, 0.07062888145446777, -0.14404869079589844, 0.17281951010227203, 0.3667448163032532, -0.12181444466114044, 0.042061883956193924, -0.09882783889770508, -0.14540094137191772, 0.5352048277854919, 0.5328733325004578, 0.047530267387628555, 0.0417536124587059, 0.19174784421920776, -0.0054930225014686584, -0.11232402175664902, 0.001637360081076622, 0.17768071591854095, 0.3400036692619324, 0.3276679515838623, -0.045326974242925644, 0.07212550938129425, 0.09279658645391464, -0.27239230275154114, 0.027168072760105133, 0.13312038779258728, -0.012924829497933388, 0.23853683471679688, 0.023081300780177116, 0.02402529865503311, 0.0009895674884319305, -0.1358364224433899, -0.09153110533952713, 0.045142143964767456, -0.49379175901412964, 0.06459532678127289, 0.29191192984580994, 0.09954535216093063, 0.11441699415445328, -0.04886361211538315, 0.02170632593333721, -0.333572655916214, 0.27730756998062134, -0.008200030773878098, -0.12604035437107086, 0.36752280592918396, 0.059116605669260025, 0.6069640517234802, -0.05170340836048126, -0.12928453087806702, 0.05583501607179642, -0.141010120511055, -0.1000218465924263, 0.2187606692314148, 0.059275247156620026, -0.026645755395293236, 0.43795591592788696, -0.47655364871025085, -0.016730915755033493, -0.2245868444442749, -0.25049614906311035, 0.04497278109192848, -0.2950263023376465, 0.5556793212890625, -0.01943117380142212, 0.3935157060623169, -0.1744123250246048, -0.44891634583473206, 0.15404559671878815, 0.09487667679786682, -0.2663339376449585, -0.10921147465705872, -0.10183793306350708, -0.190132275223732, -0.17025616765022278, -0.6790179014205933, -0.09201183915138245, -0.4018356502056122, 0.2511565685272217, 0.23520256578922272, 0.4087030291557312, 0.25569525361061096, 0.16895756125450134, 0.07118066400289536, -0.12179364264011383, 0.22158832848072052, -0.16205143928527832, -0.5668569207191467, 0.2799704074859619, -0.13655634224414825, -0.21344830095767975, 0.0896168053150177, -0.06807594001293182, 0.38659989833831787, -0.07581255584955215, -0.2701120972633362, -0.25728633999824524, -0.0034593455493450165, 0.1851038783788681, -0.23394331336021423, 0.2616639733314514, 0.13931995630264282, 0.1060638353228569, -0.2423735409975052, -0.02819223888218403, -0.35825514793395996, 0.4432131350040436, -0.08436781913042068, 0.5695801377296448, -0.2829831540584564, -0.025324173271656036, -0.08104671537876129, 0.7003199458122253, 0.42332062125205994, 0.31327715516090393, 0.20637573301792145, 0.2165951430797577, 0.27611324191093445, -0.2087225317955017, -0.3570936322212219, 0.41310369968414307, 0.05071372538805008, -0.11908506602048874, 0.3564811944961548, 0.25026965141296387, -0.04292100667953491, -0.06900115311145782, -0.29351896047592163, -0.4035733938217163, -0.305067777633667, 0.3127705752849579, -0.3115622103214264, 0.34522169828414917, -0.2904945909976959, -0.0021758228540420532, -0.3312067687511444, -0.0000273287296295166, 0.0850442498922348, 0.030845515429973602, -0.046977393329143524, -0.09519819915294647, -0.07529211789369583, -0.12134133279323578, -0.45462727546691895, 0.26921045780181885, -0.1411500871181488, -0.14085598289966583, -0.4133974313735962, -0.10618924349546432, -0.017772570252418518, -0.03881401941180229, 0.6167894005775452, -0.01435929350554943, -0.12541529536247253, 0.19199493527412415, 0.2691849172115326, -0.14451946318149567, -0.07733563333749771, -0.12386511266231537, 0.20378459990024567, 0.09603734314441681, -0.11505486071109772, -0.4283052682876587, 0.06488741934299469, 0.2143644392490387, 0.0070459190756082535, -0.07631067931652069, -0.028268348425626755, -0.284140408039093, -0.5641161203384399, -0.43761274218559265, 0.06735368072986603, 0.15023672580718994, -0.033786576241254807, -0.10294435173273087, -0.2586818039417267, 0.24786162376403809, 0.055186375975608826, 0.26238298416137695, 0.14521388709545135, -0.05905119329690933, 0.09384821355342865, 0.23599529266357422, 0.08910521864891052, -0.3746374845504761, 0.3084161877632141, 0.33692696690559387, -0.18843260407447815, -0.0911320149898529, -0.018125910311937332, -0.2218058556318283, 0.10532797873020172, 0.3813057541847229, -0.024367939680814743, 0.012870341539382935, 0.2657897472381592, 0.325229287147522, -0.07771288603544235, 0.13152340054512024, 0.2000143975019455, 0.026660047471523285, -0.1422409564256668, -0.3049890697002411, -0.022703208029270172, -0.1682760864496231, -0.10369604825973511, 0.04808375611901283, 0.07637923210859299, -0.043479710817337036, 0.3537324070930481, -0.051012881100177765, 1.120378017425537, -0.1791185438632965, -0.03234095498919487, 0.1154043972492218, 0.07435387372970581, -0.18219658732414246, -0.427864134311676, -0.005495486781001091, -0.11087021231651306, -0.18925295770168304, 0.061978526413440704, -0.10568052530288696, 0.12095397710800171, 0.08734829723834991, -0.4450508952140808, 0.1790638417005539, -0.06353717297315598, 0.13715477287769318, 0.2332584261894226, 0.12099432945251465, -0.3670595586299896, -0.1980503648519516, -0.1767919361591339, 0.2182963639497757, -0.2397587150335312, -0.09288768470287323, -0.05009011924266815, -0.16463974118232727, -0.23908203840255737, 0.023601748049259186, -0.16868945956230164, 0.13480767607688904, -0.527864933013916, -0.16025860607624054, 0.0030622147023677826, 0.2233031541109085, 0.18142880499362946, -0.16368526220321655, 0.28876668214797974, 0.1856122761964798, -0.41499754786491394, 0.18454913794994354, -0.04897502809762955, -0.11624809354543686, 0.08461085706949234, -0.21365873515605927, 0.47260433435440063, -0.281038373708725, -0.5338497757911682, -0.09725072234869003, -0.08857175707817078, 0.02791440486907959, -0.1569128781557083, -0.059869393706321716, 0.7021082639694214, -0.38485413789749146, -0.018107030540704727, -0.03484951704740524, -0.08507025241851807, -0.29376280307769775, 0.18450458347797394, 0.21804389357566833, -0.042303118854761124, 0.4177508056163788, 0.07977140694856644, -0.07209235429763794, -0.10907036066055298, -0.17784112691879272, -0.03337889909744263, 0.09056058526039124, 0.5281937718391418, 0.02088533714413643, -0.20372137427330017, -0.33129724860191345, 0.07873754948377609, -0.009113509207963943, -0.07537159323692322, 0.11884590983390808, 0.13262008130550385, -0.3082738518714905, -0.1542542278766632, 0.4765201508998871, 0.14759060740470886, -0.24805662035942078, -0.12700650095939636, -0.31534579396247864, -0.3048076927661896, 0.38012391328811646, -0.10134053230285645, 0.11653642356395721, 0.04911361634731293, 0.04163794219493866, 0.2119487226009369, 0.5526018738746643, -0.4385964274406433, -0.06994980573654175, -0.6435147523880005, 0.30246996879577637, -0.26079636812210083, -0.24931272864341736, 0.23672392964363098, -0.04202308878302574, 0.0694182738661766, -0.2770385146141052, -0.45904669165611267, -0.29964226484298706, 0.032043490558862686, 0.1224384754896164, 0.03979657217860222, 0.12624672055244446, -0.026745684444904327, -0.10570777952671051, -0.18835920095443726, -0.160751610994339, 0.2601446807384491, -0.16879773139953613, -0.049456916749477386, 0.05575809255242348, 0.08941332995891571, 0.11928315460681915, 0.05982525646686554, -0.15282656252384186, -0.09587717056274414, 0.1538885086774826, 0.14030013978481293, -0.12009859085083008, -0.12691549956798553, -0.14321807026863098, 0.2532643973827362, 0.45312750339508057, 0.4339439868927002, -0.002063654363155365, 0.27295732498168945, 0.015344474464654922, 0.03020809218287468, -0.13456633687019348, -0.03839802369475365, 0.1852068305015564, -0.2301468700170517, 0.049070775508880615, -0.05676368623971939, 0.23631572723388672, -0.25873303413391113, 0.1730939745903015, 0.21372784674167633, -0.4358530342578888, 0.08236673474311829, 0.25673943758010864, 0.2598218619823456, -0.19750869274139404, 0.4141598343849182, 0.1314871907234192, 0.016157671809196472, -0.19880186021327972, 0.009087597951292992, 0.275913268327713, -0.16507960855960846, 0.07400024682283401, 0.2738746702671051, -0.07801729440689087, 0.034637451171875, 0.14338481426239014, -0.020110905170440674, 0.5363032817840576, 0.08296337723731995, 0.2759043872356415, 0.10220395028591156, -0.29026177525520325, 0.44913917779922485, -0.08440063893795013, 0.00879862904548645, -0.13113799691200256, 0.17190364003181458, 0.4040306806564331, 0.12460300326347351, -0.08357737958431244, -0.07971059530973434, 0.08796732127666473, -0.0983026996254921, -0.07046781480312347, 0.013570379465818405, -0.1983807384967804, -0.2677544951438904, -0.34515300393104553, 0.019615082070231438, -0.36099642515182495, 0.05839644372463226, -0.08266450464725494, -0.20081226527690887, -0.15572699904441833, 0.2711361050605774, -0.07963276654481888, 0.41000115871429443, -0.1529630422592163, 0.2302468866109848, 0.22004017233848572, 0.047022297978401184, 0.03414735198020935, 0.3635377287864685, 0.5642789006233215, 0.20486225187778473, -0.18244746327400208, 0.1557255983352661, 0.03659740835428238, -0.19994351267814636, 0.02968701720237732, 0.15514390170574188, 0.2599632740020752, 0.07037056237459183, 0.24389837682247162, 0.12670405209064484, -0.243727445602417, -0.1644412875175476, 0.11599147319793701, -0.09255225956439972, 0.00148759875446558, 0.4076169431209564, -0.08533062040805817, -0.2926088869571686, -0.25423529744148254, 0.043030690401792526, -0.6159965395927429, 0.008599712513387203, 0.2240389585494995, -0.3674706220626831, 0.03365938737988472, -0.3482198119163513, 0.1158321350812912, -0.1283901184797287, 0.5397456288337708, 0.1364627331495285, 0.1989559531211853, -0.3784862756729126, 0.08780860900878906, -0.14006981253623962, -0.105940081179142, 0.10902684926986694, 0.2235836386680603, 0.050285760313272476, 0.16730445623397827, 0.07515513151884079, 0.2539524435997009, -0.021693870425224304, -0.15877096354961395, 0.18146319687366486, 0.027742737904191017, -0.4719638526439667, 0.030096806585788727, 0.01869707554578781, 0.1896851360797882, 0.1039084941148758, -0.2098522186279297, 0.1060166135430336, -0.24933362007141113, 0.11018779128789902, 0.1820857673883438, -0.220962792634964, 0.38534361124038696, -0.023231737315654755, 0.41347578167915344, 0.09613591432571411, 0.10262186825275421, -0.09080496430397034, -0.24734549224376678, -0.048249971121549606, 0.05498788133263588, -0.07070060074329376, 0.12647280097007751, 0.3211442530155182, 0.39781200885772705, -0.15099939703941345, -0.25496843457221985, 0.0608244426548481, -0.0627649798989296, 0.0026080049574375153, -0.31717658042907715, -0.20740355551242828, 0.07093938440084457, 0.19334542751312256, 0.18770228326320648, -0.07589972764253616, -0.019248254597187042, -0.04143921285867691, 0.09855148941278458, -0.46375328302383423, -0.21423669159412384, 0.5361523628234863, 0.5260552763938904, -0.10252033174037933, 0.040991369634866714, 0.365805983543396, -0.06380573660135269, -0.0636739507317543, -1.0345220565795898, 0.22662311792373657, 0.23011597990989685, -0.06974487006664276, 0.0020483285188674927, 0.6340030431747437, -0.2324448972940445, 0.002718225121498108, -0.024306127801537514, -0.009449891746044159, -0.1994035542011261, 0.011299530044198036, -0.3053025007247925, -0.22920124232769012 ]
https://github.com/huggingface/datasets/pull/2053
Add bAbI QA tasks
Thanks for the changes ! > Should I remove the 160 configurations? Is it too much? Yea 160 configuration is a lot. Maybe this dataset can work with parameters `type` and `task_no` ? You can just remove the configuration in BUILDER_CONFIGS to only keep a few ones. Also feel free to add an example in the dataset card of how to load the other configurations ``` load_dataset("babi_qa", type="hn", task_no="qa1") ``` for example, and with a list of the possible combinations. > Can you also check the task category? I'm not sure if there is an appropriate tag for the same. It looks appropriate, thanks :)
- **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass.
105
text: Add bAbI QA tasks - **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass. Thanks for the changes ! > Should I remove the 160 configurations? Is it too much? Yea 160 configuration is a lot. Maybe this dataset can work with parameters `type` and `task_no` ? You can just remove the configuration in BUILDER_CONFIGS to only keep a few ones. Also feel free to add an example in the dataset card of how to load the other configurations ``` load_dataset("babi_qa", type="hn", task_no="qa1") ``` for example, and with a list of the possible combinations. > Can you also check the task category? I'm not sure if there is an appropriate tag for the same. It looks appropriate, thanks :)
[ -0.14379265904426575, -0.23776546120643616, -0.16119952499866486, -0.10497778654098511, 0.12279532849788666, 0.12302198261022568, 0.24087852239608765, 0.38729149103164673, 0.33260080218315125, 0.13559813797473907, 0.023749537765979767, 0.08510088175535202, 0.07430587708950043, 0.6599835157394409, -0.05204492807388306, 0.06157059222459793, 0.03615454584360123, -0.005362212657928467, 0.3594759702682495, 0.06941306591033936, -0.209721177816391, 0.16588880121707916, -0.020377419888973236, -0.09209725260734558, -0.03020874597132206, -0.36778944730758667, -0.041796255856752396, 0.06802404671907425, -0.11647395044565201, -0.2571457028388977, -0.12896180152893066, 0.30620983242988586, -0.19204223155975342, 0.20714223384857178, -0.0001089174475055188, -0.1480274498462677, -0.01918463408946991, -0.16065159440040588, -0.3841131627559662, -0.09465651214122772, 0.09182516485452652, -0.24536670744419098, -0.0800584927201271, -0.041864823549985886, -0.06875507533550262, -0.242772176861763, 0.15676090121269226, 0.05371803790330887, 0.42917340993881226, 0.40802156925201416, 0.2057267129421234, -0.028928546234965324, 0.1637069135904312, -0.2386111468076706, 0.2202478051185608, 0.19586285948753357, -0.3181277811527252, 0.12006175518035889, 0.6415802240371704, 0.073117196559906, -0.11348966509103775, 0.28123778104782104, 0.17833222448825836, 0.08465822041034698, 0.16712597012519836, -0.2680830657482147, 0.5269069075584412, -0.4405931830406189, 0.22626620531082153, 0.2695978879928589, 0.2480337917804718, -0.08705427497625351, -0.23788052797317505, -0.3068891167640686, 0.01828654855489731, 0.18291908502578735, -0.1315459907054901, 0.1713322252035141, -0.2782474756240845, 0.09978482127189636, -0.13633181154727936, -0.2782749831676483, -0.14108845591545105, -0.11640837788581848, 0.16878899931907654, 0.11623476445674896, -0.14980363845825195, -0.12809377908706665, 0.14638575911521912, -0.07056912779808044, 0.34163281321525574, -0.05696205049753189, 0.010672159492969513, -0.008622883819043636, -0.3869488537311554, 0.035313211381435394, 0.448273241519928, 0.22290131449699402, 0.39475828409194946, 0.4531819224357605, 0.2291695922613144, 0.10653681308031082, -0.11521217972040176, 0.11109688878059387, -0.06739693880081177, 0.2619011700153351, -0.02584899216890335, 0.12810400128364563, -0.07435201108455658, 0.5345590114593506, -0.03741805627942085, -0.050971873104572296, -0.19830934703350067, 0.08626656979322433, -0.020659539848566055, -0.11747924238443375, 0.20282544195652008, -0.18809212744235992, -0.4508413076400757, 0.176004558801651, -0.18935421109199524, -0.06659422069787979, -0.023237790912389755, 0.5726940631866455, -0.10125492513179779, -0.057582877576351166, 0.035894446074962616, 0.251459538936615, -0.19391965866088867, 0.042397841811180115, -0.1058884784579277, -0.2531401216983795, -0.11845380067825317, 0.04888531565666199, 0.3383675217628479, 0.06631037592887878, 0.44415831565856934, -0.20699526369571686, 0.10212156176567078, -0.08384676277637482, 0.4557325541973114, -0.28016000986099243, 0.18915671110153198, 0.3523802161216736, -0.008338527753949165, -0.13885167241096497, -0.054291676729917526, -0.03041316382586956, -0.29760757088661194, 0.24999555945396423, -0.07412806898355484, -0.13487493991851807, -0.010198807343840599, 0.22491121292114258, -0.081453338265419, -0.05274134874343872, 0.2666454315185547, 0.5390653610229492, 0.13671784102916718, -0.11844652891159058, -0.007650941610336304, -0.0343371257185936, 0.041338685899972916, -0.16028912365436554, 0.3725060820579529, 0.36126166582107544, -0.38075512647628784, -0.1864958107471466, 0.031248006969690323, 0.06443929672241211, 0.10934818536043167, 0.06301417946815491, -0.0052247499115765095, 0.6728090643882751, 0.0062148310244083405, 0.15682865679264069, -0.08247051388025284, -0.09330663084983826, -0.18830934166908264, 0.07943832129240036, 0.025993555784225464, 0.151847243309021, 0.1931956708431244, 0.09188638627529144, 0.14544296264648438, -0.13333912193775177, 0.14057868719100952, 0.18295502662658691, -0.3506658673286438, -0.03907914459705353, -0.27505820989608765, -0.4001103937625885, 0.23031456768512726, 0.5738481879234314, 0.05592697486281395, -0.2610510289669037, 0.022941403090953827, -0.16611316800117493, -0.06653668731451035, -0.21053072810173035, 0.017196061089634895, 0.10909305512905121, 0.176365926861763, -0.06426526606082916, 0.14371956884860992, -0.062066491693258286, -0.1469879448413849, 0.057777538895606995, 0.021219369024038315, 0.23445799946784973, 0.06041096895933151, -0.1318698525428772, -0.45771679282188416, -0.05337127298116684, -0.40479403734207153, -0.4547331929206848, 0.16512906551361084, 0.017981085926294327, -0.17947456240653992, -0.18765315413475037, -0.2040046602487564, 0.2931961119174957, -0.39004337787628174, -0.22731634974479675, -0.29609227180480957, -0.15737757086753845, -0.36015400290489197, -0.01566549763083458, 0.23369315266609192, 0.23477813601493835, -0.07713761180639267, 0.09636440128087997, -0.006069617345929146, 0.04994497075676918, -0.09062658995389938, -0.02366778999567032, 0.34039610624313354, 0.3203577399253845, -0.06910581141710281, 0.013042081147432327, 0.30656298995018005, 0.11789879202842712, 0.03539351001381874, -0.2747989892959595, 0.0327882394194603, 0.19306962192058563, 0.000025499612092971802, 0.4013596177101135, 0.05026574432849884, -0.26240235567092896, 0.1898116171360016, 0.07062888145446777, -0.14404869079589844, 0.17281951010227203, 0.3667448163032532, -0.12181444466114044, 0.042061883956193924, -0.09882783889770508, -0.14540094137191772, 0.5352048277854919, 0.5328733325004578, 0.047530267387628555, 0.0417536124587059, 0.19174784421920776, -0.0054930225014686584, -0.11232402175664902, 0.001637360081076622, 0.17768071591854095, 0.3400036692619324, 0.3276679515838623, -0.045326974242925644, 0.07212550938129425, 0.09279658645391464, -0.27239230275154114, 0.027168072760105133, 0.13312038779258728, -0.012924829497933388, 0.23853683471679688, 0.023081300780177116, 0.02402529865503311, 0.0009895674884319305, -0.1358364224433899, -0.09153110533952713, 0.045142143964767456, -0.49379175901412964, 0.06459532678127289, 0.29191192984580994, 0.09954535216093063, 0.11441699415445328, -0.04886361211538315, 0.02170632593333721, -0.333572655916214, 0.27730756998062134, -0.008200030773878098, -0.12604035437107086, 0.36752280592918396, 0.059116605669260025, 0.6069640517234802, -0.05170340836048126, -0.12928453087806702, 0.05583501607179642, -0.141010120511055, -0.1000218465924263, 0.2187606692314148, 0.059275247156620026, -0.026645755395293236, 0.43795591592788696, -0.47655364871025085, -0.016730915755033493, -0.2245868444442749, -0.25049614906311035, 0.04497278109192848, -0.2950263023376465, 0.5556793212890625, -0.01943117380142212, 0.3935157060623169, -0.1744123250246048, -0.44891634583473206, 0.15404559671878815, 0.09487667679786682, -0.2663339376449585, -0.10921147465705872, -0.10183793306350708, -0.190132275223732, -0.17025616765022278, -0.6790179014205933, -0.09201183915138245, -0.4018356502056122, 0.2511565685272217, 0.23520256578922272, 0.4087030291557312, 0.25569525361061096, 0.16895756125450134, 0.07118066400289536, -0.12179364264011383, 0.22158832848072052, -0.16205143928527832, -0.5668569207191467, 0.2799704074859619, -0.13655634224414825, -0.21344830095767975, 0.0896168053150177, -0.06807594001293182, 0.38659989833831787, -0.07581255584955215, -0.2701120972633362, -0.25728633999824524, -0.0034593455493450165, 0.1851038783788681, -0.23394331336021423, 0.2616639733314514, 0.13931995630264282, 0.1060638353228569, -0.2423735409975052, -0.02819223888218403, -0.35825514793395996, 0.4432131350040436, -0.08436781913042068, 0.5695801377296448, -0.2829831540584564, -0.025324173271656036, -0.08104671537876129, 0.7003199458122253, 0.42332062125205994, 0.31327715516090393, 0.20637573301792145, 0.2165951430797577, 0.27611324191093445, -0.2087225317955017, -0.3570936322212219, 0.41310369968414307, 0.05071372538805008, -0.11908506602048874, 0.3564811944961548, 0.25026965141296387, -0.04292100667953491, -0.06900115311145782, -0.29351896047592163, -0.4035733938217163, -0.305067777633667, 0.3127705752849579, -0.3115622103214264, 0.34522169828414917, -0.2904945909976959, -0.0021758228540420532, -0.3312067687511444, -0.0000273287296295166, 0.0850442498922348, 0.030845515429973602, -0.046977393329143524, -0.09519819915294647, -0.07529211789369583, -0.12134133279323578, -0.45462727546691895, 0.26921045780181885, -0.1411500871181488, -0.14085598289966583, -0.4133974313735962, -0.10618924349546432, -0.017772570252418518, -0.03881401941180229, 0.6167894005775452, -0.01435929350554943, -0.12541529536247253, 0.19199493527412415, 0.2691849172115326, -0.14451946318149567, -0.07733563333749771, -0.12386511266231537, 0.20378459990024567, 0.09603734314441681, -0.11505486071109772, -0.4283052682876587, 0.06488741934299469, 0.2143644392490387, 0.0070459190756082535, -0.07631067931652069, -0.028268348425626755, -0.284140408039093, -0.5641161203384399, -0.43761274218559265, 0.06735368072986603, 0.15023672580718994, -0.033786576241254807, -0.10294435173273087, -0.2586818039417267, 0.24786162376403809, 0.055186375975608826, 0.26238298416137695, 0.14521388709545135, -0.05905119329690933, 0.09384821355342865, 0.23599529266357422, 0.08910521864891052, -0.3746374845504761, 0.3084161877632141, 0.33692696690559387, -0.18843260407447815, -0.0911320149898529, -0.018125910311937332, -0.2218058556318283, 0.10532797873020172, 0.3813057541847229, -0.024367939680814743, 0.012870341539382935, 0.2657897472381592, 0.325229287147522, -0.07771288603544235, 0.13152340054512024, 0.2000143975019455, 0.026660047471523285, -0.1422409564256668, -0.3049890697002411, -0.022703208029270172, -0.1682760864496231, -0.10369604825973511, 0.04808375611901283, 0.07637923210859299, -0.043479710817337036, 0.3537324070930481, -0.051012881100177765, 1.120378017425537, -0.1791185438632965, -0.03234095498919487, 0.1154043972492218, 0.07435387372970581, -0.18219658732414246, -0.427864134311676, -0.005495486781001091, -0.11087021231651306, -0.18925295770168304, 0.061978526413440704, -0.10568052530288696, 0.12095397710800171, 0.08734829723834991, -0.4450508952140808, 0.1790638417005539, -0.06353717297315598, 0.13715477287769318, 0.2332584261894226, 0.12099432945251465, -0.3670595586299896, -0.1980503648519516, -0.1767919361591339, 0.2182963639497757, -0.2397587150335312, -0.09288768470287323, -0.05009011924266815, -0.16463974118232727, -0.23908203840255737, 0.023601748049259186, -0.16868945956230164, 0.13480767607688904, -0.527864933013916, -0.16025860607624054, 0.0030622147023677826, 0.2233031541109085, 0.18142880499362946, -0.16368526220321655, 0.28876668214797974, 0.1856122761964798, -0.41499754786491394, 0.18454913794994354, -0.04897502809762955, -0.11624809354543686, 0.08461085706949234, -0.21365873515605927, 0.47260433435440063, -0.281038373708725, -0.5338497757911682, -0.09725072234869003, -0.08857175707817078, 0.02791440486907959, -0.1569128781557083, -0.059869393706321716, 0.7021082639694214, -0.38485413789749146, -0.018107030540704727, -0.03484951704740524, -0.08507025241851807, -0.29376280307769775, 0.18450458347797394, 0.21804389357566833, -0.042303118854761124, 0.4177508056163788, 0.07977140694856644, -0.07209235429763794, -0.10907036066055298, -0.17784112691879272, -0.03337889909744263, 0.09056058526039124, 0.5281937718391418, 0.02088533714413643, -0.20372137427330017, -0.33129724860191345, 0.07873754948377609, -0.009113509207963943, -0.07537159323692322, 0.11884590983390808, 0.13262008130550385, -0.3082738518714905, -0.1542542278766632, 0.4765201508998871, 0.14759060740470886, -0.24805662035942078, -0.12700650095939636, -0.31534579396247864, -0.3048076927661896, 0.38012391328811646, -0.10134053230285645, 0.11653642356395721, 0.04911361634731293, 0.04163794219493866, 0.2119487226009369, 0.5526018738746643, -0.4385964274406433, -0.06994980573654175, -0.6435147523880005, 0.30246996879577637, -0.26079636812210083, -0.24931272864341736, 0.23672392964363098, -0.04202308878302574, 0.0694182738661766, -0.2770385146141052, -0.45904669165611267, -0.29964226484298706, 0.032043490558862686, 0.1224384754896164, 0.03979657217860222, 0.12624672055244446, -0.026745684444904327, -0.10570777952671051, -0.18835920095443726, -0.160751610994339, 0.2601446807384491, -0.16879773139953613, -0.049456916749477386, 0.05575809255242348, 0.08941332995891571, 0.11928315460681915, 0.05982525646686554, -0.15282656252384186, -0.09587717056274414, 0.1538885086774826, 0.14030013978481293, -0.12009859085083008, -0.12691549956798553, -0.14321807026863098, 0.2532643973827362, 0.45312750339508057, 0.4339439868927002, -0.002063654363155365, 0.27295732498168945, 0.015344474464654922, 0.03020809218287468, -0.13456633687019348, -0.03839802369475365, 0.1852068305015564, -0.2301468700170517, 0.049070775508880615, -0.05676368623971939, 0.23631572723388672, -0.25873303413391113, 0.1730939745903015, 0.21372784674167633, -0.4358530342578888, 0.08236673474311829, 0.25673943758010864, 0.2598218619823456, -0.19750869274139404, 0.4141598343849182, 0.1314871907234192, 0.016157671809196472, -0.19880186021327972, 0.009087597951292992, 0.275913268327713, -0.16507960855960846, 0.07400024682283401, 0.2738746702671051, -0.07801729440689087, 0.034637451171875, 0.14338481426239014, -0.020110905170440674, 0.5363032817840576, 0.08296337723731995, 0.2759043872356415, 0.10220395028591156, -0.29026177525520325, 0.44913917779922485, -0.08440063893795013, 0.00879862904548645, -0.13113799691200256, 0.17190364003181458, 0.4040306806564331, 0.12460300326347351, -0.08357737958431244, -0.07971059530973434, 0.08796732127666473, -0.0983026996254921, -0.07046781480312347, 0.013570379465818405, -0.1983807384967804, -0.2677544951438904, -0.34515300393104553, 0.019615082070231438, -0.36099642515182495, 0.05839644372463226, -0.08266450464725494, -0.20081226527690887, -0.15572699904441833, 0.2711361050605774, -0.07963276654481888, 0.41000115871429443, -0.1529630422592163, 0.2302468866109848, 0.22004017233848572, 0.047022297978401184, 0.03414735198020935, 0.3635377287864685, 0.5642789006233215, 0.20486225187778473, -0.18244746327400208, 0.1557255983352661, 0.03659740835428238, -0.19994351267814636, 0.02968701720237732, 0.15514390170574188, 0.2599632740020752, 0.07037056237459183, 0.24389837682247162, 0.12670405209064484, -0.243727445602417, -0.1644412875175476, 0.11599147319793701, -0.09255225956439972, 0.00148759875446558, 0.4076169431209564, -0.08533062040805817, -0.2926088869571686, -0.25423529744148254, 0.043030690401792526, -0.6159965395927429, 0.008599712513387203, 0.2240389585494995, -0.3674706220626831, 0.03365938737988472, -0.3482198119163513, 0.1158321350812912, -0.1283901184797287, 0.5397456288337708, 0.1364627331495285, 0.1989559531211853, -0.3784862756729126, 0.08780860900878906, -0.14006981253623962, -0.105940081179142, 0.10902684926986694, 0.2235836386680603, 0.050285760313272476, 0.16730445623397827, 0.07515513151884079, 0.2539524435997009, -0.021693870425224304, -0.15877096354961395, 0.18146319687366486, 0.027742737904191017, -0.4719638526439667, 0.030096806585788727, 0.01869707554578781, 0.1896851360797882, 0.1039084941148758, -0.2098522186279297, 0.1060166135430336, -0.24933362007141113, 0.11018779128789902, 0.1820857673883438, -0.220962792634964, 0.38534361124038696, -0.023231737315654755, 0.41347578167915344, 0.09613591432571411, 0.10262186825275421, -0.09080496430397034, -0.24734549224376678, -0.048249971121549606, 0.05498788133263588, -0.07070060074329376, 0.12647280097007751, 0.3211442530155182, 0.39781200885772705, -0.15099939703941345, -0.25496843457221985, 0.0608244426548481, -0.0627649798989296, 0.0026080049574375153, -0.31717658042907715, -0.20740355551242828, 0.07093938440084457, 0.19334542751312256, 0.18770228326320648, -0.07589972764253616, -0.019248254597187042, -0.04143921285867691, 0.09855148941278458, -0.46375328302383423, -0.21423669159412384, 0.5361523628234863, 0.5260552763938904, -0.10252033174037933, 0.040991369634866714, 0.365805983543396, -0.06380573660135269, -0.0636739507317543, -1.0345220565795898, 0.22662311792373657, 0.23011597990989685, -0.06974487006664276, 0.0020483285188674927, 0.6340030431747437, -0.2324448972940445, 0.002718225121498108, -0.024306127801537514, -0.009449891746044159, -0.1994035542011261, 0.011299530044198036, -0.3053025007247925, -0.22920124232769012 ]
https://github.com/huggingface/datasets/pull/2053
Add bAbI QA tasks
Hi @lhoestq I'm unable to test it locally using: ```python load_dataset("datasets/babi_qa", type="hn", task_no="qa1") ``` It raises an error: ```python TypeError: __init__() got an unexpected keyword argument 'type' ``` Will this be possible only after merging? Or am I missing something here?
- **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass.
41
text: Add bAbI QA tasks - **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass. Hi @lhoestq I'm unable to test it locally using: ```python load_dataset("datasets/babi_qa", type="hn", task_no="qa1") ``` It raises an error: ```python TypeError: __init__() got an unexpected keyword argument 'type' ``` Will this be possible only after merging? Or am I missing something here?
[ -0.14379265904426575, -0.23776546120643616, -0.16119952499866486, -0.10497778654098511, 0.12279532849788666, 0.12302198261022568, 0.24087852239608765, 0.38729149103164673, 0.33260080218315125, 0.13559813797473907, 0.023749537765979767, 0.08510088175535202, 0.07430587708950043, 0.6599835157394409, -0.05204492807388306, 0.06157059222459793, 0.03615454584360123, -0.005362212657928467, 0.3594759702682495, 0.06941306591033936, -0.209721177816391, 0.16588880121707916, -0.020377419888973236, -0.09209725260734558, -0.03020874597132206, -0.36778944730758667, -0.041796255856752396, 0.06802404671907425, -0.11647395044565201, -0.2571457028388977, -0.12896180152893066, 0.30620983242988586, -0.19204223155975342, 0.20714223384857178, -0.0001089174475055188, -0.1480274498462677, -0.01918463408946991, -0.16065159440040588, -0.3841131627559662, -0.09465651214122772, 0.09182516485452652, -0.24536670744419098, -0.0800584927201271, -0.041864823549985886, -0.06875507533550262, -0.242772176861763, 0.15676090121269226, 0.05371803790330887, 0.42917340993881226, 0.40802156925201416, 0.2057267129421234, -0.028928546234965324, 0.1637069135904312, -0.2386111468076706, 0.2202478051185608, 0.19586285948753357, -0.3181277811527252, 0.12006175518035889, 0.6415802240371704, 0.073117196559906, -0.11348966509103775, 0.28123778104782104, 0.17833222448825836, 0.08465822041034698, 0.16712597012519836, -0.2680830657482147, 0.5269069075584412, -0.4405931830406189, 0.22626620531082153, 0.2695978879928589, 0.2480337917804718, -0.08705427497625351, -0.23788052797317505, -0.3068891167640686, 0.01828654855489731, 0.18291908502578735, -0.1315459907054901, 0.1713322252035141, -0.2782474756240845, 0.09978482127189636, -0.13633181154727936, -0.2782749831676483, -0.14108845591545105, -0.11640837788581848, 0.16878899931907654, 0.11623476445674896, -0.14980363845825195, -0.12809377908706665, 0.14638575911521912, -0.07056912779808044, 0.34163281321525574, -0.05696205049753189, 0.010672159492969513, -0.008622883819043636, -0.3869488537311554, 0.035313211381435394, 0.448273241519928, 0.22290131449699402, 0.39475828409194946, 0.4531819224357605, 0.2291695922613144, 0.10653681308031082, -0.11521217972040176, 0.11109688878059387, -0.06739693880081177, 0.2619011700153351, -0.02584899216890335, 0.12810400128364563, -0.07435201108455658, 0.5345590114593506, -0.03741805627942085, -0.050971873104572296, -0.19830934703350067, 0.08626656979322433, -0.020659539848566055, -0.11747924238443375, 0.20282544195652008, -0.18809212744235992, -0.4508413076400757, 0.176004558801651, -0.18935421109199524, -0.06659422069787979, -0.023237790912389755, 0.5726940631866455, -0.10125492513179779, -0.057582877576351166, 0.035894446074962616, 0.251459538936615, -0.19391965866088867, 0.042397841811180115, -0.1058884784579277, -0.2531401216983795, -0.11845380067825317, 0.04888531565666199, 0.3383675217628479, 0.06631037592887878, 0.44415831565856934, -0.20699526369571686, 0.10212156176567078, -0.08384676277637482, 0.4557325541973114, -0.28016000986099243, 0.18915671110153198, 0.3523802161216736, -0.008338527753949165, -0.13885167241096497, -0.054291676729917526, -0.03041316382586956, -0.29760757088661194, 0.24999555945396423, -0.07412806898355484, -0.13487493991851807, -0.010198807343840599, 0.22491121292114258, -0.081453338265419, -0.05274134874343872, 0.2666454315185547, 0.5390653610229492, 0.13671784102916718, -0.11844652891159058, -0.007650941610336304, -0.0343371257185936, 0.041338685899972916, -0.16028912365436554, 0.3725060820579529, 0.36126166582107544, -0.38075512647628784, -0.1864958107471466, 0.031248006969690323, 0.06443929672241211, 0.10934818536043167, 0.06301417946815491, -0.0052247499115765095, 0.6728090643882751, 0.0062148310244083405, 0.15682865679264069, -0.08247051388025284, -0.09330663084983826, -0.18830934166908264, 0.07943832129240036, 0.025993555784225464, 0.151847243309021, 0.1931956708431244, 0.09188638627529144, 0.14544296264648438, -0.13333912193775177, 0.14057868719100952, 0.18295502662658691, -0.3506658673286438, -0.03907914459705353, -0.27505820989608765, -0.4001103937625885, 0.23031456768512726, 0.5738481879234314, 0.05592697486281395, -0.2610510289669037, 0.022941403090953827, -0.16611316800117493, -0.06653668731451035, -0.21053072810173035, 0.017196061089634895, 0.10909305512905121, 0.176365926861763, -0.06426526606082916, 0.14371956884860992, -0.062066491693258286, -0.1469879448413849, 0.057777538895606995, 0.021219369024038315, 0.23445799946784973, 0.06041096895933151, -0.1318698525428772, -0.45771679282188416, -0.05337127298116684, -0.40479403734207153, -0.4547331929206848, 0.16512906551361084, 0.017981085926294327, -0.17947456240653992, -0.18765315413475037, -0.2040046602487564, 0.2931961119174957, -0.39004337787628174, -0.22731634974479675, -0.29609227180480957, -0.15737757086753845, -0.36015400290489197, -0.01566549763083458, 0.23369315266609192, 0.23477813601493835, -0.07713761180639267, 0.09636440128087997, -0.006069617345929146, 0.04994497075676918, -0.09062658995389938, -0.02366778999567032, 0.34039610624313354, 0.3203577399253845, -0.06910581141710281, 0.013042081147432327, 0.30656298995018005, 0.11789879202842712, 0.03539351001381874, -0.2747989892959595, 0.0327882394194603, 0.19306962192058563, 0.000025499612092971802, 0.4013596177101135, 0.05026574432849884, -0.26240235567092896, 0.1898116171360016, 0.07062888145446777, -0.14404869079589844, 0.17281951010227203, 0.3667448163032532, -0.12181444466114044, 0.042061883956193924, -0.09882783889770508, -0.14540094137191772, 0.5352048277854919, 0.5328733325004578, 0.047530267387628555, 0.0417536124587059, 0.19174784421920776, -0.0054930225014686584, -0.11232402175664902, 0.001637360081076622, 0.17768071591854095, 0.3400036692619324, 0.3276679515838623, -0.045326974242925644, 0.07212550938129425, 0.09279658645391464, -0.27239230275154114, 0.027168072760105133, 0.13312038779258728, -0.012924829497933388, 0.23853683471679688, 0.023081300780177116, 0.02402529865503311, 0.0009895674884319305, -0.1358364224433899, -0.09153110533952713, 0.045142143964767456, -0.49379175901412964, 0.06459532678127289, 0.29191192984580994, 0.09954535216093063, 0.11441699415445328, -0.04886361211538315, 0.02170632593333721, -0.333572655916214, 0.27730756998062134, -0.008200030773878098, -0.12604035437107086, 0.36752280592918396, 0.059116605669260025, 0.6069640517234802, -0.05170340836048126, -0.12928453087806702, 0.05583501607179642, -0.141010120511055, -0.1000218465924263, 0.2187606692314148, 0.059275247156620026, -0.026645755395293236, 0.43795591592788696, -0.47655364871025085, -0.016730915755033493, -0.2245868444442749, -0.25049614906311035, 0.04497278109192848, -0.2950263023376465, 0.5556793212890625, -0.01943117380142212, 0.3935157060623169, -0.1744123250246048, -0.44891634583473206, 0.15404559671878815, 0.09487667679786682, -0.2663339376449585, -0.10921147465705872, -0.10183793306350708, -0.190132275223732, -0.17025616765022278, -0.6790179014205933, -0.09201183915138245, -0.4018356502056122, 0.2511565685272217, 0.23520256578922272, 0.4087030291557312, 0.25569525361061096, 0.16895756125450134, 0.07118066400289536, -0.12179364264011383, 0.22158832848072052, -0.16205143928527832, -0.5668569207191467, 0.2799704074859619, -0.13655634224414825, -0.21344830095767975, 0.0896168053150177, -0.06807594001293182, 0.38659989833831787, -0.07581255584955215, -0.2701120972633362, -0.25728633999824524, -0.0034593455493450165, 0.1851038783788681, -0.23394331336021423, 0.2616639733314514, 0.13931995630264282, 0.1060638353228569, -0.2423735409975052, -0.02819223888218403, -0.35825514793395996, 0.4432131350040436, -0.08436781913042068, 0.5695801377296448, -0.2829831540584564, -0.025324173271656036, -0.08104671537876129, 0.7003199458122253, 0.42332062125205994, 0.31327715516090393, 0.20637573301792145, 0.2165951430797577, 0.27611324191093445, -0.2087225317955017, -0.3570936322212219, 0.41310369968414307, 0.05071372538805008, -0.11908506602048874, 0.3564811944961548, 0.25026965141296387, -0.04292100667953491, -0.06900115311145782, -0.29351896047592163, -0.4035733938217163, -0.305067777633667, 0.3127705752849579, -0.3115622103214264, 0.34522169828414917, -0.2904945909976959, -0.0021758228540420532, -0.3312067687511444, -0.0000273287296295166, 0.0850442498922348, 0.030845515429973602, -0.046977393329143524, -0.09519819915294647, -0.07529211789369583, -0.12134133279323578, -0.45462727546691895, 0.26921045780181885, -0.1411500871181488, -0.14085598289966583, -0.4133974313735962, -0.10618924349546432, -0.017772570252418518, -0.03881401941180229, 0.6167894005775452, -0.01435929350554943, -0.12541529536247253, 0.19199493527412415, 0.2691849172115326, -0.14451946318149567, -0.07733563333749771, -0.12386511266231537, 0.20378459990024567, 0.09603734314441681, -0.11505486071109772, -0.4283052682876587, 0.06488741934299469, 0.2143644392490387, 0.0070459190756082535, -0.07631067931652069, -0.028268348425626755, -0.284140408039093, -0.5641161203384399, -0.43761274218559265, 0.06735368072986603, 0.15023672580718994, -0.033786576241254807, -0.10294435173273087, -0.2586818039417267, 0.24786162376403809, 0.055186375975608826, 0.26238298416137695, 0.14521388709545135, -0.05905119329690933, 0.09384821355342865, 0.23599529266357422, 0.08910521864891052, -0.3746374845504761, 0.3084161877632141, 0.33692696690559387, -0.18843260407447815, -0.0911320149898529, -0.018125910311937332, -0.2218058556318283, 0.10532797873020172, 0.3813057541847229, -0.024367939680814743, 0.012870341539382935, 0.2657897472381592, 0.325229287147522, -0.07771288603544235, 0.13152340054512024, 0.2000143975019455, 0.026660047471523285, -0.1422409564256668, -0.3049890697002411, -0.022703208029270172, -0.1682760864496231, -0.10369604825973511, 0.04808375611901283, 0.07637923210859299, -0.043479710817337036, 0.3537324070930481, -0.051012881100177765, 1.120378017425537, -0.1791185438632965, -0.03234095498919487, 0.1154043972492218, 0.07435387372970581, -0.18219658732414246, -0.427864134311676, -0.005495486781001091, -0.11087021231651306, -0.18925295770168304, 0.061978526413440704, -0.10568052530288696, 0.12095397710800171, 0.08734829723834991, -0.4450508952140808, 0.1790638417005539, -0.06353717297315598, 0.13715477287769318, 0.2332584261894226, 0.12099432945251465, -0.3670595586299896, -0.1980503648519516, -0.1767919361591339, 0.2182963639497757, -0.2397587150335312, -0.09288768470287323, -0.05009011924266815, -0.16463974118232727, -0.23908203840255737, 0.023601748049259186, -0.16868945956230164, 0.13480767607688904, -0.527864933013916, -0.16025860607624054, 0.0030622147023677826, 0.2233031541109085, 0.18142880499362946, -0.16368526220321655, 0.28876668214797974, 0.1856122761964798, -0.41499754786491394, 0.18454913794994354, -0.04897502809762955, -0.11624809354543686, 0.08461085706949234, -0.21365873515605927, 0.47260433435440063, -0.281038373708725, -0.5338497757911682, -0.09725072234869003, -0.08857175707817078, 0.02791440486907959, -0.1569128781557083, -0.059869393706321716, 0.7021082639694214, -0.38485413789749146, -0.018107030540704727, -0.03484951704740524, -0.08507025241851807, -0.29376280307769775, 0.18450458347797394, 0.21804389357566833, -0.042303118854761124, 0.4177508056163788, 0.07977140694856644, -0.07209235429763794, -0.10907036066055298, -0.17784112691879272, -0.03337889909744263, 0.09056058526039124, 0.5281937718391418, 0.02088533714413643, -0.20372137427330017, -0.33129724860191345, 0.07873754948377609, -0.009113509207963943, -0.07537159323692322, 0.11884590983390808, 0.13262008130550385, -0.3082738518714905, -0.1542542278766632, 0.4765201508998871, 0.14759060740470886, -0.24805662035942078, -0.12700650095939636, -0.31534579396247864, -0.3048076927661896, 0.38012391328811646, -0.10134053230285645, 0.11653642356395721, 0.04911361634731293, 0.04163794219493866, 0.2119487226009369, 0.5526018738746643, -0.4385964274406433, -0.06994980573654175, -0.6435147523880005, 0.30246996879577637, -0.26079636812210083, -0.24931272864341736, 0.23672392964363098, -0.04202308878302574, 0.0694182738661766, -0.2770385146141052, -0.45904669165611267, -0.29964226484298706, 0.032043490558862686, 0.1224384754896164, 0.03979657217860222, 0.12624672055244446, -0.026745684444904327, -0.10570777952671051, -0.18835920095443726, -0.160751610994339, 0.2601446807384491, -0.16879773139953613, -0.049456916749477386, 0.05575809255242348, 0.08941332995891571, 0.11928315460681915, 0.05982525646686554, -0.15282656252384186, -0.09587717056274414, 0.1538885086774826, 0.14030013978481293, -0.12009859085083008, -0.12691549956798553, -0.14321807026863098, 0.2532643973827362, 0.45312750339508057, 0.4339439868927002, -0.002063654363155365, 0.27295732498168945, 0.015344474464654922, 0.03020809218287468, -0.13456633687019348, -0.03839802369475365, 0.1852068305015564, -0.2301468700170517, 0.049070775508880615, -0.05676368623971939, 0.23631572723388672, -0.25873303413391113, 0.1730939745903015, 0.21372784674167633, -0.4358530342578888, 0.08236673474311829, 0.25673943758010864, 0.2598218619823456, -0.19750869274139404, 0.4141598343849182, 0.1314871907234192, 0.016157671809196472, -0.19880186021327972, 0.009087597951292992, 0.275913268327713, -0.16507960855960846, 0.07400024682283401, 0.2738746702671051, -0.07801729440689087, 0.034637451171875, 0.14338481426239014, -0.020110905170440674, 0.5363032817840576, 0.08296337723731995, 0.2759043872356415, 0.10220395028591156, -0.29026177525520325, 0.44913917779922485, -0.08440063893795013, 0.00879862904548645, -0.13113799691200256, 0.17190364003181458, 0.4040306806564331, 0.12460300326347351, -0.08357737958431244, -0.07971059530973434, 0.08796732127666473, -0.0983026996254921, -0.07046781480312347, 0.013570379465818405, -0.1983807384967804, -0.2677544951438904, -0.34515300393104553, 0.019615082070231438, -0.36099642515182495, 0.05839644372463226, -0.08266450464725494, -0.20081226527690887, -0.15572699904441833, 0.2711361050605774, -0.07963276654481888, 0.41000115871429443, -0.1529630422592163, 0.2302468866109848, 0.22004017233848572, 0.047022297978401184, 0.03414735198020935, 0.3635377287864685, 0.5642789006233215, 0.20486225187778473, -0.18244746327400208, 0.1557255983352661, 0.03659740835428238, -0.19994351267814636, 0.02968701720237732, 0.15514390170574188, 0.2599632740020752, 0.07037056237459183, 0.24389837682247162, 0.12670405209064484, -0.243727445602417, -0.1644412875175476, 0.11599147319793701, -0.09255225956439972, 0.00148759875446558, 0.4076169431209564, -0.08533062040805817, -0.2926088869571686, -0.25423529744148254, 0.043030690401792526, -0.6159965395927429, 0.008599712513387203, 0.2240389585494995, -0.3674706220626831, 0.03365938737988472, -0.3482198119163513, 0.1158321350812912, -0.1283901184797287, 0.5397456288337708, 0.1364627331495285, 0.1989559531211853, -0.3784862756729126, 0.08780860900878906, -0.14006981253623962, -0.105940081179142, 0.10902684926986694, 0.2235836386680603, 0.050285760313272476, 0.16730445623397827, 0.07515513151884079, 0.2539524435997009, -0.021693870425224304, -0.15877096354961395, 0.18146319687366486, 0.027742737904191017, -0.4719638526439667, 0.030096806585788727, 0.01869707554578781, 0.1896851360797882, 0.1039084941148758, -0.2098522186279297, 0.1060166135430336, -0.24933362007141113, 0.11018779128789902, 0.1820857673883438, -0.220962792634964, 0.38534361124038696, -0.023231737315654755, 0.41347578167915344, 0.09613591432571411, 0.10262186825275421, -0.09080496430397034, -0.24734549224376678, -0.048249971121549606, 0.05498788133263588, -0.07070060074329376, 0.12647280097007751, 0.3211442530155182, 0.39781200885772705, -0.15099939703941345, -0.25496843457221985, 0.0608244426548481, -0.0627649798989296, 0.0026080049574375153, -0.31717658042907715, -0.20740355551242828, 0.07093938440084457, 0.19334542751312256, 0.18770228326320648, -0.07589972764253616, -0.019248254597187042, -0.04143921285867691, 0.09855148941278458, -0.46375328302383423, -0.21423669159412384, 0.5361523628234863, 0.5260552763938904, -0.10252033174037933, 0.040991369634866714, 0.365805983543396, -0.06380573660135269, -0.0636739507317543, -1.0345220565795898, 0.22662311792373657, 0.23011597990989685, -0.06974487006664276, 0.0020483285188674927, 0.6340030431747437, -0.2324448972940445, 0.002718225121498108, -0.024306127801537514, -0.009449891746044159, -0.1994035542011261, 0.011299530044198036, -0.3053025007247925, -0.22920124232769012 ]
https://github.com/huggingface/datasets/pull/2053
Add bAbI QA tasks
Can you try adding this class attribute to `BabiQa` ? ```python BUILDER_CONFIG_CLASS = BabiQaConfig ``` This should fix the TypeError issue you got
- **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass.
23
text: Add bAbI QA tasks - **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass. Can you try adding this class attribute to `BabiQa` ? ```python BUILDER_CONFIG_CLASS = BabiQaConfig ``` This should fix the TypeError issue you got
[ -0.14379265904426575, -0.23776546120643616, -0.16119952499866486, -0.10497778654098511, 0.12279532849788666, 0.12302198261022568, 0.24087852239608765, 0.38729149103164673, 0.33260080218315125, 0.13559813797473907, 0.023749537765979767, 0.08510088175535202, 0.07430587708950043, 0.6599835157394409, -0.05204492807388306, 0.06157059222459793, 0.03615454584360123, -0.005362212657928467, 0.3594759702682495, 0.06941306591033936, -0.209721177816391, 0.16588880121707916, -0.020377419888973236, -0.09209725260734558, -0.03020874597132206, -0.36778944730758667, -0.041796255856752396, 0.06802404671907425, -0.11647395044565201, -0.2571457028388977, -0.12896180152893066, 0.30620983242988586, -0.19204223155975342, 0.20714223384857178, -0.0001089174475055188, -0.1480274498462677, -0.01918463408946991, -0.16065159440040588, -0.3841131627559662, -0.09465651214122772, 0.09182516485452652, -0.24536670744419098, -0.0800584927201271, -0.041864823549985886, -0.06875507533550262, -0.242772176861763, 0.15676090121269226, 0.05371803790330887, 0.42917340993881226, 0.40802156925201416, 0.2057267129421234, -0.028928546234965324, 0.1637069135904312, -0.2386111468076706, 0.2202478051185608, 0.19586285948753357, -0.3181277811527252, 0.12006175518035889, 0.6415802240371704, 0.073117196559906, -0.11348966509103775, 0.28123778104782104, 0.17833222448825836, 0.08465822041034698, 0.16712597012519836, -0.2680830657482147, 0.5269069075584412, -0.4405931830406189, 0.22626620531082153, 0.2695978879928589, 0.2480337917804718, -0.08705427497625351, -0.23788052797317505, -0.3068891167640686, 0.01828654855489731, 0.18291908502578735, -0.1315459907054901, 0.1713322252035141, -0.2782474756240845, 0.09978482127189636, -0.13633181154727936, -0.2782749831676483, -0.14108845591545105, -0.11640837788581848, 0.16878899931907654, 0.11623476445674896, -0.14980363845825195, -0.12809377908706665, 0.14638575911521912, -0.07056912779808044, 0.34163281321525574, -0.05696205049753189, 0.010672159492969513, -0.008622883819043636, -0.3869488537311554, 0.035313211381435394, 0.448273241519928, 0.22290131449699402, 0.39475828409194946, 0.4531819224357605, 0.2291695922613144, 0.10653681308031082, -0.11521217972040176, 0.11109688878059387, -0.06739693880081177, 0.2619011700153351, -0.02584899216890335, 0.12810400128364563, -0.07435201108455658, 0.5345590114593506, -0.03741805627942085, -0.050971873104572296, -0.19830934703350067, 0.08626656979322433, -0.020659539848566055, -0.11747924238443375, 0.20282544195652008, -0.18809212744235992, -0.4508413076400757, 0.176004558801651, -0.18935421109199524, -0.06659422069787979, -0.023237790912389755, 0.5726940631866455, -0.10125492513179779, -0.057582877576351166, 0.035894446074962616, 0.251459538936615, -0.19391965866088867, 0.042397841811180115, -0.1058884784579277, -0.2531401216983795, -0.11845380067825317, 0.04888531565666199, 0.3383675217628479, 0.06631037592887878, 0.44415831565856934, -0.20699526369571686, 0.10212156176567078, -0.08384676277637482, 0.4557325541973114, -0.28016000986099243, 0.18915671110153198, 0.3523802161216736, -0.008338527753949165, -0.13885167241096497, -0.054291676729917526, -0.03041316382586956, -0.29760757088661194, 0.24999555945396423, -0.07412806898355484, -0.13487493991851807, -0.010198807343840599, 0.22491121292114258, -0.081453338265419, -0.05274134874343872, 0.2666454315185547, 0.5390653610229492, 0.13671784102916718, -0.11844652891159058, -0.007650941610336304, -0.0343371257185936, 0.041338685899972916, -0.16028912365436554, 0.3725060820579529, 0.36126166582107544, -0.38075512647628784, -0.1864958107471466, 0.031248006969690323, 0.06443929672241211, 0.10934818536043167, 0.06301417946815491, -0.0052247499115765095, 0.6728090643882751, 0.0062148310244083405, 0.15682865679264069, -0.08247051388025284, -0.09330663084983826, -0.18830934166908264, 0.07943832129240036, 0.025993555784225464, 0.151847243309021, 0.1931956708431244, 0.09188638627529144, 0.14544296264648438, -0.13333912193775177, 0.14057868719100952, 0.18295502662658691, -0.3506658673286438, -0.03907914459705353, -0.27505820989608765, -0.4001103937625885, 0.23031456768512726, 0.5738481879234314, 0.05592697486281395, -0.2610510289669037, 0.022941403090953827, -0.16611316800117493, -0.06653668731451035, -0.21053072810173035, 0.017196061089634895, 0.10909305512905121, 0.176365926861763, -0.06426526606082916, 0.14371956884860992, -0.062066491693258286, -0.1469879448413849, 0.057777538895606995, 0.021219369024038315, 0.23445799946784973, 0.06041096895933151, -0.1318698525428772, -0.45771679282188416, -0.05337127298116684, -0.40479403734207153, -0.4547331929206848, 0.16512906551361084, 0.017981085926294327, -0.17947456240653992, -0.18765315413475037, -0.2040046602487564, 0.2931961119174957, -0.39004337787628174, -0.22731634974479675, -0.29609227180480957, -0.15737757086753845, -0.36015400290489197, -0.01566549763083458, 0.23369315266609192, 0.23477813601493835, -0.07713761180639267, 0.09636440128087997, -0.006069617345929146, 0.04994497075676918, -0.09062658995389938, -0.02366778999567032, 0.34039610624313354, 0.3203577399253845, -0.06910581141710281, 0.013042081147432327, 0.30656298995018005, 0.11789879202842712, 0.03539351001381874, -0.2747989892959595, 0.0327882394194603, 0.19306962192058563, 0.000025499612092971802, 0.4013596177101135, 0.05026574432849884, -0.26240235567092896, 0.1898116171360016, 0.07062888145446777, -0.14404869079589844, 0.17281951010227203, 0.3667448163032532, -0.12181444466114044, 0.042061883956193924, -0.09882783889770508, -0.14540094137191772, 0.5352048277854919, 0.5328733325004578, 0.047530267387628555, 0.0417536124587059, 0.19174784421920776, -0.0054930225014686584, -0.11232402175664902, 0.001637360081076622, 0.17768071591854095, 0.3400036692619324, 0.3276679515838623, -0.045326974242925644, 0.07212550938129425, 0.09279658645391464, -0.27239230275154114, 0.027168072760105133, 0.13312038779258728, -0.012924829497933388, 0.23853683471679688, 0.023081300780177116, 0.02402529865503311, 0.0009895674884319305, -0.1358364224433899, -0.09153110533952713, 0.045142143964767456, -0.49379175901412964, 0.06459532678127289, 0.29191192984580994, 0.09954535216093063, 0.11441699415445328, -0.04886361211538315, 0.02170632593333721, -0.333572655916214, 0.27730756998062134, -0.008200030773878098, -0.12604035437107086, 0.36752280592918396, 0.059116605669260025, 0.6069640517234802, -0.05170340836048126, -0.12928453087806702, 0.05583501607179642, -0.141010120511055, -0.1000218465924263, 0.2187606692314148, 0.059275247156620026, -0.026645755395293236, 0.43795591592788696, -0.47655364871025085, -0.016730915755033493, -0.2245868444442749, -0.25049614906311035, 0.04497278109192848, -0.2950263023376465, 0.5556793212890625, -0.01943117380142212, 0.3935157060623169, -0.1744123250246048, -0.44891634583473206, 0.15404559671878815, 0.09487667679786682, -0.2663339376449585, -0.10921147465705872, -0.10183793306350708, -0.190132275223732, -0.17025616765022278, -0.6790179014205933, -0.09201183915138245, -0.4018356502056122, 0.2511565685272217, 0.23520256578922272, 0.4087030291557312, 0.25569525361061096, 0.16895756125450134, 0.07118066400289536, -0.12179364264011383, 0.22158832848072052, -0.16205143928527832, -0.5668569207191467, 0.2799704074859619, -0.13655634224414825, -0.21344830095767975, 0.0896168053150177, -0.06807594001293182, 0.38659989833831787, -0.07581255584955215, -0.2701120972633362, -0.25728633999824524, -0.0034593455493450165, 0.1851038783788681, -0.23394331336021423, 0.2616639733314514, 0.13931995630264282, 0.1060638353228569, -0.2423735409975052, -0.02819223888218403, -0.35825514793395996, 0.4432131350040436, -0.08436781913042068, 0.5695801377296448, -0.2829831540584564, -0.025324173271656036, -0.08104671537876129, 0.7003199458122253, 0.42332062125205994, 0.31327715516090393, 0.20637573301792145, 0.2165951430797577, 0.27611324191093445, -0.2087225317955017, -0.3570936322212219, 0.41310369968414307, 0.05071372538805008, -0.11908506602048874, 0.3564811944961548, 0.25026965141296387, -0.04292100667953491, -0.06900115311145782, -0.29351896047592163, -0.4035733938217163, -0.305067777633667, 0.3127705752849579, -0.3115622103214264, 0.34522169828414917, -0.2904945909976959, -0.0021758228540420532, -0.3312067687511444, -0.0000273287296295166, 0.0850442498922348, 0.030845515429973602, -0.046977393329143524, -0.09519819915294647, -0.07529211789369583, -0.12134133279323578, -0.45462727546691895, 0.26921045780181885, -0.1411500871181488, -0.14085598289966583, -0.4133974313735962, -0.10618924349546432, -0.017772570252418518, -0.03881401941180229, 0.6167894005775452, -0.01435929350554943, -0.12541529536247253, 0.19199493527412415, 0.2691849172115326, -0.14451946318149567, -0.07733563333749771, -0.12386511266231537, 0.20378459990024567, 0.09603734314441681, -0.11505486071109772, -0.4283052682876587, 0.06488741934299469, 0.2143644392490387, 0.0070459190756082535, -0.07631067931652069, -0.028268348425626755, -0.284140408039093, -0.5641161203384399, -0.43761274218559265, 0.06735368072986603, 0.15023672580718994, -0.033786576241254807, -0.10294435173273087, -0.2586818039417267, 0.24786162376403809, 0.055186375975608826, 0.26238298416137695, 0.14521388709545135, -0.05905119329690933, 0.09384821355342865, 0.23599529266357422, 0.08910521864891052, -0.3746374845504761, 0.3084161877632141, 0.33692696690559387, -0.18843260407447815, -0.0911320149898529, -0.018125910311937332, -0.2218058556318283, 0.10532797873020172, 0.3813057541847229, -0.024367939680814743, 0.012870341539382935, 0.2657897472381592, 0.325229287147522, -0.07771288603544235, 0.13152340054512024, 0.2000143975019455, 0.026660047471523285, -0.1422409564256668, -0.3049890697002411, -0.022703208029270172, -0.1682760864496231, -0.10369604825973511, 0.04808375611901283, 0.07637923210859299, -0.043479710817337036, 0.3537324070930481, -0.051012881100177765, 1.120378017425537, -0.1791185438632965, -0.03234095498919487, 0.1154043972492218, 0.07435387372970581, -0.18219658732414246, -0.427864134311676, -0.005495486781001091, -0.11087021231651306, -0.18925295770168304, 0.061978526413440704, -0.10568052530288696, 0.12095397710800171, 0.08734829723834991, -0.4450508952140808, 0.1790638417005539, -0.06353717297315598, 0.13715477287769318, 0.2332584261894226, 0.12099432945251465, -0.3670595586299896, -0.1980503648519516, -0.1767919361591339, 0.2182963639497757, -0.2397587150335312, -0.09288768470287323, -0.05009011924266815, -0.16463974118232727, -0.23908203840255737, 0.023601748049259186, -0.16868945956230164, 0.13480767607688904, -0.527864933013916, -0.16025860607624054, 0.0030622147023677826, 0.2233031541109085, 0.18142880499362946, -0.16368526220321655, 0.28876668214797974, 0.1856122761964798, -0.41499754786491394, 0.18454913794994354, -0.04897502809762955, -0.11624809354543686, 0.08461085706949234, -0.21365873515605927, 0.47260433435440063, -0.281038373708725, -0.5338497757911682, -0.09725072234869003, -0.08857175707817078, 0.02791440486907959, -0.1569128781557083, -0.059869393706321716, 0.7021082639694214, -0.38485413789749146, -0.018107030540704727, -0.03484951704740524, -0.08507025241851807, -0.29376280307769775, 0.18450458347797394, 0.21804389357566833, -0.042303118854761124, 0.4177508056163788, 0.07977140694856644, -0.07209235429763794, -0.10907036066055298, -0.17784112691879272, -0.03337889909744263, 0.09056058526039124, 0.5281937718391418, 0.02088533714413643, -0.20372137427330017, -0.33129724860191345, 0.07873754948377609, -0.009113509207963943, -0.07537159323692322, 0.11884590983390808, 0.13262008130550385, -0.3082738518714905, -0.1542542278766632, 0.4765201508998871, 0.14759060740470886, -0.24805662035942078, -0.12700650095939636, -0.31534579396247864, -0.3048076927661896, 0.38012391328811646, -0.10134053230285645, 0.11653642356395721, 0.04911361634731293, 0.04163794219493866, 0.2119487226009369, 0.5526018738746643, -0.4385964274406433, -0.06994980573654175, -0.6435147523880005, 0.30246996879577637, -0.26079636812210083, -0.24931272864341736, 0.23672392964363098, -0.04202308878302574, 0.0694182738661766, -0.2770385146141052, -0.45904669165611267, -0.29964226484298706, 0.032043490558862686, 0.1224384754896164, 0.03979657217860222, 0.12624672055244446, -0.026745684444904327, -0.10570777952671051, -0.18835920095443726, -0.160751610994339, 0.2601446807384491, -0.16879773139953613, -0.049456916749477386, 0.05575809255242348, 0.08941332995891571, 0.11928315460681915, 0.05982525646686554, -0.15282656252384186, -0.09587717056274414, 0.1538885086774826, 0.14030013978481293, -0.12009859085083008, -0.12691549956798553, -0.14321807026863098, 0.2532643973827362, 0.45312750339508057, 0.4339439868927002, -0.002063654363155365, 0.27295732498168945, 0.015344474464654922, 0.03020809218287468, -0.13456633687019348, -0.03839802369475365, 0.1852068305015564, -0.2301468700170517, 0.049070775508880615, -0.05676368623971939, 0.23631572723388672, -0.25873303413391113, 0.1730939745903015, 0.21372784674167633, -0.4358530342578888, 0.08236673474311829, 0.25673943758010864, 0.2598218619823456, -0.19750869274139404, 0.4141598343849182, 0.1314871907234192, 0.016157671809196472, -0.19880186021327972, 0.009087597951292992, 0.275913268327713, -0.16507960855960846, 0.07400024682283401, 0.2738746702671051, -0.07801729440689087, 0.034637451171875, 0.14338481426239014, -0.020110905170440674, 0.5363032817840576, 0.08296337723731995, 0.2759043872356415, 0.10220395028591156, -0.29026177525520325, 0.44913917779922485, -0.08440063893795013, 0.00879862904548645, -0.13113799691200256, 0.17190364003181458, 0.4040306806564331, 0.12460300326347351, -0.08357737958431244, -0.07971059530973434, 0.08796732127666473, -0.0983026996254921, -0.07046781480312347, 0.013570379465818405, -0.1983807384967804, -0.2677544951438904, -0.34515300393104553, 0.019615082070231438, -0.36099642515182495, 0.05839644372463226, -0.08266450464725494, -0.20081226527690887, -0.15572699904441833, 0.2711361050605774, -0.07963276654481888, 0.41000115871429443, -0.1529630422592163, 0.2302468866109848, 0.22004017233848572, 0.047022297978401184, 0.03414735198020935, 0.3635377287864685, 0.5642789006233215, 0.20486225187778473, -0.18244746327400208, 0.1557255983352661, 0.03659740835428238, -0.19994351267814636, 0.02968701720237732, 0.15514390170574188, 0.2599632740020752, 0.07037056237459183, 0.24389837682247162, 0.12670405209064484, -0.243727445602417, -0.1644412875175476, 0.11599147319793701, -0.09255225956439972, 0.00148759875446558, 0.4076169431209564, -0.08533062040805817, -0.2926088869571686, -0.25423529744148254, 0.043030690401792526, -0.6159965395927429, 0.008599712513387203, 0.2240389585494995, -0.3674706220626831, 0.03365938737988472, -0.3482198119163513, 0.1158321350812912, -0.1283901184797287, 0.5397456288337708, 0.1364627331495285, 0.1989559531211853, -0.3784862756729126, 0.08780860900878906, -0.14006981253623962, -0.105940081179142, 0.10902684926986694, 0.2235836386680603, 0.050285760313272476, 0.16730445623397827, 0.07515513151884079, 0.2539524435997009, -0.021693870425224304, -0.15877096354961395, 0.18146319687366486, 0.027742737904191017, -0.4719638526439667, 0.030096806585788727, 0.01869707554578781, 0.1896851360797882, 0.1039084941148758, -0.2098522186279297, 0.1060166135430336, -0.24933362007141113, 0.11018779128789902, 0.1820857673883438, -0.220962792634964, 0.38534361124038696, -0.023231737315654755, 0.41347578167915344, 0.09613591432571411, 0.10262186825275421, -0.09080496430397034, -0.24734549224376678, -0.048249971121549606, 0.05498788133263588, -0.07070060074329376, 0.12647280097007751, 0.3211442530155182, 0.39781200885772705, -0.15099939703941345, -0.25496843457221985, 0.0608244426548481, -0.0627649798989296, 0.0026080049574375153, -0.31717658042907715, -0.20740355551242828, 0.07093938440084457, 0.19334542751312256, 0.18770228326320648, -0.07589972764253616, -0.019248254597187042, -0.04143921285867691, 0.09855148941278458, -0.46375328302383423, -0.21423669159412384, 0.5361523628234863, 0.5260552763938904, -0.10252033174037933, 0.040991369634866714, 0.365805983543396, -0.06380573660135269, -0.0636739507317543, -1.0345220565795898, 0.22662311792373657, 0.23011597990989685, -0.06974487006664276, 0.0020483285188674927, 0.6340030431747437, -0.2324448972940445, 0.002718225121498108, -0.024306127801537514, -0.009449891746044159, -0.1994035542011261, 0.011299530044198036, -0.3053025007247925, -0.22920124232769012 ]
https://github.com/huggingface/datasets/pull/2053
Add bAbI QA tasks
Hi @lhoestq I have added the changes. Only the "qa1" task for each category is included. Also, I haven't removed the size categories and other description because I think it will still be useful. I have updated the line in README showing the example. Thanks, Gunjan
- **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass.
46
text: Add bAbI QA tasks - **Name:** *The (20) QA bAbI tasks* - **Description:** *The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.* - **Paper:** [arXiv](https://arxiv.org/pdf/1502.05698.pdf) - **Data:** [Facebook Research Page](https://research.fb.com/downloads/babi/) - **Motivation:** This is a unique dataset with story-based Question Answering. It is a part of the `bAbI` project by Facebook Research. **Note**: I have currently added all the 160 configs. If this seems impractical, I can keep only a few. While each `dummy_data.zip` weighs a few KBs, overall it is around 1.3MB for all configurations. This is problematic. Let me know what is to be done. Thanks :) ### Checkbox - [x] Create the dataset script `/datasets/my_dataset/my_dataset.py` using the template - [x] Fill the `_DESCRIPTION` and `_CITATION` variables - [x] Implement `_infos()`, `_split_generators()` and `_generate_examples()` - [x] Make sure that the `BUILDER_CONFIGS` class attribute is filled with the different configurations of the dataset and that the `BUILDER_CONFIG_CLASS` is specified if there is a custom config class. - [x] Generate the metadata file `dataset_infos.json` for all configurations - [x] Generate the dummy data `dummy_data.zip` files to have the dataset script tested and that they don't weigh too much (<50KB) - [x] Add the dataset card `README.md` using the template : fill the tags and the various paragraphs - [x] Both tests for the real data and the dummy data pass. Hi @lhoestq I have added the changes. Only the "qa1" task for each category is included. Also, I haven't removed the size categories and other description because I think it will still be useful. I have updated the line in README showing the example. Thanks, Gunjan
[ -0.14379265904426575, -0.23776546120643616, -0.16119952499866486, -0.10497778654098511, 0.12279532849788666, 0.12302198261022568, 0.24087852239608765, 0.38729149103164673, 0.33260080218315125, 0.13559813797473907, 0.023749537765979767, 0.08510088175535202, 0.07430587708950043, 0.6599835157394409, -0.05204492807388306, 0.06157059222459793, 0.03615454584360123, -0.005362212657928467, 0.3594759702682495, 0.06941306591033936, -0.209721177816391, 0.16588880121707916, -0.020377419888973236, -0.09209725260734558, -0.03020874597132206, -0.36778944730758667, -0.041796255856752396, 0.06802404671907425, -0.11647395044565201, -0.2571457028388977, -0.12896180152893066, 0.30620983242988586, -0.19204223155975342, 0.20714223384857178, -0.0001089174475055188, -0.1480274498462677, -0.01918463408946991, -0.16065159440040588, -0.3841131627559662, -0.09465651214122772, 0.09182516485452652, -0.24536670744419098, -0.0800584927201271, -0.041864823549985886, -0.06875507533550262, -0.242772176861763, 0.15676090121269226, 0.05371803790330887, 0.42917340993881226, 0.40802156925201416, 0.2057267129421234, -0.028928546234965324, 0.1637069135904312, -0.2386111468076706, 0.2202478051185608, 0.19586285948753357, -0.3181277811527252, 0.12006175518035889, 0.6415802240371704, 0.073117196559906, -0.11348966509103775, 0.28123778104782104, 0.17833222448825836, 0.08465822041034698, 0.16712597012519836, -0.2680830657482147, 0.5269069075584412, -0.4405931830406189, 0.22626620531082153, 0.2695978879928589, 0.2480337917804718, -0.08705427497625351, -0.23788052797317505, -0.3068891167640686, 0.01828654855489731, 0.18291908502578735, -0.1315459907054901, 0.1713322252035141, -0.2782474756240845, 0.09978482127189636, -0.13633181154727936, -0.2782749831676483, -0.14108845591545105, -0.11640837788581848, 0.16878899931907654, 0.11623476445674896, -0.14980363845825195, -0.12809377908706665, 0.14638575911521912, -0.07056912779808044, 0.34163281321525574, -0.05696205049753189, 0.010672159492969513, -0.008622883819043636, -0.3869488537311554, 0.035313211381435394, 0.448273241519928, 0.22290131449699402, 0.39475828409194946, 0.4531819224357605, 0.2291695922613144, 0.10653681308031082, -0.11521217972040176, 0.11109688878059387, -0.06739693880081177, 0.2619011700153351, -0.02584899216890335, 0.12810400128364563, -0.07435201108455658, 0.5345590114593506, -0.03741805627942085, -0.050971873104572296, -0.19830934703350067, 0.08626656979322433, -0.020659539848566055, -0.11747924238443375, 0.20282544195652008, -0.18809212744235992, -0.4508413076400757, 0.176004558801651, -0.18935421109199524, -0.06659422069787979, -0.023237790912389755, 0.5726940631866455, -0.10125492513179779, -0.057582877576351166, 0.035894446074962616, 0.251459538936615, -0.19391965866088867, 0.042397841811180115, -0.1058884784579277, -0.2531401216983795, -0.11845380067825317, 0.04888531565666199, 0.3383675217628479, 0.06631037592887878, 0.44415831565856934, -0.20699526369571686, 0.10212156176567078, -0.08384676277637482, 0.4557325541973114, -0.28016000986099243, 0.18915671110153198, 0.3523802161216736, -0.008338527753949165, -0.13885167241096497, -0.054291676729917526, -0.03041316382586956, -0.29760757088661194, 0.24999555945396423, -0.07412806898355484, -0.13487493991851807, -0.010198807343840599, 0.22491121292114258, -0.081453338265419, -0.05274134874343872, 0.2666454315185547, 0.5390653610229492, 0.13671784102916718, -0.11844652891159058, -0.007650941610336304, -0.0343371257185936, 0.041338685899972916, -0.16028912365436554, 0.3725060820579529, 0.36126166582107544, -0.38075512647628784, -0.1864958107471466, 0.031248006969690323, 0.06443929672241211, 0.10934818536043167, 0.06301417946815491, -0.0052247499115765095, 0.6728090643882751, 0.0062148310244083405, 0.15682865679264069, -0.08247051388025284, -0.09330663084983826, -0.18830934166908264, 0.07943832129240036, 0.025993555784225464, 0.151847243309021, 0.1931956708431244, 0.09188638627529144, 0.14544296264648438, -0.13333912193775177, 0.14057868719100952, 0.18295502662658691, -0.3506658673286438, -0.03907914459705353, -0.27505820989608765, -0.4001103937625885, 0.23031456768512726, 0.5738481879234314, 0.05592697486281395, -0.2610510289669037, 0.022941403090953827, -0.16611316800117493, -0.06653668731451035, -0.21053072810173035, 0.017196061089634895, 0.10909305512905121, 0.176365926861763, -0.06426526606082916, 0.14371956884860992, -0.062066491693258286, -0.1469879448413849, 0.057777538895606995, 0.021219369024038315, 0.23445799946784973, 0.06041096895933151, -0.1318698525428772, -0.45771679282188416, -0.05337127298116684, -0.40479403734207153, -0.4547331929206848, 0.16512906551361084, 0.017981085926294327, -0.17947456240653992, -0.18765315413475037, -0.2040046602487564, 0.2931961119174957, -0.39004337787628174, -0.22731634974479675, -0.29609227180480957, -0.15737757086753845, -0.36015400290489197, -0.01566549763083458, 0.23369315266609192, 0.23477813601493835, -0.07713761180639267, 0.09636440128087997, -0.006069617345929146, 0.04994497075676918, -0.09062658995389938, -0.02366778999567032, 0.34039610624313354, 0.3203577399253845, -0.06910581141710281, 0.013042081147432327, 0.30656298995018005, 0.11789879202842712, 0.03539351001381874, -0.2747989892959595, 0.0327882394194603, 0.19306962192058563, 0.000025499612092971802, 0.4013596177101135, 0.05026574432849884, -0.26240235567092896, 0.1898116171360016, 0.07062888145446777, -0.14404869079589844, 0.17281951010227203, 0.3667448163032532, -0.12181444466114044, 0.042061883956193924, -0.09882783889770508, -0.14540094137191772, 0.5352048277854919, 0.5328733325004578, 0.047530267387628555, 0.0417536124587059, 0.19174784421920776, -0.0054930225014686584, -0.11232402175664902, 0.001637360081076622, 0.17768071591854095, 0.3400036692619324, 0.3276679515838623, -0.045326974242925644, 0.07212550938129425, 0.09279658645391464, -0.27239230275154114, 0.027168072760105133, 0.13312038779258728, -0.012924829497933388, 0.23853683471679688, 0.023081300780177116, 0.02402529865503311, 0.0009895674884319305, -0.1358364224433899, -0.09153110533952713, 0.045142143964767456, -0.49379175901412964, 0.06459532678127289, 0.29191192984580994, 0.09954535216093063, 0.11441699415445328, -0.04886361211538315, 0.02170632593333721, -0.333572655916214, 0.27730756998062134, -0.008200030773878098, -0.12604035437107086, 0.36752280592918396, 0.059116605669260025, 0.6069640517234802, -0.05170340836048126, -0.12928453087806702, 0.05583501607179642, -0.141010120511055, -0.1000218465924263, 0.2187606692314148, 0.059275247156620026, -0.026645755395293236, 0.43795591592788696, -0.47655364871025085, -0.016730915755033493, -0.2245868444442749, -0.25049614906311035, 0.04497278109192848, -0.2950263023376465, 0.5556793212890625, -0.01943117380142212, 0.3935157060623169, -0.1744123250246048, -0.44891634583473206, 0.15404559671878815, 0.09487667679786682, -0.2663339376449585, -0.10921147465705872, -0.10183793306350708, -0.190132275223732, -0.17025616765022278, -0.6790179014205933, -0.09201183915138245, -0.4018356502056122, 0.2511565685272217, 0.23520256578922272, 0.4087030291557312, 0.25569525361061096, 0.16895756125450134, 0.07118066400289536, -0.12179364264011383, 0.22158832848072052, -0.16205143928527832, -0.5668569207191467, 0.2799704074859619, -0.13655634224414825, -0.21344830095767975, 0.0896168053150177, -0.06807594001293182, 0.38659989833831787, -0.07581255584955215, -0.2701120972633362, -0.25728633999824524, -0.0034593455493450165, 0.1851038783788681, -0.23394331336021423, 0.2616639733314514, 0.13931995630264282, 0.1060638353228569, -0.2423735409975052, -0.02819223888218403, -0.35825514793395996, 0.4432131350040436, -0.08436781913042068, 0.5695801377296448, -0.2829831540584564, -0.025324173271656036, -0.08104671537876129, 0.7003199458122253, 0.42332062125205994, 0.31327715516090393, 0.20637573301792145, 0.2165951430797577, 0.27611324191093445, -0.2087225317955017, -0.3570936322212219, 0.41310369968414307, 0.05071372538805008, -0.11908506602048874, 0.3564811944961548, 0.25026965141296387, -0.04292100667953491, -0.06900115311145782, -0.29351896047592163, -0.4035733938217163, -0.305067777633667, 0.3127705752849579, -0.3115622103214264, 0.34522169828414917, -0.2904945909976959, -0.0021758228540420532, -0.3312067687511444, -0.0000273287296295166, 0.0850442498922348, 0.030845515429973602, -0.046977393329143524, -0.09519819915294647, -0.07529211789369583, -0.12134133279323578, -0.45462727546691895, 0.26921045780181885, -0.1411500871181488, -0.14085598289966583, -0.4133974313735962, -0.10618924349546432, -0.017772570252418518, -0.03881401941180229, 0.6167894005775452, -0.01435929350554943, -0.12541529536247253, 0.19199493527412415, 0.2691849172115326, -0.14451946318149567, -0.07733563333749771, -0.12386511266231537, 0.20378459990024567, 0.09603734314441681, -0.11505486071109772, -0.4283052682876587, 0.06488741934299469, 0.2143644392490387, 0.0070459190756082535, -0.07631067931652069, -0.028268348425626755, -0.284140408039093, -0.5641161203384399, -0.43761274218559265, 0.06735368072986603, 0.15023672580718994, -0.033786576241254807, -0.10294435173273087, -0.2586818039417267, 0.24786162376403809, 0.055186375975608826, 0.26238298416137695, 0.14521388709545135, -0.05905119329690933, 0.09384821355342865, 0.23599529266357422, 0.08910521864891052, -0.3746374845504761, 0.3084161877632141, 0.33692696690559387, -0.18843260407447815, -0.0911320149898529, -0.018125910311937332, -0.2218058556318283, 0.10532797873020172, 0.3813057541847229, -0.024367939680814743, 0.012870341539382935, 0.2657897472381592, 0.325229287147522, -0.07771288603544235, 0.13152340054512024, 0.2000143975019455, 0.026660047471523285, -0.1422409564256668, -0.3049890697002411, -0.022703208029270172, -0.1682760864496231, -0.10369604825973511, 0.04808375611901283, 0.07637923210859299, -0.043479710817337036, 0.3537324070930481, -0.051012881100177765, 1.120378017425537, -0.1791185438632965, -0.03234095498919487, 0.1154043972492218, 0.07435387372970581, -0.18219658732414246, -0.427864134311676, -0.005495486781001091, -0.11087021231651306, -0.18925295770168304, 0.061978526413440704, -0.10568052530288696, 0.12095397710800171, 0.08734829723834991, -0.4450508952140808, 0.1790638417005539, -0.06353717297315598, 0.13715477287769318, 0.2332584261894226, 0.12099432945251465, -0.3670595586299896, -0.1980503648519516, -0.1767919361591339, 0.2182963639497757, -0.2397587150335312, -0.09288768470287323, -0.05009011924266815, -0.16463974118232727, -0.23908203840255737, 0.023601748049259186, -0.16868945956230164, 0.13480767607688904, -0.527864933013916, -0.16025860607624054, 0.0030622147023677826, 0.2233031541109085, 0.18142880499362946, -0.16368526220321655, 0.28876668214797974, 0.1856122761964798, -0.41499754786491394, 0.18454913794994354, -0.04897502809762955, -0.11624809354543686, 0.08461085706949234, -0.21365873515605927, 0.47260433435440063, -0.281038373708725, -0.5338497757911682, -0.09725072234869003, -0.08857175707817078, 0.02791440486907959, -0.1569128781557083, -0.059869393706321716, 0.7021082639694214, -0.38485413789749146, -0.018107030540704727, -0.03484951704740524, -0.08507025241851807, -0.29376280307769775, 0.18450458347797394, 0.21804389357566833, -0.042303118854761124, 0.4177508056163788, 0.07977140694856644, -0.07209235429763794, -0.10907036066055298, -0.17784112691879272, -0.03337889909744263, 0.09056058526039124, 0.5281937718391418, 0.02088533714413643, -0.20372137427330017, -0.33129724860191345, 0.07873754948377609, -0.009113509207963943, -0.07537159323692322, 0.11884590983390808, 0.13262008130550385, -0.3082738518714905, -0.1542542278766632, 0.4765201508998871, 0.14759060740470886, -0.24805662035942078, -0.12700650095939636, -0.31534579396247864, -0.3048076927661896, 0.38012391328811646, -0.10134053230285645, 0.11653642356395721, 0.04911361634731293, 0.04163794219493866, 0.2119487226009369, 0.5526018738746643, -0.4385964274406433, -0.06994980573654175, -0.6435147523880005, 0.30246996879577637, -0.26079636812210083, -0.24931272864341736, 0.23672392964363098, -0.04202308878302574, 0.0694182738661766, -0.2770385146141052, -0.45904669165611267, -0.29964226484298706, 0.032043490558862686, 0.1224384754896164, 0.03979657217860222, 0.12624672055244446, -0.026745684444904327, -0.10570777952671051, -0.18835920095443726, -0.160751610994339, 0.2601446807384491, -0.16879773139953613, -0.049456916749477386, 0.05575809255242348, 0.08941332995891571, 0.11928315460681915, 0.05982525646686554, -0.15282656252384186, -0.09587717056274414, 0.1538885086774826, 0.14030013978481293, -0.12009859085083008, -0.12691549956798553, -0.14321807026863098, 0.2532643973827362, 0.45312750339508057, 0.4339439868927002, -0.002063654363155365, 0.27295732498168945, 0.015344474464654922, 0.03020809218287468, -0.13456633687019348, -0.03839802369475365, 0.1852068305015564, -0.2301468700170517, 0.049070775508880615, -0.05676368623971939, 0.23631572723388672, -0.25873303413391113, 0.1730939745903015, 0.21372784674167633, -0.4358530342578888, 0.08236673474311829, 0.25673943758010864, 0.2598218619823456, -0.19750869274139404, 0.4141598343849182, 0.1314871907234192, 0.016157671809196472, -0.19880186021327972, 0.009087597951292992, 0.275913268327713, -0.16507960855960846, 0.07400024682283401, 0.2738746702671051, -0.07801729440689087, 0.034637451171875, 0.14338481426239014, -0.020110905170440674, 0.5363032817840576, 0.08296337723731995, 0.2759043872356415, 0.10220395028591156, -0.29026177525520325, 0.44913917779922485, -0.08440063893795013, 0.00879862904548645, -0.13113799691200256, 0.17190364003181458, 0.4040306806564331, 0.12460300326347351, -0.08357737958431244, -0.07971059530973434, 0.08796732127666473, -0.0983026996254921, -0.07046781480312347, 0.013570379465818405, -0.1983807384967804, -0.2677544951438904, -0.34515300393104553, 0.019615082070231438, -0.36099642515182495, 0.05839644372463226, -0.08266450464725494, -0.20081226527690887, -0.15572699904441833, 0.2711361050605774, -0.07963276654481888, 0.41000115871429443, -0.1529630422592163, 0.2302468866109848, 0.22004017233848572, 0.047022297978401184, 0.03414735198020935, 0.3635377287864685, 0.5642789006233215, 0.20486225187778473, -0.18244746327400208, 0.1557255983352661, 0.03659740835428238, -0.19994351267814636, 0.02968701720237732, 0.15514390170574188, 0.2599632740020752, 0.07037056237459183, 0.24389837682247162, 0.12670405209064484, -0.243727445602417, -0.1644412875175476, 0.11599147319793701, -0.09255225956439972, 0.00148759875446558, 0.4076169431209564, -0.08533062040805817, -0.2926088869571686, -0.25423529744148254, 0.043030690401792526, -0.6159965395927429, 0.008599712513387203, 0.2240389585494995, -0.3674706220626831, 0.03365938737988472, -0.3482198119163513, 0.1158321350812912, -0.1283901184797287, 0.5397456288337708, 0.1364627331495285, 0.1989559531211853, -0.3784862756729126, 0.08780860900878906, -0.14006981253623962, -0.105940081179142, 0.10902684926986694, 0.2235836386680603, 0.050285760313272476, 0.16730445623397827, 0.07515513151884079, 0.2539524435997009, -0.021693870425224304, -0.15877096354961395, 0.18146319687366486, 0.027742737904191017, -0.4719638526439667, 0.030096806585788727, 0.01869707554578781, 0.1896851360797882, 0.1039084941148758, -0.2098522186279297, 0.1060166135430336, -0.24933362007141113, 0.11018779128789902, 0.1820857673883438, -0.220962792634964, 0.38534361124038696, -0.023231737315654755, 0.41347578167915344, 0.09613591432571411, 0.10262186825275421, -0.09080496430397034, -0.24734549224376678, -0.048249971121549606, 0.05498788133263588, -0.07070060074329376, 0.12647280097007751, 0.3211442530155182, 0.39781200885772705, -0.15099939703941345, -0.25496843457221985, 0.0608244426548481, -0.0627649798989296, 0.0026080049574375153, -0.31717658042907715, -0.20740355551242828, 0.07093938440084457, 0.19334542751312256, 0.18770228326320648, -0.07589972764253616, -0.019248254597187042, -0.04143921285867691, 0.09855148941278458, -0.46375328302383423, -0.21423669159412384, 0.5361523628234863, 0.5260552763938904, -0.10252033174037933, 0.040991369634866714, 0.365805983543396, -0.06380573660135269, -0.0636739507317543, -1.0345220565795898, 0.22662311792373657, 0.23011597990989685, -0.06974487006664276, 0.0020483285188674927, 0.6340030431747437, -0.2324448972940445, 0.002718225121498108, -0.024306127801537514, -0.009449891746044159, -0.1994035542011261, 0.011299530044198036, -0.3053025007247925, -0.22920124232769012 ]
https://github.com/huggingface/datasets/pull/2047
Multilingual dIalogAct benchMark (miam)
Once the review period is over, feel free to open a PR to add all the missing information ;)
My collaborators (@EmileChapuis, @PierreColombo) and I within the Affective Computing team at Telecom Paris would like to anonymously publish the miam dataset. It is assocated with a publication currently under review. We will update the dataset with full citations once the review period is over.
19
text: Multilingual dIalogAct benchMark (miam) My collaborators (@EmileChapuis, @PierreColombo) and I within the Affective Computing team at Telecom Paris would like to anonymously publish the miam dataset. It is assocated with a publication currently under review. We will update the dataset with full citations once the review period is over. Once the review period is over, feel free to open a PR to add all the missing information ;)
[ -0.3249548673629761, 0.37223097681999207, -0.15822380781173706, 0.17878225445747375, -0.27712804079055786, -0.11976069211959839, 0.37992048263549805, -0.06375490128993988, -0.22179044783115387, -0.018786907196044922, -0.20791928470134735, -0.03359009325504303, -0.30055031180381775, 0.19004787504673004, 0.16106361150741577, 0.31575217843055725, -0.12189558893442154, -0.18003720045089722, -0.23032096028327942, -0.023791007697582245, -0.01744474284350872, 0.217617005109787, -0.016928810626268387, 0.08606039732694626, 0.019548920914530754, -0.3161538541316986, 0.05712660402059555, 0.016497556120157242, -0.45131969451904297, -0.2946794033050537, -0.28897354006767273, 0.2713624835014343, -0.23408056795597076, 0.2043989598751068, -0.00011432560859248042, -0.2256932407617569, 0.19052281975746155, -0.1620970368385315, -0.09917211532592773, -0.04161599278450012, -0.28193503618240356, 0.12411771714687347, -0.18123191595077515, -0.2998538017272949, -0.07505212724208832, 0.0884619876742363, -0.1440276801586151, -0.6196620464324951, 0.012866877019405365, 0.24014586210250854, 0.1754724681377411, 0.4831201732158661, -0.253726601600647, -0.017723970115184784, -0.23139441013336182, -0.10648533701896667, -0.10704375058412552, -0.06193103268742561, 0.2780176103115082, 0.11672727763652802, -0.3710919916629791, 0.29565075039863586, -0.08320775628089905, -0.23016192018985748, -0.06371816247701645, -0.07202419638633728, 0.1518840491771698, -0.2633175253868103, 0.2615179419517517, 0.590099036693573, 0.8884902000427246, -0.619072437286377, -0.17434203624725342, 0.20113161206245422, -0.020146444439888, 0.07609281688928604, -0.22380822896957397, 0.26627907156944275, -0.11280353367328644, 0.3690324127674103, -0.03590116277337074, 0.06612081825733185, 0.08410331606864929, -0.23542378842830658, 0.16098368167877197, 0.0823659598827362, -0.027826808393001556, -0.07808568328619003, -0.10524795949459076, -0.06231081485748291, 0.05266708880662918, -0.026528477668762207, 0.18482378125190735, -0.07976135611534119, 0.11657670885324478, -0.12759144604206085, 0.19400237500667572, -0.12548846006393433, 0.21854045987129211, -0.40992313623428345, 0.15664489567279816, 0.19058236479759216, 0.10897397249937057, 0.02717004343867302, 0.30283522605895996, -0.11086401343345642, 0.36296191811561584, -0.1989733725786209, 0.05540749430656433, 0.10376813262701035, 0.21677044034004211, 0.1552397459745407, 0.1980222910642624, 0.25775575637817383, -0.13089267909526825, 0.09868995100259781, -0.46422797441482544, -0.15418358147144318, -0.2615756690502167, -0.043493472039699554, 0.1305086314678192, -0.10896280407905579, -0.226476788520813, 0.08554334938526154, 0.07391907274723053, -0.3024858236312866, -0.0836455225944519, -0.04431720823049545, -0.2425726056098938, -0.4308449625968933, -0.254764586687088, 0.16218747198581696, -0.07344198226928711, 0.03158844634890556, 0.032780978828668594, 0.48354360461235046, -0.00824054330587387, -0.18531273305416107, 0.610396146774292, 0.2369767725467682, 0.42430704832077026, -0.02048773132264614, 0.13436971604824066, 0.10526719689369202, 0.12344439327716827, 0.12015091627836227, 0.04722634330391884, -0.16545431315898895, -0.27862468361854553, 0.20286262035369873, 0.21229591965675354, 0.0348518081009388, 0.1842002123594284, 0.08774971961975098, -0.1670905500650406, 0.15325510501861572, 0.17499801516532898, 0.3647685647010803, -0.07764851301908493, -0.026330087333917618, 0.4380614757537842, 0.13054728507995605, -0.10872393846511841, -0.18462428450584412, 0.12279743701219559, 0.4461405873298645, 0.02772584930062294, -0.09217959642410278, -0.003350372426211834, -0.30376002192497253, 0.0660354495048523, 0.35528597235679626, -0.07559159398078918, 0.22072157263755798, 0.04454043507575989, 0.17187543213367462, 0.44079065322875977, -0.4884924590587616, -0.4856974184513092, -0.2438647449016571, -0.48124760389328003, -0.14122770726680756, 0.22518953680992126, 0.1799059361219406, 0.2002611607313156, -0.2618480324745178, 0.40647411346435547, 0.285377562046051, 0.11441867798566818, -0.0360034704208374, -0.2973383367061615, -0.3877243399620056, 0.14074242115020752, 0.08684870600700378, -0.039988335222005844, -0.15902939438819885, 0.2064647078514099, -0.07006854563951492, 0.31889763474464417, 0.14109213650226593, 0.10532844811677933, 0.22814349830150604, 0.12489922344684601, -0.5193777680397034, 0.27234947681427, 0.00921132043004036, 0.10569102317094803, 0.09395048767328262, -0.21083258092403412, 0.36071327328681946, -0.29182326793670654, -0.10286129266023636, 0.0640527606010437, -0.05220543593168259, 0.23593805730342865, -0.03554445877671242, 0.025683052837848663, -0.2806958258152008, 0.12047633528709412, 0.4351249039173126, -0.1887081265449524, 0.22823546826839447, -0.14551006257534027, -0.15348008275032043, -0.3458578884601593, -0.16142278909683228, 0.04858887195587158, -0.23559342324733734, 0.18666014075279236, 0.20892223715782166, -0.17457225918769836, 0.007253296673297882, 0.13346338272094727, -0.03250899165868759, -0.15728580951690674, 0.2149764448404312, 0.4633806347846985, 0.6851106882095337, -0.047990381717681885, -0.5439264178276062, 0.3390435576438904, -0.019439686089754105, -0.12127780169248581, 0.1582965850830078, -0.049373872578144073, 0.7238725423812866, -0.36546793580055237, -0.2186787724494934, 0.06178896129131317, 0.08866719901561737, 0.0037181731313467026, 0.026877988129854202, -0.36766713857650757, -0.3119014799594879, 0.44208937883377075, 0.012999230995774269, 0.1920519918203354, 0.04573388397693634, -0.008423194289207458, 0.34546390175819397, 0.3869016170501709, -0.07494181394577026, 0.35487237572669983, -0.01833149790763855, -0.14332568645477295, -0.06154851242899895, -0.1520647406578064, -0.40410470962524414, 0.043744273483753204, 0.10150545090436935, 0.4653107225894928, -0.08349708467721939, 0.30070874094963074, -0.0931224524974823, 0.17209377884864807, -0.2848607897758484, -0.44995248317718506, 0.2646693289279938, -0.04586869478225708, 0.07039307802915573, -0.38420724868774414, 0.08749955892562866, -0.09354538470506668, 0.09008201211690903, 0.050126317888498306, -0.055381983518600464, 0.05966818332672119, 0.10022153705358505, 0.11408675462007523, -0.28373515605926514, -0.1440519243478775, 0.08296483010053635, -0.04057607799768448, -0.23441585898399353, 0.33670616149902344, 0.3332189619541168, -0.25480514764785767, 0.4020425081253052, -0.13266417384147644, 0.2255261093378067, -0.027351824566721916, -0.26720479130744934, 0.0605785995721817, 0.11423605680465698, 0.042016759514808655, 0.34198498725891113, 0.22689425945281982, -0.24005059897899628, 0.35457873344421387, -0.11251042038202286, -0.4624314308166504, 0.09494433552026749, 0.04330594092607498, 0.14240865409374237, 0.05762887001037598, -0.24103133380413055, -0.16340674459934235, 0.20707109570503235, -0.19672831892967224, -0.23467324674129486, -0.35223209857940674, -0.017208281904459, -0.0602557435631752, -0.05300192907452583, 0.06754511594772339, -0.16012442111968994, -0.39076337218284607, -0.17105020582675934, 0.3244463801383972, -0.4965597987174988, 0.002400483936071396, -0.12842944264411926, -0.32046231627464294, 0.1875096559524536, -0.18914391100406647, -0.0732455775141716, -0.19528208673000336, -0.40567511320114136, 0.2631678283214569, -0.12897630035877228, -0.23616118729114532, -0.28651195764541626, 0.10835012793540955, 0.10972568392753601, 0.14085976779460907, -0.3809335231781006, 0.13487206399440765, 0.3016411364078522, 0.2811550796031952, 0.08735525608062744, -0.12031768262386322, 0.3437464237213135, 0.28033971786499023, -0.21000264585018158, -0.27703824639320374, -0.09196370840072632, -0.335815966129303, -0.022842273116111755, 0.149260014295578, -0.027139708399772644, 0.01716095209121704, 0.3403814136981964, 0.29367154836654663, 0.33658865094184875, 0.1605798453092575, -0.07632206380367279, 0.35137423872947693, 0.1674201339483261, 0.12924157083034515, -0.34482303261756897, 0.18529970943927765, 0.022324979305267334, 0.0808333307504654, 0.2580564618110657, -0.1876162886619568, -0.46371781826019287, -0.07010744512081146, -0.13491752743721008, -0.3167429268360138, -0.22757671773433685, 0.27708667516708374, 0.029684878885746002, 0.6358187794685364, 0.09933842718601227, -0.18102312088012695, -0.4681854248046875, -0.21343249082565308, 0.12249159812927246, 0.26869678497314453, -0.12696287035942078, -0.049542490392923355, -0.10307808220386505, 0.47168073058128357, -0.6626203060150146, 0.08821353316307068, -0.001406496623530984, 0.3774834871292114, -0.431916207075119, 0.1975979506969452, 0.09249790757894516, -0.07342015951871872, 0.19502173364162445, -0.5899697542190552, 0.09108641743659973, 0.3367433547973633, 0.4603803753852844, -0.23033511638641357, 0.15344008803367615, -0.3575148284435272, 0.5412706732749939, 0.41938260197639465, 0.3909708857536316, -0.08735735714435577, -0.07944941520690918, -0.20914627611637115, -0.07547825574874878, -0.08342947065830231, -0.20260193943977356, -0.3700222969055176, -0.32904839515686035, 0.04996905475854874, 0.16311439871788025, 0.11139927059412003, -0.0864979699254036, 0.20710428059101105, 0.1301162987947464, 0.43904978036880493, 0.18666309118270874, 0.32005083560943604, -0.13864564895629883, -0.21808883547782898, 0.22606968879699707, 0.08733266592025757, 0.30878451466560364, -0.26030319929122925, -0.016356417909264565, 0.2889343500137329, -0.09346792101860046, -0.28176191449165344, 0.011475647799670696, -0.38363730907440186, 0.3200679421424866, 0.5238947868347168, 0.181416854262352, 0.4012512266635895, 0.1183772087097168, -0.053910717368125916, 0.09274736791849136, -0.19221621751785278, 0.04898057132959366, -0.033343326300382614, -0.24399977922439575, -0.002086205407977104, 0.18703395128250122, 0.065089151263237, -0.21413202583789825, 0.30947208404541016, -0.1953112632036209, -0.10474582016468048, -0.06426626443862915, 0.15204426646232605, 1.3067134618759155, -0.04828730225563049, 0.25340214371681213, -0.5701776742935181, -0.24223585426807404, 0.08411958813667297, -0.1368759721517563, 0.046856217086315155, -0.16164058446884155, -0.09070006757974625, -0.20996703207492828, -0.26221269369125366, 0.20661741495132446, 0.047029826790094376, -0.17660874128341675, -0.05534064397215843, -0.3514944911003113, -0.3514051139354706, 0.15827347338199615, 0.2962912619113922, 0.01613027974963188, -0.1306966096162796, 0.2947220206260681, 0.02881959080696106, 0.15530210733413696, -0.03625781461596489, 0.16518720984458923, -0.42228782176971436, -0.14915692806243896, -0.08418548107147217, -0.3448984622955322, -0.16240820288658142, -0.1976911723613739, 0.10162433981895447, 0.12781691551208496, -0.18186230957508087, 0.5733084678649902, 0.10294397175312042, 0.5183718800544739, -0.12399984896183014, 0.01071368157863617, 0.016319727525115013, 0.16961899399757385, -0.25757429003715515, 0.2688388228416443, 0.08835121244192123, -0.13630685210227966, -0.1427849978208542, -0.3193945586681366, 0.3026878535747528, 0.08948087692260742, -0.05049622058868408, -0.28957200050354004, -0.037854425609111786, 0.10235437750816345, -0.06737659871578217, 0.5505697131156921, 0.2364293783903122, -0.05452495068311691, 0.06833915412425995, 0.08449363708496094, 0.3525204062461853, -0.22470447421073914, 0.6508670449256897, -0.1500927060842514, -0.17608508467674255, -0.03725999966263771, 0.7056535482406616, 0.2439897656440735, 0.12383446097373962, 0.08219695091247559, 0.07109005749225616, -0.21486219763755798, -0.24209290742874146, 0.036241285502910614, 0.31523627042770386, 0.07224402576684952, -0.14727725088596344, -0.17013520002365112, -0.02705269306898117, -0.16754642128944397, 0.3994155526161194, 0.17897886037826538, 0.14118552207946777, -0.28813809156417847, -0.30513566732406616, -0.10935816913843155, 0.35558778047561646, 0.11863300204277039, -0.21087954938411713, -0.3427138328552246, -0.17333075404167175, -0.06966711580753326, 0.258332222700119, -0.34345555305480957, 0.08986863493919373, -0.14844542741775513, 0.11488337814807892, 0.34599289298057556, -0.36975064873695374, 0.18338418006896973, 0.059032853692770004, 0.013269232586026192, -0.05345485359430313, -0.613389253616333, -0.19407019019126892, -0.058101821690797806, 0.19558382034301758, -0.23176288604736328, 0.024190628901124, 0.26708367466926575, -0.02147664874792099, -0.13196122646331787, 0.15160302817821503, -0.17797449231147766, 0.05382755398750305, 0.25527894496917725, -0.22961319983005524, -0.39747849106788635, 0.28154024481773376, -0.1932043433189392, -0.13230860233306885, 0.19059936702251434, -0.10453227162361145, -0.16352036595344543, 0.18164987862110138, -0.07275111228227615, -0.12702731788158417, 0.4106299579143524, 0.11055423319339752, 0.276161789894104, 0.1125221997499466, 0.24864110350608826, -0.038126930594444275, 0.12112356722354889, 0.18930506706237793, 0.17907315492630005, 0.10966940224170685, -0.18623435497283936, -0.4023370146751404, 0.003463233355432749, 0.14503823220729828, -0.27501046657562256, -0.3871033191680908, 0.016866333782672882, 0.23256555199623108, -0.031214632093906403, 0.20663997530937195, 0.6411821842193604, 0.029245585203170776, -0.060727477073669434, -0.2870144248008728, 0.3920537531375885, -0.2004179060459137, -0.37193503975868225, -0.21115520596504211, 0.029415849596261978, 0.07897794246673584, 0.47799092531204224, 0.44852298498153687, 0.19257095456123352, 0.17078685760498047, 0.07652375847101212, 0.30749908089637756, -0.030429869890213013, 0.34783387184143066, -0.1390855312347412, -0.1838231235742569, 0.5038685202598572, 0.17251411080360413, 0.2774258852005005, 0.3709416687488556, -0.04473647475242615, 0.3362436294555664, -0.26765164732933044, 0.2499227523803711, -0.07064113765954971, -0.07020978629589081, -0.10467547923326492, -0.17909176647663116, -0.06219994276762009, -0.24818086624145508, -0.27721962332725525, -0.2425924688577652, 0.04495540261268616, 0.3533289432525635, 0.332988977432251, 0.09140148013830185, 0.2614319920539856, 0.04692401364445686, -0.5082894563674927, 0.22959604859352112, 0.19736182689666748, -0.5718252062797546, 0.2435259371995926, 0.11412796378135681, 0.11500194668769836, -0.15150806307792664, 0.5392307639122009, 0.18857471644878387, -0.23870360851287842, -0.373827189207077, 0.16014625132083893, -0.22243887186050415, -0.0905250832438469, -0.01475528348237276, 0.2872304916381836, 0.4989398717880249, -0.02679624781012535, -0.1501314342021942, -0.03554816544055939, -0.044875241816043854, 0.20250986516475677, 0.296573668718338, -0.11612410843372345, -0.009144259616732597, -0.18310672044754028, -0.2733328938484192, 0.1318027377128601, -0.2277173101902008, -0.06307161599397659, -0.3197292983531952, 0.21333011984825134, 0.4770822525024414, -0.11543641984462738, -0.029447007924318314, 0.014981058426201344, 0.059177473187446594, 0.022081580013036728, 0.3255888521671295, 0.34373658895492554, 0.4020824730396271, -0.11019749194383621, -0.34732913970947266, -0.2768038213253021, 0.40701034665107727, -0.053277138620615005, 0.22162392735481262, -0.07284414768218994, 0.226083442568779, 0.5821033716201782, 0.410519540309906, 0.25940126180648804, 0.23176291584968567, -0.5193368792533875, 0.36130401492118835, -0.4406261742115021, 0.05158383026719093, 0.03354676067829132, 0.19706641137599945, -0.030835019424557686, 0.19711026549339294, 0.028894834220409393, -0.02497052028775215, 0.11690566688776016, -0.28353428840637207, -0.48027944564819336, 0.15074731409549713, 0.3519212603569031, 0.4329943358898163, -0.056337520480155945, 0.2491338849067688, -0.16484594345092773, -0.4904961585998535, 0.22162678837776184, 0.23567551374435425, 0.27394384145736694, 0.1482762098312378, 0.299621045589447, 0.012831658124923706, -0.3210810124874115, -0.04884495213627815, 0.050614237785339355, 0.3939882516860962, 0.07952246069908142, -0.19152095913887024, -0.13518580794334412, -0.19562198221683502, -0.0039636120200157166, -0.010094394907355309, -0.1725846230983734, 0.5233801007270813, -0.009058527648448944, 0.13383565843105316, -0.1906447559595108, -0.17937405407428741, 0.3590890169143677, -0.5298818945884705, -0.17969611287117004, -0.3582462966442108, 0.34860002994537354, -0.10484983772039413, 0.04684623330831528, -0.2091328203678131, 0.19602340459823608, 0.24377578496932983, 0.08305074274539948, -0.16319654881954193, -0.05136348679661751, 0.05485304072499275, -0.02721056528389454, -0.1679777055978775, 0.21016079187393188, -0.21495532989501953, -0.08433684706687927, -0.05802730843424797, -0.05453594774007797 ]
https://github.com/huggingface/datasets/pull/2047
Multilingual dIalogAct benchMark (miam)
Hi! I will follow up right now with one more pull request as I have new anonymous citation information to include.
My collaborators (@EmileChapuis, @PierreColombo) and I within the Affective Computing team at Telecom Paris would like to anonymously publish the miam dataset. It is assocated with a publication currently under review. We will update the dataset with full citations once the review period is over.
21
text: Multilingual dIalogAct benchMark (miam) My collaborators (@EmileChapuis, @PierreColombo) and I within the Affective Computing team at Telecom Paris would like to anonymously publish the miam dataset. It is assocated with a publication currently under review. We will update the dataset with full citations once the review period is over. Hi! I will follow up right now with one more pull request as I have new anonymous citation information to include.
[ -0.31171366572380066, 0.4226381182670593, -0.13041990995407104, 0.15629887580871582, -0.2619933485984802, -0.11193834245204926, 0.3239627778530121, -0.05095226690173149, -0.17296501994132996, 0.020155325531959534, -0.09455959498882294, -0.03274722397327423, -0.28295931220054626, 0.13544169068336487, 0.15762527287006378, 0.3264361619949341, -0.17637339234352112, -0.16974741220474243, -0.1777016818523407, -0.0787467509508133, -0.08793623745441437, 0.2760479748249054, 0.0013821423053741455, 0.02429993823170662, 0.10894481092691422, -0.31949490308761597, 0.006744382902979851, -0.01630581170320511, -0.4631223678588867, -0.17162583768367767, -0.1759990006685257, 0.38055339455604553, -0.2255992740392685, 0.24957001209259033, -0.00011684188939398155, -0.22154977917671204, 0.19871623814105988, -0.2220221906900406, -0.0145183764398098, -0.21184797585010529, -0.3579762578010559, 0.11283636093139648, -0.15582026541233063, -0.32126396894454956, -0.1470048725605011, 0.08834713697433472, -0.1568370759487152, -0.5987713932991028, 0.09596068412065506, 0.09482415020465851, 0.15056779980659485, 0.44093382358551025, -0.28352850675582886, -0.014066879637539387, -0.12360832840204239, -0.012513302266597748, -0.02937380224466324, -0.1851520836353302, 0.26407623291015625, 0.10206639021635056, -0.17801660299301147, 0.2808704376220703, -0.10844225436449051, -0.3002445697784424, -0.08964746445417404, -0.06392554938793182, -0.02642134577035904, -0.30324888229370117, 0.2669089734554291, 0.46766403317451477, 0.8244298100471497, -0.6112315654754639, -0.19092698395252228, 0.2205950915813446, 0.030770275741815567, 0.23275671899318695, -0.28655576705932617, 0.3065360486507416, -0.21460022032260895, 0.33386099338531494, -0.04409751668572426, -0.029583968222141266, 0.06865477561950684, -0.28169524669647217, 0.1916395127773285, -0.011989995837211609, -0.0265125073492527, -0.05072440952062607, -0.08453981578350067, -0.1340557485818863, -0.043030958622694016, -0.02911248430609703, 0.22090063989162445, -0.04741806164383888, 0.09980886429548264, -0.21938510239124298, 0.20088928937911987, -0.2957803010940552, 0.22146674990653992, -0.2876517176628113, 0.2118609994649887, 0.1495911180973053, 0.027400095015764236, 0.042062144726514816, 0.3353128433227539, -0.08333814144134521, 0.3358718454837799, -0.1492704153060913, 0.0495418980717659, 0.029203636571764946, 0.1938856989145279, 0.1552129089832306, 0.22174903750419617, 0.2616824805736542, -0.1530931293964386, 0.13025501370429993, -0.4323824644088745, -0.1980416625738144, -0.17708024382591248, -0.09173756092786789, 0.07130376994609833, -0.08909085392951965, -0.26693981885910034, 0.051991336047649384, 0.10544402152299881, -0.3278929889202118, 0.0314006507396698, -0.005881018936634064, -0.12108315527439117, -0.406630277633667, -0.3198750615119934, 0.1471843123435974, -0.023190630599856377, -0.056778304278850555, 0.0789998322725296, 0.40366533398628235, 0.04814501851797104, -0.17050407826900482, 0.5160538554191589, 0.28789183497428894, 0.5285820364952087, 0.11192341148853302, 0.1438145786523819, 0.17722924053668976, 0.19238987565040588, 0.11717133969068527, 0.12742216885089874, -0.15857143700122833, -0.2982628047466278, 0.2930488586425781, 0.13537882268428802, 0.05342143401503563, 0.24296946823596954, 0.07338348031044006, -0.22515243291854858, 0.11653661727905273, 0.07752810418605804, 0.3505980372428894, -0.0972435250878334, 0.0945824384689331, 0.4247961640357971, 0.14152196049690247, 0.02192169800400734, -0.10971071571111679, 0.09757339954376221, 0.4304744601249695, 0.057336483150720596, -0.14230388402938843, -0.046287234872579575, -0.2552995979785919, 0.09127306193113327, 0.41998782753944397, -0.10617706924676895, 0.1127801239490509, 0.1201607882976532, 0.2535157799720764, 0.5591216683387756, -0.5345438718795776, -0.4872322380542755, -0.13940773904323578, -0.5651193261146545, -0.19038520753383636, 0.2943052351474762, 0.18747393786907196, 0.2973107695579529, -0.19504621624946594, 0.39215728640556335, 0.1863338053226471, 0.08372028917074203, -0.08791399747133255, -0.2798195779323578, -0.5022414922714233, 0.02282276190817356, 0.1111469566822052, -0.054500941187143326, -0.06800910085439682, 0.25207361578941345, 0.017656542360782623, 0.3645825982093811, 0.08525696396827698, 0.12477198988199234, 0.29116982221603394, 0.24896231293678284, -0.5229780077934265, 0.2893534302711487, 0.08187920600175858, 0.11874708533287048, 0.06400180608034134, -0.23210430145263672, 0.3884502649307251, -0.4392305612564087, -0.2243947982788086, 0.1700402796268463, -0.10355499386787415, 0.2886599600315094, 0.015795426443219185, -0.017517652362585068, -0.30511894822120667, 0.06599800288677216, 0.30677130818367004, -0.22304993867874146, 0.18735726177692413, -0.18493735790252686, -0.09066488593816757, -0.3803752362728119, -0.21902760863304138, 0.03566759452223778, -0.21910633146762848, 0.2829163670539856, 0.09050939232110977, -0.1164436861872673, -0.01544555276632309, 0.15953615307807922, -0.10768093913793564, -0.1701999455690384, 0.2409084439277649, 0.45823463797569275, 0.7074669599533081, -0.014504717662930489, -0.42428383231163025, 0.35228702425956726, 0.08588354289531708, -0.16446343064308167, 0.07063024491071701, -0.07372317463159561, 0.6801310181617737, -0.3924679160118103, -0.2546399235725403, -0.023265764117240906, 0.15624819695949554, 0.06661058217287064, 0.05736878886818886, -0.35496577620506287, -0.31835582852363586, 0.3953220248222351, 0.13123726844787598, 0.14830273389816284, 0.03128192946314812, 0.001339547336101532, 0.3866780698299408, 0.38355591893196106, -0.044746629893779755, 0.2786845862865448, 0.01952308788895607, -0.1305149793624878, 0.0012024659663438797, -0.08699636906385422, -0.32233238220214844, -0.017350390553474426, 0.12711311876773834, 0.3586258590221405, -0.07580456137657166, 0.45226287841796875, -0.11259236931800842, 0.1840958595275879, -0.26956987380981445, -0.49402621388435364, 0.15281403064727783, 0.011829529888927937, 0.14215540885925293, -0.3933214843273163, 0.08267025649547577, -0.059245556592941284, 0.10823094099760056, 0.07622595131397247, -0.04300970584154129, 0.0698995441198349, -0.05746419355273247, 0.057824183255434036, -0.15588298439979553, -0.14676843583583832, 0.04981127381324768, -0.08063963055610657, -0.14140817523002625, 0.2317957580089569, 0.2889527976512909, -0.17771896719932556, 0.5068777799606323, -0.09331096708774567, 0.2010011374950409, -0.07637099921703339, -0.27969470620155334, 0.1102999895811081, 0.10425674915313721, 0.00103851780295372, 0.20950569212436676, 0.24912545084953308, -0.15524810552597046, 0.375369131565094, -0.1554989218711853, -0.506615161895752, 0.015642881393432617, -0.025241829454898834, 0.02531133033335209, 0.1488620787858963, -0.14304973185062408, -0.20461060106754303, 0.12186434864997864, -0.2704785466194153, -0.17917102575302124, -0.37396422028541565, -0.033761776983737946, -0.029402166604995728, -0.0405343659222126, -0.0476156622171402, -0.14226847887039185, -0.36802491545677185, -0.14473402500152588, 0.41795337200164795, -0.40588656067848206, -0.051220521330833435, -0.08785323053598404, -0.28632640838623047, 0.11863677948713303, -0.046277448534965515, -0.1475600153207779, -0.16133089363574982, -0.5465558171272278, 0.26680243015289307, -0.09445371478796005, -0.19988979399204254, -0.19407135248184204, 0.1296313852071762, 0.08213169127702713, 0.19693976640701294, -0.3590736985206604, 0.12932592630386353, 0.2597658634185791, 0.2725611925125122, 0.15815691649913788, -0.07295969128608704, 0.3845444917678833, 0.2643279433250427, -0.20083314180374146, -0.2663307189941406, -0.07411227375268936, -0.25525417923927307, 0.10454180836677551, 0.1541435718536377, 0.024675505235791206, -0.07262371480464935, 0.3427267372608185, 0.42670905590057373, 0.3544965982437134, 0.16432219743728638, -0.03795894980430603, 0.4560173451900482, 0.07197646796703339, 0.16242772340774536, -0.38230377435684204, 0.08027832955121994, 0.1186552420258522, 0.1066235601902008, 0.2167663872241974, -0.13059356808662415, -0.5132996439933777, -0.05785666033625603, -0.26502376794815063, -0.3043529987335205, -0.2550791800022125, 0.1772521585226059, 0.03457538038492203, 0.5841823220252991, 0.20505079627037048, -0.10989256203174591, -0.4983598589897156, -0.20270290970802307, 0.16111202538013458, 0.2527339458465576, -0.0687767043709755, -0.015359840355813503, 0.06080729886889458, 0.43250811100006104, -0.7739993333816528, 0.15262003242969513, -0.06720878928899765, 0.3044392466545105, -0.41989728808403015, 0.22384729981422424, 0.10724382102489471, -0.08939450234174728, 0.31766316294670105, -0.6595296263694763, 0.04524800926446915, 0.30316805839538574, 0.3254019021987915, -0.16566027700901031, 0.15976426005363464, -0.3860987722873688, 0.5307050347328186, 0.5383155345916748, 0.29923778772354126, -0.2225167453289032, -0.0995841696858406, -0.2072732299566269, -0.15932998061180115, -0.10388073325157166, -0.14377163350582123, -0.2778201997280121, -0.37808918952941895, -0.027923986315727234, 0.08674752712249756, 0.16505691409111023, -0.012133387848734856, 0.088277667760849, 0.14550068974494934, 0.45057302713394165, 0.20324674248695374, 0.36683493852615356, -0.20813411474227905, -0.2245618999004364, 0.34616389870643616, 0.06718426942825317, 0.30278098583221436, -0.289432168006897, -0.06371255964040756, 0.3267108201980591, -0.06675185263156891, -0.3821764588356018, 0.008767969906330109, -0.38079461455345154, 0.27982112765312195, 0.5808200836181641, 0.19411700963974, 0.47488313913345337, 0.2475735992193222, -0.10450327396392822, 0.047287702560424805, -0.1494220644235611, 0.06762415170669556, -0.06093599647283554, -0.11624456942081451, -0.1874282956123352, 0.15539325773715973, 0.12879183888435364, -0.23799555003643036, 0.42670726776123047, -0.14303059875965118, -0.08402881771326065, 0.06148912012577057, 0.18279901146888733, 1.369295597076416, -0.07699437439441681, 0.2566393315792084, -0.6128180027008057, -0.1754266917705536, 0.15428175032138824, -0.12657296657562256, 0.04475424438714981, -0.14705023169517517, -0.021160218864679337, -0.20997853577136993, -0.2735363841056824, 0.12756532430648804, 0.043626245111227036, -0.15314576029777527, -0.09403888136148453, -0.3275914192199707, -0.2580038011074066, 0.14269107580184937, 0.31968724727630615, 0.02682439237833023, -0.1394408792257309, 0.283099889755249, 0.021644283086061478, 0.20227037370204926, 0.005497220903635025, 0.17430800199508667, -0.4908227324485779, -0.031339675188064575, -0.1967511922121048, -0.3983127474784851, -0.13444149494171143, -0.12340334802865982, 0.09674827754497528, 0.04643063247203827, -0.3036092221736908, 0.5803449749946594, 0.079008549451828, 0.5009323954582214, -0.06210313364863396, -0.0461416020989418, 0.03284141421318054, 0.2180304229259491, -0.3106558322906494, 0.2904646098613739, 0.1379891335964203, -0.1720723956823349, -0.09231670945882797, -0.3100040853023529, 0.3065571188926697, 0.14060291647911072, -0.19958023726940155, -0.25899118185043335, -0.07119318842887878, -0.12429030239582062, -0.1286761313676834, 0.5068168044090271, 0.3263351321220398, -0.09758111089468002, 0.05500461533665657, 0.05395197123289108, 0.4087439775466919, -0.20637579262256622, 0.6080396771430969, -0.06707651913166046, -0.12173856794834137, 0.0077371746301651, 0.7294657230377197, 0.31738612055778503, 0.12886831164360046, 0.09148316085338593, 0.037968959659338, -0.17885632812976837, -0.21988752484321594, -0.03245020657777786, 0.22420793771743774, 0.06332278996706009, -0.09058719128370285, -0.21522504091262817, 0.026077210903167725, -0.10553436726331711, 0.4815590977668762, 0.11818371713161469, 0.17175543308258057, -0.25353124737739563, -0.278802752494812, -0.0745261162519455, 0.3392432928085327, 0.045556891709566116, -0.1582653522491455, -0.2270648181438446, -0.20279626548290253, -0.13080765306949615, 0.18702396750450134, -0.3238683342933655, 0.1607452929019928, -0.16800165176391602, 0.1092759519815445, 0.327472060918808, -0.2968127727508545, 0.2152794450521469, 0.02962401881814003, -0.03591542690992355, -0.0941876620054245, -0.5832025408744812, -0.17029687762260437, -0.08666566014289856, 0.18796150386333466, -0.2115747332572937, 0.10423188656568527, 0.21351177990436554, -0.14270436763763428, -0.14938169717788696, 0.2170197069644928, -0.07184763997793198, 0.06331894546747208, 0.253510057926178, -0.2703617811203003, -0.4588024914264679, 0.2763110399246216, -0.32364344596862793, -0.08517573028802872, 0.2533525824546814, -0.08090320229530334, -0.23548252880573273, 0.21359194815158844, -0.08555744588375092, -0.08819090574979782, 0.4180925190448761, 0.09835432469844818, 0.3286723494529724, 0.1709047257900238, 0.34483984112739563, -0.013265185058116913, 0.08722159266471863, 0.13600879907608032, 0.21707412600517273, 0.03625224530696869, -0.1948697715997696, -0.34457582235336304, -0.028781931847333908, 0.12569764256477356, -0.24616409838199615, -0.393600732088089, -0.011727338656783104, 0.3196418583393097, -0.06366531550884247, 0.2292155623435974, 0.5921789407730103, 0.021835051476955414, 0.035711269825696945, -0.25954627990722656, 0.5603248476982117, -0.13374026119709015, -0.2957500219345093, -0.35306107997894287, 0.06477868556976318, -0.0017694681882858276, 0.44238489866256714, 0.5287292003631592, 0.16146798431873322, 0.035370856523513794, -0.007542245090007782, 0.17848649621009827, -0.03634258359670639, 0.13901059329509735, -0.12137908488512039, -0.1672094166278839, 0.4987342655658722, 0.14855928719043732, 0.22707921266555786, 0.4218308627605438, -0.026886172592639923, 0.3631404638290405, -0.1538001298904419, 0.27673089504241943, -0.031064245849847794, 0.043162744492292404, -0.1551046371459961, -0.048751410096883774, -0.20877374708652496, -0.2093714475631714, -0.15015947818756104, -0.24632331728935242, 0.06928285956382751, 0.34665393829345703, 0.36005648970603943, 0.11999091506004333, 0.29553765058517456, 0.06149062514305115, -0.4362201392650604, 0.11976487189531326, 0.24270886182785034, -0.5651055574417114, 0.20095811784267426, 0.10751184076070786, 0.10461796075105667, -0.06519217789173126, 0.5778392553329468, 0.2108209878206253, -0.278959721326828, -0.3482680320739746, 0.1479724943637848, -0.1639590710401535, -0.13371828198432922, -0.04919528216123581, 0.29735785722732544, 0.4069764018058777, -0.036746833473443985, -0.17684125900268555, -0.036543138325214386, 0.0012535946443676949, 0.09638937562704086, 0.36239123344421387, -0.09881393611431122, 0.0010610325261950493, -0.09260515123605728, -0.20165777206420898, 0.09300587326288223, -0.14964286983013153, -0.11262912303209305, -0.3097599148750305, 0.2733249366283417, 0.4628571569919586, -0.05378253385424614, -0.02575642056763172, -0.04889862611889839, 0.05010800063610077, -0.04166143015027046, 0.26469311118125916, 0.2726025879383087, 0.34287354350090027, -0.12128151208162308, -0.3540772795677185, -0.28444501757621765, 0.346401184797287, 0.020435279235243797, 0.17486858367919922, -0.11116961389780045, 0.27444228529930115, 0.6575800180435181, 0.36266034841537476, 0.0856507271528244, 0.04690920561552048, -0.5152065753936768, 0.46327608823776245, -0.4193573296070099, 0.07556411623954773, 0.05762813240289688, 0.1611623913049698, -0.05143951624631882, 0.2548496723175049, 0.06330564618110657, -0.11199310421943665, 0.0780913457274437, -0.36294639110565186, -0.4879056513309479, 0.15348197519779205, 0.23421107232570648, 0.3833039104938507, -0.0954764261841774, 0.23520852625370026, -0.16645708680152893, -0.43604159355163574, 0.28514769673347473, 0.21384009718894958, 0.27973589301109314, 0.0679401159286499, 0.2736853063106537, 0.04755616933107376, -0.27183833718299866, -0.010838005691766739, 0.027848513796925545, 0.31554412841796875, 0.03240204602479935, -0.16353383660316467, -0.16539789736270905, -0.20043650269508362, -0.13160967826843262, 0.003938938956707716, -0.21120215952396393, 0.5346331596374512, 0.01998450607061386, 0.10144847631454468, -0.22961726784706116, -0.2281884253025055, 0.3987412452697754, -0.5782573819160461, -0.2147534340620041, -0.3606133460998535, 0.3489629924297333, -0.22347751259803772, 0.0650695413351059, -0.19378745555877686, 0.22318074107170105, 0.20562244951725006, 0.04244578629732132, -0.17791366577148438, -0.04520350322127342, 0.12600627541542053, -0.02629646100103855, -0.19116783142089844, 0.13479462265968323, -0.1392267942428589, -0.07173773646354675, -0.11239469051361084, -0.04661743342876434 ]
https://github.com/huggingface/datasets/pull/2045
Preserve column ordering in Dataset.rename_column
I don't know how to trigger it manually, but an empty commit should do the job
Currently `Dataset.rename_column` doesn't necessarily preserve the order of the columns: ```python >>> from datasets import Dataset >>> d = Dataset.from_dict({'sentences': ["s1", "s2"], 'label': [0, 1]}) >>> d Dataset({ features: ['sentences', 'label'], num_rows: 2 }) >>> d.rename_column('sentences', 'text') Dataset({ features: ['label', 'text'], num_rows: 2 }) ``` This PR fixes this.
16
text: Preserve column ordering in Dataset.rename_column Currently `Dataset.rename_column` doesn't necessarily preserve the order of the columns: ```python >>> from datasets import Dataset >>> d = Dataset.from_dict({'sentences': ["s1", "s2"], 'label': [0, 1]}) >>> d Dataset({ features: ['sentences', 'label'], num_rows: 2 }) >>> d.rename_column('sentences', 'text') Dataset({ features: ['label', 'text'], num_rows: 2 }) ``` This PR fixes this. I don't know how to trigger it manually, but an empty commit should do the job
[ 0.09557732939720154, -0.03349702060222626, -0.17324312031269073, -0.32554805278778076, 0.37696385383605957, 0.13771528005599976, 0.39013931155204773, 0.28650158643722534, -0.026549512520432472, 0.2330000400543213, 0.11335285753011703, 0.45338335633277893, 0.08427225053310394, 0.2392740100622177, -0.3032554090023041, -0.16961339116096497, 0.09640923142433167, 0.2936689257621765, -0.03307275474071503, 0.021172650158405304, -0.2997065782546997, -0.004303349182009697, -0.2237195521593094, -0.08105692267417908, -0.11068270355463028, 0.12259730696678162, 0.037151969969272614, 0.0008603818714618683, -0.13251043856143951, -0.35038214921951294, -0.14425761997699738, 0.32879024744033813, -0.04751395806670189, 0.2855648100376129, -0.00009848265472101048, -0.23850400745868683, 0.05284669250249863, 0.022856639698147774, -0.13712681829929352, -0.31132686138153076, -0.14099574089050293, -0.28348973393440247, -0.08401954174041748, -0.30746957659721375, -0.17900416254997253, -0.1681920737028122, -0.011290905997157097, -0.09543263912200928, 0.19573581218719482, 0.2329118549823761, 0.3528623878955841, -0.06258115917444229, 0.18657854199409485, -0.22794020175933838, 0.10855996608734131, -0.015736766159534454, -0.0851060003042221, -0.024001065641641617, -0.09206894040107727, 0.010948015376925468, 0.14194147288799286, 0.3644179701805115, -0.2025214284658432, 0.08504223823547363, 0.10098876059055328, 0.11151781678199768, 0.02944944053888321, -0.1653783917427063, 0.24013012647628784, 0.05187525972723961, 0.5715156197547913, -0.4217959940433502, -0.3663158714771271, -0.10103888809680939, 0.3248874843120575, -0.4073512554168701, 0.10720312595367432, -0.041199833154678345, 0.3335338532924652, 0.08352290093898773, 0.15522970259189606, -0.12121094018220901, 0.005964420735836029, -0.004402376711368561, -0.2566227614879608, 0.264620304107666, -0.041126422584056854, -0.15172243118286133, 0.031601905822753906, -0.23071472346782684, 0.13889652490615845, 0.09297819435596466, 0.13916178047657013, -0.05433725193142891, -0.19687439501285553, -0.07096011191606522, 0.13605743646621704, -0.14747968316078186, -0.11772285401821136, -0.029904715716838837, -0.25349339842796326, 0.045006055384874344, 0.2114800214767456, 0.009959578514099121, -0.1402159482240677, 0.3140217661857605, 0.14982694387435913, 0.41442301869392395, 0.2929307818412781, 0.16535067558288574, -0.2054828256368637, -0.08060169219970703, -0.07687622308731079, -0.10042740404605865, 0.1537049114704132, 0.15093404054641724, 0.16583998501300812, -0.08813720941543579, -0.13994523882865906, 0.010313139297068119, 0.04273255169391632, 0.006291764322668314, -0.21071624755859375, 0.3450952470302582, 0.019848614931106567, 0.3526167571544647, 0.04423035681247711, 0.1921563744544983, 0.04545888304710388, 0.15855500102043152, -0.2206403762102127, -0.13696743547916412, -0.10275093466043472, -0.030233105644583702, 0.02154899761080742, 0.27663612365722656, 0.10010518878698349, 0.09116565436124802, 0.03303542733192444, -0.04957839474081993, -0.12631484866142273, 0.05320758745074272, -0.0470399335026741, 0.18360482156276703, 0.04053309187293053, 0.1687714159488678, 0.21013784408569336, -0.18927471339702606, -0.03055158630013466, 0.21051886677742004, -0.17467069625854492, -0.1564716249704361, -0.3874267041683197, 0.3612412214279175, 0.08012267202138901, -0.11050015687942505, 0.1690431535243988, -0.04961918666958809, 0.38654017448425293, -0.12613768875598907, 0.025059379637241364, -0.13967996835708618, 0.012203674763441086, -0.09847361594438553, -0.03934142738580704, 0.0971420630812645, -0.3475823998451233, -0.011141173541545868, 0.008440699428319931, 0.17917500436306, 0.048653747886419296, 0.027330409735441208, 0.12140955775976181, -0.030192546546459198, 0.05626542866230011, 0.1593223512172699, 0.02280263602733612, -0.370454877614975, -0.26752346754074097, -0.22286319732666016, -0.3310202360153198, -0.020465455949306488, 0.25746384263038635, 0.07409907132387161, 0.24453400075435638, -0.026584910228848457, 0.13252174854278564, 0.08613824099302292, 0.34212636947631836, 0.2126203328371048, -0.10870254039764404, -0.050023939460515976, 0.06934694200754166, -0.1367359459400177, -0.09950877726078033, 0.2565474510192871, -0.08874370902776718, 0.0391094945371151, 0.11370592564344406, -0.16101931035518646, -0.06802655011415482, 0.20742638409137726, 0.29937416315078735, 0.31320708990097046, 0.06458649039268494, -0.10610350221395493, -0.22225305438041687, 0.0643775537610054, 0.39639630913734436, 0.046697087585926056, -0.18031446635723114, -0.4498211145401001, -0.3534831404685974, -0.19521626830101013, -0.11769552528858185, 0.04069673642516136, 0.3000674247741699, 0.16921468079090118, -0.09863990545272827, -0.010157926008105278, -0.301592618227005, 0.19628189504146576, -0.19617104530334473, 0.04928798973560333, -0.09032835066318512, 0.016067059710621834, -0.17754150927066803, -0.020881887525320053, -0.004836179316043854, 0.26838335394859314, 0.14003285765647888, 0.1542564332485199, -0.036432381719350815, 0.3995542526245117, 0.057477615773677826, -0.05882821977138519, -0.16787418723106384, -0.09879966080188751, -0.15521323680877686, 0.019124876707792282, -0.08704201877117157, 0.024492744356393814, -0.04832941293716431, 0.11097627133131027, -0.40492263436317444, 0.397186279296875, 0.06732144951820374, 0.18972192704677582, 0.10456724464893341, 0.08175462484359741, 0.10670503973960876, -0.2061609923839569, -0.11876214295625687, -0.5014421939849854, -0.022846896201372147, -0.11548802256584167, -0.11284463107585907, 0.12455659359693527, -0.4193635880947113, 0.21776454150676727, 0.6485974788665771, 0.1506798267364502, 0.23277735710144043, 0.0766090676188469, 0.042106494307518005, 0.08894404768943787, -0.03216434270143509, 0.23653410375118256, 0.16677746176719666, 0.3710695803165436, -0.08546271920204163, 0.011670499108731747, -0.0360601469874382, -0.190948948264122, 0.06034985929727554, -0.013234876096248627, -0.01115438062697649, 0.37003952264785767, 0.44165658950805664, 0.03527992591261864, -0.3499130606651306, -0.010697752237319946, 0.001075083389878273, 0.10012368112802505, -0.2902142405509949, -0.11868955940008163, -0.19978494942188263, -0.21954098343849182, -0.015102722682058811, -0.20523376762866974, -0.04729326441884041, -0.2875785529613495, 0.15667453408241272, 0.05417835712432861, -0.14769527316093445, 0.3857196569442749, 0.1459708958864212, -0.04707188904285431, 0.09623008966445923, -0.16023655235767365, -0.024056989699602127, -0.313798189163208, 0.14690852165222168, 0.20201605558395386, -0.29320961236953735, 0.17208200693130493, 0.15502360463142395, -0.145554319024086, -0.24063843488693237, -0.1498708426952362, -0.37702080607414246, -0.22188836336135864, -0.278106153011322, -0.0030732881277799606, 0.21142983436584473, 0.24504803121089935, -0.03300440311431885, -0.14497973024845123, 0.14016565680503845, 0.021839233115315437, -0.2911076545715332, 0.1175057590007782, 0.11727867275476456, -0.050722140818834305, -0.16850320994853973, -0.5435629487037659, -0.0998617559671402, -0.43095651268959045, 0.1723272204399109, 0.13418103754520416, 0.07432909309864044, -0.001584160141646862, 0.02808423712849617, -0.24640578031539917, 0.028950192034244537, 0.2127820998430252, -0.25424468517303467, 0.029228147119283676, 0.27511364221572876, -0.1852056086063385, -0.2175232619047165, -0.19418278336524963, 0.05339566618204117, -0.12059269845485687, -0.1762942224740982, -0.09045669436454773, -0.33867573738098145, -0.28423887491226196, 0.23987647891044617, -0.0017899498343467712, 0.1319250762462616, 0.33198100328445435, 0.2848546802997589, -0.31201326847076416, -0.08734423667192459, 0.0429077185690403, 0.10270856320858002, 0.20482811331748962, -0.0006489381194114685, -0.205788254737854, 0.3826035261154175, 0.0075026340782642365, -0.056937411427497864, -0.009771525859832764, 0.11892223358154297, 0.17499828338623047, -0.1614506095647812, 0.20189858973026276, -0.3291502892971039, -0.17958824336528778, 0.04910559952259064, 0.007192939519882202, 0.17912231385707855, 0.1927572786808014, -0.08653075993061066, 0.1759726107120514, 0.03197517991065979, 0.1871897578239441, -0.1287490278482437, -0.082767054438591, -0.17221064865589142, -0.2681778371334076, 0.23058006167411804, 0.11702336370944977, 0.08419273048639297, -0.2133498191833496, -0.12451261281967163, 0.0008379807695746422, 0.024131014943122864, -0.07871673256158829, -0.09339483827352524, -0.5148676633834839, 0.038722120225429535, -0.27806147933006287, 0.10347616672515869, 0.12054333835840225, 0.08771345019340515, 0.16034960746765137, -0.23733633756637573, -0.013629384338855743, -0.11143544316291809, 0.5588269233703613, -0.11465612798929214, -0.07210784405469894, 0.23552578687667847, 0.2553407549858093, -0.07801888883113861, -0.06259899586439133, -0.2608795166015625, 0.015336161479353905, 0.03408825397491455, 0.5285162925720215, -0.31240037083625793, 0.030108336359262466, 0.3714289367198944, 0.11562665551900864, 0.02357511594891548, -0.04550229012966156, -0.4243379533290863, -0.16627377271652222, -0.3720322251319885, 0.08698105067014694, 0.14509746432304382, 0.31673306226730347, -0.3202052712440491, 0.08814501762390137, 0.011524754576385021, -0.2436700463294983, 0.020395614206790924, 0.21356864273548126, 0.37957510352134705, -0.07637818157672882, -0.053554337471723557, 0.05766676366329193, -0.025044895708560944, -0.002185441553592682, 0.26103416085243225, -0.3148365616798401, -0.4701014757156372, -0.20683875679969788, -0.22243987023830414, 0.2982581853866577, 0.07638142257928848, 0.005622020922601223, 0.36763790249824524, -0.24174955487251282, 0.274996280670166, 0.023457633331418037, -0.11362767219543457, 0.3132674992084503, -0.0723399743437767, -0.2529204785823822, -0.48427051305770874, 0.32488125562667847, 0.08082649111747742, -0.028338804841041565, -0.05027632415294647, 0.3663145899772644, -0.27040407061576843, 0.38000476360321045, -0.02113834023475647, 0.7616288661956787, 0.0563293993473053, 0.13037800788879395, 0.08507992327213287, -0.11096502840518951, 0.5496417880058289, -0.030029088258743286, 0.2972591519355774, -0.28993937373161316, -0.2543468177318573, 0.04452718794345856, 0.0011774078011512756, 0.07366713136434555, 0.09054745733737946, -0.40129926800727844, 0.23660528659820557, -0.4372504949569702, 0.19884541630744934, 0.014534451067447662, 0.08510471880435944, -0.01850344054400921, -0.167580708861351, -0.24497193098068237, 0.24477440118789673, 0.08320771902799606, -0.07760050892829895, -0.023739317432045937, 0.1792450100183487, -0.030394157394766808, -0.08659960329532623, -0.019592151045799255, -0.017169352620840073, 0.07968385517597198, 0.09606696665287018, -0.03855382278561592, -0.16669508814811707, -0.12527857720851898, 0.28222939372062683, 0.3855084180831909, 0.38369184732437134, 0.0511111319065094, 0.21539150178432465, 0.4363851845264435, 0.1955728679895401, 0.13056974112987518, 0.0674343928694725, 0.24347278475761414, -0.021553704515099525, -0.14960746467113495, -0.15381699800491333, 0.15244647860527039, -0.1339254081249237, -0.29139477014541626, -0.06794597208499908, 0.15390625596046448, -0.22202903032302856, 0.002558063715696335, 0.18645161390304565, 0.17973192036151886, -0.525589108467102, 0.2886953353881836, -0.3289550542831421, -0.1350686401128769, 0.19773730635643005, -0.1442856639623642, -0.14661867916584015, -0.09706495702266693, 0.49879056215286255, 0.09891534596681595, 0.15655586123466492, 0.2837226390838623, 0.1829902082681656, -0.2946898937225342, -0.304892897605896, -0.2179672122001648, -0.20076164603233337, -0.21386456489562988, 0.3538009822368622, 0.09623149037361145, -0.2542639374732971, 0.06578261405229568, 0.24269187450408936, -0.09080436825752258, 0.11808954179286957, -0.17683444917201996, -0.12636584043502808, -0.09026220440864563, 0.08025360852479935, 0.1666247844696045, 0.14991788566112518, -0.05717013031244278, 0.426254540681839, -0.17155832052230835, 0.023906134068965912, -0.48883047699928284, -0.12773916125297546, -0.24188627302646637, 0.21369755268096924, 0.22764870524406433, -0.10884255915880203, -0.13289062678813934, -0.06585367023944855, 0.3818134367465973, 0.22134050726890564, 0.20954209566116333, -0.4815314710140228, -0.1721421778202057, 0.0051925331354141235, -0.12557780742645264, 0.21160255372524261, 0.006608560681343079, -0.21067236363887787, -0.29291990399360657, -0.1766139715909958, 0.10019008815288544, 0.25162360072135925, 0.09281089901924133, 0.31413576006889343, -0.05341934785246849, 0.14242419600486755, 0.3772768974304199, -0.0320097878575325, -0.11800260841846466, -0.3059142827987671, -0.16125671565532684, 0.18562667071819305, -0.17815716564655304, 0.19686895608901978, -0.11000184714794159, 0.04877408593893051, 0.13476359844207764, 0.07767127454280853, 0.12788501381874084, -0.26290905475616455, -0.04676467925310135, -0.03644406422972679, 0.47865599393844604, 0.20206938683986664, -0.03722786158323288, -0.3233087360858917, 0.29194989800453186, 0.44947031140327454, -0.6515467166900635, -0.2059430181980133, -0.00041963905096054077, -0.07091611623764038, 0.27331385016441345, 0.08475998044013977, 0.0035553500056266785, 0.06094895303249359, -0.2866981029510498, 0.2919747829437256, 0.2485954463481903, -0.20403744280338287, 0.2144206315279007, 0.4656450152397156, 0.19145359098911285, -0.050757426768541336, 0.2039531171321869, 0.07697166502475739, 0.04383543133735657, 0.6465509533882141, 0.3831441104412079, 0.16089075803756714, 0.2715739607810974, -0.02140466496348381, 0.02988268807530403, 0.06208034232258797, 0.3803761601448059, 0.05210050195455551, 0.0020195171236991882, -0.03499861806631088, 0.24562910199165344, -0.03116218000650406, -0.21544554829597473, -0.12935255467891693, -0.1426391899585724, 0.2155158519744873, -0.1269572377204895, -0.2699480354785919, 0.0523761585354805, -0.016481518745422363, 0.04856541007757187, -0.21317382156848907, -0.052870821207761765, 0.11832469701766968, 0.28823062777519226, -0.07409743964672089, 0.20603537559509277, -0.6900667548179626, 0.13398608565330505, -0.11038888245820999, 0.5837807655334473, -0.10878052562475204, -0.006181532517075539, 0.2026725709438324, 0.06400488317012787, 0.19636638462543488, 0.16463130712509155, 0.24143317341804504, 0.11364446580410004, 0.01194669958204031, -0.11191154271364212, -0.28090205788612366, -0.3300817906856537, 0.015961743891239166, 0.13829848170280457, -0.04961732029914856, 0.12989290058612823, 0.062209922820329666, 0.3583550751209259, -0.3256224989891052, 0.1609906107187271, 0.17212849855422974, 0.08389560878276825, -0.1178201287984848, 0.35328948497772217, 0.05500758811831474, -0.42817986011505127, 0.0018881484866142273, 0.010639779269695282, -0.3207657039165497, -0.05638003349304199, 0.20548909902572632, 0.10537467151880264, 0.0775398463010788, -0.24927088618278503, 0.2047201246023178, 0.24166081845760345, 0.11404325067996979, 0.1507827192544937, -0.08921559900045395, -0.04109804704785347, -0.15142768621444702, -0.4802292585372925, 0.14144079387187958, 0.08575565367937088, -0.16826783120632172, 0.08871752768754959, 0.07165157049894333, -0.018063217401504517, -0.18943332135677338, -0.10219177603721619, 0.0017917295917868614, -0.3869333565235138, 0.1418248414993286, -0.29991215467453003, -0.0769108235836029, 0.01701618731021881, -0.03601033240556717, 0.016476783901453018, -0.2317853569984436, -0.10399359464645386, 0.1602141559123993, 0.2533597946166992, -0.17811664938926697, 0.23458313941955566, 0.24676474928855896, -0.09212133288383484, 0.006701312959194183, 0.07645045965909958, 0.1902092695236206, -0.2126263678073883, -0.018242131918668747, -0.0385085828602314, -0.2562207579612732, -0.42239585518836975, 0.15280237793922424, 0.0819319486618042, 0.3317168056964874, 0.06612507998943329, 0.0026406235992908478, -0.07220097631216049, 0.06490885466337204, 0.2197592705488205, 0.07151613384485245, -0.4327555298805237, 0.2623021900653839, 0.28157132863998413, -0.07394959777593613, -0.22783446311950684, 0.06572796404361725, -0.03890933096408844, 0.30830398201942444, -0.11637035757303238, -0.6445748209953308, 0.42956042289733887, -0.03580205515027046, -0.4569258987903595, -0.02271091565489769, 0.3661723732948303, 0.15031465888023376, -0.19052189588546753, -0.4558269679546356, 0.06693326681852341, 0.20602601766586304, 0.048269063234329224, -0.32200002670288086, 0.3773605227470398, -0.09000614285469055, 0.06000066176056862, -0.07553140819072723, 0.22581039369106293, 0.05294155329465866, -0.11482527107000351, -0.16601420938968658, -0.13163751363754272 ]
https://github.com/huggingface/datasets/pull/2043
Support pickle protocol for dataset splits defined as ReadInstruction
@lhoestq But we don't perform conversion to a `NamedSplit` if `_split` is not a string which means it **will** be a `ReadInstruction` after reloading.
Fixes #2022 (+ some style fixes)
24
text: Support pickle protocol for dataset splits defined as ReadInstruction Fixes #2022 (+ some style fixes) @lhoestq But we don't perform conversion to a `NamedSplit` if `_split` is not a string which means it **will** be a `ReadInstruction` after reloading.
[ -0.30634957551956177, -0.2092614471912384, -0.12227928638458252, 0.051605336368083954, 0.2736223340034485, -0.23374596238136292, 0.18754209578037262, 0.26288795471191406, 0.29580241441726685, 0.14917293190956116, -0.2701093256473541, 0.5687430500984192, -0.1253247708082199, 0.49759191274642944, -0.032712630927562714, -0.010244626551866531, 0.04436950758099556, 0.26653212308883667, -0.26072272658348083, 0.12078966200351715, -0.22441762685775757, 0.11305537074804306, -0.2915427088737488, -0.13797849416732788, -0.07960689067840576, -0.13052204251289368, -0.003579612821340561, 0.4374031126499176, -0.2048656940460205, -0.30385756492614746, 0.023529505357146263, 0.12767194211483002, -0.19469374418258667, 0.0857042595744133, -0.00010801302414620295, 0.05990283191204071, 0.41976380348205566, -0.22502806782722473, -0.3540726900100708, 0.013834193348884583, -0.7133664488792419, -0.1237383708357811, 0.1722211241722107, -0.2811840772628784, 0.10527742654085159, 0.22775202989578247, 0.13752491772174835, -0.24122966825962067, 0.48304134607315063, -0.038101568818092346, 0.297771692276001, 0.11552704870700836, 0.01411077007651329, -0.16004014015197754, 0.20663008093833923, 0.4718124270439148, -0.3133229613304138, -0.11968088150024414, 0.09610732644796371, 0.15580342710018158, -0.23304995894432068, 0.17401567101478577, 0.04512982815504074, -0.0657152533531189, -0.002965576946735382, -0.14525215327739716, -0.45965641736984253, 0.08521958440542221, 0.041743189096450806, 0.1949891746044159, 0.3659214377403259, -0.0301620215177536, -0.1714865267276764, -0.41356998682022095, -0.244834303855896, -0.4028272032737732, 0.09645801037549973, 0.007858174853026867, 0.11750289797782898, 0.14071603119373322, 0.2394164800643921, -0.35832932591438293, 0.08824630081653595, -0.2763810157775879, 0.13313116133213043, 0.5309995412826538, -0.19507338106632233, 0.18047955632209778, 0.11674119532108307, -0.08115275204181671, 0.1874939650297165, 0.34236153960227966, -0.14874430000782013, -0.1680098921060562, -0.040172506123781204, -0.03343237563967705, -0.1851566731929779, 0.23916548490524292, 0.041810184717178345, 0.2325097918510437, -0.03448112681508064, 0.2955987751483917, -0.24321340024471283, 0.15080374479293823, 0.28320661187171936, -0.2714323103427887, 0.35583245754241943, 0.5715749263763428, 0.2636692523956299, 0.0667189210653305, -0.13575583696365356, 0.10444613546133041, 0.06473425030708313, -0.045322928577661514, -0.4143465757369995, 0.12130755186080933, 0.06083858013153076, -0.06509993970394135, -0.2602307200431824, -0.29139119386672974, 0.09514588862657547, -0.37452346086502075, -0.11416570097208023, 0.3209175169467926, -0.010149302892386913, 0.15288466215133667, 0.1812794804573059, -0.25801700353622437, -0.2662384510040283, -0.4383556842803955, -0.2657439410686493, 0.049841105937957764, -0.39511069655418396, -0.03483661264181137, -0.1313064694404602, 0.21454931795597076, 0.23520752787590027, -0.20772267878055573, -0.11584646999835968, -0.10593447834253311, -0.0016402360051870346, -0.08519254624843597, 0.311512291431427, 0.3060453236103058, 0.05107749626040459, -0.22630229592323303, 0.17604775726795197, -0.17455533146858215, -0.12366673350334167, 0.38119447231292725, -0.2688981294631958, -0.1774522364139557, 0.03153309226036072, 0.21815979480743408, -0.021622417494654655, -0.054324306547641754, 0.13245095312595367, 0.18126463890075684, 0.0791667029261589, -0.16200554370880127, 0.12158411741256714, -0.12724998593330383, -0.15324176847934723, -0.11805453151464462, -0.0454588420689106, 0.2723225951194763, -0.8311821818351746, -0.22948057949543, -0.010215958580374718, -0.38326576352119446, 0.3309811055660248, 0.25656238198280334, -0.16637657582759857, -0.06289009004831314, -0.1988288015127182, 0.7231277823448181, 0.5458968877792358, -0.11869078874588013, -0.08034349977970123, 0.059622880071401596, 0.10363930463790894, -0.29800447821617126, 0.1953088641166687, 0.03762342408299446, 0.05526728183031082, 0.024750567972660065, -0.2927350699901581, 0.02412780560553074, 0.0662769228219986, -0.048979006707668304, -0.24970436096191406, -0.1377800852060318, 0.1273220181465149, -0.1847374141216278, 0.051882751286029816, -0.28296542167663574, 0.2723771631717682, 0.3076004981994629, 0.5001267790794373, 0.1942661553621292, 0.2707786560058594, -0.05912759155035019, 0.18975092470645905, 0.5130293965339661, 0.21915249526500702, -0.05736669898033142, -0.3073045015335083, 0.003738395869731903, -0.206211119890213, -0.15428881347179413, -0.00851353257894516, -0.31923943758010864, -0.4279569089412689, 0.11651498824357986, -0.11807732284069061, 0.15041469037532806, 0.12476286292076111, 0.11061272025108337, -0.13305477797985077, -0.049830980598926544, -0.33399704098701477, 0.2315635234117508, -0.2807868719100952, 0.028762325644493103, -0.3297649025917053, 0.08775664865970612, -0.23909325897693634, -0.14894308149814606, -0.10725139826536179, 0.11280522495508194, 0.12094581872224808, -0.12743574380874634, -0.06443195044994354, 0.43065956234931946, 0.4763992130756378, -0.007225953042507172, -0.07207144051790237, -0.3018055558204651, 0.005307754501700401, -0.23828746378421783, -0.12632136046886444, -0.2720883786678314, 0.16890928149223328, -0.18832138180732727, -0.3252289593219757, 0.10166293382644653, -0.06735770404338837, 0.04780201241374016, 0.023574016988277435, -0.05723272264003754, 0.15948565304279327, -0.3009852170944214, -0.009550018236041069, -0.4469480514526367, -0.17243848741054535, 0.0515216663479805, 0.018812891095876694, -0.08109495043754578, -0.2856137454509735, 0.010828457772731781, 0.763572096824646, -0.08941570669412613, 0.26099857687950134, 0.16528883576393127, 0.10419084131717682, -0.25533154606819153, 0.06019672751426697, 0.20380453765392303, 0.12184290587902069, 0.2152504324913025, 0.20707106590270996, 0.04773632436990738, 0.26392504572868347, -0.2431381791830063, 0.20677989721298218, 0.08569233119487762, 0.14468960464000702, 0.2453964352607727, -0.13283097743988037, -0.25672274827957153, -0.3016500473022461, 0.025326266884803772, 0.19650588929653168, 0.005311993882060051, -0.2330123335123062, -0.31538939476013184, -0.49406909942626953, 0.06965075433254242, 0.0049515375867486, 0.18592695891857147, 0.0018234383314847946, -0.5058305263519287, 0.0276067815721035, 0.15341012179851532, -0.2749241888523102, 0.26770371198654175, -0.35660675168037415, 0.2216343879699707, 0.03176324814558029, 0.1413327157497406, -0.39027413725852966, -0.20782101154327393, -0.08133280277252197, 0.11510539054870605, 0.2301899939775467, -0.028596369549632072, 0.4334586560726166, 0.06288731843233109, -0.21321558952331543, -0.009614001959562302, -0.1992029845714569, 0.2878856956958771, -0.28137117624282837, -0.232402503490448, 0.4901089072227478, -0.11215175688266754, -0.032021619379520416, -0.04357093945145607, 0.14251050353050232, -0.0759466290473938, -0.3688816726207733, -0.4646642506122589, 0.17646002769470215, 0.1556452214717865, -0.282198429107666, -0.5637991428375244, -0.19115595519542694, -0.44088608026504517, 0.5651769638061523, 0.05267881974577904, 0.03991703689098358, 0.18919098377227783, -0.28095734119415283, 0.14904330670833588, -0.010262025520205498, -0.392260879278183, -0.3705269694328308, 0.11236782371997833, -0.03740986809134483, -0.22756707668304443, -0.046979550272226334, 0.13136623799800873, 0.05903792381286621, 0.004484333097934723, -0.2866508364677429, -0.29376494884490967, 0.23241694271564484, -0.26323169469833374, 0.34888187050819397, -0.06477885693311691, 0.025851063430309296, 0.44766178727149963, 0.30882495641708374, -0.19026610255241394, -0.34606999158859253, -0.2999957501888275, 0.24383428692817688, -0.0820794329047203, 0.009378381073474884, 0.032800886780023575, 0.15314242243766785, 0.15186895430088043, 0.46938490867614746, -0.10328009724617004, 0.029008861631155014, 0.14781799912452698, 0.13205532729625702, 0.2403402477502823, -0.30014804005622864, 0.06881429255008698, 0.038279127329587936, -0.21220314502716064, -0.15591378509998322, 0.20055890083312988, -0.11328353732824326, -0.11114317923784256, -0.07587063312530518, -0.08081520348787308, -0.11240282654762268, -0.21692897379398346, 0.033734627068042755, 0.02172549068927765, 0.0012155845761299133, -0.08312107622623444, -0.047134675085544586, 0.1340358555316925, 0.1460798978805542, 0.10125628113746643, -0.1573360413312912, 0.35962849855422974, -0.1556072235107422, -0.250110387802124, 0.19379301369190216, -0.14836743474006653, 0.23420938849449158, 0.07298409193754196, 0.047289639711380005, -0.1819334626197815, -0.45686718821525574, 0.06531616300344467, -0.12812121212482452, 0.3251686692237854, -0.10935429483652115, 0.1735651046037674, 0.32349303364753723, 0.23488828539848328, 0.21845996379852295, 0.010228831321001053, -0.22010841965675354, 0.26717492938041687, 0.24416090548038483, 0.2631916105747223, -0.45222464203834534, -0.06581373512744904, 0.31030750274658203, -0.10160525143146515, -0.14950941503047943, -0.02486312948167324, -0.25257590413093567, -0.1100548505783081, -0.1544020175933838, 0.21623286604881287, 0.24696864187717438, -0.15891008079051971, -0.05133362114429474, -0.11360253393650055, 0.004429832100868225, -0.36522364616394043, -0.11284498870372772, 0.07719017565250397, 0.1035677120089531, 0.020807631313800812, 0.032630231231451035, 0.07525616884231567, 0.20884819328784943, -0.18297909200191498, 0.6133694052696228, -0.458549827337265, 0.00019887089729309082, 0.18757537007331848, -0.202431321144104, 0.35215210914611816, 0.22218909859657288, 0.07094929367303848, 0.2516438961029053, 0.23246748745441437, -0.003918059170246124, -0.3410581052303314, -0.16294652223587036, -0.020403096452355385, -0.3487243056297302, -0.45085904002189636, -0.37734171748161316, 0.39252209663391113, -0.046196099370718, -0.11118240654468536, 0.17864732444286346, 0.345453679561615, -0.16495026648044586, 0.25649797916412354, 0.13874606788158417, 1.1389235258102417, -0.16040854156017303, -0.025553394109010696, 0.2766726613044739, -0.27158936858177185, 0.3464244604110718, -0.02642006054520607, 0.09530223160982132, -0.5203702449798584, 0.20241133868694305, 0.021228501573204994, -0.0022330060601234436, 0.3191617727279663, -0.04482106864452362, -0.4485638737678528, -0.04274479299783707, -0.23205628991127014, -0.23098203539848328, -0.12807223200798035, 0.1977466493844986, -0.04393284022808075, -0.05401742085814476, 0.04401353746652603, 0.22526618838310242, -0.037627212703228, -0.045138049870729446, 0.06673725694417953, -0.0256512388586998, 0.17224851250648499, -0.0837412029504776, -0.2553287744522095, 0.15889766812324524, -0.08449504524469376, 0.2355407178401947, 0.01997429132461548, -0.024763979017734528, 0.1938660591840744, -0.011346835643053055, 0.05216693878173828, 0.19639213383197784, 0.030666092410683632, 0.37297606468200684, -0.10367564111948013, 0.07557050883769989, 0.07075238227844238, 0.19465991854667664, 0.09018619358539581, 0.07388481497764587, -0.11271760612726212, -0.1241048201918602, -0.2911665439605713, -0.40483176708221436, -0.305672824382782, 0.42246943712234497, 0.4154948592185974, -0.6940697431564331, -0.09988309442996979, 0.12512026727199554, -0.04357539862394333, -0.2156301736831665, 0.12593628466129303, -0.13846434652805328, 0.022837886586785316, 0.16466820240020752, -0.006349153816699982, -0.24255020916461945, -0.017417360097169876, 0.1791435331106186, 0.1286819875240326, 0.2655826807022095, 0.4114804267883301, 0.010230429470539093, -0.353823184967041, -0.38209041953086853, 0.12895292043685913, 0.03459510952234268, 0.01828434318304062, 0.3354881703853607, -0.03986789286136627, -0.16143149137496948, 0.07453587651252747, 0.2358306646347046, -0.051011718809604645, 0.29868921637535095, -0.3256099224090576, -0.10565158724784851, -0.23753732442855835, 0.009890817105770111, -0.12254029512405396, 0.20090334117412567, 0.23103579878807068, 0.30242305994033813, -0.13905414938926697, 0.24582695960998535, -0.38844382762908936, -0.03288707882165909, -0.3029627501964569, 0.24278514087200165, 0.24531468749046326, -0.151301771402359, 0.021935680881142616, 0.044480472803115845, 0.18821492791175842, 0.48002296686172485, -0.034952882677316666, -0.2304496169090271, -0.18075944483280182, 0.10115128010511398, 0.14811167120933533, 0.2710001766681671, -0.3427892327308655, -0.10260602086782455, -0.0690610408782959, -0.024431012570858, 0.1127934604883194, 0.4131842851638794, 0.06997598707675934, 0.4783536493778229, 0.4404466450214386, 0.18763205409049988, 0.047461919486522675, 0.18932287395000458, -0.058483660221099854, 0.27232980728149414, -0.3496190905570984, 0.08781161159276962, -0.07040638476610184, -0.0999489277601242, 0.11585952341556549, 0.06519966572523117, 0.5574318170547485, 0.19855692982673645, 0.2912391722202301, -0.09881016612052917, -0.06580808758735657, -0.30229610204696655, 0.377913236618042, 0.4420933723449707, 0.04724131152033806, -0.2738927900791168, 0.29228225350379944, 0.2555340528488159, -0.36665645241737366, 0.07765084505081177, 0.02709549106657505, -0.10113395005464554, 0.14089880883693695, 0.11400971561670303, 0.16303357481956482, 0.1753670573234558, -0.1136595755815506, 0.15301454067230225, 0.33277738094329834, -0.2837268114089966, 0.15404799580574036, 0.30113300681114197, -0.14764058589935303, 0.060986872762441635, 0.3612741529941559, -0.28820180892944336, 0.24328312277793884, 0.48922616243362427, -0.04283670336008072, 0.7385231852531433, 0.14346598088741302, 0.43605589866638184, 0.28943538665771484, -0.5146711468696594, 0.1654713898897171, 0.1908140629529953, -0.0900014340877533, 0.20538151264190674, -0.14543898403644562, 0.4939652681350708, -0.37114739418029785, 0.0740758404135704, 0.12709255516529083, 0.21794739365577698, -0.3654310703277588, -0.17317649722099304, -0.16032692790031433, -0.057641252875328064, -0.3738251030445099, -0.08359844982624054, 0.07646595686674118, 0.29578760266304016, 0.5123850107192993, 0.08095230907201767, 0.2590861916542053, -0.006137032061815262, -0.16269385814666748, -0.16189885139465332, 0.418817400932312, -0.4009946584701538, 0.10800494253635406, 0.1092785894870758, -0.05286504328250885, 0.11299969255924225, 0.09427189081907272, 0.15658970177173615, 0.1784709095954895, -0.15135477483272552, -0.24610167741775513, -0.024801969528198242, -0.10829851031303406, -0.22180145978927612, 0.3117314875125885, -0.0682983249425888, 0.012244952842593193, 0.40356868505477905, 0.20173697173595428, -0.14460012316703796, 0.026874683797359467, 0.2532179057598114, -0.050847481936216354, -0.028254728764295578, -0.05572604387998581, 0.15809130668640137, -0.11177123337984085, -0.030030496418476105, 0.07739588618278503, -0.37213969230651855, -0.048973001539707184, 0.26598310470581055, -0.09017050266265869, 0.2865215241909027, -0.10955632477998734, 0.1068352460861206, 0.3120523691177368, 0.5021861791610718, 0.0745280459523201, -0.29287639260292053, -0.0725567564368248, -0.11666730791330338, -0.014529336243867874, 0.1852729320526123, -0.01926901564002037, -0.519121527671814, -0.3168904483318329, 0.18436503410339355, 0.22833412885665894, -0.07503724098205566, -0.11114265024662018, 0.028998637571930885, 0.30809035897254944, 0.10468699038028717, 0.030561763793230057, -0.11982114613056183, 0.18412181735038757, -0.22366873919963837, 0.08306289464235306, -0.3015722632408142, 0.25719404220581055, 0.6566097140312195, 0.0014443360269069672, -0.2380092293024063, -0.34688451886177063, 0.39510828256607056, 0.28239449858665466, 0.29667627811431885, 0.3208470344543457, 0.45683974027633667, -0.30121511220932007, -0.1291607916355133, 0.030353475362062454, -0.24215075373649597, -0.21474412083625793, 0.07364071905612946, 0.07910032570362091, -0.050078339874744415, -0.11068190634250641, 0.2527153789997101, -0.29097914695739746, 0.2879508435726166, -0.22011032700538635, 0.48671653866767883, -0.27082473039627075, -0.06133393943309784, 0.0375351682305336, -0.05802496150135994, 0.10605546087026596, 0.2151261270046234, -0.04151619225740433, -0.11925491690635681, -0.3894156813621521, -0.3501025140285492, 0.4986657202243805, 0.05332434922456741, -0.267654150724411, -0.1538560539484024, 0.009806402027606964, 0.2002418339252472, 0.06604589521884918, -0.5437846183776855, -0.13567876815795898, 0.32340091466903687, 0.09688567370176315, 0.24848365783691406, 0.09492655098438263, 0.33181843161582947, 0.014747541397809982, -0.2931790053844452, 0.3968161642551422, 0.2978416383266449, -0.12299542874097824, 0.12516377866268158, -0.17915786802768707 ]
https://github.com/huggingface/datasets/pull/2037
Fix: Wikipedia - save memory by replacing root.clear with elem.clear
The error you got is minor and appeared in the last version of pyarrow, we'll fix the CI to take this into account. You can ignore it
see: https://github.com/huggingface/datasets/issues/2031 What I did: - replace root.clear with elem.clear - remove lines to get root element - $ make style - $ make test - some tests required some pip packages, I installed them. test results on origin/master and my branch are same. I think it's not related on my modification, isn't it? ``` ==================================================================================== short test summary info ==================================================================================== FAILED tests/test_arrow_writer.py::TypedSequenceTest::test_catch_overflow - AssertionError: OverflowError not raised ============================================================= 1 failed, 2332 passed, 5138 skipped, 70 warnings in 91.75s (0:01:31) ============================================================== make: *** [Makefile:19: test] Error 1 ``` Is there anything else I should do?
27
text: Fix: Wikipedia - save memory by replacing root.clear with elem.clear see: https://github.com/huggingface/datasets/issues/2031 What I did: - replace root.clear with elem.clear - remove lines to get root element - $ make style - $ make test - some tests required some pip packages, I installed them. test results on origin/master and my branch are same. I think it's not related on my modification, isn't it? ``` ==================================================================================== short test summary info ==================================================================================== FAILED tests/test_arrow_writer.py::TypedSequenceTest::test_catch_overflow - AssertionError: OverflowError not raised ============================================================= 1 failed, 2332 passed, 5138 skipped, 70 warnings in 91.75s (0:01:31) ============================================================== make: *** [Makefile:19: test] Error 1 ``` Is there anything else I should do? The error you got is minor and appeared in the last version of pyarrow, we'll fix the CI to take this into account. You can ignore it
[ -0.04597647115588188, -0.43004506826400757, -0.1633816510438919, 0.25065600872039795, 0.18730565905570984, -0.12592360377311707, 0.15467970073223114, 0.3040890395641327, 0.0439886637032032, 0.32069799304008484, 0.13145554065704346, 0.2134685069322586, 0.014836309477686882, -0.0846516489982605, 0.06936083734035492, 0.07858976721763611, 0.09198147058486938, 0.11369308084249496, 0.24874630570411682, -0.0564674474298954, -0.07377523928880692, -0.10276910662651062, -0.07116015255451202, -0.19738872349262238, -0.25737935304641724, 0.23746125400066376, -0.03382192552089691, 0.12039901316165924, -0.09343647956848145, -0.710220992565155, 0.18117272853851318, 0.02320774458348751, -0.5444929599761963, 0.20565582811832428, -0.00011481826368253678, -0.08206993341445923, 0.4040324091911316, 0.0060718003660440445, -0.19028428196907043, 0.34824520349502563, -0.021341057494282722, -0.3507445156574249, 0.22355331480503082, -0.267412394285202, 0.15187817811965942, -0.0767371654510498, -0.06990446150302887, -0.060030676424503326, 0.39436596632003784, 0.21448685228824615, 0.2243288904428482, 0.1680763214826584, 0.37278512120246887, 0.11992261558771133, 0.6417015790939331, 0.2176763415336609, 0.049445249140262604, 0.051819030195474625, -0.13865287601947784, -0.01721389964222908, -0.07773464173078537, 0.21202190220355988, -0.2002520114183426, 0.15966548025608063, 0.10569724440574646, -0.04829247668385506, 0.27303871512413025, -0.13926571607589722, 0.2340508997440338, 0.002682778984308243, 0.1443299651145935, -0.03485095500946045, -0.084140345454216, -0.11288049817085266, -0.19018910825252533, -0.2616971731185913, 0.1519230604171753, 0.05085047334432602, -0.21358291804790497, -0.20565281808376312, -0.1148480698466301, -0.2973978519439697, -0.12931352853775024, 0.05817488580942154, -0.02224808558821678, 0.08607028424739838, -0.09488795697689056, 0.08214088529348373, 0.25093165040016174, 0.08975094556808472, -0.2684658169746399, 0.09935876727104187, -0.20473724603652954, -0.022106915712356567, 0.09839236736297607, -0.01470959559082985, 0.17510533332824707, -0.10578646510839462, 0.20460185408592224, 0.12274587899446487, 0.042792703956365585, 0.0994209498167038, 0.3133465051651001, -0.012166067957878113, -0.15263812243938446, 0.29874083399772644, -0.00029203295707702637, 0.3444628119468689, 0.21825124323368073, 0.06083844602108002, -0.006704989820718765, -0.055551931262016296, 0.22141070663928986, -0.269315242767334, 0.2548269033432007, -0.07655283808708191, 0.37494945526123047, -0.4337393045425415, -0.20906442403793335, 0.22401133179664612, -0.5097951889038086, -0.22194324433803558, -0.17967373132705688, 0.33119720220565796, -0.1060633584856987, 0.29856958985328674, 0.30033522844314575, 0.03676178678870201, -0.4114344120025635, 0.2108415812253952, -0.2105824202299118, 0.11191341280937195, -0.1776508092880249, 0.09718118607997894, 0.07349374890327454, -0.14297495782375336, 0.307840496301651, 0.09290987253189087, 0.09993679076433182, -0.36636683344841003, 0.16851146519184113, 0.10806198418140411, 0.3041240870952606, 0.2774644196033478, -0.22896097600460052, 0.004541072994470596, 0.13691486418247223, -0.05491500720381737, 0.01653171330690384, 0.2601872384548187, 0.08241356164216995, -0.501394510269165, 0.21878528594970703, 0.2633035182952881, -0.06745381653308868, 0.06205536425113678, -0.2653057277202606, -0.19934724271297455, 0.4362214207649231, -0.011457877233624458, 0.3022705614566803, -0.07267311960458755, 0.05886990204453468, -0.1626952439546585, 0.26396143436431885, 0.19180002808570862, -0.1660086065530777, -0.18897750973701477, -0.4813300371170044, -0.006072916090488434, 0.19321343302726746, 0.2301093190908432, 0.05873633548617363, 0.2143351137638092, -0.17534567415714264, 0.184354767203331, 0.12961134314537048, -0.5554884076118469, -0.48606735467910767, -0.21925055980682373, 0.07698188722133636, -0.01851477101445198, 0.034555479884147644, -0.18564392626285553, 0.07268519699573517, 0.07658706605434418, -0.2924378514289856, -0.09286606311798096, -0.07161463797092438, 0.1631491780281067, -0.6223654747009277, -0.21874551475048065, -0.14537477493286133, -0.08642979711294174, 0.25067365169525146, -0.4642622470855713, 0.06581388413906097, 0.17869102954864502, 0.3170555531978607, -0.20992916822433472, 0.059096626937389374, 0.07411767542362213, 0.707605242729187, -0.01845240592956543, -0.08202558010816574, -0.043736428022384644, 0.03097992017865181, 0.0860852524638176, -0.17850810289382935, 0.3174174427986145, -0.14505453407764435, -0.133724182844162, -0.22227078676223755, -0.00897179264575243, -0.31632062792778015, -0.7482389807701111, 0.223518967628479, 0.23332339525222778, -0.039934560656547546, -0.09303849935531616, 0.09352681040763855, -0.32202833890914917, -0.10814465582370758, 0.21230515837669373, -0.2200087010860443, 0.11131049692630768, -0.31801751255989075, -0.19019250571727753, -0.3478638827800751, 0.10063439607620239, -0.02717098593711853, -0.03708807751536369, -0.296646386384964, 0.2846839725971222, 0.006509213708341122, 0.07410906255245209, -0.2721838355064392, -0.09683568775653839, 0.016351835802197456, -0.6929978132247925, 0.26529672741889954, 0.30203840136528015, -0.00959371030330658, -0.20994976162910461, -0.08416075259447098, 0.056460365653038025, -0.009338527917861938, 0.07921263575553894, -0.0643564909696579, -0.014120582491159439, -0.11535642296075821, -0.03753235563635826, 0.0452985018491745, -0.2727850675582886, 0.26281747221946716, 0.3394653797149658, 0.5131481885910034, 0.006700117141008377, 0.1841910481452942, 0.03001997619867325, 0.3459378778934479, 0.05773433670401573, -0.04030943661928177, 0.23798048496246338, -0.1220434382557869, -0.5534776449203491, 0.10163439810276031, 0.06380106508731842, 0.21103665232658386, 0.20713450014591217, -0.0306372232735157, 0.21470455825328827, 0.03082621842622757, -0.12456922233104706, 0.42642390727996826, 0.2146952897310257, -0.11831389367580414, 0.10899807512760162, 0.23618432879447937, -0.0010105026885867119, -0.3358285427093506, 0.08612051606178284, 0.01687762700021267, 0.24941031634807587, -0.2969781458377838, -0.04225097596645355, -0.07144799828529358, 0.01462540403008461, 0.029056590050458908, -0.035819731652736664, -0.3186880946159363, -0.2364618331193924, 0.15298809111118317, 0.16337552666664124, -0.19682791829109192, 0.01576068624854088, 0.13860313594341278, 0.27539634704589844, 0.13035325706005096, -0.15787039697170258, -0.262677937746048, -0.19041460752487183, -0.25024694204330444, 0.12353473901748657, 0.3132215142250061, 0.22404175996780396, 0.6007555723190308, -0.19543267786502838, -0.25320711731910706, -0.19884240627288818, -0.4943169057369232, -0.02731391042470932, -0.12903788685798645, 0.28997522592544556, 0.24675078690052032, 0.14864516258239746, 0.05239524692296982, -0.12153245508670807, 0.34780579805374146, -0.4247148334980011, -0.35948339104652405, -0.0711231678724289, 0.21690857410430908, 0.28143391013145447, -0.15163925290107727, -0.5352701544761658, 0.2164461463689804, -0.4941149055957794, 0.4091585874557495, 0.17489005625247955, 0.0764232873916626, 0.23254458606243134, 0.035709891468286514, 0.468844473361969, -0.09159962832927704, 0.3058167099952698, -0.24638377130031586, -0.010129328817129135, -0.18255595862865448, -0.18723271787166595, -0.12014773488044739, -0.04689896106719971, -0.04337052255868912, 0.2778763473033905, 0.057454779744148254, -0.5232492685317993, -0.04127046838402748, -0.3679773807525635, 0.3568897247314453, -0.08474256098270416, 0.30297669768333435, 0.49314919114112854, 0.32934799790382385, -0.18103985488414764, -0.011282455176115036, -0.19629764556884766, 0.026372775435447693, -0.07640090584754944, 0.12438949942588806, -0.16245409846305847, 0.42825329303741455, -0.03529610484838486, 0.7965770959854126, 0.05121194198727608, 0.4668468236923218, 0.2392231971025467, 0.06598536670207977, 0.16025197505950928, -0.37241247296333313, -0.32140079140663147, 0.15241283178329468, -0.09986132383346558, -0.21627633273601532, 0.11418996006250381, 0.004422886297106743, 0.18482480943202972, 0.0669284462928772, -0.16726166009902954, -0.19487029314041138, -0.35604193806648254, 0.16041728854179382, -0.04745607078075409, -0.025694027543067932, -0.12715014815330505, 0.028684943914413452, -0.058882858604192734, -0.22903594374656677, -0.06718412786722183, 0.06329183280467987, 0.07960572838783264, -0.3554283678531647, -0.59013831615448, -0.023160358890891075, -0.5097206234931946, 0.5552467107772827, 0.1243516281247139, 0.033686861395835876, -0.016695242375135422, -0.23848623037338257, 0.18804022669792175, -0.20982106029987335, 0.1884201616048813, -0.06552654504776001, -0.03793775290250778, 0.21599943935871124, -0.22875583171844482, -0.30292806029319763, -0.03632485866546631, -0.4014483690261841, -0.021764112636446953, 0.2113315612077713, -0.02689482271671295, -0.4939865469932556, -0.15387900173664093, 0.321164071559906, 0.34696125984191895, 0.025087784975767136, 0.1375996321439743, -0.17088831961154938, -0.14748376607894897, -0.4487197995185852, 0.17954090237617493, 0.066773921251297, 0.2616748809814453, -0.14311935007572174, 0.2410166710615158, -0.06915517151355743, -0.09831693768501282, -0.07321858406066895, -0.19236844778060913, 0.4536929428577423, -0.4900272488594055, -0.04304996877908707, 0.009687904268503189, -0.1983095407485962, 0.34840789437294006, 0.39676207304000854, -0.2918563485145569, 0.2273627072572708, -0.1123112216591835, -0.057699207216501236, 0.12982796132564545, 0.377494752407074, 0.0759819969534874, 0.14395013451576233, 0.07618992775678635, 0.18964901566505432, -0.1055775061249733, 0.2081981897354126, 0.14690491557121277, 0.1604292094707489, 0.1604451686143875, -0.08264035731554031, 0.2627030313014984, 0.21372796595096588, 0.03128919005393982, 0.6294997334480286, 0.24332357943058014, -0.3767814338207245, 0.3679047226905823, 0.315214604139328, 0.9185815453529358, 0.14263278245925903, 0.3716842532157898, 0.2606063783168793, 0.0000608004629611969, 0.23819264769554138, 0.15355385839939117, 0.21011196076869965, -0.34407365322113037, 0.06899521499872208, 0.18008913099765778, -0.23245958983898163, 0.1687413901090622, -0.29779428243637085, -0.26211869716644287, 0.14946633577346802, 0.16416051983833313, 0.059840358793735504, -0.12524725496768951, 0.23953253030776978, -0.08150774240493774, 0.07271161675453186, -0.31955286860466003, 0.13374972343444824, 0.1626633107662201, 0.08549821376800537, -0.09950978308916092, 0.3045034408569336, -0.12182310223579407, -0.4699004888534546, -0.45269495248794556, -0.028479240834712982, -0.1433582603931427, 0.21810734272003174, -0.029296565800905228, -0.4572714567184448, -0.0034998059272766113, -0.14060012996196747, -0.10181891918182373, 0.4520062208175659, -0.008169865235686302, 0.005616132169961929, 0.05382636934518814, 0.14286521077156067, 0.37720438838005066, -0.0659516304731369, 0.3307580351829529, -0.17353671789169312, -0.2582291066646576, -0.00014135241508483887, -0.20886991918087006, -0.5238015055656433, -0.11394144594669342, 0.07697374373674393, 0.0845613181591034, -0.28285694122314453, -0.26135802268981934, -0.2112748920917511, -0.43717482686042786, -0.2973274290561676, 0.15048247575759888, 0.0617440864443779, -0.202426940202713, 0.13580739498138428, 0.19830408692359924, -0.34380507469177246, 0.012714443728327751, 0.07040278613567352, 0.00994815118610859, -0.08034712076187134, 0.5567023754119873, -0.036828409880399704, -0.032598137855529785, -0.24534952640533447, 0.0094890296459198, 0.2071218192577362, -0.5558094382286072, 0.24856053292751312, -0.47628751397132874, -0.16808165609836578, 0.12401240319013596, 0.25624510645866394, 0.17797783017158508, 0.361629456281662, -0.04102203622460365, -0.18705208599567413, -0.43113407492637634, 0.3162307143211365, 0.0409063957631588, 0.5498680472373962, -0.06184927746653557, 0.20267963409423828, -0.1580599844455719, 0.17815597355365753, -0.31937849521636963, 0.17273642122745514, -0.11202064901590347, 0.1035388633608818, -0.038417696952819824, -0.16070473194122314, 0.39965108036994934, -0.07752153277397156, 0.1558103710412979, 0.2965877056121826, -0.21782921254634857, -0.2427743375301361, 0.009716685861349106, 0.11925642192363739, -0.0776621624827385, -0.453490674495697, 0.1915244162082672, 0.059273749589920044, 0.2724255323410034, -0.11567830294370651, 0.01141449436545372, -0.17551204562187195, 0.043471306562423706, 0.15321767330169678, 0.16622589528560638, -0.06561455875635147, -0.07929744571447372, 0.009180646389722824, -0.14819888770580292, -0.030966177582740784, 0.05085122212767601, 0.3226972818374634, 0.0015084180049598217, -0.1153443306684494, -0.10224355012178421, 0.007999405264854431, 0.039966411888599396, 0.11581632494926453, -0.1522262990474701, -0.056635886430740356, -0.5034835934638977, -0.08951302617788315, 0.5241129398345947, 0.42967090010643005, -0.1193651333451271, 0.058385998010635376, 0.14747202396392822, 0.2382466048002243, -0.07394535839557648, 0.137639120221138, 0.35761764645576477, -0.05350927263498306, 0.07688629627227783, 0.18661589920520782, -0.0037366263568401337, -0.14871135354042053, 0.118958979845047, 0.46551236510276794, -0.12567324936389923, -0.33038944005966187, 0.2624233663082123, 0.18937921524047852, -0.3827153444290161, 0.056947141885757446, 0.4774101674556732, -0.1128007173538208, 0.19419634342193604, 0.19724319875240326, 0.0922447070479393, 0.2776047885417938, -0.06580469012260437, 0.21345742046833038, -0.007932804524898529, 0.1058519184589386, 0.13728144764900208, 0.18041938543319702, -0.02586476504802704, 0.004706591367721558, 0.1948636919260025, 0.4647582173347473, 0.1467585414648056, -0.18769873678684235, -0.024145012721419334, 0.21083900332450867, -0.2484092116355896, -0.17042112350463867, 0.24454963207244873, -0.12623192369937897, -0.023482542484998703, 0.049613889306783676, -0.09181235730648041, -0.057804711163043976, 0.32263070344924927, 0.2006593942642212, -0.21375451982021332, -0.32610729336738586, 0.09437555074691772, -0.07019498944282532, 0.19256021082401276, -0.2587282061576843, 0.07244943082332611, 0.27129876613616943, -0.0198587104678154, -0.146330326795578, 0.5668474435806274, 0.6495633721351624, 0.25271934270858765, -0.0995873212814331, -0.009690006263554096, 0.013042567297816277, -0.0207847747951746, -0.19987566769123077, 0.1626051664352417, 0.28596168756484985, -0.00736357644200325, -0.16342641413211823, 0.17116306722164154, -0.279916375875473, -0.0682511180639267, 0.11780527234077454, -0.0642877072095871, -0.19359543919563293, 0.013239406049251556, 0.09794987738132477, -0.31054556369781494, -0.10954107344150543, 0.022252842783927917, -0.3891241252422333, 0.19024747610092163, 0.2250748872756958, 0.23627746105194092, 0.005723418667912483, -0.13751600682735443, 0.09681954979896545, 0.052423570305109024, 0.21866558492183685, 0.21002674102783203, -0.013134442269802094, -0.2121315449476242, -0.040392421185970306, -0.5530105829238892, 0.2613694965839386, -0.1716214120388031, 0.11807426810264587, 0.05763647332787514, 0.2895407974720001, -0.23729592561721802, 0.02180657908320427, 0.4822993278503418, -0.22911345958709717, 0.20494778454303741, 0.04415197670459747, -0.2727971076965332, 0.156537264585495, 0.30242985486984253, -0.35964229702949524, 0.17754988372325897, -0.41686180233955383, 0.08635177463293076, -0.016418326646089554, 0.04519645869731903, -0.04500139504671097, -0.016093891113996506, 0.24906319379806519, 0.27400413155555725, 0.20915336906909943, 0.2801018953323364, 0.4410820007324219, -0.07965634018182755, -0.5679632425308228, -0.1909455955028534, -0.2001516968011856, -0.09082245826721191, 0.3962164521217346, 0.09685659408569336, 0.5480203628540039, -0.09112418442964554, -0.2358706146478653, -0.40968945622444153, 0.4286390542984009, -0.06429404020309448, -0.24418655037879944, -0.11201974749565125, 0.20101933181285858, 0.2513478696346283, -0.1787535697221756, 0.012106814421713352, 0.2053810954093933, -0.13631264865398407, 0.040645867586135864, -0.6690626740455627, -0.35592910647392273, 0.466747522354126, -0.16543540358543396, -0.05497819185256958, -0.10478170961141586, 0.25469648838043213, 0.2536705434322357, -0.46178027987480164, -0.7867614030838013, -0.22601905465126038, 0.22902798652648926, 0.042328085750341415, -0.4387027323246002, 0.13111066818237305, 0.001998458057641983, 0.19789184629917145, -0.01631634682416916, 0.45027342438697815, -0.002671442925930023, -0.06891021877527237, 0.314475417137146, -0.390438973903656 ]
https://github.com/huggingface/datasets/pull/2030
Implement Dataset from text
I am wondering why only one test of "keep_in_memory=True" fails, when there are many other tests that test the same and it happens only in pyarrow_1...
Implement `Dataset.from_text`. Analogue to #1943, #1946.
26
text: Implement Dataset from text Implement `Dataset.from_text`. Analogue to #1943, #1946. I am wondering why only one test of "keep_in_memory=True" fails, when there are many other tests that test the same and it happens only in pyarrow_1...
[ -0.004025746136903763, -0.08820266276597977, -0.057435162365436554, 0.24889150261878967, 0.2660842537879944, -0.11164817959070206, 0.5227376222610474, 0.3638852536678314, -0.20843665301799774, 0.42202168703079224, 0.2840869128704071, 0.11620914936065674, 0.01811610348522663, -0.3048655092716217, 0.2661346197128296, 0.10986386239528656, 0.2865007221698761, 0.3704868257045746, -0.10994122922420502, -0.04694531112909317, -0.08262217044830322, -0.06749958544969559, -0.5538812875747681, -0.20583213865756989, -0.33187171816825867, 0.18519490957260132, -0.28313136100769043, -0.011415228247642517, 0.04211721196770668, -0.5079764723777771, 0.13010065257549286, -0.001993071287870407, -0.25637534260749817, 0.4223257899284363, -0.00012383796274662018, -0.02912202477455139, 0.35673224925994873, -0.027252156287431717, -0.29412853717803955, -0.12725763022899628, -0.16887450218200684, 0.21342644095420837, 0.2569323480129242, -0.2322346568107605, 0.31411540508270264, 0.23789003491401672, 0.2905358374118805, 0.013883203268051147, 0.2504029870033264, 0.29938602447509766, 0.09434709697961807, 0.5351338386535645, -0.0009636804461479187, -0.14739106595516205, 0.6192841529846191, -0.0201631560921669, -0.040626343339681625, 0.16633960604667664, 0.10614125430583954, -0.2278311550617218, 0.14392797648906708, 0.11988191306591034, -0.21702849864959717, 0.3362685739994049, -0.08633170276880264, -0.05015032738447189, 0.15568047761917114, -0.13336467742919922, 0.03546386957168579, 0.01744379848241806, 0.32703670859336853, -0.5894244909286499, -0.11151108890771866, 0.0604933500289917, -0.32026207447052, -0.23523390293121338, 0.15526804327964783, 0.04907175898551941, -0.2586725056171417, 0.3021571636199951, -0.20795372128486633, -0.0649598017334938, -0.2761296033859253, 0.17804832756519318, -0.1551661491394043, 0.04508916288614273, 0.24697695672512054, 0.2934786379337311, 0.24158264696598053, 0.37659335136413574, 0.4494190514087677, -0.011979818344116211, 0.18200184404850006, -0.033342741429805756, -0.07948608696460724, -0.040253087878227234, -0.09313561767339706, -0.035270288586616516, 0.5585591197013855, -0.10784843564033508, 0.07652690261602402, 0.15624931454658508, 0.23370906710624695, 0.3623661994934082, 0.07137034833431244, 0.39581790566444397, -0.017155617475509644, 0.0880800411105156, 0.28692445158958435, -0.1416168212890625, -0.7135444283485413, 0.10632974654436111, 0.08075541257858276, -0.165008082985878, 0.6748944520950317, -0.25024163722991943, 0.039257414638996124, -0.20854561030864716, -0.20379206538200378, 0.09209633618593216, -0.8310917615890503, -0.22606733441352844, -0.29479968547821045, 0.39488518238067627, 0.3226533532142639, -0.059188418090343475, -0.0015300996601581573, 0.09228818118572235, -0.358460932970047, -0.20202773809432983, -0.2728964388370514, 0.14854425191879272, -0.2146368771791458, 0.021467037498950958, 0.27279922366142273, -0.042548950761556625, 0.3476996123790741, 0.0548434853553772, -0.09607180953025818, -0.24531082808971405, 0.3340117931365967, -0.28213292360305786, 0.4628361165523529, 0.30770808458328247, -0.13279686868190765, 0.04718994349241257, 0.03404618054628372, -0.11587449908256531, -0.1585082709789276, 0.40677717328071594, 0.14225883781909943, -0.49152007699012756, 0.6482597589492798, 0.07018981128931046, -0.1509425938129425, -0.031676284968853, 0.2517332136631012, 0.15436987578868866, 0.12165762484073639, -0.21511900424957275, 0.3303075134754181, -0.3158700466156006, 0.004627007991075516, -0.165422260761261, 0.06621269136667252, 0.40098434686660767, -0.4469679892063141, 0.20377293229103088, 0.1857054978609085, -0.2668496072292328, -0.03821384161710739, 0.1575489044189453, -0.12907080352306366, -0.030346326529979706, -0.18237537145614624, 0.29386037588119507, 0.27102798223495483, -0.39978229999542236, -0.3627978563308716, -0.03719080239534378, 0.021278738975524902, -0.27784258127212524, 0.1535690724849701, 0.023846153169870377, -0.10362452268600464, 0.122731052339077, 0.042956214398145676, -0.3775843381881714, -0.1274195909500122, 0.06547000259160995, -0.23764316737651825, 0.023236388340592384, 0.24371390044689178, -0.018676970154047012, 0.032407402992248535, -0.3573421239852905, 0.0011258870363235474, 0.0848601832985878, 0.3252236247062683, -0.1340353786945343, -0.09636223316192627, -0.22811056673526764, 0.4876352846622467, -0.3705955743789673, 0.04267294704914093, -0.1319209635257721, -0.18578821420669556, 0.25196918845176697, -0.0479576513171196, 0.10637461394071579, 0.1086718812584877, 0.042377129197120667, -0.033551085740327835, 0.29403066635131836, 0.048737432807683945, -0.1782165914773941, -0.005005136132240295, 0.22101110219955444, -0.08130259811878204, 0.18072383105754852, -0.3092230558395386, 0.17656348645687103, -0.041517287492752075, 0.07820407301187515, 0.25456732511520386, 0.11488033831119537, -0.2449965924024582, -0.4061426520347595, -0.18485906720161438, -0.09392005950212479, 0.030016805976629257, -0.029798878356814384, -0.0491943396627903, 0.2716682255268097, 0.22473911941051483, -0.025619976222515106, -0.40898385643959045, -0.12231762707233429, -0.07278110831975937, -0.5177896618843079, -0.14000959694385529, 0.07185210287570953, 0.014747475273907185, -0.17579689621925354, -0.09069331735372543, 0.005541935563087463, 0.5398039221763611, 0.11199429631233215, 0.19451628625392914, -0.2196069210767746, -0.0778365284204483, -0.1105371043086052, -0.0012664711102843285, -0.13832102715969086, 0.3616340160369873, 0.21691934764385223, 0.2786991000175476, 0.3673020601272583, -0.43008261919021606, -0.13343951106071472, 0.5509912967681885, 0.0551232285797596, 0.2329096794128418, -0.1598816215991974, 0.03005199506878853, -0.3917989134788513, 0.2573467791080475, -0.26261264085769653, 0.3990973234176636, 0.1385897547006607, 0.19360129535198212, 0.21705780923366547, -0.3207104206085205, -0.1900075078010559, 0.23135685920715332, 0.04266015812754631, 0.3331204950809479, 0.018790923058986664, 0.47243520617485046, -0.24079923331737518, -0.5791370868682861, 0.11576399207115173, 0.0835142433643341, -0.023832259699702263, -0.24969060719013214, 0.05313681811094284, -0.32626843452453613, -0.13004398345947266, -0.4626227021217346, -0.030456479638814926, -0.20027975738048553, -0.1522817462682724, 0.18143004179000854, 0.13950186967849731, 0.12667590379714966, 0.1061418205499649, 0.007929831743240356, 0.4044138193130493, -0.13208693265914917, -0.1898077428340912, -0.21388116478919983, -0.043864358216524124, -0.3649405539035797, -0.08592569828033447, 0.06653781980276108, 0.024889400228857994, 0.2679491639137268, 0.07744839042425156, -0.5462969541549683, -0.1337648332118988, -0.21561896800994873, 0.29213809967041016, -0.2189583033323288, 0.46719133853912354, 0.02850719541311264, 0.07789777964353561, -0.24215975403785706, 0.0779656395316124, 0.1939547061920166, -0.2598336637020111, -0.38351941108703613, 0.18422801792621613, 0.22617800533771515, -0.012121579609811306, -0.24551017582416534, -0.5778719782829285, 0.06845362484455109, -0.058392904698848724, 0.3675059676170349, -0.11542859673500061, 0.1700042486190796, 0.1462574601173401, 0.10091391950845718, 0.0961165502667427, -0.2730681002140045, 0.03381551802158356, -0.05403594300150871, 0.06969161331653595, 0.08284919708967209, 0.04037715494632721, -0.0900028795003891, 0.0041147880256175995, 0.02536441758275032, 0.025527624413371086, 0.30739355087280273, -0.4526657462120056, -0.25300633907318115, -0.12327378988265991, 0.04389382526278496, 0.12586092948913574, 0.2523924708366394, 0.5601381063461304, -0.044607967138290405, -0.12683714926242828, -0.32945340871810913, -0.33582526445388794, 0.3457490801811218, -0.0004863739013671875, 0.11828175187110901, -0.14615580439567566, 0.045416466891765594, 0.0924973338842392, 0.5180143713951111, 0.21890883147716522, 0.23357170820236206, 0.2734072208404541, -0.2817002832889557, -0.04563261941075325, -0.17762145400047302, 0.0449100062251091, 0.10196097195148468, -0.1285390853881836, -0.4562910795211792, 0.25178271532058716, -0.04061856493353844, -0.2385171800851822, -0.060367509722709656, -0.2908971905708313, -0.0924805998802185, -0.22837796807289124, -0.15986783802509308, -0.12082795798778534, 0.2867858409881592, 0.055041614919900894, -0.16611763834953308, 0.08304642140865326, 0.03718334808945656, -0.034243885427713394, -0.08824142813682556, 0.055355701595544815, -0.019561799243092537, -0.3527596592903137, -0.16914387047290802, -0.25522705912590027, 0.13439759612083435, 0.20366540551185608, 0.4416521489620209, 0.11631003022193909, -0.1534900665283203, 0.19077064096927643, -0.07316011190414429, 0.6631179451942444, 0.07155812531709671, 0.18636660277843475, 0.14733639359474182, -0.20645220577716827, -0.23727869987487793, -0.16104765236377716, -0.47497695684432983, -0.09149342030286789, -0.0994722992181778, -0.1393834799528122, -0.25510603189468384, -0.16542752087116241, 0.3781195282936096, 0.33599618077278137, 0.0993170440196991, -0.31474629044532776, -0.2745756208896637, -0.23080980777740479, -0.04470735043287277, -0.004689916968345642, 0.18608465790748596, -0.142284095287323, -0.2237398475408554, -0.02877640537917614, 0.043960265815258026, -0.25464409589767456, 0.2204529345035553, -0.0452263206243515, 0.056419603526592255, -0.47520729899406433, -0.15858648717403412, -0.09269830584526062, -0.30631300806999207, 0.15551242232322693, 0.2515387535095215, -0.23206305503845215, 0.07504736632108688, -0.15230923891067505, 0.0825420394539833, 0.7150419354438782, 0.5003150105476379, 0.02153024822473526, 0.12046428769826889, -0.15778298676013947, -0.1809721440076828, 0.02357570454478264, -0.06909716129302979, 0.306010901927948, -0.0909634530544281, -0.060157179832458496, -0.14045798778533936, 0.5930389761924744, 0.2985926866531372, -0.06656049937009811, 0.21287928521633148, 0.18649649620056152, -0.26427462697029114, 0.4975278973579407, -0.06417817622423172, 1.0686893463134766, -0.196269229054451, 0.4537110924720764, 0.3038455843925476, 0.14943945407867432, -0.016413019970059395, 0.05239216983318329, 0.32519036531448364, -0.3420145511627197, -0.008073518984019756, -0.047197747975587845, -0.4592019319534302, 0.03770630806684494, -0.12067937850952148, -0.2900436520576477, 0.10804182291030884, 0.12237034738063812, 0.41579553484916687, 0.28700777888298035, -0.003354273736476898, -0.3517439365386963, 0.41982969641685486, -0.0342494361102581, 0.029488101601600647, 0.47923052310943604, -0.08826370537281036, -0.1611080765724182, 0.11343025416135788, -0.13736851513385773, -0.2937842011451721, -0.15397852659225464, -0.1322268843650818, -0.420906126499176, 0.21283046901226044, 0.18399237096309662, -0.18580001592636108, -0.05649245157837868, 0.19523561000823975, 0.3562260866165161, 0.10326620936393738, -0.19926674664020538, -0.011417511850595474, 0.2560793161392212, 0.09735303372144699, 0.2296992540359497, -0.16960380971431732, 0.5474948883056641, -0.04733482003211975, -0.423710435628891, 0.08500075340270996, -0.33132708072662354, -0.45126742124557495, -0.5445048809051514, 0.16190576553344727, -0.12903185188770294, -0.06755635887384415, 0.026053160429000854, 0.04044874757528305, -0.2032271921634674, -0.27033478021621704, 0.058972008526325226, -0.18658588826656342, -0.03175809234380722, 0.4475010335445404, -0.04981834813952446, -0.22515356540679932, -0.06944349408149719, 0.2389504611492157, -0.22273612022399902, 0.46003785729408264, 0.43725213408470154, 0.139361172914505, -0.016385478898882866, -0.2351650595664978, -0.18562814593315125, 0.2778710424900055, -0.03133183345198631, 0.310936838388443, -0.442777544260025, 0.1310976892709732, 0.05103760585188866, 0.7692632675170898, 0.12691885232925415, 0.022698845714330673, -0.15267951786518097, -0.039787374436855316, -0.3552932143211365, 0.3237270712852478, 0.31140971183776855, 0.42308875918388367, 0.10814975947141647, 0.48689448833465576, 0.18714414536952972, 0.14051681756973267, -0.22794875502586365, -0.07392565906047821, -0.10307600349187851, 0.3236840069293976, -0.377615362405777, 0.015322472900152206, -0.18754155933856964, -0.061550118029117584, 0.11186495423316956, 0.26653242111206055, -0.22982393205165863, -0.1627466082572937, -0.013104581274092197, 0.21821342408657074, 0.15011179447174072, 0.040144361555576324, 0.0805349126458168, -0.1364414095878601, 0.43823713064193726, -0.031565915793180466, 0.20379970967769623, 0.23744893074035645, -0.1242097020149231, 0.39764538407325745, 0.37026387453079224, 0.295270711183548, -0.22298792004585266, 0.016583457589149475, -0.2594026029109955, -0.016468219459056854, -0.03864346072077751, -0.04120448976755142, -0.0878901332616806, -0.0044024065136909485, -0.0032326471991837025, 0.062499478459358215, -0.09275560081005096, 0.1083945780992508, -0.1255001425743103, -0.06037849932909012, -0.19454392790794373, -0.32265597581863403, 0.4383769929409027, 0.3775283396244049, -0.24730052053928375, 0.28608939051628113, 0.18896690011024475, 0.08257109671831131, -0.14818315207958221, 0.025558551773428917, 0.02747499756515026, -0.2932640016078949, 0.023553628474473953, 0.367435097694397, 0.41663381457328796, -0.1433137208223343, -0.04249627888202667, 0.08705170452594757, 0.380099892616272, -0.266124427318573, -0.4112425446510315, 0.07374287396669388, 0.03088989481329918, -0.023923147469758987, 0.3934415280818939, 0.20464934408664703, 0.436282753944397, 0.19121669232845306, -0.09961842745542526, 0.35084328055381775, -0.18662717938423157, 0.1854795664548874, 0.10623042285442352, 0.3772452771663666, 0.23566195368766785, 0.294463574886322, 0.12468837201595306, -0.21407869458198547, -0.1734844446182251, 0.5423696041107178, -0.011596997268497944, 0.11769954860210419, 0.07028020918369293, -0.049022313207387924, 0.15202674269676208, -0.20574694871902466, -0.05306706577539444, -0.2848113179206848, 0.027981288731098175, 0.016601242125034332, -0.2501240670681, -0.03578181564807892, 0.605825662612915, 0.419763445854187, -0.040340572595596313, -0.15898868441581726, 0.37424707412719727, -0.019492123275995255, 0.06752900034189224, -0.3658764958381653, 0.16944845020771027, -0.06889718770980835, -0.1535831242799759, -0.1384209841489792, 0.2551601529121399, 0.4748595356941223, 0.10496697574853897, -0.3194602131843567, -0.14246819913387299, -0.5399179458618164, -0.11936591565608978, -0.21837912499904633, -0.0605890154838562, 0.1224500760436058, 0.13682667911052704, 0.08673407137393951, 0.0689576119184494, 0.04744172468781471, 0.21390067040920258, 0.40971171855926514, -0.3435860276222229, -0.6358454823493958, 0.1691715270280838, 0.21758396923542023, -0.24110054969787598, -0.0061032734811306, -0.034630320966243744, -0.3137204647064209, 0.3329720199108124, 0.2526088356971741, -0.21053194999694824, 0.09937503933906555, 0.17971540987491608, 0.03698325157165527, -0.06734225153923035, 0.20748765766620636, 0.16145870089530945, 0.2877698242664337, -0.3067721426486969, -0.22517982125282288, -0.554777204990387, 0.16619299352169037, -0.1896771490573883, 0.05209769308567047, 0.16319292783737183, 0.11280573904514313, -0.07220496982336044, -0.2704038619995117, 0.10729087889194489, 0.04798111692070961, -0.2089163064956665, 0.1294616162776947, -0.35120320320129395, -0.09558521211147308, -0.047069668769836426, -0.1803203672170639, 0.09938888251781464, -0.12317383289337158, 0.3043312728404999, -0.409633994102478, -0.06067352741956711, -0.11901812255382538, 0.17429950833320618, 0.5793649554252625, -0.010437346994876862, 0.4573044776916504, -0.1357785016298294, 0.4348290264606476, 0.15083900094032288, 0.09302626550197601, 0.10804052650928497, 0.1906314194202423, -0.0793142020702362, -0.28493010997772217, -0.2389378845691681, 0.018492158502340317, -0.2099885642528534, -0.07081964612007141, 0.20137371122837067, 0.2241317331790924, 0.03027254343032837, 0.029435480013489723, -0.030791480094194412, -0.055015094578266144, -0.05523402988910675, 0.07213717699050903, 0.06097092851996422, 0.1507492959499359, -0.049862153828144073, -0.012515377253293991, -0.6479217410087585, -0.3935750722885132, 0.43892762064933777, -0.2320694923400879, -0.2907673418521881, -0.43111515045166016, 0.24154351651668549, 0.07424169033765793, -0.22212596237659454, -0.7646264433860779, -0.33561861515045166, 0.4640723168849945, 0.10094177722930908, -0.6353898644447327, 0.4623609781265259, 0.31356725096702576, 0.180620476603508, 0.08387552201747894, 0.4565950930118561, -0.052612029016017914, 0.015370333567261696, -0.1757267862558365, -0.3158053159713745 ]
https://github.com/huggingface/datasets/pull/2028
Adding PersiNLU reading-comprehension
Thanks! @lhoestq Let me know if you want me to address anything to get this merged.
16
text: Adding PersiNLU reading-comprehension Thanks! @lhoestq Let me know if you want me to address anything to get this merged.
[ -0.18329736590385437, -0.5284368395805359, -0.2524656057357788, 0.02633613720536232, 0.06621632725000381, 0.02441859245300293, -0.11764167249202728, 0.09793120622634888, -0.12177139520645142, 0.20163066685199738, -0.40491601824760437, 0.02697867341339588, 0.03820718452334404, 0.18273375928401947, 0.06903062760829926, -0.04427717626094818, 0.20983873307704926, 0.1898719221353531, 0.023692622780799866, 0.02640337496995926, -0.2705411911010742, 0.1422514170408249, -0.10849353671073914, -0.2750447988510132, 0.20598161220550537, 0.2737009525299072, -0.10398347675800323, 0.2058965563774109, -0.19948925077915192, -0.2541563808917999, -0.1737600713968277, 0.3338460922241211, -0.27902480959892273, 0.005234554409980774, -0.00009924301411956549, -0.14988011121749878, 0.16056033968925476, -0.158258318901062, -0.07420137524604797, 0.07816062867641449, -0.19808796048164368, -0.26641952991485596, -0.2746981680393219, -0.03509955108165741, -0.29751983284950256, 0.14512233436107635, 0.09413312375545502, 0.00796683132648468, -0.18795017898082733, 0.06577681750059128, 0.27594470977783203, -0.24295726418495178, 0.13703781366348267, -0.10934759676456451, 0.09841945022344589, -0.19571079313755035, -0.022050421684980392, -0.07512211799621582, 0.20063012838363647, -0.03716659918427467, -0.01429075002670288, 0.2427503764629364, 0.12232980132102966, -0.2780054807662964, 0.05875328183174133, -0.3141113519668579, 0.41571012139320374, -0.100303515791893, 0.03851389139890671, -0.03842650353908539, 0.27918770909309387, -0.11520379036664963, -0.001191623043268919, 0.1491028368473053, 0.1485067903995514, -0.2986719608306885, -0.05952117592096329, -0.20375394821166992, 0.09991176426410675, -0.022842448204755783, 0.21753747761249542, -0.23836718499660492, -0.049026213586330414, 0.013589534908533096, -0.33495092391967773, 0.1443948745727539, -0.09444443881511688, -0.417066752910614, 0.2225651890039444, -0.10193979740142822, -0.1278868466615677, 0.05831436440348625, -0.039867181330919266, -0.0065343184396624565, 0.19133561849594116, 0.0069191306829452515, 0.1134093850851059, -0.01895271986722946, -0.09920977056026459, 0.10782406479120255, -0.1344652771949768, 0.01893649622797966, 0.0052501605823636055, 0.37027281522750854, -0.12325195968151093, -0.07946889102458954, 0.28251853585243225, 0.3435065448284149, -0.27321678400039673, 0.18918074667453766, 0.21838346123695374, -0.046448178589344025, -0.0022838106378912926, -0.145816832780838, -0.4430335462093353, -0.0756634920835495, -0.0006592348217964172, -0.11847808957099915, -0.16776135563850403, 0.09609006345272064, -0.3328022360801697, -0.23459842801094055, -0.07641763985157013, -0.016668595373630524, 0.02903134375810623, 0.45366406440734863, 0.3362053632736206, 0.0746641457080841, -0.040014445781707764, -0.08197372406721115, -0.17617663741111755, 0.4375476539134979, -0.249924436211586, -0.1358262449502945, 0.054695192724466324, 0.06614205241203308, -0.10145862400531769, -0.2627713978290558, 0.17345508933067322, -0.1730634868144989, -0.18084269762039185, -0.028494516387581825, 0.19301390647888184, 0.26256063580513, 0.029682833701372147, -0.26267167925834656, -0.06664973497390747, -0.3669816851615906, -0.09158068150281906, 0.5105904340744019, -0.0058648958802223206, 0.022770870476961136, 0.08213981240987778, 0.40815994143486023, -0.034078408032655716, -0.2834472060203552, 0.4042561948299408, 0.4434421956539154, 0.11088532209396362, -0.016049621626734734, 0.18982288241386414, 0.26974359154701233, -0.30731669068336487, -0.058831509202718735, 0.21760335564613342, -0.01469731330871582, -0.6190294027328491, -0.21903018653392792, -0.07045396417379379, -0.4920881688594818, 0.19568392634391785, 0.29706665873527527, 0.1976647675037384, 0.05258333683013916, 0.16003678739070892, 0.14841631054878235, 0.3952905535697937, -0.2916451394557953, -0.1836608350276947, 0.05541948229074478, -0.230608731508255, 0.11414139717817307, 0.0318145677447319, 0.046346262097358704, 0.10931944847106934, -0.09190651774406433, 0.5238738656044006, 0.1714712232351303, -0.14105361700057983, -0.2839517891407013, -0.37323006987571716, 0.03862019628286362, -0.06930707395076752, 0.31847909092903137, 0.28983089327812195, 0.028347492218017578, 0.057013947516679764, -0.13965155184268951, 0.23033633828163147, -0.06403186917304993, 0.20451033115386963, 0.0711352676153183, 0.2539658844470978, 0.33722203969955444, 0.21969465911388397, -0.1690765917301178, 0.40823614597320557, -0.22653186321258545, -0.18849612772464752, 0.22076888382434845, 0.19445458054542542, -0.17161597311496735, -0.2668927013874054, -0.2619498670101166, 0.2477598488330841, -0.21417953073978424, 0.3094403147697449, 0.10908068716526031, -0.55864417552948, -0.19277244806289673, -0.075619176030159, 0.1784888207912445, 0.05033662170171738, 0.09180957823991776, -0.1654263734817505, -0.08297426998615265, -0.3021051585674286, 0.1476464718580246, -0.31125974655151367, 0.566504955291748, -0.05715838819742203, 0.14792610704898834, 0.1907966136932373, 0.013055231422185898, -0.27637964487075806, 0.20797428488731384, 0.462430864572525, -0.13426949083805084, 0.18147413432598114, -0.04345650598406792, -0.14497703313827515, -0.051735516637563705, -0.02066011168062687, -0.2178552746772766, 0.10525864362716675, 0.07472365349531174, 0.47969290614128113, -0.1690288484096527, -0.2557491362094879, 0.027259493246674538, 0.009230686351656914, -0.22875654697418213, -0.08583822101354599, -0.19058319926261902, 0.36311137676239014, 0.15825724601745605, -0.06594976782798767, 0.12501245737075806, -0.07661633938550949, 0.16280262172222137, -0.05185360088944435, -0.4723174273967743, -0.24894168972969055, 0.1358732283115387, -0.017201244831085205, 0.04523085057735443, -0.28822603821754456, -0.0899384468793869, 0.03334594517946243, 0.2581588625907898, 0.19104667007923126, 0.24356769025325775, 0.24934473633766174, -0.16396242380142212, 0.11668045073747635, 0.31506627798080444, 0.024906549602746964, 0.3358530104160309, 0.052148450165987015, 0.20349615812301636, -0.1971856653690338, -0.10447502136230469, -0.09815245121717453, 0.013309342786669731, -0.1264147013425827, -0.2148524969816208, 0.029797052964568138, -0.07670161128044128, 0.07499486207962036, -0.16290228068828583, 0.012559009715914726, -0.34925591945648193, 0.1913771778345108, -0.02341584488749504, -0.14700715243816376, -0.017418455332517624, 0.16381722688674927, 0.5855781435966492, -0.03389923647046089, -0.2915274202823639, 0.010031789541244507, -0.08103242516517639, 0.23110371828079224, 0.3968426287174225, -0.10749337077140808, -0.02852858044207096, 0.4478943645954132, -0.2755378782749176, 0.2833922505378723, 0.15608060359954834, -0.5360318422317505, 0.01073358952999115, -0.16944119334220886, -0.01956201158463955, 0.04192301630973816, -0.26928049325942993, -0.01549270935356617, -0.14112627506256104, -0.019530517980456352, 0.374971866607666, -0.2736673951148987, -0.3208346664905548, 0.014554892666637897, -0.03446200117468834, -0.3175412714481354, -0.3297848403453827, 0.1743197739124298, -0.3510477542877197, 0.3564950227737427, -0.08973145484924316, 0.16406701505184174, -0.5194863677024841, -0.1634422242641449, 0.10994549840688705, 0.19936053454875946, 0.17484521865844727, -0.2715533971786499, 0.020855311304330826, 0.11802032589912415, -0.22866953909397125, 0.06681270897388458, 0.03687725588679314, -0.05718879774212837, 0.008864317089319229, -0.12799161672592163, -0.09877565503120422, -0.12506607174873352, 0.1255045086145401, -0.06833059340715408, 0.07488708943128586, -0.1610373556613922, 0.017056912183761597, 0.07171884924173355, -0.2963990569114685, -0.1556704342365265, -0.25821349024772644, -0.03574467450380325, 0.08519235253334045, 0.30310335755348206, -0.2350587546825409, 0.20293334126472473, 0.13328993320465088, 0.27248069643974304, 0.06793773174285889, 0.3982127606868744, 0.05046579986810684, 0.25859153270721436, 0.15136100351810455, 0.15768226981163025, -0.1507643610239029, 0.1042313352227211, 0.11899852752685547, -0.06926834583282471, 0.11046984046697617, 0.15468829870224, -0.2759682238101959, -0.17126959562301636, -0.5171537399291992, -0.26786598563194275, -0.1023465096950531, 0.14351189136505127, -0.047393545508384705, 0.039928946644067764, -0.16499212384223938, -0.36237311363220215, 0.039262108504772186, 0.24502107501029968, 0.09762406349182129, 0.6567815542221069, 0.028256185352802277, -0.128566175699234, 0.15456466376781464, -0.16825583577156067, -0.2997160255908966, 0.14066892862319946, 0.2149098813533783, -0.1996506154537201, -0.13882328569889069, -0.25301459431648254, 0.11729487031698227, -0.1886662393808365, 0.3599415421485901, -0.38043737411499023, -0.29865628480911255, 0.26622477173805237, -0.027802929282188416, 0.3972279131412506, -0.006059866398572922, -0.35178011655807495, -0.34533998370170593, 0.5881417393684387, 0.002419307827949524, -0.1916629672050476, 0.039165254682302475, 0.5205934643745422, -0.19634145498275757, 0.10773591697216034, -0.34245437383651733, -0.07665017247200012, -0.35228925943374634, -0.5440371036529541, 0.09488046914339066, 0.2331664115190506, 0.2503897547721863, 0.16961543262004852, -0.0006056986749172211, 0.16154871881008148, -0.02860620617866516, 0.5481285452842712, -0.19592952728271484, -0.02448466420173645, 0.1718609780073166, -0.053364284336566925, -0.04213777929544449, -0.019135549664497375, 0.09438047558069229, 0.2407412827014923, -0.12592479586601257, -0.2680363357067108, -0.0028522033244371414, -0.27394556999206543, 0.38923951983451843, 0.01174783706665039, 0.16277429461479187, 0.11347291618585587, -0.03920704126358032, 0.12333844602108002, -0.14830222725868225, 0.03413012996315956, 0.08269795775413513, 0.2466035783290863, -0.2633000612258911, -0.11974669247865677, 0.06439182162284851, 0.28244924545288086, -0.09488939493894577, 0.19837361574172974, -0.19384394586086273, -0.2733517587184906, -0.04926068335771561, 0.06696164608001709, 1.0351990461349487, -0.024209007620811462, 0.12195247411727905, -0.03426003456115723, -0.2653278410434723, -0.5366040468215942, -0.24097080528736115, 0.31484925746917725, -0.1462034434080124, 0.08709173649549484, -0.10763465613126755, 0.08320383727550507, 0.11311840265989304, -0.13043121993541718, -0.2924709916114807, -0.16207247972488403, 0.009188547730445862, 0.23778416216373444, 0.23034150898456573, 0.08409607410430908, 0.0263237114995718, -0.11903184652328491, 0.14995142817497253, 0.20879359543323517, 0.2613145411014557, -0.05251392349600792, -0.06680138409137726, -0.14158400893211365, 0.050628092139959335, 0.16139623522758484, -0.24798299372196198, 0.012595690786838531, 0.046158142387866974, -0.1433161050081253, -0.14131426811218262, -0.2690823972225189, 0.17827551066875458, -0.18795078992843628, 0.06631820648908615, 0.1689281165599823, -0.06064949929714203, 0.2065640091896057, 0.24103674292564392, -0.18950285017490387, 0.017801664769649506, -0.21402759850025177, 0.08890741318464279, -0.35881149768829346, -0.3447980284690857, 0.0739765465259552, -0.03759262338280678, -0.11048415303230286, -0.3088771104812622, 0.3135445713996887, 0.08905570209026337, -0.19236823916435242, 0.15727108716964722, 0.4328007400035858, -0.1586606502532959, -0.060433074831962585, 0.28185319900512695, -0.007767431437969208, -0.08666045218706131, -0.129663348197937, 0.06293097138404846, -0.28877145051956177, 0.01653173193335533, 0.027143649756908417, 0.5044775009155273, -0.5804312229156494, 0.13265851140022278, -0.19589589536190033, -0.39393186569213867, -0.37075018882751465, -0.20391005277633667, 0.05130814015865326, 0.3574700951576233, -0.04143828898668289, 0.05100671574473381, -0.5181774497032166, 0.16418933868408203, -0.05856304243206978, 0.19354723393917084, 0.2553757131099701, -0.15191875398159027, -0.16687513887882233, -0.23791472613811493, 0.06046723574399948, -0.25582578778266907, 0.3128470778465271, 0.07872786372900009, 0.2651941776275635, 0.193208247423172, 0.1881224662065506, -0.5193096399307251, 0.010462790727615356, 0.0042420122772455215, 0.12060028314590454, 0.11242038756608963, -0.24527519941329956, 0.07351209223270416, 0.07632279396057129, 0.32479074597358704, 0.2532923221588135, -0.23297470808029175, -0.34593042731285095, 0.18885371088981628, 0.07741881161928177, -0.11838523298501968, 0.1416206806898117, 0.06369803845882416, 0.25889694690704346, -0.06449410319328308, 0.13835710287094116, -0.040028445422649384, -0.077922023832798, 0.20880791544914246, 0.11272133141756058, -0.28990164399147034, 0.1544530689716339, 0.22344307601451874, 0.0866832435131073, 0.1418866068124771, 0.3264939486980438, -0.2579546868801117, -0.07805661857128143, -0.30866432189941406, 0.03904734551906586, 0.3156346380710602, 0.265622079372406, 0.3838513493537903, 0.36188602447509766, 0.12086768448352814, 0.06283948570489883, -0.24914158880710602, -0.174957737326622, 0.12082049250602722, 0.008098870515823364, -0.2294302135705948, 0.05882924795150757, 0.052594032138586044, 0.33350491523742676, -0.29589053988456726, 0.23535148799419403, 0.2927529215812683, -0.3465823829174042, 0.2297256588935852, 0.17230218648910522, 0.03206982836127281, -0.03258116915822029, 0.3907734155654907, 0.22269701957702637, -0.25020885467529297, -0.09207812696695328, 0.15071432292461395, 0.045402709394693375, -0.013500355184078217, 0.024426333606243134, 0.09718939661979675, 0.0234859399497509, 0.004533097147941589, 0.2962453067302704, 0.23808255791664124, 0.24738068878650665, 0.13381877541542053, 0.33268797397613525, 0.17186510562896729, -0.02861960604786873, 0.4260213077068329, 0.27239617705345154, -0.06159581243991852, 0.23246917128562927, 0.40802836418151855, 0.21280238032341003, 0.15813873708248138, -0.1156112551689148, 0.12574829161167145, 0.28952813148498535, -0.20987969636917114, 0.08364328742027283, 0.006146665662527084, -0.09594222903251648, -0.21664617955684662, -0.25006401538848877, 0.42900434136390686, -0.039561450481414795, 0.11349184811115265, -0.049724869430065155, 0.03599481284618378, 0.30301979184150696, 0.07916679978370667, -0.021112550050020218, 0.35318130254745483, -0.34955066442489624, -0.10023323446512222, 0.13278509676456451, -0.11378023028373718, 0.2408551573753357, -0.0218146201223135, 0.28524890542030334, 0.010699056088924408, 0.015893887728452682, 0.17121969163417816, 0.0002332869917154312, -0.1989794373512268, 0.05710022151470184, -0.08472351729869843, 0.47824788093566895, -0.16989876329898834, 0.19111192226409912, 0.31456422805786133, -0.357435017824173, 0.14827558398246765, 0.22850751876831055, -0.07252469658851624, -0.09726901352405548, 0.07128462195396423, 0.3351195752620697, -0.115573950111866, -0.42640918493270874, -0.2431105077266693, -0.35806748270988464, -0.30448290705680847, 0.2814910411834717, -0.09084625542163849, 0.05839965492486954, 0.05473661050200462, 0.15389162302017212, 0.4098769724369049, -0.03366224095225334, 0.44903868436813354, -0.06838827580213547, -0.01566334441304207, -0.24473510682582855, -0.23927173018455505, 0.22181859612464905, 0.060942795127630234, 0.13079844415187836, -0.12694178521633148, 0.09347748011350632, 0.18698686361312866, 0.0548374205827713, 0.28177013993263245, -0.1845635622739792, 0.3117142915725708, -0.09920956194400787, -0.008712466806173325, 0.29108431935310364, 0.5578250885009766, -0.13737571239471436, 0.11422140896320343, 0.09743747860193253, 0.04678494110703468, -0.026024870574474335, 0.4145475924015045, -0.14993534982204437, -0.1470033824443817, -0.025930237025022507, 0.08844608813524246, -0.08740463852882385, 0.008902774192392826, 0.23166657984256744, -0.5418238043785095, -0.02867920882999897, 0.25529512763023376, 0.09332944452762604, -0.3019096553325653, 0.07773835211992264, 0.18667303025722504, 0.062401555478572845, -0.0354408398270607, -0.07664382457733154, 0.3327689468860626, 0.2698812484741211, -0.13782283663749695, -0.05707521736621857, -0.2340042144060135, 0.21619749069213867, 0.18110182881355286, 0.13735882937908173, -0.46131381392478943, 0.23151448369026184, 0.20955099165439606, -0.16332751512527466, -0.3447544574737549, -0.5491090416908264, 0.3737841248512268, 0.10345582664012909, -0.33935078978538513, -0.21613502502441406, 0.05839916318655014, 0.10971807688474655, 0.38460180163383484, -0.4829380214214325, -0.2972545921802521, 0.24195261299610138, 0.2283214032649994, -0.20405663549900055, 0.38576701283454895, -0.060329701751470566, -0.17156283557415009, -0.17381946742534637, -0.12175707519054413, 0.20506635308265686, -0.036845944821834564, -0.2134481519460678, -0.3739003539085388 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
There is one more thing I would love to see. Let's say we iteratively keep updating a data source that loaded from **load_dataset** or **load_from_disk**. Now we need to save it to the same location by overriding the previous file inorder to save the disk space. At the moment **save_to_disk** can not assign a name. So I do not see an easy way to override the previous files. @lhoestq is this possible? p.s one last thing? Is there a way to flush out any connection to a data source loaded from **load_from_disk** or **load_dataset** methods? At the moment I suspect when we use any of those functions, it will always keep a pointer although we override it again with a new version of the dataset source. This is really useful in an iterative process.
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
134
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 There is one more thing I would love to see. Let's say we iteratively keep updating a data source that loaded from **load_dataset** or **load_from_disk**. Now we need to save it to the same location by overriding the previous file inorder to save the disk space. At the moment **save_to_disk** can not assign a name. So I do not see an easy way to override the previous files. @lhoestq is this possible? p.s one last thing? Is there a way to flush out any connection to a data source loaded from **load_from_disk** or **load_dataset** methods? At the moment I suspect when we use any of those functions, it will always keep a pointer although we override it again with a new version of the dataset source. This is really useful in an iterative process.
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
> There is one more thing I would love to see. Let's say we iteratively keep updating a data source that loaded from **load_dataset** or **load_from_disk**. Now we need to save it to the same location by overriding the previous file inorder to save the disk space. At the moment **save_to_disk** can not assign a name. So I do not see an easy way to override the previous files. @lhoestq is this possible? In the new save_to_disk, the filename of the arrow file is fixed: `dataset.arrow`. This way is will be overwritten if you save your dataset again > Is there a way to flush out any connection to a data source loaded from **load_from_disk** or **load_dataset** methods? At the moment I suspect when we use any of those functions, it will always keep a pointer although we override it again with a new version of the dataset source. This is really useful in an iterative process. If you update an arrow file, then you must reload it with `load_from_disk` for example in order to have the updated data. Does that answer the question ? How does this "pointer" behavior manifest exactly on your side ?
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
196
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 > There is one more thing I would love to see. Let's say we iteratively keep updating a data source that loaded from **load_dataset** or **load_from_disk**. Now we need to save it to the same location by overriding the previous file inorder to save the disk space. At the moment **save_to_disk** can not assign a name. So I do not see an easy way to override the previous files. @lhoestq is this possible? In the new save_to_disk, the filename of the arrow file is fixed: `dataset.arrow`. This way is will be overwritten if you save your dataset again > Is there a way to flush out any connection to a data source loaded from **load_from_disk** or **load_dataset** methods? At the moment I suspect when we use any of those functions, it will always keep a pointer although we override it again with a new version of the dataset source. This is really useful in an iterative process. If you update an arrow file, then you must reload it with `load_from_disk` for example in order to have the updated data. Does that answer the question ? How does this "pointer" behavior manifest exactly on your side ?
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
Apparently the usage of the compute layer of pyarrow requires pyarrow>=1.0.0 (otherwise there are some issues on windows with file permissions when doing dataset concatenation). I'll bump the pyarrow requirement from, 0.17.1 to 1.0.0
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
34
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 Apparently the usage of the compute layer of pyarrow requires pyarrow>=1.0.0 (otherwise there are some issues on windows with file permissions when doing dataset concatenation). I'll bump the pyarrow requirement from, 0.17.1 to 1.0.0
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
> If you update an arrow file, then you must reload it with `load_from_disk` for example in order to have the updated data. > Does that answer the question? How does this "pointer" behavior manifest exactly on your side? Yes, I checked this behavior.. if we update the .arrow file it kind of flushes out the previous one. So your solution is perfect <3.
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
64
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 > If you update an arrow file, then you must reload it with `load_from_disk` for example in order to have the updated data. > Does that answer the question? How does this "pointer" behavior manifest exactly on your side? Yes, I checked this behavior.. if we update the .arrow file it kind of flushes out the previous one. So your solution is perfect <3.
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
Sorry for spamming, there's a a bug that only happens on the CI so I have to re-run it several times
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
21
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 Sorry for spamming, there's a a bug that only happens on the CI so I have to re-run it several times
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
Alright I finally added all the tests I wanted ! I also fixed all the bugs and now all the tests are passing :) Let me know if you have comments. I also noticed that two methods in pyarrow seem to bring some data in memory even for a memory mapped table: filter and cast: - for filter I took a look at the C++ code on the arrow's side and found [this part](https://github.com/apache/arrow/blob/55c8d74d5556b25238fb2028e9fb97290ea24684/cpp/src/arrow/compute/kernels/vector_selection.cc#L93-L160) that "builds" the array during filter. It seems to indicate that it allocates new memory for the filtered array but not 100% sure. - regarding cast I noticed that it happens when changing the precision of an array of integers. Not sure if there are other cases. Maybe we'll need to investigate this a bit for your PR on improving `filter` @theo-m , since we don't want to fill the users memory.
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
146
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 Alright I finally added all the tests I wanted ! I also fixed all the bugs and now all the tests are passing :) Let me know if you have comments. I also noticed that two methods in pyarrow seem to bring some data in memory even for a memory mapped table: filter and cast: - for filter I took a look at the C++ code on the arrow's side and found [this part](https://github.com/apache/arrow/blob/55c8d74d5556b25238fb2028e9fb97290ea24684/cpp/src/arrow/compute/kernels/vector_selection.cc#L93-L160) that "builds" the array during filter. It seems to indicate that it allocates new memory for the filtered array but not 100% sure. - regarding cast I noticed that it happens when changing the precision of an array of integers. Not sure if there are other cases. Maybe we'll need to investigate this a bit for your PR on improving `filter` @theo-m , since we don't want to fill the users memory.
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
> Maybe we'll need to investigate this a bit for your PR on improving `filter` @theo-m , since we don't want to fill the users memory. I'm a bit unclear on this, I thought the point of the refactor was to use `Table.filter` to speed up our own `.filter` and stop using `.map` that offloaded too much stuff on disk. At some point I recall we decided to use `keep_in_memory=True` as the expectations were that it would be hard to fill the memory?
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
83
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 > Maybe we'll need to investigate this a bit for your PR on improving `filter` @theo-m , since we don't want to fill the users memory. I'm a bit unclear on this, I thought the point of the refactor was to use `Table.filter` to speed up our own `.filter` and stop using `.map` that offloaded too much stuff on disk. At some point I recall we decided to use `keep_in_memory=True` as the expectations were that it would be hard to fill the memory?
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
> I'm a bit unclear on this, I thought the point of the refactor was to use Table.filter to speed up our own .filter and stop using .map that offloaded too much stuff on disk. > At some point I recall we decided to use keep_in_memory=True as the expectations were that it would be hard to fill the memory? Yes it's ok to have the mask in memory, but not the full table. I was not aware that the table returned by filter could actually be in memory (it's not part of the pyarrow documentation afaik). To be more specific I noticed that every time you call `filter`, the pyarrow total allocated memory increases. I haven't checked on a big dataset though, but it would be nice to see how much memory it uses with respect to the size of the dataset.
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
142
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 > I'm a bit unclear on this, I thought the point of the refactor was to use Table.filter to speed up our own .filter and stop using .map that offloaded too much stuff on disk. > At some point I recall we decided to use keep_in_memory=True as the expectations were that it would be hard to fill the memory? Yes it's ok to have the mask in memory, but not the full table. I was not aware that the table returned by filter could actually be in memory (it's not part of the pyarrow documentation afaik). To be more specific I noticed that every time you call `filter`, the pyarrow total allocated memory increases. I haven't checked on a big dataset though, but it would be nice to see how much memory it uses with respect to the size of the dataset.
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
I totally agree with you. I would have loved to use inheritance instead. However because `pa.Table` is a cython class without proper initialization methods (you can't call `__init__` for example): you can't instantiate a subclass of `pa.Table` in python. To be more specific, you actually can try to instantiate a subclass of `pa.Table` with no data BUT this is not a valid table so you get an error. And since `pa.Table` objects are immutable you can't even set the data in `__new__` or `__init__`. EDIT: one could make a new cython class that inherits from `pa.Table` with proper initialization methods, so that we can inherit from this class instead in python. We can do that in the future if we plan to use cython in `datasets`. (see: https://arrow.apache.org/docs/python/extending.html)
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
128
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 I totally agree with you. I would have loved to use inheritance instead. However because `pa.Table` is a cython class without proper initialization methods (you can't call `__init__` for example): you can't instantiate a subclass of `pa.Table` in python. To be more specific, you actually can try to instantiate a subclass of `pa.Table` with no data BUT this is not a valid table so you get an error. And since `pa.Table` objects are immutable you can't even set the data in `__new__` or `__init__`. EDIT: one could make a new cython class that inherits from `pa.Table` with proper initialization methods, so that we can inherit from this class instead in python. We can do that in the future if we plan to use cython in `datasets`. (see: https://arrow.apache.org/docs/python/extending.html)
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
@lhoestq, but in which cases you would like to instantiate directly either `InMemoryTable` or `MemoryMappedTable`? You normally use one of their `from_xxx` class methods...
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
24
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 @lhoestq, but in which cases you would like to instantiate directly either `InMemoryTable` or `MemoryMappedTable`? You normally use one of their `from_xxx` class methods...
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
Yes I was thinking of these cases. The issue is that they return `pa.Table` objects even from a subclass of `pa.Table`
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
21
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 Yes I was thinking of these cases. The issue is that they return `pa.Table` objects even from a subclass of `pa.Table`
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2025
[Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset
I guess that in this case, the best approach is as you did, using composition over inheritance... https://github.com/apache/arrow/pull/5322
## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877
18
text: [Refactor] Use in-memory/memory-mapped/concatenation tables in Dataset ## Intro Currently there is one assumption that we need to change: a dataset is either fully in memory (dataset._data_files is empty), or the dataset can be reloaded from disk with memory mapping (using the dataset._data_files). This assumption is used for pickling for example: - in-memory dataset can just be pickled/unpickled in-memory - on-disk dataset can be unloaded to only keep the filepaths when pickling, and then reloaded from the disk when unpickling ## Issues Because of this assumption, we can't easily implement methods like `Dataset.add_item` to append more rows to a dataset, or `dataset.add_column` to add a column, since we can't mix data from memory and data from the disk. Moreover, `concatenate_datasets` doesn't work if the datasets to concatenate are not all from memory, or all form the disk. ## Solution provided in this PR I changed this by allowing several types of Table to be used in the Dataset object. More specifically I added three pyarrow Table wrappers: InMemoryTable, MemoryMappedTable and ConcatenationTable. The in-memory and memory-mapped tables implement the pickling behavior described above. The ConcatenationTable can be made from several tables (either in-memory or memory mapped) called "blocks". Pickling a ConcatenationTable simply pickles the underlying blocks. ## Implementation details The three tables classes mentioned above all inherit from a `Table` class defined in `table.py`, which is a wrapper of a pyarrow table. The `Table` wrapper implements all the attributes and methods of the underlying pyarrow table. Regarding the MemoryMappedTable: Reloading a pyarrow table from the disk makes you lose all the changes you may have applied (slice, rename_columns, drop, cast etc.). Therefore the MemoryMappedTable implements a "replay" mechanism to re-apply the changes when reloading the pyarrow table from the disk. ## Checklist - [x] add InMemoryTable - [x] add MemoryMappedTable - [x] add ConcatenationTable - [x] Update the ArrowReader to use these new tables depending on the `in_memory` parameter - [x] Update Dataset.from_xxx methods - [x] Update load_from_disk and save_to_disk - [x] Backward compatibility of load_from_disk - [x] Add tests for the new tables - [x] Update current tests - [ ] Documentation ---------- I would be happy to discuss the design of this PR :) Close #1877 I guess that in this case, the best approach is as you did, using composition over inheritance... https://github.com/apache/arrow/pull/5322
[ -0.2233995795249939, 0.17917317152023315, -0.05853722244501114, 0.10688039660453796, 0.08617124706506729, -0.06110258400440216, -0.048196155577898026, 0.37375321984291077, -0.3117198944091797, 0.04802686721086502, -0.09709884226322174, 0.6309760212898254, 0.03654802590608597, -0.0396125391125679, 0.12146712094545364, 0.02066616527736187, 0.19745974242687225, 0.2436688393354416, -0.3870128393173218, 0.19320110976696014, -0.219328373670578, -0.31338733434677124, -0.267877459526062, -0.16576480865478516, -0.26540663838386536, 0.08448977023363113, -0.400877982378006, 0.10188274085521698, -0.2524119019508362, -0.4156198799610138, 0.2600679099559784, 0.4781538248062134, -0.10440479218959808, 0.14540813863277435, -0.00010639062384143472, 0.20032040774822235, -0.05686706304550171, -0.11122214049100876, -0.2843891978263855, 0.15307918190956116, -0.07330292463302612, -0.3805158734321594, -0.07305882126092911, -0.18549823760986328, 0.193536639213562, -0.18279504776000977, -0.06730369478464127, -0.09305577725172043, 0.12051594257354736, 0.1043417826294899, 0.2453843355178833, 0.07389412075281143, 0.12357780337333679, -0.12643973529338837, 0.24299219250679016, 0.283993124961853, -0.1449672430753708, 0.16718074679374695, 0.3998345136642456, -0.4241635501384735, -0.037596262991428375, 0.06655566394329071, -0.2159162014722824, 0.02252858877182007, 0.09898966550827026, 0.13085496425628662, -0.27349504828453064, 0.17160664498806, 0.020318973809480667, 0.16408909857273102, 0.25299063324928284, -0.6139113903045654, -0.26195937395095825, -0.3817085325717926, 0.13019388914108276, -0.24369508028030396, 0.05083215981721878, 0.07486255466938019, 0.0015263315290212631, 0.20767058432102203, -0.2355497181415558, -0.05178268626332283, -0.09484457969665527, -0.009005680680274963, 0.20023185014724731, 0.20132122933864594, 0.2475377768278122, 0.1809573918581009, 0.22655294835567474, -0.10194621980190277, 0.33449462056159973, -0.14525984227657318, -0.10106384754180908, -0.01674032211303711, -0.2486044019460678, 0.015182703733444214, 0.2880818545818329, -0.027815401554107666, 0.5420978665351868, -0.010264817625284195, 0.2236013561487198, 0.08510711789131165, 0.1645757257938385, 0.10462269186973572, 0.07539422810077667, 0.07088232040405273, -0.22708293795585632, 0.3774178922176361, 0.08743704855442047, 0.05193040519952774, 0.1129477322101593, 0.09780138731002808, -0.15024755895137787, -0.09431197494268417, 0.21376392245292664, -0.06218807399272919, 0.10080952942371368, 0.09419980645179749, -0.263506680727005, -0.11389882862567902, -0.23154979944229126, -0.0790875032544136, 0.0939183384180069, 0.33953145146369934, -0.049266040325164795, 0.129901722073555, -0.017084360122680664, 0.12042602896690369, -0.04595997929573059, -0.13046810030937195, -0.14730793237686157, 0.0747026652097702, -0.4967404901981354, 0.2037297487258911, 0.41660457849502563, 0.05673485994338989, -0.11149758845567703, 0.15618760883808136, 0.044508472084999084, 0.2765428125858307, -0.08966571092605591, -0.26667115092277527, 0.24225783348083496, 0.09796937555074692, -0.2591019868850708, -0.4308173656463623, 0.060925982892513275, -0.23676957190036774, -0.29889702796936035, 0.44153308868408203, 0.009311296045780182, -0.38003674149513245, -0.022880693897604942, 0.23283973336219788, -0.1075754165649414, -0.004821307957172394, -0.16928812861442566, 0.4195629358291626, 0.2657744884490967, -0.17117318511009216, 0.07178457081317902, -0.07670286297798157, 0.15671691298484802, -0.43653643131256104, 0.28363603353500366, 0.3565540015697479, -0.6358058452606201, 0.038495972752571106, 0.12135907262563705, -0.2022199183702469, 0.25573766231536865, 0.13904711604118347, -0.43117254972457886, 0.14674189686775208, -0.18713875114917755, 0.3114320635795593, -0.026377804577350616, 0.02237384393811226, -0.4992290437221527, -0.34850016236305237, 0.08302024006843567, 0.13112959265708923, 0.34112274646759033, 0.025263536721467972, 0.153246209025383, 0.10893584042787552, 0.34828469157218933, 0.04438062757253647, -0.12318961322307587, 0.0773870125412941, -0.2179008424282074, -0.2691550850868225, 0.6120601296424866, 0.11914180219173431, -0.11285519599914551, 0.02069970965385437, 0.06331237405538559, -0.401823490858078, 0.196294903755188, -0.18369391560554504, 0.10386713594198227, -0.07699519395828247, 0.16369163990020752, 0.012634661048650742, -0.02851676195859909, -0.12469550967216492, -0.4453510046005249, 0.1705891489982605, -0.18055766820907593, 0.1314275562763214, -0.3658844232559204, -0.39554232358932495, 0.11915569752454758, 0.2211235761642456, -0.1780444085597992, -0.06591132283210754, 0.2751138508319855, 0.04152612388134003, 0.2635814845561981, -0.243166983127594, -0.121025949716568, 0.1707327961921692, -0.13747425377368927, -0.10263775289058685, -0.1138196736574173, 0.3607766032218933, -0.11710990220308304, -0.28021201491355896, -0.03049517422914505, 0.27704763412475586, 0.06001323461532593, 0.10743827372789383, 0.19955205917358398, 0.4363452196121216, 0.008427402935922146, -0.02778763324022293, 0.00984685868024826, 0.12962014973163605, 0.04804777354001999, 0.036253754049539566, -0.004947492852807045, -0.623765230178833, 0.1430659294128418, -0.12161684036254883, 0.00013981014490127563, 0.3705725073814392, 0.07342102378606796, 0.20458346605300903, 0.1248551607131958, -0.17720849812030792, 0.0259872879832983, -0.01525910198688507, 0.003994280472397804, -0.11376726627349854, -0.12760913372039795, 0.47259289026260376, 0.008629102259874344, 0.3057405352592468, -0.5039013624191284, 0.3149231970310211, 0.5392943024635315, -0.08227884769439697, 0.026711899787187576, 0.07028807699680328, -0.05350589007139206, -0.21698510646820068, 0.2025802880525589, 0.03536365553736687, 0.5834046006202698, 0.3557261824607849, -0.06430146098136902, 0.12786895036697388, -0.195633664727211, -0.09871038794517517, 0.10732425004243851, 0.11046731472015381, -0.032179709523916245, 0.17642831802368164, 0.26137951016426086, -0.11880003660917282, -0.21098965406417847, -0.12033301591873169, 0.2177693247795105, 0.154796302318573, -0.22882163524627686, -0.06892764568328857, -0.5180971622467041, -0.21084186434745789, -0.1022259071469307, -0.24465589225292206, 0.039899978786706924, -0.14295870065689087, 0.17063383758068085, 0.13562430441379547, -0.2212567925453186, 0.2690681219100952, 0.03579965606331825, 0.3353149890899658, -0.2465982586145401, -0.2178526669740677, -0.1915399730205536, -0.15907418727874756, -0.05232103168964386, 0.18633152544498444, 0.2858804166316986, -0.05301325395703316, 0.40359047055244446, 0.20242005586624146, -0.02071010135114193, -0.2626683712005615, -0.18437960743904114, 0.1243414431810379, -0.36207276582717896, -0.008035147562623024, 0.3494804799556732, 0.0588332898914814, -0.06666021049022675, -0.2953248918056488, 0.22765818238258362, 0.07634323090314865, -0.14806391298770905, 0.2251809984445572, -0.0467088520526886, -0.06933031976222992, -0.24567429721355438, -0.44716235995292664, -0.27527299523353577, -0.38912513852119446, 0.37423139810562134, -0.04831942915916443, 0.15529212355613708, 0.18629485368728638, 0.2469901442527771, 0.09927397966384888, 0.05614195391535759, 0.26445430517196655, -0.18004900217056274, -0.00006321445107460022, 0.16007210314273834, 0.00047760107554495335, -0.1878199726343155, -0.07106886059045792, -0.13515189290046692, 0.10175824910402298, 0.29847997426986694, -0.12833218276500702, 0.05000146105885506, -0.042249470949172974, 0.34125611186027527, 0.06753906607627869, 0.10885285586118698, 0.5469753742218018, 0.4889160096645355, -0.22008903324604034, -0.1128285750746727, -0.10720507800579071, 0.15857383608818054, 0.02259761095046997, -0.10215426236391068, 0.044917993247509, 0.0434049591422081, 0.20052005350589752, 0.4199734926223755, 0.08720928430557251, -0.07562556862831116, 0.3920260965824127, -0.09741905331611633, 0.28828123211860657, -0.14901676774024963, -0.004903456196188927, -0.16419102251529694, -0.30460917949676514, -0.024714211001992226, -0.09560790657997131, -0.16854172945022583, -0.2156904637813568, -0.05979570373892784, 0.18005843460559845, 0.02754615992307663, -0.1890725940465927, 0.3253973126411438, -0.051052168011665344, 0.13603681325912476, 0.01563742756843567, -0.23836064338684082, -0.21297667920589447, 0.14816445112228394, -0.1745750457048416, -0.09733441472053528, 0.09473718702793121, -0.1877247542142868, -0.44245362281799316, -0.3625677525997162, -0.505279541015625, 0.28387650847435, 0.13576310873031616, 0.18702252209186554, 0.1794050931930542, -0.4654041528701782, 0.01203031837940216, -0.08344866335391998, 0.6167283058166504, 0.05606439709663391, -0.416573703289032, 0.2920147180557251, 0.10022209584712982, 0.0027209632098674774, -0.07414621114730835, -0.06235791742801666, 0.21054843068122864, -0.235848531126976, 0.0779590904712677, -0.5347548127174377, -0.06389860063791275, 0.18871261179447174, 0.19210085272789001, 0.14022161066532135, -0.07262443006038666, -0.2376515120267868, -0.19471514225006104, -0.4014143645763397, -0.10757654160261154, 0.08627718687057495, 0.0639839768409729, -0.08052175492048264, 0.11557771265506744, -0.03284958004951477, -0.08634806424379349, 0.08686549216508865, 0.09809039533138275, 0.4461136758327484, -0.08610663563013077, 0.1747162789106369, -0.007855460047721863, 0.17012804746627808, 0.8805288672447205, 0.6072484254837036, -0.2799393832683563, 0.03756696358323097, -0.054136693477630615, 0.07840104401111603, 0.2977789342403412, 0.1645485907793045, -0.002477274276316166, 0.3977232873439789, 0.00019709765911102295, 0.07828556001186371, -0.28739914298057556, -0.1168019026517868, -0.03688432276248932, -0.2542877793312073, -0.34004783630371094, -0.5476858615875244, 0.21574026346206665, 0.23853467404842377, -0.20117996633052826, 0.3964480459690094, 0.056762561202049255, -0.372576504945755, 0.1356533020734787, 0.1885654330253601, 1.1742197275161743, 0.06832489371299744, 0.3016875684261322, 0.3845306932926178, -0.14399877190589905, -0.0900835171341896, -0.1945837140083313, 0.20367971062660217, -0.20436431467533112, -0.18842598795890808, -0.011501746252179146, -0.26442471146583557, 0.21024096012115479, -0.11039526760578156, -0.4809679388999939, 0.08052097260951996, -0.16784276068210602, 0.03499670326709747, 0.06829413026571274, -0.0025286488234996796, -0.1232311949133873, -0.2668857276439667, -0.07181904464960098, 0.1525985449552536, 0.04634741321206093, -0.48856136202812195, -0.07603664696216583, -0.01197393424808979, -0.26892298460006714, 0.03832697123289108, -0.08721128106117249, -0.06336596608161926, -0.31006157398223877, 0.27664750814437866, -0.02191520854830742, 0.05849641561508179, -0.11913734674453735, 0.08567970246076584, -0.32732534408569336, -0.13147558271884918, -0.08696299046278, -0.020049404352903366, 0.19037361443042755, 0.13241997361183167, 0.09888913482427597, -0.2957007586956024, 0.5770146250724792, 0.08573651313781738, -0.3887269198894501, 0.1259087324142456, -0.19717372953891754, -0.35145634412765503, -0.23423945903778076, 0.011272571980953217, 0.29190152883529663, -0.41331398487091064, -0.010297837667167187, 0.12467817217111588, -0.15305043756961823, -0.16932477056980133, 0.20108191668987274, 0.06240260228514671, -0.04552118480205536, 0.39959532022476196, -0.17743363976478577, -0.11555936932563782, -0.2521262466907501, 0.2719809114933014, 0.1259792000055313, 0.36069363355636597, 0.25764745473861694, -0.004347071051597595, -0.26153069734573364, -0.18712857365608215, -0.0432133674621582, 0.2867668867111206, -0.22039225697517395, -0.0737309604883194, -0.09459806978702545, 0.11759583652019501, 0.0976102203130722, 0.275371253490448, 0.1488870531320572, 0.15415075421333313, -0.24286116659641266, 0.04156576842069626, -0.4635843336582184, 0.40029364824295044, 0.2020299732685089, 0.2982396185398102, 0.17472678422927856, 0.4682216942310333, 0.006048623472452164, 0.09046313166618347, -0.4264829456806183, -0.1848244071006775, -0.19696210324764252, 0.18680259585380554, -0.16958831250667572, 0.04785175994038582, -0.23063302040100098, -0.25024592876434326, 0.20999492704868317, 0.34829503297805786, -0.15607330203056335, -0.27919888496398926, 0.11265401542186737, 0.08296403288841248, 0.1501820981502533, -0.017800701782107353, -0.36676210165023804, -0.20605014264583588, -0.1277092695236206, -0.09248910844326019, 0.18772628903388977, -0.04381164163351059, -0.22408144176006317, 0.03955594822764397, 0.4033304452896118, -0.0816434696316719, 0.022195622324943542, -0.07497961074113846, 0.03538671135902405, -0.07443727552890778, 0.0018256562761962414, 0.21376441419124603, -0.4514285624027252, -0.11359895020723343, -0.11604205518960953, 0.4146474003791809, 0.17698699235916138, 0.00023825839161872864, 0.27525997161865234, -0.03730855882167816, -0.2049003690481186, -0.1418987661600113, 0.3349461853504181, 0.40076619386672974, -0.11296810209751129, -0.005037052556872368, 0.25483113527297974, 0.30024197697639465, -0.3511156141757965, -0.10524354875087738, -0.11496967077255249, -0.1604912132024765, 0.2774043679237366, 0.27501681447029114, 0.18278586864471436, 0.08055850863456726, -0.15999408066272736, 0.03460831940174103, 0.3136029839515686, -0.07465633749961853, -0.0078636035323143, 0.2581785023212433, -0.02856924571096897, 0.034643419086933136, 0.3089475631713867, 0.3930971026420593, 0.21111631393432617, 0.19195380806922913, -0.06540616601705551, 0.5730530023574829, 0.016580384224653244, -0.02325419709086418, 0.14137738943099976, -0.14013886451721191, 0.248249813914299, 0.4524056017398834, 0.12307010591030121, -0.11708279699087143, 0.036552660167217255, 0.39925557374954224, 0.04309321567416191, -0.2816523015499115, 0.2595163583755493, 0.17960767447948456, -0.07007641345262527, 0.0045265983790159225, -0.286899596452713, -0.21168816089630127, -0.24810637533664703, -0.1368146538734436, -0.05077126994729042, -0.04011380672454834, 0.46427688002586365, -0.1581152081489563, 0.05161377042531967, -0.31821510195732117, 0.433315634727478, 0.16706612706184387, 0.2912793457508087, -0.27700096368789673, -0.060247235000133514, 0.3320510983467102, -0.18493953347206116, 0.06859345734119415, 0.28380826115608215, 0.4582970142364502, 0.2455785572528839, 0.06197167932987213, -0.13643388450145721, -0.18111523985862732, 0.006803466007113457, -0.14334526658058167, 0.22557218372821808, 0.15194323658943176, -0.15940554440021515, 0.1474112868309021, 0.2663273513317108, -0.15613389015197754, 0.043985575437545776, 0.25220319628715515, 0.1064295619726181, -0.3482547104358673, -0.1901024878025055, 0.37936124205589294, -0.5658980011940002, 0.4828537404537201, 0.057075385004282, -0.22743549942970276, 0.1881873458623886, 0.3868785798549652, -0.00695173442363739, 0.1621524691581726, -0.15666157007217407, 0.12494157254695892, 0.4471781849861145, 0.4390190541744232, 0.04120669141411781, 0.1436716914176941, -0.36543554067611694, -0.31781819462776184, -0.4362603425979614, -0.19781696796417236, -0.08148761093616486, -0.22221550345420837, 0.23049341142177582, 0.0957336500287056, 0.19789475202560425, 0.02113487385213375, -0.022895097732543945, 0.07259124517440796, -0.15123452246189117, 0.12115447223186493, -0.2089158594608307, -0.15474499762058258, 0.07605309784412384, -0.07154173403978348, 0.07659061253070831, -0.40274927020072937, 0.1329401135444641, 0.09402386844158173, 0.15372797846794128, -0.3869074583053589, 0.1657528281211853, 0.4263322055339813, 0.4857916235923767, 0.38623911142349243, 0.18233585357666016, 0.3023911416530609, -0.08386527746915817, 0.020701957866549492, -0.1563946008682251, -0.18186569213867188, -0.2571572959423065, 0.017612572759389877, -0.06646409630775452, -0.09205450862646103, -0.1804676353931427, -0.23251087963581085, -0.07469101995229721, -0.08352364599704742, 0.12477569282054901, 0.2667068541049957, -0.2803284823894501, 0.03185439109802246, 0.23075219988822937, 0.008681172505021095, -0.25089022517204285, 0.18407976627349854, 0.12361826747655869, 0.2527666389942169, -0.2998037040233612, -0.24701915681362152, 0.14669078588485718, 0.07313749194145203, -0.17599965631961823, 0.09277491271495819, -0.01941359043121338, -0.17054834961891174, 0.02941332943737507, -0.6836521029472351, -0.1686740219593048, 0.2768702507019043, -0.09174969047307968, -0.28365209698677063, 0.2841681241989136, 0.08408424258232117, 0.0762002021074295, -0.22466161847114563, 0.4515342116355896, -0.32388558983802795, -0.2721549868583679, -0.18089798092842102, -0.37188464403152466 ]
https://github.com/huggingface/datasets/pull/2023
Add Romanian to XQuAD
Hi ! Thanks for updating XQUAD :) The slow test is failing though since there's no dummy data nor metadata in dataset_infos.json for the romanian configuration. Could you please generate the dummy data with ``` datasets-cli dummy_data ./datasets/xquad --auto_generate --json_field data ``` This will update all the dummy data files, and also add the new one for the romanian configuration. You can also update the metadata with ``` datasets-cli test ./datasets/xquad --name xquad.ro --save_infos ``` This will update the dataset_infos.json file with the metadata of the romanian config :) Thanks in advance !
On Jan 18, XQuAD was updated with a new Romanian validation file ([xquad commit link](https://github.com/deepmind/xquad/commit/60cac411649156efb6aab9dd4c9cde787a2c0345))
93
text: Add Romanian to XQuAD On Jan 18, XQuAD was updated with a new Romanian validation file ([xquad commit link](https://github.com/deepmind/xquad/commit/60cac411649156efb6aab9dd4c9cde787a2c0345)) Hi ! Thanks for updating XQUAD :) The slow test is failing though since there's no dummy data nor metadata in dataset_infos.json for the romanian configuration. Could you please generate the dummy data with ``` datasets-cli dummy_data ./datasets/xquad --auto_generate --json_field data ``` This will update all the dummy data files, and also add the new one for the romanian configuration. You can also update the metadata with ``` datasets-cli test ./datasets/xquad --name xquad.ro --save_infos ``` This will update the dataset_infos.json file with the metadata of the romanian config :) Thanks in advance !
[ -0.2805049419403076, 0.3200121819972992, -0.10678911209106445, -0.06664876639842987, 0.09922069311141968, -0.06681475043296814, 0.024172410368919373, 0.4886467158794403, 0.08974118530750275, 0.17025604844093323, -0.01849217712879181, -0.1965114325284958, 0.07059096544981003, -0.0783364474773407, -0.15689049661159515, 0.16721810400485992, 0.06882551312446594, 0.22866696119308472, 0.2973899245262146, -0.2959761619567871, -0.02125297486782074, 0.004533989354968071, -0.17239481210708618, -0.10695424675941467, -0.5577777624130249, 0.08992918580770493, -0.13312456011772156, 0.05679615959525108, -0.36064255237579346, -0.3588545322418213, -0.06482765078544617, 0.44210952520370483, -0.3527943193912506, 0.29955005645751953, -0.00011475846986286342, -0.3091662526130676, 0.4906004071235657, -0.11349882930517197, 0.05327947810292244, 0.252054363489151, -0.5208535194396973, -0.3443969786167145, -0.3146872818470001, -0.240277498960495, -0.1955547034740448, 0.004234147723764181, -0.17484021186828613, -0.10222360491752625, -0.0904318243265152, 0.46551433205604553, 0.15803498029708862, 0.23023805022239685, -0.3228837847709656, -0.4245727062225342, -0.1460334062576294, 0.14698496460914612, 0.08190444856882095, 0.3420061767101288, 0.3815646767616272, 0.20379334688186646, 0.07241273671388626, 0.18980838358402252, -0.006605412811040878, -0.16745129227638245, -0.27121779322624207, -0.10038264840841293, -0.06205614656209946, -0.05957922339439392, 0.2200840711593628, 0.39822423458099365, 0.469614714384079, -0.09524170309305191, -0.07358825951814651, 0.0753709003329277, 0.019897736608982086, -0.25095808506011963, 0.2597922682762146, -0.1374199241399765, -0.17944610118865967, -0.027079720050096512, -0.022622212767601013, -0.3969341218471527, 0.019279159605503082, 0.1317761242389679, -0.030245410278439522, 0.5389844179153442, 0.06897975504398346, -0.19346299767494202, 0.020122680813074112, -0.276500403881073, -0.13181506097316742, -0.21043343842029572, -0.19903285801410675, 0.2358848601579666, -0.31740573048591614, -0.5133739709854126, -0.18348413705825806, -0.06459309905767441, 0.36651578545570374, 0.040032096207141876, -0.37669554352760315, 0.3255807161331177, -0.2459535002708435, -0.0077694132924079895, -0.14677615463733673, 0.5729479789733887, 0.3362981081008911, 0.0639100894331932, 0.26711100339889526, 0.18005475401878357, 0.0322485975921154, 0.17425832152366638, -0.18086440861225128, -0.11093027889728546, -0.2958672046661377, 0.2800673842430115, -0.05970478430390358, -0.29949232935905457, -0.2477429360151291, 0.08849133551120758, -0.010719932615756989, -0.15276674926280975, 0.0485040619969368, 0.46441128849983215, -0.14525403082370758, 0.13924899697303772, -0.27341699600219727, 0.0815444216132164, -0.37301504611968994, -0.3572254776954651, -0.06388246268033981, 0.5276168584823608, -0.15173184871673584, -0.03751732409000397, 0.07093064486980438, -0.02800055220723152, 0.3871215879917145, 0.13558568060398102, 0.3009624481201172, 0.24832957983016968, 0.17574118077754974, -0.21014264225959778, 0.16064420342445374, 0.019487563520669937, -0.11611387133598328, 0.121420718729496, 0.02766689471900463, -0.4191415309906006, -0.2324804961681366, 0.08310938626527786, -0.08571944385766983, -0.3705020844936371, -0.2204810529947281, 0.20130902528762817, -0.24875995516777039, -0.036974020302295685, -0.07576560229063034, 0.7148845791816711, -0.20505613088607788, -0.011729832738637924, 0.011841543018817902, 0.30115562677383423, 0.02331649884581566, -0.07180739939212799, 0.3035566508769989, 0.5582758784294128, -0.37409162521362305, 0.18320898711681366, -0.10076417028903961, 0.0007929876446723938, -0.055582351982593536, 0.2937152087688446, -0.1544623076915741, 0.11429449915885925, -0.2866240441799164, 0.20202843844890594, 0.31866687536239624, -0.4487820565700531, -0.1594155877828598, -0.041716501116752625, -0.14157356321811676, 0.03870958089828491, 0.13688497245311737, -0.16054081916809082, 0.20143809914588928, -0.0889427661895752, -0.25665339827537537, 0.08877946436405182, 0.03281889110803604, -0.13282836973667145, -0.33850929141044617, -0.18923336267471313, 0.1445801705121994, 0.17610089480876923, 0.13743378221988678, 0.044029224663972855, 0.04909371957182884, 0.3303128182888031, 0.26599714159965515, -0.10265250504016876, -0.019658254459500313, 0.33177119493484497, 0.4306045472621918, -0.3545929789543152, 0.05583830550312996, 0.05286561697721481, -0.022522762417793274, 0.23532548546791077, 0.21021458506584167, 0.431908518075943, 0.23784483969211578, -0.08340312540531158, -0.5236563086509705, -0.1498158723115921, -0.2311544269323349, -0.3101581335067749, 0.21218012273311615, 0.22574903070926666, 0.24548280239105225, 0.1291622817516327, -0.04580418020486832, 0.17940440773963928, -0.05816507339477539, -0.23392561078071594, -0.2823917269706726, -0.028895389288663864, -0.06394009292125702, -0.11210858821868896, -0.015414385125041008, 0.06768189370632172, -0.04052232950925827, -0.3602694571018219, -0.18155211210250854, 0.3258086144924164, -0.09118635207414627, 0.008125171065330505, 0.2912384569644928, 0.3353745639324188, 0.2590211033821106, -0.12407878041267395, 0.21903038024902344, 0.11892557144165039, 0.00806796457618475, -0.09121157228946686, -0.2197258174419403, 0.38470256328582764, -0.044648390263319016, -0.06113264709711075, -0.10391665995121002, -0.22635501623153687, 0.46839696168899536, -0.09298166632652283, -0.052839212119579315, -0.24689333140850067, 0.443695992231369, 0.7909315824508667, 0.2925334870815277, 0.11584815382957458, -0.19248345494270325, 0.056912340223789215, 0.545291543006897, -0.09109190106391907, -0.123744435608387, 0.019809389486908913, 0.11552056670188904, -0.0016336198896169662, 0.3445226848125458, -0.04119539633393288, 0.3688821792602539, -0.09656567871570587, 0.015738975256681442, 0.17035657167434692, -0.07830531895160675, -0.12057875841856003, 0.17647135257720947, -0.39068323373794556, -0.05589985102415085, 0.032440997660160065, 0.06305316090583801, -0.157956063747406, -0.15455880761146545, -0.047656573355197906, 0.44447097182273865, 0.446139395236969, -0.024354681372642517, -0.338168203830719, -0.08865140378475189, -0.029263442382216454, -0.24199718236923218, -0.2477266937494278, -0.21990826725959778, -0.06980712711811066, 0.1318231225013733, -0.23321935534477234, -0.03290720283985138, 0.5706244707107544, 0.2916049361228943, 0.0132218599319458, -0.20918060839176178, -0.37078019976615906, -0.22109854221343994, -0.01854865252971649, -0.0733664259314537, 0.061859507113695145, 0.07676558196544647, 0.3553188741207123, 0.09874814748764038, -0.45049208402633667, 0.04260779172182083, 0.0018971161916851997, -0.5962474346160889, -0.14408628642559052, 0.1757769137620926, 0.2537635862827301, -0.0042033568024635315, 0.1727829873561859, 0.0511426106095314, -0.21631363034248352, 0.20735497772693634, 0.01582200638949871, -0.10282410681247711, 0.07842283695936203, -0.22597166895866394, -0.026204602792859077, 0.05695967748761177, -0.37657859921455383, -0.18917834758758545, -0.17964798212051392, -0.040378257632255554, -0.13384665548801422, -0.02106522023677826, -0.10959389805793762, 0.3010452389717102, 0.11613427102565765, -0.33685311675071716, -0.25503405928611755, -0.12670229375362396, -0.4104960858821869, 0.5269367694854736, -0.04498431831598282, -0.11937718093395233, 0.05705823376774788, -0.2663625478744507, 0.6367867588996887, -0.18982215225696564, 0.08566075563430786, -0.13382160663604736, -0.22950027883052826, 0.5779024362564087, 0.12822651863098145, -0.4296734631061554, 0.64853835105896, -0.1670796126127243, 0.015488797798752785, -0.06748883426189423, -0.27210018038749695, 0.01630260795354843, 0.07525823265314102, 0.1192862018942833, -0.2590223252773285, 0.3066958785057068, 0.1317923665046692, 0.6536258459091187, 0.037298887968063354, 0.16210365295410156, -0.05861926078796387, 0.10974323004484177, 0.4007266163825989, -0.04273759573698044, -0.35680124163627625, 0.002835317747667432, 0.18008258938789368, -0.07724197208881378, 0.024093449115753174, -0.30834197998046875, 0.031192714348435402, -0.18347233533859253, 0.15337790548801422, -0.08108591288328171, 0.011112187057733536, 0.09228761494159698, -0.2964622974395752, 0.09815718978643417, 0.2049558311700821, -0.007160026580095291, -0.21433719992637634, 0.08418691903352737, 0.20240084826946259, 0.3145124912261963, -0.15138068795204163, -0.1410840004682541, -0.760783851146698, -0.1754106879234314, -0.37448418140411377, 0.13469430804252625, -0.11647003144025803, 0.4165530800819397, -0.09051118791103363, 0.408361554145813, -0.009879864752292633, -0.10538032650947571, 0.05453328788280487, -0.4194374978542328, -0.2145317643880844, 0.3695937395095825, -0.058564890176057816, -0.1813080608844757, -0.018240313977003098, -0.10914301872253418, -0.216133251786232, 0.6547714471817017, 0.5225402116775513, -0.559436023235321, -0.10144835710525513, 0.06970451772212982, 0.2720705568790436, -0.07867191731929779, -0.036143459379673004, -0.20840173959732056, -0.15409235656261444, -0.21018120646476746, 0.18128158152103424, 0.09099005162715912, 0.22372904419898987, 0.09928929060697556, 0.11084412038326263, 0.2767731845378876, 0.16419994831085205, 0.2805965542793274, 0.07656006515026093, 0.1203552857041359, 0.24842141568660736, 0.10026022791862488, -0.08741633594036102, -0.1931552290916443, -0.39716479182243347, 0.24348437786102295, 0.12042784690856934, -0.629705548286438, -0.33230355381965637, -0.07502273470163345, 0.4327833950519562, 0.2872685194015503, 0.16602732241153717, 0.19615715742111206, -0.20610404014587402, -0.039147086441516876, -0.158423513174057, 0.6511939764022827, 0.23377931118011475, 0.13112765550613403, 0.017429035156965256, -0.3474622368812561, 0.2771623730659485, -0.11961334943771362, 0.014097325503826141, 0.3754732608795166, -0.10039450228214264, 0.003539880272001028, 0.012517474591732025, 0.29031121730804443, 0.765365719795227, 0.16851820051670074, -0.25384610891342163, 0.23604512214660645, -0.20046356320381165, 0.2400558739900589, -0.1717163473367691, -0.11076998710632324, -0.4044005572795868, 0.0010520340874791145, 0.2491712123155594, 0.03696781024336815, 0.35643258690834045, 0.15074080228805542, -0.39098435640335083, 0.290526419878006, -0.1573011577129364, 0.22285820543766022, 0.17492230236530304, 0.5961708426475525, -0.0012558475136756897, -0.2542388439178467, 0.0158859733492136, 0.1056995689868927, 0.11013101041316986, -0.11117959022521973, -0.022459525614976883, -0.046503353863954544, -0.11255753040313721, 0.019218049943447113, -0.24857930839061737, 0.05351288616657257, -0.3692018985748291, 0.013059008866548538, -0.19045329093933105, -0.258073091506958, 0.010723620653152466, -0.051277805119752884, 0.3507912755012512, 0.47991350293159485, -0.14074434340000153, 0.528048574924469, 0.05866006016731262, -0.021687408909201622, 0.43518784642219543, -0.4210478961467743, 0.010801488533616066, -0.10098669677972794, -0.30474257469177246, 0.30097925662994385, -0.44086506962776184, -0.10375601053237915, -0.3162597417831421, -0.19169913232326508, 0.006464272737503052, -0.019957104697823524, -0.26846644282341003, 0.14491523802280426, -0.11481225490570068, -0.13713900744915009, 0.14564363658428192, 0.23271510004997253, -0.08777526021003723, -0.07274887710809708, -0.19531114399433136, -0.28049513697624207, -0.12163956463336945, 0.1297370195388794, 0.017301568761467934, -0.13676252961158752, 0.4099324345588684, -0.3263258934020996, 0.01536945253610611, -0.13621631264686584, 0.0629689171910286, 0.12946823239326477, -0.4684658646583557, -0.19950948655605316, -0.16715723276138306, -0.46448713541030884, -0.12449527531862259, -0.07283000648021698, 0.16063377261161804, -0.03123774379491806, 0.0319683812558651, -0.2300228327512741, -0.35531216859817505, -0.03209230303764343, 0.07813793420791626, -0.04806967452168465, -0.22207343578338623, 0.009849738329648972, -0.09190329164266586, 0.14657537639141083, -0.2937058210372925, 0.06630536913871765, -0.1067609116435051, 0.11061495542526245, -0.12679913640022278, 0.05016423389315605, 0.02548297308385372, 0.21134215593338013, 0.03799602389335632, 0.004008276388049126, -0.13294658064842224, -0.13379156589508057, -0.024979032576084137, 0.13294857740402222, 0.09801555424928665, 0.06274057924747467, 0.3729858100414276, 0.08101844042539597, -0.14265701174736023, -0.18368034064769745, -0.0809088945388794, -0.20366430282592773, -0.1496427357196808, 0.27264344692230225, -0.047373685985803604, -0.2161180078983307, -0.11164850741624832, -0.0031058192253112793, 0.3331010043621063, 0.16813869774341583, -0.008923409506678581, 0.2259892225265503, 0.021748321130871773, -0.11927846074104309, -0.07109850645065308, 0.17545095086097717, -0.15660826861858368, 0.012347491458058357, 0.014642719179391861, 0.013078782707452774, 0.3410048484802246, 0.39687734842300415, 0.02574893832206726, 0.35985198616981506, -0.17023973166942596, -0.007615229114890099, 0.2536948621273041, 0.2028084546327591, -0.20759114623069763, -0.03865573927760124, -0.10882119834423065, 0.15581034123897552, 0.2317810356616974, 0.00022102892398834229, 0.36374175548553467, -0.146953746676445, 0.9197805523872375, 0.07664217799901962, 0.028492063283920288, -0.34126734733581543, 0.09544184803962708, 0.06601924449205399, -0.15040138363838196, -0.07758684456348419, 0.29506605863571167, -0.07225900888442993, 0.06480707228183746, 0.19194908440113068, 0.29155775904655457, 0.48764339089393616, 0.18878093361854553, 0.32633256912231445, -0.23611673712730408, 0.08573406934738159, -0.005259048193693161, 0.4423570930957794, -0.19613680243492126, 0.09267336130142212, 0.0573694184422493, 0.1735917627811432, -0.39142102003097534, 0.004354062490165234, -0.23904097080230713, -0.26390668749809265, -0.13727885484695435, 0.07394663989543915, 0.2881712317466736, -0.0993831679224968, -0.2338555008172989, 0.10067985951900482, 0.1892765760421753, 0.20080651342868805, -0.04233153164386749, -0.16817505657672882, -0.42983031272888184, -0.18601004779338837, 0.19046655297279358, 0.24068784713745117, 0.02011462301015854, -0.29259178042411804, 0.295706570148468, 0.1941186487674713, -0.11092488467693329, 0.23505784571170807, 0.6676719784736633, 0.14093206822872162, 0.2140360325574875, 0.06502306461334229, 0.23317214846611023, -0.3618790805339813, -0.11716505885124207, 0.2242409884929657, 0.4484473764896393, 0.3023788332939148, -0.028421498835086823, 0.27517232298851013, 0.1286488175392151, -0.18283525109291077, -0.20060403645038605, 0.18965129554271698, -0.24925458431243896, -0.33737069368362427, -0.15587806701660156, 0.06233980506658554, 0.01096247136592865, -0.2513265013694763, 0.03529497608542442, -0.20602956414222717, -0.035382214933633804, -0.025177516043186188, -0.014338990673422813, -0.09619126468896866, -0.22591906785964966, 0.07368040084838867, -0.2938806116580963, 0.3530369997024536, -0.14409637451171875, -0.1645810902118683, -0.3512018322944641, -0.6421525478363037, -0.8699524402618408, 0.1574709266424179, -0.018488164991140366, -0.09215600043535233, 0.06355680525302887, 0.26181864738464355, 0.10070449858903885, 0.014657311141490936, -0.27790945768356323, 0.13598032295703888, 0.01780220866203308, -0.28547465801239014, -0.4539753198623657, 0.22193990647792816, -0.06179983913898468, 0.12551464140415192, -0.011406823992729187, -0.12944582104682922, 0.2842576801776886, 0.21389120817184448, 0.0006151683628559113, 0.08820144832134247, -0.1573392152786255, 0.4284055829048157, 0.41765597462654114, 0.3248063921928406, 0.172551691532135, 0.34175166487693787, -0.11579236388206482, 0.028644872829318047, -0.27237752079963684, 0.10652637481689453, -0.09784220904111862, 0.4087449908256531, 0.3227444887161255, 0.2655840218067169, 0.1255033314228058, 0.3916468620300293, -0.12285622954368591, 0.3552600145339966, -0.12058125436306, -0.402558833360672, -0.06274344027042389, 0.09333327412605286, 0.18309026956558228, 0.29753273725509644, 0.05707480385899544, 0.32604527473449707, 0.04479903727769852, 0.15827247500419617, -0.27692151069641113, 0.08214165270328522, 0.21547812223434448, 0.2870473563671112, -0.17708516120910645, -0.22875255346298218, 0.06348477303981781, -0.021992623805999756, 0.07042156904935837, -0.1991756409406662, -0.1248869076371193, 0.304566890001297, 0.33985838294029236, -0.060747623443603516, 0.10645665228366852, 0.39501965045928955, 0.3031686544418335, -0.17117466032505035, 0.3205017149448395, 0.03771302103996277, -0.01622915081679821, 0.14928939938545227, -0.04710957780480385 ]
https://github.com/huggingface/datasets/pull/2023
Add Romanian to XQuAD
Hello Quentin, and thanks for your help. I found that running ```python datasets-cli test ./datasets/xquad --name xquad.ro --save_infos ``` was not enough to pass the slow tests, because it was not adding the new `xquad.ro.json` checksum to the other configs infos and becuase of that an `UnexpectedDownloadedFile` error was being thrown, so instead I used: ```python datasets-cli test ./datasets/xquad --save_infos --all_configs --ignore_verifications ``` `--ignore_verifications` was necessary to bypass the same `UnexpectedDownloadedFile` error. Additionally, I deleted `dummy_data_copy.zip` and the `copy.sh` script because they both seem now unnecessary. The slow tests for both the real and dummy data now pass successfully, so I hope that I didn't mess anything up :)
On Jan 18, XQuAD was updated with a new Romanian validation file ([xquad commit link](https://github.com/deepmind/xquad/commit/60cac411649156efb6aab9dd4c9cde787a2c0345))
109
text: Add Romanian to XQuAD On Jan 18, XQuAD was updated with a new Romanian validation file ([xquad commit link](https://github.com/deepmind/xquad/commit/60cac411649156efb6aab9dd4c9cde787a2c0345)) Hello Quentin, and thanks for your help. I found that running ```python datasets-cli test ./datasets/xquad --name xquad.ro --save_infos ``` was not enough to pass the slow tests, because it was not adding the new `xquad.ro.json` checksum to the other configs infos and becuase of that an `UnexpectedDownloadedFile` error was being thrown, so instead I used: ```python datasets-cli test ./datasets/xquad --save_infos --all_configs --ignore_verifications ``` `--ignore_verifications` was necessary to bypass the same `UnexpectedDownloadedFile` error. Additionally, I deleted `dummy_data_copy.zip` and the `copy.sh` script because they both seem now unnecessary. The slow tests for both the real and dummy data now pass successfully, so I hope that I didn't mess anything up :)
[ -0.414494127035141, 0.3986125588417053, -0.10615777969360352, -0.08747990429401398, 0.23031654953956604, -0.06781817972660065, 0.09680318087339401, 0.5355532169342041, 0.17808958888053894, 0.27647048234939575, -0.12777213752269745, 0.014079409651458263, 0.14130878448486328, 0.012186167761683464, -0.15846028923988342, 0.3005843162536621, 0.042721960693597794, 0.11830586194992065, 0.17587299644947052, -0.3094725012779236, -0.11859310418367386, -0.015851756557822227, -0.12517395615577698, -0.07553766667842865, -0.4192619025707245, 0.08113416284322739, -0.03082137182354927, 0.07557178288698196, -0.3023301661014557, -0.2803940176963806, -0.07051660865545273, 0.4179091453552246, -0.28304246068000793, 0.27921000123023987, -0.0001048867852659896, -0.14966511726379395, 0.3704025149345398, -0.015628408640623093, 0.010389169678092003, 0.3068508207798004, -0.3326525390148163, -0.3600906431674957, -0.20047976076602936, -0.28131720423698425, -0.08868727087974548, -0.03456180915236473, -0.11678531765937805, -0.09080428630113602, 0.022287234663963318, 0.40152832865715027, 0.28184211254119873, 0.30578526854515076, -0.33156704902648926, -0.26354336738586426, -0.07479392737150192, -0.11566528677940369, 0.04964333027601242, 0.46043261885643005, 0.373836487531662, 0.1375477910041809, -0.02578280121088028, 0.06498508155345917, -0.08258192986249924, -0.14632166922092438, -0.30906084179878235, -0.12692652642726898, -0.01641695201396942, -0.07415878027677536, 0.1266600489616394, 0.44053006172180176, 0.10898421704769135, -0.07900392264127731, -0.24198408424854279, -0.026312679052352905, 0.07042458653450012, -0.3834308981895447, 0.30998051166534424, -0.0709972232580185, -0.22609803080558777, -0.020760729908943176, -0.259222149848938, -0.21613483130931854, 0.08723433315753937, 0.07678156346082687, -0.037180766463279724, 0.3607763350009918, 0.06893258541822433, -0.1415284276008606, 0.08540637046098709, -0.1795528680086136, -0.023294653743505478, -0.18717285990715027, -0.09770283102989197, -0.0031087584793567657, -0.38299286365509033, -0.36660701036453247, -0.12181320041418076, 0.2586342990398407, 0.32764875888824463, 0.10745217651128769, -0.24513967335224152, 0.3877367675304413, -0.07409198582172394, -0.07158344238996506, -0.09756499528884888, 0.7510362863540649, 0.16677334904670715, 0.025291062891483307, 0.4237256646156311, 0.25765448808670044, -0.15185776352882385, 0.23496857285499573, -0.10544191300868988, -0.2015172243118286, -0.14903315901756287, 0.2560959756374359, -0.038320980966091156, -0.3904641270637512, -0.31383073329925537, 0.059009164571762085, 0.11092595010995865, -0.10705537348985672, 0.10276994109153748, 0.5587877035140991, -0.09960860013961792, 0.18147054314613342, -0.2324877828359604, 0.08865830302238464, -0.4682219624519348, -0.22882016003131866, -0.13152754306793213, 0.4101015031337738, -0.17797265946865082, -0.03560445457696915, 0.05183841660618782, -0.1459304541349411, 0.2957901060581207, 0.15884308516979218, 0.4208860397338867, 0.20902052521705627, 0.1203506737947464, -0.19113539159297943, 0.13280043005943298, 0.09568236023187637, -0.06329203397035599, 0.0044581275433301926, 0.12369875609874725, -0.4314747452735901, -0.23229384422302246, 0.02268950641155243, -0.06450047343969345, -0.2172987163066864, -0.015675297006964684, 0.3000006377696991, -0.39560985565185547, -0.1319306343793869, 0.011919781565666199, 0.37425029277801514, -0.12414512783288956, -0.004469349980354309, 0.02646555006504059, 0.03575444966554642, 0.04355218634009361, -0.043553926050662994, 0.1836092621088028, 0.4349365830421448, -0.39874011278152466, 0.12654143571853638, -0.108916275203228, -0.025900617241859436, 0.09099692851305008, 0.38853174448013306, -0.1972353607416153, 0.17065836489200592, -0.24539661407470703, 0.10642459988594055, 0.2682051956653595, -0.2853624224662781, -0.3344258964061737, 0.06376644223928452, -0.07216426730155945, 0.07637666910886765, 0.03256624937057495, -0.1257001906633377, 0.3798080384731293, -0.1423429548740387, -0.20265275239944458, 0.1540643870830536, 0.09301800280809402, -0.04198227822780609, -0.42824405431747437, -0.19474822282791138, 0.1997515708208084, 0.17552152276039124, 0.011725690215826035, -0.007146745920181274, 0.11080861836671829, 0.09822350740432739, 0.25372621417045593, -0.32210516929626465, -0.1821373552083969, 0.24452747404575348, 0.31286129355430603, -0.36203306913375854, 0.12218183279037476, 0.06932783126831055, 0.0749860629439354, 0.3200531601905823, 0.07690730690956116, 0.37057405710220337, 0.055468395352363586, -0.06356247514486313, -0.4207773506641388, -0.0763741210103035, -0.3949337899684906, -0.2176397740840912, 0.27804675698280334, 0.23330579698085785, 0.12852461636066437, 0.1471705138683319, -0.014335300773382187, 0.1753229796886444, -0.15658722817897797, -0.1674509048461914, -0.24488316476345062, -0.107245072722435, -0.06445161253213882, -0.14278775453567505, -0.04703212529420853, 0.020858529955148697, -0.01934818923473358, -0.26837456226348877, -0.2477627396583557, 0.369475781917572, -0.12567156553268433, 0.08125902712345123, 0.2265051007270813, 0.15653663873672485, 0.24123148620128632, -0.1050572618842125, 0.3076333999633789, 0.2672562301158905, -0.01615799404680729, -0.010335981845855713, -0.12991994619369507, 0.46734511852264404, -0.22017516195774078, -0.028718046844005585, 0.0062150172889232635, -0.12667754292488098, 0.49607178568840027, -0.12419566512107849, -0.0761871263384819, -0.18099558353424072, 0.610481321811676, 0.8594700694084167, 0.25927242636680603, 0.17732425034046173, -0.06958190351724625, 0.21397808194160461, 0.5890467166900635, -0.152303084731102, -0.06587306410074234, 0.014349639415740967, 0.1862221658229828, 0.00741654634475708, 0.309872567653656, 0.3922187387943268, 0.38038426637649536, 0.020505402237176895, 0.06277808547019958, 0.17381532490253448, -0.25105321407318115, -0.1630670577287674, 0.10208839178085327, -0.27670055627822876, -0.17813153564929962, 0.05826963856816292, 0.08028927445411682, -0.11337887495756149, -0.38071775436401367, 0.06333334743976593, 0.2511712610721588, 0.2831237018108368, -0.07672677934169769, -0.12153798341751099, -0.18894731998443604, 0.09568532556295395, -0.28085947036743164, -0.17843183875083923, -0.2108706682920456, -0.36885684728622437, 0.18189574778079987, -0.2577013671398163, -0.21474061906337738, 0.5461382865905762, 0.059713881462812424, -0.010109305381774902, -0.12076198309659958, -0.4025709629058838, -0.05106227099895477, -0.03779400885105133, -0.08869753032922745, 0.10108591616153717, 0.24239180982112885, 0.2812007963657379, 0.16966742277145386, -0.334064245223999, -0.09316165745258331, -0.08344049006700516, -0.5578914284706116, -0.044734008610248566, -0.1059180200099945, 0.37008461356163025, -0.049838095903396606, 0.0403251089155674, 0.019902456551790237, -0.29023268818855286, 0.17660915851593018, -0.1665446013212204, -0.06524644792079926, 0.26435357332229614, -0.12507624924182892, -0.10034434497356415, -0.0841963142156601, -0.4552071988582611, -0.13279324769973755, -0.20407825708389282, 0.021871857345104218, -0.15042980015277863, -0.08421832323074341, -0.12224873155355453, 0.11990998685359955, 0.16552647948265076, -0.19766224920749664, -0.1796095073223114, -0.1919577717781067, -0.33409982919692993, 0.546280562877655, -0.1044047474861145, -0.3116697371006012, -0.03386472165584564, -0.2528430223464966, 0.4409506320953369, -0.03260379657149315, 0.08632601797580719, -0.1423097401857376, -0.356189489364624, 0.4114455580711365, 0.17709927260875702, -0.3258097767829895, 0.5107289552688599, -0.09336622804403305, -0.08309347927570343, -0.1264665722846985, -0.1214699000120163, -0.00048535317182540894, -0.008040886372327805, 0.093975730240345, -0.28676751255989075, 0.29597705602645874, 0.09896349906921387, 0.4531041979789734, 0.11668078601360321, 0.213662251830101, 0.1152985692024231, 0.12539398670196533, 0.496059387922287, -0.025652512907981873, -0.33563458919525146, 0.04786158725619316, -0.07363913953304291, -0.24041251838207245, 0.046753957867622375, -0.3548976480960846, -0.0024240612983703613, -0.04220965504646301, 0.19355903565883636, 0.06884171813726425, -0.13098223507404327, 0.05139811336994171, -0.18978679180145264, 0.01066666841506958, 0.1919703334569931, 0.20546749234199524, -0.17910556495189667, 0.005465640686452389, 0.20472025871276855, 0.10676705092191696, -0.1988963484764099, -0.28362971544265747, -0.8114343285560608, -0.20153507590293884, -0.5446001887321472, 0.2225331962108612, -0.0652766227722168, 0.36775198578834534, 0.07905445992946625, 0.05553530156612396, 0.01008053869009018, -0.22651487588882446, -0.01876688003540039, -0.2814229726791382, -0.2002629041671753, 0.36076512932777405, -0.24354320764541626, -0.34949275851249695, -0.014714263379573822, -0.18269756436347961, -0.3399766683578491, 0.48637235164642334, 0.26974955201148987, -0.478209912776947, -0.029302505776286125, 0.06798607856035233, 0.41594794392585754, -0.14123250544071198, -0.0973072201013565, -0.23822905123233795, -0.26743122935295105, -0.2432502806186676, 0.07969266176223755, -0.04323319345712662, 0.12800242006778717, -0.26468032598495483, 0.11023029685020447, 0.17405064404010773, 0.21643024682998657, 0.31325188279151917, 0.1453159749507904, 0.23554763197898865, 0.03196413069963455, 0.08324624598026276, -0.10465532541275024, -0.16974948346614838, -0.46147724986076355, 0.3901821970939636, 0.03751765564084053, -0.6226765513420105, -0.29607903957366943, -0.05734822899103165, 0.21674510836601257, 0.34851646423339844, -0.03798713535070419, 0.0608280748128891, -0.2346712350845337, 0.03983527421951294, -0.05475345626473427, 0.5187616944313049, 0.18328599631786346, 0.15933369100093842, 0.13277430832386017, -0.13748040795326233, 0.15785758197307587, -0.1421768069267273, 0.002273745834827423, 0.35376647114753723, -0.12278109788894653, 0.04119225591421127, 0.1345626264810562, 0.25116243958473206, 0.7951415181159973, 0.09116454422473907, -0.11339576542377472, 0.2806728184223175, -0.07965539395809174, 0.08420085906982422, -0.02192644029855728, -0.040567755699157715, -0.3387746512889862, -0.14841331541538239, 0.23023559153079987, 0.025689411908388138, 0.28403669595718384, -0.05919937789440155, -0.44613638520240784, 0.3460109531879425, -0.17423467338085175, -0.0038736723363399506, 0.11332911998033524, 0.44973698258399963, -0.07503024488687515, -0.2434939444065094, -0.14956912398338318, 0.19797547161579132, 0.2393023520708084, -0.2609221637248993, 0.012147186324000359, -0.053994692862033844, -0.030333951115608215, 0.0005376897752285004, -0.13249200582504272, 0.1693510115146637, -0.30593931674957275, 0.07931651175022125, -0.24848970770835876, -0.21324828267097473, -0.1060672253370285, 0.21533510088920593, 0.3157998323440552, 0.3670523166656494, -0.11077994108200073, 0.4125915467739105, 0.08296194672584534, 0.1525794267654419, 0.4338536262512207, -0.4766613245010376, 0.10145066678524017, -0.12317018955945969, -0.2581822872161865, 0.22168970108032227, -0.2587726414203644, -0.11048536747694016, -0.12767116725444794, -0.09605124592781067, -0.06255602091550827, -0.15162739157676697, -0.14693620800971985, 0.033326033502817154, -0.13107611238956451, -0.2446993738412857, 0.20607686042785645, 0.15692348778247833, -0.04029711335897446, 0.20371612906455994, -0.20997299253940582, -0.3638533651828766, -0.1785132735967636, 0.05416958034038544, -0.042660728096961975, -0.09319072216749191, 0.425065815448761, -0.2856680154800415, -0.10090792924165726, -0.1751490831375122, 0.0015542730689048767, 0.0006895361002534628, -0.4108688235282898, -0.07597405463457108, -0.3253002166748047, -0.3234950304031372, -0.07297910004854202, 0.00488271564245224, 0.09504994004964828, -0.15157550573349, -0.06608885526657104, -0.1615697294473648, -0.3710010349750519, 0.04251595214009285, 0.2427041381597519, 0.08147420734167099, -0.20506608486175537, -0.020047660917043686, -0.16130125522613525, 0.07961578667163849, -0.37616652250289917, 0.01895919442176819, -0.2581891119480133, 0.07136770337820053, -0.1561979502439499, -0.06764659285545349, 0.168271005153656, 0.14764435589313507, 0.17001712322235107, 0.12765976786613464, -0.054745256900787354, -0.24108514189720154, 0.046994369477033615, 0.06045107543468475, 0.03041330724954605, -0.03543515503406525, 0.3886348009109497, 0.1298973560333252, 0.009296213276684284, -0.2655830383300781, -0.014961514621973038, -0.1484174281358719, -0.17012833058834076, 0.18920864164829254, 0.2032649964094162, -0.23659834265708923, 0.09653496742248535, 0.004145391285419464, 0.14041030406951904, 0.19579565525054932, 0.04973871260881424, 0.14954376220703125, 0.009109701961278915, -0.11444747447967529, 0.04655548185110092, 0.07712186127901077, 0.04726116731762886, 0.1737622618675232, 0.09429626166820526, 0.05031134933233261, 0.12340010702610016, 0.3297030031681061, 0.2191348671913147, 0.5659366250038147, -0.21579602360725403, -0.05013551563024521, 0.15943562984466553, 0.26570022106170654, -0.2425464391708374, -0.0899752750992775, -0.003854360431432724, 0.1526678502559662, 0.1903279572725296, 0.09397466480731964, 0.19146649539470673, -0.20540829002857208, 0.8783047795295715, 0.017999835312366486, 0.08546469360589981, -0.3837360739707947, 0.08670058846473694, 0.015189006924629211, -0.17926783859729767, -0.07457204163074493, 0.23678995668888092, -0.14633356034755707, 0.06619326770305634, 0.20240193605422974, 0.18381591141223907, 0.4175191819667816, 0.0358169749379158, 0.46481233835220337, -0.11207682639360428, 0.03210737183690071, 0.16408951580524445, 0.24905917048454285, -0.21556052565574646, 0.10764126479625702, 0.14283934235572815, 0.11964313685894012, -0.29596832394599915, -0.04623745009303093, -0.346943736076355, -0.09106355905532837, -0.1081237718462944, 0.027340538799762726, 0.3462437093257904, -0.01571289449930191, -0.09138540178537369, 0.19620412588119507, 0.08190543949604034, 0.25892817974090576, 0.03565937280654907, 0.08866603672504425, -0.3634004592895508, -0.32953861355781555, 0.1625257134437561, 0.01906071975827217, 0.013044871389865875, -0.2587493360042572, 0.2560671269893646, 0.261079341173172, 0.040127918124198914, 0.1561759114265442, 0.5368661880493164, 0.20508648455142975, 0.2507120966911316, 0.0167855191975832, 0.19818370044231415, -0.39591842889785767, -0.00774657167494297, 0.12322704493999481, 0.40880823135375977, 0.1631256639957428, 0.23124121129512787, 0.36353906989097595, 0.18829064071178436, -0.2489471733570099, -0.24143125116825104, -0.03399330750107765, -0.21603719890117645, -0.3196191191673279, 0.009759724140167236, 0.2595473527908325, 0.07843019813299179, -0.4091856777667999, -0.04906270653009415, -0.21426600217819214, 0.061008427292108536, 0.10659860074520111, -0.03420897200703621, -0.05729549378156662, -0.25355765223503113, 0.12975390255451202, -0.20460781455039978, 0.4175242483615875, -0.06367336213588715, 0.021604787558317184, -0.3634108304977417, -0.46264833211898804, -0.8705138564109802, 0.19743970036506653, -0.12218907475471497, -0.047176409512758255, 0.06258177012205124, 0.2110656350851059, 0.11541946232318878, 0.08386626839637756, -0.08720368146896362, 0.2627354860305786, 0.007455605082213879, -0.3262884318828583, -0.47451016306877136, 0.1236991286277771, -0.02456662803888321, -0.013245152309536934, -0.019417516887187958, -0.3133937120437622, 0.3171079456806183, 0.14184927940368652, 0.055227264761924744, 0.35875844955444336, -0.18083083629608154, 0.2865189015865326, 0.3439444899559021, 0.34536004066467285, 0.32938122749328613, 0.3636901378631592, -0.08687233924865723, -0.017761049792170525, -0.30724868178367615, 0.004655133932828903, -0.1852521002292633, 0.28797805309295654, 0.21292848885059357, 0.1403987854719162, 0.088523268699646, 0.27956369519233704, -0.144461527466774, 0.37114912271499634, -0.0035463757812976837, -0.42954221367836, -0.04639830440282822, -0.001588994637131691, 0.32087835669517517, 0.3075537085533142, 0.03598136082291603, 0.3862968981266022, 0.0000066980719566345215, 0.3176526725292206, -0.2168756127357483, -0.028197770938277245, 0.3476613461971283, 0.25977328419685364, -0.17539601027965546, -0.1209588423371315, 0.06457477062940598, -0.11895538121461868, -0.004717011004686356, -0.22241413593292236, -0.08079473674297333, 0.22797510027885437, 0.25194916129112244, -0.07238499075174332, 0.20889991521835327, 0.29435232281684875, 0.2613186240196228, -0.1558738648891449, 0.3181723952293396, 0.10312097519636154, -0.03970329090952873, 0.2087148129940033, 0.014955185353755951 ]