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/173
Rm extracted test dirs
Awesome! I guess you might have to add the changes for the MockDLManager now in a different file though because of my last PR - sorry!
All the dummy data used for tests were duplicated. For each dataset, we had one zip file but also its extracted directory. I removed all these directories Furthermore instead of extracting next to the dummy_data.zip file, we extract in the temp `cached_dir` used for tests, so that all the extracted directories get removed after testing. Finally there was a bug in the `mock_download_manager` that would let it create directories with invalid names, as in #172. I fixed that by encoding url arguments. I had to rename the dummy data for `scientific_papers` and `cnn_dailymail` (the aws tests don't pass for those 2 in this PR, but they will once aws will be synced, as the local ones do) Let me know if it sounds good to you @patrickvonplaten . I'm still not entirely familiar with the mock downloader
26
text: Rm extracted test dirs All the dummy data used for tests were duplicated. For each dataset, we had one zip file but also its extracted directory. I removed all these directories Furthermore instead of extracting next to the dummy_data.zip file, we extract in the temp `cached_dir` used for tests, so that all the extracted directories get removed after testing. Finally there was a bug in the `mock_download_manager` that would let it create directories with invalid names, as in #172. I fixed that by encoding url arguments. I had to rename the dummy data for `scientific_papers` and `cnn_dailymail` (the aws tests don't pass for those 2 in this PR, but they will once aws will be synced, as the local ones do) Let me know if it sounds good to you @patrickvonplaten . I'm still not entirely familiar with the mock downloader Awesome! I guess you might have to add the changes for the MockDLManager now in a different file though because of my last PR - sorry!
[ 0.009279787540435791, 0.18857568502426147, -0.1175803393125534, 0.12253254652023315, 0.0864299088716507, -0.05540008097887039, 0.1588483601808548, 0.28627637028694153, 0.08740521967411041, 0.22539448738098145, -0.14483284950256348, 0.31796127557754517, -0.03071233257651329, 0.0387062132358551, -0.07817355543375015, -0.01977631449699402, -0.0680672898888588, 0.056582625955343246, -0.41398298740386963, 0.11693157255649567, -0.14122089743614197, 0.21833519637584686, -0.010275386273860931, -0.05015261471271515, 0.003518570913001895, 0.11646963655948639, -0.31192198395729065, 0.25568628311157227, -0.31341782212257385, -0.4010108411312103, -0.026140501722693443, 0.08873903751373291, 0.06277118623256683, 0.49042215943336487, -0.00010447505337651819, -0.10388822853565216, 0.4780225157737732, -0.07702922821044922, -0.3865336775779724, -0.01991070806980133, 0.03943033516407013, -0.18172244727611542, 0.08819624781608582, -0.25857874751091003, 0.12290074676275253, -0.06599793583154678, -0.1688717007637024, 0.2811070382595062, 0.3872389793395996, 0.3199109733104706, 0.29853183031082153, 0.21815231442451477, -0.05532298609614372, -0.06976012885570526, 0.26956066489219666, -0.1002059131860733, -0.19397856295108795, 0.2878625690937042, 0.11177419126033783, 0.03681118041276932, 0.009855382144451141, 0.12184397876262665, 0.007338734343647957, 0.5863026976585388, -0.05804143846035004, 0.028552088886499405, 0.18369576334953308, -0.14854900538921356, -0.16752839088439941, 0.0777464285492897, 0.442340224981308, -0.18946143984794617, -0.22439251840114594, -0.004728194326162338, -0.020123843103647232, -0.07148264348506927, 0.20984026789665222, 0.043085791170597076, -0.18084391951560974, 0.05632689595222473, -0.2882674038410187, -0.10223747789859772, -0.033539965748786926, 0.20190052688121796, -0.23444989323616028, 0.17617452144622803, -0.11752218008041382, -0.0420919805765152, 0.2275872379541397, 0.17074163258075714, 0.06821459531784058, -0.29098817706108093, -0.015010390430688858, 0.008789894171059132, -0.03730743005871773, -0.3366183638572693, -0.2453632652759552, -0.31736212968826294, -0.014989683404564857, 0.4778732657432556, 0.018040725961327553, 0.0782102644443512, 0.13117556273937225, 0.03219407796859741, -0.06717890501022339, 0.5655620098114014, 0.1133018210530281, 0.2900736927986145, 0.034552887082099915, 0.5449842810630798, -0.06331311166286469, 0.050815705209970474, 0.10346611589193344, -0.18473191559314728, -0.3875358998775482, 0.21878015995025635, 0.11495126783847809, -0.29372742772102356, -0.05597890540957451, 0.11701435595750809, -0.16564035415649414, 0.07583789527416229, -0.25965365767478943, 0.2607010304927826, -0.03758460283279419, -0.15502458810806274, 0.14246858656406403, 0.27053403854370117, 0.028160760179162025, 0.1147255226969719, -0.13819804787635803, 0.2464626580476761, -0.2216433584690094, 0.03124711848795414, 0.24051038920879364, 0.015476824715733528, 0.3360127806663513, -0.03264429047703743, 0.05822775512933731, -0.20555701851844788, 0.36191102862358093, 0.2651439905166626, 0.13744670152664185, 0.37861913442611694, 0.22509562969207764, 0.239322230219841, 0.06040229648351669, 0.018876545131206512, -0.0884077176451683, 0.1519409418106079, -0.12978914380073547, -0.3068382143974304, 0.11994168907403946, 0.34664246439933777, -0.3162837624549866, 0.02928713522851467, -0.029716692864894867, -0.3671111464500427, -0.3289361596107483, 0.04804907366633415, 0.24077442288398743, -0.03725339472293854, 0.0394325815141201, 0.1155109778046608, 0.06777477264404297, 0.3611651360988617, -0.18432681262493134, 0.05788816511631012, -0.45858079195022583, 0.06320174038410187, 0.3629074692726135, 0.0744187980890274, -0.11693528294563293, 0.23552149534225464, -0.409267783164978, 0.22516299784183502, 0.22311687469482422, -0.18385913968086243, -0.14946924149990082, 0.5370849370956421, -0.1559978574514389, 0.12669828534126282, 0.07846216857433319, -0.45777249336242676, -0.1132691502571106, -0.12464095652103424, -0.37702032923698425, -0.04353254288434982, 0.1424579620361328, 0.08214758336544037, -0.4246826767921448, -0.3316286504268646, -0.13579003512859344, -0.04976848512887955, -0.03582118824124336, 0.05526687204837799, -0.09465966373682022, -0.17778083682060242, 0.2884815037250519, -0.02312919870018959, -0.06555679440498352, 0.21482039988040924, 0.06310178339481354, -0.2980276346206665, 0.00775495870038867, 0.17617520689964294, -0.14910656213760376, 0.3330777585506439, -0.38306549191474915, 0.4010814428329468, -0.008081257343292236, -0.0993352010846138, -0.4723362326622009, -0.17709442973136902, -0.20608438551425934, -0.4288599193096161, 0.23170223832130432, 0.17633122205734253, 0.13262274861335754, -0.0831240564584732, 0.0671570748090744, -0.2679431140422821, -0.11270026862621307, 0.14799973368644714, -0.25372862815856934, 0.06685994565486908, -0.19412070512771606, -0.021162405610084534, 0.2540993392467499, -0.16092386841773987, 0.12030130624771118, -0.456407755613327, -0.16747373342514038, 0.2632414698600769, 0.1469169706106186, 0.2189784049987793, 0.3911639451980591, 0.009297087788581848, -0.032495640218257904, -0.11286098510026932, 0.07438482344150543, 0.41634997725486755, -0.05023452267050743, 0.02326449751853943, -0.2822677791118622, 0.23046362400054932, -0.04650694504380226, 0.044277433305978775, -0.11689022183418274, 0.039882026612758636, 0.1375775933265686, -0.36537376046180725, 0.15154694020748138, -0.1447216123342514, 0.299593448638916, 0.37518560886383057, 0.17372196912765503, 0.06713205575942993, 0.3658597469329834, 0.007233388721942902, -0.27395033836364746, -0.22886855900287628, -0.07437611371278763, 0.13558098673820496, -0.10821571201086044, -0.22312253713607788, 0.03951325640082359, 0.3778183162212372, 0.5319820642471313, 0.12580086290836334, 0.4203133285045624, 0.22621233761310577, 0.12029215693473816, -0.315119206905365, 0.5037966370582581, 0.1311338096857071, -0.254962682723999, 0.324575811624527, -0.06071855127811432, -0.2602166533470154, -0.41939881443977356, 0.10993979871273041, 0.3337589204311371, 0.44997739791870117, -0.1450699120759964, -0.1894669234752655, -0.3189008831977844, -0.16668623685836792, -0.17851117253303528, 0.00845268089324236, -0.010090410709381104, -0.31594014167785645, 0.35330480337142944, 0.2735523581504822, -0.4651128351688385, 0.2470327466726303, 0.0527472086250782, 0.2392180860042572, -0.10067350417375565, 0.1338338851928711, -0.5458099246025085, -0.0028600585646927357, -0.3268168270587921, 0.23884129524230957, 0.3185412883758545, 0.12164612114429474, 0.27568334341049194, -0.10128628462553024, -0.13386793434619904, -0.4855162501335144, -0.12168891727924347, 0.14288517832756042, 0.1442253142595291, 0.43883177638053894, 0.2837672233581543, 0.15595915913581848, 0.220265731215477, -0.05184829607605934, -0.03640864044427872, -0.286002516746521, -0.34107857942581177, -0.08303119242191315, 0.0914393737912178, 0.039480388164520264, -0.17547796666622162, -0.6749904751777649, 0.0077705830335617065, -0.17422308027744293, -0.10754120349884033, 0.06808960437774658, 0.016306273639202118, -0.190576434135437, 0.015280651859939098, -0.06378259509801865, 0.03500042110681534, -0.31157082319259644, -0.30787500739097595, -0.536177933216095, 0.15106390416622162, -0.2573559284210205, -0.18141743540763855, 0.03831816092133522, -0.014984972774982452, 0.08202612400054932, -0.2505373954772949, -0.2659282684326172, -0.36341771483421326, 0.02708856202661991, -0.2685849964618683, -0.04798119515180588, -0.09262333065271378, 0.2055167555809021, -0.0380307137966156, -0.23443226516246796, 0.04083307087421417, 0.13421933352947235, 0.046290427446365356, 0.16717079281806946, 0.34450867772102356, -0.3402915596961975, -0.03716510534286499, 0.11962515115737915, 0.5504724383354187, 0.24428600072860718, 0.30409500002861023, 0.11729390174150467, 0.03041614592075348, 0.17524781823158264, -0.010510578751564026, -0.022903569042682648, 0.04950558766722679, 0.05740748345851898, -0.20560438930988312, 0.4904683232307434, -0.09614589065313339, -0.02092808671295643, 0.15722882747650146, 0.16786068677902222, -0.1658533811569214, -0.3187776505947113, 0.09675461798906326, -0.3729923665523529, -0.15754887461662292, 0.007291629910469055, -0.10627464205026627, 0.1099136471748352, -0.05361231788992882, 0.19659319519996643, -0.007600180804729462, -0.04915542155504227, -0.05859808996319771, -0.40619519352912903, 0.13775871694087982, -0.27793624997138977, 0.3329891562461853, 0.12603968381881714, 0.10945844650268555, 0.08153793215751648, -0.07431541383266449, 0.1903836727142334, -0.0072437250055372715, 0.42647284269332886, -0.45489609241485596, 0.055728714913129807, 0.07819207012653351, -0.1344676911830902, 0.04177441447973251, -0.3587356507778168, -0.38119450211524963, -0.13740810751914978, 0.02382347546517849, -0.1272011697292328, -0.20807696878910065, -0.002742837881669402, 0.1053120419383049, 0.08054974675178528, -0.08629230409860611, -0.28172212839126587, -0.032574765384197235, -0.2598514258861542, -0.3849007785320282, 0.08398798853158951, 0.0029961783438920975, -0.17091703414916992, -0.4640409052371979, -0.11035129427909851, 0.18867021799087524, 0.046940647065639496, 0.13330477476119995, -0.10695190727710724, 0.0842551738023758, -0.1292392760515213, 0.018802538514137268, 0.18666726350784302, -0.11384129524230957, 0.0981929823756218, 0.5368069410324097, 0.017177850008010864, -0.015450291335582733, -0.0005370713770389557, -0.27231642603874207, -0.006722860038280487, 0.3168339133262634, 0.1276916116476059, -0.03156362473964691, -0.4082297384738922, 0.1835041344165802, -0.0658811405301094, 0.2660869359970093, 0.36328163743019104, -0.04347804933786392, 0.36557304859161377, 0.08539623022079468, 0.2778536379337311, -0.18925899267196655, -0.29307955503463745, 0.4669094979763031, -0.46949511766433716, -0.15183615684509277, 0.23534952104091644, -0.18315699696540833, 0.8406676650047302, 0.044485028833150864, 0.09995056688785553, 0.14523136615753174, -0.05892619490623474, 0.5015650391578674, -0.3395788073539734, -0.022606395184993744, -0.18801149725914001, 0.03412264585494995, 0.047261081635951996, -0.0415889136493206, 0.33226269483566284, 0.16290688514709473, -0.22351250052452087, 0.30146732926368713, -0.054161153733730316, 0.17684561014175415, 0.15860173106193542, 0.3295254707336426, -0.23315197229385376, 0.11858896911144257, -0.04644065350294113, 0.27166202664375305, 0.1544540822505951, 0.2320297211408615, -0.10161074250936508, -0.047821640968322754, 0.033526014536619186, -0.2257678061723709, -0.07381278276443481, 0.1527845561504364, -0.11455048620700836, 0.1142495796084404, 0.08364428579807281, -0.03654950484633446, -0.3064137101173401, 0.1143302172422409, -0.05379815399646759, -0.0899815708398819, -0.1834036111831665, 0.3245084285736084, -0.209130197763443, 0.09919990599155426, 0.16375060379505157, -0.10388561338186264, 0.0667557492852211, -0.18026039004325867, -0.22555243968963623, 0.0475945845246315, -0.03624957427382469, -0.05585286766290665, 0.10812404751777649, -0.1354641616344452, 0.09025587141513824, -0.29261618852615356, -0.18347065150737762, -0.12050846219062805, -0.4273991882801056, -0.25561773777008057, 0.26266956329345703, -0.017674535512924194, -0.5249508619308472, 0.30544203519821167, -0.02777966484427452, -0.2363281548023224, -0.07058307528495789, 0.3025602102279663, -0.20390534400939941, -0.07451266795396805, 0.4133986532688141, -0.15010182559490204, 0.1965537965297699, -0.35529395937919617, 0.0900043174624443, -0.06448803097009659, -0.14315563440322876, 0.22972366213798523, -0.14484372735023499, -0.16563700139522552, 0.12930427491664886, 0.34481045603752136, 0.3709624409675598, 0.17622840404510498, -0.21243435144424438, -0.06701939553022385, 0.02524138055741787, -0.18239499628543854, 0.21215711534023285, 0.5107073783874512, -0.24385175108909607, 0.21220219135284424, -0.025250788778066635, 0.23738853633403778, -0.4108748733997345, 0.34486934542655945, -0.4167041778564453, 0.02609814889729023, -0.26541969180107117, -0.12271443754434586, 0.16358278691768646, -0.0798664391040802, 0.1834731549024582, 0.19334810972213745, -0.1749161034822464, -0.3598923683166504, -0.1466626673936844, 0.04874274134635925, 0.14683333039283752, -0.11771206557750702, 0.07809211313724518, 0.0903724730014801, 0.19908292591571808, 0.12365932017564774, 0.0005876626819372177, -0.13614659011363983, -0.018148891627788544, 0.18467716872692108, 0.1384793221950531, -0.23435726761817932, -0.3536551594734192, -0.006920035928487778, -0.2949811816215515, 0.15906822681427002, -0.020036105066537857, -0.1273076981306076, -0.02897752821445465, -0.04808853566646576, 0.298121839761734, -0.08929934352636337, -0.1331152468919754, 0.3477988541126251, 0.37525779008865356, 0.17273551225662231, -0.23403394222259521, -0.24278581142425537, 0.4058438837528229, 0.37139803171157837, -0.2848958969116211, -0.3762642741203308, 0.02513052523136139, 0.3168039917945862, -0.25627022981643677, -0.273140013217926, -0.1317247599363327, 0.07889724522829056, 0.058121126145124435, 0.05022377520799637, 0.18642546236515045, -0.26423758268356323, 0.4483199119567871, 0.09372565895318985, 0.282987117767334, -0.18453647196292877, 0.11519575119018555, 0.07746326923370361, -0.3334358036518097, 0.04895685613155365, 0.05922645330429077, -0.4023723006248474, 0.0885738730430603, -0.13579027354717255, 0.06054391339421272, 0.3820236325263977, -0.15747955441474915, 0.11243864893913269, -0.0037724152207374573, -0.08133542537689209, 0.0332818441092968, 0.1559794843196869, 0.07518839836120605, 0.3997579514980316, 0.23161113262176514, 0.30483224987983704, -0.2562112808227539, -0.1451258361339569, -0.27973565459251404, 0.14019639790058136, 0.09577019512653351, -0.006922855973243713, -0.41718754172325134, -0.062327902764081955, -0.1370789110660553, 0.054704222828149796, 0.06539110094308853, -0.12967358529567719, 0.31996893882751465, 0.1969529241323471, -0.28962504863739014, -0.2004762589931488, -0.282406747341156, 0.027007218450307846, 0.20727960765361786, -0.24602410197257996, -0.08159881085157394, 0.329653263092041, -0.134741872549057, 0.03639962151646614, 0.2896764576435089, 0.4289235472679138, -0.14236599206924438, -0.11782070994377136, -0.07409563660621643, -0.021868832409381866, 0.026883205398917198, -0.09197267144918442, 0.25418055057525635, -0.07706287503242493, -0.1906951516866684, 0.1184869110584259, 0.2788401246070862, -0.28791043162345886, 0.12456950545310974, 0.008378453552722931, -0.344984769821167, -0.07730256021022797, 0.5212822556495667, 0.25332701206207275, 0.05328531563282013, -0.1472177356481552, 0.02730000764131546, -0.5262464284896851, 0.02333032339811325, 0.15068574249744415, -0.23343077301979065, 0.17694154381752014, 0.06054515019059181, 0.12452097237110138, -0.07003124058246613, 0.5076017379760742, 0.24931664764881134, -0.015546835958957672, -0.5221015214920044, -0.18296365439891815, -0.5203319191932678, 0.18963131308555603, 0.014911141246557236, -0.006524533033370972, -0.06803452968597412, 0.01963108591735363, 0.11581265181303024, -0.015697449445724487, -0.2136649340391159, 0.07366415858268738, -0.22847704589366913, 0.2712922692298889, -0.5699294805526733, 0.11092324554920197, -0.146953284740448, 0.06938983500003815, 0.06992022693157196, -0.37214937806129456, 0.30129969120025635, -0.00890926830470562, 0.062431447207927704, 0.34801608324050903, -0.019065074622631073, 0.41429403424263, 0.10161274671554565, 0.13090479373931885, -0.017873303964734077, 0.39449265599250793, -0.2664185166358948, 0.05417432636022568, -0.015739981085062027, -0.022217677906155586, -0.03312687575817108, -0.05423983186483383, -0.009249627590179443, 0.19242429733276367, 0.0734514370560646, 0.2812420129776001, -0.37822026014328003, 0.13984414935112, 0.1564406156539917, 0.20880621671676636, -0.29200202226638794, 0.05442993342876434, -0.1109815314412117, 0.21897484362125397, 0.20885340869426727, 0.3674345314502716, -0.08927580714225769, 0.14106467366218567, -0.3168134391307831, -0.22349460422992706, 0.5790448188781738, 0.3323240578174591, -0.28196626901626587, 0.028857123106718063, 0.3421503007411957, 0.17067691683769226, 0.17323030531406403, -0.45108333230018616, 0.003067009150981903, 0.2296602725982666, 0.06059466302394867, 0.061589907854795456, 0.3417041599750519, 0.2166449874639511, 0.2089182585477829, -0.05327853187918663, 0.5206196308135986, 0.24745094776153564, 0.06069796532392502, 0.015996810048818588, -0.22132381796836853 ]
https://github.com/huggingface/datasets/pull/171
fix squad metric format
One thing for SQuAD is that I wanted to be able to use the SQuAD dataset directly in the metrics and I'm not sure it will be possible with this format. (maybe it's not really possible in general though)
The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ```
39
text: fix squad metric format The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ``` One thing for SQuAD is that I wanted to be able to use the SQuAD dataset directly in the metrics and I'm not sure it will be possible with this format. (maybe it's not really possible in general though)
[ 0.10947015881538391, -0.05498366057872772, -0.1376788169145584, 0.035116687417030334, 0.49660277366638184, -0.2706734240055084, 0.24847981333732605, 0.31211838126182556, -0.31418576836586, -0.012211769819259644, 0.11504698544740677, 0.3373101055622101, 0.1766815036535263, -0.07045615464448929, -0.020645808428525925, 0.07179170846939087, -0.08273228257894516, -0.08007605373859406, 0.14135965704917908, 0.059947527945041656, -0.18929053843021393, 0.18534281849861145, -0.22075100243091583, -0.1229289323091507, -0.3678334653377533, 0.32221144437789917, 0.18250302970409393, 0.1022939682006836, -0.5389328598976135, -0.5232734084129333, 0.1197042316198349, 0.027245644479990005, -0.056465648114681244, 0.1564723551273346, -0.00010532394662732258, -0.05741023272275925, 0.16680467128753662, -0.2085849493741989, 0.09336112439632416, -0.11400151252746582, -0.0830179899930954, -0.30378657579421997, 0.2723301947116852, -0.32238370180130005, -0.36695730686187744, 0.1965790092945099, -0.22144727408885956, -0.06240313872694969, 0.41349440813064575, 0.46800896525382996, 0.26634901762008667, 0.384206086397171, -0.0026982612907886505, -0.25915348529815674, 0.2013859897851944, -0.08508256077766418, -0.13281197845935822, 0.16267406940460205, 0.13996373116970062, 0.03376985341310501, 0.05681215226650238, 0.35602882504463196, -0.03123781643807888, 0.18216918408870697, 0.34451571106910706, 0.04576432332396507, 0.14797896146774292, -0.1925298124551773, -0.12094338983297348, -0.12472566217184067, 0.3537850081920624, -0.26442751288414, -0.3033677935600281, 0.06536588817834854, -0.07134336233139038, -0.3310640752315521, -0.09414993971586227, -0.12040890753269196, 0.053120698779821396, 0.010295908898115158, -0.2624529004096985, 0.15827713906764984, -0.2288295179605484, 0.05482461303472519, -0.2496035397052765, 0.48299601674079895, -0.09311473369598389, -0.10924845188856125, -0.03496204689145088, 0.014096304774284363, 0.08960538357496262, 0.257720947265625, 0.04828311875462532, -0.005424369126558304, -0.3710457682609558, -0.2329849749803543, -0.02323129028081894, -0.21424058079719543, 0.15621548891067505, -0.18784257769584656, 0.1293673813343048, 0.1454005241394043, 0.4546424150466919, 0.0007384791970252991, 0.1922532618045807, 0.1830519437789917, 0.32675763964653015, 0.12962426245212555, 0.10887616127729416, 0.07179806381464005, -0.04674606770277023, -0.1469721496105194, 0.10755555331707001, -0.3703782856464386, 0.13523080945014954, 0.16963139176368713, 0.16977669298648834, -0.09611421823501587, -0.23502804338932037, 0.24854114651679993, 0.180467426776886, 0.039302144199609756, -0.0032420894131064415, 0.2902143597602844, -0.028215616941452026, 0.12007458508014679, 0.1347995400428772, 0.2868005633354187, -0.08912336081266403, -0.00105371605604887, -0.1591128706932068, 0.03995782136917114, -0.054632097482681274, -0.17666858434677124, -0.015975462272763252, 0.37788572907447815, 0.3721023499965668, 0.050609439611434937, 0.3475530743598938, -0.4129282534122467, -0.15931443870067596, 0.10518822073936462, 0.28555357456207275, 0.20355461537837982, 0.15583841502666473, 0.05279339849948883, 0.2819245457649231, -0.5233823657035828, 0.06877043098211288, 0.15125754475593567, -0.16243499517440796, -0.2708088457584381, -0.29491880536079407, 0.31337442994117737, -0.4479077458381653, 0.00025365501642227173, 0.25080883502960205, 0.13555803894996643, 0.0248757004737854, 0.09250400960445404, 0.2183053195476532, -0.1634817272424698, -0.2563720941543579, -0.06590773910284042, 0.32872578501701355, 0.046243228018283844, -0.4084550440311432, -0.03718990832567215, 0.2911054790019989, 0.047684624791145325, -0.22410225868225098, 0.14701052010059357, 0.1355326771736145, -0.1238027885556221, 0.15609318017959595, -0.008970707654953003, 0.6806541085243225, -0.7778202891349792, -0.3585026264190674, -0.042382899671792984, -0.18359316885471344, -0.30538854002952576, -0.08619441837072372, 0.1755494624376297, 0.37096863985061646, 0.03332537040114403, 0.29093801975250244, 0.18330088257789612, 0.19204460084438324, 0.061810657382011414, -0.48799073696136475, -0.06154577434062958, -0.17759162187576294, 0.1932414025068283, 0.06332532316446304, -0.05538081377744675, -0.13972315192222595, 0.3376651406288147, 0.10583503544330597, 0.10753662884235382, -0.08978524059057236, 0.28767967224121094, 0.47654181718826294, -0.24188585579395294, 0.09708338230848312, -0.16390812397003174, -0.30525994300842285, -0.04993218556046486, -0.3518493175506592, 0.03263728320598602, 0.14656661450862885, -0.2259533703327179, -0.5270889401435852, -0.13324998319149017, -0.08396126329898834, -0.06949187815189362, 0.2759610712528229, -0.45378103852272034, 0.13248446583747864, -0.030433805659413338, -0.16058246791362762, -0.3377833366394043, -0.12987008690834045, 0.09605176001787186, 0.03111434355378151, 0.1070098876953125, -0.2924037277698517, -0.2291633039712906, 0.22699350118637085, 0.3514557480812073, 0.295463889837265, 0.0873352661728859, -0.08215107023715973, 0.31122034788131714, 0.04337475076317787, -0.024327896535396576, -0.1545657217502594, 0.23452606797218323, 0.19251658022403717, -0.03507190942764282, -0.11707136780023575, -0.029568854719400406, -0.12321794778108597, -0.10131345689296722, -0.2640650272369385, 0.44264692068099976, 0.009603044018149376, 0.015433616936206818, -0.18228687345981598, 0.2157900184392929, 0.12864485383033752, -0.042733412235975266, -0.15422876179218292, -0.45185747742652893, -0.17068757116794586, 0.1814129650592804, -0.040273819118738174, 0.02535729482769966, 0.004586853086948395, 0.16423772275447845, 0.5467393398284912, 0.23943042755126953, 0.12390603125095367, 0.17912861704826355, 0.020761020481586456, -0.033918172121047974, -0.3528664708137512, -0.07912016659975052, 0.33372706174850464, 0.20604828000068665, -0.1071285754442215, 0.1570533961057663, 0.18202082812786102, -0.21430566906929016, 0.22029021382331848, 0.1775464415550232, 0.1785910725593567, 0.29975688457489014, 0.2693172097206116, -0.17027290165424347, 0.010020144283771515, 0.23332440853118896, -0.1298663169145584, 0.11554703116416931, -0.33470141887664795, -0.015413186512887478, -0.06332950294017792, 0.017185717821121216, -0.23613719642162323, -0.39261558651924133, -0.2414153814315796, -0.38064315915107727, 0.38181257247924805, 0.013105545192956924, -0.048830293118953705, 0.15842661261558533, 0.34586867690086365, 0.13400402665138245, 0.22100131213665009, 0.36079517006874084, 0.07951486110687256, -0.42666658759117126, 0.2313937544822693, 0.11502473056316376, -0.18324396014213562, -0.07341818511486053, 0.05055158585309982, -0.34238070249557495, 0.043431203812360764, -0.16750046610832214, -0.33269307017326355, 0.1590578258037567, -0.0302036851644516, 0.48727717995643616, 0.2176237404346466, 0.23211078345775604, -0.2684428095817566, 0.040079012513160706, 0.43355196714401245, -0.13658590614795685, -0.02674836665391922, -0.06752127408981323, -0.08808473497629166, -0.0939803421497345, -0.2033287137746811, -0.3123410940170288, -0.2262408584356308, -0.30598801374435425, -0.14659103751182556, 0.16776643693447113, 0.03213970363140106, 0.01381412148475647, 0.12183745205402374, 0.06532500684261322, 0.008722661063075066, -0.12687629461288452, -0.273110032081604, -0.2865813970565796, 0.2767535448074341, -0.3118062913417816, -0.36416709423065186, 0.012791004031896591, 0.26354146003723145, 0.08920452743768692, -0.4978060722351074, 0.010101668536663055, -0.887539803981781, 0.0751524344086647, -0.19081208109855652, -0.07230893522500992, 0.14223861694335938, 0.09499907493591309, -0.233533576130867, -0.27668607234954834, -0.32095953822135925, -0.21937867999076843, 0.19231495261192322, 0.1878334879875183, 0.022648178040981293, -0.38588619232177734, 0.1614934504032135, 0.25180119276046753, 0.7540900111198425, 0.3325820863246918, -0.17385660111904144, -0.08536422252655029, -0.20578594505786896, 0.12872406840324402, 0.03633728250861168, -0.1505580097436905, 0.07040305435657501, -0.015767648816108704, 0.08166740834712982, 0.3259194791316986, 0.02519720420241356, -0.03381868451833725, 0.023955248296260834, 0.2608664333820343, -0.11455904692411423, -0.1819963902235031, 0.004722101613879204, 0.06801524758338928, -0.10096069425344467, 0.15147747099399567, 0.23170053958892822, -0.11315590143203735, -0.15613281726837158, -0.0832163542509079, -0.01137571781873703, -0.1519424021244049, 0.15875069797039032, -0.19181139767169952, -0.280177503824234, -0.24289944767951965, 0.26446035504341125, 0.03542031720280647, 0.1758045256137848, 0.09161557257175446, -0.05569619685411453, -0.042675942182540894, 0.052559513598680496, 0.5242055654525757, -0.25062039494514465, 0.0016421936452388763, 0.17147502303123474, 0.13451017439365387, -0.543429434299469, -0.17965908348560333, -0.3273715078830719, 0.27300000190734863, 0.26719242334365845, 0.06969481706619263, -0.19540627300739288, -0.08450259268283844, 0.1507500410079956, -0.14243820309638977, -0.1363029181957245, -0.07506515085697174, -0.45789453387260437, -0.2582393288612366, -0.1783992201089859, 0.22998452186584473, 0.3449065685272217, -0.05638594925403595, -0.04984499514102936, -0.10067838430404663, 0.367113322019577, -0.0041094254702329636, 0.010619103908538818, 0.173116996884346, 0.3618491590023041, 0.09805747866630554, -0.21365095674991608, 0.14241373538970947, -0.051246777176856995, -0.19663819670677185, 0.14476880431175232, 0.11880704760551453, 0.0380416102707386, 0.18532466888427734, -0.24091312289237976, 0.42325136065483093, 0.3346729874610901, 0.08778522163629532, 0.09890931099653244, -0.3179934024810791, 0.2621639668941498, 0.0010309386998414993, -0.17673979699611664, 0.4185616970062256, -0.026325330138206482, 0.17855916917324066, -0.013246327638626099, 0.41757506132125854, -0.07419881224632263, 0.03009238839149475, -0.10489700734615326, 0.21430860459804535, -0.0385303720831871, 0.23840010166168213, 0.30304020643234253, 0.8458881974220276, 0.03693278878927231, -0.0591750331223011, 0.0741412490606308, -0.07982410490512848, 0.48345136642456055, -0.0830519050359726, 0.1291477084159851, -0.5758171677589417, -0.1730889528989792, 0.13978275656700134, -0.12273576855659485, -0.06952682882547379, 0.01444173976778984, -0.4673707187175751, 0.145965576171875, -0.3292878270149231, 0.3195093870162964, -0.07099934667348862, 0.12803050875663757, 0.08796379715204239, -0.024895891547203064, -0.45236048102378845, 0.23084163665771484, -0.0866878479719162, -0.179477721452713, -0.18236219882965088, -0.02289120852947235, -0.05092116445302963, -0.1689217984676361, -0.14509162306785583, -0.1196601390838623, -0.01127803698182106, 0.11385734379291534, 0.2624433934688568, -0.1412970870733261, 0.11432181298732758, 0.590451180934906, 0.3746110200881958, 0.07584672421216965, -0.2637706696987152, 0.22842076420783997, 0.08266119658946991, 0.19221878051757812, 0.28065505623817444, 0.24943140149116516, -0.10291142761707306, -0.30873438715934753, -0.255029559135437, 0.15055233240127563, 0.1751977801322937, -0.02474953979253769, -0.05763280391693115, 0.08378318697214127, -0.06236639618873596, -0.3816414177417755, -0.23128977417945862, -0.1557569056749344, -0.06961123645305634, -0.28952181339263916, 0.23246340453624725, -0.05004184693098068, -0.05493379384279251, 0.40629294514656067, 0.3473513424396515, -0.2397310882806778, 0.14859339594841003, 0.4393969476222992, -0.12469210475683212, 0.03423789143562317, 0.1689077466726303, 0.1321278065443039, -0.20045393705368042, -0.29039841890335083, -0.0007067844271659851, -0.19356845319271088, -0.01896020397543907, 0.20366066694259644, 0.08654575794935226, -0.25008833408355713, 0.09119031578302383, 0.297529011964798, 0.16161905229091644, 0.13842204213142395, -0.05639421194791794, -0.2637632489204407, 0.04882805794477463, 0.15775029361248016, 0.10911905765533447, 0.0035452470183372498, -0.23937663435935974, 0.10660308599472046, 0.013312121853232384, 0.11783582717180252, -0.4408206641674042, 0.02563127875328064, -0.39092525839805603, 0.20875850319862366, -0.4215243458747864, -0.39417314529418945, -0.10511091351509094, -0.08934995532035828, 0.09544304013252258, 0.08900437504053116, -0.28850728273391724, -0.3166525959968567, -0.14378561079502106, 0.10711392760276794, -0.009521789848804474, -0.04709208756685257, 0.03177493438124657, 0.24682177603244781, -0.23085659742355347, -0.05040809139609337, 0.02000512182712555, 0.30225956439971924, 0.10613828897476196, 0.5041345953941345, -0.41496872901916504, 0.10434408485889435, 0.3156057596206665, -0.360339879989624, 0.32660531997680664, 0.14523962140083313, -0.007279566489160061, 0.16908903419971466, -0.12419990450143814, 0.0033777058124542236, 0.3052172362804413, 0.17251962423324585, 0.11936134099960327, 0.29546451568603516, 0.11243388801813126, -0.13970138132572174, 0.045110221952199936, 0.32648375630378723, 0.35782405734062195, 0.1125427633523941, -0.34391194581985474, 0.03702552616596222, -0.47266072034835815, 0.33693334460258484, -0.2214364856481552, -0.14062364399433136, 0.20103828608989716, 0.15112732350826263, 0.1556442379951477, 0.2951016426086426, 0.3767397403717041, -0.025095883756875992, 0.4078819155693054, 0.2222914695739746, 0.5740604996681213, -0.18175578117370605, 0.10616406798362732, -0.3862776756286621, -0.0780845433473587, -0.03359058126807213, 0.11246159672737122, -0.10364852845668793, 0.2282169759273529, 0.10794581472873688, -0.09417588263750076, 0.17320701479911804, -0.17147448658943176, -0.1413852572441101, 0.14385229349136353, 0.3433654308319092, 0.0826684758067131, 0.05241841822862625, 0.07864820957183838, 0.07483913004398346, 0.017637871205806732, 0.40784257650375366, -0.2659878730773926, 0.014239612966775894, -0.2231137901544571, -0.15745055675506592, -0.17847302556037903, 0.005365682765841484, -0.2049269825220108, -0.1389402449131012, -0.09216037392616272, -0.1531774401664734, -0.02271464839577675, 0.007010899484157562, 0.23749370872974396, 0.0762767344713211, 0.16726575791835785, 0.0165561456233263, 0.30021700263023376, 0.14192023873329163, 0.32454150915145874, -0.2980756461620331, 0.1726319044828415, 0.13914428651332855, 0.07791586965322495, 0.27886635065078735, 0.3258530795574188, 0.28486064076423645, 0.22047095000743866, -0.1445450782775879, 0.0013870662078261375, -0.2425445169210434, -0.3308311998844147, 0.07734619081020355, 0.061493273824453354, 0.14770819246768951, -0.44993388652801514, 0.11722081899642944, 0.31064021587371826, -0.27623268961906433, 0.04526321217417717, 0.02803219109773636, 0.17462363839149475, 0.11134997010231018, -0.019986048340797424, -0.0876830518245697, -0.16576805710792542, -0.01116751879453659, -0.2654019892215729, -0.42381057143211365, -0.13912837207317352, -0.001987611874938011, 0.183309406042099, 0.18070867657661438, -0.2586038112640381, 0.15082785487174988, 0.12854155898094177, 0.40844181180000305, -0.1113632321357727, -0.019957855343818665, -0.026655815541744232, 0.02870708703994751, -0.48108604550361633, 0.10483062267303467, 0.399086058139801, 0.16821329295635223, 0.2866919934749603, 0.30249619483947754, -0.09270819276571274, 0.29949694871902466, 0.14709055423736572, -0.08502157032489777, -0.35313814878463745, -0.2090519368648529, -0.5893257856369019, 0.16000881791114807, -0.06521974503993988, 0.06252643465995789, 0.26025378704071045, 0.04849402606487274, 0.04472578316926956, -0.257954478263855, 0.17141178250312805, -0.3013072609901428, -0.15296430885791779, 0.08802647888660431, 0.2884296774864197, -0.0822075605392456, 0.01365010067820549, 0.34699684381484985, -0.045947637408971786, 0.031082721427083015, 0.05136721953749657, -0.19877508282661438, -0.15844081342220306, 0.02906297892332077, -0.017191018909215927, 0.29675057530403137, 0.09092656522989273, -0.1520662158727646, -0.10251392424106598, 0.23633423447608948, 0.011919442564249039, -0.18772250413894653, -0.41727134585380554, 0.013526419177651405, 0.06685472279787064, 0.07998495548963547, -0.2834430932998657, 0.29314300417900085, -0.12620748579502106, 0.47435465455055237, -0.30668964982032776, -0.4819507300853729, 0.5339118242263794, -0.13027483224868774, -0.24953973293304443, -0.018047351390123367, 0.3356257379055023, 0.3129940927028656, -0.006670935079455376, -0.4929386377334595, -0.10514630377292633, 0.17988672852516174, -0.0023018009960651398, -0.27867233753204346, 0.18656793236732483, -0.28427088260650635, -0.04725520312786102, -0.08055123686790466, 0.14062631130218506, 0.11291373521089554, 0.017681924626231194, -0.2958216667175293, -0.246620312333107 ]
https://github.com/huggingface/datasets/pull/171
fix squad metric format
This is kinda related to one thing I had in mind which is that we may want to be able to dump our model predictions in a `Dataset` as well so that we don't keep them in memory (and we can export them in a nice format later as well when we will have a serialization formats). Maybe this is overkill though, I haven't fully wraped my head around this.
The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ```
70
text: fix squad metric format The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ``` This is kinda related to one thing I had in mind which is that we may want to be able to dump our model predictions in a `Dataset` as well so that we don't keep them in memory (and we can export them in a nice format later as well when we will have a serialization formats). Maybe this is overkill though, I haven't fully wraped my head around this.
[ 0.17189748585224152, -0.02790791541337967, -0.10512496531009674, 0.1716461181640625, 0.5135844349861145, -0.2036082148551941, 0.17291361093521118, 0.4492194950580597, -0.18581315875053406, 0.032452747225761414, 0.2083825170993805, 0.2607365846633911, 0.01588635891675949, 0.014443306252360344, 0.048085615038871765, 0.023341219872236252, -0.041302911937236786, -0.12347538769245148, 0.1336529552936554, 0.04009366035461426, -0.1875811666250229, 0.16198644042015076, 0.0021356716752052307, -0.14999648928642273, -0.3797367513179779, 0.3074556589126587, -0.041209328919649124, 0.09239573031663895, -0.4935184121131897, -0.5614489912986755, -0.006727136671543121, 0.06924020498991013, 0.08087677508592606, 0.03423335403203964, -0.00010643547284416854, -0.05343180149793625, 0.21955294907093048, -0.2504630982875824, 0.034300051629543304, -0.1813049167394638, -0.1971123218536377, -0.21086084842681885, 0.30014050006866455, -0.3252841532230377, -0.3003571629524231, 0.1256532520055771, -0.2590816617012024, 0.015986166894435883, 0.4415017366409302, 0.4677233397960663, 0.2865585386753082, 0.40039315819740295, -0.009307317435741425, -0.2958917021751404, 0.21627727150917053, 0.07240170240402222, -0.15916979312896729, 0.24845172464847565, 0.08250708878040314, 0.024312583729624748, 0.1186545267701149, 0.4691144824028015, -0.09258757531642914, 0.08887432515621185, 0.40348976850509644, 0.1116766631603241, 0.25275346636772156, -0.20995205640792847, -0.1417546570301056, -0.129693865776062, 0.2726271152496338, -0.26841291785240173, -0.2975160777568817, -0.0471455380320549, -0.06460645794868469, -0.39993271231651306, -0.04832415282726288, -0.041230760514736176, -0.09161585569381714, 0.09587035328149796, -0.19575366377830505, -0.03875204175710678, -0.21003857254981995, -0.028552085161209106, -0.2047911435365677, 0.5463032722473145, -0.046203017234802246, -0.13406801223754883, -0.032989662140607834, 0.05535038560628891, 0.09376589208841324, 0.14605101943016052, 0.04332984983921051, -0.10710735619068146, -0.2560287415981293, -0.342876136302948, 0.047717396169900894, -0.14597269892692566, 0.14467471837997437, -0.21636192500591278, 0.16255822777748108, 0.15509089827537537, 0.49943801760673523, -0.004434097558259964, 0.2698791027069092, 0.23586101830005646, 0.08508095145225525, 0.13825978338718414, 0.1373053938150406, 0.035417117178440094, -0.07781276106834412, -0.2186771035194397, 0.11480030417442322, -0.10809232294559479, 0.25717437267303467, 0.20310360193252563, 0.22396588325500488, -0.16918963193893433, -0.15803521871566772, 0.3644997477531433, 0.14048850536346436, 0.06966614723205566, -0.06815227121114731, 0.3837476968765259, -0.10419473052024841, 0.1318565458059311, 0.15836785733699799, 0.2434372901916504, -0.10428528487682343, -0.14369672536849976, -0.16738632321357727, -0.08125673234462738, -0.16621190309524536, -0.18525651097297668, -0.03747960180044174, 0.5317186713218689, 0.4051833748817444, -0.07452363520860672, 0.24528975784778595, -0.35288429260253906, -0.054677337408065796, 0.07794824242591858, 0.3144136667251587, 0.2554227411746979, 0.04156840965151787, -0.005759179592132568, 0.31620123982429504, -0.5144336819648743, -0.050193339586257935, 0.19417181611061096, -0.08892402797937393, -0.3121996819972992, -0.31330615282058716, 0.31162428855895996, -0.4039774537086487, -0.018018703907728195, 0.15717536211013794, 0.2726896405220032, 0.07445566356182098, 0.12056572735309601, 0.17306354641914368, -0.1393030285835266, -0.22031979262828827, -0.13397392630577087, 0.3420729339122772, 0.09733521938323975, -0.4061070382595062, 0.01198028028011322, 0.24012045562267303, 0.10286599397659302, -0.21530380845069885, 0.1706448644399643, 0.09506141394376755, -0.021080382168293, 0.17022351920604706, 0.08713622391223907, 0.5328413248062134, -0.5750678181648254, -0.24785348773002625, -0.1239776611328125, -0.1503414511680603, -0.16789746284484863, -0.07401777058839798, 0.18724359571933746, 0.2976514399051666, 0.026706436648964882, 0.2789008617401123, 0.10763388127088547, 0.11517532914876938, 0.04741545766592026, -0.485320508480072, -0.13628160953521729, -0.24086783826351166, 0.10254396498203278, 0.09113845229148865, -0.015202425420284271, -0.1974126398563385, 0.26095789670944214, 0.13645431399345398, 0.03030487336218357, -0.1126161739230156, 0.20554238557815552, 0.5363832712173462, -0.14523857831954956, 0.029931332916021347, -0.17696517705917358, -0.39942824840545654, -0.071294866502285, -0.3139665126800537, 0.02086114138364792, 0.022003717720508575, -0.21254819631576538, -0.3389860689640045, 0.02979310043156147, -0.01940576359629631, -0.06046910211443901, 0.275597482919693, -0.3341488540172577, 0.1305275410413742, 0.020786907523870468, -0.27667731046676636, -0.30202311277389526, -0.16839854419231415, 0.07488832622766495, -0.2071399688720703, 0.11251737177371979, -0.3085668087005615, -0.27890121936798096, 0.13586096465587616, 0.2905678451061249, 0.1515500247478485, 0.09270989149808884, -0.0791662186384201, 0.2725978195667267, 0.01785213313996792, 0.02007196843624115, -0.25884532928466797, 0.4192478656768799, 0.19529692828655243, -0.025383584201335907, -0.03727922588586807, -0.04892641678452492, -0.1249086856842041, -0.09841052442789078, -0.2932809889316559, 0.4488171339035034, 0.09571974724531174, 0.06023493409156799, -0.11377586424350739, 0.14026965200901031, 0.047747381031513214, 0.014763977378606796, -0.2400771975517273, -0.47967061400413513, -0.12177032232284546, 0.214753657579422, -0.061899494379758835, 0.08399436622858047, -0.1643051654100418, 0.15316173434257507, 0.5525690317153931, 0.22210350632667542, 0.15966516733169556, 0.14472833275794983, -0.09394455701112747, -0.15030913054943085, -0.25740236043930054, -0.0029373764991760254, 0.4423986077308655, 0.22064360976219177, -0.09360268712043762, 0.15628057718276978, 0.2699279487133026, -0.1668323576450348, 0.2707176208496094, 0.19386956095695496, 0.10128279775381088, 0.22934970259666443, 0.27002277970314026, -0.09897688776254654, -0.08531930297613144, 0.25872716307640076, -0.15357251465320587, 0.13191252946853638, -0.3116276264190674, 0.06888475269079208, -0.004651231691241264, 0.09133879095315933, -0.27162089943885803, -0.3902319669723511, -0.27985435724258423, -0.36320677399635315, 0.4069458246231079, -0.007888361811637878, -0.3016549050807953, 0.09171732515096664, 0.2880478799343109, 0.22440603375434875, 0.11706285178661346, 0.46322497725486755, 0.013593032956123352, -0.46871277689933777, 0.20810267329216003, 0.05826747044920921, -0.1469525396823883, -0.07428674399852753, 0.13849316537380219, -0.2388012558221817, -0.0005692746490240097, -0.01186874695122242, -0.3549535572528839, 0.21586649119853973, -0.07105221599340439, 0.4830208420753479, 0.2313653528690338, 0.22944921255111694, -0.18944625556468964, -0.04135347157716751, 0.5097649097442627, -0.10539346188306808, -0.015059402212500572, 0.018400341272354126, 0.11472438275814056, -0.05830996856093407, -0.11867402493953705, -0.3071034550666809, -0.3188212811946869, -0.34459006786346436, -0.09445245563983917, 0.12147514522075653, 0.008497659116983414, 0.09373746812343597, 0.2718117833137512, 0.06271316111087799, -0.08367659896612167, -0.06721561402082443, -0.2289370894432068, -0.3377034068107605, 0.29383042454719543, -0.3204580843448639, -0.3955188989639282, -0.019150350242853165, 0.2566347122192383, 0.05033118650317192, -0.49130016565322876, -0.09187070280313492, -0.7471247315406799, -0.004153253510594368, -0.2731301188468933, -0.037525780498981476, 0.039154376834630966, 0.11371511965990067, -0.00719482870772481, -0.26299595832824707, -0.205655038356781, -0.11214938759803772, 0.19860239326953888, 0.18549323081970215, 0.0983235239982605, -0.36693575978279114, 0.2046835720539093, 0.17860661447048187, 0.6430106163024902, 0.28404057025909424, -0.21999867260456085, -0.050387077033519745, -0.0989656075835228, 0.11187365651130676, -0.07716109603643417, -0.1862010955810547, 0.010302974842488766, -0.09157437086105347, -0.09857647120952606, 0.44812947511672974, -0.03699912875890732, -0.0703396275639534, 0.06678495556116104, 0.21978135406970978, 0.006005920469760895, -0.28639739751815796, 0.17789258062839508, 0.02144981361925602, -0.03595215082168579, 0.17427513003349304, 0.1945877969264984, -0.1610226333141327, -0.07197582721710205, -0.016058923676609993, -0.08629633486270905, -0.08058743923902512, 0.002942838706076145, -0.1618785858154297, -0.46756410598754883, -0.31191980838775635, 0.22162607312202454, 0.06685152649879456, 0.026786021888256073, 0.08441762626171112, -0.2250296175479889, -0.04035019874572754, 0.013387756422162056, 0.531273365020752, -0.1507435292005539, -0.1329650729894638, 0.08846521377563477, 0.01215675100684166, -0.38373762369155884, -0.15299278497695923, -0.3100414574146271, 0.1869179755449295, 0.06443923711776733, 0.20397385954856873, -0.2613348364830017, -0.06432501971721649, 0.1881224513053894, -0.07087254524230957, -0.2485762983560562, -0.06569273769855499, -0.42580467462539673, -0.1695970743894577, -0.1935037076473236, 0.1949613392353058, 0.30873480439186096, -0.17037925124168396, -0.07570891827344894, -0.09748922288417816, 0.39906710386276245, -0.014437166973948479, 0.08086404204368591, 0.2596063017845154, 0.31998440623283386, 0.03108851984143257, -0.27248579263687134, 0.12368358671665192, 0.030024545267224312, -0.09432753920555115, 0.2141745537519455, 0.08978702127933502, 0.004160843789577484, 0.08586665987968445, -0.16646629571914673, 0.45025575160980225, 0.35195326805114746, 0.11236362904310226, 0.0802910253405571, -0.1673380732536316, 0.26972800493240356, -0.210963174700737, -0.17363770306110382, 0.36584579944610596, -0.13354438543319702, 0.14954641461372375, -0.00592615082859993, 0.4699922800064087, -0.18197843432426453, 0.03403592109680176, -0.144503653049469, 0.17744985222816467, -0.14509950578212738, 0.4674902558326721, 0.37347176671028137, 0.9927014708518982, 0.019706130027770996, 0.1127089187502861, 0.06940384954214096, -0.038027405738830566, 0.5223949551582336, -0.04596149921417236, 0.19933904707431793, -0.4928154945373535, -0.21341820061206818, 0.16766230762004852, -0.05153937637805939, -0.07392703741788864, 0.05289928615093231, -0.4831275939941406, 0.028868963941931725, -0.27487918734550476, 0.2965114116668701, -0.10299547016620636, 0.1426236480474472, 0.12470415234565735, -0.049922551959753036, -0.5327449440956116, 0.20236138999462128, -0.13856904208660126, -0.2604598104953766, -0.21271184086799622, -0.07345105707645416, -0.0030369386076927185, -0.11557058990001678, -0.1698988974094391, -0.17179691791534424, -0.12197981029748917, 0.14494259655475616, 0.25323766469955444, -0.08616332709789276, 0.0010376814752817154, 0.5183920860290527, 0.3382079601287842, 0.1810406744480133, -0.31118330359458923, 0.13930067420005798, 0.13721761107444763, 0.12582671642303467, 0.1796502023935318, 0.11337801814079285, -0.008932722732424736, -0.21417906880378723, -0.2847561836242676, 0.2126101851463318, 0.14285686612129211, -0.019820446148514748, -0.1304808259010315, -0.034552738070487976, -0.0020328909158706665, -0.36272507905960083, -0.23523378372192383, -0.12090128660202026, -0.18134671449661255, -0.28258535265922546, 0.23870769143104553, -0.004075184464454651, -0.1472623348236084, 0.4144493043422699, 0.32960230112075806, -0.21791283786296844, 0.06612224876880646, 0.32642900943756104, -0.10061127692461014, 0.15210498869419098, 0.3153573274612427, 0.23943080008029938, -0.18220172822475433, -0.34443795680999756, -0.024335239082574844, -0.0983155220746994, -0.11761796474456787, 0.30943891406059265, 0.018770083785057068, -0.3251517117023468, 0.005696528125554323, 0.3860689103603363, 0.29794543981552124, -0.02349153906106949, -0.037312570959329605, -0.13859951496124268, -0.12009011954069138, 0.3314628601074219, 0.20741142332553864, 0.10704213380813599, -0.36463281512260437, 0.07255780696868896, -0.10524871945381165, 0.19689412415027618, -0.4594356119632721, -0.13772471249103546, -0.47235023975372314, 0.2302616387605667, -0.3898172974586487, -0.33961474895477295, -0.13394469022750854, -0.11079162359237671, 0.10634544491767883, 0.13028687238693237, -0.21972627937793732, -0.3310334384441376, -0.08929157257080078, 0.09500740468502045, 0.05342070013284683, 0.08905544131994247, 0.0399697907269001, 0.18964526057243347, -0.14210408926010132, -0.11722102761268616, 0.04993375763297081, 0.29144105315208435, 0.1286913901567459, 0.448447048664093, -0.2623993158340454, 0.1859043836593628, 0.2942572236061096, -0.30192330479621887, 0.29226094484329224, 0.1280374825000763, -0.006633846089243889, 0.038475897163152695, -0.16811096668243408, -0.026748448610305786, 0.3258356750011444, 0.2127194106578827, 0.04991007596254349, 0.27485164999961853, 0.17545533180236816, -0.08695629239082336, -0.03545112907886505, 0.3318890631198883, 0.3953568637371063, 0.19821180403232574, -0.31183844804763794, 0.08259724825620651, -0.3978233337402344, 0.365818589925766, -0.2310360223054886, -0.025484474375844002, 0.05671287328004837, 0.12086647003889084, 0.1272341012954712, 0.38412898778915405, 0.36738812923431396, 0.043252140283584595, 0.3611817955970764, 0.23602575063705444, 0.5561294555664062, -0.07693582028150558, 0.08861641585826874, -0.33988311886787415, -0.06429971754550934, -0.07313138246536255, 0.06419865787029266, 0.009682204574346542, 0.2898392081260681, 0.14434757828712463, -0.039984092116355896, 0.18887275457382202, -0.12573081254959106, -0.10301642119884491, 0.15471771359443665, 0.3395596742630005, 0.14167062938213348, 0.024667680263519287, 0.08903577923774719, 0.20423948764801025, 0.005164116621017456, 0.20657306909561157, -0.23150606453418732, -0.06285163760185242, -0.23887844383716583, -0.04630236700177193, -0.18879863619804382, -0.019651910290122032, -0.19203849136829376, -0.16928282380104065, -0.08882524073123932, -0.1775609701871872, -0.016842447221279144, -0.027866952121257782, 0.302565336227417, 0.12733173370361328, 0.08214055001735687, -0.005332622677087784, 0.2992327809333801, 0.0066279880702495575, 0.3616207540035248, -0.3840964436531067, 0.17143796384334564, 0.19887930154800415, 0.07860340178012848, 0.149306058883667, 0.37426677346229553, 0.22525733709335327, 0.40015673637390137, -0.3435460925102234, 0.11742907017469406, -0.2227780520915985, -0.34367361664772034, -0.06541615724563599, 0.05846758559346199, 0.24875394999980927, -0.2312929481267929, 0.13526001572608948, 0.2750788927078247, -0.2926062047481537, 0.09840624034404755, 0.07910535484552383, 0.2294463962316513, 0.05645753815770149, 0.10072831809520721, 0.03491438180208206, -0.220441073179245, -0.0025680288672447205, -0.31751498579978943, -0.6055475473403931, -0.1432599425315857, 0.13663816452026367, 0.06342120468616486, 0.1455967128276825, -0.17177852988243103, 0.1469593197107315, 0.029040593653917313, 0.5400581359863281, -0.005487333983182907, -0.07562262564897537, -0.2398044466972351, 0.10339194536209106, -0.40134358406066895, 0.10604701936244965, 0.2854399085044861, 0.21467235684394836, 0.2811429798603058, 0.36429956555366516, -0.06080322712659836, 0.26956892013549805, -0.06156298518180847, -0.09210295230150223, -0.44518566131591797, -0.12739723920822144, -0.5718017220497131, 0.10923753678798676, -0.1854572743177414, -0.005473492667078972, 0.32559734582901, 0.08138544112443924, 0.045421116054058075, -0.10205239802598953, 0.14788702130317688, -0.3579450249671936, -0.178096204996109, 0.1632319539785385, 0.5198057889938354, 0.09455498307943344, 0.04733961820602417, 0.2970057427883148, -0.020119503140449524, -0.17158089578151703, 0.05941338092088699, -0.19818954169750214, -0.18446937203407288, 0.08258819580078125, 0.01247371919453144, 0.39280396699905396, -0.011390945874154568, -0.08697935938835144, -0.21075360476970673, 0.15565034747123718, 0.013719972223043442, -0.29249730706214905, -0.3931548595428467, 0.05529484152793884, 0.01588483154773712, 0.09073580801486969, -0.05403636023402214, 0.30053746700286865, -0.11153525114059448, 0.3865180015563965, -0.3475688099861145, -0.3910760283470154, 0.5478579998016357, -0.09503433853387833, -0.3486461639404297, 0.017119869589805603, 0.3370247483253479, 0.13706138730049133, 0.023410184308886528, -0.7783214449882507, -0.11093179881572723, 0.1685827523469925, -0.03089316561818123, -0.26569560170173645, 0.2390204817056656, -0.16500617563724518, -0.09942969679832458, -0.07270106673240662, 0.37794890999794006, 0.027316303923726082, 0.04514206945896149, -0.3315303325653076, -0.2874301075935364 ]
https://github.com/huggingface/datasets/pull/171
fix squad metric format
I'm also perfectly fine with merging this PR in the current state and working on a larger scope later.
The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ```
19
text: fix squad metric format The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ``` I'm also perfectly fine with merging this PR in the current state and working on a larger scope later.
[ 0.09890896081924438, -0.11219172924757004, -0.13065890967845917, 0.05587445944547653, 0.4119751453399658, -0.2363407015800476, 0.12248943746089935, 0.4279882609844208, -0.24676616489887238, -0.004163570702075958, 0.2642069160938263, 0.22263768315315247, 0.1816573441028595, -0.010916125029325485, 0.005552514456212521, -0.043738603591918945, -0.03173602372407913, -0.049991026520729065, 0.33236074447631836, 0.12195879220962524, -0.23718932271003723, 0.1811019629240036, -0.08728097379207611, -0.1046522706747055, -0.33291730284690857, 0.376066654920578, 0.04572980850934982, 0.21517404913902283, -0.4249943792819977, -0.4811481237411499, 0.038012996315956116, 0.06356912851333618, -0.03551798686385155, 0.021548986434936523, -0.00010487473628018051, -0.04710709676146507, 0.20664891600608826, -0.1532973349094391, 0.2163541316986084, -0.14364098012447357, -0.09583629667758942, -0.2990902364253998, 0.17590183019638062, -0.20200175046920776, -0.3992868959903717, -0.08862779289484024, -0.28893473744392395, 0.04424314200878143, 0.3927898406982422, 0.5288166403770447, 0.2830517888069153, 0.30755749344825745, 0.01105128601193428, -0.31494173407554626, 0.18807534873485565, -0.159056156873703, -0.06377526372671127, 0.06090303882956505, 0.14945408701896667, -0.08027293533086777, 0.2132604718208313, 0.38396501541137695, -0.001968447118997574, 0.08572066575288773, 0.42140039801597595, 0.038946010172367096, 0.2289290726184845, -0.10977663099765778, -0.02252744883298874, -0.21932649612426758, 0.2304992377758026, -0.17487874627113342, -0.23578105866909027, 0.004767991602420807, -0.03549801930785179, -0.4361863434314728, 0.03845514357089996, -0.09423375874757767, -0.04029691591858864, 0.042116280645132065, -0.21665196120738983, 0.07959331572055817, -0.1950797140598297, 0.07985684275627136, -0.30414819717407227, 0.5196686387062073, 0.05033893138170242, -0.11397802084684372, -0.0004681050777435303, -0.08341626077890396, 0.19629821181297302, 0.2050371617078781, 0.027114959433674812, -0.07743800431489944, -0.23820139467716217, -0.23942483961582184, 0.07850736379623413, -0.15296784043312073, 0.08493663370609283, -0.033536165952682495, -0.0029624691233038902, 0.1489606648683548, 0.45481833815574646, -0.0024856366217136383, 0.3215130567550659, 0.2455214411020279, 0.09280389547348022, 0.20743988454341888, 0.11874643713235855, 0.08593977987766266, -0.013034604489803314, -0.0708959624171257, 0.13177423179149628, -0.34726187586784363, 0.08018255233764648, 0.12638667225837708, 0.22014710307121277, -0.06090197712182999, -0.1875254213809967, 0.31445983052253723, 0.024675153195858, 0.07859659194946289, -0.14459587633609772, 0.3283647298812866, -0.09207817167043686, 0.27894148230552673, 0.2895696759223938, 0.22376428544521332, -0.0744885578751564, 0.05426233634352684, -0.1811283826828003, 0.04050641506910324, -0.06070200353860855, -0.26517412066459656, -0.006464671343564987, 0.4783989191055298, 0.3082485795021057, 0.014698567800223827, 0.3722938895225525, -0.3866325914859772, -0.2018883377313614, 0.1057424545288086, 0.35144951939582825, 0.21658317744731903, 0.16516141593456268, -0.1835135668516159, 0.2954809069633484, -0.6133115291595459, 0.048855118453502655, 0.17294035851955414, -0.028550736606121063, -0.3298192322254181, -0.31959670782089233, 0.34151190519332886, -0.34655553102493286, -0.03650631755590439, 0.351254940032959, 0.25580722093582153, 0.06377241760492325, 0.08062915503978729, 0.07310651242733002, -0.11364473402500153, -0.1950860321521759, -0.07555310428142548, 0.3269246220588684, 0.05015525221824646, -0.29278483986854553, 0.009162209928035736, 0.2697589099407196, 0.11093343794345856, -0.26341384649276733, 0.222742959856987, 0.10536573827266693, -0.18537336587905884, 0.13110817968845367, -0.008298084139823914, 0.48404738306999207, -0.7071041464805603, -0.2558075487613678, -0.07603117823600769, -0.252114474773407, -0.23712734878063202, 0.017901189625263214, 0.14164556562900543, 0.2613915503025055, 0.0148243373259902, 0.43318235874176025, 0.2087300717830658, 0.04215842857956886, 0.13792523741722107, -0.5133045315742493, -0.019172048196196556, -0.23495616018772125, 0.14707738161087036, 0.1577278971672058, -0.00264044851064682, -0.2567146122455597, 0.21295054256916046, 0.10070353001356125, 0.11436930298805237, -0.01913704350590706, 0.3379385471343994, 0.48121997714042664, -0.167868509888649, 0.03648439422249794, -0.1360437572002411, -0.21544602513313293, -0.0702681839466095, -0.2831116318702698, 0.1264573186635971, 0.15846560895442963, -0.24081964790821075, -0.5161455273628235, -0.11822571605443954, -0.07103794813156128, -0.1792978048324585, 0.2931058704853058, -0.25368595123291016, 0.12470005452632904, -0.12124775350093842, -0.21178561449050903, -0.3756770193576813, -0.09711192548274994, 0.03492526710033417, -0.1021515280008316, 0.11685614287853241, -0.3704525828361511, -0.23885084688663483, 0.09716063737869263, 0.397136390209198, 0.24579069018363953, 0.14592643082141876, -0.022282417863607407, 0.24423959851264954, -0.03802899643778801, -0.012035824358463287, -0.18721649050712585, 0.2800845801830292, 0.2588563561439514, -0.015149086713790894, -0.20097729563713074, -0.08848221600055695, -0.1810237467288971, -0.11128504574298859, -0.3403637707233429, 0.48743897676467896, 0.15652142465114594, 0.09021340310573578, -0.10251724720001221, 0.17955996096134186, 0.1250135898590088, -0.07048937678337097, -0.07725511491298676, -0.387320876121521, -0.11694355309009552, 0.1349453181028366, -0.11307106912136078, 0.06578777730464935, -0.1544303148984909, 0.23282232880592346, 0.3900882601737976, 0.24045082926750183, -0.0022209063172340393, 0.09461607784032822, 0.03648622706532478, -0.09258073568344116, -0.34346064925193787, 0.04025287553668022, 0.33729857206344604, 0.26795095205307007, -0.08641257882118225, 0.22126026451587677, 0.26513466238975525, -0.18025904893875122, 0.28894996643066406, 0.1587352454662323, 0.013664253987371922, 0.3402317464351654, 0.3439670205116272, -0.12587209045886993, 0.018879123032093048, 0.3035556972026825, -0.1397554725408554, 0.13209034502506256, -0.2649586796760559, 0.017588356509804726, -0.06953980773687363, -0.046307120472192764, -0.3480108976364136, -0.3698039650917053, -0.3316623866558075, -0.3989470899105072, 0.4171363115310669, 0.1184275895357132, -0.20600779354572296, 0.08388309180736542, 0.4503278136253357, 0.14278703927993774, 0.1179012656211853, 0.2855219542980194, 0.05880556255578995, -0.45709460973739624, 0.23707476258277893, 0.13371944427490234, -0.14682529866695404, -0.10819350928068161, 0.11718614399433136, -0.2768092453479767, -0.05805055424571037, -0.13075564801692963, -0.4228059649467468, 0.17476600408554077, -0.11389611661434174, 0.3366411030292511, 0.24402432143688202, 0.2264852076768875, -0.1304967701435089, -0.10845683515071869, 0.4102838933467865, -0.10558270663022995, -0.10262381285429001, -0.14207887649536133, 0.04681069031357765, -0.027845123782753944, -0.20636704564094543, -0.43238696455955505, -0.17002342641353607, -0.336288720369339, -0.031599320471286774, 0.23007290065288544, 0.02441200241446495, -0.07536447793245316, 0.2241048663854599, -0.04675400257110596, 0.029013382270932198, -0.12476660311222076, -0.22269365191459656, -0.08450579643249512, 0.17730502784252167, -0.3103589117527008, -0.3341909945011139, 0.03681303188204765, 0.21577095985412598, 0.04710501804947853, -0.488574743270874, 0.002190887928009033, -0.7729234099388123, 0.03255060315132141, -0.13353116810321808, -0.07662764191627502, 0.08369918167591095, 0.19156372547149658, -0.06789088994264603, -0.3393230438232422, -0.20906972885131836, -0.30158936977386475, 0.12803064286708832, 0.20773741602897644, 0.17402198910713196, -0.29571405053138733, 0.12018109858036041, 0.11927920579910278, 0.8251044154167175, 0.30536922812461853, -0.216879203915596, -0.0779457688331604, -0.16867046058177948, 0.05441873520612717, 0.05322439223527908, -0.1243816688656807, 0.03089890442788601, -0.011707976460456848, 0.053802236914634705, 0.3615034222602844, 0.07285997271537781, -0.03272674232721329, -0.06684214621782303, 0.20889496803283691, -0.11737759411334991, -0.2579285502433777, -0.02631228230893612, -0.023731499910354614, -0.025053203105926514, 0.1531485766172409, 0.17289382219314575, -0.12314929068088531, -0.07501811534166336, -0.06303775310516357, -0.052466005086898804, -0.15334433317184448, 0.07628272473812103, -0.05275345593690872, -0.39970114827156067, -0.28719356656074524, 0.28958457708358765, 0.12850278615951538, 0.10897915810346603, 0.12766306102275848, -0.2822117507457733, -0.05061091482639313, -0.028946924954652786, 0.6148155331611633, -0.2531343102455139, -0.05658494681119919, 0.1276266872882843, 0.060884252190589905, -0.28182628750801086, -0.10458734631538391, -0.19905006885528564, 0.18572214245796204, 0.17902427911758423, 0.15157970786094666, -0.2821677625179291, -0.09520728141069412, 0.20249703526496887, -0.11608318239450455, -0.10671825706958771, -0.033755384385585785, -0.438509464263916, -0.3124913275241852, -0.2819540500640869, 0.2648389935493469, 0.3489435911178589, -0.06358722597360611, -0.14540402591228485, -0.05136781930923462, 0.3512207269668579, -0.0021186303347349167, 0.03129968047142029, 0.14644192159175873, 0.3910773694515228, 0.014450772665441036, -0.2679271697998047, 0.032896481454372406, 0.007101692259311676, -0.01593637652695179, 0.3040180206298828, 0.1854594647884369, -0.016527533531188965, 0.12862738966941833, -0.15939007699489594, 0.36870521306991577, 0.3163323402404785, 0.11834445595741272, 0.14935165643692017, -0.2637608051300049, 0.21434155106544495, 0.04106910899281502, -0.25599080324172974, 0.3600480258464813, -0.10178415477275848, 0.28118231892585754, 0.005419004708528519, 0.2956636846065521, -0.019309435039758682, 0.014772601425647736, -0.1684570014476776, 0.18240684270858765, -0.023977147415280342, 0.37228232622146606, 0.1707492172718048, 0.9350070357322693, 0.04603596776723862, 0.03503802418708801, 0.0637434870004654, -0.16184277832508087, 0.4741598069667816, -0.08524993062019348, 0.22023482620716095, -0.5157387256622314, -0.07289328426122665, 0.16235575079917908, -0.054180897772312164, -0.10921398550271988, 0.00932527706027031, -0.43037161231040955, 0.1296236515045166, -0.2879079580307007, 0.2652628719806671, -0.05085105448961258, 0.11886768043041229, 0.08320439606904984, 0.060092486441135406, -0.571163535118103, 0.21251213550567627, -0.1033501923084259, -0.17768239974975586, -0.20705550909042358, -0.1134934201836586, -0.09556886553764343, -0.1719331443309784, -0.1724543273448944, -0.14041870832443237, 0.08053992688655853, 0.07358817756175995, 0.31536152958869934, -0.13136011362075806, 0.0472647063434124, 0.5486284494400024, 0.3043537139892578, 0.12738633155822754, -0.3526102304458618, 0.2587427496910095, 0.24072107672691345, 0.04750388488173485, 0.18135634064674377, 0.12028788030147552, -0.1474248319864273, -0.30525073409080505, -0.38684821128845215, 0.15843504667282104, 0.07547225803136826, -0.024438027292490005, -0.19090980291366577, 0.1399969756603241, -0.07758456468582153, -0.22298724949359894, -0.17676222324371338, -0.041703298687934875, -0.18528132140636444, -0.35965394973754883, 0.24960114061832428, -0.18398644030094147, -0.05060053616762161, 0.20860645174980164, 0.3446398079395294, -0.22226570546627045, 0.11927418410778046, 0.3921104669570923, -0.07813528925180435, 0.0021074675023555756, 0.2112758606672287, 0.21114937961101532, -0.1566685140132904, -0.29819542169570923, -0.1484181135892868, -0.24390751123428345, -0.09310518950223923, 0.2646668553352356, 0.0672101154923439, -0.3746662735939026, 0.17231397330760956, 0.33083897829055786, 0.11683540046215057, 0.13629919290542603, -0.00410214439034462, -0.10793808102607727, -0.10884314775466919, 0.1783408671617508, 0.15171661972999573, 0.0439012348651886, -0.22859683632850647, 0.27798375487327576, -0.05856432020664215, 0.1732700765132904, -0.46527740359306335, -0.03994758427143097, -0.547696053981781, 0.22071562707424164, -0.4892900884151459, -0.4081503748893738, -0.17924579977989197, -0.14178356528282166, 0.13304805755615234, 0.14856302738189697, -0.19919632375240326, -0.31257787346839905, 0.01902884989976883, 0.10265611857175827, 0.05901852622628212, 0.003486020490527153, -0.034719862043857574, 0.21044813096523285, -0.09421832859516144, -0.03490860387682915, 0.04551797732710838, 0.18130430579185486, 0.10087957978248596, 0.3075354993343353, -0.3459540605545044, 0.16984149813652039, 0.3441150188446045, -0.33558589220046997, 0.23843993246555328, 0.1859222650527954, -0.06712305545806885, 0.014088038355112076, -0.23000608384609222, -0.05278334766626358, 0.40542715787887573, 0.15328815579414368, 0.15553723275661469, 0.30653172731399536, 0.155788391828537, -0.14504529535770416, -0.2003369927406311, 0.25434744358062744, 0.39757034182548523, 0.21003714203834534, -0.32459568977355957, 0.15841533243656158, -0.4826596677303314, 0.36548709869384766, -0.3624323904514313, -0.07558541744947433, 0.04875076934695244, 0.1260298639535904, 0.1438625007867813, 0.3598999083042145, 0.42967042326927185, -0.07683288305997849, 0.33212077617645264, 0.32706841826438904, 0.5075345635414124, -0.20937468111515045, 0.06210535764694214, -0.38430139422416687, -0.09867238998413086, -0.13287673890590668, 0.03612816706299782, -0.021135810762643814, 0.2766473889350891, 0.05962095409631729, -0.025884799659252167, 0.08986114710569382, -0.18624016642570496, -0.1971384882926941, 0.12583163380622864, 0.30706873536109924, 0.223706915974617, -0.03263683617115021, 0.10653795301914215, 0.03307066857814789, 0.16743630170822144, 0.2910074293613434, -0.14149513840675354, -0.050075553357601166, -0.12223991751670837, 0.049387507140636444, -0.16255250573158264, 0.05297750607132912, -0.10300133377313614, -0.1653592586517334, -0.16905932128429413, -0.1614820808172226, 0.09907948970794678, -0.02941495180130005, 0.37101060152053833, 0.09090770781040192, 0.07168624550104141, -0.11053313314914703, 0.33305615186691284, 0.009005550295114517, 0.3627389371395111, -0.36734145879745483, 0.14970771968364716, 0.2343779057264328, -0.11878283321857452, 0.28393590450286865, 0.3166612982749939, 0.3182718753814697, 0.2623288929462433, -0.31980377435684204, 0.02308417484164238, -0.2224656641483307, -0.2916273772716522, -0.012928912416100502, 0.0012314114719629288, 0.19820860028266907, -0.22435973584651947, 0.13717013597488403, 0.31393876671791077, -0.3095742166042328, 0.05389757826924324, -0.005253251641988754, 0.2218976765871048, 0.08613328635692596, 0.18124070763587952, -0.05822593718767166, -0.186770498752594, -0.039947859942913055, -0.22107243537902832, -0.459820955991745, -0.19889333844184875, -0.008902562782168388, 0.24338577687740326, 0.19152036309242249, -0.2758304178714752, 0.15628689527511597, 0.18879109621047974, 0.3896825611591339, -0.014954786747694016, -0.015301138162612915, -0.1467680186033249, -0.0145140141248703, -0.373057097196579, 0.20159581303596497, 0.22953535616397858, 0.12315978109836578, 0.2615673840045929, 0.30887389183044434, -0.061288364231586456, 0.23007258772850037, -0.04455822706222534, 0.011744167655706406, -0.23019419610500336, -0.06575720012187958, -0.5356996059417725, 0.12735223770141602, -0.04501337558031082, -0.06691920012235641, 0.4410512447357178, 0.020209744572639465, 0.08956724405288696, -0.1332389861345291, 0.24157914519309998, -0.3039945960044861, -0.1587044596672058, 0.20630939304828644, 0.39060744643211365, -0.10021059215068817, 0.09847196191549301, 0.30967357754707336, -0.09249318391084671, -0.14577382802963257, 0.096067875623703, -0.14342913031578064, -0.31345507502555847, 0.14973460137844086, 0.0003703199326992035, 0.20891082286834717, 0.08833635598421097, -0.12244115769863129, -0.14317917823791504, 0.13574683666229248, 0.027716629207134247, -0.11120986193418503, -0.4194347560405731, -0.015251528471708298, -0.022483963519334793, 0.14549016952514648, -0.2235211730003357, 0.26371392607688904, -0.10619403421878815, 0.35713309049606323, -0.40150558948516846, -0.5258876085281372, 0.5453218221664429, -0.02229607105255127, -0.32428085803985596, 0.010338213294744492, 0.33230873942375183, 0.15028943121433258, -0.002087661996483803, -0.5536171793937683, -0.1479034423828125, 0.12862595915794373, 0.009837416931986809, -0.31166091561317444, 0.06787571310997009, -0.36679336428642273, -0.15858417749404907, -0.0550115741789341, 0.24065376818180084, 0.14790911972522736, 0.03524903953075409, -0.27476614713668823, -0.23487283289432526 ]
https://github.com/huggingface/datasets/pull/171
fix squad metric format
This is the format needed to run the official script directly. The format of the squad dataset is different from the input of the metric. > One thing for SQuAD is that I wanted to be able to use the SQuAD dataset directly in the metrics and I'm not sure it will be possible with this format. > > (maybe it's not really possible in general though) Ok I see. I'll try to use the same format
The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ```
77
text: fix squad metric format The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ``` This is the format needed to run the official script directly. The format of the squad dataset is different from the input of the metric. > One thing for SQuAD is that I wanted to be able to use the SQuAD dataset directly in the metrics and I'm not sure it will be possible with this format. > > (maybe it's not really possible in general though) Ok I see. I'll try to use the same format
[ 0.01105307787656784, -0.05376765877008438, -0.0930514931678772, -0.004515208303928375, 0.4273960590362549, -0.22912904620170593, 0.20708826184272766, 0.3648979663848877, -0.23641854524612427, 0.053600065410137177, 0.25956445932388306, 0.33635300397872925, 0.15206225216388702, 0.01940971426665783, -0.009070261381566525, 0.11705365031957626, -0.08438710123300552, -0.11656615138053894, 0.14277313649654388, 0.06558423489332199, -0.25290989875793457, 0.1609550267457962, -0.2757399082183838, -0.1182878315448761, -0.3043130338191986, 0.3520016372203827, 0.20363831520080566, 0.18147268891334534, -0.500888466835022, -0.506581723690033, 0.14223189651966095, 0.02324124053120613, 0.08641602843999863, 0.23004066944122314, -0.00010552741878200322, -0.15750747919082642, 0.24316413700580597, -0.1836746335029602, 0.09658591449260712, -0.15902669727802277, -0.09625904262065887, -0.24502377212047577, 0.29370880126953125, -0.3767005503177643, -0.3351726531982422, 0.2462083101272583, -0.1192469596862793, -0.13008621335029602, 0.41161108016967773, 0.5085365772247314, 0.2694743275642395, 0.366123229265213, -0.06109854206442833, -0.3384845554828644, 0.09058474004268646, -0.08338476717472076, -0.1606636345386505, 0.24131882190704346, 0.1286594271659851, -0.00457925396040082, 0.0822109803557396, 0.2893463671207428, -0.09607852250337601, 0.08477070927619934, 0.41188064217567444, 0.018024202436208725, 0.1963476836681366, -0.21001756191253662, -0.028496436774730682, -0.09861806780099869, 0.2959682047367096, -0.4037666320800781, -0.1735524833202362, 0.13088950514793396, -0.06312642246484756, -0.42694538831710815, -0.05399134010076523, -0.14436547458171844, 0.05259408429265022, 0.02046581171452999, -0.28159528970718384, 0.19315344095230103, -0.2430860847234726, 0.03912182152271271, -0.22393831610679626, 0.45750078558921814, -0.06990645825862885, -0.0725003257393837, -0.07123775780200958, 0.0671820193529129, 0.12270822376012802, 0.25073719024658203, 0.023699169978499413, -0.01801399141550064, -0.35062047839164734, -0.1798539161682129, -0.035847827792167664, -0.15142220258712769, 0.1975671947002411, -0.12597177922725677, 0.20229755342006683, 0.23820480704307556, 0.4383026957511902, -0.03450360149145126, 0.22511576116085052, 0.26840388774871826, 0.38223564624786377, 0.17044870555400848, 0.12114762514829636, 0.17968036234378815, -0.01682230457663536, -0.12708482146263123, 0.06543584913015366, -0.434015691280365, 0.11707213521003723, 0.29054293036460876, 0.204421266913414, -0.20036162436008453, -0.21250906586647034, 0.27364417910575867, 0.2456800937652588, 0.013289213180541992, -0.008175895549356937, 0.33303436636924744, -0.015813656151294708, 0.11947683990001678, 0.14555896818637848, 0.3107696771621704, -0.10777582228183746, -0.0055770957842469215, -0.12248213589191437, 0.0739034116268158, -0.13507907092571259, -0.07169916480779648, 0.05086040124297142, 0.3558890223503113, 0.36319419741630554, 0.02157335728406906, 0.4066266417503357, -0.370676726102829, -0.13259562849998474, 0.10068713128566742, 0.24612921476364136, 0.1615116149187088, 0.27598005533218384, -0.021372638642787933, 0.3186344504356384, -0.4533820152282715, 0.08463536947965622, 0.23596739768981934, -0.10784374922513962, -0.28487443923950195, -0.29659515619277954, 0.3038831651210785, -0.4229164123535156, -0.04510226100683212, 0.2500987946987152, 0.10853114724159241, -0.00704636424779892, 0.004311572760343552, 0.23845034837722778, -0.24294249713420868, -0.2835305333137512, -0.1274966299533844, 0.3714616298675537, 0.16783125698566437, -0.45402398705482483, 0.11433093249797821, 0.18990346789360046, 0.09211200475692749, -0.22415071725845337, 0.08589404821395874, 0.11274392902851105, -0.06459672003984451, 0.0711590051651001, -0.0664210245013237, 0.6349295377731323, -0.8777955770492554, -0.2368084192276001, -0.04999987408518791, -0.21730762720108032, -0.21454976499080658, -0.03726822882890701, 0.12304792553186417, 0.3804328441619873, -0.01795227639377117, 0.2382907122373581, 0.1440010368824005, 0.14362184703350067, 0.012687666341662407, -0.4891648590564728, -0.05523310601711273, -0.2158709019422531, 0.20070241391658783, 0.18269658088684082, -0.037431783974170685, -0.12725836038589478, 0.2171219140291214, 0.13356398046016693, 0.12731432914733887, -0.12748412787914276, 0.3239135146141052, 0.3691023588180542, -0.1543148010969162, 0.09125149995088577, -0.18355998396873474, -0.25725746154785156, -0.021598318591713905, -0.37089967727661133, 0.04331172630190849, 0.2132972627878189, -0.23437237739562988, -0.5557528138160706, -0.2059451788663864, -0.09961073100566864, -0.14458563923835754, 0.22787019610404968, -0.36222049593925476, 0.116950124502182, -0.06424295902252197, -0.2141076773405075, -0.3270946443080902, -0.21361379325389862, 0.1338302493095398, -0.083958700299263, 0.036600261926651, -0.3140510618686676, -0.27470284700393677, 0.1772974729537964, 0.29391610622406006, 0.3075728416442871, 0.10325176268815994, -0.14032897353172302, 0.3983803689479828, 0.0756889209151268, -0.09441368281841278, -0.07435699552297592, 0.29236742854118347, 0.15473592281341553, -0.036637019366025925, -0.11287897080183029, 0.02583085373044014, -0.1446792185306549, -0.11121239513158798, -0.2598395049571991, 0.49107271432876587, 0.001995053142309189, 0.03337849676609039, -0.19512130320072174, 0.19403217732906342, 0.050925396382808685, -0.14325423538684845, -0.2063102126121521, -0.37577494978904724, -0.1735362857580185, 0.20417404174804688, -0.10994112491607666, -0.14961296319961548, 0.03619403392076492, 0.18180248141288757, 0.569670557975769, 0.17828640341758728, 0.08219949901103973, 0.13446971774101257, -0.008762188255786896, 0.01616005226969719, -0.3933579623699188, -0.0773383378982544, 0.3560076355934143, 0.23280616104602814, -0.10170821845531464, 0.2276042103767395, 0.14125999808311462, -0.21106483042240143, 0.2530007064342499, 0.122760109603405, 0.09363780170679092, 0.30486804246902466, 0.15419025719165802, -0.15510205924510956, -0.014372806996107101, 0.21138176321983337, -0.19360092282295227, 0.1191214993596077, -0.3364471197128296, -0.045905858278274536, -0.08516242355108261, 0.036463573575019836, -0.2337772250175476, -0.35413116216659546, -0.16028887033462524, -0.39556363224983215, 0.3398802876472473, 0.05462023243308067, -0.03614511340856552, 0.12164187431335449, 0.3401441276073456, 0.1703818291425705, 0.16477763652801514, 0.34537917375564575, 0.10962963104248047, -0.46651819348335266, 0.13988909125328064, 0.10302481055259705, -0.07382562756538391, -0.03545559197664261, 0.05772931128740311, -0.3778437674045563, 0.060192838311195374, -0.1570521742105484, -0.3500451445579529, 0.12019415199756622, -0.03747253119945526, 0.4045689105987549, 0.16383057832717896, 0.22393466532230377, -0.1789163053035736, 0.07135952264070511, 0.3476109802722931, -0.24395637214183807, 0.0525171160697937, -0.08809098601341248, -0.04122777655720711, -0.20748230814933777, -0.2403787225484848, -0.3773576021194458, -0.14267034828662872, -0.3509920537471771, -0.19088028371334076, 0.2517685890197754, 0.03603276610374451, -0.02869798243045807, 0.18013709783554077, 0.07705054432153702, 0.018437612801790237, -0.10296476632356644, -0.265850305557251, -0.2246524691581726, 0.27667850255966187, -0.3761884868144989, -0.4229951500892639, 0.13363569974899292, 0.2803609371185303, 0.10341934114694595, -0.48348337411880493, -0.05996985733509064, -0.827241837978363, 0.10945356637239456, -0.16271299123764038, -0.09133125841617584, 0.13050691783428192, 0.16683098673820496, -0.21457670629024506, -0.22864753007888794, -0.311708003282547, -0.22712679207324982, 0.18081176280975342, 0.09603755921125412, -0.0208640918135643, -0.2912609279155731, 0.24687278270721436, 0.18355056643486023, 0.7104490399360657, 0.3150784373283386, -0.1524364948272705, -0.14118275046348572, -0.2760600447654724, 0.22744868695735931, -0.0018772706389427185, -0.14203140139579773, 0.042128194123506546, 0.029375962913036346, 0.04343022406101227, 0.451545774936676, -0.049246273934841156, 0.03757621720433235, -0.042613573372364044, 0.25626298785209656, -0.17683947086334229, -0.17711178958415985, -0.02402648515999317, 0.07762462645769119, -0.09434517472982407, 0.17717275023460388, 0.3503482937812805, -0.1593739092350006, -0.13624948263168335, 0.008063480257987976, 0.09120053052902222, -0.09910381585359573, 0.15420673787593842, -0.16062764823436737, -0.2492421716451645, -0.1985645890235901, 0.38350653648376465, -0.04852966591715813, 0.1365339756011963, -0.029513860121369362, -0.11780575662851334, -0.025019988417625427, 0.04324575886130333, 0.49745678901672363, -0.27174654603004456, 0.007624641060829163, 0.15811792016029358, 0.13247066736221313, -0.5007981657981873, -0.2333565056324005, -0.34372594952583313, 0.33329591155052185, 0.2731251120567322, 0.10289154946804047, -0.20189890265464783, -0.06944651156663895, 0.1880624145269394, -0.12464185059070587, -0.1314857304096222, -0.07489359378814697, -0.4501122832298279, -0.2533164918422699, -0.2136956751346588, 0.21453243494033813, 0.31867122650146484, -0.10646368563175201, -0.14308200776576996, -0.07559013366699219, 0.39636218547821045, -0.02757103368639946, 0.08884374797344208, 0.2392643541097641, 0.39683854579925537, 0.07620563358068466, -0.18113179504871368, 0.13857659697532654, -0.1287849396467209, -0.15567895770072937, 0.15626581013202667, 0.2307591736316681, 0.01471640169620514, 0.23219814896583557, -0.22688418626785278, 0.4464610517024994, 0.4343410134315491, 0.06639571487903595, 0.025735341012477875, -0.28995928168296814, 0.27003124356269836, 0.024511147290468216, -0.21185606718063354, 0.38418570160865784, -0.005746858660131693, 0.16984587907791138, -0.07731202244758606, 0.2928466796875, 0.02241361513733864, 0.02747732400894165, -0.04551266133785248, 0.11774050444364548, -0.08639694005250931, 0.2711808681488037, 0.20553618669509888, 0.9392474293708801, 0.0053623877465724945, -0.09863370656967163, 0.10868701338768005, -0.0965467095375061, 0.38030263781547546, -0.08283547312021255, 0.15268860757350922, -0.6487734317779541, -0.20201100409030914, 0.1520797610282898, -0.10240304470062256, -0.006605178117752075, 0.007448442280292511, -0.45622023940086365, 0.2702084183692932, -0.40185976028442383, 0.31712326407432556, -0.01293564960360527, 0.2093956172466278, 0.0866035521030426, 0.012658185325562954, -0.2662583887577057, 0.22501519322395325, -0.07394947111606598, -0.11912257969379425, -0.21789035201072693, -0.08779966831207275, -0.07398620247840881, -0.17421725392341614, -0.11156339943408966, -0.058684635907411575, -0.009378216229379177, 0.005859114229679108, 0.1496102660894394, -0.05081852152943611, 0.13408127427101135, 0.5980398058891296, 0.44945651292800903, 0.14552128314971924, -0.2958148717880249, 0.22640381753444672, 0.1358974277973175, 0.08118956536054611, 0.2579291760921478, 0.31805479526519775, -0.16986216604709625, -0.2720646560192108, -0.2765028178691864, 0.15749706327915192, 0.16618265211582184, 0.01688385009765625, -0.08293337374925613, 0.03391909971833229, 0.053608957678079605, -0.35833877325057983, -0.23825222253799438, -0.15825729072093964, -0.14464516937732697, -0.28261303901672363, 0.22963076829910278, -0.19715197384357452, -0.03662654757499695, 0.4228319227695465, 0.3702393174171448, -0.273920476436615, 0.13281318545341492, 0.3767551779747009, -0.1467714011669159, 0.010827295482158661, 0.17243142426013947, 0.20778168737888336, -0.1458393931388855, -0.328199565410614, -0.053396522998809814, -0.15408650040626526, -0.023328639566898346, 0.143549844622612, 0.12853817641735077, -0.24890270829200745, 0.1543574333190918, 0.23714852333068848, 0.10416877269744873, 0.10055644810199738, -0.10891790688037872, -0.31275033950805664, 0.058858320116996765, 0.15121889114379883, 0.19843393564224243, 0.028690939769148827, -0.22286200523376465, 0.16552679240703583, -0.017061954364180565, 0.05276761204004288, -0.44801127910614014, -0.02756360173225403, -0.28783828020095825, 0.16807226836681366, -0.3627334237098694, -0.37680330872535706, -0.06630465388298035, -0.031139912083745003, 0.06808387488126755, 0.12083189934492111, -0.2893922030925751, -0.29160499572753906, -0.05435208976268768, 0.12246860563755035, -0.041488200426101685, -0.06258928775787354, -0.04734519124031067, 0.11858591437339783, -0.25963929295539856, -0.06866949796676636, -0.003976307809352875, 0.3284286856651306, 0.053001709282398224, 0.41004136204719543, -0.4303710460662842, 0.20275521278381348, 0.2731998562812805, -0.28901436924934387, 0.23766948282718658, 0.2051495611667633, -0.08847331255674362, 0.14065565168857574, -0.1699351668357849, -0.010417953133583069, 0.2584429979324341, 0.18241599202156067, 0.2008601427078247, 0.36938467621803284, 0.11606331169605255, -0.13945166766643524, 0.02309565618634224, 0.26580941677093506, 0.33181050419807434, 0.1777888387441635, -0.4162451922893524, 0.04682587832212448, -0.480449914932251, 0.31178590655326843, -0.2097775936126709, -0.03728080913424492, 0.09452220797538757, 0.02738160267472267, 0.11912460625171661, 0.3539446294307709, 0.40124207735061646, -0.09358696639537811, 0.37619394063949585, 0.23333591222763062, 0.6156601905822754, -0.11452959477901459, 0.13194170594215393, -0.37293270230293274, -0.12277093529701233, -0.08918368816375732, 0.06196402758359909, -0.11871924996376038, 0.1424834132194519, 0.10117334872484207, -0.09094125777482986, 0.17683784663677216, -0.21712934970855713, -0.15026715397834778, 0.10735470056533813, 0.2452477067708969, 0.17053186893463135, 0.09071467816829681, 0.10095156729221344, 0.061688825488090515, 0.02440033107995987, 0.35453882813453674, -0.324195921421051, 0.07670334726572037, -0.2736181914806366, -0.27948856353759766, -0.11603366583585739, 0.11971285939216614, -0.28343382477760315, -0.12302494049072266, -0.12244483083486557, -0.2084895819425583, 0.03736775740981102, 0.0797882080078125, 0.13662028312683105, 0.08077594637870789, 0.028152085840702057, 0.1752701997756958, 0.1966153085231781, 0.06900793313980103, 0.3256005346775055, -0.30289942026138306, 0.21463510394096375, 0.11090657114982605, 0.17360803484916687, 0.29561713337898254, 0.33170926570892334, 0.3532624840736389, 0.32612860202789307, -0.20897555351257324, -0.006223490461707115, -0.18465079367160797, -0.2721060812473297, 0.11611996591091156, 0.09263204038143158, 0.14777657389640808, -0.42537251114845276, 0.1612819880247116, 0.31916671991348267, -0.27978670597076416, 0.03987079858779907, 0.02997385896742344, 0.1440652757883072, 0.1695495992898941, -0.046325720846652985, -0.023492660373449326, -0.11887943744659424, -0.07500312477350235, -0.2542193830013275, -0.5146702527999878, -0.1961565464735031, -0.005915803834795952, 0.20762485265731812, 0.13448268175125122, -0.31510472297668457, 0.15288034081459045, 0.10329753160476685, 0.40190574526786804, -0.030458953231573105, -0.028468571603298187, -0.13822990655899048, -0.025678902864456177, -0.5068248510360718, 0.20093348622322083, 0.3883836567401886, 0.13814662396907806, 0.2977394759654999, 0.2196580022573471, -0.08732456713914871, 0.35904020071029663, 0.21247872710227966, -0.1554025560617447, -0.33187076449394226, -0.13056477904319763, -0.5500226616859436, 0.15096530318260193, -0.07031203806400299, 0.05236532539129257, 0.29133954644203186, 0.01104736328125, 0.011541977524757385, -0.3483092784881592, 0.18889492750167847, -0.20041236281394958, -0.14409400522708893, 0.13916034996509552, 0.2874971926212311, 0.02521854266524315, -0.03321363031864166, 0.3636118173599243, -0.04448094591498375, -0.005408536642789841, 0.07150602340698242, -0.14206865429878235, -0.16821302473545074, 0.14033740758895874, -0.048006076365709305, 0.21617907285690308, 0.07935156673192978, -0.26290491223335266, -0.16273868083953857, 0.260775625705719, -0.013601049780845642, -0.16746851801872253, -0.394704133272171, -0.012094183824956417, -0.015020608901977539, 0.1660710871219635, -0.22011224925518036, 0.32102736830711365, -0.11020727455615997, 0.48774397373199463, -0.3551022410392761, -0.3872303366661072, 0.6374475955963135, -0.1273200660943985, -0.2710709273815155, -0.055063072592020035, 0.37539082765579224, 0.17618224024772644, -0.00045189447700977325, -0.46473491191864014, -0.03220825642347336, 0.09571010619401932, 0.040430594235658646, -0.21885588765144348, 0.21991576254367828, -0.4736318290233612, -0.035891883075237274, -0.02885313332080841, 0.14495128393173218, 0.16178470849990845, 0.04230809211730957, -0.3656916618347168, -0.18677940964698792 ]
https://github.com/huggingface/datasets/pull/171
fix squad metric format
Ok with this update I changed the format to fit the squad dataset format. Now you can do: ```python squad_dset = nlp.load_dataset("squad") squad_metric = nlp.load_metric("/Users/quentinlhoest/Desktop/hf/nlp-bis/metrics/squad") predictions = [ {"id": v["id"], "prediction_text": v["answers"]["text"][0]} # take first possible answer for v in squad_dset["validation"] ] squad_metric.compute(predictions, squad_dset["validation"]) ```
The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ```
45
text: fix squad metric format The format of the squad metric was wrong. This should fix #143 I tested with ```python3 predictions = [ {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'} ] references = [ {'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'} ] ``` Ok with this update I changed the format to fit the squad dataset format. Now you can do: ```python squad_dset = nlp.load_dataset("squad") squad_metric = nlp.load_metric("/Users/quentinlhoest/Desktop/hf/nlp-bis/metrics/squad") predictions = [ {"id": v["id"], "prediction_text": v["answers"]["text"][0]} # take first possible answer for v in squad_dset["validation"] ] squad_metric.compute(predictions, squad_dset["validation"]) ```
[ 0.19320955872535706, 0.024248898029327393, -0.08971770852804184, 0.06697304546833038, 0.3166375756263733, -0.20114201307296753, 0.14837291836738586, 0.32579025626182556, -0.1532917618751526, -0.004630871117115021, 0.14363950490951538, 0.3793577253818512, 0.11073814332485199, -0.17102721333503723, 0.04117238521575928, 0.02719901315867901, -0.13578364253044128, 0.0244990736246109, 0.2720431089401245, 0.0015834309160709381, -0.13230232894420624, 0.12760385870933533, -0.1790287047624588, -0.00434151291847229, -0.4058654010295868, 0.18058505654335022, 0.034009985625743866, 0.1554785966873169, -0.45892947912216187, -0.523645281791687, 0.11964654922485352, -0.0064575448632240295, -0.061826691031455994, 0.11104264110326767, -0.00010528185521252453, -0.06481791287660599, 0.2033027708530426, -0.1237649992108345, 0.02642836794257164, -0.2847481966018677, -0.1425064206123352, -0.3027433454990387, 0.15523730218410492, -0.3519775867462158, -0.3575044870376587, 0.10133938491344452, -0.08224841207265854, -0.004471346735954285, 0.488137423992157, 0.4943752586841583, 0.27002355456352234, 0.36686626076698303, -0.019730325788259506, -0.22002434730529785, 0.008100077509880066, -0.29113560914993286, -0.026389215141534805, 0.19017398357391357, 0.012822195887565613, -0.19353988766670227, -0.008152827620506287, 0.3451230227947235, 0.12392669916152954, 0.04593771696090698, 0.29795846343040466, 0.09715121239423752, 0.24773380160331726, -0.1258397400379181, -0.1822119653224945, -0.12594836950302124, 0.13278308510780334, -0.23368015885353088, -0.34272342920303345, -0.049123674631118774, 0.06002654880285263, -0.35744601488113403, 0.005005352199077606, -0.04521892964839935, -0.09275108575820923, 0.004661593586206436, -0.28021934628486633, 0.1626623421907425, -0.27146250009536743, 0.15329478681087494, -0.1563868522644043, 0.5515565872192383, 0.12411492317914963, -0.15406227111816406, 0.14607933163642883, -0.053057409822940826, 0.1089535504579544, 0.04792343080043793, 0.07797041535377502, 0.12535114586353302, -0.46620941162109375, -0.36449795961380005, 0.17998841404914856, -0.056614555418491364, 0.08208911865949631, -0.11486342549324036, 0.3725177049636841, 0.1446947455406189, 0.370819091796875, 0.053940676152706146, 0.20725497603416443, 0.3319259583950043, 0.2490837275981903, 0.1609106808900833, 0.05352870374917984, 0.07778996229171753, -0.03046119585633278, -0.00006917491555213928, 0.19582273066043854, -0.3698856234550476, 0.16856424510478973, 0.2920127213001251, 0.12039147317409515, -0.12772342562675476, -0.21105550229549408, 0.1954091638326645, -0.08247005939483643, 0.07277299463748932, -0.026096161454916, 0.3013857901096344, -0.11102180927991867, 0.1802177131175995, 0.12162108719348907, 0.23556263744831085, -0.11726252734661102, -0.10809733718633652, -0.2000698745250702, 0.09204399585723877, -0.1749054193496704, -0.08637981116771698, 0.17600564658641815, 0.3202582895755768, 0.39715954661369324, -0.03885307163000107, 0.2290194034576416, -0.30736979842185974, -0.003928903490304947, -0.10460671782493591, 0.23537978529930115, -0.03404182568192482, 0.12305974960327148, -0.13998909294605255, 0.1846069097518921, -0.43985432386398315, 0.08984916657209396, 0.12574779987335205, -0.006867431104183197, -0.22726763784885406, -0.10422517359256744, 0.33858856558799744, -0.3596131205558777, -0.04078393429517746, 0.2512859106063843, 0.28887033462524414, 0.029134459793567657, 0.0648682564496994, -0.044280923902988434, -0.0120994932949543, -0.25446975231170654, -0.11913540959358215, 0.21727526187896729, 0.07912285625934601, -0.18699538707733154, 0.07014326751232147, 0.19715076684951782, 0.11216285824775696, -0.35864055156707764, 0.186234712600708, 0.008990977890789509, 0.13532698154449463, 0.06237435340881348, 0.11295910179615021, 0.6748900413513184, -0.8120625019073486, -0.3468099534511566, -0.01267075352370739, -0.2583184838294983, -0.222456157207489, -0.07191785424947739, 0.11467985063791275, 0.35818421840667725, -0.008325151167809963, 0.25300121307373047, 0.3678513765335083, 0.07168550789356232, 0.06107219308614731, -0.5377076864242554, 0.05043009668588638, 0.03867176175117493, 0.18402418494224548, 0.046129971742630005, -0.03133124113082886, -0.11298873275518417, 0.3476658761501312, 0.10958999395370483, -0.014064554125070572, -0.09095112979412079, 0.2732324004173279, 0.3368488550186157, -0.38491761684417725, 0.012043165042996407, -0.2419428825378418, -0.3306196630001068, 0.02316615730524063, -0.42133498191833496, 0.09141352027654648, 0.18059000372886658, -0.1511944830417633, -0.5377506017684937, -0.16846232116222382, -0.08525250852108002, -0.009999148547649384, 0.3176635205745697, -0.2677549123764038, 0.2999037206172943, -0.09520159661769867, -0.19941642880439758, -0.1438269466161728, -0.21301130950450897, 0.028657415881752968, -0.0884813517332077, 0.24082906544208527, -0.3695162832736969, -0.22565925121307373, 0.22735393047332764, 0.4401578903198242, 0.24687978625297546, 0.1636345386505127, -0.020985163748264313, 0.32849806547164917, 0.04661906883120537, -0.04520399868488312, -0.07215919345617294, 0.09903987497091293, 0.2218114733695984, -0.16323651373386383, -0.09856044501066208, 0.09331284463405609, -0.05740269273519516, -0.1440747082233429, -0.3103504478931427, 0.5176286697387695, -0.05936158075928688, 0.024134039878845215, -0.05210917815566063, 0.03805449604988098, 0.035650722682476044, -0.2334468513727188, -0.20582638680934906, -0.3497482240200043, -0.013521876186132431, 0.12381580471992493, -0.1796935796737671, 0.051735930144786835, -0.051265232264995575, 0.0498054213821888, 0.5168330669403076, 0.26537150144577026, 0.04247955605387688, 0.043080300092697144, 0.20710158348083496, -0.16141459345817566, -0.3115788996219635, -0.03557240217924118, 0.3766230344772339, 0.24605770409107208, -0.11145839095115662, 0.116402268409729, -0.04117472097277641, -0.16483496129512787, 0.19692206382751465, -0.003848142921924591, 0.1248067319393158, 0.3676070272922516, 0.33647584915161133, -0.03486425429582596, -0.10603827983140945, 0.22073999047279358, 0.049986302852630615, 0.12166012078523636, -0.25497516989707947, -0.006467752158641815, -0.054142795503139496, -0.11195944994688034, -0.22780166566371918, -0.3601885139942169, -0.2628064751625061, -0.41530510783195496, 0.3456490635871887, 0.06683481484651566, 0.02710789442062378, 0.11471860110759735, 0.27178579568862915, 0.10874485969543457, 0.10598842799663544, 0.2679310739040375, 0.07331028580665588, -0.37565797567367554, 0.0501602441072464, 0.1442534476518631, -0.15018479526042938, 0.13682958483695984, 0.16965125501155853, -0.1259283870458603, -0.0966869592666626, -0.09612475335597992, -0.39834293723106384, 0.014471020549535751, -0.020625896751880646, 0.39584898948669434, 0.12540356814861298, 0.12885940074920654, -0.22972510755062103, 0.016537539660930634, 0.4250349700450897, -0.07144223153591156, -0.1283501386642456, -0.0548538863658905, 0.12377028167247772, -0.03230231627821922, -0.22530825436115265, -0.4210875332355499, -0.21610577404499054, -0.30265912413597107, -0.13661473989486694, 0.1841728240251541, 0.16374137997627258, 0.1357583850622177, 0.15017592906951904, 0.08584904670715332, 0.0003755544312298298, -0.17531274259090424, -0.3122382164001465, -0.08984026312828064, 0.2795106768608093, -0.262687087059021, -0.4769050180912018, -0.12448206543922424, -0.03431490808725357, 0.18628248572349548, -0.4390290379524231, -0.023694131523370743, -0.847279965877533, 0.16661061346530914, -0.12851735949516296, -0.15277110040187836, 0.08144623786211014, 0.2166966199874878, -0.15472757816314697, -0.23406760394573212, -0.2568398416042328, -0.2676161825656891, 0.23494887351989746, 0.25964686274528503, 0.2710813581943512, -0.2451227605342865, 0.1595599204301834, 0.31774502992630005, 0.6298571825027466, 0.31484904885292053, -0.20953382551670074, 0.029842935502529144, -0.023970304057002068, 0.07721520960330963, 0.10880877822637558, -0.33063408732414246, 0.07765324413776398, 0.04929354786872864, 0.11067017912864685, 0.22744542360305786, -0.10470566898584366, -0.06328846514225006, -0.06947744637727737, 0.290242075920105, -0.2391711175441742, -0.17773056030273438, 0.011146328411996365, -0.05750139802694321, 0.02212870866060257, 0.28104352951049805, 0.1721082329750061, -0.2171972692012787, -0.1020115315914154, -0.15571221709251404, -0.081833615899086, -0.0479714497923851, 0.030644148588180542, -0.2749292552471161, -0.21834346652030945, -0.2500627934932709, 0.17188309133052826, 0.12530621886253357, 0.2542826235294342, 0.1613101214170456, 0.023227185010910034, -0.015414342284202576, -0.12610772252082825, 0.45718592405319214, -0.22217780351638794, 0.043123941868543625, 0.15804706513881683, 0.10111355781555176, -0.45439913868904114, -0.013308502733707428, -0.24259203672409058, 0.18263758718967438, 0.33966219425201416, 0.21355752646923065, -0.3603590726852417, -0.19237898290157318, 0.1288433074951172, -0.1451255977153778, -0.14287178218364716, -0.08702760934829712, -0.4339867830276489, -0.24807637929916382, -0.14734803140163422, 0.2900469899177551, 0.17290830612182617, 0.19762608408927917, 0.011944052763283253, -0.004462752491235733, 0.27240175008773804, -0.034016795456409454, 0.04184481501579285, 0.29508906602859497, 0.3335723876953125, 0.05111820250749588, -0.14432236552238464, -0.001374766230583191, -0.02683449536561966, -0.31444722414016724, 0.18679587543010712, 0.11068452894687653, 0.05644067004323006, 0.019714098423719406, -0.15817143023014069, 0.4215797483921051, 0.3207571506500244, 0.156890407204628, 0.0579460971057415, -0.30652135610580444, 0.08299737423658371, 0.053310323506593704, -0.2013368308544159, 0.35693463683128357, -0.08555936813354492, 0.11313320696353912, 0.008570600301027298, 0.42834344506263733, -0.12354297935962677, -0.032561980187892914, -0.17006471753120422, 0.1897200644016266, -0.21023492515087128, 0.23445147275924683, 0.2837330400943756, 0.8902172446250916, 0.13175040483474731, -0.027848701924085617, 0.15304654836654663, -0.10284634679555893, 0.48359784483909607, -0.061179086565971375, 0.2664839029312134, -0.598598062992096, -0.08501483500003815, 0.14931905269622803, -0.10258354246616364, -0.08136656135320663, 0.19480781257152557, -0.4078783690929413, 0.21986457705497742, -0.07976952195167542, 0.2182580977678299, 0.052064210176467896, 0.3801698386669159, -0.007134715095162392, -0.07513907551765442, -0.610080361366272, 0.27067169547080994, -0.161113902926445, -0.1518736332654953, -0.211402028799057, -0.11434707045555115, -0.06559936702251434, -0.31944167613983154, -0.10200874507427216, 0.06887675821781158, -0.15139590203762054, 0.12787151336669922, 0.27481159567832947, -0.053271517157554626, 0.13222210109233856, 0.5640124082565308, 0.32698431611061096, 0.1830185502767563, -0.17170961201190948, 0.13059532642364502, -0.011423289775848389, 0.12266793847084045, 0.15438485145568848, 0.17844295501708984, 0.050389647483825684, -0.356918603181839, -0.3355168104171753, 0.1394682228565216, 0.14200089871883392, -0.17010295391082764, -0.04415889084339142, 0.19661936163902283, -0.08834336698055267, -0.24967433512210846, -0.2518151104450226, -0.03875408321619034, -0.13556766510009766, -0.3023344576358795, 0.23899486660957336, -0.006269790232181549, -0.27865758538246155, 0.30407845973968506, 0.30011752247810364, -0.11698135733604431, 0.20826049149036407, 0.46973830461502075, -0.04863622039556503, -0.0032984167337417603, 0.3277662992477417, 0.01650121435523033, -0.040364738553762436, -0.3784767687320709, -0.16570615768432617, -0.3153637647628784, -0.005842395126819611, 0.18368716537952423, 0.11013055592775345, -0.3152616620063782, 0.07218211889266968, 0.3478178381919861, 0.21544434130191803, 0.17434611916542053, 0.06447432935237885, -0.35567376017570496, -0.06788182258605957, 0.14450442790985107, 0.12079359591007233, -0.07839985191822052, -0.25136080384254456, 0.22190111875534058, -0.07129407674074173, 0.29729199409484863, -0.4562341272830963, 0.09968280047178268, -0.49503445625305176, 0.3744770884513855, -0.28570419549942017, -0.487583726644516, -0.0646628737449646, -0.06011214479804039, 0.14541922509670258, 0.18587413430213928, -0.2575242817401886, -0.378788024187088, -0.09053243696689606, 0.08399436622858047, 0.16475465893745422, 0.003543480299413204, -0.060998596251010895, 0.14567112922668457, -0.1531359702348709, -0.02498682588338852, -0.14259862899780273, 0.16122448444366455, 0.15326818823814392, 0.4856202304363251, -0.2571089565753937, 0.1923920214176178, 0.4022679924964905, -0.3136618137359619, 0.1799333691596985, 0.07311129570007324, -0.08869383484125137, 0.17128659784793854, -0.03816312551498413, -0.03249620646238327, 0.09780873358249664, 0.051377035677433014, 0.12036965042352676, 0.278900682926178, 0.15731829404830933, -0.23750947415828705, -0.062060512602329254, 0.1993628293275833, 0.3240681290626526, 0.2256809026002884, -0.2501550614833832, 0.10654401779174805, -0.39499223232269287, 0.32503432035446167, -0.3041675090789795, 0.0055001843720674515, 0.2560974061489105, 0.019580155611038208, 0.10319407284259796, 0.2380671352148056, 0.33712273836135864, -0.006876438856124878, 0.2508503198623657, 0.18549856543540955, 0.3901458978652954, -0.19127455353736877, 0.13117291033267975, -0.31652605533599854, -0.07530312985181808, -0.08529095351696014, 0.07821280509233475, -0.1648498922586441, 0.18861249089241028, 0.05212174728512764, -0.10980340093374252, 0.3349077105522156, -0.24685701727867126, -0.1851738542318344, 0.09287241101264954, 0.33353090286254883, 0.015892352908849716, 0.1431177258491516, 0.05882790684700012, 0.10026317834854126, 0.03145134449005127, 0.4523557722568512, -0.20432701706886292, -0.06966327875852585, -0.2660273313522339, -0.04582790657877922, -0.034194692969322205, 0.03644563630223274, -0.2823132276535034, -0.11658118665218353, -0.17333240807056427, -0.13713377714157104, 0.10612702369689941, -0.04162032902240753, 0.17588414251804352, 0.09682337194681168, 0.05267573893070221, -0.1628880500793457, 0.2276468276977539, 0.27516621351242065, 0.24474304914474487, -0.3908773362636566, 0.33349835872650146, 0.05542523041367531, 0.11701412498950958, 0.11966076493263245, 0.36754071712493896, 0.13447310030460358, 0.30408424139022827, -0.2875424027442932, 0.05454246699810028, -0.23204046487808228, -0.2899673283100128, 0.07283653318881989, 0.1373341977596283, 0.2678372263908386, -0.34829238057136536, 0.3555818200111389, 0.2662366032600403, -0.2813412845134735, -0.01913900300860405, 0.13772372901439667, 0.0654488056898117, 0.0004687621258199215, 0.25556713342666626, 0.05762387439608574, -0.07440830767154694, -0.13222038745880127, -0.20012623071670532, -0.42157334089279175, -0.15921549499034882, -0.09681496024131775, 0.2988537549972534, 0.18568643927574158, -0.34990477561950684, 0.15173716843128204, 0.07510731369256973, 0.37896090745925903, 0.11770518124103546, -0.06684809923171997, -0.2846444249153137, -0.0048532262444496155, -0.5576236248016357, 0.13635428249835968, 0.29952573776245117, 0.08023195713758469, 0.08665278553962708, 0.3688647449016571, -0.24199774861335754, 0.25422579050064087, -0.14131630957126617, 0.042791351675987244, -0.13701942563056946, -0.04407556354999542, -0.5791839957237244, 0.2136981040239334, -0.09875746071338654, 0.020648185163736343, 0.23260214924812317, -0.10319023579359055, -0.05963071808218956, -0.21996170282363892, 0.1897522509098053, -0.19039985537528992, -0.08294785767793655, 0.10510629415512085, 0.37939345836639404, -0.013693571090698242, 0.02990126609802246, 0.4074113070964813, 0.06598443537950516, -0.03800952434539795, -0.08607670664787292, -0.1337263137102127, -0.24714019894599915, 0.058986738324165344, 0.14371761679649353, 0.4533728063106537, 0.11588310450315475, 0.04919375851750374, -0.0800638496875763, 0.319815069437027, 0.0163324773311615, -0.25632524490356445, -0.2575007379055023, 0.054189614951610565, 0.05505674332380295, 0.22424304485321045, -0.23627622425556183, 0.2400037944316864, -0.11359167098999023, 0.5390579104423523, -0.4481201171875, -0.4329491853713989, 0.46758347749710083, -0.25153109431266785, -0.3402041792869568, 0.017391033470630646, 0.3898257613182068, 0.1979065090417862, -0.07213068753480911, -0.642957866191864, -0.19862350821495056, 0.22524739801883698, -0.10501120239496231, -0.16780592501163483, 0.21495354175567627, -0.16022489964962006, -0.09360642731189728, 0.020583588629961014, -0.03349772095680237, 0.13978254795074463, 0.042243100702762604, -0.1745210438966751, -0.242943674325943 ]
https://github.com/huggingface/datasets/pull/169
Adding Qanta (Quizbowl) Dataset
Hi @EntilZha - sorry for waiting so long until taking action here. We created a new command and a new recipe of how to add dummy_data. Can you maybe rebase to `master` as explained in 7. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-contribute-to-nlp and check that your dummy data is correct following the instructions here: https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset ? If the tests described in 5. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset pass we can merge the PR :-)
This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ```
67
text: Adding Qanta (Quizbowl) Dataset This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ``` Hi @EntilZha - sorry for waiting so long until taking action here. We created a new command and a new recipe of how to add dummy_data. Can you maybe rebase to `master` as explained in 7. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-contribute-to-nlp and check that your dummy data is correct following the instructions here: https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset ? If the tests described in 5. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset pass we can merge the PR :-)
[ 0.12778300046920776, 0.02119237184524536, -0.06202003359794617, 0.0796479731798172, -0.03495857119560242, 0.014518186450004578, 0.07452675700187683, 0.3002908229827881, 0.06844641268253326, -0.10055920481681824, 0.03728950768709183, 0.14052511751651764, -0.19261348247528076, 0.14866912364959717, 0.25102734565734863, -0.21991756558418274, -0.004610665142536163, 0.13065767288208008, -0.07168750464916229, -0.06772398948669434, -0.32503780722618103, 0.25517866015434265, -0.2678082287311554, -0.09806250035762787, -0.01236520055681467, -0.035501353442668915, -0.335286408662796, 0.18532240390777588, -0.05022216588258743, -0.3844479024410248, 0.11569716036319733, 0.1950870007276535, -0.11735184490680695, 0.12419328093528748, -0.00010539078357396647, -0.30445340275764465, 0.3780362606048584, -0.12774120271205902, -0.4728866219520569, -0.057144895195961, -0.009286385029554367, -0.04531949758529663, 0.1019296944141388, 0.0031313225626945496, -0.17704030871391296, -0.31947845220565796, 0.2740754783153534, -0.04364950209856033, 0.5196974277496338, 0.4113580286502838, 0.3018108606338501, 0.23480302095413208, 0.1256147027015686, -0.059307269752025604, 0.16428250074386597, -0.1295159012079239, -0.11158688366413116, 0.2257208377122879, 0.00037419795989990234, -0.18852540850639343, -0.04935383051633835, 0.12406416237354279, 0.12739501893520355, -0.1884998232126236, -0.18264806270599365, 0.06521888822317123, 0.08382225036621094, -0.13145458698272705, 0.10629704594612122, 0.1462642401456833, 0.05498027428984642, -0.1864030659198761, -0.28757309913635254, -0.38004860281944275, 0.33972665667533875, -0.14903122186660767, -0.11406999081373215, 0.08266767859458923, -0.2833552062511444, 0.0028883516788482666, 0.036827754229307175, -0.11660513281822205, -0.20265598595142365, 0.2357974499464035, 0.088409423828125, 0.2609381079673767, -0.10210946202278137, 0.04793889448046684, -0.011823464184999466, 0.0052832793444395065, -0.16029037535190582, -0.22590994834899902, -0.10610145330429077, 0.0698978379368782, -0.2633539140224457, -0.055623479187488556, 0.1782858669757843, 0.1818351149559021, 0.25481459498405457, 0.15329062938690186, 0.26452282071113586, 0.09893575310707092, -0.16532687842845917, -0.11510702222585678, 0.16790571808815002, 0.48759695887565613, 0.07005472481250763, -0.02244490012526512, -0.24439425766468048, 0.2179850935935974, 0.135793998837471, 0.03468562662601471, 0.05521083623170853, 0.02543017640709877, -0.22381405532360077, -0.0061514414846897125, 0.3253369927406311, -0.010517120361328125, -0.3937414884567261, 0.2681241035461426, -0.27563413977622986, -0.0067289755679667, -0.10023525357246399, 0.33105891942977905, -0.17779673635959625, 0.3193691372871399, -0.20429867506027222, 0.429104745388031, -0.04081180691719055, -0.33359676599502563, -0.17509731650352478, -0.14144249260425568, -0.315966933965683, 0.10617992281913757, 0.18431977927684784, 0.18062011897563934, 0.3662027418613434, 0.11934668570756912, 0.0913781151175499, 0.043613217771053314, 0.22090864181518555, -0.19629451632499695, 0.26222482323646545, 0.0005357004702091217, 0.07170148193836212, 0.06263503432273865, 0.11479932069778442, -0.11529648303985596, 0.01441928744316101, 0.36426588892936707, 0.16710826754570007, 0.06542360782623291, -0.3228231370449066, 0.29204460978507996, -0.30120521783828735, -0.09102170169353485, 0.020867526531219482, 0.3999839425086975, -0.0418538823723793, -0.12420853972434998, 0.0899619609117508, -0.14349821209907532, -0.08458059281110764, -0.13555119931697845, 0.10064423829317093, 0.4728447198867798, -0.2504102289676666, -0.004872731864452362, -0.33194810152053833, 0.18181873857975006, 0.1231493204832077, 0.01985635980963707, -0.12003825604915619, 0.27399030327796936, -0.16191726922988892, 0.2377130538225174, 0.14545075595378876, -0.20000137388706207, -0.1865120232105255, 0.001661798101849854, -0.11767969280481339, 0.39122751355171204, -0.046080537140369415, 0.12578922510147095, -0.05845913290977478, 0.14482784271240234, -0.08857306838035583, 0.27851682901382446, 0.042985208332538605, -0.0783102810382843, -0.42037832736968994, -0.16648590564727783, 0.15205395221710205, 0.2450116127729416, -0.07962319254875183, -0.06654226034879684, -0.17351126670837402, -0.1686202734708786, 0.2968442142009735, -0.013735007494688034, 0.10877683758735657, -0.006685011088848114, 0.2850940525531769, -0.09393037855625153, 0.10885092616081238, 0.05781880021095276, -0.3966422975063324, -0.15353462100028992, -0.029412131756544113, 0.4633074700832367, 0.11255518347024918, -0.03231692314147949, -0.529794454574585, 0.0818045362830162, -0.36656057834625244, -0.5973190665245056, 0.2832116186618805, 0.3224898874759674, 0.04874258115887642, 0.05742741748690605, -0.18478842079639435, 0.31027212738990784, 0.2540024518966675, 0.1481996774673462, -0.42589327692985535, -0.13479997217655182, -0.1586880087852478, -0.05445047467947006, 0.1999138444662094, 0.48546940088272095, 0.08712612092494965, 0.052439529448747635, 0.1774383783340454, 0.2984386384487152, -0.06902774423360825, -0.030957430601119995, 0.27849143743515015, -0.3901883363723755, 0.1468305140733719, -0.21733561158180237, -0.0316229909658432, 0.3706963360309601, 0.16399888694286346, -0.09143839031457901, -0.1369929313659668, 0.5541553497314453, 0.008632898330688477, 0.10313993692398071, -0.12874245643615723, 0.07169487327337265, -0.06273932754993439, -0.1184900552034378, -0.15584823489189148, -0.12506161630153656, 0.3004603385925293, 0.14783015847206116, 0.399356484413147, -0.2725568115711212, -0.29958972334861755, 0.28279390931129456, 0.07905720919370651, -0.11944088339805603, 0.09059358388185501, 0.174943745136261, -0.179070383310318, -0.250824898481369, 0.21853776276111603, 0.18270836770534515, 0.5062763094902039, 0.38700997829437256, 0.03194250166416168, 0.07603002339601517, -0.22821183502674103, -0.44100242853164673, 0.1680198758840561, 0.046573832631111145, -0.32996630668640137, 0.3580136299133301, 0.36602291464805603, -0.0034408746287226677, -0.3749489188194275, 0.11269034445285797, -0.18429386615753174, 0.13741417229175568, -0.16432420909404755, -0.009542838670313358, -0.09354347735643387, -0.4002383351325989, -0.12352395057678223, -0.40212520956993103, -0.14879247546195984, -0.5555015802383423, 0.4268525242805481, -0.05969412252306938, -0.17044036090373993, 0.19917769730091095, 0.12251578271389008, 0.3494483232498169, -0.13232551515102386, 0.0670764371752739, -0.21209834516048431, -0.26792800426483154, -0.35104459524154663, 0.3004351556301117, 0.03661632910370827, 0.029415534809231758, 0.44941726326942444, -0.2674075961112976, 0.0489930734038353, 0.06386123597621918, -0.3829386532306671, 0.10853160172700882, -0.23211805522441864, 0.7550985813140869, 0.09891907125711441, 0.052876248955726624, -0.35710006952285767, -0.3200911283493042, 0.06426011025905609, -0.22766748070716858, -0.14712411165237427, 0.010083828121423721, -0.0074755605310201645, 0.149192675948143, -0.3762088418006897, -0.48374083638191223, 0.05180160701274872, -0.22129496932029724, 0.41235703229904175, 0.2661176323890686, 0.14387468993663788, 0.5034030675888062, -0.05480320379137993, 0.19499242305755615, -0.0738072469830513, -0.05968630313873291, -0.45770493149757385, -0.09244789183139801, 0.2525530457496643, -0.3539019227027893, -0.3833029270172119, -0.21861302852630615, -0.4243311285972595, 0.4668024778366089, -0.27995508909225464, -0.4071265459060669, -0.44523611664772034, 0.1504964977502823, 0.13886667788028717, 0.019123967736959457, 0.03173380345106125, -0.04463954269886017, -0.17453168332576752, -0.15705549716949463, -0.07823661714792252, 0.02416066825389862, 0.31686535477638245, 0.15995725989341736, 0.26416128873825073, -0.1445983350276947, 0.12924432754516602, -0.05739901214838028, 0.517402172088623, 0.21915552020072937, 0.5412889719009399, 0.41388967633247375, -0.017843415960669518, 0.3455737233161926, -0.1324639916419983, -0.12584301829338074, 0.18722456693649292, -0.04626549780368805, 0.021783456206321716, 0.3719719648361206, 0.07979677617549896, 0.08296636492013931, -0.11847943067550659, 0.1686861664056778, -0.502308189868927, -0.2836911976337433, 0.16067203879356384, -0.11360795795917511, -0.02517077326774597, 0.12319652736186981, -0.05683531239628792, -0.1853467971086502, -0.32069456577301025, -0.23275130987167358, -0.06823478639125824, 0.07201846688985825, -0.13225871324539185, -0.2816813290119171, -0.025423863902688026, -0.6179897785186768, 0.2524833679199219, -0.12930691242218018, 0.37259170413017273, -0.03547297790646553, -0.2195046842098236, 0.22309350967407227, 0.01604907028377056, 0.583794355392456, 0.12345696240663528, -0.375906765460968, -0.03355662524700165, 0.31450939178466797, -0.4268729090690613, 0.05571774020791054, -0.2689153254032135, -0.19810181856155396, -0.03424501791596413, 0.041976939886808395, -0.4284972548484802, 0.15993060171604156, 0.3028223514556885, -0.05652032047510147, -0.11848285794258118, -0.2101164609193802, -0.2630455493927002, -0.3505203127861023, -0.16751828789710999, 0.09757940471172333, -0.06959227472543716, 0.31678682565689087, -0.17633646726608276, 0.1992327719926834, 0.12195117026567459, -0.05169703811407089, 0.33771276473999023, 0.253185510635376, 0.1691562831401825, 0.09702348709106445, -0.010270800441503525, 0.15244808793067932, -0.33218321204185486, -0.2311912477016449, 0.33068689703941345, 0.10222665965557098, 0.2378816455602646, 0.06241396442055702, -0.08894862979650497, 0.4341917932033539, 0.4573897421360016, 0.10606622695922852, 0.13214662671089172, -0.48175981640815735, 0.08224408328533173, -0.148593008518219, 0.2004290670156479, 0.2414361834526062, -0.11306235194206238, 0.15301792323589325, -0.2752591669559479, 0.2043069303035736, -0.19958098232746124, -0.11578892916440964, -0.019870266318321228, 0.18553975224494934, -0.07852873206138611, 0.5115596055984497, 0.16241425275802612, 1.0482378005981445, 0.05907445400953293, 0.4173726439476013, 0.6637691259384155, -0.24135376513004303, 0.4029170572757721, 0.027803033590316772, 0.10288359969854355, -0.3573271334171295, 0.2945086658000946, 0.15540122985839844, 0.017749037593603134, 0.03831582888960838, -0.0962158739566803, -0.4036933183670044, 0.3829420506954193, 0.054644301533699036, 0.04764426499605179, 0.22963058948516846, 0.16440677642822266, -0.2395322620868683, -0.03629988431930542, -0.3559456467628479, 0.23944270610809326, -0.007219009101390839, 0.09920413792133331, -0.0650971531867981, -0.3411221504211426, -0.15064845979213715, -0.18801024556159973, -0.1253897249698639, 0.16307169198989868, -0.30597928166389465, -0.4247039556503296, 0.31147080659866333, -0.2885550260543823, -0.2516433298587799, 0.3082188069820404, 0.26207220554351807, -0.05703182891011238, -0.17334581911563873, 0.02736368030309677, -0.04928355664014816, -0.060349807143211365, 0.12182467430830002, -0.0008211825042963028, 0.08750395476818085, 0.014407545328140259, -0.18814803659915924, 0.19610515236854553, 0.0709400475025177, 0.06469816714525223, -0.3743245005607605, 0.1331305205821991, 0.22838155925273895, -0.2032603621482849, -0.17788298428058624, 0.032134048640728, -0.010563468560576439, -0.31015610694885254, 0.2096230834722519, -0.0829547792673111, -0.04584359750151634, -0.06465501338243484, 0.12492696940898895, -0.1323874443769455, -0.13507887721061707, 0.1384526789188385, 0.02903589978814125, 0.30882930755615234, 0.5840280055999756, -0.015351805835962296, -0.01718413084745407, -0.2328702211380005, -0.0978863388299942, 0.06479383260011673, -0.4264354109764099, -0.011466282419860363, 0.11689435690641403, -0.12971539795398712, -0.046976033598184586, -0.01857372745871544, 0.03867069259285927, 0.02459593117237091, -0.0885811522603035, -0.3681179881095886, -0.11869101226329803, 0.19940856099128723, -0.0537387989461422, 0.12033767998218536, 0.2421935498714447, 0.13187070190906525, 0.24805840849876404, 0.36032846570014954, -0.4230881333351135, -0.23550964891910553, -0.26907235383987427, 0.16005606949329376, -0.16501516103744507, -0.3936268985271454, 0.23401746153831482, 0.130375936627388, 0.19086205959320068, 0.013998953625559807, -0.29885947704315186, -0.31097710132598877, -0.15803641080856323, 0.0882803350687027, 0.1683429777622223, -0.2732025384902954, -0.17132410407066345, 0.11775611340999603, 0.15491865575313568, 0.025551270693540573, -0.08109487593173981, -0.20514976978302002, -0.07784692943096161, 0.23405338823795319, 0.039521727710962296, 0.16768597066402435, -0.057708293199539185, 0.09238211810588837, 0.05095460265874863, 0.06400248408317566, 0.05442728102207184, 0.038833070546388626, -0.15097607672214508, 0.0004444122314453125, 0.12548339366912842, 0.23888778686523438, 0.19695442914962769, 0.029656415805220604, 0.13148590922355652, -0.1554773449897766, -0.09989713132381439, -0.15278638899326324, 0.18360675871372223, 0.23310299217700958, -0.130463644862175, -0.08084553480148315, 0.03436367213726044, 0.24747131764888763, -0.31854507327079773, 0.1508096605539322, 0.01585281454026699, -0.0035780491307377815, 0.12534232437610626, 0.2504577338695526, 0.1312035173177719, -0.36015525460243225, 0.267525315284729, 0.07405640184879303, -0.12285365909337997, -0.02138516679406166, -0.046073198318481445, 0.4148143529891968, -0.2653046250343323, 0.012310072779655457, 0.24758277833461761, -0.12247973680496216, 0.0022585690021514893, 0.17796814441680908, -0.054084233939647675, 0.37378570437431335, 0.016445623710751534, 0.07549804449081421, 0.024326711893081665, 0.0994182825088501, 0.17213313281536102, 0.5233675837516785, 0.07891646772623062, 0.23320543766021729, 0.18274547159671783, 0.7353615164756775, -0.041097480803728104, 0.013249438256025314, -0.14881765842437744, -0.0034447498619556427, -0.11321762949228287, -0.0856543481349945, -0.2652944326400757, -0.06499364227056503, -0.7492414712905884, -0.053349316120147705, -0.22902953624725342, -0.21792583167552948, -0.05217304825782776, -0.12484663724899292, -0.16766072809696198, -0.2863544523715973, -0.3765084445476532, 0.23799151182174683, 0.042916152626276016, -0.13112297654151917, 0.4260103106498718, 0.21908804774284363, 0.26740020513534546, 0.24644513428211212, 0.48021039366722107, 0.19659650325775146, 0.18325306475162506, -0.40256649255752563, -0.07323294132947922, 0.0547594279050827, -0.027360400184988976, -0.1108514815568924, 0.3655368685722351, 0.3286513090133667, 0.12080128490924835, 0.3571728467941284, 0.21776945888996124, -0.26398223638534546, 0.11103910207748413, 0.3722403347492218, -0.1470208615064621, -0.3045884072780609, 0.09586843848228455, -0.22458010911941528, -0.11314208805561066, -0.10458506643772125, -0.14274382591247559, -0.4323470890522003, 0.1605389416217804, -0.01817333698272705, -0.2017020732164383, 0.05110931396484375, -0.3631480038166046, 0.1354299783706665, -0.08599112927913666, 0.464452862739563, 0.428007572889328, -0.02316460758447647, -0.49183523654937744, -0.3490399718284607, -0.7126439809799194, 0.11109655350446701, 0.23973435163497925, 0.05661569535732269, 0.03658314049243927, -0.09115783870220184, -0.013561137020587921, 0.4086121916770935, -0.43124276399612427, 0.004520245362073183, -0.24270786345005035, 0.1575050950050354, -0.3518048822879791, 0.12724243104457855, 0.1882541924715042, 0.0688810646533966, 0.05900982767343521, -0.1377948820590973, 0.11225542426109314, -0.04503330588340759, 0.09099958091974258, 0.182612806558609, -0.09026417881250381, 0.05931789055466652, 0.18634623289108276, -0.03184328228235245, 0.2968252897262573, 0.18675976991653442, -0.16880658268928528, -0.0034075360745191574, -0.1965203881263733, -0.19687357544898987, -0.20384615659713745, -0.039688028395175934, -0.08978131413459778, 0.407478392124176, 0.19953523576259613, -0.07616531848907471, 0.22119082510471344, 0.027252741158008575, 0.29350829124450684, 0.25653645396232605, -0.3665246069431305, 0.2307594120502472, -0.18840298056602478, 0.10124961286783218, -0.16555266082286835, 0.3090815544128418, 0.02912924624979496, 0.22100628912448883, -0.19087335467338562, -0.27419665455818176, 0.39701569080352783, -0.24067255854606628, -0.16966241598129272, 0.07039570808410645, 0.048807621002197266, -0.006473757326602936, -0.31807759404182434, -0.6101062297821045, -0.004948891699314117, 0.2547948658466339, 0.10712288320064545, 0.05761968716979027, 0.2812231779098511, -0.03137180954217911, -0.13098818063735962, -0.10323619842529297, 0.40163877606391907, 0.2427634298801422, -0.019312940537929535, 0.2822895646095276, -0.2919854521751404 ]
https://github.com/huggingface/datasets/pull/169
Adding Qanta (Quizbowl) Dataset
I updated to the most recent master and followed the steps, but still having the similar error where it can't find the correct file since the path to the directory is given, rather than the individual files within them. This still something wrong about how I'm inputting the data or how the tests are reading it?
This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ```
56
text: Adding Qanta (Quizbowl) Dataset This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ``` I updated to the most recent master and followed the steps, but still having the similar error where it can't find the correct file since the path to the directory is given, rather than the individual files within them. This still something wrong about how I'm inputting the data or how the tests are reading it?
[ 0.2098805159330368, 0.24276870489120483, -0.027734829112887383, 0.2584693133831024, -0.09294958412647247, -0.0400313176214695, -0.022697236388921738, 0.41413336992263794, 0.12040850520133972, -0.190907821059227, 0.17054452002048492, 0.05738440528512001, -0.2763234078884125, -0.011817581951618195, 0.3117206394672394, -0.2106749713420868, 0.06306213140487671, 0.10805247724056244, -0.11042456328868866, -0.05976718291640282, -0.3308544158935547, 0.3036874830722809, -0.1673753261566162, 0.020164072513580322, -0.15884210169315338, -0.0567508339881897, -0.4217686355113983, 0.4354349374771118, -0.18402083218097687, -0.3781913220882416, 0.14995300769805908, 0.15363037586212158, -0.03938720002770424, 0.36190053820610046, -0.0001150649695773609, -0.22168861329555511, 0.3982422351837158, -0.16317202150821686, -0.38215261697769165, -0.2901778817176819, -0.04911171272397041, -0.06873763352632523, 0.07066892832517624, -0.058106761425733566, -0.03588941693305969, -0.30499401688575745, 0.39323511719703674, 0.05208849906921387, 0.33877265453338623, 0.5426008105278015, 0.18883468210697174, 0.14838501811027527, 0.04723269119858742, 0.005878537893295288, 0.21460634469985962, 0.010971080511808395, 0.023068787530064583, 0.1555667668581009, -0.06497019529342651, -0.32348722219467163, -0.09299368411302567, 0.0638808012008667, 0.07322268187999725, -0.15909379720687866, 0.10038389265537262, 0.11041309684515, 0.0777442678809166, -0.07874475419521332, -0.05968371033668518, 0.17469748854637146, 0.1347648650407791, -0.16423994302749634, -0.37611183524131775, -0.46490854024887085, 0.05010373145341873, -0.1293582320213318, 0.11447599530220032, 0.11768490076065063, -0.3533305823802948, -0.0125260129570961, 0.02677852287888527, -0.17091605067253113, -0.14329107105731964, 0.37039393186569214, -0.004525449126958847, 0.1700860857963562, 0.006536050699651241, -0.04199574142694473, 0.14573417603969574, 0.05731043964624405, -0.14971856772899628, -0.15976469218730927, -0.05375901982188225, 0.10977458208799362, -0.16002029180526733, 0.051847390830516815, 0.1634221076965332, 0.23076388239860535, 0.09985122829675674, 0.22349224984645844, 0.3407810926437378, -0.006172243505716324, -0.4188075363636017, 0.005675457417964935, 0.3473319709300995, 0.4896373450756073, -0.06659237295389175, -0.10189616680145264, -0.06779555231332779, 0.38920626044273376, -0.013012312352657318, 0.011163363233208656, 0.03277328610420227, -0.2235218733549118, -0.4014008343219757, -0.016567986458539963, 0.3579598069190979, -0.0699651762843132, -0.36456426978111267, 0.20404891669750214, -0.3415839672088623, -0.10647357255220413, 0.036183398216962814, 0.35434362292289734, 0.027686968445777893, 0.40197622776031494, -0.08746030181646347, 0.43280112743377686, -0.18113990128040314, -0.18107974529266357, -0.09938478469848633, -0.051149021834135056, -0.4376462399959564, 0.05395132303237915, 0.22957058250904083, 0.2979125678539276, 0.5494542717933655, -0.11388164013624191, -0.009605638682842255, -0.06073867157101631, 0.14544153213500977, -0.1738107055425644, 0.29803910851478577, 0.05172966048121452, 0.05888241156935692, 0.1449078619480133, 0.060458503663539886, -0.28032296895980835, -0.06726665794849396, 0.39371851086616516, 0.007651425898075104, -0.04745066910982132, -0.10821451246738434, 0.13937486708164215, -0.3179017901420593, -0.03669183701276779, -0.06021720916032791, 0.21736618876457214, -0.11024076491594315, -0.25417882204055786, 0.01610437035560608, -0.18696416914463043, -0.06870820373296738, -0.1097075492143631, 0.14885620772838593, 0.5025514960289001, -0.2516379654407501, 0.08865140378475189, -0.351372629404068, 0.3636852204799652, 0.029149606823921204, 0.1905205100774765, -0.12210803478956223, 0.4750499725341797, -0.19672243297100067, 0.22937063872814178, 0.3233451247215271, -0.34414559602737427, -0.1564648300409317, 0.024251457303762436, -0.09929412603378296, 0.283771812915802, 0.0926486998796463, 0.14828482270240784, -0.12328068912029266, -0.03237737715244293, -0.12519092857837677, 0.2195291817188263, 0.015417206101119518, -0.04968234896659851, -0.44015952944755554, -0.17041119933128357, 0.23010702431201935, 0.18762598931789398, -0.12086525559425354, -0.19956904649734497, -0.18362781405448914, -0.17614659667015076, 0.37845900654792786, -0.08675514161586761, -0.03710983693599701, 0.11204741150140762, 0.1956169605255127, -0.04784206300973892, 0.05749912187457085, 0.15690234303474426, -0.3486796021461487, -0.08244526386260986, -0.09228008985519409, 0.2945786118507385, 0.0027041956782341003, 0.07331603765487671, -0.48902323842048645, -0.13525186479091644, -0.40085098147392273, -0.45221906900405884, 0.1361253261566162, 0.48278218507766724, 0.004644349217414856, 0.02764962986111641, -0.2274000346660614, 0.2655200958251953, 0.2304300218820572, 0.26258760690689087, -0.4746258556842804, -0.035605791956186295, -0.2096155285835266, -0.011259154416620731, 0.2664754390716553, 0.5584758520126343, 0.1367776095867157, -0.06265800446271896, 0.1785474419593811, 0.37490686774253845, -0.042826127260923386, -0.0341828316450119, 0.3199847340583801, -0.12928910553455353, 0.18397459387779236, -0.22809113562107086, 0.029664019122719765, 0.4445124566555023, 0.14435669779777527, 0.018336087465286255, -0.2660158574581146, 0.47773146629333496, -0.09142154455184937, 0.12650740146636963, -0.06108532100915909, 0.09265823662281036, -0.06853437423706055, -0.13363148272037506, -0.09001994878053665, 0.048035092651844025, 0.3822411298751831, 0.27501118183135986, 0.36346983909606934, -0.1385641247034073, -0.2778147757053375, 0.1757192313671112, 0.19155244529247284, -0.23249828815460205, -0.00466039776802063, 0.1899631917476654, -0.006139606237411499, -0.23916396498680115, 0.16709990799427032, 0.3136826157569885, 0.5960735082626343, 0.2641896903514862, 0.1363147795200348, 0.10076003521680832, -0.3467833399772644, -0.3901161849498749, 0.1733388602733612, 0.23323297500610352, -0.3423360586166382, 0.32641178369522095, 0.24932861328125, -0.052501555532217026, -0.2876986861228943, 0.2592468559741974, -0.10692630708217621, 0.2411644458770752, -0.3318425416946411, 0.09930788725614548, -0.23746605217456818, -0.47945889830589294, -0.3666227161884308, -0.48416364192962646, -0.061912890523672104, -0.5862838625907898, 0.30536895990371704, -0.12793122231960297, -0.296326220035553, 0.12679587304592133, 0.054857272654771805, 0.2980883717536926, -0.22920159995555878, -0.05958138406276703, -0.19001716375350952, -0.14887309074401855, -0.45562341809272766, 0.09015680849552155, 0.3990592658519745, 0.20148034393787384, 0.28575941920280457, -0.2949433922767639, 0.040675051510334015, 0.003616522066295147, -0.36813414096832275, 0.08343596756458282, -0.19336701929569244, 0.7764418125152588, 0.10180295258760452, 0.12557850778102875, -0.12688714265823364, -0.37683045864105225, 0.009306080639362335, -0.2925611138343811, -0.09234828501939774, 0.030076250433921814, 0.134055033326149, 0.06733521074056625, -0.3439137935638428, -0.701166033744812, 0.02613716758787632, -0.19066891074180603, 0.24884578585624695, 0.32230788469314575, 0.18142981827259064, 0.49739959836006165, -0.08819963037967682, 0.16825643181800842, -0.17469045519828796, -0.05668323487043381, -0.23398317396640778, -0.08602093160152435, 0.3380109965801239, -0.2832752466201782, -0.3959766626358032, -0.1425410658121109, -0.40906232595443726, 0.3971548080444336, -0.2717803716659546, -0.41619038581848145, -0.4411391019821167, 0.15372136235237122, 0.1222517192363739, 0.15586291253566742, 0.10109161585569382, -0.006794527173042297, -0.20817965269088745, -0.04501409828662872, -0.14083115756511688, -0.0212092325091362, 0.32842200994491577, 0.3092140853404999, 0.3619353771209717, -0.03453398495912552, 0.1937524676322937, 0.021688848733901978, 0.5572863221168518, 0.2958024740219116, 0.5318395495414734, 0.4129309356212616, -0.06407864391803741, 0.34333983063697815, -0.20547834038734436, -0.06709198653697968, 0.10327406972646713, -0.07824458181858063, -0.04240664839744568, 0.4393383264541626, 0.23775219917297363, 0.07757933437824249, -0.07283106446266174, 0.2732052505016327, -0.6834092140197754, -0.3343445360660553, 0.25213873386383057, -0.08360961079597473, -0.06616627424955368, 0.19102099537849426, 0.05796414613723755, -0.16357794404029846, -0.4577585756778717, -0.048967644572257996, 0.14558815956115723, 0.11484481394290924, 0.08290662616491318, -0.2477922886610031, -0.13407379388809204, -0.582595944404602, 0.25120264291763306, -0.06176919490098953, 0.46149322390556335, -0.06561306864023209, -0.15394073724746704, 0.17015227675437927, 0.007163232192397118, 0.6483254432678223, 0.08115243166685104, -0.3171001672744751, -0.062112294137477875, 0.41541460156440735, -0.3429558575153351, 0.05408673360943794, -0.17246536910533905, -0.03371938690543175, 0.05838959664106369, -0.006187610328197479, -0.35351040959358215, -0.0033108191564679146, 0.2741957902908325, 0.09220616519451141, -0.19298537075519562, -0.10983704775571823, -0.2513633966445923, -0.4595688581466675, -0.14488549530506134, -0.14205539226531982, 0.0009438805282115936, 0.29970765113830566, -0.13989101350307465, 0.2859652042388916, 0.24704623222351074, -0.015319902449846268, 0.3883354067802429, 0.09563146531581879, 0.3462201952934265, 0.0884283259510994, -0.06230178475379944, 0.3861655294895172, -0.14930307865142822, -0.28883233666419983, 0.47595924139022827, -0.002128191292285919, 0.35817334055900574, 0.07960832864046097, -0.20921513438224792, 0.5190754532814026, 0.6006525754928589, 0.13130980730056763, -0.06198207288980484, -0.39605823159217834, -0.07567884027957916, -0.19498351216316223, 0.28392189741134644, 0.40387722849845886, -0.10215248167514801, 0.05816197395324707, -0.39273548126220703, 0.29483741521835327, -0.1383064091205597, -0.13903215527534485, 0.06993065029382706, 0.1943223625421524, -0.2059003710746765, 0.620013952255249, -0.09456632286310196, 1.0743930339813232, 0.02699003741145134, 0.5414116978645325, 0.6308284997940063, -0.28227147459983826, 0.2599398195743561, -0.18289469182491302, 0.11824794858694077, -0.3653539717197418, 0.339122474193573, 0.019452394917607307, -0.07280674576759338, -0.06804458051919937, 0.019005656242370605, -0.28099170327186584, 0.6527075171470642, 0.18780578672885895, -0.0006155781447887421, 0.19887644052505493, 0.23784175515174866, -0.05417048931121826, 0.07908287644386292, -0.33658233284950256, 0.09327530115842819, 0.06966868788003922, 0.2365306317806244, -0.08331271260976791, -0.4025150537490845, -0.28458672761917114, -0.1957034319639206, -0.08015752583742142, -0.04618414491415024, -0.3214305639266968, -0.4148927927017212, 0.2738754153251648, -0.382079541683197, -0.3041863739490509, 0.4817473888397217, 0.2015523910522461, -0.1320926547050476, -0.247394859790802, 0.024763554334640503, -0.18794292211532593, 0.05867225304245949, 0.1997627317905426, -0.10231592506170273, 0.20360489189624786, 0.033061638474464417, -0.027513474225997925, 0.024694640189409256, -0.13302239775657654, -0.05264795571565628, -0.2944493293762207, 0.07262367755174637, 0.2041649967432022, -0.15697698295116425, -0.2976927161216736, 0.020898818969726562, -0.04095996543765068, -0.1939699798822403, 0.10642866790294647, -0.00940636545419693, -0.02178027480840683, -0.048803143203258514, -0.0007249414920806885, -0.13678954541683197, -0.04521331563591957, 0.010906517505645752, -0.25958341360092163, 0.37780606746673584, 0.6031690835952759, -0.05661716312170029, 0.043424442410469055, -0.06650610268115997, 0.04529554396867752, 0.07811278104782104, -0.4485524892807007, -0.0972796306014061, -0.0417969673871994, -0.16687320172786713, -0.0317193828523159, 0.0725545659661293, 0.22178232669830322, -0.12730342149734497, -0.155101016163826, -0.49097856879234314, -0.0753905400633812, 0.31179648637771606, 0.00014338642358779907, 0.14524681866168976, 0.07656574994325638, 0.04621146619319916, 0.3665158450603485, 0.09042879939079285, -0.269508421421051, -0.09197124093770981, -0.20017622411251068, 0.14744743704795837, -0.10242117941379547, -0.23169448971748352, 0.25687146186828613, 0.07316133379936218, 0.03403753042221069, -0.12820522487163544, -0.22532601654529572, -0.15788298845291138, -0.15274347364902496, 0.1722349226474762, 0.20700615644454956, -0.1839229315519333, 0.028326865285634995, -0.054320499300956726, 0.21913227438926697, -0.01988038793206215, -0.2796054184436798, -0.310720831155777, -0.04229481518268585, 0.29545435309410095, -0.03313711658120155, -0.018312908709049225, -0.04637515917420387, 0.22255492210388184, -0.012874096632003784, 0.16460172832012177, 0.08930979669094086, 0.04040384292602539, -0.1531037837266922, -0.047192398458719254, 0.0034824395552277565, 0.2902946472167969, -0.03490571677684784, 0.09113141894340515, 0.12075150012969971, -0.22162987291812897, 0.00923522561788559, -0.08303691446781158, 0.24385887384414673, 0.36427590250968933, -0.20238815248012543, 0.0776023268699646, 0.16645371913909912, 0.0846099704504013, -0.2441563904285431, 0.14896778762340546, 0.09729784727096558, 0.1158067137002945, 0.05417871102690697, 0.2942657470703125, 0.2623803913593292, -0.4238675534725189, 0.10419227927923203, 0.0580417662858963, -0.113349549472332, -0.08685976266860962, -0.02006574533879757, 0.416935533285141, -0.1685534566640854, 0.06454672664403915, 0.11709174513816833, -0.2428748607635498, -0.06013431400060654, 0.3128647208213806, 0.009896300733089447, 0.4057004451751709, 0.015477877110242844, 0.04512551426887512, -0.08674850314855576, -0.03510528802871704, 0.06162790209054947, 0.3766379654407501, 0.14181730151176453, 0.13956260681152344, 0.10818950086832047, 0.990954577922821, -0.21166487038135529, 0.008793139830231667, -0.2114323079586029, -0.1107914000749588, -0.06046934425830841, -0.13161131739616394, -0.29044440388679504, -0.11139415204524994, -0.5852818489074707, -0.051603902131319046, -0.20943766832351685, -0.18020302057266235, -0.16018325090408325, -0.05112512409687042, -0.1897299736738205, -0.28935009241104126, -0.2468840777873993, 0.11389812082052231, 0.02587791532278061, -0.19432806968688965, 0.6490004062652588, 0.18018218874931335, 0.162607342004776, 0.3921869099140167, 0.4147797226905823, 0.2968563735485077, 0.23225578665733337, -0.49760639667510986, -0.13070878386497498, -0.0007390640676021576, -0.06645677238702774, -0.1539219170808792, 0.297962486743927, 0.1704978346824646, 0.23051004111766815, 0.42241528630256653, 0.11197440326213837, -0.12189377099275589, 0.20255210995674133, 0.4485696256160736, -0.15912488102912903, -0.3582519292831421, 0.2424929141998291, -0.21188847720623016, -0.11979985982179642, -0.07956840842962265, -0.24290382862091064, -0.5447350740432739, 0.14967435598373413, -0.007841771468520164, -0.08451797068119049, 0.20511603355407715, -0.07633937895298004, 0.05851913243532181, -0.030748683959245682, 0.42393988370895386, 0.4495737552642822, 0.1262422502040863, -0.5552414655685425, -0.3371996283531189, -0.971864640712738, 0.006337366998195648, 0.17337307333946228, -0.005674256011843681, 0.09860343486070633, -0.06844107061624527, 0.01997377723455429, 0.22832445800304413, -0.2116212397813797, -0.10898438096046448, -0.13795433938503265, 0.2265392541885376, -0.3909381926059723, -0.10455243289470673, 0.1660701334476471, 0.17267082631587982, -0.04848852381110191, -0.17069531977176666, 0.035701606422662735, -0.031195268034934998, -0.035707246512174606, 0.3020424246788025, 0.008354388177394867, -0.026440830901265144, 0.3459467887878418, -0.1739950329065323, 0.20074641704559326, 0.23002485930919647, -0.03670821711421013, -0.10058476030826569, -0.3753798007965088, -0.0866362601518631, -0.23851951956748962, -0.07657090574502945, -0.27446141839027405, 0.5908526182174683, 0.04311348497867584, 0.10826843976974487, -0.053062804043293, -0.11774353682994843, 0.23944629728794098, 0.304156094789505, -0.43644216656684875, 0.17913396656513214, -0.25479626655578613, 0.2247038036584854, 0.08360818773508072, 0.33132830262184143, -0.11065515875816345, 0.2580060362815857, -0.2845526337623596, -0.18743373453617096, 0.4623079001903534, -0.36018651723861694, -0.08380633592605591, 0.1841362565755844, -0.004771478474140167, -0.058345429599285126, -0.16316485404968262, -0.6022444367408752, -0.12621623277664185, 0.2320168912410736, 0.1410924792289734, -0.005805773660540581, 0.12240935862064362, -0.006003143265843391, -0.12856164574623108, 0.0044764019548892975, 0.3898305296897888, 0.24373295903205872, -0.17451080679893494, 0.30111172795295715, -0.2721230983734131 ]
https://github.com/huggingface/datasets/pull/169
Adding Qanta (Quizbowl) Dataset
It's the dummy_data structure. You actually have to call the dummy data file name `dummy_data` (not .json anything). So there should not be a `dummy_data` folder but for each config only a `dummy_data` which contains your json dummy data. Can you maybe try once more - if it doesn't work I do it for you :-).
This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ```
56
text: Adding Qanta (Quizbowl) Dataset This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ``` It's the dummy_data structure. You actually have to call the dummy data file name `dummy_data` (not .json anything). So there should not be a `dummy_data` folder but for each config only a `dummy_data` which contains your json dummy data. Can you maybe try once more - if it doesn't work I do it for you :-).
[ 0.2678849697113037, 0.07442536950111389, -0.02967713586986065, 0.1628459244966507, 0.0015845820307731628, 0.016178861260414124, 0.06747446954250336, 0.3405379056930542, 0.17015008628368378, -0.12141846120357513, 0.0987439826130867, 0.24900512397289276, -0.1706172227859497, 0.15418405830860138, 0.25507164001464844, -0.2861333191394806, 0.004703924059867859, 0.13883377611637115, 0.042757242918014526, -0.00226452574133873, -0.3422151505947113, 0.2615264058113098, -0.2204527109861374, -0.09861180186271667, 0.014822034165263176, -0.059731170535087585, -0.3395405113697052, 0.2443498969078064, -0.08272772282361984, -0.3951117694377899, 0.13284261524677277, 0.17838352918624878, -0.0705670565366745, 0.1017337366938591, -0.00010633088822942227, -0.24903972446918488, 0.39200735092163086, -0.17808960378170013, -0.4817003607749939, -0.10458816587924957, 0.00011752918362617493, -0.06197183579206467, 0.10366969555616379, -0.019280925393104553, -0.18575933575630188, -0.4694261848926544, 0.23668542504310608, -0.00954071432352066, 0.5503130555152893, 0.3886186182498932, 0.2778770625591278, 0.1799039989709854, 0.07239788770675659, 0.04631451517343521, 0.1913938969373703, -0.028751887381076813, -0.13554765284061432, 0.1802629977464676, -0.09137669205665588, -0.21321746706962585, 0.041177261620759964, 0.07402925193309784, 0.1344454139471054, -0.11589664220809937, -0.10216135531663895, 0.09555160254240036, 0.0144750215113163, -0.12000535428524017, 0.04921158030629158, 0.1481250822544098, 0.10943760722875595, -0.16270944476127625, -0.2683797776699066, -0.3712831437587738, 0.30268552899360657, -0.17626485228538513, -0.033988043665885925, 0.10002622753381729, -0.2500128746032715, -0.014972388744354248, 0.029646486043930054, -0.18490922451019287, -0.19015511870384216, 0.3008345365524292, 0.1458217203617096, 0.27900269627571106, -0.042277462780475616, 0.05440177768468857, 0.00446687638759613, -0.05654483288526535, -0.16677723824977875, -0.2818261384963989, -0.18466095626354218, 0.07841118425130844, -0.2135312408208847, -0.15045979619026184, 0.18872559070587158, 0.08350493758916855, 0.2735539674758911, 0.19627726078033447, 0.3804570436477661, 0.10157794505357742, -0.19565017521381378, -0.03312688320875168, 0.24254778027534485, 0.5083205699920654, 0.0664108470082283, -0.001586721744388342, -0.16746611893177032, 0.21183650195598602, 0.15147043764591217, 0.008120100945234299, 0.060090988874435425, 0.12783923745155334, -0.29351675510406494, -0.03617224842309952, 0.3518024682998657, 0.014765534549951553, -0.30143457651138306, 0.24192644655704498, -0.3554447591304779, 0.016881460323929787, -0.13383060693740845, 0.30786094069480896, -0.13454124331474304, 0.3553076982498169, -0.12930724024772644, 0.4900842308998108, -0.05773239582777023, -0.2721308767795563, -0.1208164393901825, -0.08106020092964172, -0.2879679799079895, 0.09548255801200867, 0.22010581195354462, 0.2852156162261963, 0.4479098320007324, 0.06187364459037781, -0.02421335130929947, 0.009092580527067184, 0.3086639940738678, -0.11603139340877533, 0.22335276007652283, 0.058228883892297745, 0.08141481876373291, 0.05476181209087372, 0.02950165420770645, -0.18111056089401245, -0.04744521155953407, 0.3737313151359558, 0.0828993171453476, 0.04125590994954109, -0.3543868660926819, 0.25273334980010986, -0.32983601093292236, -0.06592302024364471, -0.10948454588651657, 0.3918914198875427, -0.11352276057004929, -0.13631971180438995, 0.035593412816524506, -0.07569713145494461, -0.08452158421278, -0.14805127680301666, 0.03146883100271225, 0.4352363348007202, -0.3036593496799469, -0.028443116694688797, -0.3050149083137512, 0.23726701736450195, 0.04619676619768143, 0.03803844377398491, -0.1646898239850998, 0.32189127802848816, -0.13428162038326263, 0.27303266525268555, 0.20158270001411438, -0.21660864353179932, -0.14172321557998657, 0.03727756440639496, -0.08666683733463287, 0.37685516476631165, -0.04636283963918686, 0.13981367647647858, -0.06627129763364792, 0.19185467064380646, -0.09770263731479645, 0.34740644693374634, 0.09336715191602707, 0.016403591260313988, -0.40142834186553955, -0.19573275744915009, 0.23353345692157745, 0.26266613602638245, -0.23139552772045135, -0.05081170052289963, -0.21860167384147644, -0.10820106416940689, 0.25536981225013733, -0.07544198632240295, 0.14131325483322144, 0.08848409354686737, 0.23139546811580658, -0.09300866723060608, 0.12500931322574615, 0.08593631535768509, -0.48463326692581177, -0.14663080871105194, -0.05724652111530304, 0.4107770323753357, 0.10710973292589188, -0.043306779116392136, -0.4758577346801758, 0.003148408606648445, -0.3657093644142151, -0.6046305298805237, 0.2580459415912628, 0.43533584475517273, 0.08527199923992157, 0.009649474173784256, -0.24278081953525543, 0.2584746479988098, 0.36203593015670776, 0.10378363728523254, -0.5381423234939575, -0.03684460371732712, -0.1486206203699112, -0.09199801832437515, 0.2582043409347534, 0.4395669996738434, 0.07219742238521576, -0.005318553186953068, 0.1763330101966858, 0.2860089838504791, -0.026758214458823204, -0.06241665780544281, 0.32267284393310547, -0.33440637588500977, 0.14899644255638123, -0.15319988131523132, 0.009343121200799942, 0.4315902590751648, 0.18661284446716309, -0.07182037830352783, -0.20893174409866333, 0.6222188472747803, 0.10248023271560669, 0.10138940811157227, -0.17434966564178467, 0.03655619919300079, 0.05316419154405594, -0.11865216493606567, -0.14133580029010773, -0.0978807732462883, 0.3094222843647003, 0.26233357191085815, 0.2626115083694458, -0.24931158125400543, -0.39154401421546936, 0.3003177046775818, 0.2342073619365692, -0.1342685967683792, 0.09248693287372589, 0.15775996446609497, -0.15944939851760864, -0.26886212825775146, 0.1686020940542221, 0.15850679576396942, 0.5780007243156433, 0.35683971643447876, -0.032319020479917526, 0.07371742278337479, -0.17553962767124176, -0.3789980709552765, 0.15671847760677338, 0.014654092490673065, -0.2601970434188843, 0.35819101333618164, 0.42053326964378357, -0.12013941258192062, -0.3515000641345978, 0.08068664371967316, -0.1626218855381012, 0.1922723948955536, -0.17812363803386688, 0.038074858486652374, -0.12456674128770828, -0.31384947896003723, -0.0879480317234993, -0.4057854413986206, -0.14603091776371002, -0.5251727104187012, 0.4811362624168396, -0.006091911345720291, -0.2005159556865692, 0.20755162835121155, 0.16279883682727814, 0.4381117820739746, -0.14564569294452667, 0.01464417576789856, -0.28825870156288147, -0.29976245760917664, -0.3424423336982727, 0.24806925654411316, 0.042499031871557236, 0.09968326985836029, 0.35322123765945435, -0.28484994173049927, 0.054272666573524475, 0.06609475612640381, -0.3223995864391327, 0.10560955107212067, -0.23883478343486786, 0.7554822564125061, 0.1138015016913414, 0.18646842241287231, -0.3131113052368164, -0.3166811466217041, 0.07916383445262909, -0.1898726522922516, -0.22688373923301697, 0.11233600974082947, 0.034654922783374786, 0.15530869364738464, -0.44664257764816284, -0.5651366710662842, 0.06527841836214066, -0.21554474532604218, 0.43218427896499634, 0.3085578978061676, 0.1701776385307312, 0.35592421889305115, -0.02167629823088646, 0.1489875167608261, -0.1225813627243042, -0.08192303776741028, -0.41335201263427734, -0.20947322249412537, 0.3139653503894806, -0.39454221725463867, -0.373128741979599, -0.10362764447927475, -0.3805754780769348, 0.3912491798400879, -0.358398973941803, -0.4196576476097107, -0.4689711928367615, 0.18336987495422363, 0.14387913048267365, -0.03124355524778366, -0.020917626097798347, 0.07495401799678802, -0.15340395271778107, -0.12008805572986603, -0.10866554081439972, -0.15669381618499756, 0.33256447315216064, 0.2557084858417511, 0.3143741190433502, -0.08612310141324997, 0.2324419915676117, -0.05617937073111534, 0.42181724309921265, 0.27265897393226624, 0.47146955132484436, 0.4141441881656647, -0.07016832381486893, 0.2781963050365448, -0.1640593409538269, -0.04692232608795166, 0.13899385929107666, 0.01895296573638916, 0.027401898056268692, 0.3904990553855896, 0.12005803734064102, -0.014320731163024902, -0.15110290050506592, 0.1266033798456192, -0.5476799011230469, -0.26853063702583313, 0.18274898827075958, -0.0827927440404892, -0.10141798108816147, 0.09659232199192047, -0.044743575155735016, -0.21100588142871857, -0.31189510226249695, -0.22933460772037506, -0.03203624486923218, 0.02529740333557129, -0.051808860152959824, -0.3994247019290924, -0.09760253876447678, -0.5184221267700195, 0.2574608325958252, -0.15605269372463226, 0.36616024374961853, -0.004229821264743805, -0.15399378538131714, 0.25215473771095276, -0.08185188472270966, 0.6148290634155273, 0.027330616489052773, -0.35042446851730347, -0.04474789276719093, 0.34134188294410706, -0.41491827368736267, 0.06445509195327759, -0.18193839490413666, -0.10884949564933777, -0.01824316382408142, 0.07591772824525833, -0.46983805298805237, 0.08528514206409454, 0.28178173303604126, -0.01061176136136055, -0.1755141019821167, -0.2509567439556122, -0.3066192865371704, -0.3904392123222351, -0.2668224275112152, 0.022727034986019135, -0.100575752556324, 0.2998258173465729, -0.11298587918281555, 0.15884719789028168, 0.16015659272670746, -0.08596798777580261, 0.2657344341278076, 0.2704961895942688, 0.2079494297504425, 0.13403809070587158, -0.067194864153862, 0.17227044701576233, -0.2563975751399994, -0.21254362165927887, 0.38970670104026794, 0.2312677949666977, 0.23754005134105682, 0.047348733991384506, -0.07278328388929367, 0.42333176732063293, 0.39428961277008057, 0.1413561850786209, 0.11887725442647934, -0.4811517298221588, 0.024791385978460312, -0.15705791115760803, 0.13834483921527863, 0.31234344840049744, -0.2316184639930725, 0.20072880387306213, -0.26188117265701294, 0.24183222651481628, -0.2203097939491272, -0.0743323564529419, -0.04651815444231033, 0.12185858935117722, -0.14111553132534027, 0.6312413215637207, 0.06428049504756927, 1.0476962327957153, 0.11101424694061279, 0.41230881214141846, 0.6396437287330627, -0.3509061932563782, 0.47363734245300293, -0.1463625729084015, 0.1288013756275177, -0.3315783739089966, 0.4365885257720947, 0.11495666205883026, -0.003021441400051117, 0.008546192198991776, -0.015069082379341125, -0.41733720898628235, 0.36417704820632935, 0.012666203081607819, -0.045869093388319016, 0.1485424041748047, 0.25944289565086365, -0.20495419204235077, -0.04958998039364815, -0.4629550576210022, 0.21687385439872742, -0.09017275273799896, 0.07454051077365875, 0.022193193435668945, -0.41891008615493774, -0.16982297599315643, -0.2356671690940857, -0.07361263036727905, 0.19246017932891846, -0.1737811118364334, -0.4616684913635254, 0.3475411832332611, -0.19108614325523376, -0.27588149905204773, 0.25332212448120117, 0.21065282821655273, -0.061803337186574936, -0.22360748052597046, 0.014685312286019325, -0.17059916257858276, -0.05161779746413231, 0.08059801906347275, -0.028140898793935776, 0.07284435629844666, -0.02433408424258232, -0.21008938550949097, 0.20652148127555847, -0.015066241845488548, -0.035905517637729645, -0.31830525398254395, 0.12036207318305969, 0.10423847287893295, -0.16900663077831268, -0.19875481724739075, 0.07162196934223175, -0.02005365677177906, -0.3280329406261444, 0.2002749741077423, -0.020584240555763245, -0.07042796909809113, -0.09579656273126602, 0.12904642522335052, -0.112991102039814, -0.17131593823432922, 0.1277492791414261, -0.0018818378448486328, 0.3861582279205322, 0.5398480892181396, -0.00552796944975853, 0.002725813537836075, -0.23351716995239258, -0.03126637265086174, 0.13051526248455048, -0.30740413069725037, -0.0015603778883814812, 0.15838408470153809, -0.1544916182756424, -0.0821710079908371, 0.010262273252010345, -0.001178506761789322, 0.005248919129371643, -0.05501885712146759, -0.4414235055446625, -0.1683523803949356, 0.28091731667518616, -0.026273172348737717, 0.12906672060489655, 0.2607712745666504, 0.14315588772296906, 0.21966399252414703, 0.31931397318840027, -0.39839044213294983, -0.17800314724445343, -0.2930997312068939, 0.1812824308872223, -0.1597621887922287, -0.32294777035713196, 0.2632773220539093, 0.13230204582214355, 0.15868180990219116, -0.01022813469171524, -0.29759857058525085, -0.28028300404548645, -0.16818790137767792, 0.10203783214092255, 0.2377978265285492, -0.22578184306621552, -0.2056257128715515, 0.010220333933830261, 0.10599209368228912, 0.0428934246301651, -0.10781006515026093, -0.2776733934879303, -0.12911011278629303, 0.3170810639858246, -0.033353518694639206, 0.08138419687747955, 0.002287011593580246, 0.031182123348116875, 0.07715462148189545, 0.1335037350654602, 0.028983809053897858, 0.0345977321267128, -0.16407106816768646, -0.011169187724590302, 0.01894085481762886, 0.18771088123321533, 0.1359328180551529, 0.08277511596679688, 0.128587007522583, -0.16930818557739258, -0.06578618288040161, -0.19783809781074524, 0.15864980220794678, 0.3526274263858795, -0.1732187271118164, 0.042505621910095215, 0.022623255848884583, 0.20561745762825012, -0.2956313490867615, 0.11152669787406921, 0.11828017234802246, -0.015426033176481724, 0.058665681630373, 0.2091202735900879, 0.11293540894985199, -0.2905981242656708, 0.2280016541481018, 0.060370080173015594, -0.1106366515159607, -0.09909413754940033, -0.07092203199863434, 0.29301536083221436, -0.3548946976661682, -0.03965011611580849, 0.2170388102531433, -0.10520561039447784, 0.06874215602874756, 0.22927384078502655, 0.030103646218776703, 0.31251123547554016, 0.1042599007487297, 0.08830369263887405, -0.0650578960776329, 0.13160011172294617, 0.11802710592746735, 0.5278786420822144, 0.1635553389787674, 0.25885042548179626, 0.2787396311759949, 0.694439172744751, -0.022056788206100464, 0.005484695080667734, -0.23597249388694763, 0.0487043634057045, -0.06649570912122726, -0.1203213483095169, -0.36753329634666443, -0.09276439249515533, -0.6803889274597168, -0.008119966834783554, -0.23700636625289917, -0.24266774952411652, -0.04639346897602081, -0.08007103204727173, -0.1964295357465744, -0.3535671532154083, -0.20776399970054626, 0.22411119937896729, -0.014075294137001038, -0.15150392055511475, 0.43967562913894653, 0.16816198825836182, 0.19126902520656586, 0.19848810136318207, 0.4122546911239624, 0.18205180764198303, 0.1868506222963333, -0.4569360613822937, -0.07959737628698349, 0.029861968010663986, -0.07784713059663773, -0.0714055746793747, 0.38481101393699646, 0.3244766592979431, 0.03132006153464317, 0.33025312423706055, 0.19747598469257355, -0.24972067773342133, 0.1715172380208969, 0.38250383734703064, -0.11287225782871246, -0.3070673644542694, 0.1275288611650467, -0.219476580619812, -0.056505970656871796, -0.05756067484617233, -0.24609890580177307, -0.45957788825035095, 0.05379563570022583, -0.05576196685433388, -0.10085690021514893, 0.054835423827171326, -0.43378251791000366, 0.1253594607114792, -0.17091961205005646, 0.4483833909034729, 0.34817737340927124, -0.06792107969522476, -0.4256928861141205, -0.29252082109451294, -0.6053470969200134, 0.03253525495529175, 0.16535048186779022, 0.024462858214974403, 0.03951649367809296, 0.032594405114650726, -0.023761212825775146, 0.39515137672424316, -0.47934722900390625, 0.0211058109998703, -0.19888095557689667, 0.19409698247909546, -0.4287547171115875, 0.10729940235614777, 0.1948113739490509, 0.2012440413236618, 0.12232470512390137, -0.15894165635108948, 0.08084303140640259, -0.011910747736692429, 0.05152445286512375, 0.16481295228004456, -0.047996245324611664, 0.02248942106962204, 0.2736477851867676, 0.019371315836906433, 0.3018907904624939, 0.18402066826820374, -0.13104617595672607, -0.06737874448299408, -0.23954591155052185, -0.19865798950195312, -0.19222767651081085, -0.05561230331659317, -0.05561888590455055, 0.48733338713645935, 0.12549704313278198, 0.10131973028182983, 0.13024818897247314, -0.1322193592786789, 0.14925101399421692, 0.2178894430398941, -0.3708593249320984, 0.2535388171672821, -0.18257829546928406, 0.20092980563640594, -0.14994314312934875, 0.2681611180305481, -0.023278675973415375, 0.19979718327522278, -0.20850151777267456, -0.15534880757331848, 0.41787734627723694, -0.16489796340465546, -0.2032274305820465, 0.23946580290794373, 0.021949894726276398, -0.03451915085315704, -0.36246609687805176, -0.6019356846809387, 0.09511350840330124, 0.2395755499601364, 0.11929348856210709, 0.04375932738184929, 0.2700282335281372, -0.050944697111845016, -0.16250775754451752, -0.08841820061206818, 0.3998039662837982, 0.2800068259239197, -0.017043061554431915, 0.26637154817581177, -0.2712465524673462 ]
https://github.com/huggingface/datasets/pull/169
Adding Qanta (Quizbowl) Dataset
Would that work if there are multiple files? In my case, I'm including something similar to squad 1.0/2.0 where we have the main dataset + an additional challenge set in different files. Would I have the zip decompress to two files in that case?
This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ```
44
text: Adding Qanta (Quizbowl) Dataset This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ``` Would that work if there are multiple files? In my case, I'm including something similar to squad 1.0/2.0 where we have the main dataset + an additional challenge set in different files. Would I have the zip decompress to two files in that case?
[ 0.14344555139541626, 0.11461541056632996, -0.044659268110990524, 0.2312960922718048, -0.14189086854457855, 0.03156182914972305, 0.0133625827729702, 0.30627986788749695, 0.013193793594837189, -0.16955898702144623, -0.016709187999367714, 0.27169525623321533, -0.059234440326690674, 0.05384499579668045, 0.24377013742923737, -0.14269980788230896, -0.029482804238796234, 0.0925927460193634, 0.028080835938453674, -0.00026914849877357483, -0.2301611304283142, 0.2812069058418274, -0.25018882751464844, -0.028129689395427704, 0.009242236614227295, -0.0929890125989914, -0.5111167430877686, 0.270740807056427, -0.08628256618976593, -0.3577459454536438, 0.09045426547527313, 0.29948458075523376, -0.03204174339771271, 0.028572700917720795, -0.00011301552876830101, -0.19574561715126038, 0.18319478631019592, -0.2150234878063202, -0.5112621784210205, -0.07713904976844788, 0.05253032594919205, -0.2989424169063568, 0.05980081111192703, -0.09203176945447922, -0.09753617644309998, -0.3988049030303955, 0.3831077218055725, -0.17834702134132385, 0.7692523002624512, 0.33238062262535095, 0.18760113418102264, 0.27690961956977844, 0.03225605562329292, 0.04413074627518654, 0.2564520239830017, -0.16073721647262573, -0.029794272035360336, 0.10387371480464935, 0.002231016755104065, -0.25576967000961304, -0.002323448657989502, 0.17503942549228668, 0.18831828236579895, -0.016291208565235138, 0.009726770222187042, 0.28165486454963684, -0.02352854609489441, -0.23715800046920776, -0.11762406677007675, 0.14921735227108002, 0.039354342967271805, -0.25515851378440857, -0.4887720048427582, -0.5218902826309204, 0.32742854952812195, -0.17606274783611298, 0.007350213825702667, 0.18192793428897858, -0.22948293387889862, -0.019585497677326202, 0.1385776549577713, -0.18796294927597046, -0.0860498696565628, 0.3045552968978882, 0.02923247218132019, 0.35269737243652344, -0.08221033215522766, 0.1664452850818634, 0.022357195615768433, 0.13245871663093567, -0.12314698845148087, -0.2549307644367218, -0.11189113557338715, 0.12078164517879486, -0.20753033459186554, -0.18965186178684235, 0.02433675155043602, -0.02118092030286789, 0.25582846999168396, 0.13282257318496704, 0.4046540856361389, -0.08483929187059402, -0.1863265186548233, -0.009072326123714447, 0.5244429707527161, 0.38892483711242676, 0.06966084241867065, 0.02983306348323822, -0.13956332206726074, 0.06055213883519173, 0.15298035740852356, -0.009200692176818848, 0.0039061205461621284, -0.027041316032409668, -0.34413060545921326, 0.04022938758134842, 0.3414936065673828, 0.07901167869567871, -0.4434131681919098, 0.18452070653438568, -0.3167664408683777, -0.21143369376659393, -0.16700762510299683, 0.17654410004615784, -0.011444210074841976, 0.37095969915390015, -0.32122719287872314, 0.4118809700012207, -0.0299903005361557, -0.3489105999469757, -0.09624388813972473, -0.14219287037849426, -0.28079941868782043, 0.05549856275320053, 0.19641335308551788, 0.17361855506896973, 0.2418355643749237, 0.015443501062691212, 0.10716752707958221, 0.03707331418991089, 0.4151962399482727, -0.21047189831733704, 0.32089123129844666, 0.042592603713274, 0.20238856971263885, 0.06900234520435333, 0.07337284088134766, -0.22920110821723938, -0.21549460291862488, 0.3878839612007141, -0.14308980107307434, 0.19781799614429474, -0.21918420493602753, 0.14349108934402466, -0.2602033019065857, 0.08311064541339874, 0.056222353130578995, 0.46642935276031494, -0.022806592285633087, -0.35728147625923157, 0.0004836171865463257, -0.11440624296665192, -0.09448714554309845, -0.21281974017620087, -0.01834820583462715, 0.5066131949424744, -0.41030240058898926, -0.0039278119802474976, -0.15830031037330627, 0.13219554722309113, -0.05346543341875076, 0.2661812901496887, -0.3748565912246704, 0.2730633318424225, -0.22797471284866333, 0.30788683891296387, 0.44931042194366455, -0.4038873016834259, -0.2411532700061798, 0.2460325062274933, -0.1426713764667511, 0.3752864599227905, 0.04706982523202896, 0.09624678641557693, 0.05938360467553139, 0.022198902443051338, -0.04452215135097504, 0.26117074489593506, -0.06255416572093964, -0.12862367928028107, -0.35425347089767456, -0.1625254601240158, 0.4215535521507263, 0.14785169064998627, -0.14679516851902008, -0.11588042229413986, -0.23483267426490784, -0.13485239446163177, 0.34944769740104675, -0.007438439875841141, 0.13516944646835327, -0.021286267787218094, 0.037495315074920654, -0.0965920090675354, 0.0347072035074234, 0.15928342938423157, -0.4695558547973633, -0.11082755029201508, -0.2225351780653, 0.22446028888225555, 0.08239217102527618, -0.11488548666238785, -0.2028510570526123, -0.19637207686901093, -0.4319744408130646, -0.5416568517684937, 0.19121001660823822, 0.3855777978897095, 0.0008465014398097992, -0.27224084734916687, -0.41927897930145264, 0.4892614483833313, 0.33766332268714905, 0.16538867354393005, -0.4988167881965637, 0.09641692042350769, -0.10676724463701248, -0.013446756638586521, 0.16751396656036377, 0.381109356880188, 0.0039975084364414215, -0.09476427733898163, 0.2676207721233368, 0.29023462533950806, -0.13510040938854218, -0.086979940533638, 0.2869960069656372, -0.486686646938324, 0.3541969060897827, -0.20370268821716309, 0.08552525192499161, 0.3272038400173187, 0.07660029828548431, -0.07493709027767181, -0.4128100872039795, 0.5228031873703003, -0.12364521622657776, 0.09676739573478699, -0.10607297718524933, -0.027538295835256577, -0.06451479345560074, -0.12504471838474274, -0.3791869878768921, 0.03373624384403229, 0.06297871470451355, 0.2707071006298065, 0.42784538865089417, -0.19449351727962494, -0.1914173811674118, 0.25393256545066833, 0.19200284779071808, -0.06495371460914612, -0.018032655119895935, 0.1412985920906067, -0.030410341918468475, -0.18422135710716248, 0.11175806820392609, 0.27111831307411194, 0.7552462220191956, 0.31794723868370056, 0.1090756431221962, -0.1352447271347046, -0.3136413097381592, -0.34361881017684937, 0.01140650361776352, 0.041179005056619644, -0.3294059634208679, 0.4236956834793091, 0.3282574713230133, 0.039472274482250214, -0.3017701208591461, 0.06988696753978729, 0.018535172566771507, 0.030493121594190598, -0.16116878390312195, 0.06452517956495285, 0.01940024457871914, -0.5079907178878784, -0.2932453751564026, -0.1117885634303093, -0.12608815729618073, -0.5025940537452698, 0.3299295902252197, -0.2679808437824249, -0.17466627061367035, 0.18301478028297424, 0.32461583614349365, 0.30565589666366577, -0.20048756897449493, 0.04321214184165001, 0.011581189930438995, -0.13755324482917786, -0.280894935131073, 0.201708123087883, 0.22162415087223053, 0.038274820894002914, 0.33848509192466736, -0.20402169227600098, -0.14354537427425385, -0.06038414686918259, -0.21371683478355408, 0.22719672322273254, -0.19400420784950256, 0.6207283735275269, 0.015690267086029053, 0.11871600151062012, -0.27699053287506104, -0.3843170404434204, 0.19928234815597534, -0.05611005425453186, -0.10125631839036942, -0.1444036215543747, 0.12131042778491974, 0.041044000536203384, -0.416686087846756, -0.4624825417995453, -0.12377237528562546, -0.12889638543128967, 0.42708033323287964, 0.2168620377779007, 0.18019193410873413, 0.4619657099246979, -0.1080038994550705, 0.13043050467967987, -0.12540867924690247, -0.1999131292104721, -0.40567195415496826, -0.08608302474021912, 0.27554023265838623, -0.24161431193351746, -0.35991358757019043, -0.2377394586801529, -0.28207385540008545, 0.3739425241947174, -0.15220865607261658, -0.2907041907310486, -0.37572717666625977, 0.23143097758293152, 0.10216997563838959, -0.12748189270496368, 0.2511312663555145, 0.12299245595932007, -0.21325522661209106, -0.07647112756967545, -0.013572748750448227, -0.0814780741930008, 0.3341653347015381, 0.4058409631252289, 0.35559913516044617, -0.17686954140663147, -0.046845078468322754, -0.04733385145664215, 0.4493221640586853, 0.45233529806137085, 0.5422558784484863, 0.37135493755340576, -0.003554500639438629, 0.4601549804210663, 0.08486098796129227, -0.07572780549526215, 0.25797176361083984, -0.0809551328420639, -0.02087586559355259, 0.3889760375022888, 0.10152947157621384, -0.08663041889667511, -0.1153724193572998, 0.2693323791027069, -0.5784057378768921, -0.2922791540622711, 0.24714475870132446, 0.033557046204805374, -0.15647560358047485, 0.2048325389623642, -0.05880795046687126, -0.18560069799423218, -0.18958920240402222, -0.3085730969905853, -0.06365086138248444, 0.2059265375137329, -0.09023556858301163, -0.4147680997848511, -0.18009009957313538, -0.4771895408630371, 0.1620204895734787, -0.11929992586374283, 0.23060625791549683, 0.1070520430803299, -0.17787793278694153, 0.16192473471164703, -0.09261935949325562, 0.7319037318229675, 0.13066788017749786, -0.4325658082962036, 0.05608898773789406, 0.540622889995575, -0.4059513509273529, -0.05899030715227127, -0.3161610960960388, -0.061107028275728226, -0.011988174170255661, 0.20399071276187897, -0.4833720326423645, 0.016086861491203308, 0.2386344075202942, 0.008463026955723763, -0.08328691124916077, -0.2002010941505432, -0.37728551030158997, -0.3571021854877472, -0.21876400709152222, -0.026112020015716553, -0.03860999643802643, 0.08806085586547852, -0.17181934416294098, 0.11342085897922516, 0.17552144825458527, -0.15908360481262207, 0.4014686346054077, 0.22879566252231598, 0.2947225570678711, 0.22821994125843048, -0.08542580902576447, 0.359874963760376, -0.16860823333263397, -0.41874635219573975, 0.469074010848999, -0.01198258250951767, 0.18762898445129395, 0.2318219542503357, -0.15815407037734985, 0.46348264813423157, 0.644750714302063, 0.04146488010883331, -0.018558479845523834, -0.6144628524780273, 0.060100384056568146, -0.10858266800642014, 0.16225168108940125, 0.3794778883457184, -0.1936720460653305, 0.08809918910264969, -0.2628253996372223, 0.2519451379776001, -0.06655722111463547, -0.10716824233531952, 0.1930750608444214, 0.00865393877029419, -0.08455881476402283, 0.4415547847747803, 0.06665078550577164, 1.0858098268508911, -0.08420179784297943, 0.5500694513320923, 0.49799975752830505, -0.23049595952033997, 0.5932556390762329, -0.32599323987960815, 0.20335933566093445, -0.2346310019493103, 0.260329931974411, 0.08043058216571808, 0.02741854265332222, 0.20442703366279602, 0.16806215047836304, -0.4875456392765045, 0.49729445576667786, 0.1811230331659317, 0.053347013890743256, 0.04743826389312744, 0.3388262093067169, -0.2520933747291565, -0.052272748202085495, -0.5293127298355103, 0.11289484798908234, -0.0735066682100296, 0.15197959542274475, -0.12410089373588562, -0.4085897207260132, -0.20465676486492157, -0.22561658918857574, -0.06668783724308014, 0.11758442968130112, -0.2780236303806305, -0.36958926916122437, 0.3212931752204895, -0.29979556798934937, -0.31431496143341064, 0.5102013349533081, 0.20815739035606384, -0.19884052872657776, -0.15367911756038666, -0.0957869291305542, -0.16402170062065125, 0.03482843562960625, 0.0030496297404170036, -0.11091377586126328, -0.020217956975102425, -0.05141013115644455, -0.07797077298164368, 0.237117737531662, -0.06857526302337646, -0.016271844506263733, -0.23459190130233765, 0.43096721172332764, 0.24472805857658386, -0.22801648080348969, -0.05612434446811676, 0.18229439854621887, -0.01061803475022316, -0.2037513256072998, 0.09201377630233765, 0.018449079245328903, -0.09385333210229874, 0.035747550427913666, -0.05797049030661583, 0.01693468540906906, -0.060783158987760544, 0.12847714126110077, 0.009003542363643646, 0.25979742407798767, 0.38901591300964355, -0.14081355929374695, 0.1356017291545868, -0.1682080626487732, 0.04222667217254639, -0.05830299109220505, -0.3076564371585846, -0.040915295481681824, 0.03456132113933563, -0.18604476749897003, -0.14296913146972656, 0.07954953610897064, 0.17271104454994202, 0.13500440120697021, -0.022367378696799278, -0.29894158244132996, -0.014306411147117615, 0.2572339177131653, 0.09067113697528839, 0.12962312996387482, 0.25321340560913086, 0.1641896665096283, 0.38631564378738403, 0.35816624760627747, -0.30065032839775085, -0.046848587691783905, -0.14409109950065613, 0.20061062276363373, -0.16135162115097046, -0.2553204298019409, 0.21120400726795197, 0.07780000567436218, 0.1000669002532959, 0.18877100944519043, -0.2245233803987503, -0.21159526705741882, -0.049357522279024124, 0.15314793586730957, 0.146434485912323, -0.27679532766342163, -0.000988711602985859, 0.07255972176790237, 0.15736103057861328, -0.0699593648314476, -0.01716427132487297, -0.31518030166625977, -0.026962511241436005, 0.24554108083248138, 0.02657824382185936, 0.09572452306747437, -0.12845741212368011, 0.19014954566955566, 0.08501023054122925, 0.18799728155136108, 0.14297954738140106, 0.23560622334480286, -0.2145000398159027, 0.04557543992996216, -0.09159031510353088, 0.25501954555511475, 0.14607831835746765, 0.10223226994276047, -0.054614923894405365, -0.22514237463474274, -0.1386621743440628, -0.15594524145126343, 0.2596387565135956, 0.6398417949676514, -0.1596975028514862, 0.019329862669110298, -0.059713371098041534, 0.0989735946059227, -0.3257511556148529, 0.14396865665912628, 0.1940477192401886, 0.1230144053697586, 0.06531037390232086, 0.3318016529083252, 0.18865661323070526, -0.27601099014282227, 0.23732736706733704, 0.03915662690997124, -0.05828036367893219, 0.02374676614999771, 0.030046207830309868, 0.42426517605781555, -0.18773587048053741, 0.03642137348651886, 0.0807890072464943, -0.3061772584915161, 0.0465175062417984, 0.15722563862800598, -0.17864558100700378, 0.33241450786590576, 0.0019510053098201752, 0.11264500021934509, 0.034659773111343384, 0.06423743069171906, 0.19509735703468323, 0.5865238904953003, 0.18504200875759125, 0.20693469047546387, 0.20673193037509918, 0.9195464253425598, -0.2328527420759201, -0.11460404843091965, -0.13541188836097717, 0.035009223967790604, -0.049071528017520905, -0.08676181733608246, -0.18535707890987396, -0.12608326971530914, -0.6465524435043335, -0.006562534719705582, -0.21916049718856812, -0.2349380999803543, 0.048342883586883545, -0.10413055121898651, -0.023077167570590973, -0.15411311388015747, -0.1227409616112709, 0.17327138781547546, 0.02636606991291046, -0.2002265453338623, 0.5447835922241211, 0.3501496911048889, 0.16106253862380981, 0.3163357675075531, 0.35899537801742554, 0.23565490543842316, 0.05849708244204521, -0.28881120681762695, -0.07731485366821289, 0.035361215472221375, -0.03274822235107422, -0.1684110015630722, 0.17582567036151886, 0.2914799451828003, 0.02384839579463005, 0.47666648030281067, 0.1364431381225586, -0.18216119706630707, 0.10386763513088226, 0.29283398389816284, -0.21924765408039093, -0.43409958481788635, 0.09284932911396027, -0.2955935597419739, -0.11441783607006073, 0.03553849458694458, -0.32661503553390503, -0.47011083364486694, 0.009292928501963615, -0.11198261380195618, -0.04664566367864609, 0.09330427646636963, -0.17915815114974976, 0.07459846138954163, -0.06781160831451416, 0.3681516647338867, 0.3919101357460022, -0.0638708621263504, -0.5281074643135071, -0.29093658924102783, -0.9105150103569031, 0.15490317344665527, -0.03459698334336281, 0.009966248646378517, -0.0678200051188469, 0.27441880106925964, 0.041002966463565826, 0.5458434820175171, -0.29276585578918457, -0.13713133335113525, -0.040146470069885254, 0.026954611763358116, -0.4682919383049011, -0.037360530346632004, 0.16128140687942505, 0.24617096781730652, 0.14537060260772705, -0.21039548516273499, 0.06874386966228485, -0.007441624067723751, -0.0943654328584671, 0.2047179639339447, -0.13683897256851196, -0.011128544807434082, 0.0808287188410759, 0.013045456260442734, 0.21240770816802979, 0.24370665848255157, -0.024469885975122452, -0.20173174142837524, -0.09418416023254395, 0.08764047920703888, -0.22094526886940002, -0.05399474501609802, -0.04688506945967674, 0.4760695993900299, -0.1297907680273056, 0.22176256775856018, 0.12179384380578995, -0.06631920486688614, 0.2436869591474533, 0.3196660280227661, -0.4072655141353607, 0.1899900585412979, -0.06538121402263641, 0.08460617810487747, -0.08957542479038239, 0.45687776803970337, 0.018443316221237183, 0.17819254100322723, -0.26976144313812256, -0.04153995215892792, 0.34437572956085205, -0.303149551153183, -0.11774998903274536, 0.10106612741947174, 0.03890891373157501, 0.02459077164530754, -0.21855682134628296, -0.6705431342124939, -0.025668784976005554, 0.3268134891986847, 0.14081478118896484, -0.09120987355709076, 0.1528160572052002, -0.039416853338479996, -0.3550902009010315, -0.15015922486782074, 0.28479528427124023, 0.2597687542438507, -0.17146503925323486, 0.25481244921684265, -0.3346364498138428 ]
https://github.com/huggingface/datasets/pull/169
Adding Qanta (Quizbowl) Dataset
This dataset was actually a special case. It helped us improve the dummy data instructions :-), see #195 .Close this PR and merge #194.
This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ```
24
text: Adding Qanta (Quizbowl) Dataset This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold) This partially continues a discussion around fixing dummy data from https://github.com/huggingface/nlp/issues/161 I ran the following code to double check that it works and did some sanity checks on the output. The majority of the code itself is from our `allennlp` version of the dataset reader. ```python import nlp # Default is full question data = nlp.load_dataset('./datasets/qanta') # Four configs # Primarily useful for training data = nlp.load_dataset('./datasets/qanta', 'mode=sentences,char_skip=25') # Primarily used in evaluation data = nlp.load_dataset('./datasets/qanta', 'mode=first,char_skip=25') data = nlp.load_dataset('./datasets/qanta', 'mode=full,char_skip=25') # Primarily useful in evaluation and "live" play data = nlp.load_dataset('./datasets/qanta', 'mode=runs,char_skip=25') ``` This dataset was actually a special case. It helped us improve the dummy data instructions :-), see #195 .Close this PR and merge #194.
[ 0.15039382874965668, 0.012567490339279175, -0.06003974378108978, 0.04728779196739197, -0.0956542044878006, -0.01972181349992752, 0.0875290259718895, 0.33592912554740906, 0.10572245717048645, -0.10866659879684448, 0.05346903204917908, 0.19256818294525146, -0.1875709444284439, 0.1940603256225586, 0.2986224889755249, -0.28973740339279175, 0.027945242822170258, 0.17428019642829895, -0.035352885723114014, -0.07272180914878845, -0.3321959972381592, 0.21487264335155487, -0.2805939316749573, -0.08142712712287903, 0.018745193257927895, -0.04821382462978363, -0.33242109417915344, 0.19019806385040283, -0.035558901727199554, -0.37712395191192627, 0.08890974521636963, 0.23832690715789795, -0.08098596334457397, 0.008289709687232971, -0.00010529736755415797, -0.34072303771972656, 0.3422592282295227, -0.10886600613594055, -0.4061433672904968, -0.060409367084503174, -0.008850432932376862, -0.03675214573740959, 0.11664462834596634, -0.005476891994476318, -0.2231399118900299, -0.37225842475891113, 0.2971205413341522, 0.05122486501932144, 0.577927827835083, 0.3998621702194214, 0.2858279049396515, 0.19616229832172394, 0.049766238778829575, -0.08436793088912964, 0.18625089526176453, -0.13939827680587769, -0.10495632141828537, 0.14250990748405457, 0.03293636813759804, -0.24369870126247406, -0.07782227545976639, 0.15817862749099731, 0.12478742003440857, -0.18902774155139923, -0.1513410210609436, 0.07162218540906906, 0.041347213089466095, -0.15067407488822937, 0.09737221896648407, 0.22145682573318481, 0.022559143602848053, -0.08106621354818344, -0.2602507472038269, -0.39949384331703186, 0.3490789234638214, -0.21288418769836426, -0.12118653208017349, 0.07436085492372513, -0.3296491205692291, 0.007657825946807861, -0.01422432903200388, -0.13768108189105988, -0.22587703168392181, 0.182498037815094, 0.11888153851032257, 0.2463611364364624, -0.08711390942335129, 0.0400996208190918, -0.0002931058406829834, 0.009302344173192978, -0.15143978595733643, -0.19299565255641937, -0.08359314501285553, 0.0379076711833477, -0.2983023226261139, -0.08431818336248398, 0.1996280550956726, 0.27067112922668457, 0.2849034368991852, 0.2098388373851776, 0.2812814712524414, 0.09387167543172836, -0.18166807293891907, -0.14141419529914856, 0.18263332545757294, 0.4489416480064392, 0.0826973021030426, -0.1005600169301033, -0.25241875648498535, 0.22119781374931335, 0.1493624597787857, 0.053884413093328476, 0.04272538423538208, 0.05374782532453537, -0.2542378902435303, -0.014143310487270355, 0.2974788546562195, -0.0030443742871284485, -0.38497859239578247, 0.22355951368808746, -0.27867329120635986, 0.0023917309008538723, -0.13458794355392456, 0.328846275806427, -0.18785060942173004, 0.3592669367790222, -0.23137368261814117, 0.45990705490112305, -0.017987040802836418, -0.3435033857822418, -0.15330374240875244, -0.14607134461402893, -0.2961824834346771, 0.1449839472770691, 0.1410798281431198, 0.20331300795078278, 0.35324153304100037, 0.11890812963247299, 0.07824473828077316, 0.037595391273498535, 0.2071399837732315, -0.18187165260314941, 0.3056580424308777, 0.0037249624729156494, 0.09967513382434845, 0.029751228168606758, 0.06578399240970612, -0.08508561551570892, 0.002595275640487671, 0.3795573115348816, 0.16976691782474518, 0.08855216205120087, -0.3185483515262604, 0.28407981991767883, -0.30902767181396484, -0.13655075430870056, 0.015461482107639313, 0.46415406465530396, -0.09275349229574203, -0.11674176156520844, 0.09710589051246643, -0.14512677490711212, -0.0787627100944519, -0.094862200319767, 0.08276595175266266, 0.4407106041908264, -0.2056266963481903, -0.0003998279571533203, -0.26256677508354187, 0.1634318083524704, 0.10778574645519257, 0.08570738136768341, -0.12216579169034958, 0.2554266154766083, -0.13548949360847473, 0.26027756929397583, 0.21862922608852386, -0.1647493541240692, -0.15590336918830872, 0.0016324814641848207, -0.09136779606342316, 0.39533260464668274, -0.003651358187198639, 0.11014598608016968, 0.013089457526803017, 0.11572038382291794, -0.08424432575702667, 0.30240678787231445, 0.01471294742077589, -0.051306381821632385, -0.38861334323883057, -0.22345204651355743, 0.22958016395568848, 0.2614809274673462, -0.08166122436523438, -0.038250572979450226, -0.21724653244018555, -0.1382419914007187, 0.34162652492523193, -0.04514585807919502, 0.11383751034736633, -0.0918997973203659, 0.2630791962146759, -0.09025157988071442, 0.1123872622847557, 0.012121707201004028, -0.3054427206516266, -0.18541541695594788, 0.013335458934307098, 0.4886208474636078, 0.17567472159862518, -0.039562977850437164, -0.5085757374763489, 0.047990746796131134, -0.36497610807418823, -0.6452839374542236, 0.26509079337120056, 0.3208712935447693, 0.04995647445321083, 0.0189957357943058, -0.20323523879051208, 0.30106598138809204, 0.2716464400291443, 0.10446684807538986, -0.40114662051200867, -0.16251938045024872, -0.14233237504959106, -0.019184421747922897, 0.18664082884788513, 0.48486506938934326, 0.06932377070188522, 0.07569334656000137, 0.21535080671310425, 0.25323158502578735, -0.09051178395748138, -0.03332538902759552, 0.268478661775589, -0.35572439432144165, 0.14731179177761078, -0.24975894391536713, -0.03487641364336014, 0.27683794498443604, 0.15992632508277893, -0.04984945431351662, -0.12602239847183228, 0.5195115208625793, 0.13367193937301636, 0.1125529557466507, -0.12486930191516876, 0.10315857827663422, -0.0630016028881073, -0.14010950922966003, -0.13071881234645844, -0.05910409241914749, 0.2914695739746094, 0.15209901332855225, 0.3083556890487671, -0.272613525390625, -0.4174012839794159, 0.3370414972305298, 0.16298677027225494, -0.1479184478521347, 0.10322031378746033, 0.20422938466072083, -0.1830565631389618, -0.2962513864040375, 0.17185933887958527, 0.13217034935951233, 0.45021945238113403, 0.40861302614212036, 0.034861378371715546, 0.09782717376947403, -0.2199353128671646, -0.41861194372177124, 0.14252439141273499, 0.06918873637914658, -0.27728271484375, 0.32330086827278137, 0.3894726037979126, 0.01316105481237173, -0.3688270151615143, 0.08694428205490112, -0.1876719892024994, 0.08929046988487244, -0.13442106544971466, 0.04790493845939636, -0.07203862071037292, -0.3613036870956421, -0.11248181760311127, -0.37782761454582214, -0.09750641882419586, -0.4975714385509491, 0.4568333625793457, -0.06392109394073486, -0.14579713344573975, 0.21472063660621643, 0.11984579265117645, 0.40940171480178833, -0.10049054771661758, 0.05938897281885147, -0.21270352602005005, -0.2716371417045593, -0.32942405343055725, 0.309703528881073, -0.011481260880827904, 0.045577794313430786, 0.42227450013160706, -0.2821385860443115, 0.03740707412362099, 0.023025207221508026, -0.3531821668148041, 0.15199142694473267, -0.2634146809577942, 0.721760630607605, 0.12824980914592743, 0.07225040346384048, -0.3280787467956543, -0.3114064931869507, 0.02076024003326893, -0.2712041139602661, -0.16334956884384155, -0.04517558962106705, -0.005472332239151001, 0.16487015783786774, -0.3938053548336029, -0.5388661623001099, 0.12518449127674103, -0.20958618819713593, 0.4375438094139099, 0.285167396068573, 0.15440717339515686, 0.499417245388031, -0.08355623483657837, 0.1977066844701767, -0.13118167221546173, -0.07009966671466827, -0.4628007411956787, -0.07180463522672653, 0.21629692614078522, -0.3148482143878937, -0.3866024613380432, -0.2660425007343292, -0.43178796768188477, 0.3754400610923767, -0.2512581944465637, -0.3870691657066345, -0.49548977613449097, 0.1365123689174652, 0.1715429127216339, 0.012927666306495667, 0.020288171246647835, -0.0354333221912384, -0.21787670254707336, -0.17653954029083252, -0.058450378477573395, 0.003880765289068222, 0.3465103209018707, 0.216673344373703, 0.207931786775589, -0.06888161599636078, 0.14216789603233337, -0.06465646624565125, 0.4930223822593689, 0.2154608517885208, 0.5837104916572571, 0.4302523136138916, -0.07768138498067856, 0.32185521721839905, -0.1706731915473938, -0.046771012246608734, 0.22577063739299774, -0.055781543254852295, 0.05908901244401932, 0.4018242359161377, 0.09191085398197174, 0.03619421645998955, -0.09730479121208191, 0.12285734713077545, -0.5123625993728638, -0.29857882857322693, 0.15603582561016083, -0.09377522766590118, -0.022850818932056427, 0.14050111174583435, -0.008057724684476852, -0.16459950804710388, -0.32470154762268066, -0.22187887132167816, -0.09092655777931213, 0.09001841396093369, -0.08350231498479843, -0.33104488253593445, 0.027183936908841133, -0.6452906727790833, 0.24013850092887878, -0.08777455985546112, 0.3602191209793091, -0.04111694172024727, -0.287456214427948, 0.2257605493068695, 0.015380075201392174, 0.6342618465423584, 0.13763229548931122, -0.3702414631843567, -0.08667144179344177, 0.31205588579177856, -0.35537734627723694, 0.05870271101593971, -0.2593373656272888, -0.20419882237911224, -0.04697050526738167, 0.08921977132558823, -0.36252111196517944, 0.11006507277488708, 0.3418523967266083, -0.02892090193927288, -0.10564170777797699, -0.19824907183647156, -0.2269178032875061, -0.39356812834739685, -0.2017771601676941, 0.10290177911520004, -0.013821423053741455, 0.27529940009117126, -0.24132154881954193, 0.19392956793308258, 0.13144074380397797, -0.023562688380479813, 0.3263847231864929, 0.29609358310699463, 0.1326303780078888, 0.07969111949205399, -0.07083238661289215, 0.1851262003183365, -0.35876306891441345, -0.30528441071510315, 0.28431975841522217, 0.15164807438850403, 0.2179139256477356, 0.09003757685422897, -0.11896877735853195, 0.43053463101387024, 0.45262569189071655, 0.08460651338100433, 0.14652639627456665, -0.43077826499938965, 0.07559472322463989, -0.14104261994361877, 0.17270910739898682, 0.2685672342777252, -0.1486155241727829, 0.15106700360774994, -0.3040599524974823, 0.22295865416526794, -0.18815499544143677, -0.1377977430820465, -0.10035395622253418, 0.24855643510818481, -0.06859566271305084, 0.5281664133071899, 0.11662004142999649, 1.0249500274658203, 0.06207364425063133, 0.46268147230148315, 0.6658520698547363, -0.2455044388771057, 0.48404091596603394, 0.01403278112411499, 0.09804825484752655, -0.35112765431404114, 0.25264763832092285, 0.1311236321926117, 0.018062833696603775, 0.02733701840043068, -0.11692190170288086, -0.38962268829345703, 0.42795616388320923, 0.06109000742435455, -0.00811183825135231, 0.2599999010562897, 0.15860378742218018, -0.2303953766822815, -0.04345167428255081, -0.4343200623989105, 0.22694280743598938, 0.0017064735293388367, 0.07559336721897125, -0.022397097200155258, -0.3736417293548584, -0.10418577492237091, -0.23324774205684662, -0.12731902301311493, 0.22153419256210327, -0.2270372360944748, -0.47254055738449097, 0.36846885085105896, -0.2647480368614197, -0.1993299275636673, 0.33920860290527344, 0.21637587249279022, -0.09935183823108673, -0.1925199329853058, 0.028031688183546066, -0.04553217440843582, -0.038557711988687515, 0.11288511753082275, -0.025245077908039093, 0.15014228224754333, -0.028509560972452164, -0.19395244121551514, 0.20564758777618408, 0.058835893869400024, 0.06904127448797226, -0.338187575340271, 0.16940024495124817, 0.2671439051628113, -0.14293614029884338, -0.17806567251682281, 0.04542853683233261, -0.0016745105385780334, -0.33391958475112915, 0.1977366954088211, -0.10634449124336243, -0.026156282052397728, -0.07907580584287643, 0.16528376936912537, -0.12226462364196777, -0.13360720872879028, 0.06959455460309982, 0.05585615709424019, 0.33342838287353516, 0.5776184797286987, 0.005937371402978897, -0.007950354367494583, -0.252738356590271, -0.1093878522515297, 0.06210440397262573, -0.4159882068634033, -0.04927286133170128, 0.12814128398895264, -0.1350003033876419, -0.040952328592538834, 0.02487841248512268, 0.0014555491507053375, -0.0031391531229019165, -0.07655029743909836, -0.3640618324279785, -0.06147424131631851, 0.21693001687526703, -0.15269440412521362, 0.07603254914283752, 0.29182037711143494, 0.1753913313150406, 0.27689218521118164, 0.2677516043186188, -0.41337475180625916, -0.23811833560466766, -0.287895530462265, 0.1729123890399933, -0.16560189425945282, -0.38069841265678406, 0.26019394397735596, 0.14349265396595, 0.18215824663639069, 0.0030940715223550797, -0.30391770601272583, -0.31103065609931946, -0.16555474698543549, 0.07829287648200989, 0.17903009057044983, -0.28957971930503845, -0.15766271948814392, 0.16130854189395905, 0.10557007789611816, 0.044543053954839706, -0.04826455935835838, -0.27060696482658386, -0.07049773633480072, 0.2668076455593109, -0.0003141574561595917, 0.1539880633354187, -0.053580742329359055, 0.08424849063158035, 0.04229746386408806, 0.032885171473026276, 0.017992835491895676, 0.031597800552845, -0.15686391294002533, -0.006648585200309753, 0.13468283414840698, 0.28174301981925964, 0.2610335052013397, 0.00551271066069603, 0.06359176337718964, -0.1318894922733307, -0.1356072723865509, -0.15457279980182648, 0.15523305535316467, 0.2410578727722168, -0.10502583533525467, -0.10372643172740936, 0.02205251157283783, 0.24292908608913422, -0.3751184046268463, 0.1926579475402832, 0.004665673710405827, -0.011450574733316898, 0.10874851047992706, 0.2439277619123459, 0.12483781576156616, -0.33518850803375244, 0.21653907001018524, 0.07082560658454895, -0.13728751242160797, -0.08585593849420547, -0.0011842423118650913, 0.33731892704963684, -0.2690843939781189, 0.030255567282438278, 0.22397446632385254, -0.113947793841362, -0.018337197601795197, 0.19814744591712952, -0.029616549611091614, 0.34175026416778564, 0.04364187642931938, 0.1248483955860138, 0.044832922518253326, 0.10889235138893127, 0.14235299825668335, 0.4766590893268585, 0.06855937838554382, 0.22382420301437378, 0.18034633994102478, 0.7240058183670044, 0.004704010207206011, 0.0024129580706357956, -0.19501705467700958, 0.004907552152872086, -0.0924544408917427, -0.13742049038410187, -0.2063651829957962, -0.07385469973087311, -0.7015953063964844, -0.08049590140581131, -0.2393069565296173, -0.19969730079174042, -0.03264644742012024, -0.1478145569562912, -0.1196579784154892, -0.30447661876678467, -0.37279167771339417, 0.23520630598068237, 0.023335739970207214, -0.13051839172840118, 0.4010598957538605, 0.19456934928894043, 0.23522989451885223, 0.29880285263061523, 0.4502992033958435, 0.17913879454135895, 0.17410564422607422, -0.42258012294769287, -0.11913052946329117, 0.04159562289714813, -0.02569909580051899, -0.09151200950145721, 0.3021247982978821, 0.4055030643939972, 0.17102724313735962, 0.34303513169288635, 0.2022622972726822, -0.25730109214782715, 0.1825050711631775, 0.34356796741485596, -0.10562832653522491, -0.34445831179618835, 0.07812400162220001, -0.20298442244529724, -0.08649258315563202, -0.11391033232212067, -0.10804935544729233, -0.43965470790863037, 0.1741309016942978, -0.05852541700005531, -0.13063205778598785, 0.05342305451631546, -0.356566458940506, 0.12890948355197906, -0.09977264702320099, 0.44819170236587524, 0.4050902724266052, 0.011072922497987747, -0.4159097671508789, -0.2839317321777344, -0.6531500816345215, 0.07789239287376404, 0.2816796898841858, 0.051495715975761414, 0.06737199425697327, -0.06499914079904556, -0.01590077579021454, 0.415280282497406, -0.46292370557785034, 0.008502006530761719, -0.23630985617637634, 0.12188774347305298, -0.35102078318595886, 0.12725596129894257, 0.22492147982120514, 0.12795236706733704, 0.07259334623813629, -0.14681607484817505, 0.15513426065444946, -0.08944735676050186, 0.0843144878745079, 0.17744477093219757, -0.09608513116836548, 0.06306865811347961, 0.19800379872322083, -0.08508990705013275, 0.3375004827976227, 0.17443765699863434, -0.1661674678325653, -0.04073121398687363, -0.22118273377418518, -0.18088698387145996, -0.2548655867576599, -0.10144146531820297, -0.10022559762001038, 0.39023831486701965, 0.22540269792079926, -0.028976265341043472, 0.25512591004371643, 0.013358077965676785, 0.2993292212486267, 0.2633117139339447, -0.41094908118247986, 0.2531920373439789, -0.16657355427742004, 0.1064896360039711, -0.18872132897377014, 0.26664602756500244, 0.008223891258239746, 0.1487206369638443, -0.17906126379966736, -0.28611046075820923, 0.4321112334728241, -0.2393200695514679, -0.2266853302717209, 0.029071051627397537, 0.05399984121322632, 0.06416574120521545, -0.3465093672275543, -0.6197513341903687, 0.028769977390766144, 0.22793732583522797, 0.08873376250267029, 0.05797335132956505, 0.2743755280971527, -0.058173660188913345, -0.12404614686965942, -0.12371864914894104, 0.35295382142066956, 0.2360164225101471, -0.06814675778150558, 0.22108453512191772, -0.33506035804748535 ]
https://github.com/huggingface/datasets/pull/152
Add GLUE config name check
If tests are being added, any guidance on where to add tests would be helpful! Tagging @thomwolf for review
Fixes #130 by adding a name check to the Glue class
19
text: Add GLUE config name check Fixes #130 by adding a name check to the Glue class If tests are being added, any guidance on where to add tests would be helpful! Tagging @thomwolf for review
[ -0.0668720155954361, -0.14878322184085846, -0.18587800860404968, 0.013815727084875107, -0.1136021763086319, -0.1901446431875229, 0.3154594600200653, 0.3517988920211792, 0.1935465782880783, 0.05581085383892059, 0.14359228312969208, 0.2194155603647232, 0.15034763514995575, 0.22275932133197784, 0.19098013639450073, 0.0750420093536377, -0.10821834951639175, 0.16975638270378113, -0.29501664638519287, 0.15841242671012878, -0.27488839626312256, 0.3374525308609009, -0.18389731645584106, 0.029781997203826904, -0.2806427776813507, 0.05853118747472763, 0.10168993473052979, 0.21066471934318542, -0.03279931843280792, -0.29273006319999695, -0.004587879404425621, 0.3807486295700073, -0.40184369683265686, 0.03110095113515854, -0.00009743022383190691, -0.004110865294933319, 0.36291444301605225, 0.09878266602754593, 0.03720599040389061, 0.39322787523269653, -0.20667389035224915, -0.21550732851028442, 0.06171116977930069, 0.014898158609867096, -0.004614604637026787, 0.36702147126197815, -0.2021866887807846, 0.018021635711193085, 0.023257486522197723, 0.08654657006263733, 0.3862323462963104, 0.25411561131477356, 0.3941449224948883, -0.09228519350290298, 0.4137752950191498, -0.2600405216217041, -0.08893835544586182, 0.33816292881965637, 0.3240121603012085, -0.22691528499126434, -0.01940399408340454, 0.3708028197288513, 0.06902328133583069, 0.1415172666311264, 0.003823373466730118, -0.2507154643535614, -0.03757905960083008, -0.2987646460533142, 0.09726861119270325, 0.14093178510665894, -0.03816380351781845, 0.016435440629720688, 0.06349439173936844, -0.14908230304718018, -0.01092163473367691, 0.19916178286075592, 0.45211130380630493, -0.2667921781539917, 0.0844203382730484, -0.07209615409374237, 0.05263965204358101, -0.32630985975265503, -0.008989762514829636, -0.10578231513500214, 0.11024218797683716, 0.23325888812541962, -0.1708604246377945, -0.06839367002248764, 0.13238194584846497, -0.12025679647922516, -0.3529224097728729, 0.13312149047851562, -0.1763668954372406, -0.06383778899908066, 0.029287364333868027, -0.1677333116531372, 0.18005941808223724, 0.07149439305067062, 0.09725885838270187, 0.19569315016269684, -0.19776508212089539, 0.394955575466156, 0.37816524505615234, 0.15842661261558533, -0.22356969118118286, 0.10240057110786438, 0.4513329565525055, 0.024321451783180237, 0.31997156143188477, 0.15777108073234558, -0.16467370092868805, -0.06536763161420822, -0.05574871599674225, -0.46039488911628723, -0.19945967197418213, -0.0950179323554039, 0.1262982040643692, -0.22599777579307556, -0.0007025748491287231, 0.12664930522441864, -0.09947900474071503, -0.13084790110588074, 0.15205426514148712, 0.3027494549751282, 0.11438296735286713, -0.05525895208120346, 0.2853888273239136, -0.04061584174633026, -0.09459100663661957, -0.032453689724206924, -0.160635307431221, 0.1357569545507431, -0.21126395463943481, -0.09112925082445145, 0.2647290825843811, 0.01879233866930008, 0.12180376797914505, -0.08469662815332413, -0.13232803344726562, -0.1059369146823883, 0.18977437913417816, 0.30950096249580383, 0.1335168331861496, 0.3700812757015228, -0.20746298134326935, -0.06714963167905807, 0.06094644218683243, -0.14773762226104736, -0.016219675540924072, -0.1056736633181572, 0.017010148614645004, -0.22934411466121674, -0.15361765027046204, 0.3845262825489044, -0.01725909486413002, -0.05049402266740799, 0.23901882767677307, -0.16947238147258759, -0.06743519753217697, 0.059262219816446304, 0.28928840160369873, 0.23983894288539886, 0.09247645735740662, -0.08978217840194702, 0.044876329600811005, 0.3701496124267578, -0.2637796700000763, -0.21512086689472198, 0.04934826120734215, -0.23136892914772034, -0.17339083552360535, -0.21125026047229767, 0.10482426732778549, -0.16841351985931396, -0.19142495095729828, 0.2250230759382248, 0.20129209756851196, -0.35138389468193054, -0.29446110129356384, 0.18502701818943024, -0.22977395355701447, -0.11005751043558121, 0.08227892220020294, -0.16880837082862854, -0.10045572370290756, 0.11460328102111816, 0.10143308341503143, 0.12773296236991882, -0.05988890677690506, -0.04111868515610695, -0.5897695422172546, 0.1086481362581253, -0.29975426197052, -0.012892359867691994, 0.0804845467209816, -0.005715422332286835, 0.04932132363319397, -0.10013221949338913, -0.0010439157485961914, 0.16063585877418518, -0.03849527984857559, 0.06458649784326553, 0.5859054327011108, 0.17437325417995453, 0.08941687643527985, 0.038200609385967255, -0.2995513379573822, 0.018789142370224, -0.17458702623844147, 0.07337992638349533, 0.11697237193584442, 0.04179198294878006, -0.2927931845188141, -0.08811631053686142, -0.12590937316417694, -0.3572780191898346, 0.37298548221588135, 0.2986757755279541, -0.0630774199962616, -0.15488038957118988, -0.09512254595756531, 0.37338364124298096, -0.3221637010574341, 0.21004168689250946, -0.07604241371154785, -0.04162490740418434, -0.23312176764011383, -0.13777630031108856, -0.011758377775549889, 0.08861587196588516, 0.013308171182870865, -0.2563658654689789, -0.05196516588330269, 0.5554085373878479, -0.20387914776802063, -0.042164355516433716, 0.24771252274513245, 0.054146721959114075, 0.003803746774792671, -0.1022636890411377, -0.05080348998308182, -0.2672441303730011, -0.12215899676084518, 0.057707615196704865, 0.12541040778160095, 0.1718558669090271, -0.1195254921913147, 0.15325585007667542, 0.0277993306517601, 0.05003896355628967, -0.1282876580953598, -0.2522515654563904, -0.1922178417444229, -0.2977694272994995, 0.1602701097726822, 0.10235434770584106, 0.49705785512924194, 0.07494540512561798, 0.0971335768699646, -0.1360870599746704, 0.13201816380023956, 0.03838719055056572, 0.2557014524936676, 0.02826097421348095, -0.03270244598388672, 0.12505781650543213, 0.009860062040388584, 0.48862209916114807, 0.2593250274658203, 0.17243734002113342, 0.03353244811296463, -0.025635061785578728, -0.019410721957683563, -0.14482448995113373, 0.30955082178115845, 0.03163301944732666, 0.024195238947868347, 0.23361080884933472, 0.059384752064943314, -0.18613845109939575, -0.2702884078025818, 0.10522431135177612, 0.01632620394229889, -0.12047016620635986, -0.3653610646724701, -0.18181081116199493, -0.07688364386558533, -0.10759297013282776, -0.034017447382211685, -0.14972326159477234, -0.29776498675346375, -0.3424767255783081, 0.31133443117141724, -0.14960601925849915, -0.308328777551651, 0.24403409659862518, 0.0478539802134037, 0.2945472002029419, -0.03499564155936241, -0.03315669298171997, -0.17262935638427734, 0.047866735607385635, -0.22574836015701294, 0.16751113533973694, 0.0764010101556778, -0.011593585833907127, 0.3985079526901245, -0.1879691183567047, 0.07763920724391937, 0.05469971150159836, -0.6354811787605286, 0.20350110530853271, -0.1448225975036621, 0.32308512926101685, 0.43930450081825256, 0.07477158308029175, 0.15375939011573792, -0.3354858458042145, 0.37976863980293274, -0.3009108006954193, -0.1314016878604889, -0.20743271708488464, 0.24692322313785553, 0.09017319232225418, -0.3265613913536072, -0.2553040385246277, 0.031259454786777496, -0.3766600787639618, 0.24734072387218475, -0.08762982487678528, -0.06239069998264313, 0.12003835290670395, -0.1804005652666092, 0.21097001433372498, -0.2905060052871704, 0.20123125612735748, -0.13548605144023895, -0.24160920083522797, 0.2200683355331421, -0.2447449266910553, -0.021634086966514587, -0.01998824253678322, -0.1830817461013794, 0.13044962286949158, -0.35664117336273193, -0.07930474728345871, -0.47790688276290894, -0.11638340353965759, -0.008286435157060623, 0.3628379702568054, 0.040767036378383636, 0.10746905952692032, 0.08862776309251785, -0.300540953874588, -0.3624300956726074, -0.2133733481168747, 0.23467203974723816, -0.09217112511396408, 0.18380483984947205, -0.025965742766857147, 0.018892977386713028, -0.03876015916466713, 0.07522886991500854, -0.22214634716510773, 0.11254957318305969, 0.21302753686904907, -0.1072145625948906, 0.27936145663261414, -0.013500429689884186, -0.22348372638225555, -0.2524755597114563, 0.07567571103572845, 0.11893656849861145, 0.12446898221969604, 0.07988844811916351, -0.13347510993480682, -0.2558143734931946, 0.007167194038629532, -0.009884603321552277, -0.26594051718711853, -0.06597162783145905, -0.02667739987373352, 0.11599065363407135, 0.0023624133318662643, -0.1766868680715561, 0.018381621688604355, 0.19833910465240479, 0.31633612513542175, 0.16419589519500732, -0.09022296220064163, -0.27174556255340576, -0.30630019307136536, -0.29051050543785095, -0.07902712374925613, 0.3442187011241913, -0.08696936815977097, 0.27090221643447876, -0.2160252183675766, -0.5222086906433105, -0.1548464298248291, 0.048071540892124176, 0.5981031656265259, -0.6107746362686157, -0.05492972582578659, 0.26946285367012024, 0.07361810654401779, 0.01528252474963665, -0.22164958715438843, -0.29631713032722473, -0.24782432615756989, 0.5292869210243225, -0.05673299729824066, -0.2478577196598053, 0.02531585656106472, 0.5475072860717773, -0.42366543412208557, 0.03464720770716667, 0.017066001892089844, -0.3402421772480011, 0.04474818706512451, -0.2534326910972595, 0.21942195296287537, 0.003913095220923424, -0.12052726000547409, 0.22101207077503204, 0.029606830328702927, 0.11381106078624725, -0.1384839564561844, 0.10882031172513962, 0.17149272561073303, 0.159203439950943, 0.045934341847896576, 0.05801801756024361, 0.00006044656038284302, 0.2540395259857178, -0.08269190788269043, 0.04618600383400917, -0.24127182364463806, 0.318537175655365, 0.15826469659805298, -0.15690387785434723, 0.45659562945365906, 0.2236880213022232, -0.03336264193058014, -0.04093208163976669, -0.07703769952058792, 0.250273197889328, -0.018355969339609146, 0.15498532354831696, 0.2453748881816864, 0.21973484754562378, 0.2698863744735718, 0.17660506069660187, 0.3846452534198761, 0.04496048763394356, -0.23366807401180267, 0.21530620753765106, 0.25216567516326904, -0.1894887089729309, 0.19351747632026672, -0.02041052281856537, 0.8665837049484253, 0.0981789082288742, -0.4387185275554657, -0.029114611446857452, -0.4289170503616333, 0.1029546782374382, -0.04588993638753891, 0.06220002844929695, -0.2223241776227951, -0.0464458204805851, 0.136643186211586, -0.023086316883563995, 0.22407427430152893, -0.006946757435798645, -0.3611881136894226, 0.10035169869661331, 0.060191720724105835, 0.18385076522827148, -0.15064312517642975, 0.23933729529380798, -0.08708036690950394, 0.07195654511451721, 0.19079488515853882, 0.2683165669441223, 0.1556384265422821, 0.4309980273246765, -0.18400821089744568, -0.05822887271642685, 0.280969500541687, -0.30505430698394775, -0.23817302286624908, -0.12051678448915482, -0.1965935230255127, -0.1516411006450653, 0.4442683756351471, 0.08532080054283142, -0.19169367849826813, -0.349170446395874, 0.08190777897834778, 0.3264213800430298, -0.11503295600414276, 0.3013758361339569, 0.49318334460258484, -0.036478735506534576, 0.13707618415355682, 0.14900586009025574, 0.05236135423183441, -0.144412562251091, -0.1482865959405899, -0.2172853648662567, -0.13675297796726227, -0.20528766512870789, -0.09814338386058807, 0.1578286588191986, 0.22114728391170502, -0.39309802651405334, 0.12576967477798462, 0.1938888132572174, -0.04062248766422272, -0.1553289294242859, 0.34601348638534546, -0.28412294387817383, -0.23423507809638977, 0.0028263628482818604, 0.20938675105571747, -0.26797786355018616, 0.03858911246061325, 0.07952165603637695, -0.3771584928035736, -0.07692835479974747, 0.10581056773662567, -0.019910339266061783, -0.2624770402908325, -0.3505091369152069, -0.22053366899490356, 0.08316951990127563, -0.16698113083839417, 0.06607575714588165, 0.0069524915888905525, -0.6641648411750793, 0.09282022714614868, 0.07927428185939789, 0.27465879917144775, 0.30707934498786926, 0.004933107644319534, 0.028417356312274933, -0.21245938539505005, 0.13667967915534973, -0.062182750552892685, 0.3807275891304016, -0.46064382791519165, 0.004191410727798939, 0.2651832401752472, 0.23075087368488312, -0.5106661319732666, -0.01889248937368393, -0.3333978056907654, -0.014976810663938522, 0.1392829865217209, -0.22758018970489502, 0.06876767426729202, -0.019690440967679024, 0.3529245853424072, 0.20541758835315704, -0.030109014362096786, -0.35457223653793335, 0.1488272249698639, 0.0396764874458313, -0.27251186966896057, 0.1234881654381752, 0.09139233082532883, 0.12611600756645203, -0.06502623856067657, 0.14875732362270355, -0.016971182078123093, -0.2642594277858734, 0.035959940403699875, 0.09825333207845688, -0.07405130565166473, -0.2756395936012268, 0.23940081894397736, 0.12033432722091675, -0.025630541145801544, 0.14599566161632538, -0.04893749579787254, -0.1433081030845642, -0.25849083065986633, -0.19318567216396332, 0.4316256046295166, 0.12792278826236725, -0.1310458481311798, -0.008370332419872284, -0.07084745913743973, -0.051877461373806, -0.332724392414093, 0.08916331082582474, 0.17594298720359802, 0.16240036487579346, -0.1259603351354599, 0.027660170570015907, -0.1899612843990326, 0.4411258101463318, -0.13416755199432373, 0.1774773746728897, 0.12272720038890839, -0.11520952731370926, 0.3951052725315094, 0.24860119819641113, 0.26840680837631226, -0.2224583625793457, 0.4236154556274414, 0.3835974931716919, 0.035708654671907425, -0.1831311732530594, -0.12909680604934692, 0.0835283100605011, -0.27659744024276733, -0.006729509681463242, 0.34814924001693726, -0.007316924631595612, 0.0502641387283802, -0.10564087331295013, 0.32651427388191223, 0.12006796896457672, 0.015625404193997383, 0.3698157072067261, 0.2721390426158905, 0.012250851839780807, 0.30733969807624817, 0.3900073170661926, 0.00784599781036377, 0.09865215420722961, 0.06074487045407295, 0.4183308780193329, -0.026795387268066406, -0.08920475840568542, -0.09457652270793915, 0.020768947899341583, -0.2791392207145691, -0.2869358956813812, -0.16101068258285522, -0.2506818175315857, -0.3112751245498657, -0.022513536736369133, 0.3028356730937958, 0.10458198189735413, 0.4586101472377777, 0.0958235114812851, 0.04484289884567261, -0.06048712879419327, 0.009627124294638634, -0.1863367259502411, 0.3932774066925049, -0.3460218608379364, 0.30517011880874634, -0.11544124782085419, 0.0013934597373008728, 0.2046618014574051, 0.3962516188621521, 0.257790744304657, -0.003021344542503357, -0.1356727033853531, -0.03488142415881157, -0.11427062749862671, -0.12039584666490555, -0.3015342354774475, 0.14052578806877136, 0.1063377633690834, 0.041051845997571945, 0.009318968281149864, 0.3337253928184509, -0.3656199872493744, -0.14849457144737244, -0.28551554679870605, -0.053670261055231094, 0.10720992088317871, 0.02682173252105713, 0.11659121513366699, -0.15149661898612976, -0.26517078280448914, -0.07364437729120255, -0.41207975149154663, -0.23122282326221466, 0.27455854415893555, -0.09824630618095398, 0.030547305941581726, -0.14886727929115295, 0.17446352541446686, 0.07712012529373169, 0.46328476071357727, 0.08424337208271027, -0.09482956677675247, -0.022787366062402725, -0.5085410475730896, -0.2963077425956726, 0.13300903141498566, -0.035618577152490616, -0.09551680088043213, 0.15616483986377716, 0.16734954714775085, 0.13622596859931946, -0.09136909246444702, 0.23759326338768005, -0.10950451344251633, -0.14647644758224487, -0.2590820789337158, -0.31561514735221863, 0.33216097950935364, 0.08935652673244476, -0.05851292610168457, 0.37480244040489197, -0.12333277612924576, 0.053250834345817566, -0.03473011404275894, 0.23552390933036804, 0.14540019631385803, -0.13695773482322693, 0.18552491068840027, 0.32394707202911377, 0.25314605236053467, 0.056122779846191406, 0.2796938419342041, -0.17810428142547607, -0.007438622415065765, -0.13151128590106964, -0.32283249497413635, -0.08131387829780579, 0.1179395392537117, -0.021357141435146332, -0.11820190399885178, 0.1320001780986786, -0.07872176170349121, -0.13457341492176056, 0.03757782652974129, 0.1783578246831894, 0.44566282629966736, -0.15446549654006958, -0.09274879842996597, 0.30143338441848755, 0.10803981125354767, -0.08837565034627914, 0.19085106253623962, -0.00428355485200882, -0.06294228881597519, -0.37389373779296875, -0.5522621870040894, 0.45427805185317993, -0.01911279186606407, -0.29499590396881104, -0.13787896931171417, 0.4561799466609955, 0.03847793862223625, -0.09507255256175995, -0.4683167338371277, -0.33090001344680786, 0.13278299570083618, 0.05664394050836563, -0.18706440925598145, 0.3324643075466156, 0.005615916568785906, 0.11880655586719513, 0.06727871298789978, 0.1672028750181198, 0.12544690072536469, 0.15880443155765533, -0.340745747089386, -0.1338278204202652 ]
https://github.com/huggingface/datasets/pull/152
Add GLUE config name check
Looks good to me. Is this compatible with the way we are doing tests right now @patrickvonplaten ?
Fixes #130 by adding a name check to the Glue class
18
text: Add GLUE config name check Fixes #130 by adding a name check to the Glue class Looks good to me. Is this compatible with the way we are doing tests right now @patrickvonplaten ?
[ -0.05876937881112099, -0.17834188044071198, -0.22939719259738922, -0.13517455756664276, -0.17385832965373993, -0.20433387160301208, 0.46683573722839355, 0.3972087800502777, 0.20910516381263733, 0.07343633472919464, 0.09565737843513489, 0.15986011922359467, 0.012331710197031498, 0.11337766796350479, 0.22427095472812653, 0.12117056548595428, -0.24392512440681458, 0.12755891680717468, -0.14976295828819275, 0.3270004391670227, -0.10685911029577255, 0.12922576069831848, -0.2317126989364624, 0.23547369241714478, -0.034510739147663116, 0.08971106261014938, -0.0008887350559234619, 0.0755595713853836, 0.05531945079565048, -0.14891472458839417, -0.039579227566719055, 0.5273255109786987, -0.31747472286224365, 0.03637398034334183, -0.00010519109491724521, 0.050167545676231384, 0.5862188935279846, -0.03315456584095955, 0.08377371728420258, 0.4699333906173706, -0.29973089694976807, -0.0296633243560791, -0.18709157407283783, -0.07946851849555969, -0.1306057572364807, 0.4333418607711792, -0.16170741617679596, -0.16911357641220093, -0.10765719413757324, -0.03657492622733116, 0.31283921003341675, 0.23102721571922302, 0.3569144606590271, 0.006928539834916592, 0.31949326395988464, -0.3072999119758606, -0.07960653305053711, 0.3716583549976349, 0.25698763132095337, -0.1352808177471161, 0.06289017200469971, 0.22745752334594727, 0.128693088889122, 0.10167302191257477, -0.029301315546035767, -0.20432202517986298, 0.03741629049181938, -0.07665766775608063, -0.037220388650894165, 0.33515286445617676, 0.04905012249946594, -0.013372637331485748, -0.10233511030673981, -0.0776573047041893, -0.13533182442188263, 0.2550177276134491, 0.36733677983283997, -0.3037562072277069, 0.025048796087503433, 0.08260330557823181, -0.018233560025691986, -0.4019522964954376, 0.014178656041622162, -0.1922295242547989, 0.16519317030906677, 0.285039484500885, -0.07599304616451263, 0.03203313425183296, 0.041285932064056396, -0.1224486231803894, -0.2161550521850586, 0.09710657596588135, -0.2687505781650543, -0.276396244764328, 0.005116909742355347, -0.26676011085510254, -0.061090074479579926, 0.14600838720798492, 0.23458445072174072, 0.28520649671554565, -0.26682552695274353, 0.2871304452419281, 0.357687383890152, 0.06464084982872009, -0.2048008292913437, 0.2280799150466919, 0.5122143626213074, 0.04143410176038742, 0.2453056424856186, 0.07145596295595169, -0.21177184581756592, -0.030549868941307068, -0.07095686346292496, -0.6653748750686646, -0.1821550875902176, 0.03134160861372948, 0.10208675265312195, -0.3270045816898346, -0.0053627341985702515, -0.053196027874946594, -0.2805500328540802, -0.19244946539402008, 0.18669594824314117, 0.42062193155288696, 0.19646042585372925, -0.09581706672906876, 0.2855105996131897, -0.18609042465686798, -0.09069337695837021, -0.0988684594631195, -0.0760040283203125, 0.1322556734085083, -0.11598549783229828, -0.09417382627725601, 0.05381392315030098, 0.0645470917224884, 0.06903250515460968, -0.29776161909103394, 0.2103215456008911, 0.00823226198554039, 0.07144495844841003, 0.4035896062850952, 0.26163652539253235, 0.32858747243881226, -0.16644346714019775, -0.1379687786102295, -0.09759244322776794, -0.1636485606431961, -0.1069299578666687, 0.05141248553991318, 0.148729145526886, -0.19430270791053772, 0.021367164328694344, 0.29097461700439453, -0.1948973834514618, -0.10182498395442963, 0.20569205284118652, -0.29751601815223694, 0.04660796746611595, -0.03608681261539459, 0.3595486581325531, 0.13922065496444702, 0.1484830528497696, 0.040894851088523865, 0.04672356694936752, 0.21522101759910583, -0.22970640659332275, -0.08273757249116898, 0.06427209079265594, -0.12548863887786865, -0.19422000646591187, -0.3153040409088135, 0.1097293272614479, -0.09078831225633621, -0.2663460671901703, 0.25859880447387695, 0.2539534568786621, -0.4066036343574524, -0.13390320539474487, 0.22902812063694, -0.17827072739601135, -0.21467675268650055, 0.2601863741874695, -0.22504007816314697, -0.20308054983615875, -0.00930678378790617, 0.17390331625938416, -0.061325810849666595, -0.07845257222652435, -0.054871752858161926, -0.5343136787414551, 0.13976052403450012, -0.017898548394441605, -0.08442952483892441, -0.07896211743354797, -0.11324230581521988, -0.1123429611325264, -0.01114584505558014, 0.15655295550823212, 0.04119826853275299, -0.08934717625379562, -0.03297466039657593, 0.7260902523994446, -0.042402513325214386, 0.0058658975176513195, 0.14817383885383606, -0.26561877131462097, 0.07104920595884323, -0.08473263680934906, 0.025813398882746696, 0.2791881561279297, -0.13454964756965637, -0.18337100744247437, -0.23853768408298492, -0.12038177251815796, -0.22067764401435852, 0.27785971760749817, 0.2470981776714325, 0.07917295396327972, -0.44365012645721436, -0.05336347222328186, 0.28511354327201843, -0.298817902803421, 0.10633924603462219, -0.16569207608699799, -0.02753177285194397, -0.17691922187805176, 0.08359770476818085, -0.056512076407670975, -0.05173541605472565, -0.011012360453605652, -0.3165023624897003, 0.05229545757174492, 0.5094498991966248, -0.025955846533179283, -0.21614386141300201, 0.26254329085350037, 0.10968515276908875, -0.10449493676424026, -0.08670243620872498, -0.03039446659386158, -0.28973904252052307, -0.23909860849380493, 0.0483199805021286, -0.006950683891773224, 0.3905888795852661, -0.06187456473708153, 0.11744456738233566, -0.0662122443318367, -0.03937358409166336, 0.03254486620426178, -0.2463158518075943, -0.5767428278923035, 0.05928325653076172, 0.19778650999069214, 0.07096746563911438, 0.37405043840408325, -0.0768144279718399, 0.12122076749801636, -0.24747151136398315, -0.06600715219974518, -0.12692561745643616, 0.15521755814552307, -0.02447829395532608, 0.18509657680988312, 0.14760702848434448, -0.001855967566370964, 0.3955579996109009, 0.34803280234336853, 0.179302379488945, -0.06216561421751976, 0.02926456183195114, -0.023512642830610275, -0.05304345116019249, 0.23227345943450928, 0.12165695428848267, 0.03183145821094513, 0.02208559587597847, -0.07510059326887131, -0.21124139428138733, -0.12422919273376465, 0.1361299604177475, 0.07971802353858948, -0.10116884857416153, -0.5311181545257568, -0.008671991527080536, 0.1764720380306244, -0.17540153861045837, -0.23695862293243408, -0.06510458141565323, -0.30502283573150635, -0.3183337450027466, 0.20446744561195374, -0.3761042058467865, -0.3659677803516388, 0.30825936794281006, 0.06040067598223686, 0.461151123046875, -0.05517212301492691, -0.2941811978816986, -0.0964994728565216, 0.14098893105983734, -0.20009684562683105, 0.19090737402439117, 0.06777967512607574, -0.07073663175106049, 0.5792580842971802, -0.13530094921588898, -0.11122661083936691, 0.09690962731838226, -0.556822657585144, 0.1804724931716919, -0.22519592940807343, 0.3111419081687927, 0.5143567323684692, 0.034474100917577744, 0.28283125162124634, -0.2882317304611206, 0.2143961787223816, -0.39631250500679016, -0.3310111463069916, -0.4098467230796814, 0.4389309287071228, 0.0908593088388443, -0.333367258310318, -0.25934848189353943, 0.0852888897061348, -0.22412799298763275, 0.28272944688796997, 0.006620824337005615, -0.11181777715682983, 0.06226447969675064, -0.3448928892612457, 0.1326226443052292, -0.188624769449234, -0.03439091145992279, -0.1943998783826828, -0.14628900587558746, -0.04219328239560127, -0.07072154432535172, 0.091128870844841, -0.2084977924823761, -0.25856709480285645, 0.2281511425971985, -0.33435964584350586, 0.12199902534484863, -0.5727034211158752, -0.05378379672765732, -0.06692589074373245, 0.539508581161499, 0.07092929631471634, -0.037823423743247986, 0.02452951855957508, -0.21043027937412262, -0.24130523204803467, -0.1654757559299469, 0.22055110335350037, -0.005778472870588303, 0.19792434573173523, 0.20930495858192444, 0.00224468857049942, -0.06150408834218979, 0.09669729322195053, -0.06714148074388504, 0.04441232606768608, -0.06697618961334229, -0.2366510033607483, 0.22597762942314148, 0.030192144215106964, -0.056126438081264496, -0.09386797994375229, 0.16593565046787262, -0.20253752171993256, 0.09331145882606506, -0.07827028632164001, -0.09103935956954956, -0.2431027889251709, 0.236734539270401, -0.03809094429016113, -0.3374982476234436, 0.011430609039962292, -0.17920362949371338, -0.020013220608234406, 0.009822823107242584, -0.17657461762428284, 0.1648055762052536, 0.037514589726924896, 0.4246590733528137, 0.22168853878974915, 0.06891852617263794, -0.3225161135196686, -0.4258344769477844, -0.07954069972038269, -0.06845252960920334, 0.6069363951683044, 0.06983599811792374, 0.367184042930603, 0.018023516982793808, -0.39381158351898193, -0.23487605154514313, -0.14043761789798737, 0.6319951415061951, -0.608999490737915, 0.09150966256856918, 0.3193099796772003, 0.03025783598423004, 0.05974908173084259, -0.3143308758735657, -0.40199393033981323, -0.42334941029548645, 0.46511098742485046, -0.10860954225063324, -0.38999608159065247, 0.04661889746785164, 0.5010053515434265, -0.3252684772014618, -0.03946610540151596, -0.11844351887702942, -0.23936842381954193, 0.03510293364524841, -0.18847723305225372, 0.20872169733047485, 0.15698763728141785, -0.21666133403778076, 0.04928020387887955, 0.07007113099098206, 0.09995986521244049, -0.17195525765419006, 0.26918524503707886, 0.06102672591805458, 0.12753063440322876, 0.08910214155912399, 0.05750645324587822, 0.0647316426038742, 0.31577280163764954, -0.19268082082271576, 0.10464473813772202, -0.43177467584609985, 0.413642942905426, 0.02227131463587284, -0.17805589735507965, 0.5661640763282776, 0.27477461099624634, -0.08052460849285126, -0.11862040311098099, -0.06482625752687454, 0.129808709025383, -0.1897728592157364, 0.18182925879955292, 0.21244831383228302, 0.19186292588710785, 0.24040047824382782, -0.059609584510326385, 0.4053107500076294, 0.05404309555888176, -0.19650337100028992, 0.33542534708976746, 0.33144932985305786, -0.2914617657661438, 0.00014561321586370468, 0.08753585815429688, 0.930340051651001, 0.1194472387433052, -0.3406134247779846, 0.01976095885038376, -0.3346593976020813, 0.09605217725038528, -0.12377426773309708, 0.055606991052627563, -0.3681459426879883, -0.09961465746164322, 0.1256222128868103, -0.13667094707489014, 0.2188018262386322, 0.12857791781425476, -0.406100869178772, 0.23398558795452118, 0.011354923248291016, 0.21329720318317413, -0.11165475100278854, 0.2949395179748535, 0.1298711895942688, 0.21656472980976105, 0.0776795968413353, 0.16374537348747253, 0.1982824057340622, 0.37593889236450195, -0.20799103379249573, -0.027530338615179062, 0.19619709253311157, -0.3038334250450134, -0.31707704067230225, -0.24459433555603027, -0.2103923261165619, -0.16723042726516724, 0.412232369184494, 0.26296740770339966, -0.16830521821975708, -0.33470723032951355, 0.10870897769927979, 0.4538207948207855, -0.012636354193091393, 0.2760423421859741, 0.43394768238067627, 0.11105239391326904, 0.23593829572200775, 0.04984256252646446, 0.10346795618534088, -0.14427267014980316, -0.14005501568317413, -0.16393205523490906, -0.1924809068441391, -0.4988061785697937, -0.04062340408563614, 0.03906795382499695, 0.2506234049797058, -0.5803182125091553, 0.022511186078190804, 0.15978191792964935, -0.11870798468589783, -0.08323103189468384, 0.2303248643875122, -0.10571199655532837, -0.3671932518482208, 0.02052639052271843, 0.4188673496246338, -0.3020422160625458, 0.19810116291046143, -0.05412597209215164, -0.46607011556625366, -0.04530665650963783, -0.03574291616678238, -0.27186429500579834, -0.2024434208869934, -0.19214913249015808, -0.12436118721961975, 0.26229050755500793, -0.05932919681072235, 0.026629537343978882, 0.042783223092556, -0.5737941861152649, 0.0008325303788296878, 0.15123726427555084, 0.44389939308166504, 0.38592246174812317, 0.0014406368136405945, 0.11559298634529114, -0.036610327661037445, 0.17546346783638, 0.053845904767513275, 0.6107670068740845, -0.2802501320838928, -0.027077823877334595, 0.008864831179380417, 0.11048932373523712, -0.4336351156234741, -0.255489706993103, -0.2449561208486557, -0.021298691630363464, 0.0917540118098259, -0.016974471509456635, 0.11025886982679367, 0.0002793818712234497, 0.32751885056495667, 0.2546607255935669, 0.06643408536911011, -0.31214818358421326, 0.1839134395122528, 0.06713491678237915, -0.18541938066482544, 0.07598797976970673, 0.10813447088003159, 0.01858135312795639, 0.07404312491416931, 0.18154852092266083, 0.01750556379556656, -0.18939608335494995, 0.1858861893415451, 0.1714770346879959, 0.011225048452615738, -0.3876582086086273, 0.015432417392730713, 0.21749375760555267, 0.022296477109193802, 0.1388278603553772, 0.05731819197535515, 0.012770067900419235, -0.24667786061763763, -0.04259791225194931, 0.44414567947387695, 0.25568267703056335, -0.12178494036197662, 0.0643448680639267, -0.34898167848587036, -0.030040085315704346, -0.34288427233695984, 0.02081661857664585, 0.46671682596206665, 0.44750702381134033, -0.2986147403717041, -0.05481920391321182, -0.05633237212896347, 0.3544444441795349, -0.11818282306194305, 0.16722644865512848, 0.05231522023677826, -0.09763631224632263, 0.41265588998794556, 0.48893147706985474, 0.23499661684036255, -0.1034737378358841, 0.32479092478752136, 0.17955869436264038, 0.021576136350631714, -0.04722566902637482, -0.1450224369764328, 0.06853154301643372, -0.434399276971817, -0.025514613837003708, 0.3881944417953491, -0.10332642495632172, 0.08072075247764587, -0.04688432067632675, 0.5320028066635132, 0.21709777414798737, -0.07333739846944809, 0.4427061975002289, 0.22074022889137268, 0.13560950756072998, 0.4478466510772705, 0.2890855073928833, 0.037045978009700775, 0.1265474408864975, 0.28303664922714233, 0.3361336290836334, -0.024264831095933914, -0.07995983958244324, -0.009501473978161812, -0.17752161622047424, -0.039250560104846954, -0.36772510409355164, 0.05399426817893982, -0.2127777338027954, -0.1848965436220169, -0.06368553638458252, 0.23010952770709991, 0.07346001267433167, 0.298281729221344, 0.0251883864402771, 0.26483154296875, 0.23416566848754883, 0.16343960165977478, -0.22433683276176453, 0.33541032671928406, -0.49893808364868164, 0.17285862565040588, -0.1917283982038498, 0.06848963350057602, 0.3010987639427185, 0.31084007024765015, 0.24328449368476868, -0.1953829973936081, -0.051485877484083176, -0.33115920424461365, -0.24993492662906647, -0.031885065138339996, -0.33690398931503296, 0.16951948404312134, 0.1644141525030136, -0.202367901802063, 0.20742860436439514, 0.2849641442298889, -0.26276615262031555, -0.10810108482837677, -0.08337929844856262, -0.2159828394651413, -0.12120507657527924, 0.16508351266384125, 0.09565829485654831, -0.05574693903326988, -0.25763368606567383, 0.08004898577928543, -0.22369727492332458, -0.1721331775188446, 0.12155024707317352, -0.18000662326812744, 0.09939610958099365, 0.18539580702781677, 0.13512122631072998, 0.09364308416843414, 0.38365495204925537, 0.04285596311092377, -0.005500279366970062, -0.13732795417308807, -0.37241268157958984, -0.29882746934890747, 0.10061977803707123, 0.055433884263038635, -0.08245841413736343, 0.1683853566646576, 0.22329145669937134, 0.3583212196826935, -0.029506586492061615, 0.1569937765598297, -0.2449684590101242, -0.15010547637939453, -0.2365160882472992, -0.37643343210220337, 0.23386526107788086, 0.11910409480333328, -0.025082038715481758, 0.5157963633537292, -0.3043616712093353, -0.105214923620224, -0.04305046424269676, 0.11763762682676315, 0.11772606521844864, -0.07943878322839737, 0.3943879008293152, 0.32532623410224915, 0.13027149438858032, -0.004308607429265976, 0.5990877747535706, -0.013679120689630508, -0.020584600046277046, 0.022590216249227524, -0.16843147575855255, -0.08244667202234268, 0.17782875895500183, -0.2107030600309372, -0.22592562437057495, 0.3323274552822113, -0.036329273134469986, -0.2170601636171341, 0.0015158907044678926, 0.23526979982852936, 0.4025452733039856, -0.11938294768333435, -0.15018227696418762, 0.1425580084323883, -0.012921374291181564, -0.036237992346286774, 0.10681447386741638, -0.11226227879524231, -0.17994087934494019, -0.3005256950855255, -0.25726422667503357, 0.5267516374588013, 0.12197040766477585, -0.2635023295879364, -0.18873600661754608, 0.4377344250679016, -0.010497041046619415, -0.0781819224357605, -0.5665467977523804, -0.3291032910346985, 0.2560533881187439, -0.002018142491579056, -0.07434186339378357, 0.3214430809020996, 0.11946971714496613, 0.14333748817443848, 0.03314002975821495, 0.14083680510520935, 0.03480283170938492, 0.3224523663520813, -0.5077730417251587, -0.2610603868961334 ]
https://github.com/huggingface/datasets/pull/152
Add GLUE config name check
If the tests pass it should be fine :-) @Bharat123rox could you check whether the tests pass locally via: `pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_glue`
Fixes #130 by adding a name check to the Glue class
21
text: Add GLUE config name check Fixes #130 by adding a name check to the Glue class If the tests pass it should be fine :-) @Bharat123rox could you check whether the tests pass locally via: `pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_glue`
[ -0.14338010549545288, -0.1123887151479721, -0.17459756135940552, -0.07196620106697083, 0.22608444094657898, -0.014449618756771088, 0.5154666304588318, 0.4216268062591553, 0.0907893031835556, 0.08773913234472275, 0.04385097324848175, 0.27898263931274414, -0.02199115976691246, 0.22280506789684296, -0.02932419627904892, 0.12852518260478973, -0.18446162343025208, 0.17008501291275024, -0.2217942774295807, 0.07350684702396393, -0.25794780254364014, 0.1329161673784256, -0.03380224481225014, -0.043835774064064026, -0.11511297523975372, 0.1053113341331482, 0.02952808327972889, 0.1899794042110443, 0.030682764947414398, -0.41734573245048523, 0.21385928988456726, 0.37578141689300537, -0.28478875756263733, 0.18519222736358643, -0.00010064119123853743, 0.06528913974761963, 0.38934212923049927, -0.054531529545784, -0.15000224113464355, 0.1913270801305771, 0.027280062437057495, -0.08550288528203964, 0.21098396182060242, -0.3201099634170532, -0.21687886118888855, 0.0905967429280281, -0.24166719615459442, -0.1827356070280075, 0.14356034994125366, 0.27942800521850586, 0.3932458758354187, 0.4494698643684387, 0.08567795157432556, -0.13098259270191193, 0.153946191072464, -0.1632588505744934, -0.02797694317996502, 0.29900187253952026, 0.20803797245025635, -0.14453673362731934, -0.043795473873615265, 0.2564760744571686, -0.007339520379900932, 0.27156776189804077, -0.13601255416870117, -0.18119196593761444, -0.0325971320271492, -0.2768195569515228, 0.036318354308605194, -0.0094284787774086, 0.18510696291923523, -0.3326164782047272, -0.0035037794150412083, -0.047879986464977264, 0.041597623378038406, 0.0867924615740776, 0.21000266075134277, -0.07940169423818588, -0.07542367279529572, 0.019579576328396797, -0.06647875905036926, -0.2060929536819458, -0.15671205520629883, -0.053516365587711334, -0.09425445646047592, -0.004269950091838837, 0.008020619861781597, 0.033205047249794006, -0.050524454563856125, -0.03932083398103714, -0.1126517578959465, 0.1499880999326706, -0.08973647654056549, -0.052599430084228516, -0.0537533275783062, -0.21166257560253143, 0.14579884707927704, -0.05130017548799515, 0.17219537496566772, 0.1264670491218567, -0.28363871574401855, 0.21324127912521362, 0.28755584359169006, 0.18417760729789734, -0.0945882797241211, 0.03887861967086792, 0.3645939528942108, 0.2687138020992279, 0.33019083738327026, 0.04615717753767967, -0.28740444779396057, 0.047866154462099075, 0.027204282581806183, -0.4702228605747223, -0.007160812616348267, 0.025797897949814796, 0.3256427049636841, -0.38015562295913696, -0.11845331639051437, 0.056646522134542465, -0.08498655259609222, 0.061699382960796356, -0.04993784800171852, 0.3261353671550751, 0.14740464091300964, -0.16022342443466187, 0.042520225048065186, 0.06302465498447418, -0.2084830105304718, 0.0712297111749649, -0.21663381159305573, 0.025736026465892792, -0.039958223700523376, 0.0022705746814608574, 0.35221388936042786, -0.04670843109488487, 0.3276650309562683, -0.07001902163028717, 0.07678329944610596, -0.03788486868143082, 0.15446333587169647, 0.1263304203748703, 0.02822655439376831, 0.47633248567581177, -0.028107430785894394, 0.08542409539222717, 0.15620428323745728, -0.02671927772462368, -0.11137567460536957, 0.16606473922729492, -0.15591588616371155, -0.48073092103004456, 0.13856175541877747, 0.40709400177001953, -0.2842683792114258, 0.010332698002457619, 0.09022749960422516, -0.30301061272621155, 0.028982676565647125, -0.1691284030675888, 0.11809524148702621, -0.31294941902160645, 0.09586188197135925, -0.21698340773582458, 0.2326909899711609, 0.35533463954925537, -0.2950664460659027, -0.09690634161233902, 0.12906882166862488, -0.1925494372844696, -0.06265657395124435, -0.05080723389983177, -0.11466960608959198, -0.15020740032196045, -0.27669426798820496, 0.36207330226898193, 0.09795896708965302, -0.4596754312515259, -0.3548850417137146, 0.1871553212404251, -0.14754566550254822, -0.12023667991161346, -0.03098822385072708, -0.11207891255617142, 0.06332579255104065, 0.053167954087257385, -0.09942002594470978, 0.22563491761684418, -0.0495145246386528, 0.0612797886133194, -0.5465573072433472, -0.0801021084189415, 0.13370612263679504, 0.057090532034635544, 0.12062175571918488, -0.16090399026870728, 0.12874828279018402, -0.13002614676952362, 0.2577645182609558, 0.0005771927535533905, -0.057425543665885925, 0.059977561235427856, 0.6501029133796692, -0.08074900507926941, 0.2070772498846054, -0.0013026390224695206, -0.33452802896499634, 0.18260326981544495, 0.033284351229667664, 0.1939244270324707, -0.15432564914226532, -0.13553912937641144, -0.2906128466129303, -0.11560957878828049, -0.3093091547489166, -0.3842166066169739, 0.33337098360061646, 0.09985627233982086, -0.04672094061970711, -0.048412811011075974, -0.06423185020685196, 0.2005908340215683, -0.1620325744152069, 0.10888949781656265, 0.005132131278514862, 0.19933009147644043, -0.13788121938705444, -0.08498825877904892, 0.05311564356088638, 0.1404731571674347, 0.20552724599838257, -0.32455354928970337, -0.11727482825517654, 0.3804510831832886, 0.13373911380767822, 0.03945637494325638, 0.19451242685317993, -0.10520760715007782, 0.03473895788192749, -0.17259345948696136, -0.11200527101755142, -0.01603420078754425, -0.03333498165011406, -0.07846113294363022, 0.1806686520576477, 0.3012996315956116, 0.0008703842759132385, 0.282421737909317, 0.03572797030210495, 0.07146263867616653, 0.20189441740512848, -0.0960012823343277, -0.04942265897989273, -0.23697005212306976, 0.23807744681835175, 0.18123966455459595, 0.4520147740840912, 0.045643605291843414, 0.06615154445171356, 0.0360337570309639, 0.042448192834854126, 0.004352506250143051, -0.046877421438694, 0.010315965861082077, -0.16296231746673584, 0.09505876153707504, 0.19175118207931519, 0.39754152297973633, 0.5078836679458618, 0.24018993973731995, -0.060423318296670914, 0.009190401062369347, -0.06116528809070587, -0.27251356840133667, 0.19843345880508423, -0.009199284017086029, 0.12533651292324066, 0.22702541947364807, 0.16768787801265717, -0.2543196380138397, -0.45277243852615356, 0.07982617616653442, 0.12385084480047226, 0.09931790828704834, -0.3390878736972809, -0.1285853087902069, -0.12324024736881256, -0.138255774974823, 0.009069805964827538, -0.2509203255176544, -0.20589670538902283, -0.3856354355812073, 0.2584798336029053, -0.11107209324836731, -0.2277943193912506, 0.262968510389328, 0.02580690011382103, 0.2809002995491028, 0.09284229576587677, -0.3177168667316437, -0.09590581059455872, -0.26125165820121765, -0.14535340666770935, 0.21543148159980774, 0.007598324678838253, 0.010699203237891197, 0.49745461344718933, -0.03953889012336731, -0.16198883950710297, -0.05204299837350845, -0.3441029489040375, 0.11443022638559341, -0.09642918407917023, 0.5081195831298828, 0.25325077772140503, 0.16762498021125793, 0.2476978749036789, -0.15399585664272308, 0.4928008019924164, -0.29858142137527466, -0.1440701186656952, 0.013667412102222443, 0.28076696395874023, 0.08262793719768524, -0.3536892533302307, -0.532980740070343, -0.33416223526000977, -0.27070149779319763, 0.0662953183054924, -0.008736446499824524, 0.09633171558380127, 0.14993929862976074, -0.10753203183412552, 0.09597108513116837, -0.22288885712623596, 0.062339358031749725, -0.1364785134792328, -0.13337306678295135, 0.06027061492204666, -0.43594449758529663, -0.346996545791626, -0.111491858959198, 0.04818272590637207, 0.2182622104883194, -0.06908019632101059, -0.23577232658863068, -0.6328474283218384, -0.06791561096906662, 0.20179636776447296, 0.18299812078475952, -0.056609153747558594, 0.10591726750135422, 0.1860746443271637, -0.17158262431621552, -0.27655771374702454, 0.042611319571733475, 0.2850959002971649, -0.004377208650112152, -0.19064205884933472, -0.07617579400539398, 0.18822911381721497, -0.14555573463439941, 0.31326913833618164, -0.034569285809993744, 0.03404399752616882, 0.21018682420253754, -0.27816689014434814, 0.2883531451225281, -0.058683864772319794, -0.36313143372535706, 0.07326393574476242, -0.07694786787033081, -0.08754673600196838, 0.09972013533115387, -0.02545636147260666, -0.07711733132600784, -0.118594691157341, 0.15903165936470032, -0.19779884815216064, -0.3437310755252838, -0.08125876635313034, -0.040619827806949615, 0.0741516649723053, 0.06283730268478394, -0.043012723326683044, -0.0538744181394577, 0.0457560159265995, 0.2621931731700897, 0.26656341552734375, -0.01750725507736206, -0.10931243747472763, -0.12380030751228333, -0.22488246858119965, -0.26593145728111267, 0.2257530391216278, -0.07333674281835556, 0.3697516620159149, -0.176274836063385, -0.24243056774139404, -0.056559860706329346, -0.0752742737531662, 0.4377397298812866, -0.31277701258659363, 0.12614460289478302, 0.39510831236839294, -0.1733996868133545, -0.2499075084924698, -0.23732076585292816, -0.4615132212638855, -0.008938846178352833, 0.12362846732139587, 0.247710183262825, -0.19965049624443054, -0.07058980315923691, 0.23783966898918152, 0.07805196195840836, -0.1202964335680008, -0.15509133040905, -0.29696348309516907, -0.22258597612380981, -0.29336458444595337, 0.08278682082891464, -0.04296654462814331, 0.16984663903713226, -0.26788529753685, -0.042655959725379944, -0.06427668780088425, -0.25733330845832825, 0.13915061950683594, 0.20460927486419678, 0.38526254892349243, -0.18282492458820343, 0.23569175601005554, 0.02078191563487053, 0.16726993024349213, 0.3059387505054474, 0.2017141878604889, -0.23771953582763672, 0.3861020803451538, -0.03939036279916763, -0.20697654783725739, 0.4760628938674927, 0.20689451694488525, -0.2454765886068344, 0.21226751804351807, -0.48104605078697205, 0.17900612950325012, -0.10245396196842194, 0.3030197024345398, 0.1898883730173111, 0.13871408998966217, 0.16845504939556122, -0.05603291839361191, 0.18166399002075195, 0.04035970941185951, -0.1430683434009552, 0.2755332887172699, 0.10726355761289597, -0.3418397903442383, 0.2117435336112976, -0.10584358125925064, 0.6245693564414978, 0.11331425607204437, -0.13262256979942322, 0.2581760585308075, -0.022633371874690056, 0.1219831258058548, -0.08814379572868347, 0.04701091721653938, -0.35934606194496155, -0.2741154730319977, 0.12848277390003204, -0.18170477449893951, 0.27887994050979614, -0.04787849634885788, -0.21861150860786438, 0.11591380834579468, -0.003973960876464844, 0.2193642556667328, -0.06349128484725952, 0.14744000136852264, 0.07860209792852402, 0.10362331569194794, -0.09206228703260422, 0.3174086809158325, 0.09145019948482513, 0.3544260263442993, -0.10720694065093994, -0.0004279334098100662, 0.29847103357315063, -0.2768815755844116, -0.18081992864608765, -0.03670531138777733, -0.29271894693374634, 0.08308351039886475, 0.058696895837783813, -0.1187015175819397, -0.09507328271865845, -0.17184872925281525, 0.03841916099190712, 0.39426544308662415, -0.17994701862335205, 0.027750443667173386, 0.37362563610076904, -0.05236481875181198, 0.13082553446292877, 0.05052179470658302, 0.20790500938892365, -0.2642503082752228, -0.23889601230621338, 0.0020014867186546326, -0.11550281196832657, -0.2603444457054138, -0.0205276757478714, -0.03734502196311951, 0.17439359426498413, -0.4600398540496826, -0.13052450120449066, -0.0762704610824585, 0.00037111714482307434, -0.2974967956542969, 0.27915430068969727, -0.02309063822031021, -0.2748715281486511, 0.27378028631210327, 0.1805284470319748, -0.32852426171302795, -0.06806173920631409, 0.04490290954709053, -0.17095699906349182, -0.021022716537117958, 0.36007001996040344, -0.09196352958679199, -0.16063889861106873, -0.3825586140155792, -0.12734228372573853, 0.24246211349964142, -0.21456125378608704, 0.11260595172643661, 0.10403506457805634, -0.23885035514831543, 0.055072613060474396, 0.0869257003068924, 0.22761236131191254, 0.18582448363304138, -0.055275868624448776, -0.3320152759552002, -0.2949622571468353, 0.2000640481710434, 0.05794095620512962, 0.3851601481437683, -0.14614912867546082, 0.16605564951896667, 0.11094686388969421, 0.29615673422813416, -0.4937545359134674, 0.0648908019065857, -0.1620962917804718, 0.1600162833929062, -0.09132730215787888, -0.10624033957719803, 0.10660692304372787, -0.12339127063751221, 0.2873692214488983, 0.05651354044675827, -0.11950671672821045, -0.41664108633995056, -0.004226276651024818, 0.04956120252609253, -0.10604052990674973, 0.103584423661232, 0.014120235107839108, -0.07021351158618927, -0.014126397669315338, 0.12702402472496033, 0.1630212813615799, -0.060778647661209106, -0.08761388063430786, 0.25231248140335083, 0.4072786569595337, -0.1689724624156952, -0.10352355986833572, 0.2097100019454956, -0.09952591359615326, 0.06301490217447281, -0.057216886430978775, -0.048841603100299835, -0.21131420135498047, -0.041321754455566406, 0.2738834619522095, 0.0669810026884079, -0.04325851798057556, 0.1607484221458435, -0.05720102787017822, -0.15330559015274048, -0.12188240885734558, -0.008848106488585472, 0.5322748422622681, 0.2923518419265747, -0.2522715628147125, 0.04029031842947006, 0.02166234515607357, 0.43748772144317627, -0.378596693277359, 0.040213748812675476, 0.12517032027244568, -0.1360737532377243, 0.3711492419242859, 0.21772076189517975, 0.28046879172325134, -0.13868774473667145, 0.29269981384277344, 0.27561262249946594, 0.1815827637910843, -0.013684205710887909, -0.02675192430615425, 0.1107846200466156, -0.18514986336231232, -0.06351520121097565, 0.11714641749858856, -0.09253019094467163, -0.05014009028673172, 0.06116309016942978, 0.021831393241882324, 0.4823908805847168, 0.21353775262832642, -0.0927102267742157, 0.2143542468547821, 0.0028866827487945557, 0.38332805037498474, 0.075332872569561, 0.046422384679317474, -0.01172628253698349, 0.01980418711900711, 0.6999573111534119, -0.2658262252807617, -0.327196329832077, -0.00567513145506382, 0.06588143110275269, -0.3155241012573242, -0.14852719008922577, 0.017710335552692413, -0.13244418799877167, -0.27754420042037964, -0.006640475243330002, -0.016047652810811996, -0.015585824847221375, 0.45253053307533264, 0.14460226893424988, -0.0958213359117508, -0.28564828634262085, 0.07904355227947235, 0.14845550060272217, 0.17397016286849976, -0.17224666476249695, 0.2322341650724411, -0.007404923439025879, 0.003125607967376709, 0.1425076574087143, 0.26246750354766846, 0.2944889962673187, 0.19454099237918854, -0.22396546602249146, -0.16300547122955322, -0.10297158360481262, -0.04321026802062988, -0.10959910601377487, 0.06826211512088776, 0.018619515001773834, -0.06348387897014618, 0.2832334637641907, 0.36882883310317993, -0.3117297291755676, -0.06361998617649078, 0.08266244828701019, -0.19818390905857086, -0.03178561478853226, 0.374734491109848, 0.19369153678417206, -0.26592954993247986, -0.16258667409420013, -0.07514310628175735, -0.43050339818000793, -0.16805113852024078, 0.4548306167125702, 0.06914860010147095, 0.07458598166704178, -0.03333988040685654, 0.19802522659301758, -0.03545960783958435, 0.4628920555114746, 0.016833651810884476, 0.0607139989733696, -0.41695186495780945, -0.24490956962108612, -0.6360483169555664, 0.23298311233520508, -0.02299002930521965, -0.24320362508296967, 0.15868806838989258, -0.0022754501551389694, 0.14679762721061707, -0.003397546708583832, 0.07409969717264175, 0.23694315552711487, -0.02516338601708412, -0.293275386095047, -0.5050153136253357, 0.18817970156669617, -0.16397041082382202, -0.11337049305438995, 0.2885268032550812, -0.3525051772594452, 0.12813276052474976, -0.21569736301898956, 0.24222764372825623, 0.14992885291576385, -0.14858688414096832, 0.49643367528915405, 0.1853259950876236, 0.16002479195594788, -0.08743218332529068, 0.6012178659439087, -0.005821526050567627, 0.1686374694108963, -0.07338446378707886, -0.42700880765914917, -0.0887548178434372, 0.07376773655414581, -0.002057880163192749, -0.14333978295326233, 0.21047011017799377, -0.22058464586734772, -0.25827786326408386, 0.16021688282489777, 0.1860104352235794, 0.09110810607671738, 0.01686103455722332, 0.08236198872327805, 0.20301395654678345, 0.048248473554849625, -0.05354748293757439, 0.14514042437076569, -0.09299200773239136, 0.1365237832069397, -0.3439008593559265, -0.6493715643882751, 0.593635082244873, -0.2032630443572998, -0.2034328430891037, -0.1114807277917862, 0.4984128475189209, 0.04529717192053795, -0.03088521771132946, -0.576669454574585, -0.1030251607298851, 0.3137143552303314, -0.027740728110074997, -0.17319537699222565, 0.429770290851593, 0.08544859290122986, 0.07957267761230469, 0.02101016417145729, 0.5194363594055176, 0.12102679163217545, 0.047107912600040436, -0.2555716931819916, -0.1402190625667572 ]
https://github.com/huggingface/datasets/pull/152
Add GLUE config name check
The test fails with an `AssertionError` because the name is not being passed to kwargs, however I'm not sure how to do that, because only the config file is being passed to the tests of all datasets? I'm guessing this is the corresponding code: https://github.com/huggingface/nlp/blob/2b3621bb5c78caf02c5a969b8e67fa0c145da4e6/tests/test_dataset_common.py#L141-L143 And these are the logs: ``` ___________________ DatasetTest.test_load_dataset_local_glue ___________________ self = <tests.test_dataset_common.DatasetTest testMethod=test_load_dataset_local_glue> dataset_name = 'glue' @local def test_load_dataset_local(self, dataset_name): # test only first config if "/" in dataset_name: logging.info("Skip {} because it is not a canonical dataset") return configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1] > self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True) tests/test_dataset_common.py:200: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_dataset_common.py:74: in check_load_dataset dataset_builder = dataset_builder_cls(config=config, cache_dir=processed_temp_dir) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nlp.datasets.glue.fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597.glue.Glue object at 0x135c0ea90> args = () kwargs = {'cache_dir': '/var/folders/r6/mnw5ntvn5y72j7d4s1fm273m0000gn/T/tmpa9rpq3tl', 'config': GlueConfig(name='cola', versio...linguistic theory. Each example is a sequence of words annotated\nwith whether it is a grammatical English sentence.')} def __init__(self, *args, **kwargs): > assert ('name' in kwargs and kwargs['name'] is not None), "Glue has to be called with a configuration name" E AssertionError: Glue has to be called with a configuration name /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py:139: AssertionError ----------------------------- Captured stderr call ----------------------------- INFO:nlp.load:Checking ./datasets/glue/glue.py for additional imports. INFO:filelock:Lock 5209998288 acquired on ./datasets/glue/glue.py.lock INFO:nlp.load:Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO:nlp.load:Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO:nlp.load:Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO:nlp.load:Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO:filelock:Lock 5209998288 released on ./datasets/glue/glue.py.lock INFO:nlp.load:Checking ./datasets/glue/glue.py for additional imports. INFO:filelock:Lock 5196802640 acquired on ./datasets/glue/glue.py.lock INFO:nlp.load:Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO:nlp.load:Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO:nlp.load:Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO:nlp.load:Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO:filelock:Lock 5196802640 released on ./datasets/glue/glue.py.lock ------------------------------ Captured log call ------------------------------- INFO nlp.load:load.py:157 Checking ./datasets/glue/glue.py for additional imports. INFO filelock:filelock.py:274 Lock 5209998288 acquired on ./datasets/glue/glue.py.lock INFO nlp.load:load.py:320 Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO nlp.load:load.py:333 Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO nlp.load:load.py:346 Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO nlp.load:load.py:356 Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO nlp.load:load.py:367 Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO filelock:filelock.py:318 Lock 5209998288 released on ./datasets/glue/glue.py.lock INFO nlp.load:load.py:157 Checking ./datasets/glue/glue.py for additional imports. INFO filelock:filelock.py:274 Lock 5196802640 acquired on ./datasets/glue/glue.py.lock INFO nlp.load:load.py:320 Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO nlp.load:load.py:333 Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO nlp.load:load.py:346 Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO nlp.load:load.py:356 Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO nlp.load:load.py:367 Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO filelock:filelock.py:318 Lock 5196802640 released on ./datasets/glue/glue.py.lock ```
Fixes #130 by adding a name check to the Glue class
511
text: Add GLUE config name check Fixes #130 by adding a name check to the Glue class The test fails with an `AssertionError` because the name is not being passed to kwargs, however I'm not sure how to do that, because only the config file is being passed to the tests of all datasets? I'm guessing this is the corresponding code: https://github.com/huggingface/nlp/blob/2b3621bb5c78caf02c5a969b8e67fa0c145da4e6/tests/test_dataset_common.py#L141-L143 And these are the logs: ``` ___________________ DatasetTest.test_load_dataset_local_glue ___________________ self = <tests.test_dataset_common.DatasetTest testMethod=test_load_dataset_local_glue> dataset_name = 'glue' @local def test_load_dataset_local(self, dataset_name): # test only first config if "/" in dataset_name: logging.info("Skip {} because it is not a canonical dataset") return configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1] > self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True) tests/test_dataset_common.py:200: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_dataset_common.py:74: in check_load_dataset dataset_builder = dataset_builder_cls(config=config, cache_dir=processed_temp_dir) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nlp.datasets.glue.fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597.glue.Glue object at 0x135c0ea90> args = () kwargs = {'cache_dir': '/var/folders/r6/mnw5ntvn5y72j7d4s1fm273m0000gn/T/tmpa9rpq3tl', 'config': GlueConfig(name='cola', versio...linguistic theory. Each example is a sequence of words annotated\nwith whether it is a grammatical English sentence.')} def __init__(self, *args, **kwargs): > assert ('name' in kwargs and kwargs['name'] is not None), "Glue has to be called with a configuration name" E AssertionError: Glue has to be called with a configuration name /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py:139: AssertionError ----------------------------- Captured stderr call ----------------------------- INFO:nlp.load:Checking ./datasets/glue/glue.py for additional imports. INFO:filelock:Lock 5209998288 acquired on ./datasets/glue/glue.py.lock INFO:nlp.load:Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO:nlp.load:Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO:nlp.load:Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO:nlp.load:Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO:filelock:Lock 5209998288 released on ./datasets/glue/glue.py.lock INFO:nlp.load:Checking ./datasets/glue/glue.py for additional imports. INFO:filelock:Lock 5196802640 acquired on ./datasets/glue/glue.py.lock INFO:nlp.load:Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO:nlp.load:Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO:nlp.load:Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO:nlp.load:Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO:filelock:Lock 5196802640 released on ./datasets/glue/glue.py.lock ------------------------------ Captured log call ------------------------------- INFO nlp.load:load.py:157 Checking ./datasets/glue/glue.py for additional imports. INFO filelock:filelock.py:274 Lock 5209998288 acquired on ./datasets/glue/glue.py.lock INFO nlp.load:load.py:320 Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO nlp.load:load.py:333 Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO nlp.load:load.py:346 Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO nlp.load:load.py:356 Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO nlp.load:load.py:367 Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO filelock:filelock.py:318 Lock 5209998288 released on ./datasets/glue/glue.py.lock INFO nlp.load:load.py:157 Checking ./datasets/glue/glue.py for additional imports. INFO filelock:filelock.py:274 Lock 5196802640 acquired on ./datasets/glue/glue.py.lock INFO nlp.load:load.py:320 Found main folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue INFO nlp.load:load.py:333 Found specific version folder for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597 INFO nlp.load:load.py:346 Found script file from ./datasets/glue/glue.py to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.py INFO nlp.load:load.py:356 Found dataset infos file from ./datasets/glue/dataset_infos.json to /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/dataset_infos.json INFO nlp.load:load.py:367 Found metadata file for dataset ./datasets/glue/glue.py at /usr/local/lib/python3.7/site-packages/nlp/datasets/glue/fa7c9f982200144186b2831060b54199cf028e4bbdc5f40acd339ee343342597/glue.json INFO filelock:filelock.py:318 Lock 5196802640 released on ./datasets/glue/glue.py.lock ```
[ 0.0671490728855133, 0.056788086891174316, -0.05450914055109024, -0.013121992349624634, 0.010489922016859055, 0.11877133697271347, 0.24076029658317566, 0.4999823272228241, 0.15125423669815063, 0.21689030528068542, 0.2486182302236557, 0.3272595703601837, 0.019631199538707733, -0.0025900788605213165, 0.25433415174484253, 0.04501216113567352, -0.10428272932767868, 0.07961395382881165, -0.017076872289180756, 0.1149715781211853, -0.20529034733772278, 0.11938469856977463, 0.03387719392776489, 0.09920212626457214, -0.15038631856441498, -0.024397527799010277, -0.21108560264110565, 0.2039342224597931, -0.11555320769548416, -0.5057897567749023, 0.4626018702983856, 0.4087791442871094, -0.28679749369621277, 0.3833097219467163, -0.00012018670531688258, 0.06263405084609985, 0.5107073783874512, -0.08093861490488052, -0.04816676303744316, 0.12129494547843933, -0.3679327666759491, -0.29158759117126465, 0.011794627644121647, -0.3026566207408905, 0.1860465109348297, 0.29799148440361023, -0.16061097383499146, -0.3397686183452606, 0.005307503044605255, 0.18334347009658813, 0.08432313799858093, 0.10876274108886719, 0.06956790387630463, -0.0014425617409870028, 0.03550083190202713, -0.29994481801986694, 0.07075724750757217, 0.6402016878128052, -0.051517829298973083, -0.45511141419410706, 0.0028375759720802307, 0.17332877218723297, -0.15860746800899506, 0.2071828544139862, -0.043394580483436584, -0.25408920645713806, 0.006279774010181427, -0.15209738910198212, 0.09936080127954483, 0.30686071515083313, 0.08237850666046143, -0.517560601234436, -0.26401522755622864, -0.1781604290008545, 0.05025627464056015, 0.008640473708510399, 0.41240137815475464, -0.06241132318973541, -0.3343670964241028, 0.08379009366035461, -0.07231733947992325, -0.23539407551288605, -0.14342732727527618, 0.02135547623038292, -0.12956270575523376, 0.5352979898452759, -0.13310688734054565, 0.16718383133411407, 0.2453133910894394, 0.22222572565078735, -0.29752856492996216, -0.02941136807203293, -0.09703317284584045, 0.04115946590900421, -0.2891472280025482, -0.07499128580093384, -0.05177764594554901, 0.13775400817394257, 0.45568835735321045, 0.11481393873691559, -0.32961222529411316, -0.010287810117006302, 0.47112107276916504, 0.2714008390903473, -0.05499820038676262, 0.3648926019668579, 0.6338615417480469, 0.32018861174583435, 0.1232559084892273, 0.16163893043994904, -0.3401062786579132, -0.04681576043367386, -0.10009685903787613, -0.3145756423473358, -0.1997041553258896, -0.00038202106952667236, 0.5386761426925659, -0.2400698959827423, 0.02682551182806492, -0.03322764113545418, -0.28517720103263855, -0.047145262360572815, 0.2243284285068512, 0.27845335006713867, -0.04105256870388985, 0.13261595368385315, 0.06570222973823547, 0.12472939491271973, 0.14418916404247284, 0.02174544706940651, -0.1688448041677475, 0.11456070840358734, -0.10327354073524475, 0.15920542180538177, 0.06919986009597778, -0.1711527705192566, 0.36796844005584717, -0.28242164850234985, 0.04955277591943741, -0.0755794495344162, 0.11512738466262817, 0.30609118938446045, -0.016932033002376556, 0.37975484132766724, -0.3379499018192291, 0.30468127131462097, 0.3633735775947571, -0.3145832419395447, -0.22409695386886597, -0.15143486857414246, -0.18017303943634033, -0.4029994010925293, 0.1723289042711258, 0.09010562300682068, -0.36063534021377563, -0.0025827810168266296, -0.12586387991905212, -0.1795029640197754, 0.16474059224128723, -0.0891166403889656, 0.19759725034236908, 0.10402017831802368, 0.028114017099142075, -0.1959332525730133, 0.514753520488739, 0.4034563899040222, -0.2708585858345032, -0.17836183309555054, -0.1689971685409546, -0.044323984533548355, -0.032609544694423676, -0.1318483054637909, -0.01089487411081791, 0.10355110466480255, -0.325551301240921, 0.30109739303588867, 0.4441191554069519, -0.5867543816566467, -0.3034399151802063, 0.35547465085983276, -0.14216117560863495, 0.04443729668855667, 0.4722804129123688, -0.3456450402736664, -0.4705314636230469, -0.01574004255235195, -0.0771576464176178, 0.28857940435409546, -0.11031349003314972, -0.125298872590065, -0.26393330097198486, 0.11050200462341309, -0.021930154412984848, -0.04926015064120293, -0.08768075704574585, 0.25535163283348083, 0.007269926369190216, 0.05969399958848953, 0.32030725479125977, 0.14179478585720062, -0.13003720343112946, 0.12616823613643646, 0.5223506689071655, -0.06792223453521729, -0.012975616380572319, 0.07741402089595795, -0.2764388620853424, 0.3879830539226532, 0.07403608411550522, -0.04305931180715561, -0.13647840917110443, -0.27663785219192505, -0.4753838777542114, 0.039674729108810425, -0.40536797046661377, -0.32907965779304504, 0.07017593085765839, 0.4718599021434784, 0.09948892891407013, -0.09065641462802887, -0.15629315376281738, 0.23816043138504028, -0.33829793334007263, 0.10919754952192307, -0.2505597174167633, -0.021921586245298386, 0.03907645493745804, 0.10804522037506104, -0.22335945069789886, 0.09236053377389908, 0.12409921735525131, -0.19486229121685028, -0.019608572125434875, 0.6062445044517517, 0.06788866966962814, 0.028745777904987335, 0.3127177357673645, -0.091986283659935, -0.4390779137611389, -0.09160954505205154, -0.033771201968193054, -0.15614840388298035, -0.06890611350536346, -0.127462238073349, 0.08121475577354431, 0.3179331123828888, 0.08839669078588486, 0.45633620023727417, -0.12065669894218445, 0.11526244133710861, -0.11796548217535019, -0.22352854907512665, -0.4285265803337097, 0.072440966963768, 0.15263862907886505, -0.19557492434978485, 0.7964208126068115, -0.08529944717884064, 0.009976886212825775, -0.2917832136154175, 0.2200295478105545, 0.09063917398452759, -0.05001980811357498, -0.2741474509239197, -0.2323991358280182, 0.31584760546684265, 0.24860386550426483, 0.5899675488471985, 0.48391956090927124, 0.03348531201481819, 0.2138085514307022, 0.04805859923362732, -0.0872819796204567, -0.048263128846883774, 0.012428127229213715, 0.19548210501670837, 0.08227425068616867, 0.07201442867517471, -0.12847916781902313, -0.28092002868652344, -0.14691880345344543, 0.04957237467169762, 0.09800861030817032, 0.04418732225894928, -0.4116276502609253, 0.20013293623924255, -0.12553361058235168, -0.3208690285682678, -0.3093530833721161, -0.26171013712882996, -0.5068308115005493, -0.46998947858810425, -0.1556260585784912, -0.07554197311401367, -0.06844949722290039, 0.1491069346666336, -0.21150866150856018, 0.1149669662117958, 0.17041276395320892, -0.6295757293701172, -0.1131153553724289, -0.02487296797335148, -0.0721893310546875, -0.030704747885465622, 0.16311679780483246, 0.09658379852771759, 0.3870812654495239, 0.03833260387182236, -0.10203424841165543, 0.007464461028575897, -0.27472034096717834, 0.06859835982322693, -0.32746559381484985, 0.5503341555595398, 0.38433754444122314, 0.35777097940444946, 0.12382462620735168, -0.4076046645641327, 0.3375851809978485, -0.09420649707317352, -0.18964971601963043, 0.09660300612449646, 0.22572830319404602, 0.17020200192928314, -0.11246906220912933, -0.1851467788219452, -0.18603910505771637, -0.34658172726631165, 0.33362823724746704, 0.05175548419356346, 0.026736803352832794, 0.40105342864990234, -0.20159366726875305, 0.3822866976261139, -0.3805824816226959, 0.09104175120592117, 0.07525136321783066, -0.4114638566970825, 0.1236187070608139, -0.09972638636827469, 0.004749026149511337, -0.13979415595531464, -0.22978563606739044, 0.4845229983329773, -0.34467118978500366, -0.2858877182006836, -0.7122652530670166, -0.13350938260555267, 0.19156485795974731, 0.2872951924800873, 0.1721315234899521, 0.011286377906799316, -0.11186840385198593, 0.031035998836159706, -0.2548569440841675, -0.16713500022888184, 0.1360407918691635, 0.1775335669517517, 0.2964867353439331, 0.2335832118988037, 0.13916322588920593, 0.17202813923358917, 0.20167705416679382, 0.3287148177623749, 0.14816664159297943, 0.264168381690979, -0.27433890104293823, 0.3095177710056305, 0.24827057123184204, -0.621291995048523, -0.10034986585378647, 0.14037218689918518, -0.03837110102176666, 0.055755626410245895, -0.005766101181507111, 0.15597456693649292, -0.17806938290596008, -0.09333860874176025, -0.009262550622224808, -0.29249292612075806, -0.0013801250606775284, -0.37682491540908813, 0.06903322786092758, -0.14140303432941437, -0.1719110906124115, -0.1262679398059845, -0.005083712749183178, 0.25361311435699463, 0.4372873306274414, -0.17687535285949707, 0.0832526907324791, -0.5786764621734619, -0.2724604606628418, -0.05025184899568558, 0.41011613607406616, -0.029310831800103188, 0.49825185537338257, 0.03393219783902168, -0.11503880470991135, 0.009043589234352112, 0.1376023143529892, 0.6638758182525635, -0.4299784004688263, 0.09030679613351822, 0.4191342890262604, -0.011503960937261581, -0.10847630351781845, -0.1265019029378891, -0.3393618166446686, -0.17777203023433685, 0.34326040744781494, 0.13267046213150024, -0.29847124218940735, -0.20552483201026917, 0.2722663879394531, 0.09195131063461304, 0.019301410764455795, -0.08708596229553223, -0.4890865683555603, -0.16817164421081543, -0.1622537523508072, 0.21582600474357605, -0.06874240934848785, 0.15323874354362488, -0.06813878566026688, 0.2998749911785126, -0.020856661722064018, -0.28525030612945557, 0.132248193025589, 0.1401132047176361, 0.23477989435195923, 0.013480057008564472, -0.06051134318113327, 0.013519961386919022, 0.14265958964824677, -0.18679828941822052, 0.42125841975212097, -0.1748025119304657, 0.08246160298585892, -0.226457417011261, 0.176370769739151, 0.8912332057952881, 0.3050936162471771, -0.3025532364845276, -0.04842720180749893, -0.0846710130572319, -0.04957298934459686, -0.10285309702157974, 0.39487382769584656, 0.2490217238664627, 0.04387732222676277, -0.09834384173154831, -0.19956351816654205, 0.6240788102149963, 0.2221999615430832, -0.08147786557674408, 0.3693581223487854, 0.3971572518348694, -0.29356271028518677, 0.044369518756866455, -0.26559263467788696, 0.7541791200637817, 0.26255589723587036, -0.2581579387187958, 0.18344730138778687, 0.23070763051509857, 0.37146490812301636, 0.06960344314575195, 0.017842361703515053, -0.32743632793426514, -0.24750320613384247, 0.048427850008010864, -0.2722935974597931, 0.43491584062576294, 0.09819264709949493, -0.3979300856590271, 0.3327694535255432, 0.1051100641489029, 0.11625656485557556, -0.09098319709300995, 0.39080914855003357, -0.23175621032714844, 0.15801593661308289, -0.22246919572353363, 0.03593757748603821, 0.018629010766744614, 0.487371563911438, 0.1150394156575203, -0.11626178026199341, 0.10979431867599487, -0.4357019066810608, -0.12297693639993668, -0.01043904572725296, -0.4452369213104248, -0.12441828846931458, 0.15020856261253357, -0.022349543869495392, -0.11287137866020203, 0.03504495322704315, 0.3429293632507324, 0.4657963514328003, -0.12918700277805328, 0.1539815366268158, 0.10708983242511749, -0.022783838212490082, 0.09341338276863098, 0.1525886505842209, 0.40578344464302063, -0.06713850051164627, -0.2559640109539032, -0.08300419896841049, -0.28828373551368713, -0.5233622789382935, 0.08396893739700317, 0.07891509681940079, 0.21526814997196198, -0.47678107023239136, 0.01111321896314621, -0.17165124416351318, -0.04710738733410835, -0.10885024070739746, 0.07308093458414078, 0.12252771854400635, -0.5674418210983276, 0.1626565158367157, 0.20406824350357056, -0.3594362437725067, 0.1886751353740692, 0.15919223427772522, -0.4222450852394104, -0.005385920405387878, 0.4283525347709656, -0.25969791412353516, 0.06257744878530502, -0.060417260974645615, -0.13720333576202393, 0.396843284368515, -0.06860704720020294, -0.12845659255981445, 0.04160972312092781, -0.2260846197605133, 0.03921442851424217, 0.17759473621845245, 0.35084229707717896, 0.2067265808582306, -0.11090878397226334, -0.34750378131866455, -0.12363748997449875, 0.4007321000099182, 0.01779027096927166, 0.5439216494560242, -0.26292622089385986, 0.21729174256324768, 0.05155155807733536, 0.521859884262085, -0.22582054138183594, -0.18400250375270844, -0.37845057249069214, 0.12156341224908829, 0.36818161606788635, 0.22326767444610596, 0.17555470764636993, 0.08502168953418732, 0.14421497285366058, 0.0053657423704862595, -0.10908011347055435, -0.1409667432308197, -0.03522108867764473, 0.19106560945510864, -0.006625372916460037, 0.2832706570625305, 0.15223489701747894, -0.19866904616355896, 0.19388917088508606, -0.06869876384735107, 0.163285031914711, -0.2554631531238556, 0.008616689592599869, 0.3862607777118683, 0.34994441270828247, 0.050147123634815216, 0.012928180396556854, 0.15611115097999573, -0.14108622074127197, -0.1985274702310562, -0.00825288612395525, 0.0991620123386383, -0.2696039080619812, -0.038067493587732315, 0.3026585578918457, 0.015632815659046173, -0.13753677904605865, 0.04868327081203461, -0.15975487232208252, 0.046378038823604584, -0.15177147090435028, -0.09286489337682724, 0.3430918753147125, 0.484336793422699, -0.11363472789525986, 0.32351216673851013, 0.15433132648468018, 0.10969862341880798, -0.13490518927574158, 0.08098042011260986, 0.38614392280578613, -0.08673297613859177, 0.34602099657058716, 0.3661772608757019, 0.2864677906036377, -0.09930779039859772, 0.21788476407527924, -0.08515630662441254, 0.2220594882965088, 0.018790287896990776, -0.027505014091730118, 0.3782089948654175, -0.314145028591156, -0.028149034827947617, 0.24829088151454926, 0.11878558993339539, 0.025056876242160797, 0.01325242966413498, 0.021279454231262207, 0.23413461446762085, -0.06130542606115341, -0.20611873269081116, 0.28441381454467773, -0.08747648447751999, 0.3194137215614319, 0.017379194498062134, -0.10072627663612366, 0.05893708020448685, -0.09781898558139801, 0.5892491340637207, -0.32433682680130005, -0.027695462107658386, 0.12262170761823654, -0.09505270421504974, 0.08241657167673111, -0.12039782106876373, -0.3867908716201782, -0.10554143041372299, -0.19260168075561523, -0.2844642698764801, 0.2870233952999115, -0.35744035243988037, 0.5082262754440308, -0.013107851147651672, -0.059196069836616516, -0.11109521985054016, -0.2544926404953003, 0.21957066655158997, 0.16044804453849792, -0.49521344900131226, 0.17028513550758362, -0.03477628529071808, 0.12955674529075623, 0.13345293700695038, 0.28393566608428955, 0.4231320321559906, -0.07656509429216385, 0.045006848871707916, -0.14518718421459198, -0.14619843661785126, -0.275963693857193, -0.21027638018131256, 0.043760914355516434, -0.26774683594703674, -0.28494733572006226, 0.1911999136209488, 0.1749677211046219, -0.05937406048178673, -0.28513890504837036, -0.1644764542579651, -0.2251143753528595, -0.3396513760089874, 0.4992593824863434, -0.08295369148254395, -0.14760957658290863, -0.3080557882785797, 0.17883199453353882, -0.4837440550327301, -0.10355949401855469, 0.2998696565628052, 0.07076554000377655, 0.02714730054140091, -0.10046283155679703, 0.035405777394771576, -0.08800320327281952, 0.1910838782787323, 0.18709605932235718, 0.07190292328596115, -0.22649602591991425, -0.4439598321914673, -0.594619631767273, 0.20289310812950134, 0.0968702882528305, -0.46482962369918823, 0.23995043337345123, -0.04856570065021515, 0.12769815325737, 0.009022079408168793, -0.17831815779209137, -0.12424837052822113, 0.062319591641426086, -0.16917549073696136, -0.3369854986667633, -0.13851997256278992, 0.0073034316301345825, -0.010098448023200035, 0.354314386844635, -0.33227550983428955, 0.10236584395170212, -0.1573166847229004, -0.036473967134952545, 0.2325163036584854, -0.05401191487908363, 0.3736326992511749, 0.1524600237607956, 0.051605142652988434, -0.014734262600541115, 0.7212421894073486, 0.005296193063259125, -0.05532080680131912, -0.31515827775001526, 0.01726146973669529, -0.3009762167930603, 0.057866305112838745, -0.29891642928123474, 0.2214823216199875, 0.08313058316707611, -0.17229200899600983, -0.22513866424560547, 0.15449559688568115, 0.21145190298557281, 0.08538298308849335, 0.12242931872606277, -0.01746361330151558, 0.03360241651535034, 0.15307015180587769, 0.21933569014072418, 0.032155733555555344, -0.07005064189434052, 0.15590251982212067, -0.27278751134872437, -0.4547708034515381, 0.6484537124633789, -0.2476496547460556, -0.34357017278671265, -0.07023504376411438, 0.3886297047138214, -0.22845399379730225, -0.18619690835475922, -0.5448848605155945, -0.15724188089370728, 0.3308381140232086, 0.08694824576377869, -0.18949373066425323, 0.3925311863422394, 0.1451517939567566, 0.3246234059333801, 0.11280407011508942, 0.034807849675416946, -0.07414352148771286, 0.07455699145793915, -0.1497674286365509, -0.24258993566036224 ]
https://github.com/huggingface/datasets/pull/150
Add WNUT 17 NER dataset
The PR looks awesome! Since you have already added a dataset I imagine the tests as described in 5. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset all pass, right @stefan-it ? I think we are then good to merge this :-) @lhoestq
Hi, this PR adds the WNUT 17 dataset to `nlp`. > Emerging and Rare entity recognition > This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event clustering and summarisation), but recall on them is a real problem in noisy text - even among annotators. This drop tends to be due to novel entities and surface forms. Take for example the tweet “so.. kktny in 30 mins?” - even human experts find entity kktny hard to detect and resolve. This task will evaluate the ability to detect and classify novel, emerging, singleton named entities in noisy text. > > The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities. More information about the dataset can be found on the [shared task page](https://noisy-text.github.io/2017/emerging-rare-entities.html). Dataset is taken is taken from their [GitHub repository](https://github.com/leondz/emerging_entities_17), because the data provided in this repository contains minor fixes in the dataset format. ## Usage Then the WNUT 17 dataset can be used in `nlp` like this: ```python import nlp wnut_17 = nlp.load_dataset("./datasets/wnut_17/wnut_17.py") print(wnut_17) ``` This outputs: ```txt 'train': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 3394) 'validation': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1009) 'test': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1287) ``` Number are identical with the ones in [this paper](https://www.ijcai.org/Proceedings/2019/0702.pdf) and are the same as using the `dataset` reader in Flair. ## Features The following feature format is used to represent a sentence in the WNUT 17 dataset: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `tokens` | `["AHFA", "extends", "deadline"]` | List of tokens (strings) for a sentence | `labels` | `["B-group", "O", "O"]` | List of labels (outer span) The following labels are used in WNUT 17: ```txt O B-corporation I-corporation B-location I-location B-product I-product B-person I-person B-group I-group B-creative-work I-creative-work ```
37
text: Add WNUT 17 NER dataset Hi, this PR adds the WNUT 17 dataset to `nlp`. > Emerging and Rare entity recognition > This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event clustering and summarisation), but recall on them is a real problem in noisy text - even among annotators. This drop tends to be due to novel entities and surface forms. Take for example the tweet “so.. kktny in 30 mins?” - even human experts find entity kktny hard to detect and resolve. This task will evaluate the ability to detect and classify novel, emerging, singleton named entities in noisy text. > > The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities. More information about the dataset can be found on the [shared task page](https://noisy-text.github.io/2017/emerging-rare-entities.html). Dataset is taken is taken from their [GitHub repository](https://github.com/leondz/emerging_entities_17), because the data provided in this repository contains minor fixes in the dataset format. ## Usage Then the WNUT 17 dataset can be used in `nlp` like this: ```python import nlp wnut_17 = nlp.load_dataset("./datasets/wnut_17/wnut_17.py") print(wnut_17) ``` This outputs: ```txt 'train': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 3394) 'validation': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1009) 'test': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1287) ``` Number are identical with the ones in [this paper](https://www.ijcai.org/Proceedings/2019/0702.pdf) and are the same as using the `dataset` reader in Flair. ## Features The following feature format is used to represent a sentence in the WNUT 17 dataset: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `tokens` | `["AHFA", "extends", "deadline"]` | List of tokens (strings) for a sentence | `labels` | `["B-group", "O", "O"]` | List of labels (outer span) The following labels are used in WNUT 17: ```txt O B-corporation I-corporation B-location I-location B-product I-product B-person I-person B-group I-group B-creative-work I-creative-work ``` The PR looks awesome! Since you have already added a dataset I imagine the tests as described in 5. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset all pass, right @stefan-it ? I think we are then good to merge this :-) @lhoestq
[ -0.07750114053487778, -0.3449987769126892, -0.03947034850716591, 0.14546483755111694, 0.054346177726984024, -0.15177372097969055, -0.12458367645740509, 0.03632334619760513, -0.23867546021938324, 0.06622390449047089, 0.04830652475357056, 0.4505139887332916, -0.33130380511283875, 0.11476694792509079, 0.22137275338172913, -0.28936371207237244, -0.06392233818769455, 0.14165951311588287, 0.07505160570144653, -0.0739191398024559, -0.2988464832305908, 0.15087679028511047, -0.21345089375972748, 0.18159599602222443, -0.26311346888542175, -0.28210678696632385, -0.1748516708612442, 0.10374298691749573, -0.1756960153579712, -0.41894856095314026, -0.12618385255336761, 0.16542287170886993, -0.15471000969409943, 0.0370015949010849, -0.00010306033072993159, -0.1090337485074997, 0.31548333168029785, -0.05047890543937683, -0.2155742049217224, 0.025887787342071533, -0.009692497551441193, -0.31588679552078247, -0.14934219419956207, -0.35779088735580444, -0.28450682759284973, -0.37646862864494324, 0.24671456217765808, 0.10837174952030182, 0.19369548559188843, 0.2576887607574463, 0.26308128237724304, 0.3939323425292969, 0.11981561779975891, 0.19196847081184387, 0.22978726029396057, 0.022064093500375748, -0.24015922844409943, -0.13208623230457306, 0.13582837581634521, -0.22657550871372223, -0.07800353318452835, 0.3878542482852936, 0.10628753900527954, -0.10669730603694916, 0.17319393157958984, 0.2933172583580017, 0.08153440803289413, -0.20008786022663116, -0.14412713050842285, 0.30081307888031006, 0.06238636374473572, -0.12490355223417282, -0.15527653694152832, -0.28052064776420593, 0.10668691247701645, -0.5383923649787903, 0.01247481256723404, 0.06561551988124847, -0.3055393695831299, 0.11082987487316132, 0.007899892516434193, 0.10176968574523926, -0.17160899937152863, 0.28441378474235535, 0.1988760530948639, 0.5202998518943787, -0.0020935069769620895, -0.048716574907302856, 0.029150789603590965, -0.21299326419830322, -0.3807322680950165, -0.10805533826351166, 0.13721956312656403, -0.08863905072212219, -0.2855384051799774, -0.20249204337596893, 0.262193888425827, 0.4112767279148102, 0.050823599100112915, 0.10626522451639175, -0.000029027462005615234, -0.06183318793773651, -0.23844361305236816, 0.04405495151877403, -0.09904283285140991, 0.0998067706823349, 0.1390581578016281, 0.10827365517616272, 0.11375465989112854, 0.3030756711959839, -0.02733917348086834, 0.22194844484329224, 0.02520175278186798, -0.013898767530918121, -0.05804194509983063, 0.007511737756431103, 0.3483273983001709, 0.1042812317609787, -0.37575027346611023, 0.0850045457482338, -0.2598433792591095, -0.004378754645586014, 0.11745569109916687, 0.33689916133880615, -0.10257988423109055, 0.1843334436416626, 0.0019219033420085907, -0.014719672501087189, -0.1440650075674057, -0.38206747174263, -0.27087005972862244, 0.12545815110206604, -0.19754242897033691, -0.07027974724769592, 0.23020844161510468, 0.2757251262664795, 0.3419731855392456, -0.20925994217395782, -0.4633973240852356, 0.17571185529232025, 0.02496548555791378, -0.17196466028690338, 0.05846117064356804, 0.014040883630514145, -0.41248390078544617, -0.05659272521734238, 0.07276660948991776, -0.15867595374584198, -0.13756176829338074, 0.02679964154958725, 0.16954194009304047, -0.20162563025951385, -0.11370685696601868, 0.3235660195350647, -0.19269846379756927, -0.1970546543598175, 0.33094173669815063, 0.30656424164772034, 0.04560704156756401, 0.031008902937173843, 0.09379830956459045, -0.01040579378604889, -0.5367398858070374, 0.008269998244941235, -0.000287078320980072, 0.19145043194293976, -0.03272753953933716, -0.13948512077331543, -0.2145567685365677, -0.09596693515777588, 0.5161098837852478, 0.23495517671108246, -0.03991280496120453, 0.2505340576171875, -0.0013250820338726044, 0.29260724782943726, 0.27211862802505493, -0.24355801939964294, -0.4125124216079712, -0.13719969987869263, -0.4987742304801941, 0.32584449648857117, 0.3101142346858978, 0.3311391770839691, -0.06616406887769699, -0.11440512537956238, 0.46702492237091064, 0.42670851945877075, -0.10411995649337769, -0.0835508406162262, -0.3487865626811981, -0.07559455931186676, 0.45264387130737305, 0.13698792457580566, -0.03542439267039299, -0.18314912915229797, -0.25436291098594666, 0.47592177987098694, 0.25973495841026306, -0.15551947057247162, 0.10210859775543213, -0.011651024222373962, 0.17625926434993744, -0.1528257131576538, 0.09668918699026108, -0.2549964487552643, -0.06563251465559006, -0.07382876425981522, -0.22136853635311127, 0.5532366037368774, 0.033166490495204926, -0.19863814115524292, -0.33995237946510315, 0.036758147180080414, -0.21920032799243927, -0.40979674458503723, 0.34092602133750916, 0.14058782160282135, 0.032817620784044266, -0.006423095241189003, -0.10763497650623322, 0.3260006606578827, -0.6526713967323303, 0.04066891595721245, -0.31559106707572937, -0.15456202626228333, -0.3141862154006958, 0.02397945150732994, 0.09040115773677826, 0.438496857881546, -0.05030970275402069, 0.23505347967147827, 0.04316246509552002, 0.13366863131523132, -0.1516055166721344, -0.17025376856327057, 0.04803961142897606, 0.1763831079006195, 0.0447201132774353, -0.29409530758857727, 0.06708774715662003, 0.24199266731739044, 0.15266330540180206, -0.08205157518386841, -0.17442619800567627, 0.2094590663909912, -0.05118058994412422, 0.044541940093040466, -0.03116915002465248, -0.1169407069683075, 0.19734852015972137, -0.14363856613636017, -0.05077102780342102, -0.30475538969039917, 0.482077419757843, -0.04388144239783287, 0.10591235756874084, 0.11076116561889648, -0.28671085834503174, 0.2643590569496155, 0.4779295027256012, 0.023076750338077545, 0.41731584072113037, 0.1854378581047058, -0.31953731179237366, -0.30561402440071106, -0.17319819331169128, 0.24682725965976715, 0.3674577474594116, 0.3445197343826294, 0.10176484286785126, 0.04080439358949661, -0.2178022563457489, -0.2512976825237274, 0.2873024046421051, 0.11345884203910828, -0.0315183587372303, 0.23730403184890747, 0.3391859233379364, 0.06162654608488083, -0.41356852650642395, -0.2606460452079773, 0.04306190460920334, 0.3540216386318207, -0.1090366542339325, -0.0488983690738678, -0.210650235414505, -0.4767919182777405, -0.0077295368537306786, 0.4274500906467438, -0.07264992594718933, -0.30909112095832825, 0.33949369192123413, 0.1131722629070282, -0.049348581582307816, 0.1591290533542633, 0.0831536203622818, 0.33160626888275146, -0.044322870671749115, 0.16695712506771088, -0.20118220150470734, -0.2654297649860382, -0.26481425762176514, 0.27097055315971375, 0.013811773620545864, 0.17329373955726624, 0.47743842005729675, -0.10291846841573715, 0.08938413113355637, -0.07417125254869461, -0.5690456628799438, 0.030708573758602142, -0.2767406702041626, 0.2291274219751358, 0.15293334424495697, 0.025660976767539978, -0.029404494911432266, -0.0034692976623773575, 0.23310929536819458, -0.11753968149423599, -0.4353971779346466, 0.013074435293674469, -0.17699767649173737, 0.0002727004757616669, -0.2746208906173706, -0.4165172874927521, -0.293621689081192, -0.31185850501060486, 0.23958221077919006, 0.12801267206668854, 0.14114472270011902, 0.6071852445602417, -0.3376547396183014, 0.09112626314163208, 0.0912688672542572, 0.35471111536026, -0.2935441732406616, 0.10160940885543823, 0.3054242730140686, -0.0803612619638443, -0.16471396386623383, -0.26653534173965454, -0.42762935161590576, -0.032837655395269394, -0.17911270260810852, -0.18986576795578003, -0.5316994786262512, -0.1567068099975586, -0.09311488270759583, 0.34903091192245483, -0.04067970812320709, 0.36628836393356323, 0.1159772202372551, -0.30040693283081055, -0.16389337182044983, -0.19629651308059692, 0.13485682010650635, 0.12689480185508728, 0.26183322072029114, -0.02157142385840416, 0.16625261306762695, 0.27031823992729187, 0.06588394939899445, 0.04575977846980095, -0.20059721171855927, 0.24284833669662476, -0.08797615021467209, 0.1337471306324005, 0.018955297768115997, -0.18730111420154572, 0.1423882246017456, 0.10948571562767029, 0.024290353059768677, 0.2118799090385437, -0.07380214333534241, 0.17329686880111694, 0.2436351478099823, -0.13668560981750488, -0.1913629174232483, -0.16591036319732666, 0.15877942740917206, 0.09214930981397629, 0.1481786072254181, 0.047307614237070084, -0.28386184573173523, -0.18713854253292084, -0.3647167682647705, 0.04836287349462509, 0.0565624013543129, 0.06828338652849197, -0.1606818288564682, -0.5322039723396301, -0.015016027726233006, -0.5892176032066345, 0.16260959208011627, -0.0010418212041258812, 0.42069292068481445, -0.13982635736465454, -0.22437724471092224, 0.14817635715007782, -0.06833595782518387, 0.40212249755859375, -0.4998733401298523, 0.11331754922866821, 0.0841151773929596, 0.24268674850463867, -0.05017871409654617, 0.14241737127304077, -0.3557473421096802, -0.06954587250947952, 0.008788909763097763, 0.25897300243377686, -0.3023940920829773, -0.11854834109544754, 0.6394749879837036, 0.12200523912906647, -0.14504142105579376, -0.10178817063570023, -0.22497032582759857, -0.23798084259033203, -0.3500460088253021, 0.09073895215988159, 0.0862697884440422, 0.34862220287323, -0.11987628042697906, 0.35694941878318787, -0.019219795241951942, 0.1844319999217987, 0.34972307085990906, 0.1888585388660431, -0.0023980336263775826, 0.18418313562870026, -0.051190540194511414, -0.09031043946743011, 0.2660592198371887, -0.4315407872200012, 0.4099178910255432, 0.08817066252231598, -0.48949766159057617, -0.07435033470392227, 0.06313803791999817, 0.11310405284166336, 0.16890856623649597, 0.08118712157011032, 0.3406885266304016, -0.07621454447507858, 0.19368746876716614, -0.2587859034538269, 0.42803189158439636, 0.29178324341773987, 0.0028227223083376884, -0.10858689993619919, -0.1907481849193573, 0.3374978005886078, 0.21161197125911713, -0.16747517883777618, -0.05256903916597366, -0.03328041732311249, -0.24702925980091095, 0.21914096176624298, 0.10470244288444519, 0.9675478339195251, -0.07109355926513672, 0.24086305499076843, 0.2672848403453827, 0.0645425096154213, 0.7271970510482788, -0.23909920454025269, 0.2474653571844101, -0.2714000940322876, 0.18243852257728577, 0.05159255862236023, 0.11299310624599457, -0.038534700870513916, 0.07262089103460312, -0.2507379353046417, 0.23267921805381775, 0.2859247326850891, 0.06305199861526489, 0.14968615770339966, 0.42766451835632324, 0.2191389948129654, -0.35891154408454895, -0.5219066739082336, 0.18374305963516235, -0.11960047483444214, 0.3143867552280426, -0.01433022040873766, -0.12613478302955627, -0.002002902328968048, -0.1806916743516922, -0.09942653030157089, 0.07601108402013779, 0.09021442383527756, 0.04358972609043121, 0.08998903632164001, -0.3654497265815735, 0.02733156457543373, 0.25670936703681946, 0.3779599666595459, 0.1352461874485016, -0.03668157011270523, -0.04525572434067726, -0.24864593148231506, -0.08965356647968292, 0.20831890404224396, -0.009367594495415688, 0.2741602063179016, -0.1398947536945343, -0.22564050555229187, 0.07067054510116577, 0.017421375960111618, -0.17437371611595154, -0.14182016253471375, -0.013243637979030609, 0.310441792011261, 0.015800371766090393, 0.0463377945125103, 0.14528526365756989, -0.34060025215148926, -0.28297311067581177, 0.2075013965368271, -0.02269107848405838, -0.1379198133945465, 0.049489185214042664, 0.023078491911292076, -0.10767214000225067, 0.06099533662199974, -0.021971173584461212, 0.21445369720458984, -0.00891190581023693, 0.4136681854724884, 0.07095244526863098, -0.07209818065166473, -0.37600958347320557, -0.06633405387401581, -0.07230127602815628, -0.2538686692714691, 0.04921629652380943, 0.43594998121261597, -0.24853962659835815, 0.26142415404319763, 0.4520167410373688, 0.0842258408665657, 0.1079481691122055, -0.07547538727521896, -0.30427271127700806, -0.36709681153297424, 0.3225240111351013, -0.21184857189655304, 0.17459627985954285, 0.09897524863481522, 0.31733521819114685, -0.13540460169315338, 0.13964682817459106, -0.48371806740760803, -0.19208157062530518, -0.5084143877029419, 0.3050757348537445, 0.23392055928707123, -0.23272985219955444, 0.0063859038054943085, 0.19148965179920197, 0.2883717119693756, 0.07160542905330658, -0.17745761573314667, -0.3261619806289673, -0.09995315968990326, 0.0924426019191742, 0.05918759107589722, -0.017754046246409416, -0.1406092643737793, 0.10873952507972717, 0.017925500869750977, -0.07308336347341537, 0.11310331523418427, -0.016024988144636154, 0.06567001342773438, 0.36105895042419434, -0.24391917884349823, 0.14812445640563965, 0.04383886605501175, -0.08803264796733856, -0.08101193606853485, 0.19547587633132935, 0.07684177160263062, 0.016242707148194313, 0.0836954414844513, -0.02148650959134102, -0.041388221085071564, 0.08499790728092194, 0.10926364362239838, 0.24555820226669312, 0.15445895493030548, -0.1041213870048523, -0.2797009348869324, -0.0830780491232872, 0.11296136677265167, 0.009375158697366714, -0.06866489350795746, -0.21204455196857452, 0.1623014509677887, 0.3067091703414917, -0.5029757022857666, -0.03884875774383545, 0.41639190912246704, -0.14187556505203247, 0.38097503781318665, 0.20789775252342224, 0.03657076880335808, 0.11666214466094971, -0.08191296458244324, 0.06376710534095764, 0.016246413812041283, -0.3921995162963867, -0.13308767974376678, 0.0014981068670749664, 0.07486847043037415, 0.025225959718227386, 0.35747602581977844, -0.05286248400807381, 0.3976605534553528, 0.4321279525756836, 0.2883602976799011, 0.31123772263526917, 0.11672112345695496, 0.43351373076438904, 0.24609673023223877, -0.012715296819806099, 0.0071144700050354, 0.3599637448787689, 0.02124946564435959, 0.18894857168197632, -0.053925007581710815, -0.0260196253657341, 0.03261668607592583, 0.14510183036327362, -0.21340270340442657, 0.17073246836662292, -0.039780840277671814, -0.11651468276977539, -0.4040432274341583, -0.17668114602565765, -0.10329366475343704, -0.20389114320278168, -0.04402456060051918, -0.121092289686203, -0.06595739722251892, -0.1365748941898346, -0.018727369606494904, -0.2670525908470154, -0.16116034984588623, 0.2727392017841339, 0.3101467788219452, -0.4162324070930481, 0.17524166405200958, 0.21348682045936584, -0.007019944489002228, 0.0682983547449112, 0.3025470972061157, 0.2528832256793976, 0.11399593949317932, -0.2558079659938812, 0.07715213298797607, -0.17554150521755219, -0.1818423867225647, -0.21920941770076752, 0.23901812732219696, 0.3809483051300049, -0.23446474969387054, 0.26240274310112, 0.15450851619243622, -0.20246605575084686, -0.014498967677354813, 0.30660274624824524, -0.2584308087825775, 0.03166608139872551, 0.1937389075756073, 0.15871544182300568, -0.23535192012786865, -0.18100614845752716, 0.19852899014949799, -0.369726300239563, -0.05373590067028999, 0.3328189551830292, 0.0853738859295845, 0.18768739700317383, -0.27015477418899536, 0.1486450880765915, -0.14515423774719238, 0.2616646885871887, 0.4270964562892914, -0.05536685138940811, -0.19973032176494598, -0.16675837337970734, -0.5244956016540527, 0.1514451503753662, -0.1235981285572052, -0.5611371994018555, -0.16556112468242645, 0.1953263282775879, 0.16719014942646027, 0.3511519432067871, -0.40608441829681396, -0.04150849208235741, -0.1437942087650299, 0.24009481072425842, -0.2917271554470062, 0.15547582507133484, 0.15707002580165863, 0.09411057829856873, -0.009420674294233322, -0.2071438729763031, -0.062188517302274704, -0.3746607303619385, 0.1740250587463379, -0.15737920999526978, 0.21206358075141907, 0.08018758893013, 0.2376241832971573, 0.040222156792879105, 0.3251848816871643, 0.31193262338638306, -0.2005106508731842, -0.002762323245406151, -0.1801980584859848, -0.05547338351607323, -0.26661261916160583, 0.27002862095832825, 0.10876661539077759, 0.5682491064071655, 0.10808555781841278, 0.2925416827201843, 0.07006747275590897, -0.11154741048812866, -0.04116861894726753, 0.13878868520259857, -0.04041591286659241, 0.41286957263946533, -0.03578382730484009, 0.24304549396038055, -0.13714508712291718, 0.17284876108169556, 0.18914107978343964, -0.12659619748592377, -0.3329896330833435, -0.5771507024765015, 0.34419792890548706, -0.24706816673278809, -0.22978021204471588, -0.13581451773643494, 0.32271289825439453, -0.06894474476575851, 0.012945443391799927, -0.3124530017375946, -0.11481534689664841, 0.2913002669811249, 0.12142185121774673, -0.16117095947265625, 0.27324551343917847, 0.2533019185066223, -0.07580680400133133, -0.02832968905568123, -0.053185075521469116, -0.1364108920097351, -0.07755480706691742, 0.03763490542769432, -0.3825100064277649 ]
https://github.com/huggingface/datasets/pull/150
Add WNUT 17 NER dataset
Nice ! One thing though: I saw that you copied the `dataset_info.json` (one split info), which is different from the `dataset_infos.json` (split infos of all configs) that we expect. Could you generate the `dataset_infos.json` file using this command please ? ``` python nlp-cli test datasets/wnut_17 --save_infos --all_configs ```
Hi, this PR adds the WNUT 17 dataset to `nlp`. > Emerging and Rare entity recognition > This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event clustering and summarisation), but recall on them is a real problem in noisy text - even among annotators. This drop tends to be due to novel entities and surface forms. Take for example the tweet “so.. kktny in 30 mins?” - even human experts find entity kktny hard to detect and resolve. This task will evaluate the ability to detect and classify novel, emerging, singleton named entities in noisy text. > > The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities. More information about the dataset can be found on the [shared task page](https://noisy-text.github.io/2017/emerging-rare-entities.html). Dataset is taken is taken from their [GitHub repository](https://github.com/leondz/emerging_entities_17), because the data provided in this repository contains minor fixes in the dataset format. ## Usage Then the WNUT 17 dataset can be used in `nlp` like this: ```python import nlp wnut_17 = nlp.load_dataset("./datasets/wnut_17/wnut_17.py") print(wnut_17) ``` This outputs: ```txt 'train': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 3394) 'validation': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1009) 'test': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1287) ``` Number are identical with the ones in [this paper](https://www.ijcai.org/Proceedings/2019/0702.pdf) and are the same as using the `dataset` reader in Flair. ## Features The following feature format is used to represent a sentence in the WNUT 17 dataset: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `tokens` | `["AHFA", "extends", "deadline"]` | List of tokens (strings) for a sentence | `labels` | `["B-group", "O", "O"]` | List of labels (outer span) The following labels are used in WNUT 17: ```txt O B-corporation I-corporation B-location I-location B-product I-product B-person I-person B-group I-group B-creative-work I-creative-work ```
48
text: Add WNUT 17 NER dataset Hi, this PR adds the WNUT 17 dataset to `nlp`. > Emerging and Rare entity recognition > This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event clustering and summarisation), but recall on them is a real problem in noisy text - even among annotators. This drop tends to be due to novel entities and surface forms. Take for example the tweet “so.. kktny in 30 mins?” - even human experts find entity kktny hard to detect and resolve. This task will evaluate the ability to detect and classify novel, emerging, singleton named entities in noisy text. > > The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities. More information about the dataset can be found on the [shared task page](https://noisy-text.github.io/2017/emerging-rare-entities.html). Dataset is taken is taken from their [GitHub repository](https://github.com/leondz/emerging_entities_17), because the data provided in this repository contains minor fixes in the dataset format. ## Usage Then the WNUT 17 dataset can be used in `nlp` like this: ```python import nlp wnut_17 = nlp.load_dataset("./datasets/wnut_17/wnut_17.py") print(wnut_17) ``` This outputs: ```txt 'train': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 3394) 'validation': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1009) 'test': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1287) ``` Number are identical with the ones in [this paper](https://www.ijcai.org/Proceedings/2019/0702.pdf) and are the same as using the `dataset` reader in Flair. ## Features The following feature format is used to represent a sentence in the WNUT 17 dataset: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `tokens` | `["AHFA", "extends", "deadline"]` | List of tokens (strings) for a sentence | `labels` | `["B-group", "O", "O"]` | List of labels (outer span) The following labels are used in WNUT 17: ```txt O B-corporation I-corporation B-location I-location B-product I-product B-person I-person B-group I-group B-creative-work I-creative-work ``` Nice ! One thing though: I saw that you copied the `dataset_info.json` (one split info), which is different from the `dataset_infos.json` (split infos of all configs) that we expect. Could you generate the `dataset_infos.json` file using this command please ? ``` python nlp-cli test datasets/wnut_17 --save_infos --all_configs ```
[ -0.07750114053487778, -0.3449987769126892, -0.03947034850716591, 0.14546483755111694, 0.054346177726984024, -0.15177372097969055, -0.12458367645740509, 0.03632334619760513, -0.23867546021938324, 0.06622390449047089, 0.04830652475357056, 0.4505139887332916, -0.33130380511283875, 0.11476694792509079, 0.22137275338172913, -0.28936371207237244, -0.06392233818769455, 0.14165951311588287, 0.07505160570144653, -0.0739191398024559, -0.2988464832305908, 0.15087679028511047, -0.21345089375972748, 0.18159599602222443, -0.26311346888542175, -0.28210678696632385, -0.1748516708612442, 0.10374298691749573, -0.1756960153579712, -0.41894856095314026, -0.12618385255336761, 0.16542287170886993, -0.15471000969409943, 0.0370015949010849, -0.00010306033072993159, -0.1090337485074997, 0.31548333168029785, -0.05047890543937683, -0.2155742049217224, 0.025887787342071533, -0.009692497551441193, -0.31588679552078247, -0.14934219419956207, -0.35779088735580444, -0.28450682759284973, -0.37646862864494324, 0.24671456217765808, 0.10837174952030182, 0.19369548559188843, 0.2576887607574463, 0.26308128237724304, 0.3939323425292969, 0.11981561779975891, 0.19196847081184387, 0.22978726029396057, 0.022064093500375748, -0.24015922844409943, -0.13208623230457306, 0.13582837581634521, -0.22657550871372223, -0.07800353318452835, 0.3878542482852936, 0.10628753900527954, -0.10669730603694916, 0.17319393157958984, 0.2933172583580017, 0.08153440803289413, -0.20008786022663116, -0.14412713050842285, 0.30081307888031006, 0.06238636374473572, -0.12490355223417282, -0.15527653694152832, -0.28052064776420593, 0.10668691247701645, -0.5383923649787903, 0.01247481256723404, 0.06561551988124847, -0.3055393695831299, 0.11082987487316132, 0.007899892516434193, 0.10176968574523926, -0.17160899937152863, 0.28441378474235535, 0.1988760530948639, 0.5202998518943787, -0.0020935069769620895, -0.048716574907302856, 0.029150789603590965, -0.21299326419830322, -0.3807322680950165, -0.10805533826351166, 0.13721956312656403, -0.08863905072212219, -0.2855384051799774, -0.20249204337596893, 0.262193888425827, 0.4112767279148102, 0.050823599100112915, 0.10626522451639175, -0.000029027462005615234, -0.06183318793773651, -0.23844361305236816, 0.04405495151877403, -0.09904283285140991, 0.0998067706823349, 0.1390581578016281, 0.10827365517616272, 0.11375465989112854, 0.3030756711959839, -0.02733917348086834, 0.22194844484329224, 0.02520175278186798, -0.013898767530918121, -0.05804194509983063, 0.007511737756431103, 0.3483273983001709, 0.1042812317609787, -0.37575027346611023, 0.0850045457482338, -0.2598433792591095, -0.004378754645586014, 0.11745569109916687, 0.33689916133880615, -0.10257988423109055, 0.1843334436416626, 0.0019219033420085907, -0.014719672501087189, -0.1440650075674057, -0.38206747174263, -0.27087005972862244, 0.12545815110206604, -0.19754242897033691, -0.07027974724769592, 0.23020844161510468, 0.2757251262664795, 0.3419731855392456, -0.20925994217395782, -0.4633973240852356, 0.17571185529232025, 0.02496548555791378, -0.17196466028690338, 0.05846117064356804, 0.014040883630514145, -0.41248390078544617, -0.05659272521734238, 0.07276660948991776, -0.15867595374584198, -0.13756176829338074, 0.02679964154958725, 0.16954194009304047, -0.20162563025951385, -0.11370685696601868, 0.3235660195350647, -0.19269846379756927, -0.1970546543598175, 0.33094173669815063, 0.30656424164772034, 0.04560704156756401, 0.031008902937173843, 0.09379830956459045, -0.01040579378604889, -0.5367398858070374, 0.008269998244941235, -0.000287078320980072, 0.19145043194293976, -0.03272753953933716, -0.13948512077331543, -0.2145567685365677, -0.09596693515777588, 0.5161098837852478, 0.23495517671108246, -0.03991280496120453, 0.2505340576171875, -0.0013250820338726044, 0.29260724782943726, 0.27211862802505493, -0.24355801939964294, -0.4125124216079712, -0.13719969987869263, -0.4987742304801941, 0.32584449648857117, 0.3101142346858978, 0.3311391770839691, -0.06616406887769699, -0.11440512537956238, 0.46702492237091064, 0.42670851945877075, -0.10411995649337769, -0.0835508406162262, -0.3487865626811981, -0.07559455931186676, 0.45264387130737305, 0.13698792457580566, -0.03542439267039299, -0.18314912915229797, -0.25436291098594666, 0.47592177987098694, 0.25973495841026306, -0.15551947057247162, 0.10210859775543213, -0.011651024222373962, 0.17625926434993744, -0.1528257131576538, 0.09668918699026108, -0.2549964487552643, -0.06563251465559006, -0.07382876425981522, -0.22136853635311127, 0.5532366037368774, 0.033166490495204926, -0.19863814115524292, -0.33995237946510315, 0.036758147180080414, -0.21920032799243927, -0.40979674458503723, 0.34092602133750916, 0.14058782160282135, 0.032817620784044266, -0.006423095241189003, -0.10763497650623322, 0.3260006606578827, -0.6526713967323303, 0.04066891595721245, -0.31559106707572937, -0.15456202626228333, -0.3141862154006958, 0.02397945150732994, 0.09040115773677826, 0.438496857881546, -0.05030970275402069, 0.23505347967147827, 0.04316246509552002, 0.13366863131523132, -0.1516055166721344, -0.17025376856327057, 0.04803961142897606, 0.1763831079006195, 0.0447201132774353, -0.29409530758857727, 0.06708774715662003, 0.24199266731739044, 0.15266330540180206, -0.08205157518386841, -0.17442619800567627, 0.2094590663909912, -0.05118058994412422, 0.044541940093040466, -0.03116915002465248, -0.1169407069683075, 0.19734852015972137, -0.14363856613636017, -0.05077102780342102, -0.30475538969039917, 0.482077419757843, -0.04388144239783287, 0.10591235756874084, 0.11076116561889648, -0.28671085834503174, 0.2643590569496155, 0.4779295027256012, 0.023076750338077545, 0.41731584072113037, 0.1854378581047058, -0.31953731179237366, -0.30561402440071106, -0.17319819331169128, 0.24682725965976715, 0.3674577474594116, 0.3445197343826294, 0.10176484286785126, 0.04080439358949661, -0.2178022563457489, -0.2512976825237274, 0.2873024046421051, 0.11345884203910828, -0.0315183587372303, 0.23730403184890747, 0.3391859233379364, 0.06162654608488083, -0.41356852650642395, -0.2606460452079773, 0.04306190460920334, 0.3540216386318207, -0.1090366542339325, -0.0488983690738678, -0.210650235414505, -0.4767919182777405, -0.0077295368537306786, 0.4274500906467438, -0.07264992594718933, -0.30909112095832825, 0.33949369192123413, 0.1131722629070282, -0.049348581582307816, 0.1591290533542633, 0.0831536203622818, 0.33160626888275146, -0.044322870671749115, 0.16695712506771088, -0.20118220150470734, -0.2654297649860382, -0.26481425762176514, 0.27097055315971375, 0.013811773620545864, 0.17329373955726624, 0.47743842005729675, -0.10291846841573715, 0.08938413113355637, -0.07417125254869461, -0.5690456628799438, 0.030708573758602142, -0.2767406702041626, 0.2291274219751358, 0.15293334424495697, 0.025660976767539978, -0.029404494911432266, -0.0034692976623773575, 0.23310929536819458, -0.11753968149423599, -0.4353971779346466, 0.013074435293674469, -0.17699767649173737, 0.0002727004757616669, -0.2746208906173706, -0.4165172874927521, -0.293621689081192, -0.31185850501060486, 0.23958221077919006, 0.12801267206668854, 0.14114472270011902, 0.6071852445602417, -0.3376547396183014, 0.09112626314163208, 0.0912688672542572, 0.35471111536026, -0.2935441732406616, 0.10160940885543823, 0.3054242730140686, -0.0803612619638443, -0.16471396386623383, -0.26653534173965454, -0.42762935161590576, -0.032837655395269394, -0.17911270260810852, -0.18986576795578003, -0.5316994786262512, -0.1567068099975586, -0.09311488270759583, 0.34903091192245483, -0.04067970812320709, 0.36628836393356323, 0.1159772202372551, -0.30040693283081055, -0.16389337182044983, -0.19629651308059692, 0.13485682010650635, 0.12689480185508728, 0.26183322072029114, -0.02157142385840416, 0.16625261306762695, 0.27031823992729187, 0.06588394939899445, 0.04575977846980095, -0.20059721171855927, 0.24284833669662476, -0.08797615021467209, 0.1337471306324005, 0.018955297768115997, -0.18730111420154572, 0.1423882246017456, 0.10948571562767029, 0.024290353059768677, 0.2118799090385437, -0.07380214333534241, 0.17329686880111694, 0.2436351478099823, -0.13668560981750488, -0.1913629174232483, -0.16591036319732666, 0.15877942740917206, 0.09214930981397629, 0.1481786072254181, 0.047307614237070084, -0.28386184573173523, -0.18713854253292084, -0.3647167682647705, 0.04836287349462509, 0.0565624013543129, 0.06828338652849197, -0.1606818288564682, -0.5322039723396301, -0.015016027726233006, -0.5892176032066345, 0.16260959208011627, -0.0010418212041258812, 0.42069292068481445, -0.13982635736465454, -0.22437724471092224, 0.14817635715007782, -0.06833595782518387, 0.40212249755859375, -0.4998733401298523, 0.11331754922866821, 0.0841151773929596, 0.24268674850463867, -0.05017871409654617, 0.14241737127304077, -0.3557473421096802, -0.06954587250947952, 0.008788909763097763, 0.25897300243377686, -0.3023940920829773, -0.11854834109544754, 0.6394749879837036, 0.12200523912906647, -0.14504142105579376, -0.10178817063570023, -0.22497032582759857, -0.23798084259033203, -0.3500460088253021, 0.09073895215988159, 0.0862697884440422, 0.34862220287323, -0.11987628042697906, 0.35694941878318787, -0.019219795241951942, 0.1844319999217987, 0.34972307085990906, 0.1888585388660431, -0.0023980336263775826, 0.18418313562870026, -0.051190540194511414, -0.09031043946743011, 0.2660592198371887, -0.4315407872200012, 0.4099178910255432, 0.08817066252231598, -0.48949766159057617, -0.07435033470392227, 0.06313803791999817, 0.11310405284166336, 0.16890856623649597, 0.08118712157011032, 0.3406885266304016, -0.07621454447507858, 0.19368746876716614, -0.2587859034538269, 0.42803189158439636, 0.29178324341773987, 0.0028227223083376884, -0.10858689993619919, -0.1907481849193573, 0.3374978005886078, 0.21161197125911713, -0.16747517883777618, -0.05256903916597366, -0.03328041732311249, -0.24702925980091095, 0.21914096176624298, 0.10470244288444519, 0.9675478339195251, -0.07109355926513672, 0.24086305499076843, 0.2672848403453827, 0.0645425096154213, 0.7271970510482788, -0.23909920454025269, 0.2474653571844101, -0.2714000940322876, 0.18243852257728577, 0.05159255862236023, 0.11299310624599457, -0.038534700870513916, 0.07262089103460312, -0.2507379353046417, 0.23267921805381775, 0.2859247326850891, 0.06305199861526489, 0.14968615770339966, 0.42766451835632324, 0.2191389948129654, -0.35891154408454895, -0.5219066739082336, 0.18374305963516235, -0.11960047483444214, 0.3143867552280426, -0.01433022040873766, -0.12613478302955627, -0.002002902328968048, -0.1806916743516922, -0.09942653030157089, 0.07601108402013779, 0.09021442383527756, 0.04358972609043121, 0.08998903632164001, -0.3654497265815735, 0.02733156457543373, 0.25670936703681946, 0.3779599666595459, 0.1352461874485016, -0.03668157011270523, -0.04525572434067726, -0.24864593148231506, -0.08965356647968292, 0.20831890404224396, -0.009367594495415688, 0.2741602063179016, -0.1398947536945343, -0.22564050555229187, 0.07067054510116577, 0.017421375960111618, -0.17437371611595154, -0.14182016253471375, -0.013243637979030609, 0.310441792011261, 0.015800371766090393, 0.0463377945125103, 0.14528526365756989, -0.34060025215148926, -0.28297311067581177, 0.2075013965368271, -0.02269107848405838, -0.1379198133945465, 0.049489185214042664, 0.023078491911292076, -0.10767214000225067, 0.06099533662199974, -0.021971173584461212, 0.21445369720458984, -0.00891190581023693, 0.4136681854724884, 0.07095244526863098, -0.07209818065166473, -0.37600958347320557, -0.06633405387401581, -0.07230127602815628, -0.2538686692714691, 0.04921629652380943, 0.43594998121261597, -0.24853962659835815, 0.26142415404319763, 0.4520167410373688, 0.0842258408665657, 0.1079481691122055, -0.07547538727521896, -0.30427271127700806, -0.36709681153297424, 0.3225240111351013, -0.21184857189655304, 0.17459627985954285, 0.09897524863481522, 0.31733521819114685, -0.13540460169315338, 0.13964682817459106, -0.48371806740760803, -0.19208157062530518, -0.5084143877029419, 0.3050757348537445, 0.23392055928707123, -0.23272985219955444, 0.0063859038054943085, 0.19148965179920197, 0.2883717119693756, 0.07160542905330658, -0.17745761573314667, -0.3261619806289673, -0.09995315968990326, 0.0924426019191742, 0.05918759107589722, -0.017754046246409416, -0.1406092643737793, 0.10873952507972717, 0.017925500869750977, -0.07308336347341537, 0.11310331523418427, -0.016024988144636154, 0.06567001342773438, 0.36105895042419434, -0.24391917884349823, 0.14812445640563965, 0.04383886605501175, -0.08803264796733856, -0.08101193606853485, 0.19547587633132935, 0.07684177160263062, 0.016242707148194313, 0.0836954414844513, -0.02148650959134102, -0.041388221085071564, 0.08499790728092194, 0.10926364362239838, 0.24555820226669312, 0.15445895493030548, -0.1041213870048523, -0.2797009348869324, -0.0830780491232872, 0.11296136677265167, 0.009375158697366714, -0.06866489350795746, -0.21204455196857452, 0.1623014509677887, 0.3067091703414917, -0.5029757022857666, -0.03884875774383545, 0.41639190912246704, -0.14187556505203247, 0.38097503781318665, 0.20789775252342224, 0.03657076880335808, 0.11666214466094971, -0.08191296458244324, 0.06376710534095764, 0.016246413812041283, -0.3921995162963867, -0.13308767974376678, 0.0014981068670749664, 0.07486847043037415, 0.025225959718227386, 0.35747602581977844, -0.05286248400807381, 0.3976605534553528, 0.4321279525756836, 0.2883602976799011, 0.31123772263526917, 0.11672112345695496, 0.43351373076438904, 0.24609673023223877, -0.012715296819806099, 0.0071144700050354, 0.3599637448787689, 0.02124946564435959, 0.18894857168197632, -0.053925007581710815, -0.0260196253657341, 0.03261668607592583, 0.14510183036327362, -0.21340270340442657, 0.17073246836662292, -0.039780840277671814, -0.11651468276977539, -0.4040432274341583, -0.17668114602565765, -0.10329366475343704, -0.20389114320278168, -0.04402456060051918, -0.121092289686203, -0.06595739722251892, -0.1365748941898346, -0.018727369606494904, -0.2670525908470154, -0.16116034984588623, 0.2727392017841339, 0.3101467788219452, -0.4162324070930481, 0.17524166405200958, 0.21348682045936584, -0.007019944489002228, 0.0682983547449112, 0.3025470972061157, 0.2528832256793976, 0.11399593949317932, -0.2558079659938812, 0.07715213298797607, -0.17554150521755219, -0.1818423867225647, -0.21920941770076752, 0.23901812732219696, 0.3809483051300049, -0.23446474969387054, 0.26240274310112, 0.15450851619243622, -0.20246605575084686, -0.014498967677354813, 0.30660274624824524, -0.2584308087825775, 0.03166608139872551, 0.1937389075756073, 0.15871544182300568, -0.23535192012786865, -0.18100614845752716, 0.19852899014949799, -0.369726300239563, -0.05373590067028999, 0.3328189551830292, 0.0853738859295845, 0.18768739700317383, -0.27015477418899536, 0.1486450880765915, -0.14515423774719238, 0.2616646885871887, 0.4270964562892914, -0.05536685138940811, -0.19973032176494598, -0.16675837337970734, -0.5244956016540527, 0.1514451503753662, -0.1235981285572052, -0.5611371994018555, -0.16556112468242645, 0.1953263282775879, 0.16719014942646027, 0.3511519432067871, -0.40608441829681396, -0.04150849208235741, -0.1437942087650299, 0.24009481072425842, -0.2917271554470062, 0.15547582507133484, 0.15707002580165863, 0.09411057829856873, -0.009420674294233322, -0.2071438729763031, -0.062188517302274704, -0.3746607303619385, 0.1740250587463379, -0.15737920999526978, 0.21206358075141907, 0.08018758893013, 0.2376241832971573, 0.040222156792879105, 0.3251848816871643, 0.31193262338638306, -0.2005106508731842, -0.002762323245406151, -0.1801980584859848, -0.05547338351607323, -0.26661261916160583, 0.27002862095832825, 0.10876661539077759, 0.5682491064071655, 0.10808555781841278, 0.2925416827201843, 0.07006747275590897, -0.11154741048812866, -0.04116861894726753, 0.13878868520259857, -0.04041591286659241, 0.41286957263946533, -0.03578382730484009, 0.24304549396038055, -0.13714508712291718, 0.17284876108169556, 0.18914107978343964, -0.12659619748592377, -0.3329896330833435, -0.5771507024765015, 0.34419792890548706, -0.24706816673278809, -0.22978021204471588, -0.13581451773643494, 0.32271289825439453, -0.06894474476575851, 0.012945443391799927, -0.3124530017375946, -0.11481534689664841, 0.2913002669811249, 0.12142185121774673, -0.16117095947265625, 0.27324551343917847, 0.2533019185066223, -0.07580680400133133, -0.02832968905568123, -0.053185075521469116, -0.1364108920097351, -0.07755480706691742, 0.03763490542769432, -0.3825100064277649 ]
https://github.com/huggingface/datasets/pull/150
Add WNUT 17 NER dataset
Hi @patrickvonplaten I just rebased onto latest `master` version and executed the commands. All tests passed then :) @lhoestq thanks for that hint! I've generated and added the `dataset_infos.json` and deleted `dataset_info.json`.
Hi, this PR adds the WNUT 17 dataset to `nlp`. > Emerging and Rare entity recognition > This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event clustering and summarisation), but recall on them is a real problem in noisy text - even among annotators. This drop tends to be due to novel entities and surface forms. Take for example the tweet “so.. kktny in 30 mins?” - even human experts find entity kktny hard to detect and resolve. This task will evaluate the ability to detect and classify novel, emerging, singleton named entities in noisy text. > > The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities. More information about the dataset can be found on the [shared task page](https://noisy-text.github.io/2017/emerging-rare-entities.html). Dataset is taken is taken from their [GitHub repository](https://github.com/leondz/emerging_entities_17), because the data provided in this repository contains minor fixes in the dataset format. ## Usage Then the WNUT 17 dataset can be used in `nlp` like this: ```python import nlp wnut_17 = nlp.load_dataset("./datasets/wnut_17/wnut_17.py") print(wnut_17) ``` This outputs: ```txt 'train': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 3394) 'validation': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1009) 'test': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1287) ``` Number are identical with the ones in [this paper](https://www.ijcai.org/Proceedings/2019/0702.pdf) and are the same as using the `dataset` reader in Flair. ## Features The following feature format is used to represent a sentence in the WNUT 17 dataset: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `tokens` | `["AHFA", "extends", "deadline"]` | List of tokens (strings) for a sentence | `labels` | `["B-group", "O", "O"]` | List of labels (outer span) The following labels are used in WNUT 17: ```txt O B-corporation I-corporation B-location I-location B-product I-product B-person I-person B-group I-group B-creative-work I-creative-work ```
32
text: Add WNUT 17 NER dataset Hi, this PR adds the WNUT 17 dataset to `nlp`. > Emerging and Rare entity recognition > This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event clustering and summarisation), but recall on them is a real problem in noisy text - even among annotators. This drop tends to be due to novel entities and surface forms. Take for example the tweet “so.. kktny in 30 mins?” - even human experts find entity kktny hard to detect and resolve. This task will evaluate the ability to detect and classify novel, emerging, singleton named entities in noisy text. > > The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities. More information about the dataset can be found on the [shared task page](https://noisy-text.github.io/2017/emerging-rare-entities.html). Dataset is taken is taken from their [GitHub repository](https://github.com/leondz/emerging_entities_17), because the data provided in this repository contains minor fixes in the dataset format. ## Usage Then the WNUT 17 dataset can be used in `nlp` like this: ```python import nlp wnut_17 = nlp.load_dataset("./datasets/wnut_17/wnut_17.py") print(wnut_17) ``` This outputs: ```txt 'train': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 3394) 'validation': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1009) 'test': Dataset(schema: {'id': 'string', 'tokens': 'list<item: string>', 'labels': 'list<item: string>'}, num_rows: 1287) ``` Number are identical with the ones in [this paper](https://www.ijcai.org/Proceedings/2019/0702.pdf) and are the same as using the `dataset` reader in Flair. ## Features The following feature format is used to represent a sentence in the WNUT 17 dataset: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `tokens` | `["AHFA", "extends", "deadline"]` | List of tokens (strings) for a sentence | `labels` | `["B-group", "O", "O"]` | List of labels (outer span) The following labels are used in WNUT 17: ```txt O B-corporation I-corporation B-location I-location B-product I-product B-person I-person B-group I-group B-creative-work I-creative-work ``` Hi @patrickvonplaten I just rebased onto latest `master` version and executed the commands. All tests passed then :) @lhoestq thanks for that hint! I've generated and added the `dataset_infos.json` and deleted `dataset_info.json`.
[ -0.07750114053487778, -0.3449987769126892, -0.03947034850716591, 0.14546483755111694, 0.054346177726984024, -0.15177372097969055, -0.12458367645740509, 0.03632334619760513, -0.23867546021938324, 0.06622390449047089, 0.04830652475357056, 0.4505139887332916, -0.33130380511283875, 0.11476694792509079, 0.22137275338172913, -0.28936371207237244, -0.06392233818769455, 0.14165951311588287, 0.07505160570144653, -0.0739191398024559, -0.2988464832305908, 0.15087679028511047, -0.21345089375972748, 0.18159599602222443, -0.26311346888542175, -0.28210678696632385, -0.1748516708612442, 0.10374298691749573, -0.1756960153579712, -0.41894856095314026, -0.12618385255336761, 0.16542287170886993, -0.15471000969409943, 0.0370015949010849, -0.00010306033072993159, -0.1090337485074997, 0.31548333168029785, -0.05047890543937683, -0.2155742049217224, 0.025887787342071533, -0.009692497551441193, -0.31588679552078247, -0.14934219419956207, -0.35779088735580444, -0.28450682759284973, -0.37646862864494324, 0.24671456217765808, 0.10837174952030182, 0.19369548559188843, 0.2576887607574463, 0.26308128237724304, 0.3939323425292969, 0.11981561779975891, 0.19196847081184387, 0.22978726029396057, 0.022064093500375748, -0.24015922844409943, -0.13208623230457306, 0.13582837581634521, -0.22657550871372223, -0.07800353318452835, 0.3878542482852936, 0.10628753900527954, -0.10669730603694916, 0.17319393157958984, 0.2933172583580017, 0.08153440803289413, -0.20008786022663116, -0.14412713050842285, 0.30081307888031006, 0.06238636374473572, -0.12490355223417282, -0.15527653694152832, -0.28052064776420593, 0.10668691247701645, -0.5383923649787903, 0.01247481256723404, 0.06561551988124847, -0.3055393695831299, 0.11082987487316132, 0.007899892516434193, 0.10176968574523926, -0.17160899937152863, 0.28441378474235535, 0.1988760530948639, 0.5202998518943787, -0.0020935069769620895, -0.048716574907302856, 0.029150789603590965, -0.21299326419830322, -0.3807322680950165, -0.10805533826351166, 0.13721956312656403, -0.08863905072212219, -0.2855384051799774, -0.20249204337596893, 0.262193888425827, 0.4112767279148102, 0.050823599100112915, 0.10626522451639175, -0.000029027462005615234, -0.06183318793773651, -0.23844361305236816, 0.04405495151877403, -0.09904283285140991, 0.0998067706823349, 0.1390581578016281, 0.10827365517616272, 0.11375465989112854, 0.3030756711959839, -0.02733917348086834, 0.22194844484329224, 0.02520175278186798, -0.013898767530918121, -0.05804194509983063, 0.007511737756431103, 0.3483273983001709, 0.1042812317609787, -0.37575027346611023, 0.0850045457482338, -0.2598433792591095, -0.004378754645586014, 0.11745569109916687, 0.33689916133880615, -0.10257988423109055, 0.1843334436416626, 0.0019219033420085907, -0.014719672501087189, -0.1440650075674057, -0.38206747174263, -0.27087005972862244, 0.12545815110206604, -0.19754242897033691, -0.07027974724769592, 0.23020844161510468, 0.2757251262664795, 0.3419731855392456, -0.20925994217395782, -0.4633973240852356, 0.17571185529232025, 0.02496548555791378, -0.17196466028690338, 0.05846117064356804, 0.014040883630514145, -0.41248390078544617, -0.05659272521734238, 0.07276660948991776, -0.15867595374584198, -0.13756176829338074, 0.02679964154958725, 0.16954194009304047, -0.20162563025951385, -0.11370685696601868, 0.3235660195350647, -0.19269846379756927, -0.1970546543598175, 0.33094173669815063, 0.30656424164772034, 0.04560704156756401, 0.031008902937173843, 0.09379830956459045, -0.01040579378604889, -0.5367398858070374, 0.008269998244941235, -0.000287078320980072, 0.19145043194293976, -0.03272753953933716, -0.13948512077331543, -0.2145567685365677, -0.09596693515777588, 0.5161098837852478, 0.23495517671108246, -0.03991280496120453, 0.2505340576171875, -0.0013250820338726044, 0.29260724782943726, 0.27211862802505493, -0.24355801939964294, -0.4125124216079712, -0.13719969987869263, -0.4987742304801941, 0.32584449648857117, 0.3101142346858978, 0.3311391770839691, -0.06616406887769699, -0.11440512537956238, 0.46702492237091064, 0.42670851945877075, -0.10411995649337769, -0.0835508406162262, -0.3487865626811981, -0.07559455931186676, 0.45264387130737305, 0.13698792457580566, -0.03542439267039299, -0.18314912915229797, -0.25436291098594666, 0.47592177987098694, 0.25973495841026306, -0.15551947057247162, 0.10210859775543213, -0.011651024222373962, 0.17625926434993744, -0.1528257131576538, 0.09668918699026108, -0.2549964487552643, -0.06563251465559006, -0.07382876425981522, -0.22136853635311127, 0.5532366037368774, 0.033166490495204926, -0.19863814115524292, -0.33995237946510315, 0.036758147180080414, -0.21920032799243927, -0.40979674458503723, 0.34092602133750916, 0.14058782160282135, 0.032817620784044266, -0.006423095241189003, -0.10763497650623322, 0.3260006606578827, -0.6526713967323303, 0.04066891595721245, -0.31559106707572937, -0.15456202626228333, -0.3141862154006958, 0.02397945150732994, 0.09040115773677826, 0.438496857881546, -0.05030970275402069, 0.23505347967147827, 0.04316246509552002, 0.13366863131523132, -0.1516055166721344, -0.17025376856327057, 0.04803961142897606, 0.1763831079006195, 0.0447201132774353, -0.29409530758857727, 0.06708774715662003, 0.24199266731739044, 0.15266330540180206, -0.08205157518386841, -0.17442619800567627, 0.2094590663909912, -0.05118058994412422, 0.044541940093040466, -0.03116915002465248, -0.1169407069683075, 0.19734852015972137, -0.14363856613636017, -0.05077102780342102, -0.30475538969039917, 0.482077419757843, -0.04388144239783287, 0.10591235756874084, 0.11076116561889648, -0.28671085834503174, 0.2643590569496155, 0.4779295027256012, 0.023076750338077545, 0.41731584072113037, 0.1854378581047058, -0.31953731179237366, -0.30561402440071106, -0.17319819331169128, 0.24682725965976715, 0.3674577474594116, 0.3445197343826294, 0.10176484286785126, 0.04080439358949661, -0.2178022563457489, -0.2512976825237274, 0.2873024046421051, 0.11345884203910828, -0.0315183587372303, 0.23730403184890747, 0.3391859233379364, 0.06162654608488083, -0.41356852650642395, -0.2606460452079773, 0.04306190460920334, 0.3540216386318207, -0.1090366542339325, -0.0488983690738678, -0.210650235414505, -0.4767919182777405, -0.0077295368537306786, 0.4274500906467438, -0.07264992594718933, -0.30909112095832825, 0.33949369192123413, 0.1131722629070282, -0.049348581582307816, 0.1591290533542633, 0.0831536203622818, 0.33160626888275146, -0.044322870671749115, 0.16695712506771088, -0.20118220150470734, -0.2654297649860382, -0.26481425762176514, 0.27097055315971375, 0.013811773620545864, 0.17329373955726624, 0.47743842005729675, -0.10291846841573715, 0.08938413113355637, -0.07417125254869461, -0.5690456628799438, 0.030708573758602142, -0.2767406702041626, 0.2291274219751358, 0.15293334424495697, 0.025660976767539978, -0.029404494911432266, -0.0034692976623773575, 0.23310929536819458, -0.11753968149423599, -0.4353971779346466, 0.013074435293674469, -0.17699767649173737, 0.0002727004757616669, -0.2746208906173706, -0.4165172874927521, -0.293621689081192, -0.31185850501060486, 0.23958221077919006, 0.12801267206668854, 0.14114472270011902, 0.6071852445602417, -0.3376547396183014, 0.09112626314163208, 0.0912688672542572, 0.35471111536026, -0.2935441732406616, 0.10160940885543823, 0.3054242730140686, -0.0803612619638443, -0.16471396386623383, -0.26653534173965454, -0.42762935161590576, -0.032837655395269394, -0.17911270260810852, -0.18986576795578003, -0.5316994786262512, -0.1567068099975586, -0.09311488270759583, 0.34903091192245483, -0.04067970812320709, 0.36628836393356323, 0.1159772202372551, -0.30040693283081055, -0.16389337182044983, -0.19629651308059692, 0.13485682010650635, 0.12689480185508728, 0.26183322072029114, -0.02157142385840416, 0.16625261306762695, 0.27031823992729187, 0.06588394939899445, 0.04575977846980095, -0.20059721171855927, 0.24284833669662476, -0.08797615021467209, 0.1337471306324005, 0.018955297768115997, -0.18730111420154572, 0.1423882246017456, 0.10948571562767029, 0.024290353059768677, 0.2118799090385437, -0.07380214333534241, 0.17329686880111694, 0.2436351478099823, -0.13668560981750488, -0.1913629174232483, -0.16591036319732666, 0.15877942740917206, 0.09214930981397629, 0.1481786072254181, 0.047307614237070084, -0.28386184573173523, -0.18713854253292084, -0.3647167682647705, 0.04836287349462509, 0.0565624013543129, 0.06828338652849197, -0.1606818288564682, -0.5322039723396301, -0.015016027726233006, -0.5892176032066345, 0.16260959208011627, -0.0010418212041258812, 0.42069292068481445, -0.13982635736465454, -0.22437724471092224, 0.14817635715007782, -0.06833595782518387, 0.40212249755859375, -0.4998733401298523, 0.11331754922866821, 0.0841151773929596, 0.24268674850463867, -0.05017871409654617, 0.14241737127304077, -0.3557473421096802, -0.06954587250947952, 0.008788909763097763, 0.25897300243377686, -0.3023940920829773, -0.11854834109544754, 0.6394749879837036, 0.12200523912906647, -0.14504142105579376, -0.10178817063570023, -0.22497032582759857, -0.23798084259033203, -0.3500460088253021, 0.09073895215988159, 0.0862697884440422, 0.34862220287323, -0.11987628042697906, 0.35694941878318787, -0.019219795241951942, 0.1844319999217987, 0.34972307085990906, 0.1888585388660431, -0.0023980336263775826, 0.18418313562870026, -0.051190540194511414, -0.09031043946743011, 0.2660592198371887, -0.4315407872200012, 0.4099178910255432, 0.08817066252231598, -0.48949766159057617, -0.07435033470392227, 0.06313803791999817, 0.11310405284166336, 0.16890856623649597, 0.08118712157011032, 0.3406885266304016, -0.07621454447507858, 0.19368746876716614, -0.2587859034538269, 0.42803189158439636, 0.29178324341773987, 0.0028227223083376884, -0.10858689993619919, -0.1907481849193573, 0.3374978005886078, 0.21161197125911713, -0.16747517883777618, -0.05256903916597366, -0.03328041732311249, -0.24702925980091095, 0.21914096176624298, 0.10470244288444519, 0.9675478339195251, -0.07109355926513672, 0.24086305499076843, 0.2672848403453827, 0.0645425096154213, 0.7271970510482788, -0.23909920454025269, 0.2474653571844101, -0.2714000940322876, 0.18243852257728577, 0.05159255862236023, 0.11299310624599457, -0.038534700870513916, 0.07262089103460312, -0.2507379353046417, 0.23267921805381775, 0.2859247326850891, 0.06305199861526489, 0.14968615770339966, 0.42766451835632324, 0.2191389948129654, -0.35891154408454895, -0.5219066739082336, 0.18374305963516235, -0.11960047483444214, 0.3143867552280426, -0.01433022040873766, -0.12613478302955627, -0.002002902328968048, -0.1806916743516922, -0.09942653030157089, 0.07601108402013779, 0.09021442383527756, 0.04358972609043121, 0.08998903632164001, -0.3654497265815735, 0.02733156457543373, 0.25670936703681946, 0.3779599666595459, 0.1352461874485016, -0.03668157011270523, -0.04525572434067726, -0.24864593148231506, -0.08965356647968292, 0.20831890404224396, -0.009367594495415688, 0.2741602063179016, -0.1398947536945343, -0.22564050555229187, 0.07067054510116577, 0.017421375960111618, -0.17437371611595154, -0.14182016253471375, -0.013243637979030609, 0.310441792011261, 0.015800371766090393, 0.0463377945125103, 0.14528526365756989, -0.34060025215148926, -0.28297311067581177, 0.2075013965368271, -0.02269107848405838, -0.1379198133945465, 0.049489185214042664, 0.023078491911292076, -0.10767214000225067, 0.06099533662199974, -0.021971173584461212, 0.21445369720458984, -0.00891190581023693, 0.4136681854724884, 0.07095244526863098, -0.07209818065166473, -0.37600958347320557, -0.06633405387401581, -0.07230127602815628, -0.2538686692714691, 0.04921629652380943, 0.43594998121261597, -0.24853962659835815, 0.26142415404319763, 0.4520167410373688, 0.0842258408665657, 0.1079481691122055, -0.07547538727521896, -0.30427271127700806, -0.36709681153297424, 0.3225240111351013, -0.21184857189655304, 0.17459627985954285, 0.09897524863481522, 0.31733521819114685, -0.13540460169315338, 0.13964682817459106, -0.48371806740760803, -0.19208157062530518, -0.5084143877029419, 0.3050757348537445, 0.23392055928707123, -0.23272985219955444, 0.0063859038054943085, 0.19148965179920197, 0.2883717119693756, 0.07160542905330658, -0.17745761573314667, -0.3261619806289673, -0.09995315968990326, 0.0924426019191742, 0.05918759107589722, -0.017754046246409416, -0.1406092643737793, 0.10873952507972717, 0.017925500869750977, -0.07308336347341537, 0.11310331523418427, -0.016024988144636154, 0.06567001342773438, 0.36105895042419434, -0.24391917884349823, 0.14812445640563965, 0.04383886605501175, -0.08803264796733856, -0.08101193606853485, 0.19547587633132935, 0.07684177160263062, 0.016242707148194313, 0.0836954414844513, -0.02148650959134102, -0.041388221085071564, 0.08499790728092194, 0.10926364362239838, 0.24555820226669312, 0.15445895493030548, -0.1041213870048523, -0.2797009348869324, -0.0830780491232872, 0.11296136677265167, 0.009375158697366714, -0.06866489350795746, -0.21204455196857452, 0.1623014509677887, 0.3067091703414917, -0.5029757022857666, -0.03884875774383545, 0.41639190912246704, -0.14187556505203247, 0.38097503781318665, 0.20789775252342224, 0.03657076880335808, 0.11666214466094971, -0.08191296458244324, 0.06376710534095764, 0.016246413812041283, -0.3921995162963867, -0.13308767974376678, 0.0014981068670749664, 0.07486847043037415, 0.025225959718227386, 0.35747602581977844, -0.05286248400807381, 0.3976605534553528, 0.4321279525756836, 0.2883602976799011, 0.31123772263526917, 0.11672112345695496, 0.43351373076438904, 0.24609673023223877, -0.012715296819806099, 0.0071144700050354, 0.3599637448787689, 0.02124946564435959, 0.18894857168197632, -0.053925007581710815, -0.0260196253657341, 0.03261668607592583, 0.14510183036327362, -0.21340270340442657, 0.17073246836662292, -0.039780840277671814, -0.11651468276977539, -0.4040432274341583, -0.17668114602565765, -0.10329366475343704, -0.20389114320278168, -0.04402456060051918, -0.121092289686203, -0.06595739722251892, -0.1365748941898346, -0.018727369606494904, -0.2670525908470154, -0.16116034984588623, 0.2727392017841339, 0.3101467788219452, -0.4162324070930481, 0.17524166405200958, 0.21348682045936584, -0.007019944489002228, 0.0682983547449112, 0.3025470972061157, 0.2528832256793976, 0.11399593949317932, -0.2558079659938812, 0.07715213298797607, -0.17554150521755219, -0.1818423867225647, -0.21920941770076752, 0.23901812732219696, 0.3809483051300049, -0.23446474969387054, 0.26240274310112, 0.15450851619243622, -0.20246605575084686, -0.014498967677354813, 0.30660274624824524, -0.2584308087825775, 0.03166608139872551, 0.1937389075756073, 0.15871544182300568, -0.23535192012786865, -0.18100614845752716, 0.19852899014949799, -0.369726300239563, -0.05373590067028999, 0.3328189551830292, 0.0853738859295845, 0.18768739700317383, -0.27015477418899536, 0.1486450880765915, -0.14515423774719238, 0.2616646885871887, 0.4270964562892914, -0.05536685138940811, -0.19973032176494598, -0.16675837337970734, -0.5244956016540527, 0.1514451503753662, -0.1235981285572052, -0.5611371994018555, -0.16556112468242645, 0.1953263282775879, 0.16719014942646027, 0.3511519432067871, -0.40608441829681396, -0.04150849208235741, -0.1437942087650299, 0.24009481072425842, -0.2917271554470062, 0.15547582507133484, 0.15707002580165863, 0.09411057829856873, -0.009420674294233322, -0.2071438729763031, -0.062188517302274704, -0.3746607303619385, 0.1740250587463379, -0.15737920999526978, 0.21206358075141907, 0.08018758893013, 0.2376241832971573, 0.040222156792879105, 0.3251848816871643, 0.31193262338638306, -0.2005106508731842, -0.002762323245406151, -0.1801980584859848, -0.05547338351607323, -0.26661261916160583, 0.27002862095832825, 0.10876661539077759, 0.5682491064071655, 0.10808555781841278, 0.2925416827201843, 0.07006747275590897, -0.11154741048812866, -0.04116861894726753, 0.13878868520259857, -0.04041591286659241, 0.41286957263946533, -0.03578382730484009, 0.24304549396038055, -0.13714508712291718, 0.17284876108169556, 0.18914107978343964, -0.12659619748592377, -0.3329896330833435, -0.5771507024765015, 0.34419792890548706, -0.24706816673278809, -0.22978021204471588, -0.13581451773643494, 0.32271289825439453, -0.06894474476575851, 0.012945443391799927, -0.3124530017375946, -0.11481534689664841, 0.2913002669811249, 0.12142185121774673, -0.16117095947265625, 0.27324551343917847, 0.2533019185066223, -0.07580680400133133, -0.02832968905568123, -0.053185075521469116, -0.1364108920097351, -0.07755480706691742, 0.03763490542769432, -0.3825100064277649 ]
https://github.com/huggingface/datasets/pull/140
[Tests] run local tests as default
You are right and I think those are usual best practice :) I'm 100% fine with this^^
This PR also enables local tests by default I think it's safer for now to enable both local and aws tests for every commit. The problem currently is that when we do a PR to add a dataset, the dataset is not yet on AWS on therefore not tested on the PR itself. Thus the PR will always be green even if the datasets are not correct. This PR aims at fixing this. ## Suggestion on how to commit to the repo from now on: Now since the repo is "online", I think we should adopt a couple of best practices: 1) - No direct committing to the repo anymore. Every change should be opened in a PR and be well documented so that we can find it later 2) - Every PR has to be reviewed by at least x people (I guess @thomwolf you should decide here) because we now have to be much more careful when doing changes to the API for backward compatibility, etc...
17
text: [Tests] run local tests as default This PR also enables local tests by default I think it's safer for now to enable both local and aws tests for every commit. The problem currently is that when we do a PR to add a dataset, the dataset is not yet on AWS on therefore not tested on the PR itself. Thus the PR will always be green even if the datasets are not correct. This PR aims at fixing this. ## Suggestion on how to commit to the repo from now on: Now since the repo is "online", I think we should adopt a couple of best practices: 1) - No direct committing to the repo anymore. Every change should be opened in a PR and be well documented so that we can find it later 2) - Every PR has to be reviewed by at least x people (I guess @thomwolf you should decide here) because we now have to be much more careful when doing changes to the API for backward compatibility, etc... You are right and I think those are usual best practice :) I'm 100% fine with this^^
[ -0.5064172148704529, 0.08791546523571014, -0.18445396423339844, -0.5891079902648926, 0.013651775196194649, -0.20680397748947144, -0.06265491247177124, 0.24935302138328552, -0.026483071967959404, 0.21119695901870728, 0.2747945189476013, 0.2598637640476227, 0.13629983365535736, 0.35735806822776794, 0.044217221438884735, -0.038267701864242554, 0.15518534183502197, 0.28663527965545654, 0.11994734406471252, 0.0410582572221756, -0.2829563021659851, -0.1137421727180481, -0.02630956470966339, -0.08794461190700531, 0.06464096158742905, -0.1019425019621849, 0.01666351594030857, 0.03507503867149353, -0.2700074017047882, -0.453521728515625, 0.03116234950721264, 0.3220230042934418, 0.04683864861726761, 0.01513586938381195, -0.0001078670538845472, -0.124562568962574, 0.333388090133667, 0.061477892100811005, 0.10047711431980133, -0.06453585624694824, -0.535984218120575, 0.017059262841939926, 0.16382154822349548, -0.13461615145206451, -0.15803059935569763, -0.13035671412944794, 0.09234502911567688, -0.16164898872375488, 0.11216341704130173, 0.3468343913555145, 0.21088570356369019, 0.26851946115493774, 0.08648927509784698, -0.11413925141096115, 0.12374724447727203, 0.20065484941005707, -0.17504814267158508, 0.025935782119631767, 0.13550728559494019, 0.06274163722991943, 0.08068764954805374, 0.18426600098609924, 0.14068348705768585, 0.33417293429374695, 0.329184889793396, 0.05530831590294838, 0.39976227283477783, -0.302822470664978, 0.0024952255189418793, 0.017274174839258194, 0.5906540751457214, 0.00949820876121521, -0.16111113131046295, 0.17646488547325134, -0.043024029582738876, -0.30169880390167236, -0.018069081008434296, 0.2662947475910187, 0.034117236733436584, 0.2987493574619293, -0.41840529441833496, -0.44458720088005066, -0.3272228240966797, 0.2960488796234131, -0.05251101776957512, 0.3074619472026825, 0.0789884477853775, 0.033536553382873535, 0.1713446080684662, 0.09683019667863846, -0.07605292648077011, -0.09502843767404556, -0.3386748731136322, -0.1645086407661438, 0.09285958111286163, -0.01142708957195282, 0.15600726008415222, 0.2639842927455902, 0.158172607421875, 0.6265807747840881, -0.23143212497234344, 0.014780651777982712, -0.07438974827528, 0.1961902678012848, 0.024539435282349586, 0.18071655929088593, 0.349155068397522, 0.2122439742088318, 0.44024378061294556, -0.0721428170800209, 0.18867626786231995, 0.08228953182697296, 0.24413499236106873, -0.13446307182312012, 0.06230226531624794, 0.007840979844331741, 0.3975215554237366, -0.457355260848999, 0.003317398950457573, 0.22473709285259247, -0.12126652151346207, -0.4056185185909271, -0.32567164301872253, 0.26147720217704773, 0.29809266328811646, 0.03136739507317543, 0.05475149303674698, 0.21243886649608612, -0.0698297768831253, -0.13960476219654083, -0.19585837423801422, -0.22243377566337585, -0.16138824820518494, 0.012727289460599422, -0.09789064526557922, -0.07530029118061066, 0.33258914947509766, -0.03253735974431038, 0.2647817134857178, -0.18488870561122894, 0.23564907908439636, 0.18870368599891663, -0.009469501674175262, 0.6546266674995422, 0.035102542489767075, 0.018936580047011375, -0.07355569303035736, -0.17421448230743408, -0.07161106169223785, 0.48722416162490845, 0.1897943913936615, -0.6010742783546448, -0.11934825778007507, 0.25078892707824707, -0.4637707471847534, -0.21065300703048706, -0.3119052052497864, 0.1848062425851822, -0.08256354182958603, 0.15815506875514984, 0.33465978503227234, 0.0006535090506076813, 0.1732010543346405, 0.025273052975535393, 0.1969258189201355, 0.35104885697364807, -0.19944043457508087, -0.11947255581617355, 0.3239678144454956, -0.46024763584136963, 0.3031291961669922, 0.09336680918931961, -0.3617177903652191, 0.1381402313709259, 0.039025142788887024, -0.23177140951156616, 0.23109939694404602, -0.3609894812107086, -0.10070037096738815, 0.302773654460907, -0.10555553436279297, -0.4360940754413605, 0.0487809032201767, -0.12329105287790298, -0.3397178053855896, 0.024367840960621834, -0.25803402066230774, 0.06436951458454132, -0.020567400380969048, 0.3192596435546875, -0.49104058742523193, -0.18397203087806702, -0.11865630745887756, -0.01351049356162548, 0.07239589840173721, 0.12605398893356323, 0.06747805327177048, -0.028721164911985397, 0.14289173483848572, -0.16364699602127075, 0.04441925883293152, -0.08986920118331909, 0.7647100687026978, -0.34428709745407104, -0.1361265480518341, 0.07507311552762985, -0.28073328733444214, -0.051374245434999466, -0.08579829335212708, 0.2363233119249344, 0.162023663520813, -0.1888802945613861, -0.16667771339416504, 0.020319273695349693, -0.28835177421569824, -0.25977545976638794, 0.08474899083375931, 0.306305468082428, -0.04505198448896408, -0.053919918835163116, -0.28697484731674194, -0.28361496329307556, -0.37353718280792236, 0.04352922737598419, 0.018636470660567284, 0.06874490529298782, -0.2321571558713913, 0.1898743063211441, 0.0003351084887981415, -0.1940268576145172, -0.021705523133277893, -0.2581816017627716, -0.1732161045074463, 0.5914064645767212, -0.04775611311197281, 0.4510088562965393, 0.3616180121898651, 0.4731120467185974, 0.24137131869792938, -0.030488912016153336, -0.05895543098449707, -0.18184693157672882, -0.14771097898483276, 0.18687444925308228, -0.5208006501197815, 0.4051940441131592, 0.052847523242235184, -0.026374422013759613, -0.31671011447906494, -0.22238093614578247, 0.26946380734443665, -0.08614740520715714, -0.58050936460495, -0.03593716770410538, -0.09955884516239166, 0.23534932732582092, -0.03522782400250435, -0.06421109288930893, -0.23051634430885315, 0.15706035494804382, -0.2819942533969879, -0.35191819071769714, -0.09896110743284225, -0.06826716661453247, 0.24730539321899414, -0.1608920693397522, 0.23982681334018707, 0.480670303106308, 0.38037389516830444, 0.1829390525817871, -0.0476696752011776, -0.0011031851172447205, -0.2675524652004242, -0.2812308669090271, 0.09548212587833405, 0.15649254620075226, 0.23226489126682281, 0.0957789421081543, 0.16637089848518372, -0.18811160326004028, -0.21524757146835327, 0.074397012591362, 0.16196703910827637, 0.4390741288661957, -0.17379361391067505, -0.059988729655742645, -0.22524842619895935, -0.19399771094322205, -0.1450350284576416, -0.02076219767332077, 0.1863669455051422, -0.24407337605953217, 0.1633792370557785, -0.2220446765422821, -0.58892422914505, 0.23812712728977203, 0.12806935608386993, 0.4928390383720398, -0.20391888916492462, -0.2400766760110855, -0.2681688368320465, -0.05114658176898956, -0.16748452186584473, 0.14823542535305023, 0.23138783872127533, -0.21009626984596252, 0.5588340163230896, -0.08621510863304138, -0.12135287374258041, -0.2702372968196869, -0.36316153407096863, -0.004056889563798904, 0.03742252662777901, 0.25200268626213074, -0.13267453014850616, 0.004790574312210083, 0.06527961790561676, -0.19192270934581757, 0.2011961042881012, -0.2288612723350525, -0.11423753947019577, -0.5269311666488647, -0.12065622955560684, -0.24727241694927216, -0.2694771885871887, -0.6981593370437622, 0.0931830182671547, -0.20478218793869019, 0.26452434062957764, 0.48002466559410095, 0.11505862325429916, -0.2826795279979706, 0.11473934352397919, -0.13664200901985168, -0.050046712160110474, -0.35181570053100586, -0.1287166327238083, -0.25745564699172974, 0.004516370594501495, -0.062380872666835785, -0.2442994862794876, 0.24399816989898682, 0.10867834091186523, 0.14898060262203217, -0.084589384496212, -0.35876965522766113, -0.5796738862991333, 0.09945731610059738, 0.4164135754108429, 0.07755668461322784, 0.04355067387223244, 0.25957953929901123, 0.04749971255660057, -0.226785346865654, 0.17754822969436646, -0.14983801543712616, 0.03857887536287308, 0.22106468677520752, 0.14304980635643005, -0.03256489336490631, -0.1051119938492775, -0.15494777262210846, 0.5622690916061401, 0.24735546112060547, -0.12545205652713776, -0.18801233172416687, 0.09211822599172592, 0.16117143630981445, -0.15921330451965332, 0.2316269874572754, 0.22292330861091614, -0.05215016007423401, -0.19090403616428375, 0.1279526799917221, -0.008542673662304878, -0.37687575817108154, -0.11703012883663177, 0.10499997437000275, -0.22605228424072266, -0.12865658104419708, -0.004785547032952309, -0.2626730799674988, 0.2991845905780792, 0.019405003637075424, -0.22540348768234253, 0.07280363142490387, 0.17360153794288635, 0.06035386398434639, 0.3375912308692932, 0.051731232553720474, 0.09406150132417679, -0.6560397744178772, 0.18395641446113586, -0.41768234968185425, 0.27530437707901, -0.24249862134456635, 0.26663947105407715, 0.03578009083867073, -0.041711367666721344, 0.28931716084480286, -0.17728206515312195, 0.05952991172671318, -0.4623664915561676, -0.1490483433008194, -0.08831849694252014, -0.0721510648727417, 0.3835878074169159, -0.30601778626441956, -0.3310703635215759, -0.044867079704999924, 0.18405115604400635, 0.26968634128570557, -0.032999761402606964, -0.05416557937860489, 0.13143813610076904, -0.3126246929168701, 0.050964731723070145, -0.11317344754934311, -0.16607674956321716, -0.05053040012717247, -0.45463019609451294, 0.5115450620651245, -0.002124214544892311, -0.2660348415374756, -0.2818344533443451, 0.17947295308113098, 0.13386376202106476, 0.49574750661849976, -0.14782805740833282, -0.029240883886814117, -0.11065483093261719, 0.057911135256290436, -0.08745891600847244, 0.10624156147241592, -0.3708140552043915, 0.21556425094604492, 0.3172879219055176, -0.18462775647640228, 0.15719540417194366, 0.04151081293821335, -0.03159158304333687, 0.11591601371765137, 0.36637356877326965, 0.2705079913139343, -0.15752407908439636, 0.009995497763156891, 0.17379748821258545, -0.17995180189609528, 0.07513390481472015, 0.0403725802898407, -0.03848434239625931, 0.26279762387275696, -0.38838520646095276, 0.41793447732925415, -0.1278441995382309, -0.33060359954833984, -0.0649229884147644, 0.37019187211990356, 0.16667111217975616, 0.3973754048347473, 0.26844313740730286, 0.7920300364494324, -0.13131102919578552, -0.04866988584399223, -0.0037619173526763916, -0.40851128101348877, 0.3201870918273926, -0.6733468174934387, -0.08086058497428894, -0.08945360034704208, 0.28872066736221313, 0.044884905219078064, -0.13709063827991486, 0.28353607654571533, -0.19012998044490814, -0.28595682978630066, 0.08434943109750748, 0.39419710636138916, 0.12367656826972961, 0.12331283092498779, 0.13433372974395752, 0.25742945075035095, 0.018151219934225082, -0.09593676030635834, 0.2025887668132782, -0.09390389919281006, 0.4098324775695801, -0.12973421812057495, 0.021531343460083008, 0.05266642943024635, -0.061372339725494385, -0.24539852142333984, -0.09269307553768158, 0.05890536680817604, -0.12400016188621521, 0.1530214548110962, -0.20429342985153198, -0.10934148728847504, 0.45953208208084106, 0.1859954595565796, 0.2784061133861542, -0.2842033803462982, 0.07180874049663544, 0.08328619599342346, 0.17316488921642303, -0.06418440490961075, -0.18303194642066956, 0.21273989975452423, -0.3613048493862152, -0.4487301707267761, 0.05927690863609314, -0.20937968790531158, -0.18338508903980255, -0.10359117388725281, 0.002239696681499481, 0.21075083315372467, -0.10480406880378723, -0.060390543192625046, 0.5805051326751709, -0.20318034291267395, -0.19375735521316528, 0.1842954307794571, 0.20781801640987396, -0.13752205669879913, -0.05707601457834244, 0.17973168194293976, -0.29288941621780396, -0.20121321082115173, 0.08262479305267334, 0.012653861194849014, -0.09414985775947571, -0.13118959963321686, -0.21690841019153595, 0.06102127581834793, -0.2772429883480072, 0.099385105073452, 0.2887900769710541, -0.265255868434906, -0.18802887201309204, 0.081961989402771, -0.16782984137535095, 0.20477451384067535, 0.28570860624313354, 0.20587579905986786, 0.10888645052909851, 0.03770165517926216, -0.040251635015010834, -0.17153379321098328, -0.056210726499557495, 0.027465278282761574, 0.4860802888870239, 0.31259116530418396, 0.10184496641159058, 0.091026172041893, 0.3760877847671509, -0.356783926486969, -0.037289395928382874, -0.19621187448501587, 0.18945838510990143, -0.1259395331144333, -0.00802234560251236, 0.10924287140369415, -0.09184211492538452, 0.07241728901863098, -0.05125371366739273, -0.45479118824005127, -0.3053071200847626, 0.05947094038128853, 0.14542415738105774, 0.20487982034683228, -0.07360032200813293, 0.011053265072405338, -0.02477581426501274, 0.2170766294002533, 0.18218623101711273, 0.2039439082145691, -0.13198038935661316, -0.237148717045784, 0.17970237135887146, 0.40543773770332336, -0.07863027602434158, 0.13792486488819122, -0.2119862288236618, 0.06434938311576843, -0.030056238174438477, -0.16888432204723358, 0.21063943207263947, -0.057392846792936325, -0.12960323691368103, 0.12224031239748001, 0.08445007354021072, 0.3275769054889679, 0.7749037742614746, -0.04448668658733368, -0.04198747128248215, 0.015477064996957779, -0.4474332332611084, 0.35662856698036194, -0.0036461204290390015, -0.32217028737068176, 0.011466393247246742, -0.013791430741548538, 0.31850865483283997, -0.13390760123729706, -0.21094155311584473, -0.0809880793094635, 0.23433873057365417, 0.2033270001411438, 0.17071254551410675, 0.7007754445075989, -0.1107463389635086, 0.2979590892791748, 0.23653855919837952, 0.19614146649837494, -0.5386374592781067, 0.10297900438308716, 0.015873834490776062, -0.29417547583580017, -0.10900954902172089, 0.029944945126771927, 0.09548445045948029, -0.04115542024374008, -0.1717303842306137, 0.17577731609344482, 0.3440891206264496, 0.4494814872741699, 0.2937944233417511, 0.04569970816373825, -0.0438486784696579, 0.3677747845649719, -0.161241352558136, 0.07259746640920639, -0.045951515436172485, 0.6407601833343506, 0.26536375284194946, 0.13182757794857025, -0.08205769211053848, 0.004774544388055801, 0.018265122547745705, 0.13871240615844727, -0.30297791957855225, -0.42663276195526123, -0.12212003767490387, 0.06811763346195221, 0.08992122113704681, -0.15538185834884644, -0.12894994020462036, 0.3492293059825897, 0.07505058497190475, 0.00877012312412262, -0.12700913846492767, 0.32457420229911804, -0.19289734959602356, 0.1003279909491539, -0.08033043891191483, 0.25115886330604553, -0.000792182981967926, -0.3118268549442291, 0.09412817656993866, 0.25385528802871704, 0.24586065113544464, 0.0443575382232666, 0.16813577711582184, 0.2734786570072174, -0.020077090710401535, -0.04498836398124695, 0.042319610714912415, 0.11235163360834122, 0.0654081255197525, -0.08565492928028107, 0.2492869645357132, 0.20031476020812988, -0.10922140628099442, 0.6554080247879028, -0.3337106704711914, -0.21075211465358734, -0.11163072288036346, 0.3733446002006531, 0.3468411862850189, -0.23728320002555847, 0.07701617479324341, 0.30097097158432007, -0.07534950971603394, 0.14137408137321472, -0.021931219846010208, -0.13576765358448029, 0.06196921318769455, -0.070362389087677, 0.13164204359054565, 0.16361239552497864, 0.39910629391670227, 0.10526209324598312, 0.096096470952034, -0.33638355135917664, -0.17177830636501312, -0.20880873501300812, 0.22074481844902039, 0.13559584319591522, 0.1327742487192154, 0.008610003627836704, 0.05524656921625137, 0.19658499956130981, 0.4523797035217285, -0.06976999342441559, -0.2661663293838501, -0.23078182339668274, 0.2798526883125305, -0.3674476146697998, 0.2113487869501114, -0.11308586597442627, 0.1776062697172165, 0.10783781111240387, 0.09312333911657333, 0.3890051543712616, 0.3016752004623413, 0.07185763120651245, -0.0871746614575386, -0.09693528711795807, 0.38434725999832153, -0.05287926644086838, 0.22469225525856018, 0.35514673590660095, 0.2042466253042221, -0.025805890560150146, 0.09546441584825516, -0.110170379281044, 0.010562164708971977, -0.33050599694252014, 0.02166750654578209, -0.21117793023586273, 0.15457729995250702, 0.01926407404243946, -0.2024717777967453, -0.17314402759075165, -0.04452992230653763, -0.028489235788583755, -0.06284014880657196, -0.10499531030654907, -0.16025373339653015, -0.05123995244503021, -0.23370200395584106, 0.01736779883503914, -0.03658801317214966, 0.17316046357154846, -0.0023054443299770355, -0.3663240075111389, 0.005224613472819328, 0.39613574743270874, 0.005358760245144367, 0.21143315732479095, -0.12647557258605957, 0.2694379687309265, 0.4900831878185272, -0.0458223819732666, -0.6756156086921692, -0.030734091997146606, 0.1752089112997055, -0.23998820781707764, -0.4661543071269989, 0.34104105830192566, 0.030361533164978027, -0.15241599082946777, -0.30481818318367004, 0.5457032918930054, -0.1719415783882141, 0.0026132967323064804, -0.3299441337585449, -0.45024895668029785 ]
https://github.com/huggingface/datasets/pull/139
Add GermEval 2014 NER dataset
That's awesome - thanks @stefan-it :-) Could you maybe rebase to master and check if all dummy data tests are fine. I should have included the local tests directly in the test suite so that all PRs are fully checked: #140 - sorry :D
Hi, this PR adds the GermEval 2014 NER dataset 😃 > The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties: > - The data was sampled from German Wikipedia and News Corpora as a collection of citations. > - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. > - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]]. Dataset will be downloaded from the [official GermEval 2014 website](https://sites.google.com/site/germeval2014ner/data). ## Dataset format Here's an example of the dataset format from the original dataset: ```tsv # http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17] 1 Aufgrund O O 2 seiner O O 3 Initiative O O 4 fand O O 5 2001/2002 O O 6 in O O 7 Stuttgart B-LOC O 8 , O O 9 Braunschweig B-LOC O 10 und O O 11 Bonn B-LOC O 12 eine O O 13 große O O 14 und O O 15 publizistisch O O 16 vielbeachtete O O 17 Troia-Ausstellung B-LOCpart O 18 statt O O 19 , O O 20 „ O O 21 Troia B-OTH B-LOC 22 - I-OTH O 23 Traum I-OTH O 24 und I-OTH O 25 Wirklichkeit I-OTH O 26 “ O O 27 . O O ``` The sentence is encoded as one token per line (tab separated columns. The first column contains either a `#`, which signals the source the sentence is cited from and the date it was retrieved, or the token number within the sentence. The second column contains the token. Column three and four contain the named entity (in IOB2 scheme). Outer spans are encoded in the third column, embedded/nested spans in the fourth column. ## Features I decided to keep most information from the dataset. That means the so called "source" information (where the sentences come from + date information) is also returned for each sentence in the feature vector. For each sentence in the dataset, one feature vector (`nlp.Features` definition) will be returned: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `source` | `http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17]` | URL and retrieval date as string | `tokens` | `["Schwartau", "sagte", ":"]` | List of tokens (strings) for a sentence | `labels` | `["B-PER", "O", "O"]` | List of labels (outer span) | `nested-labels` | `["O", "O", "O"]` | List of labels for nested span ## Example The following command downloads the dataset from the official GermEval 2014 page and pre-processed it: ```bash python nlp-cli test datasets/germeval_14 --all_configs ``` It then outputs the number for training, development and testset. The training set consists of 24,000 sentences, the development set of 2,200 and the test of 5,100 sentences. Now it can be imported and used with `nlp`: ```python import nlp germeval = nlp.load_dataset("./datasets/germeval_14/germeval_14.py") assert len(germeval["train"]) == 24000 # Show first sentence of training set: germeval["train"][0] ```
44
text: Add GermEval 2014 NER dataset Hi, this PR adds the GermEval 2014 NER dataset 😃 > The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties: > - The data was sampled from German Wikipedia and News Corpora as a collection of citations. > - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. > - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]]. Dataset will be downloaded from the [official GermEval 2014 website](https://sites.google.com/site/germeval2014ner/data). ## Dataset format Here's an example of the dataset format from the original dataset: ```tsv # http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17] 1 Aufgrund O O 2 seiner O O 3 Initiative O O 4 fand O O 5 2001/2002 O O 6 in O O 7 Stuttgart B-LOC O 8 , O O 9 Braunschweig B-LOC O 10 und O O 11 Bonn B-LOC O 12 eine O O 13 große O O 14 und O O 15 publizistisch O O 16 vielbeachtete O O 17 Troia-Ausstellung B-LOCpart O 18 statt O O 19 , O O 20 „ O O 21 Troia B-OTH B-LOC 22 - I-OTH O 23 Traum I-OTH O 24 und I-OTH O 25 Wirklichkeit I-OTH O 26 “ O O 27 . O O ``` The sentence is encoded as one token per line (tab separated columns. The first column contains either a `#`, which signals the source the sentence is cited from and the date it was retrieved, or the token number within the sentence. The second column contains the token. Column three and four contain the named entity (in IOB2 scheme). Outer spans are encoded in the third column, embedded/nested spans in the fourth column. ## Features I decided to keep most information from the dataset. That means the so called "source" information (where the sentences come from + date information) is also returned for each sentence in the feature vector. For each sentence in the dataset, one feature vector (`nlp.Features` definition) will be returned: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `source` | `http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17]` | URL and retrieval date as string | `tokens` | `["Schwartau", "sagte", ":"]` | List of tokens (strings) for a sentence | `labels` | `["B-PER", "O", "O"]` | List of labels (outer span) | `nested-labels` | `["O", "O", "O"]` | List of labels for nested span ## Example The following command downloads the dataset from the official GermEval 2014 page and pre-processed it: ```bash python nlp-cli test datasets/germeval_14 --all_configs ``` It then outputs the number for training, development and testset. The training set consists of 24,000 sentences, the development set of 2,200 and the test of 5,100 sentences. Now it can be imported and used with `nlp`: ```python import nlp germeval = nlp.load_dataset("./datasets/germeval_14/germeval_14.py") assert len(germeval["train"]) == 24000 # Show first sentence of training set: germeval["train"][0] ``` That's awesome - thanks @stefan-it :-) Could you maybe rebase to master and check if all dummy data tests are fine. I should have included the local tests directly in the test suite so that all PRs are fully checked: #140 - sorry :D
[ 0.12363433837890625, -0.13409040868282318, -0.1071128249168396, 0.344893217086792, 0.00201345793902874, -0.05565440654754639, 0.1381717473268509, 0.10920467972755432, -0.12318699061870575, 0.28854554891586304, -0.039055243134498596, 0.12552858889102936, -0.10520970076322556, -0.047284938395023346, 0.07236508280038834, -0.1827271431684494, -0.0029109492897987366, -0.08153919875621796, 0.19059735536575317, -0.11292678117752075, 0.01583820953965187, 0.37401917576789856, -0.006081581115722656, 0.02950955554842949, -0.3859056234359741, 0.045370109379291534, -0.17745037376880646, 0.10939690470695496, -0.16773721575737, -0.5897523760795593, -0.07936915755271912, 0.03677598387002945, -0.02268516831099987, 0.22879554331302643, -0.00010081077925860882, -0.1681617647409439, 0.15512773394584656, -0.053663089871406555, -0.38045260310173035, 0.1158929318189621, -0.03115047700703144, -0.1012626439332962, -0.23081234097480774, -0.3856874406337738, -0.22876274585723877, -0.17173618078231812, 0.18055671453475952, -0.21280036866664886, 0.17392054200172424, 0.24215927720069885, 0.261258602142334, -0.2096077799797058, -0.042696453630924225, -0.10381510108709335, 0.18766233325004578, 0.2222985178232193, -0.0886516198515892, -0.08860214054584503, 0.10641095042228699, 0.2681303024291992, -0.38749003410339355, 0.39236345887184143, -0.11153333634138107, -0.07418183982372284, 0.1546095907688141, 0.03881874307990074, 0.21079862117767334, -0.19871704280376434, 0.2238214612007141, 0.22648495435714722, 0.33249956369400024, -0.1309778392314911, 0.014104748144745827, -0.15078021585941315, 0.010748908855021, -0.180201917886734, 0.07838638126850128, -0.0018373876810073853, -0.1518578976392746, -0.019576210528612137, 0.12136345356702805, 0.10911526530981064, -0.3005790710449219, -0.00008209794759750366, -0.25645768642425537, 0.41337743401527405, -0.20507574081420898, -0.27853140234947205, 0.011517796665430069, -0.11234419047832489, -0.12154135853052139, -0.13109326362609863, -0.20316116511821747, -0.025245361030101776, -0.32630670070648193, -0.10896021872758865, 0.05827217176556587, 0.2346465289592743, 0.06331852823495865, 0.2742568850517273, 0.1530533730983734, -0.023764081299304962, 0.14038865268230438, -0.046201758086681366, -0.07126505672931671, -0.04939654469490051, 0.12808945775032043, 0.01816946268081665, 0.15432347357273102, -0.018842969089746475, 0.10740581154823303, -0.020668689161539078, -0.24094344675540924, 0.03536314517259598, -0.2589024305343628, -0.08181408047676086, -0.008502967655658722, -0.09809184074401855, -0.3571353852748871, 0.26038500666618347, -0.29193300008773804, -0.013381902128458023, -0.13359007239341736, 0.18601518869400024, -0.16335149109363556, -0.13079825043678284, -0.15228579938411713, -0.1741793304681778, 0.012811070308089256, -0.23386357724666595, -0.276554673910141, 0.024746950715780258, -0.11329135298728943, -0.12838312983512878, 0.22597672045230865, 0.08783037960529327, 0.09429103136062622, -0.12035370618104935, -0.12171196937561035, 0.07228093594312668, 0.0355803519487381, -0.20457978546619415, 0.24956855177879333, 0.05858064070343971, -0.10097184777259827, 0.02921883948147297, -0.04333437606692314, -0.30618250370025635, -0.1280745267868042, 0.053909048438072205, -0.08420046418905258, -0.31444668769836426, -0.33810731768608093, 0.27666574716567993, -0.35807156562805176, -0.19921830296516418, 0.13855737447738647, 0.286452054977417, -0.09451112896203995, -0.031504929065704346, -0.0012109950184822083, 0.17200081050395966, -0.39277365803718567, -0.016739293932914734, 0.3665229380130768, 0.39339298009872437, -0.23851467669010162, -0.1671781837940216, -0.4985714256763458, -0.0203707255423069, 0.33601653575897217, 0.24869120121002197, 0.14517058432102203, 0.4137793779373169, -0.13984908163547516, 0.7401864528656006, -0.014056496322154999, -0.2589520514011383, -0.33972838521003723, -0.03825885429978371, -0.24796424806118011, 0.16137923300266266, 0.3737019896507263, 0.12094194442033768, 0.6630463600158691, -0.011387809179723263, 0.10551156103610992, 0.1704169511795044, -0.007046790793538094, -0.02649947814643383, -0.17269712686538696, 0.1411828100681305, 0.006489213556051254, 0.01688724011182785, -0.04628097638487816, -0.15727978944778442, 0.10485167801380157, 0.4461510479450226, 0.12195633351802826, -0.2610878050327301, 0.23783159255981445, 0.34358006715774536, 0.3924773633480072, 0.08452669531106949, 0.11143218725919724, 0.1375870406627655, -0.4001768231391907, -0.07725472003221512, -0.18437230587005615, 0.6576504111289978, -0.18918044865131378, -0.12413717806339264, -0.2805517911911011, 0.043086692690849304, -0.21031098067760468, -0.6211608052253723, 0.3756301701068878, 0.2742486894130707, -0.15485572814941406, 0.021022144705057144, 0.2966056764125824, 0.3002293109893799, -0.32304647564888, -0.06574217975139618, -0.13314591348171234, 0.35262706875801086, -0.25606676936149597, -0.004269362427294254, -0.1563919186592102, 0.32860174775123596, -0.014338560402393341, 0.19077755510807037, -0.0029893480241298676, 0.11113005876541138, 0.0338636077940464, 0.15452586114406586, -0.02867899090051651, 0.3597670793533325, -0.1432996541261673, -0.3310451805591583, 0.15929952263832092, 0.008746983483433723, 0.02045615017414093, -0.15778109431266785, -0.3612898588180542, 0.0341799333691597, 0.22732007503509521, 0.13854625821113586, -0.15312711894512177, -0.04472118616104126, -0.015991149470210075, 0.011374469846487045, -0.20325645804405212, -0.34791916608810425, 0.04598255455493927, -0.050241630524396896, -0.12799836695194244, 0.17165973782539368, -0.2621299624443054, 0.08550436049699783, 0.37395399808883667, 0.10738842189311981, 0.01553891971707344, 0.19093817472457886, -0.5007121562957764, -0.313407838344574, 0.23115171492099762, 0.20456470549106598, 0.0487026572227478, 0.30767345428466797, 0.25328829884529114, 0.04784660413861275, 0.30841878056526184, -0.0846894308924675, 0.2873188555240631, 0.11635009944438934, -0.0609758235514164, 0.30499017238616943, 0.24683213233947754, 0.20754803717136383, -0.3567160367965698, -0.2998042702674866, 0.0574832484126091, 0.22590258717536926, -0.37854108214378357, -0.040404751896858215, -0.10805363208055496, -0.26967889070510864, -0.21807345747947693, 0.049019135534763336, -0.20363378524780273, -0.42229118943214417, 0.20908816158771515, 0.12298230826854706, -0.14750365912914276, 0.26480793952941895, 0.056426312774419785, 0.35387635231018066, -0.10927899181842804, 0.15711040794849396, -0.33033937215805054, -0.21435773372650146, -0.190694659948349, 0.30262890458106995, -0.019438590854406357, 0.2993808388710022, 0.3196977972984314, -0.17509354650974274, 0.2869025468826294, -0.461667537689209, -0.7068633437156677, 0.33390864729881287, -0.16738779842853546, 0.04761289805173874, 0.15460246801376343, 0.02803506702184677, -0.3329430818557739, -0.15884923934936523, 0.03589634224772453, 0.10402514040470123, -0.32314109802246094, 0.15294615924358368, -0.48193925619125366, 0.07151415944099426, 0.0020893029868602753, -0.4295754134654999, -0.15986020863056183, -0.3792732059955597, 0.25950390100479126, 0.07412929832935333, 0.202607199549675, 0.36837488412857056, -0.27050676941871643, 0.16910451650619507, 0.013324358500540257, 0.227086141705513, -0.07291499525308609, 0.07821649312973022, 0.4537055492401123, -0.33169299364089966, -0.07306632399559021, -0.18743909895420074, -0.048698991537094116, 0.1511581689119339, -0.24265097081661224, -0.311429500579834, 0.13618391752243042, -0.015626853331923485, -0.0759018212556839, 0.20995838940143585, -0.17201797664165497, 0.26332634687423706, 0.12056269496679306, -0.26495105028152466, -0.10480190068483353, 0.10942010581493378, 0.27990615367889404, -0.018505170941352844, -0.07828880101442337, -0.06504998356103897, 0.0707436054944992, 0.39489299058914185, 0.057534247636795044, 0.23055094480514526, -0.22612769901752472, 0.06687390059232712, -0.16921041905879974, 0.1552223414182663, -0.05366017669439316, -0.14832356572151184, 0.24716836214065552, 0.13566486537456512, 0.06886910647153854, 0.6640644073486328, 0.04443638026714325, 0.13979998230934143, 0.29681190848350525, -0.05397080257534981, 0.16018575429916382, -0.13648013770580292, 0.20106938481330872, -0.34132835268974304, 0.3273121118545532, -0.08386805653572083, -0.31568199396133423, -0.21329258382320404, -0.48117339611053467, 0.13798919320106506, -0.12575505673885345, 0.017056040465831757, 0.07195144146680832, -0.21996043622493744, 0.5744629502296448, -0.4504796266555786, 0.3054065406322479, 0.10558491945266724, -0.11554408073425293, -0.31581389904022217, -0.08500615507364273, 0.15186531841754913, 0.11676955223083496, 0.2834162712097168, -0.31475070118904114, 0.030969267711043358, 0.19291402399539948, 0.179355189204216, -0.12498629838228226, 0.2902381122112274, -0.33501023054122925, -0.1376020759344101, 0.5975657105445862, 0.05572470277547836, -0.2625282406806946, -0.2413787990808487, 0.4602281153202057, -0.0645492821931839, -0.07332983613014221, -0.06385523825883865, 0.10787953436374664, 0.08922164887189865, -0.2928481698036194, 0.0982399508357048, 0.4212474524974823, 0.15416492521762848, 0.17931967973709106, -0.07441660761833191, -0.10579521954059601, 0.2602110505104065, 0.2515103220939636, 0.1050732284784317, 0.2239166498184204, -0.0037322042044252157, 0.014194339513778687, 0.1626630425453186, 0.2893092632293701, 0.3188880383968353, 0.1274251639842987, -0.255548894405365, -0.009685657918453217, 0.2987019121646881, -0.2129240781068802, 0.11324101686477661, 0.2479977011680603, 0.07854972034692764, -0.02701842039823532, 0.11482305079698563, 0.03063816949725151, -0.1885131299495697, 0.13183319568634033, 0.16425561904907227, 0.1951429694890976, -0.1766776293516159, -0.11398794502019882, 0.03962736949324608, 0.29204657673835754, -0.235676109790802, -0.22496560215950012, 0.5590280294418335, -0.30770787596702576, 0.23150832951068878, 0.23694640398025513, 0.9826791882514954, 0.2540592551231384, 0.1019633412361145, 0.14710542559623718, 0.3062448501586914, 0.18251094222068787, -0.3999791741371155, 0.0038631008937954903, -0.25950416922569275, 0.03738797456026077, -0.08246158063411713, 0.07984575629234314, -0.10985169559717178, 0.3931768536567688, -0.32106903195381165, 0.10560240596532822, 0.24472551047801971, 0.4004436433315277, 0.11225760728120804, 0.2705734968185425, 0.34345608949661255, -0.24816980957984924, 0.00563310831785202, 0.2593952715396881, 0.05006204918026924, 0.18106098473072052, 0.07152658700942993, -0.12329930067062378, -0.11538377404212952, -0.15325231850147247, -0.275084912776947, 0.020365655422210693, -0.08382080495357513, 0.058153972029685974, -0.009259164333343506, -0.19278576970100403, 0.15006950497627258, 0.42746782302856445, 0.39202791452407837, 0.13167312741279602, -0.14279501140117645, -0.008204448968172073, 0.16563016176223755, -0.043937571346759796, 0.2503809928894043, -0.04506736248731613, 0.15344208478927612, -0.2606242299079895, -0.163425475358963, -0.08870575577020645, 0.004856542684137821, -0.2904514968395233, 0.13569191098213196, -0.12858857214450836, 0.15979528427124023, -0.1430516242980957, 0.22979092597961426, 0.18324793875217438, -0.2381293624639511, -0.3202992081642151, 0.2284420132637024, -0.12311272323131561, -0.0382474847137928, -0.028892360627651215, 0.12250153720378876, -0.20656493306159973, -0.04675767198204994, 0.16573582589626312, 0.20721736550331116, -0.004686042666435242, 0.37510043382644653, 0.14711017906665802, -0.30401140451431274, -0.4031289219856262, -0.27780646085739136, 0.18180985748767853, -0.47203317284584045, -0.09690161794424057, -0.19152119755744934, -0.1715846061706543, 0.036211125552654266, 0.4265993535518646, 0.022016676142811775, 0.13659656047821045, -0.06698737293481827, -0.07337600737810135, -0.2999364137649536, 0.2317812442779541, -0.2092657834291458, 0.35443466901779175, 0.07101055979728699, 0.07209686934947968, -0.2396087944507599, 0.05241817981004715, -0.5226572751998901, 0.09830905497074127, -0.2694896459579468, 0.07321718335151672, 0.4655216336250305, -0.31368228793144226, 0.16958004236221313, 0.10985231399536133, 0.2460748851299286, 0.15913845598697662, -0.11286379396915436, -0.2807575762271881, -0.1503075212240219, 0.09219960868358612, -0.016020167618989944, 0.10454264283180237, -0.05049675330519676, 0.268013060092926, -0.27573162317276, -0.23591652512550354, 0.35760247707366943, 0.16977190971374512, 0.15164563059806824, 0.0645192563533783, 0.0243275985121727, 0.290818989276886, -0.09843902289867401, -0.09396900236606598, 0.17958439886569977, 0.19947534799575806, -0.03386320173740387, 0.2145298272371292, -0.1609794944524765, -0.17018437385559082, -0.07518941164016724, 0.44620561599731445, 0.4518333673477173, 0.01569671370089054, -0.031129442155361176, 0.04899631813168526, -0.2652829885482788, -0.0015713456086814404, 0.09587208926677704, -0.21986091136932373, -0.05813630297780037, -0.43093588948249817, 0.034283146262168884, 0.3705040216445923, -0.16532331705093384, 0.07509894669055939, -0.09369377791881561, -0.4022570848464966, 0.22744804620742798, 0.19164279103279114, 0.4982294738292694, 0.020137585699558258, -0.07316434383392334, 0.1699523627758026, 0.22745589911937714, -0.13134440779685974, -0.060566145926713943, 0.057116955518722534, -0.20580267906188965, 0.0502675399184227, 0.29017671942710876, -0.16206130385398865, 0.23270872235298157, 0.20895686745643616, 0.20808693766593933, 0.15539167821407318, 0.2485376000404358, 0.16436262428760529, 0.34569039940834045, -0.11634980142116547, 0.2506462037563324, 0.29661980271339417, 0.09914196282625198, -0.04673626273870468, 0.14424708485603333, -0.028720751404762268, 0.47850796580314636, -0.01793579012155533, -0.34764087200164795, 0.2976968288421631, -0.2548740804195404, -0.1096220314502716, -0.2254370152950287, -0.30132949352264404, -0.3178096115589142, -0.168455570936203, -0.048628080636262894, 0.01817965880036354, -0.07283775508403778, -0.15296752750873566, -0.09448972344398499, -0.1580498069524765, 0.062256790697574615, -0.033592186868190765, 0.30588817596435547, -0.4316357374191284, 0.36492598056793213, 0.09424828737974167, -0.14654189348220825, 0.025182316079735756, 0.3454785645008087, 0.4758378267288208, -0.06866664439439774, 0.2596871554851532, -0.11253184825181961, -0.2116982489824295, -0.27217188477516174, -0.09102585166692734, 0.14730574190616608, 0.009246885776519775, -0.3390260636806488, 0.2602252662181854, 0.1612883061170578, -0.283841609954834, -0.2259320467710495, 0.24769598245620728, 0.03512375056743622, 0.23184524476528168, 0.25493791699409485, 0.21791629493236542, -0.21752211451530457, -0.015170775353908539, -0.044749848544597626, -0.34824031591415405, -0.284486323595047, 0.14377319812774658, -0.1429072916507721, 0.09576966613531113, -0.23410564661026, 0.14984892308712006, 0.039614222943782806, 0.3235675096511841, 0.12323877215385437, -0.072645403444767, 0.12774121761322021, -0.40601420402526855, -0.43463602662086487, 0.33429187536239624, 0.01100340485572815, -0.10159243643283844, -0.026557933539152145, -0.09568016231060028, 0.22429746389389038, 0.11814568191766739, -0.25454145669937134, -0.032256241887807846, -0.42686155438423157, 0.15343506634235382, -0.4204851984977722, 0.14162202179431915, 0.2209455817937851, -0.009677702561020851, -0.05274432897567749, -0.1056014895439148, -0.17661261558532715, -0.022048279643058777, 0.22948071360588074, -0.1336146593093872, 0.07490645349025726, -0.20999400317668915, 0.043918851763010025, 0.23762471973896027, 0.13663704693317413, 0.44443070888519287, -0.21949845552444458, -0.10196924954652786, 0.00948864221572876, 0.08289433270692825, -0.16374996304512024, 0.275162011384964, 0.25828441977500916, 0.48055532574653625, 0.20630480349063873, -0.3504939377307892, 0.07560768723487854, -0.1096821129322052, 0.10022081434726715, 0.21852044761180878, -0.33526772260665894, 0.4514386057853699, -0.06763885170221329, 0.2611812353134155, -0.20884639024734497, 0.03933621942996979, 0.2551671266555786, -0.10442519187927246, -0.27795499563217163, -0.5883686542510986, 0.4482118785381317, -0.26927003264427185, 0.12441414594650269, -0.26430097222328186, 0.25725463032722473, 0.21870115399360657, 0.07786956429481506, -0.44740837812423706, 0.08844006806612015, 0.35093942284584045, 0.06136728450655937, -0.3178612291812897, 0.22476911544799805, 0.11621074378490448, -0.04641728103160858, -0.12759529054164886, 0.05753536522388458, 0.03432730212807655, -0.1514558345079422, -0.2482272833585739, -0.47364574670791626 ]
https://github.com/huggingface/datasets/pull/139
Add GermEval 2014 NER dataset
@patrickvonplaten Rebased it 😅 How can it test 🤔 I used: ```bash RUN_SLOW=1 RUN_LOCAL=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_local_germeval_14 # and RUN_SLOW=1 RUN_LOCAL=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_local_germeval_14 ``` and the tests still pass :)
Hi, this PR adds the GermEval 2014 NER dataset 😃 > The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties: > - The data was sampled from German Wikipedia and News Corpora as a collection of citations. > - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. > - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]]. Dataset will be downloaded from the [official GermEval 2014 website](https://sites.google.com/site/germeval2014ner/data). ## Dataset format Here's an example of the dataset format from the original dataset: ```tsv # http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17] 1 Aufgrund O O 2 seiner O O 3 Initiative O O 4 fand O O 5 2001/2002 O O 6 in O O 7 Stuttgart B-LOC O 8 , O O 9 Braunschweig B-LOC O 10 und O O 11 Bonn B-LOC O 12 eine O O 13 große O O 14 und O O 15 publizistisch O O 16 vielbeachtete O O 17 Troia-Ausstellung B-LOCpart O 18 statt O O 19 , O O 20 „ O O 21 Troia B-OTH B-LOC 22 - I-OTH O 23 Traum I-OTH O 24 und I-OTH O 25 Wirklichkeit I-OTH O 26 “ O O 27 . O O ``` The sentence is encoded as one token per line (tab separated columns. The first column contains either a `#`, which signals the source the sentence is cited from and the date it was retrieved, or the token number within the sentence. The second column contains the token. Column three and four contain the named entity (in IOB2 scheme). Outer spans are encoded in the third column, embedded/nested spans in the fourth column. ## Features I decided to keep most information from the dataset. That means the so called "source" information (where the sentences come from + date information) is also returned for each sentence in the feature vector. For each sentence in the dataset, one feature vector (`nlp.Features` definition) will be returned: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `source` | `http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17]` | URL and retrieval date as string | `tokens` | `["Schwartau", "sagte", ":"]` | List of tokens (strings) for a sentence | `labels` | `["B-PER", "O", "O"]` | List of labels (outer span) | `nested-labels` | `["O", "O", "O"]` | List of labels for nested span ## Example The following command downloads the dataset from the official GermEval 2014 page and pre-processed it: ```bash python nlp-cli test datasets/germeval_14 --all_configs ``` It then outputs the number for training, development and testset. The training set consists of 24,000 sentences, the development set of 2,200 and the test of 5,100 sentences. Now it can be imported and used with `nlp`: ```python import nlp germeval = nlp.load_dataset("./datasets/germeval_14/germeval_14.py") assert len(germeval["train"]) == 24000 # Show first sentence of training set: germeval["train"][0] ```
29
text: Add GermEval 2014 NER dataset Hi, this PR adds the GermEval 2014 NER dataset 😃 > The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties: > - The data was sampled from German Wikipedia and News Corpora as a collection of citations. > - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. > - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]]. Dataset will be downloaded from the [official GermEval 2014 website](https://sites.google.com/site/germeval2014ner/data). ## Dataset format Here's an example of the dataset format from the original dataset: ```tsv # http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17] 1 Aufgrund O O 2 seiner O O 3 Initiative O O 4 fand O O 5 2001/2002 O O 6 in O O 7 Stuttgart B-LOC O 8 , O O 9 Braunschweig B-LOC O 10 und O O 11 Bonn B-LOC O 12 eine O O 13 große O O 14 und O O 15 publizistisch O O 16 vielbeachtete O O 17 Troia-Ausstellung B-LOCpart O 18 statt O O 19 , O O 20 „ O O 21 Troia B-OTH B-LOC 22 - I-OTH O 23 Traum I-OTH O 24 und I-OTH O 25 Wirklichkeit I-OTH O 26 “ O O 27 . O O ``` The sentence is encoded as one token per line (tab separated columns. The first column contains either a `#`, which signals the source the sentence is cited from and the date it was retrieved, or the token number within the sentence. The second column contains the token. Column three and four contain the named entity (in IOB2 scheme). Outer spans are encoded in the third column, embedded/nested spans in the fourth column. ## Features I decided to keep most information from the dataset. That means the so called "source" information (where the sentences come from + date information) is also returned for each sentence in the feature vector. For each sentence in the dataset, one feature vector (`nlp.Features` definition) will be returned: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `source` | `http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17]` | URL and retrieval date as string | `tokens` | `["Schwartau", "sagte", ":"]` | List of tokens (strings) for a sentence | `labels` | `["B-PER", "O", "O"]` | List of labels (outer span) | `nested-labels` | `["O", "O", "O"]` | List of labels for nested span ## Example The following command downloads the dataset from the official GermEval 2014 page and pre-processed it: ```bash python nlp-cli test datasets/germeval_14 --all_configs ``` It then outputs the number for training, development and testset. The training set consists of 24,000 sentences, the development set of 2,200 and the test of 5,100 sentences. Now it can be imported and used with `nlp`: ```python import nlp germeval = nlp.load_dataset("./datasets/germeval_14/germeval_14.py") assert len(germeval["train"]) == 24000 # Show first sentence of training set: germeval["train"][0] ``` @patrickvonplaten Rebased it 😅 How can it test 🤔 I used: ```bash RUN_SLOW=1 RUN_LOCAL=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_local_germeval_14 # and RUN_SLOW=1 RUN_LOCAL=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_local_germeval_14 ``` and the tests still pass :)
[ 0.12363433837890625, -0.13409040868282318, -0.1071128249168396, 0.344893217086792, 0.00201345793902874, -0.05565440654754639, 0.1381717473268509, 0.10920467972755432, -0.12318699061870575, 0.28854554891586304, -0.039055243134498596, 0.12552858889102936, -0.10520970076322556, -0.047284938395023346, 0.07236508280038834, -0.1827271431684494, -0.0029109492897987366, -0.08153919875621796, 0.19059735536575317, -0.11292678117752075, 0.01583820953965187, 0.37401917576789856, -0.006081581115722656, 0.02950955554842949, -0.3859056234359741, 0.045370109379291534, -0.17745037376880646, 0.10939690470695496, -0.16773721575737, -0.5897523760795593, -0.07936915755271912, 0.03677598387002945, -0.02268516831099987, 0.22879554331302643, -0.00010081077925860882, -0.1681617647409439, 0.15512773394584656, -0.053663089871406555, -0.38045260310173035, 0.1158929318189621, -0.03115047700703144, -0.1012626439332962, -0.23081234097480774, -0.3856874406337738, -0.22876274585723877, -0.17173618078231812, 0.18055671453475952, -0.21280036866664886, 0.17392054200172424, 0.24215927720069885, 0.261258602142334, -0.2096077799797058, -0.042696453630924225, -0.10381510108709335, 0.18766233325004578, 0.2222985178232193, -0.0886516198515892, -0.08860214054584503, 0.10641095042228699, 0.2681303024291992, -0.38749003410339355, 0.39236345887184143, -0.11153333634138107, -0.07418183982372284, 0.1546095907688141, 0.03881874307990074, 0.21079862117767334, -0.19871704280376434, 0.2238214612007141, 0.22648495435714722, 0.33249956369400024, -0.1309778392314911, 0.014104748144745827, -0.15078021585941315, 0.010748908855021, -0.180201917886734, 0.07838638126850128, -0.0018373876810073853, -0.1518578976392746, -0.019576210528612137, 0.12136345356702805, 0.10911526530981064, -0.3005790710449219, -0.00008209794759750366, -0.25645768642425537, 0.41337743401527405, -0.20507574081420898, -0.27853140234947205, 0.011517796665430069, -0.11234419047832489, -0.12154135853052139, -0.13109326362609863, -0.20316116511821747, -0.025245361030101776, -0.32630670070648193, -0.10896021872758865, 0.05827217176556587, 0.2346465289592743, 0.06331852823495865, 0.2742568850517273, 0.1530533730983734, -0.023764081299304962, 0.14038865268230438, -0.046201758086681366, -0.07126505672931671, -0.04939654469490051, 0.12808945775032043, 0.01816946268081665, 0.15432347357273102, -0.018842969089746475, 0.10740581154823303, -0.020668689161539078, -0.24094344675540924, 0.03536314517259598, -0.2589024305343628, -0.08181408047676086, -0.008502967655658722, -0.09809184074401855, -0.3571353852748871, 0.26038500666618347, -0.29193300008773804, -0.013381902128458023, -0.13359007239341736, 0.18601518869400024, -0.16335149109363556, -0.13079825043678284, -0.15228579938411713, -0.1741793304681778, 0.012811070308089256, -0.23386357724666595, -0.276554673910141, 0.024746950715780258, -0.11329135298728943, -0.12838312983512878, 0.22597672045230865, 0.08783037960529327, 0.09429103136062622, -0.12035370618104935, -0.12171196937561035, 0.07228093594312668, 0.0355803519487381, -0.20457978546619415, 0.24956855177879333, 0.05858064070343971, -0.10097184777259827, 0.02921883948147297, -0.04333437606692314, -0.30618250370025635, -0.1280745267868042, 0.053909048438072205, -0.08420046418905258, -0.31444668769836426, -0.33810731768608093, 0.27666574716567993, -0.35807156562805176, -0.19921830296516418, 0.13855737447738647, 0.286452054977417, -0.09451112896203995, -0.031504929065704346, -0.0012109950184822083, 0.17200081050395966, -0.39277365803718567, -0.016739293932914734, 0.3665229380130768, 0.39339298009872437, -0.23851467669010162, -0.1671781837940216, -0.4985714256763458, -0.0203707255423069, 0.33601653575897217, 0.24869120121002197, 0.14517058432102203, 0.4137793779373169, -0.13984908163547516, 0.7401864528656006, -0.014056496322154999, -0.2589520514011383, -0.33972838521003723, -0.03825885429978371, -0.24796424806118011, 0.16137923300266266, 0.3737019896507263, 0.12094194442033768, 0.6630463600158691, -0.011387809179723263, 0.10551156103610992, 0.1704169511795044, -0.007046790793538094, -0.02649947814643383, -0.17269712686538696, 0.1411828100681305, 0.006489213556051254, 0.01688724011182785, -0.04628097638487816, -0.15727978944778442, 0.10485167801380157, 0.4461510479450226, 0.12195633351802826, -0.2610878050327301, 0.23783159255981445, 0.34358006715774536, 0.3924773633480072, 0.08452669531106949, 0.11143218725919724, 0.1375870406627655, -0.4001768231391907, -0.07725472003221512, -0.18437230587005615, 0.6576504111289978, -0.18918044865131378, -0.12413717806339264, -0.2805517911911011, 0.043086692690849304, -0.21031098067760468, -0.6211608052253723, 0.3756301701068878, 0.2742486894130707, -0.15485572814941406, 0.021022144705057144, 0.2966056764125824, 0.3002293109893799, -0.32304647564888, -0.06574217975139618, -0.13314591348171234, 0.35262706875801086, -0.25606676936149597, -0.004269362427294254, -0.1563919186592102, 0.32860174775123596, -0.014338560402393341, 0.19077755510807037, -0.0029893480241298676, 0.11113005876541138, 0.0338636077940464, 0.15452586114406586, -0.02867899090051651, 0.3597670793533325, -0.1432996541261673, -0.3310451805591583, 0.15929952263832092, 0.008746983483433723, 0.02045615017414093, -0.15778109431266785, -0.3612898588180542, 0.0341799333691597, 0.22732007503509521, 0.13854625821113586, -0.15312711894512177, -0.04472118616104126, -0.015991149470210075, 0.011374469846487045, -0.20325645804405212, -0.34791916608810425, 0.04598255455493927, -0.050241630524396896, -0.12799836695194244, 0.17165973782539368, -0.2621299624443054, 0.08550436049699783, 0.37395399808883667, 0.10738842189311981, 0.01553891971707344, 0.19093817472457886, -0.5007121562957764, -0.313407838344574, 0.23115171492099762, 0.20456470549106598, 0.0487026572227478, 0.30767345428466797, 0.25328829884529114, 0.04784660413861275, 0.30841878056526184, -0.0846894308924675, 0.2873188555240631, 0.11635009944438934, -0.0609758235514164, 0.30499017238616943, 0.24683213233947754, 0.20754803717136383, -0.3567160367965698, -0.2998042702674866, 0.0574832484126091, 0.22590258717536926, -0.37854108214378357, -0.040404751896858215, -0.10805363208055496, -0.26967889070510864, -0.21807345747947693, 0.049019135534763336, -0.20363378524780273, -0.42229118943214417, 0.20908816158771515, 0.12298230826854706, -0.14750365912914276, 0.26480793952941895, 0.056426312774419785, 0.35387635231018066, -0.10927899181842804, 0.15711040794849396, -0.33033937215805054, -0.21435773372650146, -0.190694659948349, 0.30262890458106995, -0.019438590854406357, 0.2993808388710022, 0.3196977972984314, -0.17509354650974274, 0.2869025468826294, -0.461667537689209, -0.7068633437156677, 0.33390864729881287, -0.16738779842853546, 0.04761289805173874, 0.15460246801376343, 0.02803506702184677, -0.3329430818557739, -0.15884923934936523, 0.03589634224772453, 0.10402514040470123, -0.32314109802246094, 0.15294615924358368, -0.48193925619125366, 0.07151415944099426, 0.0020893029868602753, -0.4295754134654999, -0.15986020863056183, -0.3792732059955597, 0.25950390100479126, 0.07412929832935333, 0.202607199549675, 0.36837488412857056, -0.27050676941871643, 0.16910451650619507, 0.013324358500540257, 0.227086141705513, -0.07291499525308609, 0.07821649312973022, 0.4537055492401123, -0.33169299364089966, -0.07306632399559021, -0.18743909895420074, -0.048698991537094116, 0.1511581689119339, -0.24265097081661224, -0.311429500579834, 0.13618391752243042, -0.015626853331923485, -0.0759018212556839, 0.20995838940143585, -0.17201797664165497, 0.26332634687423706, 0.12056269496679306, -0.26495105028152466, -0.10480190068483353, 0.10942010581493378, 0.27990615367889404, -0.018505170941352844, -0.07828880101442337, -0.06504998356103897, 0.0707436054944992, 0.39489299058914185, 0.057534247636795044, 0.23055094480514526, -0.22612769901752472, 0.06687390059232712, -0.16921041905879974, 0.1552223414182663, -0.05366017669439316, -0.14832356572151184, 0.24716836214065552, 0.13566486537456512, 0.06886910647153854, 0.6640644073486328, 0.04443638026714325, 0.13979998230934143, 0.29681190848350525, -0.05397080257534981, 0.16018575429916382, -0.13648013770580292, 0.20106938481330872, -0.34132835268974304, 0.3273121118545532, -0.08386805653572083, -0.31568199396133423, -0.21329258382320404, -0.48117339611053467, 0.13798919320106506, -0.12575505673885345, 0.017056040465831757, 0.07195144146680832, -0.21996043622493744, 0.5744629502296448, -0.4504796266555786, 0.3054065406322479, 0.10558491945266724, -0.11554408073425293, -0.31581389904022217, -0.08500615507364273, 0.15186531841754913, 0.11676955223083496, 0.2834162712097168, -0.31475070118904114, 0.030969267711043358, 0.19291402399539948, 0.179355189204216, -0.12498629838228226, 0.2902381122112274, -0.33501023054122925, -0.1376020759344101, 0.5975657105445862, 0.05572470277547836, -0.2625282406806946, -0.2413787990808487, 0.4602281153202057, -0.0645492821931839, -0.07332983613014221, -0.06385523825883865, 0.10787953436374664, 0.08922164887189865, -0.2928481698036194, 0.0982399508357048, 0.4212474524974823, 0.15416492521762848, 0.17931967973709106, -0.07441660761833191, -0.10579521954059601, 0.2602110505104065, 0.2515103220939636, 0.1050732284784317, 0.2239166498184204, -0.0037322042044252157, 0.014194339513778687, 0.1626630425453186, 0.2893092632293701, 0.3188880383968353, 0.1274251639842987, -0.255548894405365, -0.009685657918453217, 0.2987019121646881, -0.2129240781068802, 0.11324101686477661, 0.2479977011680603, 0.07854972034692764, -0.02701842039823532, 0.11482305079698563, 0.03063816949725151, -0.1885131299495697, 0.13183319568634033, 0.16425561904907227, 0.1951429694890976, -0.1766776293516159, -0.11398794502019882, 0.03962736949324608, 0.29204657673835754, -0.235676109790802, -0.22496560215950012, 0.5590280294418335, -0.30770787596702576, 0.23150832951068878, 0.23694640398025513, 0.9826791882514954, 0.2540592551231384, 0.1019633412361145, 0.14710542559623718, 0.3062448501586914, 0.18251094222068787, -0.3999791741371155, 0.0038631008937954903, -0.25950416922569275, 0.03738797456026077, -0.08246158063411713, 0.07984575629234314, -0.10985169559717178, 0.3931768536567688, -0.32106903195381165, 0.10560240596532822, 0.24472551047801971, 0.4004436433315277, 0.11225760728120804, 0.2705734968185425, 0.34345608949661255, -0.24816980957984924, 0.00563310831785202, 0.2593952715396881, 0.05006204918026924, 0.18106098473072052, 0.07152658700942993, -0.12329930067062378, -0.11538377404212952, -0.15325231850147247, -0.275084912776947, 0.020365655422210693, -0.08382080495357513, 0.058153972029685974, -0.009259164333343506, -0.19278576970100403, 0.15006950497627258, 0.42746782302856445, 0.39202791452407837, 0.13167312741279602, -0.14279501140117645, -0.008204448968172073, 0.16563016176223755, -0.043937571346759796, 0.2503809928894043, -0.04506736248731613, 0.15344208478927612, -0.2606242299079895, -0.163425475358963, -0.08870575577020645, 0.004856542684137821, -0.2904514968395233, 0.13569191098213196, -0.12858857214450836, 0.15979528427124023, -0.1430516242980957, 0.22979092597961426, 0.18324793875217438, -0.2381293624639511, -0.3202992081642151, 0.2284420132637024, -0.12311272323131561, -0.0382474847137928, -0.028892360627651215, 0.12250153720378876, -0.20656493306159973, -0.04675767198204994, 0.16573582589626312, 0.20721736550331116, -0.004686042666435242, 0.37510043382644653, 0.14711017906665802, -0.30401140451431274, -0.4031289219856262, -0.27780646085739136, 0.18180985748767853, -0.47203317284584045, -0.09690161794424057, -0.19152119755744934, -0.1715846061706543, 0.036211125552654266, 0.4265993535518646, 0.022016676142811775, 0.13659656047821045, -0.06698737293481827, -0.07337600737810135, -0.2999364137649536, 0.2317812442779541, -0.2092657834291458, 0.35443466901779175, 0.07101055979728699, 0.07209686934947968, -0.2396087944507599, 0.05241817981004715, -0.5226572751998901, 0.09830905497074127, -0.2694896459579468, 0.07321718335151672, 0.4655216336250305, -0.31368228793144226, 0.16958004236221313, 0.10985231399536133, 0.2460748851299286, 0.15913845598697662, -0.11286379396915436, -0.2807575762271881, -0.1503075212240219, 0.09219960868358612, -0.016020167618989944, 0.10454264283180237, -0.05049675330519676, 0.268013060092926, -0.27573162317276, -0.23591652512550354, 0.35760247707366943, 0.16977190971374512, 0.15164563059806824, 0.0645192563533783, 0.0243275985121727, 0.290818989276886, -0.09843902289867401, -0.09396900236606598, 0.17958439886569977, 0.19947534799575806, -0.03386320173740387, 0.2145298272371292, -0.1609794944524765, -0.17018437385559082, -0.07518941164016724, 0.44620561599731445, 0.4518333673477173, 0.01569671370089054, -0.031129442155361176, 0.04899631813168526, -0.2652829885482788, -0.0015713456086814404, 0.09587208926677704, -0.21986091136932373, -0.05813630297780037, -0.43093588948249817, 0.034283146262168884, 0.3705040216445923, -0.16532331705093384, 0.07509894669055939, -0.09369377791881561, -0.4022570848464966, 0.22744804620742798, 0.19164279103279114, 0.4982294738292694, 0.020137585699558258, -0.07316434383392334, 0.1699523627758026, 0.22745589911937714, -0.13134440779685974, -0.060566145926713943, 0.057116955518722534, -0.20580267906188965, 0.0502675399184227, 0.29017671942710876, -0.16206130385398865, 0.23270872235298157, 0.20895686745643616, 0.20808693766593933, 0.15539167821407318, 0.2485376000404358, 0.16436262428760529, 0.34569039940834045, -0.11634980142116547, 0.2506462037563324, 0.29661980271339417, 0.09914196282625198, -0.04673626273870468, 0.14424708485603333, -0.028720751404762268, 0.47850796580314636, -0.01793579012155533, -0.34764087200164795, 0.2976968288421631, -0.2548740804195404, -0.1096220314502716, -0.2254370152950287, -0.30132949352264404, -0.3178096115589142, -0.168455570936203, -0.048628080636262894, 0.01817965880036354, -0.07283775508403778, -0.15296752750873566, -0.09448972344398499, -0.1580498069524765, 0.062256790697574615, -0.033592186868190765, 0.30588817596435547, -0.4316357374191284, 0.36492598056793213, 0.09424828737974167, -0.14654189348220825, 0.025182316079735756, 0.3454785645008087, 0.4758378267288208, -0.06866664439439774, 0.2596871554851532, -0.11253184825181961, -0.2116982489824295, -0.27217188477516174, -0.09102585166692734, 0.14730574190616608, 0.009246885776519775, -0.3390260636806488, 0.2602252662181854, 0.1612883061170578, -0.283841609954834, -0.2259320467710495, 0.24769598245620728, 0.03512375056743622, 0.23184524476528168, 0.25493791699409485, 0.21791629493236542, -0.21752211451530457, -0.015170775353908539, -0.044749848544597626, -0.34824031591415405, -0.284486323595047, 0.14377319812774658, -0.1429072916507721, 0.09576966613531113, -0.23410564661026, 0.14984892308712006, 0.039614222943782806, 0.3235675096511841, 0.12323877215385437, -0.072645403444767, 0.12774121761322021, -0.40601420402526855, -0.43463602662086487, 0.33429187536239624, 0.01100340485572815, -0.10159243643283844, -0.026557933539152145, -0.09568016231060028, 0.22429746389389038, 0.11814568191766739, -0.25454145669937134, -0.032256241887807846, -0.42686155438423157, 0.15343506634235382, -0.4204851984977722, 0.14162202179431915, 0.2209455817937851, -0.009677702561020851, -0.05274432897567749, -0.1056014895439148, -0.17661261558532715, -0.022048279643058777, 0.22948071360588074, -0.1336146593093872, 0.07490645349025726, -0.20999400317668915, 0.043918851763010025, 0.23762471973896027, 0.13663704693317413, 0.44443070888519287, -0.21949845552444458, -0.10196924954652786, 0.00948864221572876, 0.08289433270692825, -0.16374996304512024, 0.275162011384964, 0.25828441977500916, 0.48055532574653625, 0.20630480349063873, -0.3504939377307892, 0.07560768723487854, -0.1096821129322052, 0.10022081434726715, 0.21852044761180878, -0.33526772260665894, 0.4514386057853699, -0.06763885170221329, 0.2611812353134155, -0.20884639024734497, 0.03933621942996979, 0.2551671266555786, -0.10442519187927246, -0.27795499563217163, -0.5883686542510986, 0.4482118785381317, -0.26927003264427185, 0.12441414594650269, -0.26430097222328186, 0.25725463032722473, 0.21870115399360657, 0.07786956429481506, -0.44740837812423706, 0.08844006806612015, 0.35093942284584045, 0.06136728450655937, -0.3178612291812897, 0.22476911544799805, 0.11621074378490448, -0.04641728103160858, -0.12759529054164886, 0.05753536522388458, 0.03432730212807655, -0.1514558345079422, -0.2482272833585739, -0.47364574670791626 ]
https://github.com/huggingface/datasets/pull/139
Add GermEval 2014 NER dataset
Perfect, if these tests pass that's great - I'll merge the PR then :-) Was it very difficult to create the dummy data structure?
Hi, this PR adds the GermEval 2014 NER dataset 😃 > The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties: > - The data was sampled from German Wikipedia and News Corpora as a collection of citations. > - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. > - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]]. Dataset will be downloaded from the [official GermEval 2014 website](https://sites.google.com/site/germeval2014ner/data). ## Dataset format Here's an example of the dataset format from the original dataset: ```tsv # http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17] 1 Aufgrund O O 2 seiner O O 3 Initiative O O 4 fand O O 5 2001/2002 O O 6 in O O 7 Stuttgart B-LOC O 8 , O O 9 Braunschweig B-LOC O 10 und O O 11 Bonn B-LOC O 12 eine O O 13 große O O 14 und O O 15 publizistisch O O 16 vielbeachtete O O 17 Troia-Ausstellung B-LOCpart O 18 statt O O 19 , O O 20 „ O O 21 Troia B-OTH B-LOC 22 - I-OTH O 23 Traum I-OTH O 24 und I-OTH O 25 Wirklichkeit I-OTH O 26 “ O O 27 . O O ``` The sentence is encoded as one token per line (tab separated columns. The first column contains either a `#`, which signals the source the sentence is cited from and the date it was retrieved, or the token number within the sentence. The second column contains the token. Column three and four contain the named entity (in IOB2 scheme). Outer spans are encoded in the third column, embedded/nested spans in the fourth column. ## Features I decided to keep most information from the dataset. That means the so called "source" information (where the sentences come from + date information) is also returned for each sentence in the feature vector. For each sentence in the dataset, one feature vector (`nlp.Features` definition) will be returned: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `source` | `http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17]` | URL and retrieval date as string | `tokens` | `["Schwartau", "sagte", ":"]` | List of tokens (strings) for a sentence | `labels` | `["B-PER", "O", "O"]` | List of labels (outer span) | `nested-labels` | `["O", "O", "O"]` | List of labels for nested span ## Example The following command downloads the dataset from the official GermEval 2014 page and pre-processed it: ```bash python nlp-cli test datasets/germeval_14 --all_configs ``` It then outputs the number for training, development and testset. The training set consists of 24,000 sentences, the development set of 2,200 and the test of 5,100 sentences. Now it can be imported and used with `nlp`: ```python import nlp germeval = nlp.load_dataset("./datasets/germeval_14/germeval_14.py") assert len(germeval["train"]) == 24000 # Show first sentence of training set: germeval["train"][0] ```
24
text: Add GermEval 2014 NER dataset Hi, this PR adds the GermEval 2014 NER dataset 😃 > The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties: > - The data was sampled from German Wikipedia and News Corpora as a collection of citations. > - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. > - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]]. Dataset will be downloaded from the [official GermEval 2014 website](https://sites.google.com/site/germeval2014ner/data). ## Dataset format Here's an example of the dataset format from the original dataset: ```tsv # http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17] 1 Aufgrund O O 2 seiner O O 3 Initiative O O 4 fand O O 5 2001/2002 O O 6 in O O 7 Stuttgart B-LOC O 8 , O O 9 Braunschweig B-LOC O 10 und O O 11 Bonn B-LOC O 12 eine O O 13 große O O 14 und O O 15 publizistisch O O 16 vielbeachtete O O 17 Troia-Ausstellung B-LOCpart O 18 statt O O 19 , O O 20 „ O O 21 Troia B-OTH B-LOC 22 - I-OTH O 23 Traum I-OTH O 24 und I-OTH O 25 Wirklichkeit I-OTH O 26 “ O O 27 . O O ``` The sentence is encoded as one token per line (tab separated columns. The first column contains either a `#`, which signals the source the sentence is cited from and the date it was retrieved, or the token number within the sentence. The second column contains the token. Column three and four contain the named entity (in IOB2 scheme). Outer spans are encoded in the third column, embedded/nested spans in the fourth column. ## Features I decided to keep most information from the dataset. That means the so called "source" information (where the sentences come from + date information) is also returned for each sentence in the feature vector. For each sentence in the dataset, one feature vector (`nlp.Features` definition) will be returned: | Feature | Example | Description | ---- | ---- | ----------------- | `id` | `0` | Number (id) of current sentence | `source` | `http://de.wikipedia.org/wiki/Manfred_Korfmann [2009-10-17]` | URL and retrieval date as string | `tokens` | `["Schwartau", "sagte", ":"]` | List of tokens (strings) for a sentence | `labels` | `["B-PER", "O", "O"]` | List of labels (outer span) | `nested-labels` | `["O", "O", "O"]` | List of labels for nested span ## Example The following command downloads the dataset from the official GermEval 2014 page and pre-processed it: ```bash python nlp-cli test datasets/germeval_14 --all_configs ``` It then outputs the number for training, development and testset. The training set consists of 24,000 sentences, the development set of 2,200 and the test of 5,100 sentences. Now it can be imported and used with `nlp`: ```python import nlp germeval = nlp.load_dataset("./datasets/germeval_14/germeval_14.py") assert len(germeval["train"]) == 24000 # Show first sentence of training set: germeval["train"][0] ``` Perfect, if these tests pass that's great - I'll merge the PR then :-) Was it very difficult to create the dummy data structure?
[ 0.12363433837890625, -0.13409040868282318, -0.1071128249168396, 0.344893217086792, 0.00201345793902874, -0.05565440654754639, 0.1381717473268509, 0.10920467972755432, -0.12318699061870575, 0.28854554891586304, -0.039055243134498596, 0.12552858889102936, -0.10520970076322556, -0.047284938395023346, 0.07236508280038834, -0.1827271431684494, -0.0029109492897987366, -0.08153919875621796, 0.19059735536575317, -0.11292678117752075, 0.01583820953965187, 0.37401917576789856, -0.006081581115722656, 0.02950955554842949, -0.3859056234359741, 0.045370109379291534, -0.17745037376880646, 0.10939690470695496, -0.16773721575737, -0.5897523760795593, -0.07936915755271912, 0.03677598387002945, -0.02268516831099987, 0.22879554331302643, -0.00010081077925860882, -0.1681617647409439, 0.15512773394584656, -0.053663089871406555, -0.38045260310173035, 0.1158929318189621, -0.03115047700703144, -0.1012626439332962, -0.23081234097480774, -0.3856874406337738, -0.22876274585723877, -0.17173618078231812, 0.18055671453475952, -0.21280036866664886, 0.17392054200172424, 0.24215927720069885, 0.261258602142334, -0.2096077799797058, -0.042696453630924225, -0.10381510108709335, 0.18766233325004578, 0.2222985178232193, -0.0886516198515892, -0.08860214054584503, 0.10641095042228699, 0.2681303024291992, -0.38749003410339355, 0.39236345887184143, -0.11153333634138107, -0.07418183982372284, 0.1546095907688141, 0.03881874307990074, 0.21079862117767334, -0.19871704280376434, 0.2238214612007141, 0.22648495435714722, 0.33249956369400024, -0.1309778392314911, 0.014104748144745827, -0.15078021585941315, 0.010748908855021, -0.180201917886734, 0.07838638126850128, -0.0018373876810073853, -0.1518578976392746, -0.019576210528612137, 0.12136345356702805, 0.10911526530981064, -0.3005790710449219, -0.00008209794759750366, -0.25645768642425537, 0.41337743401527405, -0.20507574081420898, -0.27853140234947205, 0.011517796665430069, -0.11234419047832489, -0.12154135853052139, -0.13109326362609863, -0.20316116511821747, -0.025245361030101776, -0.32630670070648193, -0.10896021872758865, 0.05827217176556587, 0.2346465289592743, 0.06331852823495865, 0.2742568850517273, 0.1530533730983734, -0.023764081299304962, 0.14038865268230438, -0.046201758086681366, -0.07126505672931671, -0.04939654469490051, 0.12808945775032043, 0.01816946268081665, 0.15432347357273102, -0.018842969089746475, 0.10740581154823303, -0.020668689161539078, -0.24094344675540924, 0.03536314517259598, -0.2589024305343628, -0.08181408047676086, -0.008502967655658722, -0.09809184074401855, -0.3571353852748871, 0.26038500666618347, -0.29193300008773804, -0.013381902128458023, -0.13359007239341736, 0.18601518869400024, -0.16335149109363556, -0.13079825043678284, -0.15228579938411713, -0.1741793304681778, 0.012811070308089256, -0.23386357724666595, -0.276554673910141, 0.024746950715780258, -0.11329135298728943, -0.12838312983512878, 0.22597672045230865, 0.08783037960529327, 0.09429103136062622, -0.12035370618104935, -0.12171196937561035, 0.07228093594312668, 0.0355803519487381, -0.20457978546619415, 0.24956855177879333, 0.05858064070343971, -0.10097184777259827, 0.02921883948147297, -0.04333437606692314, -0.30618250370025635, -0.1280745267868042, 0.053909048438072205, -0.08420046418905258, -0.31444668769836426, -0.33810731768608093, 0.27666574716567993, -0.35807156562805176, -0.19921830296516418, 0.13855737447738647, 0.286452054977417, -0.09451112896203995, -0.031504929065704346, -0.0012109950184822083, 0.17200081050395966, -0.39277365803718567, -0.016739293932914734, 0.3665229380130768, 0.39339298009872437, -0.23851467669010162, -0.1671781837940216, -0.4985714256763458, -0.0203707255423069, 0.33601653575897217, 0.24869120121002197, 0.14517058432102203, 0.4137793779373169, -0.13984908163547516, 0.7401864528656006, -0.014056496322154999, -0.2589520514011383, -0.33972838521003723, -0.03825885429978371, -0.24796424806118011, 0.16137923300266266, 0.3737019896507263, 0.12094194442033768, 0.6630463600158691, -0.011387809179723263, 0.10551156103610992, 0.1704169511795044, -0.007046790793538094, -0.02649947814643383, -0.17269712686538696, 0.1411828100681305, 0.006489213556051254, 0.01688724011182785, -0.04628097638487816, -0.15727978944778442, 0.10485167801380157, 0.4461510479450226, 0.12195633351802826, -0.2610878050327301, 0.23783159255981445, 0.34358006715774536, 0.3924773633480072, 0.08452669531106949, 0.11143218725919724, 0.1375870406627655, -0.4001768231391907, -0.07725472003221512, -0.18437230587005615, 0.6576504111289978, -0.18918044865131378, -0.12413717806339264, -0.2805517911911011, 0.043086692690849304, -0.21031098067760468, -0.6211608052253723, 0.3756301701068878, 0.2742486894130707, -0.15485572814941406, 0.021022144705057144, 0.2966056764125824, 0.3002293109893799, -0.32304647564888, -0.06574217975139618, -0.13314591348171234, 0.35262706875801086, -0.25606676936149597, -0.004269362427294254, -0.1563919186592102, 0.32860174775123596, -0.014338560402393341, 0.19077755510807037, -0.0029893480241298676, 0.11113005876541138, 0.0338636077940464, 0.15452586114406586, -0.02867899090051651, 0.3597670793533325, -0.1432996541261673, -0.3310451805591583, 0.15929952263832092, 0.008746983483433723, 0.02045615017414093, -0.15778109431266785, -0.3612898588180542, 0.0341799333691597, 0.22732007503509521, 0.13854625821113586, -0.15312711894512177, -0.04472118616104126, -0.015991149470210075, 0.011374469846487045, -0.20325645804405212, -0.34791916608810425, 0.04598255455493927, -0.050241630524396896, -0.12799836695194244, 0.17165973782539368, -0.2621299624443054, 0.08550436049699783, 0.37395399808883667, 0.10738842189311981, 0.01553891971707344, 0.19093817472457886, -0.5007121562957764, -0.313407838344574, 0.23115171492099762, 0.20456470549106598, 0.0487026572227478, 0.30767345428466797, 0.25328829884529114, 0.04784660413861275, 0.30841878056526184, -0.0846894308924675, 0.2873188555240631, 0.11635009944438934, -0.0609758235514164, 0.30499017238616943, 0.24683213233947754, 0.20754803717136383, -0.3567160367965698, -0.2998042702674866, 0.0574832484126091, 0.22590258717536926, -0.37854108214378357, -0.040404751896858215, -0.10805363208055496, -0.26967889070510864, -0.21807345747947693, 0.049019135534763336, -0.20363378524780273, -0.42229118943214417, 0.20908816158771515, 0.12298230826854706, -0.14750365912914276, 0.26480793952941895, 0.056426312774419785, 0.35387635231018066, -0.10927899181842804, 0.15711040794849396, -0.33033937215805054, -0.21435773372650146, -0.190694659948349, 0.30262890458106995, -0.019438590854406357, 0.2993808388710022, 0.3196977972984314, -0.17509354650974274, 0.2869025468826294, -0.461667537689209, -0.7068633437156677, 0.33390864729881287, -0.16738779842853546, 0.04761289805173874, 0.15460246801376343, 0.02803506702184677, -0.3329430818557739, -0.15884923934936523, 0.03589634224772453, 0.10402514040470123, -0.32314109802246094, 0.15294615924358368, -0.48193925619125366, 0.07151415944099426, 0.0020893029868602753, -0.4295754134654999, -0.15986020863056183, -0.3792732059955597, 0.25950390100479126, 0.07412929832935333, 0.202607199549675, 0.36837488412857056, -0.27050676941871643, 0.16910451650619507, 0.013324358500540257, 0.227086141705513, -0.07291499525308609, 0.07821649312973022, 0.4537055492401123, -0.33169299364089966, -0.07306632399559021, -0.18743909895420074, -0.048698991537094116, 0.1511581689119339, -0.24265097081661224, -0.311429500579834, 0.13618391752243042, -0.015626853331923485, -0.0759018212556839, 0.20995838940143585, -0.17201797664165497, 0.26332634687423706, 0.12056269496679306, -0.26495105028152466, -0.10480190068483353, 0.10942010581493378, 0.27990615367889404, -0.018505170941352844, -0.07828880101442337, -0.06504998356103897, 0.0707436054944992, 0.39489299058914185, 0.057534247636795044, 0.23055094480514526, -0.22612769901752472, 0.06687390059232712, -0.16921041905879974, 0.1552223414182663, -0.05366017669439316, -0.14832356572151184, 0.24716836214065552, 0.13566486537456512, 0.06886910647153854, 0.6640644073486328, 0.04443638026714325, 0.13979998230934143, 0.29681190848350525, -0.05397080257534981, 0.16018575429916382, -0.13648013770580292, 0.20106938481330872, -0.34132835268974304, 0.3273121118545532, -0.08386805653572083, -0.31568199396133423, -0.21329258382320404, -0.48117339611053467, 0.13798919320106506, -0.12575505673885345, 0.017056040465831757, 0.07195144146680832, -0.21996043622493744, 0.5744629502296448, -0.4504796266555786, 0.3054065406322479, 0.10558491945266724, -0.11554408073425293, -0.31581389904022217, -0.08500615507364273, 0.15186531841754913, 0.11676955223083496, 0.2834162712097168, -0.31475070118904114, 0.030969267711043358, 0.19291402399539948, 0.179355189204216, -0.12498629838228226, 0.2902381122112274, -0.33501023054122925, -0.1376020759344101, 0.5975657105445862, 0.05572470277547836, -0.2625282406806946, -0.2413787990808487, 0.4602281153202057, -0.0645492821931839, -0.07332983613014221, -0.06385523825883865, 0.10787953436374664, 0.08922164887189865, -0.2928481698036194, 0.0982399508357048, 0.4212474524974823, 0.15416492521762848, 0.17931967973709106, -0.07441660761833191, -0.10579521954059601, 0.2602110505104065, 0.2515103220939636, 0.1050732284784317, 0.2239166498184204, -0.0037322042044252157, 0.014194339513778687, 0.1626630425453186, 0.2893092632293701, 0.3188880383968353, 0.1274251639842987, -0.255548894405365, -0.009685657918453217, 0.2987019121646881, -0.2129240781068802, 0.11324101686477661, 0.2479977011680603, 0.07854972034692764, -0.02701842039823532, 0.11482305079698563, 0.03063816949725151, -0.1885131299495697, 0.13183319568634033, 0.16425561904907227, 0.1951429694890976, -0.1766776293516159, -0.11398794502019882, 0.03962736949324608, 0.29204657673835754, -0.235676109790802, -0.22496560215950012, 0.5590280294418335, -0.30770787596702576, 0.23150832951068878, 0.23694640398025513, 0.9826791882514954, 0.2540592551231384, 0.1019633412361145, 0.14710542559623718, 0.3062448501586914, 0.18251094222068787, -0.3999791741371155, 0.0038631008937954903, -0.25950416922569275, 0.03738797456026077, -0.08246158063411713, 0.07984575629234314, -0.10985169559717178, 0.3931768536567688, -0.32106903195381165, 0.10560240596532822, 0.24472551047801971, 0.4004436433315277, 0.11225760728120804, 0.2705734968185425, 0.34345608949661255, -0.24816980957984924, 0.00563310831785202, 0.2593952715396881, 0.05006204918026924, 0.18106098473072052, 0.07152658700942993, -0.12329930067062378, -0.11538377404212952, -0.15325231850147247, -0.275084912776947, 0.020365655422210693, -0.08382080495357513, 0.058153972029685974, -0.009259164333343506, -0.19278576970100403, 0.15006950497627258, 0.42746782302856445, 0.39202791452407837, 0.13167312741279602, -0.14279501140117645, -0.008204448968172073, 0.16563016176223755, -0.043937571346759796, 0.2503809928894043, -0.04506736248731613, 0.15344208478927612, -0.2606242299079895, -0.163425475358963, -0.08870575577020645, 0.004856542684137821, -0.2904514968395233, 0.13569191098213196, -0.12858857214450836, 0.15979528427124023, -0.1430516242980957, 0.22979092597961426, 0.18324793875217438, -0.2381293624639511, -0.3202992081642151, 0.2284420132637024, -0.12311272323131561, -0.0382474847137928, -0.028892360627651215, 0.12250153720378876, -0.20656493306159973, -0.04675767198204994, 0.16573582589626312, 0.20721736550331116, -0.004686042666435242, 0.37510043382644653, 0.14711017906665802, -0.30401140451431274, -0.4031289219856262, -0.27780646085739136, 0.18180985748767853, -0.47203317284584045, -0.09690161794424057, -0.19152119755744934, -0.1715846061706543, 0.036211125552654266, 0.4265993535518646, 0.022016676142811775, 0.13659656047821045, -0.06698737293481827, -0.07337600737810135, -0.2999364137649536, 0.2317812442779541, -0.2092657834291458, 0.35443466901779175, 0.07101055979728699, 0.07209686934947968, -0.2396087944507599, 0.05241817981004715, -0.5226572751998901, 0.09830905497074127, -0.2694896459579468, 0.07321718335151672, 0.4655216336250305, -0.31368228793144226, 0.16958004236221313, 0.10985231399536133, 0.2460748851299286, 0.15913845598697662, -0.11286379396915436, -0.2807575762271881, -0.1503075212240219, 0.09219960868358612, -0.016020167618989944, 0.10454264283180237, -0.05049675330519676, 0.268013060092926, -0.27573162317276, -0.23591652512550354, 0.35760247707366943, 0.16977190971374512, 0.15164563059806824, 0.0645192563533783, 0.0243275985121727, 0.290818989276886, -0.09843902289867401, -0.09396900236606598, 0.17958439886569977, 0.19947534799575806, -0.03386320173740387, 0.2145298272371292, -0.1609794944524765, -0.17018437385559082, -0.07518941164016724, 0.44620561599731445, 0.4518333673477173, 0.01569671370089054, -0.031129442155361176, 0.04899631813168526, -0.2652829885482788, -0.0015713456086814404, 0.09587208926677704, -0.21986091136932373, -0.05813630297780037, -0.43093588948249817, 0.034283146262168884, 0.3705040216445923, -0.16532331705093384, 0.07509894669055939, -0.09369377791881561, -0.4022570848464966, 0.22744804620742798, 0.19164279103279114, 0.4982294738292694, 0.020137585699558258, -0.07316434383392334, 0.1699523627758026, 0.22745589911937714, -0.13134440779685974, -0.060566145926713943, 0.057116955518722534, -0.20580267906188965, 0.0502675399184227, 0.29017671942710876, -0.16206130385398865, 0.23270872235298157, 0.20895686745643616, 0.20808693766593933, 0.15539167821407318, 0.2485376000404358, 0.16436262428760529, 0.34569039940834045, -0.11634980142116547, 0.2506462037563324, 0.29661980271339417, 0.09914196282625198, -0.04673626273870468, 0.14424708485603333, -0.028720751404762268, 0.47850796580314636, -0.01793579012155533, -0.34764087200164795, 0.2976968288421631, -0.2548740804195404, -0.1096220314502716, -0.2254370152950287, -0.30132949352264404, -0.3178096115589142, -0.168455570936203, -0.048628080636262894, 0.01817965880036354, -0.07283775508403778, -0.15296752750873566, -0.09448972344398499, -0.1580498069524765, 0.062256790697574615, -0.033592186868190765, 0.30588817596435547, -0.4316357374191284, 0.36492598056793213, 0.09424828737974167, -0.14654189348220825, 0.025182316079735756, 0.3454785645008087, 0.4758378267288208, -0.06866664439439774, 0.2596871554851532, -0.11253184825181961, -0.2116982489824295, -0.27217188477516174, -0.09102585166692734, 0.14730574190616608, 0.009246885776519775, -0.3390260636806488, 0.2602252662181854, 0.1612883061170578, -0.283841609954834, -0.2259320467710495, 0.24769598245620728, 0.03512375056743622, 0.23184524476528168, 0.25493791699409485, 0.21791629493236542, -0.21752211451530457, -0.015170775353908539, -0.044749848544597626, -0.34824031591415405, -0.284486323595047, 0.14377319812774658, -0.1429072916507721, 0.09576966613531113, -0.23410564661026, 0.14984892308712006, 0.039614222943782806, 0.3235675096511841, 0.12323877215385437, -0.072645403444767, 0.12774121761322021, -0.40601420402526855, -0.43463602662086487, 0.33429187536239624, 0.01100340485572815, -0.10159243643283844, -0.026557933539152145, -0.09568016231060028, 0.22429746389389038, 0.11814568191766739, -0.25454145669937134, -0.032256241887807846, -0.42686155438423157, 0.15343506634235382, -0.4204851984977722, 0.14162202179431915, 0.2209455817937851, -0.009677702561020851, -0.05274432897567749, -0.1056014895439148, -0.17661261558532715, -0.022048279643058777, 0.22948071360588074, -0.1336146593093872, 0.07490645349025726, -0.20999400317668915, 0.043918851763010025, 0.23762471973896027, 0.13663704693317413, 0.44443070888519287, -0.21949845552444458, -0.10196924954652786, 0.00948864221572876, 0.08289433270692825, -0.16374996304512024, 0.275162011384964, 0.25828441977500916, 0.48055532574653625, 0.20630480349063873, -0.3504939377307892, 0.07560768723487854, -0.1096821129322052, 0.10022081434726715, 0.21852044761180878, -0.33526772260665894, 0.4514386057853699, -0.06763885170221329, 0.2611812353134155, -0.20884639024734497, 0.03933621942996979, 0.2551671266555786, -0.10442519187927246, -0.27795499563217163, -0.5883686542510986, 0.4482118785381317, -0.26927003264427185, 0.12441414594650269, -0.26430097222328186, 0.25725463032722473, 0.21870115399360657, 0.07786956429481506, -0.44740837812423706, 0.08844006806612015, 0.35093942284584045, 0.06136728450655937, -0.3178612291812897, 0.22476911544799805, 0.11621074378490448, -0.04641728103160858, -0.12759529054164886, 0.05753536522388458, 0.03432730212807655, -0.1514558345079422, -0.2482272833585739, -0.47364574670791626 ]
https://github.com/huggingface/datasets/pull/123
[Tests] Local => aws
For each dataset, If there exist a `dataset_info.json`, then the command `nlp-cli test path/to/my/dataset --al_configs` is successful only if the `dataset_infos.json` is correct. The infos are correct if the size and checksums of the downloaded file are correct, and if the number of examples in each split are correct. Note: the `test` command is supposed to test the script, that's why it runs the script even if the cached files already exist. Let me know if it's good to you.
## Change default Test from local => aws As a default we set` aws=True`, `Local=False`, `slow=False` ### 1. RUN_AWS=1 (default) This runs 4 tests per dataset script. a) Does the dataset script have a valid etag / Can it be reached on AWS? b) Can we load its `builder_class`? c) Can we load **all** dataset configs? d) _Most importantly_: Can we load the dataset? Important - we currently only test the first config of each dataset to reduce test time. Total test time is around 1min20s. ### 2. RUN_LOCAL=1 RUN_AWS=0 ***This should be done when debugging dataset scripts of the ./datasets folder*** This only runs 1 test per dataset test, which is equivalent to aws d) - Can we load the dataset from the local `datasets` directory? ### 3. RUN_SLOW=1 We should set up to run these tests maybe 1 time per week ? @thomwolf The `slow` tests include two more important tests. e) Can we load the dataset with all possible configs? This test will probably fail at the moment because a lot of dummy data is missing. We should add the dummy data step by step to be sure that all configs work. f) Test that the actual dataset can be loaded. This will take quite some time to run, but is important to make sure that the "real" data can be loaded. It will also test whether the dataset script has the correct checksums file which is currently not tested with `aws=True`. @lhoestq - is there an easy way to check cheaply whether the `dataset_info.json` is correct for each dataset script?
80
text: [Tests] Local => aws ## Change default Test from local => aws As a default we set` aws=True`, `Local=False`, `slow=False` ### 1. RUN_AWS=1 (default) This runs 4 tests per dataset script. a) Does the dataset script have a valid etag / Can it be reached on AWS? b) Can we load its `builder_class`? c) Can we load **all** dataset configs? d) _Most importantly_: Can we load the dataset? Important - we currently only test the first config of each dataset to reduce test time. Total test time is around 1min20s. ### 2. RUN_LOCAL=1 RUN_AWS=0 ***This should be done when debugging dataset scripts of the ./datasets folder*** This only runs 1 test per dataset test, which is equivalent to aws d) - Can we load the dataset from the local `datasets` directory? ### 3. RUN_SLOW=1 We should set up to run these tests maybe 1 time per week ? @thomwolf The `slow` tests include two more important tests. e) Can we load the dataset with all possible configs? This test will probably fail at the moment because a lot of dummy data is missing. We should add the dummy data step by step to be sure that all configs work. f) Test that the actual dataset can be loaded. This will take quite some time to run, but is important to make sure that the "real" data can be loaded. It will also test whether the dataset script has the correct checksums file which is currently not tested with `aws=True`. @lhoestq - is there an easy way to check cheaply whether the `dataset_info.json` is correct for each dataset script? For each dataset, If there exist a `dataset_info.json`, then the command `nlp-cli test path/to/my/dataset --al_configs` is successful only if the `dataset_infos.json` is correct. The infos are correct if the size and checksums of the downloaded file are correct, and if the number of examples in each split are correct. Note: the `test` command is supposed to test the script, that's why it runs the script even if the cached files already exist. Let me know if it's good to you.
[ -0.5688543319702148, 0.2516252398490906, -0.18549339473247528, 0.23897936940193176, -0.18543954193592072, -0.09837107360363007, 0.20002306997776031, 0.3727482557296753, 0.14946149289608002, 0.008229054510593414, 0.1556125432252884, 0.3350142240524292, -0.11784455925226212, 0.3268462121486664, 0.150565043091774, 0.12578953802585602, -0.14907708764076233, 0.28987592458724976, -0.014396943151950836, -0.005866594612598419, -0.2608445882797241, 0.008954597637057304, -0.0053730979561805725, -0.04040735960006714, 0.05434766411781311, -0.21517783403396606, -0.15995194017887115, 0.1775573194026947, -0.1509905606508255, -0.38103529810905457, 0.35109588503837585, 0.1963479071855545, 0.07542048394680023, 0.18378567695617676, -0.00011103982251370326, -0.06535069644451141, 0.5193321704864502, 0.010261548683047295, -0.5802029967308044, -0.06521369516849518, -0.541623592376709, -0.3671770393848419, 0.08938346058130264, -0.43501293659210205, 0.00962740182876587, 0.05946550890803337, 0.09746882319450378, -0.27376240491867065, 0.23427310585975647, 0.3743578791618347, 0.1950337290763855, 0.3737810254096985, -0.34325966238975525, 0.12473292648792267, 0.13347196578979492, 0.029479514807462692, 0.07363946735858917, -0.033928196877241135, 0.12497274577617645, -0.21914300322532654, 0.06499247252941132, 0.12550511956214905, 0.04576524347066879, 0.14649531245231628, 0.22849881649017334, -0.21764740347862244, 0.1888357400894165, -0.17614887654781342, -0.12184397131204605, 0.08857658505439758, 0.5817350745201111, -0.2654799222946167, -0.33884409070014954, -0.1783042997121811, 0.07180052995681763, -0.14571522176265717, 0.1686086356639862, 0.07371199131011963, -0.10711938142776489, -0.024016063660383224, -0.45326486229896545, -0.1682548224925995, -0.17051354050636292, 0.22682875394821167, 0.0142073854804039, 0.29789629578590393, -0.034846872091293335, 0.06930980086326599, -0.08123664557933807, -0.0411951020359993, 0.12124304473400116, -0.47456854581832886, -0.0968213677406311, 0.3230404257774353, -0.18102402985095978, -0.2944023311138153, 0.22835621237754822, 0.22741255164146423, 0.17270570993423462, 0.5628472566604614, 0.03616388514637947, 0.07358415424823761, -0.045918870717287064, 0.24305075407028198, 0.16431494057178497, 0.20472584664821625, 0.4538480043411255, 0.09726041555404663, 0.16004380583763123, 0.2783201038837433, -0.05691893398761749, 0.11498210579156876, -0.11812867969274521, -0.241641566157341, -0.12137739360332489, 0.09580642729997635, 0.17654049396514893, -0.4014507532119751, -0.23940835893154144, 0.1957438886165619, 0.08944401890039444, -0.3857426047325134, 0.2854234278202057, 0.4532943069934845, -0.06120864301919937, 0.06571440398693085, 0.12994450330734253, -0.022766992449760437, -0.13537423312664032, -0.12727665901184082, -0.16742974519729614, 0.1267300844192505, -0.07365570962429047, 0.04082676023244858, 0.2823810577392578, 0.11237408220767975, 0.31312593817710876, -0.12050917744636536, -0.14630930125713348, -0.08848485350608826, 0.33810606598854065, -0.04523216933012009, -0.037462882697582245, 0.23193426430225372, -0.11875306069850922, 0.07884136587381363, -0.08448921144008636, -0.144835963845253, -0.4014871120452881, 0.08628575503826141, 0.017525866627693176, -0.36671653389930725, 0.19731321930885315, 0.21567189693450928, -0.35153013467788696, -0.0798557698726654, -0.22135955095291138, 0.06568256765604019, -0.07624166458845139, -0.18300937116146088, -0.05824331194162369, -0.11172595620155334, 0.03379415348172188, -0.005664794705808163, 0.2800774574279785, 0.588100790977478, -0.357075959444046, -0.16309854388237, -0.19105668365955353, -0.1577170342206955, 0.047361258417367935, 0.16344591975212097, -0.32395344972610474, 0.3407563865184784, -0.14410193264484406, -0.08353868871927261, 0.5999707579612732, -0.16004635393619537, -0.11113732308149338, 0.4941187798976898, 0.0815923810005188, -0.05980917066335678, 0.043485235422849655, -0.17080897092819214, -0.27697625756263733, -0.11625032871961594, -0.02650626003742218, 0.2907370924949646, 0.0032514389604330063, 0.042180076241493225, -0.29784294962882996, -0.2763666808605194, 0.028028972446918488, 0.19423143565654755, 0.012924294918775558, -0.2839156687259674, -0.06617730110883713, 0.13354066014289856, 0.19047345221042633, -0.05568496510386467, -0.1566690355539322, 0.12426228076219559, 0.06349265575408936, -0.3493877649307251, -0.16071045398712158, -0.056270748376846313, -0.667438805103302, 0.40981271862983704, -0.016030631959438324, 0.11097103357315063, -0.005120866000652313, -0.04238526150584221, -0.24179154634475708, 0.08983602374792099, -0.1266637146472931, 0.09143058955669403, 0.15100771188735962, 0.4840025305747986, 0.21552570164203644, -0.2619386315345764, -0.3900997042655945, -0.0028679966926574707, -0.48185276985168457, -0.034940216690301895, -0.339748352766037, 0.22352495789527893, -0.10162133723497391, 0.2197389155626297, 0.3083471357822418, -0.0043839216232299805, 0.02453070878982544, -0.34178707003593445, -0.08111120015382767, 0.34033527970314026, -0.04792517423629761, 0.34206628799438477, 0.23177051544189453, 0.260608047246933, -0.027204526588320732, 0.0007852576673030853, 0.07470415532588959, 0.0005590952932834625, 0.026329539716243744, -0.05957869812846184, -0.4970735013484955, 0.4562627077102661, -0.05692722275853157, 0.26967766880989075, 0.18621668219566345, -0.2760393023490906, 0.26711055636405945, -0.3084030747413635, -0.31097304821014404, -0.13502204418182373, 0.3245442807674408, 0.16804465651512146, 0.1685962826013565, 0.18872705101966858, -0.10474871098995209, 0.0876985639333725, 0.4573044776916504, -0.21058936417102814, -0.23738861083984375, -0.022989600896835327, 0.11706515401601791, -0.12699300050735474, 0.29293206334114075, 0.5336328744888306, 0.45403850078582764, 0.19892121851444244, 0.14829282462596893, -0.06755534559488297, -0.3490287959575653, -0.10340151935815811, 0.22730740904808044, 0.016054201871156693, 0.25569167733192444, 0.17060130834579468, -0.03396108001470566, -0.12826329469680786, -0.2314012050628662, -0.4647195041179657, 0.23214785754680634, 0.37050777673721313, -0.3228074610233307, 0.12546281516551971, -0.11410360783338547, -0.4124038815498352, -0.1831403225660324, 0.20371408760547638, -0.005922522395849228, -0.21327973902225494, 0.055084604769945145, -0.1944601684808731, -0.2484288215637207, 0.125640407204628, -0.22137580811977386, 0.4934026598930359, -0.2541879117488861, -0.4151649475097656, -0.44871142506599426, -0.15754497051239014, -0.32652199268341064, 0.1221466064453125, 0.6909463405609131, 0.3370515704154968, 0.3853144645690918, -0.31963440775871277, -0.19146600365638733, -0.021991269662976265, -0.18711495399475098, 0.1473810076713562, 0.053185686469078064, 0.4016365706920624, 0.06265732645988464, 0.09954017400741577, 0.016398169100284576, -0.22476759552955627, 0.15410277247428894, -0.028597351163625717, -0.06974233686923981, -0.1525852084159851, 0.10878713428974152, -0.28342801332473755, -0.03747182339429855, -0.5846633911132812, -0.0920822024345398, -0.2973352372646332, 0.1594245433807373, 0.4373786151409149, 0.3087314963340759, -0.014282948337495327, -0.0009552491828799248, 0.21451139450073242, -0.005750768352299929, 0.2378220558166504, 0.06845483183860779, -0.4238091707229614, 0.06075209006667137, -0.013677861541509628, -0.2549659013748169, -0.16402314603328705, -0.1933986097574234, 0.4599352777004242, -0.20238588750362396, -0.5270169973373413, 0.10276681929826736, -0.16148892045021057, 0.06966346502304077, 0.004873059689998627, -0.013264873996376991, 0.12366810441017151, 0.011617007665336132, -0.0615336075425148, 0.022503487765789032, -0.21528658270835876, 0.025145813822746277, -0.019536592066287994, 0.2241450548171997, 0.08754362910985947, 0.18135583400726318, -0.11674496531486511, 0.36116278171539307, 0.354120135307312, -0.37095874547958374, -0.08877791464328766, -0.026801155880093575, 0.22164949774742126, 0.057404059916734695, -0.18973559141159058, 0.1646990031003952, 0.2633918821811676, -0.30573105812072754, 0.22678717970848083, -0.16216692328453064, -0.20045393705368042, -0.2354750782251358, 0.053246382623910904, -0.2219730019569397, -0.2045411467552185, 0.21722017228603363, -0.44243547320365906, 0.08461244404315948, 0.05475692078471184, 0.004544109106063843, -0.06564216315746307, 0.028549719601869583, -0.04320192337036133, 0.31024688482284546, 0.11538086831569672, -0.10176967084407806, -0.6353608965873718, -0.1349480301141739, -0.25371864438056946, 0.3529248833656311, -0.09010937064886093, 0.2708548903465271, -0.0313912034034729, 0.03643765300512314, 0.020525187253952026, -0.3391251266002655, 0.09173062443733215, -0.4501911997795105, 0.22127965092658997, 0.3997427225112915, 0.2587296962738037, -0.2881888151168823, -0.03931222856044769, -0.4686225950717926, 0.08117193728685379, 0.33131569623947144, 0.48067721724510193, -0.282342791557312, -0.2868405878543854, 0.10798957943916321, 0.12207407504320145, -0.08772137761116028, -0.24519114196300507, 0.01026911661028862, -0.09163886308670044, -0.28989526629447937, 0.20016419887542725, -0.2619827687740326, 0.07228153198957443, -0.28908097743988037, 0.023157630115747452, -0.08173226565122604, 0.2893463373184204, 0.2782212495803833, 0.3609687387943268, 0.008042906410992146, 0.12275797128677368, 0.18098370730876923, -0.2866637408733368, -0.09044620394706726, 0.17626887559890747, 0.5772280693054199, -0.1074674129486084, 0.27589038014411926, 0.025676630437374115, 0.2512337267398834, 0.5124879479408264, 0.27478456497192383, -0.004746239632368088, -0.4198378324508667, 0.012448127381503582, 0.11666595935821533, -0.19327637553215027, 0.1097065731883049, 0.1516389697790146, 0.09040634334087372, -0.11376648396253586, -0.4121655523777008, 0.5700395107269287, 0.05315421149134636, -0.2067578136920929, 0.23197391629219055, -0.08659081161022186, -0.12392765283584595, 0.4805241823196411, 0.17975905537605286, 0.8335457444190979, -0.16183502972126007, -0.07139979302883148, 0.16633376479148865, 0.026421628892421722, 0.6351957321166992, -0.42236649990081787, -0.08997698128223419, -0.258196085691452, 0.12939272820949554, 0.13705040514469147, -0.22985799610614777, 0.18068885803222656, 0.3992159366607666, -0.23934781551361084, 0.3332323431968689, 0.22514279186725616, -0.15125885605812073, 0.06110191345214844, 0.7298098802566528, -0.14511427283287048, -0.13390891253948212, -0.46287915110588074, 0.19643519818782806, 0.012042418122291565, 0.26505762338638306, -0.20639529824256897, 0.11169999837875366, 0.06270898878574371, -0.13451743125915527, -0.2439480572938919, 0.24447157979011536, -0.12112647294998169, -0.03274669498205185, -0.11033506691455841, -0.09789804369211197, 0.025792088359594345, 0.09778574109077454, -0.006919488310813904, 0.2820432782173157, -0.21922676265239716, 0.1709434986114502, -0.1409624218940735, 0.11713506281375885, 0.1697760373353958, 0.014097650535404682, 0.3721088767051697, -0.20339980721473694, -0.2508033812046051, -0.0861101970076561, -0.22018025815486908, -0.03587875887751579, 0.2390756905078888, -0.10637444257736206, 0.04304073378443718, -0.22748920321464539, -0.24672216176986694, 0.22107569873332977, -0.2996819317340851, 0.005319759249687195, 0.21277453005313873, 0.09851308912038803, -0.22239798307418823, 0.3711678683757782, 0.08479507267475128, -0.2206783890724182, -0.005196921527385712, 0.2114683985710144, -0.12125877290964127, -0.14063967764377594, 0.26433613896369934, 0.06666974723339081, 0.09612920880317688, -0.4686650037765503, 0.14099419116973877, 0.28952932357788086, -0.04577208310365677, -0.0989421159029007, 0.049542151391506195, 0.11193676292896271, 0.20729075372219086, 0.11256255209445953, 0.2568753957748413, 0.1771526038646698, 0.010716710239648819, -0.34946349263191223, -0.10679073631763458, 0.2601446509361267, 0.2781965434551239, 0.46850866079330444, 0.10228583961725235, -0.1323762983083725, -0.0042904336005449295, 0.2800680696964264, -0.39725160598754883, -0.017314370721578598, -0.40921473503112793, 0.1706717163324356, 0.1275540590286255, 0.24292674660682678, 0.09061126410961151, -0.1191813051700592, 0.1972847431898117, -0.31859326362609863, -0.3191911280155182, -0.2974194884300232, 0.07653379440307617, 0.14884909987449646, 0.16552388668060303, 0.048194751143455505, -0.06749340146780014, -0.12587213516235352, 0.04850171506404877, -0.16234789788722992, -0.15243017673492432, -0.305961936712265, -0.14743612706661224, 0.27635249495506287, 0.10603572428226471, -0.15867316722869873, -0.2575787901878357, 0.03390024974942207, -0.0781598687171936, 0.1613936722278595, -0.21574266254901886, 0.3896108865737915, 0.007348649203777313, -0.18236574530601501, 0.024730071425437927, 0.11388459801673889, -0.14820709824562073, 0.5490621328353882, 0.15906015038490295, -0.06681573390960693, 0.041376713663339615, -0.2388276606798172, 0.25934404134750366, 0.5200667977333069, -0.20703019201755524, 0.09534479677677155, 0.042140815407037735, 0.23726581037044525, -0.23228749632835388, -0.09076903015375137, -0.01062191091477871, 0.0390230193734169, 0.14735686779022217, 0.12625019252300262, 0.032096218317747116, -0.3130786716938019, 0.46038007736206055, -0.026027780026197433, 0.2573888599872589, -0.34733325242996216, 0.11965197324752808, 0.35041937232017517, -0.08897548913955688, -0.2196924239397049, 0.060023486614227295, 0.03922894224524498, 0.22046449780464172, 0.02613862231373787, -0.02980756014585495, 0.2411070019006729, 0.1231580451130867, 0.3763892948627472, -0.082676462829113, -0.16094577312469482, 0.17054465413093567, 0.23201313614845276, 0.04582615941762924, 0.13662615418434143, 0.11534474790096283, 0.3218761384487152, -0.09577873349189758, 0.00689758500084281, -0.11033742129802704, 0.09483521431684494, 0.05063772201538086, -0.16222214698791504, -0.8485069870948792, -0.12073098123073578, -0.1969057321548462, -0.1328347772359848, -0.10881659388542175, -0.08827365934848785, -0.041795313358306885, 0.24001534283161163, -0.03090599924325943, -0.13629360496997833, 0.23291581869125366, 0.1218891441822052, 0.05375761166214943, -0.3109944760799408, 0.3709142506122589, 0.13813987374305725, 0.01065974310040474, -0.08540824055671692, 0.23737072944641113, 0.5000073313713074, 0.20278474688529968, 0.07243680953979492, 0.138958141207695, 0.1204066127538681, -0.11006774753332138, -0.2974698841571808, 0.20379112660884857, -0.07799103856086731, -0.289266437292099, 0.48987624049186707, 0.26453161239624023, -0.09522837400436401, 0.06724604219198227, -0.053007666021585464, -0.356691837310791, -0.11784535646438599, 0.5103740096092224, 0.3572632074356079, -0.007835786789655685, -0.13264037668704987, 0.2380002737045288, -0.5059344172477722, -0.208774134516716, 0.36541080474853516, 0.037559203803539276, 0.26021715998649597, -0.015257547609508038, 0.10640278458595276, -0.15130096673965454, 0.5689620971679688, 0.04808277636766434, 0.24480316042900085, -0.28117790818214417, -0.31462806463241577, -0.6582386493682861, -0.21142062544822693, 0.06308706104755402, -0.22551342844963074, 0.14746294915676117, 0.25301334261894226, 0.1295478790998459, 0.12984371185302734, -0.04734979569911957, -0.048862557858228683, -0.18087460100650787, 0.03147201985120773, -0.453828364610672, -0.03363967314362526, -0.15448668599128723, 0.12656521797180176, 0.007196228951215744, -0.26859790086746216, -0.020784441381692886, -0.1694648414850235, -0.03474641218781471, 0.04856996238231659, -0.030412636697292328, 0.4040203392505646, 0.06053764745593071, 0.3142630159854889, 0.10375908762216568, 0.560259222984314, -0.05678950250148773, 0.04490446299314499, -0.2652948796749115, -0.011209828779101372, -0.12566164135932922, 0.36342301964759827, -0.1360207349061966, 0.25758275389671326, -0.12442869693040848, 0.26088932156562805, -0.20364095270633698, -0.24675951898097992, -0.190615713596344, -0.1471368670463562, 0.14234541356563568, -0.28952789306640625, -0.09763433784246445, 0.25036782026290894, 0.03174279257655144, 0.18330812454223633, 0.03506661206483841, 0.1319350302219391, -0.37527555227279663, -0.08440764248371124, 0.5393763780593872, 0.11935053020715714, -0.09367173910140991, 0.05063360929489136, 0.3508732318878174, -0.05516479164361954, 0.17755985260009766, -0.34272485971450806, 0.037250883877277374, 0.4026557207107544, -0.12561115622520447, -0.032179951667785645, 0.2300831526517868, 0.2594926357269287, 0.229502871632576, -0.25354820489883423, -0.08713798224925995, -0.025820016860961914, -0.17508096992969513, -0.4135422110557556, -0.31288474798202515 ]
https://github.com/huggingface/datasets/pull/123
[Tests] Local => aws
> For each dataset, If there exist a `dataset_info.json`, then the command `nlp-cli test path/to/my/dataset --al_configs` is successful only if the `dataset_infos.json` is correct. The infos are correct if the size and checksums of the downloaded file are correct, and if the number of examples in each split are correct. > > Note: the `test` command is supposed to test the script, that's why it runs the script even if the cached files already exist. Let me know if it's good to you. Does it have to download the whole data to check if the checksums are correct? I guess so no?
## Change default Test from local => aws As a default we set` aws=True`, `Local=False`, `slow=False` ### 1. RUN_AWS=1 (default) This runs 4 tests per dataset script. a) Does the dataset script have a valid etag / Can it be reached on AWS? b) Can we load its `builder_class`? c) Can we load **all** dataset configs? d) _Most importantly_: Can we load the dataset? Important - we currently only test the first config of each dataset to reduce test time. Total test time is around 1min20s. ### 2. RUN_LOCAL=1 RUN_AWS=0 ***This should be done when debugging dataset scripts of the ./datasets folder*** This only runs 1 test per dataset test, which is equivalent to aws d) - Can we load the dataset from the local `datasets` directory? ### 3. RUN_SLOW=1 We should set up to run these tests maybe 1 time per week ? @thomwolf The `slow` tests include two more important tests. e) Can we load the dataset with all possible configs? This test will probably fail at the moment because a lot of dummy data is missing. We should add the dummy data step by step to be sure that all configs work. f) Test that the actual dataset can be loaded. This will take quite some time to run, but is important to make sure that the "real" data can be loaded. It will also test whether the dataset script has the correct checksums file which is currently not tested with `aws=True`. @lhoestq - is there an easy way to check cheaply whether the `dataset_info.json` is correct for each dataset script?
102
text: [Tests] Local => aws ## Change default Test from local => aws As a default we set` aws=True`, `Local=False`, `slow=False` ### 1. RUN_AWS=1 (default) This runs 4 tests per dataset script. a) Does the dataset script have a valid etag / Can it be reached on AWS? b) Can we load its `builder_class`? c) Can we load **all** dataset configs? d) _Most importantly_: Can we load the dataset? Important - we currently only test the first config of each dataset to reduce test time. Total test time is around 1min20s. ### 2. RUN_LOCAL=1 RUN_AWS=0 ***This should be done when debugging dataset scripts of the ./datasets folder*** This only runs 1 test per dataset test, which is equivalent to aws d) - Can we load the dataset from the local `datasets` directory? ### 3. RUN_SLOW=1 We should set up to run these tests maybe 1 time per week ? @thomwolf The `slow` tests include two more important tests. e) Can we load the dataset with all possible configs? This test will probably fail at the moment because a lot of dummy data is missing. We should add the dummy data step by step to be sure that all configs work. f) Test that the actual dataset can be loaded. This will take quite some time to run, but is important to make sure that the "real" data can be loaded. It will also test whether the dataset script has the correct checksums file which is currently not tested with `aws=True`. @lhoestq - is there an easy way to check cheaply whether the `dataset_info.json` is correct for each dataset script? > For each dataset, If there exist a `dataset_info.json`, then the command `nlp-cli test path/to/my/dataset --al_configs` is successful only if the `dataset_infos.json` is correct. The infos are correct if the size and checksums of the downloaded file are correct, and if the number of examples in each split are correct. > > Note: the `test` command is supposed to test the script, that's why it runs the script even if the cached files already exist. Let me know if it's good to you. Does it have to download the whole data to check if the checksums are correct? I guess so no?
[ -0.5779008269309998, 0.24838367104530334, -0.19286994636058807, 0.22284965217113495, -0.17212222516536713, -0.0878361165523529, 0.20043854415416718, 0.3692089021205902, 0.14933201670646667, 0.017948515713214874, 0.15627194941043854, 0.3359029293060303, -0.11872377246618271, 0.3295746445655823, 0.13549473881721497, 0.12003764510154724, -0.14974427223205566, 0.28730639815330505, -0.007172718644142151, -0.0034522563219070435, -0.2586624026298523, 0.003299979493021965, -0.007363706827163696, -0.038713835179805756, 0.06919358670711517, -0.2216508686542511, -0.149953693151474, 0.17443498969078064, -0.15718118846416473, -0.371826171875, 0.341518372297287, 0.19165641069412231, 0.06325912475585938, 0.1877424120903015, -0.0001104856637539342, -0.05755826085805893, 0.5208691358566284, 0.017601018771529198, -0.5710051655769348, -0.06076650321483612, -0.541190505027771, -0.34832900762557983, 0.07648710161447525, -0.4387258291244507, 0.0008881278336048126, 0.061121970415115356, 0.0977286770939827, -0.2931057810783386, 0.2325291484594345, 0.3682175576686859, 0.2024228423833847, 0.3761114776134491, -0.3485950529575348, 0.1093892902135849, 0.14247249066829681, 0.026301179081201553, 0.06315051019191742, -0.03635118156671524, 0.11605145037174225, -0.21434924006462097, 0.054455190896987915, 0.1326407492160797, 0.04050571471452713, 0.14560136198997498, 0.22736528515815735, -0.2095251977443695, 0.18735215067863464, -0.167417973279953, -0.11923939734697342, 0.07819212973117828, 0.5851984620094299, -0.2708108425140381, -0.33653464913368225, -0.16524186730384827, 0.0645834282040596, -0.14013521373271942, 0.15828832983970642, 0.06218387931585312, -0.1101783812046051, -0.013080649077892303, -0.44720685482025146, -0.16712623834609985, -0.17160943150520325, 0.22892920672893524, 0.010501675307750702, 0.29818734526634216, -0.04169823229312897, 0.06892864406108856, -0.08093167841434479, -0.03247798979282379, 0.11759944260120392, -0.4661068916320801, -0.0872766375541687, 0.3064132630825043, -0.18013958632946014, -0.28268659114837646, 0.23706850409507751, 0.22581225633621216, 0.17375248670578003, 0.562311589717865, 0.03151590749621391, 0.07081693410873413, -0.03592206537723541, 0.24069026112556458, 0.15244132280349731, 0.21048800647258759, 0.4512827396392822, 0.09614819288253784, 0.16187095642089844, 0.29044783115386963, -0.05539372190833092, 0.1078936830163002, -0.11337710916996002, -0.25535574555397034, -0.11566513776779175, 0.10188643634319305, 0.188649982213974, -0.39167681336402893, -0.25218430161476135, 0.19508947432041168, 0.08840856701135635, -0.3787093460559845, 0.2754586338996887, 0.45868203043937683, -0.06232323497533798, 0.06619542837142944, 0.1365118771791458, -0.026289217174053192, -0.13741232454776764, -0.12432557344436646, -0.17572560906410217, 0.1342495083808899, -0.07748918235301971, 0.03357492387294769, 0.26634520292282104, 0.10682623088359833, 0.3094311058521271, -0.11584930121898651, -0.1334615796804428, -0.07849821448326111, 0.3328973352909088, -0.04310821369290352, -0.039910994470119476, 0.23125801980495453, -0.1207880973815918, 0.08271978050470352, -0.07822611927986145, -0.143153578042984, -0.39565226435661316, 0.09880347549915314, 0.019690558314323425, -0.37340378761291504, 0.1935013234615326, 0.2266419231891632, -0.3457149863243103, -0.07846562564373016, -0.21845313906669617, 0.05859696865081787, -0.0741371437907219, -0.18577316403388977, -0.05119007080793381, -0.10720939934253693, 0.024973925203084946, -0.008227892220020294, 0.284358948469162, 0.5807228088378906, -0.3671306073665619, -0.15785807371139526, -0.20711299777030945, -0.16177178919315338, 0.055101048201322556, 0.17445269227027893, -0.3254163861274719, 0.3444359600543976, -0.14510276913642883, -0.08007463067770004, 0.5928955078125, -0.16587947309017181, -0.11830902099609375, 0.4911821782588959, 0.06898334622383118, -0.05767060071229935, 0.053101714700460434, -0.182404026389122, -0.27953872084617615, -0.10963599383831024, -0.024104289710521698, 0.28097665309906006, -0.00220557302236557, 0.0463840514421463, -0.2994907796382904, -0.2739412784576416, 0.029580529779195786, 0.1995522379875183, 0.025718972086906433, -0.28415364027023315, -0.06283978372812271, 0.13548904657363892, 0.18996381759643555, -0.05999033525586128, -0.14614811539649963, 0.12892118096351624, 0.06720805168151855, -0.34960222244262695, -0.1615270972251892, -0.07372133433818817, -0.6599375009536743, 0.4075038731098175, -0.010722571983933449, 0.1141720563173294, -0.007779426872730255, -0.04923054575920105, -0.2594102621078491, 0.09398537874221802, -0.12955254316329956, 0.08737407624721527, 0.15844224393367767, 0.4759499430656433, 0.2016465961933136, -0.2619093656539917, -0.3783450126647949, -0.003510899841785431, -0.4846968650817871, -0.049765780568122864, -0.3419220745563507, 0.21893064677715302, -0.11654364317655563, 0.2217484563589096, 0.2953638434410095, -0.012074276804924011, 0.023767076432704926, -0.33436155319213867, -0.07128648459911346, 0.3446587026119232, -0.05095701292157173, 0.34340211749076843, 0.22874313592910767, 0.2579100430011749, -0.03723747283220291, -0.006892170757055283, 0.07394898682832718, 0.0013850294053554535, 0.033102888613939285, -0.06156018376350403, -0.49462512135505676, 0.4482925534248352, -0.06050227954983711, 0.2685950994491577, 0.18053162097930908, -0.2794789671897888, 0.2557953894138336, -0.30911681056022644, -0.3096481263637543, -0.13885748386383057, 0.32587578892707825, 0.17183510959148407, 0.1694106161594391, 0.18260835111141205, -0.10543309152126312, 0.08970817178487778, 0.4628176987171173, -0.20981106162071228, -0.2368623912334442, -0.022248469293117523, 0.11313112825155258, -0.12871737778186798, 0.28904154896736145, 0.5338825583457947, 0.4562930464744568, 0.2069173902273178, 0.1560157686471939, -0.06590031087398529, -0.339563250541687, -0.1043325811624527, 0.23443014919757843, 0.024188898503780365, 0.2538021206855774, 0.18022744357585907, -0.03740773722529411, -0.12530504167079926, -0.22690626978874207, -0.47208067774772644, 0.23203645646572113, 0.36679455637931824, -0.3256865441799164, 0.12617750465869904, -0.11496049165725708, -0.4049578011035919, -0.17531555891036987, 0.21040122210979462, 0.0016192402690649033, -0.22058524191379547, 0.05485512688755989, -0.19930703938007355, -0.26065391302108765, 0.12855829298496246, -0.21067482233047485, 0.49563145637512207, -0.23948164284229279, -0.4184856712818146, -0.4526257812976837, -0.16291454434394836, -0.3160231411457062, 0.13311348855495453, 0.6832172274589539, 0.33160197734832764, 0.3925440013408661, -0.3163619935512543, -0.1859687864780426, -0.03139069676399231, -0.18650290369987488, 0.144150972366333, 0.038277316838502884, 0.40763697028160095, 0.07701888680458069, 0.1014304906129837, 0.014498118311166763, -0.23181650042533875, 0.16626735031604767, -0.03202977776527405, -0.07593240588903427, -0.16592608392238617, 0.11219704151153564, -0.2709912359714508, -0.04164596274495125, -0.5880696773529053, -0.0842287465929985, -0.3092630207538605, 0.16710036993026733, 0.42564716935157776, 0.29830509424209595, -0.015256817452609539, 0.008723433129489422, 0.21922490000724792, 0.003923176322132349, 0.24387210607528687, 0.06027998402714729, -0.4314276874065399, 0.05951155349612236, -0.017414189875125885, -0.2521708607673645, -0.16287437081336975, -0.18777872622013092, 0.459832102060318, -0.21028941869735718, -0.5236843824386597, 0.09374364465475082, -0.164801687002182, 0.07280464470386505, -0.0024584345519542694, -0.015085956081748009, 0.12578777968883514, 0.022921692579984665, -0.07616126537322998, 0.01427217572927475, -0.22342750430107117, 0.020216338336467743, -0.02833480015397072, 0.21260786056518555, 0.08052781224250793, 0.19345727562904358, -0.11472539603710175, 0.3674241900444031, 0.3400217294692993, -0.3545849919319153, -0.09428690373897552, -0.02349514700472355, 0.2296171337366104, 0.04435776546597481, -0.1989913284778595, 0.16551192104816437, 0.2635655999183655, -0.31675130128860474, 0.21675829589366913, -0.164398193359375, -0.19148358702659607, -0.22579748928546906, 0.04873552545905113, -0.21560615301132202, -0.20702482759952545, 0.22227561473846436, -0.43782785534858704, 0.07717303931713104, 0.05166678503155708, -0.0036457329988479614, -0.06214829161763191, 0.04675216227769852, -0.04122817888855934, 0.3178231716156006, 0.11118079721927643, -0.10747407376766205, -0.6247564554214478, -0.12217497825622559, -0.25562405586242676, 0.34934020042419434, -0.0878443792462349, 0.2545280158519745, -0.03613004833459854, 0.02918340265750885, 0.020728088915348053, -0.34131813049316406, 0.10213122516870499, -0.4538290798664093, 0.22047974169254303, 0.39874470233917236, 0.25162142515182495, -0.2814042866230011, -0.029402155429124832, -0.4674490690231323, 0.07679656893014908, 0.33128178119659424, 0.4637066721916199, -0.2855190932750702, -0.29180121421813965, 0.11079538613557816, 0.12321169674396515, -0.08316631615161896, -0.24641954898834229, 0.009438186883926392, -0.09918801486492157, -0.29403144121170044, 0.20520570874214172, -0.2451159954071045, 0.07979600131511688, -0.2813630700111389, 0.02298891171813011, -0.08074140548706055, 0.2834732234477997, 0.27844083309173584, 0.3408403694629669, 0.006497015245258808, 0.10611554980278015, 0.17183946073055267, -0.2905845046043396, -0.0981951355934143, 0.17217367887496948, 0.5790136456489563, -0.10061988234519958, 0.27756646275520325, 0.02669605240225792, 0.25415512919425964, 0.5067944526672363, 0.26773443818092346, -0.013475965708494186, -0.41459596157073975, 0.02325931377708912, 0.12344719469547272, -0.19563451409339905, 0.114785335958004, 0.14791278541088104, 0.09197314828634262, -0.10393380373716354, -0.40589815378189087, 0.5553946495056152, 0.049914468079805374, -0.20567801594734192, 0.23463241755962372, -0.07355155050754547, -0.12500569224357605, 0.48035258054733276, 0.18445390462875366, 0.8331332206726074, -0.1606970727443695, -0.06600897014141083, 0.1697133481502533, 0.025141127407550812, 0.6227191090583801, -0.41926443576812744, -0.08927855640649796, -0.24936270713806152, 0.11703290045261383, 0.13880281150341034, -0.2263973504304886, 0.18659047782421112, 0.3889514207839966, -0.24704991281032562, 0.32338255643844604, 0.22042299807071686, -0.1359129548072815, 0.06464619189500809, 0.7199525833129883, -0.13725890219211578, -0.12877339124679565, -0.4640870690345764, 0.2017040252685547, 0.019407138228416443, 0.2551393508911133, -0.20823028683662415, 0.11185047030448914, 0.06251300871372223, -0.13092085719108582, -0.24204868078231812, 0.24061653017997742, -0.12122432142496109, -0.022465277463197708, -0.11782373487949371, -0.0966605618596077, 0.03482094034552574, 0.09616833925247192, -0.014919526875019073, 0.28328046202659607, -0.21577535569667816, 0.1728658825159073, -0.13551032543182373, 0.11377587169408798, 0.17083556950092316, 0.00394927803426981, 0.3747689723968506, -0.20377770066261292, -0.2534629702568054, -0.07734180241823196, -0.22747614979743958, -0.0498194545507431, 0.24752843379974365, -0.09569615125656128, 0.04882078617811203, -0.24513167142868042, -0.2523695230484009, 0.2130507081747055, -0.3013647794723511, -0.002920243889093399, 0.21838372945785522, 0.10006751865148544, -0.21968229115009308, 0.36240023374557495, 0.08368503302335739, -0.22583669424057007, -0.0015209000557661057, 0.2154102921485901, -0.1216668114066124, -0.12859459221363068, 0.265543669462204, 0.06345374882221222, 0.08554045110940933, -0.47571805119514465, 0.13340121507644653, 0.29764658212661743, -0.047179706394672394, -0.08792216330766678, 0.05004880949854851, 0.10673408210277557, 0.20908582210540771, 0.1069309338927269, 0.25521260499954224, 0.1774825155735016, -0.000636659562587738, -0.34991922974586487, -0.10335932672023773, 0.2569293975830078, 0.2730732560157776, 0.4714016318321228, 0.10811873525381088, -0.11857742071151733, -0.00027041323482990265, 0.26960286498069763, -0.4072380065917969, -0.014935430139303207, -0.40890824794769287, 0.17250345647335052, 0.1256994903087616, 0.2276419699192047, 0.10946480184793472, -0.10865193605422974, 0.20602533221244812, -0.3180840015411377, -0.32313263416290283, -0.308104008436203, 0.08230647444725037, 0.1446027308702469, 0.15518426895141602, 0.055125460028648376, -0.05480222776532173, -0.11581756174564362, 0.04094047099351883, -0.15719452500343323, -0.13760210573673248, -0.2889484465122223, -0.14661087095737457, 0.2693358361721039, 0.10815432667732239, -0.15415465831756592, -0.2594332695007324, 0.020213164389133453, -0.07078602910041809, 0.15937155485153198, -0.21586531400680542, 0.3841733932495117, 0.0014620006550103426, -0.18774202466011047, 0.03439093008637428, 0.11632345616817474, -0.13402830064296722, 0.5536318421363831, 0.16823920607566833, -0.05987768620252609, 0.028104353696107864, -0.23191437125205994, 0.2675938308238983, 0.5089560747146606, -0.20921862125396729, 0.0929340049624443, 0.027344029396772385, 0.2470487505197525, -0.23252220451831818, -0.08430197834968567, -0.019119437783956528, 0.030714642256498337, 0.15780402719974518, 0.12317200750112534, 0.02905694767832756, -0.30630260705947876, 0.4731760025024414, -0.02128608338534832, 0.26087117195129395, -0.3444021940231323, 0.11843414604663849, 0.3469824194908142, -0.08592134714126587, -0.22127749025821686, 0.06643051654100418, 0.03697653114795685, 0.22886940836906433, 0.030505817383527756, -0.022841818630695343, 0.24974535405635834, 0.12209436297416687, 0.38639989495277405, -0.08297126740217209, -0.16558022797107697, 0.17538437247276306, 0.22658824920654297, 0.041296761482954025, 0.12972581386566162, 0.11592072993516922, 0.30774256587028503, -0.08955010771751404, 0.017976056784391403, -0.09407605230808258, 0.09718996286392212, 0.04613831639289856, -0.16741526126861572, -0.8374053239822388, -0.12094089388847351, -0.1950363963842392, -0.13926416635513306, -0.10113281011581421, -0.07809111475944519, -0.03292657434940338, 0.226792573928833, -0.02776336669921875, -0.12594330310821533, 0.23154768347740173, 0.11530958861112595, 0.05238024517893791, -0.3120715022087097, 0.36006855964660645, 0.14579643309116364, 0.015786193311214447, -0.08731286227703094, 0.23838135600090027, 0.5074901580810547, 0.20220409333705902, 0.06955844163894653, 0.13300639390945435, 0.11543387174606323, -0.11769253015518188, -0.2985708713531494, 0.20014530420303345, -0.07945263385772705, -0.28573232889175415, 0.49886175990104675, 0.27601391077041626, -0.10784097015857697, 0.06398836523294449, -0.04420103505253792, -0.35555586218833923, -0.12567248940467834, 0.5039231777191162, 0.3614586293697357, -0.009877469390630722, -0.13443982601165771, 0.24791797995567322, -0.5104925036430359, -0.20973442494869232, 0.36531326174736023, 0.02341224066913128, 0.2604832947254181, -0.019323211163282394, 0.11074298620223999, -0.1481662094593048, 0.5771516561508179, 0.04185907915234566, 0.24873867630958557, -0.2895340323448181, -0.3066244125366211, -0.6529641151428223, -0.2068805694580078, 0.07592128962278366, -0.21701793372631073, 0.14636708796024323, 0.2632821500301361, 0.13169993460178375, 0.12667083740234375, -0.044227346777915955, -0.056467726826667786, -0.18650618195533752, 0.025994032621383667, -0.44985291361808777, -0.031231950968503952, -0.14456944167613983, 0.1123303771018982, 0.013838626444339752, -0.2817770838737488, -0.0203670896589756, -0.1694592982530594, -0.020066188648343086, 0.03764922171831131, -0.03789617121219635, 0.4038485586643219, 0.04879128560423851, 0.32092902064323425, 0.09879348427057266, 0.5417969226837158, -0.0705612450838089, 0.041681915521621704, -0.2718040943145752, -0.010912982746958733, -0.12548528611660004, 0.36168789863586426, -0.12412698566913605, 0.2611274719238281, -0.1274932622909546, 0.2539493143558502, -0.20460715889930725, -0.2384703904390335, -0.18216773867607117, -0.1424090564250946, 0.14018048346042633, -0.27260473370552063, -0.09541618824005127, 0.2541544437408447, 0.014042356051504612, 0.1770789921283722, 0.036663055419921875, 0.13426710665225983, -0.3854054808616638, -0.0966143012046814, 0.5429637432098389, 0.1357119381427765, -0.1029537171125412, 0.05663362145423889, 0.3466338813304901, -0.0474565252661705, 0.17348399758338928, -0.35702642798423767, 0.039151184260845184, 0.40239688754081726, -0.11614502221345901, -0.036379553377628326, 0.23585131764411926, 0.25382256507873535, 0.23011414706707, -0.2532716989517212, -0.08350925147533417, -0.02849024534225464, -0.16115912795066833, -0.41510725021362305, -0.3242088556289673 ]
https://github.com/huggingface/datasets/pull/123
[Tests] Local => aws
> > For each dataset, If there exist a `dataset_info.json`, then the command `nlp-cli test path/to/my/dataset --al_configs` is successful only if the `dataset_infos.json` is correct. The infos are correct if the size and checksums of the downloaded file are correct, and if the number of examples in each split are correct. > > Note: the `test` command is supposed to test the script, that's why it runs the script even if the cached files already exist. Let me know if it's good to you. > > Does it have to download the whole data to check if the checksums are correct? I guess so no? Yes it has to download them all (unless they were already downloaded in which case it just uses the cached downloaded files).
## Change default Test from local => aws As a default we set` aws=True`, `Local=False`, `slow=False` ### 1. RUN_AWS=1 (default) This runs 4 tests per dataset script. a) Does the dataset script have a valid etag / Can it be reached on AWS? b) Can we load its `builder_class`? c) Can we load **all** dataset configs? d) _Most importantly_: Can we load the dataset? Important - we currently only test the first config of each dataset to reduce test time. Total test time is around 1min20s. ### 2. RUN_LOCAL=1 RUN_AWS=0 ***This should be done when debugging dataset scripts of the ./datasets folder*** This only runs 1 test per dataset test, which is equivalent to aws d) - Can we load the dataset from the local `datasets` directory? ### 3. RUN_SLOW=1 We should set up to run these tests maybe 1 time per week ? @thomwolf The `slow` tests include two more important tests. e) Can we load the dataset with all possible configs? This test will probably fail at the moment because a lot of dummy data is missing. We should add the dummy data step by step to be sure that all configs work. f) Test that the actual dataset can be loaded. This will take quite some time to run, but is important to make sure that the "real" data can be loaded. It will also test whether the dataset script has the correct checksums file which is currently not tested with `aws=True`. @lhoestq - is there an easy way to check cheaply whether the `dataset_info.json` is correct for each dataset script?
127
text: [Tests] Local => aws ## Change default Test from local => aws As a default we set` aws=True`, `Local=False`, `slow=False` ### 1. RUN_AWS=1 (default) This runs 4 tests per dataset script. a) Does the dataset script have a valid etag / Can it be reached on AWS? b) Can we load its `builder_class`? c) Can we load **all** dataset configs? d) _Most importantly_: Can we load the dataset? Important - we currently only test the first config of each dataset to reduce test time. Total test time is around 1min20s. ### 2. RUN_LOCAL=1 RUN_AWS=0 ***This should be done when debugging dataset scripts of the ./datasets folder*** This only runs 1 test per dataset test, which is equivalent to aws d) - Can we load the dataset from the local `datasets` directory? ### 3. RUN_SLOW=1 We should set up to run these tests maybe 1 time per week ? @thomwolf The `slow` tests include two more important tests. e) Can we load the dataset with all possible configs? This test will probably fail at the moment because a lot of dummy data is missing. We should add the dummy data step by step to be sure that all configs work. f) Test that the actual dataset can be loaded. This will take quite some time to run, but is important to make sure that the "real" data can be loaded. It will also test whether the dataset script has the correct checksums file which is currently not tested with `aws=True`. @lhoestq - is there an easy way to check cheaply whether the `dataset_info.json` is correct for each dataset script? > > For each dataset, If there exist a `dataset_info.json`, then the command `nlp-cli test path/to/my/dataset --al_configs` is successful only if the `dataset_infos.json` is correct. The infos are correct if the size and checksums of the downloaded file are correct, and if the number of examples in each split are correct. > > Note: the `test` command is supposed to test the script, that's why it runs the script even if the cached files already exist. Let me know if it's good to you. > > Does it have to download the whole data to check if the checksums are correct? I guess so no? Yes it has to download them all (unless they were already downloaded in which case it just uses the cached downloaded files).
[ -0.5782557725906372, 0.24753475189208984, -0.19212248921394348, 0.22802762687206268, -0.17661523818969727, -0.0836888998746872, 0.20101822912693024, 0.3736152946949005, 0.14928951859474182, 0.011321261525154114, 0.15806545317173004, 0.33537086844444275, -0.11872119456529617, 0.331278532743454, 0.13602612912654877, 0.11910099536180496, -0.15253162384033203, 0.28673243522644043, -0.012805558741092682, -0.005277182906866074, -0.25503188371658325, 0.001379694789648056, -0.009065434336662292, -0.03604086488485336, 0.06517767161130905, -0.22300425171852112, -0.15357601642608643, 0.17717671394348145, -0.15583409368991852, -0.3731590211391449, 0.34604689478874207, 0.19313675165176392, 0.06333807110786438, 0.18330593407154083, -0.00011050974717363715, -0.0578179657459259, 0.5239402055740356, 0.016597507521510124, -0.5722944736480713, -0.05814617872238159, -0.5444061756134033, -0.3456338047981262, 0.07416428625583649, -0.4382798373699188, 0.0029158107936382294, 0.05869147181510925, 0.0994826927781105, -0.28722795844078064, 0.22920343279838562, 0.36372438073158264, 0.2015637308359146, 0.373008131980896, -0.3449348211288452, 0.11459514498710632, 0.1434709131717682, 0.025475777685642242, 0.06349868327379227, -0.030962344259023666, 0.11433349549770355, -0.21955974400043488, 0.05427012965083122, 0.13622400164604187, 0.03807905316352844, 0.14638370275497437, 0.22683322429656982, -0.20937980711460114, 0.1862328052520752, -0.16628281772136688, -0.12058445066213608, 0.08046375215053558, 0.5880654454231262, -0.2729005813598633, -0.3373503088951111, -0.17089542746543884, 0.06892406940460205, -0.1411365568637848, 0.15578144788742065, 0.06435900181531906, -0.10799817740917206, -0.01440279558300972, -0.4521843194961548, -0.16791896522045135, -0.1734960973262787, 0.22519396245479584, 0.01055125892162323, 0.30020660161972046, -0.041612569242715836, 0.06896113604307175, -0.08306621015071869, -0.03456771373748779, 0.12111765891313553, -0.46795058250427246, -0.08985579013824463, 0.3057648241519928, -0.1800931841135025, -0.28803005814552307, 0.2346923053264618, 0.22895464301109314, 0.17346930503845215, 0.5591956973075867, 0.036063969135284424, 0.07158966362476349, -0.03564615547657013, 0.24025917053222656, 0.1586018204689026, 0.20996451377868652, 0.45435062050819397, 0.09314002841711044, 0.16436120867729187, 0.29047486186027527, -0.05760353058576584, 0.10945167392492294, -0.11630833148956299, -0.252809077501297, -0.11885634064674377, 0.10513947159051895, 0.1927756667137146, -0.39086228609085083, -0.25978514552116394, 0.19249781966209412, 0.0862061157822609, -0.38024210929870605, 0.2790968716144562, 0.4587310254573822, -0.06215721368789673, 0.06852830946445465, 0.13739542663097382, -0.030309736728668213, -0.13785940408706665, -0.12643089890480042, -0.1739165484905243, 0.13773715496063232, -0.07468963414430618, 0.03712363541126251, 0.26498085260391235, 0.10889934003353119, 0.30817660689353943, -0.11805026233196259, -0.13308385014533997, -0.08156539499759674, 0.33342692255973816, -0.04291895776987076, -0.04097766429185867, 0.2244807779788971, -0.12182563543319702, 0.07926998287439346, -0.07896329462528229, -0.14077362418174744, -0.39497411251068115, 0.10071268677711487, 0.016355503350496292, -0.3712516129016876, 0.1986786276102066, 0.2255445271730423, -0.347408652305603, -0.08574007451534271, -0.2214173674583435, 0.06384877115488052, -0.07226379960775375, -0.18024499714374542, -0.04895862191915512, -0.10983879864215851, 0.02133442834019661, -0.008903643116354942, 0.27919161319732666, 0.5870558619499207, -0.3653881847858429, -0.15561611950397491, -0.20186538994312286, -0.15782347321510315, 0.0523611344397068, 0.1700814664363861, -0.327416330575943, 0.35087722539901733, -0.14350363612174988, -0.08037645369768143, 0.5952388644218445, -0.16594178974628448, -0.1148173063993454, 0.49428069591522217, 0.07301859557628632, -0.058192718774080276, 0.054017361253499985, -0.182625412940979, -0.2801884114742279, -0.11031472682952881, -0.027882367372512817, 0.28293919563293457, -0.005958860740065575, 0.0480598509311676, -0.29686200618743896, -0.2718144953250885, 0.03212583065032959, 0.19925765693187714, 0.021598227322101593, -0.28835973143577576, -0.0664299800992012, 0.1360459178686142, 0.195330411195755, -0.0624970979988575, -0.14745652675628662, 0.12978652119636536, 0.06210077181458473, -0.3474154472351074, -0.16135314106941223, -0.07369905710220337, -0.6644308567047119, 0.4064432680606842, -0.008132297545671463, 0.11330404877662659, -0.006530351936817169, -0.04926704987883568, -0.25992754101753235, 0.09149835258722305, -0.13349103927612305, 0.08927895128726959, 0.15746822953224182, 0.4762457311153412, 0.19636406004428864, -0.2667028307914734, -0.37651151418685913, -0.0022483747452497482, -0.47758758068084717, -0.049004729837179184, -0.3438344895839691, 0.21859820187091827, -0.11416544765233994, 0.22458717226982117, 0.3010970652103424, -0.00923176109790802, 0.027709756046533585, -0.3382396101951599, -0.07185357809066772, 0.34544992446899414, -0.05244635045528412, 0.3463447093963623, 0.23663932085037231, 0.2589879631996155, -0.035397402942180634, -0.008714109659194946, 0.07402538508176804, 0.0013332255184650421, 0.03500134125351906, -0.0605417937040329, -0.4979541599750519, 0.4491617679595947, -0.06042839214205742, 0.2645895481109619, 0.18093927204608917, -0.2807661294937134, 0.2532021403312683, -0.31179189682006836, -0.30989277362823486, -0.13497239351272583, 0.32367128133773804, 0.16861331462860107, 0.1656472533941269, 0.18420842289924622, -0.10737119615077972, 0.095155730843544, 0.4672984182834625, -0.21093177795410156, -0.23536649346351624, -0.025493651628494263, 0.11603577435016632, -0.1276751458644867, 0.28826916217803955, 0.5327094793319702, 0.4567602276802063, 0.20569013059139252, 0.15817011892795563, -0.06644738465547562, -0.33710622787475586, -0.10263636708259583, 0.23743492364883423, 0.024101074784994125, 0.2538020610809326, 0.1780467927455902, -0.03702854365110397, -0.1278868466615677, -0.2295965850353241, -0.4725305736064911, 0.23698881268501282, 0.3665180206298828, -0.32388609647750854, 0.1265370100736618, -0.11391472816467285, -0.4062773287296295, -0.17959116399288177, 0.20702052116394043, 0.0028198659420013428, -0.21715304255485535, 0.057084470987319946, -0.20082609355449677, -0.25946149230003357, 0.12807661294937134, -0.21340332925319672, 0.4971286654472351, -0.2407534122467041, -0.4173230230808258, -0.4490113854408264, -0.1648770570755005, -0.31790655851364136, 0.13234972953796387, 0.6833012700080872, 0.3359171152114868, 0.3924981951713562, -0.3153301477432251, -0.1842360943555832, -0.030111929401755333, -0.18421205878257751, 0.14418864250183105, 0.03441764414310455, 0.40648752450942993, 0.07745688408613205, 0.10298879444599152, 0.015758171677589417, -0.22689050436019897, 0.16529715061187744, -0.03289608284831047, -0.07530825585126877, -0.16838809847831726, 0.11208178848028183, -0.2746533155441284, -0.04211428388953209, -0.588985800743103, -0.08170405775308609, -0.3079668879508972, 0.16483578085899353, 0.42497360706329346, 0.2998390793800354, -0.015139014460146427, 0.004214778542518616, 0.2180350422859192, 0.004683815874159336, 0.244243323802948, 0.062467556446790695, -0.4315741956233978, 0.060199178755283356, -0.014784621074795723, -0.2520568370819092, -0.1634073555469513, -0.18499435484409332, 0.4594188928604126, -0.210208922624588, -0.5236146450042725, 0.09533657133579254, -0.1646825671195984, 0.0678851455450058, -0.0014123879373073578, -0.0167254488915205, 0.12247105687856674, 0.021288607269525528, -0.07447794079780579, 0.01225852221250534, -0.2253136783838272, 0.015716269612312317, -0.03004082292318344, 0.21365152299404144, 0.08683110773563385, 0.19053146243095398, -0.11427825689315796, 0.37076336145401, 0.34303224086761475, -0.3518320322036743, -0.09632410109043121, -0.02566804178059101, 0.2275928407907486, 0.053581468760967255, -0.2022317349910736, 0.16426946222782135, 0.26212260127067566, -0.3150155544281006, 0.2181997299194336, -0.16447848081588745, -0.186198890209198, -0.22628481686115265, 0.046118881553411484, -0.2164652943611145, -0.20516151189804077, 0.22439579665660858, -0.4419642984867096, 0.07796652615070343, 0.05188867822289467, -0.0027356967329978943, -0.06567633152008057, 0.04465930908918381, -0.038591109216213226, 0.31852659583091736, 0.11403032392263412, -0.10643604397773743, -0.6235699653625488, -0.12592004239559174, -0.25428304076194763, 0.3514893651008606, -0.08368649333715439, 0.2558119595050812, -0.03242706507444382, 0.02912972867488861, 0.021530792117118835, -0.3430487811565399, 0.1007378101348877, -0.4467472434043884, 0.21961423754692078, 0.39586853981018066, 0.2507261335849762, -0.27723243832588196, -0.0320393331348896, -0.46551719307899475, 0.07725157588720322, 0.33061107993125916, 0.4582313001155853, -0.29049012064933777, -0.292493611574173, 0.11566063016653061, 0.11925145983695984, -0.08631603419780731, -0.24535979330539703, 0.009996891021728516, -0.09922370314598083, -0.29137757420539856, 0.20526154339313507, -0.24872630834579468, 0.07833819836378098, -0.2862989902496338, 0.021933946758508682, -0.07685121893882751, 0.2849065363407135, 0.2780407667160034, 0.345563679933548, 0.0047358074225485325, 0.1065426766872406, 0.1700991541147232, -0.2888549864292145, -0.09989112615585327, 0.17421603202819824, 0.5859031677246094, -0.10019959509372711, 0.2810232639312744, 0.02318035624921322, 0.25515326857566833, 0.5095977783203125, 0.26751843094825745, -0.018163390457630157, -0.4141353368759155, 0.02126488834619522, 0.11723096668720245, -0.19915977120399475, 0.10997031629085541, 0.14829662442207336, 0.08836457133293152, -0.10083974152803421, -0.40885335206985474, 0.5594370365142822, 0.04981265589594841, -0.20563718676567078, 0.23137140274047852, -0.07728245854377747, -0.12364275753498077, 0.47932296991348267, 0.18028971552848816, 0.8315485715866089, -0.16198019683361053, -0.06562654674053192, 0.16820672154426575, 0.02885057032108307, 0.6240094304084778, -0.4165043830871582, -0.08479385077953339, -0.25118133425712585, 0.11901160329580307, 0.13853944838047028, -0.22699128091335297, 0.18517392873764038, 0.390669047832489, -0.2436922937631607, 0.3285568356513977, 0.22424261271953583, -0.1325298249721527, 0.061900876462459564, 0.7192336916923523, -0.14073099195957184, -0.12405268847942352, -0.463041752576828, 0.19966910779476166, 0.01643691584467888, 0.2533086836338043, -0.21091488003730774, 0.1053348183631897, 0.0604911632835865, -0.13284119963645935, -0.24371187388896942, 0.23968055844306946, -0.12288261204957962, -0.02604658156633377, -0.11382348835468292, -0.09817107021808624, 0.03608306869864464, 0.09397521615028381, -0.020427927374839783, 0.2783113420009613, -0.21847614645957947, 0.1725977063179016, -0.13640820980072021, 0.11342748254537582, 0.16423273086547852, 0.00911285076290369, 0.3752594590187073, -0.20019716024398804, -0.2501427233219147, -0.08133957535028458, -0.22513455152511597, -0.047675926238298416, 0.243208646774292, -0.09460517764091492, 0.05005015805363655, -0.2450515329837799, -0.2516293525695801, 0.2126704454421997, -0.30093494057655334, -0.003162465989589691, 0.2170208841562271, 0.10068311542272568, -0.22212588787078857, 0.3631591498851776, 0.08674557507038116, -0.22389787435531616, 0.002257969230413437, 0.21362480521202087, -0.12126374989748001, -0.12482365220785141, 0.26900118589401245, 0.062146421521902084, 0.08739222586154938, -0.47336462140083313, 0.13357314467430115, 0.29773151874542236, -0.04788563400506973, -0.08888060599565506, 0.05152545124292374, 0.11131106317043304, 0.21287059783935547, 0.10472021251916885, 0.2519025206565857, 0.18042781949043274, -0.0002303086221218109, -0.3525679409503937, -0.09847791492938995, 0.25795361399650574, 0.26896777749061584, 0.47379663586616516, 0.1072511300444603, -0.11501863598823547, 0.00012302212417125702, 0.26916077733039856, -0.4055408835411072, -0.01570606604218483, -0.4122472107410431, 0.1715405285358429, 0.13107554614543915, 0.2308739721775055, 0.10561630129814148, -0.1066649854183197, 0.20441843569278717, -0.3133004903793335, -0.32077541947364807, -0.3055536448955536, 0.08394119143486023, 0.14626547694206238, 0.15652135014533997, 0.052294179797172546, -0.06056175008416176, -0.11678092926740646, 0.04293240234255791, -0.15644003450870514, -0.13726003468036652, -0.2923893928527832, -0.14331907033920288, 0.2706976532936096, 0.10636815428733826, -0.155251145362854, -0.2605799734592438, 0.021075403317809105, -0.06935012340545654, 0.15921756625175476, -0.2145027369260788, 0.38611912727355957, -0.0017052425537258387, -0.18583282828330994, 0.03434400260448456, 0.11754506081342697, -0.1319996863603592, 0.5523688197135925, 0.16862064599990845, -0.06047602742910385, 0.028779897838830948, -0.23138518631458282, 0.2681348919868469, 0.514116644859314, -0.20968732237815857, 0.09700512140989304, 0.022495489567518234, 0.2443796694278717, -0.23232270777225494, -0.08651430159807205, -0.022071298211812973, 0.029027827084064484, 0.15503153204917908, 0.12391633540391922, 0.02857581153512001, -0.30502957105636597, 0.4676017165184021, -0.024527249857783318, 0.26467716693878174, -0.34257471561431885, 0.11423411965370178, 0.3437230587005615, -0.08842802047729492, -0.2253258377313614, 0.06833412498235703, 0.038221195340156555, 0.22549501061439514, 0.03166050463914871, -0.01781010627746582, 0.24872639775276184, 0.12453140318393707, 0.38584116101264954, -0.0855313315987587, -0.1658058613538742, 0.17389370501041412, 0.22991269826889038, 0.044743288308382034, 0.1276324987411499, 0.11603172868490219, 0.30230289697647095, -0.08746223896741867, 0.018491072580218315, -0.09042023122310638, 0.099575474858284, 0.05186237394809723, -0.1669275313615799, -0.8402196764945984, -0.12300080060958862, -0.19666297733783722, -0.14126981794834137, -0.10126055777072906, -0.07921037077903748, -0.03361240029335022, 0.22322294116020203, -0.029415585100650787, -0.1250196397304535, 0.23023539781570435, 0.11960910260677338, 0.05227120965719223, -0.3159455358982086, 0.35951781272888184, 0.14665672183036804, 0.016666363924741745, -0.08541899919509888, 0.2413325011730194, 0.5067328810691833, 0.2011316567659378, 0.06616799533367157, 0.1289278119802475, 0.11106984317302704, -0.11804530769586563, -0.2978065311908722, 0.2014053910970688, -0.08514858782291412, -0.28733813762664795, 0.4980345070362091, 0.27411267161369324, -0.10414071381092072, 0.06841639429330826, -0.03961232677102089, -0.3594551086425781, -0.12974508106708527, 0.5009411573410034, 0.3609236776828766, -0.009664133191108704, -0.1341497153043747, 0.25012436509132385, -0.5076220035552979, -0.21565446257591248, 0.3701767027378082, 0.02222989685833454, 0.2626217007637024, -0.020302776247262955, 0.1105242371559143, -0.14716005325317383, 0.5804203152656555, 0.042162489145994186, 0.2505534589290619, -0.28990277647972107, -0.3032143712043762, -0.6536117792129517, -0.21121087670326233, 0.0762864351272583, -0.21546673774719238, 0.14971013367176056, 0.26293906569480896, 0.1309276819229126, 0.12395764142274857, -0.04381899535655975, -0.05540354549884796, -0.1815766543149948, 0.02316662296652794, -0.44796863198280334, -0.03250763937830925, -0.14457863569259644, 0.11255143582820892, 0.013790059834718704, -0.28255581855773926, -0.021465811878442764, -0.16848328709602356, -0.021692387759685516, 0.03641125559806824, -0.03843892365694046, 0.4070696234703064, 0.0525021031498909, 0.3109256625175476, 0.0969255343079567, 0.5439282655715942, -0.0683184564113617, 0.045795924961566925, -0.2716743052005768, -0.012082798406481743, -0.12682770192623138, 0.3619473874568939, -0.12537634372711182, 0.2596610188484192, -0.1252051740884781, 0.2532956898212433, -0.20364466309547424, -0.24128706753253937, -0.18620885908603668, -0.1406489908695221, 0.1428666114807129, -0.27432337403297424, -0.10181337594985962, 0.2511718273162842, 0.014596750028431416, 0.1757303774356842, 0.03559473529458046, 0.13318514823913574, -0.3826305866241455, -0.09722141921520233, 0.544395923614502, 0.1340796947479248, -0.10626733303070068, 0.05613704398274422, 0.35104429721832275, -0.04882439225912094, 0.1759951263666153, -0.35671788454055786, 0.03809075802564621, 0.40460488200187683, -0.11446563154459, -0.0361347571015358, 0.2380286157131195, 0.2577599287033081, 0.23085536062717438, -0.2506391108036041, -0.07832948863506317, -0.02886638417840004, -0.160923033952713, -0.4143458902835846, -0.3225805163383484 ]
https://github.com/huggingface/datasets/pull/106
Add data dir test command
Nice - I think we can merge this. I will update the checksums for `wikihow` then as well
18
text: Add data dir test command Nice - I think we can merge this. I will update the checksums for `wikihow` then as well
[ -0.037578560411930084, 0.2360173761844635, -0.18145836889743805, -0.29305726289749146, 0.00811096467077732, 0.20308509469032288, 0.25005874037742615, 0.5789010524749756, 0.2858962118625641, 0.13033774495124817, -0.02491406537592411, 0.16877755522727966, 0.06902187317609787, 0.3374289870262146, 0.0880100205540657, 0.18078802525997162, 0.1803964078426361, 0.11476671695709229, -0.14724352955818176, 0.16377012431621552, -0.1677699089050293, -0.09886853396892548, -0.14740103483200073, -0.1314978003501892, 0.2188573181629181, 0.02433633804321289, -0.07305371761322021, 0.1534450352191925, -0.23824550211429596, -0.2709936499595642, 0.1260613352060318, 0.3803159296512604, -0.21255725622177124, 0.14596867561340332, -0.00010180873505305499, -0.009284596890211105, 0.3373885750770569, -0.041498687118291855, -0.258184015750885, 0.2573079466819763, -0.150994211435318, -0.11011417955160141, -0.14632239937782288, -0.36473357677459717, 0.12144098430871964, 0.15701866149902344, 0.0592295378446579, 0.28544431924819946, -0.041409000754356384, 0.11398667097091675, 0.260158896446228, -0.208652526140213, -0.16234642267227173, -0.05545079708099365, 0.3322523832321167, 0.22078149020671844, -0.060957171022892, 0.09359009563922882, 0.31864017248153687, -0.07083217054605484, -0.08204896003007889, 0.5029650926589966, 0.07118481397628784, -0.186349555850029, 0.16398847103118896, -0.17338071763515472, 0.45223596692085266, 0.3356902599334717, 0.01464313268661499, 0.14731040596961975, 0.5727455019950867, -0.14865317940711975, 0.08153156191110611, 0.15541040897369385, 0.002218482783064246, -0.2041320651769638, 0.09978581964969635, -0.03218306601047516, -0.08010001480579376, 0.04735920578241348, 0.11142129451036453, -0.20535947382450104, -0.0514315664768219, -0.006368093192577362, -0.09558822959661484, 0.7904927730560303, 0.21450923383235931, -0.1805257499217987, 0.04334891214966774, -0.13850702345371246, 0.1284644901752472, -0.12917862832546234, -0.47410860657691956, -0.10054853558540344, 0.3253048062324524, -0.32849475741386414, 0.14389069378376007, 0.12976427376270294, 0.5867188572883606, 0.10213024169206619, -0.11659729480743408, 0.1433396339416504, -0.11084914952516556, -0.1374073624610901, 0.049843400716781616, 0.27174830436706543, 0.3581542372703552, 0.09705937653779984, 0.19915799796581268, 0.3521265685558319, -0.038785118609666824, 0.025301089510321617, 0.2326980084180832, -0.30324068665504456, -0.0833214819431305, 0.10668721795082092, 0.002764517441391945, -0.14470088481903076, 0.21557913720607758, 0.09049614518880844, 0.3046812415122986, -0.3278922140598297, 0.054802753031253815, 0.3738895654678345, 0.09632845968008041, 0.06070902571082115, 0.1550874561071396, 0.13938651978969574, 0.1754993200302124, 0.4343043565750122, -0.13203854858875275, 0.1667681783437729, -0.05887863412499428, -0.01778258942067623, 0.03493499383330345, 0.2888115644454956, 0.04971099644899368, -0.09998846054077148, 0.38464564085006714, -0.1807277947664261, -0.11966553330421448, 0.23606149852275848, 0.3401434123516083, 0.16522090137004852, 0.10105367004871368, 0.058446817100048065, 0.06448642909526825, -0.2050456553697586, -0.1389862596988678, 0.1492411196231842, -0.14208611845970154, -0.19193093478679657, -0.06065203994512558, 0.32113760709762573, -0.003217531368136406, -0.18038439750671387, 0.04450472816824913, -0.08674764633178711, -0.057203568518161774, -0.3772062361240387, 0.19266152381896973, 0.39633357524871826, 0.010924722999334335, -0.016648968681693077, 0.05705930292606354, 0.22896450757980347, -0.2245819866657257, 0.19702374935150146, -0.11269240081310272, -0.13164134323596954, -0.12608245015144348, -0.001576390117406845, -0.2057143598794937, 0.2779935598373413, -0.237523153424263, -0.012305930256843567, 0.43248412013053894, -0.7178347706794739, -0.24728825688362122, 0.029452884569764137, 0.07395130395889282, 0.022773800417780876, 0.12018164247274399, -0.09551867097616196, -0.16048769652843475, -0.1668182760477066, 0.03914935514330864, -0.13266345858573914, -0.07894190400838852, 0.2466661036014557, -0.32771408557891846, -0.10105154663324356, 0.06199010834097862, -0.22920911014080048, 0.11388254165649414, -0.052783526480197906, 0.048836350440979004, -0.14826929569244385, 0.54544597864151, -0.35556647181510925, -0.033929891884326935, -0.19868457317352295, 0.5562259554862976, -0.14569497108459473, 0.11185815930366516, 0.13177525997161865, -0.13431435823440552, 0.01522328332066536, 0.18199032545089722, 0.0177205391228199, 0.06377844512462616, -0.39780884981155396, -0.28389784693717957, -0.10015666484832764, 0.012868069112300873, -0.2597401440143585, 0.30547940731048584, -0.025492563843727112, -0.06882906705141068, -0.1606825888156891, 0.018077563494443893, -0.32500404119491577, -0.36398589611053467, 0.02633247710764408, 0.4797079861164093, 0.10367604345083237, -0.23547370731830597, 0.03574693948030472, -0.11200900375843048, -0.0291125550866127, -0.2273455262184143, 0.06292003393173218, -0.08120111376047134, 0.24203801155090332, 0.08460323512554169, -0.04179224371910095, 0.2956486940383911, -0.0561046302318573, -0.08947532624006271, -0.0669775903224945, -0.1773149073123932, 0.03128441795706749, -0.10404813289642334, -0.06497099250555038, -0.4947769343852997, 0.1857501119375229, -0.1501772552728653, 0.09540268778800964, -0.017198506742715836, -0.07214979082345963, 0.29541701078414917, -0.2033693492412567, -0.0014652181416749954, -0.22979485988616943, -0.006354428827762604, 0.2197996973991394, -0.13106529414653778, -0.18723443150520325, 0.1769106686115265, -0.043800584971904755, 0.13952147960662842, -0.05181451141834259, 0.28416261076927185, 0.102696992456913, 0.3133887052536011, -0.07936824858188629, -0.004986921325325966, 0.017208468168973923, 0.22440123558044434, 0.2758527994155884, 0.14155860245227814, 0.06034069508314133, 0.13577650487422943, -0.11264810711145401, 0.28271520137786865, -0.026398085057735443, 0.06342723220586777, 0.35711470246315, 0.01500505581498146, -0.2843765318393707, -0.06157008558511734, 0.19497984647750854, 0.1004779115319252, 0.08803921192884445, -0.13042587041854858, -0.14834943413734436, 0.037288181483745575, -0.500785231590271, -0.08315804600715637, -0.133497416973114, -0.11651794612407684, -0.4702821969985962, 0.31596773862838745, -0.14955918490886688, -0.46973729133605957, 0.2767563462257385, 0.07183131575584412, 0.22537702322006226, 0.05379427969455719, -0.22387738525867462, -0.2523319721221924, -0.248412624001503, 0.15949103236198425, 0.19888891279697418, 0.39869213104248047, 0.11127431690692902, 0.5271583795547485, -0.15343838930130005, 0.15533478558063507, -0.41534510254859924, -0.5836939811706543, 0.13645344972610474, -0.04174108803272247, 0.13783320784568787, 0.37386271357536316, 0.32720983028411865, 0.0071279145777225494, -0.545819878578186, -0.011018871329724789, -0.14614538848400116, -0.21638450026512146, -0.2308746874332428, 0.022057313472032547, 0.08489885181188583, -0.42724379897117615, -0.3495595455169678, 0.08508709818124771, -0.31872454285621643, 0.0847991481423378, -0.015391184017062187, 0.21008838713169098, -0.04159572720527649, -0.06425099074840546, -0.08858834952116013, 0.038953062146902084, -0.054759785532951355, -0.1519300937652588, -0.30051636695861816, 0.15033698081970215, -0.2712478041648865, -0.012742288410663605, -0.07673581689596176, -0.15077903866767883, 0.22378744184970856, -0.40037184953689575, -0.28679323196411133, -0.3386187255382538, 0.07874736934900284, 0.35093462467193604, 0.15463784337043762, 0.11249411851167679, 0.2537013292312622, 0.1323534995317459, -0.2498043030500412, -0.33739086985588074, -0.09536275267601013, 0.01712851971387863, 0.0188157856464386, 0.09772248566150665, -0.15583482384681702, -0.10931574553251266, -0.07311207801103592, 0.39763563871383667, -0.03758525848388672, 0.29561305046081543, 0.021901406347751617, 0.1039142832159996, 0.32954999804496765, 0.03886508569121361, -0.10175875574350357, -0.07087956368923187, 0.052645571529865265, 0.09806450456380844, 0.3691890835762024, 0.06208186596632004, -0.14999036490917206, -0.06315826624631882, -0.17002302408218384, -0.316060870885849, -0.47090214490890503, 0.20001520216464996, -0.22576025128364563, -0.17465254664421082, 0.011533144861459732, -0.27272194623947144, -0.40385761857032776, -0.13628363609313965, 0.3545779585838318, 0.6069288849830627, -0.21255576610565186, -0.20196694135665894, -0.19033405184745789, -0.15778490900993347, -0.0985831543803215, 0.20193219184875488, 0.4411129653453827, -0.2701111435890198, 0.09299297630786896, -0.24636873602867126, -0.3661360740661621, -0.40726906061172485, 0.3318096995353699, -0.4502706527709961, 0.06885270029306412, 0.004822809249162674, 0.31002700328826904, 0.35570111870765686, -0.22772496938705444, -0.17556612193584442, -0.3092629611492157, 0.3790394067764282, 0.358448326587677, -0.2451433539390564, -0.11152563989162445, 0.33749502897262573, 0.0755237266421318, -0.15562044084072113, -0.14436180889606476, -0.2281196266412735, -0.29508736729621887, -0.37843605875968933, 0.1870846450328827, 0.11554966121912003, -0.06780491024255753, -0.22288396954536438, -0.04704942926764488, 0.13709311187267303, -0.10333460569381714, 0.11413642764091492, 0.015091205015778542, 0.07413371652364731, 0.15658289194107056, -0.07256527245044708, -0.3258458971977234, -0.0009112171828746796, 0.07943767309188843, 0.25909703969955444, -0.1481923609972, 0.23706839978694916, -0.41084256768226624, -0.3139641582965851, 0.2807900905609131, 0.14467941224575043, 0.08393599838018417, 0.15966036915779114, -0.14079152047634125, -0.2479572743177414, -0.10531271249055862, 0.09209064394235611, -0.11484821140766144, 0.086423359811306, -0.16766247153282166, 0.047623664140701294, 0.26558539271354675, 0.14298388361930847, -0.32246920466423035, 0.35772886872291565, 0.13557833433151245, -0.5043134093284607, -0.09922076016664505, 0.21030071377754211, 0.7953589558601379, -0.25721079111099243, 0.15996424853801727, -0.05606871843338013, -0.24730022251605988, 0.14677365124225616, -0.13514754176139832, 0.042871035635471344, -0.24347038567066193, -0.1869775503873825, 0.05778171122074127, -0.06174682825803757, 0.016267582774162292, -0.31855475902557373, -0.671085000038147, -0.04631201550364494, -0.11500006914138794, 0.4141257703304291, -0.05344165861606598, 0.223626047372818, -0.07705600559711456, -0.07227368652820587, -0.2778991162776947, 0.17334093153476715, 0.10785587131977081, -0.3680115044116974, -0.4077093303203583, -0.03634793311357498, 0.05914808437228203, -0.355976939201355, -0.05621883645653725, 0.029720980674028397, 0.21014755964279175, 0.025412186980247498, -0.130517840385437, 0.009225286543369293, -0.184618279337883, 0.2342403680086136, 0.06813295930624008, 0.5254909992218018, -0.04523380845785141, 0.27869611978530884, 0.07604832202196121, 0.20994819700717926, -0.25315672159194946, -0.004140274133533239, 0.24552173912525177, -0.258563369512558, -0.37676218152046204, -0.028427131474018097, -0.07424914836883545, -0.531090259552002, -0.2672065198421478, 0.04098198935389519, 0.10751581937074661, -0.3196817934513092, 0.057294297963380814, 0.2864529490470886, -0.21590279042720795, -0.2842465937137604, 0.21777227520942688, 0.06516622006893158, -0.31716445088386536, 0.2150876522064209, 0.2324218899011612, -0.18299058079719543, 0.09980778396129608, -0.04419737309217453, 0.03505391627550125, -0.29140710830688477, 0.2829647660255432, 0.007806755602359772, -0.2438732087612152, -0.448974072933197, -0.09133265167474747, 0.14833344519138336, 0.10370931774377823, 0.11012923717498779, -0.039274923503398895, -0.32680416107177734, -0.005107369273900986, 0.255404531955719, 0.32912737131118774, 0.3946223556995392, -0.18077494204044342, 0.05508102476596832, -0.3467946946620941, 0.21248117089271545, 0.03475945442914963, 0.48139914870262146, -0.18747636675834656, 0.16665035486221313, -0.08968336135149002, 0.24225355684757233, -0.47096166014671326, -0.012495659291744232, -0.19680067896842957, 0.27445340156555176, -0.10199688374996185, 0.2134065330028534, -0.009720715694129467, -0.03723835200071335, 0.2839415371417999, -0.13407549262046814, -0.09876709431409836, -0.3715120553970337, 0.009968925267457962, 0.04644690454006195, -0.04654663801193237, 0.007558726705610752, 0.3499302864074707, 0.08613057434558868, 0.28005701303482056, -0.00249655544757843, 0.23523592948913574, -0.31933408975601196, -0.09886644780635834, 0.2541462182998657, 0.1328977644443512, 0.21135523915290833, -0.014354361221194267, -0.07416468858718872, -0.04893304407596588, 0.2146385908126831, -0.28905314207077026, 0.017504557967185974, -0.08416156470775604, -0.08163289725780487, 0.6236792802810669, 0.2509658634662628, 0.12813816964626312, 0.4637225568294525, -0.14750000834465027, 0.19274035096168518, -0.16634507477283478, 0.13495689630508423, 0.13205033540725708, 0.08830804377794266, -0.18916194140911102, -0.029207736253738403, 0.26590031385421753, 0.3380994200706482, -0.25586333870887756, -0.11161943525075912, -0.08739219605922699, -0.18682903051376343, 0.1638045608997345, 0.21464277803897858, -0.07654871046543121, -0.43775373697280884, 0.28082460165023804, 0.18228498101234436, -0.17782054841518402, -0.24727188050746918, 0.1290438324213028, 0.47356438636779785, -0.3378835618495941, -0.23462210595607758, -0.1362394392490387, -0.1031063050031662, 0.09006203711032867, 0.05619649589061737, 0.15569816529750824, 0.455351322889328, -0.03233562409877777, 0.007306080311536789, 0.21039867401123047, 0.2755771279335022, 0.5297947525978088, 0.041836224496364594, 0.0202719047665596, 0.2646041810512543, 0.48104918003082275, -0.0004154592752456665, 0.09404382109642029, -0.028805814683437347, -0.15254129469394684, 0.10071192681789398, -0.12052688747644424, -0.18202228844165802, -0.2630171775817871, -0.1838134229183197, 0.23223811388015747, -0.017832105979323387, 0.18308600783348083, 0.24683095514774323, 0.205681711435318, 0.18547797203063965, 0.017429910600185394, 0.18484513461589813, 0.36923566460609436, -0.03154492378234863, 0.25922924280166626, -0.18639342486858368, -0.20835161209106445, 0.3010595440864563, 0.0013361945748329163, 0.31519752740859985, 0.22497913241386414, 0.13454948365688324, 0.1922503411769867, -0.05463193729519844, -0.08460915833711624, -0.19111774861812592, 0.04261840879917145, -0.19530387222766876, 0.07484626770019531, 0.19566848874092102, -0.07526573538780212, 0.27523747086524963, 0.32556799054145813, -0.2822485864162445, 0.07662178575992584, 0.014263827353715897, -0.6163289546966553, 0.1250891238451004, 0.18174824118614197, 0.4515971541404724, -0.25278931856155396, -0.14612537622451782, 0.26395559310913086, -0.08759477734565735, -0.02640453726053238, 0.1179870218038559, 0.11293189227581024, 0.19256335496902466, 0.014837670139968395, 0.156244158744812, 0.379095196723938, 0.3880026638507843, 0.154071643948555, -0.03575652837753296, -0.10315811634063721, -0.12640972435474396, -0.26172250509262085, -0.0065276846289634705, 0.1311250627040863, -0.1501094549894333, -0.22157244384288788, -0.05420435220003128, 0.06429080665111542, -0.082135871052742, 0.3199319839477539, -0.5734632611274719, -0.09174232929944992, -0.2796485722064972, -0.380083829164505, -0.0722522884607315, 0.424615740776062, -0.020374128594994545, 0.21374230086803436, -0.23598092794418335, 0.04157672077417374, -0.05156445875763893, 0.30938124656677246, 0.11578463762998581, 0.09820559620857239, 0.31228402256965637, 0.027379682287573814, 0.07744349539279938, -0.031207257881760597, 0.6159090995788574, -0.3071027100086212, -0.03100721910595894, 0.12013756483793259, 0.06610145419836044, -0.08816475421190262, 0.21556049585342407, 0.1310371607542038, 0.09693999588489532, -0.11653435975313187, -0.23247598111629486, 0.05601813271641731, 0.2060583531856537, 0.21543897688388824, 0.1611419916152954, 0.017238447442650795, 0.13669908046722412, 0.24195638298988342, -0.04254243150353432, -0.10054398328065872, 0.23106840252876282, -0.14771215617656708, -0.013216683641076088, -0.2308274209499359, -0.4227151572704315, 0.3653947114944458, 0.08240293711423874, -0.39363977313041687, -0.2933765947818756, 0.2925081253051758, -0.217710942029953, 0.11358668655157089, -0.6472330093383789, -0.043664947152137756, 0.16559390723705292, 0.17959123849868774, -0.332121342420578, 0.2480016052722931, 0.14854755997657776, 0.04990179464221001, -0.09748204052448273, 0.14773759245872498, 0.12987616658210754, -0.08222972601652145, -0.4396304190158844, -0.29491060972213745 ]
https://github.com/huggingface/datasets/pull/103
[Manual downloads] add logic proposal for manual downloads and add wikihow
> Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. > > The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. > > The dataset can then be loaded via: > > ```python > import nlp > nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") > ``` > > I added/changed so that there are explicit error messages when using manually downloaded files. wouldn't be nicer if we can have `manual_dir/wikihow`?
Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. The dataset can then be loaded via: ```python import nlp nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") ``` I added/changed so that there are explicit error messages when using manually downloaded files.
87
text: [Manual downloads] add logic proposal for manual downloads and add wikihow Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. The dataset can then be loaded via: ```python import nlp nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") ``` I added/changed so that there are explicit error messages when using manually downloaded files. > Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. > > The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. > > The dataset can then be loaded via: > > ```python > import nlp > nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") > ``` > > I added/changed so that there are explicit error messages when using manually downloaded files. wouldn't be nicer if we can have `manual_dir/wikihow`?
[ 0.3197510838508606, 0.027546554803848267, -0.1322653740644455, -0.2504366636276245, -0.10410097241401672, 0.19771406054496765, 0.34550490975379944, 0.1788773089647293, 0.3675752878189087, 0.004673488438129425, 0.19482232630252838, 0.5136376619338989, -0.09763839095830917, 0.20151790976524353, 0.2984880805015564, -0.26939263939857483, 0.013334490358829498, 0.42218831181526184, 0.31314581632614136, -0.00444379448890686, -0.22436100244522095, 0.1677090972661972, -0.12458942830562592, 0.0133061483502388, 0.43443453311920166, -0.03057951293885708, -0.37909385561943054, 0.08003349602222443, -0.31322211027145386, -0.638971745967865, -0.036308351904153824, 0.467489629983902, 0.11020137369632721, 0.09555179625749588, -0.00011219280713703483, -0.09269635379314423, 0.3619278073310852, -0.01631835848093033, -0.4128383994102478, -0.22178806364536285, -0.14278849959373474, -0.48354414105415344, 0.15259520709514618, -0.49250122904777527, 0.1534005105495453, 0.33940404653549194, 0.4342878758907318, 0.2778374254703522, 0.27699199318885803, 0.04088449850678444, 0.11908693611621857, -0.2766245901584625, -0.11372102051973343, 0.02375764027237892, 0.09284147620201111, 0.4969884157180786, -0.1923266053199768, 0.501625120639801, 0.1353580504655838, -0.20067907869815826, 0.31852957606315613, 0.13802668452262878, -0.04009648784995079, -0.21597665548324585, 0.2716376483440399, 0.16702935099601746, 0.00609859824180603, -0.26892349123954773, -0.15627840161323547, 0.27980077266693115, 0.4960668683052063, -0.42371881008148193, -0.09584668278694153, -0.33834367990493774, 0.23168978095054626, -0.3301140367984772, -0.07192198187112808, 0.35422664880752563, -0.1845555156469345, 0.17661811411380768, 0.2120639979839325, -0.45969969034194946, -0.1762397140264511, 0.3802960515022278, 0.21478426456451416, 0.5823564529418945, 0.07255178689956665, 0.02439326047897339, 0.03516799956560135, 0.31852251291275024, -0.09276986122131348, -0.3365435302257538, 0.06666242331266403, 0.19205419719219208, 0.2576093375682831, -0.19115623831748962, 0.04355994611978531, 0.1463814526796341, -0.013873830437660217, -0.3151015639305115, 0.3916155993938446, -0.17779412865638733, 0.05115393549203873, 0.15522408485412598, 0.10911110043525696, 0.03424898162484169, 0.18174639344215393, 0.23863276839256287, 0.12434428185224533, 0.29161930084228516, 0.27490198612213135, -0.10435640066862106, -0.24738441407680511, 0.049425043165683746, -0.12523971498012543, -0.10890599340200424, 0.10057254135608673, 0.37183696031570435, -0.10475917905569077, -0.1936580389738083, -0.2310238778591156, -0.1985812783241272, -0.07237152010202408, 0.32259273529052734, -0.12017736583948135, 0.07604944705963135, 0.20747040212154388, 0.40457725524902344, 0.29520076513290405, 0.22072330117225647, 0.03830093890428543, 0.3402007818222046, -0.41905200481414795, 0.07723729312419891, 0.17737504839897156, 0.17159484326839447, 0.421392560005188, 0.0017157485708594322, -0.05137298256158829, -0.08280908316373825, 0.26821979880332947, 0.1428946554660797, -0.1762448251247406, 0.04560867324471474, -0.0745704397559166, 0.14502212405204773, -0.1555166393518448, -0.3474140763282776, -0.16591233015060425, 0.22164183855056763, -0.29670965671539307, -0.15613721311092377, -0.28927546739578247, 0.22968533635139465, -0.05954769253730774, -0.2901434302330017, -0.4610317647457123, 0.22111837565898895, 0.13466551899909973, -0.20503170788288116, 0.1873316615819931, 0.21230252087116241, -0.016994331032037735, -0.169540137052536, -0.22559930384159088, 0.28721168637275696, -0.4174402058124542, -0.05191654711961746, -0.4713365137577057, -0.09730890393257141, 0.12738604843616486, -0.08047519624233246, -0.333436518907547, 0.7304595112800598, -0.3752474784851074, 0.3457513451576233, 0.6694703102111816, -0.4005744159221649, 0.07298406213521957, 0.30777254700660706, -0.22252632677555084, 0.045260749757289886, 0.301511287689209, 0.15175382792949677, -0.1702570915222168, -0.1703730970621109, 0.05149451643228531, -0.012165140360593796, 0.0893997922539711, -0.08251067996025085, -0.16641411185264587, -0.30251219868659973, 0.3694162368774414, 0.12234972417354584, -0.1581062227487564, 0.20153513550758362, 0.17945079505443573, 0.1312033236026764, 0.7105913162231445, -0.07069900631904602, -0.143870010972023, -0.07677649706602097, 0.14843201637268066, 0.16401931643486023, -0.2872422933578491, -0.046544671058654785, -0.14170634746551514, 0.044763147830963135, -0.15550649166107178, 0.20319333672523499, 0.08710450679063797, -0.40539616346359253, -0.42096564173698425, -0.1997268795967102, -0.0057673268020153046, -0.21186189353466034, 0.17350268363952637, 0.21371504664421082, -0.24222016334533691, -0.008888477459549904, -0.10927228629589081, 0.07278507947921753, -0.4166358709335327, -0.05750177428126335, 0.03947529196739197, 0.1422327607870102, -0.18803995847702026, 0.1628372073173523, -0.22270575165748596, 0.3226585388183594, 0.040853653103113174, 0.016845539212226868, 0.2576482594013214, 0.2872171103954315, -0.22379882633686066, 0.11063883453607559, 0.1758173108100891, -0.11584733426570892, 0.12261158227920532, 0.10424758493900299, -0.02891364134848118, 0.1798563152551651, 0.2678605914115906, -0.08527268469333649, -0.34697604179382324, 0.10649740695953369, 0.1262505054473877, 0.001163683831691742, 0.09384335577487946, -0.07139290124177933, 0.06122119724750519, -0.0789828971028328, -0.26737144589424133, -0.18753111362457275, 0.12840428948402405, 0.5440229177474976, -0.16262896358966827, -0.019357359036803246, -0.4852072298526764, 0.03876079246401787, 0.4200233817100525, -0.2549217939376831, 0.41221457719802856, 0.22165051102638245, 0.18599069118499756, -0.19195684790611267, -0.024203190580010414, 0.15350112318992615, 0.44490498304367065, 0.2982562482357025, -0.019304167479276657, 0.13033443689346313, 0.03178716450929642, -0.30907541513442993, 0.36423781514167786, 0.12561474740505219, -0.056263893842697144, 0.06876591593027115, 0.16358265280723572, -0.04784061387181282, -0.17945173382759094, -0.49113741517066956, 0.08428019285202026, -0.05472297966480255, -0.17549651861190796, -0.13370823860168457, 0.3070203363895416, -0.35665270686149597, -0.18421076238155365, -0.14241330325603485, 0.04635591059923172, -0.3769064247608185, 0.10255618393421173, -0.09595026075839996, -0.2205105423927307, 0.06806635856628418, -0.17217786610126495, 0.27373644709587097, -0.4426795244216919, -0.24029214680194855, -0.0920599102973938, -0.2174205332994461, -0.1925022304058075, 0.09141550958156586, -0.030814696103334427, 0.17843694984912872, 0.6191791892051697, -0.14097146689891815, -0.1886328160762787, -0.1456412822008133, -0.5283982157707214, 0.07179763168096542, -0.09572523832321167, 0.05869434028863907, 0.4403124153614044, 0.3140239715576172, 0.1545531153678894, -0.5834041237831116, 0.00597791001200676, 0.317680299282074, -0.03353685885667801, -0.2984451651573181, 0.125013530254364, 0.05682693049311638, -0.45347920060157776, -0.48189303278923035, -0.4410136044025421, -0.4107763171195984, 0.2664620280265808, 0.07327580451965332, 0.13737565279006958, 0.291532039642334, -0.14673706889152527, 0.2649085223674774, 0.04337137192487717, 0.20243453979492188, 0.014240281656384468, -0.19373470544815063, 0.1248093843460083, -0.15754881501197815, -0.04852772876620293, -0.06316164880990982, -0.3178778886795044, 0.22148644924163818, -0.34563779830932617, -0.4458845853805542, -0.33629244565963745, -0.01062607578933239, 0.2049659639596939, -0.10714423656463623, 0.1435661017894745, 0.2243042141199112, 0.24448812007904053, -0.1467667669057846, -0.1394878774881363, -0.2689637839794159, 0.2871266305446625, 0.26591870188713074, 0.1164427399635315, 0.08228912949562073, 0.18922632932662964, 0.10803675651550293, 0.5853614807128906, -0.20100019872188568, 0.14268776774406433, 0.4470910429954529, 0.08451414108276367, 0.334603488445282, -0.03031224012374878, -0.2010934054851532, 0.05394429340958595, 0.07005204260349274, 0.04178355634212494, 0.28224748373031616, -0.06235262006521225, -0.5073485374450684, -0.07740800082683563, -0.1935381293296814, -0.4116160273551941, -0.09845097362995148, 0.07833855599164963, 0.17255644500255585, 0.03313592076301575, 0.031462475657463074, -0.2502838969230652, -0.20221295952796936, -0.1058235615491867, -0.018732165917754173, 0.5843708515167236, 0.05085648223757744, 0.11552903801202774, -0.13133271038532257, -0.06303984671831131, -0.38300788402557373, -0.11215659976005554, 0.27760136127471924, -0.06745520979166031, -0.23013126850128174, 0.12500685453414917, 0.0630771666765213, -0.003829511348158121, 0.3178862929344177, -0.29558101296424866, -0.06606364995241165, 0.007675768807530403, 0.3964577913284302, 0.02075229026377201, -0.042140647768974304, -0.22789114713668823, 0.0628812238574028, 0.6664630770683289, 0.1317405104637146, -0.3398599624633789, -0.18143831193447113, 0.1998758763074875, 0.15634438395500183, 0.0027646981179714203, -0.4211825728416443, -0.22283855080604553, -0.2874200940132141, -0.37764424085617065, 0.026052989065647125, 0.3584814667701721, -0.028554623946547508, 0.06965094059705734, -0.028940722346305847, 0.2657926380634308, -0.06016046926379204, 0.10310027003288269, -0.0438840426504612, -0.07352074980735779, 0.36519166827201843, -0.2676768898963928, -0.3590604364871979, 0.20824235677719116, -0.29903414845466614, 0.1589473932981491, -0.16054017841815948, -0.056523799896240234, -0.14006227254867554, -0.3772560954093933, 0.3921491503715515, 0.3513427972793579, 0.27809011936187744, 0.22053569555282593, 0.007551549002528191, -0.050187692046165466, -0.11454718559980392, 0.2625502049922943, 0.23328734934329987, -0.2822359800338745, -0.23371626436710358, -0.6962178945541382, 0.4753545820713043, -0.16801252961158752, -0.25068846344947815, 0.21025840938091278, 0.2942478656768799, -0.6643205881118774, 0.11067734658718109, -0.06255101412534714, 1.1093300580978394, 0.05182701349258423, 0.41675862669944763, 0.4444148540496826, -0.3130858540534973, 0.5133054852485657, -0.31929683685302734, 0.02147556096315384, -0.044643379747867584, 0.47024571895599365, -0.09249921143054962, 0.04885536804795265, 0.18281249701976776, 0.18472006916999817, -0.5397118926048279, 0.2500486373901367, -0.0892099067568779, 0.11550535261631012, 0.2520841658115387, 0.657853901386261, -0.09810739010572433, -0.18115535378456116, -0.23254022002220154, -0.02398015558719635, 0.06191806122660637, -0.22493088245391846, -0.30828288197517395, -0.35307949781417847, 0.1699223667383194, -0.10612267255783081, -0.20433756709098816, -0.0997832715511322, -0.005954005289822817, 0.0582001730799675, -0.3867031931877136, -0.007012851536273956, 0.35709208250045776, 0.4293995797634125, 0.12482012808322906, 0.28490912914276123, -0.3253439664840698, 0.03859155252575874, -0.3070167005062103, -0.10898249596357346, 0.0025583805982023478, 0.13080550730228424, 0.00675898976624012, -0.20315960049629211, -0.16326746344566345, 0.012771476060152054, -0.24535496532917023, -0.08032357692718506, -0.42647403478622437, 0.3587166666984558, 0.24870486557483673, -0.23656509816646576, -0.3219751715660095, 0.22896309196949005, -0.2785521447658539, -0.1609710305929184, 0.0850476324558258, 0.13870760798454285, -0.11434110999107361, -0.3705293834209442, -0.1054709255695343, -0.31831735372543335, -0.1961745172739029, -0.008506454527378082, -0.048455819487571716, -0.09691821038722992, 0.39329153299331665, -0.3162308931350708, -0.18721351027488708, -0.2740459144115448, -0.0952986627817154, -0.19617359340190887, -0.22937902808189392, -0.06356683373451233, 0.3834385871887207, -0.2858230769634247, -0.27420082688331604, 0.23830828070640564, 0.02189812995493412, 0.14242888987064362, -0.12100593745708466, -0.45589885115623474, -0.028479088097810745, 0.09761281311511993, -0.10398975014686584, 0.2637677788734436, -0.030236445367336273, 0.37519383430480957, 0.3240058720111847, -0.2567233443260193, -0.3479720950126648, 0.06783103197813034, -0.054273176938295364, 0.20529644191265106, 0.2966081202030182, 0.13766878843307495, -0.19072598218917847, 0.22884148359298706, 0.194902241230011, -0.1798267364501953, -0.07270301133394241, -0.25179049372673035, -0.11535778641700745, 0.16783346235752106, 0.08052313327789307, 0.2253715693950653, 0.36979830265045166, -0.05502176657319069, 0.1756044179201126, -0.03342590853571892, -0.10296586155891418, -0.15200603008270264, -0.07589064538478851, 0.37278103828430176, -0.07179281115531921, 0.31855785846710205, -0.07264958322048187, 0.11989212036132812, -0.2246350646018982, 0.18755504488945007, -0.08547710627317429, 0.0770246684551239, -0.0780443400144577, 0.06878781318664551, 0.06228875741362572, -0.008324965834617615, 0.14047716557979584, 0.33424198627471924, -0.055850379168987274, -0.025947071611881256, 0.11583270132541656, 0.09095504879951477, 0.06852512806653976, 0.19667097926139832, -0.1667613536119461, 0.057175979018211365, 0.19151830673217773, 0.23850606381893158, -0.3308153450489044, 0.19467055797576904, 0.049445394426584244, -0.0836452916264534, 0.2009119987487793, 0.3803570568561554, 0.2587817311286926, -0.0909195989370346, -0.1663740873336792, -0.12693527340888977, 0.09644206613302231, -0.08790948241949081, 0.035780612379312515, 0.42444470524787903, -0.1170843094587326, 0.09708797186613083, -0.3334773778915405, 0.085052490234375, 0.012695752084255219, 0.10397467017173767, -0.011220782995223999, 0.17046649754047394, 0.28150367736816406, 0.04547181725502014, 0.13672947883605957, 0.16540728509426117, 0.1554396152496338, 0.2772112488746643, 0.06569340080022812, 0.16013599932193756, 0.26932841539382935, 0.09822661429643631, 0.055602993816137314, 0.2748633027076721, 0.020376404747366905, -0.04456451162695885, -0.011850211769342422, -0.12324795126914978, -0.11095122247934341, -0.07381369173526764, -0.13586309552192688, -0.10446955263614655, 0.1779022216796875, -0.017836257815361023, -0.02468927949666977, -0.14805836975574493, 0.04289548471570015, -0.2647345960140228, 0.2735961675643921, 0.13626840710639954, 0.18634939193725586, -0.3241664171218872, -0.11062435060739517, 0.1599256992340088, -0.15988726913928986, 0.0734427273273468, 0.1465354859828949, 0.3532896637916565, 0.4414561092853546, -0.04290994629263878, -0.12524472177028656, 0.02657279744744301, 0.0010172650218009949, -0.17488490045070648, -0.143138125538826, 0.5039164423942566, 0.37970229983329773, 0.30209341645240784, 0.16609536111354828, -0.15158843994140625, 0.22528831660747528, 0.4033608138561249, -0.30315640568733215, -0.29814597964286804, 0.4586330056190491, 0.11715378612279892, -0.09628763794898987, 0.009411221370100975, 0.25530198216438293, -0.567537784576416, 0.009353159926831722, 0.16775500774383545, 0.1978393793106079, 0.03344343975186348, -0.25014182925224304, 0.09484303742647171, 0.11047641932964325, 0.18881376087665558, 0.24546822905540466, 0.291664719581604, -0.4558793008327484, 0.06955134868621826, -0.38100260496139526, -0.30615758895874023, -0.010543063282966614, -0.3273869752883911, -0.027030784636735916, 0.10121414065361023, -0.07503698021173477, 0.11756962537765503, -0.14111225306987762, 0.08286360651254654, -0.07628163695335388, 0.07019655406475067, -0.19875259697437286, 0.006749704480171204, 0.3212367296218872, 0.2816913425922394, 0.2454514503479004, -0.25867128372192383, -0.13386142253875732, -0.4795747697353363, 0.0119059719145298, -0.15594476461410522, 0.2913075089454651, 0.21153374016284943, 0.406619668006897, 0.23936402797698975, -0.12670156359672546, 0.40819522738456726, -0.28049737215042114, -0.22627852857112885, -0.0639151781797409, -0.08796589076519012, -0.2534060478210449, 0.21235361695289612, 0.1555948555469513, 0.18201448023319244, -0.40613222122192383, 0.1294831931591034, -0.043304529041051865, 0.00592119712382555, 0.08131355047225952, 0.3718339502811432, -0.31639277935028076, 0.07246801257133484, -0.01816597208380699, 0.2272525578737259, -0.029602084308862686, 0.10903136432170868, -0.10682310163974762, 0.01243322528898716, -0.12634287774562836, -0.2765621244907379, 0.5164645910263062, -0.2474900484085083, -0.2802337110042572, 0.12728548049926758, 0.2761385142803192, 0.04091528058052063, 0.32028597593307495, -0.622113049030304, -0.05760345607995987, 0.4883836805820465, 0.11662369221448898, -0.24541771411895752, 0.12462939321994781, -0.061826299875974655, -0.16035203635692596, 0.03679806366562843, 0.040853843092918396, -0.1549658477306366, -0.23134708404541016, -0.0016531571745872498, -0.4923299551010132 ]
https://github.com/huggingface/datasets/pull/103
[Manual downloads] add logic proposal for manual downloads and add wikihow
> > Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. > > The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. > > The dataset can then be loaded via: > > ```python > > import nlp > > nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") > > ``` > > > > > > I added/changed so that there are explicit error messages when using manually downloaded files. > > wouldn't be nicer if we can have `manual_dir/wikihow`? Sure, I mean the user can decide whatever he likes best :-) The path one puts in `data_dir` will be used as the path to the manual dir. `nlp.load_dataset("wikihow", data_dir="~/manual_dir/wikihow")` would work as well as any other path ;-)
Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. The dataset can then be loaded via: ```python import nlp nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") ``` I added/changed so that there are explicit error messages when using manually downloaded files.
136
text: [Manual downloads] add logic proposal for manual downloads and add wikihow Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. The dataset can then be loaded via: ```python import nlp nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") ``` I added/changed so that there are explicit error messages when using manually downloaded files. > > Wikihow is an example that needs to manually download two files as stated in: https://github.com/mahnazkoupaee/WikiHow-Dataset. > > The user can then store these files under a hard-coded name: `wikihowAll.csv` and `wikihowSep.csv` in this case in a directory of his choice, e.g. `~/wikihow/manual_dir`. > > The dataset can then be loaded via: > > ```python > > import nlp > > nlp.load_dataset("wikihow", data_dir="~/wikihow/manual_dir") > > ``` > > > > > > I added/changed so that there are explicit error messages when using manually downloaded files. > > wouldn't be nicer if we can have `manual_dir/wikihow`? Sure, I mean the user can decide whatever he likes best :-) The path one puts in `data_dir` will be used as the path to the manual dir. `nlp.load_dataset("wikihow", data_dir="~/manual_dir/wikihow")` would work as well as any other path ;-)
[ 0.2587462365627289, 0.054146602749824524, -0.12577694654464722, -0.19406931102275848, -0.16975170373916626, 0.1010025218129158, 0.2784672975540161, 0.14397837221622467, 0.3386952877044678, -0.11771434545516968, 0.14428576827049255, 0.577377200126648, -0.21392564475536346, 0.21781060099601746, 0.29737359285354614, -0.28369152545928955, -0.029515765607357025, 0.3427821099758148, 0.20411643385887146, 0.04502786695957184, -0.247237890958786, 0.21487118303775787, -0.11571800708770752, 0.07779385894536972, 0.44816192984580994, -0.07542458921670914, -0.3779483437538147, 0.17272543907165527, -0.32709982991218567, -0.6127305030822754, 0.012426072731614113, 0.4710519313812256, 0.18184995651245117, 0.2142663598060608, -0.00010815578571055084, -0.15416015684604645, 0.26899832487106323, -0.01570485532283783, -0.4315738379955292, -0.3426561951637268, -0.23115593194961548, -0.44135600328445435, 0.15734969079494476, -0.4979947507381439, 0.15412113070487976, 0.30657729506492615, 0.4288901388645172, 0.24623292684555054, 0.34929168224334717, 0.05969817563891411, 0.16737942397594452, -0.2951804995536804, -0.14366692304611206, 0.03474724665284157, 0.10887040942907333, 0.41930127143859863, -0.1330133080482483, 0.45284169912338257, 0.01971079409122467, -0.231230229139328, 0.2701643109321594, 0.07718782126903534, -0.021889790892601013, -0.2571720480918884, 0.4305188059806824, 0.19498689472675323, 0.017842300236225128, -0.28257355093955994, -0.2152043879032135, 0.31629133224487305, 0.5161318182945251, -0.4035404324531555, -0.07467538118362427, -0.3621428310871124, 0.14493130147457123, -0.25900334119796753, -0.035299405455589294, 0.3803030550479889, -0.24882017076015472, 0.10207629948854446, 0.14756260812282562, -0.36908143758773804, -0.24098576605319977, 0.41538387537002563, 0.1707441508769989, 0.5302847623825073, 0.03609354421496391, 0.002878677099943161, 0.1142333522439003, 0.23732882738113403, -0.061798762530088425, -0.39711692929267883, 0.1232832819223404, 0.2818061113357544, 0.2128300666809082, -0.18708835542201996, 0.064499631524086, 0.1690790057182312, -0.01485058106482029, -0.28703373670578003, 0.375306636095047, -0.14212632179260254, -0.039851050823926926, 0.19512826204299927, 0.14807310700416565, 0.052684884518384933, 0.12452581524848938, 0.20368152856826782, 0.16851472854614258, 0.3078405559062958, 0.2427034080028534, -0.054812461137771606, -0.26538801193237305, -0.0650559663772583, -0.14124049246311188, -0.09620733559131622, 0.028827868402004242, 0.3067183792591095, -0.10118994116783142, -0.24164292216300964, -0.18887141346931458, -0.1761830896139145, 0.04033411294221878, 0.3552098274230957, -0.17430950701236725, 0.0635814368724823, 0.18755050003528595, 0.3119407892227173, 0.25725993514060974, 0.2694111764431, 0.03356220945715904, 0.3272044360637665, -0.4573424160480499, 0.10019442439079285, 0.18584376573562622, 0.20304207503795624, 0.41881293058395386, 0.020561616867780685, -0.08154718577861786, -0.10151691734790802, 0.2669660151004791, 0.10331933200359344, -0.14691579341888428, -0.01802169159054756, -0.010381689295172691, 0.1767517328262329, -0.20652562379837036, -0.3505522608757019, -0.22379711270332336, 0.1832003891468048, -0.21890732645988464, -0.1280546337366104, -0.13885384798049927, 0.2604449391365051, -0.09155347943305969, -0.3145129680633545, -0.46409913897514343, 0.2494792938232422, 0.03157442808151245, -0.13666501641273499, 0.11840458959341049, 0.1967596858739853, 0.010785255581140518, -0.2998674809932709, -0.1330508291721344, 0.3863716721534729, -0.322211891412735, -0.00672183558344841, -0.37825021147727966, -0.04860880598425865, 0.00125972181558609, -0.09656113386154175, -0.35134127736091614, 0.6572736501693726, -0.31286004185676575, 0.31955456733703613, 0.6535773873329163, -0.4400588274002075, 0.10514231026172638, 0.33588284254074097, -0.15824568271636963, 0.0701805129647255, 0.257414847612381, 0.2086639255285263, -0.14099827408790588, -0.1859498769044876, 0.03970351442694664, 0.19965144991874695, 0.10064508765935898, -0.011301098391413689, -0.13049350678920746, -0.35124409198760986, 0.2978748679161072, 0.13513988256454468, -0.11388157308101654, 0.10454573482275009, 0.15719076991081238, 0.11192294955253601, 0.6912660002708435, -0.12591588497161865, -0.09237269312143326, 0.03141959384083748, 0.14479072391986847, 0.1361827850341797, -0.2989219129085541, -0.07240656018257141, -0.21750333905220032, 0.058395370841026306, -0.1638861894607544, 0.1528797447681427, 0.04216592758893967, -0.3561099171638489, -0.4114624261856079, -0.2857178747653961, -0.101315438747406, -0.21657302975654602, 0.21995553374290466, 0.23356252908706665, -0.1979110687971115, -0.0348968580365181, -0.11665858328342438, 0.14827390015125275, -0.3451383113861084, -0.04454396292567253, -0.012789016589522362, 0.18569017946720123, -0.18839812278747559, 0.18432505428791046, -0.17011447250843048, 0.34147197008132935, 0.05514984950423241, 0.019334206357598305, 0.29546666145324707, 0.3894861936569214, -0.18753114342689514, 0.1823352575302124, 0.21153995394706726, -0.06092390418052673, 0.1538333147764206, 0.04991025850176811, 0.014986714348196983, 0.18844808638095856, 0.26870742440223694, -0.019610386341810226, -0.4182586073875427, 0.1921834796667099, -0.013315591961145401, 0.018537893891334534, 0.14436529576778412, -0.03316839411854744, 0.05450369417667389, -0.15162962675094604, -0.2802945673465729, -0.10140445828437805, 0.1380021721124649, 0.48500293493270874, -0.13295914232730865, -0.012333201244473457, -0.5219939947128296, 0.10106166452169418, 0.3637312054634094, -0.2180003523826599, 0.38270896673202515, 0.21607565879821777, 0.12487539649009705, -0.13646402955055237, -0.07320655137300491, 0.2523784935474396, 0.4017323851585388, 0.3361784517765045, 0.033455800265073776, 0.10841014981269836, -0.059186480939388275, -0.28289908170700073, 0.40511974692344666, 0.059848904609680176, -0.0417964868247509, 0.05557790771126747, 0.07754432410001755, -0.03916175290942192, -0.14091649651527405, -0.4633480906486511, 0.061202459037303925, -0.036951079964637756, -0.16779226064682007, -0.08474523574113846, 0.20459415018558502, -0.4190807640552521, -0.2482820451259613, -0.18814072012901306, 0.03721220791339874, -0.31958043575286865, 0.04099082574248314, -0.10125763714313507, -0.24060872197151184, -0.023210005834698677, -0.1540914624929428, 0.20385874807834625, -0.49436408281326294, -0.25509968400001526, -0.04101744294166565, -0.2346537709236145, -0.20852255821228027, 0.12598949670791626, 0.1286180168390274, 0.19155238568782806, 0.5897926092147827, -0.08056080341339111, -0.18503208458423615, -0.09147236496210098, -0.46477118134498596, 0.026065394282341003, 0.006777195259928703, 0.07217191904783249, 0.38824543356895447, 0.343953013420105, 0.16710498929023743, -0.6300448775291443, 0.068596750497818, 0.2760933041572571, 0.017944758757948875, -0.3181966245174408, 0.16217084228992462, 0.003042606869712472, -0.4045962989330292, -0.4900711476802826, -0.4763674736022949, -0.4341874122619629, 0.2447912096977234, 0.14577186107635498, 0.2019689381122589, 0.28811347484588623, -0.09067073464393616, 0.2754150629043579, 0.024422522634267807, 0.2169518917798996, 0.03449041768908501, -0.16522450745105743, 0.18749496340751648, -0.24838867783546448, -0.10362768173217773, -0.04948246479034424, -0.25036531686782837, 0.22980999946594238, -0.29104018211364746, -0.3933790326118469, -0.2907726764678955, -0.02729112096130848, 0.2711294889450073, -0.06073605269193649, 0.15752474963665009, 0.24192212522029877, 0.2773003876209259, -0.1644425094127655, -0.14181120693683624, -0.22003710269927979, 0.3073384761810303, 0.2584153711795807, 0.1299012005329132, 0.13521787524223328, 0.1454809457063675, 0.12667953968048096, 0.5680389404296875, -0.08300583809614182, 0.13672374188899994, 0.37521347403526306, 0.13212358951568604, 0.24851539731025696, 0.012261219322681427, -0.12935681641101837, 0.027167214080691338, 0.08469328284263611, 0.030971284955739975, 0.34820225834846497, 0.002807953394949436, -0.48760464787483215, -0.1314392387866974, -0.25221627950668335, -0.48494312167167664, -0.16433601081371307, 0.17106817662715912, 0.13671505451202393, 0.04168140888214111, -0.027701107785105705, -0.2922355830669403, -0.24596261978149414, -0.11479361355304718, -0.0026083574630320072, 0.6157603859901428, 0.014792285859584808, 0.15185466408729553, -0.12032853066921234, -0.025607265532016754, -0.37855562567710876, -0.12607549130916595, 0.23555202782154083, -0.143119215965271, -0.18693433701992035, 0.14912140369415283, 0.007101871073246002, -0.07430435717105865, 0.31521767377853394, -0.27190831303596497, -0.00542043149471283, -0.029513448476791382, 0.342613160610199, -0.11687665432691574, 0.0129045769572258, -0.16886694729328156, 0.048911742866039276, 0.5711485147476196, 0.18892550468444824, -0.36724594235420227, -0.21240448951721191, 0.13338841497898102, 0.18889304995536804, -0.02636064775288105, -0.4036718010902405, -0.11944234371185303, -0.2835474908351898, -0.30249837040901184, -0.011132098734378815, 0.2966529428958893, -0.025031723082065582, 0.07198622822761536, -0.05124196037650108, 0.2529895305633545, -0.022765077650547028, 0.07826746255159378, 0.03066014125943184, 0.05078795924782753, 0.25300729274749756, -0.20107509195804596, -0.2664179503917694, 0.15763837099075317, -0.2857798933982849, 0.172824889421463, -0.2245800793170929, -0.015428267419338226, -0.13982003927230835, -0.35180068016052246, 0.3450155556201935, 0.3433322310447693, 0.2416277676820755, 0.17965036630630493, 0.018427694216370583, -0.09253233671188354, -0.12522050738334656, 0.22805780172348022, 0.2002691924571991, -0.207138329744339, -0.25354474782943726, -0.7419146299362183, 0.5236368775367737, -0.14772474765777588, -0.3264985978603363, 0.21131348609924316, 0.20909181237220764, -0.717789351940155, 0.15589682757854462, -0.00046572834253311157, 1.1121238470077515, -0.011614866554737091, 0.4534180164337158, 0.4342322051525116, -0.3395824432373047, 0.4590717852115631, -0.3458369970321655, -0.024220526218414307, -0.07618525624275208, 0.4775867760181427, -0.09898305684328079, 0.009596709161996841, 0.1300567239522934, 0.24201910197734833, -0.5679368376731873, 0.24189305305480957, -0.07836687564849854, 0.08266763389110565, 0.18423986434936523, 0.6741037368774414, -0.054420292377471924, -0.22298721969127655, -0.32568520307540894, 0.052049316465854645, 0.05500677600502968, -0.17364102602005005, -0.31944045424461365, -0.430999755859375, 0.1452663242816925, 0.006958477199077606, -0.1424369215965271, -0.02721896953880787, -0.05539511889219284, 0.03815415874123573, -0.4139670729637146, -0.05901174619793892, 0.2797023057937622, 0.47403910756111145, 0.07446323335170746, 0.18531250953674316, -0.2872866690158844, 0.04666859656572342, -0.34715279936790466, -0.08026657998561859, -0.026613155379891396, 0.06698548048734665, 0.05359496921300888, -0.20380067825317383, -0.1251060962677002, 0.027832861989736557, -0.23172862827777863, -0.06471624970436096, -0.3312576413154602, 0.2870537042617798, 0.23829486966133118, -0.15906710922718048, -0.331696480512619, 0.24190860986709595, -0.2796308696269989, -0.14371228218078613, 0.12663570046424866, 0.17244184017181396, -0.11520913243293762, -0.23664557933807373, -0.14775480329990387, -0.25875747203826904, -0.1599942296743393, -0.03866473585367203, -0.05725438892841339, -0.03701948747038841, 0.3837527632713318, -0.28474700450897217, -0.21899256110191345, -0.2991558611392975, 0.012251749634742737, -0.2512073218822479, -0.17279477417469025, -0.015910081565380096, 0.3289594054222107, -0.22669032216072083, -0.20102325081825256, 0.25716379284858704, 0.08364075422286987, 0.07961947470903397, -0.09792838990688324, -0.4248722493648529, 0.041981443762779236, 0.13390816748142242, -0.054476555436849594, 0.28423863649368286, -0.08597205579280853, 0.292192667722702, 0.342546284198761, -0.25045347213745117, -0.3981517553329468, 0.09872167557477951, -0.07813508808612823, 0.16495850682258606, 0.33314695954322815, 0.14438171684741974, -0.14479289948940277, 0.1806230992078781, 0.19665083289146423, -0.18322402238845825, -0.06922724843025208, -0.2875516712665558, -0.19728881120681763, 0.13098788261413574, 0.03714259713888168, 0.13305597007274628, 0.2945186495780945, -0.12328337132930756, 0.17221789062023163, -0.027445372194051743, -0.10116887092590332, -0.10415957868099213, -0.10897409915924072, 0.3042106032371521, -0.10406790673732758, 0.2730456292629242, -0.10383788496255875, 0.18656761944293976, -0.2143077254295349, 0.14223264157772064, -0.013792600482702255, 0.14514033496379852, -0.15677525103092194, 0.012175850570201874, 0.03936484083533287, 0.050429247319698334, 0.08051140606403351, 0.25286999344825745, -0.06826581805944443, -0.00893932580947876, 0.1390170454978943, 0.043851062655448914, 0.07975533604621887, 0.21961840987205505, -0.13281455636024475, 0.07016651332378387, 0.25231048464775085, 0.28186455368995667, -0.23703959584236145, 0.1878533810377121, 0.007719617336988449, -0.10728833079338074, 0.21352139115333557, 0.3309692144393921, 0.18527206778526306, -0.09686395525932312, -0.16163362562656403, -0.10421495139598846, 0.16991841793060303, -0.10448826849460602, 0.12810230255126953, 0.37584057450294495, -0.09856349974870682, 0.04659714549779892, -0.2921786904335022, 0.11988231539726257, 0.10120781511068344, 0.09815569221973419, -0.0876765176653862, 0.10706890374422073, 0.26549670100212097, 0.008022915571928024, 0.1562677025794983, 0.13154183328151703, 0.09342873096466064, 0.28335344791412354, 0.050190042704343796, 0.12266644090414047, 0.2742761969566345, 0.19079262018203735, -0.017161086201667786, 0.2154492884874344, 0.037796735763549805, 0.06988027691841125, 0.01448112167418003, -0.1754295527935028, -0.24006454646587372, -0.1769280582666397, -0.1441270411014557, -0.10635580122470856, 0.11829139292240143, -0.16868256032466888, -0.007852122187614441, -0.005489647388458252, 0.1338193565607071, -0.3095550239086151, 0.3042953610420227, 0.20305797457695007, 0.16388890147209167, -0.31034159660339355, -0.07505820691585541, 0.1624779850244522, -0.1261719912290573, 0.0716337263584137, 0.08295131474733353, 0.32469281554222107, 0.4373552203178406, -0.14518746733665466, -0.07568477094173431, 0.06949643790721893, 0.018108608201146126, -0.18825583159923553, -0.20815925300121307, 0.4691724181175232, 0.35512644052505493, 0.3199857771396637, 0.2294594645500183, -0.20028726756572723, 0.24033811688423157, 0.35229992866516113, -0.3110864758491516, -0.24975432455539703, 0.42768314480781555, 0.17592552304267883, -0.08408080041408539, 0.0937386006116867, 0.21827319264411926, -0.5586868524551392, 0.01784742996096611, 0.1582808792591095, 0.20246338844299316, 0.07035644352436066, -0.1617206335067749, 0.11776001751422882, 0.1905343234539032, 0.2689301073551178, 0.12675215303897858, 0.3046533167362213, -0.43215692043304443, 0.007103621959686279, -0.4054127633571625, -0.33890271186828613, -0.017736177891492844, -0.40994951128959656, -0.0628097802400589, 0.1460573822259903, -0.07566607743501663, 0.11167419701814651, -0.1040901392698288, 0.13567078113555908, -0.0815802812576294, 0.1391732096672058, -0.21213415265083313, 0.055206410586833954, 0.3021738529205322, 0.2880561351776123, 0.2133047729730606, -0.30765601992607117, -0.18777017295360565, -0.41997531056404114, 0.08234892040491104, -0.10651132464408875, 0.2915761172771454, 0.21642674505710602, 0.3368939161300659, 0.20772454142570496, -0.16518214344978333, 0.3512836992740631, -0.28091102838516235, -0.2177720069885254, -0.09979121387004852, -0.03907085210084915, -0.29438507556915283, 0.12818646430969238, 0.15415053069591522, 0.21692492067813873, -0.35826265811920166, 0.1460355818271637, -0.1336454451084137, -0.04575600102543831, 0.06289724260568619, 0.3556485176086426, -0.18304941058158875, 0.04346330463886261, 0.08315195888280869, 0.19908927381038666, -0.02744489163160324, 0.23702004551887512, -0.17462709546089172, 0.02601674757897854, -0.16396893560886383, -0.2368675023317337, 0.45401445031166077, -0.2741255760192871, -0.2512025535106659, 0.1896473914384842, 0.25572505593299866, -0.018873289227485657, 0.3459617495536804, -0.5796489715576172, 0.001286327838897705, 0.44783473014831543, 0.0689653754234314, -0.19141465425491333, 0.11426259577274323, -0.0763733834028244, -0.13723300397396088, 0.025396008044481277, -0.008226394653320312, -0.09919335693120956, -0.2641787528991699, -0.08040575683116913, -0.47293126583099365 ]
https://github.com/huggingface/datasets/pull/102
Run save infos
Haha that cornell dialogue dataset - that ran for 3h on my computer as well. The `generate_examples` method in this script is one of the most inefficient code samples I've ever seen :D
I replaced the old checksum file with the new `dataset_infos.json` by running the script on almost all the datasets we have. The only one that is still running on my side is the cornell dialog
33
text: Run save infos I replaced the old checksum file with the new `dataset_infos.json` by running the script on almost all the datasets we have. The only one that is still running on my side is the cornell dialog Haha that cornell dialogue dataset - that ran for 3h on my computer as well. The `generate_examples` method in this script is one of the most inefficient code samples I've ever seen :D
[ -0.37360790371894836, 0.5998647212982178, -0.15779650211334229, -0.06617507338523865, -0.008747000247240067, 0.06410747021436691, 0.2468593418598175, 0.6795271039009094, 0.14491409063339233, 0.19633445143699646, 0.14637906849384308, 0.3472042977809906, 0.1481456756591797, 0.16997100412845612, -0.1178644448518753, 0.3908144533634186, 0.11121225357055664, 0.24255253374576569, 0.13968493044376373, -0.02739088609814644, -0.3761442005634308, -0.08328423649072647, -0.1891562044620514, -0.26065683364868164, -0.12105254083871841, -0.10808996111154556, 0.09648251533508301, 0.37838849425315857, 0.0010570278391242027, -0.4634774327278137, -0.04692806303501129, 0.38864830136299133, -0.16950702667236328, 0.09398141503334045, -0.00010467833635630086, -0.22690901160240173, 0.507472038269043, -0.131174698472023, -0.6035106778144836, 0.4023416042327881, -0.3283924162387848, -0.029625974595546722, -0.04145690053701401, -0.5320217609405518, 0.21778973937034607, -0.04350358992815018, 0.3383379578590393, -0.14138072729110718, 0.023809202015399933, 0.2169957458972931, 0.24324549734592438, 0.21612480282783508, -0.07958366721868515, -0.27854815125465393, 0.17955079674720764, 0.16898418962955475, 0.1379462480545044, 0.05665964633226395, 0.3309357166290283, -0.07912465929985046, -0.08086322993040085, 0.4647166430950165, -0.37137606739997864, -0.25588858127593994, 0.11284209787845612, -0.17157305777072906, 0.11955109238624573, 0.1307394802570343, 0.18898549675941467, 0.14432376623153687, 0.2941530644893646, -0.24897897243499756, 0.03839334100484848, 0.031556159257888794, -0.10445372015237808, -0.2544991970062256, 0.07537667453289032, 0.01814703643321991, -0.1380487084388733, -0.009294092655181885, -0.33183735609054565, -0.22767256200313568, 0.023208096623420715, 0.08280276507139206, 0.2713633179664612, 0.13441187143325806, -0.09319975972175598, -0.059247829020023346, 0.1185990422964096, -0.005483653396368027, 0.11185180395841599, 0.127326101064682, -0.2110467553138733, -0.21361485123634338, -0.17589250206947327, -0.28740233182907104, 0.21007609367370605, 0.04483447223901749, 0.3535616993904114, 0.3685636520385742, 0.013516699895262718, 0.3666500747203827, -0.08492722362279892, 0.2250421941280365, -0.16134195029735565, 0.04487999528646469, 0.5572567582130432, -0.0885409489274025, 0.362648069858551, 0.43634676933288574, -0.07322517037391663, 0.051780711859464645, -0.08772924542427063, -0.22353442013263702, 0.23145733773708344, 0.1631820797920227, 0.3567501902580261, -0.3313366174697876, -0.016210436820983887, 0.4607565999031067, 0.20703807473182678, -0.12990063428878784, 0.022394422441720963, 0.36931899189949036, -0.21784034371376038, -0.03432975709438324, 0.24597544968128204, -0.16620302200317383, -0.07050642371177673, -0.2738648056983948, -0.11150296032428741, 0.1308984011411667, -0.23254086077213287, 0.0741489976644516, 0.21660088002681732, 0.026197895407676697, 0.42323732376098633, -0.1291378289461136, 0.21225260198116302, -0.047182098031044006, 0.1286362111568451, 0.04926149919629097, 0.15065261721611023, 0.4091397523880005, 0.14712579548358917, 0.008409662172198296, 0.0638091042637825, -0.17015492916107178, -0.2595613896846771, 0.18908485770225525, -0.06594342738389969, -0.20599958300590515, 0.019127707928419113, 0.25166529417037964, -0.04006228223443031, -0.02584441751241684, 0.0667538046836853, -0.13742905855178833, 0.10561009496450424, -0.29590994119644165, 0.1423088014125824, -0.11469791829586029, -0.14633822441101074, -0.2612118422985077, 0.036420419812202454, 0.47374212741851807, -0.3733814060688019, 0.29072636365890503, -0.12818342447280884, -0.11097362637519836, -0.1610366404056549, 0.06102321296930313, -0.10254467278718948, 0.2158288061618805, -0.04449405148625374, 0.02880185842514038, 0.31449636816978455, -0.4966386556625366, -0.31139862537384033, -0.027236737310886383, 0.05647052824497223, -0.2391468733549118, 0.0985066145658493, 0.05726040527224541, 0.1246197447180748, -0.2315661460161209, 0.031080901622772217, -0.03604713827371597, 0.07848870009183884, 0.09639129787683487, -0.19713325798511505, -0.3374689817428589, -0.15686674416065216, 0.3225376605987549, 0.025022028014063835, -0.18702581524848938, 0.010312385857105255, 0.17654560506343842, 0.40968167781829834, -0.19938600063323975, 0.08238151669502258, 0.203257218003273, 0.586098313331604, 0.07136673480272293, -0.017732858657836914, -0.15744417905807495, -0.15857720375061035, 0.10009292513132095, 0.19136092066764832, -0.2069377601146698, 0.1798756867647171, -0.23510786890983582, -0.18584269285202026, -0.10467725992202759, -0.06826435029506683, -0.10451458394527435, 0.19902336597442627, 0.2716982364654541, 0.18034867942333221, -0.14255186915397644, -0.402446985244751, 0.06413668394088745, -0.5006086230278015, 0.09526652842760086, -0.5308771133422852, -0.22698481380939484, 0.008785674348473549, -0.1818031221628189, 0.0366416871547699, -0.2879141569137573, 0.013892702758312225, -0.06284625828266144, -0.11993799358606339, 0.6730186343193054, 0.1941557079553604, 0.0038969814777374268, 0.14531412720680237, 0.17231230437755585, -0.348955899477005, -0.010480470955371857, 0.355184942483902, 0.1213911771774292, -0.031813278794288635, 0.05715703219175339, -0.41328778862953186, 0.20305143296718597, -0.12902159988880157, 0.07891228795051575, -0.06339193880558014, -0.036584727466106415, 0.16661599278450012, -0.4337676465511322, -0.21365007758140564, -0.17577219009399414, -0.07113970816135406, 0.36309242248535156, -0.049334973096847534, -0.01932487078011036, -0.1694917380809784, 0.1972362995147705, 0.6766368746757507, -0.2161691039800644, -0.03993932157754898, 0.22274726629257202, -0.003765605390071869, -0.07878156006336212, -0.008454341441392899, 0.1949240118265152, 0.38114291429519653, 0.280435174703598, -0.03781166300177574, 0.15726901590824127, -0.03217208385467529, -0.1960943043231964, 0.24443086981773376, -0.02912534773349762, 0.2821499705314636, 0.21334397792816162, -0.11242564022541046, -0.24352331459522247, -0.3059566617012024, -0.305530309677124, -0.048199594020843506, 0.29910215735435486, -0.010390959680080414, 0.09606131166219711, -0.34965458512306213, -0.17648324370384216, -0.08651508390903473, 0.08761700987815857, 0.12377342581748962, -0.3108852803707123, 0.09294484555721283, 0.3933791220188141, -0.33046916127204895, 0.20142371952533722, -0.07595111429691315, 0.38981711864471436, 0.0885523110628128, 0.09495660662651062, -0.14751267433166504, -0.19982434809207916, -0.06544683128595352, 0.13349059224128723, 0.3080739974975586, 0.4017517566680908, 0.42423734068870544, -0.551629900932312, 0.02105538919568062, -0.39196881651878357, -0.1784011423587799, 0.09419894218444824, 0.07251390814781189, 0.029034920036792755, 0.26908642053604126, 0.2780248522758484, -0.06277674436569214, -0.35237666964530945, 0.10972514748573303, -0.21624065935611725, -0.23541207611560822, -0.1516871452331543, 0.02873273193836212, -0.11836696416139603, -0.1332903504371643, -0.24727720022201538, 0.20818760991096497, -0.3333652913570404, 0.24788248538970947, -0.0604218989610672, 0.26981255412101746, 0.06341001391410828, 0.08267366141080856, 0.3182903826236725, -0.26047706604003906, 0.23168709874153137, -0.23290623724460602, -0.567539393901825, 0.23829494416713715, -0.17919540405273438, -0.2181531935930252, 0.23898941278457642, 0.17169089615345, 0.012903012335300446, -0.1900957226753235, -0.2690286934375763, -0.12278906255960464, -0.3194129467010498, -0.04756133630871773, -0.008132468909025192, 0.12797462940216064, 0.432746559381485, 0.04537881538271904, -0.2651178240776062, -0.13552087545394897, -0.22054634988307953, -0.013501584529876709, -0.10915202647447586, 0.19548150897026062, -0.08117830008268356, 0.4070536196231842, -0.12649060785770416, -0.135227769613266, 0.5586376786231995, 0.05963395908474922, -0.3509701192378998, 0.027349423617124557, 0.4167950451374054, -0.08285733312368393, -0.19023674726486206, 0.05785848945379257, -0.027666166424751282, -0.37555992603302, 0.20698772370815277, -0.15547814965248108, -0.10175120085477829, 0.011472243815660477, -0.2749392092227936, -0.4035273492336273, -0.5271521806716919, 0.08322431892156601, -0.10536403954029083, 0.031038518995046616, 0.08281046152114868, 0.14666348695755005, -0.1394946128129959, 0.1874200403690338, 0.09930256009101868, 0.5192327499389648, -0.08945288509130478, -0.27278077602386475, -0.47267740964889526, 0.12187124788761139, -0.051346927881240845, 0.3098154664039612, -0.2698388993740082, 0.10465430468320847, -0.15032009780406952, -0.29873406887054443, -0.10107111930847168, -0.30740103125572205, 0.20037373900413513, -0.37229984998703003, 0.05605996772646904, 0.2289217710494995, 0.07118283957242966, 0.08374126255512238, -0.09544984996318817, -0.3119204640388489, 0.04554508626461029, 0.41089457273483276, 0.3132510483264923, -0.14757198095321655, -0.07045844197273254, 0.4971065819263458, 0.2992388904094696, -0.23977091908454895, -0.00425571808591485, -0.22870729863643646, -0.38854631781578064, -0.4650166928768158, 0.272612601518631, -0.05301186442375183, -0.15510819852352142, -0.12843748927116394, 0.05909443274140358, 0.07521059364080429, -0.00848304107785225, 0.16820307075977325, 0.17375865578651428, 0.14041462540626526, 0.036544546484947205, 0.0182640440762043, 0.025080617517232895, -0.0972139984369278, 0.4611603021621704, 0.31958702206611633, 0.15144406259059906, -0.054749682545661926, 0.06676257401704788, -0.00953733455389738, 0.3229818642139435, 0.37747833132743835, 0.05847163498401642, -0.16081449389457703, 0.3352545201778412, 0.29258832335472107, 0.011243741028010845, 0.10888996720314026, -0.07316980510950089, 0.0557505339384079, -0.31810232996940613, -0.3132113516330719, 0.03889690339565277, -0.10883674025535583, -0.11023706197738647, 0.22396132349967957, -0.2768145203590393, -0.019959164783358574, 0.24337543547153473, 0.1810539960861206, 0.9480020403862, -0.08954952657222748, 0.06580126285552979, 0.08723342418670654, -0.0950888842344284, 0.20574533939361572, -0.307717502117157, 0.02398310974240303, -0.4020909368991852, -0.3141418695449829, 0.09097920358181, -0.13493305444717407, 0.26193904876708984, -0.03837490826845169, -0.412874311208725, 0.013120051473379135, -0.07542674988508224, 0.18581323325634003, -0.07724562287330627, 0.4242917001247406, -0.315084844827652, -0.2019539624452591, 0.012289770878851414, 0.21566885709762573, 0.028808895498514175, -0.06402072310447693, -0.020828034728765488, 0.011804034933447838, -0.1374569982290268, -0.03146357834339142, -0.09163595736026764, 0.2325083613395691, 0.2857204079627991, 0.06421023607254028, -0.006862066686153412, 0.14481766521930695, -0.19257418811321259, 0.10626941919326782, 0.3920798897743225, 0.6759976148605347, -0.07002311944961548, 0.24885404109954834, 0.2823646664619446, 0.03177383169531822, -0.09260956197977066, -0.30196911096572876, 0.22028236091136932, -0.08376270532608032, -0.392394095659256, 0.19251927733421326, -0.10668045282363892, -0.28583428263664246, -0.15984277427196503, -0.0594363808631897, -0.23019109666347504, -0.2913682758808136, -0.09450842440128326, 0.13626129925251007, -0.228488951921463, -0.291968435049057, 0.2264723777770996, 0.32999593019485474, 0.08713768422603607, 0.4057435989379883, 0.18185536563396454, -0.2016274333000183, -0.07672424614429474, 0.19113877415657043, 0.12015847861766815, -0.08905048668384552, 0.3275511562824249, 0.04876568540930748, -0.14458060264587402, -0.5194395184516907, 0.07493413239717484, 0.09346115589141846, 0.05016975849866867, 0.1711922138929367, 0.0009592215064913034, 0.09329727292060852, 0.19488433003425598, 0.17393317818641663, 0.09051619470119476, 0.11261402815580368, -0.18624883890151978, -0.35508185625076294, -0.5165516138076782, 0.34455400705337524, 0.37050220370292664, 0.370206743478775, -0.04504285752773285, 0.05846719071269035, -0.2791357636451721, -0.06271082907915115, -0.44185057282447815, 0.005582485813647509, -0.23912358283996582, 0.04398801922798157, -0.012900564819574356, -0.013599522411823273, 0.08546573668718338, -0.1086743026971817, 0.17816568911075592, 0.11687582731246948, -0.10308398306369781, -0.26974186301231384, -0.25739142298698425, 0.1161569207906723, 0.024825364351272583, 0.07805615663528442, 0.03565990924835205, -0.2642099857330322, -0.030305534601211548, -0.21549908816814423, 0.045363154262304306, 0.06579010933637619, 0.008867882192134857, 0.2812179923057556, -0.0014299862086772919, 0.022065438330173492, 0.2935304641723633, -0.10666990280151367, -0.15229801833629608, -0.00174751877784729, -0.38631677627563477, 0.03235790133476257, -0.23168499767780304, -0.12120494246482849, 0.29093462228775024, 0.33139240741729736, -0.021193355321884155, 0.1154075488448143, 0.18043778836727142, 0.12996302545070648, -0.22946955263614655, -0.04897831007838249, 0.3310833275318146, 0.6231908798217773, -0.17832835018634796, -0.30180874466896057, 0.18280431628227234, 0.2639792859554291, -0.3081691861152649, -0.041721656918525696, 0.13811247050762177, -0.2821880280971527, -0.0608643963932991, 0.1586395651102066, -0.17228975892066956, -0.13125035166740417, 0.5219455361366272, 0.11737846583127975, 0.08666856586933136, -0.19919262826442719, 0.20043061673641205, 0.3269311189651489, -0.1315554827451706, -0.1795593500137329, 0.26830047369003296, 0.03658754751086235, 0.26275119185447693, 0.29132938385009766, 0.13812299072742462, 0.28113535046577454, -0.09936007112264633, 0.3419143557548523, -0.1639864444732666, -0.24064937233924866, 0.3333866000175476, 0.15392227470874786, -0.2923925518989563, 0.08912854641675949, 0.1287992298603058, 0.3837033808231354, -0.13662639260292053, 0.22160543501377106, -0.46571218967437744, 0.35851457715034485, -0.1532261073589325, -0.12153391540050507, -0.32683277130126953, -0.19549182057380676, 0.17035970091819763, 0.14998996257781982, 0.13952195644378662, 0.23116019368171692, 0.07231833785772324, -0.02056550234556198, -0.14659589529037476, -0.038322217762470245, 0.2807510197162628, -0.29934149980545044, 0.0906796082854271, -0.3193736672401428, -0.3133901357650757, -0.04027038812637329, 0.05200217664241791, 0.03407333791255951, 0.26625126600265503, 0.27796924114227295, 0.3603086471557617, 0.2162005752325058, 0.18508458137512207, -0.12751728296279907, -0.04787794500589371, -0.10855003446340561, 0.21981729567050934, 0.29972362518310547, -0.15277257561683655, 0.14701202511787415, 0.28737813234329224, -0.21146053075790405, 0.05213616043329239, -0.2756025791168213, -0.14491741359233856, 0.2264537513256073, -0.02121233195066452, 0.4947897791862488, 0.009053580462932587, -0.21823439002037048, 0.15411144495010376, -0.6070836782455444, -0.505866289138794, 0.33118340373039246, 0.14578436315059662, 0.168442964553833, -0.1362878680229187, 0.15016193687915802, -0.13220232725143433, 0.3639620244503021, 0.10899929702281952, -0.2881280183792114, -0.008642963133752346, -0.46530747413635254, -0.5220904350280762, -0.0021654516458511353, -0.08683179318904877, -0.11857471615076065, 0.07620561122894287, 0.095921091735363, 0.1622769981622696, 0.17298392951488495, 0.23001232743263245, -0.4798961877822876, -0.31935858726501465, 0.053543951362371445, -0.26961398124694824, 0.2705458402633667, 0.12982669472694397, -0.02736118994653225, 0.1789187341928482, -0.3189249336719513, 0.2527509927749634, 0.027902234345674515, 0.207275390625, -0.18310469388961792, -0.04092981666326523, 0.24765858054161072, 0.12852199375629425, 0.41941338777542114, 0.0023379456251859665, 0.15034326910972595, -0.20926350355148315, -0.2855123281478882, -0.12729516625404358, 0.1678871512413025, 0.09824313968420029, 0.3197508752346039, 0.16036926209926605, 0.34834107756614685, 0.003376675769686699, 0.10926653444766998, -0.23410330712795258, 0.33216404914855957, -0.1373865008354187, -0.4207534193992615, -0.18109139800071716, 0.04743094742298126, -0.03192197531461716, 0.3565259873867035, 0.077581986784935, 0.03206375986337662, -0.06839592754840851, 0.29165351390838623, -0.5421750545501709, -0.15899808704853058, 0.5943149328231812, 0.0839080959558487, -0.3935311436653137, -0.13807930052280426, 0.36539387702941895, -0.25671494007110596, -0.03144363313913345, -0.4264349043369293, 0.168625146150589, 0.026612184941768646, 0.15060077607631683, -0.26361265778541565, 0.3474292457103729, -0.3131176829338074, 0.08129756152629852, -0.013785146176815033, 0.4323495030403137, 0.049374498426914215, -0.2724379897117615, -0.522422730922699, -0.18090133368968964 ]
https://github.com/huggingface/datasets/pull/100
Add per type scores in seqeval metric
Can you put the kwargs as normal kwargs instead of a dict? (And add them to the kwargs description As well)
This PR add a bit more detail in the seqeval metric. Now the usage and output are: ```python import nlp met = nlp.load_metric('metrics/seqeval') references = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] predictions = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] met.compute(predictions, references) #Output: {'PER': {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 1}, 'MISC': {'precision': 0.0, 'recall': 0.0, 'f1': 0, 'number': 1}, 'overall_precision': 0.5, 'overall_recall': 0.5, 'overall_f1': 0.5, 'overall_accuracy': 0.8} ``` It is also possible to compute scores for non IOB notations, POS tagging for example hasn't this kind of notation. Add `suffix` parameter: ```python import nlp met = nlp.load_metric('metrics/seqeval') references = [['O', 'O', 'O', 'MISC', 'MISC', 'MISC', 'O'], ['PER', 'PER', 'O']] predictions = [['O', 'O', 'MISC', 'MISC', 'MISC', 'MISC', 'O'], ['PER', 'PER', 'O']] met.compute(predictions, references, metrics_kwargs={"suffix": True}) #Output: {'PER': {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 1}, 'MISC': {'precision': 0.0, 'recall': 0.0, 'f1': 0, 'number': 1}, 'overall_precision': 0.5, 'overall_recall': 0.5, 'overall_f1': 0.5, 'overall_accuracy': 0.9} ```
21
text: Add per type scores in seqeval metric This PR add a bit more detail in the seqeval metric. Now the usage and output are: ```python import nlp met = nlp.load_metric('metrics/seqeval') references = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] predictions = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] met.compute(predictions, references) #Output: {'PER': {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 1}, 'MISC': {'precision': 0.0, 'recall': 0.0, 'f1': 0, 'number': 1}, 'overall_precision': 0.5, 'overall_recall': 0.5, 'overall_f1': 0.5, 'overall_accuracy': 0.8} ``` It is also possible to compute scores for non IOB notations, POS tagging for example hasn't this kind of notation. Add `suffix` parameter: ```python import nlp met = nlp.load_metric('metrics/seqeval') references = [['O', 'O', 'O', 'MISC', 'MISC', 'MISC', 'O'], ['PER', 'PER', 'O']] predictions = [['O', 'O', 'MISC', 'MISC', 'MISC', 'MISC', 'O'], ['PER', 'PER', 'O']] met.compute(predictions, references, metrics_kwargs={"suffix": True}) #Output: {'PER': {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 1}, 'MISC': {'precision': 0.0, 'recall': 0.0, 'f1': 0, 'number': 1}, 'overall_precision': 0.5, 'overall_recall': 0.5, 'overall_f1': 0.5, 'overall_accuracy': 0.9} ``` Can you put the kwargs as normal kwargs instead of a dict? (And add them to the kwargs description As well)
[ -0.1655229926109314, -0.28705868124961853, -0.13048982620239258, 0.059563376009464264, 0.16064459085464478, -0.06815492361783981, -0.13614928722381592, 0.13566173613071442, 0.09036010503768921, 0.15689392387866974, -0.3011404871940613, 0.28772222995758057, -0.12711122632026672, 0.4348790645599365, 0.061472393572330475, 0.0034532807767391205, -0.1547906994819641, 0.24477219581604004, 0.09465872496366501, -0.06956197321414948, -0.3706667125225067, 0.08043811470270157, -0.24460069835186005, 0.11149269342422485, -0.0982988104224205, -0.021331867203116417, 0.02166392095386982, -0.07850217074155807, -0.3637409508228302, -0.4846479296684265, 0.07030337303876877, 0.04829108715057373, -0.18539853394031525, 0.07185646146535873, -0.0000999552576104179, -0.23276659846305847, 0.2046763300895691, -0.15954305231571198, -0.01688140071928501, -0.17446593940258026, -0.36676475405693054, -0.35939282178878784, 0.06346313655376434, -0.3922887146472931, -0.10519286245107651, -0.17000837624073029, 0.1660526990890503, -0.05251183360815048, 0.0419461727142334, 0.3900785446166992, 0.28196999430656433, 0.14404694736003876, 0.03101152554154396, -0.0597245916724205, 0.005802251398563385, -0.06456318497657776, -0.1274711638689041, 0.26735925674438477, -0.19878989458084106, 0.0900801569223404, -0.08787909895181656, 0.24152103066444397, 0.14271079003810883, -0.27449747920036316, 0.18440920114517212, 0.25337570905685425, 0.41237157583236694, -0.016416054219007492, -0.13393887877464294, -0.034762926399707794, 0.18190865218639374, -0.0976836159825325, -0.3263765275478363, 0.10601263493299484, 0.0353926457464695, -0.6955927610397339, -0.2275313138961792, 0.023901131004095078, 0.12705610692501068, -0.3401274085044861, -0.14034341275691986, 0.36210399866104126, -0.3142000734806061, 0.002306908369064331, -0.06885990500450134, 0.4710535407066345, -0.07998426258563995, 0.027777958661317825, -0.020662885159254074, -0.1961996704339981, -0.38939088582992554, 0.06452992558479309, 0.09523677825927734, 0.0927184671163559, -0.4371970295906067, -0.22138948738574982, 0.10507534444332123, 0.09666772186756134, 0.0230124332010746, 0.07023006677627563, 0.3892096281051636, 0.16083738207817078, 0.24739420413970947, 0.16779640316963196, -0.026469755917787552, 0.4888911545276642, 0.3552398681640625, 0.15391889214515686, 0.10174589604139328, 0.20641788840293884, 0.06597849726676941, -0.085609570145607, 0.30091091990470886, -0.14562691748142242, 0.21213185787200928, 0.08385882526636124, -0.16245058178901672, -0.1752922385931015, -0.4132024943828583, -0.12703219056129456, -0.20977535843849182, -0.016775833442807198, 0.08296744525432587, 0.23289239406585693, -0.09650932997465134, -0.01110871508717537, 0.15508022904396057, 0.2959476709365845, -0.015455346554517746, 0.08603855222463608, -0.19894880056381226, 0.19253768026828766, -0.13611695170402527, 0.019109822809696198, 0.08287371695041656, 0.2538847327232361, 0.2850513160228729, -0.13071274757385254, 0.10683037340641022, -0.20266252756118774, 0.033004142343997955, -0.08961828052997589, 0.04730658233165741, -0.06312298774719238, -0.05841650441288948, -0.2406388521194458, 0.018071584403514862, -0.2845569849014282, -0.27005717158317566, -0.045695312321186066, 0.027573205530643463, -0.12741272151470184, 0.05453534051775932, 0.3333118259906769, -0.02375374361872673, -0.2572565972805023, 0.1336756944656372, 0.46385806798934937, 0.010963939130306244, -0.008089747279882431, 0.06165963038802147, 0.022031445056200027, -0.3552689254283905, -0.10315763205289841, 0.17573602497577667, -0.11464400589466095, 0.029728662222623825, -0.3405134081840515, 0.06342720985412598, 0.032581280916929245, 0.18783333897590637, 0.12116897106170654, 0.15179049968719482, 0.32205212116241455, 0.0036654602736234665, 0.300478458404541, 0.8270946741104126, -0.38197287917137146, -0.06240855157375336, -0.14895763993263245, 0.17584116756916046, -0.2221648395061493, 0.25273722410202026, 0.18896178901195526, 0.3249877095222473, 0.09302962571382523, 0.18340924382209778, 0.19187578558921814, -0.022285589948296547, -0.06338128447532654, -0.3207974433898926, 0.07675378769636154, -0.07913312315940857, 0.24451379477977753, 0.21877111494541168, -0.06483491510152817, 0.19101057946681976, 0.2182130366563797, 0.03812923654913902, -0.16832609474658966, 0.028456224128603935, -0.2439429610967636, 0.031007636338472366, -0.28275084495544434, 0.08541930466890335, -0.4701092541217804, 0.12561747431755066, -0.005941074341535568, -0.5527346134185791, 0.3797405958175659, 0.12628647685050964, -0.14515766501426697, -0.6582087874412537, -0.061543092131614685, -0.15960194170475006, -0.08214704692363739, 0.4102735221385956, -0.2467392385005951, 0.0011487305164337158, 0.08597365021705627, 0.012554880231618881, -0.17648188769817352, 0.15745346248149872, -0.07652334868907928, -0.05398337170481682, -0.05702193081378937, -0.23217953741550446, -0.2369362711906433, 0.09337449073791504, 0.8228646516799927, 0.21281683444976807, 0.3501881957054138, 0.07371510565280914, 0.1839418113231659, -0.15484744310379028, -0.11450022459030151, 0.23975300788879395, 0.2850629687309265, 0.12338294833898544, 0.12032639980316162, 0.1729450821876526, 0.019719893112778664, 0.19114115834236145, -0.10425688326358795, 0.004181794822216034, 0.5825056433677673, 0.25780102610588074, 0.2877263128757477, -0.1439049243927002, 0.04883600026369095, -0.028083201497793198, -0.0732785016298294, -0.19225512444972992, -0.17133858799934387, 0.22782132029533386, 0.03228342533111572, -0.19967593252658844, -0.10869769752025604, -0.011097751557826996, -0.00739511102437973, 0.3864486813545227, -0.2373894304037094, 0.21174749732017517, -0.008212532848119736, -0.015376076102256775, -0.03837747871875763, -0.08420867472887039, -0.39997491240501404, 0.20018136501312256, 0.20029856264591217, 0.23107820749282837, -0.0354379266500473, -0.11398874968290329, -0.11556161940097809, 0.19825869798660278, 0.019593089818954468, -0.18323016166687012, 0.34887537360191345, 0.20001237094402313, -0.16224989295005798, -0.21007317304611206, -0.03255452215671539, -0.23364892601966858, -0.037650398910045624, -0.22131963074207306, 0.08393816649913788, -0.07328267395496368, -0.10837545245885849, -0.1807979941368103, -0.09763268381357193, -0.22297662496566772, -0.5339148044586182, 0.2418866753578186, -0.20652499794960022, 0.03053681179881096, 0.24555741250514984, 0.1677059382200241, 0.4072670340538025, 0.10223974287509918, 0.02918892167508602, -0.05681323632597923, -0.29109135270118713, -0.16230246424674988, 0.25508755445480347, -0.14509932696819305, 0.1567472219467163, 0.4955805540084839, -0.16499562561511993, 0.2556738257408142, 0.06555526703596115, -0.5706254839897156, -0.034991733729839325, -0.12459114193916321, 0.3812941312789917, 0.21538424491882324, -0.4733983874320984, -0.1042574942111969, -0.09179367870092392, 0.18761149048805237, -0.19216585159301758, -0.16080109775066376, 0.2405320703983307, -0.43718811869621277, 0.19515621662139893, -0.14351867139339447, -0.21701642870903015, -0.23187710344791412, -0.25794053077697754, 0.37626928091049194, 0.16193538904190063, 0.276620090007782, -0.16007672250270844, -0.3307490050792694, 0.3446767032146454, -0.036127395927906036, 0.27045533061027527, -0.28148317337036133, 0.215562105178833, 0.3723079264163971, -0.25377321243286133, -0.13659492135047913, 0.07978162169456482, -0.2404828667640686, 0.5663445591926575, -0.33412444591522217, 0.0504397377371788, -0.3803894817829132, 0.12113465368747711, 0.09465153515338898, -0.010104399174451828, 0.11915256828069687, 0.1626317799091339, -0.07490786164999008, -0.20752517879009247, -0.05867243558168411, -0.1311543881893158, 0.17101985216140747, -0.030399516224861145, 0.12312719225883484, -0.10338103026151657, 0.3091829717159271, 0.21219685673713684, 0.14165697991847992, -0.0478665828704834, 0.03406889736652374, 0.0861298069357872, 0.061293549835681915, 0.06738634407520294, 0.10474054515361786, -0.120915986597538, 0.3145162761211395, 0.04110477864742279, 0.04032094031572342, 0.25853049755096436, 0.03152625635266304, -0.05473748594522476, -0.054413311183452606, 0.07622228562831879, -0.17661038041114807, -0.17174427211284637, 0.17421725392341614, -0.05875077843666077, 0.058471716940402985, -0.05205371230840683, -0.12837299704551697, -0.2179786115884781, -0.12805666029453278, 0.08021712303161621, 0.18216505646705627, -0.11244920641183853, -0.16029469668865204, -0.10121218115091324, -0.28186631202697754, -0.40455326437950134, 0.35514408349990845, 0.057192228734493256, -0.09866346418857574, 0.1014474481344223, 0.08910440653562546, 0.04773109033703804, 0.16424857079982758, 0.10090295970439911, -0.17612287402153015, -0.06950332224369049, 0.06396336853504181, 0.06967998296022415, -0.24340827763080597, 0.12296353280544281, -0.47149041295051575, -0.10075129568576813, 0.3737071454524994, 0.2774806618690491, -0.6476874947547913, -0.036234430968761444, 0.34768375754356384, -0.06292491406202316, -0.11751382052898407, -0.2870466113090515, -0.28125056624412537, -0.15418602526187897, 0.04766373336315155, 0.23258113861083984, 0.045705266296863556, 0.23923112452030182, -0.035750895738601685, -0.006541982293128967, -0.19519467651844025, -0.0561465322971344, 0.14261537790298462, -0.05456703528761864, 0.21252554655075073, 0.020544355735182762, -0.22283147275447845, -0.17456012964248657, -0.0795469731092453, -0.3529099225997925, 0.04908419027924538, -0.01376296952366829, -0.31301262974739075, 0.15281718969345093, -0.24766546487808228, 0.3665662109851837, -0.06623651087284088, 0.10576016455888748, 0.16502724587917328, -0.23313501477241516, 0.10119827836751938, -0.2409704625606537, 0.07587163150310516, 0.2621005177497864, 0.21856354176998138, 0.08037091791629791, 0.04233615845441818, 0.6669144034385681, 0.26314082741737366, -0.12726862728595734, -0.33856773376464844, 0.1352013796567917, -0.4804229438304901, 0.4211885333061218, 0.32040032744407654, 0.599959135055542, -0.08053740859031677, 0.079282745718956, 0.18693017959594727, -0.04934040829539299, 0.4471479654312134, -0.18106237053871155, 0.20242668688297272, -0.3826899230480194, -0.06444251537322998, 0.1096077710390091, 0.10310773551464081, -0.023723572492599487, -0.031685978174209595, -0.3942566514015198, 0.33392012119293213, 0.1016385555267334, 0.13710252940654755, 0.17031192779541016, -0.011305786669254303, -0.015159925445914268, -0.2660840153694153, -0.49542051553726196, 0.22495627403259277, -0.1404999941587448, -0.31380513310432434, 0.012903736904263496, -0.014517765492200851, -0.06113281100988388, 0.057020850479602814, -0.009950853884220123, -0.23552778363227844, -0.046169936656951904, -0.16898766160011292, -0.09253230690956116, -0.08420997112989426, 0.03869158402085304, 0.13808807730674744, 0.18915635347366333, 0.07882070541381836, -0.11312122642993927, -0.1211315244436264, -0.06527320295572281, 0.27873021364212036, 0.21424682438373566, 0.04574180021882057, -0.023994801566004753, -0.21387320756912231, -0.22067603468894958, 0.17004545032978058, 0.11791743338108063, -0.1676177680492401, 0.11370140314102173, 0.16151832044124603, -0.10670320689678192, -0.258200466632843, 0.19881007075309753, -0.07515661418437958, 0.003816526383161545, -0.2094753384590149, 0.24497240781784058, 0.16859036684036255, -0.29718372225761414, 0.4068419635295868, -0.018553879112005234, -0.16430717706680298, 0.07849793136119843, 0.00770936906337738, 0.17300647497177124, -0.029899390414357185, 0.1596021056175232, -0.38868436217308044, -0.1091926097869873, -0.23261326551437378, -0.18081426620483398, -0.11663911491632462, 0.08905287832021713, 0.09908643364906311, 0.1650240570306778, -0.32932358980178833, 0.044024188071489334, 0.5539847016334534, 0.2492002546787262, 0.23479914665222168, -0.032234497368335724, -0.2675046920776367, -0.08104488253593445, 0.26680994033813477, 0.03928911313414574, 0.10703303664922714, -0.2339843511581421, 0.19304583966732025, -0.06181119382381439, 0.16789184510707855, -0.46679189801216125, -0.20343035459518433, -0.30346915125846863, 0.35296523571014404, -0.05015513300895691, -0.2894318699836731, 0.11583730578422546, 0.4099857807159424, 0.2654452919960022, 0.1680050492286682, -0.13822583854198456, -0.3453345000743866, -0.060630206018686295, 0.05175402760505676, 0.07023514062166214, 0.18925414979457855, -0.019908733665943146, 0.3023885488510132, -0.17325973510742188, -0.1330662965774536, -0.08943471312522888, -0.13688501715660095, -0.08690209686756134, 0.45306500792503357, 0.07474261522293091, 0.4649754762649536, 0.21788223087787628, -0.11220204830169678, 0.0765099823474884, 0.09847243875265121, -0.050198446959257126, 0.2027544379234314, -0.30161407589912415, 0.013374492526054382, 0.3502190411090851, 0.2137841284275055, 0.11504827439785004, 0.15705956518650055, 0.28948596119880676, -0.09905219078063965, -0.2628755569458008, 0.1232987493276596, 0.32099610567092896, 0.1539706438779831, 0.0473477803170681, -0.3479446768760681, -0.4502542316913605, 0.3227570056915283, -0.1758221983909607, 0.12728656828403473, -0.037216804921627045, 0.025998752564191818, 0.4768502116203308, 0.416912317276001, 0.270807147026062, -0.1542823165655136, 0.35120654106140137, 0.015874408185482025, -0.22720958292484283, -0.14041738212108612, -0.019491765648126602, -0.2546186149120331, 0.20500756800174713, 0.031038334593176842, 0.49011000990867615, -0.22110053896903992, 0.18808457255363464, -0.13159355521202087, -0.012958236038684845, 0.38524970412254333, -0.11744069308042526, 0.2683102488517761, 0.04225044324994087, 0.26678410172462463, 0.07424222677946091, 0.05489334464073181, 0.04286276549100876, -0.025415845215320587, 0.03828846663236618, 0.3095664978027344, -0.18903642892837524, -0.17755253612995148, -0.22167879343032837, -0.1184358149766922, -0.06804259866476059, -0.088666632771492, -0.2571355104446411, -0.1540631651878357, -0.34417077898979187, -0.307902455329895, 0.09955151379108429, 0.16450011730194092, -0.04735913872718811, -0.06715676188468933, 0.16917553544044495, -0.11980375647544861, -0.22645598649978638, 0.2829120457172394, 0.35978078842163086, -0.30017533898353577, 0.13734719157218933, 0.2789381146430969, 0.15634861588478088, 0.08113839477300644, 0.3236393332481384, 0.0776529535651207, 0.16088233888149261, -0.31198322772979736, 0.03542099520564079, -0.2033446729183197, -0.20869649946689606, -0.13962802290916443, 0.10091227293014526, 0.48065975308418274, -0.19883306324481964, 0.24447469413280487, 0.23392297327518463, -0.2988376319408417, 0.18391190469264984, 0.014450732618570328, -0.0012049805372953415, -0.1837291121482849, 0.25936809182167053, 0.22261179983615875, -0.12798196077346802, -0.036835312843322754, -0.07512100785970688, -0.400334894657135, -0.1967100203037262, -0.36150285601615906, 0.0788586214184761, 0.08247582614421844, -0.2798437476158142, 0.15539681911468506, 0.09700645506381989, 0.44411522150039673, -0.08244068920612335, 0.20558929443359375, -0.37535473704338074, 0.0921015739440918, -0.24564480781555176, 0.019372165203094482, 0.528415322303772, -0.0024540647864341736, -0.05860789865255356, 0.3234427571296692, -0.2728416323661804, 0.1320369988679886, -0.1729377955198288, -0.09621298313140869, 0.24658158421516418, -0.21697914600372314, -0.42153605818748474, -0.036097202450037, 0.0030394643545150757, -0.28007936477661133, 0.059885405004024506, 0.0500941127538681, -0.08240137994289398, -0.4177093803882599, 0.2875920534133911, -0.07681892812252045, -0.26576218008995056, 0.26941147446632385, 0.5751880407333374, 0.13448014855384827, 0.2636723816394806, 0.31966009736061096, -0.25323358178138733, -0.0809575617313385, 0.029432501643896103, -0.07578588277101517, -0.4873190224170685, -0.02877337485551834, 0.005346130579710007, 0.4001326560974121, 0.11309770494699478, 0.12159816920757294, 0.059145737439394, 0.4093592166900635, 0.02154887467622757, -0.6170939207077026, 0.0880485326051712, 0.27894315123558044, 0.1217392310500145, -0.1098269373178482, -0.36690133810043335, 0.13961847126483917, 0.18417879939079285, 0.33693814277648926, -0.10356112569570541, -0.2542916238307953, 0.1745150089263916, -0.07052063196897507, -0.08168557286262512, -0.020085308700799942, 0.37478455901145935, 0.1901467889547348, 0.068357914686203, -0.3958868682384491, -0.11374273896217346, 0.4257357716560364, 0.25106385350227356, 0.07658731937408447, 0.4633030593395233, -0.0762021541595459, -0.18531717360019684, -0.13183584809303284, 0.06607526540756226, 0.06499147415161133, 0.11805896461009979, -0.16430215537548065, -0.467273473739624 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
> Should that rather be in an organization scope, @thomwolf @patrickvonplaten ? I'm a bit indifferent - both would be fine for me!
Add the Webid TL:DR dataset.
23
text: Webis tl-dr Add the Webid TL:DR dataset. > Should that rather be in an organization scope, @thomwolf @patrickvonplaten ? I'm a bit indifferent - both would be fine for me!
[ -0.17289812862873077, 0.09131292998790741, -0.13776271045207977, -0.13817790150642395, -0.2906804084777832, 0.13970455527305603, 0.8072847723960876, -0.11120113730430603, 0.24820804595947266, -0.21246324479579926, -0.17763589322566986, 0.026647666469216347, 0.1483117938041687, 0.2992669939994812, 0.11870449036359787, 0.206696018576622, -0.12984371185302734, 0.02207864820957184, 0.1131722629070282, 0.09171849489212036, -0.3847923278808594, -0.1685119867324829, 0.062467873096466064, -0.02274637669324875, 0.12383640557527542, -0.1360948532819748, -0.00008083507418632507, 0.3677598834037781, -0.021223561838269234, -0.006173693574965, 0.20913800597190857, 0.09916305541992188, 0.1293950378894806, -0.18360525369644165, -0.00010694508091546595, -0.09094902127981186, -0.033913806080818176, -0.021656464785337448, -0.09177720546722412, 0.2681456208229065, -0.47969701886177063, 0.017604351043701172, -0.23508262634277344, -0.2164776623249054, 0.2676650881767273, 0.3194219172000885, 0.20744243264198303, -0.06999780982732773, -0.1766544133424759, 0.3238806426525116, 0.23281867802143097, 0.23077894747257233, -0.01933189481496811, 0.07376591861248016, -0.3022080063819885, -0.2450019270181656, -0.006094638258218765, -0.029233384877443314, -0.014924876391887665, 0.2809469997882843, 0.10158859193325043, 0.10813270509243011, -0.031208138912916183, -0.06104234233498573, 0.3437184989452362, 0.09723003208637238, 0.17866270244121552, 0.060173340141773224, 0.3016640841960907, 0.03889106959104538, 0.7368950247764587, 0.24830812215805054, -0.20804931223392487, 0.1693834364414215, -0.20110884308815002, 0.03997495025396347, 0.21240833401679993, 0.44148918986320496, 0.23826569318771362, 0.24873855710029602, -0.20425689220428467, 0.18138118088245392, -0.2647307217121124, 0.2556501626968384, -0.7191749811172485, 0.06629803776741028, 0.052775561809539795, 0.09441597014665604, -0.2029189020395279, -0.3214569687843323, 0.17585335671901703, 0.2783616781234741, -0.16588757932186127, 0.17855428159236908, -0.07201772928237915, -0.13268457353115082, 0.09865302592515945, 0.4440448582172394, 0.07999707013368607, 0.33002370595932007, 0.12306047976016998, -0.18661656975746155, 0.11348520219326019, 0.03588002175092697, 0.2226666510105133, -0.17902234196662903, 0.06980007141828537, -0.06503063440322876, 0.1708115041255951, -0.4739772081375122, 0.07463623583316803, 0.012724770233035088, 0.2619681656360626, 0.047536514699459076, 0.07420472800731659, -0.4191124439239502, 0.11302459239959717, -0.027667179703712463, -0.5390521883964539, 0.16424916684627533, -0.3610035479068756, -0.24466583132743835, -0.04618002846837044, 0.13937699794769287, 0.3042237460613251, -0.025132738053798676, 0.3341178297996521, 0.243336483836174, 0.09831752628087997, -0.1072116270661354, -0.26161521673202515, -0.042489971965551376, 0.1299665868282318, 0.1499916911125183, -0.21014824509620667, 0.450437068939209, -0.1442716270685196, -0.13416820764541626, -0.08376875519752502, 0.010788388550281525, -0.03162464499473572, 0.0759621262550354, 0.17254012823104858, 0.32213094830513, 0.0901104211807251, 0.0938151627779007, -0.32297247648239136, 0.08297280967235565, -0.0071375444531440735, 0.3475097119808197, -0.16045022010803223, -0.3493068218231201, 0.04739844799041748, 0.28661084175109863, -0.1346999853849411, -0.45568665862083435, 0.5700684785842896, 0.2154175341129303, -0.0405510738492012, -0.19365473091602325, 0.014893047511577606, 0.35971468687057495, 0.05438462272286415, -0.08713442087173462, -0.46019864082336426, 0.127048060297966, 0.08419373631477356, 0.05365390330553055, -0.03799515962600708, 0.013904424384236336, 0.09801606833934784, 0.12190069258213043, -0.08441758900880814, 0.5729561448097229, -0.03274763748049736, 0.20420639216899872, 0.49758821725845337, -0.39505648612976074, -0.36651352047920227, 0.2087586671113968, -0.3802013397216797, -0.4058726727962494, 0.17193162441253662, 0.23557963967323303, -0.12065504491329193, -0.2250993251800537, 0.14775225520133972, 0.1347973346710205, -0.2942392826080322, 0.24156725406646729, -0.24464143812656403, -0.05883011966943741, 0.03271440044045448, 0.004737038165330887, 0.2521529495716095, 0.1378498673439026, -0.15971249341964722, -0.005149881821125746, 0.08174174278974533, -0.02419375255703926, -0.08899189531803131, -0.08770217001438141, 0.08814135193824768, 0.03974800556898117, -0.26373589038848877, -0.1014101579785347, -0.1652202010154724, -0.3479265868663788, 0.40629780292510986, 0.34706810116767883, 0.36870908737182617, -0.2125084400177002, -0.31958523392677307, -0.015258654952049255, 0.08217855542898178, -0.029780130833387375, 0.1497223973274231, 0.18339085578918457, -0.2159135937690735, -0.2970818281173706, -0.026043355464935303, 0.11896783113479614, -0.12176156789064407, 0.07390861958265305, 0.0689140111207962, -0.10986048728227615, -0.2540399432182312, 0.3581180274486542, -0.2130245715379715, 0.05122419446706772, 0.1404234617948532, 0.062289126217365265, 0.09644341468811035, 0.136160746216774, -0.387920618057251, -0.10212409496307373, 0.2577790319919586, 0.5378308892250061, 0.014316018670797348, -0.32180461287498474, 0.054222412407398224, -0.03120184689760208, -0.051673632115125656, -0.12935806810855865, -0.15397822856903076, -0.030287504196166992, -0.030822355300188065, 0.109286367893219, -0.12298507243394852, 0.05971575528383255, -0.026107873767614365, -0.2241814136505127, -0.09034212678670883, -0.22517356276512146, -0.24818439781665802, -0.03556336462497711, 0.2072366327047348, 0.10585540533065796, -0.2920514643192291, 0.5260533094406128, 0.5306957364082336, -0.1844627410173416, 0.05946582183241844, 0.16779197752475739, 0.08321639895439148, -0.14455056190490723, -0.0905737653374672, 0.017370235174894333, 0.27226245403289795, 0.32606714963912964, 0.015581939369440079, -0.15993563830852509, 0.15699078142642975, -0.21349680423736572, 0.3601698577404022, 0.059465888887643814, -0.4158724844455719, -0.09778564423322678, 0.001658060122281313, 0.16702573001384735, 0.0009702518582344055, -0.058562688529491425, -0.22086560726165771, 0.0857153981924057, -0.276157408952713, -0.01866224780678749, 0.3628120422363281, -0.36167478561401367, -0.07270093262195587, 0.011547478847205639, -0.24561384320259094, -0.5157029032707214, 0.01612321473658085, -0.09251460433006287, -0.29760268330574036, -0.06316734105348587, -0.28941789269447327, 0.3939342498779297, -0.16941174864768982, 0.20530211925506592, -0.09229499101638794, 0.1831008344888687, -0.1535702645778656, 0.16084635257720947, 0.06674006581306458, -0.26197534799575806, 0.6558383107185364, -0.4726823568344116, 0.4958699941635132, -0.34150829911231995, -0.4575735926628113, 0.1415567696094513, 0.1452513039112091, 0.1589221954345703, 0.1765337586402893, 0.3440117835998535, -0.20770901441574097, -0.33272960782051086, 0.1737758219242096, 0.050068698823451996, -0.015319637954235077, -0.261178582906723, 0.03408591076731682, 0.2754310667514801, 0.11916835606098175, -0.3811367452144623, -0.2559921145439148, -0.33436742424964905, 0.08817742019891739, -0.2904534339904785, -0.01385825127363205, 0.4750837981700897, -0.4348556101322174, -0.2236865609884262, 0.34132978320121765, 0.18096180260181427, -0.5015873908996582, -0.23038730025291443, 0.2457132488489151, -0.11604247242212296, -0.1896500140428543, 0.003932945430278778, -0.03204852342605591, 0.5227766036987305, 0.34791839122772217, -0.018331952393054962, 0.19800308346748352, 0.16596224904060364, 0.1795119345188141, -0.29970261454582214, 0.022782564163208008, 0.32436612248420715, -0.11347542703151703, -0.29405248165130615, -0.21824312210083008, -0.17550840973854065, 0.06591163575649261, 0.004083395004272461, 0.0458071231842041, 0.1383725106716156, 0.07422280311584473, -0.0970279723405838, 0.8092548847198486, -0.21503548324108124, -0.08985066413879395, -0.04685761779546738, 0.10571936517953873, 0.05726371333003044, 0.33519208431243896, -0.35535502433776855, 0.1993972212076187, 0.3992975950241089, -0.07889126241207123, 0.5237452983856201, 0.0733172670006752, -0.20210759341716766, -0.07355934381484985, 0.06619533896446228, -0.5986606478691101, -0.16706153750419617, 0.33482468128204346, 0.27077174186706543, 0.2613033652305603, 0.16206833720207214, -0.15233072638511658, -0.387474000453949, -0.12037525326013565, -0.19280247390270233, 0.4155048131942749, -0.07138340920209885, 0.0971558690071106, -0.1045927107334137, 0.18243514001369476, -0.015873856842517853, 0.15008887648582458, -0.05050532519817352, 0.2342943549156189, -0.1316685676574707, -0.5054764747619629, 0.01790253072977066, -0.08918218314647675, 0.18109190464019775, -0.4816380739212036, 0.011264190077781677, -0.08348998427391052, 0.3861019015312195, 0.041740305721759796, 0.191847026348114, -0.049842171370983124, 0.47451284527778625, 0.5939022302627563, -0.19285443425178528, -0.31891098618507385, -0.02834387496113777, 0.5274004936218262, -0.41481316089630127, -0.07668296247720718, -0.30893146991729736, 0.021297026425600052, -0.209958016872406, -0.0013026930391788483, 0.19263656437397003, 0.19209015369415283, -0.022585205733776093, 0.11221563816070557, 0.046349477022886276, -0.11365564167499542, 0.018110934644937515, 0.285103976726532, 0.03819532319903374, -0.32178691029548645, -0.04121053218841553, 0.06985361874103546, -0.060725584626197815, 0.15909641981124878, 0.29953309893608093, 0.3902290165424347, -0.07262961566448212, -0.1762615442276001, -0.0895211398601532, -0.3081887364387512, 0.47200995683670044, 0.27624285221099854, 0.11091485619544983, -0.17216786742210388, 0.13145963847637177, -0.0726795345544815, -0.15920887887477875, -0.05221135914325714, 0.07740198075771332, -0.06025799736380577, -0.3287656903266907, -0.12540437281131744, 0.15555791556835175, 0.02090836688876152, -0.15158876776695251, 0.1502360701560974, 0.4254325032234192, -0.23302224278450012, -0.15395599603652954, 0.14831098914146423, 1.1085904836654663, -0.08887544274330139, 0.18913233280181885, 0.09848523885011673, -0.36079657077789307, 0.22865363955497742, -0.3567240834236145, -0.12922848761081696, -0.37021148204803467, 0.44354432821273804, -0.02674948237836361, -0.06196952611207962, -0.05802454054355621, 0.32002776861190796, -0.011859256774187088, -0.16327011585235596, -0.1743665337562561, 0.49932190775871277, 0.37483975291252136, 0.18609370291233063, -0.015646105632185936, -0.08311726152896881, -0.14793384075164795, 0.16018584370613098, -0.22740380465984344, -0.17151953279972076, -0.40399718284606934, -0.14855314791202545, -0.051128774881362915, -0.25759267807006836, 0.01824694126844406, -0.31239384412765503, -0.11406177282333374, -0.29966461658477783, -0.32013440132141113, -0.1085292398929596, 0.030427630990743637, 0.09386825561523438, -0.00010991841554641724, -0.04184198006987572, -0.20743843913078308, -0.132951557636261, -0.2605477273464203, -0.04408415034413338, -0.11571667343378067, -0.05180279165506363, 0.3401276767253876, -0.18094691634178162, -0.047068655490875244, -0.19503459334373474, -0.08023558557033539, -0.2917395830154419, -0.48886507749557495, 0.38959169387817383, 0.04733835533261299, -0.6896814107894897, 0.2502059042453766, 0.1344548463821411, 0.006633229553699493, -0.07047373056411743, 0.14907023310661316, 0.064348004758358, 0.2187315970659256, -0.12915563583374023, 0.08174196630716324, -0.14362701773643494, -0.0408632792532444, 0.3302862346172333, 0.17965629696846008, 0.1778920739889145, 0.01717601716518402, -0.492338627576828, -0.2835727334022522, -0.4140922725200653, 0.1266147494316101, 0.13575947284698486, -0.05950458347797394, 0.04501542076468468, 0.20619593560695648, -0.19991108775138855, 0.049108799546957016, -0.037050385028123856, -0.10142210125923157, 0.19906365871429443, -0.14762906730175018, -0.1423940658569336, -0.23352383077144623, 0.17278827726840973, -0.01433086022734642, 0.15114280581474304, -0.021185219287872314, 0.07220085710287094, 0.04132989048957825, -0.07170142978429794, -0.4087618589401245, -0.2661406695842743, -0.153418630361557, -0.10341283679008484, 0.05708787590265274, -0.2560335099697113, 0.07770830392837524, 0.07545818388462067, 0.2534538209438324, -0.30029410123825073, -0.2002059519290924, -0.24635615944862366, 0.10574619472026825, 0.11578788608312607, 0.45554307103157043, -0.18971645832061768, 0.24058450758457184, 0.0017745830118656158, -0.01809808611869812, 0.07828256487846375, 0.2016245424747467, -0.023944944143295288, 0.03067144751548767, -0.1553552895784378, 0.006676025688648224, 0.18444938957691193, -0.308108925819397, -0.0687301903963089, 0.3334594964981079, 0.499478816986084, -0.5939047932624817, 0.19137480854988098, -0.004414880648255348, -0.14538241922855377, 0.4321506917476654, 0.4191487729549408, 0.4818793535232544, 0.2050502896308899, -0.13048061728477478, -0.24302585422992706, -0.05177058279514313, 0.23818744719028473, -0.1307666003704071, 0.12110726535320282, -0.22998248040676117, 0.01390649564564228, -0.3405437469482422, 0.34914112091064453, 0.027029190212488174, 0.1878635287284851, -0.039903342723846436, -0.5473051071166992, -0.0004836246371269226, 0.29893308877944946, 0.17673325538635254, -0.10037009418010712, 0.1993606686592102, -0.20972007513046265, 0.414225310087204, -0.061662398278713226, -0.023112479597330093, 0.25801053643226624, -0.4428398311138153, 0.30963414907455444, 0.46730661392211914, -0.007086701691150665, 0.051162365823984146, 0.00015028566122055054, 0.21406987309455872, 0.20322459936141968, 0.33425650000572205, 0.07372128218412399, 0.39427146315574646, -0.0696413666009903, -0.06490488350391388, -0.30406635999679565, 0.07919322699308395, 0.015422090888023376, 0.21114611625671387, 0.0906750038266182, -0.15980537235736847, -0.19130264222621918, -0.009748421609401703, -0.2304012030363083, -0.3806057572364807, 0.33470386266708374, -0.25270241498947144, -0.24187156558036804, 0.08440734446048737, -0.06527895480394363, -0.11913827061653137, -0.2708759307861328, -0.05043551325798035, -0.1810988336801529, 0.11673176288604736, -0.0635678619146347, -0.1462770700454712, -0.1608995795249939, -0.10165860503911972, -0.21028576791286469, 0.05627021938562393, 0.012632384896278381, -0.03347039967775345, 0.5978571176528931, 0.5628969669342041, 0.14300115406513214, 0.05244527757167816, 0.21072734892368317, -0.014450292102992535, -0.12879493832588196, -0.17364034056663513, -0.2815028131008148, 0.14400073885917664, -0.008485272526741028, 0.022407367825508118, 0.18841977417469025, 0.23584559559822083, -0.20656874775886536, 0.02107592113316059, -0.06924960017204285, -0.03441276028752327, -0.033271484076976776, 0.002715498208999634, -0.4464094042778015, -0.253793865442276, -0.059351369738578796, 0.23678696155548096, -0.15267589688301086, 0.08246000111103058, 0.03493831679224968, 0.05087527632713318, 0.18738186359405518, -0.0612897127866745, 0.11324857175350189, 0.26905617117881775, 0.4878658056259155, 0.13321547210216522, 0.4383160471916199, -0.026562310755252838, 0.03772835433483124, -0.16115695238113403, 0.30076274275779724, 0.19822576642036438, 0.1263648420572281, -0.16742466390132904, -0.004669707268476486, 0.3290111720561981, 0.00686284713447094, 0.44582271575927734, -0.19248850643634796, 0.2172057330608368, 0.10743352770805359, -0.15273915231227875, -0.10931672155857086, 0.22807307541370392, -0.03966182470321655, -0.021782610565423965, -0.05867920070886612, 0.09561730921268463, 0.3126114308834076, 0.20408451557159424, -0.5068648457527161, 0.07733370363712311, 0.06742510199546814, -0.2438947856426239, 0.42782196402549744, 0.031430911272764206, 0.5954793691635132, -0.23275873064994812, -0.10397832095623016, 0.11504410207271576, 0.09787508100271225, -0.3477175831794739, 0.3800753057003021, 0.0952371209859848, -0.039227887988090515, 0.027730630710721016, -0.18242105841636658, 0.1225992888212204, -0.28638067841529846, -0.05261988937854767, 0.4848836362361908, -0.1804659366607666, 0.28181493282318115, -0.20794352889060974, -0.07194165885448456, -0.06726187467575073, 0.36002492904663086, 0.08000016212463379, -0.12643519043922424, -0.2381184995174408, -0.3493331968784332, 0.4809899926185608, 0.08547425270080566, 0.0074590593576431274, -0.08335907757282257, 0.27159518003463745, 0.08257896453142166, 0.5393391847610474, -0.3365621864795685, -0.05971715226769447, 0.3257105350494385, -0.23747479915618896, -0.26878005266189575, 0.13421621918678284, 0.060339346528053284, -0.3266439735889435, -0.01749051734805107, 0.0629904568195343, 0.15493425726890564, 0.013809556141495705, 0.07084190845489502, 0.06304607540369034 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
@jplu - if creating the dummy_data is too tedious, I can do it as well :-)
Add the Webid TL:DR dataset.
16
text: Webis tl-dr Add the Webid TL:DR dataset. @jplu - if creating the dummy_data is too tedious, I can do it as well :-)
[ -0.28061607480049133, -0.14989864826202393, -0.16991622745990753, -0.07766316831111908, -0.1126081794500351, 0.2409026026725769, 0.7146480679512024, 0.30014291405677795, 0.3040367662906647, -0.02519308030605316, -0.06056156009435654, -0.10389865189790726, 0.23741492629051208, 0.4213563799858093, 0.22090870141983032, 0.1639758050441742, -0.02209966629743576, 0.3871965706348419, -0.011552371084690094, 0.05462508648633957, -0.29235318303108215, -0.11000987887382507, 0.09827807545661926, -0.08310286700725555, -0.2104724943637848, 0.0062118880450725555, -0.11624704301357269, 0.3109334409236908, -0.19738782942295074, -0.03115518018603325, 0.1028221845626831, 0.23924975097179413, 0.08836069703102112, 0.09238777309656143, -0.00009852107177721336, 0.06305710971355438, -0.07292100787162781, -0.16689574718475342, -0.27915623784065247, 0.21988624334335327, -0.5539519786834717, 0.12316906452178955, -0.10665087401866913, -0.3695637583732605, -0.1378919631242752, 0.14499038457870483, -0.022025691345334053, -0.15014103055000305, 0.17866797745227814, 0.3290610611438751, 0.3216712474822998, 0.261033833026886, 0.07295015454292297, -0.08741949498653412, -0.1497725248336792, -0.10390457510948181, 0.19455267488956451, 0.07523684203624725, -0.13828076422214508, -0.0621950626373291, 0.12489990890026093, 0.267704039812088, -0.12066352367401123, 0.054721005260944366, 0.05386070907115936, 0.12067743390798569, 0.09988833218812943, 0.007658436894416809, 0.29927492141723633, 0.20481258630752563, 0.6079151034355164, -0.1550862193107605, -0.19290906190872192, 0.3281298577785492, -0.2000519335269928, -0.16331467032432556, 0.027402665466070175, 0.30384504795074463, 0.21948641538619995, 0.4071989953517914, -0.07342628389596939, 0.044463399797677994, -0.3119122385978699, 0.05817475914955139, -0.13865382969379425, 0.24399080872535706, 0.2362518161535263, -0.05385255813598633, -0.06088855490088463, -0.19440507888793945, 0.08628926426172256, 0.12521229684352875, -0.03516286984086037, 0.1297706663608551, 0.008063849061727524, -0.26138368248939514, -0.07416830211877823, 0.07409906387329102, 0.17535167932510376, 0.04636108875274658, 0.29474756121635437, -0.01802278682589531, 0.18130366504192352, 0.09485404193401337, -0.10935568809509277, -0.07713472843170166, 0.09759937971830368, -0.19110700488090515, 0.28324246406555176, -0.18644966185092926, 0.09684565663337708, 0.006484419107437134, 0.0924774706363678, 0.08553634583950043, 0.08880144357681274, -0.153682678937912, 0.156538188457489, 0.08848623931407928, -0.520683765411377, 0.030642420053482056, -0.21261003613471985, -0.059464678168296814, -0.2172272652387619, 0.356551855802536, -0.10096605867147446, -0.039915747940540314, 0.4828695058822632, 0.1544649302959442, -0.2676374614238739, -0.4870416820049286, -0.2813061475753784, 0.11838322877883911, 0.17697879672050476, -0.15002262592315674, 0.07731057703495026, 0.25293874740600586, 0.22116021811962128, 0.019544396549463272, -0.36322325468063354, 0.04508405923843384, 0.2631675899028778, 0.1932690590620041, 0.10609875619411469, 0.07546016573905945, 0.33798539638519287, -0.20343029499053955, -0.024515632539987564, -0.18496064841747284, -0.028565600514411926, -0.015792712569236755, 0.03247926011681557, -0.08389322459697723, -0.3719876706600189, 0.3634626269340515, 0.04946447163820267, -0.4697529971599579, 0.4680444002151489, 0.2469414621591568, 0.01601032167673111, -0.018225304782390594, -0.11567272990942001, 0.4424282908439636, 0.041919004172086716, 0.0639321431517601, -0.020070873200893402, 0.48587143421173096, -0.18074408173561096, -0.14306321740150452, 0.2903139293193817, -0.19065862894058228, -0.11499585956335068, -0.09683206677436829, 0.020191268995404243, 0.4334889054298401, -0.037200234830379486, 0.15882380306720734, 0.12575650215148926, -0.013682160526514053, -0.20179055631160736, -0.03809233382344246, -0.23182463645935059, -0.3192158043384552, 0.26456692814826965, 0.32239478826522827, -0.10822267085313797, -0.06362540274858475, 0.07164636254310608, 0.2920900583267212, -0.27753815054893494, 0.2352840006351471, -0.09188598394393921, -0.3144506812095642, 0.053598955273628235, 0.19550994038581848, 0.03237469494342804, 0.22404739260673523, 0.13425397872924805, 0.021370939910411835, 0.24538829922676086, -0.23573976755142212, 0.03243125230073929, 0.040881216526031494, 0.016530122607946396, -0.04678095877170563, -0.13675357401371002, 0.09193889796733856, -0.3777857720851898, -0.14625373482704163, 0.2720204293727875, 0.33500364422798157, 0.1058349609375, -0.3031695485115051, -0.34480956196784973, 0.05612397938966751, -0.04313567653298378, 0.1115371435880661, 0.35709452629089355, 0.2092140018939972, -0.09266455471515656, -0.28045982122421265, -0.03091059811413288, 0.04623708873987198, 0.06809331476688385, -0.08722229301929474, -0.21328283846378326, -0.2053760290145874, -0.14451615512371063, 0.07435290515422821, 0.07199189811944962, -0.12782013416290283, 0.03162316232919693, 0.055396392941474915, 0.10780788958072662, 0.32425060868263245, -0.28618454933166504, 0.12343333661556244, 0.4740737974643707, 0.2640405297279358, 0.03533611446619034, -0.4143596589565277, 0.03075539506971836, 0.266218364238739, 0.17682433128356934, -0.05564621835947037, -0.2681903839111328, 0.011953525245189667, 0.08919451385736465, 0.0074203163385391235, -0.031285859644412994, 0.13096168637275696, 0.28317248821258545, -0.2806294560432434, 0.01272437535226345, -0.2095877230167389, -0.02746913954615593, 0.008062580600380898, 0.10670952498912811, -0.1894661784172058, -0.4965285360813141, 0.38676926493644714, -0.04212062433362007, -0.07402306795120239, 0.31695225834846497, 0.016206521540880203, -0.11832407861948013, -0.05630285665392876, -0.045557670295238495, -0.0783887729048729, 0.10882943123579025, 0.3778436481952667, 0.1862766295671463, -0.1292814016342163, -0.07224055379629135, -0.2229614406824112, 0.30023393034935, -0.32179397344589233, -0.440542072057724, -0.08792609721422195, -0.059637926518917084, -0.2789810299873352, -0.20501554012298584, 0.11005283892154694, -0.033423252403736115, 0.038322437554597855, -0.42218178510665894, 0.09598434716463089, 0.056168295443058014, -0.26859050989151, 0.037182025611400604, -0.17743393778800964, -0.0522058941423893, -0.1516435444355011, 0.13135625422000885, 0.019541699439287186, -0.2442181557416916, 0.14789482951164246, -0.15304827690124512, 0.3594707250595093, 0.2554498314857483, -0.06806043535470963, -0.058110371232032776, -0.13927020132541656, -0.19691014289855957, 0.30395716428756714, 0.022525113075971603, -0.002370757982134819, 0.5225690007209778, -0.5309047102928162, 0.2883422374725342, -0.24465951323509216, -0.32569020986557007, 0.1054670512676239, 0.1840132176876068, 0.2465577870607376, 0.19406652450561523, 0.5523768067359924, -0.06603951752185822, -0.099440798163414, 0.1386702060699463, -0.12559424340724945, -0.16756385564804077, -0.08904164284467697, -0.037007495760917664, 0.09351357817649841, -0.051060017198324203, -0.45042988657951355, -0.2395934909582138, -0.12101435661315918, 0.007006585597991943, 0.058384526520967484, 0.2055547535419464, 0.18991096317768097, 0.1360384076833725, -0.07630517333745956, 0.21859006583690643, 0.011638732627034187, -0.37353381514549255, -0.4092505872249603, 0.43463513255119324, -0.22821781039237976, -0.3200823962688446, 0.164551243185997, -0.2378312200307846, 0.45258960127830505, 0.14697414636611938, -0.09462176263332367, 0.11092564463615417, 0.1925375759601593, 0.23182928562164307, -0.23110276460647583, 0.19506952166557312, 0.3585990071296692, 0.036520782858133316, -0.28411999344825745, -0.3477531969547272, 0.024417702108621597, 0.3225240111351013, -0.1494288444519043, 0.20755383372306824, 0.037176650017499924, 0.12165709584951401, -0.18912078440189362, 0.38697439432144165, -0.07651865482330322, -0.16981342434883118, 0.3699817955493927, -0.279115229845047, 0.06449119746685028, 0.2326575219631195, -0.02556569315493107, -0.24799217283725739, 0.2738986313343048, 0.04798325151205063, 0.4048610329627991, -0.09423019737005234, -0.23793332278728485, -0.3158907890319824, 0.26540806889533997, -0.4911639392375946, -0.1520525962114334, 0.06644017994403839, 0.18640685081481934, 0.16654422879219055, 0.05907593294978142, -0.16624349355697632, -0.3199863135814667, -0.017365390434861183, -0.031098520383238792, 0.08597887307405472, 0.00042119622230529785, -0.01480455044656992, -0.010816898196935654, 0.25122520327568054, -0.2468615472316742, 0.33600205183029175, 0.07023470103740692, 0.006375593598932028, -0.02844299003481865, -0.2672578692436218, -0.045803993940353394, -0.03177511692047119, 0.3555229902267456, -0.32720518112182617, 0.12957748770713806, -0.09110967814922333, 0.27722224593162537, -0.211822047829628, 0.3554324805736542, -0.10498049110174179, -0.12264302372932434, 0.38061344623565674, 0.0028691142797470093, -0.3862752616405487, 0.06263934075832367, 0.5040111541748047, -0.10272745043039322, -0.30201736092567444, -0.24897126853466034, -0.20804449915885925, -0.3149000108242035, -0.1032407283782959, 0.05395147204399109, 0.07542780041694641, -0.03593450039625168, 0.21427063643932343, 0.05828944221138954, -0.29701876640319824, 0.019393879920244217, 0.1417260468006134, 0.2021651566028595, 0.11814171820878983, 0.054740265011787415, 0.09999261796474457, 0.0940447747707367, 0.10018786787986755, 0.04822748526930809, 0.37094998359680176, -0.10005813837051392, -0.08132168650627136, -0.10065390169620514, -0.18788622319698334, 0.31573083996772766, 0.13027323782444, 0.35611486434936523, 0.02946414425969124, 0.03908982872962952, 0.0434425063431263, -0.32693058252334595, 0.24511392414569855, -0.20515844225883484, 0.012256127782166004, -0.11113385856151581, -0.31513628363609314, 0.33727842569351196, -0.20913808047771454, -0.11800751090049744, 0.01475764811038971, 0.150275319814682, -0.41354238986968994, -0.22330491244792938, 0.33650097250938416, 0.8479688167572021, -0.04692268371582031, 0.09697187691926956, 0.1111053004860878, -0.379977285861969, 0.029013806954026222, -0.27323877811431885, -0.07172373682260513, -0.2899581789970398, 0.13373304903507233, -0.10815063118934631, 0.08446885645389557, -0.11074341088533401, 0.29134485125541687, -0.3564699590206146, 0.06152024492621422, -0.20178084075450897, 0.21558739244937897, 0.17449049651622772, 0.36236560344696045, -0.19243238866329193, -0.17488732933998108, 0.017836986109614372, 0.33107441663742065, -0.22343365848064423, -0.20424510538578033, -0.1820250153541565, -0.17901216447353363, 0.019084040075540543, -0.23063170909881592, 0.22443412244319916, -0.0006144698709249496, -0.34363970160484314, -0.08462819457054138, -0.47297272086143494, 0.11257514357566833, -0.49233371019363403, 0.07382248342037201, 0.1893342137336731, -0.0030221864581108093, -0.18632203340530396, 0.049831539392471313, -0.2440134584903717, 0.029372984543442726, -0.24948188662528992, 0.021741434931755066, 0.18901704251766205, -0.07158884406089783, -0.2470279335975647, -0.039595916867256165, -0.09023059904575348, -0.10372927784919739, -0.2879680097103119, -0.05223645269870758, -0.11684232950210571, -0.30875101685523987, 0.21266037225723267, 0.07526905834674835, -0.028337256982922554, -0.12556234002113342, 0.24438464641571045, 0.04996190965175629, -0.11956871300935745, -0.12797173857688904, 0.08163632452487946, -0.06372413784265518, -0.16537709534168243, 0.5266008377075195, 0.042219262570142746, 0.1882946938276291, 0.23518531024456024, -0.1602340191602707, -0.09109988808631897, -0.39014092087745667, 0.009918056428432465, 0.1700669527053833, -0.10765162855386734, 0.06646564602851868, -0.045571137219667435, -0.21375226974487305, -0.10298942774534225, 0.16932956874370575, -0.06382517516613007, 0.44715598225593567, 0.06904728710651398, -0.09688039124011993, -0.5105286240577698, -0.0424334853887558, 0.23265822231769562, 0.2831326425075531, 0.025668911635875702, 0.051801033318042755, 0.06170530617237091, -0.03873444348573685, -0.525761604309082, -0.11440027505159378, 0.057435013353824615, 0.1545892208814621, 0.19663973152637482, -0.0804385170340538, 0.13604074716567993, -0.030559081584215164, 0.34225544333457947, -0.13281303644180298, -0.13240928947925568, -0.36819687485694885, -0.22395919263362885, 0.0903804823756218, 0.023786265403032303, -0.1739993393421173, 0.12011323124170303, -0.0056655798107385635, -0.16840752959251404, 0.02514912746846676, 0.0762934535741806, -0.12471381574869156, -0.13186685740947723, -0.03832535073161125, 0.10487361252307892, 0.1421360969543457, -0.26696860790252686, -0.2798888385295868, 0.17905625700950623, 0.32857874035835266, -0.45535722374916077, -0.09062966704368591, -0.18448126316070557, -0.12034663558006287, 0.4497787356376648, 0.364882230758667, 0.5216611623764038, 0.034278564155101776, 0.06479720771312714, -0.12567287683486938, -0.009876269847154617, 0.2348179966211319, 0.1275290548801422, 0.10918407142162323, -0.3063362240791321, 0.09400874376296997, 0.002564801834523678, 0.48961949348449707, -0.2999309003353119, 0.11000038683414459, -0.056024473160505295, -0.47247952222824097, 0.20438507199287415, 0.2174951732158661, 0.12555737793445587, -0.16912558674812317, 0.05055733397603035, 0.004674317315220833, 0.1665065586566925, -0.1908712387084961, -0.16171683371067047, 0.3107825517654419, -0.42847055196762085, 0.07678978145122528, 0.20636500418186188, 0.202042356133461, 0.24865809082984924, 0.08373016864061356, -0.15726304054260254, 0.3173104226589203, 0.11196091771125793, 0.07900267839431763, -0.004682287573814392, 0.04297002777457237, 0.1623319834470749, -0.09212587773799896, 0.03908776491880417, 0.22353002429008484, 0.2216079831123352, 0.2060013711452484, -0.2904653549194336, -0.07945723086595535, -0.2940932512283325, 0.09798888862133026, -0.20378831028938293, 0.13938353955745697, -0.32806649804115295, -0.12469382584095001, -0.14289702475070953, -0.005738060921430588, 0.09166403114795685, -0.07443991303443909, -0.04442635178565979, 0.09449884295463562, 0.06254205107688904, -0.18266502022743225, -0.19665366411209106, 0.22818729281425476, 0.004762895405292511, -0.3706740736961365, -0.06988272815942764, 0.4648727774620056, -0.2576694190502167, 0.3539050817489624, 0.4728425443172455, 0.03506491333246231, 0.002946222200989723, -0.0027539487928152084, 0.1213049367070198, -0.030904848128557205, -0.37038904428482056, -0.2667289972305298, -0.11120343208312988, 0.2938052713871002, 0.06647487729787827, 0.17059364914894104, 0.3021810054779053, -0.2844299376010895, -0.0691060721874237, 0.09069125354290009, 0.06856514513492584, -0.05149110406637192, -0.2548075020313263, -0.1018817126750946, -0.17490166425704956, -0.14818261563777924, 0.0728386715054512, -0.3808162808418274, 0.09813657402992249, 0.07598014175891876, -0.12471022456884384, 0.1874409019947052, -0.010593042708933353, 0.15417616069316864, 0.103507399559021, 0.5442746877670288, -0.11255215108394623, -0.0794542208313942, -0.11740466207265854, -0.1088261678814888, -0.25509122014045715, -0.04906070977449417, 0.1614398956298828, -0.1758842021226883, -0.1984831690788269, 0.07283077389001846, 0.2362176775932312, 0.004246650263667107, 0.1118750125169754, -0.10416916757822037, 0.34754467010498047, 0.19135281443595886, -0.17372845113277435, -0.2075415551662445, 0.2304271012544632, 0.12184780836105347, 0.1476515382528305, -0.21813341975212097, 0.1192035973072052, 0.15264223515987396, 0.29153186082839966, -0.21998150646686554, 0.04329267144203186, 0.11715288460254669, -0.2140825092792511, 0.4616926908493042, 0.05002439022064209, 0.5385044813156128, -0.44156980514526367, 0.0003479626029729843, 0.05864282697439194, 0.00913475826382637, -0.3837279677391052, 0.09764715284109116, 0.1930302083492279, 0.06515079736709595, 0.034466423094272614, -0.040290940552949905, -0.0055680666118860245, -0.09464230388402939, -0.001536443829536438, 0.09452499449253082, -0.25812944769859314, 0.2833831012248993, -0.1703665852546692, 0.021653465926647186, -0.013372110202908516, 0.200516939163208, -0.08122381567955017, 0.07967689633369446, -0.07795508205890656, -0.30168208479881287, 0.31314194202423096, 0.10663127899169922, -0.2771158218383789, -0.13844528794288635, 0.2767452895641327, 0.019452903419733047, 0.3877187669277191, -0.3457461893558502, 0.317210853099823, 0.2575858533382416, -0.13399726152420044, -0.22156065702438354, 0.5211411118507385, 0.2823501527309418, 0.06255987286567688, -0.03402290120720863, 0.19263634085655212, 0.4554617404937744, 0.035309769213199615, -0.1471860110759735, -0.15343737602233887 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
> There is dummy_data here, no ? Some paths were wrong - the structure is really confusing and the error messages don't really help either - I have to think about how to make this easier to understand! Hope it was ok that I fiddled with your PR !
Add the Webid TL:DR dataset.
49
text: Webis tl-dr Add the Webid TL:DR dataset. > There is dummy_data here, no ? Some paths were wrong - the structure is really confusing and the error messages don't really help either - I have to think about how to make this easier to understand! Hope it was ok that I fiddled with your PR !
[ -0.19777722656726837, -0.23747265338897705, -0.15876582264900208, 0.013339895755052567, -0.03985480219125748, 0.08052917569875717, 0.36611130833625793, 0.11498580873012543, 0.16623757779598236, -0.046241745352745056, 0.1683402955532074, -0.0864834412932396, 0.21153442561626434, 0.2994564175605774, 0.15093687176704407, 0.01184607669711113, -0.01581261307001114, 0.19232144951820374, 0.07350553572177887, 0.016622431576251984, -0.289302796125412, 0.04520825296640396, -0.08831842243671417, 0.11189180612564087, -0.23360508680343628, -0.016856612637639046, -0.2595783770084381, 0.44751328229904175, -0.23858283460140228, -0.10657234489917755, 0.11408843100070953, 0.13215763866901398, 0.06523975729942322, 0.331899493932724, -0.00009846969624049962, -0.004255376756191254, 0.14572250843048096, -0.0831511914730072, -0.3074512481689453, 0.20962418615818024, -0.5605153441429138, 0.05524618178606033, -0.1325817108154297, -0.2821364998817444, 0.08438242226839066, 0.001809647772461176, -0.07314135134220123, -0.013583149760961533, 0.06378173828125, 0.44683778285980225, 0.38185855746269226, 0.26339447498321533, 0.20890308916568756, -0.17747509479522705, -0.012358389794826508, 0.036213960498571396, 0.0872727707028389, 0.06946289539337158, -0.10006199777126312, -0.025580614805221558, 0.2952522337436676, 0.019102128222584724, -0.12625744938850403, 0.008116662502288818, 0.018244918435811996, 0.1255481094121933, 0.14633095264434814, -0.09572416543960571, 0.32016226649284363, -0.06853743642568588, 0.6690545678138733, 0.06585335731506348, -0.17507798969745636, 0.2981712520122528, -0.20188510417938232, -0.09698918461799622, -0.02644159644842148, 0.307140588760376, 0.09046544134616852, 0.30764564871788025, -0.08776044845581055, 0.007923138327896595, -0.24050042033195496, 0.008348945528268814, -0.12276768684387207, 0.2510817050933838, 0.18194538354873657, 0.1372247189283371, 0.052619487047195435, -0.10770717263221741, 0.1355050653219223, 0.12952721118927002, -0.15757368505001068, 0.0805242657661438, 0.019021693617105484, -0.03268304094672203, 0.19759994745254517, 0.2604439854621887, 0.19091099500656128, 0.06679756194353104, 0.16285696625709534, 0.032960083335638046, 0.07981355488300323, 0.08806420117616653, 0.048846371471881866, 0.015978198498487473, -0.04999444633722305, 0.1760449856519699, 0.1930764615535736, -0.199003204703331, 0.15011975169181824, -0.04316060245037079, 0.23456035554409027, -0.02460576966404915, -0.030827194452285767, -0.1757180392742157, 0.25363630056381226, 0.0369219072163105, -0.5302498936653137, 0.025189144536852837, -0.15791085362434387, -0.15176717936992645, -0.19077512621879578, 0.41341665387153625, -0.04548212140798569, -0.10680759698152542, 0.5862137675285339, 0.13598555326461792, -0.27446314692497253, -0.32538101077079773, -0.34156543016433716, 0.08600470423698425, -0.10349136590957642, -0.15166379511356354, 0.005847267806529999, 0.4095689058303833, 0.180959552526474, 0.021874256432056427, -0.3006665110588074, 0.06197705864906311, 0.2634928822517395, 0.27721673250198364, 0.16015541553497314, 0.1765420287847519, 0.31467127799987793, -0.034736134111881256, 0.027481546625494957, -0.22887367010116577, 0.021909065544605255, 0.12569934129714966, -0.25306805968284607, -0.30162033438682556, -0.4255339503288269, 0.38722658157348633, -0.07641687989234924, -0.37985682487487793, 0.43749529123306274, 0.1645979881286621, 0.0518093965947628, -0.0968884825706482, -0.15981775522232056, 0.24663174152374268, 0.016483325511217117, -0.11277343332767487, 0.15400922298431396, 0.5751520991325378, -0.3151276707649231, 0.14309924840927124, 0.2894153594970703, -0.11370950937271118, 0.10234340280294418, -0.019464600831270218, -0.01853151246905327, 0.48181623220443726, -0.2582138180732727, 0.06988510489463806, 0.0477963462471962, -0.12670068442821503, -0.10420630872249603, 0.18322868645191193, -0.2344665378332138, -0.2741395831108093, 0.18778641521930695, 0.05845167860388756, -0.2390834242105484, -0.03182268142700195, 0.028122495859861374, -0.013022299855947495, -0.2483191192150116, 0.14394506812095642, -0.34660670161247253, -0.09093859046697617, 0.16563235223293304, 0.08290277421474457, -0.04354387894272804, 0.24612128734588623, 0.17173773050308228, -0.07914522290229797, 0.37071725726127625, -0.17125798761844635, 0.010729698464274406, 0.1597406417131424, 0.06785085052251816, 0.0718667209148407, -0.008496614173054695, 0.1718660295009613, -0.3329462707042694, -0.10231807827949524, 0.159579336643219, 0.5026600956916809, 0.14633172750473022, -0.07624530047178268, -0.37068477272987366, 0.029235871508717537, -0.20210431516170502, -0.1942889392375946, 0.35413309931755066, 0.16004979610443115, -0.1231028139591217, -0.20767387747764587, -0.002453036606311798, 0.033584099262952805, 0.031325824558734894, -0.08468905836343765, -0.18332193791866302, -0.004993822425603867, -0.379963755607605, -0.033833712339401245, -0.05863708257675171, -0.024255812168121338, 0.0812007337808609, 0.012916944921016693, 0.019048258662223816, 0.43105724453926086, -0.2790730893611908, -0.06790433824062347, 0.5627070665359497, 0.15147635340690613, 0.1867130696773529, -0.44506707787513733, 0.09814337641000748, 0.15371200442314148, 0.08801355212926865, -0.10428641736507416, -0.08736469596624374, -0.13883011043071747, -0.0968949943780899, -0.010855309665203094, 0.02538444846868515, 0.055848829448223114, 0.25405803322792053, -0.17621083557605743, 0.0052062030881643295, -0.1326400488615036, 0.024567801505327225, 0.05123735964298248, 0.12701737880706787, -0.21167892217636108, -0.36627137660980225, 0.3381637930870056, -0.025375161319971085, -0.14805085957050323, 0.08425448834896088, 0.05429346486926079, 0.026981975883245468, 0.011710409075021744, 0.013405218720436096, 0.0008942224085330963, 0.3584878444671631, 0.38388022780418396, 0.1436132788658142, -0.09917669743299484, -0.11737415939569473, -0.12482303380966187, 0.3473040759563446, -0.16373971104621887, -0.47906577587127686, -0.12061231583356857, -0.08423847705125809, -0.1639930009841919, -0.20827609300613403, 0.05393574759364128, 0.030154695734381676, 0.32737112045288086, -0.4674088954925537, -0.015406065620481968, 0.0012499615550041199, -0.24169921875, 0.04068753495812416, -0.24489422142505646, 0.0110909603536129, -0.33005374670028687, 0.11966922134160995, -0.05895056203007698, -0.2556580603122711, 0.14508995413780212, 0.04545271024107933, 0.17347553372383118, 0.23655645549297333, 0.04316019266843796, -0.18922238051891327, -0.022204866632819176, -0.42363241314888, 0.2778358459472656, 0.09145815670490265, 0.09560717642307281, 0.4337262809276581, -0.5086320638656616, 0.3178621530532837, -0.3248068690299988, -0.41691339015960693, 0.048653773963451385, -0.06239420920610428, 0.2928636074066162, 0.3264862596988678, 0.4854377508163452, -0.0839012861251831, -0.25641942024230957, 0.22141505777835846, -0.10746030509471893, -0.13233081996440887, -0.017084648832678795, 0.05698467046022415, -0.20580869913101196, -0.2582443952560425, -0.5927214622497559, -0.19771631062030792, -0.15938986837863922, 0.011109992861747742, 0.007165700197219849, 0.16753500699996948, 0.2266668677330017, 0.3758992552757263, -0.053260985761880875, 0.26320356130599976, -0.0675201416015625, -0.40680283308029175, -0.38291221857070923, 0.3725733757019043, -0.2628762125968933, -0.45126765966415405, 0.3152409493923187, -0.06238384172320366, 0.3964836895465851, 0.00882999412715435, -0.1927192360162735, -0.002770177088677883, 0.2572729289531708, 0.2562943994998932, -0.25139322876930237, 0.25226646661758423, 0.44642749428749084, 0.08760614693164825, -0.2812778651714325, -0.28693270683288574, -0.2362576723098755, 0.25843194127082825, -0.17312726378440857, 0.5273771286010742, -0.04907293617725372, 0.08134379982948303, -0.12248928844928741, 0.3782918453216553, -0.08957935869693756, -0.15071550011634827, 0.26481980085372925, -0.27998968958854675, 0.2564317584037781, 0.0686420425772667, -0.22635267674922943, -0.15228427946567535, -0.019409090280532837, -0.08212839066982269, 0.28746482729911804, -0.08489842712879181, -0.2044006735086441, -0.2898988127708435, 0.3147914707660675, -0.40661394596099854, -0.11082436144351959, -0.02964366041123867, 0.2358543425798416, 0.18591392040252686, 0.1097186803817749, -0.22651812434196472, -0.34696730971336365, 0.11564416438341141, 0.025904584676027298, 0.15236106514930725, 0.0468728132545948, 0.10199172794818878, -0.15730373561382294, 0.21669429540634155, -0.1991821527481079, 0.2359323501586914, -0.05929600074887276, 0.06846120953559875, -0.21194002032279968, -0.11054717004299164, 0.020492903888225555, -0.016634155064821243, 0.5050596594810486, -0.4766313135623932, -0.061404816806316376, -0.0625867247581482, 0.33821550011634827, -0.20826028287410736, 0.18217335641384125, -0.1503007560968399, 0.05806727707386017, 0.548611044883728, -0.08534470200538635, -0.3905599117279053, 0.02483358606696129, 0.4796479642391205, -0.1935921460390091, -0.21959680318832397, -0.2921648919582367, -0.3023673892021179, -0.42317014932632446, -0.21238096058368683, 0.0203983336687088, 0.2630385160446167, -0.1270483136177063, 0.03624773770570755, -0.08377496898174286, -0.03964587301015854, 0.042592816054821014, 0.07561669498682022, 0.04955783113837242, 0.1876620352268219, -0.07948579639196396, 0.06654363870620728, 0.1121060773730278, 0.0032123811542987823, 0.09232790768146515, 0.4945862293243408, -0.1226416528224945, -0.016915790736675262, 0.14381840825080872, -0.387633353471756, 0.1921852082014084, 0.08568739891052246, 0.31607356667518616, -0.034868158400058746, -0.01841900497674942, 0.18219143152236938, -0.27325496077537537, 0.1843234896659851, 0.1353907436132431, -0.016232937574386597, -0.10047104954719543, -0.33612847328186035, 0.16392134130001068, -0.13008803129196167, -0.12737274169921875, 0.07687395811080933, 0.19644370675086975, -0.2938345968723297, -0.06865205615758896, 0.19493505358695984, 0.858910083770752, 0.06397486478090286, 0.06230246275663376, 0.21712735295295715, -0.4480828046798706, 0.020185139030218124, -0.2703668475151062, -0.21279016137123108, -0.3186030983924866, 0.14738887548446655, -0.04374537616968155, -0.035540126264095306, -0.02703675627708435, 0.23270787298679352, -0.46497175097465515, 0.07990220189094543, -0.1315220445394516, 0.19618874788284302, 0.27390480041503906, 0.34433236718177795, -0.03439294546842575, 0.04936549812555313, 0.11617061495780945, 0.34930726885795593, -0.08876137435436249, -0.1685163825750351, -0.27147001028060913, -0.26657843589782715, -0.09977155923843384, -0.31657642126083374, 0.04510442912578583, -0.007653824985027313, -0.28312036395072937, -0.15316782891750336, -0.3422064483165741, 0.05973893404006958, -0.3401520550251007, 0.1560552567243576, 0.10478518158197403, -0.021425683051347733, -0.2599794566631317, 0.046439386904239655, -0.17158791422843933, -0.024181639775633812, -0.30435416102409363, -0.14237070083618164, 0.115252286195755, -0.04132784157991409, -0.48879557847976685, 0.07683680951595306, -0.24018067121505737, -0.13970819115638733, -0.40363070368766785, 0.08684942871332169, 0.0016898922622203827, -0.3648315966129303, 0.16690514981746674, 0.18882787227630615, -0.13106651604175568, -0.0641670674085617, 0.2689376473426819, 0.09358673542737961, -0.12633845210075378, 0.02065236121416092, 0.006189566105604172, -0.09536878764629364, -0.14060159027576447, 0.3346547484397888, -0.06733088195323944, 0.17306050658226013, 0.3126896321773529, -0.27067291736602783, -0.13232135772705078, -0.36495479941368103, -0.16758993268013, 0.08949334919452667, -0.15158933401107788, -0.060714688152074814, -0.027115467935800552, -0.17412114143371582, 0.08859392255544662, 0.025487951934337616, 0.026051875203847885, 0.36455345153808594, 0.007050257176160812, -0.1784752905368805, -0.4282698929309845, -0.07383847236633301, -0.007283389568328857, 0.3068544566631317, -0.06446010619401932, 0.0699470117688179, 0.32302844524383545, 0.01706770621240139, -0.5245731472969055, -0.11070863157510757, -0.048016175627708435, 0.09720238298177719, 0.2529212534427643, -0.12321455031633377, 0.03676940128207207, -0.16258186101913452, 0.31108927726745605, -0.017354514449834824, -0.20381076633930206, -0.3298378884792328, -0.024497907608747482, 0.09327699989080429, 0.2282317876815796, -0.15099041163921356, 0.10932882130146027, -0.005447212606668472, -0.06537607312202454, 0.18087691068649292, -0.06443087011575699, -0.05902694910764694, -0.23706944286823273, 0.006289337761700153, 0.053597137331962585, 0.19410470128059387, -0.09816648066043854, -0.19420583546161652, 0.22714102268218994, 0.3822747468948364, -0.19274617731571198, -0.06122078746557236, -0.12587326765060425, -0.10737738013267517, 0.43490612506866455, 0.32761967182159424, 0.24484573304653168, 0.23439538478851318, 0.2460404336452484, -0.26151537895202637, 0.06397239863872528, -0.007680907379835844, 0.07676385343074799, 0.24329091608524323, -0.3255625367164612, -0.013877189718186855, -0.0068876780569553375, 0.45736849308013916, -0.22692617774009705, 0.09277369827032089, -0.05015239492058754, -0.2541120946407318, -0.022979648783802986, 0.0883273184299469, 0.28149011731147766, -0.24729187786579132, 0.12160487473011017, 0.16379359364509583, 0.3323267698287964, -0.27082955837249756, -0.23815247416496277, 0.14126858115196228, -0.7034727334976196, 0.11111848056316376, 0.18707045912742615, -0.016320083290338516, -0.02835843712091446, 0.20927952229976654, -0.0243842750787735, 0.46706080436706543, 0.13752710819244385, 0.17967107892036438, -0.012388408184051514, -0.014945374801754951, 0.20897319912910461, -0.16709277033805847, 0.04933955520391464, 0.17312398552894592, 0.2805655300617218, 0.13066314160823822, -0.3046567142009735, -0.0656871497631073, -0.26413315534591675, 0.04580746963620186, -0.19851964712142944, 0.1552319973707199, -0.3050840198993683, -0.16176718473434448, -0.10501853376626968, -0.1076352596282959, 0.13812194764614105, -0.11969240009784698, 0.1680980622768402, -0.05408954620361328, -0.010456480085849762, -0.20407557487487793, -0.1486496925354004, 0.17175671458244324, -0.0532020702958107, -0.21317745745182037, 0.11812049150466919, 0.469957172870636, -0.31835922598838806, 0.361100971698761, 0.37783360481262207, 0.36193281412124634, 0.2871730923652649, 0.000178460031747818, 0.040585994720458984, -0.04911531135439873, -0.17790432274341583, -0.18957234919071198, 0.12888984382152557, 0.13572587072849274, -0.06156231090426445, 0.13900619745254517, 0.294688880443573, -0.26695963740348816, 0.04832593351602554, 0.13307029008865356, 0.19393181800842285, -0.05553754046559334, -0.14283952116966248, -0.14614257216453552, -0.21225810050964355, -0.16315993666648865, 0.01781800389289856, -0.2689343988895416, 0.17854085564613342, 0.15748654305934906, -0.09532137960195541, 0.16349351406097412, -0.03975899890065193, 0.15638820827007294, 0.11052995920181274, 0.5070508122444153, 0.1724461168050766, 0.08095323294401169, -0.2949155271053314, -0.11152759194374084, -0.4728472828865051, 0.017632052302360535, 0.030329309403896332, -0.12787315249443054, -0.2946150302886963, 0.1349429488182068, 0.1478050947189331, -0.14146074652671814, 0.2328720986843109, -0.1490037441253662, 0.4568948745727539, 0.23306947946548462, -0.2671840488910675, -0.13808317482471466, 0.007705993950366974, 0.1922585815191269, 0.11575108766555786, -0.16905519366264343, 0.14755131304264069, 0.20846682786941528, 0.29016032814979553, -0.24613554775714874, -0.05042485520243645, 0.08287262916564941, 0.02243243157863617, 0.5077151656150818, 0.19554921984672546, 0.6775517463684082, -0.23687505722045898, -0.004379948601126671, -0.09490019083023071, -0.017304306849837303, -0.3285159766674042, 0.12921905517578125, 0.264423668384552, -0.003705723211169243, 0.08880934119224548, -0.2047472894191742, -0.1653347611427307, -0.040627360343933105, 0.10998384654521942, 0.12385738641023636, -0.2988104820251465, 0.306932657957077, -0.002086721360683441, -0.020448941737413406, 0.013356664218008518, 0.07441450655460358, -0.044292159378528595, 0.07972513139247894, -0.08223193883895874, -0.19341804087162018, 0.39646947383880615, 0.20917724072933197, -0.1814253181219101, 0.01064121350646019, 0.2504168748855591, -0.0359221026301384, 0.23098143935203552, -0.46934494376182556, 0.037786342203617096, 0.2505180239677429, -0.15392327308654785, -0.23032206296920776, 0.3327643871307373, 0.10562479496002197, -0.035094939172267914, 0.025689270347356796, 0.3748742341995239, 0.3443584144115448, 0.012546146288514137, 0.1756625771522522, -0.09592149406671524 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
> Some paths were wrong - the structure is really confusing and the error message don't really help either - I have to think about how to make this easier to understand! Oh ok! I haven't noticed that sorry :( > Hope it was ok that I fiddled with your PR ! Of course it was ok :)
Add the Webid TL:DR dataset.
58
text: Webis tl-dr Add the Webid TL:DR dataset. > Some paths were wrong - the structure is really confusing and the error message don't really help either - I have to think about how to make this easier to understand! Oh ok! I haven't noticed that sorry :( > Hope it was ok that I fiddled with your PR ! Of course it was ok :)
[ -0.23092608153820038, -0.2265719771385193, -0.17103271186351776, 0.0679800882935524, -0.09606672823429108, 0.06512611359357834, 0.18646404147148132, 0.01850452646613121, 0.05599542334675789, -0.0612989217042923, 0.11087431758642197, -0.022747740149497986, 0.24530170857906342, 0.291204035282135, 0.15693111717700958, -0.127374529838562, -0.09145506471395493, 0.16731694340705872, -0.012354835867881775, 0.047640614211559296, -0.2810133397579193, -0.004690553992986679, -0.03612500801682472, 0.16719619929790497, -0.10878431797027588, -0.22605818510055542, -0.3219286799430847, 0.5193994045257568, -0.1550159454345703, -0.2587811052799225, 0.04067783057689667, 0.09044613689184189, 0.08519627898931503, 0.3310149013996124, -0.00010011175618274137, -0.045343801379203796, 0.130435973405838, -0.003953540697693825, -0.2147720903158188, 0.18238553404808044, -0.6459428071975708, 0.054338641464710236, -0.11617681384086609, -0.3648568391799927, 0.300592303276062, -0.005208308808505535, 0.03938889503479004, 0.005279179662466049, 0.09372393786907196, 0.3982888460159302, 0.36631375551223755, 0.2119619995355606, 0.28675708174705505, -0.08583439886569977, 0.03473477065563202, -0.04044496268033981, 0.09791450947523117, -0.015799175947904587, -0.08387352526187897, 0.07984847575426102, 0.18680468201637268, 0.018262971192598343, -0.174444779753685, -0.013614591211080551, 0.18591180443763733, 0.05040651187300682, 0.2493252158164978, -0.22256216406822205, 0.24834409356117249, -0.012155897915363312, 0.7644687294960022, 0.14536163210868835, -0.17557120323181152, 0.25820326805114746, -0.24680639803409576, -0.14384949207305908, 0.05660930275917053, 0.3943083882331848, 0.07142992317676544, 0.30033671855926514, -0.07974613457918167, -0.10204286873340607, -0.26964884996414185, 0.04987180978059769, -0.004635941237211227, 0.15401288866996765, 0.2367381453514099, 0.12056007981300354, 0.03829624503850937, -0.11761699616909027, 0.307320237159729, 0.24967002868652344, -0.1588306427001953, 0.23062297701835632, 0.1097550243139267, 0.05561397224664688, 0.2372184693813324, 0.3054485321044922, 0.10555032640695572, 0.026209915056824684, 0.19295379519462585, -0.0777454599738121, -0.030107703059911728, 0.05623703449964523, 0.01876736804842949, -0.04826093092560768, -0.11553018540143967, 0.13410387933254242, 0.16101163625717163, -0.2157307267189026, 0.1634282022714615, -0.02919333428144455, 0.21197611093521118, -0.23117300868034363, -0.1164548397064209, -0.18825030326843262, 0.16501763463020325, 0.14597102999687195, -0.449142724275589, -0.04969894886016846, -0.21929258108139038, -0.22629110515117645, -0.14384523034095764, 0.4006812274456024, -0.019204892218112946, -0.2677260637283325, 0.5162953734397888, 0.027880992740392685, -0.19857321679592133, -0.1338706910610199, -0.2891608774662018, 0.12736083567142487, -0.0860104188323021, -0.11398082226514816, -0.09331318736076355, 0.37370917201042175, 0.09582513570785522, -0.015049141831696033, -0.3289167881011963, -0.019939562305808067, 0.07089640200138092, 0.3514266908168793, 0.23602354526519775, 0.1654110848903656, 0.33599889278411865, 0.05414937436580658, -0.14346575736999512, -0.2229856550693512, -0.05469246581196785, 0.12926848232746124, -0.3957785665988922, -0.42144322395324707, -0.4590508043766022, 0.33978602290153503, -0.05786809325218201, -0.4122478663921356, 0.39678263664245605, 0.04697425290942192, 0.06193601340055466, -0.09717439860105515, -0.22082525491714478, 0.28294652700424194, 0.1360119879245758, -0.16666047275066376, 0.16105234622955322, 0.5072108507156372, -0.24148893356323242, 0.12603071331977844, 0.18600334227085114, -0.1285124272108078, 0.20037035644054413, 0.14749222993850708, -0.03182027488946915, 0.5583682060241699, -0.3188503086566925, 0.08730320632457733, 0.17704710364341736, -0.08598508685827255, -0.16840985417366028, 0.2102721929550171, -0.31782662868499756, -0.33850911259651184, 0.2545085549354553, 0.03722235560417175, -0.20675674080848694, -0.13684602081775665, 0.07419248670339584, 0.06054350733757019, -0.20064014196395874, 0.19125854969024658, -0.3583982586860657, -0.11460234969854355, 0.23652692139148712, 0.02832338958978653, 0.000049870461225509644, 0.2236965298652649, 0.31955569982528687, 0.010735736228525639, 0.4975506663322449, -0.17687125504016876, -0.011761077679693699, 0.1806085854768753, 0.1316063553094864, 0.107853963971138, -0.05021824315190315, 0.16640740633010864, -0.3184471130371094, -0.1686602234840393, 0.20170795917510986, 0.36255133152008057, 0.07038799673318863, -0.015721749514341354, -0.29800546169281006, -0.0890238806605339, -0.2749788165092468, -0.10509085655212402, 0.33810955286026, 0.0823746770620346, -0.15113770961761475, -0.3638993203639984, -0.00669422373175621, 0.0014112945646047592, -0.07104963064193726, -0.08850029110908508, -0.0448191873729229, 0.017597654834389687, -0.5144324898719788, 0.021981390193104744, -0.0766691118478775, 0.09003107994794846, 0.07109618186950684, -0.010704359970986843, 0.036754198372364044, 0.4433628022670746, -0.42491427063941956, -0.01138506829738617, 0.5933476686477661, 0.3039870262145996, 0.14794977009296417, -0.5145977735519409, 0.0934552401304245, -0.004804743453860283, -0.042775921523571014, -0.020317915827035904, -0.01828760653734207, -0.33071208000183105, -0.2806412875652313, 0.11956261098384857, 0.09416770935058594, 0.07400725781917572, 0.32222816348075867, -0.10310666263103485, -0.06411151587963104, -0.057458024471998215, 0.05814957618713379, 0.08011199533939362, 0.04327910766005516, -0.15150205790996552, -0.3186104893684387, 0.29991868138313293, 0.030375394970178604, -0.1468517929315567, 0.048561207950115204, 0.1290813684463501, 0.11631396412849426, 0.029679913073778152, -0.11985240876674652, 0.08997942507266998, 0.17591047286987305, 0.36029529571533203, 0.18892265856266022, -0.041750140488147736, -0.08278877288103104, -0.13505584001541138, 0.3761591613292694, 0.04313411936163902, -0.34653240442276, -0.2190430462360382, -0.05920031666755676, 0.057729657739400864, -0.14479681849479675, -0.16160057485103607, 0.0481642410159111, 0.38615188002586365, -0.47666242718696594, -0.0779227688908577, 0.005048366263508797, -0.31042245030403137, -0.05330207198858261, -0.30220094323158264, -0.009367890655994415, -0.33346307277679443, 0.09602876007556915, -0.18701352179050446, -0.29164764285087585, 0.2954305410385132, 0.2280365228652954, 0.15059193968772888, 0.20493878424167633, 0.09077436476945877, -0.18018838763237, 0.000039280857890844345, -0.2655424177646637, 0.26851311326026917, 0.2383522391319275, 0.019556809216737747, 0.4488966763019562, -0.5705195665359497, 0.22695332765579224, -0.3805786073207855, -0.3512515425682068, 0.06339885294437408, -0.052536629140377045, 0.21805042028427124, 0.38259297609329224, 0.5985778570175171, -0.08597023040056229, -0.43962541222572327, 0.11949799209833145, 0.1381635218858719, -0.0786549374461174, -0.11292734742164612, 0.006345522589981556, -0.3005412518978119, -0.12311762571334839, -0.5864577293395996, -0.1719827800989151, -0.24822518229484558, 0.19145479798316956, 0.005842946469783783, 0.3389604091644287, 0.24161122739315033, 0.3722826838493347, -0.011913665570318699, 0.09925305843353271, 0.1015225425362587, -0.26115870475769043, -0.38962021470069885, 0.29538199305534363, -0.2405804544687271, -0.41720160841941833, 0.3188415467739105, 0.02694152668118477, 0.4603094160556793, -0.03537560999393463, -0.23885461688041687, 0.1719118356704712, 0.14117524027824402, 0.345577210187912, -0.1810692548751831, 0.3970158100128174, 0.405495285987854, 0.174207404255867, -0.2245568186044693, -0.13122878968715668, -0.19465766847133636, 0.09851603209972382, -0.07777657359838486, 0.5688111186027527, 0.005493571981787682, 0.00014547258615493774, -0.09600596129894257, 0.3633257746696472, -0.05726565793156624, -0.0793568342924118, 0.22618111968040466, -0.2149861752986908, 0.21343916654586792, 0.027320142835378647, -0.21544286608695984, 0.03021680749952793, -0.02196100354194641, -0.17666082084178925, 0.14472001791000366, -0.11240781098604202, -0.21679674088954926, -0.18999923765659332, 0.25773918628692627, -0.512417733669281, -0.1336945742368698, 0.012413774617016315, 0.1594388782978058, 0.21153166890144348, 0.10983680188655853, -0.3306867182254791, -0.318419873714447, 0.1709010899066925, 0.10435138642787933, 0.2961671054363251, 0.13597767055034637, 0.15983296930789948, -0.14621025323867798, 0.09372193366289139, -0.16125306487083435, 0.14214210212230682, -0.06446097046136856, -0.003990449942648411, -0.21154342591762543, -0.05290866643190384, 0.042815323919057846, 0.0032941456884145737, 0.48330968618392944, -0.42602768540382385, -0.0918024331331253, -0.10546150803565979, 0.4769890308380127, -0.035132359713315964, 0.18767149746418, -0.10431504249572754, 0.15604305267333984, 0.7029850482940674, -0.05061376094818115, -0.2774108648300171, 0.06948427855968475, 0.4461964964866638, -0.13032229244709015, -0.17773574590682983, -0.3198029100894928, -0.22886165976524353, -0.46951794624328613, -0.30457237362861633, 0.023251846432685852, 0.3428782522678375, -0.06351373344659805, 0.1239025741815567, -0.13994745910167694, 0.0033601950854063034, 0.0022585485130548477, -0.061458930373191833, -0.000057588331401348114, 0.21454060077667236, -0.013282467611134052, -0.047450870275497437, 0.11895964294672012, 0.07720791548490524, 0.11157241463661194, 0.4050299823284149, -0.22005164623260498, 0.07213448733091354, 0.19238635897636414, -0.47951841354370117, 0.2953072786331177, 0.06709566712379456, 0.3326784074306488, -0.1028251126408577, 0.09922070056200027, 0.32224178314208984, -0.18532225489616394, 0.17099794745445251, 0.19665241241455078, 0.0006412528455257416, -0.2295846790075302, -0.42041662335395813, 0.22536450624465942, -0.10918164253234863, -0.16067299246788025, 0.10714992880821228, 0.30431345105171204, -0.2795884907245636, -0.15784987807273865, 0.24132084846496582, 0.97291100025177, 0.042680852115154266, -0.0003328472375869751, 0.13874712586402893, -0.5220588445663452, 0.13672718405723572, -0.15408462285995483, -0.232468843460083, -0.29951655864715576, 0.14685308933258057, -0.07260351628065109, -0.08901122212409973, -0.11665167659521103, 0.16381683945655823, -0.4285453259944916, 0.11148490011692047, -0.1120961382985115, 0.05054150149226189, 0.28533947467803955, 0.3975965082645416, 0.09425094723701477, -0.09160961210727692, -0.1037692278623581, 0.2765779197216034, -0.09755560755729675, -0.11831532418727875, -0.2638135552406311, -0.22128574550151825, -0.016765523701906204, -0.37676143646240234, -0.12848173081874847, -0.08312048017978668, -0.24928812682628632, -0.09241145849227905, -0.30775314569473267, 0.007808074355125427, -0.19682516157627106, 0.24724851548671722, 0.05222220718860626, -0.010789833962917328, -0.22634616494178772, 0.05052941292524338, -0.07387501746416092, -0.17790129780769348, -0.3399793207645416, -0.08340959995985031, 0.12898874282836914, -0.06579237431287766, -0.36932024359703064, 0.08124202489852905, -0.3655731976032257, -0.19251203536987305, -0.44594845175743103, 0.07483948767185211, 0.042745620012283325, -0.14161887764930725, 0.2453273981809616, 0.1993139088153839, -0.15564574301242828, -0.06472913175821304, 0.22749356925487518, 0.10438349097967148, -0.11864779889583588, 0.009186483919620514, 0.08330836147069931, -0.09620694071054459, -0.054315920919179916, 0.1886812448501587, -0.0002603083848953247, 0.12344872951507568, 0.3650904595851898, -0.12218253314495087, -0.180873304605484, -0.3241661489009857, -0.09213864803314209, 0.11604178696870804, -0.18828104436397552, -0.10787572711706161, -0.022880354896187782, -0.12883524596691132, -0.017764253541827202, 0.13650484383106232, 0.07692776620388031, 0.48328742384910583, -0.11186721920967102, -0.1815636157989502, -0.3998151421546936, 0.04981962591409683, -0.1406497061252594, 0.280102401971817, -0.09966738522052765, 0.10176286101341248, 0.34387513995170593, -0.0256208423525095, -0.49763792753219604, -0.10997536778450012, -0.10266242921352386, 0.05866105854511261, 0.2945078909397125, -0.06994958966970444, -0.024176176637411118, -0.17921729385852814, 0.29089054465293884, -0.047496601939201355, -0.15260498225688934, -0.2932877838611603, -0.011030354537069798, 0.08938832581043243, 0.2716062068939209, -0.14025840163230896, 0.1830296516418457, 0.00679372251033783, 0.01721167005598545, 0.15187831223011017, -0.12006828188896179, -0.02287985198199749, -0.19689534604549408, -0.06541871279478073, 0.17912447452545166, 0.07889655232429504, -0.13671058416366577, -0.16360466182231903, 0.15457788109779358, 0.37100350856781006, -0.15344056487083435, 0.022611161693930626, -0.15558509528636932, -0.11922109127044678, 0.43624401092529297, 0.26199066638946533, 0.2541259527206421, 0.34780481457710266, 0.16681888699531555, -0.2682633399963379, 0.08327464759349823, 0.03759719431400299, 0.04843318462371826, 0.26036253571510315, -0.27684515714645386, -0.0388566330075264, 0.05890566483139992, 0.39676985144615173, -0.22949935495853424, 0.05233204364776611, -0.21339327096939087, -0.2830798923969269, -0.08251385390758514, 0.027919359505176544, 0.1175965666770935, -0.25384587049484253, -0.048951417207717896, 0.13187414407730103, 0.3334967792034149, -0.34595203399658203, -0.12282454967498779, 0.1428506076335907, -0.6828773617744446, 0.07634731382131577, 0.17100000381469727, -0.016980111598968506, -0.06244731694459915, 0.23756469786167145, -0.11012429744005203, 0.34010055661201477, 0.2939654588699341, 0.2342345416545868, 0.00012714415788650513, 0.01815512403845787, 0.13782812654972076, -0.31394192576408386, 0.1301967203617096, 0.09901411831378937, 0.3207395076751709, 0.08595511317253113, -0.2293853759765625, -0.09212815016508102, -0.18519510328769684, 0.11254674196243286, -0.12046030908823013, 0.11918427050113678, -0.35974496603012085, -0.20655348896980286, -0.029069986194372177, -0.16238440573215485, 0.031123027205467224, -0.19026626646518707, 0.22271403670310974, -0.0937606543302536, 0.05650615319609642, -0.2686721384525299, -0.04034107178449631, 0.08989228308200836, -0.06147771328687668, -0.21682104468345642, 0.16645917296409607, 0.3821631669998169, -0.3530794680118561, 0.1931801736354828, 0.2856162190437317, 0.4254150390625, 0.3695761561393738, 0.054728806018829346, 0.07251164317131042, -0.013783048838376999, -0.1919538676738739, -0.11618239432573318, -0.03065401315689087, 0.10989328473806381, 0.006365157663822174, 0.17359772324562073, 0.26950791478157043, -0.26388564705848694, 0.19462160766124725, 0.08681941777467728, 0.353730708360672, 0.10865764319896698, -0.11502940207719803, -0.26848843693733215, -0.2815555930137634, -0.14794524013996124, 0.05840185284614563, -0.23080164194107056, 0.16908833384513855, 0.06370609998703003, -0.17205984890460968, 0.12001001089811325, 0.09003963321447372, 0.13908052444458008, 0.20843420922756195, 0.6772979497909546, 0.37276512384414673, 0.13918426632881165, -0.2544640004634857, -0.0834454596042633, -0.4975113570690155, 0.019758597016334534, -0.028572645038366318, -0.0736389234662056, -0.23111511766910553, 0.1643495112657547, 0.07626756280660629, -0.17650452256202698, 0.46339523792266846, -0.06946736574172974, 0.3757874667644501, 0.24384795129299164, -0.2569037973880768, -0.08089227974414825, 0.1667863428592682, 0.21727898716926575, 0.05368088185787201, -0.003512885421514511, 0.24342766404151917, 0.22594770789146423, 0.26555243134498596, -0.2824576497077942, -0.005271188914775848, 0.030878879129886627, -0.034638240933418274, 0.3661251366138458, 0.1869470179080963, 0.5380381941795349, -0.2708028256893158, -0.14934168756008148, -0.22988176345825195, -0.10657300055027008, -0.3305904269218445, 0.2561584711074829, 0.18796448409557343, 0.007350977510213852, 0.04150409996509552, -0.2082882672548294, -0.3239920735359192, -0.1465257853269577, -0.04254630208015442, 0.23496808111667633, -0.33194875717163086, 0.2503541111946106, 0.12084884196519852, 0.05692201107740402, 0.07556170970201492, -0.09993439167737961, -0.0035397596657276154, -0.0335710346698761, -0.04721818491816521, -0.2706691324710846, 0.4355340600013733, 0.247595876455307, -0.12389104068279266, 0.036100082099437714, 0.2041972279548645, 0.1372339129447937, 0.39575624465942383, -0.4083864688873291, -0.048441044986248016, 0.2961736023426056, -0.1973206102848053, -0.2775258421897888, 0.22397345304489136, -0.011403677985072136, -0.060384415090084076, 0.030330900102853775, 0.2636164128780365, 0.26599398255348206, -0.1273600459098816, 0.10212387144565582, -0.16758787631988525 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
@julien-c Looks like what you have in mind? ```python import nlp nlp.load_dataset("datasets/webis", "tl_dr") #Output: Downloading and preparing dataset webis/tl_dr (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/jplu/.cache/huggingface/datasets/webis/tl_dr/1.0.0... ```
Add the Webid TL:DR dataset.
31
text: Webis tl-dr Add the Webid TL:DR dataset. @julien-c Looks like what you have in mind? ```python import nlp nlp.load_dataset("datasets/webis", "tl_dr") #Output: Downloading and preparing dataset webis/tl_dr (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/jplu/.cache/huggingface/datasets/webis/tl_dr/1.0.0... ```
[ 0.000791892409324646, -0.2780883014202118, -0.0939236581325531, -0.09696419537067413, -0.0292038694024086, 0.3225662112236023, 0.3425843417644501, 0.4576587975025177, 0.35348597168922424, -0.20550964772701263, -0.24844080209732056, 0.09881357848644257, 0.02702908404171467, 0.30149486660957336, 0.44735392928123474, -0.0703938752412796, -0.16286960244178772, 0.39668476581573486, 0.05517826974391937, 0.019424714148044586, -0.3112492263317108, 0.15920580923557281, 0.0550185889005661, 0.0832495167851448, -0.09726033359766006, -0.07574975490570068, -0.2199762463569641, 0.21051755547523499, -0.06475097686052322, -0.3024880886077881, 0.26686716079711914, 0.141203373670578, 0.2218138575553894, 0.08026252686977386, -0.00010182984988205135, -0.09710800647735596, 0.04204238951206207, -0.13778553903102875, -0.2865486741065979, -0.24906189739704132, -0.31561800837516785, -0.3471768796443939, 0.06568486243486404, -0.5176342129707336, 0.009461253881454468, -0.10149317979812622, 0.26862815022468567, 0.0030326247215270996, 0.32355040311813354, 0.3376903533935547, 0.31153056025505066, 0.3690502941608429, 0.10403424501419067, 0.12795336544513702, -0.12232432514429092, -0.1788223534822464, 0.15289032459259033, 0.24542789161205292, -0.20641285181045532, -0.22974948585033417, 0.21738344430923462, 0.2883065938949585, -0.14696559309959412, -0.10749737918376923, 0.18567276000976562, 0.24671538174152374, 0.13456545770168304, -0.12495982646942139, 0.17816486954689026, 0.21021565794944763, 0.44233351945877075, -0.30647915601730347, -0.2917170226573944, -0.02593732625246048, 0.023689594119787216, -0.38161081075668335, -0.08094047755002975, 0.514275074005127, 0.014952827244997025, 0.2441691905260086, -0.12012878805398941, -0.014232038520276546, -0.2385115772485733, 0.20734643936157227, -0.008456841111183167, 0.4338070750236511, 0.17283615469932556, -0.04051023721694946, 0.02687009423971176, -0.14867855608463287, -0.04949142783880234, 0.24524261057376862, 0.005892757326364517, 0.459831565618515, -0.10010141134262085, -0.22565804421901703, 0.1171460747718811, 0.13170939683914185, 0.2301642894744873, 0.08241510391235352, 0.1879228949546814, -0.1479044258594513, -0.0015499135479331017, 0.16765096783638, -0.0006888434290885925, 0.16212280094623566, 0.04704594984650612, -0.09128767997026443, 0.1383158564567566, -0.028599634766578674, 0.1383531242609024, 0.003392554819583893, 0.0814395397901535, 0.13158611953258514, 0.11689227819442749, -0.2711679935455322, 0.1843303143978119, 0.3037894666194916, -0.2899216115474701, -0.061984479427337646, -0.3131140470504761, -0.21617521345615387, -0.23080062866210938, 0.28701916337013245, -0.08128843456506729, 0.06528063118457794, 0.48880451917648315, 0.14316049218177795, -0.12537024915218353, -0.35087043046951294, -0.23011767864227295, 0.17902590334415436, -0.054907698184251785, -0.086331807076931, -0.015134874731302261, 0.1822095513343811, 0.3900529742240906, -0.22440822422504425, -0.2690337300300598, -0.10932920128107071, 0.04783421754837036, 0.20726457238197327, -0.004481084644794464, 0.08714497089385986, 0.2716296315193176, 0.1001887172460556, -0.03218436613678932, -0.3570702075958252, -0.2738020122051239, -0.0020126476883888245, -0.07918266206979752, -0.0788455381989479, -0.29042020440101624, 0.2935119569301605, -0.05952344462275505, -0.5059245824813843, 0.2340470254421234, 0.22922393679618835, 0.12448947876691818, -0.06264358013868332, 0.04452817887067795, 0.28220465779304504, -0.03301311284303665, -0.02969813533127308, 0.08118831366300583, 0.44776594638824463, 0.08720029890537262, -0.2976229190826416, 0.25527244806289673, -0.017847806215286255, 0.00023753196001052856, 0.19088415801525116, -0.013987861573696136, 0.4192143976688385, -0.10550729930400848, 0.30709904432296753, 0.3804055154323578, -0.2244712859392166, -0.25173524022102356, 0.2084047645330429, -0.2277054488658905, -0.10661637783050537, 0.21372635662555695, 0.3129637837409973, -0.1780243217945099, 0.012527267448604107, 0.16421343386173248, 0.4602015018463135, -0.12250004708766937, 0.27700045704841614, -0.14154912531375885, -0.22108472883701324, 0.178757444024086, 0.060045551508665085, -0.03579822555184364, 0.20155802369117737, -0.038692720234394073, 0.27281585335731506, 0.4471384882926941, -0.14225438237190247, 0.13203218579292297, -0.07184939086437225, -0.12789314985275269, 0.1590191125869751, -0.18386678397655487, -0.13805407285690308, -0.35959362983703613, -0.010411322116851807, 0.13042579591274261, 0.32711538672447205, 0.027643367648124695, -0.3048465847969055, -0.4684663712978363, 0.04611114412546158, -0.0808476060628891, -0.08481132984161377, 0.20844940841197968, 0.18726152181625366, 0.14429832994937897, -0.03874966874718666, -0.1606578677892685, 0.16990163922309875, 0.15003137290477753, 0.044756896793842316, -0.2653190791606903, -0.052960604429244995, -0.12897264957427979, 0.02767821028828621, 0.032608792185783386, 0.20813784003257751, -0.01760808378458023, 0.1039879322052002, 0.1357516050338745, 0.33251452445983887, -0.5588159561157227, 0.19074901938438416, 0.5013332366943359, 0.13915963470935822, 0.13106662034988403, -0.43611273169517517, 0.06330335140228271, 0.2814429998397827, 0.17945419251918793, 0.017670437693595886, -0.047305360436439514, 0.09925003349781036, 0.10069671273231506, 0.11044535040855408, 0.1504925638437271, 0.14554163813591003, 0.26601311564445496, -0.30200549960136414, -0.11484261602163315, -0.08319743722677231, 0.06827195733785629, -0.11484394967556, 0.14333803951740265, -0.19314035773277283, -0.5621479749679565, 0.2462460696697235, 0.20526596903800964, -0.17564819753170013, 0.1917465627193451, 0.1258699595928192, -0.037307605147361755, -0.036740612238645554, -0.1725679337978363, 0.008470144122838974, 0.18251940608024597, 0.28399237990379333, 0.16394169628620148, 0.03425029665231705, -0.18988633155822754, -0.24644000828266144, 0.23018822073936462, -0.06959991157054901, -0.27202993631362915, -0.025223664939403534, 0.17178741097450256, -0.051374662667512894, -0.1572847068309784, 0.09104356169700623, -0.09319556504487991, 0.09806682914495468, -0.2366439402103424, 0.24772731959819794, 0.07872379571199417, -0.7360947728157043, -0.24610227346420288, -0.3413212299346924, -0.2433634102344513, -0.3059699833393097, -0.04510881006717682, -0.08679203689098358, -0.002642592415213585, 0.13804911077022552, -0.15484179556369781, 0.28600332140922546, 0.08360764384269714, -0.20421431958675385, -0.022022709250450134, -0.09181252866983414, -0.25771164894104004, 0.1788724660873413, -0.002535681240260601, -0.06109283119440079, 0.6768617630004883, -0.3560870587825775, 0.19640672206878662, -0.2171349972486496, -0.34821370244026184, 0.03606506064534187, -0.166716068983078, 0.16723290085792542, 0.23884369432926178, 0.46508628129959106, -0.047410450875759125, -0.08342170715332031, 0.13382120430469513, -0.2056373804807663, -0.11040846258401871, -0.2750611901283264, 0.07807552069425583, 0.21619567275047302, -0.13906455039978027, -0.3993297219276428, -0.41685351729393005, -0.412814199924469, 0.21626172959804535, 0.09870751202106476, 0.342151939868927, 0.418794184923172, -0.24523788690567017, 0.021994315087795258, 0.25482168793678284, 0.01808152347803116, -0.26793909072875977, -0.2567625641822815, 0.2837638556957245, -0.3123471736907959, -0.2647455632686615, 0.1672828644514084, -0.19314752519130707, 0.5619632601737976, -0.02353265881538391, -0.18154102563858032, 0.03649222478270531, 0.09845155477523804, 0.2328765094280243, -0.23768362402915955, 0.3178897202014923, 0.29558902978897095, -0.03605622053146362, -0.20251867175102234, -0.13965296745300293, -0.056456420570611954, 0.22308757901191711, 0.00884668156504631, 0.2731650471687317, 0.2454320788383484, 0.1379217505455017, -0.032969534397125244, 0.3358207941055298, 0.1072993129491806, -0.028540093451738358, 0.5150172114372253, -0.20829318463802338, 0.07783116400241852, 0.1465597301721573, -0.188139408826828, -0.27608412504196167, 0.27496352791786194, -0.021063828840851784, 0.3857850432395935, 0.031172605231404305, -0.1710771769285202, -0.28609317541122437, 0.06191309913992882, -0.5358381271362305, -0.20490345358848572, 0.09103069454431534, 0.0628189668059349, 0.32126250863075256, -0.029921159148216248, -0.31687137484550476, -0.3447813391685486, -0.11209532618522644, -0.107298344373703, 0.28530681133270264, 0.06297026574611664, 0.2176275998353958, -0.14583219587802887, 0.030536489561200142, -0.49275219440460205, 0.2176796793937683, 0.11890532076358795, 0.04425845295190811, -0.07050347328186035, -0.3013688325881958, 0.12342275679111481, 0.04721194878220558, 0.3963354825973511, -0.08953797817230225, 0.06685911118984222, -0.12852147221565247, 0.23201259970664978, -0.29242846369743347, 0.26193466782569885, -0.0078207366168499, 0.03689047694206238, 0.63966965675354, 0.18071907758712769, -0.465533584356308, -0.04942208528518677, 0.5077224969863892, -0.0861554816365242, -0.26914647221565247, -0.37166744470596313, -0.2743835151195526, -0.4219207167625427, -0.16511616110801697, -0.08646883815526962, 0.07923487573862076, 0.23542290925979614, 0.3849664032459259, 0.17383581399917603, -0.1860101968050003, -0.09048222750425339, 0.16692566871643066, 0.1404014378786087, 0.1382162868976593, 0.3170662820339203, -0.002566937357187271, 0.07766503840684891, 0.0894656777381897, -0.48809683322906494, 0.44346192479133606, -0.3443889021873474, -0.13729718327522278, -0.30778834223747253, 0.03686041012406349, 0.3332301676273346, 0.10697229206562042, 0.30553844571113586, 0.06759180873632431, 0.0524991974234581, 0.09963726997375488, -0.47692590951919556, 0.2324836701154709, 0.07865914702415466, -0.01685386523604393, -0.25494062900543213, -0.5064833164215088, 0.5795230865478516, -0.15893709659576416, 0.04469788074493408, -0.115309938788414, 0.24611569941043854, -0.4925347566604614, -0.24615928530693054, 0.1378995180130005, 1.0092556476593018, -0.2892916798591614, 0.4005838632583618, 0.30191871523857117, -0.3266388773918152, 0.505974292755127, -0.06751484423875809, -0.005334915593266487, -0.33551549911499023, 0.332467645406723, -0.02304205484688282, 0.17295561730861664, -0.2356802225112915, 0.029472501948475838, -0.1928783804178238, 0.2386116236448288, -0.03203650936484337, -0.04818974807858467, 0.29076290130615234, 0.478621244430542, -0.2001838982105255, -0.41967254877090454, -0.5774620175361633, 0.22374460101127625, -0.2997822165489197, 0.22601665556430817, -0.16840076446533203, -0.33599698543548584, -0.08369753509759903, -0.15437665581703186, -0.006857573986053467, -0.035993676632642746, -0.05627654865384102, -0.004087543115019798, -0.11636173725128174, -0.04963339865207672, -0.48078271746635437, 0.20776823163032532, 0.09883974492549896, 0.06373466551303864, -0.16926680505275726, -0.032083284109830856, -0.41256657242774963, -0.21809151768684387, -0.10613002628087997, 0.17944958806037903, 0.3565594255924225, -0.09058540314435959, -0.1632010042667389, 0.14931872487068176, 0.004764772020280361, -0.07057300209999084, -0.39026588201522827, 0.005675353109836578, -0.23939301073551178, -0.16944436728954315, -0.11805768311023712, 0.08636707812547684, -0.05179508775472641, -0.043626025319099426, 0.16426831483840942, 0.10909903049468994, -0.2317858189344406, -0.3360658884048462, -0.039563003927469254, -0.15125137567520142, -0.06760434806346893, 0.43778684735298157, 0.053321000188589096, 0.016580943018198013, 0.48288941383361816, -0.018541745841503143, 0.0466785728931427, -0.20926547050476074, -0.16536614298820496, -0.11917231231927872, -0.10189448297023773, 0.09901577234268188, 0.04907035827636719, 0.01337432861328125, -0.2942394018173218, 0.18016386032104492, 0.01970093697309494, 0.37078413367271423, 0.07917411625385284, -0.25809940695762634, -0.48235610127449036, 0.09741850197315216, 0.018835023045539856, 0.13347528874874115, 0.2100258767604828, 0.33269619941711426, 0.24371734261512756, 0.022844843566417694, -0.4498412609100342, -0.0982033982872963, -0.13855594396591187, 0.08318758010864258, 0.4668392539024353, -0.02524501085281372, 0.1606937199831009, 0.1155160665512085, 0.26492100954055786, -0.09706893563270569, -0.1967337727546692, -0.30558714270591736, -0.2980020046234131, 0.1044602021574974, 0.1615370213985443, -0.08861969411373138, 0.15685473382472992, -0.10300404578447342, -0.017037227749824524, -0.11254137009382248, -0.02212062105536461, -0.07170285284519196, -0.12192857265472412, 0.2623693346977234, -0.01596931740641594, 0.10466606914997101, -0.15950819849967957, -0.04860302805900574, 0.07490088045597076, 0.26176005601882935, -0.17822197079658508, 0.03444017842411995, -0.12236598879098892, -0.08005249500274658, 0.0015736365457996726, 0.13104313611984253, 0.33769387006759644, -0.02390315756201744, 0.13303831219673157, -0.14241760969161987, 0.03287705406546593, 0.2665448486804962, 0.17708711326122284, 0.07233226299285889, -0.2508052885532379, 0.1577945351600647, 0.06474507600069046, 0.346222847700119, -0.30054062604904175, 0.18132121860980988, -0.08703257143497467, -0.3959023952484131, 0.06608717143535614, 0.35041141510009766, 0.030947308987379074, -0.03281186893582344, -0.13914600014686584, -0.04282311350107193, 0.3317304849624634, -0.2273091822862625, -0.1445440649986267, 0.22787366807460785, -0.23032420873641968, 0.07128264009952545, 0.06797541677951813, 0.11122757196426392, 0.2747402787208557, 0.014141060411930084, -0.219252347946167, 0.28670060634613037, -0.080812968313694, 0.09870724380016327, -0.05213787406682968, -0.025551512837409973, -0.16690410673618317, -0.07371227443218231, 0.15338410437107086, 0.38221341371536255, 0.048449575901031494, 0.5221192836761475, -0.2578454911708832, -0.06655918061733246, -0.09393560141324997, 0.4378182291984558, -0.056768275797367096, -0.09390698373317719, -0.06558629870414734, -0.04393399879336357, -0.16975823044776917, -0.041302748024463654, 0.028140824288129807, -0.27050304412841797, -0.13924987614154816, 0.13448604941368103, 0.14410452544689178, -0.4243316054344177, -0.28438588976860046, 0.17997723817825317, 0.06279103457927704, -0.43430647253990173, -0.010014807805418968, 0.16927355527877808, -0.25216156244277954, 0.04952956736087799, 0.37426090240478516, 0.17950214445590973, 0.15039511024951935, -0.0404568687081337, 0.2145078182220459, -0.25992855429649353, -0.09325337409973145, -0.16817526519298553, -0.09326039999723434, 0.4973074495792389, 0.1776588261127472, 0.15597756206989288, 0.2184963971376419, -0.2397650182247162, 0.07299087941646576, 0.06946003437042236, 0.12602946162223816, -0.1394677460193634, 0.19285991787910461, -0.1200958639383316, -0.18880808353424072, -0.29132378101348877, 0.1964033842086792, -0.650829553604126, 0.277240127325058, 0.008253191597759724, 0.13385362923145294, 0.10686216503381729, -0.046877119690179825, 0.14049163460731506, 0.09927846491336823, 0.5518800616264343, 0.30194830894470215, 0.22380506992340088, -0.1771189421415329, -0.17685987055301666, -0.36981359124183655, -0.08175618201494217, 0.19815532863140106, -0.4264386296272278, -0.177210733294487, 0.14753448963165283, -0.08101845532655716, -0.07887455075979233, -0.05875368416309357, -0.1417088806629181, 0.3234730660915375, 0.024644430726766586, -0.06296981871128082, -0.2462378293275833, 0.003651939332485199, 0.15743392705917358, 0.1305263638496399, -0.029811501502990723, 0.023318182677030563, -0.002485041506588459, 0.1717892289161682, -0.3143225312232971, 0.2627952992916107, -0.013827551156282425, -0.03545444458723068, 0.33409613370895386, 0.07238779962062836, 0.389510840177536, -0.2335388958454132, -0.1198907196521759, -0.2365124225616455, -0.09477028250694275, -0.44095364212989807, 0.20842444896697998, 0.054580673575401306, 0.29823991656303406, -0.1570795327425003, 0.05694723501801491, -0.2262936234474182, -0.03997340425848961, -0.011864930391311646, -0.13449084758758545, -0.04824807494878769, -0.05397907644510269, -0.1806875467300415, -0.05595454201102257, 0.18256604671478271, 0.5450858473777771, -0.11455084383487701, 0.19231483340263367, -0.19455349445343018, -0.37191712856292725, 0.3629571199417114, -0.23655804991722107, -0.33242660760879517, 0.12813438475131989, 0.3465954661369324, -0.06698443740606308, 0.1932927668094635, -0.5460895299911499, 0.26818540692329407, 0.3954697251319885, 0.05460957810282707, -0.36397138237953186, 0.4816688001155853, 0.1344594657421112, -0.059200674295425415, 0.025038551539182663, -0.025443024933338165, 0.3210333585739136, -0.038056548684835434, 0.023516248911619186, -0.2029297649860382 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
Merging this for now. Maybe we can see whether to rename it in a different PR @julien-c ?
Add the Webid TL:DR dataset.
18
text: Webis tl-dr Add the Webid TL:DR dataset. Merging this for now. Maybe we can see whether to rename it in a different PR @julien-c ?
[ -0.31910616159439087, -0.05406009405851364, -0.1776246875524521, -0.16933725774288177, -0.09399271011352539, 0.2655421197414398, 0.5207551717758179, 0.42297235131263733, 0.12374384701251984, -0.11460356414318085, -0.2090933620929718, 0.0008392681484110653, 0.2554371953010559, 0.34294283390045166, 0.1435733139514923, 0.20826271176338196, 0.12608832120895386, 0.26108670234680176, 0.00006650388240814209, 0.1048782616853714, -0.2927139401435852, 0.00898983795195818, 0.11304625868797302, 0.18705233931541443, 0.039760053157806396, 0.007182380184531212, 0.08431996405124664, 0.39660942554473877, -0.04698573052883148, -0.17579975724220276, 0.07025310397148132, 0.3031724989414215, -0.10689213126897812, 0.09260347485542297, -0.0000961535915848799, 0.06031845510005951, 0.21111208200454712, -0.017801055684685707, -0.16655993461608887, 0.17739079892635345, -0.4580395817756653, 0.001949906349182129, -0.12960442900657654, -0.3163165748119354, 0.14272621273994446, -0.00612958800047636, 0.0776371881365776, -0.06521830707788467, -0.125699982047081, 0.25913554430007935, 0.36096879839897156, 0.2531836926937103, -0.012967076152563095, -0.01530289463698864, -0.19723498821258545, -0.1394912749528885, 0.2273278832435608, 0.0032786522060632706, -0.04894733428955078, 0.028772620484232903, 0.24853917956352234, 0.4377375543117523, -0.0013475306332111359, -0.14932765066623688, 0.201571524143219, -0.03649723157286644, 0.11485150456428528, 0.09394098073244095, 0.32896122336387634, 0.06719353795051575, 0.599517822265625, -0.04181276261806488, -0.04061458259820938, 0.3845048248767853, -0.06441719084978104, -0.17312759160995483, 0.08209869265556335, 0.14578184485435486, 0.19349271059036255, 0.2507672905921936, 0.01313403993844986, -0.15014955401420593, -0.17320019006729126, -0.12839685380458832, -0.21886707842350006, 0.34985488653182983, 0.21950072050094604, 0.03506682440638542, 0.042314883321523666, -0.3077157139778137, 0.2684555649757385, 0.26768651604652405, -0.12297187745571136, -0.10032210499048233, 0.09544262290000916, -0.08313436061143875, 0.04830671846866608, 0.13051798939704895, 0.10471103340387344, 0.16216540336608887, 0.08984736353158951, -0.057984136044979095, 0.25061649084091187, 0.10190393775701523, 0.0009401906281709671, -0.10295909643173218, 0.12451580166816711, -0.09942895919084549, 0.3701132535934448, -0.1339738368988037, 0.016097385436296463, 0.009636690840125084, 0.14260083436965942, -0.134287491440773, -0.08342419564723969, -0.29825812578201294, 0.1728152334690094, 0.12145973742008209, -0.2933536767959595, -0.06827059388160706, -0.04668262600898743, -0.11596757918596268, -0.2030237317085266, 0.2559402883052826, -0.047247420996427536, 0.12664112448692322, 0.5114170908927917, 0.01922292448580265, -0.15524470806121826, -0.21628616750240326, -0.28783899545669556, -0.057303208857774734, 0.08570364117622375, -0.24600647389888763, -0.14714045822620392, 0.14343155920505524, -0.007110160309821367, -0.025605645030736923, -0.17205914855003357, 0.13134801387786865, -0.09388529509305954, 0.35588088631629944, 0.19336482882499695, 0.13802607357501984, 0.2520101070404053, -0.18435701727867126, -0.032200027257204056, -0.2295616716146469, -0.08210399001836777, 0.06991741806268692, -0.13296476006507874, -0.10761421918869019, -0.39699503779411316, 0.371154248714447, 0.2173943966627121, -0.4261716604232788, 0.5754681825637817, 0.2265702188014984, 0.03274020552635193, -0.15534549951553345, -0.17579415440559387, 0.33411848545074463, 0.18956302106380463, 0.008072923868894577, -0.07723183929920197, 0.15539482235908508, -0.3123369514942169, -0.17403636872768402, 0.16136102378368378, -0.2072979360818863, 0.0876227393746376, 0.1995091736316681, -0.07117880135774612, 0.14805343747138977, -0.07934299111366272, 0.10821855068206787, 0.1687566339969635, -0.23415371775627136, -0.20722536742687225, 0.06955210119485855, -0.1753159612417221, -0.44271954894065857, 0.21014304459095, 0.1661415994167328, -0.11822153627872467, -0.13041266798973083, 0.17763596773147583, 0.11965148150920868, -0.3199672996997833, 0.17870011925697327, -0.25305020809173584, -0.1751992404460907, 0.160671204328537, -0.012375704944133759, 0.08957113325595856, 0.16467547416687012, 0.0051232874393463135, -0.012111883610486984, 0.27908244729042053, -0.11662016808986664, 0.07052701711654663, -0.09559723734855652, 0.059753745794296265, 0.20609784126281738, -0.09348457306623459, 0.12130311876535416, -0.3004695475101471, -0.21198931336402893, 0.25690603256225586, 0.2752695381641388, 0.2246955931186676, -0.33162128925323486, -0.34821900725364685, -0.0779445618391037, -0.014180269092321396, -0.0384962372481823, 0.3103702962398529, 0.30155181884765625, -0.2191646844148636, -0.2652977406978607, -0.12061059474945068, 0.0564890131354332, 0.006396858021616936, -0.10393526405096054, -0.184060201048851, -0.1173858568072319, -0.39528438448905945, 0.21122126281261444, -0.15992918610572815, -0.07001642137765884, -0.06103118509054184, 0.10679124295711517, 0.04759182780981064, 0.35284847021102905, -0.4610290229320526, 0.06015872582793236, 0.5485501885414124, 0.2057788223028183, 0.12468776106834412, -0.3736537992954254, -0.07378898561000824, -0.02803683653473854, 0.026027753949165344, 0.00556568056344986, -0.11016187816858292, -0.10562413930892944, 0.09758976101875305, 0.10966279357671738, 0.1751600205898285, 0.07594593614339828, 0.28780853748321533, -0.1983080357313156, -0.059404291212558746, -0.23688672482967377, -0.18612399697303772, -0.1368621438741684, 0.10687167942523956, -0.0466078519821167, -0.5605266094207764, 0.36168166995048523, 0.3238428831100464, -0.10373307764530182, 0.110660620033741, 0.04116733744740486, -0.021612241864204407, -0.09648623317480087, -0.1783546358346939, 0.028799083083868027, 0.10039888322353363, 0.3737945556640625, 0.031754788011312485, 0.03513592481613159, 0.10552413016557693, -0.13204187154769897, 0.3915972113609314, 0.11089009046554565, -0.2979849874973297, -0.018649227917194366, 0.11911700665950775, -0.1652844250202179, -0.21033021807670593, 0.045903388410806656, 0.12474841624498367, 0.0581807941198349, -0.3274918794631958, 0.08080288022756577, -0.03470773249864578, -0.20457258820533752, -0.048177335411310196, -0.06311358511447906, -0.3018476963043213, -0.42972081899642944, 0.0442434623837471, -0.022529009729623795, -0.31236475706100464, 0.34135720133781433, 0.020206250250339508, 0.2642294764518738, 0.14677384495735168, 0.06840843707323074, -0.2528371512889862, -0.16744232177734375, -0.09884091466665268, 0.280430406332016, 0.09357831627130508, -0.16143293678760529, 0.5276739001274109, -0.40120363235473633, 0.31669241189956665, -0.4418158531188965, -0.5507468581199646, 0.13163073360919952, -0.15790313482284546, 0.08472570031881332, 0.3440353572368622, 0.2886447310447693, -0.09617197513580322, -0.32146501541137695, 0.06498239934444427, -0.07241713255643845, -0.22959604859352112, -0.2539544105529785, -0.0856781005859375, 0.003649990539997816, -0.07837123423814774, -0.5336349010467529, -0.30170875787734985, -0.33125823736190796, 0.13111305236816406, -0.14004945755004883, 0.16603243350982666, 0.21879340708255768, -0.1944754719734192, -0.15188337862491608, 0.08844933658838272, -0.09543061256408691, -0.43629133701324463, -0.230099156498909, 0.1477033793926239, -0.2759408950805664, -0.18493399024009705, 0.08682520687580109, 0.0637192502617836, 0.5506466627120972, -0.08308789134025574, -0.002784091979265213, 0.24071379005908966, 0.08466446399688721, 0.2891010642051697, -0.1289503425359726, 0.10052211582660675, 0.37747305631637573, 0.16270917654037476, -0.3558875024318695, -0.21503356099128723, -0.14471173286437988, 0.120445117354393, -0.03832373023033142, 0.26268190145492554, 0.14874468743801117, 0.08076630532741547, -0.19191156327724457, 0.43426692485809326, -0.1672607660293579, -0.12825779616832733, 0.027767077088356018, -0.1706697642803192, 0.17986491322517395, 0.06880992650985718, -0.22650280594825745, -0.0912342220544815, 0.14405600726604462, 0.06959498673677444, 0.4100363850593567, -0.09534341096878052, -0.12095413357019424, -0.2142995297908783, 0.20265300571918488, -0.391606867313385, -0.244722381234169, -0.0489114373922348, 0.223770871758461, 0.21052131056785583, 0.14984922111034393, -0.3807750642299652, -0.3658290505409241, 0.06321798264980316, 0.12727491557598114, 0.4217306971549988, -0.1039932444691658, 0.020838109776377678, -0.041898321360349655, 0.17758052051067352, -0.36167076230049133, 0.26473718881607056, 0.08707677572965622, 0.003844594582915306, -0.05105926841497421, -0.5104707479476929, -0.16251449286937714, -0.04764309525489807, 0.3688347339630127, -0.3235178589820862, -0.06883462518453598, 0.0072439610958099365, 0.4428931176662445, 0.040585920214653015, 0.1961185485124588, -0.014249693602323532, -0.08800967037677765, 0.5990524291992188, 0.04638558626174927, -0.32541629672050476, -0.14998818933963776, 0.5051499009132385, -0.32560792565345764, -0.24009427428245544, -0.1390732228755951, -0.3250139653682709, -0.40527525544166565, -0.24180170893669128, -0.0311177596449852, 0.19647176563739777, -0.013867741450667381, 0.12802474200725555, 0.05519888177514076, -0.18317602574825287, -0.15818089246749878, 0.19702839851379395, 0.2007627636194229, 0.07522500306367874, 0.01666686311364174, 0.026387225836515427, -0.09630472958087921, 0.11282236874103546, 0.21124202013015747, 0.47357645630836487, -0.15312860906124115, -0.2733837068080902, 0.026202553883194923, -0.29484954476356506, 0.4594956636428833, -0.027665913105010986, 0.1903851181268692, -0.013079404830932617, 0.06965526193380356, 0.1500048041343689, -0.19452078640460968, 0.21463525295257568, -0.03401854634284973, 0.04025372490286827, -0.21750284731388092, -0.22597737610340118, 0.20364311337471008, 0.008153809234499931, -0.21920420229434967, 0.021783608943223953, 0.17140749096870422, -0.3029903471469879, -0.2622883915901184, 0.041247934103012085, 0.8423978090286255, -0.09453311562538147, 0.12448562681674957, 0.10218846052885056, -0.49284934997558594, 0.17627762258052826, -0.18169836699962616, -0.10820618271827698, -0.199616476893425, 0.15877532958984375, 0.026742877438664436, 0.1766015738248825, -0.05019921809434891, 0.09997154772281647, -0.33257806301116943, 0.00412085372954607, -0.11053335666656494, 0.1756107211112976, 0.12324156612157822, 0.26631274819374084, 0.13579204678535461, -0.14778493344783783, -0.2243974506855011, 0.2823130786418915, -0.27999889850616455, -0.18771493434906006, -0.15318530797958374, -0.19791759550571442, 0.036700788885354996, -0.1444229781627655, 0.21616242825984955, -0.07295750081539154, 0.027583736926317215, 0.07107700407505035, -0.47272852063179016, 0.024417392909526825, -0.30384528636932373, 0.0066303834319114685, 0.19536864757537842, 0.0257033109664917, -0.06152699887752533, 0.300779789686203, -0.05922999233007431, 0.10193866491317749, -0.28779059648513794, -0.0021319580264389515, 0.19737529754638672, -0.16985595226287842, -0.2187361717224121, -0.09402359277009964, 0.011751406826078892, -0.21400029957294464, -0.44314509630203247, 0.1416139304637909, 0.0901499018073082, -0.24046297371387482, 0.27677294611930847, 0.22958356142044067, -0.09757118672132492, -0.23797114193439484, 0.2506907284259796, -0.1549493968486786, -0.1261407434940338, -0.17479726672172546, 0.06144437938928604, -0.1647047996520996, -0.009310267865657806, 0.43598654866218567, 0.12895849347114563, -0.015002619475126266, 0.1902790516614914, -0.06970889121294022, -0.14371901750564575, -0.3588738441467285, -0.1538192629814148, 0.09933917969465256, -0.26772862672805786, 0.2066245973110199, -0.03629373759031296, -0.3372517228126526, -0.0006019060383550823, 0.08393087983131409, 0.012215383350849152, 0.43421775102615356, -0.040564656257629395, 0.165109321475029, -0.5592555999755859, 0.015838563442230225, -0.05998663231730461, 0.24091677367687225, 0.19325125217437744, 0.24215663969516754, 0.041934072971343994, -0.03149391710758209, -0.5198690891265869, -0.13212750852108002, -0.1358734667301178, 0.11856742203235626, 0.11808290332555771, -0.23251193761825562, 0.10751804709434509, -0.07627852261066437, 0.3538232147693634, -0.14449477195739746, -0.029797431081533432, -0.37064969539642334, -0.05362425744533539, 0.06784696877002716, 0.11950009316205978, -0.05655469745397568, 0.08744561672210693, 0.13771910965442657, -0.11294341087341309, 0.17958419024944305, 0.24727895855903625, -0.19094669818878174, 0.012081790715456009, 0.10069989413022995, 0.06223596632480621, 0.008556511253118515, 0.03847654163837433, -0.1622038185596466, 0.27938273549079895, 0.4880176782608032, -0.416915625333786, 0.05772987753152847, -0.2698982357978821, -0.13386020064353943, 0.40751710534095764, 0.2706713080406189, 0.43907928466796875, 0.31673139333724976, 0.09610837697982788, -0.16850170493125916, -0.1524539440870285, 0.25214338302612305, -0.004310837015509605, 0.10234760493040085, -0.18260839581489563, -0.15361303091049194, 0.016451101750135422, 0.47077685594558716, -0.41480377316474915, 0.04951934516429901, -0.19901978969573975, -0.3403005301952362, 0.08839258551597595, 0.03522932529449463, 0.11949510872364044, -0.18238595128059387, -0.04571050405502319, 0.18131056427955627, 0.21187946200370789, -0.3102683424949646, 0.06447400152683258, 0.30098438262939453, -0.35869571566581726, 0.07068994641304016, 0.24037106335163116, 0.166040301322937, 0.13964153826236725, 0.23385147750377655, -0.03489919751882553, 0.27571314573287964, 0.1974504590034485, 0.11036531627178192, 0.30627384781837463, 0.10043509304523468, 0.0862376019358635, -0.18949812650680542, 0.13696172833442688, 0.32893839478492737, 0.4235651195049286, 0.08642096817493439, -0.10573338717222214, -0.3520815074443817, -0.04545069485902786, 0.2508893311023712, -0.19942593574523926, 0.06378999352455139, -0.12990215420722961, -0.011601440608501434, 0.05002942681312561, -0.06704483926296234, 0.047140806913375854, -0.015518821775913239, 0.11568482220172882, 0.15695974230766296, 0.1447262167930603, -0.16897113621234894, -0.24926269054412842, 0.07542335987091064, 0.15481528639793396, -0.18482370674610138, -0.015316562727093697, 0.4751178026199341, -0.29320454597473145, 0.37238937616348267, 0.4535883665084839, 0.11813180148601532, -0.06753402948379517, 0.07455068826675415, 0.12673956155776978, -0.08646121621131897, -0.25675129890441895, -0.19825202226638794, -0.21162517368793488, 0.23445352911949158, 0.05741918832063675, 0.1263410747051239, 0.32747378945350647, -0.25394919514656067, 0.04004698246717453, -0.0699775218963623, 0.016887208446860313, 0.01907985284924507, -0.13748851418495178, -0.0880102664232254, -0.2718883752822876, -0.2809197008609772, 0.2377421259880066, -0.3834051489830017, 0.05503414198756218, 0.23086169362068176, 0.058831341564655304, 0.10738242417573929, -0.08492176979780197, 0.18026046454906464, 0.23910848796367645, 0.5282191634178162, 0.03198162466287613, -0.10912435501813889, -0.0005500661209225655, -0.2027999311685562, -0.13740648329257965, 0.15007874369621277, 0.16240732371807098, 0.04601050913333893, -0.17132626473903656, 0.1752781867980957, 0.0988263264298439, -0.271820604801178, 0.3576895594596863, -0.25130563974380493, 0.21196866035461426, -0.07945144176483154, -0.23280462622642517, -0.03690081462264061, 0.2691049873828888, -0.08958222717046738, 0.2957107126712799, -0.030446747317910194, 0.11904346942901611, 0.19685129821300507, 0.27947497367858887, -0.3447980284690857, 0.012037262320518494, 0.2866850793361664, -0.0937071144580841, 0.35247448086738586, 0.15013882517814636, 0.4156046509742737, -0.44707420468330383, -0.23056714236736298, 0.03051382303237915, -0.12582801282405853, -0.46398863196372986, 0.34634163975715637, 0.15215331315994263, -0.054628126323223114, 0.026059987023472786, -0.10026697814464569, -0.0824708417057991, -0.06000528484582901, 0.0509689599275589, 0.17515844106674194, -0.34391796588897705, 0.1295275241136551, 0.14415696263313293, 0.057066526263952255, -0.03691904619336128, 0.26492515206336975, 0.0019621364772319794, 0.03709617257118225, -0.2509734034538269, -0.5613681674003601, 0.43696877360343933, 0.2771487534046173, -0.4154351055622101, -0.01230672374367714, 0.29531964659690857, 0.02891920506954193, 0.4155501425266266, -0.44938692450523376, 0.14622026681900024, 0.1887870579957962, -0.17382574081420898, -0.2551601827144623, 0.30555665493011475, 0.08232960104942322, 0.02410002425312996, -0.041107188910245895, 0.14071694016456604, 0.43886899948120117, -0.1351851373910904, -0.047410912811756134, -0.002288609743118286 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
Hi, Author here of the webis-tldr corpus. Any plans on integrating this dataset into the hub? I remember we could access it in the previous versions of the library. If there is a particular issue that I can help with, do let me know. Thanks!
Add the Webid TL:DR dataset.
45
text: Webis tl-dr Add the Webid TL:DR dataset. Hi, Author here of the webis-tldr corpus. Any plans on integrating this dataset into the hub? I remember we could access it in the previous versions of the library. If there is a particular issue that I can help with, do let me know. Thanks!
[ -0.17190326750278473, -0.2543305456638336, -0.1320667713880539, 0.1318279206752777, -0.37658053636550903, 0.3547873795032501, 0.35922011733055115, 0.23656928539276123, -0.014204856939613819, -0.22096003592014313, -0.3303210437297821, -0.0017629696521908045, -0.016608826816082, -0.019045351073145866, 0.1718742996454239, 0.04924936965107918, -0.002171166241168976, 0.06349378824234009, 0.09148640185594559, -0.023539509624242783, -0.1051003485918045, 0.1285637766122818, -0.14109870791435242, -0.11079160869121552, -0.2419118881225586, -0.009919462725520134, -0.26519620418548584, 0.1806744933128357, 0.06837351620197296, -0.19467082619667053, 0.28510719537734985, 0.39845776557922363, 0.25919750332832336, 0.3489052653312683, -0.00011320888734189793, -0.22576729953289032, 0.3065323233604431, 0.04424973577260971, -0.0545174777507782, -0.2830522060394287, -0.5551338791847229, 0.05447818338871002, -0.09716266393661499, -0.18693844974040985, -0.017210040241479874, 0.293692022562027, 0.02199048548936844, 0.08775520324707031, -0.32433879375457764, 0.005468563176691532, 0.18485602736473083, 0.33967679738998413, 0.44341713190078735, 0.18898838758468628, 0.12921877205371857, 0.16540519893169403, -0.11985403299331665, 0.11594267189502716, 0.27117326855659485, 0.2361515313386917, 0.04729660600423813, 0.16399160027503967, -0.05577589571475983, -0.23379336297512054, 0.3114319145679474, -0.024728689342737198, -0.08342679589986801, -0.18008539080619812, -0.022250641137361526, 0.1404358148574829, 0.8420571088790894, -0.3459106981754303, -0.23201975226402283, 0.18006616830825806, -0.17338086664676666, 0.1693340539932251, 0.12292361259460449, 0.2317788004875183, 0.15419118106365204, 0.200331449508667, 0.002443790202960372, -0.5123104453086853, -0.5392582416534424, -0.03624255955219269, -0.06124104931950569, 0.7082382440567017, 0.32539114356040955, -0.04603689908981323, -0.3331196904182434, 0.04292524605989456, 0.6958858966827393, 0.15099412202835083, -0.07732437551021576, 0.1546311378479004, -0.015735600143671036, -0.3438147306442261, 0.1726168990135193, 0.515313982963562, 0.01755009964108467, 0.2227431982755661, 0.11989861726760864, 0.13804753124713898, -0.11802755296230316, -0.09198590368032455, 0.37352991104125977, -0.1444280445575714, 0.08266386389732361, -0.19659191370010376, 0.4624781012535095, -0.29899102449417114, 0.2699821889400482, 0.0966351330280304, 0.08617817610502243, 0.2711135745048523, 0.09787063300609589, -0.4375078082084656, -0.009223749861121178, 0.01274314895272255, 0.006550295278429985, -0.17066611349582672, 0.06514924019575119, -0.2220493108034134, -0.05345440283417702, -0.07122094184160233, -0.1921338140964508, 0.231967955827713, 0.30824971199035645, -0.09061319380998611, -0.16629326343536377, -0.18346932530403137, -0.16826362907886505, 0.28684473037719727, 0.08558040857315063, -0.1596965342760086, 0.041848596185445786, -0.3589964210987091, -0.15594898164272308, -0.2075604498386383, 0.07392343878746033, 0.20818248391151428, -0.20046144723892212, 0.10483308136463165, 0.22158941626548767, -0.052933428436517715, 0.05771089717745781, 0.039776161313056946, -0.17052502930164337, 0.10316811501979828, -0.2659674286842346, 0.1127377450466156, -0.2847440242767334, -0.4246121048927307, -0.3749750852584839, 0.09966803342103958, -0.44348376989364624, -0.5349397659301758, 0.303718626499176, 0.18075191974639893, 0.023841947317123413, -0.12084837257862091, -0.33883440494537354, 0.24989640712738037, -0.3044931888580322, -0.16752518713474274, -0.30431124567985535, 0.23545514047145844, -0.13013648986816406, -0.006520118564367294, 0.22195732593536377, 0.11669595539569855, -0.351500004529953, -0.1896122843027115, 0.08160635083913803, 0.4185454845428467, -0.10666831582784653, 0.39551210403442383, 0.022789113223552704, -0.7035512924194336, -0.3399930000305176, 0.003138522617518902, 0.14834167063236237, -0.23770548403263092, -0.09562420099973679, 0.35096296668052673, 0.23169799149036407, -0.39105579257011414, 0.08240484446287155, 0.31635981798171997, -0.1611318737268448, 0.0581853985786438, -0.21270808577537537, -0.13591156899929047, -0.04306089133024216, 0.17214301228523254, 0.24435976147651672, 0.05496685951948166, 0.17337793111801147, 0.2785676419734955, 0.2866978943347931, 0.10495653748512268, 0.33990755677223206, 0.18763990700244904, 0.021183831617236137, 0.19674581289291382, 0.4082059860229492, -0.13270720839500427, -0.15219417214393616, -0.17952239513397217, 0.45061826705932617, 0.4348922073841095, 0.15111111104488373, -0.08894985914230347, -0.14856740832328796, 0.11713586002588272, -0.03912888839840889, 0.26299864053726196, 0.04962673783302307, -0.11678241193294525, 0.11837539076805115, -0.060895830392837524, -0.31104862689971924, 0.2386941909790039, 0.01782991923391819, -0.1365470439195633, -0.4371154010295868, 0.30593687295913696, -0.011469079181551933, 0.06270916759967804, 0.02879483252763748, 0.34633341431617737, -0.3188808858394623, -0.014119530096650124, 0.19295310974121094, 0.1784404218196869, -0.5504747033119202, 0.4773244261741638, 0.48860034346580505, 0.6002523899078369, 0.46231356263160706, -0.7007018327713013, 0.23594443500041962, -0.213955357670784, 0.03697565943002701, -0.229689359664917, 0.09827645123004913, -0.22515060007572174, -0.26162809133529663, 0.1650468111038208, 0.08748568594455719, 0.17756836116313934, -0.05490167438983917, 0.051671791821718216, -0.12176430970430374, 0.09098748862743378, -0.025798898190259933, -0.35031959414482117, 0.01046353206038475, -0.30424124002456665, -0.28432169556617737, 0.302178293466568, 0.04409942775964737, -0.199496790766716, 0.12911009788513184, 0.20506253838539124, -0.24791806936264038, -0.19880083203315735, 0.016178224235773087, -0.22949761152267456, 0.11882976442575455, 0.13481253385543823, 0.18794114887714386, -0.11019641906023026, 0.0565967857837677, -0.14285773038864136, 0.29334041476249695, 0.20617401599884033, -0.38378679752349854, 0.0229644738137722, 0.1901339888572693, 0.21987824141979218, -0.25698918104171753, 0.06765154004096985, -0.02014865353703499, 0.06899833679199219, -0.14059339463710785, -0.04759829863905907, 0.15515784919261932, -0.22740468382835388, 0.26992058753967285, -0.39920470118522644, -0.18043209612369537, -0.43676549196243286, 0.07286182045936584, 0.25120624899864197, 0.11310243606567383, -0.08968579024076462, 0.17617350816726685, 0.4657061696052551, -0.05470799654722214, 0.03764507919549942, -0.19393932819366455, -0.31581854820251465, -0.2668202817440033, 0.1616312712430954, 0.08545644581317902, -0.3181616961956024, 0.4834086298942566, -0.1384814977645874, 0.5815322399139404, -0.22118675708770752, -0.49316778779029846, 0.19200827181339264, 0.04769843816757202, 0.01627904549241066, 0.20374299585819244, 0.05296175554394722, -0.16686536371707916, -0.027213774621486664, -0.23396682739257812, -0.24092158675193787, 0.00806313008069992, -0.17506824433803558, -0.1390332281589508, 0.0668938010931015, 0.14469818770885468, -0.20327246189117432, -0.2671661972999573, -0.2555120885372162, -0.07761144638061523, -0.06363295763731003, 0.12162648141384125, 0.2709435522556305, -0.25307798385620117, -0.033139027655124664, 0.4555407166481018, -0.1762208342552185, -0.1538672000169754, -0.4218488335609436, 0.4817919135093689, -0.33770236372947693, -0.40215030312538147, 0.26201000809669495, -0.1624629646539688, 0.6651079058647156, -0.08967380225658417, -0.4223982095718384, 0.3199290931224823, 0.2820165157318115, 0.28933578729629517, -0.05653855949640274, 0.17191378772258759, 0.31437671184539795, 0.12438073009252548, -0.03245257958769798, -0.16051796078681946, 0.18355347216129303, 0.05102444067597389, 0.19114157557487488, 0.06536920368671417, 0.45837119221687317, -0.2497084140777588, 0.05617420747876167, 0.16973748803138733, -0.16231918334960938, -0.001905582845211029, 0.2307054102420807, 0.22357958555221558, 0.06296378374099731, 0.18329952657222748, -0.041809745132923126, 0.050860445946455, 0.29177090525627136, 0.021306123584508896, 0.3363942503929138, 0.4153120815753937, -0.24457143247127533, -0.3503434360027313, -0.14386892318725586, -0.14681190252304077, -0.128144770860672, -0.11630406975746155, 0.07946261018514633, 0.32267555594444275, 0.15529847145080566, -0.4915131628513336, -0.4117521345615387, -0.5568496584892273, 0.13763996958732605, 0.1803334355354309, 0.327597051858902, 0.015204173512756824, 0.14894616603851318, 0.05427151918411255, -0.49132102727890015, 0.06479573249816895, 0.29572793841362, -0.07412049174308777, -0.05831874907016754, -0.18616905808448792, 0.16678349673748016, -0.02872450277209282, 0.361744225025177, -0.5562132596969604, -0.04141043871641159, 0.11022479832172394, 0.12875951826572418, -0.21494486927986145, 0.10259045660495758, -0.12334351241588593, 0.12993976473808289, 0.07097503542900085, -0.014433741569519043, -0.09618671238422394, 0.000047456007450819016, 0.4478822350502014, -0.4098891019821167, -0.16611383855342865, -0.4911386966705322, 0.19838988780975342, -0.16767822206020355, -0.20114417374134064, -0.1061951294541359, 0.1746835559606552, 0.07976306229829788, 0.09328825026750565, -0.08795945346355438, 0.04059160500764847, -0.0658365786075592, 0.36777663230895996, -0.06824840605258942, -0.04700373113155365, 0.198172464966774, -0.03466664254665375, 0.17573852837085724, -0.2041809856891632, -0.0784507542848587, 0.10616190731525421, 0.16211429238319397, 0.03878836706280708, 0.2730213403701782, -0.2969322204589844, 0.29755041003227234, 0.048615776002407074, 0.28865277767181396, -0.03183864802122116, -0.32927384972572327, -0.15301558375358582, -0.7285624146461487, -0.05563174933195114, -0.1834004521369934, -0.02950490266084671, -0.5234640836715698, -0.19889026880264282, 0.3811757564544678, -0.1864011585712433, -0.12075649946928024, 0.1673998236656189, 0.08857135474681854, -0.40444111824035645, -0.030340617522597313, 0.3739800453186035, 1.096396565437317, -0.20050160586833954, 0.04034380614757538, 0.07453474402427673, -0.07320349663496017, 0.3934673070907593, -0.5478709936141968, -0.058802321553230286, -0.3465878367424011, 0.2698117196559906, -0.19854533672332764, 0.17586489021778107, -0.3239424526691437, -0.03237629681825638, -0.22742995619773865, -0.2860404849052429, -0.04656936228275299, 0.3236560821533203, 0.0919574722647667, 0.43321892619132996, 0.0008324403315782547, -0.27235954999923706, -0.020972758531570435, 0.1960040032863617, -0.12623248994350433, 0.019873449578881264, -0.3294074535369873, -0.22264191508293152, 0.09771318733692169, 0.07863138616085052, -0.3457004427909851, -0.17860674858093262, 0.5294067859649658, 0.04857820272445679, -0.17704974114894867, -0.04846475273370743, 0.13313144445419312, 0.2158164381980896, 0.2448960840702057, -0.05636287108063698, -0.3453434705734253, 0.160842627286911, -0.37920400500297546, -0.3340701758861542, 0.1911696344614029, 0.24387076497077942, 0.2761662006378174, -0.22334572672843933, -0.28371691703796387, 0.28748610615730286, 0.1389753669500351, -0.3423072099685669, -0.613741397857666, -0.011162623763084412, 0.01982404664158821, -0.23809778690338135, 0.30147287249565125, 0.2644433379173279, -0.07527686655521393, 0.1420004963874817, 0.0791478157043457, 0.2888824939727783, -0.168141707777977, 0.1525501012802124, 0.012564916163682938, -0.06866138428449631, -0.0967879593372345, 0.4328305125236511, 0.4314802587032318, -0.2870365381240845, 0.12414584308862686, 0.3115483522415161, -0.18165622651576996, -0.1987038552761078, -0.12391557544469833, 0.11841799318790436, -0.3106364607810974, -0.08826331794261932, 0.06006181240081787, 0.0572199821472168, -0.13263551890850067, 0.18798969686031342, -0.18222342431545258, 0.2963946461677551, -0.26976868510246277, -0.2526785731315613, -0.14673952758312225, 0.23776055872440338, 0.05185851454734802, 0.25081154704093933, -0.13171416521072388, -0.18256191909313202, 0.05444799363613129, 0.02716325782239437, -0.3185153007507324, 0.01666726917028427, -0.06928669661283493, -0.01390625536441803, -0.11412157118320465, 0.1422029733657837, -0.05049944296479225, 0.007621757686138153, 0.05826178193092346, -0.02883601188659668, -0.28603485226631165, -0.12166540324687958, -0.14758405089378357, 0.15500643849372864, 0.2466081976890564, -0.03795406222343445, -0.17291446030139923, -0.04787569120526314, -0.12158192694187164, 0.19771596789360046, 0.17531666159629822, 0.05116017162799835, -0.0918477475643158, -0.0018931403756141663, 0.39943718910217285, 0.11279735714197159, 0.01738954707980156, 0.2851819396018982, 0.4541427493095398, 0.611103892326355, -0.07514876872301102, 0.11370179802179337, 0.01994502544403076, 0.03840550780296326, 0.25111544132232666, 0.42557063698768616, 0.40953153371810913, -0.23611366748809814, 0.3004908859729767, -0.09344029426574707, 0.3580477833747864, 0.3607705533504486, -0.16880415380001068, 0.005743652582168579, -0.14827200770378113, -0.2123931497335434, -0.30011990666389465, 0.1774415224790573, 0.03270405903458595, -0.2993707060813904, -0.36607614159584045, -0.10738569498062134, -0.23801013827323914, 0.20817530155181885, 0.3864234983921051, -0.021826837211847305, 0.21008917689323425, 0.04372146725654602, 0.7908810973167419, -0.3473648428916931, -0.05569419264793396, 0.08076117932796478, -0.29994016885757446, 0.011816103011369705, -0.0243044663220644, 0.01480114832520485, 0.07497112452983856, 0.13873520493507385, 0.2242847979068756, 0.3762691020965576, 0.5269862413406372, 0.31813284754753113, 0.2879613935947418, -0.07761307060718536, 0.05218120664358139, -0.12150201201438904, 0.45446762442588806, 0.23610171675682068, 0.18726423382759094, 0.14328676462173462, 0.03879060596227646, 0.09949074685573578, -0.19299036264419556, 0.10867097973823547, -0.030802123248577118, 0.09076395630836487, -0.05737132206559181, -0.25669586658477783, 0.07809723913669586, -0.055447205901145935, -0.08403962850570679, -0.1912696212530136, -0.20915767550468445, 0.09825913608074188, 0.14736489951610565, -0.022928079590201378, 0.07757525146007538, 0.010088561102747917, 0.16133078932762146, -0.07971332222223282, 0.04606597125530243, 0.13974085450172424, -0.029107175767421722, 0.24489501118659973, 0.4315684139728546, -0.01674738898873329, 0.08170337975025177, -0.07281012833118439, 0.3460896611213684, -0.3773548901081085, -0.1747509390115738, 0.10048689693212509, 0.2577524185180664, 0.2778176963329315, 0.06155877187848091, 0.0035684779286384583, 0.12321312725543976, -0.05549473315477371, 0.04760643094778061, 0.002151116728782654, 0.025923553854227066, 0.038199469447135925, 0.06673294305801392, -0.11144497990608215, -0.3242151439189911, -0.012927703559398651, 0.1678083837032318, -0.19362691044807434, -0.06828542798757553, 0.5354571342468262, -0.25202712416648865, -0.09207975119352341, 0.033534664660692215, 0.08054447174072266, 0.046465106308460236, 0.555605947971344, 0.45592039823532104, 0.06571269035339355, 0.011691177263855934, -0.3761473298072815, -0.05132075399160385, 0.2724206745624542, 0.4699341058731079, 0.14104358851909637, 0.028748726472258568, 0.10139486938714981, 0.06187029182910919, -0.027946166694164276, -0.10197658836841583, -0.48235607147216797, 0.10408220440149307, 0.01777750998735428, -0.16926275193691254, 0.026120422407984734, 0.2700740396976471, 0.19466334581375122, -0.19559957087039948, 0.1871180534362793, 0.12439337372779846, 0.20131762325763702, -0.0829920694231987, -0.4637405276298523, 0.020835615694522858, 0.10296179354190826, -0.08554130792617798, 0.24486848711967468, 0.042325209826231, 0.3695116937160492, -0.09267544001340866, 0.0665612444281578, -0.3830280303955078, -0.27320462465286255, -0.2067265808582306, 0.13442473113536835, -0.09367883205413818, -0.049751508980989456, -0.25360551476478577, -0.30014798045158386, 0.24318495392799377, -0.35016998648643494, -0.17582058906555176, 0.5762083530426025, -0.2609466016292572, -0.013297406025230885, -0.5861385464668274, 0.25186097621917725, 0.296644389629364, 0.30431053042411804, 0.2095406949520111, -0.05414868891239166, -0.155989870429039, -0.3632970154285431, 0.22289204597473145, 0.019664086401462555, -0.3128141760826111, -0.09551766514778137, 0.05253300815820694, -0.21872040629386902, 0.17456558346748352, -0.7260425686836243, -0.008660532534122467, 0.30786722898483276, 0.041207246482372284, -0.04339290410280228, 0.43983808159828186, 0.4793040156364441, 0.03717266395688057, -0.14939548075199127, -0.05200482904911041, 0.16064122319221497, 0.04952843487262726, -0.1889432817697525, -0.09323806315660477 ]
https://github.com/huggingface/datasets/pull/98
Webis tl-dr
Hi @shahbazsyed, this dataset _is_ inside the hub but it's namespaced by the organization name `webis`. You can load it following the steps described in https://huggingface.co/datasets/webis/tl_dr Here's a Colab showcasing that it works: https://colab.research.google.com/drive/11IrzRVpnMLJZ8_UFFHLR8FhiajjAHRUU?usp=sharing The reason the code is in S3 and not in this repo is that the dataset is namespaced under the `webis` organization. We don't have a lot of namespaced datasets yet but this should become the main way we add more datasets in the future. Let us know if that's an issue for you. Thank you!
Add the Webid TL:DR dataset.
90
text: Webis tl-dr Add the Webid TL:DR dataset. Hi @shahbazsyed, this dataset _is_ inside the hub but it's namespaced by the organization name `webis`. You can load it following the steps described in https://huggingface.co/datasets/webis/tl_dr Here's a Colab showcasing that it works: https://colab.research.google.com/drive/11IrzRVpnMLJZ8_UFFHLR8FhiajjAHRUU?usp=sharing The reason the code is in S3 and not in this repo is that the dataset is namespaced under the `webis` organization. We don't have a lot of namespaced datasets yet but this should become the main way we add more datasets in the future. Let us know if that's an issue for you. Thank you!
[ -0.10618914663791656, -0.3965733051300049, -0.09302563965320587, 0.09140476584434509, -0.09815731644630432, 0.09136482328176498, 0.4634830057621002, 0.13877607882022858, 0.2314886748790741, 0.07166579365730286, -0.36650538444519043, 0.21228383481502533, 0.3585449755191803, 0.367283433675766, 0.3348304331302643, 0.24868062138557434, 0.09097854793071747, 0.2587549090385437, 0.2675562798976898, 0.09930755198001862, -0.2597489058971405, 0.19654257595539093, -0.07744119316339493, -0.058611854910850525, -0.12993928790092468, 0.2818830609321594, -0.17881286144256592, 0.3767107129096985, -0.028434840962290764, -0.18431676924228668, 0.44547349214553833, 0.3827345669269562, 0.27278611063957214, 0.4264894425868988, -0.00009865204629022628, 0.027741320431232452, 0.2785753011703491, -0.11940473318099976, -0.1240188479423523, -0.070079505443573, -0.7241016626358032, 0.11367437243461609, -0.012642329558730125, -0.32679829001426697, -0.10604698210954666, 0.4080255925655365, -0.02925262041389942, 0.08611664175987244, -0.04226931929588318, 0.18859881162643433, 0.2614075839519501, 0.5700101852416992, 0.05921485647559166, -0.1520128697156906, 0.15465587377548218, 0.018808972090482712, -0.06905094534158707, 0.2582899332046509, 0.11405466496944427, 0.2863847315311432, 0.4169050455093384, 0.3245914876461029, -0.1614028960466385, 0.17127564549446106, 0.327818900346756, 0.12404482811689377, -0.07384104281663895, -0.12343838810920715, 0.0013676919043064117, 0.2116086781024933, 0.5630543231964111, -0.0935492292046547, -0.2891506552696228, 0.24818819761276245, -0.16114820539951324, -0.050945401191711426, 0.1336795687675476, 0.16591116786003113, 0.2649933695793152, 0.31614962220191956, -0.18057940900325775, -0.15787199139595032, -0.2805024981498718, 0.1038706824183464, -0.05176052451133728, 0.5145457983016968, -0.027251388877630234, 0.08226163685321808, -0.10772491991519928, -0.02634577453136444, 0.39655613899230957, 0.09302223473787308, -0.11343376338481903, -0.09130646288394928, -0.06773747503757477, -0.13625970482826233, 0.0510995052754879, 0.2846285104751587, 0.10840249806642532, 0.20730924606323242, -0.0012577874585986137, 0.03472668677568436, 0.21045534312725067, 0.10373887419700623, -0.11172887682914734, -0.005404454190284014, 0.24409189820289612, -0.0974649116396904, 0.24378301203250885, 0.08785955607891083, 0.24103030562400818, -0.039046674966812134, -0.27297523617744446, 0.17784066498279572, -0.06990491598844528, -0.3945743441581726, 0.135454460978508, 0.16900773346424103, -0.3682446777820587, -0.2384125292301178, -0.1373145878314972, -0.08765288442373276, 0.06630504876375198, 0.3705459535121918, 0.06460797041654587, -0.0008544027805328369, 0.35884225368499756, 0.14524513483047485, -0.29166439175605774, -0.1973128467798233, -0.25528836250305176, 0.14974555373191833, -0.015914246439933777, 0.04397633671760559, 0.06807853281497955, -0.1484503149986267, 0.3200831711292267, -0.24843502044677734, 0.12731973826885223, -0.006761536002159119, -0.06658798456192017, 0.3665379583835602, 0.07888773083686829, 0.22700843214988708, 0.4320816099643707, 0.19577482342720032, -0.11523763835430145, -0.04008937627077103, -0.018959134817123413, -0.07101552933454514, -0.37976551055908203, -0.23502668738365173, -0.4148842692375183, 0.2628430426120758, -0.4548344016075134, -0.3504788875579834, 0.017355673015117645, -0.18836291134357452, -0.06980419903993607, -0.19332265853881836, 0.13090449571609497, 0.292519211769104, 0.07313381135463715, 0.032045841217041016, 0.08409638702869415, 0.3706943690776825, 0.04908115789294243, -0.06110344082117081, 0.0888088271021843, -0.07052813470363617, -0.0926155373454094, -0.2608361542224884, -0.005704118404537439, 0.40284132957458496, -0.20568612217903137, 0.4785957932472229, 0.10962187498807907, -0.6169313788414001, -0.4573499262332916, 0.1264301836490631, -0.09229082614183426, -0.2559191882610321, 0.11653812974691391, 0.22374901175498962, -0.11711637675762177, -0.05689610540866852, 0.009642049670219421, 0.18711455166339874, 0.21196523308753967, 0.1376064568758011, -0.02970154397189617, -0.1645328551530838, -0.08701367676258087, 0.29243674874305725, 0.09986256062984467, 0.1252758800983429, 0.18264132738113403, 0.2613197863101959, 0.1127159595489502, -0.16684696078300476, 0.12044939398765564, 0.06578228622674942, 0.23295247554779053, 0.1185251921415329, 0.01711232028901577, -0.04421323910355568, -0.3525144159793854, 0.14468348026275635, 0.28127792477607727, 0.12630683183670044, 0.1119861751794815, -0.05759048834443092, -0.3364832401275635, 0.03821413964033127, -0.4068028926849365, -0.18926525115966797, 0.21033482253551483, 0.1995183527469635, 0.08474311232566833, -0.442674458026886, -0.17488743364810944, 0.15563255548477173, 0.09555701911449432, -0.0730578601360321, -0.24125005304813385, 0.16905280947685242, -0.14318519830703735, 0.045436494052410126, -0.0027266554534435272, -0.09725909680128098, 0.045828405767679214, -0.21993573009967804, 0.04146844148635864, 0.5097708106040955, -0.25078555941581726, 0.281592458486557, 0.4328686594963074, 0.2908649444580078, 0.034852948039770126, -0.41879260540008545, 0.16256746649742126, -0.06088921055197716, 0.2528544068336487, 0.08556289225816727, -0.1156269833445549, 0.0032001957297325134, -0.11560246348381042, 0.16320550441741943, -0.01973620429635048, 0.12290257960557938, 0.35239800810813904, -0.1493830382823944, -0.24189186096191406, -0.039891406893730164, -0.08072750270366669, 0.0704144686460495, 0.12017357349395752, -0.0692368596792221, -0.13736796379089355, 0.32806307077407837, 0.29564186930656433, -0.13985784351825714, 0.33306947350502014, -0.029721014201641083, -0.4079143702983856, -0.06597480177879333, 0.009544161148369312, -0.020565912127494812, 0.1414649486541748, 0.18426063656806946, 0.02604789286851883, -0.12494494765996933, 0.27704712748527527, -0.22062650322914124, 0.17865659296512604, 0.1849740594625473, 0.09196598082780838, -0.07246974855661392, 0.04167204350233078, -0.10534429550170898, -0.23982617259025574, -0.0716012567281723, 0.07028494030237198, -0.01958712749183178, -0.36489951610565186, 0.20270681381225586, 0.022702643647789955, -0.1007022112607956, 0.20846503973007202, -0.48706167936325073, -0.09107762575149536, -0.274868369102478, 0.0050088223069906235, 0.18013900518417358, 0.10545501112937927, 0.04858001321554184, 0.3349527418613434, 0.25673604011535645, 0.08037889003753662, -0.10844548791646957, -0.16639499366283417, 0.018490763381123543, -0.26305824518203735, 0.18409781157970428, 0.029569413512945175, -0.1492626667022705, 0.4035903513431549, -0.5639001131057739, 0.5526419281959534, -0.4278275966644287, -0.30356141924858093, 0.1542443186044693, -0.22348164021968842, 0.21866236627101898, 0.18161040544509888, 0.36627376079559326, -0.13658055663108826, 0.0702531710267067, 0.13549242913722992, -0.3197994530200958, -0.16926753520965576, 0.06613124907016754, -0.06570061296224594, -0.18708962202072144, -0.11750265955924988, -0.3188786506652832, -0.1739237755537033, -0.3844873607158661, -0.0836104154586792, 0.00870022177696228, 0.06541728973388672, 0.054998770356178284, -0.012221822515130043, 0.21031345427036285, 0.34948986768722534, -0.2219153344631195, -0.22447025775909424, -0.6017930507659912, 0.4148779511451721, -0.283625990152359, -0.29878485202789307, 0.37636008858680725, 0.04296189546585083, 0.6221620440483093, -0.16189053654670715, -0.212092787027359, -0.2447074055671692, 0.20897193253040314, 0.26375612616539, -0.005245588719844818, 0.2799353003501892, 0.5142585039138794, -0.14921221137046814, -0.12943871319293976, -0.42978382110595703, -0.0951172262430191, 0.03578473627567291, 0.07901797443628311, 0.13489548861980438, 0.05418854579329491, 0.006419431418180466, -0.11693009734153748, 0.3395498991012573, 0.10528212785720825, -0.0802813172340393, 0.34497541189193726, -0.07513163983821869, 0.17637629806995392, 0.0630936548113823, 0.04355686157941818, -0.10167605429887772, 0.22493404150009155, 0.05313599854707718, 0.610439121723175, -0.017397116869688034, -0.247011199593544, -0.33105796575546265, -0.10676625370979309, -0.5211495161056519, 0.08120749890804291, -0.1633165180683136, 0.09101545810699463, 0.13360369205474854, 0.041605670005083084, -0.18249748647212982, -0.2705763876438141, -0.07844043523073196, 0.21350765228271484, 0.23855121433734894, 0.09735332429409027, 0.14215975999832153, -0.11156807839870453, -0.15178360044956207, -0.2598958909511566, 0.29174017906188965, 0.11099062114953995, 0.06262505799531937, -0.01262161135673523, -0.23197615146636963, 0.2326332926750183, -0.16997790336608887, 0.5458270311355591, -0.6040288209915161, -0.002813946455717087, -0.10843716561794281, 0.032878026366233826, -0.45137229561805725, -0.037095919251441956, -0.20115916430950165, 0.1719336360692978, 0.11773084104061127, 0.24835196137428284, -0.18447601795196533, -0.2212522029876709, 0.22084471583366394, -0.5571987628936768, -0.19041013717651367, -0.38802048563957214, -0.22907426953315735, -0.28966742753982544, -0.4319394826889038, -0.19069096446037292, 0.20928926765918732, 0.09221386164426804, 0.20810803771018982, -0.009418591856956482, -0.08712998032569885, 0.07964105904102325, 0.04359986633062363, 0.3186584413051605, 0.09895750135183334, 0.3957328796386719, -0.08983641862869263, 0.21628481149673462, -0.08552640676498413, 0.006562729366123676, 0.5156089067459106, 0.16593845188617706, -0.28972288966178894, 0.3173155188560486, -0.07867321372032166, 0.2264409065246582, 0.09799911081790924, 0.3258552849292755, -0.08174813538789749, -0.047519415616989136, 0.06838320940732956, -0.5571255087852478, 0.025747908279299736, -0.009040148928761482, 0.002106386236846447, 0.036288779228925705, -0.14544685184955597, 0.38036078214645386, -0.26002877950668335, -0.028644755482673645, -0.2158489227294922, 0.3523671627044678, -0.31422165036201477, -0.15954382717609406, 0.3710789382457733, 0.8391420245170593, -0.19384019076824188, 0.0559367835521698, 0.5532633066177368, -0.08281643688678741, 0.2472345381975174, -0.44884347915649414, -0.14972780644893646, -0.2710455656051636, 0.16912581026554108, -0.14172618091106415, 0.022631313651800156, -0.2978188097476959, -0.10480877757072449, -0.22179782390594482, -0.05955374240875244, -0.026869669556617737, 0.40060776472091675, 0.22722093760967255, 0.2996269464492798, -0.11809005588293076, -0.29644662141799927, -0.1816353052854538, 0.314286470413208, -0.18673379719257355, 0.12203548848628998, -0.31244972348213196, -0.20427154004573822, -0.30210354924201965, -0.10631115734577179, 0.11343902349472046, 0.2860579490661621, 0.27107468247413635, -0.013713914901018143, -0.19809722900390625, 0.18368194997310638, -0.18487654626369476, 0.0732668936252594, 0.23472441732883453, -0.00816522166132927, -0.37426140904426575, 0.21234506368637085, -0.08706901222467422, -0.2872639298439026, -0.2512846887111664, -0.09981158375740051, 0.09627542644739151, -0.13266992568969727, -0.3139563500881195, 0.03071996569633484, 0.11041580140590668, -0.5071296691894531, -0.014425605535507202, 0.014443866908550262, 0.060914743691682816, -0.236122265458107, 0.15889215469360352, 0.2456148862838745, -0.1291038990020752, -0.12126792967319489, 0.16942334175109863, -0.03930041939020157, -0.3588319420814514, -0.34460076689720154, 0.08364509046077728, -0.23665855824947357, -0.0698225349187851, 0.3992690443992615, 0.12378408759832382, 0.10809677839279175, 0.2706339359283447, 0.1323768049478531, -0.19047628343105316, -0.3027171492576599, 0.034967973828315735, 0.07848028838634491, -0.14388957619667053, -0.12633496522903442, 0.016432294622063637, -0.19818854331970215, 0.0286132600158453, 0.09538304805755615, -0.029702089726924896, 0.13978147506713867, -0.02307678386569023, -0.4259389638900757, -0.03770746663212776, 0.09004608541727066, -0.13840803503990173, 0.35877275466918945, 0.05095204710960388, -0.22542786598205566, 0.19672143459320068, -0.14851413667201996, -0.430610716342926, -0.03172013908624649, -0.203969344496727, 0.0012511704117059708, -0.0889347642660141, -0.12069956213235855, 0.23357173800468445, -0.14346924424171448, 0.14507576823234558, -0.036527879536151886, -0.367339164018631, -0.3017280101776123, -0.0917656421661377, 0.12006198614835739, 0.23088529706001282, -0.009556260891258717, 0.07436511665582657, 0.013288788497447968, -0.17955006659030914, -0.07042799144983292, 0.34730610251426697, -0.15031316876411438, -0.11246100068092346, 0.005904405377805233, 0.39395493268966675, -0.07220176607370377, -0.24452653527259827, -0.04286862164735794, 0.291351854801178, 0.29578667879104614, -0.45376846194267273, 0.0015976838767528534, -0.08642250299453735, -0.08454455435276031, 0.3364182114601135, 0.5145137310028076, 0.54673832654953, 0.23769405484199524, 0.3092663884162903, -0.33978164196014404, 0.35488244891166687, 0.033279988914728165, -0.07318804413080215, 0.053423695266246796, -0.37941429018974304, -0.029872149229049683, -0.23778176307678223, 0.33028972148895264, -0.06561723351478577, -0.039634134620428085, -0.3290504813194275, -0.2883228659629822, 0.0641435831785202, 0.27645397186279297, 0.2426590919494629, 0.05860467255115509, -0.06762601435184479, 0.09744179993867874, 0.4021304249763489, 0.06070656329393387, -0.15399384498596191, 0.018902622163295746, -0.5190146565437317, 0.18831336498260498, 0.286892831325531, -0.003963220864534378, -0.04410814493894577, 0.2681480348110199, 0.057496871799230576, 0.36703431606292725, 0.11343397945165634, 0.41640064120292664, 0.20200863480567932, 0.09453746676445007, -0.12322580814361572, -0.4175660014152527, 0.16007614135742188, 0.07656742632389069, 0.05919414386153221, -0.028437651693820953, -0.3979291021823883, 0.08693509548902512, -0.41013282537460327, 0.05148705467581749, -0.08990395814180374, 0.04644738510251045, -0.4250239133834839, -0.10446447134017944, 0.03978828340768814, 0.028091248124837875, 0.02468796819448471, -0.2575399875640869, 0.039194799959659576, 0.11593663692474365, 0.004675939679145813, -0.005794938653707504, -0.08328830450773239, 0.24240776896476746, -0.028148986399173737, -0.3452770411968231, 0.20144879817962646, 0.026423238217830658, -0.12105832993984222, 0.10645037889480591, 0.495357871055603, 0.09985799342393875, 0.07107706367969513, 0.025242049247026443, 0.06895750015974045, 0.011076195165514946, -0.275092750787735, -0.11304529756307602, 0.06623048335313797, 0.05646340548992157, 0.1407911330461502, -0.08790558576583862, 0.2768183946609497, -0.21318404376506805, -0.09597273170948029, -0.18283240497112274, 0.18356233835220337, 0.06075282022356987, 0.03761938214302063, -0.38649871945381165, -0.055315591394901276, -0.10508592426776886, 0.21345555782318115, -0.4763065576553345, 0.25079071521759033, 0.27919477224349976, -0.20074184238910675, 0.1220344826579094, -0.14836862683296204, 0.1529032588005066, -0.08273681998252869, 0.7432695031166077, 0.2664520740509033, -0.008739486336708069, -0.10462204366922379, -0.16492244601249695, -0.06876984983682632, 0.178401917219162, 0.15475155413150787, -0.10176893323659897, -0.001244199462234974, 0.22842054069042206, 0.12499232590198517, -0.020223502069711685, 0.05368317663669586, -0.19430451095104218, 0.05437018722295761, 0.05350179225206375, -0.18438781797885895, -0.06408430635929108, 0.18828773498535156, 0.12856103479862213, 0.06589686125516891, -0.12196962535381317, 0.18718203902244568, 0.003381716087460518, 0.07523792237043381, -0.18975676596164703, 0.09890304505825043, 0.38536337018013, -0.42949819564819336, 0.5383436679840088, -0.02503948099911213, 0.2601153254508972, -0.2296590507030487, 0.10160145908594131, -0.2706146836280823, -0.1974012702703476, -0.25600236654281616, 0.04834224283695221, -0.1428525447845459, 0.1554204672574997, 0.017684759572148323, 0.009405549615621567, -0.11905880272388458, -0.29663699865341187, -0.10450871288776398, 0.2192433923482895, -0.18421341478824615, 0.05179556459188461, -0.6510971784591675, 0.22547638416290283, 0.17890286445617676, 0.09800712019205093, 0.009715355932712555, -0.13965310156345367, -0.2201060950756073, -0.2967652976512909, 0.35148635506629944, -0.22086581587791443, -0.352662056684494, 0.06206681579351425, 0.2046540081501007, -0.16185787320137024, 0.06629614531993866, -0.3873569667339325, 0.3418377935886383, 0.2010401487350464, -0.004932735115289688, -0.4510652422904968, 0.4704500734806061, 0.14579366147518158, 0.016061458736658096, -0.07527527213096619, 0.1373405158519745, 0.15273679792881012, 0.08779298514127731, -0.10834206640720367, -0.22139586508274078 ]
https://github.com/huggingface/datasets/pull/96
lm1b
I might have a different version of `isort` than others. It seems like I'm always reordering the imports of others. But isn't really a problem...
Add lm1b dataset.
25
text: lm1b Add lm1b dataset. I might have a different version of `isort` than others. It seems like I'm always reordering the imports of others. But isn't really a problem...
[ -0.12320557236671448, -0.5348087549209595, -0.18151244521141052, 0.09141293913125992, -0.056610360741615295, 0.03465516120195389, 0.16351094841957092, -0.052434634417295456, 0.2741740942001343, 0.44672876596450806, -0.2749622166156769, -0.3436761498451233, 0.03862994164228439, 0.033633045852184296, 0.03499578684568405, 0.27820050716400146, -0.09535952657461166, 0.2844519317150116, -0.2722289562225342, -0.28858333826065063, -0.3249988555908203, 0.41540175676345825, -0.04393996670842171, -0.0825570672750473, -0.2188006043434143, 0.17254161834716797, -0.011578239500522614, 0.16073250770568848, -0.24315257370471954, -0.27196404337882996, -0.1569080501794815, 0.27893415093421936, 0.04083884507417679, 0.052513983100652695, -0.00010408111847937107, -0.19871045649051666, 0.030679160729050636, 0.032743535935878754, -0.2286641001701355, -0.2582290768623352, -0.20738932490348816, -0.10439028590917587, 0.13091617822647095, 0.09630528837442398, -0.0005378313362598419, 0.12271762639284134, 0.13937461376190186, -0.18728159368038177, 0.28103941679000854, 0.1459268033504486, 0.3322908580303192, 0.07342059165239334, 0.12535503506660461, -0.2869293689727783, 0.6496410369873047, -0.07654160261154175, 0.07571041584014893, 0.008081759326159954, 0.24805402755737305, 0.5039401054382324, 0.20605452358722687, 0.23785029351711273, -0.007714929059147835, 0.04479129612445831, 0.08609329164028168, 0.08714795112609863, 0.23283228278160095, -0.2567296326160431, -0.12285792082548141, -0.012806862592697144, 0.808096706867218, -0.03756102919578552, -0.029901331290602684, 0.3095579147338867, 0.3200758695602417, -0.5067322850227356, 0.05094750225543976, 0.02176746353507042, 0.15961101651191711, 0.07016648352146149, 0.18476462364196777, -0.24626287817955017, 0.0010202303528785706, 0.12336836010217667, -0.14026960730552673, 0.3259405493736267, -0.15026918053627014, -0.02034701406955719, 0.13464027643203735, 0.03418809548020363, -0.2690677344799042, -0.188853919506073, -0.10043498873710632, -0.07121599465608597, 0.17638695240020752, 0.1497465968132019, 0.1578664779663086, 0.10462157428264618, -0.30954882502555847, 0.02302137017250061, -0.05890049785375595, -0.010823749005794525, 0.07718386501073837, 0.08381454646587372, 0.014895341359078884, 0.14008016884326935, 0.2919448912143707, 0.15290284156799316, 0.29193007946014404, -0.10944107919931412, -0.11145959794521332, 0.06785163283348083, 0.11177942156791687, -0.27142781019210815, -0.027826549485325813, 0.15478375554084778, 0.0417075976729393, -0.1699158400297165, -0.28032591938972473, -0.19853998720645905, 0.21163219213485718, -0.22667066752910614, -0.25031939148902893, 0.04078294336795807, -0.08588069677352905, -0.22972387075424194, 0.42856764793395996, -0.12484763562679291, -0.24245882034301758, -0.16210299730300903, -0.22983454167842865, 0.08516894280910492, -0.16563212871551514, 0.06622118502855301, -0.07071984559297562, 0.03370082005858421, 0.16039951145648956, 0.17714649438858032, 0.2403372824192047, -0.0186894703656435, -0.10090389847755432, 0.22474689781665802, 0.1419147402048111, 0.28163355588912964, 0.08669133484363556, 0.3314141631126404, -0.1570342630147934, -0.194425567984581, -0.20838969945907593, 0.06449815630912781, -0.3744944632053375, -0.12802959978580475, -0.1952788382768631, 0.42832350730895996, -0.005280304700136185, -0.10457116365432739, 0.14255963265895844, -0.15246781706809998, -0.2658809721469879, -0.3516910970211029, -0.1524219512939453, -0.10531248152256012, -0.010793380439281464, -0.056676436215639114, -0.013724615797400475, 0.11978756636381149, -0.3682616949081421, 0.07302162051200867, -0.4252758026123047, -0.13965286314487457, 0.2237699031829834, 0.06590280681848526, -0.01644466072320938, 0.18272438645362854, -0.13479499518871307, -0.05704674869775772, 0.5302054286003113, -0.402523934841156, -0.3477398157119751, -0.13909637928009033, -0.5649920701980591, -0.39330655336380005, 0.13910312950611115, 0.4867607653141022, 0.27997902035713196, 0.0021736943162977695, 0.019589997828006744, 0.18747833371162415, 0.07502567768096924, -0.11090213060379028, -0.12791825830936432, 0.13080370426177979, -0.39914101362228394, 0.09122881293296814, -0.12755881249904633, 0.058494679629802704, 0.16294392943382263, 0.43857893347740173, 0.2710922956466675, 0.04683445394039154, -0.1887822300195694, 0.3805276155471802, 0.37591055035591125, 0.029363859444856644, 0.08359440416097641, -0.15885359048843384, 0.0027833953499794006, 0.06721457093954086, 0.12383759021759033, 0.3289116621017456, 0.24379785358905792, -0.13023212552070618, -0.35113558173179626, -0.1726028323173523, -0.24677471816539764, 0.11864764988422394, 0.19422033429145813, 0.2873508632183075, -0.29161524772644043, -0.17383000254631042, 0.0161142535507679, -0.031854063272476196, 0.1930938959121704, 0.04247123375535011, -0.2557792067527771, -0.12852467596530914, -0.41021493077278137, 0.020895665511488914, 0.15262891352176666, 0.020962491631507874, -0.11779207736253738, -0.07798396050930023, 0.003193207085132599, 0.230606347322464, 0.12624795734882355, 0.016467854380607605, -0.08531590551137924, -0.2413375824689865, 0.10565412044525146, -0.23854798078536987, -0.16679935157299042, 0.25141507387161255, -0.005507184658199549, 0.03398846089839935, -0.08480233699083328, 0.3219616711139679, 0.03761279210448265, -0.020925842225551605, 0.12243925034999847, -0.10335738211870193, 0.11117410659790039, 0.09564679861068726, 0.10269080102443695, -0.5855871438980103, 0.43722355365753174, 0.23058262467384338, 0.2564491331577301, 0.16628997027873993, 0.22754251956939697, 0.31577685475349426, 0.5510548949241638, 0.018746893852949142, 0.07901180535554886, -0.026373930275440216, 0.1433817744255066, 0.1541684865951538, -0.029982080683112144, 0.19433282315731049, 0.1932889223098755, 0.4812169373035431, 0.20074746012687683, -0.051314592361450195, -0.09266410022974014, -0.33207032084465027, 0.09211889654397964, -0.2226271778345108, -0.017003044486045837, 0.08265941590070724, 0.1209786906838417, -0.1746980845928192, -0.3192312717437744, 0.002567533403635025, -0.1512579768896103, 0.05615748465061188, -0.15089282393455505, -0.20011943578720093, -0.5480163097381592, 0.2834915220737457, -0.4074085056781769, 0.04768213629722595, -0.200890451669693, -0.3558318614959717, 0.25983449816703796, 0.16483113169670105, -0.0461014024913311, 0.06450007110834122, 0.23344695568084717, 0.056927114725112915, -0.19848735630512238, -0.1350080519914627, 0.350510835647583, -0.04917515069246292, -0.363312304019928, 0.20276765525341034, -0.02672594040632248, 0.19083884358406067, 0.4894587993621826, -0.590334951877594, 0.1071796715259552, 0.008863481692969799, -0.4362597167491913, 0.11539030075073242, 0.04448743164539337, -0.09580762684345245, 0.12631088495254517, -0.1144380271434784, -0.01256537064909935, -0.21857678890228271, 0.07150059938430786, -0.0026098638772964478, -0.4255695641040802, -0.025931034237146378, -0.20061112940311432, -0.34294864535331726, -0.22599846124649048, -0.6402318477630615, -0.12183914333581924, -0.2546854317188263, 0.05567630007863045, 0.12713882327079773, 0.12399686872959137, -0.10599209368228912, 0.07975342869758606, -0.048775263130664825, 0.010831396095454693, 0.23137162625789642, -0.10677630454301834, 0.10855439305305481, 0.3390214145183563, -0.3248732089996338, -0.25192803144454956, 0.18709103763103485, 0.04053216427564621, -0.04320518299937248, 0.10491308569908142, -0.3536168336868286, -0.018311569467186928, -0.03965088725090027, 0.20856979489326477, 0.16825354099273682, 0.21525394916534424, 0.3224277198314667, 0.0670318529009819, -0.23516783118247986, -0.1273113340139389, -0.21889737248420715, 0.23151695728302002, -0.194169282913208, 0.3530193269252777, -0.5023736357688904, 0.22428962588310242, -0.4783054292201996, 0.36658304929733276, -0.0696190595626831, 0.10267315059900284, -0.02659156173467636, -0.04902026802301407, 0.398506224155426, -0.3517657518386841, -0.23393145203590393, -0.04373050481081009, 0.18132701516151428, -0.06085461378097534, 0.4948424696922302, -0.02090296894311905, 0.09488167613744736, -0.17639438807964325, 0.14822466671466827, -0.01979069411754608, -0.3042224943637848, -0.142438143491745, 0.40356016159057617, 0.17493966221809387, 0.02816782519221306, -0.3120814263820648, -0.3049705922603607, -0.26304009556770325, -0.10057437419891357, 0.3783131241798401, -0.09175289422273636, 0.004646871238946915, -0.5041366219520569, -0.10366977006196976, -0.06862320750951767, 0.45853716135025024, 0.208717942237854, 0.08017497509717941, -0.21196408569812775, -0.03904160112142563, 0.1476861834526062, -0.0548754520714283, 0.08409708738327026, -0.026059133931994438, -0.15826165676116943, 0.03874868154525757, 0.09169803559780121, -0.39229515194892883, -0.06046970188617706, -0.39818888902664185, 0.10394259542226791, 0.4630272686481476, 0.24282391369342804, -0.2615055739879608, -0.06518939882516861, 0.5347238779067993, 0.4728555381298065, -0.2744153141975403, -0.2819855809211731, -0.7178213000297546, -0.3204653561115265, -0.18233992159366608, -0.3793800473213196, 0.09657097607851028, 0.1743851751089096, 0.011137880384922028, -0.18003304302692413, 0.22225283086299896, -0.36256346106529236, 0.36178290843963623, -0.016854647547006607, 0.2163914144039154, 0.2352273166179657, 0.06947779655456543, -0.055675432085990906, -0.07415962219238281, -0.18120647966861725, 0.5120207667350769, -0.5749515295028687, -0.2707955241203308, 0.02122560329735279, -0.42632201313972473, 0.05977781116962433, 0.34224438667297363, 0.0793503150343895, 0.34531867504119873, -0.21690812706947327, -0.0639173686504364, 0.15079042315483093, 0.19663657248020172, 0.29537713527679443, 0.17211762070655823, 0.14266562461853027, -0.09055408835411072, 0.24071666598320007, 0.10136495530605316, -0.22315920889377594, 0.45705804228782654, 0.18486124277114868, -0.15505386888980865, 0.04065370187163353, 0.009111128747463226, 0.7619509696960449, 0.11127015203237534, 0.06492216885089874, 0.08663171529769897, -0.18075405061244965, 0.24883531033992767, 0.3617802858352661, 0.46175241470336914, -0.3870198428630829, -0.1750548928976059, 0.08103114366531372, -0.07884906232357025, -0.041527003049850464, 0.005135111510753632, -0.1440102756023407, 0.10404183715581894, -0.08431749045848846, 0.2996242046356201, -0.12286768853664398, 0.26498642563819885, 0.02067568711936474, 0.021268662065267563, -0.0027188770473003387, 0.21504168212413788, 0.13430634140968323, 0.2644425332546234, -0.28393012285232544, 0.07193251699209213, 0.0602794773876667, -0.12994694709777832, -0.18681013584136963, -0.08525338768959045, 0.011157684028148651, 0.2882802486419678, -0.07397814095020294, 0.07740697264671326, -0.18237505853176117, 0.028414612635970116, 0.5011803507804871, 0.28156375885009766, 0.18725083768367767, 0.03189900517463684, -0.14575651288032532, 0.01863338239490986, -0.2133120894432068, 0.08050023764371872, 0.09023074060678482, -0.2875393331050873, -0.28989967703819275, -0.04268823564052582, 0.3222416639328003, -0.22848761081695557, -0.19758109748363495, 0.06747032701969147, -0.16812103986740112, 0.0986974835395813, -0.01952480524778366, 0.38989880681037903, 0.11137491464614868, -0.3346569240093231, 0.17930662631988525, -0.06283462047576904, -0.00820925086736679, 0.2894446551799774, 0.07484680414199829, -0.47025763988494873, -0.11799071729183197, 0.28593432903289795, 0.13728725910186768, -0.010800851508975029, 0.35184216499328613, -0.018987108021974564, -0.1283159852027893, -0.261122465133667, 0.213067889213562, 0.021416667848825455, -0.5212342143058777, 0.3555896580219269, -0.18336324393749237, -0.22042745351791382, 0.06361495703458786, 0.4899042844772339, 0.41846132278442383, -0.10151655226945877, -0.151714026927948, -0.067909374833107, -0.17254090309143066, 0.20926880836486816, -0.06419612467288971, 0.08195363730192184, -0.2317798137664795, 0.32959046959877014, 0.06529153138399124, 0.1763763427734375, -0.4612956643104553, -0.012095551937818527, -0.12365841120481491, 0.14079052209854126, 0.18377822637557983, -0.1269298493862152, -0.12739300727844238, -0.007924160920083523, 0.2200014591217041, -0.11578504741191864, -0.5207172632217407, -0.25578075647354126, -0.1091700941324234, 0.09589123725891113, -0.3463396430015564, 0.1367809772491455, 0.1738545298576355, -0.2588121294975281, -0.018033985048532486, 0.12279302626848221, -0.06500472128391266, 0.005692280828952789, 0.0851922333240509, -0.1159220039844513, -0.21570058166980743, 0.06064340099692345, 0.12459006905555725, 0.05669505149126053, -0.0075934454798698425, 0.2301960289478302, 0.0700497180223465, 0.05961039662361145, 0.0970999076962471, -0.145674467086792, 0.1023724377155304, -0.06453805416822433, 0.08289784938097, 0.04536975920200348, 0.020793601870536804, -0.19980226457118988, 0.10495743155479431, 0.10002414882183075, 0.2115517556667328, 0.20592357218265533, -0.038659293204545975, -0.19477902352809906, 0.07327059656381607, 0.3113979995250702, -0.43828555941581726, -0.14804373681545258, 0.21877767145633698, 0.08594469726085663, -0.012249261140823364, 0.2808787226676941, 0.26884499192237854, -0.004423603415489197, 0.4300486445426941, 0.29255184531211853, -0.02842947468161583, -0.03900473564863205, -0.0314706526696682, 0.2105201780796051, -0.16202817857265472, 0.18996399641036987, 0.45045793056488037, 0.1994895190000534, -0.1520458161830902, 0.28303372859954834, -0.12573277950286865, 0.4783242642879486, -0.213657945394516, 0.08635641634464264, 0.4092971384525299, -0.22217702865600586, 0.6511049866676331, 0.0009301900863647461, 0.3243919610977173, 0.0808066874742508, 0.4561968743801117, -0.06453023105859756, -0.5126797556877136, 0.0983845666050911, -0.18385720252990723, 0.18767623603343964, -0.09252098947763443, -0.1309742033481598, 0.0899641215801239, -0.20110268890857697, -0.26877260208129883, -0.024012401700019836, 0.09539664536714554, 0.11069479584693909, 0.023176342248916626, 0.17731839418411255, 0.12491175532341003, -0.369971364736557, -0.3639877140522003, -0.151182621717453, 0.09054138511419296, -0.237955242395401, 0.19495227932929993, 0.1324291229248047, 0.22071439027786255, 0.43689826130867004, 0.08709158003330231, -0.022957030683755875, 0.31336212158203125, 0.009719545021653175, -0.13609470427036285, -0.10244807600975037, -0.16762389242649078, -0.16548040509223938, 0.015478023327887058, 0.10367008298635483, 0.08621175587177277, 0.1642986685037613, 0.1918724775314331, -0.29031533002853394, 0.23519012331962585, 0.20720767974853516, -0.26197755336761475, -0.09455642104148865, 0.1898638755083084, -0.16838930547237396, -0.168305441737175, -0.44785773754119873, 0.278087854385376, -0.35475361347198486, 0.07718773931264877, 0.42746955156326294, -0.2519233822822571, -0.11623619496822357, -0.1770598292350769, 0.1399136185646057, 0.08398613333702087, 0.21989642083644867, 0.13416215777397156, 0.26459434628486633, -0.029815971851348877, -0.19242361187934875, -0.7592084407806396, 0.42498520016670227, -0.07096810638904572, -0.19145242869853973, -0.22826755046844482, 0.13669122755527496, 0.24452584981918335, 0.04362201690673828, 0.46659380197525024, -0.1631724238395691, 0.0711832046508789, -0.1551559716463089, -0.34125828742980957, -0.009641662240028381, 0.1859772503376007, -0.030676858499646187, -0.14342725276947021, -0.2031027376651764, -0.03365810588002205, -0.17586849629878998, 0.18465232849121094, -0.2400694042444229, -0.18350917100906372, 0.1518852263689041, 0.13091230392456055, 0.1762481927871704, 0.19102708995342255, 0.4677225649356842, -0.2583909332752228, -0.05139727145433426, 0.10509282350540161, -0.17777304351329803, -0.14257392287254333, 0.07749946415424347, 0.32323819398880005, 0.39440563321113586, -0.058612093329429626, 0.04982829838991165, -0.28008973598480225, 0.4303770661354065, 0.35294872522354126, 0.13655579090118408, -0.2607572376728058, 0.23342913389205933, -0.13254770636558533, 0.12468967586755753, 0.252183735370636, 0.23759320378303528, 0.10730209201574326, -0.1390281766653061, -0.1413450837135315, -0.371518075466156, 0.34010955691337585, 0.26826363801956177, -0.22821377217769623, -0.24496884644031525, 0.4961971640586853, 0.4504321217536926, -0.13550062477588654, -0.3390434682369232, -0.04003012552857399, 0.3058529198169708, -0.09863368421792984, -0.02492235042154789, 0.44395703077316284, 0.1316959410905838, 0.15074749290943146, -0.04821797460317612, 0.015717390924692154, 0.14454124867916107, -0.4642794728279114, -0.20777133107185364, -0.2794787883758545 ]
https://github.com/huggingface/datasets/pull/95
Replace checksums files by Dataset infos json
> Ok, really clean! > I like the logic (not a huge fan of using `_asdict_inner` but it makes sense). > I think it's a nice improvement! > > How should we update the files in the repo? Run a big job on a server or on somebody's computer who has most of the datasets already downloaded? Maybe we can split the updates among us...IMO most datasets run very quickly. I think I've downloaded 50 datasets and 80% are loaded in <5min, 15% in <1h and then `wmt` which is still downloading (since 12h). I deleted my cache because the `wmt` downloads require quite a lot of space, so I only have parts of the `wmt` datasets on my computer. @mariamabarham I guess you have downloaded most of the datasets no?
### Better verifications when loading a dataset I replaced the `urls_checksums` directory that used to contain `checksums.txt` and `cached_sizes.txt`, by a single file `dataset_infos.json`. It's just a dict `config_name` -> `DatasetInfo`. It simplifies and improves how verifications of checksums and splits sizes are done, as they're all stored in `DatasetInfo` (one per config). Also, having already access to `DatasetInfo` enables to check disk space before running `download_and_prepare` for a given config. The dataset infos json file is user readable, you can take a look at the squad one that I generated in this PR. ### Renaming According to these changes, I did some renaming: `save_checksums` -> `save_infos` `ignore_checksums` -> `ignore_verifications` for example, when you are creating a dataset you have to run ```nlp-cli test path/to/my/dataset --save_infos --all_configs``` instead of ```nlp-cli test path/to/my/dataset --save_checksums --all_configs``` ### And now, the fun part We'll have to rerun the `nlp-cli test ... --save_infos --all_configs` for all the datasets ----------------- feedback appreciated !
131
text: Replace checksums files by Dataset infos json ### Better verifications when loading a dataset I replaced the `urls_checksums` directory that used to contain `checksums.txt` and `cached_sizes.txt`, by a single file `dataset_infos.json`. It's just a dict `config_name` -> `DatasetInfo`. It simplifies and improves how verifications of checksums and splits sizes are done, as they're all stored in `DatasetInfo` (one per config). Also, having already access to `DatasetInfo` enables to check disk space before running `download_and_prepare` for a given config. The dataset infos json file is user readable, you can take a look at the squad one that I generated in this PR. ### Renaming According to these changes, I did some renaming: `save_checksums` -> `save_infos` `ignore_checksums` -> `ignore_verifications` for example, when you are creating a dataset you have to run ```nlp-cli test path/to/my/dataset --save_infos --all_configs``` instead of ```nlp-cli test path/to/my/dataset --save_checksums --all_configs``` ### And now, the fun part We'll have to rerun the `nlp-cli test ... --save_infos --all_configs` for all the datasets ----------------- feedback appreciated ! > Ok, really clean! > I like the logic (not a huge fan of using `_asdict_inner` but it makes sense). > I think it's a nice improvement! > > How should we update the files in the repo? Run a big job on a server or on somebody's computer who has most of the datasets already downloaded? Maybe we can split the updates among us...IMO most datasets run very quickly. I think I've downloaded 50 datasets and 80% are loaded in <5min, 15% in <1h and then `wmt` which is still downloading (since 12h). I deleted my cache because the `wmt` downloads require quite a lot of space, so I only have parts of the `wmt` datasets on my computer. @mariamabarham I guess you have downloaded most of the datasets no?
[ -0.16126041114330292, 0.6789687275886536, -0.13106383383274078, 0.05530855432152748, -0.0441737100481987, -0.06424928456544876, 0.00319073349237442, 0.5112038850784302, 0.04409743472933769, -0.018012046813964844, -0.06825406849384308, 0.20475761592388153, 0.09152065217494965, 0.008391877636313438, 0.06786144524812698, 0.15829411149024963, 0.19352379441261292, 0.19883334636688232, 0.11176979541778564, -0.013999789953231812, -0.25196853280067444, -0.0002464316785335541, 0.07113932073116302, -0.28561460971832275, 0.17950879037380219, -0.2026110142469406, -0.1910177767276764, 0.273577481508255, -0.3867833614349365, -0.4316604733467102, 0.012460349127650261, 0.5099258422851562, 0.07680448889732361, 0.3858427405357361, -0.0001090467776521109, -0.07897494733333588, 0.24327516555786133, 0.013946658000349998, -0.44548338651657104, 0.5201528668403625, -0.43647241592407227, -0.5736241936683655, -0.32409679889678955, -0.38627681136131287, 0.3877124488353729, 0.04352438449859619, 0.12750555574893951, -0.15519782900810242, 0.25811490416526794, 0.14652571082115173, 0.15608146786689758, -0.01113288477063179, -0.11212262511253357, 0.0419892892241478, 0.21004876494407654, 0.1710517704486847, 0.11752184480428696, 0.03325306624174118, 0.31468167901039124, -0.022658128291368484, -0.09189223498106003, 0.3585422933101654, -0.22733154892921448, -0.12860870361328125, 0.24911940097808838, -0.26201900839805603, 0.13561928272247314, -0.041811034083366394, 0.03447531908750534, 0.10814045369625092, 0.14442753791809082, -0.4097144901752472, -0.3600050210952759, -0.3547995686531067, -0.03130275011062622, -0.2901732921600342, 0.08334015309810638, 0.14343193173408508, 0.00920986756682396, -0.007494810968637466, -0.5274737477302551, -0.2867269515991211, 0.0444394052028656, -0.03277153521776199, 0.2219570279121399, 0.22608287632465363, 0.21210543811321259, -0.02949605882167816, 0.07932969927787781, -0.046478450298309326, -0.2343062162399292, -0.21998602151870728, -0.3274810016155243, 0.033357322216033936, -0.144900381565094, -0.28212058544158936, 0.09760187566280365, 0.05884018540382385, 0.5598931908607483, 0.39341527223587036, -0.09729715436697006, 0.10229840874671936, -0.07605890184640884, 0.09598018229007721, -0.04794849082827568, 0.296215295791626, 0.33504462242126465, 0.3297312557697296, 0.3341217637062073, 0.3468790054321289, 0.1646585911512375, 0.22217649221420288, -0.053085632622241974, -0.10593010485172272, -0.20875881612300873, 0.20369908213615417, -0.10969728976488113, -0.4015372097492218, -0.04020269215106964, 0.2802135944366455, 0.05462215095758438, -0.34100350737571716, 0.14813444018363953, 0.16846895217895508, -0.2848188877105713, 0.3090120255947113, 0.07691624015569687, -0.1282031238079071, -0.08934875577688217, 0.008931261487305164, -0.1883416771888733, -0.05764949694275856, -0.34175029397010803, 0.23651614785194397, 0.2873044013977051, 0.21503357589244843, 0.33215460181236267, -0.20480099320411682, 0.18267914652824402, -0.043717388063669205, 0.0447477325797081, 0.0643845647573471, -0.25707176327705383, 0.29788264632225037, -0.1197362095117569, -0.19857659935951233, -0.2221391350030899, -0.27409037947654724, -0.36283808946609497, 0.014006227254867554, -0.10101867467164993, -0.2595120966434479, -0.044018298387527466, 0.23304606974124908, -0.4070735573768616, -0.07439787685871124, -0.10648360103368759, -0.05008586868643761, 0.1977737843990326, -0.3172833025455475, 0.16495467722415924, 0.13270142674446106, -0.005159430205821991, -0.18682491779327393, 0.13944341242313385, 0.37026670575141907, -0.29246631264686584, -0.08942963182926178, 0.012090707197785378, -0.1013413667678833, 0.16684681177139282, 0.16475056111812592, -0.059071704745292664, 0.05158887803554535, -0.005645240657031536, -0.049400534480810165, 0.5017980337142944, -0.4327571392059326, -0.4276416301727295, 0.2237635999917984, 0.06613235175609589, -0.18320785462856293, 0.3087969124317169, -0.13049644231796265, 0.17977921664714813, -0.2911847233772278, -0.005323551595211029, 0.2701244056224823, -0.13624905049800873, 0.2398439645767212, -0.5059226155281067, -0.5587220191955566, -0.032457135617733, 0.2579970955848694, 0.1020665168762207, -0.2207786738872528, 0.027055121958255768, 0.24225349724292755, 0.37799471616744995, -0.10535663366317749, 0.10068939626216888, 0.04014866426587105, 0.35668447613716125, 0.021655328571796417, -0.019739311188459396, 0.0226936973631382, -0.4515935778617859, 0.2452753186225891, -0.3018801212310791, -0.045591406524181366, 0.04412553086876869, -0.37021446228027344, -0.2126183807849884, -0.26111647486686707, 0.10388882458209991, -0.21046285331249237, 0.14303700625896454, 0.4237782955169678, 0.20611657202243805, -0.2981846034526825, -0.22983446717262268, 0.10254815965890884, -0.5081282258033752, 0.0997261181473732, -0.23741845786571503, 0.02751350589096546, -0.18552769720554352, 0.0372692234814167, -0.04261685162782669, 0.30089071393013, -0.11209306865930557, -0.21868763864040375, 0.04213729500770569, 0.502189576625824, 0.017875947058200836, 0.03432868421077728, 0.384257972240448, 0.31870830059051514, 0.3110174536705017, 0.17336972057819366, 0.19827055931091309, -0.063646599650383, -0.162978395819664, -0.0282905213534832, -0.6177053451538086, 0.45730698108673096, -0.18494950234889984, 0.09388001263141632, -0.012533780187368393, -0.2195369005203247, 0.19621330499649048, -0.2612285017967224, -0.2915073335170746, -0.12583871185779572, -0.16818895936012268, 0.3857246935367584, 0.03226881101727486, 0.18329700827598572, 0.05829821527004242, 0.20426875352859497, 0.4917164742946625, -0.12839056551456451, -0.3317047655582428, 0.15245462954044342, 0.2904910147190094, -0.11644461750984192, 0.06293749809265137, 0.6392831802368164, 0.30503544211387634, 0.29166460037231445, 0.035655781626701355, 0.06774629652500153, -0.04800194874405861, -0.029480867087841034, 0.04656191170215607, 0.19090723991394043, 0.28032147884368896, 0.21794909238815308, 0.047156743705272675, 0.05868913605809212, -0.005725748836994171, -0.2993573546409607, 0.21450141072273254, 0.3604385554790497, 0.021457258611917496, -0.04451465606689453, -0.10070112347602844, -0.25866395235061646, -0.19585658609867096, -0.046773843467235565, -0.2574675381183624, -0.10385869443416595, 0.18640382587909698, -0.22729554772377014, -0.14452959597110748, 0.2809388339519501, -0.1504354327917099, 0.49311912059783936, -0.09483202546834946, -0.10145428031682968, 0.048004329204559326, -0.11233117431402206, -0.13927391171455383, 0.10121935606002808, 0.6774213314056396, 0.10401500016450882, 0.4627070724964142, -0.2712913453578949, -0.008129625581204891, -0.289707213640213, -0.45933619141578674, -0.0395108163356781, -0.16362318396568298, -0.04687061160802841, 0.1731112003326416, 0.14235444366931915, -0.05891764163970947, -0.2875653803348541, -0.014089483767747879, 0.06715008616447449, -0.268798828125, -0.19352324306964874, 0.00357416900806129, -0.1071513369679451, -0.3069211542606354, -0.20335915684700012, -0.05315619707107544, -0.4153677821159363, 0.2821374535560608, 0.29926323890686035, 0.4409624934196472, 0.03373362496495247, 0.0663151741027832, 0.15297460556030273, -0.09262821078300476, 0.2093839943408966, 0.06510255485773087, -0.620945155620575, 0.0054338425397872925, -0.031767215579748154, -0.016544673591852188, 0.06896524131298065, 0.11818398535251617, -0.00401681661605835, -0.013596192002296448, -0.49194854497909546, -0.24863854050636292, -0.21580086648464203, 0.2831660509109497, 0.0527297705411911, 0.11724220961332321, 0.4116310775279999, 0.09823357313871384, -0.17029708623886108, -0.05568692460656166, -0.32503482699394226, 0.013700194656848907, 0.027846388518810272, 0.5948452949523926, -0.15349248051643372, 0.13701531291007996, 0.047119300812482834, 0.380512535572052, 0.46481645107269287, -0.04088408872485161, -0.27552589774131775, 0.4047078788280487, 0.22459101676940918, 0.10137518495321274, -0.02648916095495224, 0.4121830463409424, 0.04388777166604996, -0.08682440221309662, 0.38299423456192017, 0.11614340543746948, -0.19124870002269745, -0.06102602183818817, 0.019055917859077454, -0.1428348422050476, -0.3089247941970825, 0.2075025737285614, -0.20546114444732666, 0.12648925185203552, -0.030522208660840988, -0.13227999210357666, -0.2698970139026642, 0.013410206884145737, -0.030785512179136276, 0.35189419984817505, -0.0800691768527031, 0.10131125152111053, -0.6896456480026245, -0.013689534738659859, -0.10350923985242844, 0.25092175602912903, 0.030915161594748497, 0.1663295179605484, 0.10489135980606079, -0.10964962095022202, -0.04620462656021118, -0.26056918501853943, 0.17758744955062866, -0.10290203243494034, 0.11672072112560272, 0.25530514121055603, 0.33948764204978943, 0.12630538642406464, -0.21987639367580414, -0.2834286689758301, -0.015498410910367966, 0.5975849032402039, 0.4825992286205292, -0.565652072429657, -0.422846257686615, 0.11531690508127213, 0.2380143702030182, -0.05786383897066116, 0.056161317974328995, -0.0635213702917099, -0.26604124903678894, -0.5491423010826111, 0.21897292137145996, -0.14933130145072937, 0.07559949159622192, -0.241944819688797, 0.26013195514678955, 0.20129725337028503, 0.1719026267528534, 0.3432021141052246, 0.13855114579200745, 0.1648762822151184, 0.40679866075515747, 0.00961698591709137, -0.1725623458623886, 0.12927155196666718, 0.3237561285495758, 0.3758247196674347, -0.2863735854625702, 0.17629382014274597, -0.08229321241378784, 0.12018568813800812, 0.24732664227485657, 0.4698316752910614, 0.2843884527683258, -0.23862600326538086, 0.20808203518390656, 0.047744639217853546, 0.044437475502491, -0.013713683933019638, -0.06582540273666382, -0.0900142714381218, -0.2371564507484436, -0.4711998403072357, 0.2596706748008728, 0.14152303338050842, -0.21860440075397491, 0.16928857564926147, 0.13390624523162842, -0.10727570205926895, 0.30230116844177246, 0.35569578409194946, 1.0658071041107178, -0.08989571034908295, 0.03779502958059311, 0.03678619861602783, -0.25459885597229004, 0.46553999185562134, -0.5477073192596436, -0.048848994076251984, -0.15831255912780762, -0.012447739951312542, 0.13409683108329773, -0.08571697026491165, 0.23254787921905518, 0.09728114306926727, -0.5202338099479675, 0.13126365840435028, 0.1793300360441208, -0.21033573150634766, 0.25325214862823486, 0.4963568449020386, -0.20566125214099884, -0.353134423494339, -0.05037738382816315, 0.16814810037612915, -0.22988523542881012, -0.17538779973983765, -0.05410518869757652, -0.17047396302223206, -0.2136099934577942, 0.05127086490392685, -0.2887622117996216, 0.0045829713344573975, 0.19457171857357025, 0.08123654872179031, 0.1904813051223755, 0.09838171303272247, -0.062458526343107224, 0.12642070651054382, 0.20726162195205688, 0.5304542779922485, -0.05104244500398636, 0.20566387474536896, 0.16805310547351837, 0.0799875482916832, 0.16799665987491608, -0.051765602082014084, 0.3588712513446808, -0.25099387764930725, -0.35337692499160767, -0.2726413309574127, -0.2744831144809723, -0.42027747631073, -0.10677717626094818, -0.05369853973388672, 0.3660324811935425, -0.18202470242977142, 0.04839755967259407, 0.30938950181007385, -0.48458370566368103, -0.166476309299469, 0.1646670699119568, 0.23515735566616058, -0.3022814691066742, 0.3983966112136841, 0.1845673769712448, -0.3349129557609558, -0.07628685235977173, 0.06572778522968292, 0.0063247960060834885, -0.28471308946609497, 0.21186773478984833, -0.07289274036884308, -0.0843321681022644, -0.40414959192276, 0.035347580909729004, -0.2875666618347168, 0.11408708244562149, -0.18378788232803345, -0.2388422191143036, -0.2856740951538086, 0.1203957125544548, 0.03902224078774452, 0.5125811100006104, 0.07925219088792801, 0.11841143667697906, -0.5183701515197754, -0.3894822895526886, 0.20266836881637573, 0.12073279917240143, 0.2919348478317261, -0.19708675146102905, 0.006147172302007675, -0.2761158347129822, 0.19588293135166168, -0.38637664914131165, 0.06355339288711548, -0.41539767384529114, 0.22234433889389038, 0.058895960450172424, -0.08325012773275375, -0.1352652907371521, -0.1315111368894577, 0.06421157717704773, -0.03141937404870987, -0.3205033540725708, -0.2391686737537384, -0.15618951618671417, 0.16091839969158173, 0.015296285040676594, 0.1134219840168953, 0.17137113213539124, 0.07730340957641602, -0.06336569786071777, 0.09065169841051102, -0.13618141412734985, -0.30950069427490234, -0.025338642299175262, 0.32185298204421997, 0.34482184052467346, 0.01844853162765503, 0.23089508712291718, -0.05717690289020538, 0.11915458738803864, 0.13929639756679535, -0.24132664501667023, 0.36309507489204407, -0.12232045829296112, -0.22679734230041504, 0.022956494241952896, 0.30801936984062195, 0.09790492057800293, 0.4397810101509094, 0.16176748275756836, -0.08414234220981598, 0.1241733729839325, 0.27015388011932373, 0.1793527454137802, 0.6040944457054138, -0.06912344694137573, 0.013088231906294823, 0.2631283104419708, 0.23094592988491058, -0.15544548630714417, -0.014029989019036293, 0.35352858901023865, -0.055753037333488464, -0.06748036295175552, 0.23813149333000183, 0.2071581482887268, -0.21653492748737335, 0.2854064106941223, 0.23285174369812012, 0.24316148459911346, -0.15339753031730652, 0.06752419471740723, 0.4834732115268707, -0.17859818041324615, -0.27711138129234314, 0.10572383552789688, 0.03180917352437973, 0.08266586065292358, -0.0869806706905365, 0.04626350849866867, 0.5097690224647522, 0.07785647362470627, 0.3414967656135559, -0.061458759009838104, -0.20709025859832764, 0.405804306268692, 0.2908344864845276, 0.2710064649581909, -0.007279828190803528, 0.2154330164194107, 0.5424624681472778, -0.05594648793339729, -0.13311053812503815, -0.13925032317638397, 0.2999122738838196, 0.14076827466487885, -0.047470517456531525, -0.5656629800796509, -0.15898355841636658, -0.10252019762992859, -0.02403181418776512, -0.0944894403219223, 0.020051080733537674, 0.18656033277511597, 0.07457134872674942, -0.1646142452955246, -0.2858855128288269, 0.1005537360906601, -0.14634335041046143, 0.1802365481853485, -0.4042068123817444, 0.17457754909992218, 0.15204432606697083, -0.057604968547821045, 0.0787457525730133, 0.33468368649482727, 0.171531543135643, 0.36087772250175476, 0.048209067434072495, 0.12211567163467407, 0.02176644839346409, 0.11641904711723328, -0.21844659745693207, 0.3344621956348419, 0.04383328557014465, -0.43142417073249817, 0.12490889430046082, 0.14191624522209167, -0.16244350373744965, -0.19876737892627716, -0.16097921133041382, -0.4708523452281952, 0.2917781472206116, 0.5340006947517395, 0.4253667891025543, -0.11850118637084961, -0.015690606087446213, 0.16781967878341675, -0.4330342710018158, -0.20005305111408234, 0.2644091546535492, 0.13763943314552307, 0.24015459418296814, -0.13171440362930298, 0.10681265592575073, -0.002901725471019745, 0.4875786304473877, 0.20473094284534454, -0.23846435546875, -0.13849851489067078, -0.37254178524017334, -0.5077767372131348, -0.02671390026807785, -0.06504657864570618, -0.19833289086818695, 0.07697498053312302, 0.3675881624221802, -0.0734189972281456, 0.18262837827205658, -0.031968191266059875, -0.20358841121196747, -0.18302275240421295, -0.039167098701000214, -0.5454372763633728, 0.29993000626564026, 0.18936914205551147, 0.13614770770072937, 0.2557647228240967, -0.40447452664375305, 0.24591313302516937, 0.1269560158252716, 0.0986284539103508, 0.07613690942525864, -0.055735088884830475, 0.3308905065059662, 0.1851828545331955, 0.08751042932271957, 0.06717610359191895, 0.21631740033626556, -0.07107554376125336, -0.41850200295448303, -0.3933176100254059, 0.003791846102103591, -0.24808189272880554, 0.15771695971488953, -0.15024231374263763, 0.31090179085731506, -0.3111691176891327, 0.15428027510643005, -0.15269871056079865, 0.21542441844940186, -0.08480052649974823, -0.5334637761116028, -0.22388307750225067, -0.09952013939619064, 0.021556593477725983, 0.260989785194397, 0.04148475080728531, 0.26277783513069153, -0.011207804083824158, 0.08374928683042526, -0.5023243427276611, -0.14155535399913788, 0.6242831945419312, 0.06229512393474579, -0.1326313316822052, 0.050202034413814545, 0.16583357751369476, -0.19896754622459412, 0.0067644864320755005, -0.5332602262496948, 0.0850282683968544, 0.14516207575798035, -0.1153988167643547, -0.31396445631980896, 0.16734300553798676, -0.21185393631458282, -0.11473388969898224, -0.0954621285200119, 0.01693050190806389, -0.2197868824005127, -0.200553759932518, -0.3015260696411133, -0.18863455951213837 ]
https://github.com/huggingface/datasets/pull/94
Librispeech
@jplu - I changed this weird archieve - iter method to something simpler. It's only one file to download anyways so I don't see the point of using weird iter methods...It's a huge file though :D 30 million lines of text. Took me quite some time to download :D
Add librispeech dataset and remove some useless content.
49
text: Librispeech Add librispeech dataset and remove some useless content. @jplu - I changed this weird archieve - iter method to something simpler. It's only one file to download anyways so I don't see the point of using weird iter methods...It's a huge file though :D 30 million lines of text. Took me quite some time to download :D
[ -0.1731654703617096, -0.295171856880188, -0.2162754088640213, 0.3046254515647888, 0.019207758828997612, -0.17102354764938354, -0.02151140198111534, 0.2764309346675873, 0.14956782758235931, 0.07157514989376068, -0.09023123234510422, 0.19911158084869385, -0.13786271214485168, 0.1053168848156929, -0.08491500467061996, 0.32444238662719727, -0.14121416211128235, 0.4225011467933655, -0.10338634252548218, -0.09234100580215454, -0.13035306334495544, 0.1684880405664444, 0.012595601379871368, -0.14522986114025116, 0.06981638073921204, -0.08861414343118668, 0.02293761633336544, 0.41618576645851135, -0.3737384080886841, -0.24565252661705017, -0.01145731657743454, 0.06369060277938843, -0.10539834946393967, 0.0803641676902771, -0.00009683957614470273, -0.1626470983028412, 0.20409362018108368, -0.06836356222629547, -0.16563107073307037, 0.2486218810081482, -0.3627080023288727, -0.03193943575024605, 0.012836054898798466, -0.22418877482414246, 0.07941672205924988, 0.2785630524158478, -0.017340829595923424, -0.16150687634944916, 0.32577264308929443, 0.2741640508174896, 0.3605274558067322, -0.07960718870162964, -0.024871166795492172, -0.04813847318291664, 0.4458990693092346, -0.1314498633146286, -0.09718289226293564, -0.049990128725767136, 0.42408308386802673, 0.4143199920654297, -0.0014578625559806824, 0.37882548570632935, -0.12704041600227356, -0.06612448394298553, 0.20774391293525696, -0.1997905671596527, -0.04500865191221237, -0.17798130214214325, 0.1154329851269722, 0.19152310490608215, 0.6112991571426392, -0.14676812291145325, -0.052371859550476074, 0.18016207218170166, -0.026402782648801804, -0.28159457445144653, 0.22577518224716187, 0.032956406474113464, -0.11767677962779999, 0.015833383426070213, 0.2050645649433136, -0.5853914618492126, -0.2465236634016037, -0.07327969372272491, -0.11952534317970276, 0.23909452557563782, -0.20315024256706238, -0.13906386494636536, 0.26095008850097656, -0.04852795600891113, 0.1637379676103592, 0.079413503408432, -0.3644753396511078, 0.11588738113641739, -0.06497474014759064, -0.26530247926712036, -0.1110643818974495, 0.16817384958267212, 0.011437349021434784, 0.1708315908908844, 0.3881039619445801, 0.190566748380661, -0.28094789385795593, -0.003162592649459839, -0.07090111076831818, 0.025016196072101593, 0.24379566311836243, -0.14672237634658813, 0.1388929933309555, 0.26500073075294495, 0.2284761667251587, -0.11643443256616592, -0.03376108407974243, -0.18316619098186493, -0.2632852792739868, -0.0006025433540344238, -0.008624931797385216, -0.27544745802879333, -0.23744481801986694, -0.081251360476017, -0.14455029368400574, -0.07412838935852051, -0.03588401898741722, 0.23943662643432617, -0.07672038674354553, -0.0770307257771492, 0.06819946318864822, -0.11931899189949036, -0.05825478583574295, -0.23568584024906158, -0.18624453246593475, 0.3786565959453583, -0.07423475384712219, -0.16460923850536346, -0.02741311863064766, -0.2939482033252716, 0.15535660088062286, -0.030224092304706573, -0.18703649938106537, 0.03687240928411484, 0.05162499099969864, -0.07282738387584686, 0.17638185620307922, 0.1362357884645462, -0.10360966622829437, -0.00535648874938488, -0.21278120577335358, -0.3649212121963501, -0.10655494779348373, 0.1434587687253952, -0.09815921634435654, -0.1775086224079132, -0.2567533850669861, 0.3840775489807129, 0.05383472144603729, -0.20472125709056854, 0.2738252282142639, 0.06065358221530914, -0.1095500960946083, -0.08240839838981628, 0.18050521612167358, 0.16799861192703247, 0.16982993483543396, -0.05408618599176407, 0.17272500693798065, 0.31615036725997925, -0.44811350107192993, 0.12991416454315186, -0.3453054130077362, -0.22991380095481873, 0.2876901924610138, 0.11153066158294678, -0.0033166988287121058, 0.0978454053401947, -0.06727901846170425, 0.40351247787475586, 0.2125282883644104, -0.11111831665039062, -0.4405058026313782, 0.42009246349334717, -0.19813327491283417, 0.10736025124788284, 0.12590870261192322, 0.34996750950813293, -0.03404475748538971, -0.08199761807918549, -0.23220321536064148, 0.26680564880371094, 0.13856174051761627, -0.03979935124516487, -0.3220735192298889, -0.21228563785552979, -0.05020423233509064, -0.007586715742945671, 0.07791408896446228, 0.04052889719605446, 0.18642926216125488, 0.3002561032772064, 0.5451297163963318, -0.007788907736539841, 0.16121849417686462, 0.23092389106750488, 0.3669716715812683, 0.12794902920722961, -0.12171351909637451, -0.047757603228092194, -0.0853869840502739, -0.09567664563655853, 0.22479721903800964, 0.1850546896457672, -0.17751912772655487, -0.1572260856628418, -0.30449342727661133, -0.03271636739373207, -0.23067407310009003, -0.4438704252243042, 0.23660841584205627, 0.34012386202812195, -0.014156918972730637, -0.3789120614528656, -0.08189056813716888, 0.18309661746025085, -0.032551854848861694, -0.06909123808145523, -0.3198592960834503, -0.2742955684661865, -0.1449710726737976, 0.0573573112487793, 0.05346070975065231, -0.021259136497974396, -0.23846814036369324, -0.11254172772169113, 0.011887652799487114, 0.36871469020843506, -0.2716313302516937, 0.06195097044110298, 0.35108622908592224, 0.17309096455574036, 0.22203443944454193, -0.20514731109142303, 0.07638506591320038, 0.030950170010328293, 0.2502930164337158, 0.00191546231508255, -0.020186439156532288, -0.2768847346305847, 0.22489945590496063, 0.13192570209503174, 0.03054855763912201, 0.018497059121727943, 0.15310922265052795, -0.08478574454784393, -0.036238402128219604, -0.015545886009931564, 0.0740782842040062, 0.12120909988880157, 0.33436012268066406, -0.07548342645168304, -0.19097048044204712, 0.07152877748012543, 0.2545912563800812, 0.016118787229061127, -0.00504467636346817, 0.2917649447917938, -0.20861008763313293, -0.020070528611540794, -0.11353011429309845, -0.014545220881700516, 0.05304863303899765, 0.20127436518669128, 0.14355307817459106, 0.02831200882792473, 0.28592413663864136, -0.27614250779151917, 0.4141770899295807, 0.0625932514667511, 0.09436027705669403, 0.0020519793033599854, -0.13119179010391235, -0.09031376242637634, -0.47228479385375977, -0.4100208282470703, -0.23587237298488617, 0.2798396944999695, -0.014608412981033325, -0.30819374322891235, -0.11093079298734665, -0.11086409538984299, 0.06547471880912781, -0.14232265949249268, -0.1668020486831665, -0.25648233294487, 0.06248965114355087, 0.04529181867837906, -0.22890587151050568, 0.11077988892793655, 0.2460571527481079, 0.348807692527771, 0.07066896557807922, 0.18137967586517334, -0.2456670105457306, -0.08883347362279892, -0.18619492650032043, 0.341716468334198, 0.023051366209983826, -0.19739121198654175, 0.35304874181747437, -0.24633736908435822, 0.17552170157432556, -0.38172483444213867, -0.2048804759979248, 0.15136271715164185, 0.01917608641088009, -0.09001067280769348, 0.28340834379196167, 0.3250580430030823, 0.014674995094537735, -0.3304049074649811, -0.048055876046419144, -0.09569864720106125, -0.14879517257213593, -0.17096276581287384, 0.0031537534669041634, 0.08438536524772644, -0.06854136288166046, -0.5422863364219666, -0.1285034716129303, -0.44919395446777344, 0.39782530069351196, 0.21985094249248505, 0.32880890369415283, 0.18079888820648193, 0.10206452012062073, 0.2579804062843323, 0.10941080003976822, 0.15739089250564575, -0.12632453441619873, -0.0712055116891861, 0.2887837290763855, -0.1760532706975937, -0.18826857209205627, 0.018314745277166367, 0.17269612848758698, -0.012673217803239822, 0.10264146327972412, -0.567464292049408, 0.17034034430980682, -0.30675745010375977, -0.1584777981042862, -0.08723990619182587, 0.0929640531539917, 0.2635849118232727, 0.25893065333366394, -0.3390434980392456, -0.030979987233877182, -0.02802855707705021, 0.0886266902089119, -0.19187462329864502, 0.19876155257225037, -0.03924330323934555, 0.16125935316085815, 0.16500619053840637, -0.003492385149002075, -0.007032314315438271, 0.08185460418462753, 0.28934285044670105, -0.06562059372663498, 0.2637941539287567, -0.03587917983531952, -0.14324267208576202, 0.2687770426273346, 0.10889893770217896, -0.11729461699724197, 0.40096986293792725, -0.05333755165338516, -0.033573217689991, -0.14803540706634521, 0.06762748956680298, -0.03509645164012909, -0.18604284524917603, 0.13878460228443146, -0.09676559269428253, -0.12847894430160522, -0.05093279480934143, -0.052531685680150986, 0.062155600637197495, -0.18187600374221802, 0.2763325273990631, 0.045527275651693344, -0.1877765953540802, 0.001979363849386573, -0.1789177805185318, 0.08877213299274445, -0.4773098826408386, 0.3515562415122986, -0.12890857458114624, -0.06087698042392731, -0.05375058948993683, -0.27907228469848633, 0.050959669053554535, -0.11433538049459457, 0.3853529095649719, -0.25817424058914185, -0.17107407748699188, -0.06246495991945267, 0.2702159881591797, 0.03244178742170334, 0.06146695837378502, -0.5235371589660645, 0.4232453405857086, 0.4528905749320984, 0.19695058465003967, -0.2378479242324829, 0.21224011480808258, 0.16437667608261108, 0.17171010375022888, -0.09116818010807037, -0.0767742469906807, -0.10539454221725464, -0.47774848341941833, -0.4444776773452759, 0.0520230196416378, -0.006405329331755638, 0.2523441016674042, 0.2155040055513382, -0.1773737370967865, 0.07604342699050903, -0.07450263947248459, 0.3872531056404114, 0.019421741366386414, 0.17690834403038025, 0.13729891180992126, -0.08985225856304169, -0.04079364240169525, 0.24143095314502716, -0.062128521502017975, 0.31587934494018555, -0.16043025255203247, 0.11346688121557236, 0.06838631629943848, -0.5976675152778625, 0.351334810256958, 0.14801502227783203, 0.1008901596069336, 0.02302619069814682, -0.002579672262072563, 0.20426660776138306, -0.01975393295288086, 0.37224921584129333, 0.14270231127738953, 0.02201829105615616, -0.29190725088119507, -0.4730272889137268, 0.2234356701374054, -0.08154317736625671, -0.19180825352668762, 0.35554444789886475, 0.07989832758903503, -0.17457544803619385, -0.002004532143473625, 0.12946443259716034, 0.9976192712783813, 0.019275248050689697, 0.06158012896776199, 0.03726240620017052, 0.03750593960285187, 0.48529374599456787, -0.20906619727611542, 0.1697215735912323, -0.1455477625131607, -0.3054708242416382, -0.009135862812399864, 0.08848705887794495, 0.10907357931137085, 0.36147844791412354, -0.34290561079978943, 0.13011765480041504, -0.13529866933822632, -0.0035559870302677155, 0.18610459566116333, 0.41396045684814453, -0.2252267301082611, -0.3296193778514862, 0.11036798357963562, 0.2849362790584564, -0.07675911486148834, 0.13672277331352234, -0.15700769424438477, -0.15146061778068542, 0.24977940320968628, -0.13873416185379028, -0.3177471160888672, 0.30294984579086304, -0.15219111740589142, 0.05146576091647148, -0.18333354592323303, -0.15555983781814575, 0.004029193893074989, 0.08385486155748367, -0.02853967249393463, 0.37067338824272156, -0.059584714472293854, 0.32614952325820923, 0.1938680112361908, -0.08596289157867432, 0.18761302530765533, 0.18126195669174194, -0.019573012366890907, -0.22503256797790527, -0.15545442700386047, 0.2766079306602478, -0.06862346827983856, -0.3200136423110962, 0.28299680352211, -0.012767933309078217, 0.1634659767150879, -0.02362815849483013, -0.14789831638336182, 0.2038504183292389, -0.2348926067352295, -0.25483542680740356, 0.24673856794834137, 0.06781626492738724, -0.13830791413784027, 0.18110835552215576, 0.1259157806634903, -0.46070608496665955, -0.13442330062389374, 0.07169117033481598, 0.006430193781852722, -0.19305935502052307, 0.4676649570465088, 0.08285434544086456, -0.281258225440979, -0.4909345805644989, -0.2859949469566345, -0.0720832347869873, -0.18263402581214905, 0.057807985693216324, -0.1800534427165985, -0.29854440689086914, -0.02326337993144989, 0.28474098443984985, 0.25555184483528137, 0.35263732075691223, -0.14141781628131866, -0.2776433229446411, -0.2500106394290924, 0.012628331780433655, 0.1299823373556137, 0.36998438835144043, -0.3843822479248047, -0.08629067242145538, 0.22686167061328888, -0.05782858282327652, -0.5272376537322998, -0.033137157559394836, -0.28896141052246094, -0.0107293501496315, 0.16789516806602478, 0.120398610830307, 0.2582308351993561, 0.05354896932840347, 0.33805954456329346, 0.20563630759716034, -0.22817382216453552, -0.3390587270259857, -0.09398725628852844, 0.05997402220964432, -0.08024626225233078, -0.12708935141563416, 0.11971302330493927, -0.07455369830131531, -0.01898123323917389, -0.030984610319137573, 0.07221280038356781, -0.10410644859075546, 0.002183392643928528, 0.03919265791773796, 0.012661576271057129, 0.044243596494197845, -0.15337884426116943, -0.0031718015670776367, 0.035352010279893875, 0.34948956966400146, -0.018121978268027306, 0.16413314640522003, -0.01215530838817358, -0.22845366597175598, 0.3639374077320099, 0.12460620701313019, 0.23376566171646118, 0.27382200956344604, 0.12392211705446243, -0.03329604119062424, 0.02069801464676857, 0.3670939803123474, 0.22072277963161469, 0.36624905467033386, -0.10285907238721848, -0.26103848218917847, -0.005002770572900772, 0.4400976896286011, -0.32885774970054626, 0.01617879793047905, -0.2891775667667389, -0.325245201587677, 0.020851541310548782, 0.1433267444372177, -0.0680217444896698, -0.06435064226388931, 0.25335294008255005, 0.14469090104103088, 0.11029619723558426, -0.24563555419445038, -0.15038202702999115, 0.1520102173089981, -0.40457114577293396, -0.17267164587974548, 0.1681411862373352, 0.032766204327344894, 0.10561811923980713, 0.4219018816947937, -0.14337027072906494, -0.044884562492370605, 0.24463823437690735, 0.12880420684814453, 0.027574196457862854, -0.2833997309207916, 0.1964491456747055, 0.3089120388031006, 0.14421014487743378, 0.3371701240539551, 0.39360111951828003, 0.07035451382398605, -0.09070149064064026, 0.05524734780192375, -0.09012763202190399, 0.20141233503818512, -0.0882020965218544, 0.004094242118299007, 0.07329144328832626, -0.28112030029296875, -0.31887394189834595, 0.07563917338848114, 0.031759172677993774, -0.007898807525634766, 0.22999092936515808, 0.07406852394342422, -0.0588473379611969, -0.22363607585430145, 0.08966919034719467, -0.18862828612327576, 0.17009630799293518, -0.542543351650238, 0.10000580549240112, 0.25076067447662354, -0.05057825893163681, 0.16968199610710144, 0.16104954481124878, 0.09239639341831207, 0.4489426910877228, 0.009859942831099033, 0.28157350420951843, -0.19571718573570251, -0.14259077608585358, -0.2695979177951813, -0.03893996775150299, 0.23363925516605377, 0.42270949482917786, 0.2957814335823059, 0.2638307809829712, -0.377474844455719, 0.0776897668838501, 0.10526123642921448, 0.27900058031082153, 0.11952947080135345, -0.0799344852566719, 0.26511460542678833, -0.23749002814292908, -0.3021518588066101, 0.03531264513731003, -0.5624819993972778, -0.022098910063505173, 0.10272632539272308, -0.3100273609161377, 0.07211938500404358, -0.11056356877088547, 0.1683189868927002, 0.015315046533942223, 0.5622264742851257, 0.3696047365665436, 0.00855213776230812, -0.07505550235509872, -0.29561847448349, -0.5126028060913086, 0.08874884992837906, -0.002710290253162384, -0.2908157408237457, -0.14434967935085297, 0.42531588673591614, 0.20663291215896606, -0.01423494890332222, -0.006741046905517578, 0.12376563251018524, -0.24326439201831818, -0.142663836479187, -0.22948545217514038, 0.20239414274692535, 0.5671786069869995, 0.16887211799621582, 0.2499849796295166, -0.3373180627822876, 0.24481087923049927, -0.0455763079226017, 0.3174261748790741, -0.2211863100528717, -0.24074752628803253, 0.2409122884273529, 0.03787519782781601, 0.46881648898124695, 0.007842516526579857, 0.07593987882137299, -0.5398910045623779, -0.4396098852157593, -0.027778271585702896, -0.02034888043999672, -0.23512208461761475, 0.22534224390983582, 0.25017210841178894, 0.083762526512146, 0.08457878232002258, 0.2641752064228058, -0.26419252157211304, 0.4486728012561798, -0.020133834332227707, 0.2290777564048767, -0.5200274586677551, -0.01644703932106495, 0.03278997540473938, 0.20114125311374664, -0.15805691480636597, 0.13010036945343018, -0.050329022109508514, -0.30550041794776917, -0.37763679027557373, -0.5161157250404358, 0.4165551960468292, 0.17908553779125214, -0.22599032521247864, 0.12135694175958633, 0.27628660202026367, 0.4282248616218567, 0.2023400217294693, -0.4443497955799103, 0.04837170988321304, 0.2185993194580078, -0.061425209045410156, -0.38346850872039795, 0.061525858938694, -0.014617277309298515, -0.04429583251476288, -0.060612209141254425, 0.3224996328353882, 0.28827396035194397, -0.3513264060020447, -0.0989888459444046, -0.3184874653816223 ]
https://github.com/huggingface/datasets/pull/88
Add wiki40b
Looks good to me. I have not really looked too much into the Beam Datasets yet though - so I think you can merge whenever you think is good for Beam datasets :-)
This one is a beam dataset that downloads files using tensorflow. I tested it on a small config and it works fine
33
text: Add wiki40b This one is a beam dataset that downloads files using tensorflow. I tested it on a small config and it works fine Looks good to me. I have not really looked too much into the Beam Datasets yet though - so I think you can merge whenever you think is good for Beam datasets :-)
[ -0.3746976852416992, -0.3472946882247925, -0.17748448252677917, 0.07704827934503555, 0.04097646102309227, 0.1600710153579712, 0.39157235622406006, 0.3524187505245209, 0.17600607872009277, 0.08648867905139923, -0.36284762620925903, 0.08863760530948639, -0.09294568747282028, 0.4115099310874939, 0.22347219288349152, -0.26732000708580017, 0.23022675514221191, 0.08135899901390076, -0.10015340149402618, 0.014852233231067657, 0.03340151906013489, -0.0009692665189504623, -0.06385786831378937, 0.09499295800924301, 0.0574834905564785, 0.09285050630569458, -0.0025654472410678864, -0.04006536304950714, -0.24200855195522308, 0.1886160522699356, 0.37525686621665955, 0.18799591064453125, -0.08729144930839539, 0.4774819314479828, -0.00009755842620506883, 0.136176198720932, 0.20519764721393585, -0.06298621743917465, 0.1541251391172409, -0.14728204905986786, -0.34538552165031433, -0.13603146374225616, -0.08554282039403915, -0.11971671879291534, 0.0662757009267807, -0.3509848415851593, 0.2859412133693695, 0.03815227746963501, 0.21559494733810425, 0.1831754893064499, 0.31556740403175354, 0.21226905286312103, -0.1987837702035904, -0.043889887630939484, 0.3849679231643677, -0.04810377210378647, -0.02063230238854885, 0.016737693920731544, 0.26110488176345825, 0.2255028337240219, 0.2556109130382538, 0.20264552533626556, -0.281714528799057, -0.27434325218200684, 0.47576138377189636, 0.04235437139868736, 0.04771394655108452, -0.6046525239944458, -0.10752866417169571, 0.49635544419288635, 0.5583670139312744, -0.00412435457110405, 0.09317938983440399, -0.11791164427995682, -0.1135736033320427, 0.16708198189735413, 0.08816498517990112, 0.25188106298446655, -0.002536363899707794, -0.08563771843910217, -0.24992825090885162, 0.018426403403282166, -0.2028007209300995, 0.20568159222602844, -0.20983368158340454, 0.20293378829956055, 0.1493956595659256, 0.1397077590227127, 0.1488565057516098, -0.1805495172739029, 0.2797406315803528, -0.42773088812828064, 0.19933944940567017, 0.0023528817109763622, -0.2939707040786743, -0.2881733775138855, -0.2258736789226532, -0.17065373063087463, -0.09922664612531662, 0.17293338477611542, 0.1447909027338028, 0.16708439588546753, -0.11934544146060944, 0.2406158745288849, -0.023472849279642105, 0.05816580727696419, 0.053108155727386475, -0.16249069571495056, 0.09183454513549805, -0.19021181762218475, -0.031027842313051224, 0.20782116055488586, -0.09444601833820343, -0.17156432569026947, -0.6289735436439514, -0.5115767121315002, -0.16603624820709229, 0.056362081319093704, -0.3220345079898834, 0.0703195258975029, 0.09413126856088638, -0.04772124066948891, 0.06811171770095825, 0.1841074526309967, -0.025081492960453033, 0.1858014464378357, -0.04097013175487518, 0.08923199772834778, 0.012951523065567017, -0.028201807290315628, -0.0528983511030674, 0.35430198907852173, -0.016490761190652847, -0.03625223785638809, 0.01763395220041275, -0.084978848695755, 0.30190375447273254, -0.05422274395823479, 0.04241221398115158, 0.2313341498374939, 0.5028548836708069, 0.10021765530109406, 0.12157909572124481, 0.21248182654380798, 0.06812410056591034, -0.19309262931346893, -0.06532847881317139, 0.013800278306007385, -0.10865993052721024, -0.03585917502641678, -0.3237548768520355, -0.1943681389093399, 0.013001665472984314, 0.35683080554008484, -0.09572019428014755, -0.22001054883003235, -0.16320151090621948, 0.28654247522354126, -0.14550966024398804, -0.18108446896076202, 0.12624268233776093, -0.05282124876976013, -0.12126542627811432, -0.26619911193847656, -0.14876122772693634, -0.1028939038515091, -0.21478570997714996, -0.19410263001918793, -0.05379565432667732, -0.3085707128047943, -0.07152468711137772, 0.0768289715051651, -0.3581618368625641, 0.27616795897483826, -0.11046534776687622, 0.1975211352109909, 0.5859472751617432, -0.583982527256012, -0.10484740138053894, 0.16634264588356018, 0.06857767701148987, -0.0510018989443779, -0.0649830773472786, 0.4417162835597992, 0.13711003959178925, -0.17522040009498596, -0.01571749895811081, 0.14610649645328522, 0.004503902047872543, -0.09777597337961197, -0.05770205333828926, -0.3078373968601227, 0.085868701338768, 0.18798606097698212, 0.1867016851902008, -0.15598580241203308, -0.09672766178846359, 0.09226898103952408, 0.13710644841194153, -0.03593884035944939, 0.008775051683187485, 0.027309151366353035, -0.09333236515522003, -0.11847090721130371, -0.01976151019334793, -0.17512160539627075, -0.2716291546821594, 0.16144782304763794, -0.19436660408973694, 0.0016285218298435211, 0.5889995098114014, -0.0717872828245163, -0.06237001717090607, -0.4006865620613098, 0.025693047791719437, -0.37638625502586365, 0.2293490767478943, 0.18475842475891113, -0.04636029899120331, -0.2560673654079437, -0.40932467579841614, 0.17750027775764465, -0.13657358288764954, 0.000265824724920094, -0.10590492188930511, 0.5125947594642639, 0.08831288665533066, 0.09362994879484177, -0.05703159421682358, -0.18895548582077026, -0.2973622977733612, -0.22989171743392944, 0.18230101466178894, 0.26280930638313293, -0.1888464391231537, 0.4729660153388977, 0.13659344613552094, 0.3747882544994354, 0.2631487250328064, -0.018335066735744476, 0.06495720148086548, -0.2032964825630188, -0.013861204497516155, -0.08845171332359314, -0.3540092408657074, 0.27366018295288086, 0.14616994559764862, 0.0430334098637104, 0.11489802598953247, 0.11190175265073776, -0.09080453962087631, -0.022601472213864326, -0.09967165440320969, 0.02294108271598816, 0.29788094758987427, -0.050696101039648056, 0.12147963047027588, 0.10703273862600327, -0.34355413913726807, 0.19553861021995544, 0.5643195509910583, -0.15909945964813232, -0.11186014860868454, -0.0718361958861351, -0.17539462447166443, -0.00921666994690895, 0.07125183939933777, 0.4571733772754669, 0.46200281381607056, 0.25570571422576904, -0.06863252818584442, 0.16448578238487244, 0.1565735936164856, -0.19747024774551392, 0.27892041206359863, 0.08079766482114792, 0.093028225004673, 0.22348737716674805, 0.04455478861927986, -0.09663824737071991, -0.2763975262641907, 0.10230529308319092, 0.1324252188205719, -0.03555736690759659, 0.2394198775291443, -0.012101699598133564, -0.11190947890281677, -0.26701679825782776, -0.3970133662223816, 0.12807373702526093, -0.18052047491073608, -0.44264644384384155, 0.14516809582710266, 0.005162041634321213, -0.23425914347171783, 0.18608404695987701, 0.12674108147621155, 0.3126334547996521, -0.2273426204919815, -0.11374419182538986, -0.1275807023048401, -0.003130898345261812, 0.03274381160736084, 0.31073346734046936, 0.29089289903640747, 0.015519103035330772, 0.40688371658325195, -0.06886555999517441, 0.1265476793050766, -0.4349938929080963, -0.29719093441963196, 0.33927878737449646, -0.32422882318496704, -0.07588868588209152, 0.1544778198003769, 0.1333734691143036, -0.004925217479467392, -0.5246105194091797, 0.04804736003279686, -0.08042963594198227, -0.20079655945301056, -0.24718815088272095, 0.14512281119823456, -0.2601010203361511, -0.17414900660514832, -0.3654410243034363, -0.2726958394050598, -0.34523943066596985, -0.07411547005176544, 0.09678463637828827, 0.0282585546374321, -0.011414320208132267, 0.02363889291882515, 0.3199927806854248, 0.12423363327980042, -0.0200395118445158, -0.009949781931936741, -0.321674644947052, 0.1651676744222641, -0.3493482172489166, -0.25326573848724365, 0.004759166389703751, 0.09608950465917587, 0.24408923089504242, 0.09744612127542496, -0.4802207946777344, 0.04663587361574173, -0.3275337815284729, 0.0013863705098628998, 0.3203696012496948, -0.2553744912147522, 0.19705557823181152, -0.11599859595298767, -0.1587710976600647, -0.2792853116989136, 0.1492919623851776, 0.10411277413368225, 0.061116818338632584, 0.20275560021400452, 0.11787305772304535, -0.08662445098161697, -0.28672972321510315, 0.6347622871398926, -0.006663878448307514, -0.2053760439157486, -0.0888269692659378, 0.12582775950431824, 0.1298655867576599, -0.12635481357574463, -0.1963057518005371, 0.3981309235095978, 0.04549042135477066, 0.22530795633792877, 0.3636639714241028, 0.0240569356828928, -0.1572292596101761, -0.22888389229774475, -0.01893768087029457, -0.13374914228916168, -0.07979339361190796, -0.14282241463661194, 0.0479903407394886, -0.170576274394989, 0.08445809781551361, -0.04364699497818947, -0.11397980153560638, -0.18013951182365417, 0.11518734693527222, 0.4445992112159729, -0.09371168166399002, -0.0019875287543982267, -0.03743401914834976, 0.17694751918315887, -0.40661758184432983, 0.2104843556880951, -0.041530486196279526, -0.3683505058288574, -0.0744158923625946, -0.2595711648464203, -0.13244681060314178, -0.11165572702884674, 0.7038167119026184, -0.3597641587257385, -0.29369741678237915, 0.02985050529241562, 0.24416199326515198, -0.3301595151424408, -0.17946098744869232, -0.17049595713615417, -0.051765043288469315, 0.19569817185401917, 0.36242052912712097, 0.0024979040026664734, -0.14874693751335144, 0.15285487473011017, 0.02180338278412819, -0.04327477514743805, 0.11720456928014755, 0.12616431713104248, -0.0692577213048935, -0.2144734412431717, -0.4603511691093445, -0.25217390060424805, -0.1457069218158722, -0.17183557152748108, -0.07458431273698807, -0.038507506251335144, 0.062238387763500214, 0.37728214263916016, 0.17331962287425995, 0.010454900562763214, 0.10969934612512589, 0.04009101912379265, -0.22966456413269043, 0.3546857237815857, 0.19221794605255127, 0.3514025807380676, -0.06770902872085571, -0.11688725650310516, 0.2601715326309204, -0.3571108877658844, -0.1395256519317627, 0.07435526698827744, 0.08416811376810074, 0.125410258769989, -0.1812596470117569, 0.049223240464925766, 0.08308448642492294, 0.27665975689888, 0.4280855357646942, 0.11664962023496628, -0.23964866995811462, -0.22264869511127472, 0.30378901958465576, 0.18654678761959076, -0.2299298197031021, 0.4402539134025574, -0.06025764346122742, -0.15741893649101257, -0.03962145000696182, 0.12200945615768433, 0.7705738544464111, -0.04041208326816559, 0.30167412757873535, 0.3607403039932251, -0.2873268723487854, 0.5935292840003967, -0.615165650844574, 0.0017864648252725601, 0.08272303640842438, -0.28595423698425293, -0.16951565444469452, -0.10277051478624344, -0.171828955411911, 0.11387207359075546, -0.4346785247325897, -0.17535331845283508, 0.3510984182357788, 0.40427452325820923, -0.29292866587638855, 0.3384822905063629, 0.046449366956949234, -0.056326720863580704, -0.2551403045654297, 0.2947005331516266, 0.13973437249660492, 0.05128605291247368, -0.25939735770225525, -0.07994591444730759, -0.1494775414466858, 0.2474336177110672, -0.041049372404813766, 0.091105155646801, 0.37062615156173706, 0.4247376322746277, -0.15753129124641418, -0.2344331294298172, -0.027941010892391205, 0.24871864914894104, 0.25404542684555054, -0.25016653537750244, -0.3674602210521698, 0.30231940746307373, -0.051038049161434174, -0.034290485084056854, -0.20253422856330872, -0.5149924159049988, 0.3175245523452759, -0.3338944613933563, -0.1986480951309204, 0.22813159227371216, 0.13874678313732147, -0.1426669955253601, -0.2212214171886444, 0.22602622210979462, 0.08050096035003662, 0.12348484247922897, -0.03343696892261505, 0.45362627506256104, -0.24893906712532043, 0.01289806142449379, 0.20418457686901093, -0.3687583804130554, 0.24911366403102875, -0.17124751210212708, 0.04643511399626732, -0.15520358085632324, -0.08703863620758057, -0.07400453835725784, 0.38837477564811707, -0.3662852346897125, 0.3260754942893982, 0.01116212084889412, -0.14032772183418274, -0.3874160051345825, 0.18121102452278137, 0.0012602556962519884, -0.12104251980781555, 0.12002551555633545, -0.28065481781959534, -0.18786640465259552, 0.10529875755310059, 0.21016718447208405, 0.22758321464061737, 0.07493314146995544, 0.009978622198104858, 0.047419242560863495, -0.28873395919799805, 0.1423480212688446, 0.11672361195087433, 0.5596622228622437, -0.24328884482383728, -0.12243670225143433, 0.2967018187046051, 0.043140262365341187, -0.43488436937332153, 0.2484068125486374, -0.030879588797688484, -0.0887686237692833, 0.14192193746566772, 0.1414593756198883, -0.020552469417452812, -0.0714157223701477, 0.01674068160355091, -0.2025134116411209, -0.4441627860069275, -0.28904128074645996, -0.09724855422973633, 0.07982482761144638, -0.11882222443819046, -0.49226999282836914, 0.2795153856277466, 0.14310616254806519, 0.023732347413897514, 0.003219911828637123, 0.3129616379737854, -0.13111495971679688, 0.04784464091062546, -0.027938086539506912, 0.1306750625371933, 0.1235048919916153, 0.010039538145065308, 0.03881419822573662, 0.23013997077941895, 0.26662755012512207, 0.1876511573791504, -0.1100308895111084, 0.26701784133911133, -0.2517319917678833, 0.10276183485984802, 0.29945340752601624, 0.2756471633911133, -0.005542494356632233, 0.1308358907699585, -0.03385986387729645, -0.0013465359807014465, -0.06733880192041397, 0.12457938492298126, 0.24538759887218475, -0.2675378918647766, 0.07496476918458939, 0.07901205122470856, 0.2824452817440033, -0.13765770196914673, -0.06382602453231812, 0.35801342129707336, 0.1792062371969223, -0.017628714442253113, -0.15246036648750305, 0.16365085542201996, 0.13458307087421417, -0.1535973846912384, 0.19869980216026306, 0.17328137159347534, -0.1890365183353424, 0.4145094156265259, -0.004922226071357727, 0.09530608355998993, 0.013882376253604889, -0.22416234016418457, -0.10645392537117004, 0.16455695033073425, 0.17280814051628113, -0.15606343746185303, 0.3687734603881836, 0.12196805328130722, -0.20292335748672485, 0.5984905958175659, 0.170389324426651, 0.10519549250602722, 0.24093952775001526, -0.4504849314689636, 0.31707486510276794, 0.3572704792022705, 0.13605660200119019, 0.21010755002498627, -0.30336320400238037, -0.32746124267578125, 0.4523538053035736, 0.07156187295913696, -0.16278547048568726, -0.2436295598745346, -0.3913760781288147, -0.05009666830301285, 0.1921955794095993, 0.10461252927780151, -0.19742701947689056, 0.29687148332595825, 0.25759822130203247, -0.047797396779060364, 0.15318703651428223, 0.5060827136039734, 0.0816805511713028, 0.051554493606090546, -0.020763659849762917, -0.1286843866109848, 0.3369898796081543, -0.09862636029720306, 0.3026915192604065, 0.2907194495201111, 0.16627347469329834, 0.08966915309429169, 0.026067346334457397, 0.10840743780136108, 0.08457782864570618, 0.1612396538257599, -0.221934974193573, 0.0475972555577755, 0.17053556442260742, -0.3195396959781647, 0.4743490219116211, 0.2937769293785095, -0.27134057879447937, -0.0008939020335674286, 0.021806538105010986, -0.17295552790164948, -0.7284272313117981, -0.19978997111320496, -0.027277067303657532, 0.06104790419340134, -0.15956589579582214, 0.1852778196334839, -0.42272502183914185, -0.11230640858411789, 0.23357127606868744, 0.1416795402765274, 0.24256303906440735, 0.08580250293016434, 0.15444019436836243, -0.29100900888442993, 0.652108907699585, 0.023696932941675186, 0.3330649435520172, 0.04022665321826935, -0.25805532932281494, -0.2510761618614197, 0.06551586836576462, -0.052051443606615067, 0.12399415671825409, -0.32290002703666687, 0.1889183074235916, 0.0728534460067749, 0.018729636445641518, 0.28848275542259216, -0.06791319698095322, -0.04054196551442146, -0.1284380704164505, -0.3023844361305237, -0.0773295909166336, 0.16099518537521362, -0.04757042974233627, 0.06767232716083527, -0.05872557684779167, 0.023977335542440414, -0.22120943665504456, 0.17548900842666626, 0.09182586520910263, -0.06510188430547714, 0.3287052810192108, -0.22357547283172607, 0.3737090826034546, 0.00451047345995903, 0.3052976131439209, -0.2538573145866394, -0.10672712326049805, -0.09202499687671661, -0.14164985716342926, -0.28971579670906067, -0.020048730075359344, 0.03422670066356659, 0.03995973616838455, -0.26216402649879456, 0.14005140960216522, 0.08003507554531097, 0.06897231191396713, 0.22295968234539032, 0.3073001205921173, -0.14647270739078522, -0.2516914904117584, -0.08838140964508057, 0.09301065653562546, 0.03840712085366249, 0.36481061577796936, -0.0033650510013103485, -0.17526718974113464, -0.13696593046188354, -0.06837819516658783, 0.4506921172142029, -0.19014394283294678, -0.08382244408130646, -0.20435547828674316, -0.11672323942184448, -0.0011518970131874084, 0.4243633449077606, -0.6763601303100586, -0.16564986109733582, 0.26768895983695984, -0.29759669303894043, -0.11275289952754974, 0.06974302977323532, 0.08699136972427368, -0.10972481966018677, -0.08620208501815796, 0.06768802553415298, 0.11700136959552765, -0.39798420667648315, -0.09239761531352997, -0.2147064357995987 ]
https://github.com/huggingface/datasets/pull/80
Add nbytes + nexamples check
Looks good to me! Should we hard code those numbers in the config classes and make sure that when loading a dataset that the numbers match?
### Save size and number of examples Now when you do `save_checksums`, it also create `cached_sizes.txt` right next to the checksum file. This new file stores the bytes sizes and the number of examples of each split that has been prepared and stored in the cache. Example: ``` # Cached sizes: <full_config_name> <num_bytes> <num_examples> hansards/house/1.0.0/test 22906629 122290 hansards/house/1.0.0/train 191459584 947969 hansards/senate/1.0.0/test 5711686 25553 hansards/senate/1.0.0/train 40324278 182135 ``` ### Check processing output If there is a `caches_sizes.txt`, then each time we run `download_and_prepare` it will make sure that the sizes match. You can set `ignore_checksums=True` if you don't want that to happen. ### Fill Dataset Info All the split infos and the checksums are now stored correctly in DatasetInfo after `download_and_prepare` ### Check space on disk before running `download_and_prepare` Check if the space is lower than the sum of the sizes of the files in `checksums.txt` and `cached_files.txt`. This is not ideal though as it considers the files for all configs. TODO: A better way to do it would be to have save the `DatasetInfo` instead of the `checksums.txt` and `cached_sizes.txt`, in order to have one file per dataset config (and therefore consider only the sizes of the files for one config and not all of them). It can also be the occasion to factorize all the `download_and_prepare` verifications. Maybe next PR ?
26
text: Add nbytes + nexamples check ### Save size and number of examples Now when you do `save_checksums`, it also create `cached_sizes.txt` right next to the checksum file. This new file stores the bytes sizes and the number of examples of each split that has been prepared and stored in the cache. Example: ``` # Cached sizes: <full_config_name> <num_bytes> <num_examples> hansards/house/1.0.0/test 22906629 122290 hansards/house/1.0.0/train 191459584 947969 hansards/senate/1.0.0/test 5711686 25553 hansards/senate/1.0.0/train 40324278 182135 ``` ### Check processing output If there is a `caches_sizes.txt`, then each time we run `download_and_prepare` it will make sure that the sizes match. You can set `ignore_checksums=True` if you don't want that to happen. ### Fill Dataset Info All the split infos and the checksums are now stored correctly in DatasetInfo after `download_and_prepare` ### Check space on disk before running `download_and_prepare` Check if the space is lower than the sum of the sizes of the files in `checksums.txt` and `cached_files.txt`. This is not ideal though as it considers the files for all configs. TODO: A better way to do it would be to have save the `DatasetInfo` instead of the `checksums.txt` and `cached_sizes.txt`, in order to have one file per dataset config (and therefore consider only the sizes of the files for one config and not all of them). It can also be the occasion to factorize all the `download_and_prepare` verifications. Maybe next PR ? Looks good to me! Should we hard code those numbers in the config classes and make sure that when loading a dataset that the numbers match?
[ -0.5391586422920227, -0.11989054083824158, -0.143356055021286, 0.395948588848114, 0.00652141310274601, -0.13154521584510803, 0.031587306410074234, 0.3686016798019409, 0.004784734919667244, 0.15922023355960846, -0.05160228908061981, -0.15792316198349, 0.045347195118665695, 0.4606476128101349, 0.137867271900177, 0.19190484285354614, -0.05131905525922775, 0.2449834942817688, -0.0012655407190322876, 0.2923210859298706, -0.3043639063835144, 0.15863917768001556, 0.012970983982086182, -0.42481690645217896, -0.2951371967792511, -0.04250815510749817, -0.26794105768203735, 0.26759395003318787, -0.13246314227581024, -0.35186660289764404, 0.008432110771536827, 0.2782600522041321, 0.06151624768972397, 0.14292295277118683, -0.00010856510925805196, -0.09902406483888626, 0.05738067626953125, -0.24279631674289703, -0.33929014205932617, 0.5443340539932251, -0.4643595814704895, -0.38287410140037537, -0.5849137306213379, -0.4487094283103943, 0.1326291263103485, 0.14595060050487518, -0.09425528347492218, -0.12714852392673492, 0.20016621053218842, 0.18104301393032074, 0.19606618583202362, -0.06716176867485046, 0.11179810762405396, -0.03982507064938545, 0.2804499864578247, 0.22451362013816833, -0.17601951956748962, -0.0947723537683487, -0.003644905984401703, 0.33519405126571655, 0.07450827956199646, 0.226655051112175, 0.11281169950962067, -0.020541001111268997, 0.014935392886400223, 0.05197611078619957, 0.07813741266727448, -0.009149856865406036, 0.02727346681058407, 0.3315899968147278, 0.27226996421813965, -0.2553871273994446, -0.28100812435150146, -0.47936370968818665, -0.08398691564798355, -0.4267807602882385, 0.13616396486759186, -0.0937901958823204, -0.024508468806743622, -0.016563940793275833, -0.2663049101829529, -0.235393688082695, -0.03325238078832626, -0.11346840858459473, 0.09506326913833618, 0.09442253410816193, -0.10463110357522964, -0.035560496151447296, 0.289410799741745, -0.01842895895242691, -0.06725587695837021, -0.096921406686306, -0.2774094045162201, -0.03938331827521324, -0.19354619085788727, -0.3215640187263489, -0.13445979356765747, 0.2639763057231903, 0.45758652687072754, 0.2890487313270569, -0.05919421464204788, 0.09842754155397415, 0.10566286742687225, 0.021965786814689636, -0.020306862890720367, 0.2585773468017578, 0.3895829916000366, 0.272810697555542, -0.031841568648815155, 0.35839584469795227, 0.047491248697042465, 0.10865014046430588, 0.09608429670333862, -0.3698903024196625, 0.0870824009180069, 0.12157987803220749, -0.07752226293087006, -0.3573001027107239, -0.05235734581947327, 0.2641142010688782, 0.28077855706214905, -0.2626786530017853, 0.1720893681049347, 0.33144280314445496, -0.13254964351654053, -0.019270844757556915, -0.09006809443235397, -0.05321114510297775, -0.20921704173088074, -0.19722077250480652, -0.2462058961391449, -0.05315958335995674, -0.2422904223203659, 0.28402066230773926, 0.21954987943172455, 0.07663121819496155, 0.22921612858772278, -0.12612324953079224, 0.21866053342819214, -0.03881395608186722, 0.1830500364303589, -0.2508958876132965, 0.14099743962287903, 0.32975807785987854, -0.2259145826101303, -0.29347461462020874, -0.0505034364759922, 0.014040909707546234, -0.25627702474594116, 0.2009865641593933, -0.08121887594461441, -0.33488428592681885, 0.20259520411491394, 0.25321152806282043, -0.4329547882080078, -0.0780995562672615, 0.30452048778533936, 0.04919899255037308, 0.4009634554386139, -0.2828742563724518, 0.06907090544700623, -0.15538707375526428, -0.19616766273975372, -0.31739088892936707, 0.32146114110946655, 0.38310226798057556, -0.3701237142086029, -0.014741811901330948, -0.18028798699378967, -0.45621541142463684, 0.17588841915130615, -0.033760178834199905, 0.09414449334144592, 0.09860608726739883, -0.3212863802909851, 0.47084009647369385, 0.44560009241104126, 0.03652814403176308, -0.3221767842769623, 0.30490729212760925, 0.18279455602169037, -0.18130247294902802, 0.3053002655506134, 0.10681378841400146, 0.39857953786849976, -0.13646888732910156, 0.07036245614290237, -0.042115405201911926, -0.299631804227829, -0.04282306134700775, -0.2911372780799866, -0.26385530829429626, -0.11703631281852722, 0.23305724561214447, 0.14116451144218445, -0.28256717324256897, 0.07747247070074081, 0.10908018797636032, 0.27278363704681396, -0.1763225793838501, 0.09515789151191711, 0.08326222747564316, 0.16095095872879028, 0.04032886028289795, 0.0883626788854599, -0.2571798264980316, -0.41647252440452576, 0.37855976819992065, -0.17493101954460144, -0.20468103885650635, 0.195123553276062, -0.38773852586746216, -0.2748994529247284, -0.22314059734344482, 0.004483994096517563, -0.25854524970054626, 0.2112126499414444, 0.4145430326461792, 0.06238718703389168, -0.3851696848869324, -0.14414459466934204, 0.23946423828601837, -0.25915318727493286, -0.01756132021546364, -0.1932200789451599, -0.009215308353304863, -0.14403633773326874, -0.07189943641424179, -0.1535549908876419, 0.11487787961959839, 0.0019294396042823792, -0.07974357157945633, 0.07031922042369843, 0.5064053535461426, 0.5099790096282959, -0.2969017028808594, 0.11280983686447144, 0.15220141410827637, 0.08891642838716507, 0.24401432275772095, 0.11879611760377884, -0.1972890943288803, -0.11983240395784378, -0.13097116351127625, -0.06611139327287674, 0.4042033553123474, -0.1548738181591034, -0.04088934510946274, -0.060887034982442856, -0.32639673352241516, 0.1355464905500412, -0.16908298432826996, -0.09984259307384491, -0.3502320349216461, -0.02826457843184471, 0.12387427687644958, 0.03229660913348198, 0.050715088844299316, 0.08272264897823334, 0.12640610337257385, 0.4528650939464569, -0.0706343948841095, -0.1874149739742279, 0.008787751197814941, 0.16188061237335205, 0.021943960338830948, 0.04766128212213516, 0.5724722146987915, 0.5627292394638062, 0.3109303414821625, 0.3100920617580414, 0.14714938402175903, -0.2546330392360687, -0.051002200692892075, 0.27369219064712524, 0.0024152547121047974, 0.13093005120754242, 0.24830469489097595, -0.4713294804096222, -0.13937558233737946, -0.18927150964736938, -0.27621400356292725, 0.1670791506767273, 0.08882205188274384, -0.4281192421913147, -0.06098906695842743, 0.04594025760889053, -0.11183179169893265, -0.2285667061805725, 0.048651691526174545, -0.22571545839309692, -0.2836205065250397, 0.1520088016986847, -0.07545378804206848, -0.1604580581188202, 0.03348386287689209, -0.3063177168369293, 0.43831896781921387, 0.021202625706791878, -0.20730216801166534, 0.12218868732452393, 0.131632462143898, -0.06781367212533951, 0.20142711699008942, 0.35498204827308655, 0.01211213506758213, 0.5770900845527649, -0.3455829322338104, -0.041023723781108856, -0.06436317414045334, -0.38040706515312195, 0.14520803093910217, -0.16603486239910126, 0.06911389529705048, 0.2871055603027344, 0.22255022823810577, 0.04464707523584366, -0.16781921684741974, -0.033745404332876205, 0.0591459721326828, -0.31848955154418945, -0.10515999048948288, 0.15840327739715576, -0.11218146979808807, -0.5139462947845459, -0.4361264407634735, 0.10872562974691391, -0.33789584040641785, 0.18828891217708588, 0.2906821370124817, 0.4352646470069885, 0.013790767639875412, 0.02757132798433304, 0.30245986580848694, -0.19077110290527344, 0.193226158618927, -0.41436854004859924, -0.4374563694000244, 0.23039427399635315, -0.19188939034938812, 0.020398544147610664, 0.11811698973178864, -0.27265942096710205, 0.04140856862068176, 0.24144543707370758, -0.2832312285900116, 0.06671532243490219, -0.3016698360443115, 0.15522503852844238, -0.10375028848648071, 0.3160141110420227, 0.35515621304512024, 0.050868455320596695, -0.14223821461200714, -0.14730140566825867, 0.04741374030709267, 0.24013328552246094, -0.10477194935083389, 0.5994616150856018, -0.3203218877315521, -0.12186349183320999, 0.029396366328001022, 0.2255883514881134, 0.4496578872203827, -0.003810405731201172, 0.037766627967357635, -0.03624524921178818, 0.4264990985393524, 0.04343779385089874, 0.18486908078193665, 0.3867281675338745, 0.01127372682094574, -0.19791199266910553, 0.3115755021572113, 0.08771032094955444, 0.03858737647533417, -0.013983193784952164, 0.039910148829221725, -0.07419732958078384, -0.3122371435165405, 0.3628854751586914, 0.004014439880847931, 0.22005513310432434, -0.3653811812400818, 0.08580527454614639, 0.0299089215695858, 0.05498296022415161, -0.219770610332489, 0.2089594006538391, 0.03494023159146309, -0.020721683278679848, -0.28067290782928467, 0.0947752445936203, -0.06523173302412033, 0.37111061811447144, 0.22241851687431335, -0.010508938692510128, -0.09894955903291702, -0.2695336639881134, -0.14754155278205872, -0.04570085182785988, 0.5662387609481812, -0.3456370532512665, -0.12564653158187866, 0.08682049810886383, 0.06254778057336807, 0.07736506313085556, -0.09794442355632782, -0.29142966866493225, -0.22599221765995026, 0.5209425687789917, 0.2880733609199524, -0.6260125041007996, 0.06599191576242447, 0.09646770358085632, 0.34356456995010376, -0.18829813599586487, -0.2595888376235962, -0.10393419861793518, 0.032871656119823456, -0.5887717008590698, 0.3451015055179596, 0.09982240945100784, -0.009660058654844761, -0.18849575519561768, -0.09199193120002747, 0.030932528898119926, -0.09921451658010483, 0.37267035245895386, 0.15060032904148102, 0.5163080096244812, 0.08418005704879761, 0.17205430567264557, -0.036082878708839417, -0.04418475180864334, 0.41991373896598816, 0.4319096505641937, -0.24759501218795776, 0.1707119345664978, 0.05459423363208771, -0.24378326535224915, 0.17520073056221008, 0.3264480233192444, 0.04463093727827072, -0.3326595425605774, 0.13808944821357727, 0.2767096757888794, -0.21193531155586243, 0.0554647296667099, -0.11697401106357574, 0.010037192143499851, -0.0990205854177475, -0.46035587787628174, 0.13960672914981842, 0.10665999352931976, 0.06759226322174072, 0.22884370386600494, 0.1480499804019928, -0.2700518071651459, 0.0860176533460617, 0.3094695508480072, 1.0007742643356323, 0.10648889094591141, 0.08068147301673889, 0.18793344497680664, 0.014251068234443665, 0.24419556558132172, -0.21323084831237793, 0.031971629709005356, -0.29616373777389526, -0.3746301531791687, -0.0049686916172504425, -0.13806310296058655, 0.3997817933559418, -0.010469518601894379, -0.5936437845230103, 0.15051709115505219, -0.11595320701599121, -0.1538281887769699, -0.19397392868995667, 0.023728542029857635, -0.4512227773666382, -0.09892010688781738, 0.2229343056678772, 0.19678498804569244, 0.012436490505933762, -0.07195822894573212, -0.22208064794540405, 0.016429679468274117, -0.11017125844955444, -0.025537684559822083, -0.21385517716407776, -0.058922212570905685, 0.0229979045689106, 0.013975840061903, -0.0804213285446167, 0.4790218472480774, -0.2574157118797302, 0.19745369255542755, 0.3758612871170044, 0.3742341995239258, -0.1621551215648651, 0.06563170254230499, 0.18688040971755981, 0.1340678185224533, 0.11001080274581909, -0.33178532123565674, 0.3644247055053711, -0.13932397961616516, -0.24367231130599976, -0.3067440986633301, -0.07470095902681351, -0.027938367798924446, 0.07511565089225769, -0.20172448456287384, -0.1013384461402893, -0.5383182168006897, 0.04098875820636749, 0.14411205053329468, -0.33457151055336, 0.06251850724220276, 0.17585651576519012, 0.157335564494133, -0.28274038434028625, 0.46884772181510925, -0.07719701528549194, -0.05273199453949928, -0.15943960845470428, 0.02199375629425049, 0.07107141613960266, 0.03422166407108307, -0.004627443850040436, -0.24882464110851288, -0.24996988475322723, -0.336715966463089, 0.05201774090528488, -0.3420950472354889, 0.10155462473630905, -0.07245247811079025, -0.13790491223335266, -0.24183911085128784, 0.0143847381696105, 0.08148574084043503, 0.4914346933364868, 0.3114597499370575, 0.18017925322055817, -0.31662094593048096, -0.3946670889854431, 0.05487069487571716, -0.08496114611625671, 0.7414741516113281, -0.17949402332305908, 0.08378301560878754, -0.06348107010126114, 0.35883256793022156, -0.4122805893421173, -0.16423411667346954, -0.2167452871799469, 0.14536750316619873, -0.08013836294412613, 0.03267970681190491, -0.02155722677707672, -0.13693839311599731, 0.12779267132282257, 0.33329319953918457, -0.4619259238243103, -0.1969015896320343, -0.07561764121055603, 0.11443274468183517, -0.11241710931062698, 0.05268131196498871, 0.09958101809024811, 0.037670738995075226, -0.16517168283462524, -0.15549087524414062, 0.0774570107460022, -0.18768441677093506, -0.04186583310365677, 0.21424096822738647, 0.4592556059360504, 0.060943786054849625, -0.1464262753725052, 0.13275212049484253, 0.01509907841682434, 0.14570817351341248, -0.17735102772712708, 0.3413674533367157, -0.4940647482872009, -0.23598289489746094, 0.16558745503425598, 0.3441244661808014, 0.1930442750453949, 0.06951224058866501, 0.08306916803121567, 0.1046847254037857, -0.08845876902341843, 0.11413644999265671, 0.4624040126800537, 0.47993773221969604, 0.017727116122841835, -0.06134568899869919, 0.09994341433048248, 0.29512035846710205, -0.1480361521244049, 0.0669284388422966, 0.11819715797901154, -0.0989818125963211, 0.07302506268024445, 0.3934558033943176, 0.1988498568534851, -0.17872267961502075, 0.07926671206951141, 0.09785817563533783, -0.24172261357307434, -0.036839380860328674, 0.21174350380897522, 0.5642806887626648, -0.22022634744644165, 0.040618088096380234, 0.2585996687412262, -0.22275188565254211, 0.14503347873687744, 0.2585698962211609, -0.0911196693778038, 0.46812593936920166, -0.19804850220680237, 0.24834132194519043, -0.14090076088905334, -0.35847920179367065, 0.48586809635162354, 0.21059471368789673, -0.03488980233669281, -0.07038644701242447, 0.2312074601650238, 0.14823541045188904, 0.026011617854237556, -0.0661238580942154, -0.25993016362190247, 0.10837233066558838, -0.2869076430797577, 0.08263453841209412, -0.12350977212190628, -0.24959072470664978, -0.2289528101682663, -0.18562090396881104, 0.07414054870605469, -0.08213330805301666, 0.3351546823978424, 0.18054482340812683, 0.07930782437324524, 0.012150407768785954, 0.17317888140678406, 0.035880692303180695, 0.050244975835084915, -0.6386613845825195, 0.13709354400634766, 0.2098468542098999, -0.10591138899326324, 0.1771414875984192, 0.1138576790690422, 0.32291457056999207, 0.21411573886871338, 0.11075344681739807, 0.049858208745718, 0.26371365785598755, 0.2342895120382309, -0.2933945059776306, -0.07202288508415222, 0.13482509553432465, -0.10299806296825409, 0.5524960160255432, 0.15113580226898193, -0.1661691963672638, -0.1493399292230606, -0.16504782438278198, -0.3699547350406647, 0.13326983153820038, 0.47986194491386414, 0.4418615400791168, 0.05079083889722824, 0.011339247226715088, 0.002784028649330139, -0.4841081500053406, -0.21700634062290192, 0.337270051240921, -0.1783067137002945, 0.29221051931381226, 0.144839346408844, 0.10232090950012207, -0.13037854433059692, 0.3490869700908661, -0.06833064556121826, -0.2874414026737213, -0.252190500497818, -0.10218460857868195, -0.6084986329078674, -0.02970939129590988, 0.03809889033436775, -0.1908232718706131, 0.15010225772857666, 0.30353444814682007, 0.023019596934318542, 0.08582592010498047, 0.16897715628147125, -0.20206047594547272, 0.29320329427719116, 0.025815077126026154, -0.4754351079463959, -0.06543712317943573, -0.053472504019737244, -0.13089287281036377, 0.2644716501235962, -0.3970782160758972, 0.21559682488441467, -0.16044822335243225, 0.1302063763141632, 0.2830466032028198, -0.023002739995718002, 0.36930689215660095, 0.09920313954353333, 0.14101898670196533, -0.024771692231297493, 0.5711178183555603, -0.25708019733428955, -0.003084655851125717, -0.06449969112873077, 0.25970542430877686, -0.11291976273059845, 0.11335279047489166, 0.22670432925224304, 0.23723310232162476, -0.3105114996433258, 0.11703301966190338, -0.3015953302383423, 0.2016485333442688, 0.15587575733661652, -0.1893724501132965, 0.03970558941364288, 0.005453281104564667, 0.03980982303619385, 0.2175448089838028, 0.22973056137561798, 0.3917655944824219, -0.14293570816516876, 0.06856950372457504, -0.09516377002000809, -0.34275349974632263, 0.5698301792144775, 0.6153606176376343, -0.0788293182849884, -0.25224068760871887, 0.3548904359340668, 0.24092349410057068, 0.0828317403793335, -0.5837468504905701, 0.09051909297704697, 0.3164304494857788, -0.20648521184921265, -0.16928234696388245, 0.26136383414268494, -0.02093987911939621, -0.1388702094554901, -0.060492243617773056, 0.2827196717262268, -0.035715483129024506, -0.1482422798871994, -0.17689253389835358, -0.3798758387565613 ]
https://github.com/huggingface/datasets/pull/75
WIP adding metrics
It's all about my metric stuff so I'll probably merge it unless you want to have a look. Took the occasion to remove the old doc and requirements.txt
Adding the following metrics as identified by @mariamabarham: 1. BLEU: BiLingual Evaluation Understudy: https://github.com/tensorflow/nmt/blob/master/nmt/scripts/bleu.py, https://github.com/chakki-works/sumeval/blob/master/sumeval/metrics/bleu.py (multilingual) 2. GLEU: Google-BLEU: https://github.com/cnap/gec-ranking/blob/master/scripts/compute_gleu 3. Sacrebleu: https://pypi.org/project/sacrebleu/1.4.8/ (pypi package), https://github.com/mjpost/sacrebleu (github implementation) 4. ROUGE: Recall-Oriented Understudy for Gisting Evaluation: https://github.com/google-research/google-research/tree/master/rouge, https://github.com/chakki-works/sumeval/blob/master/sumeval/metrics/rouge.py (multilingual) 5. Seqeval: https://github.com/chakki-works/seqeval (github implementation), https://pypi.org/project/seqeval/0.0.12/ (pypi package) 6. Coval: coreference evaluation package for the CoNLL and ARRAU datasets https://github.com/ns-moosavi/coval 7. SQuAD v1 evaluation script 8. SQuAD V2 evaluation script: https://worksheets.codalab.org/rest/bundles/0x6b567e1cf2e041ec80d7098f031c5c9e/contents/blob/ 9. GLUE 10. XNLI Not now: 1. Perplexity: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/perplexity.py 2. Spearman: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/spearman_correlation.py 3. F1_measure: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/f1_measure.py 4. Pearson_corelation: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/pearson_correlation.py 5. AUC: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/auc.py 6. Entropy: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/entropy.py
28
text: WIP adding metrics Adding the following metrics as identified by @mariamabarham: 1. BLEU: BiLingual Evaluation Understudy: https://github.com/tensorflow/nmt/blob/master/nmt/scripts/bleu.py, https://github.com/chakki-works/sumeval/blob/master/sumeval/metrics/bleu.py (multilingual) 2. GLEU: Google-BLEU: https://github.com/cnap/gec-ranking/blob/master/scripts/compute_gleu 3. Sacrebleu: https://pypi.org/project/sacrebleu/1.4.8/ (pypi package), https://github.com/mjpost/sacrebleu (github implementation) 4. ROUGE: Recall-Oriented Understudy for Gisting Evaluation: https://github.com/google-research/google-research/tree/master/rouge, https://github.com/chakki-works/sumeval/blob/master/sumeval/metrics/rouge.py (multilingual) 5. Seqeval: https://github.com/chakki-works/seqeval (github implementation), https://pypi.org/project/seqeval/0.0.12/ (pypi package) 6. Coval: coreference evaluation package for the CoNLL and ARRAU datasets https://github.com/ns-moosavi/coval 7. SQuAD v1 evaluation script 8. SQuAD V2 evaluation script: https://worksheets.codalab.org/rest/bundles/0x6b567e1cf2e041ec80d7098f031c5c9e/contents/blob/ 9. GLUE 10. XNLI Not now: 1. Perplexity: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/perplexity.py 2. Spearman: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/spearman_correlation.py 3. F1_measure: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/f1_measure.py 4. Pearson_corelation: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/pearson_correlation.py 5. AUC: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/auc.py 6. Entropy: https://github.com/allenai/allennlp/blob/master/allennlp/training/metrics/entropy.py It's all about my metric stuff so I'll probably merge it unless you want to have a look. Took the occasion to remove the old doc and requirements.txt
[ -0.30471667647361755, -0.058408141136169434, -0.251827597618103, -0.12286265194416046, 0.06295815110206604, -0.08480704575777054, 0.17470625042915344, 0.3181684911251068, -0.07316841930150986, 0.28136420249938965, -0.24129219353199005, 0.22017547488212585, 0.2808045446872711, 0.034175507724285126, 0.12623201310634613, -0.043149322271347046, -0.06206078082323074, 0.06956249475479126, 0.07561177760362625, -0.23315413296222687, -0.4542541801929474, 0.16254128515720367, -0.23246869444847107, 0.023713916540145874, -0.13358625769615173, -0.19288626313209534, -0.03482208400964737, -0.03699702024459839, -0.3274163007736206, -0.436097115278244, -0.07881604135036469, 0.14121045172214508, -0.20842015743255615, 0.07498683780431747, -0.00010296355321770534, -0.21047501266002655, 0.2226327508687973, -0.046862997114658356, -0.1471671760082245, -0.1754036694765091, -0.09018692374229431, -0.3151942193508148, 0.027744820341467857, -0.3044276535511017, -0.08802225440740585, -0.04559221863746643, 0.05998404324054718, 0.05505399405956268, 0.18346133828163147, 0.3587079644203186, 0.2909313440322876, 0.2536349892616272, -0.06100119277834892, -0.19538810849189758, 0.07739721238613129, -0.3676035404205322, -0.21042941510677338, 0.2183944582939148, 0.4367290437221527, -0.12255915999412537, -0.1676298975944519, 0.22333981096744537, 0.25031778216362, -0.00607379712164402, -0.006058067083358765, 0.05705378204584122, 0.36926591396331787, -0.2210540771484375, -0.0566520094871521, 0.17421376705169678, 0.19095560908317566, -0.11192338913679123, -0.28248757123947144, 0.13926923274993896, 0.029133398085832596, -0.38271477818489075, -0.08687999099493027, -0.038204774260520935, 0.028221935033798218, -0.1414598673582077, -0.0942312628030777, 0.1528092920780182, -0.2204485535621643, 0.03653991222381592, -0.1584717333316803, 0.609545111656189, 0.008623935282230377, -0.1934671401977539, 0.18507495522499084, 0.0933067575097084, -0.34428074955940247, -0.01164022833108902, 0.12124878168106079, 0.09037148207426071, -0.27284035086631775, -0.21278484165668488, 0.2919737696647644, -0.3025898337364197, 0.11797008663415909, 0.023806530982255936, 0.05616869032382965, 0.16824007034301758, -0.09461834281682968, 0.19816914200782776, -0.2148446887731552, 0.6139960289001465, 0.2684561014175415, -0.01647251844406128, 0.19084802269935608, 0.2406688779592514, 0.1953175812959671, 0.046041980385780334, 0.00392899289727211, -0.1928742676973343, -0.2756385803222656, 0.24779939651489258, -0.26953768730163574, -0.09062081575393677, -0.592970609664917, 0.06896794587373734, -0.09476719051599503, -0.2858096659183502, 0.006044100970029831, 0.36119017004966736, -0.09881037473678589, 0.08881230652332306, 0.1148369312286377, 0.2662559151649475, -0.28837472200393677, 0.005394342355430126, -0.3191416263580322, 0.3235495984554291, -0.33568915724754333, -0.05322049558162689, 0.30068421363830566, 0.031607095152139664, 0.36180350184440613, -0.06687021255493164, 0.1576453447341919, -0.20605815947055817, 0.2089938372373581, -0.0773525983095169, 0.16784174740314484, -0.09850150346755981, -0.0962381660938263, -0.18009619414806366, 0.05262749642133713, -0.22808681428432465, -0.08386734127998352, -0.01901724934577942, -0.24842634797096252, 0.010541584342718124, 0.09406670182943344, 0.394126832485199, -0.06786580383777618, -0.2456202208995819, 0.12359347939491272, 0.4378955364227295, -0.14589980244636536, -0.054512474685907364, 0.144337996840477, -0.006606981158256531, -0.16796433925628662, -0.07824146747589111, 0.24030080437660217, 0.09731420874595642, -0.415410578250885, -0.37630921602249146, 0.21714083850383759, -0.20185363292694092, 0.14419692754745483, 0.2516756057739258, 0.004885595757514238, 0.22613734006881714, -0.014080427587032318, 0.3148728609085083, 0.4798513650894165, -0.4515089988708496, -0.18481282889842987, -0.16314277052879333, -0.15790769457817078, -0.15896746516227722, 0.00878441333770752, -0.009052922949194908, 0.2977204918861389, 0.06806246936321259, 0.19132941961288452, 0.0210761446505785, 0.09523362666368484, -0.25105398893356323, -0.3308262825012207, -0.23926247656345367, -0.026747077703475952, 0.16097521781921387, 0.42241472005844116, -0.1217954084277153, 0.14412149786949158, -0.15038177371025085, 0.12499532103538513, -0.19245584309101105, 0.03193781524896622, -0.023434698581695557, 0.311039537191391, -0.2561984658241272, 0.2228567749261856, -0.13053536415100098, -0.07794929295778275, 0.06786064058542252, -0.3259476125240326, 0.27859410643577576, 0.328504741191864, -0.12319738417863846, -0.1500428318977356, -0.17915795743465424, -0.06171053275465965, -0.27217897772789, 0.3188171684741974, 0.03150654956698418, -0.146565780043602, -0.02157750353217125, -0.2680307924747467, -0.10991591960191727, -0.38190704584121704, 0.0012552122352644801, 0.07101533561944962, 0.11622157692909241, -0.28783708810806274, -0.06639795005321503, 0.046476930379867554, 0.46834152936935425, 0.06490004062652588, -0.12362877279520035, 0.04694627970457077, 0.055240336805582047, -0.028890425339341164, 0.3666228652000427, 0.36182358860969543, 0.17161017656326294, 0.21340122818946838, -0.04070449620485306, -0.03890383243560791, -0.13393767178058624, 0.036954499781131744, -0.30710113048553467, 0.13086475431919098, 0.4760599732398987, 0.27137768268585205, 0.22038204967975616, 0.2629590630531311, -0.16301847994327545, 0.09835964441299438, -0.22425298392772675, -0.031191863119602203, -0.11822319030761719, 0.35988086462020874, 0.16253603994846344, 0.11801692843437195, -0.19568370282649994, -0.09736566990613937, 0.14037880301475525, 0.572119951248169, -0.04207013547420502, 0.16771745681762695, 0.1229114979505539, 0.16203385591506958, -0.24753987789154053, -0.07749680429697037, -0.1907898187637329, 0.26529377698898315, 0.32275253534317017, 0.3205254375934601, 0.09982670098543167, -0.06641381233930588, -0.22654622793197632, 0.03862101584672928, 0.17169922590255737, -0.2197611927986145, 0.49571695923805237, 0.1390126347541809, 0.07638504356145859, -0.1696208119392395, -0.11260718107223511, -0.04516661912202835, 0.07269041240215302, -0.10331706702709198, -0.040207356214523315, -0.11853101849555969, 0.06753397732973099, 0.07987089455127716, 0.057123586535453796, 0.01626681536436081, -0.4001750648021698, 0.39768773317337036, -0.14301688969135284, -0.08734382688999176, 0.4675069749355316, 0.20532211661338806, 0.5172263979911804, -0.3621584177017212, 0.1463966816663742, -0.3018834590911865, -0.34975892305374146, -0.12746161222457886, 0.32816576957702637, -0.03312503546476364, 0.047815799713134766, 0.4642501771450043, -0.1186908707022667, -0.02404254674911499, -0.055882491171360016, -0.6382128000259399, 0.0850132554769516, -0.04048240929841995, 0.011540006846189499, -0.058602482080459595, -0.1528186798095703, -0.19419682025909424, -0.20444032549858093, 0.130107581615448, -0.27222880721092224, -0.2985052466392517, -0.2402142584323883, -0.3266679048538208, -0.15191183984279633, -0.24422724545001984, -0.7157778143882751, -0.11566068977117538, -0.43820783495903015, 0.3406820297241211, 0.060013506561517715, 0.1058664321899414, -0.012675701640546322, -0.045920565724372864, 0.35573309659957886, 0.19162514805793762, 0.09337154775857925, -0.31985825300216675, -0.0010545328259468079, 0.1794407069683075, -0.26982855796813965, -0.25007060170173645, -0.009504500776529312, -0.16727285087108612, 0.5801372528076172, -0.059787601232528687, -0.22803537547588348, -0.5838437080383301, 0.13831409811973572, 0.11978064477443695, 0.06717438250780106, 0.06398127973079681, 0.32016390562057495, -0.08838847279548645, -0.3164867162704468, -0.13931074738502502, -0.16941948235034943, 0.09568487852811813, 0.23021090030670166, 0.12544485926628113, -0.32993608713150024, 0.20161116123199463, 0.10619482398033142, 0.8864545822143555, 0.2343212366104126, 0.03481150418519974, 0.10798320919275284, 0.13424770534038544, 0.08777910470962524, -0.056334175169467926, -0.003890249878168106, 0.404785692691803, 0.13976986706256866, 0.06450633704662323, 0.30986136198043823, -0.060631997883319855, -0.293742835521698, -0.17972852289676666, 0.09167811274528503, -0.22163331508636475, 0.059780459851026535, 0.0783831998705864, 0.3049769997596741, 0.17582064867019653, -0.01584528386592865, 0.024378761649131775, -0.17365455627441406, 0.019984634593129158, 0.154411181807518, 0.2037132829427719, 0.04970488324761391, -0.15899942815303802, -0.1458723545074463, -0.0277389045804739, -0.4146527349948883, 0.3816961646080017, 0.1829078495502472, -0.10379113256931305, -0.2372967153787613, 0.023773062974214554, 0.15358516573905945, -0.19994105398654938, 0.008541740477085114, -0.37555256485939026, -0.19490396976470947, 0.35187309980392456, -0.08453811705112457, -0.034380197525024414, 0.04742563143372536, -0.4956416189670563, -0.490070641040802, 0.6151599884033203, 0.32412561774253845, -0.26551976799964905, -0.14522169530391693, 0.3248786926269531, -0.1308022439479828, 0.01820569857954979, 0.052872929722070694, -0.16815273463726044, -0.2989652752876282, -0.1416996270418167, 0.18148308992385864, -0.07114147394895554, -0.002749335253611207, -0.07641030848026276, -0.06861969828605652, 0.20889565348625183, -0.010543148964643478, 0.12780702114105225, 0.12501060962677002, -0.17886847257614136, -0.014204489067196846, -0.06588966399431229, 0.2050732523202896, -0.18802133202552795, 0.18216076493263245, 0.20713123679161072, -0.12658382952213287, -0.17983517050743103, 0.19617760181427002, -0.09013065695762634, 0.381100058555603, 0.24831745028495789, 0.04886499047279358, 0.08437487483024597, -0.2192891538143158, 0.20985712110996246, -0.1956528276205063, 0.28065457940101624, 0.39857763051986694, 0.355143278837204, 0.017437634989619255, -0.060226090252399445, 0.29164788126945496, 0.03468649089336395, -0.243072047829628, 0.3473810851573944, -0.05417513847351074, -0.22326631844043732, 0.02225884236395359, 0.31352367997169495, 1.016634225845337, 0.10772645473480225, -0.15169118344783783, 0.4189322590827942, -0.19643038511276245, 0.11698892712593079, -0.5825787782669067, 0.2905225157737732, -0.31275615096092224, -0.0634596049785614, -0.024509450420737267, -0.10430656373500824, 0.08579131215810776, -0.07086901366710663, -0.30382975935935974, 0.162257120013237, 0.061735257506370544, 0.14555461704730988, 0.18831124901771545, 0.32117989659309387, 0.027931921184062958, -0.12752260267734528, 0.30282267928123474, 0.2609383165836334, 0.009324878454208374, 0.09181797504425049, -0.2658105194568634, 0.07996973395347595, -0.013897441327571869, -0.007454518228769302, -0.1269836127758026, 0.14500194787979126, -0.3681071102619171, 0.14899225533008575, -0.11069077253341675, -0.14892493188381195, 0.16581471264362335, 0.12615132331848145, 0.3620138168334961, -0.1288367509841919, -0.05819588899612427, 0.326355904340744, -0.2182997167110443, 0.12326567620038986, 0.21765892207622528, 0.08058002591133118, 0.16509214043617249, -0.373918741941452, -0.22868141531944275, 0.0878845751285553, 0.09814002364873886, -0.06732922792434692, -0.2846193313598633, 0.09375493228435516, -0.08306683599948883, -0.029197022318840027, 0.40740519762039185, 0.3018588423728943, -0.3182339370250702, -0.22005920112133026, 0.2704865336418152, -0.039140768349170685, -0.18291640281677246, 0.27012357115745544, 0.07803142815828323, -0.3263184130191803, -0.10671877861022949, 0.15819770097732544, 0.06986559927463531, -0.1700216829776764, 0.2885330617427826, -0.14759057760238647, -0.34616756439208984, -0.44670939445495605, -0.45074135065078735, 0.052979640662670135, -0.0849892795085907, 0.04086194932460785, 0.15705108642578125, -0.2851595878601074, -0.017278697341680527, 0.539265513420105, 0.23707537353038788, 0.160453662276268, -0.25084155797958374, -0.16272690892219543, -0.13311441242694855, 0.2118740677833557, -0.0782356709241867, 0.3004908561706543, -0.3614019453525543, 0.235040545463562, -0.00021825917065143585, 0.33902937173843384, -0.4986523389816284, 0.07700347900390625, -0.34303563833236694, 0.15453054010868073, -0.09630529582500458, -0.3522742986679077, 0.1315700262784958, 0.23807618021965027, 0.20356599986553192, 0.04271867126226425, -0.4158579707145691, -0.3505653738975525, -0.16256657242774963, 0.06552498787641525, -0.06501409411430359, 0.0764055997133255, 0.1892920285463333, 0.330432653427124, -0.11596283316612244, -0.05978349596261978, 0.1441839039325714, -0.06917130947113037, -0.010455206036567688, 0.4998134970664978, -0.22151891887187958, 0.2159511148929596, 0.278795063495636, -0.08429909497499466, 0.3447423279285431, 0.2421804517507553, -0.08088715374469757, 0.060360826551914215, 0.0029823980294167995, -0.07219469547271729, 0.16666081547737122, 0.316022664308548, 0.15253549814224243, 0.25242000818252563, 0.0685102790594101, 0.019154325127601624, 0.00743657723069191, -0.17415015399456024, 0.06779323518276215, 0.10179860889911652, 0.00483434135094285, -0.03324516490101814, -0.06736524403095245, 0.40101975202560425, -0.18551893532276154, 0.01893814466893673, 0.09666243195533752, 0.1596967577934265, 0.3458468019962311, 0.10412124544382095, 0.3198567032814026, -0.13094796240329742, 0.49806880950927734, -0.06577739119529724, 0.04794953390955925, -0.349001407623291, 0.2432001680135727, -0.19799911975860596, -0.000859435647726059, 0.02079373598098755, 0.27397945523262024, 0.016953904181718826, 0.0881848856806755, -0.34375542402267456, 0.055125847458839417, 0.42680490016937256, -0.06203656643629074, 0.35492148995399475, 0.22066468000411987, 0.030954699963331223, -0.05585319176316261, 0.16695049405097961, -0.24388331174850464, 0.20309984683990479, 0.051283203065395355, 0.29375705122947693, -0.044800642877817154, -0.14532771706581116, -0.17576918005943298, -0.03722815588116646, -0.25268107652664185, -0.01495405100286007, -0.36395788192749023, -0.30566757917404175, -0.13980209827423096, -0.06938961148262024, 0.2330995500087738, 0.10608214139938354, 0.14900726079940796, -0.09020842611789703, -0.10980312526226044, 0.08034218102693558, -0.16432654857635498, 0.013497507199645042, 0.4319639503955841, -0.15593411028385162, 0.1986715942621231, 0.19451552629470825, 0.08285671472549438, -0.12408001720905304, 0.4784323275089264, 0.3369491398334503, -0.013289857655763626, -0.12888561189174652, 0.06271756440401077, -0.07710832357406616, -0.14215905964374542, -0.12638340890407562, 0.37168994545936584, 0.3356192111968994, -0.3573421239852905, 0.13441908359527588, 0.2799278497695923, -0.33460158109664917, 0.09250292927026749, 0.06251591444015503, -0.2326280176639557, -0.14575757086277008, 0.20970359444618225, 0.1190439835190773, -0.24288278818130493, -0.1155795007944107, -0.14608818292617798, -0.2961857318878174, 0.013793743215501308, 0.030208803713321686, -0.0755818635225296, 0.10958797484636307, 0.02415582537651062, 0.1624860018491745, -0.1097806841135025, 0.22369104623794556, 0.27742519974708557, -0.044162943959236145, -0.36950623989105225, -0.19951900839805603, -0.23307257890701294, 0.18363016843795776, 0.2346676141023636, 0.011982524767518044, -0.12822692096233368, 0.21456755697727203, -0.028345197439193726, 0.08940470218658447, 0.2760748863220215, -0.09681334346532822, 0.05825235694646835, -0.12573328614234924, -0.5548900365829468, 0.24279622733592987, 0.1165083795785904, -0.036722950637340546, 0.057290658354759216, -0.07440908998250961, -0.17497800290584564, -0.3070899248123169, 0.1833457052707672, -0.050524674355983734, 0.001454867422580719, 0.2390931248664856, 0.1673734188079834, 0.2538372278213501, 0.0831165537238121, 0.4743461012840271, -0.21184605360031128, 0.06899707764387131, 0.09626501798629761, -0.1747685968875885, -0.11862431466579437, 0.01631024107336998, -0.007556147873401642, 0.21798467636108398, 0.0917896032333374, -0.1657867729663849, -0.0017750879051163793, 0.3870776891708374, 0.07599159330129623, -0.08753616362810135, -0.08874959498643875, 0.06574487686157227, 0.09642211347818375, -0.05027148500084877, 0.018082261085510254, 0.5017603635787964, 0.18021540343761444, -0.0728088915348053, -0.3404836654663086, -0.36297813057899475, 0.20149676501750946, -0.08892374485731125, -0.13587698340415955, -0.19005005061626434, 0.35689160227775574, 0.3418463468551636, 0.18434101343154907, -0.4771362841129303, -0.09779909998178482, 0.3762953579425812, 0.08467228710651398, -0.2708761394023895, 0.3765468895435333, 0.00502350926399231, -0.11714088916778564, -0.13193276524543762, -0.2037883698940277, 0.15223915874958038, -0.12808704376220703, -0.13337834179401398, -0.4686487317085266 ]
https://github.com/huggingface/datasets/pull/73
JSON script
The tests for the Wikipedia dataset do not pass anymore with the error: ``` To be able to use this dataset, you need to install the following dependencies ['mwparserfromhell'] using 'pip install mwparserfromhell' for instance' ```
Add a JSONS script to read JSON datasets from files.
36
text: JSON script Add a JSONS script to read JSON datasets from files. The tests for the Wikipedia dataset do not pass anymore with the error: ``` To be able to use this dataset, you need to install the following dependencies ['mwparserfromhell'] using 'pip install mwparserfromhell' for instance' ```
[ -0.16205935180187225, 0.12840670347213745, -0.2683258354663849, 0.01771334558725357, -0.009389039129018784, 0.15072470903396606, 0.165333554148674, 0.4678298532962799, 0.4850872755050659, 0.13650938868522644, 0.5339900851249695, 0.27261194586753845, 0.0794469341635704, -0.12305209040641785, -0.01841079443693161, -0.028216369450092316, 0.04456213861703873, 0.2577661871910095, -0.07474613189697266, -0.03771665692329407, -0.27829599380493164, 0.20630306005477905, -0.2349713146686554, -0.09087669849395752, 0.1093975380063057, -0.04488058388233185, 0.17131304740905762, -0.07144594937562943, -0.151698037981987, -0.6218899488449097, 0.015187935903668404, 0.079109787940979, -0.054469745606184006, 0.2419510781764984, -0.00010590090823825449, -0.027589693665504456, 0.5463215112686157, -0.0739326924085617, -0.2843908667564392, -0.3407978415489197, -0.4361109435558319, -0.21611538529396057, 0.20590294897556305, -0.32497140765190125, 0.08241055905818939, -0.035840343683958054, 0.14137785136699677, -0.3358183801174164, 0.4392395615577698, 0.3876633942127228, 0.2631586492061615, -0.014894231222569942, 0.21500886976718903, -0.01563126966357231, 0.40404561161994934, 0.3943614959716797, 0.006549810990691185, 0.06332249939441681, 0.33269554376602173, -0.06021706014871597, 0.21544669568538666, 0.33091601729393005, -0.23029553890228271, 0.15841394662857056, 0.09779985249042511, -0.20988184213638306, 0.10296473652124405, -0.21051622927188873, 0.1399780511856079, 0.08281989395618439, 0.8045938611030579, -0.09604348987340927, -0.028199831023812294, 0.05450553447008133, -0.1671297401189804, 0.10603007674217224, 0.18377132713794708, 0.24350187182426453, -0.14726318418979645, -0.005843374878168106, 0.02304878458380699, -0.32973340153694153, -0.1573353409767151, 0.2655112147331238, 0.014868997037410736, 0.44554924964904785, -0.06279735267162323, 0.1533363312482834, 0.016016710549592972, -0.15426942706108093, -0.11038225144147873, 0.03566063195466995, -0.16750094294548035, 0.09602951258420944, 0.3371542990207672, -0.10981474071741104, 0.03927534818649292, -0.11508301645517349, 0.2833864092826843, 0.0651039183139801, -0.13398990035057068, 0.12326598912477493, -0.04763081297278404, 0.28634628653526306, 0.2836446762084961, -0.032706119120121, 0.440545916557312, -0.07395374774932861, 0.34273022413253784, 0.5717602968215942, -0.32306739687919617, -0.0915227010846138, 0.36340469121932983, -0.17853981256484985, -0.2349892556667328, 0.10876577347517014, 0.5033022165298462, -0.16044658422470093, 0.019221877679228783, 0.23001855611801147, -0.19149929285049438, -0.49860814213752747, -0.2504013478755951, 0.3625473976135254, -0.09943489730358124, 0.2567971646785736, 0.29767906665802, 0.2487410008907318, 0.042726270854473114, -0.1285315454006195, -0.026992101222276688, 0.3420262038707733, 0.04139384999871254, 0.06512334197759628, 0.29141780734062195, 0.13985177874565125, 0.4432074725627899, -0.14434804022312164, 0.03376833349466324, -0.30415523052215576, 0.20883700251579285, 0.20367431640625, 0.11062832921743393, 0.17682574689388275, 0.3060120642185211, 0.18074461817741394, 0.18884654343128204, -0.37686365842819214, -0.2480016052722931, 0.14669755101203918, -0.30187779664993286, 0.0035960115492343903, 0.07163505256175995, 0.26281288266181946, -0.03640899434685707, 0.032848112285137177, -0.3447782099246979, -0.09139649569988251, -0.1285167932510376, -0.49417176842689514, 0.08330889046192169, -0.07986626774072647, 0.18938575685024261, -0.06823863834142685, 0.04716815799474716, 0.35230231285095215, -0.3764101266860962, 0.11485505104064941, -0.16787578165531158, 0.04250599443912506, -0.04240543395280838, 0.035498954355716705, -0.20037078857421875, 0.4417116641998291, -0.01915142685174942, 0.048289746046066284, 0.38664379715919495, -0.46799856424331665, -0.19137726724147797, 0.20395362377166748, 0.20995809137821198, -0.01196520309895277, -0.03964235633611679, -0.24611350893974304, 0.04085904359817505, 0.039544619619846344, -0.3109911382198334, 0.09917468577623367, 0.1822810024023056, 0.09556009620428085, -0.11896613240242004, -0.24263165891170502, 0.17624880373477936, 0.11393603682518005, 0.1736777126789093, -0.04507524520158768, 0.24599403142929077, 0.31116804480552673, 0.23260658979415894, -0.14740459620952606, 0.08815841376781464, 0.2548070549964905, 0.20347212255001068, 0.0849733054637909, 0.17114810645580292, -0.18414294719696045, -0.023769021034240723, -0.0661596804857254, -0.04764694720506668, 0.1714254915714264, -0.2772793769836426, -0.06697486340999603, -0.29528722167015076, -0.0031704269349575043, -0.10164467990398407, -0.11836281418800354, 0.2752215564250946, 0.2209969013929367, 0.08195413649082184, 0.32626792788505554, -0.0536135733127594, -0.08416939526796341, 0.12738484144210815, 0.051286909729242325, -0.3264312446117401, 0.16931375861167908, -0.33612966537475586, -0.06967069953680038, -0.009427797049283981, 0.04478374496102333, 0.14849352836608887, -0.18544474244117737, -0.09907642006874084, 0.08830274641513824, 0.12683163583278656, -0.019525423645973206, 0.21149027347564697, -0.21542616188526154, 0.06596819311380386, -0.5511280298233032, 0.01374426856637001, 0.49557581543922424, 0.21491429209709167, -0.08902985602617264, -0.3220084011554718, 0.015308499336242676, -0.028103049844503403, 0.22900304198265076, -0.11662951111793518, 0.14537620544433594, 0.4175555109977722, -0.11603520810604095, 0.03195960074663162, -0.2064344882965088, 0.1794973611831665, 0.2864968180656433, -0.23549258708953857, -0.37833109498023987, -0.04723380506038666, -0.34189969301223755, 0.5017577409744263, -0.08594867587089539, 0.21483591198921204, 0.13322244584560394, -0.01564924418926239, -0.1375020146369934, -0.01962646283209324, -0.08161751180887222, 0.2934359908103943, 0.11846206337213516, -0.058570001274347305, -0.03565783053636551, 0.14708468317985535, -0.22631335258483887, 0.14749775826931, 0.11334343254566193, -0.0064828358590602875, 0.07091110944747925, 0.11449892073869705, -0.12910491228103638, -0.15237149596214294, -0.1798538714647293, -0.10639918595552444, 0.33640530705451965, -0.24142493307590485, -0.002130981534719467, -0.2681010067462921, 0.14269918203353882, -0.053679436445236206, -0.16565164923667908, -0.30342891812324524, -0.41970589756965637, 0.14374220371246338, 0.09097132086753845, -0.07546713948249817, 0.03346838057041168, 0.041180115193128586, 0.26552513241767883, -0.030305933207273483, -0.09335482120513916, -0.3786006569862366, -0.4518671929836273, -0.19793424010276794, 0.13254137337207794, 0.3133958578109741, 0.34661388397216797, 0.23650583624839783, -0.25864532589912415, -0.1611466258764267, -0.29316386580467224, -0.13774341344833374, 0.10409407317638397, -0.23339153826236725, 0.35889530181884766, 0.11542604863643646, 0.47213709354400635, 0.07981971651315689, -0.31066247820854187, 0.12215883284807205, -0.33247336745262146, 0.004180755466222763, -0.09096162766218185, 0.033169206231832504, -0.1859961599111557, -0.18209296464920044, -0.636965274810791, 0.006891011260449886, -0.18094982206821442, 0.23349562287330627, 0.3078785240650177, -0.07422904670238495, -0.23211908340454102, 0.15355509519577026, 0.12604643404483795, 0.08329163491725922, 0.17066402733325958, -0.16851761937141418, -0.1418704390525818, 0.17189088463783264, -0.25139713287353516, -0.23426444828510284, 0.3219718933105469, 0.0599808543920517, 0.20696362853050232, -0.28895407915115356, -0.5660974979400635, -0.27620449662208557, 0.1619006246328354, 0.08962517976760864, -0.09435674548149109, -0.009379228577017784, 0.34115085005760193, 0.06708943098783493, -0.07561015337705612, -0.2692038118839264, -0.1378285437822342, -0.17321059107780457, -0.08828579634428024, 0.31776201725006104, -0.034504637122154236, 0.6234409809112549, -0.22875729203224182, 0.48153597116470337, 0.05921604856848717, 0.07120649516582489, 0.22529497742652893, -0.09749776124954224, 0.21362292766571045, -0.03236483782529831, -0.27602165937423706, -0.09978894144296646, -0.032395586371421814, -0.07935436069965363, 0.049930982291698456, -0.19061097502708435, -0.31640148162841797, -0.2898861765861511, -0.038187168538570404, -0.547437846660614, -0.30183663964271545, -0.04269203543663025, 0.028040079399943352, 0.10527627170085907, 0.006109919399023056, 0.04664665460586548, -0.0782332718372345, -0.12779712677001953, 0.15315192937850952, 0.35847169160842896, 0.07941688597202301, -0.17758822441101074, -0.5284026265144348, -0.2848028242588043, -0.198682963848114, 0.4242589473724365, 0.07041873037815094, 0.18222451210021973, -0.3293417990207672, 0.15110540390014648, -0.0485449880361557, -0.3798847794532776, 0.3623815178871155, -0.4550740718841553, 0.1306365728378296, 0.29840531945228577, 0.2882459759712219, -0.2660757005214691, 0.03748543933033943, -0.5061355233192444, 0.12440969794988632, 0.34275564551353455, 0.06969687342643738, -0.23671072721481323, -0.14780907332897186, 0.3181689977645874, 0.08022905886173248, -0.07388321310281754, 0.012668824754655361, -0.19798997044563293, -0.42515790462493896, -0.5338504910469055, -0.04251418262720108, 0.11562406271696091, 0.17181529104709625, -0.026703204959630966, 0.07187165319919586, 0.11492802202701569, 0.09339599311351776, 0.08001431822776794, 0.0840492844581604, 0.15583622455596924, 0.2010466754436493, -0.1656384915113449, -0.14596357941627502, -0.09179447591304779, 0.16823995113372803, 0.40359702706336975, 0.26320216059684753, -0.1509477198123932, -0.23663422465324402, -0.14728263020515442, 0.24391615390777588, -0.02755632996559143, -0.09726232290267944, 0.014986827969551086, 0.009255124256014824, 0.04284561052918434, -0.08540195226669312, 0.19156436622142792, 0.2976428270339966, -0.10386720299720764, -0.11043049395084381, -0.25520795583724976, 0.4449663758277893, 0.05083839222788811, -0.0026037395000457764, 0.2300124615430832, -0.16031740605831146, -0.4255252778530121, 0.39749109745025635, 0.1255706548690796, 0.6270696520805359, 0.10006890445947647, 0.04875122383236885, 0.14857006072998047, -0.08408020436763763, 0.46040892601013184, -0.4335227608680725, 0.0069516729563474655, -0.28385084867477417, 0.23088839650154114, -0.17855827510356903, -0.10622329264879227, 0.4131268858909607, 0.11584378778934479, -0.6579836010932922, 0.20353206992149353, 0.23467017710208893, 0.12907268106937408, -0.10708432644605637, 0.4143976867198944, -0.06007203459739685, 0.06535481661558151, -0.023956041783094406, 0.2814076542854309, -0.0850667804479599, 0.11476927995681763, -0.1688418984413147, -0.022682562470436096, -0.04993871599435806, -0.5281208157539368, -0.43259596824645996, 0.08552884310483932, 0.17125120759010315, 0.3404753804206848, 0.06565533578395844, -0.07015484571456909, 0.47584861516952515, 0.07601726055145264, 0.12133879959583282, 0.4443210959434509, -0.4178832769393921, 0.2981851398944855, -0.4929026961326599, -0.34525740146636963, -0.11473819613456726, 0.4316743016242981, 0.03065965510904789, -0.19843807816505432, -0.5243297219276428, 0.27197644114494324, -0.2830069363117218, -0.36515969038009644, -0.23593714833259583, 0.17573565244674683, -0.2410718947649002, -0.34136393666267395, -0.39518389105796814, 0.06955888122320175, -0.23886515200138092, -0.1388837993144989, 0.2521574795246124, -0.01453845202922821, -0.10880918055772781, 0.41343143582344055, 0.0919194296002388, -0.20058539509773254, 0.02291862480342388, 0.15972262620925903, -0.13457149267196655, -0.13046862185001373, 0.4985652267932892, 0.2502051591873169, -0.1592574119567871, -0.5296224355697632, 0.07226981967687607, -0.022397294640541077, -0.08756893873214722, 0.06355703622102737, -0.05559191480278969, 0.1467672735452652, 0.045825034379959106, 0.13852375745773315, 0.007229913026094437, 0.10111990571022034, 0.040074434131383896, -0.49099960923194885, 0.00896403193473816, 0.23785167932510376, 0.11205191910266876, 0.11057817935943604, 0.28004446625709534, -0.08933937549591064, 0.11093145608901978, 0.16145001351833344, -0.37738826870918274, 0.24211138486862183, -0.29144078493118286, 0.22520865499973297, 0.2355627566576004, 0.03511933609843254, -0.1029914990067482, 0.06515459716320038, 0.1898733228445053, -0.0733700543642044, -0.1337844878435135, -0.3092796504497528, 0.06429265439510345, 0.07448644191026688, 0.06481359899044037, -0.0016500088386237621, -0.13677333295345306, -0.20462732017040253, 0.06961993128061295, -0.08437603712081909, -0.18171241879463196, -0.2501111328601837, -0.16614930331707, 0.5095803141593933, 0.35030317306518555, -0.08277881890535355, -0.048194803297519684, 0.012883797287940979, -0.13226205110549927, 0.2995867133140564, -0.009482882916927338, 0.26240742206573486, 0.33881306648254395, 0.08201678097248077, -0.26968637108802795, 0.13494336605072021, 0.12122593820095062, 0.2613126337528229, 0.3684627115726471, -0.20807494223117828, -0.023563826456665993, 0.2412971705198288, 0.18080337345600128, 0.417418897151947, -0.2891659736633301, 0.3366052210330963, 0.1594332754611969, 0.20023572444915771, -0.183353990316391, -0.18707571923732758, 0.5643526315689087, 0.21771623194217682, -0.0023620836436748505, -0.09765278548002243, 0.16788427531719208, -0.18075472116470337, 0.2568182945251465, 0.16443249583244324, 0.48220840096473694, -0.10930949449539185, 0.086488738656044, 0.053629979491233826, -0.21311883628368378, -0.16420261561870575, -0.19292967021465302, -0.04916724935173988, 0.2083924412727356, 0.15882223844528198, 0.13583974540233612, 0.22061331570148468, 0.052104078233242035, 0.05748731642961502, -0.13640490174293518, 0.07626181840896606, 0.2383974939584732, -0.03482884168624878, 0.10144148021936417, 0.16162973642349243, 0.142479807138443, 0.02600199356675148, -0.026333384215831757, 0.1420295089483261, -0.19297794997692108, 0.02453390508890152, 0.06752099096775055, -0.15311914682388306, -0.37450629472732544, -0.13206399977207184, 0.03142593801021576, -0.011554760858416557, 0.20096410810947418, -0.1159122884273529, -0.018065422773361206, 0.20273078978061676, -0.23756052553653717, -0.07400347292423248, 0.32203802466392517, -0.09846299141645432, -0.006268493831157684, -0.20833495259284973, -0.0871201753616333, 0.13790223002433777, -0.07271499931812286, 0.03368094936013222, 0.2082119733095169, 0.6206908226013184, 0.22227022051811218, -0.4257977604866028, -0.06508664786815643, -0.4044833481311798, -0.18949976563453674, -0.05433608219027519, 0.3179399371147156, 0.15487226843833923, 0.016265835613012314, 0.17462898790836334, 0.3047039806842804, -0.17622002959251404, -0.04416874423623085, 0.29464593529701233, 0.005225097760558128, -0.05627191439270973, -0.10731325298547745, 0.03726855665445328, -0.14480851590633392, -0.18850255012512207, -0.14807096123695374, -0.552262544631958, 0.01690194383263588, 0.23329992592334747, 0.20202402770519257, 0.02629735693335533, -0.1341940462589264, 0.10736721754074097, -0.05257425084710121, 0.5481072068214417, 0.2535022497177124, 0.1834118366241455, -0.1393638700246811, -0.3378707468509674, -0.42854440212249756, -0.015961043536663055, -0.2106136679649353, -0.210287407040596, 0.026002952829003334, 0.03363975137472153, 0.07840794324874878, 0.0806310698390007, 0.05518828332424164, -0.02929583750665188, -0.13878317177295685, 0.07756727933883667, -0.27488142251968384, -0.19632752239704132, 0.4053610563278198, 0.027561025694012642, 0.01136850193142891, -0.041995856910943985, 0.07534345984458923, -0.04579424113035202, 0.09403079003095627, -0.14492672681808472, -0.0912894457578659, 0.029812350869178772, -0.036338403820991516, 0.3387872576713562, 0.0623793751001358, 0.6284220218658447, -0.22730475664138794, 0.04017302393913269, -0.18242663145065308, -0.3782877027988434, 0.14735132455825806, 0.33190616965293884, -0.002899959683418274, 0.4385901391506195, -0.2172131985425949, 0.010698072612285614, -0.21629267930984497, 0.19413889944553375, -0.1718299239873886, -0.021888429298996925, -0.19782884418964386, -0.16495360434055328, 0.014446079730987549, 0.18555839359760284, -0.03026915341615677, -0.1532709300518036, -0.2182416319847107, 0.22372648119926453, -0.4028638005256653, -0.1573207527399063, 0.4056430459022522, -0.07986361533403397, -0.5697408318519592, -0.07796487212181091, 0.0929126963019371, -0.4074026942253113, -0.2288046032190323, -0.5547392964363098, -0.026921086013317108, 0.3670637905597687, 0.10518315434455872, -0.16195198893547058, 0.023685114458203316, 0.16566146910190582, -0.02638605237007141, -0.04957889765501022, -0.011196918785572052, 0.06221528351306915, -0.10840962082147598, -0.10151316225528717, -0.2290695309638977 ]
https://github.com/huggingface/datasets/pull/73
JSON script
Currently the dummy_data tests are always green because in a PR the dataset is not yet synchronized with aws. This PR fixes this: https://github.com/huggingface/nlp/pull/140 . Could you test `json` locally or wait until the PR: https://github.com/huggingface/nlp/pull/140 is merged ? :-)
Add a JSONS script to read JSON datasets from files.
40
text: JSON script Add a JSONS script to read JSON datasets from files. Currently the dummy_data tests are always green because in a PR the dataset is not yet synchronized with aws. This PR fixes this: https://github.com/huggingface/nlp/pull/140 . Could you test `json` locally or wait until the PR: https://github.com/huggingface/nlp/pull/140 is merged ? :-)
[ -0.21065807342529297, -0.15876705944538116, -0.16147594153881073, -0.15450452268123627, 0.019227033481001854, -0.11358840018510818, 0.27589747309684753, 0.4940337836742401, 0.27852872014045715, 0.16311192512512207, 0.253665030002594, 0.3231164216995239, -0.10194897651672363, 0.2931453585624695, -0.020993318408727646, 0.021287420764565468, 0.1191578358411789, 0.17096611857414246, 0.1333257406949997, 0.032918527722358704, -0.20363841950893402, 0.33355578780174255, -0.04187792167067528, -0.15835878252983093, -0.17745904624462128, 0.01448377501219511, -0.10423188656568527, 0.08367316424846649, -0.23078924417495728, -0.18676261603832245, 0.15284664928913116, 0.13509035110473633, -0.07479580491781235, 0.221511572599411, -0.00010013712744694203, 0.016008049249649048, 0.46384871006011963, -0.05155806615948677, -0.13341796398162842, -0.399275541305542, -0.033401086926460266, -0.08051589131355286, 0.17452472448349, -0.11891143769025803, -0.3731222450733185, -0.20934957265853882, 0.07772134989500046, 0.04799835383892059, 0.3565977215766907, 0.32799220085144043, 0.2839915454387665, 0.3737388253211975, -0.11320848762989044, 0.11618844419717789, 0.18791690468788147, 0.39582347869873047, -0.04384254664182663, 0.06918612867593765, 0.22427137196063995, -0.14094816148281097, -0.009811900556087494, 0.1822412610054016, 0.17662446200847626, 0.2749841511249542, 0.06521163880825043, -0.0465121753513813, 0.0026671960949897766, 0.08402614295482635, -0.16761481761932373, 0.021866295486688614, 0.23386210203170776, -0.09110396355390549, -0.14602623879909515, -0.1423790603876114, -0.15132176876068115, -0.1547345668077469, 0.20971661806106567, 0.2450849562883377, 0.020567674189805984, 0.22387617826461792, -0.1553516536951065, -0.015428815968334675, -0.1890878677368164, 0.27245646715164185, 0.05724070966243744, 0.2549377679824829, -0.1683850884437561, -0.058207377791404724, 0.19080615043640137, -0.03405237942934036, -0.2110033482313156, -0.1143496185541153, -0.2658217251300812, -0.06867620348930359, -0.07992710173130035, -0.2404647171497345, 0.07498487085103989, -0.06610169261693954, 0.16379424929618835, 0.5121500492095947, 0.041315194219350815, 0.24154844880104065, -0.06423879414796829, 0.4282989203929901, 0.05184066295623779, 0.1789971888065338, 0.3644305169582367, 0.08295021951198578, 0.25437235832214355, 0.3425231873989105, -0.011828362941741943, -0.03338438272476196, 0.24740943312644958, -0.20703858137130737, -0.1472771018743515, 0.013059506192803383, 0.31519442796707153, -0.28328201174736023, -0.22842782735824585, 0.02556627430021763, -0.0864771157503128, -0.22404703497886658, -0.11476287990808487, 0.42882493138313293, 0.013741566799581051, -0.0005850493907928467, 0.357296347618103, 0.46013569831848145, -0.17645330727100372, -0.05833565443754196, -0.21126054227352142, 0.19375735521316528, -0.12261810898780823, -0.1406036615371704, 0.28495779633522034, 0.31372520327568054, 0.47681549191474915, -0.11032255738973618, -0.048784129321575165, -0.2804737687110901, 0.5550364851951599, 0.2671661376953125, 0.20866596698760986, 0.25838524103164673, 0.04428299143910408, -0.13978348672389984, 0.1017962247133255, -0.21341291069984436, -0.14637531340122223, -0.07501236349344254, -0.00336591899394989, -0.15603186190128326, -0.015222510322928429, 0.30904248356819153, -0.39089322090148926, -0.1380307525396347, -0.1859690248966217, 0.266344279050827, -0.20999494194984436, -0.23998349905014038, 0.058648545295000076, 0.0329437255859375, 0.009507570415735245, 0.06494152545928955, 0.021054456010460854, 0.41708439588546753, -0.2214118093252182, -0.18374449014663696, 0.17034877836704254, -0.21551121771335602, 0.11606243997812271, 0.03766270726919174, -0.07668401300907135, -0.019661255180835724, -0.20452097058296204, 0.026166558265686035, 0.11785877496004105, -0.3360561728477478, 0.07237094640731812, 0.43183615803718567, -0.11531001329421997, -0.05810865759849548, 0.21785998344421387, -0.15894803404808044, -0.45604240894317627, -0.023381521925330162, -0.08151209354400635, 0.1239023506641388, 0.13323426246643066, 0.2082713544368744, -0.32732945680618286, -0.16788315773010254, -0.02857508510351181, 0.08017495274543762, -0.1631527841091156, -0.09767662733793259, -0.008521534502506256, -0.04592880234122276, 0.2437615692615509, -0.045682188123464584, 0.027068831026554108, 0.12377218157052994, 0.1116829514503479, -0.26285940408706665, -0.08127740025520325, -0.06523512303829193, -0.29870492219924927, -0.08969004452228546, -0.07590730488300323, 0.14001697301864624, -0.09553882479667664, -0.24403494596481323, -0.22002118825912476, -0.06306491047143936, -0.10846416652202606, -0.261726975440979, 0.2438696026802063, 0.3840843737125397, 0.1429549604654312, 0.04402592405676842, -0.15544942021369934, -0.14794223010540009, -0.09616413712501526, 0.006341936998069286, -0.5371573567390442, 0.1587217003107071, -0.09719546884298325, 0.012226189486682415, 0.35997796058654785, -0.07426055520772934, 0.060274165123701096, -0.42277392745018005, -0.14178067445755005, 0.24299567937850952, 0.012390646152198315, 0.40313321352005005, 0.24346065521240234, 0.14438268542289734, 0.05063651129603386, -0.04432225227355957, -0.15547703206539154, 0.36655348539352417, -0.06753970682621002, -0.1211739331483841, -0.5153070092201233, 0.5403305292129517, -0.004081595689058304, -0.03873748332262039, -0.21204176545143127, -0.1664639562368393, 0.2843879461288452, -0.1693905144929886, -0.282754123210907, -0.08197242021560669, 0.3177306354045868, 0.1593860685825348, -0.028715111315250397, -0.22734783589839935, -0.40510547161102295, -0.01789383590221405, 0.4123360514640808, -0.21117432415485382, 0.019087892025709152, 0.06111687421798706, 0.23763570189476013, -0.23063215613365173, 0.30316463112831116, 0.23492087423801422, 0.34212493896484375, 0.21172019839286804, -0.03454772010445595, 0.0773165225982666, -0.11199574172496796, -0.350382000207901, 0.15351758897304535, 0.05739167705178261, -0.04644398391246796, 0.19174358248710632, 0.11006958037614822, -0.46897512674331665, -0.5021246671676636, -0.06843515485525131, 0.11631246656179428, 0.20929959416389465, -0.27639660239219666, 0.01898217387497425, -0.27831584215164185, -0.0721563994884491, -0.08503472059965134, 0.033803585916757584, 0.002617832273244858, -0.2389010787010193, 0.277150958776474, 0.2528160512447357, -0.4211685061454773, 0.09144340455532074, 0.15802215039730072, 0.2644229531288147, -0.07996819168329239, -0.24411378800868988, -0.6638645529747009, -0.18565359711647034, -0.23293021321296692, 0.1996917724609375, 0.3195785880088806, 0.25784552097320557, 0.43540722131729126, -0.28835147619247437, 0.030356109142303467, 0.0007184743881225586, -0.3241533041000366, -0.06570971757173538, -0.08036531507968903, 0.41065943241119385, 0.11754467338323593, 0.15928047895431519, -0.05594056844711304, -0.012739699333906174, 0.2383691817522049, -0.3705140948295593, -0.29597440361976624, -0.1448027491569519, 0.1233576163649559, -0.039064548909664154, -0.3297027349472046, -0.7010174989700317, 0.019685737788677216, -0.25179949402809143, 0.33189183473587036, 0.2630748748779297, -0.0277600958943367, -0.18693678081035614, 0.29494595527648926, 0.004954595118761063, -0.009057441726326942, -0.15040689706802368, -0.23496514558792114, -0.4508174955844879, 0.08381623029708862, -0.2789677083492279, -0.37509503960609436, 0.10700084269046783, 0.05659371614456177, 0.14917737245559692, -0.4162086844444275, -0.3207143545150757, -0.4753289520740509, 0.17995287477970123, 0.08725912868976593, 0.07440396398305893, -0.2260948270559311, 0.2179848551750183, -0.03485744819045067, -0.24412968754768372, -0.14832311868667603, -0.16037414968013763, 0.15300200879573822, -0.1318991482257843, 0.2651815116405487, -0.03335842862725258, 0.2297360599040985, -0.08987458050251007, 0.2997772693634033, 0.14024804532527924, -0.20982985198497772, 0.13755042850971222, -0.0613514706492424, 0.2672719657421112, -0.0009865686297416687, -0.05153856426477432, -0.044504180550575256, 0.13079965114593506, 0.005960170179605484, 0.3607214689254761, 0.033850714564323425, -0.17554397881031036, -0.27153730392456055, -0.10157395899295807, -0.3224175274372101, -0.21139025688171387, 0.1526256650686264, -0.04148782789707184, -0.13191795349121094, 0.07683351635932922, -0.009371843189001083, -0.0449448898434639, -0.03516694903373718, 0.002699451521039009, 0.2841030955314636, -0.04711129516363144, -0.009018370881676674, -0.5051285028457642, -0.028208473697304726, -0.3544822633266449, 0.452866792678833, -0.09735283255577087, 0.22256961464881897, -0.11732103675603867, 0.00395222008228302, 0.13520501554012299, -0.41899430751800537, 0.459486722946167, -0.39099031686782837, 0.13299918174743652, 0.10451367497444153, -0.0002054758369922638, -0.07731487601995468, 0.03234915807843208, -0.4222163259983063, -0.003979327157139778, 0.2809128165245056, 0.406207412481308, -0.34228312969207764, -0.4061295688152313, -0.020589958876371384, -0.1000714898109436, -0.02232949249446392, -0.27912425994873047, -0.17028459906578064, -0.28896379470825195, -0.4839514195919037, 0.29373347759246826, 0.12289170175790787, -0.05233719199895859, -0.3315039575099945, -0.09245266765356064, 0.1389513909816742, 0.18170246481895447, 0.06336700916290283, 0.12768888473510742, 0.016408126801252365, -0.16297350823879242, -0.10100409388542175, 0.07287164032459259, -0.039268918335437775, 0.17571619153022766, 0.529556930065155, 0.18888723850250244, 0.01203804463148117, 0.020195364952087402, -0.006747779436409473, 0.25326988101005554, 0.15862375497817993, 0.15876299142837524, 0.151443213224411, -0.07182186841964722, 0.05212612450122833, -0.11789222806692123, 0.08708822727203369, 0.28062400221824646, 0.15687088668346405, 0.20295335352420807, -0.22718839347362518, 0.38245123624801636, -0.08704137802124023, -0.1013808622956276, 0.007482856512069702, -0.21656255424022675, 0.0299376267939806, 0.5263811349868774, 0.023948021233081818, 0.6552963852882385, 0.06651122868061066, 0.10009174048900604, 0.21891769766807556, -0.3674309253692627, 0.41853010654449463, -0.6698282361030579, 0.11255840212106705, -0.3746158182621002, 0.34254032373428345, -0.007258569821715355, -0.03116704151034355, 0.31781408190727234, 0.2822915315628052, -0.3689265549182892, 0.1585131585597992, 0.24465490877628326, 0.09334199130535126, -0.06812908500432968, 0.43412351608276367, -0.18328411877155304, 0.04329826310276985, -0.26108288764953613, 0.303001344203949, 0.0024695023894309998, 0.25583145022392273, -0.08084146678447723, -0.15272700786590576, 0.02050873264670372, -0.3075215816497803, 0.09526650607585907, 0.13834193348884583, 0.16808262467384338, -0.11740100383758545, 0.0841134712100029, -0.05000739544630051, -0.05627622827887535, 0.2135508507490158, 0.013179220259189606, 0.22919179499149323, -0.3229111135005951, 0.32608532905578613, -0.3650459945201874, -0.04530605673789978, -0.15602320432662964, 0.05680573731660843, 0.24993157386779785, -0.14105279743671417, -0.4485325813293457, 0.11066841334104538, -0.11041229963302612, -0.17050713300704956, -0.118694968521595, 0.07238122820854187, -0.3357914090156555, -0.2583376169204712, -0.28586041927337646, 0.06252622604370117, -0.3939761519432068, -0.29257169365882874, 0.2929452061653137, 0.09887417405843735, -0.2927219271659851, 0.05651530623435974, 0.3284974694252014, -0.19895786046981812, -0.13674229383468628, 0.2332170605659485, -0.26088589429855347, 0.0973222404718399, 0.2834234833717346, 0.1251979023218155, 0.11664354801177979, -0.5177111625671387, 0.01625046879053116, 0.32682356238365173, -0.23456186056137085, 0.13578137755393982, 0.1535767763853073, -0.15395790338516235, 0.38005393743515015, 0.09195968508720398, 0.08531703799962997, 0.13615630567073822, 0.25303903222084045, -0.33323556184768677, -0.19083765149116516, -0.06559720635414124, 0.17460554838180542, 0.34482425451278687, 0.3836975693702698, -0.024777323007583618, -0.07356773316860199, 0.1926681250333786, -0.44109228253364563, 0.035791926085948944, -0.4714335799217224, 0.16077613830566406, -0.09881158918142319, -0.11334323137998581, 0.3900550901889801, -0.023520130664110184, 0.18336434662342072, 0.15255749225616455, -0.32547464966773987, -0.34702083468437195, -0.01514954213052988, 0.0843130499124527, 0.15756866335868835, 0.11282621324062347, -0.049387186765670776, 0.21145933866500854, -0.037415266036987305, 0.035999443382024765, -0.2159121036529541, -0.25857529044151306, -0.14741140604019165, 0.323678195476532, 0.020865917205810547, -0.22703158855438232, 0.1121997982263565, -0.4115018844604492, 0.026974141597747803, 0.10173116624355316, -0.40638473629951477, -0.09483602643013, 0.00034039421007037163, 0.03291013091802597, 0.117461197078228, 0.030032213777303696, 0.06273816525936127, 0.5757108926773071, 0.2017916440963745, -0.007053449749946594, -0.00014119595289230347, -0.45454275608062744, 0.428303986787796, 0.13508948683738708, -0.14360828697681427, 0.22101444005966187, 0.12092109024524689, 0.28827494382858276, -0.24013452231884003, 0.10244528949260712, 0.26376500725746155, 0.18311437964439392, 0.26347655057907104, -0.00016467273235321045, 0.24302908778190613, -0.11406642943620682, 0.2750396728515625, 0.08795615285634995, 0.33290979266166687, -0.40417957305908203, -0.10331608355045319, -0.021003801375627518, -0.35241401195526123, -0.08415025472640991, 0.30249786376953125, 0.012226104736328125, 0.2046131193637848, -0.0006881169974803925, 0.14502467215061188, 0.23799124360084534, 0.07299041748046875, 0.2604905366897583, -0.2239794135093689, -0.04169829934835434, 0.04945104196667671, 0.1166558787226677, 0.1121656522154808, 0.3650285303592682, 0.3405393660068512, 0.348489910364151, -0.16374889016151428, 0.022010277956724167, -0.22688034176826477, 0.26429933309555054, 0.06985825300216675, -0.1250385046005249, -0.5001394748687744, -0.011382713913917542, -0.17982542514801025, -0.019546212628483772, 0.1164625883102417, 0.0019629672169685364, 0.09580764919519424, 0.20385533571243286, 0.035419270396232605, -0.1698189228773117, 0.2550133168697357, -0.22291353344917297, 0.2548190951347351, -0.20586447417736053, 0.2188967913389206, 0.09049856662750244, -0.15005278587341309, 0.29479309916496277, 0.16147050261497498, 0.47961708903312683, -0.07912212610244751, -0.0572434701025486, 0.08634450286626816, -0.3584963381290436, -0.12725552916526794, -0.10030272603034973, 0.6188883781433105, 0.1767449826002121, -0.1718832552433014, 0.3814378082752228, 0.29614391922950745, -0.2668741047382355, 0.3442692160606384, 0.13553941249847412, -0.23183806240558624, -0.08931036293506622, 0.3112381398677826, -0.019013870507478714, -0.12567611038684845, -0.4738749563694, -0.14628824591636658, -0.4765004813671112, -0.12064492702484131, 0.06645867228507996, 0.03688172996044159, 0.21687334775924683, -0.28449782729148865, 0.15364724397659302, 0.03729002922773361, 0.4331936240196228, 0.11608818918466568, 0.014104712754487991, -0.14148715138435364, -0.11218662559986115, -0.37884634733200073, 0.04669194668531418, 0.009026646614074707, 0.06467600166797638, -0.18054257333278656, 0.06637661904096603, 0.18362931907176971, -0.012995414435863495, -0.18851463496685028, 0.11861331015825272, -0.023590151220560074, 0.1645905077457428, -0.47386279702186584, 0.09419271349906921, 0.035923633724451065, 0.1239771693944931, 0.35481470823287964, -0.18441128730773926, -0.05944916978478432, 0.08794357627630234, 0.12095508724451065, -0.09892358630895615, 0.1289680302143097, -0.06271953880786896, -0.10275216400623322, 0.2058267742395401, 0.18028907477855682, 0.5655088424682617, -0.30616292357444763, 0.05622901767492294, -0.11289680004119873, -0.11018293350934982, -0.1588929146528244, 0.3325554132461548, -0.06871087849140167, 0.4927176535129547, 0.06513239443302155, -0.04361730441451073, -0.13082535564899445, 0.02824363484978676, -0.2342841923236847, -0.25027331709861755, 0.015036528930068016, 0.13517726957798004, -0.3407329320907593, 0.03809060901403427, -0.12312991172075272, 0.2950268089771271, -0.09726014733314514, 0.025355903431773186, -0.3523772954940796, -0.1750531941652298, 0.5225165486335754, -0.1799379289150238, -0.23576299846172333, 0.3089877963066101, 0.11383870989084244, 0.18686023354530334, -0.10808894783258438, -0.4535943269729614, 0.1603190004825592, 0.13621582090854645, 0.08663082122802734, 0.04750711843371391, 0.27424371242523193, 0.17682839930057526, -0.014344092458486557, -0.10007154941558838, 0.31211936473846436, 0.3486725986003876, -0.04705933481454849, 0.0838959664106369, -0.2943152189254761 ]
https://github.com/huggingface/datasets/pull/71
Fix arrow writer for big datasets using writer_batch_size
After a quick chat with Yacine : the 2Go test may not be sufficient actually, as I'm looking at the size of the array and not the size of the current_rows. If the test doesn't do the job I think I'll remove it and lower the batch size a bit to be sure that it never exceeds 2Go. I'll do more tests later
This PR fixes Yacine's bug. According to [this](https://github.com/apache/arrow/blob/master/docs/source/cpp/arrays.rst#size-limitations-and-recommendations), it is not recommended to have pyarrow arrays bigger than 2Go. Therefore I set a default batch size of 100 000 examples per batch. In general it shouldn't exceed 2Go. If it does, I reduce the batch_size on the fly, and I notify the user with a warning.
63
text: Fix arrow writer for big datasets using writer_batch_size This PR fixes Yacine's bug. According to [this](https://github.com/apache/arrow/blob/master/docs/source/cpp/arrays.rst#size-limitations-and-recommendations), it is not recommended to have pyarrow arrays bigger than 2Go. Therefore I set a default batch size of 100 000 examples per batch. In general it shouldn't exceed 2Go. If it does, I reduce the batch_size on the fly, and I notify the user with a warning. After a quick chat with Yacine : the 2Go test may not be sufficient actually, as I'm looking at the size of the array and not the size of the current_rows. If the test doesn't do the job I think I'll remove it and lower the batch size a bit to be sure that it never exceeds 2Go. I'll do more tests later
[ -0.4110718369483948, -0.019606947898864746, -0.11060656607151031, -0.021082818508148193, 0.0869174599647522, -0.1804790198802948, 0.3785358667373657, 0.3950038552284241, -0.30050909519195557, 0.1305355578660965, 0.3103645145893097, -0.01550096832215786, -0.1400092989206314, -0.09396371990442276, 0.24375878274440765, -0.05687057226896286, 0.08797700703144073, 0.20158293843269348, -0.03995446860790253, -0.012095555663108826, -0.11731184273958206, -0.04221726208925247, -0.14920370280742645, 0.25371262431144714, -0.3049844205379486, -0.2066408097743988, 0.21972805261611938, 0.059530921280384064, -0.1112557128071785, -0.3923967182636261, -0.016963329166173935, -0.047118302434682846, 0.09926317632198334, 0.16045135259628296, -0.00010809046943904832, 0.0022960156202316284, 0.34128743410110474, -0.1541825234889984, 0.06280449032783508, 0.2931273579597473, 0.2986845076084137, -0.3217061161994934, -0.05377751588821411, -0.21444560587406158, 0.2862450182437897, -0.41766446828842163, -0.017370576038956642, -0.1144479513168335, 0.19895055890083313, 0.22254715859889984, 0.2973872721195221, -0.015582171268761158, 0.24555425345897675, 0.15349659323692322, 0.6061240434646606, 0.18859657645225525, -0.15918198227882385, -0.1094755083322525, 0.15732459723949432, -0.0010219067335128784, -0.3990383744239807, 0.11818438768386841, 0.023682458326220512, 0.1549740880727768, 0.1371764838695526, 0.01550307311117649, 0.41485393047332764, -0.053707726299762726, 0.07434120029211044, 0.12618088722229004, 0.3629877269268036, -0.2687044143676758, -0.04560082405805588, -0.24382951855659485, -0.0807926133275032, -0.2963486909866333, 0.06782697141170502, 0.3942706882953644, -0.34701648354530334, -0.009489670395851135, -0.03587079793214798, -0.0008389547001570463, -0.3530207872390747, -0.2061278074979782, 0.05626095086336136, -0.13098777830600739, 0.1217980831861496, 0.08272851258516312, 0.20426572859287262, -0.021761517971754074, 0.5702666640281677, 0.2415151298046112, -0.27811819314956665, 0.1587422490119934, -0.3545823395252228, -0.019035398960113525, 0.05864109471440315, -0.1897406280040741, 0.36434367299079895, -0.07350078970193863, 0.29706597328186035, 0.1114804744720459, 0.5714955925941467, -0.04205074906349182, -0.10257074236869812, 0.2513563930988312, -0.1016189232468605, 0.25702354311943054, 0.2593424618244171, -0.049312774091959, 0.16397906839847565, 0.034276802092790604, 0.03141210600733757, -0.6579320430755615, 0.4924822449684143, -0.14261794090270996, 0.13903973996639252, -0.18293039500713348, -0.05601941794157028, 0.2624083459377289, -0.26874682307243347, 0.0065426030196249485, -0.3124631345272064, 0.34688353538513184, 0.12476903200149536, 0.2023477852344513, -0.08345109224319458, -0.017223816365003586, -0.13946273922920227, 0.14133340120315552, -0.14380374550819397, -0.15814466774463654, -0.11822950839996338, 0.07881080359220505, 0.13779035210609436, 0.1871512532234192, 0.13653865456581116, -0.12005776911973953, 0.12603116035461426, -0.0016019120812416077, 0.014278581365942955, -0.1523868888616562, 0.24917671084403992, 0.27166059613227844, -0.04678367078304291, -0.024386418983340263, -0.20066644251346588, 0.17413471639156342, -0.08304087072610855, 0.5674545168876648, -0.2555904984474182, -0.3677043616771698, -0.14832469820976257, 0.29418233036994934, -0.07514643669128418, 0.1475902497768402, -0.05699995905160904, -0.20414617657661438, 0.39761674404144287, -0.06026291102170944, 0.29437872767448425, -0.20312994718551636, 0.38526326417922974, -0.3124387860298157, -0.1628621369600296, 0.13430774211883545, -0.35842153429985046, 0.2061719000339508, 0.13955238461494446, 0.05786255747079849, 0.2956843972206116, 0.5213301181793213, -0.17305888235569, -0.0023225918412208557, -0.08839255571365356, 0.1782466620206833, 0.3620246946811676, 0.0800093412399292, -0.28543880581855774, 0.1320076584815979, -0.014105420559644699, -0.2713402211666107, 0.2635107934474945, 0.012707666493952274, 0.3375338017940521, -0.06070847064256668, -0.07000844180583954, 0.16425803303718567, -0.024635663256049156, 0.21082280576229095, -0.586279571056366, -0.23086661100387573, -0.43901658058166504, -0.012750688008964062, 0.155805766582489, -0.4377819299697876, 0.053768258541822433, -0.35914865136146545, 0.3623414635658264, -0.17563562095165253, 0.3384535312652588, 0.3499830961227417, 0.26005277037620544, -0.24018724262714386, 0.17006172239780426, 0.12055390328168869, -0.16337361931800842, -0.10094867646694183, -0.40199872851371765, -0.25818437337875366, -0.015318170189857483, -0.31905269622802734, -0.14063760638237, 0.2221711277961731, 0.003927245736122131, -0.0428948737680912, 0.149457648396492, -0.1268978863954544, 0.22253265976905823, 0.05738527700304985, -0.04866904020309448, -0.03657299280166626, 0.06401637196540833, 0.01864461414515972, -0.029065914452075958, -0.14182427525520325, -0.13899396359920502, -0.29720455408096313, -0.03743694722652435, 0.07122807204723358, -0.07839649170637131, -0.026993360370397568, 0.03757602721452713, 0.35616618394851685, -0.21068015694618225, 0.010721549391746521, -0.27126485109329224, -0.046042442321777344, -0.020118745043873787, -0.23018045723438263, 0.22180141508579254, -0.03671403229236603, -0.029541049152612686, 0.02065391093492508, -0.07699701935052872, 0.27943044900894165, -0.11943911015987396, 0.1073078066110611, -0.06316229701042175, -0.16164997220039368, -0.009657204151153564, 0.028638843446969986, 0.1630096286535263, 0.07039791345596313, 0.17113719880580902, 0.06040772423148155, 0.2977881133556366, 0.035431869328022, -0.20008713006973267, 0.00962192565202713, 0.23278851807117462, -0.07148376107215881, 0.09613963216543198, 0.3253946602344513, -0.08862290531396866, -0.07105053216218948, 0.00040209293365478516, 0.16434726119041443, 0.1371459811925888, 0.3519081771373749, -0.12178520858287811, -0.24425247311592102, 0.07930763810873032, -0.3966613709926605, 0.2514226734638214, 0.026134639978408813, 0.3387889564037323, 0.2263161540031433, 0.28437772393226624, -0.15013764798641205, -0.3366076946258545, 0.06760072708129883, -0.0056205131113529205, 0.23141705989837646, -0.17429396510124207, 0.055146507918834686, 0.23036187887191772, -0.06463663280010223, -0.2945197522640228, -0.0916840061545372, 0.056273020803928375, -0.0936472937464714, 0.34912675619125366, -0.02633088454604149, -0.351850688457489, 0.12866635620594025, -0.11559127271175385, 0.17509829998016357, 0.3070859909057617, -0.08677323162555695, -0.24566400051116943, -0.07169080525636673, -0.17408138513565063, 0.21697822213172913, 0.08144998550415039, -0.3090781271457672, 0.06694132834672928, 0.22156624495983124, 0.016206834465265274, -0.247819721698761, -0.1333065629005432, -0.1538914293050766, 0.003874991089105606, -0.06856890022754669, 0.08369458466768265, 0.1930703967809677, -0.058295637369155884, -0.1949150115251541, -0.00865257903933525, -0.33970406651496887, -0.16724155843257904, 0.28661543130874634, -0.08073021471500397, 0.14519484341144562, -0.24705182015895844, -0.12296215444803238, -0.0036018844693899155, -0.407646119594574, 0.2955414652824402, 0.2650904059410095, 0.2087162584066391, 0.024371735751628876, 0.3773791790008545, -0.13656966388225555, 0.01599796675145626, -0.2555233836174011, 0.1642342507839203, -0.007290735840797424, 0.42097023129463196, -0.11122950166463852, -0.43761077523231506, -0.22335997223854065, -0.16133606433868408, -0.05356233939528465, 0.23505766689777374, -0.5286443829536438, 0.16939379274845123, -0.17808708548545837, 0.10398009419441223, -0.06733232736587524, 0.07227368652820587, 0.20048142969608307, 0.14294388890266418, -0.31509536504745483, 0.08809197694063187, 0.06080571189522743, 0.19916242361068726, -0.2377365231513977, 0.14493295550346375, -0.261432945728302, 0.16989821195602417, 0.000816885381937027, 0.637881875038147, -0.09186314046382904, 0.05513972043991089, 0.24133285880088806, 0.05178758502006531, 0.25623080134391785, -0.050076283514499664, 0.20245316624641418, 0.2518216669559479, -0.049579918384552, -0.20234867930412292, 0.08150538802146912, -0.07378967851400375, -0.5142367482185364, 0.32823342084884644, 0.018414311110973358, 0.024815574288368225, -0.24037683010101318, 0.5146884918212891, -0.19795748591423035, 0.0891408771276474, -0.09615722298622131, 0.021269917488098145, -0.16014711558818817, -0.320248007774353, -0.04405345395207405, -0.5314307808876038, 0.13978591561317444, -0.03510443493723869, -0.0022455044090747833, 0.1801011711359024, -0.5412154793739319, 0.3140362501144409, -0.11694688349962234, 0.23707100749015808, 0.23105178773403168, -0.3713720440864563, 0.23965701460838318, -0.2942925989627838, 0.43551725149154663, 0.2848827540874481, -0.1141158789396286, 0.04774457588791847, 0.46664315462112427, -0.5301058292388916, -0.256193071603775, -0.15263068675994873, 0.10418784618377686, -0.24208803474903107, -0.21070995926856995, -0.3623870015144348, 0.08866504579782486, 0.283386766910553, -0.0006768062012270093, -0.158934086561203, -0.05194469541311264, -0.3303662836551666, -0.19951701164245605, -0.24874866008758545, 0.32974478602409363, 0.06291162967681885, 0.15509673953056335, -0.1957339197397232, -0.17505165934562683, -0.08126825094223022, -0.11599132418632507, -0.2853394150733948, 0.06005759909749031, 0.28550291061401367, -0.4942672848701477, 0.029853589832782745, -0.07955243438482285, 0.012889038771390915, 0.5386925339698792, 0.030476577579975128, 0.03740602731704712, 0.04704098403453827, 0.10299532115459442, -0.23964133858680725, 0.48241832852363586, 0.32274240255355835, -0.11112487316131592, 0.18081867694854736, -0.07507813721895218, 0.14592689275741577, 0.14465007185935974, -0.11205189675092697, 0.12267199903726578, -0.14314952492713928, -0.14141951501369476, -0.01785336621105671, 0.31566959619522095, 0.16549623012542725, 0.10259005427360535, 0.18333028256893158, 0.018422313034534454, -0.08552665263414383, 0.3668995499610901, 0.4161173701286316, 0.7948799133300781, -0.16732770204544067, 0.22125288844108582, 0.055567383766174316, -0.06350017338991165, -0.14020559191703796, -0.24963924288749695, 0.19323362410068512, -0.44580501317977905, 0.2114599198102951, 0.22636698186397552, -0.22760626673698425, 0.05019814893603325, 0.00857783854007721, -0.12259477376937866, -0.049319371581077576, 0.0851733535528183, 0.02679002843797207, -0.15479730069637299, -0.08865755796432495, -0.2802196443080902, -0.1497671902179718, -0.03837117180228233, 0.09238125383853912, -0.11736223101615906, -0.33587807416915894, -0.0916295275092125, -0.19307735562324524, 0.027617719024419785, -0.30427229404449463, -0.14996397495269775, -0.11600293219089508, -0.5122197866439819, -0.07588034868240356, 0.16622982919216156, -0.5300965905189514, -0.14154139161109924, -0.0056666359305381775, -0.18317921459674835, 0.03613452613353729, -0.033342137932777405, 0.06432005763053894, 0.13880634307861328, -0.020210035145282745, 0.1148013323545456, -0.11212725937366486, 0.009699326008558273, -0.07761220633983612, -0.1261831372976303, 0.3979237675666809, -0.054190538823604584, -0.19946756958961487, 0.013657063245773315, 0.25965267419815063, 0.41457706689834595, -0.1536858081817627, 0.08271679282188416, -0.3003692924976349, -0.3227270543575287, -0.1378633826971054, 0.18005679547786713, 0.1155218705534935, 0.017047708854079247, 0.2626227140426636, -0.015187427401542664, -0.2460884153842926, -0.08367536962032318, 0.010725043714046478, 0.2628698945045471, 0.012937884777784348, 0.3506109416484833, -0.0543491393327713, -0.10904227197170258, -0.22147372364997864, 0.1898026168346405, 0.28531309962272644, -0.7898563146591187, 0.12476634234189987, -0.11398911476135254, -0.15918183326721191, 0.1469489336013794, 0.1476289927959442, 0.08069583773612976, 0.11278346180915833, -0.24600814282894135, -0.0628586933016777, -0.3799026608467102, 0.24884304404258728, 0.028834538534283638, 0.20318810641765594, 0.07187258452177048, -0.23888973891735077, -0.06686258316040039, 0.3033072352409363, -0.37454918026924133, -0.0573975071310997, 0.012439316138625145, 0.2537422180175781, -0.38916751742362976, -0.01603350043296814, 0.011337341740727425, 0.044533293694257736, 0.06985334306955338, 0.22351624071598053, -0.17244559526443481, -0.30891215801239014, 0.1447746604681015, 0.05620211362838745, -0.09836632013320923, -0.03551407903432846, -0.028985626995563507, -0.100167416036129, -0.042610134929418564, 0.030371008440852165, 0.1570744663476944, -0.24200031161308289, -0.20707274973392487, -0.11625037342309952, 0.3756389021873474, -0.04939952492713928, -0.1396435797214508, 0.004624480381608009, -0.217464417219162, 0.15861128270626068, -0.09027858823537827, 0.3150935471057892, -0.04486308991909027, -0.12603721022605896, 0.1695825606584549, 0.090492844581604, 0.22452743351459503, 0.08665009588003159, 0.12034935504198074, -0.46027910709381104, -0.41131076216697693, -0.16130341589450836, 0.36403143405914307, 0.3361850082874298, -0.05170527100563049, -0.28846070170402527, 0.21672943234443665, 0.32399284839630127, -0.20286570489406586, -0.06644033640623093, -0.14066220819950104, -0.12371058017015457, 0.030636068433523178, 0.2617639899253845, 0.25654137134552, -0.5555540323257446, 0.19275760650634766, 0.4508797824382782, 0.1392512172460556, -0.19322754442691803, -0.2722085416316986, 0.44982776045799255, -0.09147109091281891, -0.07245095074176788, 0.5402438640594482, 0.0043950676918029785, 0.5387322902679443, 0.311368465423584, -0.06628582626581192, 0.29773426055908203, 0.3434538245201111, -0.08648322522640228, -0.158575177192688, -0.11586111783981323, 0.11482444405555725, 0.11682727932929993, 0.16522523760795593, 0.11477610468864441, 0.42536661028862, 0.34854936599731445, 0.5968719124794006, -0.05284804105758667, -0.17074285447597504, 0.03459835425019264, -0.3269842565059662, 0.05583398416638374, -0.028752995654940605, -0.10931446403265, 0.06313006579875946, 0.05637979134917259, -0.17636647820472717, 0.011553045362234116, 0.4878479838371277, 0.12998786568641663, -0.05192488431930542, -0.08556832373142242, 0.44941020011901855, 0.021516181528568268, 0.22920608520507812, -0.16956137120723724, 0.25909459590911865, 0.12961448729038239, -0.23571684956550598, -0.09537915885448456, 0.48959434032440186, 0.5383057594299316, 0.32209479808807373, -0.038878366351127625, 0.04156263545155525, -0.05077104642987251, -0.013641024939715862, -0.26972270011901855, 0.2568588852882385, 0.3559225797653198, -0.05622703954577446, 0.07803666591644287, 0.1791963279247284, -0.2035709023475647, 0.16290633380413055, 0.2092321813106537, -0.10759647190570831, 0.22318686544895172, -0.25055500864982605, 0.07042288780212402, -0.671216607093811, -0.19039927423000336, -0.05385950952768326, -0.1335999071598053, 0.13011044263839722, 0.3716917932033539, -0.22083236277103424, -0.0902182012796402, -0.3892148435115814, 0.10391020774841309, 0.12967531383037567, 0.7368190288543701, 0.25658348202705383, 0.16669687628746033, -0.2118951976299286, 0.03371530771255493, -0.2969886064529419, 0.26021620631217957, -0.4837786555290222, 0.27092722058296204, 0.06062350422143936, 0.33745843172073364, 0.14968964457511902, 0.09390397369861603, 0.2188638299703598, 0.3045058250427246, -0.22366255521774292, 0.524519145488739, -0.4762808382511139, 0.24400778114795685, 0.42802828550338745, -0.04454874247312546, 0.015014205127954483, -0.5355582237243652, 0.49584275484085083, -0.4614115357398987, 0.1909584105014801, -0.02204999327659607, 0.08156958222389221, 0.272914320230484, 0.27614301443099976, 0.32032114267349243, 0.07171265035867691, -0.13838323950767517, -0.005937095731496811, -0.06083795428276062, -0.37843820452690125, -0.09009824693202972, -0.12481015175580978, -0.07167939096689224, 0.46954092383384705, 0.06902442872524261, -0.1272660791873932, -0.4673701226711273, 0.010935588739812374, 0.2407940775156021, -0.07189710438251495, 0.09885938465595245, 0.24726790189743042, -0.019226545467972755, -0.016052179038524628, -0.054551832377910614, -0.023741861805319786, -0.13854163885116577, 0.04408080130815506, -0.1961537003517151, -0.5116965174674988, -0.5331929326057434, 0.3009813129901886, -0.26605093479156494, -0.15262162685394287, -0.004291957709938288, 0.43459782004356384, 0.3541591763496399, -0.024741901084780693, -0.4312463402748108, 0.2479519546031952, 0.16892988979816437, 0.19329071044921875, -0.21340706944465637, 0.12402932345867157, -0.10766170918941498, 0.06069112941622734, -0.10389146208763123, 0.4455036222934723, 0.00357620045542717, -0.1341077834367752, -0.32934731245040894, -0.4620686173439026 ]
https://github.com/huggingface/datasets/pull/70
adding RACE, QASC, Super_glue and Tiny_shakespear datasets
I think rebasing to master will solve the quality test and the datasets that don't have a testing structure yet because of the manual download - maybe you can put them in `datasets under construction`? Then would also make it easier for me to see how to add tests for them :-)
52
text: adding RACE, QASC, Super_glue and Tiny_shakespear datasets I think rebasing to master will solve the quality test and the datasets that don't have a testing structure yet because of the manual download - maybe you can put them in `datasets under construction`? Then would also make it easier for me to see how to add tests for them :-)
[ -0.4408917725086212, -0.05544879287481308, -0.23365673422813416, 0.0253789983689785, -0.11061500012874603, 0.2853117883205414, -0.1430119276046753, 0.43596792221069336, 0.001182185485959053, 0.042145587503910065, -0.10830936580896378, 0.06994122266769409, -0.1519663780927658, 0.3624449670314789, 0.024393513798713684, 0.05374762788414955, -0.06827833503484726, 0.2220848798751831, -0.4115328788757324, 0.01080235093832016, -0.22650408744812012, 0.007712299004197121, 0.06960846483707428, -0.10055266320705414, -0.04685425013303757, -0.14220382273197174, -0.024776306003332138, 0.031917933374643326, -0.3384418487548828, -0.5840914249420166, -0.20742592215538025, 0.41383886337280273, 0.01193256676197052, 0.22324377298355103, -0.00010232849308522418, -0.09496483206748962, 0.329107403755188, -0.09516317397356033, -0.11044435203075409, 0.35251641273498535, -0.3454655706882477, -0.012052435427904129, 0.09644562005996704, 0.05146130174398422, -0.07511301338672638, 0.21407118439674377, -0.029344508424401283, -0.08655564486980438, 0.09258688986301422, 0.48107826709747314, 0.30094361305236816, 0.26286959648132324, -0.1765250563621521, -0.30034729838371277, 0.2590761184692383, -0.21647386252880096, -0.18560683727264404, 0.18891046941280365, 0.43455085158348083, 0.2006089687347412, 0.006830461323261261, 0.16205675899982452, 0.18753266334533691, 0.1594514101743698, 0.016393672674894333, -0.33421316742897034, 0.3443952798843384, -0.47019800543785095, 0.06382572650909424, 0.33010128140449524, 0.49083080887794495, -0.038181401789188385, -0.15118423104286194, 0.06998512893915176, 0.12832798063755035, -0.1634727567434311, -0.019672825932502747, 0.032568298280239105, -0.06368070840835571, 0.08891443908214569, -0.2484152466058731, -0.13431736826896667, -0.04641871154308319, 0.05847411975264549, 0.06941573321819305, 0.14535357058048248, 0.1109924465417862, -0.16632702946662903, 0.26441681385040283, 0.2867148518562317, -0.03558754548430443, 0.13303178548812866, -0.3703480362892151, -0.20456276834011078, -0.08488185703754425, -0.30363836884498596, 0.14867693185806274, -0.038355231285095215, 0.15698906779289246, 0.12118621170520782, -0.13119438290596008, 0.13777270913124084, 0.15455584228038788, -0.00806419551372528, -0.11291830241680145, 0.16038139164447784, 0.2802885174751282, 0.04905290529131889, 0.3028276562690735, 0.23055827617645264, 0.1263129860162735, 0.03724424168467522, 0.07033304870128632, -0.14739802479743958, -0.23816467821598053, 0.17325124144554138, -0.0050265975296497345, -0.29859623312950134, -0.22209115326404572, 0.0014997152611613274, 0.05936112254858017, -0.12845483422279358, -0.027416851371526718, 0.4085918068885803, -0.07898262143135071, -0.16813066601753235, -0.08925100415945053, 0.29028958082199097, -0.10179082304239273, -0.08388514816761017, -0.2210969477891922, 0.029736116528511047, -0.2553304433822632, 0.02586660534143448, 0.29145389795303345, 0.014000494964420795, 0.4319142699241638, 0.10770472884178162, -0.032085493206977844, 0.0801098644733429, 0.15562297403812408, 0.17720302939414978, -0.12442896515130997, 0.3637006878852844, -0.031195737421512604, 0.05271226912736893, -0.20303703844547272, 0.12829311192035675, -0.13628213107585907, 0.15619789063930511, -0.07132027298212051, -0.3863442838191986, 0.011849209666252136, 0.3269497752189636, -0.2666994631290436, -0.23773273825645447, -0.07677906006574631, 0.1722620576620102, -0.2558037340641022, 0.07171455025672913, 0.1661749631166458, -0.059711575508117676, 0.12979455292224884, 0.02792370691895485, 0.08395900577306747, 0.28409314155578613, -0.45214569568634033, -0.06448669731616974, -0.08194868266582489, -0.3115394711494446, 0.11859670281410217, 0.08472834527492523, 0.007801234722137451, 0.10020212084054947, -0.14790599048137665, -0.08048328757286072, 0.2893519401550293, -0.07167946547269821, -0.2610088288784027, 0.009071833454072475, 0.09992066025733948, -0.06779515743255615, 0.21281862258911133, -0.08896361291408539, 0.15007054805755615, -0.005899165291339159, -0.1925317943096161, 0.14279602468013763, -0.10373541712760925, -0.12304607033729553, -0.42657947540283203, -0.17649731040000916, 0.12413470447063446, 0.27549898624420166, 0.3546457290649414, 0.013780735433101654, -0.03260466456413269, -0.40259990096092224, 0.040744706988334656, -0.01737004891037941, -0.03116687573492527, -0.001967877149581909, 0.29022881388664246, -0.17572903633117676, -0.13379865884780884, -0.028125833719968796, -0.11108911782503128, 0.21965885162353516, -0.23353996872901917, 0.43990960717201233, 0.09798061847686768, -0.13098114728927612, -0.3496123254299164, -0.08019837737083435, -0.049417536705732346, -0.46959951519966125, 0.2089538425207138, 0.0048800259828567505, -0.15469661355018616, -0.05631454288959503, -0.05749762803316116, 0.06518881767988205, -0.3428291976451874, 0.019030114635825157, 0.09431223571300507, -0.053142137825489044, -0.26732775568962097, -0.019163470715284348, 0.16796040534973145, 0.13406145572662354, -0.04567420482635498, -0.2243567556142807, -0.05217624083161354, 0.37385085225105286, -0.11978200078010559, -0.08956116437911987, 0.2987525165081024, 0.29379430413246155, 0.1579888015985489, -0.15596821904182434, -0.02699756808578968, 0.1381334811449051, -0.19111096858978271, 0.018298186361789703, -0.11661224812269211, 0.294093519449234, -0.06904111802577972, 0.13245436549186707, 0.09264589846134186, 0.09741726517677307, 0.15660922229290009, -0.20983020961284637, -0.03725959733128548, 0.06645786762237549, 0.2842733860015869, -0.07049351930618286, 0.20641370117664337, -0.012860020622611046, -0.12764962017536163, 0.17118576169013977, 0.2143646627664566, -0.323823481798172, 0.04589857906103134, 0.24964994192123413, -0.06606043130159378, -0.05805879831314087, 0.1357565075159073, 0.23204682767391205, 0.3423190116882324, 0.37637582421302795, 0.16742199659347534, 0.10135316103696823, -0.04648303613066673, -0.2195041924715042, 0.21365264058113098, 0.04405006393790245, -0.10228808969259262, 0.12400433421134949, 0.06713908165693283, -0.1801532804965973, -0.2958996593952179, 0.01333983987569809, 0.11411947757005692, 0.3553580045700073, -0.30861717462539673, -0.2997378408908844, -0.2311219871044159, 0.007646750658750534, 0.21095281839370728, 0.24341143667697906, -0.12824185192584991, -0.30683955550193787, 0.49948132038116455, -0.22872719168663025, -0.38004642724990845, 0.26953384280204773, -0.052381731569767, 0.4588086009025574, -0.1930045187473297, 0.015420559793710709, -0.2846144139766693, -0.10482968389987946, -0.223130464553833, 0.3071921467781067, 0.22113746404647827, 0.19982856512069702, 0.6155147552490234, -0.18938888609409332, 0.04757758229970932, -0.11211662739515305, -0.2361215054988861, 0.003178313374519348, -0.1279439479112625, 0.5249523520469666, 0.11368406563997269, 0.26438045501708984, 0.05447228252887726, -0.27571165561676025, 0.04615670442581177, -0.24574831128120422, -0.13873958587646484, -0.17135675251483917, -0.20128098130226135, -0.12069843709468842, -0.12291204929351807, -0.7384072542190552, -0.07911515235900879, -0.38944634795188904, 0.1818217784166336, -0.10440665483474731, 0.20413395762443542, -0.16822543740272522, 0.06196623668074608, 0.040049128234386444, -0.14465539157390594, 0.06170771270990372, -0.1836330145597458, -0.3432139754295349, 0.3201734125614166, -0.2622964680194855, -0.2362333983182907, 0.03808710351586342, -0.04797481745481491, 0.32737165689468384, -0.27571916580200195, -0.4982846975326538, -0.13735371828079224, -0.11990058422088623, 0.11875095963478088, 0.16262245178222656, -0.17329919338226318, 0.4023646116256714, -0.023008733987808228, -0.2670730650424957, -0.03677430376410484, -0.044225431978702545, 0.1180431917309761, 0.18310683965682983, 0.2923016846179962, -0.3909864127635956, 0.30727052688598633, -0.20700088143348694, 0.6984169483184814, -0.06447888910770416, 0.240641251206398, 0.16296426951885223, 0.06973892450332642, 0.23456265032291412, -0.19189098477363586, -0.11430918425321579, 0.03512721508741379, 0.00046941637992858887, 0.03379363566637039, 0.2662087082862854, 0.0525791198015213, 0.06907646358013153, 0.044997937977313995, 0.17831094563007355, -0.1673884391784668, -0.1600109338760376, 0.21994702517986298, -0.31856489181518555, 0.05010484904050827, -0.15991012752056122, 0.04007059335708618, 0.12369999289512634, 0.0027961479499936104, 0.2874974012374878, 0.3646778464317322, 0.1293608546257019, -0.14694786071777344, -0.6380521059036255, -0.03170899674296379, -0.34300559759140015, 0.2512855529785156, -0.11468657106161118, 0.23242579400539398, -0.24936135113239288, -0.15939298272132874, 0.052778445184230804, 0.056052066385746, 0.4159863591194153, -0.599609375, -0.25942564010620117, 0.33747389912605286, 0.05945047736167908, -0.14045129716396332, -0.2730574309825897, -0.28004157543182373, -0.23706752061843872, 0.3859059512615204, -0.1411963552236557, -0.1436578631401062, -0.21847602725028992, 0.3428557813167572, -0.12285911291837692, 0.03899027034640312, -0.17427900433540344, -0.2015266865491867, -0.17543765902519226, -0.2911486029624939, 0.18847796320915222, -0.016108438372612, -0.05215568095445633, -0.30948832631111145, -0.055458925664424896, 0.020358994603157043, -0.030362451449036598, 0.4268379807472229, 0.1746530681848526, 0.1726381480693817, 0.06648080796003342, 0.19587980210781097, 0.03544323518872261, -0.1694028377532959, 0.012039020657539368, 0.3358692526817322, -0.22205719351768494, 0.10517293959856033, 0.15038177371025085, -0.24368900060653687, 0.46042004227638245, 0.24950140714645386, 0.12105786800384521, 0.03273244947195053, -0.24795949459075928, 0.20218801498413086, -0.2927508056163788, 0.48212864995002747, 0.11555773764848709, 0.04420366510748863, -0.09169013053178787, -0.12840595841407776, 0.3474775552749634, 0.04094349220395088, -0.3026546835899353, 0.3745819330215454, -0.004831776022911072, -0.27954432368278503, 0.3176689147949219, 0.11302634328603745, 0.8558438420295715, -0.195111945271492, -0.039199989289045334, -0.05053599923849106, -0.16617313027381897, 0.0046948594972491264, -0.4127006530761719, 0.03270334377884865, -0.04541630297899246, -0.1869274377822876, 0.035316139459609985, -0.04060012847185135, 0.2127714455127716, -0.08503226935863495, -0.3520078659057617, 0.34959176182746887, 0.09730815887451172, 0.24509942531585693, 0.1826648712158203, 0.36241984367370605, 0.05115269869565964, -0.03896528109908104, 0.2412438690662384, 0.2665015459060669, 0.13312703371047974, 0.08557194471359253, -0.18603336811065674, -0.0614551305770874, 0.164496511220932, 0.07918962091207504, -0.24755899608135223, -0.10637691617012024, -0.3050747811794281, -0.1976848691701889, -0.04135015979409218, -0.028400294482707977, 0.25342580676078796, -0.06773114204406738, 0.1534772515296936, 0.3644566535949707, -0.3024067282676697, 0.31654173135757446, 0.13323743641376495, 0.03268326818943024, 0.22349824011325836, -0.005205158144235611, 0.04546685516834259, -0.23629146814346313, -0.2943326234817505, 0.06523796916007996, -0.13190113008022308, -0.22683769464492798, -0.20713530480861664, -0.15893712639808655, -0.04451018571853638, -0.32563504576683044, -0.09364709258079529, 0.05040725693106651, -0.140265554189682, -0.2615620493888855, 0.26564791798591614, 0.01926657184958458, -0.2768552601337433, 0.2811471223831177, 0.15823295712471008, -0.37118953466415405, -0.2907775938510895, 0.03499060496687889, -0.005831580609083176, -0.0851677805185318, 0.342729777097702, 0.027663785964250565, 0.047476477921009064, -0.4388487935066223, -0.008367057889699936, 0.41147568821907043, -0.21922320127487183, 0.19336113333702087, -0.18548013269901276, -0.5800184607505798, 0.03650152310729027, 0.22726868093013763, 0.4207150340080261, -0.013017997145652771, -0.06947904825210571, -0.01441727951169014, -0.2983771860599518, 0.24306795001029968, 0.05576104298233986, 0.44532349705696106, -0.6129478812217712, 0.2624581754207611, -0.045901790261268616, 0.3640187978744507, -0.4838760197162628, 0.06635375320911407, -0.3372815251350403, 0.1564546525478363, -0.0296645425260067, -0.11109323054552078, 0.10608268529176712, -0.11086156964302063, 0.2180553525686264, -0.021465975791215897, -0.4830112159252167, -0.3772352933883667, 0.007215399295091629, 0.08088651299476624, -0.1797921061515808, 0.10053408890962601, 0.2838361859321594, 0.12096348404884338, -0.07734327018260956, 0.1508847326040268, 0.04073021933436394, -0.42647024989128113, -0.10107935965061188, 0.21706102788448334, 0.1310081034898758, -0.33254075050354004, 0.027750402688980103, 0.01863456331193447, -0.03222227096557617, 0.26825791597366333, -0.025749528780579567, 0.07427828013896942, 0.09231825172901154, -0.12546585500240326, 0.23369339108467102, 0.29787665605545044, 0.01990290731191635, 0.29201021790504456, 0.08927766978740692, 0.1408996880054474, 0.010575700551271439, 0.08254105597734451, 0.11188182234764099, 0.14945505559444427, -0.09313444048166275, -0.023145947605371475, 0.050921954214572906, 0.38989806175231934, -0.2910902202129364, 0.010759399272501469, 0.008946998976171017, 0.014359274879097939, 0.2016068696975708, -0.06022239476442337, 0.414350301027298, -0.10000430792570114, 0.3318507671356201, 0.266393780708313, -0.1554834544658661, -0.11520016193389893, 0.19508473575115204, 0.2748962342739105, -0.1958831250667572, -0.12060721218585968, 0.35733693838119507, -0.22037041187286377, -0.1647683084011078, -0.024608351290225983, 0.26826223731040955, 0.5334828495979309, 0.05516853928565979, 0.27731919288635254, 0.15227819979190826, -0.06600837409496307, 0.2703244984149933, 0.1168065294623375, 0.09640806913375854, 0.1614067554473877, 0.2779099941253662, 0.3549168109893799, -0.1916227489709854, -0.4770102798938751, -0.2979027032852173, -0.2968581020832062, 0.01998356357216835, -0.16711896657943726, 0.0694361999630928, -0.2819734513759613, -0.15738286077976227, 0.039101410657167435, 0.1270504742860794, -0.07077068090438843, 0.16988663375377655, -0.06903812289237976, -0.15169022977352142, -0.12925279140472412, -0.15842851996421814, 0.002667512744665146, 0.1606205403804779, -0.2199692577123642, 0.1613180786371231, 0.19765864312648773, -0.08793342113494873, 0.23247632384300232, 0.34218743443489075, 0.3764990270137787, -0.04089270532131195, -0.4112238585948944, 0.09585403650999069, -0.01713041216135025, -0.044337376952171326, -0.009869832545518875, 0.32831576466560364, 0.3448493182659149, -0.05677570030093193, 0.06504103541374207, 0.2807174324989319, -0.26486170291900635, 0.2027469128370285, -0.22274447977542877, -0.2574971616268158, -0.19025364518165588, 0.27683085203170776, 0.3735215961933136, -0.29323095083236694, 0.055086974054574966, 0.019374385476112366, -0.20226719975471497, -0.03539394959807396, 0.46299856901168823, -0.3387009799480438, -0.07156378030776978, -0.09432796388864517, 0.14770925045013428, -0.21000328660011292, 0.8367064595222473, 0.11315547674894333, 0.2239130437374115, -0.4762166738510132, -0.18227562308311462, -0.3965757489204407, -0.1757933497428894, 0.039313703775405884, 0.2688957452774048, 0.22104135155677795, 0.08965244144201279, 0.3307935893535614, 0.06779248267412186, 0.14223186671733856, 0.10243447870016098, -0.2394399791955948, -0.018333405256271362, -0.4347178041934967, 0.15195737779140472, -0.0902612954378128, 0.24687159061431885, 0.099657341837883, -0.20801642537117004, 0.15719878673553467, -0.10282014310359955, 0.11610104888677597, 0.17622098326683044, -0.03256761655211449, 0.5137014985084534, -0.13107505440711975, 0.45100298523902893, 0.12267117947340012, 0.4339926838874817, -0.1168404221534729, -0.13309231400489807, -0.13735158741474152, -0.35716739296913147, -0.06634453684091568, -0.03986388444900513, 0.11763475835323334, 0.31860536336898804, 0.12884435057640076, -0.09368804097175598, -0.16620071232318878, 0.25889140367507935, 0.1747511625289917, 0.17288503050804138, -0.33379054069519043, 0.03931472450494766, 0.09184718877077103, 0.1021895781159401, 0.08633309602737427, 0.21314913034439087, 0.030406445264816284, -0.11480043083429337, -0.290815532207489, -0.1879778355360031, 0.47089502215385437, 0.0907706469297409, -0.09400852024555206, -0.14091576635837555, 0.23914478719234467, 0.26473870873451233, 0.20002201199531555, -0.7420453429222107, -0.1842069923877716, 0.233701691031456, -0.04038659483194351, -0.28083401918411255, 0.6029937863349915, 0.32094064354896545, 0.0039007142186164856, 0.0428539477288723, 0.23895379900932312, -0.0890948697924614, -0.11894617974758148, -0.19495020806789398, -0.43515676259994507 ]
https://github.com/huggingface/datasets/pull/60
Update to simplify some datasets conversion
Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `tf.io.gfile.glob` into `glob.glob` (will need to add `import glob`)
This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well.
20
text: Update to simplify some datasets conversion This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well. Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `tf.io.gfile.glob` into `glob.glob` (will need to add `import glob`)
[ -0.07968482375144958, -0.15700995922088623, -0.09662404656410217, -0.00812029093503952, 0.5373671054840088, -0.02191872149705887, -0.1917993277311325, 0.3212742507457733, -0.0460391640663147, 0.058120351284742355, -0.26871827244758606, 0.49565353989601135, 0.015576887875795364, 0.3363998234272003, 0.35997912287712097, -0.4056544303894043, 0.2958604693412781, 0.16917777061462402, -0.16560125350952148, -0.14689740538597107, -0.31563177704811096, 0.4901934266090393, -0.11814151704311371, 0.1659242957830429, 0.060759756714105606, 0.049328140914440155, -0.2954792380332947, 0.22474831342697144, -0.2647281587123871, -0.16672413051128387, -0.1293681263923645, 0.10120481997728348, 0.026606429368257523, 0.23074792325496674, -0.00010319129069102928, 0.08031924068927765, 0.14071524143218994, -0.14105898141860962, -0.08341866731643677, -0.08716258406639099, 0.02901472896337509, -0.2954508364200592, -0.10279423743486404, -0.18238012492656708, -0.15064884722232819, -0.4302457869052887, 0.054861556738615036, 0.07815572619438171, 0.3002946376800537, 0.2957608997821808, 0.2760598361492157, 0.32649752497673035, 0.31431150436401367, 0.06940990686416626, 0.09637133777141571, 0.19978347420692444, -0.1750180423259735, 0.2124359905719757, 0.226797416806221, 0.16901519894599915, 0.07567913830280304, 0.32184064388275146, -0.04162908345460892, -0.31020841002464294, 0.3992115557193756, -0.030380282551050186, -0.2000555694103241, -0.2318284511566162, 0.008611785247921944, 0.20735642313957214, 0.30768588185310364, -0.32546156644821167, -0.40661096572875977, -0.1673406958580017, 0.05308510363101959, -0.3752709925174713, 0.19201447069644928, 0.036334097385406494, -0.06845802068710327, 0.25513073801994324, -0.02145562879741192, -0.11191952973604202, -0.18267926573753357, -0.09611351788043976, -0.03512775897979736, 0.4193006753921509, -0.007518375292420387, -0.07366063445806503, 0.12945158779621124, -0.22741292417049408, -0.4246734082698822, -0.07694034278392792, -0.05166735127568245, -0.08498010039329529, -0.0023476742208003998, -0.39556610584259033, 0.11688078939914703, 0.383224755525589, 0.07362890243530273, -0.09649556875228882, -0.049686282873153687, 0.2443414032459259, -0.2396584451198578, -0.007875435054302216, -0.06240550056099892, 0.12396439909934998, 0.021929465234279633, 0.04366551339626312, 0.2475736439228058, -0.06226874515414238, 0.08681708574295044, 0.08381309360265732, -0.08786819130182266, -0.21094167232513428, -0.3633456528186798, 0.27178290486335754, 0.035499121993780136, -0.0640333890914917, 0.0065279994159936905, -0.13554930686950684, 0.06798683106899261, -0.06745094805955887, 0.03932079300284386, 0.36508849263191223, 0.03490135818719864, 0.02056596428155899, 0.3052690625190735, 0.12642186880111694, -0.3617323935031891, -0.3455362617969513, -0.14919723570346832, 0.07105472683906555, -0.1270197480916977, -0.18348509073257446, 0.04273494705557823, 0.08573946356773376, 0.24210017919540405, 0.042932797223329544, 0.158532977104187, 0.19176144897937775, -0.07443662732839584, 0.21395862102508545, 0.11713587492704391, 0.1815362274646759, -0.2071065902709961, -0.1868811696767807, 0.14175847172737122, -0.14525489509105682, -0.33010628819465637, 0.23272007703781128, 0.014610245823860168, -0.11476096510887146, -0.2028765082359314, 0.25307199358940125, -0.24158424139022827, -0.495937317609787, 0.16998714208602905, 0.44913601875305176, -0.07455601543188095, -0.14455702900886536, 0.1462712287902832, -0.27835845947265625, -0.22674313187599182, -0.09423353523015976, 0.14806126058101654, 0.14386466145515442, -0.3005785346031189, -0.007662050426006317, 0.25776970386505127, -0.27775275707244873, 0.14903360605239868, 0.20456145703792572, -0.033499106764793396, 0.12677885591983795, -0.14798077940940857, 0.4176456928253174, 0.29758235812187195, -0.07021894305944443, -0.0170480664819479, 0.23936967551708221, 0.0393647700548172, -0.057579949498176575, 0.07105063647031784, -0.05562809482216835, 0.08595235645771027, -0.15255765616893768, 0.05064550042152405, 0.17934846878051758, -0.2115764021873474, 0.13179513812065125, -0.24987134337425232, -0.10604581236839294, 0.1345902979373932, -0.03583642840385437, -0.11362200975418091, -0.07649191468954086, -0.01789184659719467, 0.2406151443719864, 0.2860991954803467, -0.3735721707344055, 0.03994420915842056, 0.16003449261188507, 0.08333291113376617, 0.03426598757505417, 0.14237484335899353, 0.04594936966896057, -0.31293830275535583, -0.14211153984069824, -0.021172041073441505, 0.35562992095947266, -0.17304153740406036, -0.3246843218803406, -0.04197967052459717, 0.0024733487516641617, 0.03541896119713783, -0.04147259518504143, 0.22586259245872498, -0.0027877986431121826, 0.09879323840141296, -0.07448859512805939, -0.03979811444878578, -0.23831051588058472, -0.1700141727924347, 0.014463118277490139, -0.11354024708271027, 0.012509452179074287, -0.2818686068058014, -0.1419818103313446, -0.0012096315622329712, 0.22546663880348206, 0.13433077931404114, -0.31612399220466614, -0.13362085819244385, 0.25337111949920654, -0.18306854367256165, 0.2062540501356125, 0.08360788226127625, 0.5041856169700623, 0.35231003165245056, -0.04630769416689873, 0.26200175285339355, 0.17487990856170654, 0.05434654653072357, 0.11701484769582748, -0.3579239249229431, 0.6116122007369995, -0.12331576645374298, -0.006788693368434906, 0.22783179581165314, 0.0013578850775957108, 0.3427690267562866, -0.04776836931705475, -0.11764972656965256, -0.13739396631717682, 0.016505230218172073, -0.07645940780639648, -0.0909610241651535, 0.07043706625699997, -0.6368565559387207, 0.4665248394012451, 0.6874212026596069, -0.29128286242485046, -0.12096766382455826, 0.30004483461380005, 0.09558819234371185, -0.19632825255393982, 0.1473454385995865, 0.1131046712398529, 0.22336027026176453, 0.4894590973854065, 0.32088902592658997, 0.14180517196655273, -0.08893569558858871, -0.22869856655597687, 0.5846776366233826, -0.179108127951622, -0.1827927976846695, 0.1803703010082245, -0.16062548756599426, 0.06655978411436081, -0.49314168095588684, 0.06534770131111145, 0.04376264661550522, 0.33703577518463135, -0.3345518708229065, -0.05158169940114021, -0.3371967673301697, -0.4973868727684021, -0.06997480988502502, 0.23186112940311432, -0.1369476020336151, -0.39395153522491455, 0.1766863763332367, -0.13590620458126068, -0.3783614933490753, 0.27131345868110657, 0.11175417900085449, 0.06581491231918335, -0.039133381098508835, -0.0775715559720993, -0.38352206349372864, -0.23481374979019165, -0.27910304069519043, 0.14699062705039978, 0.40663376450538635, -0.15526825189590454, 0.3687181770801544, -0.24276165664196014, -0.07385818660259247, -0.4447791576385498, -0.7263877987861633, 0.23483143746852875, -0.6040287017822266, 0.050565868616104126, 0.3307252824306488, 0.061670731753110886, -0.06878651678562164, -0.03295515477657318, 0.2629130780696869, -0.2971526086330414, -0.4045804440975189, 0.00771896168589592, 0.01724543422460556, -0.13379879295825958, -0.5195290446281433, -0.3564836382865906, -0.11293109506368637, -0.3895079791545868, 0.2863782048225403, -0.06410645693540573, 0.3203330636024475, 0.4576796591281891, 0.19450661540031433, 0.20711874961853027, 0.038416896015405655, -0.008745027706027031, -0.25351452827453613, -0.14014023542404175, 0.3011826276779175, -0.20875979959964752, -0.4857637584209442, -0.09993958473205566, 0.03561072051525116, 0.06199813261628151, -0.18497228622436523, -0.307253897190094, -0.49787524342536926, -0.2306445688009262, 0.39870938658714294, 0.08410216867923737, 0.40395358204841614, 0.2562214732170105, 0.1710502654314041, -0.3359380066394806, -0.31092581152915955, -0.22991134226322174, 0.050960689783096313, 0.09205356240272522, 0.07873056828975677, 0.16020187735557556, 0.2540789544582367, 0.004053149372339249, 0.2964569330215454, 0.0018285736441612244, 0.023913487792015076, 0.12638768553733826, -0.15183648467063904, 0.4629606604576111, -0.1408226490020752, -0.0870731920003891, 0.22998027503490448, 0.007091879844665527, 0.08200225979089737, 0.39503777027130127, 0.019139684736728668, 0.10950042307376862, 0.10325641930103302, 0.050586845725774765, -0.0636669471859932, -0.34558382630348206, 0.4259031116962433, 0.009584765881299973, -0.047933220863342285, -0.040286585688591, -0.17780645191669464, -0.32417070865631104, 0.09945672750473022, 0.19665385782718658, 0.32716304063796997, 0.20497964322566986, 0.14208146929740906, -0.1573438197374344, -0.1341443508863449, -0.5431767106056213, 0.3588886559009552, -0.0051864744164049625, 0.003987213596701622, -0.16394448280334473, -0.20300990343093872, 0.15716275572776794, -0.1266387403011322, 0.42673271894454956, -0.2746741771697998, -0.114940345287323, 0.14634692668914795, -0.06679923087358475, -0.05607840418815613, 0.09600445628166199, -0.45345380902290344, 0.14707934856414795, 0.3111635148525238, 0.4173979163169861, -0.3279944062232971, -0.7097002863883972, 0.17999675869941711, 0.17164677381515503, -0.11396679282188416, 0.011694219894707203, -0.19932034611701965, -0.6153481602668762, -0.2928141951560974, 0.03578422963619232, 0.32765188813209534, -0.04038636386394501, -0.096833236515522, 0.2175610214471817, 0.015970949083566666, 0.08874797821044922, 0.29854053258895874, 0.10050763189792633, 0.26529690623283386, 0.21272426843643188, -0.21296191215515137, -0.20610015094280243, 0.24540138244628906, -0.13461002707481384, 0.43532243371009827, -0.3294614255428314, -0.13622340559959412, 0.0017140284180641174, -0.11767533421516418, 0.23543190956115723, 0.3371071219444275, 0.04827948659658432, -0.08819370716810226, 0.08183145523071289, 0.22321897745132446, -0.2673324942588806, 0.0668502151966095, 0.126212939620018, 0.23642407357692719, -0.09680262207984924, -0.25117969512939453, 0.3126513659954071, -0.0007527098059654236, -0.15774613618850708, 0.12641331553459167, 0.4826887845993042, -0.41782787442207336, 0.26249873638153076, 0.249670147895813, 1.1572632789611816, -0.14593800902366638, 0.28696298599243164, 0.4966943562030792, -0.30285006761550903, 0.6569280624389648, -0.21378368139266968, 0.07986652851104736, -0.16981548070907593, -0.04669518023729324, 0.039017513394355774, 0.1820795089006424, 0.03449719399213791, -0.03421743959188461, -0.6519699096679688, 0.10099878907203674, 0.26175040006637573, -0.13079369068145752, 0.23686912655830383, 0.4856545925140381, -0.04485704004764557, -0.2664385735988617, -0.21517817676067352, 0.22830310463905334, -0.03407362103462219, -0.02402866631746292, 0.04125263914465904, -0.4619748592376709, -0.019447319209575653, -0.17268070578575134, -0.1990671306848526, -0.02873487025499344, -0.17372818291187286, -0.10064839571714401, -0.006385833024978638, -0.03360261395573616, 0.30489128828048706, 0.180869922041893, 0.32514330744743347, 0.10701295733451843, -0.06368638575077057, 0.07964035123586655, -0.17379844188690186, 0.26600828766822815, 0.151418074965477, 0.11739252507686615, 0.26241546869277954, -0.20851731300354004, -0.16833388805389404, -0.26803213357925415, -0.08006943017244339, -0.198884978890419, -0.14216043055057526, -0.2560637593269348, -0.14551480114459991, -0.19658106565475464, -0.05393839254975319, 0.08100918680429459, -0.33521217107772827, -0.16053347289562225, 0.18020512163639069, -0.23007111251354218, -0.2599462866783142, 0.2403438687324524, 0.0896524041891098, -0.25384223461151123, -0.0116066113114357, -0.03595418483018875, 0.008356520906090736, -0.07070751488208771, 0.4292585849761963, 0.12945806980133057, -0.19166557490825653, -0.37446504831314087, -0.0591336190700531, -0.08809281885623932, -0.2882137596607208, 0.18907205760478973, -0.004556856118142605, -0.18523013591766357, -0.05220998078584671, 0.1677231341600418, 0.20788143575191498, 0.22695928812026978, -0.1175813227891922, -0.027175743132829666, -0.42569467425346375, 0.18105432391166687, 0.010248050093650818, 0.30158334970474243, -0.05170701444149017, 0.27627551555633545, 0.15375441312789917, -0.1304306834936142, -0.4647517502307892, 0.01009979099035263, -0.023908939212560654, 0.10817456245422363, 0.3883218765258789, -0.1371719241142273, -0.01658320240676403, -0.06223691254854202, 0.18406587839126587, 0.0013147518038749695, -0.2520788609981537, -0.238870769739151, -0.21404463052749634, 0.09132716804742813, -0.031136132776737213, -0.10453883558511734, 0.18914015591144562, 0.20946566760540009, -0.14873667061328888, -0.048347774893045425, 0.06126202270388603, -0.08992153406143188, -0.11466193199157715, 0.46734967827796936, 0.04915425553917885, 0.22420910000801086, 0.288174033164978, -0.3753620684146881, 0.257823646068573, 0.48352253437042236, -0.058350395411252975, 0.16921931505203247, 0.02020966447889805, -0.17637085914611816, 0.1713697910308838, 0.29208603501319885, 0.05452776700258255, 0.09204032272100449, 0.24064749479293823, 0.12152819335460663, 0.029014218598604202, 0.10636047273874283, 0.2582300007343292, 0.08545957505702972, -0.07096734642982483, -0.1308959424495697, 0.26711520552635193, 0.2697407007217407, -0.3617731034755707, 0.12110711634159088, 0.22470268607139587, -0.18101316690444946, 0.013071577996015549, 0.17595098912715912, 0.2059677541255951, 0.1967623233795166, 0.1697164624929428, -0.10588690638542175, 0.2822890281677246, -0.02452516183257103, 0.09951145946979523, 0.28857100009918213, -0.0707191675901413, -0.010271590203046799, 0.15575167536735535, 0.07692576944828033, 0.06561825424432755, 0.12466420978307724, -0.21616530418395996, 0.00863199308514595, -0.10131492465734482, 0.4164348244667053, 0.055215202271938324, -0.22583861649036407, 0.3159674406051636, 0.051938243210315704, 0.12265900522470474, 0.08908051252365112, 0.2043513059616089, 0.30212900042533875, -0.28980132937431335, -0.3242148756980896, 0.027621379122138023, 0.49254921078681946, -0.24877998232841492, -0.2695859670639038, -0.24133601784706116, -0.051359254866838455, -0.33125144243240356, -0.022578399628400803, -0.02172822877764702, 0.05553477257490158, 0.17908868193626404, 0.13971266150474548, 0.2160996049642563, -0.2871856689453125, -0.11376634985208511, -0.20898663997650146, 0.32827821373939514, -0.18242432177066803, 0.39247170090675354, 0.4530389904975891, -0.16260795295238495, 0.0730978399515152, 0.356399804353714, 0.47790834307670593, 0.1632453352212906, -0.06764531135559082, 0.15322640538215637, -0.23302899301052094, 0.09428440779447556, -0.0379863902926445, 0.14428329467773438, 0.1542944312095642, 0.13039448857307434, 0.12776470184326172, 0.12155061960220337, -0.09588877111673355, -0.087031289935112, 0.14137998223304749, -0.23634827136993408, 0.29325228929519653, 0.45640379190444946, 0.3617856204509735, -0.11831521987915039, -0.11201019585132599, -0.001436665654182434, -0.40130117535591125, 0.02795342355966568, 0.19990745186805725, 0.050827205181121826, 0.10129454731941223, -0.014460228383541107, 0.14994119107723236, 0.2945968508720398, 0.5670771598815918, 0.40544450283050537, -0.08651522547006607, -0.23176437616348267, 0.07746797800064087, -0.3990989923477173, -0.08699154108762741, 0.45681101083755493, -0.3353205919265747, 0.0710412785410881, 0.1810016930103302, 0.29330897331237793, -0.06268692016601562, 0.07082291692495346, -0.1296239197254181, 0.14984017610549927, -0.08150100708007812, -0.30483323335647583, 0.21744757890701294, 0.1924894005060196, 0.18878015875816345, 0.08049358427524567, -0.16865277290344238, 0.04679105430841446, -0.011017275974154472, 0.13571971654891968, -0.371745765209198, 0.14907047152519226, 0.0072520337998867035, -0.11495892703533173, 0.17294716835021973, 0.3597138822078705, 0.22625242173671722, -0.2855628430843353, -0.2082981914281845, 0.08406540751457214, -0.08236823976039886, -0.564119279384613, 0.3635179102420807, -0.14856688678264618, 0.0720008909702301, -0.05291036516427994, -0.3755685091018677, -0.23336371779441833, -0.04976856708526611, -0.06231984496116638, -0.10523022711277008, -0.2562163472175598, 0.3939220905303955, -0.07047168165445328, -0.15434420108795166, -0.12024044245481491, 0.41238266229629517, 0.08830738812685013, 0.2270929366350174, -0.6234094500541687, -0.380556583404541, 0.5783845782279968, -0.1106371209025383, -0.1955091804265976, 0.2363482564687729, 0.059464067220687866, 0.04341230168938637, -0.017021195963025093, -0.6791346073150635, 0.03782842308282852, 0.11180901527404785, -0.02867911010980606, -0.10881398618221283, 0.45365726947784424, -0.1495009809732437, 0.008739598095417023, -0.16145694255828857, 0.14305824041366577, 0.08307015895843506, -0.2215142846107483, -0.14428094029426575, -0.28469735383987427 ]
https://github.com/huggingface/datasets/pull/60
Update to simplify some datasets conversion
> Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `tf.io.gfile.glob` into `glob.glob` (will need to add `import glob`) We should probably open a new PR about this
This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well.
30
text: Update to simplify some datasets conversion This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well. > Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `tf.io.gfile.glob` into `glob.glob` (will need to add `import glob`) We should probably open a new PR about this
[ -0.06690263748168945, -0.17186155915260315, -0.10185575485229492, -0.01002490520477295, 0.5230352878570557, -0.022306367754936218, -0.1957167536020279, 0.30908337235450745, -0.06860782951116562, 0.05512647330760956, -0.23599770665168762, 0.48605647683143616, 0.013666443526744843, 0.3330676853656769, 0.3625446856021881, -0.4275240898132324, 0.2960771918296814, 0.17863520979881287, -0.1435563564300537, -0.13935431838035583, -0.3138616383075714, 0.48307615518569946, -0.11724361777305603, 0.18761351704597473, 0.04618314281105995, 0.02767080068588257, -0.2944391667842865, 0.2268853485584259, -0.27622613310813904, -0.17985855042934418, -0.13368596136569977, 0.09962689876556396, 0.02214987576007843, 0.1960374116897583, -0.0001028058904921636, 0.06356313824653625, 0.14077863097190857, -0.12924492359161377, -0.06726644933223724, -0.06808769702911377, 0.0418752059340477, -0.29416143894195557, -0.10212491452693939, -0.18463391065597534, -0.1620974838733673, -0.43820664286613464, 0.0478147491812706, 0.10097287595272064, 0.314543753862381, 0.30149227380752563, 0.28079506754875183, 0.3370298147201538, 0.3204301595687866, 0.06256307661533356, 0.07562382519245148, 0.19349029660224915, -0.17530621588230133, 0.20604044198989868, 0.21521738171577454, 0.17481310665607452, 0.06933657079935074, 0.3289792239665985, -0.02075553499162197, -0.3119543790817261, 0.3837800621986389, -0.050342243164777756, -0.17864015698432922, -0.247278094291687, 0.023513756692409515, 0.18181492388248444, 0.29609063267707825, -0.32736870646476746, -0.3818993866443634, -0.1750779151916504, 0.08012554049491882, -0.3814689517021179, 0.18358510732650757, 0.04192325472831726, -0.08611251413822174, 0.26161661744117737, -0.029313595965504646, -0.13255181908607483, -0.18433037400245667, -0.10354384779930115, -0.023756589740514755, 0.4097021222114563, -0.01226919237524271, -0.07218589633703232, 0.14550825953483582, -0.21295960247516632, -0.4052216112613678, -0.04717809706926346, -0.05311477556824684, -0.09630907326936722, 0.019284334033727646, -0.3953615128993988, 0.1162823885679245, 0.40972504019737244, 0.08183697611093521, -0.09717151522636414, -0.056454360485076904, 0.23069268465042114, -0.21442411839962006, -0.00010556355118751526, -0.053038980811834335, 0.111283078789711, 0.018674373626708984, 0.028388112783432007, 0.24611125886440277, -0.040747303515672684, 0.10207316279411316, 0.0881323367357254, -0.08251170068979263, -0.2187684029340744, -0.35097137093544006, 0.2704065442085266, 0.028534892946481705, -0.0637889876961708, 0.003815343603491783, -0.12265970557928085, 0.07793799042701721, -0.06919684261083603, 0.02861817181110382, 0.35692286491394043, 0.02785668894648552, 0.03925788775086403, 0.2843809127807617, 0.0855349600315094, -0.36574533581733704, -0.3545135259628296, -0.14949564635753632, 0.0641281008720398, -0.1614837348461151, -0.17161332070827484, 0.027629677206277847, 0.06350263953208923, 0.25232788920402527, 0.04389264062047005, 0.16298171877861023, 0.17796792089939117, -0.07561127841472626, 0.2285069078207016, 0.12953466176986694, 0.18368011713027954, -0.2059491127729416, -0.21342328190803528, 0.13806010782718658, -0.1560235321521759, -0.34719353914260864, 0.21740329265594482, 0.023283611983060837, -0.13225165009498596, -0.19809339940547943, 0.2613050937652588, -0.23903898894786835, -0.4901852309703827, 0.1760517805814743, 0.47354942560195923, -0.07294017821550369, -0.12164647877216339, 0.16641581058502197, -0.26645058393478394, -0.22693757712841034, -0.1002633273601532, 0.1496993452310562, 0.14229795336723328, -0.2823430597782135, -0.025412488728761673, 0.2751621603965759, -0.3019002377986908, 0.1467580646276474, 0.21676291525363922, -0.04397931322455406, 0.12223266065120697, -0.15310807526111603, 0.38971441984176636, 0.29300227761268616, -0.08831971883773804, -0.004372619092464447, 0.23669740557670593, 0.023393407464027405, -0.06671038269996643, 0.08506081998348236, -0.05052724853157997, 0.07308205962181091, -0.1567550152540207, 0.044473376125097275, 0.15629640221595764, -0.21830491721630096, 0.13656340539455414, -0.2575921416282654, -0.10431355237960815, 0.1296171247959137, -0.0396416112780571, -0.11671754717826843, -0.06298884004354477, -0.019889794290065765, 0.2623727321624756, 0.27804240584373474, -0.3728382885456085, 0.039234913885593414, 0.16718994081020355, 0.07789891213178635, 0.02696799486875534, 0.1332261711359024, 0.02178700640797615, -0.30032798647880554, -0.16157129406929016, -0.027782179415225983, 0.3637700378894806, -0.12513257563114166, -0.3246893286705017, -0.06551901996135712, 0.002982037141919136, 0.02822618931531906, -0.08410152792930603, 0.22925692796707153, -0.016687646508216858, 0.11996085941791534, -0.06734853982925415, -0.05647553876042366, -0.21985982358455658, -0.17271453142166138, 0.004819793161004782, -0.14104455709457397, 0.001983305439352989, -0.295524001121521, -0.12778165936470032, -0.002910047769546509, 0.2511023283004761, 0.1214456781744957, -0.28580597043037415, -0.10836182534694672, 0.23806089162826538, -0.17744353413581848, 0.20355553925037384, 0.0875280499458313, 0.49217915534973145, 0.36947450041770935, -0.06139499321579933, 0.2602987587451935, 0.1412224918603897, 0.04267830029129982, 0.13922131061553955, -0.34868261218070984, 0.6064082384109497, -0.11148428916931152, -0.03051619976758957, 0.2329476922750473, -0.0009751524776220322, 0.33385175466537476, -0.04892686754465103, -0.13288480043411255, -0.12512433528900146, 0.020467441529035568, -0.07594934105873108, -0.0785653218626976, 0.08095201104879379, -0.6502605676651001, 0.45621392130851746, 0.661963701248169, -0.303315669298172, -0.1217215284705162, 0.3102767765522003, 0.09853261709213257, -0.20497047901153564, 0.14142988622188568, 0.11981311440467834, 0.20972999930381775, 0.4977492094039917, 0.30891966819763184, 0.13928894698619843, -0.09147343039512634, -0.23467810451984406, 0.5717703700065613, -0.17590774595737457, -0.18393276631832123, 0.1741497665643692, -0.15230800211429596, 0.07415234297513962, -0.4994713068008423, 0.05340452864766121, 0.039262592792510986, 0.3382130265235901, -0.3104618489742279, -0.08161018788814545, -0.31034040451049805, -0.5081295967102051, -0.08480826765298843, 0.2270772010087967, -0.12015941739082336, -0.38324111700057983, 0.18675421178340912, -0.14219459891319275, -0.37805604934692383, 0.26872023940086365, 0.12085513770580292, 0.09009957313537598, -0.053983718156814575, -0.04400598257780075, -0.38887152075767517, -0.2391340136528015, -0.2661898136138916, 0.15745529532432556, 0.38647013902664185, -0.1365198940038681, 0.381616473197937, -0.24936902523040771, -0.0726250633597374, -0.45278167724609375, -0.7430649995803833, 0.23946017026901245, -0.5889902114868164, 0.04188764467835426, 0.34015753865242004, 0.05151272565126419, -0.07657496631145477, -0.03707454726099968, 0.2583180069923401, -0.27941933274269104, -0.4147469699382782, -0.01465395838022232, 0.015249231830239296, -0.12300535291433334, -0.4998411536216736, -0.377414733171463, -0.10950373858213425, -0.39374464750289917, 0.3214256763458252, -0.06515411287546158, 0.3117658495903015, 0.4489747881889343, 0.19825467467308044, 0.20239175856113434, 0.0053679607808589935, -0.0037465542554855347, -0.26000523567199707, -0.1480744630098343, 0.27314579486846924, -0.21780623495578766, -0.49617281556129456, -0.11829639226198196, 0.039284221827983856, 0.07054471969604492, -0.201669380068779, -0.3080930709838867, -0.5084540843963623, -0.2195301055908203, 0.4103710651397705, 0.07498954236507416, 0.3979256749153137, 0.26225534081459045, 0.1738787591457367, -0.33495795726776123, -0.2762722373008728, -0.2338199019432068, 0.025074951350688934, 0.08120414614677429, 0.07260403037071228, 0.15102693438529968, 0.24061599373817444, -0.010566793382167816, 0.29355281591415405, 0.04234443977475166, 0.004669368267059326, 0.11543777585029602, -0.1507769525051117, 0.4525686800479889, -0.12784704566001892, -0.09253018349409103, 0.24429886043071747, 0.006262138485908508, 0.09018616378307343, 0.3886684775352478, 0.018680209293961525, 0.11669452488422394, 0.0974247008562088, 0.038713160902261734, -0.06511115282773972, -0.3374531865119934, 0.412577360868454, 0.023163314908742905, -0.014918819069862366, -0.055812787264585495, -0.19666194915771484, -0.3253740966320038, 0.11449425667524338, 0.19992917776107788, 0.33815431594848633, 0.2010294497013092, 0.1296529918909073, -0.17341451346874237, -0.12322652339935303, -0.5480065941810608, 0.328682541847229, -0.00423265527933836, 0.00038540735840797424, -0.16567353904247284, -0.20153948664665222, 0.15906864404678345, -0.11778286844491959, 0.4211719036102295, -0.27489060163497925, -0.13279789686203003, 0.12145344913005829, -0.06472117453813553, -0.05087048560380936, 0.11253871023654938, -0.443931519985199, 0.15518860518932343, 0.3167809247970581, 0.4214034676551819, -0.3296884000301361, -0.6988118886947632, 0.19463804364204407, 0.14642035961151123, -0.10946131497621536, 0.010814311914145947, -0.2081526219844818, -0.6120965480804443, -0.30008405447006226, 0.06326416879892349, 0.3268264830112457, -0.05522233992815018, -0.08735940605401993, 0.21102355420589447, 0.030927740037441254, 0.09328719228506088, 0.2824900150299072, 0.11111734807491302, 0.2447212040424347, 0.18895086646080017, -0.21887458860874176, -0.1916072517633438, 0.2328665554523468, -0.12903019785881042, 0.42185354232788086, -0.3339245319366455, -0.1364070326089859, 0.022240716964006424, -0.08542359620332718, 0.23987674713134766, 0.33489465713500977, 0.0615278035402298, -0.08758682757616043, 0.09378117322921753, 0.25617116689682007, -0.2762036621570587, 0.05251508578658104, 0.12963885068893433, 0.23884662985801697, -0.09462155401706696, -0.24447953701019287, 0.3203350007534027, 0.014708589762449265, -0.16739460825920105, 0.09295585751533508, 0.4810417890548706, -0.3933234214782715, 0.25445669889450073, 0.25683295726776123, 1.1481072902679443, -0.13363827764987946, 0.29540103673934937, 0.4827951192855835, -0.31302011013031006, 0.6804724335670471, -0.23256389796733856, 0.06809299439191818, -0.17176705598831177, -0.02624090015888214, 0.036059290170669556, 0.18500953912734985, 0.060919709503650665, -0.051769107580184937, -0.6424295902252197, 0.11159239709377289, 0.27010613679885864, -0.15758748352527618, 0.23875507712364197, 0.48609018325805664, -0.07201801240444183, -0.2713458240032196, -0.24058279395103455, 0.2200104296207428, -0.0323520302772522, -0.010316133499145508, 0.04316267743706703, -0.46413928270339966, -0.011478394269943237, -0.1621466875076294, -0.21473556756973267, -0.0379200354218483, -0.17467215657234192, -0.11326506733894348, 0.017815645784139633, -0.019781015813350677, 0.32482147216796875, 0.21024002134799957, 0.35171109437942505, 0.10951367020606995, -0.08723403513431549, 0.07910145819187164, -0.1764335036277771, 0.2244711071252823, 0.13300292193889618, 0.12197229266166687, 0.2495816946029663, -0.22171026468276978, -0.18640205264091492, -0.24898910522460938, -0.08500180393457413, -0.16537511348724365, -0.17710112035274506, -0.2462197095155716, -0.1386110633611679, -0.2015940397977829, -0.04500890523195267, 0.06554782390594482, -0.3470560610294342, -0.16499249637126923, 0.18195155262947083, -0.22254662215709686, -0.2681923806667328, 0.22064703702926636, 0.11463887989521027, -0.24997800588607788, -0.0222618505358696, -0.037639789283275604, 0.016404826194047928, -0.08173605799674988, 0.4192431569099426, 0.12332360446453094, -0.197428360581398, -0.38821524381637573, -0.07652337849140167, -0.08472758531570435, -0.30809271335601807, 0.17827531695365906, 0.009924770332872868, -0.19928623735904694, -0.04687608778476715, 0.1576838344335556, 0.2275339812040329, 0.2214389145374298, -0.1113894134759903, -0.012762915343046188, -0.4432634711265564, 0.19032961130142212, 0.009015314280986786, 0.28778955340385437, -0.027147892862558365, 0.3063933253288269, 0.16918599605560303, -0.1061626672744751, -0.4672864079475403, 0.00017135939560830593, -0.04005572199821472, 0.10358448326587677, 0.39697861671447754, -0.15575528144836426, -0.02919883280992508, -0.056386642158031464, 0.18904365599155426, 0.02096657082438469, -0.2458442747592926, -0.24275940656661987, -0.2050367295742035, 0.0946563333272934, -0.022541027516126633, -0.08573512732982635, 0.18380972743034363, 0.23327888548374176, -0.1445874273777008, -0.02278287708759308, 0.05854788050055504, -0.09121853858232498, -0.08697986602783203, 0.4616290032863617, 0.05899963155388832, 0.21928489208221436, 0.29962968826293945, -0.36537113785743713, 0.25780194997787476, 0.47267305850982666, -0.06506841629743576, 0.16458448767662048, 0.011542635038495064, -0.17784038186073303, 0.15615034103393555, 0.29488834738731384, 0.09157454967498779, 0.08244192600250244, 0.22834107279777527, 0.1254744529724121, 0.021105501800775528, 0.10862165689468384, 0.2526476979255676, 0.058200906962156296, -0.07151348888874054, -0.1393023580312729, 0.2725280523300171, 0.27501875162124634, -0.3717951774597168, 0.12477471679449081, 0.20370015501976013, -0.1885688602924347, 0.018503833562135696, 0.1847989857196808, 0.22111046314239502, 0.22209250926971436, 0.16875973343849182, -0.10247814655303955, 0.28374120593070984, -0.02852359414100647, 0.08930455148220062, 0.26595360040664673, -0.06403175741434097, -0.020671095699071884, 0.17250868678092957, 0.09115990996360779, 0.08182767033576965, 0.10067278146743774, -0.20530050992965698, 0.03667495399713516, -0.10248521715402603, 0.43881210684776306, 0.08148820698261261, -0.20806671679019928, 0.3254506587982178, 0.05672474950551987, 0.12844021618366241, 0.08006388694047928, 0.19158536195755005, 0.34753671288490295, -0.2585468888282776, -0.31160661578178406, 0.020119288936257362, 0.5113873481750488, -0.24584627151489258, -0.27764657139778137, -0.2336701899766922, -0.05640977621078491, -0.33319467306137085, -0.028010457754135132, -0.015207942575216293, 0.04800625890493393, 0.20857536792755127, 0.12663409113883972, 0.19549442827701569, -0.2838195562362671, -0.10551293939352036, -0.20004791021347046, 0.33460038900375366, -0.16429521143436432, 0.3962421715259552, 0.4466973543167114, -0.18445834517478943, 0.06932394951581955, 0.3767347037792206, 0.47732308506965637, 0.15020345151424408, -0.07735149562358856, 0.14606691896915436, -0.23192036151885986, 0.09496823698282242, -0.0383506640791893, 0.14941555261611938, 0.1650291085243225, 0.14924149215221405, 0.11983524262905121, 0.12776651978492737, -0.10916776210069656, -0.08456580340862274, 0.13339492678642273, -0.2509211599826813, 0.2780757546424866, 0.45728588104248047, 0.3371230363845825, -0.12050613760948181, -0.11730116605758667, 0.026446089148521423, -0.4176631569862366, 0.038839131593704224, 0.2019183486700058, 0.046231068670749664, 0.09075742959976196, -0.029949992895126343, 0.15100157260894775, 0.30265551805496216, 0.5621214509010315, 0.4076351523399353, -0.08194083720445633, -0.2322191447019577, 0.05230586230754852, -0.3864520192146301, -0.05871816724538803, 0.44561508297920227, -0.34509408473968506, 0.07974045723676682, 0.16365946829319, 0.2725762724876404, -0.03696731477975845, 0.04010183364152908, -0.1037631556391716, 0.14281776547431946, -0.07620750367641449, -0.29961198568344116, 0.23325219750404358, 0.17765763401985168, 0.1863282024860382, 0.09616906940937042, -0.15617671608924866, 0.04642714560031891, 0.02853013202548027, 0.1350727677345276, -0.3747384548187256, 0.15347588062286377, 0.01839180290699005, -0.09709447622299194, 0.14800795912742615, 0.3784448206424713, 0.2235412299633026, -0.28386569023132324, -0.22340422868728638, 0.0931827649474144, -0.09405162930488586, -0.552900493144989, 0.376634806394577, -0.1408565789461136, 0.0428527295589447, -0.05427424609661102, -0.3886255919933319, -0.23507221043109894, -0.04174569621682167, -0.040778953582048416, -0.09366776794195175, -0.2500166594982147, 0.3781944811344147, -0.05105990171432495, -0.15942123532295227, -0.08659548312425613, 0.4132315516471863, 0.09807252883911133, 0.2200002670288086, -0.623020350933075, -0.38524383306503296, 0.5839904546737671, -0.11284014582633972, -0.17020820081233978, 0.2446090281009674, 0.07524926960468292, 0.049421846866607666, -0.03380795568227768, -0.7102887630462646, 0.04124096781015396, 0.10813745856285095, -0.02615566924214363, -0.10500966012477875, 0.4537672698497772, -0.1603357046842575, -0.006765525788068771, -0.1591518521308899, 0.16570092737674713, 0.07645060867071152, -0.22786790132522583, -0.12238863110542297, -0.2862832546234131 ]
https://github.com/huggingface/datasets/pull/60
Update to simplify some datasets conversion
I think it might be a good idea to both change the supervised keys to a named tuple and also handle the translation features specifically.
This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well.
25
text: Update to simplify some datasets conversion This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well. I think it might be a good idea to both change the supervised keys to a named tuple and also handle the translation features specifically.
[ -0.038801904767751694, -0.1550789773464203, -0.08767572790384293, -0.21410466730594635, 0.622073233127594, -0.09221787750720978, -0.13436388969421387, 0.1074143797159195, 0.012552253901958466, 0.0638786107301712, -0.1638633757829666, 0.5223034024238586, 0.001669696532189846, 0.23886056244373322, 0.2827453017234802, -0.43981435894966125, 0.3186403512954712, 0.12890157103538513, -0.10804423689842224, -0.03855622559785843, -0.44918814301490784, 0.24862933158874512, -0.19514161348342896, 0.14134055376052856, 0.02976180426776409, 0.07453137636184692, -0.2780202031135559, 0.039903052151203156, -0.27323803305625916, -0.4011411666870117, 0.03520085662603378, 0.2516045570373535, 0.05973371863365173, -0.04813472181558609, -0.00010086939437314868, -0.035249944776296616, 0.2806946635246277, -0.109751395881176, 0.024534408003091812, 0.06518329679965973, -0.06292624771595001, -0.38568252325057983, -0.14667223393917084, -0.27508044242858887, -0.1550857275724411, -0.4032745659351349, 0.06660239398479462, 0.06417782604694366, 0.3631998300552368, 0.10716961324214935, 0.27581143379211426, 0.16734154522418976, 0.21755431592464447, -0.00208332110196352, -0.07984244078397751, 0.14505288004875183, -0.05619191378355026, 0.25054728984832764, 0.18368308246135712, 0.21882356703281403, 0.12266800552606583, 0.35409051179885864, -0.10199399292469025, -0.4123052656650543, 0.467447429895401, -0.20837989449501038, -0.21959254145622253, -0.18646813929080963, 0.12765899300575256, 0.055100567638874054, 0.22893008589744568, -0.1674344837665558, -0.1818903535604477, -0.13303133845329285, 0.05221133306622505, -0.30112338066101074, 0.060784414410591125, 0.007089449092745781, -0.03567251190543175, 0.22386233508586884, -0.12584424018859863, -0.06512848287820816, -0.07564763724803925, -0.00011808425188064575, 0.08943040668964386, 0.3897871673107147, 0.02649158611893654, 0.008500270545482635, 0.09847939014434814, -0.21073490381240845, -0.2942928671836853, 0.07515808939933777, -0.031386878341436386, -0.16725286841392517, 0.12216860800981522, -0.33168506622314453, -0.021145351231098175, 0.35427388548851013, -0.1091720461845398, -0.11888383328914642, -0.12105193734169006, 0.33386772871017456, -0.08728451281785965, 0.006205357611179352, -0.0009620152413845062, 0.029707666486501694, 0.19707465171813965, 0.16307416558265686, 0.28759729862213135, 0.15044638514518738, 0.1644425094127655, 0.07941403985023499, 0.0629853829741478, -0.17115779221057892, -0.18792298436164856, 0.40184009075164795, -0.05011989548802376, -0.07351934909820557, 0.10139382630586624, -0.03191250562667847, 0.015953868627548218, -0.02631751075387001, 0.01940600574016571, 0.460994690656662, 0.047968074679374695, 0.1230575293302536, 0.16674402356147766, 0.14787766337394714, -0.2825290560722351, -0.32481876015663147, -0.16706810891628265, 0.11479294300079346, -0.24860039353370667, -0.17000360786914825, 0.02443893626332283, 0.14914534986019135, 0.25276321172714233, 0.16320334374904633, 0.08016693592071533, 0.015622429549694061, -0.21081554889678955, 0.3424049913883209, 0.32905274629592896, 0.18608583509922028, -0.30997997522354126, -0.1998891830444336, 0.0021695122122764587, -0.17724382877349854, -0.2860170602798462, 0.2535436451435089, 0.13959650695323944, -0.18753580749034882, 0.0372922420501709, 0.24364802241325378, -0.22023947536945343, -0.5224580764770508, 0.13965341448783875, 0.610476553440094, -0.0032423660159111023, -0.0500481091439724, 0.3868192434310913, -0.31542134284973145, -0.1640118956565857, -0.0015054692048579454, 0.16778112947940826, 0.06630770117044449, -0.19105789065361023, -0.1013069599866867, 0.35748186707496643, -0.2543806731700897, 0.19282925128936768, 0.18247859179973602, -0.08482231944799423, 0.018991529941558838, 0.055190980434417725, 0.34263795614242554, 0.1717682182788849, -0.05953795462846756, -0.25640472769737244, 0.022140970453619957, 0.2038353830575943, -0.1744898557662964, 0.04478030651807785, -0.0482490174472332, 0.19256745278835297, -0.10503396391868591, 0.03311607241630554, -0.01274271309375763, -0.20495495200157166, 0.16086995601654053, -0.28454720973968506, -0.0031582750380039215, 0.17657963931560516, 0.00971931591629982, -0.0187002532184124, -0.05707072466611862, -0.07124783843755722, 0.38602614402770996, 0.16954733431339264, -0.3669673502445221, 0.1516362577676773, 0.03840930014848709, -0.0069440677762031555, -0.1027020514011383, 0.1450403779745102, -0.005344204604625702, -0.07474067062139511, -0.21443504095077515, -0.036113739013671875, 0.3782893717288971, -0.12662088871002197, -0.44062352180480957, -0.1899321973323822, -0.005635872483253479, -0.011142339557409286, -0.2507377564907074, 0.22395899891853333, -0.21239206194877625, 0.17026926577091217, -0.15121614933013916, 0.008224129676818848, -0.2016952484846115, -0.06881923228502274, 0.017633602023124695, -0.11193050444126129, -0.20543617010116577, -0.24495916068553925, -0.05635432153940201, -0.07310834527015686, 0.5073390603065491, 0.29307687282562256, -0.21053428947925568, -0.15788039565086365, 0.2460724413394928, -0.13523773849010468, 0.0038416236639022827, -0.09672611206769943, 0.30991968512535095, 0.3989270329475403, -0.09178860485553741, 0.3675653040409088, 0.17602019011974335, -0.017438896000385284, 0.13256949186325073, -0.33180472254753113, 0.7385157346725464, 0.01725947856903076, 0.04966643825173378, 0.07814982533454895, 0.058840133249759674, 0.24546310305595398, -0.015838157385587692, -0.3082423806190491, -0.1307452917098999, -0.16122335195541382, 0.058238618075847626, -0.1862872689962387, 0.026989124715328217, -0.5968479514122009, 0.46556127071380615, 0.5354869961738586, -0.3265880346298218, -0.11386800557374954, 0.3163226842880249, 0.00642731785774231, -0.20106011629104614, 0.1667439043521881, 0.31990522146224976, 0.07968801259994507, 0.3917786777019501, 0.22933848202228546, 0.219148188829422, -0.05580730736255646, -0.1537606418132782, 0.4605095088481903, -0.15149344503879547, -0.37435728311538696, 0.03694376349449158, -0.1599304974079132, -0.0398307703435421, -0.5277711153030396, 0.19300492107868195, -0.10509282350540161, 0.2168668508529663, -0.20346301794052124, 0.0019114110618829727, -0.3070101737976074, -0.4882843792438507, -0.07198145240545273, 0.18900921940803528, -0.04427950456738472, -0.3972933292388916, 0.17615348100662231, -0.21262136101722717, -0.4133502244949341, 0.3660868704319, 0.14927855134010315, 0.15923064947128296, -0.24925263226032257, 0.11842454224824905, -0.2840161919593811, -0.28229689598083496, -0.2623535394668579, 0.13795053958892822, 0.20862162113189697, -0.167306050658226, 0.38444069027900696, -0.07850810885429382, -0.1647518426179886, -0.4206732511520386, -0.6889219284057617, -0.01690305769443512, -0.5745032429695129, -0.09435373544692993, 0.3407844007015228, -0.079274982213974, -0.15366417169570923, -0.08169636875391006, 0.25518307089805603, -0.20679396390914917, -0.3078795373439789, -0.030939515680074692, -0.062273990362882614, -0.05208858102560043, -0.49253761768341064, -0.4243711531162262, -0.124681256711483, -0.28510725498199463, 0.4042379856109619, -0.18264281749725342, 0.124855637550354, 0.11626139283180237, 0.1310013383626938, 0.0035375524312257767, 0.05379049852490425, -0.06276129186153412, -0.3244135081768036, 0.02540617063641548, 0.2567392587661743, -0.17060133814811707, -0.4602401852607727, -0.2293243557214737, -0.1007869616150856, 0.10865999758243561, -0.2500647306442261, -0.08432191610336304, -0.28565770387649536, -0.24160562455654144, 0.33935093879699707, 0.16933414340019226, 0.36767295002937317, 0.23065906763076782, 0.1540670096874237, -0.3197839558124542, -0.10606785118579865, -0.4202580749988556, 0.034253500401973724, 0.0704180896282196, 0.11246982961893082, 0.010859431698918343, 0.2715584337711334, -0.008585885167121887, 0.3404199481010437, -0.004019957035779953, 0.13131064176559448, 0.09784387052059174, 0.0035022106021642685, 0.3582268953323364, -0.15500566363334656, -0.040934085845947266, 0.2607632577419281, -0.14983412623405457, 0.1147097796201706, 0.1886843591928482, -0.042594581842422485, -0.05016883462667465, 0.16821658611297607, -0.13690654933452606, -0.028112437576055527, -0.3882233500480652, 0.4103427529335022, -0.19740304350852966, -0.022711455821990967, 0.02418544515967369, -0.019240107387304306, -0.3019675016403198, 0.14355623722076416, 0.1502898931503296, 0.22825199365615845, -0.047424815595149994, 0.09271639585494995, -0.38687121868133545, -0.12400515377521515, -0.6833529472351074, 0.41071295738220215, -0.09322623163461685, 0.1123252734541893, -0.013374313712120056, -0.24142974615097046, 0.16760003566741943, -0.1257721334695816, 0.35037457942962646, -0.24991656839847565, -0.17642642557621002, 0.032909639179706573, -0.11022819578647614, -0.03648022934794426, -0.03897158056497574, -0.36835581064224243, 0.2155388444662094, 0.2026691883802414, 0.20728756487369537, -0.32798752188682556, -0.46679872274398804, 0.17537984251976013, -0.005135576706379652, -0.12341228127479553, -0.06162077561020851, -0.1169169694185257, -0.5725151300430298, -0.2693539559841156, 0.1876821368932724, 0.36342087388038635, -0.013250970281660557, -0.19111008942127228, 0.1669439971446991, 0.09022865444421768, 0.11372125893831253, 0.27469319105148315, 0.10382874310016632, 0.17834711074829102, 0.25911518931388855, -0.22932793200016022, -0.19117110967636108, 0.19374306499958038, -0.16873086988925934, 0.3792170584201813, -0.17517969012260437, -0.15995901823043823, -0.015523400157690048, -0.04048239812254906, 0.29896947741508484, 0.32854270935058594, 0.19589895009994507, 0.05235622450709343, 0.34934455156326294, 0.17107126116752625, -0.31520822644233704, -0.054751116782426834, 0.13193799555301666, 0.3319660723209381, -0.10478352755308151, -0.44169026613235474, 0.28150278329849243, -0.062247250229120255, -0.2358202338218689, -0.06148836016654968, 0.3517712354660034, -0.3428801894187927, 0.35124820470809937, 0.45955631136894226, 1.0976308584213257, -0.13685503602027893, 0.3055752217769623, 0.22820723056793213, -0.3049505949020386, 0.7385367155075073, -0.24268661439418793, 0.0045152874663472176, -0.27152690291404724, 0.10820364952087402, 0.07362101972103119, 0.19808164238929749, -0.006685167551040649, -0.10702557861804962, -0.643227756023407, 0.15499362349510193, 0.18920381367206573, -0.2778644263744354, 0.18945656716823578, 0.31322506070137024, -0.11448653787374496, -0.24226748943328857, -0.19522540271282196, 0.20705927908420563, -0.01650898903608322, -0.12750616669654846, 0.07387430965900421, -0.32089847326278687, 0.0027840547263622284, -0.2780192494392395, -0.3282841145992279, -0.06724631786346436, 0.011435521766543388, -0.08653365075588226, 0.12864430248737335, 0.06713388860225677, 0.3933723270893097, 0.16646070778369904, 0.4825560450553894, 0.1118633896112442, -0.003908982500433922, 0.1476304531097412, -0.04609555006027222, 0.21538791060447693, 0.20403023064136505, 0.10116668790578842, 0.14943110942840576, -0.20266109704971313, -0.2528667747974396, -0.2527359426021576, 0.004751157946884632, -0.21617935597896576, -0.31169140338897705, -0.1043175607919693, -0.14060065150260925, -0.2304525524377823, -0.11862942576408386, 0.07369641959667206, -0.24413470923900604, -0.2602037489414215, 0.18085342645645142, -0.2726261019706726, -0.14440450072288513, 0.21017318964004517, 0.15967132151126862, -0.23794503509998322, 0.009767616167664528, 0.039343077689409256, 0.17414671182632446, -0.1186881959438324, 0.4458986520767212, -0.05361291393637657, -0.17890320718288422, -0.34058234095573425, -0.1036333441734314, 0.08753109723329544, -0.12020187079906464, 0.20580394566059113, 0.01029268093407154, -0.2833489179611206, -0.10876517742872238, 0.08802495151758194, 0.209498792886734, 0.20249170064926147, -0.23091037571430206, 0.09888723492622375, -0.6054197549819946, 0.15570688247680664, -0.01578991487622261, 0.20636191964149475, -0.022874364629387856, 0.27321285009384155, 0.12265707552433014, -0.04792558401823044, -0.42007917165756226, -0.04643169045448303, -0.03696347028017044, 0.15046313405036926, 0.3058255612850189, -0.16682204604148865, -0.21264463663101196, 0.03204149007797241, 0.1231602132320404, 0.09396661818027496, -0.2382921278476715, -0.2691948711872101, -0.2261972874403, 0.08047141134738922, 0.013394023291766644, 0.001326835947111249, 0.0623319111764431, 0.35771745443344116, -0.01966000720858574, 0.010497992858290672, 0.014284685254096985, -0.062182050198316574, -0.07844504714012146, 0.7744906544685364, -0.01238902285695076, 0.29709392786026, 0.3975420594215393, -0.3795217275619507, 0.18693074584007263, 0.43088698387145996, -0.09308580309152603, 0.11809152364730835, 0.10550665855407715, -0.155115008354187, -0.014752994291484356, 0.2711096405982971, 0.02338995784521103, 0.12764853239059448, 0.20605263113975525, 0.2330464869737625, 0.10663001239299774, 0.059228092432022095, 0.22580952942371368, 0.23092973232269287, -0.0844183936715126, -0.10583341121673584, 0.250259131193161, 0.2677023708820343, -0.3926903009414673, 0.07853907346725464, 0.15469855070114136, -0.22790564596652985, 0.023485872894525528, 0.1411837935447693, 0.34126168489456177, 0.2366800606250763, 0.20861287415027618, -0.18163159489631653, 0.08338722586631775, -0.20447704195976257, 0.16396932303905487, 0.26522308588027954, 0.012721356004476547, -0.03110085055232048, 0.40946877002716064, 0.1058594286441803, 0.08073446899652481, 0.11120932549238205, -0.03868025541305542, 0.08054614812135696, 0.061054475605487823, 0.46311911940574646, 0.07454346865415573, -0.03427001088857651, 0.3600984811782837, 0.02547299861907959, 0.0571596659719944, 0.10089874267578125, 0.2512432336807251, 0.4433870315551758, -0.18724125623703003, -0.40960562229156494, 0.03023645468056202, 0.3225843608379364, -0.23729515075683594, -0.4330925941467285, -0.17009508609771729, 0.008136019110679626, -0.39968761801719666, -0.02993866056203842, -0.11465460062026978, 0.07545012980699539, 0.44529789686203003, -0.0701783299446106, 0.10101035982370377, -0.2808452546596527, -0.002369347959756851, -0.29608282446861267, 0.44446301460266113, -0.09445551037788391, 0.13276226818561554, 0.3955114483833313, -0.14653144776821136, 0.2670827805995941, 0.3648699223995209, 0.4620800316333771, 0.23097580671310425, -0.19656826555728912, 0.19697695970535278, -0.16098499298095703, -0.006225381046533585, -0.034046925604343414, 0.22440531849861145, 0.41815441846847534, 0.12888601422309875, 0.05793320760130882, 0.13925111293792725, -0.11450503021478653, -0.03039776161313057, 0.1439741849899292, -0.08047512173652649, 0.44717708230018616, 0.4257194399833679, 0.48659810423851013, -0.15566863119602203, 0.02273555099964142, 0.0798092857003212, -0.3755500912666321, -0.05654613673686981, 0.09161235392093658, 0.06127757206559181, 0.11872433871030807, -0.24061432480812073, 0.1401618868112564, 0.29825514554977417, 0.7411801815032959, 0.2420031577348709, -0.033182643353939056, -0.19153223931789398, 0.0536336749792099, -0.3663260042667389, -0.12884339690208435, 0.4614402651786804, -0.35617709159851074, 0.047231413424015045, 0.04196321219205856, 0.3288951516151428, -0.015843499451875687, -0.09421533346176147, -0.17421458661556244, 0.057002581655979156, 0.01628294587135315, -0.18494339287281036, 0.3502396047115326, 0.4350881576538086, 0.2367456555366516, 0.1785033494234085, -0.08063408732414246, 0.10730049014091492, 0.13606804609298706, 0.08732540160417557, -0.23837952315807343, 0.13481548428535461, -0.014765068888664246, 0.02556992508471012, 0.10655518621206284, 0.4358328580856323, 0.2501208782196045, -0.24815356731414795, -0.12847109138965607, 0.09010981023311615, -0.061270784586668015, -0.5697647333145142, 0.3918491303920746, -0.1343255341053009, 0.10363182425498962, 0.024063682183623314, -0.24820123612880707, -0.08069659769535065, 0.08286144584417343, -0.040011946111917496, -0.1757969856262207, -0.307345449924469, 0.3387177884578705, 0.07785319536924362, -0.15847636759281158, -0.20565350353717804, 0.3892243206501007, 0.14729444682598114, 0.18189571797847748, -0.5752655863761902, -0.31111690402030945, 0.5557867288589478, -0.06460758298635483, -0.17442457377910614, 0.18377570807933807, 0.03271601349115372, 0.13008274137973785, -0.018156317993998528, -0.6481686234474182, -0.006439380347728729, 0.05263238400220871, -0.2132631242275238, -0.19295473396778107, 0.4692632853984833, -0.298243910074234, -0.06590685248374939, -0.21407073736190796, 0.30878373980522156, -0.021263815462589264, -0.14683561027050018, -0.14846032857894897, -0.3894159197807312 ]
https://github.com/huggingface/datasets/pull/60
Update to simplify some datasets conversion
Just noticed that `pyarrow` apparently does not have a `is_boolean` function. Or do I have the wrong `pyarrow` version?
This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well.
19
text: Update to simplify some datasets conversion This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make them a NamedTuple instead of a dataclass, and - handle specifically the `Translation` features. as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r421740236 @patrickvonplaten @mariamabarham tell me if you want these two last changes as well. Just noticed that `pyarrow` apparently does not have a `is_boolean` function. Or do I have the wrong `pyarrow` version?
[ -0.03906143084168434, 0.05513004958629608, -0.12098817527294159, -0.2935447096824646, 0.40929216146469116, -0.1091867983341217, -0.10661567747592926, 0.2078275978565216, -0.3272363841533661, -0.045795291662216187, -0.19610890746116638, 0.600417971611023, 0.17232225835323334, 0.18318021297454834, 0.3909994959831238, -0.2998199462890625, 0.45461413264274597, 0.29918909072875977, 0.07650471478700638, -0.0999959409236908, -0.4141629934310913, 0.27376511693000793, -0.3557632565498352, 0.1671808362007141, 0.12122739851474762, 0.08651425689458847, -0.37633487582206726, 0.012680936604738235, -0.3927266001701355, -0.4556064307689667, 0.026647919788956642, 0.24888062477111816, -0.023246707394719124, -0.09027936309576035, -0.00011053432535845786, -0.09394079446792603, 0.3536020517349243, 0.01807260327041149, -0.05565884709358215, -0.0558495968580246, 0.09625006467103958, -0.3904832899570465, 0.05436334013938904, -0.15535713732242584, 0.00978991761803627, -0.48615074157714844, 0.07158619165420532, 0.2854571044445038, 0.3382487893104553, 0.1847645789384842, 0.18760494887828827, 0.25936436653137207, 0.3790671229362488, 0.10389763116836548, 0.23399674892425537, 0.2655196785926819, -0.02785860374569893, 0.3748526871204376, 0.1880536675453186, 0.061902374029159546, 0.11795336753129959, 0.26652276515960693, -0.17366206645965576, -0.2942923605442047, 0.39408427476882935, -0.07576269656419754, -0.20347511768341064, -0.199003204703331, 0.07119838893413544, -0.06474272906780243, 0.2772108316421509, -0.48234823346138, -0.2717503011226654, -0.08913462609052658, 0.06907288730144501, -0.46978166699409485, 0.0547807402908802, 0.07257137447595596, -0.25847887992858887, 0.20928175747394562, -0.09506174921989441, -0.12169961631298065, -0.09352670609951019, 0.14449840784072876, -0.11194092035293579, 0.39376914501190186, 0.18470126390457153, 0.03770707547664642, 0.12528525292873383, -0.04514310508966446, -0.0289369635283947, 0.01795731671154499, 0.025829996913671494, -0.2516545057296753, 0.16680587828159332, -0.24194404482841492, 0.13582631945610046, 0.5382095575332642, -0.013641268014907837, -0.07334493845701218, -0.2202339917421341, 0.24307915568351746, -0.017075441777706146, 0.012547392398118973, -0.05552291497588158, -0.03012915700674057, 0.2600696086883545, 0.053444407880306244, 0.20679239928722382, 0.09849565476179123, 0.2696778178215027, 0.14460214972496033, -0.04205312579870224, -0.18921862542629242, -0.047375306487083435, 0.3696810305118561, 0.17556263506412506, -0.01623857393860817, -0.04801671952009201, -0.10010823607444763, -0.18776142597198486, -0.21579033136367798, -0.06381181627511978, 0.43410032987594604, 0.035055071115493774, -0.042404331266880035, 0.1875295490026474, 0.09462037682533264, -0.307233601808548, -0.4709871709346771, -0.16273634135723114, 0.13011734187602997, -0.25631263852119446, -0.1446302831172943, 0.022055793553590775, -0.039078883826732635, 0.09298878163099289, 0.22948673367500305, 0.14032116532325745, 0.12524592876434326, -0.2665647268295288, 0.24684076011180878, 0.2726815938949585, 0.23546373844146729, -0.35404878854751587, -0.25261425971984863, 0.0784602016210556, -0.2610495984554291, -0.2898792624473572, 0.47666338086128235, 0.2415371537208557, -0.23808979988098145, -0.12050332129001617, 0.17399047315120697, -0.3685879707336426, -0.6102499961853027, 0.22271358966827393, 0.5504038333892822, 0.0034060031175613403, -0.153170645236969, 0.4553004205226898, -0.3512062430381775, -0.024992704391479492, -0.1852484941482544, 0.200684055685997, 0.09078090637922287, -0.5224427580833435, -0.0838080644607544, 0.3175259232521057, -0.3746548891067505, 0.15617288649082184, 0.0831918939948082, -0.125065878033638, 0.018455319106578827, 0.08023383468389511, 0.328288197517395, 0.21790540218353271, 0.006718441843986511, -0.3236120641231537, -0.08671064674854279, 0.20838479697704315, -0.1398167759180069, 0.05910361185669899, -0.16278952360153198, 0.08299912512302399, -0.07864943891763687, 0.11653405427932739, -0.06207907199859619, -0.17514623701572418, -0.06024954468011856, -0.18593832850456238, -0.0016126278787851334, 0.29397493600845337, 0.09505458176136017, -0.06318429112434387, -0.12906047701835632, -0.06399493664503098, 0.11209498345851898, 0.2877143323421478, -0.3135773539543152, 0.03471354395151138, -0.1390017420053482, 0.21796786785125732, -0.18962307274341583, 0.15461485087871552, -0.00042657554149627686, -0.2107468843460083, -0.25965338945388794, -0.2893158793449402, 0.3917407989501953, -0.2710784673690796, -0.36069363355636597, -0.1353498101234436, 0.11653240770101547, 0.030971858650445938, -0.12209835648536682, 0.10564926266670227, -0.19829803705215454, 0.13696251809597015, 0.015117894858121872, -0.2020953744649887, -0.33096837997436523, -0.04384520649909973, 0.027615971863269806, 0.025364292785525322, 0.05484219640493393, -0.23300309479236603, -0.30741530656814575, -0.10071799159049988, 0.441898912191391, 0.19426870346069336, -0.08051503449678421, -0.05948994308710098, 0.16847112774848938, -0.15029308199882507, 0.009232021868228912, -0.264054536819458, 0.27279791235923767, 0.3974568247795105, -0.156608447432518, 0.3622494339942932, 0.1589593142271042, -0.09211774915456772, 0.2183479368686676, -0.2004212737083435, 0.6143694519996643, -0.03354068472981453, -0.03317735344171524, 0.031242534518241882, 0.015533985570073128, 0.1651894897222519, 0.029435914009809494, -0.21701879799365997, -0.04099301993846893, -0.03730463609099388, -0.0355885811150074, 0.036135364323854446, 0.09332555532455444, -0.5324150919914246, 0.47554972767829895, 0.5489066243171692, -0.519905686378479, -0.10349709540605545, 0.3231068551540375, -0.08590243011713028, -0.33489134907722473, 0.25810545682907104, -0.01625337451696396, 0.1523762047290802, 0.41855594515800476, 0.11700684577226639, 0.3448549807071686, -0.01806705817580223, -0.18492844700813293, 0.44203925132751465, -0.08391536772251129, -0.229612797498703, 0.016644354909658432, 0.04642980545759201, 0.08003223687410355, -0.5077605247497559, 0.18743446469306946, -0.011559954844415188, 0.23498009145259857, -0.2737647294998169, 0.008122853934764862, -0.2570089101791382, -0.41393107175827026, -0.00917730201035738, -0.036967236548662186, -0.1000598669052124, -0.4197053909301758, 0.20235741138458252, -0.17097614705562592, -0.30910536646842957, 0.4080083668231964, 0.21082517504692078, 0.13460013270378113, -0.21379609405994415, -0.1884545087814331, -0.429432213306427, -0.28016194701194763, -0.34116554260253906, 0.12824535369873047, 0.13305851817131042, -0.15395037829875946, 0.23759892582893372, -0.2730056345462799, -0.0018776534125208855, -0.4567052125930786, -0.7513423562049866, 0.07774040102958679, -0.5157355070114136, 0.02774776704609394, 0.4117879867553711, -0.13947580754756927, -0.3082081079483032, -0.026660829782485962, 0.3041381537914276, -0.29360413551330566, -0.3162109851837158, 0.055038951337337494, -0.1475876271724701, 0.014486380852758884, -0.33404791355133057, -0.3108235001564026, -0.24659861624240875, -0.23597653210163116, 0.36793017387390137, -0.21716171503067017, 0.1958705633878708, 0.20822429656982422, 0.24284273386001587, 0.07290062308311462, -0.1300053596496582, -0.1338162124156952, -0.20402158796787262, 0.018261555582284927, 0.2533637583255768, -0.01797342300415039, -0.38950246572494507, -0.21401335299015045, -0.051883161067962646, -0.14019204676151276, -0.20690041780471802, -0.29032260179519653, -0.39163801074028015, -0.09994164109230042, 0.63071608543396, 0.2058449238538742, 0.3764290511608124, 0.36491286754608154, 0.1368986815214157, -0.2578943967819214, -0.11249632388353348, -0.4746861755847931, -0.20422500371932983, 0.11919566988945007, 0.14704260230064392, 0.05239253491163254, 0.09962770342826843, -0.047890108078718185, 0.3393043875694275, 0.06972908973693848, 0.04557214677333832, 0.10524056851863861, -0.05675444006919861, 0.4977232813835144, -0.10044824331998825, -0.08090478181838989, 0.12205495685338974, -0.15730544924736023, 0.05917050689458847, 0.16473275423049927, -0.09301948547363281, -0.07549118250608444, 0.08205975592136383, -0.353690505027771, -0.1742950975894928, -0.31759220361709595, 0.393406480550766, -0.08940759301185608, -0.07164888828992844, 0.060811642557382584, 0.027522802352905273, -0.33088889718055725, 0.07155731320381165, 0.1252758800983429, 0.18320024013519287, 0.0797150656580925, -0.0026728652883321047, -0.1819528192281723, -0.30497878789901733, -0.6587659120559692, 0.4122520685195923, -0.056875113397836685, -0.056148603558540344, 0.11935372650623322, -0.2379664182662964, 0.2592730224132538, -0.18095482885837555, 0.4212389588356018, -0.11678711324930191, -0.18903176486492157, 0.1604243367910385, -0.0022460483014583588, -0.1637158989906311, -0.06110987812280655, -0.4047553539276123, 0.10590340942144394, 0.16389396786689758, 0.017790544778108597, -0.3110443949699402, -0.4589904546737671, 0.33601507544517517, 0.08084961026906967, 0.013444755226373672, -0.2200726717710495, -0.2827034294605255, -0.5712419748306274, -0.2862235903739929, 0.1550571471452713, 0.30869725346565247, 0.0037401882000267506, -0.06819673627614975, 0.21464286744594574, 0.23601390421390533, 0.11228499561548233, 0.21425791084766388, 0.13115929067134857, 0.11639422923326492, 0.056759968400001526, -0.3878479301929474, -0.1562100350856781, 0.07773381471633911, -0.026438197121024132, 0.37143388390541077, -0.19687345623970032, -0.36906543374061584, -0.10435143858194351, 0.12659867107868195, 0.3713533580303192, 0.3426663875579834, 0.11199700832366943, 0.00795157253742218, 0.2778770625591278, 0.1346714198589325, -0.18794985115528107, -0.13045097887516022, 0.1689726710319519, 0.22775959968566895, -0.015750808641314507, -0.24740442633628845, 0.41170746088027954, -0.07983357459306717, -0.17468991875648499, -0.03236900269985199, 0.5716999769210815, -0.20660850405693054, 0.2854282259941101, 0.4204480051994324, 1.2012109756469727, -0.14653493463993073, 0.37422382831573486, 0.5061095952987671, -0.28446468710899353, 0.7260804772377014, -0.1347874104976654, 0.1189231425523758, -0.3124787211418152, 0.16900946199893951, 0.00624251551926136, 0.025049317628145218, 0.051371753215789795, -0.3233080506324768, -0.6233340501785278, 0.1125236451625824, 0.05876673758029938, 0.11255618929862976, 0.43679535388946533, 0.2504040598869324, -0.1338784545660019, -0.06432852149009705, -0.2789596915245056, 0.1189371794462204, 0.030763115733861923, -0.05963818356394768, -0.0059564486145973206, -0.2844501733779907, -0.029889049008488655, -0.2841998338699341, -0.3551459312438965, -0.02926822565495968, 0.02879953756928444, -0.16614565253257751, 0.29627329111099243, -0.06101001054048538, 0.25759369134902954, 0.26236507296562195, 0.28208601474761963, 0.000577785074710846, 0.01773138716816902, 0.08221353590488434, 0.031904082745313644, 0.20861199498176575, 0.2464696317911148, 0.020409487187862396, 0.18675366044044495, -0.26896268129348755, -0.4761844277381897, -0.010489687323570251, -0.05689908191561699, -0.16381675004959106, -0.37091439962387085, 0.015368461608886719, -0.03104974329471588, -0.30951178073883057, 0.13003970682621002, -0.13915394246578217, -0.06111869961023331, -0.2977423667907715, 0.12024030089378357, -0.24160663783550262, -0.0807626023888588, 0.21587404608726501, -0.006985846906900406, -0.1971726417541504, -0.11397117376327515, -0.10192098468542099, 0.10022968798875809, -0.19882738590240479, 0.4460611939430237, 0.07136383652687073, -0.19677959382534027, -0.28624776005744934, -0.08967921137809753, 0.12589775025844574, -0.2932351231575012, 0.2153501808643341, 0.00010143662802875042, -0.10851196944713593, -0.09581069648265839, 0.21439094841480255, 0.2978520393371582, 0.38574978709220886, -0.22670158743858337, 0.0452745258808136, -0.3736235201358795, 0.26472461223602295, 0.110816091299057, 0.05025527998805046, 0.22348588705062866, 0.31531035900115967, 0.22929200530052185, -0.10126957297325134, -0.36041775345802307, -0.04040352255105972, 0.15624094009399414, 0.059972211718559265, 0.026223210617899895, -0.11783402413129807, -0.1819457709789276, 0.0376676507294178, 0.1108507364988327, 0.0794193297624588, -0.21473248302936554, -0.19148695468902588, -0.19060108065605164, 0.13918982446193695, -0.030406445264816284, -0.023307571187615395, 0.20456935465335846, 0.3584122657775879, 0.03952809423208237, 0.05237958952784538, -0.09978418052196503, -0.0824730396270752, -0.08534327149391174, 0.5649542212486267, 0.22562190890312195, 0.2714899778366089, 0.2762784957885742, -0.3834441006183624, 0.1914064735174179, 0.4230617880821228, -0.15079200267791748, 0.2008185237646103, 0.09857943654060364, -0.049394991248846054, 0.15947914123535156, 0.2867649793624878, 0.12366310507059097, 0.0688132643699646, 0.15742631256580353, 0.12507660686969757, 0.058485303074121475, -0.2794792354106903, 0.26622775197029114, 0.33966922760009766, -0.1342989057302475, -0.12563888728618622, 0.2779260575771332, 0.1825360506772995, -0.430313378572464, 0.0899416133761406, 0.1901349276304245, -0.03637748956680298, -0.09405732154846191, 0.09925753623247147, 0.2668236792087555, 0.2403867244720459, 0.1307239681482315, -0.14531907439231873, 0.23630161583423615, -0.06462669372558594, -0.0072504254058003426, 0.4077145755290985, -0.05243106186389923, -0.004894021898508072, 0.489540159702301, 0.24226227402687073, -0.0434630885720253, 0.09373080730438232, -0.24610239267349243, 0.01226300373673439, -0.017782822251319885, 0.4505826234817505, 0.07660995423793793, 0.005816567689180374, 0.4261247515678406, 0.14826008677482605, 0.17822018265724182, -0.12418005615472794, 0.18457257747650146, 0.4589774012565613, 0.07991228997707367, -0.1283520758152008, 0.02509276010096073, 0.4767680764198303, -0.07486268877983093, -0.38090285658836365, -0.19217342138290405, -0.0409189872443676, -0.16938665509223938, -0.12289699912071228, -0.12272106111049652, -0.12757164239883423, 0.58617103099823, 0.020781859755516052, 0.14191174507141113, -0.33152398467063904, 0.1705355942249298, -0.2789541184902191, 0.3117619752883911, -0.09446325153112411, 0.24204425513744354, 0.5761354565620422, -0.08918812870979309, 0.18785591423511505, 0.2637139856815338, 0.6768028140068054, 0.23415008187294006, -0.2754316031932831, 0.1641543060541153, -0.34590062499046326, -0.043836209923028946, 0.01782182604074478, 0.25041574239730835, 0.5164416432380676, 0.43084773421287537, -0.0563918873667717, 0.1274864375591278, -0.09921151399612427, 0.07449084520339966, 0.19063374400138855, 0.04275577515363693, 0.2680683135986328, 0.5026291608810425, 0.335222989320755, -0.23140645027160645, 0.05254681035876274, 0.0819886177778244, -0.26211220026016235, 0.1575445830821991, 0.22068475186824799, 0.22959651052951813, -0.08979848772287369, -0.05250321701169014, 0.10046892613172531, 0.30908313393592834, 0.5123538970947266, 0.3511539399623871, 0.3751594126224518, -0.23723992705345154, 0.12581521272659302, -0.2756842374801636, 0.0522964745759964, 0.3692997395992279, -0.3988971412181854, 0.06601245701313019, 0.05352108180522919, 0.2617907226085663, 0.12633490562438965, 0.09869232773780823, 0.028962349519133568, 0.040611229836940765, -0.10813359916210175, -0.21285495162010193, 0.38811951875686646, 0.4191392660140991, 0.23756712675094604, 0.08879758417606354, -0.023255115374922752, 0.16232429444789886, -0.09387423098087311, 0.013243414461612701, -0.3520123362541199, 0.011593736708164215, 0.17301231622695923, -0.15053850412368774, 0.2103821337223053, 0.369515985250473, 0.3564795255661011, -0.06208088994026184, -0.14492583274841309, 0.11649591475725174, -0.06653290241956711, -0.5492027401924133, 0.46309027075767517, -0.26760274171829224, 0.01561647653579712, -0.04901774972677231, -0.32603681087493896, -0.04406988248229027, 0.13673225045204163, -0.12013212591409683, -0.22774261236190796, -0.31516531109809875, 0.2597627639770508, 0.08760913461446762, -0.1966622918844223, -0.22952169179916382, 0.17081309854984283, 0.07100066542625427, 0.2204267829656601, -0.6386234164237976, -0.30219465494155884, 0.6539546847343445, -0.3227226138114929, -0.18476548790931702, 0.10816370695829391, 0.04054732620716095, 0.05089409649372101, -0.08687837421894073, -0.7664274573326111, -0.021389544010162354, 0.13549603521823883, -0.03790174424648285, -0.21384871006011963, 0.43932780623435974, -0.16410358250141144, 0.059927184134721756, -0.17467732727527618, 0.24471282958984375, -0.10823283344507217, -0.1718076467514038, -0.21250352263450623, -0.4675127863883972 ]
https://github.com/huggingface/datasets/pull/59
Fix tests
Very weird bug indeed! I think the problem was that when importing `setup_module` we overwrote `pytest's` setup_module function. I think this is the relevant code in pytest: https://github.com/pytest-dev/pytest/blob/9d2eabb397b059b75b746259daeb20ee5588f559/src/_pytest/python.py#L460.
@patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ============================================================================= test session starts ============================================================================= platform darwin -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /Users/thomwolf/miniconda2/envs/datasets/bin/python cachedir: .pytest_cache rootdir: /Users/thomwolf/Documents/GitHub/datasets plugins: xdist-1.31.0, forked-1.1.3 collected 1 item tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ERROR =================================================================================== ERRORS ==================================================================================== ____________________________________________________________ ERROR at setup of DatasetTest.test_builder_class_snli ____________________________________________________________ file_path = <module 'tests.test_dataset_common' from '/Users/thomwolf/Documents/GitHub/datasets/tests/test_dataset_common.py'> download_config = DownloadConfig(cache_dir=None, force_download=False, resume_download=False, local_files_only=False, proxies=None, user_agent=None, extract_compressed_file=True, force_extract=True) download_kwargs = {} def setup_module(file_path: str, download_config: Optional[DownloadConfig] = None, **download_kwargs,) -> DatasetBuilder: r""" Download/extract/cache a dataset to add to the lib from a path or url which can be: - a path to a local directory containing the dataset processing python script - an url to a S3 directory with a dataset processing python script Dataset codes are cached inside the lib to allow easy import (avoid ugly sys.path tweaks) and using cloudpickle (among other things). Return: tuple of the unique id associated to the dataset the local path to the dataset """ if download_config is None: download_config = DownloadConfig(**download_kwargs) download_config.extract_compressed_file = True download_config.force_extract = True > name = list(filter(lambda x: x, file_path.split("/")))[-1] + ".py" E AttributeError: module 'tests.test_dataset_common' has no attribute 'split' src/nlp/load.py:169: AttributeError ============================================================================== warnings summary =============================================================================== /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15 /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================================================================== short test summary info =========================================================================== ERROR tests/test_dataset_common.py::DatasetTest::test_builder_class_snli - AttributeError: module 'tests.test_dataset_common' has no attribute 'split' ========================================================================= 1 warning, 1 error in 3.63s ========================================================================= ```
28
text: Fix tests @patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ============================================================================= test session starts ============================================================================= platform darwin -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /Users/thomwolf/miniconda2/envs/datasets/bin/python cachedir: .pytest_cache rootdir: /Users/thomwolf/Documents/GitHub/datasets plugins: xdist-1.31.0, forked-1.1.3 collected 1 item tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ERROR =================================================================================== ERRORS ==================================================================================== ____________________________________________________________ ERROR at setup of DatasetTest.test_builder_class_snli ____________________________________________________________ file_path = <module 'tests.test_dataset_common' from '/Users/thomwolf/Documents/GitHub/datasets/tests/test_dataset_common.py'> download_config = DownloadConfig(cache_dir=None, force_download=False, resume_download=False, local_files_only=False, proxies=None, user_agent=None, extract_compressed_file=True, force_extract=True) download_kwargs = {} def setup_module(file_path: str, download_config: Optional[DownloadConfig] = None, **download_kwargs,) -> DatasetBuilder: r""" Download/extract/cache a dataset to add to the lib from a path or url which can be: - a path to a local directory containing the dataset processing python script - an url to a S3 directory with a dataset processing python script Dataset codes are cached inside the lib to allow easy import (avoid ugly sys.path tweaks) and using cloudpickle (among other things). Return: tuple of the unique id associated to the dataset the local path to the dataset """ if download_config is None: download_config = DownloadConfig(**download_kwargs) download_config.extract_compressed_file = True download_config.force_extract = True > name = list(filter(lambda x: x, file_path.split("/")))[-1] + ".py" E AttributeError: module 'tests.test_dataset_common' has no attribute 'split' src/nlp/load.py:169: AttributeError ============================================================================== warnings summary =============================================================================== /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15 /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================================================================== short test summary info =========================================================================== ERROR tests/test_dataset_common.py::DatasetTest::test_builder_class_snli - AttributeError: module 'tests.test_dataset_common' has no attribute 'split' ========================================================================= 1 warning, 1 error in 3.63s ========================================================================= ``` Very weird bug indeed! I think the problem was that when importing `setup_module` we overwrote `pytest's` setup_module function. I think this is the relevant code in pytest: https://github.com/pytest-dev/pytest/blob/9d2eabb397b059b75b746259daeb20ee5588f559/src/_pytest/python.py#L460.
[ -0.35501813888549805, -0.1514940857887268, -0.1484004557132721, 0.13358333706855774, 0.21939782798290253, 0.19933927059173584, 0.3579106032848358, 0.41406911611557007, -0.12702159583568573, 0.15848954021930695, -0.11104227602481842, 0.16461621224880219, -0.11536303907632828, 0.22768382728099823, 0.12798762321472168, 0.12864330410957336, -0.045796580612659454, 0.10440285503864288, 0.037388041615486145, 0.29843223094940186, -0.1919289231300354, 0.17073169350624084, -0.07650087773799896, -0.041750743985176086, -0.20743374526500702, -0.056542836129665375, -0.18388251960277557, 0.3250371515750885, -0.13273009657859802, -0.5756911635398865, 0.2074289619922638, 0.16410645842552185, -0.1514163315296173, 0.31359079480171204, -0.00011247961811022833, -0.027086865156888962, 0.3981252908706665, -0.09481392800807953, -0.5207785964012146, -0.18140684068202972, 0.12980026006698608, -0.11833347380161285, 0.17535187304019928, -0.33748382329940796, 0.24367272853851318, -0.04207243770360947, -0.02288799174129963, -0.13324713706970215, 0.07758919149637222, 0.4225890636444092, 0.2854520082473755, 0.3216216564178467, -0.028425490483641624, -0.24816612899303436, 0.4706595540046692, -0.07107140123844147, 0.21183182299137115, 0.5062385201454163, 0.401153564453125, -0.04739890247583389, 0.2388160526752472, 0.13364766538143158, -0.2367396205663681, 0.17082300782203674, 0.00771278515458107, -0.08391845226287842, 0.36513349413871765, -0.17905952036380768, -0.05715508013963699, -0.20302456617355347, 0.441084086894989, -0.3810937702655792, -0.1427040994167328, -0.26814165711402893, 0.004663331434130669, -0.07867056131362915, 0.19165147840976715, 0.05324786901473999, -0.1580459475517273, 0.11319483816623688, -0.2537578046321869, -0.15098145604133606, 0.18654927611351013, 0.15357255935668945, -0.3073287606239319, 0.22560685873031616, 0.013058848679065704, 0.03647363930940628, 0.05295425280928612, 0.11110447347164154, 0.23054008185863495, 0.13729864358901978, -0.1542474627494812, -0.028601400554180145, -0.255166232585907, -0.12652841210365295, 0.08710282295942307, -0.04737256467342377, 0.06982628256082535, 0.4286807179450989, -0.19901208579540253, -0.2636929750442505, 0.011094151996076107, 0.22001057863235474, -0.19064830243587494, 0.30192679166793823, 0.06585713475942612, 0.38004717230796814, 0.08069171011447906, 0.23886524140834808, 0.012049932032823563, -0.014468669891357422, 0.10012355446815491, -0.4229885935783386, 0.015977054834365845, 0.17661648988723755, 0.5191988945007324, -0.20973104238510132, -0.5538843274116516, -0.005993225611746311, -0.1921771764755249, -0.0739482119679451, 0.10348355770111084, 0.30182984471321106, -0.06366407126188278, 0.05627525970339775, 0.10647816956043243, 0.2134963423013687, -0.27363112568855286, -0.0443304181098938, -0.17680223286151886, 0.21505410969257355, -0.047741491347551346, -0.049899302423000336, 0.21725495159626007, -0.1515573412179947, 0.15378694236278534, 0.15876668691635132, 0.03104761615395546, -0.11423433572053909, 0.288351833820343, -0.03776531666517258, -0.08355217427015305, 0.40085482597351074, -0.017240013927221298, 0.09530781954526901, 0.17966124415397644, -0.13819846510887146, -0.07603046298027039, 0.4127328395843506, -0.31983646750450134, -0.5863886475563049, 0.06270761042833328, 0.32597997784614563, -0.14946846663951874, -0.19906748831272125, -0.06442450731992722, -0.20390884578227997, 0.21051368117332458, -0.31449195742607117, 0.15915066003799438, -0.356518030166626, 0.0670313835144043, -0.12972624599933624, 0.07962755858898163, 0.2236444056034088, -0.3873225152492523, -0.1624881476163864, -0.2877991199493408, -0.12547588348388672, 0.19264477491378784, 0.06160016357898712, -0.08679448068141937, 0.19387248158454895, -0.4026243984699249, 0.2176581472158432, 0.11047158390283585, -0.4776737093925476, -0.303773432970047, 0.041996151208877563, -0.2791329622268677, -0.12430576235055923, 0.15396477282047272, -0.1528075635433197, 0.1584693044424057, -0.15860457718372345, -0.16455383598804474, -0.08056601881980896, -0.14860640466213226, -0.019529910758137703, -0.4044273793697357, -0.2817407548427582, 0.47575587034225464, 0.28754591941833496, 0.15508762001991272, -0.11224084347486496, 0.12764988839626312, -0.07236644625663757, 0.26838651299476624, -0.17662589251995087, -0.05893482267856598, 0.08852513134479523, 0.38376814126968384, 0.060406360775232315, -0.05649959295988083, -0.2548280954360962, -0.3306817412376404, 0.17386531829833984, 0.12045113742351532, -0.044164083898067474, -0.09102243185043335, -0.14180871844291687, -0.5201757550239563, -0.08393582701683044, -0.2166586071252823, -0.16667458415031433, 0.13735391199588776, 0.22122953832149506, -0.13255815207958221, -0.10914573073387146, 0.017829831689596176, 0.08262219280004501, -0.11510248482227325, 0.14751243591308594, 0.0026860125362873077, 0.2591899335384369, -0.23096059262752533, -0.13893121480941772, -0.018554339185357094, -0.03434240072965622, 0.12965714931488037, -0.2563902735710144, -0.210963636636734, 0.40857407450675964, 0.006562151946127415, -0.043941691517829895, 0.07536539435386658, -0.017983555793762207, 0.0010248851031064987, -0.13799656927585602, -0.04376229643821716, 0.2696590721607208, 0.10664064437150955, -0.24336674809455872, -0.024011127650737762, 0.20365753769874573, -0.1798299252986908, 0.15249313414096832, -0.10990475118160248, 0.026974288746714592, 0.14677724242210388, -0.011927220970392227, 0.2344667762517929, -0.045333247631788254, 0.5097185373306274, 0.02494872361421585, 0.6796942353248596, -0.29814785718917847, 0.006069600582122803, 0.21239319443702698, -0.15519122779369354, -0.09004400670528412, -0.033209532499313354, 0.1820654273033142, 0.10281706601381302, 0.025791287422180176, 0.08007549494504929, 0.2782209515571594, 0.7067583799362183, 0.17045478522777557, -0.1270826905965805, 0.14380282163619995, 0.1741914600133896, -0.3435091972351074, 0.45357829332351685, -0.05383007228374481, -0.10518251359462738, 0.12237019836902618, 0.2450343519449234, -0.14396576583385468, -0.06269600242376328, -0.2925751805305481, 0.23695451021194458, 0.28206849098205566, -0.45354750752449036, 0.09108887612819672, -0.05191385746002197, -0.31334608793258667, -0.0318305678665638, -0.029687590897083282, -0.08752590417861938, -0.4767313599586487, 0.07903360575437546, 0.2281600534915924, -0.08034982532262802, -0.01449429802596569, 0.13239909708499908, 0.36543145775794983, 0.09348385781049728, 0.003133084625005722, -0.2048412561416626, -0.2501784563064575, -0.17115220427513123, 0.19345736503601074, 0.2895098924636841, -0.14583522081375122, 0.4264207184314728, -0.40478721261024475, -0.22573284804821014, -0.23919478058815002, -0.27732113003730774, 0.1226462572813034, -0.13318590819835663, 0.3736600875854492, 0.35777801275253296, -0.0011434480547904968, 0.0771513357758522, -0.15642638504505157, 0.27509188652038574, -0.06856983155012131, -0.15392206609249115, 0.11488331854343414, 0.27086353302001953, -0.022281575947999954, -0.3230822682380676, -0.5922598242759705, -0.43195632100105286, -0.2675721049308777, 0.13592059910297394, 0.08801382780075073, 0.16522544622421265, 0.42250707745552063, -0.04594084247946739, -0.05522256717085838, -0.07055554538965225, 0.05366060137748718, -0.184144988656044, -0.4652006924152374, 0.0892002135515213, -0.24155695736408234, -0.21585394442081451, -0.09855150431394577, 0.22532720863819122, 0.024238476529717445, -0.14750555157661438, -0.4384777545928955, -0.15798471868038177, -0.09822263568639755, 0.3140128254890442, -0.26422119140625, 0.14849084615707397, 0.1555776596069336, 0.15689717233181, -0.06402570009231567, -0.15514522790908813, 0.020784687250852585, -0.09917197376489639, 0.014332162216305733, 0.18718692660331726, -0.384267121553421, 0.024881936609745026, -0.09960244596004486, 0.42497003078460693, 0.0394124761223793, 0.1550898402929306, 0.18023552000522614, -0.08076535910367966, 0.2506279945373535, -0.2010565996170044, -0.410672664642334, 0.20831020176410675, -0.124686598777771, -0.43409740924835205, 0.08648224174976349, -0.15799298882484436, -0.025307880714535713, -0.051199570298194885, 0.16129644215106964, -0.2976849675178528, -0.13973814249038696, -0.06454198807477951, -0.2569948434829712, -0.09942319244146347, 0.040244925767183304, -0.038535550236701965, -0.15619757771492004, -0.0716397687792778, 0.07211072742938995, 0.4674376845359802, -0.02415335923433304, -0.08377853035926819, -0.3694472908973694, -0.08415302634239197, -0.009368278086185455, 0.230600044131279, 0.0691700428724289, 0.20347289741039276, -0.08478344231843948, -0.0015535876154899597, 0.03604874387383461, -0.11309607326984406, 0.5439167618751526, -0.04889899492263794, 0.051166463643312454, 0.5480846762657166, -0.0714958980679512, -0.047527976334095, -0.3837655782699585, -0.5380069017410278, 0.1748235672712326, 0.1470060497522354, -0.09083977341651917, -0.25132977962493896, 0.040746547281742096, 0.17677246034145355, 0.20226071774959564, -0.10626302659511566, -0.2810702621936798, -0.10704699158668518, -0.29948559403419495, -0.3682815432548523, -0.1073620542883873, -0.018153438344597816, 0.19204820692539215, -0.37317490577697754, 0.17092891037464142, -0.025122271850705147, -0.2006644904613495, 0.17204797267913818, -0.0026356270536780357, 0.36486852169036865, -0.2447907030582428, 0.2611130475997925, -0.03937891870737076, 0.03399623930454254, 0.5041292905807495, 0.43041643500328064, 0.04980822652578354, 0.10423380136489868, 0.09264418482780457, -0.14379923045635223, 0.20827844738960266, 0.13627827167510986, -0.2616654634475708, 0.0005913898348808289, -0.22407123446464539, 0.3112187087535858, 0.006347477436065674, 0.38117852807044983, 0.23968371748924255, 0.24884232878684998, 0.04074591398239136, -0.21361640095710754, 0.1898300051689148, 0.18636563420295715, -0.06557382643222809, 0.33055803179740906, -0.29463082551956177, -0.25088679790496826, -0.005353505257517099, -0.01615263521671295, 0.9776410460472107, 0.1069510281085968, 0.10166825354099274, 0.3791845142841339, 0.017357289791107178, 0.17944367229938507, -0.17608502507209778, 0.1661338061094284, -0.4506513476371765, -0.31454411149024963, 0.1163884848356247, -0.2679716646671295, -0.005444832146167755, -0.09045986831188202, -0.3903161585330963, 0.20477184653282166, -0.2601745128631592, 0.1257707178592682, 0.13579000532627106, 0.13449762761592865, -0.33651161193847656, 0.18958227336406708, -0.14738334715366364, 0.22225767374038696, 0.012631446123123169, 0.13911370933055878, -0.3988707959651947, 0.20291757583618164, -0.04257376864552498, -0.1533728688955307, -0.3395116329193115, -0.014268279075622559, -0.25662556290626526, 0.3284616470336914, -0.12806794047355652, -0.2069321721792221, -0.058124758303165436, -0.04660407826304436, -0.11630366742610931, 0.1230766773223877, -0.007862495258450508, -0.018299352377653122, -0.1626848578453064, 0.050035666674375534, 0.40934136509895325, -0.059915658086538315, 0.31321343779563904, -0.17101436853408813, -0.2492978572845459, 0.06694579124450684, -0.09347458928823471, -0.15895044803619385, -0.2205483764410019, 0.06075553968548775, 0.24547338485717773, -0.4491085112094879, -0.2689260244369507, -0.20063716173171997, -0.038984354585409164, -0.25428420305252075, 0.15627199411392212, 0.09456036984920502, -0.14770659804344177, 0.15854868292808533, -0.18313349783420563, -0.1796317845582962, -0.11151695251464844, 0.11835583299398422, 0.00044124945998191833, -0.11309457570314407, 0.43417152762413025, 0.05435122922062874, -0.0869077742099762, -0.3103826940059662, 0.1605074107646942, -0.10056259483098984, -0.2422994077205658, 0.490254670381546, -0.3367045223712921, 0.015004515647888184, -0.03742692247033119, 0.3056286573410034, 0.3450060486793518, 0.32176610827445984, -0.0825410783290863, -0.5320782661437988, -0.19981509447097778, 0.06364569067955017, 0.06679655611515045, 0.353200227022171, 0.04231283813714981, 0.23854318261146545, -0.057192593812942505, -0.07150483131408691, -0.39711251854896545, 0.13310202956199646, -0.12125139683485031, 0.1458745002746582, -0.16884095966815948, -0.041646793484687805, 0.08155012130737305, -0.17708224058151245, 0.17748995125293732, 0.049745090305805206, -0.08402040600776672, -0.3614824712276459, 0.049990687519311905, 0.11939676105976105, 0.08472350239753723, -0.06409107148647308, 0.21741223335266113, 0.04384356737136841, 0.06818658858537674, 0.0762181505560875, 0.10170955955982208, -0.03792386129498482, 0.05201952904462814, 0.20428860187530518, 0.44220802187919617, -0.09748136252164841, -0.3284321427345276, 0.20931853353977203, -0.05494266748428345, 0.11450466513633728, -0.19663892686367035, 0.20908324420452118, -0.10146570950746536, 0.00034256279468536377, -0.09414920210838318, 0.055290982127189636, 0.19192293286323547, 0.339142769575119, 0.14764688909053802, -0.396547794342041, 0.05760939046740532, -0.023828083649277687, 0.45975038409233093, 0.6705237030982971, -0.3293887674808502, -0.00976366363465786, 0.17320609092712402, 0.3024153411388397, -0.2911490201950073, 0.02050071395933628, 0.05418267846107483, 0.12904299795627594, -0.03939640522003174, 0.2525360882282257, 0.02620062604546547, -0.16134336590766907, 0.19698694348335266, 0.25918763875961304, 0.3690349757671356, 0.3168985843658447, 0.19151699542999268, 0.35010942816734314, -0.23165374994277954, 0.0953904241323471, 0.213253915309906, -0.14072084426879883, 0.09914068877696991, 0.17449705302715302, -0.137101411819458, 0.5082572102546692, 0.22670891880989075, -0.1455518752336502, 0.12508711218833923, -0.15473127365112305, 0.24852538108825684, -0.015354380011558533, 0.12489712983369827, -0.030105575919151306, 0.10195624828338623, 0.5553907752037048, -0.24351786077022552, -0.2888706922531128, 0.1565791219472885, 0.2338346689939499, -0.23320823907852173, 0.07595695555210114, -0.14556503295898438, -0.08265464007854462, -0.3022492825984955, -0.14724956452846527, -0.12488709390163422, -0.1297728270292282, 0.4160189628601074, 0.1816197633743286, -0.26205748319625854, -0.4414226710796356, 0.03345774486660957, 0.38966190814971924, 0.09158370643854141, -0.3135093152523041, 0.11042147129774094, 0.3605998158454895, 0.00009226053953170776, 0.07408762723207474, 0.4896884858608246, 0.7736062407493591, 0.33531421422958374, -0.2263192981481552, -0.2161288857460022, -0.0878266841173172, -0.056062668561935425, 0.21051739156246185, -0.04989740252494812, -0.0904339998960495, 0.05793571099638939, 0.2883581519126892, 0.30734550952911377, -0.22377151250839233, 0.20250116288661957, 0.26959389448165894, -0.3651086091995239, -0.18680261075496674, 0.14887487888336182, 0.1028301790356636, -0.21070322394371033, -0.17280608415603638, 0.022294551134109497, -0.4808688461780548, 0.27784496545791626, 0.4035091996192932, 0.18766112625598907, 0.09121141582727432, 0.2277766317129135, 0.14874419569969177, 0.030284879729151726, 0.24119894206523895, 0.3657223582267761, 0.08890368789434433, -0.5338331460952759, -0.14993350207805634, -0.523472785949707, 0.1870225965976715, -0.02302451804280281, -0.39171913266181946, 0.1314966380596161, 0.015060463920235634, 0.03682631254196167, 0.025746895000338554, 0.40815645456314087, 0.27446475625038147, 0.12396889179944992, 0.04365964233875275, -0.4204043745994568, -0.2295936793088913, 0.016945451498031616, -0.21919171512126923, 0.0834912583231926, -0.41528862714767456, 0.24628740549087524, -0.3279525637626648, 0.08483285456895828, -0.16194245219230652, -0.006563588976860046, 0.33087214827537537, -0.008760537952184677, 0.32360580563545227, -0.041530512273311615, 0.5907094478607178, -0.01215602457523346, -0.03813329339027405, -0.11042363941669464, -0.2817454934120178, -0.05044563114643097, 0.3078766167163849, -0.0052802674472332, 0.23918560147285461, -0.2126089632511139, -0.07376836240291595, -0.37964487075805664, 0.27267780900001526, 0.15843728184700012, -0.028910716995596886, -0.23959356546401978, 0.10066637396812439, 0.0122489333152771, 0.2076539844274521, 0.15051768720149994, 0.21932029724121094, -0.12814484536647797, 0.41550981998443604, -0.4796634912490845, -0.6238704919815063, 0.6112184524536133, 0.12706424295902252, -0.22173462808132172, -0.11656872928142548, 0.2963334023952484, 0.0592949278652668, -0.04519248008728027, -0.5873926281929016, 0.003488697111606598, 0.41976872086524963, -0.1573481559753418, -0.20262455940246582, 0.41112324595451355, 0.2598854899406433, 0.06169482693076134, 0.03442704305052757, 0.32958805561065674, 0.17631730437278748, -0.061285123229026794, 0.013264250010251999, -0.19481876492500305 ]
https://github.com/huggingface/datasets/pull/59
Fix tests
Also PR: #25 introduced some renaming: `DatasetBuilder.builder_config` -> `DatasetBuilder.config` so that we will have to change most of the dataset scripts (Just replace the "builder_config" with "config"). I think the renaming is a good idea and I can do the fix with a bash regex, but will have to re-upload most of the datasets. @thomwolf @mariamabarham
@patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ============================================================================= test session starts ============================================================================= platform darwin -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /Users/thomwolf/miniconda2/envs/datasets/bin/python cachedir: .pytest_cache rootdir: /Users/thomwolf/Documents/GitHub/datasets plugins: xdist-1.31.0, forked-1.1.3 collected 1 item tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ERROR =================================================================================== ERRORS ==================================================================================== ____________________________________________________________ ERROR at setup of DatasetTest.test_builder_class_snli ____________________________________________________________ file_path = <module 'tests.test_dataset_common' from '/Users/thomwolf/Documents/GitHub/datasets/tests/test_dataset_common.py'> download_config = DownloadConfig(cache_dir=None, force_download=False, resume_download=False, local_files_only=False, proxies=None, user_agent=None, extract_compressed_file=True, force_extract=True) download_kwargs = {} def setup_module(file_path: str, download_config: Optional[DownloadConfig] = None, **download_kwargs,) -> DatasetBuilder: r""" Download/extract/cache a dataset to add to the lib from a path or url which can be: - a path to a local directory containing the dataset processing python script - an url to a S3 directory with a dataset processing python script Dataset codes are cached inside the lib to allow easy import (avoid ugly sys.path tweaks) and using cloudpickle (among other things). Return: tuple of the unique id associated to the dataset the local path to the dataset """ if download_config is None: download_config = DownloadConfig(**download_kwargs) download_config.extract_compressed_file = True download_config.force_extract = True > name = list(filter(lambda x: x, file_path.split("/")))[-1] + ".py" E AttributeError: module 'tests.test_dataset_common' has no attribute 'split' src/nlp/load.py:169: AttributeError ============================================================================== warnings summary =============================================================================== /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15 /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================================================================== short test summary info =========================================================================== ERROR tests/test_dataset_common.py::DatasetTest::test_builder_class_snli - AttributeError: module 'tests.test_dataset_common' has no attribute 'split' ========================================================================= 1 warning, 1 error in 3.63s ========================================================================= ```
56
text: Fix tests @patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ============================================================================= test session starts ============================================================================= platform darwin -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /Users/thomwolf/miniconda2/envs/datasets/bin/python cachedir: .pytest_cache rootdir: /Users/thomwolf/Documents/GitHub/datasets plugins: xdist-1.31.0, forked-1.1.3 collected 1 item tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ERROR =================================================================================== ERRORS ==================================================================================== ____________________________________________________________ ERROR at setup of DatasetTest.test_builder_class_snli ____________________________________________________________ file_path = <module 'tests.test_dataset_common' from '/Users/thomwolf/Documents/GitHub/datasets/tests/test_dataset_common.py'> download_config = DownloadConfig(cache_dir=None, force_download=False, resume_download=False, local_files_only=False, proxies=None, user_agent=None, extract_compressed_file=True, force_extract=True) download_kwargs = {} def setup_module(file_path: str, download_config: Optional[DownloadConfig] = None, **download_kwargs,) -> DatasetBuilder: r""" Download/extract/cache a dataset to add to the lib from a path or url which can be: - a path to a local directory containing the dataset processing python script - an url to a S3 directory with a dataset processing python script Dataset codes are cached inside the lib to allow easy import (avoid ugly sys.path tweaks) and using cloudpickle (among other things). Return: tuple of the unique id associated to the dataset the local path to the dataset """ if download_config is None: download_config = DownloadConfig(**download_kwargs) download_config.extract_compressed_file = True download_config.force_extract = True > name = list(filter(lambda x: x, file_path.split("/")))[-1] + ".py" E AttributeError: module 'tests.test_dataset_common' has no attribute 'split' src/nlp/load.py:169: AttributeError ============================================================================== warnings summary =============================================================================== /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15 /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================================================================== short test summary info =========================================================================== ERROR tests/test_dataset_common.py::DatasetTest::test_builder_class_snli - AttributeError: module 'tests.test_dataset_common' has no attribute 'split' ========================================================================= 1 warning, 1 error in 3.63s ========================================================================= ``` Also PR: #25 introduced some renaming: `DatasetBuilder.builder_config` -> `DatasetBuilder.config` so that we will have to change most of the dataset scripts (Just replace the "builder_config" with "config"). I think the renaming is a good idea and I can do the fix with a bash regex, but will have to re-upload most of the datasets. @thomwolf @mariamabarham
[ -0.35501813888549805, -0.1514940857887268, -0.1484004557132721, 0.13358333706855774, 0.21939782798290253, 0.19933927059173584, 0.3579106032848358, 0.41406911611557007, -0.12702159583568573, 0.15848954021930695, -0.11104227602481842, 0.16461621224880219, -0.11536303907632828, 0.22768382728099823, 0.12798762321472168, 0.12864330410957336, -0.045796580612659454, 0.10440285503864288, 0.037388041615486145, 0.29843223094940186, -0.1919289231300354, 0.17073169350624084, -0.07650087773799896, -0.041750743985176086, -0.20743374526500702, -0.056542836129665375, -0.18388251960277557, 0.3250371515750885, -0.13273009657859802, -0.5756911635398865, 0.2074289619922638, 0.16410645842552185, -0.1514163315296173, 0.31359079480171204, -0.00011247961811022833, -0.027086865156888962, 0.3981252908706665, -0.09481392800807953, -0.5207785964012146, -0.18140684068202972, 0.12980026006698608, -0.11833347380161285, 0.17535187304019928, -0.33748382329940796, 0.24367272853851318, -0.04207243770360947, -0.02288799174129963, -0.13324713706970215, 0.07758919149637222, 0.4225890636444092, 0.2854520082473755, 0.3216216564178467, -0.028425490483641624, -0.24816612899303436, 0.4706595540046692, -0.07107140123844147, 0.21183182299137115, 0.5062385201454163, 0.401153564453125, -0.04739890247583389, 0.2388160526752472, 0.13364766538143158, -0.2367396205663681, 0.17082300782203674, 0.00771278515458107, -0.08391845226287842, 0.36513349413871765, -0.17905952036380768, -0.05715508013963699, -0.20302456617355347, 0.441084086894989, -0.3810937702655792, -0.1427040994167328, -0.26814165711402893, 0.004663331434130669, -0.07867056131362915, 0.19165147840976715, 0.05324786901473999, -0.1580459475517273, 0.11319483816623688, -0.2537578046321869, -0.15098145604133606, 0.18654927611351013, 0.15357255935668945, -0.3073287606239319, 0.22560685873031616, 0.013058848679065704, 0.03647363930940628, 0.05295425280928612, 0.11110447347164154, 0.23054008185863495, 0.13729864358901978, -0.1542474627494812, -0.028601400554180145, -0.255166232585907, -0.12652841210365295, 0.08710282295942307, -0.04737256467342377, 0.06982628256082535, 0.4286807179450989, -0.19901208579540253, -0.2636929750442505, 0.011094151996076107, 0.22001057863235474, -0.19064830243587494, 0.30192679166793823, 0.06585713475942612, 0.38004717230796814, 0.08069171011447906, 0.23886524140834808, 0.012049932032823563, -0.014468669891357422, 0.10012355446815491, -0.4229885935783386, 0.015977054834365845, 0.17661648988723755, 0.5191988945007324, -0.20973104238510132, -0.5538843274116516, -0.005993225611746311, -0.1921771764755249, -0.0739482119679451, 0.10348355770111084, 0.30182984471321106, -0.06366407126188278, 0.05627525970339775, 0.10647816956043243, 0.2134963423013687, -0.27363112568855286, -0.0443304181098938, -0.17680223286151886, 0.21505410969257355, -0.047741491347551346, -0.049899302423000336, 0.21725495159626007, -0.1515573412179947, 0.15378694236278534, 0.15876668691635132, 0.03104761615395546, -0.11423433572053909, 0.288351833820343, -0.03776531666517258, -0.08355217427015305, 0.40085482597351074, -0.017240013927221298, 0.09530781954526901, 0.17966124415397644, -0.13819846510887146, -0.07603046298027039, 0.4127328395843506, -0.31983646750450134, -0.5863886475563049, 0.06270761042833328, 0.32597997784614563, -0.14946846663951874, -0.19906748831272125, -0.06442450731992722, -0.20390884578227997, 0.21051368117332458, -0.31449195742607117, 0.15915066003799438, -0.356518030166626, 0.0670313835144043, -0.12972624599933624, 0.07962755858898163, 0.2236444056034088, -0.3873225152492523, -0.1624881476163864, -0.2877991199493408, -0.12547588348388672, 0.19264477491378784, 0.06160016357898712, -0.08679448068141937, 0.19387248158454895, -0.4026243984699249, 0.2176581472158432, 0.11047158390283585, -0.4776737093925476, -0.303773432970047, 0.041996151208877563, -0.2791329622268677, -0.12430576235055923, 0.15396477282047272, -0.1528075635433197, 0.1584693044424057, -0.15860457718372345, -0.16455383598804474, -0.08056601881980896, -0.14860640466213226, -0.019529910758137703, -0.4044273793697357, -0.2817407548427582, 0.47575587034225464, 0.28754591941833496, 0.15508762001991272, -0.11224084347486496, 0.12764988839626312, -0.07236644625663757, 0.26838651299476624, -0.17662589251995087, -0.05893482267856598, 0.08852513134479523, 0.38376814126968384, 0.060406360775232315, -0.05649959295988083, -0.2548280954360962, -0.3306817412376404, 0.17386531829833984, 0.12045113742351532, -0.044164083898067474, -0.09102243185043335, -0.14180871844291687, -0.5201757550239563, -0.08393582701683044, -0.2166586071252823, -0.16667458415031433, 0.13735391199588776, 0.22122953832149506, -0.13255815207958221, -0.10914573073387146, 0.017829831689596176, 0.08262219280004501, -0.11510248482227325, 0.14751243591308594, 0.0026860125362873077, 0.2591899335384369, -0.23096059262752533, -0.13893121480941772, -0.018554339185357094, -0.03434240072965622, 0.12965714931488037, -0.2563902735710144, -0.210963636636734, 0.40857407450675964, 0.006562151946127415, -0.043941691517829895, 0.07536539435386658, -0.017983555793762207, 0.0010248851031064987, -0.13799656927585602, -0.04376229643821716, 0.2696590721607208, 0.10664064437150955, -0.24336674809455872, -0.024011127650737762, 0.20365753769874573, -0.1798299252986908, 0.15249313414096832, -0.10990475118160248, 0.026974288746714592, 0.14677724242210388, -0.011927220970392227, 0.2344667762517929, -0.045333247631788254, 0.5097185373306274, 0.02494872361421585, 0.6796942353248596, -0.29814785718917847, 0.006069600582122803, 0.21239319443702698, -0.15519122779369354, -0.09004400670528412, -0.033209532499313354, 0.1820654273033142, 0.10281706601381302, 0.025791287422180176, 0.08007549494504929, 0.2782209515571594, 0.7067583799362183, 0.17045478522777557, -0.1270826905965805, 0.14380282163619995, 0.1741914600133896, -0.3435091972351074, 0.45357829332351685, -0.05383007228374481, -0.10518251359462738, 0.12237019836902618, 0.2450343519449234, -0.14396576583385468, -0.06269600242376328, -0.2925751805305481, 0.23695451021194458, 0.28206849098205566, -0.45354750752449036, 0.09108887612819672, -0.05191385746002197, -0.31334608793258667, -0.0318305678665638, -0.029687590897083282, -0.08752590417861938, -0.4767313599586487, 0.07903360575437546, 0.2281600534915924, -0.08034982532262802, -0.01449429802596569, 0.13239909708499908, 0.36543145775794983, 0.09348385781049728, 0.003133084625005722, -0.2048412561416626, -0.2501784563064575, -0.17115220427513123, 0.19345736503601074, 0.2895098924636841, -0.14583522081375122, 0.4264207184314728, -0.40478721261024475, -0.22573284804821014, -0.23919478058815002, -0.27732113003730774, 0.1226462572813034, -0.13318590819835663, 0.3736600875854492, 0.35777801275253296, -0.0011434480547904968, 0.0771513357758522, -0.15642638504505157, 0.27509188652038574, -0.06856983155012131, -0.15392206609249115, 0.11488331854343414, 0.27086353302001953, -0.022281575947999954, -0.3230822682380676, -0.5922598242759705, -0.43195632100105286, -0.2675721049308777, 0.13592059910297394, 0.08801382780075073, 0.16522544622421265, 0.42250707745552063, -0.04594084247946739, -0.05522256717085838, -0.07055554538965225, 0.05366060137748718, -0.184144988656044, -0.4652006924152374, 0.0892002135515213, -0.24155695736408234, -0.21585394442081451, -0.09855150431394577, 0.22532720863819122, 0.024238476529717445, -0.14750555157661438, -0.4384777545928955, -0.15798471868038177, -0.09822263568639755, 0.3140128254890442, -0.26422119140625, 0.14849084615707397, 0.1555776596069336, 0.15689717233181, -0.06402570009231567, -0.15514522790908813, 0.020784687250852585, -0.09917197376489639, 0.014332162216305733, 0.18718692660331726, -0.384267121553421, 0.024881936609745026, -0.09960244596004486, 0.42497003078460693, 0.0394124761223793, 0.1550898402929306, 0.18023552000522614, -0.08076535910367966, 0.2506279945373535, -0.2010565996170044, -0.410672664642334, 0.20831020176410675, -0.124686598777771, -0.43409740924835205, 0.08648224174976349, -0.15799298882484436, -0.025307880714535713, -0.051199570298194885, 0.16129644215106964, -0.2976849675178528, -0.13973814249038696, -0.06454198807477951, -0.2569948434829712, -0.09942319244146347, 0.040244925767183304, -0.038535550236701965, -0.15619757771492004, -0.0716397687792778, 0.07211072742938995, 0.4674376845359802, -0.02415335923433304, -0.08377853035926819, -0.3694472908973694, -0.08415302634239197, -0.009368278086185455, 0.230600044131279, 0.0691700428724289, 0.20347289741039276, -0.08478344231843948, -0.0015535876154899597, 0.03604874387383461, -0.11309607326984406, 0.5439167618751526, -0.04889899492263794, 0.051166463643312454, 0.5480846762657166, -0.0714958980679512, -0.047527976334095, -0.3837655782699585, -0.5380069017410278, 0.1748235672712326, 0.1470060497522354, -0.09083977341651917, -0.25132977962493896, 0.040746547281742096, 0.17677246034145355, 0.20226071774959564, -0.10626302659511566, -0.2810702621936798, -0.10704699158668518, -0.29948559403419495, -0.3682815432548523, -0.1073620542883873, -0.018153438344597816, 0.19204820692539215, -0.37317490577697754, 0.17092891037464142, -0.025122271850705147, -0.2006644904613495, 0.17204797267913818, -0.0026356270536780357, 0.36486852169036865, -0.2447907030582428, 0.2611130475997925, -0.03937891870737076, 0.03399623930454254, 0.5041292905807495, 0.43041643500328064, 0.04980822652578354, 0.10423380136489868, 0.09264418482780457, -0.14379923045635223, 0.20827844738960266, 0.13627827167510986, -0.2616654634475708, 0.0005913898348808289, -0.22407123446464539, 0.3112187087535858, 0.006347477436065674, 0.38117852807044983, 0.23968371748924255, 0.24884232878684998, 0.04074591398239136, -0.21361640095710754, 0.1898300051689148, 0.18636563420295715, -0.06557382643222809, 0.33055803179740906, -0.29463082551956177, -0.25088679790496826, -0.005353505257517099, -0.01615263521671295, 0.9776410460472107, 0.1069510281085968, 0.10166825354099274, 0.3791845142841339, 0.017357289791107178, 0.17944367229938507, -0.17608502507209778, 0.1661338061094284, -0.4506513476371765, -0.31454411149024963, 0.1163884848356247, -0.2679716646671295, -0.005444832146167755, -0.09045986831188202, -0.3903161585330963, 0.20477184653282166, -0.2601745128631592, 0.1257707178592682, 0.13579000532627106, 0.13449762761592865, -0.33651161193847656, 0.18958227336406708, -0.14738334715366364, 0.22225767374038696, 0.012631446123123169, 0.13911370933055878, -0.3988707959651947, 0.20291757583618164, -0.04257376864552498, -0.1533728688955307, -0.3395116329193115, -0.014268279075622559, -0.25662556290626526, 0.3284616470336914, -0.12806794047355652, -0.2069321721792221, -0.058124758303165436, -0.04660407826304436, -0.11630366742610931, 0.1230766773223877, -0.007862495258450508, -0.018299352377653122, -0.1626848578453064, 0.050035666674375534, 0.40934136509895325, -0.059915658086538315, 0.31321343779563904, -0.17101436853408813, -0.2492978572845459, 0.06694579124450684, -0.09347458928823471, -0.15895044803619385, -0.2205483764410019, 0.06075553968548775, 0.24547338485717773, -0.4491085112094879, -0.2689260244369507, -0.20063716173171997, -0.038984354585409164, -0.25428420305252075, 0.15627199411392212, 0.09456036984920502, -0.14770659804344177, 0.15854868292808533, -0.18313349783420563, -0.1796317845582962, -0.11151695251464844, 0.11835583299398422, 0.00044124945998191833, -0.11309457570314407, 0.43417152762413025, 0.05435122922062874, -0.0869077742099762, -0.3103826940059662, 0.1605074107646942, -0.10056259483098984, -0.2422994077205658, 0.490254670381546, -0.3367045223712921, 0.015004515647888184, -0.03742692247033119, 0.3056286573410034, 0.3450060486793518, 0.32176610827445984, -0.0825410783290863, -0.5320782661437988, -0.19981509447097778, 0.06364569067955017, 0.06679655611515045, 0.353200227022171, 0.04231283813714981, 0.23854318261146545, -0.057192593812942505, -0.07150483131408691, -0.39711251854896545, 0.13310202956199646, -0.12125139683485031, 0.1458745002746582, -0.16884095966815948, -0.041646793484687805, 0.08155012130737305, -0.17708224058151245, 0.17748995125293732, 0.049745090305805206, -0.08402040600776672, -0.3614824712276459, 0.049990687519311905, 0.11939676105976105, 0.08472350239753723, -0.06409107148647308, 0.21741223335266113, 0.04384356737136841, 0.06818658858537674, 0.0762181505560875, 0.10170955955982208, -0.03792386129498482, 0.05201952904462814, 0.20428860187530518, 0.44220802187919617, -0.09748136252164841, -0.3284321427345276, 0.20931853353977203, -0.05494266748428345, 0.11450466513633728, -0.19663892686367035, 0.20908324420452118, -0.10146570950746536, 0.00034256279468536377, -0.09414920210838318, 0.055290982127189636, 0.19192293286323547, 0.339142769575119, 0.14764688909053802, -0.396547794342041, 0.05760939046740532, -0.023828083649277687, 0.45975038409233093, 0.6705237030982971, -0.3293887674808502, -0.00976366363465786, 0.17320609092712402, 0.3024153411388397, -0.2911490201950073, 0.02050071395933628, 0.05418267846107483, 0.12904299795627594, -0.03939640522003174, 0.2525360882282257, 0.02620062604546547, -0.16134336590766907, 0.19698694348335266, 0.25918763875961304, 0.3690349757671356, 0.3168985843658447, 0.19151699542999268, 0.35010942816734314, -0.23165374994277954, 0.0953904241323471, 0.213253915309906, -0.14072084426879883, 0.09914068877696991, 0.17449705302715302, -0.137101411819458, 0.5082572102546692, 0.22670891880989075, -0.1455518752336502, 0.12508711218833923, -0.15473127365112305, 0.24852538108825684, -0.015354380011558533, 0.12489712983369827, -0.030105575919151306, 0.10195624828338623, 0.5553907752037048, -0.24351786077022552, -0.2888706922531128, 0.1565791219472885, 0.2338346689939499, -0.23320823907852173, 0.07595695555210114, -0.14556503295898438, -0.08265464007854462, -0.3022492825984955, -0.14724956452846527, -0.12488709390163422, -0.1297728270292282, 0.4160189628601074, 0.1816197633743286, -0.26205748319625854, -0.4414226710796356, 0.03345774486660957, 0.38966190814971924, 0.09158370643854141, -0.3135093152523041, 0.11042147129774094, 0.3605998158454895, 0.00009226053953170776, 0.07408762723207474, 0.4896884858608246, 0.7736062407493591, 0.33531421422958374, -0.2263192981481552, -0.2161288857460022, -0.0878266841173172, -0.056062668561935425, 0.21051739156246185, -0.04989740252494812, -0.0904339998960495, 0.05793571099638939, 0.2883581519126892, 0.30734550952911377, -0.22377151250839233, 0.20250116288661957, 0.26959389448165894, -0.3651086091995239, -0.18680261075496674, 0.14887487888336182, 0.1028301790356636, -0.21070322394371033, -0.17280608415603638, 0.022294551134109497, -0.4808688461780548, 0.27784496545791626, 0.4035091996192932, 0.18766112625598907, 0.09121141582727432, 0.2277766317129135, 0.14874419569969177, 0.030284879729151726, 0.24119894206523895, 0.3657223582267761, 0.08890368789434433, -0.5338331460952759, -0.14993350207805634, -0.523472785949707, 0.1870225965976715, -0.02302451804280281, -0.39171913266181946, 0.1314966380596161, 0.015060463920235634, 0.03682631254196167, 0.025746895000338554, 0.40815645456314087, 0.27446475625038147, 0.12396889179944992, 0.04365964233875275, -0.4204043745994568, -0.2295936793088913, 0.016945451498031616, -0.21919171512126923, 0.0834912583231926, -0.41528862714767456, 0.24628740549087524, -0.3279525637626648, 0.08483285456895828, -0.16194245219230652, -0.006563588976860046, 0.33087214827537537, -0.008760537952184677, 0.32360580563545227, -0.041530512273311615, 0.5907094478607178, -0.01215602457523346, -0.03813329339027405, -0.11042363941669464, -0.2817454934120178, -0.05044563114643097, 0.3078766167163849, -0.0052802674472332, 0.23918560147285461, -0.2126089632511139, -0.07376836240291595, -0.37964487075805664, 0.27267780900001526, 0.15843728184700012, -0.028910716995596886, -0.23959356546401978, 0.10066637396812439, 0.0122489333152771, 0.2076539844274521, 0.15051768720149994, 0.21932029724121094, -0.12814484536647797, 0.41550981998443604, -0.4796634912490845, -0.6238704919815063, 0.6112184524536133, 0.12706424295902252, -0.22173462808132172, -0.11656872928142548, 0.2963334023952484, 0.0592949278652668, -0.04519248008728027, -0.5873926281929016, 0.003488697111606598, 0.41976872086524963, -0.1573481559753418, -0.20262455940246582, 0.41112324595451355, 0.2598854899406433, 0.06169482693076134, 0.03442704305052757, 0.32958805561065674, 0.17631730437278748, -0.061285123229026794, 0.013264250010251999, -0.19481876492500305 ]
https://github.com/huggingface/datasets/pull/59
Fix tests
> Also PR: #25 introduced some renaming: `DatasetBuilder.builder_config` -> `DatasetBuilder.config` so that we will have to change most of the dataset scripts (Just replace the "builder_config" with "config"). > > I think the renaming is a good idea and I can do the fix with a bash regex, but will have to re-upload most of the datasets. @thomwolf @mariamabarham I think if it only needs a re-uploading, we can rename it, `DatasetBuilder.config` is easier and sounds better
@patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ============================================================================= test session starts ============================================================================= platform darwin -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /Users/thomwolf/miniconda2/envs/datasets/bin/python cachedir: .pytest_cache rootdir: /Users/thomwolf/Documents/GitHub/datasets plugins: xdist-1.31.0, forked-1.1.3 collected 1 item tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ERROR =================================================================================== ERRORS ==================================================================================== ____________________________________________________________ ERROR at setup of DatasetTest.test_builder_class_snli ____________________________________________________________ file_path = <module 'tests.test_dataset_common' from '/Users/thomwolf/Documents/GitHub/datasets/tests/test_dataset_common.py'> download_config = DownloadConfig(cache_dir=None, force_download=False, resume_download=False, local_files_only=False, proxies=None, user_agent=None, extract_compressed_file=True, force_extract=True) download_kwargs = {} def setup_module(file_path: str, download_config: Optional[DownloadConfig] = None, **download_kwargs,) -> DatasetBuilder: r""" Download/extract/cache a dataset to add to the lib from a path or url which can be: - a path to a local directory containing the dataset processing python script - an url to a S3 directory with a dataset processing python script Dataset codes are cached inside the lib to allow easy import (avoid ugly sys.path tweaks) and using cloudpickle (among other things). Return: tuple of the unique id associated to the dataset the local path to the dataset """ if download_config is None: download_config = DownloadConfig(**download_kwargs) download_config.extract_compressed_file = True download_config.force_extract = True > name = list(filter(lambda x: x, file_path.split("/")))[-1] + ".py" E AttributeError: module 'tests.test_dataset_common' has no attribute 'split' src/nlp/load.py:169: AttributeError ============================================================================== warnings summary =============================================================================== /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15 /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================================================================== short test summary info =========================================================================== ERROR tests/test_dataset_common.py::DatasetTest::test_builder_class_snli - AttributeError: module 'tests.test_dataset_common' has no attribute 'split' ========================================================================= 1 warning, 1 error in 3.63s ========================================================================= ```
77
text: Fix tests @patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ============================================================================= test session starts ============================================================================= platform darwin -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /Users/thomwolf/miniconda2/envs/datasets/bin/python cachedir: .pytest_cache rootdir: /Users/thomwolf/Documents/GitHub/datasets plugins: xdist-1.31.0, forked-1.1.3 collected 1 item tests/test_dataset_common.py::DatasetTest::test_builder_class_snli ERROR =================================================================================== ERRORS ==================================================================================== ____________________________________________________________ ERROR at setup of DatasetTest.test_builder_class_snli ____________________________________________________________ file_path = <module 'tests.test_dataset_common' from '/Users/thomwolf/Documents/GitHub/datasets/tests/test_dataset_common.py'> download_config = DownloadConfig(cache_dir=None, force_download=False, resume_download=False, local_files_only=False, proxies=None, user_agent=None, extract_compressed_file=True, force_extract=True) download_kwargs = {} def setup_module(file_path: str, download_config: Optional[DownloadConfig] = None, **download_kwargs,) -> DatasetBuilder: r""" Download/extract/cache a dataset to add to the lib from a path or url which can be: - a path to a local directory containing the dataset processing python script - an url to a S3 directory with a dataset processing python script Dataset codes are cached inside the lib to allow easy import (avoid ugly sys.path tweaks) and using cloudpickle (among other things). Return: tuple of the unique id associated to the dataset the local path to the dataset """ if download_config is None: download_config = DownloadConfig(**download_kwargs) download_config.extract_compressed_file = True download_config.force_extract = True > name = list(filter(lambda x: x, file_path.split("/")))[-1] + ".py" E AttributeError: module 'tests.test_dataset_common' has no attribute 'split' src/nlp/load.py:169: AttributeError ============================================================================== warnings summary =============================================================================== /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15 /Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================================================================== short test summary info =========================================================================== ERROR tests/test_dataset_common.py::DatasetTest::test_builder_class_snli - AttributeError: module 'tests.test_dataset_common' has no attribute 'split' ========================================================================= 1 warning, 1 error in 3.63s ========================================================================= ``` > Also PR: #25 introduced some renaming: `DatasetBuilder.builder_config` -> `DatasetBuilder.config` so that we will have to change most of the dataset scripts (Just replace the "builder_config" with "config"). > > I think the renaming is a good idea and I can do the fix with a bash regex, but will have to re-upload most of the datasets. @thomwolf @mariamabarham I think if it only needs a re-uploading, we can rename it, `DatasetBuilder.config` is easier and sounds better
[ -0.35501813888549805, -0.1514940857887268, -0.1484004557132721, 0.13358333706855774, 0.21939782798290253, 0.19933927059173584, 0.3579106032848358, 0.41406911611557007, -0.12702159583568573, 0.15848954021930695, -0.11104227602481842, 0.16461621224880219, -0.11536303907632828, 0.22768382728099823, 0.12798762321472168, 0.12864330410957336, -0.045796580612659454, 0.10440285503864288, 0.037388041615486145, 0.29843223094940186, -0.1919289231300354, 0.17073169350624084, -0.07650087773799896, -0.041750743985176086, -0.20743374526500702, -0.056542836129665375, -0.18388251960277557, 0.3250371515750885, -0.13273009657859802, -0.5756911635398865, 0.2074289619922638, 0.16410645842552185, -0.1514163315296173, 0.31359079480171204, -0.00011247961811022833, -0.027086865156888962, 0.3981252908706665, -0.09481392800807953, -0.5207785964012146, -0.18140684068202972, 0.12980026006698608, -0.11833347380161285, 0.17535187304019928, -0.33748382329940796, 0.24367272853851318, -0.04207243770360947, -0.02288799174129963, -0.13324713706970215, 0.07758919149637222, 0.4225890636444092, 0.2854520082473755, 0.3216216564178467, -0.028425490483641624, -0.24816612899303436, 0.4706595540046692, -0.07107140123844147, 0.21183182299137115, 0.5062385201454163, 0.401153564453125, -0.04739890247583389, 0.2388160526752472, 0.13364766538143158, -0.2367396205663681, 0.17082300782203674, 0.00771278515458107, -0.08391845226287842, 0.36513349413871765, -0.17905952036380768, -0.05715508013963699, -0.20302456617355347, 0.441084086894989, -0.3810937702655792, -0.1427040994167328, -0.26814165711402893, 0.004663331434130669, -0.07867056131362915, 0.19165147840976715, 0.05324786901473999, -0.1580459475517273, 0.11319483816623688, -0.2537578046321869, -0.15098145604133606, 0.18654927611351013, 0.15357255935668945, -0.3073287606239319, 0.22560685873031616, 0.013058848679065704, 0.03647363930940628, 0.05295425280928612, 0.11110447347164154, 0.23054008185863495, 0.13729864358901978, -0.1542474627494812, -0.028601400554180145, -0.255166232585907, -0.12652841210365295, 0.08710282295942307, -0.04737256467342377, 0.06982628256082535, 0.4286807179450989, -0.19901208579540253, -0.2636929750442505, 0.011094151996076107, 0.22001057863235474, -0.19064830243587494, 0.30192679166793823, 0.06585713475942612, 0.38004717230796814, 0.08069171011447906, 0.23886524140834808, 0.012049932032823563, -0.014468669891357422, 0.10012355446815491, -0.4229885935783386, 0.015977054834365845, 0.17661648988723755, 0.5191988945007324, -0.20973104238510132, -0.5538843274116516, -0.005993225611746311, -0.1921771764755249, -0.0739482119679451, 0.10348355770111084, 0.30182984471321106, -0.06366407126188278, 0.05627525970339775, 0.10647816956043243, 0.2134963423013687, -0.27363112568855286, -0.0443304181098938, -0.17680223286151886, 0.21505410969257355, -0.047741491347551346, -0.049899302423000336, 0.21725495159626007, -0.1515573412179947, 0.15378694236278534, 0.15876668691635132, 0.03104761615395546, -0.11423433572053909, 0.288351833820343, -0.03776531666517258, -0.08355217427015305, 0.40085482597351074, -0.017240013927221298, 0.09530781954526901, 0.17966124415397644, -0.13819846510887146, -0.07603046298027039, 0.4127328395843506, -0.31983646750450134, -0.5863886475563049, 0.06270761042833328, 0.32597997784614563, -0.14946846663951874, -0.19906748831272125, -0.06442450731992722, -0.20390884578227997, 0.21051368117332458, -0.31449195742607117, 0.15915066003799438, -0.356518030166626, 0.0670313835144043, -0.12972624599933624, 0.07962755858898163, 0.2236444056034088, -0.3873225152492523, -0.1624881476163864, -0.2877991199493408, -0.12547588348388672, 0.19264477491378784, 0.06160016357898712, -0.08679448068141937, 0.19387248158454895, -0.4026243984699249, 0.2176581472158432, 0.11047158390283585, -0.4776737093925476, -0.303773432970047, 0.041996151208877563, -0.2791329622268677, -0.12430576235055923, 0.15396477282047272, -0.1528075635433197, 0.1584693044424057, -0.15860457718372345, -0.16455383598804474, -0.08056601881980896, -0.14860640466213226, -0.019529910758137703, -0.4044273793697357, -0.2817407548427582, 0.47575587034225464, 0.28754591941833496, 0.15508762001991272, -0.11224084347486496, 0.12764988839626312, -0.07236644625663757, 0.26838651299476624, -0.17662589251995087, -0.05893482267856598, 0.08852513134479523, 0.38376814126968384, 0.060406360775232315, -0.05649959295988083, -0.2548280954360962, -0.3306817412376404, 0.17386531829833984, 0.12045113742351532, -0.044164083898067474, -0.09102243185043335, -0.14180871844291687, -0.5201757550239563, -0.08393582701683044, -0.2166586071252823, -0.16667458415031433, 0.13735391199588776, 0.22122953832149506, -0.13255815207958221, -0.10914573073387146, 0.017829831689596176, 0.08262219280004501, -0.11510248482227325, 0.14751243591308594, 0.0026860125362873077, 0.2591899335384369, -0.23096059262752533, -0.13893121480941772, -0.018554339185357094, -0.03434240072965622, 0.12965714931488037, -0.2563902735710144, -0.210963636636734, 0.40857407450675964, 0.006562151946127415, -0.043941691517829895, 0.07536539435386658, -0.017983555793762207, 0.0010248851031064987, -0.13799656927585602, -0.04376229643821716, 0.2696590721607208, 0.10664064437150955, -0.24336674809455872, -0.024011127650737762, 0.20365753769874573, -0.1798299252986908, 0.15249313414096832, -0.10990475118160248, 0.026974288746714592, 0.14677724242210388, -0.011927220970392227, 0.2344667762517929, -0.045333247631788254, 0.5097185373306274, 0.02494872361421585, 0.6796942353248596, -0.29814785718917847, 0.006069600582122803, 0.21239319443702698, -0.15519122779369354, -0.09004400670528412, -0.033209532499313354, 0.1820654273033142, 0.10281706601381302, 0.025791287422180176, 0.08007549494504929, 0.2782209515571594, 0.7067583799362183, 0.17045478522777557, -0.1270826905965805, 0.14380282163619995, 0.1741914600133896, -0.3435091972351074, 0.45357829332351685, -0.05383007228374481, -0.10518251359462738, 0.12237019836902618, 0.2450343519449234, -0.14396576583385468, -0.06269600242376328, -0.2925751805305481, 0.23695451021194458, 0.28206849098205566, -0.45354750752449036, 0.09108887612819672, -0.05191385746002197, -0.31334608793258667, -0.0318305678665638, -0.029687590897083282, -0.08752590417861938, -0.4767313599586487, 0.07903360575437546, 0.2281600534915924, -0.08034982532262802, -0.01449429802596569, 0.13239909708499908, 0.36543145775794983, 0.09348385781049728, 0.003133084625005722, -0.2048412561416626, -0.2501784563064575, -0.17115220427513123, 0.19345736503601074, 0.2895098924636841, -0.14583522081375122, 0.4264207184314728, -0.40478721261024475, -0.22573284804821014, -0.23919478058815002, -0.27732113003730774, 0.1226462572813034, -0.13318590819835663, 0.3736600875854492, 0.35777801275253296, -0.0011434480547904968, 0.0771513357758522, -0.15642638504505157, 0.27509188652038574, -0.06856983155012131, -0.15392206609249115, 0.11488331854343414, 0.27086353302001953, -0.022281575947999954, -0.3230822682380676, -0.5922598242759705, -0.43195632100105286, -0.2675721049308777, 0.13592059910297394, 0.08801382780075073, 0.16522544622421265, 0.42250707745552063, -0.04594084247946739, -0.05522256717085838, -0.07055554538965225, 0.05366060137748718, -0.184144988656044, -0.4652006924152374, 0.0892002135515213, -0.24155695736408234, -0.21585394442081451, -0.09855150431394577, 0.22532720863819122, 0.024238476529717445, -0.14750555157661438, -0.4384777545928955, -0.15798471868038177, -0.09822263568639755, 0.3140128254890442, -0.26422119140625, 0.14849084615707397, 0.1555776596069336, 0.15689717233181, -0.06402570009231567, -0.15514522790908813, 0.020784687250852585, -0.09917197376489639, 0.014332162216305733, 0.18718692660331726, -0.384267121553421, 0.024881936609745026, -0.09960244596004486, 0.42497003078460693, 0.0394124761223793, 0.1550898402929306, 0.18023552000522614, -0.08076535910367966, 0.2506279945373535, -0.2010565996170044, -0.410672664642334, 0.20831020176410675, -0.124686598777771, -0.43409740924835205, 0.08648224174976349, -0.15799298882484436, -0.025307880714535713, -0.051199570298194885, 0.16129644215106964, -0.2976849675178528, -0.13973814249038696, -0.06454198807477951, -0.2569948434829712, -0.09942319244146347, 0.040244925767183304, -0.038535550236701965, -0.15619757771492004, -0.0716397687792778, 0.07211072742938995, 0.4674376845359802, -0.02415335923433304, -0.08377853035926819, -0.3694472908973694, -0.08415302634239197, -0.009368278086185455, 0.230600044131279, 0.0691700428724289, 0.20347289741039276, -0.08478344231843948, -0.0015535876154899597, 0.03604874387383461, -0.11309607326984406, 0.5439167618751526, -0.04889899492263794, 0.051166463643312454, 0.5480846762657166, -0.0714958980679512, -0.047527976334095, -0.3837655782699585, -0.5380069017410278, 0.1748235672712326, 0.1470060497522354, -0.09083977341651917, -0.25132977962493896, 0.040746547281742096, 0.17677246034145355, 0.20226071774959564, -0.10626302659511566, -0.2810702621936798, -0.10704699158668518, -0.29948559403419495, -0.3682815432548523, -0.1073620542883873, -0.018153438344597816, 0.19204820692539215, -0.37317490577697754, 0.17092891037464142, -0.025122271850705147, -0.2006644904613495, 0.17204797267913818, -0.0026356270536780357, 0.36486852169036865, -0.2447907030582428, 0.2611130475997925, -0.03937891870737076, 0.03399623930454254, 0.5041292905807495, 0.43041643500328064, 0.04980822652578354, 0.10423380136489868, 0.09264418482780457, -0.14379923045635223, 0.20827844738960266, 0.13627827167510986, -0.2616654634475708, 0.0005913898348808289, -0.22407123446464539, 0.3112187087535858, 0.006347477436065674, 0.38117852807044983, 0.23968371748924255, 0.24884232878684998, 0.04074591398239136, -0.21361640095710754, 0.1898300051689148, 0.18636563420295715, -0.06557382643222809, 0.33055803179740906, -0.29463082551956177, -0.25088679790496826, -0.005353505257517099, -0.01615263521671295, 0.9776410460472107, 0.1069510281085968, 0.10166825354099274, 0.3791845142841339, 0.017357289791107178, 0.17944367229938507, -0.17608502507209778, 0.1661338061094284, -0.4506513476371765, -0.31454411149024963, 0.1163884848356247, -0.2679716646671295, -0.005444832146167755, -0.09045986831188202, -0.3903161585330963, 0.20477184653282166, -0.2601745128631592, 0.1257707178592682, 0.13579000532627106, 0.13449762761592865, -0.33651161193847656, 0.18958227336406708, -0.14738334715366364, 0.22225767374038696, 0.012631446123123169, 0.13911370933055878, -0.3988707959651947, 0.20291757583618164, -0.04257376864552498, -0.1533728688955307, -0.3395116329193115, -0.014268279075622559, -0.25662556290626526, 0.3284616470336914, -0.12806794047355652, -0.2069321721792221, -0.058124758303165436, -0.04660407826304436, -0.11630366742610931, 0.1230766773223877, -0.007862495258450508, -0.018299352377653122, -0.1626848578453064, 0.050035666674375534, 0.40934136509895325, -0.059915658086538315, 0.31321343779563904, -0.17101436853408813, -0.2492978572845459, 0.06694579124450684, -0.09347458928823471, -0.15895044803619385, -0.2205483764410019, 0.06075553968548775, 0.24547338485717773, -0.4491085112094879, -0.2689260244369507, -0.20063716173171997, -0.038984354585409164, -0.25428420305252075, 0.15627199411392212, 0.09456036984920502, -0.14770659804344177, 0.15854868292808533, -0.18313349783420563, -0.1796317845582962, -0.11151695251464844, 0.11835583299398422, 0.00044124945998191833, -0.11309457570314407, 0.43417152762413025, 0.05435122922062874, -0.0869077742099762, -0.3103826940059662, 0.1605074107646942, -0.10056259483098984, -0.2422994077205658, 0.490254670381546, -0.3367045223712921, 0.015004515647888184, -0.03742692247033119, 0.3056286573410034, 0.3450060486793518, 0.32176610827445984, -0.0825410783290863, -0.5320782661437988, -0.19981509447097778, 0.06364569067955017, 0.06679655611515045, 0.353200227022171, 0.04231283813714981, 0.23854318261146545, -0.057192593812942505, -0.07150483131408691, -0.39711251854896545, 0.13310202956199646, -0.12125139683485031, 0.1458745002746582, -0.16884095966815948, -0.041646793484687805, 0.08155012130737305, -0.17708224058151245, 0.17748995125293732, 0.049745090305805206, -0.08402040600776672, -0.3614824712276459, 0.049990687519311905, 0.11939676105976105, 0.08472350239753723, -0.06409107148647308, 0.21741223335266113, 0.04384356737136841, 0.06818658858537674, 0.0762181505560875, 0.10170955955982208, -0.03792386129498482, 0.05201952904462814, 0.20428860187530518, 0.44220802187919617, -0.09748136252164841, -0.3284321427345276, 0.20931853353977203, -0.05494266748428345, 0.11450466513633728, -0.19663892686367035, 0.20908324420452118, -0.10146570950746536, 0.00034256279468536377, -0.09414920210838318, 0.055290982127189636, 0.19192293286323547, 0.339142769575119, 0.14764688909053802, -0.396547794342041, 0.05760939046740532, -0.023828083649277687, 0.45975038409233093, 0.6705237030982971, -0.3293887674808502, -0.00976366363465786, 0.17320609092712402, 0.3024153411388397, -0.2911490201950073, 0.02050071395933628, 0.05418267846107483, 0.12904299795627594, -0.03939640522003174, 0.2525360882282257, 0.02620062604546547, -0.16134336590766907, 0.19698694348335266, 0.25918763875961304, 0.3690349757671356, 0.3168985843658447, 0.19151699542999268, 0.35010942816734314, -0.23165374994277954, 0.0953904241323471, 0.213253915309906, -0.14072084426879883, 0.09914068877696991, 0.17449705302715302, -0.137101411819458, 0.5082572102546692, 0.22670891880989075, -0.1455518752336502, 0.12508711218833923, -0.15473127365112305, 0.24852538108825684, -0.015354380011558533, 0.12489712983369827, -0.030105575919151306, 0.10195624828338623, 0.5553907752037048, -0.24351786077022552, -0.2888706922531128, 0.1565791219472885, 0.2338346689939499, -0.23320823907852173, 0.07595695555210114, -0.14556503295898438, -0.08265464007854462, -0.3022492825984955, -0.14724956452846527, -0.12488709390163422, -0.1297728270292282, 0.4160189628601074, 0.1816197633743286, -0.26205748319625854, -0.4414226710796356, 0.03345774486660957, 0.38966190814971924, 0.09158370643854141, -0.3135093152523041, 0.11042147129774094, 0.3605998158454895, 0.00009226053953170776, 0.07408762723207474, 0.4896884858608246, 0.7736062407493591, 0.33531421422958374, -0.2263192981481552, -0.2161288857460022, -0.0878266841173172, -0.056062668561935425, 0.21051739156246185, -0.04989740252494812, -0.0904339998960495, 0.05793571099638939, 0.2883581519126892, 0.30734550952911377, -0.22377151250839233, 0.20250116288661957, 0.26959389448165894, -0.3651086091995239, -0.18680261075496674, 0.14887487888336182, 0.1028301790356636, -0.21070322394371033, -0.17280608415603638, 0.022294551134109497, -0.4808688461780548, 0.27784496545791626, 0.4035091996192932, 0.18766112625598907, 0.09121141582727432, 0.2277766317129135, 0.14874419569969177, 0.030284879729151726, 0.24119894206523895, 0.3657223582267761, 0.08890368789434433, -0.5338331460952759, -0.14993350207805634, -0.523472785949707, 0.1870225965976715, -0.02302451804280281, -0.39171913266181946, 0.1314966380596161, 0.015060463920235634, 0.03682631254196167, 0.025746895000338554, 0.40815645456314087, 0.27446475625038147, 0.12396889179944992, 0.04365964233875275, -0.4204043745994568, -0.2295936793088913, 0.016945451498031616, -0.21919171512126923, 0.0834912583231926, -0.41528862714767456, 0.24628740549087524, -0.3279525637626648, 0.08483285456895828, -0.16194245219230652, -0.006563588976860046, 0.33087214827537537, -0.008760537952184677, 0.32360580563545227, -0.041530512273311615, 0.5907094478607178, -0.01215602457523346, -0.03813329339027405, -0.11042363941669464, -0.2817454934120178, -0.05044563114643097, 0.3078766167163849, -0.0052802674472332, 0.23918560147285461, -0.2126089632511139, -0.07376836240291595, -0.37964487075805664, 0.27267780900001526, 0.15843728184700012, -0.028910716995596886, -0.23959356546401978, 0.10066637396812439, 0.0122489333152771, 0.2076539844274521, 0.15051768720149994, 0.21932029724121094, -0.12814484536647797, 0.41550981998443604, -0.4796634912490845, -0.6238704919815063, 0.6112184524536133, 0.12706424295902252, -0.22173462808132172, -0.11656872928142548, 0.2963334023952484, 0.0592949278652668, -0.04519248008728027, -0.5873926281929016, 0.003488697111606598, 0.41976872086524963, -0.1573481559753418, -0.20262455940246582, 0.41112324595451355, 0.2598854899406433, 0.06169482693076134, 0.03442704305052757, 0.32958805561065674, 0.17631730437278748, -0.061285123229026794, 0.013264250010251999, -0.19481876492500305 ]
https://github.com/huggingface/datasets/pull/57
Better cached path
I should have read this PR before doing my own: https://github.com/huggingface/nlp/pull/62 :D will close mine. Looks great :-)
### Changes: - The `cached_path` no longer returns None if the file is missing/the url doesn't work. Instead, it can raise `FileNotFoundError` (missing file), `ConnectionError` (no cache and unreachable url) or `ValueError` (parsing error) - Fix requests to firebase API that doesn't handle HEAD requests... - Allow custom download in datasets script: it allows to use `tf.io.gfile.copy` for example, to download from google storage. I added an example: the `boolq` script
18
text: Better cached path ### Changes: - The `cached_path` no longer returns None if the file is missing/the url doesn't work. Instead, it can raise `FileNotFoundError` (missing file), `ConnectionError` (no cache and unreachable url) or `ValueError` (parsing error) - Fix requests to firebase API that doesn't handle HEAD requests... - Allow custom download in datasets script: it allows to use `tf.io.gfile.copy` for example, to download from google storage. I added an example: the `boolq` script I should have read this PR before doing my own: https://github.com/huggingface/nlp/pull/62 :D will close mine. Looks great :-)
[ 0.0961863100528717, 0.13489574193954468, -0.2537759840488434, -0.14324718713760376, -0.05347202718257904, 0.06541713327169418, 0.0881681889295578, 0.3965871036052704, 0.045810963958501816, -0.13323040306568146, -0.23873238265514374, 0.07222296297550201, 0.01467866636812687, 0.20120416581630707, 0.26855722069740295, -0.07913994789123535, -0.015868596732616425, 0.0520755760371685, 0.14766547083854675, 0.02319951355457306, -0.14036959409713745, 0.26661983132362366, -0.04883839190006256, 0.09229207783937454, -0.1450849324464798, -0.10953918844461441, -0.29041987657546997, 0.4286431670188904, -0.36832353472709656, -0.47423800826072693, -0.2039826214313507, 0.49602049589157104, -0.23501066863536835, 0.14630237221717834, -0.0001025828969432041, -0.22266994416713715, 0.32506096363067627, 0.000010887160897254944, -0.39789021015167236, -0.25868725776672363, 0.09933716803789139, -0.37158694863319397, 0.1213771253824234, -0.14081302285194397, 0.23160967230796814, -0.032779138535261154, 0.3217450976371765, 0.1648370325565338, 0.1275097280740738, 0.1828993856906891, 0.2897436022758484, -0.3628753423690796, -0.024583322927355766, 0.06875207275152206, 0.48336729407310486, 0.22344475984573364, -0.267435222864151, 0.09086285531520844, 0.2814193367958069, 0.1883651614189148, -0.10235368460416794, 0.10027390718460083, -0.3299790918827057, -0.005362318828701973, 0.46815231442451477, 0.008834300562739372, -0.5424856543540955, -0.23194560408592224, 0.05812253803014755, 0.22849366068840027, 0.60801762342453, -0.3441322445869446, -0.35548529028892517, -0.37710532546043396, 0.06539588421583176, -0.37303626537323, 0.17991530895233154, -0.029324127361178398, -0.08181457221508026, 0.04494994506239891, -0.39972376823425293, -0.37701916694641113, -0.09822537004947662, -0.12619765102863312, 0.1886589080095291, 0.13806094229221344, -0.026569709181785583, -0.13606587052345276, 0.1895650327205658, 0.14583176374435425, -0.14591842889785767, -0.12723974883556366, -0.10226957499980927, 0.049131471663713455, 0.08380337059497833, -0.13062602281570435, 0.17037221789360046, 0.3197709321975708, 0.30194979906082153, 0.2353813797235489, 0.3506264388561249, 0.19965392351150513, -0.2868066132068634, 0.055239833891391754, -0.18166561424732208, 0.16269716620445251, 0.2329218089580536, -0.2025732696056366, 0.4200058579444885, 0.16083312034606934, 0.14793238043785095, -0.08719220757484436, 0.01839686930179596, -0.15291866660118103, -0.09432022273540497, 0.19892847537994385, -0.025822656229138374, -0.24218939244747162, 0.03537363559007645, -0.006156205199658871, 0.3264583647251129, -0.3423972427845001, -0.20383939146995544, 0.29987573623657227, -0.16322995722293854, -0.19745734333992004, 0.07636869698762894, -0.07223924249410629, 0.011010264977812767, -0.2098328173160553, -0.2036648988723755, -0.021414775401353836, -0.06043664738535881, 0.2703131139278412, 0.09093698859214783, -0.06421180069446564, 0.4532087743282318, -0.2106115221977234, 0.0304097980260849, 0.3751566410064697, 0.19609588384628296, -0.07783791422843933, 0.14286720752716064, 0.1117328554391861, -0.04100911319255829, -0.05772826075553894, 0.11685335636138916, 0.13205906748771667, -0.22108519077301025, 0.24609160423278809, -0.1278075873851776, -0.39703771471977234, -0.14880242943763733, 0.2622894048690796, -0.36558979749679565, -0.2496521770954132, -0.2002308964729309, 0.4401083290576935, -0.2582978308200836, -0.2138999104499817, 0.309537410736084, 0.3678287863731384, -0.2928214967250824, -0.277126282453537, 0.021315904334187508, 0.5622355341911316, -0.14493083953857422, -0.2494817078113556, -0.06436210125684738, -0.29521965980529785, -0.14914798736572266, -0.0016708597540855408, -0.1667909324169159, 0.212734192609787, -0.2842724323272705, 0.4855523109436035, 0.616336464881897, -0.27283018827438354, -0.23115447163581848, 0.43296173214912415, 0.00279824435710907, 0.10107579082250595, 0.10277262330055237, -0.05342317372560501, 0.30081599950790405, -0.05187908187508583, 0.10538507997989655, 0.08950717747211456, 0.05171266943216324, -0.0024654455482959747, -0.42988350987434387, -0.2988094091415405, 0.048455823212862015, 0.091531902551651, 0.055622655898332596, 0.05283206328749657, 0.1428927183151245, 0.024429604411125183, 0.24998527765274048, 0.18811315298080444, -0.03476286679506302, 0.1278897225856781, 0.1971377432346344, 0.07730541378259659, -0.06595812737941742, 0.19995033740997314, -0.5902805328369141, 0.15203502774238586, -0.07577304542064667, -0.0438694953918457, -0.2040293663740158, -0.16935324668884277, -0.09272865206003189, -0.19912855327129364, -0.07972157001495361, -0.35994017124176025, 0.18124669790267944, 0.03865230455994606, 0.08223135769367218, 0.007523469626903534, -0.22797277569770813, 0.2754517197608948, -0.16063246130943298, 0.03638973459601402, 0.03892514854669571, 0.029834462329745293, -0.11885107308626175, 0.02227025479078293, -0.08477223664522171, -0.14799153804779053, 0.14791926741600037, -0.1742311418056488, -0.13807544112205505, 0.466495156288147, -0.3870267868041992, 0.4529736638069153, 0.2826778292655945, 0.40339091420173645, 0.26790735125541687, 0.21366354823112488, 0.3519934415817261, 0.03035820461809635, 0.057313159108161926, -0.0030951686203479767, -0.3496934473514557, 0.2347099781036377, -0.2696925699710846, -0.10449550300836563, 0.0009360387921333313, -0.28960204124450684, 0.009941840544342995, -0.17873573303222656, 0.046103231608867645, 0.05048271268606186, 0.06646057963371277, 0.07618235796689987, 0.15259414911270142, -0.05131915956735611, -0.23308637738227844, 0.5700444579124451, 0.6009543538093567, -0.2888326346874237, -0.12642279267311096, 0.5140807032585144, 0.18448343873023987, -0.47084084153175354, 0.1968599110841751, 0.032354000955820084, 0.3566839396953583, 0.31768906116485596, 0.08656767010688782, 0.3086991310119629, 0.18431951105594635, -0.4045635759830475, 0.4894666373729706, -0.12052534520626068, -0.29809877276420593, 0.33110183477401733, -0.08603973686695099, 0.25339215993881226, -0.15496930480003357, -0.4111666679382324, 0.09417195618152618, 0.370481938123703, -0.1835954338312149, -0.31243664026260376, -0.17019633948802948, -0.264568954706192, 0.1197608932852745, 0.1510065793991089, -0.12627427279949188, -0.5147691965103149, 0.14225074648857117, 0.21081086993217468, -0.3032413721084595, 0.019334670156240463, -0.3212495446205139, 0.37909770011901855, -0.09674130380153656, -0.22933726012706757, -0.425489604473114, -0.06121589615941048, -0.04344165325164795, 0.24395307898521423, 0.1778150200843811, -0.07461180537939072, 0.2279011607170105, -0.3421090245246887, 0.004355315119028091, -0.6404579877853394, -0.2209063172340393, 0.12087543308734894, -0.1486814022064209, -0.09553980082273483, 0.3588578999042511, 0.09044995158910751, 0.00024413689970970154, 0.0267697311937809, 0.06439466774463654, -0.41923126578330994, -0.25273239612579346, -0.3902917206287384, -0.02589832991361618, 0.07683844119310379, -0.3378434181213379, -0.21465548872947693, -0.0667443573474884, -0.5936901569366455, 0.537824273109436, -0.02967623993754387, 0.37282341718673706, 0.368655800819397, -0.015131175518035889, 0.5175763964653015, -0.08466397225856781, -0.015281395986676216, -0.19702546298503876, -0.640140950679779, 0.20335739850997925, -0.24198374152183533, -0.17904581129550934, 0.06323933601379395, 0.2917470932006836, -0.04798228666186333, 0.020496945828199387, -0.6154270768165588, -0.3482627272605896, 0.04931957274675369, 0.46346890926361084, -0.08261878788471222, -0.05544823408126831, 0.28513622283935547, 0.08766891062259674, -0.30636483430862427, -0.06347092241048813, -0.281913697719574, -0.3334469199180603, 0.0016089491546154022, 0.24622130393981934, 0.10494307428598404, 0.2640097141265869, 0.07579492032527924, 0.6275064945220947, -0.20532572269439697, 0.27387258410453796, 0.3345271050930023, 0.0653878003358841, 0.3875344693660736, -0.13550466299057007, -0.011767544783651829, 0.4873480796813965, 0.012428954243659973, -0.03782356530427933, 0.3297739624977112, 0.04698982834815979, 0.04311695322394371, -0.12980839610099792, -0.50185227394104, -0.1292707622051239, -0.14559461176395416, 0.21932125091552734, -0.033436305820941925, -0.185616135597229, 0.037319693714380264, -0.1738247275352478, -0.21533960103988647, 0.0009961007162928581, 0.19541208446025848, 0.31376662850379944, 0.34560897946357727, 0.035360679030418396, -0.015092510730028152, 0.011622954159975052, -0.4638330340385437, 0.2839609980583191, 0.09817679226398468, -0.34923645853996277, -0.22382541000843048, -0.2894032299518585, 0.005039334297180176, 0.0729483962059021, 0.5780651569366455, -0.26316770911216736, -0.17858953773975372, 0.0314500592648983, 0.013775240629911423, 0.08263713866472244, -0.10523707419633865, 0.0371076874434948, 0.5067388415336609, 0.17072409391403198, 0.4230141043663025, -0.1833006888628006, -0.3309529423713684, -0.028579358011484146, -0.040077611804008484, 0.16800926625728607, -0.07505360245704651, 0.056859489530324936, -0.29101842641830444, -0.556708574295044, 0.10717552155256271, 0.06203018128871918, -0.37950217723846436, -0.19560568034648895, -0.09550286829471588, 0.3345332145690918, 0.26738637685775757, -0.1040104329586029, 0.07238389551639557, 0.14396104216575623, -0.06650248169898987, -0.24138709902763367, 0.057361554354429245, -0.04664076119661331, 0.029749898239970207, 0.38622555136680603, -0.18765081465244293, 0.2843286097049713, 0.17184320092201233, -0.19977185130119324, -0.07526011019945145, 0.43257370591163635, 0.1752554029226303, 0.14434823393821716, -0.05890572816133499, 0.41899728775024414, 0.2492869645357132, -0.07104654610157013, 0.08081892877817154, -0.1506998986005783, -0.16846460103988647, -0.42740294337272644, 0.47741544246673584, 0.00863141193985939, -0.07406379282474518, 0.502456545829773, -0.0136796236038208, -0.1823291778564453, -0.08491847664117813, 0.10795249789953232, 1.0276755094528198, 0.1364489197731018, 0.32370731234550476, 0.17090550065040588, -0.36865925788879395, 0.3372648060321808, -0.44228076934814453, -0.018898870795965195, -0.015348531305789948, -0.0466022789478302, -0.08224418014287949, 0.19100257754325867, 0.08564721047878265, 0.0708116888999939, -0.5097084045410156, 0.18903715908527374, 0.0715973824262619, 0.18277980387210846, 0.15579628944396973, 0.25421425700187683, -0.23028714954853058, -0.13936962187290192, -0.008321089670062065, 0.24547803401947021, -0.06081931293010712, 0.06286133825778961, -0.16301795840263367, -0.3079795837402344, -0.035049084573984146, 0.072968490421772, -0.20696133375167847, -0.037683356553316116, -0.1482972353696823, -0.06736529618501663, 0.0473414771258831, -0.02490067481994629, -0.0435405932366848, -0.02437574788928032, 0.24744892120361328, 0.11032001674175262, -0.2612641155719757, 0.1271233707666397, -0.01323305070400238, 0.151151642203331, -0.0005293574649840593, -0.09222566336393356, 0.3264033794403076, -0.3185935914516449, -0.2028249353170395, -0.07416480034589767, -0.23289577662944794, -0.30358779430389404, -0.057072341442108154, -0.041179440915584564, 0.012985333800315857, -0.12001684308052063, -0.1872764527797699, -0.05085265636444092, -0.44467756152153015, -0.16274741291999817, 0.16720135509967804, 0.09029573202133179, -0.16820545494556427, -0.0814015194773674, 0.18158139288425446, -0.27091184258461, -0.14647646248340607, 0.11578108370304108, -0.13888844847679138, 0.008253656327724457, 0.3484437167644501, -0.13503719866275787, -0.0951157659292221, -0.2819739878177643, -0.2208673357963562, -0.0551595501601696, -0.11453433334827423, 0.08012022078037262, -0.07441860437393188, -0.13289986550807953, 0.009716276079416275, 0.26262494921684265, 0.07453443109989166, 0.6417526006698608, -0.03153607249259949, -0.03347793594002724, -0.18152596056461334, 0.12249968945980072, -0.18400099873542786, 0.26214030385017395, 0.062060266733169556, -0.019902586936950684, 0.5633788108825684, -0.15122592449188232, -0.45978835225105286, 0.13032837212085724, -0.1536681056022644, -0.1379723697900772, 0.2908218204975128, -0.041141144931316376, 0.07864357531070709, -0.1129695475101471, 0.08256661146879196, 0.38935142755508423, -0.2693566381931305, -0.2714880108833313, -0.1683078557252884, 0.11350597441196442, 0.0305720716714859, -0.03798381984233856, 0.11156082898378372, 0.18864727020263672, -0.06264474987983704, 0.1091870367527008, 0.1509176641702652, 0.07757923752069473, 0.14715111255645752, 0.20881113409996033, 0.2303185909986496, -0.10526477545499802, -0.0714992880821228, -0.008408796042203903, 0.20092108845710754, 0.22917433083057404, 0.08431877940893173, 0.13638034462928772, -0.37868326902389526, 0.023653611540794373, 0.26273807883262634, 0.1914013922214508, -0.0360025018453598, 0.20594477653503418, 0.3413591682910919, 0.03946696221828461, 0.005985260009765625, -0.025582656264305115, 0.1565188765525818, 0.05048271268606186, -0.05628205090761185, -0.43157097697257996, 0.1872476041316986, 0.24372024834156036, -0.13991999626159668, -0.11215201765298843, 0.11374710500240326, -0.3216112554073334, -0.07023534178733826, 0.08161063492298126, 0.3611508309841156, 0.04020807147026062, 0.3317738175392151, 0.13504475355148315, 0.5517906546592712, -0.08501803874969482, 0.06579991430044174, -0.03330937400460243, -0.2318882793188095, -0.08107706904411316, 0.32955262064933777, 0.06889090687036514, 0.1372658908367157, -0.012899145483970642, -0.047755174338817596, 0.06046859920024872, -0.03507799655199051, 0.39395570755004883, -0.0633193626999855, -0.4032551646232605, 0.39301228523254395, 0.19089314341545105, -0.10131479799747467, 0.11983083933591843, 0.0784708559513092, 0.1681894063949585, 0.008229163475334644, -0.19133009016513824, 0.2807972729206085, 0.38984057307243347, 0.06078672409057617, -0.052195217460393906, 0.0735020861029625, -0.1914159655570984, -0.3290573060512543, 0.08177687227725983, -0.07027275860309601, -0.06962047517299652, 0.21321991086006165, -0.01562637835741043, 0.04311152175068855, -0.14519564807415009, 0.26804035902023315, -0.1268935203552246, 0.4331091642379761, -0.18064484000205994, 0.1524895578622818, 0.11792336404323578, -0.19830790162086487, 0.12738873064517975, 0.34158626198768616, 0.32644593715667725, 0.1299014687538147, 0.177284836769104, 0.11820808053016663, -0.10939596593379974, 0.07673954963684082, 0.012758664786815643, 0.07926903665065765, 0.3505686819553375, -0.21083100140094757, 0.005818469449877739, 0.22388558089733124, -0.25886228680610657, 0.5053344964981079, -0.03325081244111061, -0.18296261131763458, 0.030428670346736908, 0.16381508111953735, 0.36787813901901245, -0.23478707671165466, -0.2216225266456604, 0.06743182986974716, -0.5128427743911743, -0.23482756316661835, 0.19081170856952667, -0.1329120248556137, 0.0501200407743454, -0.11062930524349213, 0.14105159044265747, 0.2374121993780136, 0.4464466869831085, 0.32866016030311584, 0.12110289931297302, -0.12072671204805374, 0.021258234977722168, -0.4248307943344116, 0.13280346989631653, 0.29671385884284973, 0.12607507407665253, 0.145155668258667, 0.11608600616455078, -0.1322307586669922, -0.10164481401443481, 0.2236577570438385, -0.02479352243244648, 0.16450928151607513, -0.1855623871088028, -0.2819231152534485, 0.12530995905399323, 0.025219764560461044, 0.2620936930179596, 0.03321382775902748, -0.0350717157125473, 0.060682930052280426, 0.05488588288426399, 0.19390565156936646, -0.29929131269454956, -0.15339350700378418, 0.07481801509857178, -0.004081603139638901, 0.40667232871055603, 0.00031185150146484375, -0.2839917540550232, -0.18147540092468262, -0.2166164517402649, -0.18362702429294586, 0.08411135524511337, -0.09018310159444809, 0.09264761209487915, 0.0857008621096611, 0.10871589183807373, 0.011964846402406693, -0.28832775354385376, -0.28367772698402405, 0.3999941647052765, -0.19050243496894836, -0.09231848269701004, -0.10386611521244049, 0.009178625419735909, -0.07436756789684296, 0.004024088848382235, -0.2201298177242279, 0.1908998191356659, -0.09826619923114777, -0.009832669049501419, -0.6418813467025757, -0.13630658388137817, 0.6537449359893799, 0.10924278199672699, 0.04587985947728157, 0.16017715632915497, 0.0941857099533081, 0.2980418801307678, 0.13893966376781464, -0.6541663408279419, 0.026463381946086884, 0.20642679929733276, 0.13133612275123596, -0.09397974610328674, 0.35460472106933594, -0.07636766135692596, 0.07496790587902069, -0.13464424014091492, 0.03047747164964676, 0.04757077991962433, -0.16966286301612854, -0.06222967058420181, -0.2712748646736145 ]
https://github.com/huggingface/datasets/pull/57
Better cached path
> Awesome, this is really nice! > > By the way, we should improve the `cached_path` method of the `transformers` repo similarly, don't you think (@patrickvonplaten in particular). Yeah, we should do the same in `transformers` I think - will note it down.
### Changes: - The `cached_path` no longer returns None if the file is missing/the url doesn't work. Instead, it can raise `FileNotFoundError` (missing file), `ConnectionError` (no cache and unreachable url) or `ValueError` (parsing error) - Fix requests to firebase API that doesn't handle HEAD requests... - Allow custom download in datasets script: it allows to use `tf.io.gfile.copy` for example, to download from google storage. I added an example: the `boolq` script
43
text: Better cached path ### Changes: - The `cached_path` no longer returns None if the file is missing/the url doesn't work. Instead, it can raise `FileNotFoundError` (missing file), `ConnectionError` (no cache and unreachable url) or `ValueError` (parsing error) - Fix requests to firebase API that doesn't handle HEAD requests... - Allow custom download in datasets script: it allows to use `tf.io.gfile.copy` for example, to download from google storage. I added an example: the `boolq` script > Awesome, this is really nice! > > By the way, we should improve the `cached_path` method of the `transformers` repo similarly, don't you think (@patrickvonplaten in particular). Yeah, we should do the same in `transformers` I think - will note it down.
[ 0.050806980580091476, 0.22122663259506226, -0.2152586430311203, -0.11919565498828888, 0.09497936069965363, -0.025772802531719208, 0.24646605551242828, 0.37101203203201294, -0.15976284444332123, -0.10032866895198822, -0.2219208925962448, -0.029512183740735054, 0.037153810262680054, -0.01619812101125717, 0.1099715456366539, -0.08769258856773376, -0.026973597705364227, -0.015563465654850006, 0.01090579479932785, -0.003356032073497772, -0.1073903739452362, 0.21555829048156738, 0.04916177690029144, -0.002878442406654358, -0.23998549580574036, -0.012369358912110329, -0.18408896028995514, 0.20123282074928284, -0.17786714434623718, -0.44689327478408813, -0.07212716341018677, 0.48455873131752014, -0.20828060805797577, 0.4433974325656891, -0.00010258894326398149, -0.06772851198911667, 0.42861008644104004, 0.022410957142710686, -0.5048441290855408, -0.10935373604297638, -0.004751946777105331, -0.22201639413833618, 0.028013041242957115, -0.13400395214557648, 0.17979174852371216, 0.003820477519184351, 0.26597970724105835, 0.16151784360408783, 0.18189814686775208, 0.03980473801493645, 0.3021838068962097, -0.28532272577285767, 0.0004327148199081421, 0.05242322012782097, 0.5942147970199585, 0.4380701184272766, -0.3903219699859619, -0.03885775804519653, 0.37551623582839966, 0.2727140486240387, -0.11062497645616531, 0.2020169496536255, -0.25304028391838074, -0.032010193914175034, 0.4064547121524811, 0.06196596845984459, -0.3379491865634918, -0.13853572309017181, 0.02506576105952263, 0.18410319089889526, 0.6539751291275024, -0.3255304992198944, -0.5497130751609802, -0.3081531524658203, -0.10463681071996689, -0.24241559207439423, 0.19833241403102875, -0.16273224353790283, -0.07045578956604004, 0.10170719772577286, -0.5613948702812195, -0.41538092494010925, -0.17683523893356323, -0.11239965260028839, 0.09889949858188629, 0.23494821786880493, 0.010259278118610382, -0.17544585466384888, 0.14386187493801117, 0.13501888513565063, 0.0221538282930851, -0.21653024852275848, -0.194661945104599, -0.03175465390086174, 0.042460061609745026, -0.18332478404045105, 0.05943191796541214, 0.11740969121456146, 0.25949645042419434, 0.24232758581638336, 0.23560389876365662, 0.15976658463478088, -0.1880268007516861, -0.09848354011774063, -0.053085360676050186, 0.27140024304389954, 0.03526492416858673, 0.14148041605949402, 0.4846259355545044, 0.13584299385547638, 0.09403170645236969, -0.03447757661342621, 0.030796915292739868, -0.037105742841959, 0.08998739719390869, 0.23302271962165833, -0.03666205704212189, -0.21937361359596252, 0.17384439706802368, -0.07022169232368469, 0.3997596800327301, -0.3550001382827759, -0.20141643285751343, 0.3223009407520294, -0.14065898954868317, -0.03388319909572601, -0.03861446678638458, -0.1508304327726364, 0.07424219697713852, -0.05488412827253342, -0.21685791015625, -0.09640094637870789, -0.018133163452148438, 0.20888656377792358, 0.12925101816654205, 0.046285659074783325, 0.31128033995628357, -0.3902755379676819, 0.13244058191776276, 0.3184758722782135, 0.1627480685710907, -0.029665004462003708, 0.13534893095493317, 0.2562970817089081, -0.10874298214912415, 0.16418106853961945, 0.10477901995182037, 0.1689760982990265, -0.1956750750541687, 0.3514273166656494, -0.15156731009483337, -0.5140645503997803, -0.1255037635564804, 0.25130510330200195, -0.4179043769836426, -0.15028244256973267, -0.22748178243637085, 0.21003226935863495, -0.09838790446519852, -0.15710777044296265, 0.2328186333179474, 0.4054146409034729, -0.1736857295036316, -0.2553037405014038, 0.0626954510807991, 0.567764401435852, -0.055057376623153687, -0.2671651542186737, -0.22837364673614502, -0.15011931955814362, -0.05474109202623367, 0.10235738754272461, -0.3147766590118408, 0.23207935690879822, -0.2606014907360077, 0.17959259450435638, 0.45770499110221863, -0.2897389233112335, -0.33321958780288696, 0.480600506067276, -0.009148571640253067, 0.12881849706172943, 0.14196144044399261, -0.11728077381849289, 0.4136149287223816, -0.1803475022315979, -0.01998094469308853, 0.09271413087844849, -0.011959558352828026, 0.18055175244808197, -0.48803845047950745, -0.3786809742450714, 0.06396085023880005, 0.19324295222759247, 0.24356107413768768, 0.044416751712560654, 0.05633867159485817, 0.11448938399553299, 0.24366527795791626, 0.16783778369426727, -0.022406624630093575, 0.2037161886692047, 0.32835304737091064, -0.027957335114479065, 0.10597990453243256, 0.2998340129852295, -0.6621540784835815, 0.19578224420547485, -0.05427275225520134, -0.12681816518306732, -0.253446102142334, -0.19291375577449799, -0.0392831489443779, -0.1600058525800705, -0.03718030825257301, -0.32073870301246643, 0.16189081966876984, 0.06936447322368622, -0.027265045791864395, -0.1093568503856659, -0.19331881403923035, 0.34045353531837463, 0.060401707887649536, -0.0005804675747640431, 0.1845593899488449, 0.11880496144294739, -0.18058672547340393, 0.02105138450860977, -0.19428275525569916, -0.28471437096595764, 0.15052711963653564, -0.26833510398864746, -0.2513650953769684, 0.5313185453414917, -0.294244647026062, 0.48799628019332886, 0.3163795471191406, 0.5036296844482422, 0.360660195350647, 0.11662232875823975, 0.2625698149204254, 0.21737968921661377, 0.07433740794658661, -0.027873624116182327, -0.42681676149368286, 0.06784801930189133, -0.35943272709846497, 0.011580072343349457, -0.05764618143439293, -0.2184051126241684, 0.05081693083047867, -0.08491136133670807, -0.029021427035331726, 0.14292199909687042, 0.016606833785772324, 0.1518634557723999, 0.07320311665534973, 0.09814669191837311, 0.07035346329212189, 0.515681803226471, 0.5776769518852234, -0.267845094203949, -0.026043228805065155, 0.44321581721305847, 0.0987926796078682, -0.44583916664123535, 0.19760240614414215, 0.24176441133022308, 0.2141326367855072, 0.26414772868156433, -0.016299080103635788, 0.06820234656333923, 0.2828079164028168, -0.25265318155288696, 0.48756083846092224, 0.13126634061336517, -0.22753888368606567, 0.24047115445137024, -0.04899420961737633, 0.23755474388599396, -0.02948698028922081, -0.4128260910511017, 0.1394636332988739, 0.2990938127040863, -0.16807669401168823, -0.23935483396053314, -0.05468648672103882, -0.02785952389240265, 0.09405926614999771, -0.00039483606815338135, -0.15497256815433502, -0.5198260545730591, 0.14443334937095642, 0.21362222731113434, -0.38416025042533875, 0.16794615983963013, -0.2442619651556015, 0.3518396019935608, -0.11699625849723816, -0.3800816833972931, -0.4773237109184265, -0.1121053472161293, -0.07025229930877686, 0.22780567407608032, 0.22392842173576355, -0.2678404152393341, 0.09512954950332642, -0.2596402168273926, 0.17836247384548187, -0.5827218294143677, -0.15978071093559265, 0.05550021305680275, -0.03746384382247925, -0.16665758192539215, 0.25072991847991943, 0.0781823992729187, 0.033258818089962006, -0.11258825659751892, -0.009104331955313683, -0.3712821304798126, -0.056523628532886505, -0.2640402317047119, -0.048957109451293945, 0.015108644030988216, -0.3030970096588135, -0.19895169138908386, 0.013656056486070156, -0.59969162940979, 0.35024237632751465, -0.10707250237464905, 0.2896614670753479, 0.41958144307136536, 0.024783816188573837, 0.27415481209754944, -0.003076601307839155, -0.12459561228752136, -0.07097405940294266, -0.6155703663825989, 0.39470699429512024, -0.1397152990102768, -0.063849076628685, 0.01581096276640892, 0.19514690339565277, -0.18396233022212982, 0.10503720492124557, -0.5307921767234802, -0.12912152707576752, -0.0906737819314003, 0.2766363322734833, -0.013589374721050262, -0.057867519557476044, 0.37766703963279724, 0.17866183817386627, -0.24617093801498413, 0.01372072845697403, -0.25931644439697266, -0.3359907269477844, 0.09445551037788391, 0.4312479496002197, -0.07967095822095871, 0.15572528541088104, 0.0646112859249115, 0.7996392846107483, -0.2084803581237793, 0.27168455719947815, 0.1467074602842331, 0.2727564573287964, 0.3197183907032013, -0.06782940775156021, -0.08869749307632446, 0.2985078692436218, -0.007635235786437988, -0.23583386838436127, 0.2461487501859665, 0.15724846720695496, -0.039048708975315094, -0.11119026690721512, -0.3975730240345001, -0.053223710507154465, -0.321384459733963, 0.2533149719238281, -0.07330004125833511, -0.10598600655794144, 0.04767442122101784, 0.0014155097305774689, -0.22595179080963135, 0.014374222606420517, 0.3194115161895752, 0.19914495944976807, 0.36711758375167847, -0.07914263010025024, 0.050509143620729446, 0.0830836296081543, -0.35096466541290283, 0.22041408717632294, 0.14218081533908844, -0.3180820345878601, -0.1089104562997818, -0.24255868792533875, -0.09883549809455872, 0.044105466455221176, 0.642365574836731, -0.25083091855049133, -0.10808905959129333, 0.07739351689815521, -0.17548756301403046, 0.1459232121706009, -0.21272888779640198, 0.15555208921432495, 0.37696850299835205, 0.09342379868030548, 0.41915595531463623, -0.2233123779296875, -0.24468325078487396, -0.02338358759880066, -0.08211322873830795, 0.04045943543314934, 0.010988368652760983, 0.09398791193962097, -0.18977996706962585, -0.45624226331710815, 0.019197143614292145, 0.1737343817949295, -0.45089128613471985, -0.22178693115711212, -0.18681296706199646, 0.25010451674461365, 0.26071393489837646, -0.18847347795963287, 0.039544690400362015, 0.2428360879421234, -0.1688084751367569, -0.023965023458003998, 0.14092229306697845, -0.19835838675498962, 0.019162721931934357, 0.26607751846313477, -0.17597632110118866, 0.18907083570957184, 0.17026463150978088, -0.3028620183467865, -0.2092846930027008, 0.441567599773407, 0.07154898345470428, -0.09453388303518295, -0.01780356466770172, 0.3598695993423462, 0.2636660635471344, -0.1408860832452774, -0.023419110104441643, -0.17492319643497467, -0.1810486614704132, -0.43563324213027954, 0.3901384472846985, -0.10229702293872833, -0.11840309202671051, 0.4954703748226166, -0.011551044881343842, -0.13751523196697235, 0.1873137205839157, 0.14234621822834015, 1.0788627862930298, 0.011698435992002487, 0.250724196434021, -0.05387570708990097, -0.3308122158050537, 0.20832966268062592, -0.5761593580245972, -0.03414500132203102, -0.016572169959545135, -0.10639286786317825, -0.04544314742088318, 0.14166942238807678, -0.018183305859565735, 0.0630933865904808, -0.5276129841804504, 0.24246811866760254, 0.03193538635969162, 0.3618278503417969, 0.14985352754592896, 0.10128268599510193, -0.013185368850827217, -0.28025051951408386, 0.1479535698890686, 0.27534928917884827, -0.0211079940199852, 0.1135011613368988, -0.15718898177146912, -0.3358125686645508, -0.05862613022327423, -0.0008983053267002106, -0.2713208794593811, 0.034321077167987823, -0.10297226905822754, 0.12504076957702637, 0.13049131631851196, -0.009180545806884766, -0.06436748802661896, -0.018860194832086563, 0.2757800817489624, 0.21284209191799164, -0.2710198760032654, 0.259585440158844, 0.022843878716230392, 0.27883580327033997, -0.06583358347415924, -0.10044453293085098, 0.25771376490592957, -0.3081461787223816, -0.21781042218208313, -0.06330574303865433, -0.2554120421409607, -0.4621889591217041, -0.04862678050994873, -0.200461283326149, 0.13662797212600708, -0.09567844122648239, 0.06685183942317963, -0.0029566287994384766, -0.4904746115207672, -0.18899719417095184, 0.19897980988025665, 0.16723081469535828, -0.20797958970069885, 0.08120420575141907, 0.18945090472698212, -0.19359561800956726, -0.14506225287914276, 0.10071676969528198, -0.11540607362985611, -0.128668412566185, 0.25957104563713074, -0.18096555769443512, -0.1589505970478058, -0.2865472435951233, -0.11065011471509933, -0.1326756477355957, -0.33496034145355225, 0.042024292051792145, -0.3648987114429474, -0.2719873785972595, -0.02007773518562317, 0.15767847001552582, 0.23738709092140198, 0.5847246050834656, -0.09259237349033356, 0.10718104243278503, -0.24483557045459747, 0.10741956532001495, -0.1448671966791153, 0.2723594903945923, -0.08494409918785095, -0.22671659290790558, 0.44800108671188354, -0.14723515510559082, -0.4685531258583069, -0.01847498118877411, -0.22247233986854553, -0.17108282446861267, 0.1422901153564453, -0.20525050163269043, 0.210167795419693, -0.17267704010009766, 0.10073645412921906, 0.3702753186225891, -0.26784747838974, -0.2695288062095642, -0.15824320912361145, 0.12836381793022156, 0.00830923207104206, -0.011786272749304771, 0.045154765248298645, 0.2681121230125427, -0.0009159129112958908, 0.03740636259317398, 0.17880111932754517, 0.17875123023986816, 0.23505768179893494, 0.1973085105419159, 0.3597925305366516, -0.19705912470817566, -0.20214243233203888, 0.019816286861896515, 0.2347063422203064, 0.3271068334579468, 0.19022247195243835, 0.22428710758686066, -0.25590988993644714, -0.06490156799554825, 0.19957208633422852, 0.15590134263038635, -0.05871029198169708, 0.3508233428001404, 0.45032086968421936, -0.025416389107704163, -0.07505025714635849, 0.08766990154981613, 0.1855812519788742, -0.024720139801502228, -0.09705942869186401, -0.36024942994117737, 0.11609075218439102, 0.2752542793750763, -0.016587741672992706, -0.25386229157447815, 0.018552744761109352, -0.2174660712480545, -0.09332942962646484, 0.14448784291744232, 0.26317670941352844, -0.0028670653700828552, 0.5085574388504028, 0.2527019679546356, 0.7121873497962952, -0.07380889356136322, 0.17209669947624207, 0.05659794807434082, -0.2250813990831375, -0.05677613988518715, 0.24514169991016388, 0.013135762885212898, 0.12113235890865326, 0.061843469738960266, -0.05063080042600632, 0.09085116535425186, -0.036920636892318726, 0.29169145226478577, -0.017240561544895172, -0.19621503353118896, 0.3344367742538452, 0.02548324316740036, -0.07448446750640869, 0.15380573272705078, 0.11905169486999512, -0.11190200597047806, 0.052033957093954086, -0.19484218955039978, 0.0455951988697052, 0.15955135226249695, 0.08257561922073364, -0.04807873070240021, 0.2424127757549286, -0.0914929211139679, -0.40199533104896545, 0.0593939833343029, -0.07229836285114288, -0.05187976360321045, 0.2108607292175293, 0.08329785615205765, 0.041765596717596054, -0.035841092467308044, 0.3948865234851837, -0.17346590757369995, 0.5264502763748169, -0.19624868035316467, 0.04821489751338959, 0.10448677837848663, -0.16386230289936066, -0.03802074119448662, 0.29277336597442627, 0.20281453430652618, 0.13322892785072327, 0.14982663094997406, 0.12178338319063187, -0.03499520942568779, 0.037106387317180634, 0.01100626029074192, 0.07054328918457031, 0.021856777369976044, -0.13839875161647797, -0.003917294554412365, 0.2454780638217926, -0.25483763217926025, 0.4110158085823059, -0.18874841928482056, -0.11550925672054291, 0.0006600199267268181, 0.35173261165618896, 0.3189750909805298, -0.2639004588127136, -0.16851213574409485, 0.03251918777823448, -0.3876510560512543, -0.29321756958961487, 0.27693188190460205, -0.23927392065525055, 0.04835512489080429, -0.07798217982053757, 0.14169913530349731, 0.2012588381767273, 0.4066564738750458, 0.23862811923027039, 0.11523431539535522, -0.12155970185995102, 0.07431775331497192, -0.3568439781665802, 0.13113117218017578, 0.2768707275390625, 0.40268394351005554, 0.16029725968837738, 0.16671891510486603, -0.16562852263450623, 0.005246616899967194, 0.2825925946235657, -0.1696583479642868, 0.03642160817980766, -0.06718843430280685, -0.2791920006275177, 0.055595286190509796, 0.09537745267152786, 0.22045870125293732, 0.013557162135839462, -0.18913725018501282, 0.039044760167598724, 0.31730860471725464, 0.22162804007530212, -0.26100975275039673, -0.34659847617149353, 0.26823994517326355, -0.008619595319032669, 0.413038969039917, -0.06364026665687561, -0.37150466442108154, -0.09481195360422134, -0.24803562462329865, -0.2811605930328369, -0.13747185468673706, 0.06896132230758667, -0.15397578477859497, 0.05928383395075798, 0.1838511973619461, -0.010213333182036877, -0.2769938111305237, -0.43058085441589355, 0.1960516721010208, -0.1667550802230835, -0.08200685679912567, -0.11640453338623047, -0.041256584227085114, -0.028864726424217224, -0.004604773595929146, -0.1880539059638977, 0.07404343038797379, -0.09311959147453308, -0.0401109978556633, -0.5754608511924744, -0.10735832154750824, 0.6416370868682861, 0.20247657597064972, -0.06203863397240639, -0.0010347629431635141, 0.1000535786151886, 0.2263621985912323, 0.18064352869987488, -0.5523310303688049, 0.06323660165071487, 0.1551319807767868, 0.12004957348108292, -0.1700194925069809, 0.2424985021352768, 0.11385698616504669, 0.11081841588020325, -0.15079869329929352, 0.22014714777469635, -0.0638451874256134, -0.02211843803524971, -0.10493096709251404, -0.18415485322475433 ]
https://github.com/huggingface/datasets/pull/55
Beam datasets
Right now the changes are a bit hard to read as the one from #25 are also included. You can wait until #25 is merged before looking at the implementation details
# Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :)
31
text: Beam datasets # Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :) Right now the changes are a bit hard to read as the one from #25 are also included. You can wait until #25 is merged before looking at the implementation details
[ -0.22448933124542236, -0.021031245589256287, -0.1302931010723114, 0.348450243473053, 0.1360045075416565, -0.016957495361566544, 0.008793629705905914, 0.19213397800922394, -0.034205131232738495, 0.29911869764328003, -0.018663886934518814, 0.0905848890542984, -0.20437569916248322, 0.02858424372971058, -0.008144508115947247, -0.42792728543281555, -0.018962807953357697, -0.09025883674621582, -0.02715475857257843, -0.11681583523750305, -0.07615870237350464, 0.010491820052266121, -0.08379586040973663, -0.27175283432006836, 0.058624353259801865, -0.08277102559804916, -0.08609549701213837, 0.01799788326025009, 0.030302565544843674, -0.11363077908754349, -0.1709863245487213, -0.03516370430588722, -0.05951753258705139, 0.4160366356372833, -0.0001021534189931117, 0.08723777532577515, 0.21254315972328186, -0.01296940352767706, -0.15256571769714355, 0.27177631855010986, 0.03684227913618088, -0.33156928420066833, 0.021893994882702827, -0.3984896242618561, -0.20970368385314941, -0.277022123336792, 0.15400928258895874, -0.4039241671562195, 0.44398778676986694, 0.2417425513267517, 0.3052520453929901, 0.36982446908950806, -0.00027424097061157227, 0.1739702969789505, 0.7477936744689941, -0.2497057169675827, -0.1373233050107956, -0.1879439651966095, 0.23328682780265808, 0.08578844368457794, -0.3028024733066559, 0.3282378017902374, -0.16663722693920135, 0.07103515416383743, 0.24355414509773254, -0.09644018113613129, -0.11235124617815018, -0.33291852474212646, 0.2036553919315338, 0.19778737425804138, 0.5023131966590881, -0.3085606098175049, -0.04620371758937836, -0.4063318073749542, -0.10313794016838074, 0.05102124810218811, 0.12905751168727875, 0.20807106792926788, -0.16731838881969452, 0.036811795085668564, -0.038297805935144424, -0.05292271077632904, -0.19928427040576935, 0.20236589014530182, -0.0414125956594944, 0.3526974022388458, 0.05571730062365532, 0.15284034609794617, -0.07379023730754852, -0.12303715944290161, 0.16524682939052582, -0.34750258922576904, 0.16139908134937286, 0.047314971685409546, -0.3549324870109558, -0.0026409775018692017, 0.07329636812210083, -0.10237165540456772, 0.14847156405448914, -0.042722150683403015, 0.14003309607505798, 0.23994126915931702, 0.3721764087677002, 0.008512947708368301, -0.026302874088287354, 0.21454264223575592, -0.2469049096107483, -0.1415775865316391, 0.05093298852443695, -0.22186073660850525, -0.17908599972724915, 0.06580542773008347, 0.033187754452228546, -0.40268176794052124, -0.2655366361141205, -0.09992867708206177, -0.04039149731397629, 0.12323698401451111, 0.019650118425488472, 0.20678842067718506, -0.14536836743354797, -0.09028032422065735, -0.05673263594508171, 0.3719474673271179, -0.07651008665561676, 0.4109283983707428, 0.11834537982940674, -0.062058888375759125, -0.3532714545726776, -0.25457924604415894, -0.25282785296440125, 0.15157093107700348, -0.22840292751789093, 0.09757640957832336, 0.10193395614624023, 0.1507037729024887, 0.12648145854473114, -0.16742582619190216, 0.13657626509666443, 0.15570120513439178, 0.39027100801467896, -0.23716960847377777, 0.1325969398021698, 0.11957749724388123, 0.10247588157653809, 0.23373238742351532, -0.008409947156906128, 0.08313329517841339, -0.10237087309360504, 0.12229306995868683, -0.3539034426212311, -0.3046005070209503, 0.13724732398986816, 0.2596452236175537, -0.02222461812198162, -0.06659308075904846, -0.4345289170742035, 0.24045820534229279, 0.19337934255599976, 0.03252316638827324, -0.04237618297338486, -0.014729075133800507, -0.3275119960308075, -0.39434540271759033, 0.09892468899488449, 0.37347573041915894, -0.28529512882232666, 0.032446205615997314, -0.04181191697716713, -0.0511772595345974, 0.16299818456172943, 0.06730590760707855, -0.17687258124351501, 0.27957046031951904, -0.07468931376934052, 0.16593728959560394, 0.5061361789703369, -0.36819472908973694, -0.09935194998979568, 0.2736843526363373, -0.036526937037706375, 0.13907191157341003, 0.13448785245418549, -0.04143671318888664, 0.3838517963886261, 0.025838395580649376, -0.05951552093029022, 0.28289496898651123, -0.009516717866063118, 0.2880566716194153, -0.34540799260139465, -0.25116053223609924, -0.14876289665699005, 0.18516141176223755, 0.3841586410999298, -0.42134177684783936, 0.1518770009279251, 0.2067016363143921, 0.20371446013450623, -0.21700447797775269, 0.2998301386833191, 0.4911118149757385, -0.13872544467449188, 0.14966264367103577, 0.01984291709959507, -0.13479898869991302, -0.29965293407440186, 0.3406401574611664, -0.19275224208831787, -0.06384225189685822, 0.1971818506717682, 0.034573495388031006, -0.06146974861621857, 0.14597204327583313, -0.12372682988643646, -0.18603546917438507, 0.30005040764808655, 0.21967357397079468, -0.055637843906879425, -0.06357452273368835, -0.07624571025371552, 0.10307341814041138, -0.35807016491889954, -0.11899014562368393, -0.42118680477142334, 0.4755326211452484, -0.06074664741754532, -0.19510479271411896, -0.014534149318933487, 0.11982814967632294, -0.05193580687046051, -0.04491573944687843, 0.08330824971199036, 0.35731562972068787, -0.10020460188388824, 0.21975675225257874, -0.0025294050574302673, 0.4736700654029846, 0.1360623836517334, -0.23531320691108704, 0.06391993165016174, -0.15042828023433685, 0.06691363453865051, -0.1278626173734665, 0.029806530103087425, -0.026989564299583435, 0.01595946215093136, 0.24318668246269226, 0.11088119447231293, -0.19682598114013672, -0.11189825087785721, 0.06595936417579651, 0.07649264484643936, 0.007489033043384552, 0.21734754741191864, 0.1413397341966629, 0.13127881288528442, 0.07796672731637955, -0.2463904321193695, 0.2023734748363495, 0.6556751132011414, 0.030684571713209152, -0.06015194207429886, 0.09063561260700226, -0.2667553424835205, -0.20024839043617249, 0.33756521344184875, 0.07677830755710602, 0.24405932426452637, 0.35340115427970886, 0.0904412716627121, -0.09250753372907639, 0.20211566984653473, -0.21139320731163025, 0.20178237557411194, 0.2888646125793457, 0.2564646005630493, 0.25863534212112427, 0.28553536534309387, 0.09513292461633682, -0.11207427084445953, -0.07299622893333435, 0.12952065467834473, 0.11793192476034164, -0.19526022672653198, 0.012752706184983253, -0.23094817996025085, -0.20005130767822266, -0.30896615982055664, 0.4815228283405304, -0.15297472476959229, -0.41491618752479553, 0.17325903475284576, 0.18441139161586761, -0.33120614290237427, 0.1503233015537262, 0.2810945212841034, 0.10435765981674194, 0.07287885248661041, -0.373749315738678, -0.20452646911144257, -0.312453031539917, -0.3111193776130676, 0.21756255626678467, 0.3938213884830475, 0.15688984096050262, 0.41963112354278564, 0.19591191411018372, 0.06305298954248428, -0.44206827878952026, -0.22761273384094238, 0.2998068034648895, -0.07142110168933868, -0.009502580389380455, -0.08630391955375671, 0.27347472310066223, -0.11427471041679382, -0.3472328186035156, 0.04828552156686783, -0.14691950380802155, -0.08041875064373016, 0.024421662092208862, 0.11422701925039291, 0.04192399978637695, 0.04950111731886864, -0.34297311305999756, -0.2072659134864807, -0.5184646844863892, -0.08597131073474884, 0.23921425640583038, 0.02951318398118019, -0.08253171294927597, 0.20095574855804443, 0.14473168551921844, 0.27080419659614563, 0.2591155171394348, -0.01381569541990757, -0.060698579996824265, 0.20580081641674042, -0.2845202684402466, -0.3616211414337158, -0.0016867704689502716, -0.12495620548725128, 0.12325601279735565, 0.33627015352249146, -0.4650997519493103, -0.1591990888118744, -0.2805229425430298, -0.07434797286987305, -0.06791726499795914, 0.14169056713581085, 0.43367698788642883, 0.09350065886974335, -0.1429774910211563, -0.2381991147994995, 0.25070303678512573, -0.04941339045763016, -0.21729612350463867, 0.15738627314567566, 0.09265076369047165, 0.17677032947540283, 0.25066080689430237, 1.0675241947174072, -0.12094181776046753, -0.03856181725859642, 0.2937454581260681, 0.00024173036217689514, 0.13423261046409607, -0.3541499972343445, -0.060448043048381805, 0.16869132220745087, -0.0028437525033950806, -0.08517070859670639, 0.49719762802124023, -0.054861873388290405, -0.17364601790905, -0.09598754346370697, 0.11173221468925476, -0.16931694746017456, -0.3598645329475403, 0.2972680628299713, -0.055181004106998444, 0.1639643907546997, -0.013816948048770428, 0.04072172939777374, -0.25551360845565796, -0.3279504179954529, 0.1037188172340393, -0.090001180768013, -0.128989577293396, -0.019231723621487617, 0.14567211270332336, 0.3602893650531769, -0.6285311579704285, 0.2809232771396637, 0.057688649743795395, -0.15374355018138885, -0.20445914566516876, -0.27510058879852295, 0.10228472948074341, -0.24972032010555267, 0.47407281398773193, -0.35904935002326965, -0.12969844043254852, 0.14341950416564941, 0.06382612884044647, -0.4674361050128937, 0.04877529665827751, -0.2290087193250656, -0.35760918259620667, 0.03295009210705757, 0.189915269613266, -0.48412024974823, -0.22999244928359985, 0.0670403242111206, 0.14459162950515747, -0.09245799481868744, 0.10380331426858902, -0.10808644443750381, -0.0730220377445221, -0.3999084532260895, -0.15498381853103638, 0.04227446764707565, 0.2018795907497406, -0.0009685468394309282, 0.05119451507925987, -0.14661213755607605, -0.08696405589580536, 0.18664124608039856, -0.02098141610622406, 0.19594603776931763, 0.0632004365324974, -0.041528888046741486, -0.12394103407859802, 0.3304985463619232, 0.07882991433143616, 0.1814480423927307, -0.03542314097285271, -0.0019766539335250854, 0.24926844239234924, 0.040494129061698914, 0.08349581807851791, 0.32424724102020264, -0.13159918785095215, 0.017075099050998688, -0.3792029917240143, 0.18341083824634552, -0.20834024250507355, 0.4625280499458313, 0.12845556437969208, -0.15984468162059784, -0.1648353487253189, -0.29327714443206787, 0.49581724405288696, 0.07448258996009827, -0.19919772446155548, 0.29509469866752625, 0.19632384181022644, -0.40074658393859863, 0.6141044497489929, 0.4788839519023895, 1.1286569833755493, -0.47551989555358887, 0.2495848834514618, 0.45409560203552246, -0.1901864856481552, 0.3667272925376892, -0.8405726552009583, -0.0393734835088253, -0.19523505866527557, -0.10597360134124756, 0.042085178196430206, 0.03263270482420921, 0.056160785257816315, 0.1780470311641693, -0.05758560076355934, 0.20161382853984833, 0.43615812063217163, 0.2353498488664627, -0.15963008999824524, 0.44414466619491577, 0.18755339086055756, -0.2998519241809845, -0.3091868460178375, 0.2887791395187378, -0.037532955408096313, -0.11245870590209961, -0.24495166540145874, -0.06403429806232452, -0.07227040082216263, -0.022556845098733902, -0.21535322070121765, -0.009305760264396667, -0.2949039936065674, 0.23224042356014252, -0.3250710666179657, -0.483032763004303, -0.04953131824731827, 0.3265734910964966, 0.03812958672642708, 0.08281803131103516, -0.1904042661190033, 0.21407820284366608, -0.0056038349866867065, -0.06942228972911835, -0.008669169619679451, -0.11706562340259552, 0.3104696273803711, -0.16482549905776978, -0.008145615458488464, 0.17052069306373596, -0.15633174777030945, -0.4041907787322998, -0.23760777711868286, 0.05525719374418259, 0.6080357432365417, -0.12553861737251282, -0.08419756591320038, 0.17814406752586365, -0.4155006408691406, 0.05742277577519417, 0.19847574830055237, -0.31009864807128906, 0.013717332854866982, 0.04572316259145737, -0.04096827283501625, -0.11564278602600098, -0.09002639353275299, 0.20771929621696472, 0.13047152757644653, -0.12832699716091156, 0.38419559597969055, 0.320334255695343, -0.27467578649520874, -0.2597469389438629, 0.023820661008358, 0.235208198428154, -0.25599080324172974, -0.07543620467185974, -0.07971221953630447, -0.2187098264694214, 0.07062164694070816, 0.1980559229850769, 0.05120675265789032, -0.021689198911190033, -0.03559153899550438, 0.05547209829092026, -0.21099236607551575, 0.27047181129455566, 0.046497177332639694, 0.34513384103775024, 0.09364413470029831, 0.11362291872501373, -0.01597239077091217, -0.03641645610332489, -0.4186704456806183, -0.05061670392751694, -0.1812335103750229, 0.21053610742092133, 0.33828791975975037, -0.11714000254869461, 0.030099371448159218, 0.15964893996715546, 0.12146760523319244, 0.031139561906456947, -0.30474621057510376, -0.2891480028629303, 0.10745242238044739, 0.07859206944704056, 0.037966225296258926, 0.0020938871894031763, 0.0660104975104332, -0.15766263008117676, 0.012039337307214737, -0.353336364030838, 0.3319019079208374, 0.0019468478858470917, -0.11927083134651184, -0.09146705269813538, 0.45241284370422363, 0.2061004638671875, -0.20245423913002014, 0.07807488739490509, 0.012458279728889465, 0.25220584869384766, -0.03638314828276634, 0.14030614495277405, 0.24420930445194244, -0.22318503260612488, -0.11866305768489838, 0.1301950216293335, 0.30531513690948486, 0.05836404860019684, 0.2062624990940094, -0.036613836884498596, -0.2990778982639313, 0.20505718886852264, 0.2182990163564682, -0.02326461672782898, -0.11775340884923935, -0.2937951683998108, 0.14854669570922852, 0.29070866107940674, -0.021464908495545387, 0.10467494279146194, 0.27402472496032715, -0.010276884771883488, 0.14012260735034943, 0.09702589362859726, 0.11596737802028656, 0.10245496034622192, -0.07103106379508972, 0.2598644495010376, 0.1426721215248108, -0.27665233612060547, 0.03877335786819458, -0.04581191763281822, 0.028648000210523605, -0.19908548891544342, -0.23603364825248718, -0.04876931384205818, 0.3186037838459015, 0.2797176241874695, -0.06053721159696579, 0.6823367476463318, 0.28887492418289185, -0.001946091651916504, 0.08384343236684799, -0.37241649627685547, 0.1637207418680191, 0.24583886563777924, 0.2510964870452881, 0.3650584816932678, 0.03721565008163452, 0.04759381711483002, 0.6911853551864624, -0.26283419132232666, -0.15105804800987244, 0.4295702874660492, -0.06900620460510254, -0.11310280859470367, -0.0988348126411438, -0.197749063372612, -0.15107467770576477, 0.12271672487258911, -0.022101860493421555, -0.22911496460437775, 0.0705491155385971, 0.1739482879638672, -0.04807291924953461, -0.0548916831612587, 0.4006223976612091, -0.004528895020484924, 0.2589356005191803, -0.11385960876941681, 0.20700882375240326, 0.1302732229232788, -0.04363417625427246, -0.09675911068916321, -0.01642870344221592, 0.10646732151508331, 0.11126246303319931, -0.2856667637825012, 0.07827937602996826, 0.053538575768470764, 0.03497953712940216, -0.21421347558498383, 0.16051477193832397, -0.07147131860256195, 0.11506935954093933, 0.46149611473083496, 0.20665843784809113, -0.3158261179924011, -0.31717169284820557, 0.20099280774593353, -0.12469100952148438, -0.41712379455566406, -0.17496579885482788, 0.13789710402488708, -0.12275797128677368, -0.133294939994812, 0.04323754832148552, -0.5075317025184631, -0.08092334121465683, 0.1667737066745758, -0.12163064628839493, 0.1887514889240265, -0.09329996258020401, 0.11946827173233032, -0.10580743849277496, 0.6818645000457764, 0.15930311381816864, 0.14150860905647278, -0.2293969988822937, -0.18827903270721436, -0.4742928147315979, 0.14392386376857758, -0.1642547845840454, 0.02355591021478176, -0.098137266933918, 0.4350053369998932, 0.12903669476509094, 0.23785096406936646, -0.19225148856639862, -0.03453126177191734, -0.12657488882541656, 0.23433934152126312, -0.4563056528568268, -0.1012810617685318, -0.10166123509407043, -0.12362095713615417, 0.10019998252391815, -0.2795400619506836, 0.06449342519044876, -0.09290515631437302, 0.17288580536842346, -0.03871346637606621, -0.22615142166614532, 0.2997647821903229, -0.34276100993156433, 0.3593783378601074, -0.024144141003489494, 0.20133215188980103, -0.19731682538986206, 0.010433098301291466, -0.34137919545173645, -0.09117957949638367, -0.0807599425315857, 0.08928484469652176, -0.11609472334384918, 0.3723321557044983, -0.14916178584098816, -0.0879255086183548, -0.08236537128686905, 0.10089118778705597, 0.010155178606510162, 0.3135239779949188, -0.12139182537794113, -0.08109863102436066, 0.10199267417192459, 0.3881443440914154, -0.10911554843187332, 0.322214812040329, 0.005558967590332031, 0.17939694225788116, -0.3866308927536011, -0.4789595305919647, 0.2693084180355072, -0.5958872437477112, -0.2193138748407364, 0.2095007598400116, 0.053541556000709534, 0.05367903411388397, 0.15906883776187897, -0.5768584609031677, -0.05699868127703667, 0.27335625886917114, -0.034058332443237305, -0.11441001296043396, 0.07409626990556717, 0.12882843613624573, -0.017038289457559586, -0.1295020878314972, -0.24454796314239502, -0.04678795486688614, -0.10978411138057709, -0.08934077620506287, -0.3870065212249756 ]
https://github.com/huggingface/datasets/pull/55
Beam datasets
Nice!! I tested it a bit and works quite well. I will do a my review once the #25 will be merged because there are several overlaps. At least I can share my thoughts on your **Next** section: 1) I don't think it is a good thing to rely on tfds preprocessed datasets uploaded in their online storage, because they might be updated or deleted at any moment by Google and then possibly break our own processing. 2) Improves the pipeline is always a good direction, but in the meantime we might also share the preprocessed dataset in S3 storage. Which might be another way to see 1), instead of downloading Google preprocessed datasets, using our own ones. 3) Apache Beam can be easily integrated in Spark, so I don't see the need to replace Beam by Spark.
# Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :)
138
text: Beam datasets # Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :) Nice!! I tested it a bit and works quite well. I will do a my review once the #25 will be merged because there are several overlaps. At least I can share my thoughts on your **Next** section: 1) I don't think it is a good thing to rely on tfds preprocessed datasets uploaded in their online storage, because they might be updated or deleted at any moment by Google and then possibly break our own processing. 2) Improves the pipeline is always a good direction, but in the meantime we might also share the preprocessed dataset in S3 storage. Which might be another way to see 1), instead of downloading Google preprocessed datasets, using our own ones. 3) Apache Beam can be easily integrated in Spark, so I don't see the need to replace Beam by Spark.
[ -0.22448933124542236, -0.021031245589256287, -0.1302931010723114, 0.348450243473053, 0.1360045075416565, -0.016957495361566544, 0.008793629705905914, 0.19213397800922394, -0.034205131232738495, 0.29911869764328003, -0.018663886934518814, 0.0905848890542984, -0.20437569916248322, 0.02858424372971058, -0.008144508115947247, -0.42792728543281555, -0.018962807953357697, -0.09025883674621582, -0.02715475857257843, -0.11681583523750305, -0.07615870237350464, 0.010491820052266121, -0.08379586040973663, -0.27175283432006836, 0.058624353259801865, -0.08277102559804916, -0.08609549701213837, 0.01799788326025009, 0.030302565544843674, -0.11363077908754349, -0.1709863245487213, -0.03516370430588722, -0.05951753258705139, 0.4160366356372833, -0.0001021534189931117, 0.08723777532577515, 0.21254315972328186, -0.01296940352767706, -0.15256571769714355, 0.27177631855010986, 0.03684227913618088, -0.33156928420066833, 0.021893994882702827, -0.3984896242618561, -0.20970368385314941, -0.277022123336792, 0.15400928258895874, -0.4039241671562195, 0.44398778676986694, 0.2417425513267517, 0.3052520453929901, 0.36982446908950806, -0.00027424097061157227, 0.1739702969789505, 0.7477936744689941, -0.2497057169675827, -0.1373233050107956, -0.1879439651966095, 0.23328682780265808, 0.08578844368457794, -0.3028024733066559, 0.3282378017902374, -0.16663722693920135, 0.07103515416383743, 0.24355414509773254, -0.09644018113613129, -0.11235124617815018, -0.33291852474212646, 0.2036553919315338, 0.19778737425804138, 0.5023131966590881, -0.3085606098175049, -0.04620371758937836, -0.4063318073749542, -0.10313794016838074, 0.05102124810218811, 0.12905751168727875, 0.20807106792926788, -0.16731838881969452, 0.036811795085668564, -0.038297805935144424, -0.05292271077632904, -0.19928427040576935, 0.20236589014530182, -0.0414125956594944, 0.3526974022388458, 0.05571730062365532, 0.15284034609794617, -0.07379023730754852, -0.12303715944290161, 0.16524682939052582, -0.34750258922576904, 0.16139908134937286, 0.047314971685409546, -0.3549324870109558, -0.0026409775018692017, 0.07329636812210083, -0.10237165540456772, 0.14847156405448914, -0.042722150683403015, 0.14003309607505798, 0.23994126915931702, 0.3721764087677002, 0.008512947708368301, -0.026302874088287354, 0.21454264223575592, -0.2469049096107483, -0.1415775865316391, 0.05093298852443695, -0.22186073660850525, -0.17908599972724915, 0.06580542773008347, 0.033187754452228546, -0.40268176794052124, -0.2655366361141205, -0.09992867708206177, -0.04039149731397629, 0.12323698401451111, 0.019650118425488472, 0.20678842067718506, -0.14536836743354797, -0.09028032422065735, -0.05673263594508171, 0.3719474673271179, -0.07651008665561676, 0.4109283983707428, 0.11834537982940674, -0.062058888375759125, -0.3532714545726776, -0.25457924604415894, -0.25282785296440125, 0.15157093107700348, -0.22840292751789093, 0.09757640957832336, 0.10193395614624023, 0.1507037729024887, 0.12648145854473114, -0.16742582619190216, 0.13657626509666443, 0.15570120513439178, 0.39027100801467896, -0.23716960847377777, 0.1325969398021698, 0.11957749724388123, 0.10247588157653809, 0.23373238742351532, -0.008409947156906128, 0.08313329517841339, -0.10237087309360504, 0.12229306995868683, -0.3539034426212311, -0.3046005070209503, 0.13724732398986816, 0.2596452236175537, -0.02222461812198162, -0.06659308075904846, -0.4345289170742035, 0.24045820534229279, 0.19337934255599976, 0.03252316638827324, -0.04237618297338486, -0.014729075133800507, -0.3275119960308075, -0.39434540271759033, 0.09892468899488449, 0.37347573041915894, -0.28529512882232666, 0.032446205615997314, -0.04181191697716713, -0.0511772595345974, 0.16299818456172943, 0.06730590760707855, -0.17687258124351501, 0.27957046031951904, -0.07468931376934052, 0.16593728959560394, 0.5061361789703369, -0.36819472908973694, -0.09935194998979568, 0.2736843526363373, -0.036526937037706375, 0.13907191157341003, 0.13448785245418549, -0.04143671318888664, 0.3838517963886261, 0.025838395580649376, -0.05951552093029022, 0.28289496898651123, -0.009516717866063118, 0.2880566716194153, -0.34540799260139465, -0.25116053223609924, -0.14876289665699005, 0.18516141176223755, 0.3841586410999298, -0.42134177684783936, 0.1518770009279251, 0.2067016363143921, 0.20371446013450623, -0.21700447797775269, 0.2998301386833191, 0.4911118149757385, -0.13872544467449188, 0.14966264367103577, 0.01984291709959507, -0.13479898869991302, -0.29965293407440186, 0.3406401574611664, -0.19275224208831787, -0.06384225189685822, 0.1971818506717682, 0.034573495388031006, -0.06146974861621857, 0.14597204327583313, -0.12372682988643646, -0.18603546917438507, 0.30005040764808655, 0.21967357397079468, -0.055637843906879425, -0.06357452273368835, -0.07624571025371552, 0.10307341814041138, -0.35807016491889954, -0.11899014562368393, -0.42118680477142334, 0.4755326211452484, -0.06074664741754532, -0.19510479271411896, -0.014534149318933487, 0.11982814967632294, -0.05193580687046051, -0.04491573944687843, 0.08330824971199036, 0.35731562972068787, -0.10020460188388824, 0.21975675225257874, -0.0025294050574302673, 0.4736700654029846, 0.1360623836517334, -0.23531320691108704, 0.06391993165016174, -0.15042828023433685, 0.06691363453865051, -0.1278626173734665, 0.029806530103087425, -0.026989564299583435, 0.01595946215093136, 0.24318668246269226, 0.11088119447231293, -0.19682598114013672, -0.11189825087785721, 0.06595936417579651, 0.07649264484643936, 0.007489033043384552, 0.21734754741191864, 0.1413397341966629, 0.13127881288528442, 0.07796672731637955, -0.2463904321193695, 0.2023734748363495, 0.6556751132011414, 0.030684571713209152, -0.06015194207429886, 0.09063561260700226, -0.2667553424835205, -0.20024839043617249, 0.33756521344184875, 0.07677830755710602, 0.24405932426452637, 0.35340115427970886, 0.0904412716627121, -0.09250753372907639, 0.20211566984653473, -0.21139320731163025, 0.20178237557411194, 0.2888646125793457, 0.2564646005630493, 0.25863534212112427, 0.28553536534309387, 0.09513292461633682, -0.11207427084445953, -0.07299622893333435, 0.12952065467834473, 0.11793192476034164, -0.19526022672653198, 0.012752706184983253, -0.23094817996025085, -0.20005130767822266, -0.30896615982055664, 0.4815228283405304, -0.15297472476959229, -0.41491618752479553, 0.17325903475284576, 0.18441139161586761, -0.33120614290237427, 0.1503233015537262, 0.2810945212841034, 0.10435765981674194, 0.07287885248661041, -0.373749315738678, -0.20452646911144257, -0.312453031539917, -0.3111193776130676, 0.21756255626678467, 0.3938213884830475, 0.15688984096050262, 0.41963112354278564, 0.19591191411018372, 0.06305298954248428, -0.44206827878952026, -0.22761273384094238, 0.2998068034648895, -0.07142110168933868, -0.009502580389380455, -0.08630391955375671, 0.27347472310066223, -0.11427471041679382, -0.3472328186035156, 0.04828552156686783, -0.14691950380802155, -0.08041875064373016, 0.024421662092208862, 0.11422701925039291, 0.04192399978637695, 0.04950111731886864, -0.34297311305999756, -0.2072659134864807, -0.5184646844863892, -0.08597131073474884, 0.23921425640583038, 0.02951318398118019, -0.08253171294927597, 0.20095574855804443, 0.14473168551921844, 0.27080419659614563, 0.2591155171394348, -0.01381569541990757, -0.060698579996824265, 0.20580081641674042, -0.2845202684402466, -0.3616211414337158, -0.0016867704689502716, -0.12495620548725128, 0.12325601279735565, 0.33627015352249146, -0.4650997519493103, -0.1591990888118744, -0.2805229425430298, -0.07434797286987305, -0.06791726499795914, 0.14169056713581085, 0.43367698788642883, 0.09350065886974335, -0.1429774910211563, -0.2381991147994995, 0.25070303678512573, -0.04941339045763016, -0.21729612350463867, 0.15738627314567566, 0.09265076369047165, 0.17677032947540283, 0.25066080689430237, 1.0675241947174072, -0.12094181776046753, -0.03856181725859642, 0.2937454581260681, 0.00024173036217689514, 0.13423261046409607, -0.3541499972343445, -0.060448043048381805, 0.16869132220745087, -0.0028437525033950806, -0.08517070859670639, 0.49719762802124023, -0.054861873388290405, -0.17364601790905, -0.09598754346370697, 0.11173221468925476, -0.16931694746017456, -0.3598645329475403, 0.2972680628299713, -0.055181004106998444, 0.1639643907546997, -0.013816948048770428, 0.04072172939777374, -0.25551360845565796, -0.3279504179954529, 0.1037188172340393, -0.090001180768013, -0.128989577293396, -0.019231723621487617, 0.14567211270332336, 0.3602893650531769, -0.6285311579704285, 0.2809232771396637, 0.057688649743795395, -0.15374355018138885, -0.20445914566516876, -0.27510058879852295, 0.10228472948074341, -0.24972032010555267, 0.47407281398773193, -0.35904935002326965, -0.12969844043254852, 0.14341950416564941, 0.06382612884044647, -0.4674361050128937, 0.04877529665827751, -0.2290087193250656, -0.35760918259620667, 0.03295009210705757, 0.189915269613266, -0.48412024974823, -0.22999244928359985, 0.0670403242111206, 0.14459162950515747, -0.09245799481868744, 0.10380331426858902, -0.10808644443750381, -0.0730220377445221, -0.3999084532260895, -0.15498381853103638, 0.04227446764707565, 0.2018795907497406, -0.0009685468394309282, 0.05119451507925987, -0.14661213755607605, -0.08696405589580536, 0.18664124608039856, -0.02098141610622406, 0.19594603776931763, 0.0632004365324974, -0.041528888046741486, -0.12394103407859802, 0.3304985463619232, 0.07882991433143616, 0.1814480423927307, -0.03542314097285271, -0.0019766539335250854, 0.24926844239234924, 0.040494129061698914, 0.08349581807851791, 0.32424724102020264, -0.13159918785095215, 0.017075099050998688, -0.3792029917240143, 0.18341083824634552, -0.20834024250507355, 0.4625280499458313, 0.12845556437969208, -0.15984468162059784, -0.1648353487253189, -0.29327714443206787, 0.49581724405288696, 0.07448258996009827, -0.19919772446155548, 0.29509469866752625, 0.19632384181022644, -0.40074658393859863, 0.6141044497489929, 0.4788839519023895, 1.1286569833755493, -0.47551989555358887, 0.2495848834514618, 0.45409560203552246, -0.1901864856481552, 0.3667272925376892, -0.8405726552009583, -0.0393734835088253, -0.19523505866527557, -0.10597360134124756, 0.042085178196430206, 0.03263270482420921, 0.056160785257816315, 0.1780470311641693, -0.05758560076355934, 0.20161382853984833, 0.43615812063217163, 0.2353498488664627, -0.15963008999824524, 0.44414466619491577, 0.18755339086055756, -0.2998519241809845, -0.3091868460178375, 0.2887791395187378, -0.037532955408096313, -0.11245870590209961, -0.24495166540145874, -0.06403429806232452, -0.07227040082216263, -0.022556845098733902, -0.21535322070121765, -0.009305760264396667, -0.2949039936065674, 0.23224042356014252, -0.3250710666179657, -0.483032763004303, -0.04953131824731827, 0.3265734910964966, 0.03812958672642708, 0.08281803131103516, -0.1904042661190033, 0.21407820284366608, -0.0056038349866867065, -0.06942228972911835, -0.008669169619679451, -0.11706562340259552, 0.3104696273803711, -0.16482549905776978, -0.008145615458488464, 0.17052069306373596, -0.15633174777030945, -0.4041907787322998, -0.23760777711868286, 0.05525719374418259, 0.6080357432365417, -0.12553861737251282, -0.08419756591320038, 0.17814406752586365, -0.4155006408691406, 0.05742277577519417, 0.19847574830055237, -0.31009864807128906, 0.013717332854866982, 0.04572316259145737, -0.04096827283501625, -0.11564278602600098, -0.09002639353275299, 0.20771929621696472, 0.13047152757644653, -0.12832699716091156, 0.38419559597969055, 0.320334255695343, -0.27467578649520874, -0.2597469389438629, 0.023820661008358, 0.235208198428154, -0.25599080324172974, -0.07543620467185974, -0.07971221953630447, -0.2187098264694214, 0.07062164694070816, 0.1980559229850769, 0.05120675265789032, -0.021689198911190033, -0.03559153899550438, 0.05547209829092026, -0.21099236607551575, 0.27047181129455566, 0.046497177332639694, 0.34513384103775024, 0.09364413470029831, 0.11362291872501373, -0.01597239077091217, -0.03641645610332489, -0.4186704456806183, -0.05061670392751694, -0.1812335103750229, 0.21053610742092133, 0.33828791975975037, -0.11714000254869461, 0.030099371448159218, 0.15964893996715546, 0.12146760523319244, 0.031139561906456947, -0.30474621057510376, -0.2891480028629303, 0.10745242238044739, 0.07859206944704056, 0.037966225296258926, 0.0020938871894031763, 0.0660104975104332, -0.15766263008117676, 0.012039337307214737, -0.353336364030838, 0.3319019079208374, 0.0019468478858470917, -0.11927083134651184, -0.09146705269813538, 0.45241284370422363, 0.2061004638671875, -0.20245423913002014, 0.07807488739490509, 0.012458279728889465, 0.25220584869384766, -0.03638314828276634, 0.14030614495277405, 0.24420930445194244, -0.22318503260612488, -0.11866305768489838, 0.1301950216293335, 0.30531513690948486, 0.05836404860019684, 0.2062624990940094, -0.036613836884498596, -0.2990778982639313, 0.20505718886852264, 0.2182990163564682, -0.02326461672782898, -0.11775340884923935, -0.2937951683998108, 0.14854669570922852, 0.29070866107940674, -0.021464908495545387, 0.10467494279146194, 0.27402472496032715, -0.010276884771883488, 0.14012260735034943, 0.09702589362859726, 0.11596737802028656, 0.10245496034622192, -0.07103106379508972, 0.2598644495010376, 0.1426721215248108, -0.27665233612060547, 0.03877335786819458, -0.04581191763281822, 0.028648000210523605, -0.19908548891544342, -0.23603364825248718, -0.04876931384205818, 0.3186037838459015, 0.2797176241874695, -0.06053721159696579, 0.6823367476463318, 0.28887492418289185, -0.001946091651916504, 0.08384343236684799, -0.37241649627685547, 0.1637207418680191, 0.24583886563777924, 0.2510964870452881, 0.3650584816932678, 0.03721565008163452, 0.04759381711483002, 0.6911853551864624, -0.26283419132232666, -0.15105804800987244, 0.4295702874660492, -0.06900620460510254, -0.11310280859470367, -0.0988348126411438, -0.197749063372612, -0.15107467770576477, 0.12271672487258911, -0.022101860493421555, -0.22911496460437775, 0.0705491155385971, 0.1739482879638672, -0.04807291924953461, -0.0548916831612587, 0.4006223976612091, -0.004528895020484924, 0.2589356005191803, -0.11385960876941681, 0.20700882375240326, 0.1302732229232788, -0.04363417625427246, -0.09675911068916321, -0.01642870344221592, 0.10646732151508331, 0.11126246303319931, -0.2856667637825012, 0.07827937602996826, 0.053538575768470764, 0.03497953712940216, -0.21421347558498383, 0.16051477193832397, -0.07147131860256195, 0.11506935954093933, 0.46149611473083496, 0.20665843784809113, -0.3158261179924011, -0.31717169284820557, 0.20099280774593353, -0.12469100952148438, -0.41712379455566406, -0.17496579885482788, 0.13789710402488708, -0.12275797128677368, -0.133294939994812, 0.04323754832148552, -0.5075317025184631, -0.08092334121465683, 0.1667737066745758, -0.12163064628839493, 0.1887514889240265, -0.09329996258020401, 0.11946827173233032, -0.10580743849277496, 0.6818645000457764, 0.15930311381816864, 0.14150860905647278, -0.2293969988822937, -0.18827903270721436, -0.4742928147315979, 0.14392386376857758, -0.1642547845840454, 0.02355591021478176, -0.098137266933918, 0.4350053369998932, 0.12903669476509094, 0.23785096406936646, -0.19225148856639862, -0.03453126177191734, -0.12657488882541656, 0.23433934152126312, -0.4563056528568268, -0.1012810617685318, -0.10166123509407043, -0.12362095713615417, 0.10019998252391815, -0.2795400619506836, 0.06449342519044876, -0.09290515631437302, 0.17288580536842346, -0.03871346637606621, -0.22615142166614532, 0.2997647821903229, -0.34276100993156433, 0.3593783378601074, -0.024144141003489494, 0.20133215188980103, -0.19731682538986206, 0.010433098301291466, -0.34137919545173645, -0.09117957949638367, -0.0807599425315857, 0.08928484469652176, -0.11609472334384918, 0.3723321557044983, -0.14916178584098816, -0.0879255086183548, -0.08236537128686905, 0.10089118778705597, 0.010155178606510162, 0.3135239779949188, -0.12139182537794113, -0.08109863102436066, 0.10199267417192459, 0.3881443440914154, -0.10911554843187332, 0.322214812040329, 0.005558967590332031, 0.17939694225788116, -0.3866308927536011, -0.4789595305919647, 0.2693084180355072, -0.5958872437477112, -0.2193138748407364, 0.2095007598400116, 0.053541556000709534, 0.05367903411388397, 0.15906883776187897, -0.5768584609031677, -0.05699868127703667, 0.27335625886917114, -0.034058332443237305, -0.11441001296043396, 0.07409626990556717, 0.12882843613624573, -0.017038289457559586, -0.1295020878314972, -0.24454796314239502, -0.04678795486688614, -0.10978411138057709, -0.08934077620506287, -0.3870065212249756 ]
https://github.com/huggingface/datasets/pull/55
Beam datasets
Ok I've merged #25 so you can rebase or merge if you want. I fully agree with @jplu notes for the "next section". Don't hesitate to use some credit on Google Dataflow if you think it would be useful to give it a try.
# Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :)
44
text: Beam datasets # Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :) Ok I've merged #25 so you can rebase or merge if you want. I fully agree with @jplu notes for the "next section". Don't hesitate to use some credit on Google Dataflow if you think it would be useful to give it a try.
[ -0.22448933124542236, -0.021031245589256287, -0.1302931010723114, 0.348450243473053, 0.1360045075416565, -0.016957495361566544, 0.008793629705905914, 0.19213397800922394, -0.034205131232738495, 0.29911869764328003, -0.018663886934518814, 0.0905848890542984, -0.20437569916248322, 0.02858424372971058, -0.008144508115947247, -0.42792728543281555, -0.018962807953357697, -0.09025883674621582, -0.02715475857257843, -0.11681583523750305, -0.07615870237350464, 0.010491820052266121, -0.08379586040973663, -0.27175283432006836, 0.058624353259801865, -0.08277102559804916, -0.08609549701213837, 0.01799788326025009, 0.030302565544843674, -0.11363077908754349, -0.1709863245487213, -0.03516370430588722, -0.05951753258705139, 0.4160366356372833, -0.0001021534189931117, 0.08723777532577515, 0.21254315972328186, -0.01296940352767706, -0.15256571769714355, 0.27177631855010986, 0.03684227913618088, -0.33156928420066833, 0.021893994882702827, -0.3984896242618561, -0.20970368385314941, -0.277022123336792, 0.15400928258895874, -0.4039241671562195, 0.44398778676986694, 0.2417425513267517, 0.3052520453929901, 0.36982446908950806, -0.00027424097061157227, 0.1739702969789505, 0.7477936744689941, -0.2497057169675827, -0.1373233050107956, -0.1879439651966095, 0.23328682780265808, 0.08578844368457794, -0.3028024733066559, 0.3282378017902374, -0.16663722693920135, 0.07103515416383743, 0.24355414509773254, -0.09644018113613129, -0.11235124617815018, -0.33291852474212646, 0.2036553919315338, 0.19778737425804138, 0.5023131966590881, -0.3085606098175049, -0.04620371758937836, -0.4063318073749542, -0.10313794016838074, 0.05102124810218811, 0.12905751168727875, 0.20807106792926788, -0.16731838881969452, 0.036811795085668564, -0.038297805935144424, -0.05292271077632904, -0.19928427040576935, 0.20236589014530182, -0.0414125956594944, 0.3526974022388458, 0.05571730062365532, 0.15284034609794617, -0.07379023730754852, -0.12303715944290161, 0.16524682939052582, -0.34750258922576904, 0.16139908134937286, 0.047314971685409546, -0.3549324870109558, -0.0026409775018692017, 0.07329636812210083, -0.10237165540456772, 0.14847156405448914, -0.042722150683403015, 0.14003309607505798, 0.23994126915931702, 0.3721764087677002, 0.008512947708368301, -0.026302874088287354, 0.21454264223575592, -0.2469049096107483, -0.1415775865316391, 0.05093298852443695, -0.22186073660850525, -0.17908599972724915, 0.06580542773008347, 0.033187754452228546, -0.40268176794052124, -0.2655366361141205, -0.09992867708206177, -0.04039149731397629, 0.12323698401451111, 0.019650118425488472, 0.20678842067718506, -0.14536836743354797, -0.09028032422065735, -0.05673263594508171, 0.3719474673271179, -0.07651008665561676, 0.4109283983707428, 0.11834537982940674, -0.062058888375759125, -0.3532714545726776, -0.25457924604415894, -0.25282785296440125, 0.15157093107700348, -0.22840292751789093, 0.09757640957832336, 0.10193395614624023, 0.1507037729024887, 0.12648145854473114, -0.16742582619190216, 0.13657626509666443, 0.15570120513439178, 0.39027100801467896, -0.23716960847377777, 0.1325969398021698, 0.11957749724388123, 0.10247588157653809, 0.23373238742351532, -0.008409947156906128, 0.08313329517841339, -0.10237087309360504, 0.12229306995868683, -0.3539034426212311, -0.3046005070209503, 0.13724732398986816, 0.2596452236175537, -0.02222461812198162, -0.06659308075904846, -0.4345289170742035, 0.24045820534229279, 0.19337934255599976, 0.03252316638827324, -0.04237618297338486, -0.014729075133800507, -0.3275119960308075, -0.39434540271759033, 0.09892468899488449, 0.37347573041915894, -0.28529512882232666, 0.032446205615997314, -0.04181191697716713, -0.0511772595345974, 0.16299818456172943, 0.06730590760707855, -0.17687258124351501, 0.27957046031951904, -0.07468931376934052, 0.16593728959560394, 0.5061361789703369, -0.36819472908973694, -0.09935194998979568, 0.2736843526363373, -0.036526937037706375, 0.13907191157341003, 0.13448785245418549, -0.04143671318888664, 0.3838517963886261, 0.025838395580649376, -0.05951552093029022, 0.28289496898651123, -0.009516717866063118, 0.2880566716194153, -0.34540799260139465, -0.25116053223609924, -0.14876289665699005, 0.18516141176223755, 0.3841586410999298, -0.42134177684783936, 0.1518770009279251, 0.2067016363143921, 0.20371446013450623, -0.21700447797775269, 0.2998301386833191, 0.4911118149757385, -0.13872544467449188, 0.14966264367103577, 0.01984291709959507, -0.13479898869991302, -0.29965293407440186, 0.3406401574611664, -0.19275224208831787, -0.06384225189685822, 0.1971818506717682, 0.034573495388031006, -0.06146974861621857, 0.14597204327583313, -0.12372682988643646, -0.18603546917438507, 0.30005040764808655, 0.21967357397079468, -0.055637843906879425, -0.06357452273368835, -0.07624571025371552, 0.10307341814041138, -0.35807016491889954, -0.11899014562368393, -0.42118680477142334, 0.4755326211452484, -0.06074664741754532, -0.19510479271411896, -0.014534149318933487, 0.11982814967632294, -0.05193580687046051, -0.04491573944687843, 0.08330824971199036, 0.35731562972068787, -0.10020460188388824, 0.21975675225257874, -0.0025294050574302673, 0.4736700654029846, 0.1360623836517334, -0.23531320691108704, 0.06391993165016174, -0.15042828023433685, 0.06691363453865051, -0.1278626173734665, 0.029806530103087425, -0.026989564299583435, 0.01595946215093136, 0.24318668246269226, 0.11088119447231293, -0.19682598114013672, -0.11189825087785721, 0.06595936417579651, 0.07649264484643936, 0.007489033043384552, 0.21734754741191864, 0.1413397341966629, 0.13127881288528442, 0.07796672731637955, -0.2463904321193695, 0.2023734748363495, 0.6556751132011414, 0.030684571713209152, -0.06015194207429886, 0.09063561260700226, -0.2667553424835205, -0.20024839043617249, 0.33756521344184875, 0.07677830755710602, 0.24405932426452637, 0.35340115427970886, 0.0904412716627121, -0.09250753372907639, 0.20211566984653473, -0.21139320731163025, 0.20178237557411194, 0.2888646125793457, 0.2564646005630493, 0.25863534212112427, 0.28553536534309387, 0.09513292461633682, -0.11207427084445953, -0.07299622893333435, 0.12952065467834473, 0.11793192476034164, -0.19526022672653198, 0.012752706184983253, -0.23094817996025085, -0.20005130767822266, -0.30896615982055664, 0.4815228283405304, -0.15297472476959229, -0.41491618752479553, 0.17325903475284576, 0.18441139161586761, -0.33120614290237427, 0.1503233015537262, 0.2810945212841034, 0.10435765981674194, 0.07287885248661041, -0.373749315738678, -0.20452646911144257, -0.312453031539917, -0.3111193776130676, 0.21756255626678467, 0.3938213884830475, 0.15688984096050262, 0.41963112354278564, 0.19591191411018372, 0.06305298954248428, -0.44206827878952026, -0.22761273384094238, 0.2998068034648895, -0.07142110168933868, -0.009502580389380455, -0.08630391955375671, 0.27347472310066223, -0.11427471041679382, -0.3472328186035156, 0.04828552156686783, -0.14691950380802155, -0.08041875064373016, 0.024421662092208862, 0.11422701925039291, 0.04192399978637695, 0.04950111731886864, -0.34297311305999756, -0.2072659134864807, -0.5184646844863892, -0.08597131073474884, 0.23921425640583038, 0.02951318398118019, -0.08253171294927597, 0.20095574855804443, 0.14473168551921844, 0.27080419659614563, 0.2591155171394348, -0.01381569541990757, -0.060698579996824265, 0.20580081641674042, -0.2845202684402466, -0.3616211414337158, -0.0016867704689502716, -0.12495620548725128, 0.12325601279735565, 0.33627015352249146, -0.4650997519493103, -0.1591990888118744, -0.2805229425430298, -0.07434797286987305, -0.06791726499795914, 0.14169056713581085, 0.43367698788642883, 0.09350065886974335, -0.1429774910211563, -0.2381991147994995, 0.25070303678512573, -0.04941339045763016, -0.21729612350463867, 0.15738627314567566, 0.09265076369047165, 0.17677032947540283, 0.25066080689430237, 1.0675241947174072, -0.12094181776046753, -0.03856181725859642, 0.2937454581260681, 0.00024173036217689514, 0.13423261046409607, -0.3541499972343445, -0.060448043048381805, 0.16869132220745087, -0.0028437525033950806, -0.08517070859670639, 0.49719762802124023, -0.054861873388290405, -0.17364601790905, -0.09598754346370697, 0.11173221468925476, -0.16931694746017456, -0.3598645329475403, 0.2972680628299713, -0.055181004106998444, 0.1639643907546997, -0.013816948048770428, 0.04072172939777374, -0.25551360845565796, -0.3279504179954529, 0.1037188172340393, -0.090001180768013, -0.128989577293396, -0.019231723621487617, 0.14567211270332336, 0.3602893650531769, -0.6285311579704285, 0.2809232771396637, 0.057688649743795395, -0.15374355018138885, -0.20445914566516876, -0.27510058879852295, 0.10228472948074341, -0.24972032010555267, 0.47407281398773193, -0.35904935002326965, -0.12969844043254852, 0.14341950416564941, 0.06382612884044647, -0.4674361050128937, 0.04877529665827751, -0.2290087193250656, -0.35760918259620667, 0.03295009210705757, 0.189915269613266, -0.48412024974823, -0.22999244928359985, 0.0670403242111206, 0.14459162950515747, -0.09245799481868744, 0.10380331426858902, -0.10808644443750381, -0.0730220377445221, -0.3999084532260895, -0.15498381853103638, 0.04227446764707565, 0.2018795907497406, -0.0009685468394309282, 0.05119451507925987, -0.14661213755607605, -0.08696405589580536, 0.18664124608039856, -0.02098141610622406, 0.19594603776931763, 0.0632004365324974, -0.041528888046741486, -0.12394103407859802, 0.3304985463619232, 0.07882991433143616, 0.1814480423927307, -0.03542314097285271, -0.0019766539335250854, 0.24926844239234924, 0.040494129061698914, 0.08349581807851791, 0.32424724102020264, -0.13159918785095215, 0.017075099050998688, -0.3792029917240143, 0.18341083824634552, -0.20834024250507355, 0.4625280499458313, 0.12845556437969208, -0.15984468162059784, -0.1648353487253189, -0.29327714443206787, 0.49581724405288696, 0.07448258996009827, -0.19919772446155548, 0.29509469866752625, 0.19632384181022644, -0.40074658393859863, 0.6141044497489929, 0.4788839519023895, 1.1286569833755493, -0.47551989555358887, 0.2495848834514618, 0.45409560203552246, -0.1901864856481552, 0.3667272925376892, -0.8405726552009583, -0.0393734835088253, -0.19523505866527557, -0.10597360134124756, 0.042085178196430206, 0.03263270482420921, 0.056160785257816315, 0.1780470311641693, -0.05758560076355934, 0.20161382853984833, 0.43615812063217163, 0.2353498488664627, -0.15963008999824524, 0.44414466619491577, 0.18755339086055756, -0.2998519241809845, -0.3091868460178375, 0.2887791395187378, -0.037532955408096313, -0.11245870590209961, -0.24495166540145874, -0.06403429806232452, -0.07227040082216263, -0.022556845098733902, -0.21535322070121765, -0.009305760264396667, -0.2949039936065674, 0.23224042356014252, -0.3250710666179657, -0.483032763004303, -0.04953131824731827, 0.3265734910964966, 0.03812958672642708, 0.08281803131103516, -0.1904042661190033, 0.21407820284366608, -0.0056038349866867065, -0.06942228972911835, -0.008669169619679451, -0.11706562340259552, 0.3104696273803711, -0.16482549905776978, -0.008145615458488464, 0.17052069306373596, -0.15633174777030945, -0.4041907787322998, -0.23760777711868286, 0.05525719374418259, 0.6080357432365417, -0.12553861737251282, -0.08419756591320038, 0.17814406752586365, -0.4155006408691406, 0.05742277577519417, 0.19847574830055237, -0.31009864807128906, 0.013717332854866982, 0.04572316259145737, -0.04096827283501625, -0.11564278602600098, -0.09002639353275299, 0.20771929621696472, 0.13047152757644653, -0.12832699716091156, 0.38419559597969055, 0.320334255695343, -0.27467578649520874, -0.2597469389438629, 0.023820661008358, 0.235208198428154, -0.25599080324172974, -0.07543620467185974, -0.07971221953630447, -0.2187098264694214, 0.07062164694070816, 0.1980559229850769, 0.05120675265789032, -0.021689198911190033, -0.03559153899550438, 0.05547209829092026, -0.21099236607551575, 0.27047181129455566, 0.046497177332639694, 0.34513384103775024, 0.09364413470029831, 0.11362291872501373, -0.01597239077091217, -0.03641645610332489, -0.4186704456806183, -0.05061670392751694, -0.1812335103750229, 0.21053610742092133, 0.33828791975975037, -0.11714000254869461, 0.030099371448159218, 0.15964893996715546, 0.12146760523319244, 0.031139561906456947, -0.30474621057510376, -0.2891480028629303, 0.10745242238044739, 0.07859206944704056, 0.037966225296258926, 0.0020938871894031763, 0.0660104975104332, -0.15766263008117676, 0.012039337307214737, -0.353336364030838, 0.3319019079208374, 0.0019468478858470917, -0.11927083134651184, -0.09146705269813538, 0.45241284370422363, 0.2061004638671875, -0.20245423913002014, 0.07807488739490509, 0.012458279728889465, 0.25220584869384766, -0.03638314828276634, 0.14030614495277405, 0.24420930445194244, -0.22318503260612488, -0.11866305768489838, 0.1301950216293335, 0.30531513690948486, 0.05836404860019684, 0.2062624990940094, -0.036613836884498596, -0.2990778982639313, 0.20505718886852264, 0.2182990163564682, -0.02326461672782898, -0.11775340884923935, -0.2937951683998108, 0.14854669570922852, 0.29070866107940674, -0.021464908495545387, 0.10467494279146194, 0.27402472496032715, -0.010276884771883488, 0.14012260735034943, 0.09702589362859726, 0.11596737802028656, 0.10245496034622192, -0.07103106379508972, 0.2598644495010376, 0.1426721215248108, -0.27665233612060547, 0.03877335786819458, -0.04581191763281822, 0.028648000210523605, -0.19908548891544342, -0.23603364825248718, -0.04876931384205818, 0.3186037838459015, 0.2797176241874695, -0.06053721159696579, 0.6823367476463318, 0.28887492418289185, -0.001946091651916504, 0.08384343236684799, -0.37241649627685547, 0.1637207418680191, 0.24583886563777924, 0.2510964870452881, 0.3650584816932678, 0.03721565008163452, 0.04759381711483002, 0.6911853551864624, -0.26283419132232666, -0.15105804800987244, 0.4295702874660492, -0.06900620460510254, -0.11310280859470367, -0.0988348126411438, -0.197749063372612, -0.15107467770576477, 0.12271672487258911, -0.022101860493421555, -0.22911496460437775, 0.0705491155385971, 0.1739482879638672, -0.04807291924953461, -0.0548916831612587, 0.4006223976612091, -0.004528895020484924, 0.2589356005191803, -0.11385960876941681, 0.20700882375240326, 0.1302732229232788, -0.04363417625427246, -0.09675911068916321, -0.01642870344221592, 0.10646732151508331, 0.11126246303319931, -0.2856667637825012, 0.07827937602996826, 0.053538575768470764, 0.03497953712940216, -0.21421347558498383, 0.16051477193832397, -0.07147131860256195, 0.11506935954093933, 0.46149611473083496, 0.20665843784809113, -0.3158261179924011, -0.31717169284820557, 0.20099280774593353, -0.12469100952148438, -0.41712379455566406, -0.17496579885482788, 0.13789710402488708, -0.12275797128677368, -0.133294939994812, 0.04323754832148552, -0.5075317025184631, -0.08092334121465683, 0.1667737066745758, -0.12163064628839493, 0.1887514889240265, -0.09329996258020401, 0.11946827173233032, -0.10580743849277496, 0.6818645000457764, 0.15930311381816864, 0.14150860905647278, -0.2293969988822937, -0.18827903270721436, -0.4742928147315979, 0.14392386376857758, -0.1642547845840454, 0.02355591021478176, -0.098137266933918, 0.4350053369998932, 0.12903669476509094, 0.23785096406936646, -0.19225148856639862, -0.03453126177191734, -0.12657488882541656, 0.23433934152126312, -0.4563056528568268, -0.1012810617685318, -0.10166123509407043, -0.12362095713615417, 0.10019998252391815, -0.2795400619506836, 0.06449342519044876, -0.09290515631437302, 0.17288580536842346, -0.03871346637606621, -0.22615142166614532, 0.2997647821903229, -0.34276100993156433, 0.3593783378601074, -0.024144141003489494, 0.20133215188980103, -0.19731682538986206, 0.010433098301291466, -0.34137919545173645, -0.09117957949638367, -0.0807599425315857, 0.08928484469652176, -0.11609472334384918, 0.3723321557044983, -0.14916178584098816, -0.0879255086183548, -0.08236537128686905, 0.10089118778705597, 0.010155178606510162, 0.3135239779949188, -0.12139182537794113, -0.08109863102436066, 0.10199267417192459, 0.3881443440914154, -0.10911554843187332, 0.322214812040329, 0.005558967590332031, 0.17939694225788116, -0.3866308927536011, -0.4789595305919647, 0.2693084180355072, -0.5958872437477112, -0.2193138748407364, 0.2095007598400116, 0.053541556000709534, 0.05367903411388397, 0.15906883776187897, -0.5768584609031677, -0.05699868127703667, 0.27335625886917114, -0.034058332443237305, -0.11441001296043396, 0.07409626990556717, 0.12882843613624573, -0.017038289457559586, -0.1295020878314972, -0.24454796314239502, -0.04678795486688614, -0.10978411138057709, -0.08934077620506287, -0.3870065212249756 ]
https://github.com/huggingface/datasets/pull/55
Beam datasets
Pr is ready for review ! New minor changes: - re-added the csv dataset builder (it was on my branch from #25 but disappeared from master) - move the csv script and the wikipedia script to "under construction" for now - some renaming in the `nlp-cli test` command
# Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :)
48
text: Beam datasets # Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the pipeline locally (default). However I encountered memory issues for big datasets (like the french or english wikipedia). Small dataset work fine - Google Dataflow. I didn't play with it. - Spark or Flink, two well known data processing frameworks. I tried to use the Spark/Flink local runners provided by apache beam for python and wasn't able to make them work properly though... ## From tfds beam datasets to our own beam datasets Tensorflow datasets used beam and a complicated pipeline to shard the TFRecords files. To allow users to download beam datasets and not having to preprocess them, they also allow to download the already preprocessed datasets from their google storage (the beam pipeline doesn't run in that case). On our side, we replace TFRecords by something else. Arrow or Parquet do the job but I chose Parquet as: 1) there is a builtin apache beam parquet writer that is quite convenient, and 2) reading parquet from the pyarrow library is also simple and effective (there is a mmap option !) Moreover we don't shard datasets in many many files like tfds (they were doing probably doing that mainly because of the limit of 2Gb per TFRecord file). Therefore we have a simpler pipeline that saves each split into one parquet file. We also removed the utilities to use their google storage (for now maybe ? we'll have to discuss it). ## Main changes - Added a BeamWriter to save the output of beam pipelines into parquet files and fill dataset infos - Create a ParquetReader and refactor a bit the arrow_reader.py \> **With this, we can now try to add beam datasets from tfds** I already added the wikipedia one, and I will also try to add the Wiki40b dataset ## Test the wikipedia script You can download and run the beam pipeline for wikipedia (using the `DirectRunner` by default) like this: ``` >>> import nlp >>> nlp.load("datasets/nlp/wikipedia", dataset_config="20200501.frr") ``` This wikipedia dataset (lang: frr, North Frisian) is a small one (~10Mb), but feel free to try bigger ones (and fill 20Gb of swap memory if you try the english one lol) ## Next Should we allow to download preprocessed datasets from the tfds google storage ? Should we try to optimize the beam pipelines to run locally without memory issues ? Should we try other data processing frameworks for big datasets, like spark ? ## About this PR It should be merged after #25 ----------------- I'd be happy to have your feedback and your ideas to improve the processing of big datasets like wikipedia :) Pr is ready for review ! New minor changes: - re-added the csv dataset builder (it was on my branch from #25 but disappeared from master) - move the csv script and the wikipedia script to "under construction" for now - some renaming in the `nlp-cli test` command
[ -0.22448933124542236, -0.021031245589256287, -0.1302931010723114, 0.348450243473053, 0.1360045075416565, -0.016957495361566544, 0.008793629705905914, 0.19213397800922394, -0.034205131232738495, 0.29911869764328003, -0.018663886934518814, 0.0905848890542984, -0.20437569916248322, 0.02858424372971058, -0.008144508115947247, -0.42792728543281555, -0.018962807953357697, -0.09025883674621582, -0.02715475857257843, -0.11681583523750305, -0.07615870237350464, 0.010491820052266121, -0.08379586040973663, -0.27175283432006836, 0.058624353259801865, -0.08277102559804916, -0.08609549701213837, 0.01799788326025009, 0.030302565544843674, -0.11363077908754349, -0.1709863245487213, -0.03516370430588722, -0.05951753258705139, 0.4160366356372833, -0.0001021534189931117, 0.08723777532577515, 0.21254315972328186, -0.01296940352767706, -0.15256571769714355, 0.27177631855010986, 0.03684227913618088, -0.33156928420066833, 0.021893994882702827, -0.3984896242618561, -0.20970368385314941, -0.277022123336792, 0.15400928258895874, -0.4039241671562195, 0.44398778676986694, 0.2417425513267517, 0.3052520453929901, 0.36982446908950806, -0.00027424097061157227, 0.1739702969789505, 0.7477936744689941, -0.2497057169675827, -0.1373233050107956, -0.1879439651966095, 0.23328682780265808, 0.08578844368457794, -0.3028024733066559, 0.3282378017902374, -0.16663722693920135, 0.07103515416383743, 0.24355414509773254, -0.09644018113613129, -0.11235124617815018, -0.33291852474212646, 0.2036553919315338, 0.19778737425804138, 0.5023131966590881, -0.3085606098175049, -0.04620371758937836, -0.4063318073749542, -0.10313794016838074, 0.05102124810218811, 0.12905751168727875, 0.20807106792926788, -0.16731838881969452, 0.036811795085668564, -0.038297805935144424, -0.05292271077632904, -0.19928427040576935, 0.20236589014530182, -0.0414125956594944, 0.3526974022388458, 0.05571730062365532, 0.15284034609794617, -0.07379023730754852, -0.12303715944290161, 0.16524682939052582, -0.34750258922576904, 0.16139908134937286, 0.047314971685409546, -0.3549324870109558, -0.0026409775018692017, 0.07329636812210083, -0.10237165540456772, 0.14847156405448914, -0.042722150683403015, 0.14003309607505798, 0.23994126915931702, 0.3721764087677002, 0.008512947708368301, -0.026302874088287354, 0.21454264223575592, -0.2469049096107483, -0.1415775865316391, 0.05093298852443695, -0.22186073660850525, -0.17908599972724915, 0.06580542773008347, 0.033187754452228546, -0.40268176794052124, -0.2655366361141205, -0.09992867708206177, -0.04039149731397629, 0.12323698401451111, 0.019650118425488472, 0.20678842067718506, -0.14536836743354797, -0.09028032422065735, -0.05673263594508171, 0.3719474673271179, -0.07651008665561676, 0.4109283983707428, 0.11834537982940674, -0.062058888375759125, -0.3532714545726776, -0.25457924604415894, -0.25282785296440125, 0.15157093107700348, -0.22840292751789093, 0.09757640957832336, 0.10193395614624023, 0.1507037729024887, 0.12648145854473114, -0.16742582619190216, 0.13657626509666443, 0.15570120513439178, 0.39027100801467896, -0.23716960847377777, 0.1325969398021698, 0.11957749724388123, 0.10247588157653809, 0.23373238742351532, -0.008409947156906128, 0.08313329517841339, -0.10237087309360504, 0.12229306995868683, -0.3539034426212311, -0.3046005070209503, 0.13724732398986816, 0.2596452236175537, -0.02222461812198162, -0.06659308075904846, -0.4345289170742035, 0.24045820534229279, 0.19337934255599976, 0.03252316638827324, -0.04237618297338486, -0.014729075133800507, -0.3275119960308075, -0.39434540271759033, 0.09892468899488449, 0.37347573041915894, -0.28529512882232666, 0.032446205615997314, -0.04181191697716713, -0.0511772595345974, 0.16299818456172943, 0.06730590760707855, -0.17687258124351501, 0.27957046031951904, -0.07468931376934052, 0.16593728959560394, 0.5061361789703369, -0.36819472908973694, -0.09935194998979568, 0.2736843526363373, -0.036526937037706375, 0.13907191157341003, 0.13448785245418549, -0.04143671318888664, 0.3838517963886261, 0.025838395580649376, -0.05951552093029022, 0.28289496898651123, -0.009516717866063118, 0.2880566716194153, -0.34540799260139465, -0.25116053223609924, -0.14876289665699005, 0.18516141176223755, 0.3841586410999298, -0.42134177684783936, 0.1518770009279251, 0.2067016363143921, 0.20371446013450623, -0.21700447797775269, 0.2998301386833191, 0.4911118149757385, -0.13872544467449188, 0.14966264367103577, 0.01984291709959507, -0.13479898869991302, -0.29965293407440186, 0.3406401574611664, -0.19275224208831787, -0.06384225189685822, 0.1971818506717682, 0.034573495388031006, -0.06146974861621857, 0.14597204327583313, -0.12372682988643646, -0.18603546917438507, 0.30005040764808655, 0.21967357397079468, -0.055637843906879425, -0.06357452273368835, -0.07624571025371552, 0.10307341814041138, -0.35807016491889954, -0.11899014562368393, -0.42118680477142334, 0.4755326211452484, -0.06074664741754532, -0.19510479271411896, -0.014534149318933487, 0.11982814967632294, -0.05193580687046051, -0.04491573944687843, 0.08330824971199036, 0.35731562972068787, -0.10020460188388824, 0.21975675225257874, -0.0025294050574302673, 0.4736700654029846, 0.1360623836517334, -0.23531320691108704, 0.06391993165016174, -0.15042828023433685, 0.06691363453865051, -0.1278626173734665, 0.029806530103087425, -0.026989564299583435, 0.01595946215093136, 0.24318668246269226, 0.11088119447231293, -0.19682598114013672, -0.11189825087785721, 0.06595936417579651, 0.07649264484643936, 0.007489033043384552, 0.21734754741191864, 0.1413397341966629, 0.13127881288528442, 0.07796672731637955, -0.2463904321193695, 0.2023734748363495, 0.6556751132011414, 0.030684571713209152, -0.06015194207429886, 0.09063561260700226, -0.2667553424835205, -0.20024839043617249, 0.33756521344184875, 0.07677830755710602, 0.24405932426452637, 0.35340115427970886, 0.0904412716627121, -0.09250753372907639, 0.20211566984653473, -0.21139320731163025, 0.20178237557411194, 0.2888646125793457, 0.2564646005630493, 0.25863534212112427, 0.28553536534309387, 0.09513292461633682, -0.11207427084445953, -0.07299622893333435, 0.12952065467834473, 0.11793192476034164, -0.19526022672653198, 0.012752706184983253, -0.23094817996025085, -0.20005130767822266, -0.30896615982055664, 0.4815228283405304, -0.15297472476959229, -0.41491618752479553, 0.17325903475284576, 0.18441139161586761, -0.33120614290237427, 0.1503233015537262, 0.2810945212841034, 0.10435765981674194, 0.07287885248661041, -0.373749315738678, -0.20452646911144257, -0.312453031539917, -0.3111193776130676, 0.21756255626678467, 0.3938213884830475, 0.15688984096050262, 0.41963112354278564, 0.19591191411018372, 0.06305298954248428, -0.44206827878952026, -0.22761273384094238, 0.2998068034648895, -0.07142110168933868, -0.009502580389380455, -0.08630391955375671, 0.27347472310066223, -0.11427471041679382, -0.3472328186035156, 0.04828552156686783, -0.14691950380802155, -0.08041875064373016, 0.024421662092208862, 0.11422701925039291, 0.04192399978637695, 0.04950111731886864, -0.34297311305999756, -0.2072659134864807, -0.5184646844863892, -0.08597131073474884, 0.23921425640583038, 0.02951318398118019, -0.08253171294927597, 0.20095574855804443, 0.14473168551921844, 0.27080419659614563, 0.2591155171394348, -0.01381569541990757, -0.060698579996824265, 0.20580081641674042, -0.2845202684402466, -0.3616211414337158, -0.0016867704689502716, -0.12495620548725128, 0.12325601279735565, 0.33627015352249146, -0.4650997519493103, -0.1591990888118744, -0.2805229425430298, -0.07434797286987305, -0.06791726499795914, 0.14169056713581085, 0.43367698788642883, 0.09350065886974335, -0.1429774910211563, -0.2381991147994995, 0.25070303678512573, -0.04941339045763016, -0.21729612350463867, 0.15738627314567566, 0.09265076369047165, 0.17677032947540283, 0.25066080689430237, 1.0675241947174072, -0.12094181776046753, -0.03856181725859642, 0.2937454581260681, 0.00024173036217689514, 0.13423261046409607, -0.3541499972343445, -0.060448043048381805, 0.16869132220745087, -0.0028437525033950806, -0.08517070859670639, 0.49719762802124023, -0.054861873388290405, -0.17364601790905, -0.09598754346370697, 0.11173221468925476, -0.16931694746017456, -0.3598645329475403, 0.2972680628299713, -0.055181004106998444, 0.1639643907546997, -0.013816948048770428, 0.04072172939777374, -0.25551360845565796, -0.3279504179954529, 0.1037188172340393, -0.090001180768013, -0.128989577293396, -0.019231723621487617, 0.14567211270332336, 0.3602893650531769, -0.6285311579704285, 0.2809232771396637, 0.057688649743795395, -0.15374355018138885, -0.20445914566516876, -0.27510058879852295, 0.10228472948074341, -0.24972032010555267, 0.47407281398773193, -0.35904935002326965, -0.12969844043254852, 0.14341950416564941, 0.06382612884044647, -0.4674361050128937, 0.04877529665827751, -0.2290087193250656, -0.35760918259620667, 0.03295009210705757, 0.189915269613266, -0.48412024974823, -0.22999244928359985, 0.0670403242111206, 0.14459162950515747, -0.09245799481868744, 0.10380331426858902, -0.10808644443750381, -0.0730220377445221, -0.3999084532260895, -0.15498381853103638, 0.04227446764707565, 0.2018795907497406, -0.0009685468394309282, 0.05119451507925987, -0.14661213755607605, -0.08696405589580536, 0.18664124608039856, -0.02098141610622406, 0.19594603776931763, 0.0632004365324974, -0.041528888046741486, -0.12394103407859802, 0.3304985463619232, 0.07882991433143616, 0.1814480423927307, -0.03542314097285271, -0.0019766539335250854, 0.24926844239234924, 0.040494129061698914, 0.08349581807851791, 0.32424724102020264, -0.13159918785095215, 0.017075099050998688, -0.3792029917240143, 0.18341083824634552, -0.20834024250507355, 0.4625280499458313, 0.12845556437969208, -0.15984468162059784, -0.1648353487253189, -0.29327714443206787, 0.49581724405288696, 0.07448258996009827, -0.19919772446155548, 0.29509469866752625, 0.19632384181022644, -0.40074658393859863, 0.6141044497489929, 0.4788839519023895, 1.1286569833755493, -0.47551989555358887, 0.2495848834514618, 0.45409560203552246, -0.1901864856481552, 0.3667272925376892, -0.8405726552009583, -0.0393734835088253, -0.19523505866527557, -0.10597360134124756, 0.042085178196430206, 0.03263270482420921, 0.056160785257816315, 0.1780470311641693, -0.05758560076355934, 0.20161382853984833, 0.43615812063217163, 0.2353498488664627, -0.15963008999824524, 0.44414466619491577, 0.18755339086055756, -0.2998519241809845, -0.3091868460178375, 0.2887791395187378, -0.037532955408096313, -0.11245870590209961, -0.24495166540145874, -0.06403429806232452, -0.07227040082216263, -0.022556845098733902, -0.21535322070121765, -0.009305760264396667, -0.2949039936065674, 0.23224042356014252, -0.3250710666179657, -0.483032763004303, -0.04953131824731827, 0.3265734910964966, 0.03812958672642708, 0.08281803131103516, -0.1904042661190033, 0.21407820284366608, -0.0056038349866867065, -0.06942228972911835, -0.008669169619679451, -0.11706562340259552, 0.3104696273803711, -0.16482549905776978, -0.008145615458488464, 0.17052069306373596, -0.15633174777030945, -0.4041907787322998, -0.23760777711868286, 0.05525719374418259, 0.6080357432365417, -0.12553861737251282, -0.08419756591320038, 0.17814406752586365, -0.4155006408691406, 0.05742277577519417, 0.19847574830055237, -0.31009864807128906, 0.013717332854866982, 0.04572316259145737, -0.04096827283501625, -0.11564278602600098, -0.09002639353275299, 0.20771929621696472, 0.13047152757644653, -0.12832699716091156, 0.38419559597969055, 0.320334255695343, -0.27467578649520874, -0.2597469389438629, 0.023820661008358, 0.235208198428154, -0.25599080324172974, -0.07543620467185974, -0.07971221953630447, -0.2187098264694214, 0.07062164694070816, 0.1980559229850769, 0.05120675265789032, -0.021689198911190033, -0.03559153899550438, 0.05547209829092026, -0.21099236607551575, 0.27047181129455566, 0.046497177332639694, 0.34513384103775024, 0.09364413470029831, 0.11362291872501373, -0.01597239077091217, -0.03641645610332489, -0.4186704456806183, -0.05061670392751694, -0.1812335103750229, 0.21053610742092133, 0.33828791975975037, -0.11714000254869461, 0.030099371448159218, 0.15964893996715546, 0.12146760523319244, 0.031139561906456947, -0.30474621057510376, -0.2891480028629303, 0.10745242238044739, 0.07859206944704056, 0.037966225296258926, 0.0020938871894031763, 0.0660104975104332, -0.15766263008117676, 0.012039337307214737, -0.353336364030838, 0.3319019079208374, 0.0019468478858470917, -0.11927083134651184, -0.09146705269813538, 0.45241284370422363, 0.2061004638671875, -0.20245423913002014, 0.07807488739490509, 0.012458279728889465, 0.25220584869384766, -0.03638314828276634, 0.14030614495277405, 0.24420930445194244, -0.22318503260612488, -0.11866305768489838, 0.1301950216293335, 0.30531513690948486, 0.05836404860019684, 0.2062624990940094, -0.036613836884498596, -0.2990778982639313, 0.20505718886852264, 0.2182990163564682, -0.02326461672782898, -0.11775340884923935, -0.2937951683998108, 0.14854669570922852, 0.29070866107940674, -0.021464908495545387, 0.10467494279146194, 0.27402472496032715, -0.010276884771883488, 0.14012260735034943, 0.09702589362859726, 0.11596737802028656, 0.10245496034622192, -0.07103106379508972, 0.2598644495010376, 0.1426721215248108, -0.27665233612060547, 0.03877335786819458, -0.04581191763281822, 0.028648000210523605, -0.19908548891544342, -0.23603364825248718, -0.04876931384205818, 0.3186037838459015, 0.2797176241874695, -0.06053721159696579, 0.6823367476463318, 0.28887492418289185, -0.001946091651916504, 0.08384343236684799, -0.37241649627685547, 0.1637207418680191, 0.24583886563777924, 0.2510964870452881, 0.3650584816932678, 0.03721565008163452, 0.04759381711483002, 0.6911853551864624, -0.26283419132232666, -0.15105804800987244, 0.4295702874660492, -0.06900620460510254, -0.11310280859470367, -0.0988348126411438, -0.197749063372612, -0.15107467770576477, 0.12271672487258911, -0.022101860493421555, -0.22911496460437775, 0.0705491155385971, 0.1739482879638672, -0.04807291924953461, -0.0548916831612587, 0.4006223976612091, -0.004528895020484924, 0.2589356005191803, -0.11385960876941681, 0.20700882375240326, 0.1302732229232788, -0.04363417625427246, -0.09675911068916321, -0.01642870344221592, 0.10646732151508331, 0.11126246303319931, -0.2856667637825012, 0.07827937602996826, 0.053538575768470764, 0.03497953712940216, -0.21421347558498383, 0.16051477193832397, -0.07147131860256195, 0.11506935954093933, 0.46149611473083496, 0.20665843784809113, -0.3158261179924011, -0.31717169284820557, 0.20099280774593353, -0.12469100952148438, -0.41712379455566406, -0.17496579885482788, 0.13789710402488708, -0.12275797128677368, -0.133294939994812, 0.04323754832148552, -0.5075317025184631, -0.08092334121465683, 0.1667737066745758, -0.12163064628839493, 0.1887514889240265, -0.09329996258020401, 0.11946827173233032, -0.10580743849277496, 0.6818645000457764, 0.15930311381816864, 0.14150860905647278, -0.2293969988822937, -0.18827903270721436, -0.4742928147315979, 0.14392386376857758, -0.1642547845840454, 0.02355591021478176, -0.098137266933918, 0.4350053369998932, 0.12903669476509094, 0.23785096406936646, -0.19225148856639862, -0.03453126177191734, -0.12657488882541656, 0.23433934152126312, -0.4563056528568268, -0.1012810617685318, -0.10166123509407043, -0.12362095713615417, 0.10019998252391815, -0.2795400619506836, 0.06449342519044876, -0.09290515631437302, 0.17288580536842346, -0.03871346637606621, -0.22615142166614532, 0.2997647821903229, -0.34276100993156433, 0.3593783378601074, -0.024144141003489494, 0.20133215188980103, -0.19731682538986206, 0.010433098301291466, -0.34137919545173645, -0.09117957949638367, -0.0807599425315857, 0.08928484469652176, -0.11609472334384918, 0.3723321557044983, -0.14916178584098816, -0.0879255086183548, -0.08236537128686905, 0.10089118778705597, 0.010155178606510162, 0.3135239779949188, -0.12139182537794113, -0.08109863102436066, 0.10199267417192459, 0.3881443440914154, -0.10911554843187332, 0.322214812040329, 0.005558967590332031, 0.17939694225788116, -0.3866308927536011, -0.4789595305919647, 0.2693084180355072, -0.5958872437477112, -0.2193138748407364, 0.2095007598400116, 0.053541556000709534, 0.05367903411388397, 0.15906883776187897, -0.5768584609031677, -0.05699868127703667, 0.27335625886917114, -0.034058332443237305, -0.11441001296043396, 0.07409626990556717, 0.12882843613624573, -0.017038289457559586, -0.1295020878314972, -0.24454796314239502, -0.04678795486688614, -0.10978411138057709, -0.08934077620506287, -0.3870065212249756 ]
https://github.com/huggingface/datasets/pull/43
[Checksums] If no configs exist prevent to run over empty list
Whoops I fixed it directly on master before checking that you have done it in this PR. We may close it
`movie_rationales` e.g. has no configs.
21
text: [Checksums] If no configs exist prevent to run over empty list `movie_rationales` e.g. has no configs. Whoops I fixed it directly on master before checking that you have done it in this PR. We may close it
[ -0.3078686594963074, -0.01863400638103485, -0.1713564097881317, -0.14383678138256073, 0.32359546422958374, -0.07444373518228531, 0.2721029818058014, 0.2999245822429657, 0.09478740394115448, 0.21764257550239563, 0.20321546494960785, 0.011566069908440113, -0.17731590569019318, 0.297443687915802, -0.32609590888023376, 0.34540697932243347, -0.07301206141710281, 0.20008784532546997, 0.030485592782497406, -0.0168500617146492, -0.3401966989040375, 0.1004105806350708, -0.13492387533187866, -0.18086524307727814, -0.20605479180812836, -0.020179545506834984, 0.3613593578338623, 0.39890748262405396, -0.04020722955465317, -0.30370864272117615, -0.13214470446109772, -0.08691538870334625, -0.08742975443601608, 0.21163739264011383, -0.00010001663758885115, -0.07786823064088821, 0.4973979592323303, -0.18080201745033264, 0.06978239119052887, 0.355072557926178, -0.21486908197402954, 0.2958393692970276, -0.03554735332727432, -0.1678101122379303, -0.07543514668941498, 0.25858181715011597, 0.08507431298494339, -0.034682124853134155, -0.19674493372440338, 0.1206880584359169, 0.3044276535511017, 0.15564405918121338, -0.08388930559158325, -0.14783906936645508, 0.14181429147720337, -0.013188458979129791, -0.13432396948337555, 0.13093650341033936, 0.1807236224412918, -0.10022737830877304, 0.015014410018920898, 0.20083872973918915, -0.19703154265880585, -0.25187474489212036, 0.137798011302948, -0.35002076625823975, 0.3400960862636566, -0.3982270658016205, 0.043184030801057816, 0.1020430326461792, 0.10577820986509323, -0.3133900463581085, 0.028193499892950058, 0.17008066177368164, 0.10378403216600418, -0.2258739471435547, 0.29120227694511414, 0.19633065164089203, -0.07226704061031342, -0.001318182796239853, -0.06478632986545563, -0.15449261665344238, 0.04357688128948212, -0.1475176364183426, 0.23914626240730286, 0.2709842324256897, 0.21666131913661957, -0.17095965147018433, 0.16404570639133453, -0.03337687999010086, -0.0972842127084732, -0.06146510690450668, -0.30648866295814514, -0.15949127078056335, -0.13363006711006165, -0.3439783751964569, 0.13115006685256958, 0.29443225264549255, -0.16409850120544434, 0.3887704014778137, -0.18640470504760742, 0.26595643162727356, 0.35049718618392944, 0.24871578812599182, 0.06279512494802475, 0.15118391811847687, 0.27508848905563354, 0.3571658432483673, 0.2675918936729431, 0.43508583307266235, -0.026652801781892776, 0.07221706211566925, 0.020506858825683594, -0.22404511272907257, -0.20434287190437317, 0.28945717215538025, 0.1803445667028427, -0.1830940693616867, -0.28149014711380005, 0.2628333866596222, -0.04033747687935829, 0.03159373626112938, 0.31217440962791443, 0.3971605598926544, -0.113852858543396, -0.13773185014724731, 0.09693217277526855, 0.02436674013733864, -0.16535526514053345, 0.16150686144828796, -0.2464587539434433, 0.19725514948368073, -0.27663782238960266, -0.018997589126229286, 0.1587958186864853, -0.14399445056915283, 0.3855857253074646, 0.11525940150022507, 0.19316110014915466, -0.02864024229347706, 0.16423161327838898, 0.0013034548610448837, 0.1698841154575348, 0.39496612548828125, 0.23428228497505188, -0.22130033373832703, 0.3146909177303314, -0.12873491644859314, 0.03991428762674332, 0.22340771555900574, 0.011711403727531433, -0.24197623133659363, -0.009810565039515495, 0.39055362343788147, -0.1117890253663063, 0.06479945778846741, 0.177364781498909, -0.1665780246257782, 0.12832027673721313, -0.12771078944206238, 0.22624781727790833, 0.1572331190109253, 0.08678944408893585, -0.13284750282764435, -0.0443507581949234, 0.4041569232940674, -0.298778772354126, 0.07152597606182098, 0.15993094444274902, -0.37905439734458923, -0.05525647848844528, 0.01862454041838646, -0.27311235666275024, -0.16135334968566895, -0.3912500739097595, -0.03296169266104698, 0.11378079652786255, -0.2599995732307434, 0.16162900626659393, 0.21488544344902039, -0.2665784955024719, -0.08013888448476791, 0.2009279429912567, 0.0696600005030632, -0.02174922078847885, -0.3219479024410248, 0.1449911892414093, -0.13294193148612976, 0.084124855697155, -0.06685315817594528, -0.3330978453159332, 0.04297927767038345, -0.024259053170681, -0.22011198103427887, 0.2367471605539322, 0.15066450834274292, -0.06962946802377701, -0.058308251202106476, 0.2831133008003235, -0.015596587210893631, -0.05589195340871811, 0.3004976511001587, 0.3766608238220215, 0.3549306392669678, -0.2056482434272766, 0.01610393077135086, 0.15331563353538513, 0.06419813632965088, -0.1313132643699646, 0.08181416988372803, 0.3620678782463074, -0.2220189869403839, 0.12928369641304016, -0.17780627310276031, -0.05432881787419319, -0.01859218254685402, 0.3563457429409027, 0.3428250551223755, -0.17967210710048676, -0.13007338345050812, -0.3969652056694031, -0.04180647432804108, -0.4261450469493866, -0.15981298685073853, -0.08028419315814972, -0.03356291353702545, -0.4014829397201538, -0.167999729514122, -0.09294834733009338, -0.11053148657083511, 0.3113039433956146, 0.03131614252924919, 0.12421217560768127, 0.34382322430610657, 0.198832169175148, -0.2194429486989975, -0.010378275066614151, 0.31188130378723145, -0.051104068756103516, -0.2384311705827713, -0.08247552812099457, 0.3043079376220703, 0.10875730216503143, -0.0523894727230072, 0.06305450201034546, 0.4047048091888428, -0.14686763286590576, 0.04863320663571358, 0.11838853359222412, -0.07445987313985825, 0.03926217555999756, -0.2405172884464264, -0.25273239612579346, -0.44959723949432373, 0.025046374648809433, 0.4693433940410614, -0.14212006330490112, 0.13781727850437164, -0.3380509614944458, -0.09301214665174484, 0.2581956386566162, -0.019128888845443726, 0.026097528636455536, 0.0950336754322052, 0.27275165915489197, 0.15217968821525574, 0.07396793365478516, 0.11246468126773834, 0.19998377561569214, 0.22380541265010834, -0.14121559262275696, 0.10590401291847229, -0.28363895416259766, -0.3103753924369812, 0.4196966588497162, 0.04378591477870941, 0.07579895853996277, 0.18999308347702026, -0.2393285632133484, -0.2238985300064087, -0.23818564414978027, -0.14068670570850372, 0.12537308037281036, -0.2249349057674408, -0.3914189636707306, -0.2628854215145111, -0.16917498409748077, 0.03858646750450134, 0.06947779655456543, -0.1102147102355957, -0.07291288673877716, -0.22374968230724335, 0.33091044425964355, 0.14668519794940948, -0.31614282727241516, 0.3387802541255951, -0.36808720231056213, -0.039276495575904846, 0.0018893647938966751, -0.3219095766544342, 0.10408633947372437, -0.1255311816930771, 0.01935373805463314, 0.24742922186851501, 0.3766012191772461, -0.2959347367286682, 0.09343913942575455, -0.09012941271066666, -0.23738275468349457, -0.07879987359046936, -0.2712080478668213, 0.1800588220357895, -0.41474807262420654, 0.22656257450580597, 0.2174089252948761, 0.27929845452308655, -0.04661707580089569, -0.3008022606372833, 0.08352535963058472, 0.2720164954662323, -0.07620888948440552, 0.03171517327427864, 0.19609981775283813, -0.24357588589191437, -0.4444328546524048, -0.2589123845100403, 0.3535059690475464, -0.3893854320049286, -0.14527088403701782, 0.14127445220947266, 0.15070421993732452, 0.41150760650634766, 0.40790167450904846, -0.0411246120929718, -0.20888730883598328, 0.10174969583749771, -0.2365855723619461, -0.21541792154312134, 0.23444026708602905, -0.12441079318523407, -0.23409514129161835, 0.3740171790122986, -0.07031470537185669, 0.03247372433543205, -0.2529371976852417, -0.2786604166030884, -0.28286227583885193, 0.051491878926754, -0.0015961527824401855, -0.0779271125793457, -0.17907345294952393, 0.3616349995136261, 0.1546885371208191, -0.3805086016654968, -0.19658324122428894, -0.24020792543888092, 0.3280470073223114, -0.25340768694877625, 0.16287070512771606, -0.06649159640073776, 0.29324984550476074, -0.24014246463775635, 0.09338676184415817, -0.10831531882286072, 0.17590944468975067, 0.33183783292770386, -0.1255548745393753, 0.7358449697494507, -0.017611078917980194, -0.05071791261434555, 0.008712472394108772, 0.1793070137500763, -0.1919366717338562, 0.17784935235977173, -0.2810099720954895, -0.14329290390014648, -0.27937817573547363, -0.024195529520511627, -0.007299251854419708, -0.16460692882537842, 0.08503589034080505, -0.16157284379005432, -0.05917774885892868, -0.19909343123435974, 0.23046323657035828, 0.07113608717918396, 0.15567746758460999, 0.18324019014835358, 0.38779520988464355, 0.1398080289363861, -0.11392447352409363, -0.2791399359703064, -0.22248868644237518, 0.25569242238998413, 0.03300866484642029, -0.1259440928697586, 0.27070367336273193, -0.19515179097652435, -0.36886534094810486, -0.024266667664051056, -0.09430790692567825, 0.5088887810707092, -0.11365299671888351, 0.18299417197704315, 0.21794407069683075, 0.008384283632040024, 0.043406352400779724, -0.22227345407009125, -0.3073485493659973, -0.17023374140262604, 0.15980477631092072, 0.06226171925663948, -0.13814806938171387, 0.02145112305879593, 0.05184677243232727, -0.16195668280124664, -0.12335608899593353, 0.060979630798101425, -0.4712652564048767, -0.05306840315461159, -0.5205906629562378, 0.19544798135757446, 0.2525951862335205, -0.026473691686987877, -0.23118159174919128, 0.0059030987322330475, 0.13963377475738525, -0.1508294939994812, 0.04816200211644173, -0.10780662298202515, 0.283020943403244, -0.012972923927009106, 0.011509869247674942, -0.39338287711143494, -0.202419251203537, 0.2097748965024948, 0.15932545065879822, 0.11825630068778992, 0.20573309063911438, 0.22732025384902954, -0.0925954133272171, 0.21098291873931885, 0.24098718166351318, -0.08698894083499908, -0.16775745153427124, -0.031147155910730362, -0.012454241514205933, 0.05292321369051933, -0.13462650775909424, 0.14458346366882324, -0.3050715923309326, 0.10836654156446457, -0.07221969962120056, -0.0882224515080452, -0.09715692698955536, 0.04584474861621857, 0.1791161298751831, 0.15463605523109436, -0.21473461389541626, 0.1600012183189392, 0.3133482336997986, 0.8793849945068359, 0.21119539439678192, 0.10750851035118103, 0.18697646260261536, -0.07113935053348541, -0.2066720426082611, 0.07740362733602524, 0.21827492117881775, -0.3327418863773346, -0.2288532257080078, 0.057030171155929565, -0.10306047648191452, 0.1994989812374115, -0.0684937834739685, -0.4077796936035156, 0.2457738071680069, -0.38690704107284546, 0.11551912128925323, 0.11600197851657867, -0.032615743577480316, -0.13047194480895996, 0.07194355875253677, -0.02209905907511711, 0.3041539490222931, 0.3192763924598694, -0.11611935496330261, -0.22370833158493042, -0.20409652590751648, 0.020489361137151718, -0.10657895356416702, -0.2754199504852295, 0.16301172971725464, -0.24227261543273926, -0.09190122783184052, 0.06618101894855499, 0.335144579410553, -0.33630403876304626, -0.042480383068323135, -0.06999967992305756, 0.49831897020339966, -0.0895523801445961, 0.18467766046524048, 0.540074348449707, -0.10392279922962189, -0.2127360999584198, 0.0659346804022789, 0.438193142414093, -0.16804522275924683, -0.28033092617988586, 0.1152259111404419, -0.13844473659992218, -0.014085695147514343, -0.07203307747840881, 0.018681321293115616, 0.057533442974090576, -0.19235430657863617, -0.340096652507782, -0.18491530418395996, -0.3347174823284149, -0.13869303464889526, 0.2962341606616974, -0.27237415313720703, -0.12929889559745789, 0.011622384190559387, 0.29139190912246704, -0.055764712393283844, -0.16261079907417297, 0.3459337055683136, -0.09713610261678696, 0.035696908831596375, 0.20760980248451233, -0.006611987948417664, -0.19994789361953735, -0.41794899106025696, -0.1444622278213501, -0.16369040310382843, -0.002707242965698242, 0.12427195906639099, 0.30775347352027893, -0.5544690489768982, 0.2817457318305969, 0.16801570355892181, 0.11291997134685516, 0.4074535071849823, -0.15019425749778748, -0.15160474181175232, -0.25686079263687134, 0.12995097041130066, -0.03446050360798836, 0.37464639544487, -0.3081516921520233, 0.23622755706310272, 0.171010360121727, -0.24784958362579346, -0.521709680557251, -0.22004637122154236, -0.5299920439720154, 0.28745654225349426, -0.1027316153049469, -0.06759733706712723, -0.10161986202001572, 0.21355263888835907, 0.27265140414237976, 0.1299285888671875, -0.08672703802585602, -0.3644047975540161, 0.09334051609039307, 0.0851689800620079, -0.019708462059497833, 0.09853930026292801, -0.038978930562734604, 0.055152811110019684, -0.14622452855110168, 0.09342195838689804, -0.12120816111564636, 0.14525792002677917, -0.08142153918743134, 0.17387735843658447, 0.38426223397254944, -0.19699841737747192, -0.01801287569105625, -0.3079732656478882, -0.1589205116033554, 0.1332559734582901, -0.1322212815284729, -0.13164854049682617, -0.2518453001976013, -0.04341074824333191, 0.03508418798446655, 0.16389411687850952, -0.10225638747215271, 0.38659998774528503, 0.20612287521362305, 0.11743778735399246, -0.21137313544750214, 0.15168213844299316, 0.08551595360040665, 0.05521421134471893, -0.19709381461143494, -0.2301405370235443, -0.00029898807406425476, 0.3853456974029541, -0.33336254954338074, 0.05142046511173248, 0.03862336277961731, -0.1569533795118332, 0.1688593327999115, 0.2935903072357178, 0.14021606743335724, -0.2691946029663086, 0.42548638582229614, 0.28923752903938293, 0.05323511362075806, -0.201039120554924, 0.1814202219247818, 0.21677479147911072, -0.18124744296073914, -0.11444689333438873, 0.08169279992580414, -0.18367311358451843, 0.1595497727394104, 0.08732995390892029, -0.12481068819761276, 0.2024056613445282, 0.04634128138422966, 0.011561393737792969, -0.13032978773117065, -0.38790467381477356, 0.46697351336479187, 0.2662700414657593, 0.11641940474510193, 0.031485915184020996, 0.014848865568637848, -0.2163766324520111, 0.1245119646191597, 0.25353989005088806, -0.0015127100050449371, 0.23111796379089355, -0.302554726600647, -0.018202804028987885, -0.19520163536071777, -0.13847889006137848, -0.1300758272409439, -0.023250997066497803, 0.4343043565750122, 0.20841103792190552, 0.20489248633384705, 0.15968191623687744, -0.24469463527202606, 0.301181823015213, 0.10884217172861099, -0.024704746901988983, -0.02922019362449646, -0.15160860121250153, 0.24481207132339478, 0.35845500230789185, 0.1854558289051056, 0.31606346368789673, 0.20412680506706238, 0.3753032684326172, 0.37877053022384644, 0.0008385013788938522, 0.02908947318792343, 0.301573246717453, -0.05541197210550308, -0.003695390187203884, 0.26193809509277344, 0.12444895505905151, 0.2520110011100769, 0.008792547509074211, 0.30428871512413025, -0.29823586344718933, 0.03760579228401184, -0.043964337557554245, -0.13609392940998077, 0.3344419300556183, 0.18602335453033447, 0.36935117840766907, -0.015742197632789612, -0.45387986302375793, 0.09603608399629593, -0.4920763373374939, -0.30205515027046204, 0.37725818157196045, 0.024920478463172913, 0.06366891413927078, -0.12366101145744324, 0.16407719254493713, 0.014372434467077255, 0.3015231192111969, -0.11038270592689514, -0.3526684641838074, -0.29079368710517883, 0.025571808218955994, -0.2259061634540558, 0.32954728603363037, 0.2155599594116211, -0.1727646440267563, -0.04986024647951126, 0.23457439243793488, -0.0784175917506218, -0.08584943413734436, 0.1632726490497589, -0.09720882773399353, 0.07739024609327316, -0.010056771337985992, -0.15106090903282166, 0.15957951545715332, 0.19003461301326752, -0.050314709544181824, 0.17705175280570984, -0.17861142754554749, 0.00012706220149993896, -0.22348114848136902, 0.3990514576435089, 0.04871346801519394, -0.44940993189811707, 0.05058561637997627, 0.3226308226585388, 0.2976360619068146, -0.16136044263839722, 0.39215511083602905, -0.4389458894729614, -0.159586563706398, -0.10872712731361389, 0.029174339026212692, -0.19781440496444702, -0.031583234667778015, 0.32794857025146484, 0.10274778306484222, -0.2166053056716919, -0.011579450219869614, -0.32727208733558655, 0.3941616415977478, 0.030874669551849365, -0.043798524886369705, -0.2539847195148468, 0.33126768469810486, -0.02951793000102043, 0.1850208044052124, -0.05428370088338852, -0.05235801637172699, 0.01622268557548523, 0.25277334451675415, -0.3855440020561218, -0.5546829700469971, 0.6966809630393982, 0.08152313530445099, -0.11601416766643524, -0.021369770169258118, 0.32167693972587585, -0.15372750163078308, 0.02786439098417759, -0.4239952564239502, 0.14686164259910583, 0.046813394874334335, 0.1841660737991333, -0.15449218451976776, 0.11070355772972107, -0.46688777208328247, 0.12465324997901917, -0.1612238585948944, -0.12611398100852966, 0.0971088856458664, -0.05495918542146683, -0.0891796350479126, -0.0531734973192215 ]
https://github.com/huggingface/datasets/pull/43
[Checksums] If no configs exist prevent to run over empty list
Yeah, I saw :-) But I think we should add this as well since some datasets have an empty list of configs and then as the code is now it would fail. In this PR, I just make sure that the code jumps in the correct else if "there are no configs" as is the case for some datasets @mariamabarham
`movie_rationales` e.g. has no configs.
60
text: [Checksums] If no configs exist prevent to run over empty list `movie_rationales` e.g. has no configs. Yeah, I saw :-) But I think we should add this as well since some datasets have an empty list of configs and then as the code is now it would fail. In this PR, I just make sure that the code jumps in the correct else if "there are no configs" as is the case for some datasets @mariamabarham
[ -0.27229681611061096, -0.007621698081493378, -0.18910422921180725, -0.2410563975572586, 0.3383910655975342, -0.07830502092838287, 0.08614926785230637, 0.22059422731399536, 0.11868782341480255, 0.1988728642463684, 0.37528008222579956, 0.0830918475985527, -0.13939204812049866, 0.38699427247047424, -0.15189577639102936, 0.21897374093532562, -0.0017049461603164673, 0.238226979970932, 0.27249905467033386, 0.044635653495788574, -0.43444493412971497, -0.005624439567327499, -0.3913573622703552, -0.22265328466892242, -0.12414949387311935, -0.14201247692108154, 0.18167755007743835, 0.25516438484191895, -0.016419829800724983, -0.3639935255050659, -0.06741701066493988, 0.09723526239395142, -0.057558268308639526, 0.20811890065670013, -0.00010867723904084414, -0.15752829611301422, 0.42242544889450073, -0.19529280066490173, 0.1603047102689743, 0.2774301767349243, -0.3426913321018219, 0.06645228713750839, -0.16478769481182098, -0.26857423782348633, -0.012201037257909775, 0.2757474184036255, 0.09117449074983597, -0.10616698861122131, -0.1579219549894333, 0.167725071310997, 0.1726444810628891, 0.21230380237102509, -0.04293005168437958, 0.022830752655863762, 0.15526112914085388, 0.10962216556072235, -0.22482207417488098, 0.1928587257862091, 0.326649010181427, -0.05337759852409363, 0.15696021914482117, 0.19662779569625854, -0.27058812975883484, -0.2152918130159378, 0.1251702755689621, -0.19877004623413086, 0.19365322589874268, -0.40995731949806213, -0.009175311774015427, 0.39281681180000305, 0.164391428232193, -0.37730035185813904, -0.11749183386564255, -0.008034177124500275, 0.19008208811283112, -0.3991350829601288, 0.19930830597877502, 0.1139950379729271, -0.1964769810438156, 0.08512656390666962, -0.15272808074951172, -0.11471473425626755, -0.04085911437869072, -0.11975434422492981, 0.21211007237434387, 0.23888751864433289, 0.17034542560577393, -0.06857631355524063, 0.23859243094921112, -0.010080330073833466, -0.08252092450857162, -0.15541689097881317, -0.20985931158065796, -0.03621522709727287, -0.18957366049289703, -0.41938847303390503, -0.025704316794872284, 0.3845341205596924, -0.04611898958683014, 0.42826664447784424, -0.21789297461509705, 0.18363094329833984, 0.3981691002845764, 0.14374057948589325, 0.11466957628726959, 0.016325797885656357, 0.3302497863769531, 0.4947371184825897, 0.2217697948217392, 0.23056672513484955, 0.030017543584108353, 0.032601792365312576, -0.011808310635387897, -0.24847649037837982, -0.07992229610681534, 0.22985976934432983, 0.30052757263183594, -0.2989051938056946, -0.3318234384059906, 0.41201478242874146, -0.09595414996147156, -0.14251840114593506, 0.39786410331726074, 0.35889506340026855, 0.007486066780984402, -0.23832708597183228, 0.14958947896957397, -0.16158705949783325, -0.030938856303691864, 0.07459499686956406, -0.22201842069625854, 0.17352886497974396, -0.16963185369968414, 0.00918375700712204, 0.05041540041565895, -0.15368837118148804, 0.40059229731559753, -0.03228583186864853, 0.27491602301597595, 0.011185988783836365, 0.16931864619255066, -0.16024291515350342, 0.21047662198543549, 0.47911563515663147, 0.09895053505897522, -0.34412461519241333, 0.31413447856903076, -0.19604817032814026, -0.05266938358545303, 0.38310110569000244, 0.0641862004995346, -0.2111169695854187, 0.05470536649227142, 0.3000676929950714, -0.41034823656082153, -0.044723257422447205, 0.13051354885101318, 0.0373869463801384, 0.12403472512960434, -0.24415716528892517, 0.44373682141304016, 0.12863536179065704, 0.06870722770690918, -0.14791111648082733, -0.0035756751894950867, 0.5802279710769653, -0.4305793046951294, 0.1250159740447998, 0.25359615683555603, -0.4911040961742401, -0.02033301442861557, -0.19675451517105103, -0.23323358595371246, 0.053775932639837265, -0.4380260705947876, -0.011626236140727997, 0.292867511510849, -0.11961951851844788, 0.26663684844970703, 0.3553467094898224, -0.11904020607471466, -0.06226794421672821, 0.3138323128223419, 0.15177364647388458, -0.1988261342048645, -0.3813786804676056, -0.01831747591495514, -0.3098410367965698, -0.15740768611431122, -0.19487261772155762, -0.19133055210113525, 0.09755636006593704, 0.21249933540821075, -0.016522545367479324, 0.21768896281719208, 0.1765972375869751, -0.07704559713602066, -0.04635948687791824, 0.2632550299167633, -0.06875711679458618, -0.1848176270723343, 0.2557392716407776, 0.49607938528060913, 0.22681471705436707, -0.3670235872268677, -0.17566239833831787, 0.028661951422691345, 0.06920832395553589, -0.11501793563365936, 0.099544957280159, 0.38759881258010864, -0.2874380350112915, 0.21798238158226013, -0.16318345069885254, -0.03450721129775047, -0.08625821769237518, 0.24628666043281555, 0.09483733028173447, -0.18964429199695587, -0.2580207586288452, -0.47624671459198, 0.05358622223138809, -0.521571159362793, -0.14077559113502502, -0.16675545275211334, 0.08770668506622314, -0.2694655656814575, -0.11105507612228394, -0.2670097351074219, 0.038269031792879105, 0.3141096532344818, 0.12575381994247437, 0.15586259961128235, 0.41766437888145447, 0.3692761957645416, -0.3945698142051697, 0.15792205929756165, 0.3015310764312744, -0.059673093259334564, -0.16887381672859192, -0.029989274218678474, 0.3009288012981415, 0.14576253294944763, -0.12329860776662827, -0.1400805413722992, 0.446821928024292, -0.1842128336429596, 0.04488765820860863, 0.0074540674686431885, -0.09018898755311966, -0.03456221520900726, -0.21091517806053162, -0.39840495586395264, -0.2577565014362335, 0.08561669290065765, 0.5816978216171265, 0.06443898379802704, 0.23185884952545166, -0.45783838629722595, -0.17582443356513977, 0.22892595827579498, -0.2406013458967209, 0.008654054254293442, 0.09684032201766968, 0.29988163709640503, 0.15705901384353638, 0.14804431796073914, 0.1744406372308731, 0.3185534179210663, 0.32725369930267334, -0.274787575006485, 0.1366882026195526, -0.3101099729537964, -0.3085833787918091, 0.3757791221141815, 0.12289941310882568, 0.019406653940677643, 0.12145091593265533, -0.476068377494812, -0.08900616317987442, -0.1300615668296814, -0.47137293219566345, 0.24472889304161072, -0.05954917520284653, -0.3870953619480133, -0.21281631290912628, -0.014621952548623085, -0.054632846266031265, 0.028151128441095352, -0.017978917807340622, -0.1483333855867386, -0.2878609299659729, 0.16697046160697937, 0.0745575875043869, -0.2655128836631775, 0.2397742122411728, -0.40463173389434814, 0.04270504415035248, -0.030926845967769623, -0.5173400640487671, 0.09011812508106232, -0.17406995594501495, -0.06682217866182327, 0.21292363107204437, 0.41489335894584656, -0.0843331590294838, 0.12626220285892487, -0.11002866923809052, -0.22416101396083832, -0.0910455510020256, -0.33355578780174255, 0.15359193086624146, -0.48284488916397095, 0.19615639746189117, 0.39923569560050964, 0.3452863097190857, -0.15933366119861603, -0.30520954728126526, -0.006813136860728264, 0.38264715671539307, -0.13161247968673706, -0.0073298318311572075, 0.16640156507492065, -0.2941628694534302, -0.3635784685611725, -0.1898106038570404, 0.25277620553970337, -0.26221606135368347, -0.08985461294651031, 0.11956293880939484, 0.20725944638252258, 0.4162144958972931, 0.45784899592399597, 0.2391856163740158, -0.21706067025661469, -0.12067227065563202, -0.27623486518859863, -0.3599485158920288, 0.21497982740402222, 0.18270424008369446, -0.1273183673620224, 0.3891236484050751, -0.03742354363203049, -0.004331506788730621, -0.1598711609840393, -0.2591087222099304, -0.371179461479187, 0.050071150064468384, 0.21621811389923096, -0.09935709834098816, -0.013889061287045479, 0.4855375289916992, 0.18609164655208588, -0.2873906195163727, -0.16844883561134338, -0.23430123925209045, 0.2670844793319702, -0.2367267906665802, 0.2097284495830536, 0.039729878306388855, 0.22391211986541748, -0.25969550013542175, 0.0178348608314991, 0.13828697800636292, -0.08400130271911621, 0.2428223043680191, -0.09883404523134232, 0.8157367706298828, 0.12785762548446655, 0.05176406353712082, 0.16688403487205505, 0.3482401669025421, -0.27010577917099, 0.029396183788776398, -0.3583780527114868, -0.08694443106651306, -0.2933195233345032, -0.1394532322883606, -0.10582177340984344, -0.12400731444358826, 0.21926046907901764, -0.28261899948120117, -0.05555478483438492, -0.3966463804244995, 0.13301247358322144, -0.04674253612756729, 0.18692174553871155, -0.06521929055452347, 0.4539746046066284, 0.34977683424949646, -0.16410355269908905, -0.44779881834983826, -0.19672852754592896, 0.18211564421653748, 0.07289194315671921, -0.1339351087808609, 0.2679513692855835, -0.10692881047725677, -0.20122882723808289, -0.090150848031044, 0.05416884645819664, 0.6089343428611755, -0.374268501996994, -0.02228476107120514, 0.1623181700706482, 0.10172958672046661, 0.053108640015125275, -0.10144615173339844, -0.4348360300064087, -0.11875450611114502, 0.19794587790966034, 0.08653593063354492, -0.26542747020721436, -0.0098337447270751, 0.23704399168491364, -0.024076035246253014, 0.0025309287011623383, -0.15892474353313446, -0.4818997085094452, -0.05879781022667885, -0.4612860083580017, 0.3534451723098755, 0.3655410706996918, -0.26526156067848206, -0.22135378420352936, -0.05688634514808655, 0.1477115899324417, -0.06864289194345474, 0.22313299775123596, -0.06203499063849449, 0.3636971116065979, -0.10457471758127213, -0.03243006393313408, -0.40498384833335876, -0.35627061128616333, 0.2696082293987274, 0.24486792087554932, -0.04859653487801552, 0.003917180001735687, 0.27614396810531616, -0.10006804019212723, 0.3694866895675659, 0.30604860186576843, -0.03202059492468834, -0.05998777598142624, 0.11195805668830872, 0.047463010996580124, 0.06584832072257996, -0.20383581519126892, -0.016664160415530205, -0.15506942570209503, 0.12027585506439209, -0.17823870480060577, -0.028838418424129486, -0.01861310936510563, 0.07193998992443085, 0.235328808426857, 0.26895421743392944, -0.18251922726631165, 0.18210220336914062, 0.2446025311946869, 0.9813203811645508, 0.27020445466041565, -0.07356040179729462, 0.22058692574501038, -0.08746971935033798, -0.0029189775232225657, -0.042562395334243774, 0.0730472207069397, -0.12025170773267746, -0.2850854992866516, -0.06225661188364029, -0.18959875404834747, 0.43492287397384644, 0.019177667796611786, -0.5614035725593567, 0.47204431891441345, -0.19448962807655334, 0.13064999878406525, 0.140849307179451, 0.05148588865995407, -0.18369270861148834, 0.11692202091217041, -0.11471495032310486, 0.1770814210176468, 0.0570259764790535, -0.1125488430261612, -0.16134923696517944, -0.233912393450737, 0.025233183056116104, -0.19203510880470276, -0.2627370059490204, 0.14189273118972778, -0.17672039568424225, -0.3702545166015625, 0.152959942817688, 0.30622750520706177, -0.10794973373413086, 0.19063645601272583, 0.14369773864746094, 0.6340594291687012, -0.29230019450187683, 0.13115274906158447, 0.5104790329933167, 0.100785031914711, -0.23134885728359222, -0.08938194066286087, 0.5653335452079773, -0.08342701196670532, -0.411447137594223, 0.1584089696407318, -0.2752121686935425, -0.22013399004936218, 0.08245213329792023, -0.04680485278367996, -0.00956561416387558, -0.25545114278793335, -0.23019351065158844, 0.017275728285312653, -0.2699916958808899, -0.1269732564687729, 0.20282509922981262, -0.015133164823055267, -0.1754121333360672, 0.08459065854549408, 0.2829325795173645, 0.01374756544828415, -0.16729266941547394, 0.11777164041996002, -0.10048212856054306, 0.08781655132770538, 0.17813441157341003, -0.08757613599300385, -0.17145590484142303, -0.3573876917362213, -0.10964001715183258, 0.009648572653532028, 0.05074843764305115, -0.006702345795929432, 0.22263914346694946, -0.35924792289733887, 0.18227100372314453, 0.12449197471141815, 0.054253652691841125, 0.4425465166568756, -0.07972956448793411, -0.24379688501358032, -0.2615624666213989, 0.12029692530632019, 0.051829032599925995, 0.5508469939231873, -0.20596721768379211, 0.3417705297470093, 0.18704301118850708, -0.3054952621459961, -0.43639954924583435, -0.18081407248973846, -0.6157463192939758, 0.2574552595615387, -0.05574460327625275, 0.1190609559416771, -0.1102747917175293, 0.09336549043655396, 0.22889304161071777, 0.1316807121038437, -0.10506017506122589, -0.24158835411071777, 0.07331313192844391, 0.12514878809452057, 0.06371887773275375, 0.014796712435781956, -0.04809229075908661, 0.005943000316619873, -0.15351159870624542, 0.05128247290849686, -0.22719323635101318, 0.11801686137914658, -0.08287379145622253, 0.2648526728153229, 0.5753254890441895, 0.008624754846096039, -0.13125954568386078, -0.4028273820877075, -0.2215709686279297, 0.04545476287603378, 0.007722178008407354, -0.04041120409965515, -0.1320529282093048, 0.014370381832122803, 0.13944292068481445, 0.2451421022415161, 0.08961073309183121, 0.2261388599872589, 0.1399269700050354, 0.22346587479114532, -0.26796063780784607, 0.08616875112056732, 0.011585051193833351, 0.19974251091480255, -0.19086980819702148, -0.19083185493946075, 0.04531005397439003, 0.28622642159461975, -0.4642195999622345, 0.12418865412473679, -0.0340292826294899, 0.05362473055720329, 0.23842117190361023, 0.4035896062850952, 0.2276594042778015, -0.18138208985328674, 0.42776060104370117, 0.09602213650941849, 0.1993502378463745, -0.16230478882789612, 0.21401815116405487, 0.28625497221946716, -0.1686117798089981, -0.19348706305027008, 0.14454098045825958, -0.15720948576927185, 0.07548565417528152, -0.03684752434492111, -0.17607304453849792, 0.2831454575061798, -0.00838083028793335, 0.2712205648422241, -0.17509374022483826, -0.41531509160995483, 0.5425785779953003, 0.30448949337005615, -0.033483847975730896, -0.09674236923456192, 0.0801001563668251, -0.3432963192462921, 0.09443057328462601, 0.37356695532798767, -0.004451462998986244, 0.10071292519569397, -0.1355583667755127, -0.02331429161131382, -0.27496474981307983, -0.1411837637424469, -0.014618471264839172, -0.21992045640945435, 0.5162149667739868, -0.09465238451957703, 0.376205176115036, 0.04339103028178215, -0.15415963530540466, 0.26925933361053467, 0.29787254333496094, 0.001884017139673233, -0.05176917463541031, -0.2607615292072296, 0.21179458498954773, 0.41438615322113037, 0.08905172348022461, 0.43322551250457764, 0.2878924012184143, 0.31859490275382996, 0.3498874008655548, 0.22965390980243683, 0.04697505384683609, 0.2836083769798279, -0.1512749195098877, 0.01390111818909645, 0.2904822826385498, -0.04239171743392944, 0.31090670824050903, 0.06509129703044891, 0.24618786573410034, -0.17423999309539795, 0.039858222007751465, -0.09006695449352264, -0.173728346824646, 0.14745326340198517, 0.21183572709560394, 0.5057564377784729, -0.02990332618355751, -0.42600154876708984, 0.18768629431724548, -0.40553581714630127, -0.26971763372421265, 0.3802987039089203, 0.012086611241102219, 0.03036433830857277, 0.08017662912607193, 0.12297177314758301, 0.10071930289268494, 0.06564827263355255, 0.049817588180303574, -0.2775486707687378, -0.598330557346344, 0.07141406834125519, -0.3442264795303345, 0.18922874331474304, 0.21966269612312317, -0.2521193027496338, 0.09399691224098206, 0.1522143930196762, -0.09990192204713821, -0.07913287729024887, 0.07439689338207245, -0.1309499591588974, 0.09850870072841644, -0.0011594370007514954, -0.3016035258769989, 0.06338907778263092, 0.18726129829883575, -0.012213313952088356, 0.11500073969364166, -0.11952241510152817, -0.01948118582367897, -0.027076125144958496, 0.2662706673145294, -0.06063558906316757, -0.33530083298683167, 0.04872125759720802, 0.30270668864250183, 0.3031490445137024, -0.08577490597963333, 0.4483150839805603, -0.29808372259140015, -0.04242638871073723, -0.05637410655617714, 0.18035010993480682, -0.31274110078811646, 0.044802356511354446, 0.3067345917224884, 0.006433265283703804, -0.2448902577161789, -0.04658463969826698, -0.23636087775230408, 0.2035023421049118, -0.06278248131275177, -0.18457649648189545, -0.3310847580432892, 0.25005269050598145, -0.09756625443696976, 0.276525616645813, -0.03969679772853851, -0.21014204621315002, 0.020749978721141815, 0.3294624388217926, -0.28055644035339355, -0.3595370054244995, 0.7086389064788818, 0.2608032524585724, 0.05152961239218712, -0.1372012197971344, 0.2999742031097412, -0.0955866351723671, 0.1210639476776123, -0.652449369430542, 0.07612910121679306, 0.19954727590084076, 0.10092473775148392, -0.2365415245294571, 0.16741281747817993, -0.5173362493515015, 0.19991354644298553, -0.1530493199825287, -0.09147381782531738, -0.10195382684469223, 0.024941755458712578, -0.06260114163160324, -0.2388591170310974 ]
https://github.com/huggingface/datasets/pull/43
[Checksums] If no configs exist prevent to run over empty list
Sorry, I thought you meant a different commit . Just saw this one: https://github.com/huggingface/nlp/commit/7c644f284e2303b57612a6e7c904fe13906d893f . All good then :-)
`movie_rationales` e.g. has no configs.
19
text: [Checksums] If no configs exist prevent to run over empty list `movie_rationales` e.g. has no configs. Sorry, I thought you meant a different commit . Just saw this one: https://github.com/huggingface/nlp/commit/7c644f284e2303b57612a6e7c904fe13906d893f . All good then :-)
[ -0.11062809824943542, 0.03977814316749573, -0.14984625577926636, -0.31710731983184814, 0.13820841908454895, -0.2237737476825714, 0.06400860846042633, 0.31054216623306274, 0.06680861115455627, 0.11016855388879776, 0.24236269295215607, 0.08234643191099167, -0.2657968997955322, 0.3443358540534973, -0.119146928191185, 0.3677057921886444, -0.03280232101678848, 0.3252714276313782, 0.15295735001564026, -0.055511001497507095, -0.24381572008132935, 0.176984965801239, -0.08747563511133194, -0.282528817653656, -0.04359934851527214, 0.04783957824110985, 0.16798028349876404, 0.2519386410713196, -0.07443881034851074, -0.3685164153575897, -0.02886143885552883, 0.016038674861192703, -0.28110456466674805, 0.11537673324346542, -0.00010590872989268973, -0.10471983253955841, 0.4809919595718384, -0.29788127541542053, 0.1705382764339447, 0.18563809990882874, -0.30262553691864014, 0.1164630800485611, -0.13533130288124084, -0.2716367244720459, -0.05731046199798584, 0.4819369912147522, 0.17551063001155853, -0.07212335616350174, 0.07955057919025421, 0.09833255410194397, 0.23942404985427856, 0.25252044200897217, 0.04990873858332634, -0.038851022720336914, 0.11815355718135834, 0.2893508970737457, -0.1082819327712059, 0.21102650463581085, 0.08252917230129242, -0.15876445174217224, 0.14765627682209015, 0.27685606479644775, -0.19177289307117462, -0.3485166132450104, 0.22554129362106323, -0.33259814977645874, 0.2979382872581482, -0.47915247082710266, 0.0019270628690719604, 0.1768723428249359, -0.08553900569677353, -0.34315481781959534, -0.04640869051218033, -0.009673446416854858, 0.15258540213108063, -0.17756325006484985, 0.17164593935012817, 0.20220507681369781, -0.11755400896072388, -0.05196686461567879, -0.12101948261260986, -0.27953603863716125, -0.019277215003967285, -0.1717694252729416, 0.24634888768196106, 0.2851502299308777, 0.2493221014738083, -0.07965058833360672, 0.2900516390800476, 0.01365799643099308, -0.5012592077255249, 0.032573580741882324, -0.2166876494884491, 0.0734933540225029, -0.10793924331665039, -0.4105125367641449, 0.08523494005203247, 0.08160127699375153, -0.019513040781021118, 0.40631377696990967, -0.21340905129909515, 0.18991124629974365, 0.28852546215057373, 0.13575562834739685, -0.05896295979619026, 0.29269641637802124, 0.4341648519039154, 0.2742728888988495, 0.28000718355178833, 0.2904227375984192, 0.10290569067001343, 0.2386677861213684, -0.12484768778085709, -0.227768212556839, -0.08884529769420624, 0.3786129951477051, 0.3187805414199829, -0.16953621804714203, -0.2563248574733734, 0.3297211229801178, -0.08881736546754837, -0.1750989854335785, 0.14307907223701477, 0.3821831941604614, 0.004685806576162577, -0.3474043011665344, 0.14579346776008606, -0.04330619424581528, -0.16551320254802704, 0.11952845007181168, -0.2560717761516571, 0.13862065970897675, -0.24014891684055328, -0.018948329612612724, 0.12176033854484558, -0.26991167664527893, 0.4678780138492584, -0.0564122200012207, 0.2264609932899475, -0.05473930761218071, -0.09663151949644089, 0.08201611042022705, 0.09730680286884308, 0.4325135052204132, 0.09250980615615845, -0.22869081795215607, 0.34128376841545105, -0.3246334195137024, -0.11340087652206421, 0.3539142310619354, 0.005281001329421997, -0.227803573012352, -0.09415030479431152, 0.3140905499458313, -0.44388043880462646, -0.06128372251987457, -0.016217045485973358, -0.008409012109041214, 0.061186760663986206, 0.0912291556596756, 0.4118282198905945, 0.18703114986419678, 0.2333831787109375, -0.12709426879882812, 0.02673940174281597, 0.4962918162345886, -0.14347808063030243, -0.15006208419799805, 0.29761484265327454, -0.5052791833877563, -0.049178220331668854, 0.05415835231542587, -0.1782408058643341, -0.17822781205177307, -0.36861440539360046, 0.26433122158050537, 0.23760519921779633, -0.335696280002594, 0.1332690417766571, 0.19013507664203644, -0.15990415215492249, -0.08797094970941544, 0.22413499653339386, 0.08436360955238342, -0.03458085283637047, -0.27223581075668335, 0.14916735887527466, -0.25295406579971313, 0.11805112659931183, -0.07276002317667007, -0.15417611598968506, -0.02607233077287674, 0.0019783005118370056, -0.263486385345459, 0.18032509088516235, 0.07093655318021774, -0.01811489462852478, 0.04549797624349594, 0.343335896730423, -0.016081970185041428, -0.08620280027389526, 0.3805345296859741, 0.5592905282974243, 0.08394405990839005, -0.3697575628757477, -0.05333954095840454, -0.02140236645936966, 0.0019183792173862457, -0.2626412510871887, 0.14926950633525848, 0.2703935503959656, -0.3457702398300171, 0.004552148282527924, -0.0650804415345192, 0.10536517202854156, -0.04143344983458519, 0.2697761654853821, 0.15982085466384888, -0.04791736975312233, -0.03477432578802109, -0.47975945472717285, -0.06269846111536026, -0.3488496243953705, -0.14040081202983856, -0.11849148571491241, 0.08037500828504562, -0.4538368880748749, -0.18392843008041382, 0.15335583686828613, 0.08986150473356247, 0.3807823657989502, -0.1490163654088974, 0.24896234273910522, 0.3138805329799652, 0.05402204021811485, -0.08280989527702332, -0.027626998722553253, 0.4492039680480957, 0.019014745950698853, -0.07359693944454193, -0.16458259522914886, 0.1140335351228714, 0.0373513400554657, -0.10365794599056244, 0.014525637030601501, 0.5133237242698669, -0.04056069627404213, -0.12156393378973007, 0.058993734419345856, -0.1618548333644867, 0.10149574279785156, -0.30373552441596985, -0.44732123613357544, -0.3613215982913971, 0.1851547211408615, 0.3688250780105591, -0.19417445361614227, 0.2676314115524292, -0.381112277507782, -0.03501487523317337, 0.42582017183303833, -0.24697832763195038, 0.01689063012599945, 0.2526960074901581, 0.3108801245689392, 0.12197839468717575, -0.0236870925873518, 0.07335363328456879, 0.08670651167631149, 0.17145301401615143, -0.23924455046653748, 0.17821289598941803, -0.26892489194869995, -0.2893771827220917, 0.45903775095939636, 0.06709934771060944, 0.18693852424621582, 0.24718445539474487, -0.2431531846523285, -0.20524099469184875, -0.12163739651441574, -0.17998699843883514, 0.12373324483633041, -0.08340470492839813, -0.36809858679771423, -0.2162376344203949, -0.13844969868659973, -0.26506978273391724, -0.13516315817832947, -0.19159621000289917, -0.19107702374458313, -0.24904847145080566, 0.23526883125305176, 0.0838007777929306, -0.27770373225212097, 0.2675403654575348, -0.30466246604919434, 0.1415528655052185, 0.114240363240242, -0.3827729821205139, 0.05178990960121155, -0.12283219397068024, 0.05577085167169571, 0.17403244972229004, 0.3201095163822174, -0.4211454391479492, 0.16704151034355164, -0.13102726638317108, -0.21578970551490784, -0.0612591877579689, -0.44606539607048035, 0.1851131170988083, -0.6041796207427979, 0.17385125160217285, 0.29143381118774414, 0.23745545744895935, -0.11243219673633575, -0.3801909387111664, 0.07185535132884979, 0.2465260624885559, -0.25840604305267334, -0.03793547675013542, 0.19669418036937714, -0.3864484131336212, -0.4869498014450073, -0.24392929673194885, 0.3783751428127289, -0.38061007857322693, 0.2221052348613739, 0.1405131220817566, 0.25150877237319946, 0.5829556584358215, 0.2990955114364624, 0.26184093952178955, -0.22234541177749634, -0.03851611167192459, -0.19021251797676086, -0.16621166467666626, 0.19840028882026672, 0.037813883274793625, -0.2474469393491745, 0.45534810423851013, -0.011422188952565193, 0.036728210747241974, -0.4044944643974304, -0.40345555543899536, -0.411022424697876, 0.059035129845142365, 0.02476980909705162, -0.08574353158473969, -0.1143893301486969, 0.41724643111228943, 0.16253887116909027, -0.3803645372390747, -0.2112812101840973, -0.3322177827358246, 0.3939853608608246, -0.03469282388687134, 0.05736338719725609, -0.04100259393453598, 0.22649803757667542, -0.09617862105369568, 0.07239717990159988, 0.03741854801774025, 0.11100396513938904, 0.15988101065158844, -0.02084924466907978, 0.5910684466362, 0.1253986954689026, 0.09389190375804901, 0.16411088407039642, 0.2732372581958771, -0.11084360629320145, 0.09494946897029877, -0.2996354103088379, -0.1881190538406372, -0.2083003669977188, -0.1806723177433014, -0.010857108980417252, -0.1829320192337036, 0.2551827132701874, -0.1365816295146942, -0.10170174390077591, -0.26878979802131653, -0.00946865975856781, 0.08742018043994904, 0.20948544144630432, 0.11593906581401825, 0.4921630620956421, 0.24940896034240723, 0.009721786715090275, -0.3564111590385437, -0.21649163961410522, -0.1412045657634735, 0.05190955102443695, -0.22305169701576233, 0.2074814736843109, -0.20698672533035278, -0.35383710265159607, 0.08917438238859177, -0.19162610173225403, 0.4283558130264282, 0.05467141419649124, 0.12307338416576385, 0.17926597595214844, 0.09996604919433594, -0.10497022420167923, -0.21192342042922974, -0.32174763083457947, -0.025787221267819405, 0.33821970224380493, 0.2201002985239029, -0.3753522038459778, -0.038018181920051575, 0.09144726395606995, -0.23734381794929504, -0.12844496965408325, 0.08579118549823761, -0.5246074795722961, -0.13568419218063354, -0.5744686722755432, 0.282551646232605, 0.38354527950286865, -0.07224111258983612, -0.060317158699035645, 0.1439613252878189, 0.18439334630966187, -0.10262086242437363, 0.09023315459489822, -0.04896979033946991, 0.14130836725234985, 0.05511457845568657, -0.2047421783208847, -0.44710275530815125, -0.22763347625732422, 0.014235258102416992, 0.1063208281993866, 0.047897275537252426, 0.2563701868057251, 0.16985651850700378, -0.06902036815881729, 0.23448540270328522, 0.266875684261322, 0.05503665655851364, -0.015306152403354645, 0.23303088545799255, -0.07172290980815887, -0.21626976132392883, -0.1528964340686798, 0.056752853095531464, -0.22168968617916107, 0.05349845066666603, -0.03533558174967766, -0.07430306822061539, -0.2510407865047455, -0.03626418858766556, 0.07442925870418549, 0.5483241677284241, -0.18156854808330536, 0.14445069432258606, 0.2589353919029236, 0.9856834411621094, 0.22955352067947388, 0.00020592659711837769, 0.2523914873600006, -0.14747962355613708, -0.0525975339114666, 0.05729299038648605, 0.12075790017843246, -0.1987236589193344, -0.11475768685340881, 0.07343138754367828, -0.196293905377388, 0.1493493765592575, -0.3121100068092346, -0.5163567066192627, 0.20981644093990326, -0.19376377761363983, 0.11958350241184235, 0.17267252504825592, -0.08291369676589966, -0.0040831733494997025, 0.2049321085214615, -0.1792290210723877, 0.21965418756008148, 0.04023575037717819, 0.17857491970062256, -0.1897280514240265, -0.2941443920135498, -0.00551987811923027, -0.07922685146331787, -0.3975929021835327, 0.14768195152282715, -0.1119370236992836, -0.25544315576553345, 0.2251998782157898, 0.4190461039543152, -0.3053286075592041, 0.02001982554793358, 0.13044357299804688, 0.5212815999984741, -0.12653732299804688, -0.011455513536930084, 0.31896117329597473, -0.02836354449391365, -0.15773741900920868, 0.003972137346863747, 0.5296584367752075, -0.28187796473503113, -0.3782564103603363, 0.1551874279975891, -0.10836087912321091, -0.23198963701725006, 0.1296742558479309, -0.014848984777927399, -0.10009679198265076, -0.04337600618600845, -0.2674317955970764, 0.028691790997982025, -0.31855952739715576, -0.18242555856704712, 0.1927313506603241, -0.13625696301460266, -0.19432036578655243, -0.13798007369041443, 0.32734987139701843, -0.14452329277992249, -0.06100348010659218, 0.2776305377483368, -0.047100864350795746, 0.06809340417385101, 0.2513883113861084, -0.10834675282239914, -0.21587833762168884, -0.352682501077652, -0.32787784934043884, -0.2641509175300598, -0.1940787434577942, 0.10162882506847382, 0.14021025598049164, -0.48107194900512695, 0.15360790491104126, 0.30362817645072937, 0.11787556856870651, 0.4268835186958313, -0.04171229898929596, -0.2451653629541397, -0.23333700001239777, 0.21926945447921753, 0.021381257101893425, 0.427984356880188, -0.11073266714811325, 0.3601960241794586, 0.129440575838089, -0.055736884474754333, -0.4800330102443695, -0.146918386220932, -0.6059879660606384, 0.25405651330947876, 0.1283799111843109, -0.07736558467149734, 0.08183445781469345, 0.11545829474925995, 0.19309177994728088, 0.18194137513637543, -0.2089434415102005, -0.28207075595855713, -0.06144696846604347, 0.07512561976909637, -0.23418554663658142, 0.14279954135417938, 0.14306360483169556, 0.11672191321849823, 0.04987078160047531, 0.21087634563446045, -0.015075420029461384, 0.09155599027872086, -0.05460374057292938, 0.3381771743297577, 0.44217708706855774, -0.07168243080377579, -0.04893460497260094, -0.33897387981414795, -0.03137853741645813, 0.13815417885780334, -0.16699928045272827, -0.041130103170871735, -0.3327888250350952, -0.022745035588741302, -0.11989093571901321, 0.1545722484588623, 0.06547567248344421, 0.44605714082717896, 0.17497661709785461, 0.16566690802574158, -0.2863575518131256, 0.10485580563545227, 0.09701443463563919, -0.1635630577802658, -0.2630840241909027, -0.18932268023490906, 0.07273676991462708, 0.2827468812465668, -0.3333631157875061, 0.052868496626615524, 0.059331264346838, -0.015626046806573868, 0.1663447618484497, 0.3863382041454315, 0.29674407839775085, -0.16540229320526123, 0.4451419711112976, 0.1934850513935089, 0.15309995412826538, -0.06814927607774734, 0.2590843737125397, 0.10216648876667023, -0.13401836156845093, -0.21289603412151337, 0.11184189468622208, -0.20089618861675262, 0.2652880847454071, -0.2193671613931656, -0.1789696216583252, 0.17252205312252045, 0.17409685254096985, 0.1955173909664154, 0.03413594141602516, -0.09501712024211884, 0.39213645458221436, 0.31483298540115356, 0.17482927441596985, 0.18146595358848572, 0.08042309433221817, -0.07386597245931625, 0.18132753670215607, 0.2358998954296112, 0.0823076069355011, 0.4554324150085449, -0.1808483898639679, -0.17763033509254456, -0.18444761633872986, -0.09700021147727966, -0.028750408440828323, -0.06602005660533905, 0.45927682518959045, 0.06764015555381775, 0.23204192519187927, 0.1825810968875885, -0.15834538638591766, 0.37797123193740845, 0.27926382422447205, -0.0976867750287056, 0.12803655862808228, -0.08705490827560425, 0.26938578486442566, 0.4223664402961731, 0.12448509782552719, 0.30940693616867065, 0.38856035470962524, 0.47979700565338135, 0.22395657002925873, 0.17794257402420044, 0.11964673548936844, 0.3662075996398926, -0.032046832144260406, -0.0008430853486061096, 0.3497138023376465, 0.08862628787755966, 0.1725708693265915, -0.018144696950912476, 0.26084569096565247, -0.2627066671848297, 0.10085716843605042, -0.09887203574180603, -0.22230207920074463, 0.358291894197464, 0.28604575991630554, 0.3019386827945709, 0.012722618877887726, -0.3806901276111603, 0.21562311053276062, -0.3949149549007416, -0.17820224165916443, 0.15187659859657288, 0.060856591910123825, 0.06336849927902222, -0.04651090130209923, 0.15622350573539734, -0.03476719930768013, 0.22555653750896454, -0.06033708527684212, -0.3308959901332855, -0.27957311272621155, 0.07848569750785828, -0.24048365652561188, 0.23154976963996887, 0.3761991858482361, -0.2375696897506714, 0.03068687953054905, 0.333316832780838, -0.18768814206123352, -0.19227981567382812, 0.11697100847959518, -0.3591794967651367, 0.03597445413470268, -0.13199199736118317, -0.12522423267364502, 0.3099634051322937, 0.20207342505455017, -0.14616644382476807, 0.23287811875343323, -0.03954031318426132, 0.0517740324139595, -0.12046194076538086, 0.2836780250072479, -0.02948429062962532, -0.3294934928417206, 0.09622946381568909, 0.31781354546546936, 0.22231325507164001, -0.09424843639135361, 0.23145490884780884, -0.3850167393684387, -0.35066983103752136, -0.044219475239515305, 0.06104664504528046, -0.184102401137352, -0.02705659717321396, 0.1666843593120575, 0.18927320837974548, -0.30691683292388916, 0.03301199898123741, -0.30752119421958923, 0.4618995487689972, 0.04294025897979736, -0.19765859842300415, -0.3823968172073364, 0.27554428577423096, -0.16387604176998138, 0.09810537844896317, 0.07632257044315338, -0.0016901977360248566, 0.08830765634775162, 0.27981022000312805, -0.3732336163520813, -0.4357108771800995, 0.6089785695075989, 0.03529753163456917, -0.005080210044980049, 0.08585787564516068, 0.3936942219734192, 0.010392323136329651, 0.1587771624326706, -0.7847426533699036, 0.16671708226203918, 0.10798346996307373, 0.19537228345870972, -0.2641337215900421, 0.28264638781547546, -0.6371731758117676, 0.02148306742310524, -0.19930489361286163, -0.02314218133687973, 0.009528975933790207, -0.10830622166395187, -0.06221017614006996, -0.29642486572265625 ]
https://github.com/huggingface/datasets/pull/37
[Datasets ToDo-List] add datasets
Note: ``` nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` directly saves the checksums in the right place, and runs for all the dataset configurations.
## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset*
23
text: [Datasets ToDo-List] add datasets ## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset* Note: ``` nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` directly saves the checksums in the right place, and runs for all the dataset configurations.
[ -0.36062461137771606, -0.01891462504863739, -0.20555710792541504, -0.08905917406082153, 0.18992669880390167, 0.3937821686267853, 0.19146427512168884, 0.4020628333091736, -0.004814449697732925, 0.11977867037057877, -0.029464950785040855, 0.3761882483959198, -0.15959471464157104, 0.3286758065223694, -0.06332308053970337, 0.04539939761161804, 0.047149065881967545, 0.19886814057826996, 0.2856498658657074, 0.022719278931617737, -0.19934575259685516, -0.0331290066242218, -0.07195998728275299, -0.10711635649204254, -0.16605424880981445, -0.27150800824165344, -0.1285523772239685, -0.03540799021720886, -0.3832022547721863, -0.41351261734962463, 0.160700261592865, 0.47917842864990234, -0.2005925476551056, 0.3211474120616913, -0.00010768510401248932, -0.11825890094041824, 0.36977916955947876, 0.05251564085483551, -0.41128310561180115, -0.2100948840379715, 0.23091807961463928, -0.17642715573310852, 0.07896902412176132, -0.4183642566204071, -0.16783565282821655, -0.21708014607429504, -0.16984833776950836, -0.1973923295736313, 0.09566235542297363, 0.3995109498500824, 0.2751508951187134, 0.4333927631378174, -0.12054625153541565, -0.26433008909225464, 0.3233015239238739, 0.17265433073043823, -0.2674967348575592, -0.041062284260988235, 0.2921402156352997, -0.08841771632432938, 0.12906399369239807, 0.15101012587547302, -0.16839975118637085, 0.07841603457927704, -0.010756857693195343, -0.14963029325008392, 0.04789577051997185, -0.32783761620521545, 0.043004993349313736, -0.03752395510673523, 0.5430710315704346, -0.38085445761680603, -0.10329841077327728, -0.02728450670838356, 0.03763003647327423, -0.5227769017219543, -0.11269014328718185, -0.10105019062757492, -0.06754390150308609, -0.13377512991428375, -0.2800821363925934, -0.006148373708128929, -0.08331073075532913, 0.32252055406570435, 0.03101498633623123, 0.05460450425744057, -0.008682177402079105, 0.01622101292014122, 0.13872864842414856, 0.041338980197906494, 0.23708243668079376, -0.13160136342048645, -0.018251609057188034, -0.09243401139974594, -0.3375409245491028, -0.2695382833480835, 0.3074418604373932, 0.09116370975971222, 0.2220226228237152, 0.2522224485874176, -0.25071728229522705, -0.006073884665966034, 0.11728638410568237, 0.18929538130760193, -0.060767631977796555, 0.11630058288574219, 0.2120148241519928, 0.35634294152259827, 0.17035648226737976, 0.004410606808960438, 0.04782554879784584, 0.06072754040360451, -0.04841253533959389, -0.0712893158197403, 0.17832280695438385, -0.09598688781261444, 0.29605865478515625, -0.17189393937587738, -0.4081246256828308, 0.06875576078891754, -0.05436814948916435, -0.15358097851276398, 0.009891007095575333, 0.44738513231277466, 0.07648056000471115, 0.006729058921337128, -0.11269132047891617, 0.2840780019760132, -0.050093427300453186, 0.23535317182540894, -0.29684457182884216, 0.15743115544319153, -0.17169691622257233, -0.017115620896220207, 0.3970138430595398, 0.08660660684108734, 0.28736451268196106, -0.050607748329639435, 0.27567631006240845, -0.08993006497621536, 0.2934209108352661, -0.14340603351593018, 0.12152940779924393, 0.20421044528484344, 0.008914865553379059, 0.067230723798275, 0.16929177939891815, -0.14290064573287964, -0.25663891434669495, 0.266108900308609, -0.03944841027259827, -0.24834519624710083, 0.09953419864177704, 0.3536931276321411, -0.1464611291885376, -0.1936441957950592, -0.3638398051261902, 0.16370129585266113, 0.10439542680978775, 0.036443766206502914, 0.10242091864347458, -0.2645930051803589, 0.05393446609377861, -0.15526193380355835, 0.167822927236557, 0.4860353469848633, -0.18091295659542084, -0.06335752457380295, -0.2044723778963089, -0.10475645959377289, 0.15799561142921448, 0.11377492547035217, -0.11110803484916687, 0.2681911885738373, -0.1872299462556839, -0.016051113605499268, 0.26482605934143066, -0.4225255846977234, -0.14174535870552063, -0.07793448120355606, -0.20237116515636444, -0.0808541551232338, 0.1537030190229416, 0.17729638516902924, 0.2600100040435791, -0.016039187088608742, -0.16477060317993164, 0.08191454410552979, -0.2357105314731598, -0.016012288630008698, -0.27121812105178833, -0.25088268518447876, 0.15702250599861145, 0.25441694259643555, 0.30964744091033936, -0.14702418446540833, 0.15465380251407623, -0.011134037747979164, 0.18536213040351868, -0.15082800388336182, -0.025137996301054955, 0.09049496054649353, 0.48244181275367737, -0.04865962266921997, -0.0746663436293602, -0.25784316658973694, -0.38893622159957886, 0.05056385695934296, 0.41079181432724, 0.1200971007347107, 0.042461201548576355, -0.2990524172782898, -0.4513701796531677, -0.0010593961924314499, -0.32149559259414673, -0.21344970166683197, 0.21232067048549652, 0.3533979058265686, 0.1440936177968979, -0.21047420799732208, -0.24853050708770752, 0.0257741529494524, -0.4604133069515228, 0.03886207938194275, 0.010827233083546162, 0.38994839787483215, -0.2165013551712036, -0.03490486368536949, 0.04918283224105835, 0.26236703991889954, 0.11105111241340637, -0.1383916437625885, 0.04054988920688629, 0.17286819219589233, 0.0014789528213441372, 0.09525682032108307, 0.4135585129261017, 0.2883051335811615, 0.22267261147499084, -0.43510207533836365, -0.0435008704662323, 0.04712215065956116, 0.04289152845740318, -0.2206507921218872, -0.045707061886787415, 0.21625104546546936, -0.15427762269973755, 0.14071162045001984, 0.0575002059340477, -0.2021365761756897, 0.11309826374053955, -0.004342909902334213, -0.11888439208269119, -0.21574591100215912, 0.299551397562027, 0.3239169120788574, 0.28917282819747925, -0.06850128620862961, -0.010007448494434357, 0.22225287556648254, 0.4561719298362732, -0.03592528775334358, -0.1960795521736145, 0.12715201079845428, -0.10765335708856583, -0.061441510915756226, -0.09555254131555557, 0.08882880210876465, 0.31018316745758057, 0.3800759017467499, -0.006528858095407486, -0.12741166353225708, -0.04067250341176987, -0.2119494080543518, 0.11776462942361832, 0.22264908254146576, -0.010638638399541378, 0.14389696717262268, 0.3192541003227234, -0.06169411912560463, -0.354074627161026, -0.2897583842277527, 0.11100637167692184, 0.2618117034435272, -0.15220580995082855, -0.1833139806985855, -0.041194528341293335, -0.29504022002220154, 0.14480553567409515, -0.16624815762043, 0.12760236859321594, -0.37159645557403564, 0.08635841310024261, 0.1318511813879013, -0.06757968664169312, 0.3048303425312042, -0.07344754040241241, 0.261544793844223, 0.0030518826097249985, -0.3765866458415985, -0.2918950319290161, -0.32854926586151123, -0.08067426085472107, 0.2354450821876526, -0.033593498170375824, -0.20099683105945587, 0.7600569128990173, -0.1351310908794403, 0.08821094036102295, -0.4678373634815216, -0.5150236487388611, 0.21946845948696136, -0.2579531669616699, 0.23176588118076324, -0.008577495813369751, 0.13007588684558868, 0.07006700336933136, -0.336824893951416, 0.2588084936141968, -0.18185944855213165, -0.1850438266992569, -0.12924566864967346, -0.03579661622643471, -0.0656168982386589, -0.13634541630744934, -0.6234620213508606, -0.2106674313545227, -0.37859052419662476, 0.021273210644721985, 0.17782369256019592, 0.10002458095550537, 0.21031521260738373, -0.0325947105884552, 0.08152162283658981, -0.03045235387980938, 0.11122342199087143, -0.2166604846715927, -0.23142211139202118, 0.08877173811197281, -0.19215333461761475, -0.2241366058588028, 0.05967843905091286, -0.10030492395162582, 0.19724293053150177, -0.15631918609142303, -0.3722827434539795, -0.4782860279083252, -0.24855364859104156, 0.5902325510978699, 0.07697224617004395, -0.11021193861961365, 0.20587721467018127, 0.25345709919929504, -0.24202558398246765, -0.08264930546283722, -0.29348045587539673, -0.0038160979747772217, 0.0697304904460907, 0.2621529996395111, -0.30456429719924927, 0.1727921962738037, -0.11028958857059479, 0.653204619884491, 0.27887600660324097, -0.2185070961713791, 0.1870352029800415, -0.043306052684783936, 0.4104481637477875, -0.19066795706748962, -0.5153353214263916, 0.2893575131893158, -0.06452558934688568, -0.23881706595420837, 0.2791632115840912, -0.061436161398887634, -0.17500245571136475, -0.06902623921632767, 0.27786189317703247, -0.1863115131855011, 0.08165381848812103, -0.08909767121076584, -0.1059579998254776, 0.15051592886447906, -0.15072743594646454, 0.038356609642505646, -0.23315972089767456, -0.12381253391504288, 0.023624766618013382, 0.48839253187179565, -0.021644361317157745, -0.10063788294792175, -0.34721383452415466, 0.046250540763139725, -0.33144909143447876, 0.19288036227226257, -0.08460405468940735, 0.012603149749338627, -0.2350456714630127, -0.023661956191062927, -0.09308552742004395, -0.05115429684519768, 0.2890796363353729, -0.17768998444080353, -0.07760117202997208, 0.5592139959335327, 0.10670046508312225, 0.044208332896232605, -0.08047611266374588, -0.42935657501220703, 0.14064234495162964, 0.35322195291519165, 0.4971616864204407, -0.31642282009124756, -0.08569307625293732, 0.30027833580970764, 0.2188878059387207, 0.08273361623287201, -0.13161875307559967, -0.18068791925907135, -0.35730016231536865, -0.3141913115978241, 0.35050562024116516, -0.059389255940914154, 0.17876873910427094, -0.39611193537712097, -0.3240809142589569, 0.042845919728279114, -0.21229183673858643, 0.22983555495738983, 0.12183597683906555, 0.12127286195755005, 0.09841031581163406, 0.25037261843681335, -0.1389746218919754, -0.03490569442510605, 0.598404049873352, 0.2365911900997162, -0.3184282183647156, -0.028508327901363373, -0.02137516438961029, -0.1435743123292923, 0.3907926380634308, 0.046263471245765686, -0.01952359452843666, 0.25869524478912354, -0.2995572090148926, 0.21859711408615112, -0.032662004232406616, 0.3211396336555481, 0.33808740973472595, 0.13319629430770874, -0.29188573360443115, -0.2706162631511688, 0.0674903467297554, 0.2668323814868927, -0.0296236090362072, 0.3393367826938629, -0.11404071748256683, -0.10821014642715454, 0.18671800196170807, 0.1192159354686737, 0.9459074139595032, -0.26806217432022095, -0.02782939001917839, 0.20607194304466248, -0.05866667628288269, 0.34560626745224, -0.15352801978588104, 0.10359463095664978, -0.1422325223684311, -0.10424397140741348, 0.16987654566764832, -0.1567327380180359, 0.25448092818260193, 0.020053595304489136, -0.39715632796287537, 0.21499618887901306, -0.12357057631015778, 0.46028488874435425, 0.13634121417999268, 0.23761224746704102, 0.07387560606002808, -0.16250957548618317, -0.17274470627307892, 0.27569183707237244, -0.17444652318954468, 0.22128942608833313, -0.1880665123462677, 0.06948597729206085, 0.04288659617304802, -0.16030187904834747, -0.17790499329566956, -0.022709380835294724, -0.20352715253829956, 0.041465260088443756, -0.37342262268066406, -0.43701446056365967, -0.02618490904569626, 0.12416104972362518, 0.2169870138168335, 0.2918284833431244, -0.13343386352062225, 0.03214501217007637, 0.26970893144607544, -0.12728320062160492, 0.0700472816824913, -0.26097342371940613, 0.18517830967903137, -0.14774858951568604, -0.13589896261692047, 0.21952813863754272, -0.10117963701486588, -0.2613200545310974, -0.11490147560834885, 0.04307026043534279, 0.35794609785079956, -0.3545021116733551, 0.03310193121433258, 0.10023324191570282, -0.36142754554748535, -0.4015990197658539, 0.20640678703784943, 0.11531835794448853, -0.06460592150688171, 0.1858983337879181, 0.05169425904750824, -0.2865358591079712, -0.1886257529258728, -0.0679001584649086, 0.037985894829034805, -0.2758159935474396, 0.349059134721756, 0.084368035197258, -0.2180781364440918, -0.4457290470600128, -0.1964159607887268, -0.007221614010632038, 0.10564989596605301, 0.10193149000406265, 0.15361180901527405, -0.06053105741739273, 0.15703509747982025, 0.3156445026397705, 0.16922014951705933, 0.2334071397781372, -0.15972110629081726, -0.32130560278892517, -0.49343547224998474, 0.018454477190971375, 0.07935628294944763, 0.36070388555526733, 0.03827683627605438, 0.21585042774677277, 0.09256255626678467, 0.20557354390621185, -0.46271955966949463, -0.15653200447559357, -0.4160328507423401, 0.25498077273368835, 0.2558508813381195, -0.2441190779209137, 0.12404116243124008, -0.11817079782485962, 0.25043752789497375, -0.2725626826286316, -0.22079971432685852, -0.34717679023742676, 0.031083129346370697, 0.0839589461684227, 0.039443597197532654, 0.10598865896463394, 0.11668737232685089, -0.01566126197576523, 0.03789222240447998, -0.18566569685935974, 0.0567716620862484, 0.1196267381310463, -0.022443659603595734, 0.07418611645698547, -0.0010184980928897858, 0.0007751211524009705, 0.1582110971212387, -0.08715716749429703, 0.026365265250205994, 0.07777708023786545, -0.013944383710622787, 0.17709079384803772, 0.006036895327270031, -0.14454053342342377, 0.08458642661571503, 0.04478175938129425, 0.3536662459373474, 0.2810605764389038, 0.10532893240451813, -0.14266422390937805, -0.11579163372516632, 0.25817444920539856, 0.36836957931518555, 0.2648015022277832, -0.1516564041376114, 0.09841063618659973, -0.02995898574590683, 0.3410056233406067, -0.314388245344162, 0.006933724507689476, -0.011979775503277779, -0.1002984419465065, 0.3158012926578522, 0.23349249362945557, 0.11094191670417786, -0.026277650147676468, 0.28604698181152344, 0.10242519527673721, 0.3204469084739685, -0.27158111333847046, 0.2085440307855606, 0.15896925330162048, 0.01748443767428398, -0.017921585589647293, 0.329901784658432, 0.026477091014385223, -0.012414172291755676, 0.01229637861251831, -0.031216241419315338, 0.7026703953742981, 0.3049881160259247, 0.14563095569610596, 0.2559363842010498, 0.043827224522829056, 0.4126623272895813, -0.09235848486423492, 0.0340874120593071, 0.0036962516605854034, 0.14197073876857758, 0.34201425313949585, -0.04210212826728821, 0.009399931877851486, -0.2899925708770752, 0.01404104195535183, -0.1334627866744995, 0.11802826821804047, -0.06029396876692772, -0.19289836287498474, -0.100007064640522, -0.1421085000038147, 0.007591795176267624, -0.15544433891773224, 0.07775206118822098, -0.009079955518245697, -0.18992646038532257, -0.4334290325641632, 0.2623480558395386, 0.1384756863117218, 0.20053885877132416, -0.14700008928775787, 0.3133353888988495, 0.010053716599941254, -0.023398861289024353, -0.09352219104766846, 0.3266891539096832, 0.4660942256450653, 0.1478537768125534, 0.028413744643330574, 0.035443373024463654, -0.19499334692955017, -0.22903771698474884, -0.011831901036202908, 0.19690057635307312, -0.03179711848497391, -0.11418704688549042, 0.2586219906806946, 0.318480908870697, -0.33410584926605225, 0.059286266565322876, -0.0731341689825058, -0.33192604780197144, -0.2707034945487976, 0.3717935085296631, 0.20982982218265533, -0.3703364133834839, -0.19303642213344574, 0.16143715381622314, -0.3762992024421692, -0.02381277084350586, 0.5824489593505859, 0.12262747436761856, 0.0897345170378685, -0.1472722291946411, 0.1700601428747177, -0.03706547990441322, 0.25270316004753113, 0.28513067960739136, 0.25460678339004517, -0.45075932145118713, -0.06921640038490295, -0.4159463047981262, 0.16140805184841156, -0.025687243789434433, -0.2531205713748932, -0.1122681051492691, 0.07868334650993347, 0.17521452903747559, 0.21050909161567688, 0.2968277931213379, -0.05577963963150978, 0.372473806142807, -0.07961183786392212, -0.4277050197124481, 0.2658264935016632, 0.11851829290390015, -0.03986084461212158, 0.20294731855392456, -0.3432201147079468, -0.005481254309415817, 0.016064777970314026, 0.1774984896183014, -0.22595669329166412, -0.0048260875046253204, 0.5120174884796143, -0.014765717089176178, 0.3608585000038147, -0.005301130935549736, 0.6363608837127686, -0.19056499004364014, 0.0730057954788208, -0.07941614091396332, -0.18852688372135162, -0.11934240907430649, 0.17865681648254395, -0.07433606684207916, 0.15547986328601837, -0.12149108946323395, -0.1850329041481018, -0.17542822659015656, 0.03216118738055229, 0.22385720908641815, -0.4224950075149536, 0.06393609941005707, 0.0027572140097618103, 0.025616809725761414, 0.045561593025922775, -0.03974291309714317, 0.14227843284606934, 0.06608089804649353, 0.12356814742088318, -0.32270509004592896, -0.5978801250457764, 0.4406876564025879, -0.14908088743686676, -0.18074050545692444, -0.22611652314662933, 0.3114483952522278, 0.16380369663238525, 0.1279468983411789, -0.4151049256324768, -0.002068445086479187, 0.3782366216182709, -0.15466266870498657, -0.2402324378490448, 0.4471985697746277, 0.034259915351867676, 0.10265481472015381, -0.001616448163986206, 0.5798860788345337, -0.044513411819934845, 0.027823230251669884, -0.1949494630098343, -0.3310086727142334 ]
https://github.com/huggingface/datasets/pull/37
[Datasets ToDo-List] add datasets
https://github.com/huggingface/nlp/pull/15 - But it's probably best to checkout into this branch and look how the dummy data strtucture is for `squad` for example.
## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset*
23
text: [Datasets ToDo-List] add datasets ## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset* https://github.com/huggingface/nlp/pull/15 - But it's probably best to checkout into this branch and look how the dummy data strtucture is for `squad` for example.
[ -0.36062461137771606, -0.01891462504863739, -0.20555710792541504, -0.08905917406082153, 0.18992669880390167, 0.3937821686267853, 0.19146427512168884, 0.4020628333091736, -0.004814449697732925, 0.11977867037057877, -0.029464950785040855, 0.3761882483959198, -0.15959471464157104, 0.3286758065223694, -0.06332308053970337, 0.04539939761161804, 0.047149065881967545, 0.19886814057826996, 0.2856498658657074, 0.022719278931617737, -0.19934575259685516, -0.0331290066242218, -0.07195998728275299, -0.10711635649204254, -0.16605424880981445, -0.27150800824165344, -0.1285523772239685, -0.03540799021720886, -0.3832022547721863, -0.41351261734962463, 0.160700261592865, 0.47917842864990234, -0.2005925476551056, 0.3211474120616913, -0.00010768510401248932, -0.11825890094041824, 0.36977916955947876, 0.05251564085483551, -0.41128310561180115, -0.2100948840379715, 0.23091807961463928, -0.17642715573310852, 0.07896902412176132, -0.4183642566204071, -0.16783565282821655, -0.21708014607429504, -0.16984833776950836, -0.1973923295736313, 0.09566235542297363, 0.3995109498500824, 0.2751508951187134, 0.4333927631378174, -0.12054625153541565, -0.26433008909225464, 0.3233015239238739, 0.17265433073043823, -0.2674967348575592, -0.041062284260988235, 0.2921402156352997, -0.08841771632432938, 0.12906399369239807, 0.15101012587547302, -0.16839975118637085, 0.07841603457927704, -0.010756857693195343, -0.14963029325008392, 0.04789577051997185, -0.32783761620521545, 0.043004993349313736, -0.03752395510673523, 0.5430710315704346, -0.38085445761680603, -0.10329841077327728, -0.02728450670838356, 0.03763003647327423, -0.5227769017219543, -0.11269014328718185, -0.10105019062757492, -0.06754390150308609, -0.13377512991428375, -0.2800821363925934, -0.006148373708128929, -0.08331073075532913, 0.32252055406570435, 0.03101498633623123, 0.05460450425744057, -0.008682177402079105, 0.01622101292014122, 0.13872864842414856, 0.041338980197906494, 0.23708243668079376, -0.13160136342048645, -0.018251609057188034, -0.09243401139974594, -0.3375409245491028, -0.2695382833480835, 0.3074418604373932, 0.09116370975971222, 0.2220226228237152, 0.2522224485874176, -0.25071728229522705, -0.006073884665966034, 0.11728638410568237, 0.18929538130760193, -0.060767631977796555, 0.11630058288574219, 0.2120148241519928, 0.35634294152259827, 0.17035648226737976, 0.004410606808960438, 0.04782554879784584, 0.06072754040360451, -0.04841253533959389, -0.0712893158197403, 0.17832280695438385, -0.09598688781261444, 0.29605865478515625, -0.17189393937587738, -0.4081246256828308, 0.06875576078891754, -0.05436814948916435, -0.15358097851276398, 0.009891007095575333, 0.44738513231277466, 0.07648056000471115, 0.006729058921337128, -0.11269132047891617, 0.2840780019760132, -0.050093427300453186, 0.23535317182540894, -0.29684457182884216, 0.15743115544319153, -0.17169691622257233, -0.017115620896220207, 0.3970138430595398, 0.08660660684108734, 0.28736451268196106, -0.050607748329639435, 0.27567631006240845, -0.08993006497621536, 0.2934209108352661, -0.14340603351593018, 0.12152940779924393, 0.20421044528484344, 0.008914865553379059, 0.067230723798275, 0.16929177939891815, -0.14290064573287964, -0.25663891434669495, 0.266108900308609, -0.03944841027259827, -0.24834519624710083, 0.09953419864177704, 0.3536931276321411, -0.1464611291885376, -0.1936441957950592, -0.3638398051261902, 0.16370129585266113, 0.10439542680978775, 0.036443766206502914, 0.10242091864347458, -0.2645930051803589, 0.05393446609377861, -0.15526193380355835, 0.167822927236557, 0.4860353469848633, -0.18091295659542084, -0.06335752457380295, -0.2044723778963089, -0.10475645959377289, 0.15799561142921448, 0.11377492547035217, -0.11110803484916687, 0.2681911885738373, -0.1872299462556839, -0.016051113605499268, 0.26482605934143066, -0.4225255846977234, -0.14174535870552063, -0.07793448120355606, -0.20237116515636444, -0.0808541551232338, 0.1537030190229416, 0.17729638516902924, 0.2600100040435791, -0.016039187088608742, -0.16477060317993164, 0.08191454410552979, -0.2357105314731598, -0.016012288630008698, -0.27121812105178833, -0.25088268518447876, 0.15702250599861145, 0.25441694259643555, 0.30964744091033936, -0.14702418446540833, 0.15465380251407623, -0.011134037747979164, 0.18536213040351868, -0.15082800388336182, -0.025137996301054955, 0.09049496054649353, 0.48244181275367737, -0.04865962266921997, -0.0746663436293602, -0.25784316658973694, -0.38893622159957886, 0.05056385695934296, 0.41079181432724, 0.1200971007347107, 0.042461201548576355, -0.2990524172782898, -0.4513701796531677, -0.0010593961924314499, -0.32149559259414673, -0.21344970166683197, 0.21232067048549652, 0.3533979058265686, 0.1440936177968979, -0.21047420799732208, -0.24853050708770752, 0.0257741529494524, -0.4604133069515228, 0.03886207938194275, 0.010827233083546162, 0.38994839787483215, -0.2165013551712036, -0.03490486368536949, 0.04918283224105835, 0.26236703991889954, 0.11105111241340637, -0.1383916437625885, 0.04054988920688629, 0.17286819219589233, 0.0014789528213441372, 0.09525682032108307, 0.4135585129261017, 0.2883051335811615, 0.22267261147499084, -0.43510207533836365, -0.0435008704662323, 0.04712215065956116, 0.04289152845740318, -0.2206507921218872, -0.045707061886787415, 0.21625104546546936, -0.15427762269973755, 0.14071162045001984, 0.0575002059340477, -0.2021365761756897, 0.11309826374053955, -0.004342909902334213, -0.11888439208269119, -0.21574591100215912, 0.299551397562027, 0.3239169120788574, 0.28917282819747925, -0.06850128620862961, -0.010007448494434357, 0.22225287556648254, 0.4561719298362732, -0.03592528775334358, -0.1960795521736145, 0.12715201079845428, -0.10765335708856583, -0.061441510915756226, -0.09555254131555557, 0.08882880210876465, 0.31018316745758057, 0.3800759017467499, -0.006528858095407486, -0.12741166353225708, -0.04067250341176987, -0.2119494080543518, 0.11776462942361832, 0.22264908254146576, -0.010638638399541378, 0.14389696717262268, 0.3192541003227234, -0.06169411912560463, -0.354074627161026, -0.2897583842277527, 0.11100637167692184, 0.2618117034435272, -0.15220580995082855, -0.1833139806985855, -0.041194528341293335, -0.29504022002220154, 0.14480553567409515, -0.16624815762043, 0.12760236859321594, -0.37159645557403564, 0.08635841310024261, 0.1318511813879013, -0.06757968664169312, 0.3048303425312042, -0.07344754040241241, 0.261544793844223, 0.0030518826097249985, -0.3765866458415985, -0.2918950319290161, -0.32854926586151123, -0.08067426085472107, 0.2354450821876526, -0.033593498170375824, -0.20099683105945587, 0.7600569128990173, -0.1351310908794403, 0.08821094036102295, -0.4678373634815216, -0.5150236487388611, 0.21946845948696136, -0.2579531669616699, 0.23176588118076324, -0.008577495813369751, 0.13007588684558868, 0.07006700336933136, -0.336824893951416, 0.2588084936141968, -0.18185944855213165, -0.1850438266992569, -0.12924566864967346, -0.03579661622643471, -0.0656168982386589, -0.13634541630744934, -0.6234620213508606, -0.2106674313545227, -0.37859052419662476, 0.021273210644721985, 0.17782369256019592, 0.10002458095550537, 0.21031521260738373, -0.0325947105884552, 0.08152162283658981, -0.03045235387980938, 0.11122342199087143, -0.2166604846715927, -0.23142211139202118, 0.08877173811197281, -0.19215333461761475, -0.2241366058588028, 0.05967843905091286, -0.10030492395162582, 0.19724293053150177, -0.15631918609142303, -0.3722827434539795, -0.4782860279083252, -0.24855364859104156, 0.5902325510978699, 0.07697224617004395, -0.11021193861961365, 0.20587721467018127, 0.25345709919929504, -0.24202558398246765, -0.08264930546283722, -0.29348045587539673, -0.0038160979747772217, 0.0697304904460907, 0.2621529996395111, -0.30456429719924927, 0.1727921962738037, -0.11028958857059479, 0.653204619884491, 0.27887600660324097, -0.2185070961713791, 0.1870352029800415, -0.043306052684783936, 0.4104481637477875, -0.19066795706748962, -0.5153353214263916, 0.2893575131893158, -0.06452558934688568, -0.23881706595420837, 0.2791632115840912, -0.061436161398887634, -0.17500245571136475, -0.06902623921632767, 0.27786189317703247, -0.1863115131855011, 0.08165381848812103, -0.08909767121076584, -0.1059579998254776, 0.15051592886447906, -0.15072743594646454, 0.038356609642505646, -0.23315972089767456, -0.12381253391504288, 0.023624766618013382, 0.48839253187179565, -0.021644361317157745, -0.10063788294792175, -0.34721383452415466, 0.046250540763139725, -0.33144909143447876, 0.19288036227226257, -0.08460405468940735, 0.012603149749338627, -0.2350456714630127, -0.023661956191062927, -0.09308552742004395, -0.05115429684519768, 0.2890796363353729, -0.17768998444080353, -0.07760117202997208, 0.5592139959335327, 0.10670046508312225, 0.044208332896232605, -0.08047611266374588, -0.42935657501220703, 0.14064234495162964, 0.35322195291519165, 0.4971616864204407, -0.31642282009124756, -0.08569307625293732, 0.30027833580970764, 0.2188878059387207, 0.08273361623287201, -0.13161875307559967, -0.18068791925907135, -0.35730016231536865, -0.3141913115978241, 0.35050562024116516, -0.059389255940914154, 0.17876873910427094, -0.39611193537712097, -0.3240809142589569, 0.042845919728279114, -0.21229183673858643, 0.22983555495738983, 0.12183597683906555, 0.12127286195755005, 0.09841031581163406, 0.25037261843681335, -0.1389746218919754, -0.03490569442510605, 0.598404049873352, 0.2365911900997162, -0.3184282183647156, -0.028508327901363373, -0.02137516438961029, -0.1435743123292923, 0.3907926380634308, 0.046263471245765686, -0.01952359452843666, 0.25869524478912354, -0.2995572090148926, 0.21859711408615112, -0.032662004232406616, 0.3211396336555481, 0.33808740973472595, 0.13319629430770874, -0.29188573360443115, -0.2706162631511688, 0.0674903467297554, 0.2668323814868927, -0.0296236090362072, 0.3393367826938629, -0.11404071748256683, -0.10821014642715454, 0.18671800196170807, 0.1192159354686737, 0.9459074139595032, -0.26806217432022095, -0.02782939001917839, 0.20607194304466248, -0.05866667628288269, 0.34560626745224, -0.15352801978588104, 0.10359463095664978, -0.1422325223684311, -0.10424397140741348, 0.16987654566764832, -0.1567327380180359, 0.25448092818260193, 0.020053595304489136, -0.39715632796287537, 0.21499618887901306, -0.12357057631015778, 0.46028488874435425, 0.13634121417999268, 0.23761224746704102, 0.07387560606002808, -0.16250957548618317, -0.17274470627307892, 0.27569183707237244, -0.17444652318954468, 0.22128942608833313, -0.1880665123462677, 0.06948597729206085, 0.04288659617304802, -0.16030187904834747, -0.17790499329566956, -0.022709380835294724, -0.20352715253829956, 0.041465260088443756, -0.37342262268066406, -0.43701446056365967, -0.02618490904569626, 0.12416104972362518, 0.2169870138168335, 0.2918284833431244, -0.13343386352062225, 0.03214501217007637, 0.26970893144607544, -0.12728320062160492, 0.0700472816824913, -0.26097342371940613, 0.18517830967903137, -0.14774858951568604, -0.13589896261692047, 0.21952813863754272, -0.10117963701486588, -0.2613200545310974, -0.11490147560834885, 0.04307026043534279, 0.35794609785079956, -0.3545021116733551, 0.03310193121433258, 0.10023324191570282, -0.36142754554748535, -0.4015990197658539, 0.20640678703784943, 0.11531835794448853, -0.06460592150688171, 0.1858983337879181, 0.05169425904750824, -0.2865358591079712, -0.1886257529258728, -0.0679001584649086, 0.037985894829034805, -0.2758159935474396, 0.349059134721756, 0.084368035197258, -0.2180781364440918, -0.4457290470600128, -0.1964159607887268, -0.007221614010632038, 0.10564989596605301, 0.10193149000406265, 0.15361180901527405, -0.06053105741739273, 0.15703509747982025, 0.3156445026397705, 0.16922014951705933, 0.2334071397781372, -0.15972110629081726, -0.32130560278892517, -0.49343547224998474, 0.018454477190971375, 0.07935628294944763, 0.36070388555526733, 0.03827683627605438, 0.21585042774677277, 0.09256255626678467, 0.20557354390621185, -0.46271955966949463, -0.15653200447559357, -0.4160328507423401, 0.25498077273368835, 0.2558508813381195, -0.2441190779209137, 0.12404116243124008, -0.11817079782485962, 0.25043752789497375, -0.2725626826286316, -0.22079971432685852, -0.34717679023742676, 0.031083129346370697, 0.0839589461684227, 0.039443597197532654, 0.10598865896463394, 0.11668737232685089, -0.01566126197576523, 0.03789222240447998, -0.18566569685935974, 0.0567716620862484, 0.1196267381310463, -0.022443659603595734, 0.07418611645698547, -0.0010184980928897858, 0.0007751211524009705, 0.1582110971212387, -0.08715716749429703, 0.026365265250205994, 0.07777708023786545, -0.013944383710622787, 0.17709079384803772, 0.006036895327270031, -0.14454053342342377, 0.08458642661571503, 0.04478175938129425, 0.3536662459373474, 0.2810605764389038, 0.10532893240451813, -0.14266422390937805, -0.11579163372516632, 0.25817444920539856, 0.36836957931518555, 0.2648015022277832, -0.1516564041376114, 0.09841063618659973, -0.02995898574590683, 0.3410056233406067, -0.314388245344162, 0.006933724507689476, -0.011979775503277779, -0.1002984419465065, 0.3158012926578522, 0.23349249362945557, 0.11094191670417786, -0.026277650147676468, 0.28604698181152344, 0.10242519527673721, 0.3204469084739685, -0.27158111333847046, 0.2085440307855606, 0.15896925330162048, 0.01748443767428398, -0.017921585589647293, 0.329901784658432, 0.026477091014385223, -0.012414172291755676, 0.01229637861251831, -0.031216241419315338, 0.7026703953742981, 0.3049881160259247, 0.14563095569610596, 0.2559363842010498, 0.043827224522829056, 0.4126623272895813, -0.09235848486423492, 0.0340874120593071, 0.0036962516605854034, 0.14197073876857758, 0.34201425313949585, -0.04210212826728821, 0.009399931877851486, -0.2899925708770752, 0.01404104195535183, -0.1334627866744995, 0.11802826821804047, -0.06029396876692772, -0.19289836287498474, -0.100007064640522, -0.1421085000038147, 0.007591795176267624, -0.15544433891773224, 0.07775206118822098, -0.009079955518245697, -0.18992646038532257, -0.4334290325641632, 0.2623480558395386, 0.1384756863117218, 0.20053885877132416, -0.14700008928775787, 0.3133353888988495, 0.010053716599941254, -0.023398861289024353, -0.09352219104766846, 0.3266891539096832, 0.4660942256450653, 0.1478537768125534, 0.028413744643330574, 0.035443373024463654, -0.19499334692955017, -0.22903771698474884, -0.011831901036202908, 0.19690057635307312, -0.03179711848497391, -0.11418704688549042, 0.2586219906806946, 0.318480908870697, -0.33410584926605225, 0.059286266565322876, -0.0731341689825058, -0.33192604780197144, -0.2707034945487976, 0.3717935085296631, 0.20982982218265533, -0.3703364133834839, -0.19303642213344574, 0.16143715381622314, -0.3762992024421692, -0.02381277084350586, 0.5824489593505859, 0.12262747436761856, 0.0897345170378685, -0.1472722291946411, 0.1700601428747177, -0.03706547990441322, 0.25270316004753113, 0.28513067960739136, 0.25460678339004517, -0.45075932145118713, -0.06921640038490295, -0.4159463047981262, 0.16140805184841156, -0.025687243789434433, -0.2531205713748932, -0.1122681051492691, 0.07868334650993347, 0.17521452903747559, 0.21050909161567688, 0.2968277931213379, -0.05577963963150978, 0.372473806142807, -0.07961183786392212, -0.4277050197124481, 0.2658264935016632, 0.11851829290390015, -0.03986084461212158, 0.20294731855392456, -0.3432201147079468, -0.005481254309415817, 0.016064777970314026, 0.1774984896183014, -0.22595669329166412, -0.0048260875046253204, 0.5120174884796143, -0.014765717089176178, 0.3608585000038147, -0.005301130935549736, 0.6363608837127686, -0.19056499004364014, 0.0730057954788208, -0.07941614091396332, -0.18852688372135162, -0.11934240907430649, 0.17865681648254395, -0.07433606684207916, 0.15547986328601837, -0.12149108946323395, -0.1850329041481018, -0.17542822659015656, 0.03216118738055229, 0.22385720908641815, -0.4224950075149536, 0.06393609941005707, 0.0027572140097618103, 0.025616809725761414, 0.045561593025922775, -0.03974291309714317, 0.14227843284606934, 0.06608089804649353, 0.12356814742088318, -0.32270509004592896, -0.5978801250457764, 0.4406876564025879, -0.14908088743686676, -0.18074050545692444, -0.22611652314662933, 0.3114483952522278, 0.16380369663238525, 0.1279468983411789, -0.4151049256324768, -0.002068445086479187, 0.3782366216182709, -0.15466266870498657, -0.2402324378490448, 0.4471985697746277, 0.034259915351867676, 0.10265481472015381, -0.001616448163986206, 0.5798860788345337, -0.044513411819934845, 0.027823230251669884, -0.1949494630098343, -0.3310086727142334 ]
https://github.com/huggingface/datasets/pull/37
[Datasets ToDo-List] add datasets
> are lock files supposed to stay ? Not sure! I think the checksum command creates them, so I just uploaded them as well.
## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset*
24
text: [Datasets ToDo-List] add datasets ## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset* > are lock files supposed to stay ? Not sure! I think the checksum command creates them, so I just uploaded them as well.
[ -0.36062461137771606, -0.01891462504863739, -0.20555710792541504, -0.08905917406082153, 0.18992669880390167, 0.3937821686267853, 0.19146427512168884, 0.4020628333091736, -0.004814449697732925, 0.11977867037057877, -0.029464950785040855, 0.3761882483959198, -0.15959471464157104, 0.3286758065223694, -0.06332308053970337, 0.04539939761161804, 0.047149065881967545, 0.19886814057826996, 0.2856498658657074, 0.022719278931617737, -0.19934575259685516, -0.0331290066242218, -0.07195998728275299, -0.10711635649204254, -0.16605424880981445, -0.27150800824165344, -0.1285523772239685, -0.03540799021720886, -0.3832022547721863, -0.41351261734962463, 0.160700261592865, 0.47917842864990234, -0.2005925476551056, 0.3211474120616913, -0.00010768510401248932, -0.11825890094041824, 0.36977916955947876, 0.05251564085483551, -0.41128310561180115, -0.2100948840379715, 0.23091807961463928, -0.17642715573310852, 0.07896902412176132, -0.4183642566204071, -0.16783565282821655, -0.21708014607429504, -0.16984833776950836, -0.1973923295736313, 0.09566235542297363, 0.3995109498500824, 0.2751508951187134, 0.4333927631378174, -0.12054625153541565, -0.26433008909225464, 0.3233015239238739, 0.17265433073043823, -0.2674967348575592, -0.041062284260988235, 0.2921402156352997, -0.08841771632432938, 0.12906399369239807, 0.15101012587547302, -0.16839975118637085, 0.07841603457927704, -0.010756857693195343, -0.14963029325008392, 0.04789577051997185, -0.32783761620521545, 0.043004993349313736, -0.03752395510673523, 0.5430710315704346, -0.38085445761680603, -0.10329841077327728, -0.02728450670838356, 0.03763003647327423, -0.5227769017219543, -0.11269014328718185, -0.10105019062757492, -0.06754390150308609, -0.13377512991428375, -0.2800821363925934, -0.006148373708128929, -0.08331073075532913, 0.32252055406570435, 0.03101498633623123, 0.05460450425744057, -0.008682177402079105, 0.01622101292014122, 0.13872864842414856, 0.041338980197906494, 0.23708243668079376, -0.13160136342048645, -0.018251609057188034, -0.09243401139974594, -0.3375409245491028, -0.2695382833480835, 0.3074418604373932, 0.09116370975971222, 0.2220226228237152, 0.2522224485874176, -0.25071728229522705, -0.006073884665966034, 0.11728638410568237, 0.18929538130760193, -0.060767631977796555, 0.11630058288574219, 0.2120148241519928, 0.35634294152259827, 0.17035648226737976, 0.004410606808960438, 0.04782554879784584, 0.06072754040360451, -0.04841253533959389, -0.0712893158197403, 0.17832280695438385, -0.09598688781261444, 0.29605865478515625, -0.17189393937587738, -0.4081246256828308, 0.06875576078891754, -0.05436814948916435, -0.15358097851276398, 0.009891007095575333, 0.44738513231277466, 0.07648056000471115, 0.006729058921337128, -0.11269132047891617, 0.2840780019760132, -0.050093427300453186, 0.23535317182540894, -0.29684457182884216, 0.15743115544319153, -0.17169691622257233, -0.017115620896220207, 0.3970138430595398, 0.08660660684108734, 0.28736451268196106, -0.050607748329639435, 0.27567631006240845, -0.08993006497621536, 0.2934209108352661, -0.14340603351593018, 0.12152940779924393, 0.20421044528484344, 0.008914865553379059, 0.067230723798275, 0.16929177939891815, -0.14290064573287964, -0.25663891434669495, 0.266108900308609, -0.03944841027259827, -0.24834519624710083, 0.09953419864177704, 0.3536931276321411, -0.1464611291885376, -0.1936441957950592, -0.3638398051261902, 0.16370129585266113, 0.10439542680978775, 0.036443766206502914, 0.10242091864347458, -0.2645930051803589, 0.05393446609377861, -0.15526193380355835, 0.167822927236557, 0.4860353469848633, -0.18091295659542084, -0.06335752457380295, -0.2044723778963089, -0.10475645959377289, 0.15799561142921448, 0.11377492547035217, -0.11110803484916687, 0.2681911885738373, -0.1872299462556839, -0.016051113605499268, 0.26482605934143066, -0.4225255846977234, -0.14174535870552063, -0.07793448120355606, -0.20237116515636444, -0.0808541551232338, 0.1537030190229416, 0.17729638516902924, 0.2600100040435791, -0.016039187088608742, -0.16477060317993164, 0.08191454410552979, -0.2357105314731598, -0.016012288630008698, -0.27121812105178833, -0.25088268518447876, 0.15702250599861145, 0.25441694259643555, 0.30964744091033936, -0.14702418446540833, 0.15465380251407623, -0.011134037747979164, 0.18536213040351868, -0.15082800388336182, -0.025137996301054955, 0.09049496054649353, 0.48244181275367737, -0.04865962266921997, -0.0746663436293602, -0.25784316658973694, -0.38893622159957886, 0.05056385695934296, 0.41079181432724, 0.1200971007347107, 0.042461201548576355, -0.2990524172782898, -0.4513701796531677, -0.0010593961924314499, -0.32149559259414673, -0.21344970166683197, 0.21232067048549652, 0.3533979058265686, 0.1440936177968979, -0.21047420799732208, -0.24853050708770752, 0.0257741529494524, -0.4604133069515228, 0.03886207938194275, 0.010827233083546162, 0.38994839787483215, -0.2165013551712036, -0.03490486368536949, 0.04918283224105835, 0.26236703991889954, 0.11105111241340637, -0.1383916437625885, 0.04054988920688629, 0.17286819219589233, 0.0014789528213441372, 0.09525682032108307, 0.4135585129261017, 0.2883051335811615, 0.22267261147499084, -0.43510207533836365, -0.0435008704662323, 0.04712215065956116, 0.04289152845740318, -0.2206507921218872, -0.045707061886787415, 0.21625104546546936, -0.15427762269973755, 0.14071162045001984, 0.0575002059340477, -0.2021365761756897, 0.11309826374053955, -0.004342909902334213, -0.11888439208269119, -0.21574591100215912, 0.299551397562027, 0.3239169120788574, 0.28917282819747925, -0.06850128620862961, -0.010007448494434357, 0.22225287556648254, 0.4561719298362732, -0.03592528775334358, -0.1960795521736145, 0.12715201079845428, -0.10765335708856583, -0.061441510915756226, -0.09555254131555557, 0.08882880210876465, 0.31018316745758057, 0.3800759017467499, -0.006528858095407486, -0.12741166353225708, -0.04067250341176987, -0.2119494080543518, 0.11776462942361832, 0.22264908254146576, -0.010638638399541378, 0.14389696717262268, 0.3192541003227234, -0.06169411912560463, -0.354074627161026, -0.2897583842277527, 0.11100637167692184, 0.2618117034435272, -0.15220580995082855, -0.1833139806985855, -0.041194528341293335, -0.29504022002220154, 0.14480553567409515, -0.16624815762043, 0.12760236859321594, -0.37159645557403564, 0.08635841310024261, 0.1318511813879013, -0.06757968664169312, 0.3048303425312042, -0.07344754040241241, 0.261544793844223, 0.0030518826097249985, -0.3765866458415985, -0.2918950319290161, -0.32854926586151123, -0.08067426085472107, 0.2354450821876526, -0.033593498170375824, -0.20099683105945587, 0.7600569128990173, -0.1351310908794403, 0.08821094036102295, -0.4678373634815216, -0.5150236487388611, 0.21946845948696136, -0.2579531669616699, 0.23176588118076324, -0.008577495813369751, 0.13007588684558868, 0.07006700336933136, -0.336824893951416, 0.2588084936141968, -0.18185944855213165, -0.1850438266992569, -0.12924566864967346, -0.03579661622643471, -0.0656168982386589, -0.13634541630744934, -0.6234620213508606, -0.2106674313545227, -0.37859052419662476, 0.021273210644721985, 0.17782369256019592, 0.10002458095550537, 0.21031521260738373, -0.0325947105884552, 0.08152162283658981, -0.03045235387980938, 0.11122342199087143, -0.2166604846715927, -0.23142211139202118, 0.08877173811197281, -0.19215333461761475, -0.2241366058588028, 0.05967843905091286, -0.10030492395162582, 0.19724293053150177, -0.15631918609142303, -0.3722827434539795, -0.4782860279083252, -0.24855364859104156, 0.5902325510978699, 0.07697224617004395, -0.11021193861961365, 0.20587721467018127, 0.25345709919929504, -0.24202558398246765, -0.08264930546283722, -0.29348045587539673, -0.0038160979747772217, 0.0697304904460907, 0.2621529996395111, -0.30456429719924927, 0.1727921962738037, -0.11028958857059479, 0.653204619884491, 0.27887600660324097, -0.2185070961713791, 0.1870352029800415, -0.043306052684783936, 0.4104481637477875, -0.19066795706748962, -0.5153353214263916, 0.2893575131893158, -0.06452558934688568, -0.23881706595420837, 0.2791632115840912, -0.061436161398887634, -0.17500245571136475, -0.06902623921632767, 0.27786189317703247, -0.1863115131855011, 0.08165381848812103, -0.08909767121076584, -0.1059579998254776, 0.15051592886447906, -0.15072743594646454, 0.038356609642505646, -0.23315972089767456, -0.12381253391504288, 0.023624766618013382, 0.48839253187179565, -0.021644361317157745, -0.10063788294792175, -0.34721383452415466, 0.046250540763139725, -0.33144909143447876, 0.19288036227226257, -0.08460405468940735, 0.012603149749338627, -0.2350456714630127, -0.023661956191062927, -0.09308552742004395, -0.05115429684519768, 0.2890796363353729, -0.17768998444080353, -0.07760117202997208, 0.5592139959335327, 0.10670046508312225, 0.044208332896232605, -0.08047611266374588, -0.42935657501220703, 0.14064234495162964, 0.35322195291519165, 0.4971616864204407, -0.31642282009124756, -0.08569307625293732, 0.30027833580970764, 0.2188878059387207, 0.08273361623287201, -0.13161875307559967, -0.18068791925907135, -0.35730016231536865, -0.3141913115978241, 0.35050562024116516, -0.059389255940914154, 0.17876873910427094, -0.39611193537712097, -0.3240809142589569, 0.042845919728279114, -0.21229183673858643, 0.22983555495738983, 0.12183597683906555, 0.12127286195755005, 0.09841031581163406, 0.25037261843681335, -0.1389746218919754, -0.03490569442510605, 0.598404049873352, 0.2365911900997162, -0.3184282183647156, -0.028508327901363373, -0.02137516438961029, -0.1435743123292923, 0.3907926380634308, 0.046263471245765686, -0.01952359452843666, 0.25869524478912354, -0.2995572090148926, 0.21859711408615112, -0.032662004232406616, 0.3211396336555481, 0.33808740973472595, 0.13319629430770874, -0.29188573360443115, -0.2706162631511688, 0.0674903467297554, 0.2668323814868927, -0.0296236090362072, 0.3393367826938629, -0.11404071748256683, -0.10821014642715454, 0.18671800196170807, 0.1192159354686737, 0.9459074139595032, -0.26806217432022095, -0.02782939001917839, 0.20607194304466248, -0.05866667628288269, 0.34560626745224, -0.15352801978588104, 0.10359463095664978, -0.1422325223684311, -0.10424397140741348, 0.16987654566764832, -0.1567327380180359, 0.25448092818260193, 0.020053595304489136, -0.39715632796287537, 0.21499618887901306, -0.12357057631015778, 0.46028488874435425, 0.13634121417999268, 0.23761224746704102, 0.07387560606002808, -0.16250957548618317, -0.17274470627307892, 0.27569183707237244, -0.17444652318954468, 0.22128942608833313, -0.1880665123462677, 0.06948597729206085, 0.04288659617304802, -0.16030187904834747, -0.17790499329566956, -0.022709380835294724, -0.20352715253829956, 0.041465260088443756, -0.37342262268066406, -0.43701446056365967, -0.02618490904569626, 0.12416104972362518, 0.2169870138168335, 0.2918284833431244, -0.13343386352062225, 0.03214501217007637, 0.26970893144607544, -0.12728320062160492, 0.0700472816824913, -0.26097342371940613, 0.18517830967903137, -0.14774858951568604, -0.13589896261692047, 0.21952813863754272, -0.10117963701486588, -0.2613200545310974, -0.11490147560834885, 0.04307026043534279, 0.35794609785079956, -0.3545021116733551, 0.03310193121433258, 0.10023324191570282, -0.36142754554748535, -0.4015990197658539, 0.20640678703784943, 0.11531835794448853, -0.06460592150688171, 0.1858983337879181, 0.05169425904750824, -0.2865358591079712, -0.1886257529258728, -0.0679001584649086, 0.037985894829034805, -0.2758159935474396, 0.349059134721756, 0.084368035197258, -0.2180781364440918, -0.4457290470600128, -0.1964159607887268, -0.007221614010632038, 0.10564989596605301, 0.10193149000406265, 0.15361180901527405, -0.06053105741739273, 0.15703509747982025, 0.3156445026397705, 0.16922014951705933, 0.2334071397781372, -0.15972110629081726, -0.32130560278892517, -0.49343547224998474, 0.018454477190971375, 0.07935628294944763, 0.36070388555526733, 0.03827683627605438, 0.21585042774677277, 0.09256255626678467, 0.20557354390621185, -0.46271955966949463, -0.15653200447559357, -0.4160328507423401, 0.25498077273368835, 0.2558508813381195, -0.2441190779209137, 0.12404116243124008, -0.11817079782485962, 0.25043752789497375, -0.2725626826286316, -0.22079971432685852, -0.34717679023742676, 0.031083129346370697, 0.0839589461684227, 0.039443597197532654, 0.10598865896463394, 0.11668737232685089, -0.01566126197576523, 0.03789222240447998, -0.18566569685935974, 0.0567716620862484, 0.1196267381310463, -0.022443659603595734, 0.07418611645698547, -0.0010184980928897858, 0.0007751211524009705, 0.1582110971212387, -0.08715716749429703, 0.026365265250205994, 0.07777708023786545, -0.013944383710622787, 0.17709079384803772, 0.006036895327270031, -0.14454053342342377, 0.08458642661571503, 0.04478175938129425, 0.3536662459373474, 0.2810605764389038, 0.10532893240451813, -0.14266422390937805, -0.11579163372516632, 0.25817444920539856, 0.36836957931518555, 0.2648015022277832, -0.1516564041376114, 0.09841063618659973, -0.02995898574590683, 0.3410056233406067, -0.314388245344162, 0.006933724507689476, -0.011979775503277779, -0.1002984419465065, 0.3158012926578522, 0.23349249362945557, 0.11094191670417786, -0.026277650147676468, 0.28604698181152344, 0.10242519527673721, 0.3204469084739685, -0.27158111333847046, 0.2085440307855606, 0.15896925330162048, 0.01748443767428398, -0.017921585589647293, 0.329901784658432, 0.026477091014385223, -0.012414172291755676, 0.01229637861251831, -0.031216241419315338, 0.7026703953742981, 0.3049881160259247, 0.14563095569610596, 0.2559363842010498, 0.043827224522829056, 0.4126623272895813, -0.09235848486423492, 0.0340874120593071, 0.0036962516605854034, 0.14197073876857758, 0.34201425313949585, -0.04210212826728821, 0.009399931877851486, -0.2899925708770752, 0.01404104195535183, -0.1334627866744995, 0.11802826821804047, -0.06029396876692772, -0.19289836287498474, -0.100007064640522, -0.1421085000038147, 0.007591795176267624, -0.15544433891773224, 0.07775206118822098, -0.009079955518245697, -0.18992646038532257, -0.4334290325641632, 0.2623480558395386, 0.1384756863117218, 0.20053885877132416, -0.14700008928775787, 0.3133353888988495, 0.010053716599941254, -0.023398861289024353, -0.09352219104766846, 0.3266891539096832, 0.4660942256450653, 0.1478537768125534, 0.028413744643330574, 0.035443373024463654, -0.19499334692955017, -0.22903771698474884, -0.011831901036202908, 0.19690057635307312, -0.03179711848497391, -0.11418704688549042, 0.2586219906806946, 0.318480908870697, -0.33410584926605225, 0.059286266565322876, -0.0731341689825058, -0.33192604780197144, -0.2707034945487976, 0.3717935085296631, 0.20982982218265533, -0.3703364133834839, -0.19303642213344574, 0.16143715381622314, -0.3762992024421692, -0.02381277084350586, 0.5824489593505859, 0.12262747436761856, 0.0897345170378685, -0.1472722291946411, 0.1700601428747177, -0.03706547990441322, 0.25270316004753113, 0.28513067960739136, 0.25460678339004517, -0.45075932145118713, -0.06921640038490295, -0.4159463047981262, 0.16140805184841156, -0.025687243789434433, -0.2531205713748932, -0.1122681051492691, 0.07868334650993347, 0.17521452903747559, 0.21050909161567688, 0.2968277931213379, -0.05577963963150978, 0.372473806142807, -0.07961183786392212, -0.4277050197124481, 0.2658264935016632, 0.11851829290390015, -0.03986084461212158, 0.20294731855392456, -0.3432201147079468, -0.005481254309415817, 0.016064777970314026, 0.1774984896183014, -0.22595669329166412, -0.0048260875046253204, 0.5120174884796143, -0.014765717089176178, 0.3608585000038147, -0.005301130935549736, 0.6363608837127686, -0.19056499004364014, 0.0730057954788208, -0.07941614091396332, -0.18852688372135162, -0.11934240907430649, 0.17865681648254395, -0.07433606684207916, 0.15547986328601837, -0.12149108946323395, -0.1850329041481018, -0.17542822659015656, 0.03216118738055229, 0.22385720908641815, -0.4224950075149536, 0.06393609941005707, 0.0027572140097618103, 0.025616809725761414, 0.045561593025922775, -0.03974291309714317, 0.14227843284606934, 0.06608089804649353, 0.12356814742088318, -0.32270509004592896, -0.5978801250457764, 0.4406876564025879, -0.14908088743686676, -0.18074050545692444, -0.22611652314662933, 0.3114483952522278, 0.16380369663238525, 0.1279468983411789, -0.4151049256324768, -0.002068445086479187, 0.3782366216182709, -0.15466266870498657, -0.2402324378490448, 0.4471985697746277, 0.034259915351867676, 0.10265481472015381, -0.001616448163986206, 0.5798860788345337, -0.044513411819934845, 0.027823230251669884, -0.1949494630098343, -0.3310086727142334 ]
https://github.com/huggingface/datasets/pull/37
[Datasets ToDo-List] add datasets
We can trash the `lock` file, they are dummy file that are only used to avoid concurrent access when the library is run. You can read the filelock readme and code, it's a very simple single-file library: https://github.com/benediktschmitt/py-filelock
## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset*
38
text: [Datasets ToDo-List] add datasets ## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset* We can trash the `lock` file, they are dummy file that are only used to avoid concurrent access when the library is run. You can read the filelock readme and code, it's a very simple single-file library: https://github.com/benediktschmitt/py-filelock
[ -0.36062461137771606, -0.01891462504863739, -0.20555710792541504, -0.08905917406082153, 0.18992669880390167, 0.3937821686267853, 0.19146427512168884, 0.4020628333091736, -0.004814449697732925, 0.11977867037057877, -0.029464950785040855, 0.3761882483959198, -0.15959471464157104, 0.3286758065223694, -0.06332308053970337, 0.04539939761161804, 0.047149065881967545, 0.19886814057826996, 0.2856498658657074, 0.022719278931617737, -0.19934575259685516, -0.0331290066242218, -0.07195998728275299, -0.10711635649204254, -0.16605424880981445, -0.27150800824165344, -0.1285523772239685, -0.03540799021720886, -0.3832022547721863, -0.41351261734962463, 0.160700261592865, 0.47917842864990234, -0.2005925476551056, 0.3211474120616913, -0.00010768510401248932, -0.11825890094041824, 0.36977916955947876, 0.05251564085483551, -0.41128310561180115, -0.2100948840379715, 0.23091807961463928, -0.17642715573310852, 0.07896902412176132, -0.4183642566204071, -0.16783565282821655, -0.21708014607429504, -0.16984833776950836, -0.1973923295736313, 0.09566235542297363, 0.3995109498500824, 0.2751508951187134, 0.4333927631378174, -0.12054625153541565, -0.26433008909225464, 0.3233015239238739, 0.17265433073043823, -0.2674967348575592, -0.041062284260988235, 0.2921402156352997, -0.08841771632432938, 0.12906399369239807, 0.15101012587547302, -0.16839975118637085, 0.07841603457927704, -0.010756857693195343, -0.14963029325008392, 0.04789577051997185, -0.32783761620521545, 0.043004993349313736, -0.03752395510673523, 0.5430710315704346, -0.38085445761680603, -0.10329841077327728, -0.02728450670838356, 0.03763003647327423, -0.5227769017219543, -0.11269014328718185, -0.10105019062757492, -0.06754390150308609, -0.13377512991428375, -0.2800821363925934, -0.006148373708128929, -0.08331073075532913, 0.32252055406570435, 0.03101498633623123, 0.05460450425744057, -0.008682177402079105, 0.01622101292014122, 0.13872864842414856, 0.041338980197906494, 0.23708243668079376, -0.13160136342048645, -0.018251609057188034, -0.09243401139974594, -0.3375409245491028, -0.2695382833480835, 0.3074418604373932, 0.09116370975971222, 0.2220226228237152, 0.2522224485874176, -0.25071728229522705, -0.006073884665966034, 0.11728638410568237, 0.18929538130760193, -0.060767631977796555, 0.11630058288574219, 0.2120148241519928, 0.35634294152259827, 0.17035648226737976, 0.004410606808960438, 0.04782554879784584, 0.06072754040360451, -0.04841253533959389, -0.0712893158197403, 0.17832280695438385, -0.09598688781261444, 0.29605865478515625, -0.17189393937587738, -0.4081246256828308, 0.06875576078891754, -0.05436814948916435, -0.15358097851276398, 0.009891007095575333, 0.44738513231277466, 0.07648056000471115, 0.006729058921337128, -0.11269132047891617, 0.2840780019760132, -0.050093427300453186, 0.23535317182540894, -0.29684457182884216, 0.15743115544319153, -0.17169691622257233, -0.017115620896220207, 0.3970138430595398, 0.08660660684108734, 0.28736451268196106, -0.050607748329639435, 0.27567631006240845, -0.08993006497621536, 0.2934209108352661, -0.14340603351593018, 0.12152940779924393, 0.20421044528484344, 0.008914865553379059, 0.067230723798275, 0.16929177939891815, -0.14290064573287964, -0.25663891434669495, 0.266108900308609, -0.03944841027259827, -0.24834519624710083, 0.09953419864177704, 0.3536931276321411, -0.1464611291885376, -0.1936441957950592, -0.3638398051261902, 0.16370129585266113, 0.10439542680978775, 0.036443766206502914, 0.10242091864347458, -0.2645930051803589, 0.05393446609377861, -0.15526193380355835, 0.167822927236557, 0.4860353469848633, -0.18091295659542084, -0.06335752457380295, -0.2044723778963089, -0.10475645959377289, 0.15799561142921448, 0.11377492547035217, -0.11110803484916687, 0.2681911885738373, -0.1872299462556839, -0.016051113605499268, 0.26482605934143066, -0.4225255846977234, -0.14174535870552063, -0.07793448120355606, -0.20237116515636444, -0.0808541551232338, 0.1537030190229416, 0.17729638516902924, 0.2600100040435791, -0.016039187088608742, -0.16477060317993164, 0.08191454410552979, -0.2357105314731598, -0.016012288630008698, -0.27121812105178833, -0.25088268518447876, 0.15702250599861145, 0.25441694259643555, 0.30964744091033936, -0.14702418446540833, 0.15465380251407623, -0.011134037747979164, 0.18536213040351868, -0.15082800388336182, -0.025137996301054955, 0.09049496054649353, 0.48244181275367737, -0.04865962266921997, -0.0746663436293602, -0.25784316658973694, -0.38893622159957886, 0.05056385695934296, 0.41079181432724, 0.1200971007347107, 0.042461201548576355, -0.2990524172782898, -0.4513701796531677, -0.0010593961924314499, -0.32149559259414673, -0.21344970166683197, 0.21232067048549652, 0.3533979058265686, 0.1440936177968979, -0.21047420799732208, -0.24853050708770752, 0.0257741529494524, -0.4604133069515228, 0.03886207938194275, 0.010827233083546162, 0.38994839787483215, -0.2165013551712036, -0.03490486368536949, 0.04918283224105835, 0.26236703991889954, 0.11105111241340637, -0.1383916437625885, 0.04054988920688629, 0.17286819219589233, 0.0014789528213441372, 0.09525682032108307, 0.4135585129261017, 0.2883051335811615, 0.22267261147499084, -0.43510207533836365, -0.0435008704662323, 0.04712215065956116, 0.04289152845740318, -0.2206507921218872, -0.045707061886787415, 0.21625104546546936, -0.15427762269973755, 0.14071162045001984, 0.0575002059340477, -0.2021365761756897, 0.11309826374053955, -0.004342909902334213, -0.11888439208269119, -0.21574591100215912, 0.299551397562027, 0.3239169120788574, 0.28917282819747925, -0.06850128620862961, -0.010007448494434357, 0.22225287556648254, 0.4561719298362732, -0.03592528775334358, -0.1960795521736145, 0.12715201079845428, -0.10765335708856583, -0.061441510915756226, -0.09555254131555557, 0.08882880210876465, 0.31018316745758057, 0.3800759017467499, -0.006528858095407486, -0.12741166353225708, -0.04067250341176987, -0.2119494080543518, 0.11776462942361832, 0.22264908254146576, -0.010638638399541378, 0.14389696717262268, 0.3192541003227234, -0.06169411912560463, -0.354074627161026, -0.2897583842277527, 0.11100637167692184, 0.2618117034435272, -0.15220580995082855, -0.1833139806985855, -0.041194528341293335, -0.29504022002220154, 0.14480553567409515, -0.16624815762043, 0.12760236859321594, -0.37159645557403564, 0.08635841310024261, 0.1318511813879013, -0.06757968664169312, 0.3048303425312042, -0.07344754040241241, 0.261544793844223, 0.0030518826097249985, -0.3765866458415985, -0.2918950319290161, -0.32854926586151123, -0.08067426085472107, 0.2354450821876526, -0.033593498170375824, -0.20099683105945587, 0.7600569128990173, -0.1351310908794403, 0.08821094036102295, -0.4678373634815216, -0.5150236487388611, 0.21946845948696136, -0.2579531669616699, 0.23176588118076324, -0.008577495813369751, 0.13007588684558868, 0.07006700336933136, -0.336824893951416, 0.2588084936141968, -0.18185944855213165, -0.1850438266992569, -0.12924566864967346, -0.03579661622643471, -0.0656168982386589, -0.13634541630744934, -0.6234620213508606, -0.2106674313545227, -0.37859052419662476, 0.021273210644721985, 0.17782369256019592, 0.10002458095550537, 0.21031521260738373, -0.0325947105884552, 0.08152162283658981, -0.03045235387980938, 0.11122342199087143, -0.2166604846715927, -0.23142211139202118, 0.08877173811197281, -0.19215333461761475, -0.2241366058588028, 0.05967843905091286, -0.10030492395162582, 0.19724293053150177, -0.15631918609142303, -0.3722827434539795, -0.4782860279083252, -0.24855364859104156, 0.5902325510978699, 0.07697224617004395, -0.11021193861961365, 0.20587721467018127, 0.25345709919929504, -0.24202558398246765, -0.08264930546283722, -0.29348045587539673, -0.0038160979747772217, 0.0697304904460907, 0.2621529996395111, -0.30456429719924927, 0.1727921962738037, -0.11028958857059479, 0.653204619884491, 0.27887600660324097, -0.2185070961713791, 0.1870352029800415, -0.043306052684783936, 0.4104481637477875, -0.19066795706748962, -0.5153353214263916, 0.2893575131893158, -0.06452558934688568, -0.23881706595420837, 0.2791632115840912, -0.061436161398887634, -0.17500245571136475, -0.06902623921632767, 0.27786189317703247, -0.1863115131855011, 0.08165381848812103, -0.08909767121076584, -0.1059579998254776, 0.15051592886447906, -0.15072743594646454, 0.038356609642505646, -0.23315972089767456, -0.12381253391504288, 0.023624766618013382, 0.48839253187179565, -0.021644361317157745, -0.10063788294792175, -0.34721383452415466, 0.046250540763139725, -0.33144909143447876, 0.19288036227226257, -0.08460405468940735, 0.012603149749338627, -0.2350456714630127, -0.023661956191062927, -0.09308552742004395, -0.05115429684519768, 0.2890796363353729, -0.17768998444080353, -0.07760117202997208, 0.5592139959335327, 0.10670046508312225, 0.044208332896232605, -0.08047611266374588, -0.42935657501220703, 0.14064234495162964, 0.35322195291519165, 0.4971616864204407, -0.31642282009124756, -0.08569307625293732, 0.30027833580970764, 0.2188878059387207, 0.08273361623287201, -0.13161875307559967, -0.18068791925907135, -0.35730016231536865, -0.3141913115978241, 0.35050562024116516, -0.059389255940914154, 0.17876873910427094, -0.39611193537712097, -0.3240809142589569, 0.042845919728279114, -0.21229183673858643, 0.22983555495738983, 0.12183597683906555, 0.12127286195755005, 0.09841031581163406, 0.25037261843681335, -0.1389746218919754, -0.03490569442510605, 0.598404049873352, 0.2365911900997162, -0.3184282183647156, -0.028508327901363373, -0.02137516438961029, -0.1435743123292923, 0.3907926380634308, 0.046263471245765686, -0.01952359452843666, 0.25869524478912354, -0.2995572090148926, 0.21859711408615112, -0.032662004232406616, 0.3211396336555481, 0.33808740973472595, 0.13319629430770874, -0.29188573360443115, -0.2706162631511688, 0.0674903467297554, 0.2668323814868927, -0.0296236090362072, 0.3393367826938629, -0.11404071748256683, -0.10821014642715454, 0.18671800196170807, 0.1192159354686737, 0.9459074139595032, -0.26806217432022095, -0.02782939001917839, 0.20607194304466248, -0.05866667628288269, 0.34560626745224, -0.15352801978588104, 0.10359463095664978, -0.1422325223684311, -0.10424397140741348, 0.16987654566764832, -0.1567327380180359, 0.25448092818260193, 0.020053595304489136, -0.39715632796287537, 0.21499618887901306, -0.12357057631015778, 0.46028488874435425, 0.13634121417999268, 0.23761224746704102, 0.07387560606002808, -0.16250957548618317, -0.17274470627307892, 0.27569183707237244, -0.17444652318954468, 0.22128942608833313, -0.1880665123462677, 0.06948597729206085, 0.04288659617304802, -0.16030187904834747, -0.17790499329566956, -0.022709380835294724, -0.20352715253829956, 0.041465260088443756, -0.37342262268066406, -0.43701446056365967, -0.02618490904569626, 0.12416104972362518, 0.2169870138168335, 0.2918284833431244, -0.13343386352062225, 0.03214501217007637, 0.26970893144607544, -0.12728320062160492, 0.0700472816824913, -0.26097342371940613, 0.18517830967903137, -0.14774858951568604, -0.13589896261692047, 0.21952813863754272, -0.10117963701486588, -0.2613200545310974, -0.11490147560834885, 0.04307026043534279, 0.35794609785079956, -0.3545021116733551, 0.03310193121433258, 0.10023324191570282, -0.36142754554748535, -0.4015990197658539, 0.20640678703784943, 0.11531835794448853, -0.06460592150688171, 0.1858983337879181, 0.05169425904750824, -0.2865358591079712, -0.1886257529258728, -0.0679001584649086, 0.037985894829034805, -0.2758159935474396, 0.349059134721756, 0.084368035197258, -0.2180781364440918, -0.4457290470600128, -0.1964159607887268, -0.007221614010632038, 0.10564989596605301, 0.10193149000406265, 0.15361180901527405, -0.06053105741739273, 0.15703509747982025, 0.3156445026397705, 0.16922014951705933, 0.2334071397781372, -0.15972110629081726, -0.32130560278892517, -0.49343547224998474, 0.018454477190971375, 0.07935628294944763, 0.36070388555526733, 0.03827683627605438, 0.21585042774677277, 0.09256255626678467, 0.20557354390621185, -0.46271955966949463, -0.15653200447559357, -0.4160328507423401, 0.25498077273368835, 0.2558508813381195, -0.2441190779209137, 0.12404116243124008, -0.11817079782485962, 0.25043752789497375, -0.2725626826286316, -0.22079971432685852, -0.34717679023742676, 0.031083129346370697, 0.0839589461684227, 0.039443597197532654, 0.10598865896463394, 0.11668737232685089, -0.01566126197576523, 0.03789222240447998, -0.18566569685935974, 0.0567716620862484, 0.1196267381310463, -0.022443659603595734, 0.07418611645698547, -0.0010184980928897858, 0.0007751211524009705, 0.1582110971212387, -0.08715716749429703, 0.026365265250205994, 0.07777708023786545, -0.013944383710622787, 0.17709079384803772, 0.006036895327270031, -0.14454053342342377, 0.08458642661571503, 0.04478175938129425, 0.3536662459373474, 0.2810605764389038, 0.10532893240451813, -0.14266422390937805, -0.11579163372516632, 0.25817444920539856, 0.36836957931518555, 0.2648015022277832, -0.1516564041376114, 0.09841063618659973, -0.02995898574590683, 0.3410056233406067, -0.314388245344162, 0.006933724507689476, -0.011979775503277779, -0.1002984419465065, 0.3158012926578522, 0.23349249362945557, 0.11094191670417786, -0.026277650147676468, 0.28604698181152344, 0.10242519527673721, 0.3204469084739685, -0.27158111333847046, 0.2085440307855606, 0.15896925330162048, 0.01748443767428398, -0.017921585589647293, 0.329901784658432, 0.026477091014385223, -0.012414172291755676, 0.01229637861251831, -0.031216241419315338, 0.7026703953742981, 0.3049881160259247, 0.14563095569610596, 0.2559363842010498, 0.043827224522829056, 0.4126623272895813, -0.09235848486423492, 0.0340874120593071, 0.0036962516605854034, 0.14197073876857758, 0.34201425313949585, -0.04210212826728821, 0.009399931877851486, -0.2899925708770752, 0.01404104195535183, -0.1334627866744995, 0.11802826821804047, -0.06029396876692772, -0.19289836287498474, -0.100007064640522, -0.1421085000038147, 0.007591795176267624, -0.15544433891773224, 0.07775206118822098, -0.009079955518245697, -0.18992646038532257, -0.4334290325641632, 0.2623480558395386, 0.1384756863117218, 0.20053885877132416, -0.14700008928775787, 0.3133353888988495, 0.010053716599941254, -0.023398861289024353, -0.09352219104766846, 0.3266891539096832, 0.4660942256450653, 0.1478537768125534, 0.028413744643330574, 0.035443373024463654, -0.19499334692955017, -0.22903771698474884, -0.011831901036202908, 0.19690057635307312, -0.03179711848497391, -0.11418704688549042, 0.2586219906806946, 0.318480908870697, -0.33410584926605225, 0.059286266565322876, -0.0731341689825058, -0.33192604780197144, -0.2707034945487976, 0.3717935085296631, 0.20982982218265533, -0.3703364133834839, -0.19303642213344574, 0.16143715381622314, -0.3762992024421692, -0.02381277084350586, 0.5824489593505859, 0.12262747436761856, 0.0897345170378685, -0.1472722291946411, 0.1700601428747177, -0.03706547990441322, 0.25270316004753113, 0.28513067960739136, 0.25460678339004517, -0.45075932145118713, -0.06921640038490295, -0.4159463047981262, 0.16140805184841156, -0.025687243789434433, -0.2531205713748932, -0.1122681051492691, 0.07868334650993347, 0.17521452903747559, 0.21050909161567688, 0.2968277931213379, -0.05577963963150978, 0.372473806142807, -0.07961183786392212, -0.4277050197124481, 0.2658264935016632, 0.11851829290390015, -0.03986084461212158, 0.20294731855392456, -0.3432201147079468, -0.005481254309415817, 0.016064777970314026, 0.1774984896183014, -0.22595669329166412, -0.0048260875046253204, 0.5120174884796143, -0.014765717089176178, 0.3608585000038147, -0.005301130935549736, 0.6363608837127686, -0.19056499004364014, 0.0730057954788208, -0.07941614091396332, -0.18852688372135162, -0.11934240907430649, 0.17865681648254395, -0.07433606684207916, 0.15547986328601837, -0.12149108946323395, -0.1850329041481018, -0.17542822659015656, 0.03216118738055229, 0.22385720908641815, -0.4224950075149536, 0.06393609941005707, 0.0027572140097618103, 0.025616809725761414, 0.045561593025922775, -0.03974291309714317, 0.14227843284606934, 0.06608089804649353, 0.12356814742088318, -0.32270509004592896, -0.5978801250457764, 0.4406876564025879, -0.14908088743686676, -0.18074050545692444, -0.22611652314662933, 0.3114483952522278, 0.16380369663238525, 0.1279468983411789, -0.4151049256324768, -0.002068445086479187, 0.3782366216182709, -0.15466266870498657, -0.2402324378490448, 0.4471985697746277, 0.034259915351867676, 0.10265481472015381, -0.001616448163986206, 0.5798860788345337, -0.044513411819934845, 0.027823230251669884, -0.1949494630098343, -0.3310086727142334 ]
https://github.com/huggingface/datasets/pull/37
[Datasets ToDo-List] add datasets
The testing design was slightly changed as explained in https://github.com/huggingface/nlp/pull/51 . If creating the dummy folder is too confusing it helps to upload everything else to AWS, then run the test and check the INFO when testing on how to create the dummy folder structure.
## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset*
45
text: [Datasets ToDo-List] add datasets ## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` **passes**. - [x] Squad - [x] Sentiment140 - [x] XNLI - [x] Crime_and_Punish - [x] movie_rationales - [x] ai2_arc - [x] anli - [x] event2Mind - [x] Fquad - [x] blimp - [x] empathetic_dialogues - [x] cosmos_qa - [x] xquad - [x] blog_authorship_corpus - [x] SNLI - [x] break_data - [x] SQuAD v2 - [x] cfq - [x] eraser_multi_rc - [x] Glue - [x] Tydiqa - [x] wiki_qa - [x] wikitext - [x] winogrande - [x] wiqa - [x] esnli - [x] civil_comments - [x] commonsense_qa - [x] com_qa - [x] coqa - [x] wiki_split - [x] cos_e - [x] xcopa - [x] quarel - [x] quartz - [x] squad_it - [x] quoref - [x] squad_pt - [x] cornell_movie_dialog - [x] SciQ - [x] Scifact - [x] hellaswag - [x] ted_multi (in translate) - [x] Aeslc (summarization) - [x] drop - [x] gap - [x] hansard - [x] opinosis - [x] MLQA - [x] math_dataset ## How-To-Add a dataset **Before adding a dataset make sure that your branch is up to date**: 1. `git checkout add_datasets` 2. `git pull` **Add a dataset via the `convert_dataset.sh` bash script:** Running `bash convert_dataset.sh <file/to/tfds/datascript.py>` (*e.g.* `bash convert_dataset.sh ../tensorflow-datasets/tensorflow_datasets/text/movie_rationales.py`) will automatically run all the steps mentioned in **Add a dataset manually** below. Make sure that you run `convert_dataset.sh` from the root folder of `nlp`. The conversion script should work almost always for step 1): "convert dataset script from tfds to nlp format" and 2) "create checksum file" and step 3) "make style". It can also sometimes automatically run step 4) "create the correct dummy data from tfds", but this will only work if a) there is either no config name or only one config name and b) the `tfds testing/test_data/fake_example` is in the correct form. Nevertheless, the script should always be run in the beginning until an error occurs to be more efficient. If the conversion script does not work or fails at some step, then you can run the steps manually as follows: **Add a dataset manually** Make sure you run all of the following commands from the root of your `nlp` git clone. Also make sure that you changed to this branch: ``` git checkout add_datasets ``` 1) the tfds datascript file should be converted to `nlp` style: ``` python nlp-cli convert --tfds_path <path/to/tensorflow_datasets/text/your_dataset_name>.py --nlp_directory datasets/nlp ``` This will convert the tdfs script and create a folder with the correct name. 2) the checksum file should be added. Use the command: ``` python nlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs ``` A checksums.txt file should be created in your folder and the structure should look as follows: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt Delete the created `*.lock` file afterward - it should not be uploaded to AWS. 3) run black and isort on your newly added datascript files so that they look nice: ``` make style ``` 4) the dummy data should be added. For this it might be useful to take a look into the structure of other examples as shown in the PR here and at `<path/to/tensorflow_datasets/testing/test_data/test_data/fake_examples>` whether the same data can be used. 5) the data can be uploaded to AWS using the command ``` aws s3 cp datasets/nlp/<your-dataset-folder> s3://datasets.huggingface.co/nlp/<your-dataset-folder> --recursive ``` 6) check whether all works as expected using: ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_<your-dataset-name> ``` and ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_dataset_all_configs_<your-dataset-name> ``` 7) push to this PR and rerun the circle ci workflow to check whether circle ci stays green. 8) Edit this commend and tick off your newly added dataset :-) ## TODO-list Maybe we can add a TODO-list here for everybody that feels like adding new datasets so that we will not add the same datasets. Here a link to available datasets: https://docs.google.com/spreadsheets/d/1zOtEqOrnVQwdgkC4nJrTY6d-Av02u0XFzeKAtBM2fUI/edit#gid=0 Patrick: - [ ] boolq - *weird download link* - [ ] c4 - *beam dataset* The testing design was slightly changed as explained in https://github.com/huggingface/nlp/pull/51 . If creating the dummy folder is too confusing it helps to upload everything else to AWS, then run the test and check the INFO when testing on how to create the dummy folder structure.
[ -0.36062461137771606, -0.01891462504863739, -0.20555710792541504, -0.08905917406082153, 0.18992669880390167, 0.3937821686267853, 0.19146427512168884, 0.4020628333091736, -0.004814449697732925, 0.11977867037057877, -0.029464950785040855, 0.3761882483959198, -0.15959471464157104, 0.3286758065223694, -0.06332308053970337, 0.04539939761161804, 0.047149065881967545, 0.19886814057826996, 0.2856498658657074, 0.022719278931617737, -0.19934575259685516, -0.0331290066242218, -0.07195998728275299, -0.10711635649204254, -0.16605424880981445, -0.27150800824165344, -0.1285523772239685, -0.03540799021720886, -0.3832022547721863, -0.41351261734962463, 0.160700261592865, 0.47917842864990234, -0.2005925476551056, 0.3211474120616913, -0.00010768510401248932, -0.11825890094041824, 0.36977916955947876, 0.05251564085483551, -0.41128310561180115, -0.2100948840379715, 0.23091807961463928, -0.17642715573310852, 0.07896902412176132, -0.4183642566204071, -0.16783565282821655, -0.21708014607429504, -0.16984833776950836, -0.1973923295736313, 0.09566235542297363, 0.3995109498500824, 0.2751508951187134, 0.4333927631378174, -0.12054625153541565, -0.26433008909225464, 0.3233015239238739, 0.17265433073043823, -0.2674967348575592, -0.041062284260988235, 0.2921402156352997, -0.08841771632432938, 0.12906399369239807, 0.15101012587547302, -0.16839975118637085, 0.07841603457927704, -0.010756857693195343, -0.14963029325008392, 0.04789577051997185, -0.32783761620521545, 0.043004993349313736, -0.03752395510673523, 0.5430710315704346, -0.38085445761680603, -0.10329841077327728, -0.02728450670838356, 0.03763003647327423, -0.5227769017219543, -0.11269014328718185, -0.10105019062757492, -0.06754390150308609, -0.13377512991428375, -0.2800821363925934, -0.006148373708128929, -0.08331073075532913, 0.32252055406570435, 0.03101498633623123, 0.05460450425744057, -0.008682177402079105, 0.01622101292014122, 0.13872864842414856, 0.041338980197906494, 0.23708243668079376, -0.13160136342048645, -0.018251609057188034, -0.09243401139974594, -0.3375409245491028, -0.2695382833480835, 0.3074418604373932, 0.09116370975971222, 0.2220226228237152, 0.2522224485874176, -0.25071728229522705, -0.006073884665966034, 0.11728638410568237, 0.18929538130760193, -0.060767631977796555, 0.11630058288574219, 0.2120148241519928, 0.35634294152259827, 0.17035648226737976, 0.004410606808960438, 0.04782554879784584, 0.06072754040360451, -0.04841253533959389, -0.0712893158197403, 0.17832280695438385, -0.09598688781261444, 0.29605865478515625, -0.17189393937587738, -0.4081246256828308, 0.06875576078891754, -0.05436814948916435, -0.15358097851276398, 0.009891007095575333, 0.44738513231277466, 0.07648056000471115, 0.006729058921337128, -0.11269132047891617, 0.2840780019760132, -0.050093427300453186, 0.23535317182540894, -0.29684457182884216, 0.15743115544319153, -0.17169691622257233, -0.017115620896220207, 0.3970138430595398, 0.08660660684108734, 0.28736451268196106, -0.050607748329639435, 0.27567631006240845, -0.08993006497621536, 0.2934209108352661, -0.14340603351593018, 0.12152940779924393, 0.20421044528484344, 0.008914865553379059, 0.067230723798275, 0.16929177939891815, -0.14290064573287964, -0.25663891434669495, 0.266108900308609, -0.03944841027259827, -0.24834519624710083, 0.09953419864177704, 0.3536931276321411, -0.1464611291885376, -0.1936441957950592, -0.3638398051261902, 0.16370129585266113, 0.10439542680978775, 0.036443766206502914, 0.10242091864347458, -0.2645930051803589, 0.05393446609377861, -0.15526193380355835, 0.167822927236557, 0.4860353469848633, -0.18091295659542084, -0.06335752457380295, -0.2044723778963089, -0.10475645959377289, 0.15799561142921448, 0.11377492547035217, -0.11110803484916687, 0.2681911885738373, -0.1872299462556839, -0.016051113605499268, 0.26482605934143066, -0.4225255846977234, -0.14174535870552063, -0.07793448120355606, -0.20237116515636444, -0.0808541551232338, 0.1537030190229416, 0.17729638516902924, 0.2600100040435791, -0.016039187088608742, -0.16477060317993164, 0.08191454410552979, -0.2357105314731598, -0.016012288630008698, -0.27121812105178833, -0.25088268518447876, 0.15702250599861145, 0.25441694259643555, 0.30964744091033936, -0.14702418446540833, 0.15465380251407623, -0.011134037747979164, 0.18536213040351868, -0.15082800388336182, -0.025137996301054955, 0.09049496054649353, 0.48244181275367737, -0.04865962266921997, -0.0746663436293602, -0.25784316658973694, -0.38893622159957886, 0.05056385695934296, 0.41079181432724, 0.1200971007347107, 0.042461201548576355, -0.2990524172782898, -0.4513701796531677, -0.0010593961924314499, -0.32149559259414673, -0.21344970166683197, 0.21232067048549652, 0.3533979058265686, 0.1440936177968979, -0.21047420799732208, -0.24853050708770752, 0.0257741529494524, -0.4604133069515228, 0.03886207938194275, 0.010827233083546162, 0.38994839787483215, -0.2165013551712036, -0.03490486368536949, 0.04918283224105835, 0.26236703991889954, 0.11105111241340637, -0.1383916437625885, 0.04054988920688629, 0.17286819219589233, 0.0014789528213441372, 0.09525682032108307, 0.4135585129261017, 0.2883051335811615, 0.22267261147499084, -0.43510207533836365, -0.0435008704662323, 0.04712215065956116, 0.04289152845740318, -0.2206507921218872, -0.045707061886787415, 0.21625104546546936, -0.15427762269973755, 0.14071162045001984, 0.0575002059340477, -0.2021365761756897, 0.11309826374053955, -0.004342909902334213, -0.11888439208269119, -0.21574591100215912, 0.299551397562027, 0.3239169120788574, 0.28917282819747925, -0.06850128620862961, -0.010007448494434357, 0.22225287556648254, 0.4561719298362732, -0.03592528775334358, -0.1960795521736145, 0.12715201079845428, -0.10765335708856583, -0.061441510915756226, -0.09555254131555557, 0.08882880210876465, 0.31018316745758057, 0.3800759017467499, -0.006528858095407486, -0.12741166353225708, -0.04067250341176987, -0.2119494080543518, 0.11776462942361832, 0.22264908254146576, -0.010638638399541378, 0.14389696717262268, 0.3192541003227234, -0.06169411912560463, -0.354074627161026, -0.2897583842277527, 0.11100637167692184, 0.2618117034435272, -0.15220580995082855, -0.1833139806985855, -0.041194528341293335, -0.29504022002220154, 0.14480553567409515, -0.16624815762043, 0.12760236859321594, -0.37159645557403564, 0.08635841310024261, 0.1318511813879013, -0.06757968664169312, 0.3048303425312042, -0.07344754040241241, 0.261544793844223, 0.0030518826097249985, -0.3765866458415985, -0.2918950319290161, -0.32854926586151123, -0.08067426085472107, 0.2354450821876526, -0.033593498170375824, -0.20099683105945587, 0.7600569128990173, -0.1351310908794403, 0.08821094036102295, -0.4678373634815216, -0.5150236487388611, 0.21946845948696136, -0.2579531669616699, 0.23176588118076324, -0.008577495813369751, 0.13007588684558868, 0.07006700336933136, -0.336824893951416, 0.2588084936141968, -0.18185944855213165, -0.1850438266992569, -0.12924566864967346, -0.03579661622643471, -0.0656168982386589, -0.13634541630744934, -0.6234620213508606, -0.2106674313545227, -0.37859052419662476, 0.021273210644721985, 0.17782369256019592, 0.10002458095550537, 0.21031521260738373, -0.0325947105884552, 0.08152162283658981, -0.03045235387980938, 0.11122342199087143, -0.2166604846715927, -0.23142211139202118, 0.08877173811197281, -0.19215333461761475, -0.2241366058588028, 0.05967843905091286, -0.10030492395162582, 0.19724293053150177, -0.15631918609142303, -0.3722827434539795, -0.4782860279083252, -0.24855364859104156, 0.5902325510978699, 0.07697224617004395, -0.11021193861961365, 0.20587721467018127, 0.25345709919929504, -0.24202558398246765, -0.08264930546283722, -0.29348045587539673, -0.0038160979747772217, 0.0697304904460907, 0.2621529996395111, -0.30456429719924927, 0.1727921962738037, -0.11028958857059479, 0.653204619884491, 0.27887600660324097, -0.2185070961713791, 0.1870352029800415, -0.043306052684783936, 0.4104481637477875, -0.19066795706748962, -0.5153353214263916, 0.2893575131893158, -0.06452558934688568, -0.23881706595420837, 0.2791632115840912, -0.061436161398887634, -0.17500245571136475, -0.06902623921632767, 0.27786189317703247, -0.1863115131855011, 0.08165381848812103, -0.08909767121076584, -0.1059579998254776, 0.15051592886447906, -0.15072743594646454, 0.038356609642505646, -0.23315972089767456, -0.12381253391504288, 0.023624766618013382, 0.48839253187179565, -0.021644361317157745, -0.10063788294792175, -0.34721383452415466, 0.046250540763139725, -0.33144909143447876, 0.19288036227226257, -0.08460405468940735, 0.012603149749338627, -0.2350456714630127, -0.023661956191062927, -0.09308552742004395, -0.05115429684519768, 0.2890796363353729, -0.17768998444080353, -0.07760117202997208, 0.5592139959335327, 0.10670046508312225, 0.044208332896232605, -0.08047611266374588, -0.42935657501220703, 0.14064234495162964, 0.35322195291519165, 0.4971616864204407, -0.31642282009124756, -0.08569307625293732, 0.30027833580970764, 0.2188878059387207, 0.08273361623287201, -0.13161875307559967, -0.18068791925907135, -0.35730016231536865, -0.3141913115978241, 0.35050562024116516, -0.059389255940914154, 0.17876873910427094, -0.39611193537712097, -0.3240809142589569, 0.042845919728279114, -0.21229183673858643, 0.22983555495738983, 0.12183597683906555, 0.12127286195755005, 0.09841031581163406, 0.25037261843681335, -0.1389746218919754, -0.03490569442510605, 0.598404049873352, 0.2365911900997162, -0.3184282183647156, -0.028508327901363373, -0.02137516438961029, -0.1435743123292923, 0.3907926380634308, 0.046263471245765686, -0.01952359452843666, 0.25869524478912354, -0.2995572090148926, 0.21859711408615112, -0.032662004232406616, 0.3211396336555481, 0.33808740973472595, 0.13319629430770874, -0.29188573360443115, -0.2706162631511688, 0.0674903467297554, 0.2668323814868927, -0.0296236090362072, 0.3393367826938629, -0.11404071748256683, -0.10821014642715454, 0.18671800196170807, 0.1192159354686737, 0.9459074139595032, -0.26806217432022095, -0.02782939001917839, 0.20607194304466248, -0.05866667628288269, 0.34560626745224, -0.15352801978588104, 0.10359463095664978, -0.1422325223684311, -0.10424397140741348, 0.16987654566764832, -0.1567327380180359, 0.25448092818260193, 0.020053595304489136, -0.39715632796287537, 0.21499618887901306, -0.12357057631015778, 0.46028488874435425, 0.13634121417999268, 0.23761224746704102, 0.07387560606002808, -0.16250957548618317, -0.17274470627307892, 0.27569183707237244, -0.17444652318954468, 0.22128942608833313, -0.1880665123462677, 0.06948597729206085, 0.04288659617304802, -0.16030187904834747, -0.17790499329566956, -0.022709380835294724, -0.20352715253829956, 0.041465260088443756, -0.37342262268066406, -0.43701446056365967, -0.02618490904569626, 0.12416104972362518, 0.2169870138168335, 0.2918284833431244, -0.13343386352062225, 0.03214501217007637, 0.26970893144607544, -0.12728320062160492, 0.0700472816824913, -0.26097342371940613, 0.18517830967903137, -0.14774858951568604, -0.13589896261692047, 0.21952813863754272, -0.10117963701486588, -0.2613200545310974, -0.11490147560834885, 0.04307026043534279, 0.35794609785079956, -0.3545021116733551, 0.03310193121433258, 0.10023324191570282, -0.36142754554748535, -0.4015990197658539, 0.20640678703784943, 0.11531835794448853, -0.06460592150688171, 0.1858983337879181, 0.05169425904750824, -0.2865358591079712, -0.1886257529258728, -0.0679001584649086, 0.037985894829034805, -0.2758159935474396, 0.349059134721756, 0.084368035197258, -0.2180781364440918, -0.4457290470600128, -0.1964159607887268, -0.007221614010632038, 0.10564989596605301, 0.10193149000406265, 0.15361180901527405, -0.06053105741739273, 0.15703509747982025, 0.3156445026397705, 0.16922014951705933, 0.2334071397781372, -0.15972110629081726, -0.32130560278892517, -0.49343547224998474, 0.018454477190971375, 0.07935628294944763, 0.36070388555526733, 0.03827683627605438, 0.21585042774677277, 0.09256255626678467, 0.20557354390621185, -0.46271955966949463, -0.15653200447559357, -0.4160328507423401, 0.25498077273368835, 0.2558508813381195, -0.2441190779209137, 0.12404116243124008, -0.11817079782485962, 0.25043752789497375, -0.2725626826286316, -0.22079971432685852, -0.34717679023742676, 0.031083129346370697, 0.0839589461684227, 0.039443597197532654, 0.10598865896463394, 0.11668737232685089, -0.01566126197576523, 0.03789222240447998, -0.18566569685935974, 0.0567716620862484, 0.1196267381310463, -0.022443659603595734, 0.07418611645698547, -0.0010184980928897858, 0.0007751211524009705, 0.1582110971212387, -0.08715716749429703, 0.026365265250205994, 0.07777708023786545, -0.013944383710622787, 0.17709079384803772, 0.006036895327270031, -0.14454053342342377, 0.08458642661571503, 0.04478175938129425, 0.3536662459373474, 0.2810605764389038, 0.10532893240451813, -0.14266422390937805, -0.11579163372516632, 0.25817444920539856, 0.36836957931518555, 0.2648015022277832, -0.1516564041376114, 0.09841063618659973, -0.02995898574590683, 0.3410056233406067, -0.314388245344162, 0.006933724507689476, -0.011979775503277779, -0.1002984419465065, 0.3158012926578522, 0.23349249362945557, 0.11094191670417786, -0.026277650147676468, 0.28604698181152344, 0.10242519527673721, 0.3204469084739685, -0.27158111333847046, 0.2085440307855606, 0.15896925330162048, 0.01748443767428398, -0.017921585589647293, 0.329901784658432, 0.026477091014385223, -0.012414172291755676, 0.01229637861251831, -0.031216241419315338, 0.7026703953742981, 0.3049881160259247, 0.14563095569610596, 0.2559363842010498, 0.043827224522829056, 0.4126623272895813, -0.09235848486423492, 0.0340874120593071, 0.0036962516605854034, 0.14197073876857758, 0.34201425313949585, -0.04210212826728821, 0.009399931877851486, -0.2899925708770752, 0.01404104195535183, -0.1334627866744995, 0.11802826821804047, -0.06029396876692772, -0.19289836287498474, -0.100007064640522, -0.1421085000038147, 0.007591795176267624, -0.15544433891773224, 0.07775206118822098, -0.009079955518245697, -0.18992646038532257, -0.4334290325641632, 0.2623480558395386, 0.1384756863117218, 0.20053885877132416, -0.14700008928775787, 0.3133353888988495, 0.010053716599941254, -0.023398861289024353, -0.09352219104766846, 0.3266891539096832, 0.4660942256450653, 0.1478537768125534, 0.028413744643330574, 0.035443373024463654, -0.19499334692955017, -0.22903771698474884, -0.011831901036202908, 0.19690057635307312, -0.03179711848497391, -0.11418704688549042, 0.2586219906806946, 0.318480908870697, -0.33410584926605225, 0.059286266565322876, -0.0731341689825058, -0.33192604780197144, -0.2707034945487976, 0.3717935085296631, 0.20982982218265533, -0.3703364133834839, -0.19303642213344574, 0.16143715381622314, -0.3762992024421692, -0.02381277084350586, 0.5824489593505859, 0.12262747436761856, 0.0897345170378685, -0.1472722291946411, 0.1700601428747177, -0.03706547990441322, 0.25270316004753113, 0.28513067960739136, 0.25460678339004517, -0.45075932145118713, -0.06921640038490295, -0.4159463047981262, 0.16140805184841156, -0.025687243789434433, -0.2531205713748932, -0.1122681051492691, 0.07868334650993347, 0.17521452903747559, 0.21050909161567688, 0.2968277931213379, -0.05577963963150978, 0.372473806142807, -0.07961183786392212, -0.4277050197124481, 0.2658264935016632, 0.11851829290390015, -0.03986084461212158, 0.20294731855392456, -0.3432201147079468, -0.005481254309415817, 0.016064777970314026, 0.1774984896183014, -0.22595669329166412, -0.0048260875046253204, 0.5120174884796143, -0.014765717089176178, 0.3608585000038147, -0.005301130935549736, 0.6363608837127686, -0.19056499004364014, 0.0730057954788208, -0.07941614091396332, -0.18852688372135162, -0.11934240907430649, 0.17865681648254395, -0.07433606684207916, 0.15547986328601837, -0.12149108946323395, -0.1850329041481018, -0.17542822659015656, 0.03216118738055229, 0.22385720908641815, -0.4224950075149536, 0.06393609941005707, 0.0027572140097618103, 0.025616809725761414, 0.045561593025922775, -0.03974291309714317, 0.14227843284606934, 0.06608089804649353, 0.12356814742088318, -0.32270509004592896, -0.5978801250457764, 0.4406876564025879, -0.14908088743686676, -0.18074050545692444, -0.22611652314662933, 0.3114483952522278, 0.16380369663238525, 0.1279468983411789, -0.4151049256324768, -0.002068445086479187, 0.3782366216182709, -0.15466266870498657, -0.2402324378490448, 0.4471985697746277, 0.034259915351867676, 0.10265481472015381, -0.001616448163986206, 0.5798860788345337, -0.044513411819934845, 0.027823230251669884, -0.1949494630098343, -0.3310086727142334 ]
https://github.com/huggingface/datasets/pull/36
Metrics - refactoring, adding support for download and distributed metrics
> Really cool, I love it! I would just raise a tiny point, the distributive version of the metrics might not work properly with TF because it is a different way to do, why not to add a "framework" detection and raise warning when TF is used, saying something like "not available yet in TF switch to non distributive metric computation". > > What do you think? Good point @jplu I'm not sure how you should do distributed metrics evaluation for TF. There is only one python script, right? Maybe it's just the same as in the not-distributed case?
Refactoring metrics to have a similar loading API than the datasets and improving the import system. # Import system The import system has ben upgraded. There are now three types of imports allowed: 1. `library` imports (identified as "absolute imports") ```python import seqeval ``` => we'll test all the imports before running the scripts and if one cannot be imported we'll display an error message like this one: `ImportError: To be able to use this metric/dataset, you need to install the following dependencies ['seqeval'] using 'pip install seqeval' for instance'` 2. `internal` imports (identified as "relative imports") ```python import .c4_utils ``` => we'll assume this point to a file in the same directory/S3-directory as the main script and download this file. 2. `external` imports (identified as "relative imports" with a comment starting with `# From:`) ```python from .nmt_bleu import compute_bleu # From: https://github.com/tensorflow/nmt/blob/master/nmt/scripts/bleu.py ``` => we'll assume this point to the URL of a python script (if it's a link to a github file, we'll take the raw file automatically). => the script is downloaded and renamed to the import name (here above renamed from `bleu.py` to `nmt_bleu.py`). Renaming the file can be necessary if the distant file has the same name as the dataset/metric processing script. If you forgot to rename the distant script and it has the same name as the dataset/metric, you'll have an explicit error message asking to rename the import anyway. # Hosting metrics Metrics are hosted on a S3 bucket like the dataset processing scripts. # Metrics scripts Metrics scripts have a lot in common with datasets processing scripts. They also have a `metric.info` including citations, descriptions and links to relevant pages. Metrics have more documentation to supply to ensure they are used well. Four examples are already included for reference in [./metrics](./metrics): BLEU, ROUGE, SacreBLEU and SeqEVAL. # Automatic support for distributed/multi-processing metric computation We've also added support for automatic distributed/multi-processing metric computation (e.g. when using DistributedDataParallel). We leverage our own dataset format for smart caching in this case. Here is a quick gist of a standard use of metrics (the simplest usage): ```python import nlp bleu_metric = nlp.load_metric('bleu') # If you only have a single iteration, you can easily compute the score like this predictions = model(inputs) score = bleu_metric.compute(predictions, references) # If you have a loop, you can "add" your predictions and references at each iteration instead of having to save them yourself (the metric object store them efficiently for you) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score from all the stored predictions/references ``` Here is a quick gist of a use in a distributed torch setup (should work for any python multi-process setup actually). It's pretty much identical to the second example above: ```python import nlp # You need to give the total number of parallel python processes (num_process) and the id of each process (process_id) bleu = nlp.load_metric('bleu', process_id=torch.distributed.get_rank(),b num_process=torch.distributed.get_world_size()) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score on the first node by default (can be set to compute on each node as well) ```
99
text: Metrics - refactoring, adding support for download and distributed metrics Refactoring metrics to have a similar loading API than the datasets and improving the import system. # Import system The import system has ben upgraded. There are now three types of imports allowed: 1. `library` imports (identified as "absolute imports") ```python import seqeval ``` => we'll test all the imports before running the scripts and if one cannot be imported we'll display an error message like this one: `ImportError: To be able to use this metric/dataset, you need to install the following dependencies ['seqeval'] using 'pip install seqeval' for instance'` 2. `internal` imports (identified as "relative imports") ```python import .c4_utils ``` => we'll assume this point to a file in the same directory/S3-directory as the main script and download this file. 2. `external` imports (identified as "relative imports" with a comment starting with `# From:`) ```python from .nmt_bleu import compute_bleu # From: https://github.com/tensorflow/nmt/blob/master/nmt/scripts/bleu.py ``` => we'll assume this point to the URL of a python script (if it's a link to a github file, we'll take the raw file automatically). => the script is downloaded and renamed to the import name (here above renamed from `bleu.py` to `nmt_bleu.py`). Renaming the file can be necessary if the distant file has the same name as the dataset/metric processing script. If you forgot to rename the distant script and it has the same name as the dataset/metric, you'll have an explicit error message asking to rename the import anyway. # Hosting metrics Metrics are hosted on a S3 bucket like the dataset processing scripts. # Metrics scripts Metrics scripts have a lot in common with datasets processing scripts. They also have a `metric.info` including citations, descriptions and links to relevant pages. Metrics have more documentation to supply to ensure they are used well. Four examples are already included for reference in [./metrics](./metrics): BLEU, ROUGE, SacreBLEU and SeqEVAL. # Automatic support for distributed/multi-processing metric computation We've also added support for automatic distributed/multi-processing metric computation (e.g. when using DistributedDataParallel). We leverage our own dataset format for smart caching in this case. Here is a quick gist of a standard use of metrics (the simplest usage): ```python import nlp bleu_metric = nlp.load_metric('bleu') # If you only have a single iteration, you can easily compute the score like this predictions = model(inputs) score = bleu_metric.compute(predictions, references) # If you have a loop, you can "add" your predictions and references at each iteration instead of having to save them yourself (the metric object store them efficiently for you) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score from all the stored predictions/references ``` Here is a quick gist of a use in a distributed torch setup (should work for any python multi-process setup actually). It's pretty much identical to the second example above: ```python import nlp # You need to give the total number of parallel python processes (num_process) and the id of each process (process_id) bleu = nlp.load_metric('bleu', process_id=torch.distributed.get_rank(),b num_process=torch.distributed.get_world_size()) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score on the first node by default (can be set to compute on each node as well) ``` > Really cool, I love it! I would just raise a tiny point, the distributive version of the metrics might not work properly with TF because it is a different way to do, why not to add a "framework" detection and raise warning when TF is used, saying something like "not available yet in TF switch to non distributive metric computation". > > What do you think? Good point @jplu I'm not sure how you should do distributed metrics evaluation for TF. There is only one python script, right? Maybe it's just the same as in the not-distributed case?
[ -0.279062956571579, 0.0837915688753128, -0.20577004551887512, -0.09935231506824493, 0.224392831325531, -0.1579832285642624, 0.15860138833522797, 0.43016546964645386, 0.2135058045387268, 0.23295047879219055, -0.31690868735313416, 0.26721325516700745, 0.06293273717164993, 0.20759041607379913, 0.19033180177211761, 0.07168126106262207, -0.13353121280670166, -0.015363067388534546, 0.009973250329494476, -0.13184785842895508, -0.38368678092956543, 0.08920986205339432, 0.0008633732795715332, -0.12492789328098297, 0.12974172830581665, 0.18734538555145264, -0.0020167529582977295, -0.04999461770057678, -0.4898436665534973, -0.41598454117774963, 0.06257639080286026, 0.41179612278938293, 0.09551948308944702, 0.4589085280895233, -0.00009827535541262478, -0.13645419478416443, 0.2173466831445694, -0.015576372854411602, -0.21356433629989624, -0.282987117767334, -0.08456102013587952, -0.48941221833229065, 0.1191096380352974, -0.15220391750335693, 0.09927280992269516, -0.16275902092456818, 0.060615651309490204, -0.1682981550693512, 0.1958916336297989, 0.29639771580696106, 0.29396161437034607, 0.4091212749481201, -0.332681804895401, -0.22683216631412506, -0.01795727014541626, -0.11688031256198883, -0.1233561635017395, 0.5140002369880676, 0.28154778480529785, -0.002842445857822895, -0.08613815158605576, 0.2520550787448883, -0.14441312849521637, 0.2183314710855484, 0.5187354683876038, -0.02757488191127777, 0.387910932302475, -0.20348282158374786, -0.1789119839668274, 0.2609707713127136, 0.3054409325122833, -0.335163950920105, -0.3418700098991394, -0.13879767060279846, -0.06334476917982101, -0.5442236065864563, -0.08648069947957993, -0.24070045351982117, -0.07482489943504333, -0.0348537378013134, -0.3012130558490753, -0.2761162221431732, -0.18565499782562256, 0.159910649061203, -0.3478025197982788, 0.4155829846858978, -0.1652829498052597, -0.09332979470491409, -0.055315349251031876, 0.03218868747353554, 0.2903604805469513, -0.07720991969108582, 0.2501645088195801, 0.020290493965148926, -0.19963808357715607, 0.019074581563472748, 0.4049103856086731, -0.5048944354057312, 0.043962202966213226, 0.21182414889335632, 0.17046524584293365, 0.051704488694667816, 0.002568126656115055, 0.21194660663604736, -0.12464317679405212, 0.2897059917449951, 0.17467275261878967, -0.1381756216287613, 0.3330278992652893, 0.3808659613132477, 0.3057501018047333, -0.14629226922988892, -0.06247453764081001, -0.3756709694862366, -0.2696740925312042, 0.24799701571464539, 0.1573995053768158, 0.0655415952205658, -0.3415188193321228, -0.05964471399784088, 0.32794782519340515, -0.2804878056049347, 0.0627686083316803, 0.13755545020103455, -0.3746214509010315, 0.021765727549791336, 0.12082989513874054, 0.06991710513830185, -0.23477062582969666, -0.028581731021404266, -0.23896172642707825, 0.07354292273521423, -0.230476975440979, 0.08795372396707535, 0.20157523453235626, -0.03749676048755646, 0.3047313392162323, -0.12329903244972229, 0.3117978572845459, -0.029715918004512787, 0.11121515929698944, 0.011955603957176208, 0.19103190302848816, 0.17577053606510162, 0.09380084276199341, -0.0011986847966909409, 0.06547950953245163, -0.05314425751566887, -0.18973395228385925, -0.09459192305803299, -0.39655035734176636, -0.22222410142421722, 0.05545949935913086, 0.34066838026046753, -0.3097030520439148, -0.1344119906425476, -0.025408245623111725, 0.2323789894580841, -0.3147246241569519, -0.11914612352848053, 0.005004100501537323, 0.026025846600532532, -0.3228778541088104, -0.23996374011039734, 0.4278113842010498, 0.10560626536607742, -0.31787174940109253, -0.251739501953125, -0.3446156084537506, -0.10117276012897491, 0.041755542159080505, 0.08465005457401276, -0.08934629708528519, 0.31123819947242737, 0.060855232179164886, 0.10480572283267975, 0.5214196443557739, -0.6604573130607605, -0.09905994683504105, 0.15722887217998505, -0.22596792876720428, -0.19094909727573395, -0.03493279963731766, -0.06774385273456573, 0.5302220582962036, -0.06442316621541977, 0.160549134016037, 0.17713677883148193, 0.008846107870340347, -0.32762277126312256, -0.10633817315101624, -0.2056667059659958, -0.23898465931415558, 0.15366661548614502, 0.44682422280311584, -0.014205902814865112, 0.18733668327331543, -0.0021186508238315582, 0.01817416399717331, -0.07117775082588196, 0.09519042074680328, 0.24293719232082367, 0.44795143604278564, 0.034625791013240814, 0.08348311483860016, -0.19267559051513672, -0.14110320806503296, 0.18773695826530457, -0.07918757200241089, 0.13567256927490234, 0.07403580099344254, -0.14061729609966278, -0.46151357889175415, -0.0337548591196537, 0.07207167893648148, -0.06984725594520569, 0.24983876943588257, -0.006353609263896942, -0.20849573612213135, 0.06656308472156525, -0.20978805422782898, -0.19016219675540924, -0.16688655316829681, 0.0657944455742836, 0.09759101271629333, 0.10492366552352905, -0.03351058065891266, -0.06775204092264175, 0.25756701827049255, 0.17927274107933044, 0.03861716762185097, 0.009529374539852142, 0.06934166699647903, 0.4132944345474243, -0.0848252922296524, 0.33536696434020996, 0.15549466013908386, 0.5523571968078613, 0.31744828820228577, 0.28241047263145447, 0.08837954699993134, -0.24582217633724213, 0.11575403064489365, -0.027488693594932556, -0.11322803050279617, 0.3446792960166931, -0.23529694974422455, 0.024705879390239716, 0.07482689619064331, -0.08833953738212585, 0.07726175338029861, -0.024439169093966484, -0.35324031114578247, -0.15579122304916382, 0.11135680228471756, -0.09174244105815887, -0.22253692150115967, -0.221278116106987, 0.05845220386981964, 0.13168853521347046, 0.5681811571121216, 0.006248731166124344, 0.019231967628002167, 0.023253288120031357, -0.03555087000131607, -0.08091582357883453, -0.02178892306983471, 0.18605950474739075, 0.34506142139434814, 0.16011711955070496, 0.3590681254863739, 0.31109699606895447, 0.044082898646593094, -0.33357977867126465, 0.14112594723701477, 0.2418055385351181, -0.034073639661073685, 0.2994886636734009, -0.040090784430503845, 0.058978088200092316, -0.04829762130975723, -0.13350094854831696, 0.1078590378165245, 0.03125991299748421, -0.3246503472328186, 0.0598263293504715, -0.2216254025697708, 0.04476509988307953, -0.05517313629388809, -0.04262583330273628, -0.163258895277977, -0.5634381175041199, 0.03869984298944473, 0.13559114933013916, -0.19905827939510345, 0.2607107162475586, 0.3946114778518677, 0.37877440452575684, -0.05613525211811066, -0.02465718798339367, -0.051441293209791183, -0.32197657227516174, 0.15152478218078613, 0.22343778610229492, -0.05045757070183754, 0.021798277273774147, 0.3594619035720825, -0.2874005138874054, 0.33390873670578003, -0.38415810465812683, -0.5379721522331238, 0.1287890374660492, -0.09787216782569885, 0.38312989473342896, 0.1872662603855133, 0.02695736289024353, -0.1649308204650879, 0.06337001174688339, 0.09651625901460648, -0.262502521276474, 0.01166699267923832, -0.13326042890548706, -0.14833244681358337, -0.12820136547088623, -0.3127289116382599, -0.5503362417221069, -0.051014065742492676, -0.4985699951648712, 0.09495675563812256, 0.08337520062923431, 0.00856909528374672, 0.03785908222198486, 0.06870550662279129, 0.271454393863678, 0.12223388999700546, 0.13940009474754333, -0.16487467288970947, -0.22454261779785156, 0.3029429614543915, -0.39370039105415344, -0.2702222466468811, 0.13933809101581573, 0.1984233260154724, 0.5559964776039124, -0.0064820293337106705, -0.4380178451538086, -0.5584529042243958, 0.20506782829761505, 0.14982236921787262, 0.20796847343444824, 0.1763109266757965, 0.1353766918182373, 0.04604201763868332, -0.20724432170391083, -0.17845872044563293, -0.05235252529382706, -0.24308237433433533, 0.1661880612373352, 0.010255381464958191, -0.1507231593132019, 0.28517571091651917, 0.13053244352340698, 0.6610588431358337, -0.018062332645058632, -0.03814195469021797, 0.07709275186061859, -0.00809052400290966, 0.4287421405315399, 0.24476423859596252, -0.171177938580513, 0.28691694140434265, 0.08515696227550507, 0.032589565962553024, 0.21146932244300842, -0.07936644554138184, 0.22756575047969818, -0.3096456229686737, 0.008431732654571533, -0.11018330603837967, -0.14073993265628815, 0.13515819609165192, -0.02872452884912491, 0.28692662715911865, 0.1240244060754776, -0.04642410948872566, -0.2937396168708801, 0.1165178194642067, 0.14862239360809326, 0.27888286113739014, 0.18386809527873993, -0.06194581836462021, -0.022506827488541603, -0.014822784811258316, -0.39734339714050293, 0.17129725217819214, -0.14677762985229492, -0.0705702155828476, -0.10626893490552902, 0.07160881161689758, 0.009887360036373138, -0.012454384937882423, 0.376747190952301, -0.49879634380340576, -0.30702710151672363, 0.07623359560966492, -0.1555592119693756, -0.6213068962097168, 0.06266826391220093, -0.3535011410713196, -0.20524626970291138, 0.25208401679992676, 0.310171902179718, -0.2598592936992645, -0.25517430901527405, 0.13853375613689423, -0.10960213094949722, -0.11677360534667969, -0.16249026358127594, -0.1983809918165207, -0.44296008348464966, -0.40270230174064636, -0.18661287426948547, 0.14473575353622437, 0.03641406074166298, -0.03209826350212097, -0.021320875734090805, -0.0038054566830396652, 0.1429242491722107, 0.3081516921520233, 0.22436293959617615, -0.16880366206169128, 0.1977478265762329, 0.07005675137042999, 0.24678939580917358, -0.10783460736274719, 0.3112088143825531, 0.11579552292823792, -0.19999586045742035, -0.4533357620239258, 0.12538234889507294, 0.06107276305556297, 0.3021012246608734, 0.29099297523498535, -0.00030366750434041023, 0.00011786073446273804, -0.02069496363401413, 0.05383063107728958, -0.3708682954311371, 0.32371318340301514, 0.1900947242975235, 0.24397727847099304, 0.19075462222099304, -0.3892230987548828, 0.27616482973098755, 0.3268585205078125, -0.22292502224445343, 0.1749534010887146, -0.27414029836654663, -0.1243448555469513, -0.14368098974227905, 0.3953531086444855, 0.8659754991531372, -0.002134084701538086, -0.0711602121591568, 0.5550305843353271, -0.07460853457450867, 0.43940770626068115, -0.619910478591919, 0.16604618728160858, -0.1543615162372589, -0.18497131764888763, -0.08634961396455765, -0.061677224934101105, -0.02837590128183365, -0.138592928647995, -0.14265070855617523, 0.25000447034835815, 0.022372625768184662, 0.14393489062786102, 0.016421489417552948, 0.31517288088798523, -0.09925421327352524, -0.2724646031856537, 0.1142275407910347, 0.22357088327407837, -0.16839581727981567, 0.12651962041854858, -0.2536197304725647, -0.09277716279029846, -0.035635266453027725, 0.1912483125925064, 0.09416371583938599, -0.22729027271270752, 0.09608084708452225, 0.027872394770383835, -0.11860224604606628, 0.13624750077724457, 0.023292649537324905, 0.17118681967258453, 0.460038423538208, 0.1087750792503357, -0.2653312683105469, 0.13637499511241913, -0.26926517486572266, -0.003614669432863593, 0.1276254951953888, -0.13511809706687927, 0.2903747856616974, -0.3275456130504608, -0.21208420395851135, 0.005026698112487793, 0.1863972246646881, 0.08858631551265717, 0.06715470552444458, 0.13015899062156677, 0.07898569107055664, -0.14615708589553833, 0.10817137360572815, 0.10574152320623398, -0.026718389242887497, -0.16213683784008026, 0.2572050094604492, 0.045546479523181915, -0.04085860028862953, 0.28537940979003906, 0.10124814510345459, -0.19575059413909912, -0.09267646074295044, 0.3818809390068054, -0.06258784234523773, -0.32459691166877747, 0.0028905272483825684, 0.06761237978935242, -0.280151903629303, -0.24470457434654236, -0.26446226239204407, -0.012448620982468128, -0.10683715343475342, 0.2802850902080536, -0.009668291546404362, -0.06388629972934723, 0.031051963567733765, 0.11922655999660492, 0.3554303050041199, -0.053082175552845, -0.15963596105575562, -0.1751728355884552, 0.11470697075128555, 0.2909958064556122, -0.1460505872964859, 0.13634967803955078, -0.0776364654302597, 0.06626283377408981, -0.014316138811409473, -0.024140896275639534, -0.5078856348991394, 0.044930726289749146, -0.09679531306028366, 0.11445010453462601, 0.1300615668296814, -0.12611520290374756, 0.016983890905976295, -0.07930062711238861, 0.06704464554786682, -0.08705484122037888, -0.5345402359962463, -0.30994266271591187, -0.14470236003398895, 0.09037699550390244, -0.1072964146733284, -0.0016371090896427631, 0.20666317641735077, 0.025072213262319565, -0.350357323884964, -0.18654373288154602, 0.1548963487148285, 0.1464170217514038, -0.01785001903772354, 0.28493306040763855, -0.12440218031406403, 0.31652918457984924, 0.29852014780044556, 0.1408935934305191, 0.2500305771827698, 0.39209794998168945, -0.12949001789093018, 0.2103843092918396, -0.10057919472455978, -0.02684555947780609, 0.058091726154088974, 0.15473942458629608, 0.2637757658958435, 0.11226250976324081, 0.3379025161266327, 0.07551014423370361, 0.1248578429222107, -0.06463173031806946, 0.33508551120758057, 0.307784765958786, -0.2571074068546295, -0.15523584187030792, -0.06495001912117004, 0.33733904361724854, -0.030420521274209023, 0.08225391805171967, -0.16711626946926117, 0.2559879720211029, 0.31182825565338135, 0.06343907117843628, 0.4194203317165375, -0.02722502499818802, 0.18522004783153534, 0.1451493203639984, 0.3224056661128998, -0.21573397517204285, 0.09164278209209442, 0.02039453014731407, -0.044660575687885284, 0.07757267355918884, 0.3797954022884369, 0.1398773044347763, 0.08016195893287659, 0.09420575946569443, 0.03267403692007065, 0.31657418608665466, 0.19233009219169617, 0.21582578122615814, 0.1512419581413269, -0.051764342933893204, 0.07592039555311203, 0.000048279762268066406, -0.21437165141105652, 0.06608552485704422, -0.09172593057155609, -0.10833192616701126, -0.10676456987857819, 0.08052893728017807, -0.08524533361196518, 0.3360479474067688, -0.04403191804885864, -0.0829816609621048, -0.4888063669204712, -0.16780629754066467, -0.07113958150148392, -0.16422554850578308, 0.22201018035411835, -0.0894818902015686, -0.1682838499546051, -0.006807014346122742, -0.027457505464553833, -0.01616823486983776, -0.09880291670560837, -0.05248774588108063, 0.23608195781707764, -0.1330820769071579, -0.11209207028150558, 0.18745505809783936, 0.05041838809847832, -0.15494219958782196, 0.4052298665046692, 0.34204572439193726, 0.02729235403239727, -0.08623461425304413, -0.005707847885787487, -0.08007317781448364, -0.13107946515083313, -0.05955718830227852, 0.18146950006484985, 0.02256935089826584, -0.0893690437078476, 0.21528302133083344, 0.34131473302841187, -0.28814390301704407, 0.12110264599323273, -0.10966725647449493, -0.11246632039546967, -0.22883836925029755, 0.4178175628185272, 0.2160778045654297, -0.01905507594347, -0.08770457655191422, 0.024325989186763763, -0.5335632562637329, -0.05511903017759323, 0.6582347750663757, -0.1431717723608017, 0.16836017370224, -0.2088782638311386, 0.1826145052909851, 0.004432663321495056, 0.2845052480697632, 0.17962965369224548, 0.19639119505882263, -0.09448212385177612, 0.018201924860477448, -0.4913804233074188, 0.06968121975660324, 0.2861626446247101, -0.01334294117987156, -0.000994320958852768, 0.2183709293603897, -0.08195244520902634, 0.1894158124923706, -0.1319233924150467, -0.14224117994308472, -0.12801343202590942, -0.2893538177013397, -0.4471566677093506, -0.08842986822128296, -0.2333875447511673, 0.00480776559561491, 0.1612643599510193, 0.023425959050655365, 0.01145501434803009, -0.579965353012085, 0.18502655625343323, -0.2983934283256531, -0.042896710336208344, 0.36975687742233276, 0.43071746826171875, 0.49461984634399414, 0.05950223654508591, 0.1964808851480484, -0.14959816634655, -0.031004946678876877, -0.22369471192359924, -0.0606512688100338, -0.061769820749759674, 0.39605286717414856, -0.11429363489151001, 0.051993295550346375, -0.16961975395679474, -0.26967155933380127, -0.19362394511699677, 0.39957061409950256, -0.01927458867430687, -0.23864780366420746, -0.019181886687874794, -0.0022589312866330147, -0.04962337762117386, 0.08875545859336853, 0.016460776329040527, 0.29665446281433105, 0.03132452443242073, 0.1532530039548874, -0.15617208182811737, -0.3890676498413086, 0.4439159631729126, -0.0931774228811264, -0.1516035944223404, -0.07004006952047348, 0.2703307867050171, 0.03673683479428291, 0.10964736342430115, -0.5591146349906921, 0.12809941172599792, 0.2624984681606293, 0.022273385897278786, -0.36887553334236145, 0.4141055941581726, -0.12472520768642426, 0.00550108402967453, -0.19451144337654114, -0.13546417653560638, 0.04551707208156586, -0.2927783727645874, -0.14848846197128296, -0.18924857676029205 ]
https://github.com/huggingface/datasets/pull/36
Metrics - refactoring, adding support for download and distributed metrics
I think non-distributed case should work in TF for both cases indeed, but this needs to be tested.
Refactoring metrics to have a similar loading API than the datasets and improving the import system. # Import system The import system has ben upgraded. There are now three types of imports allowed: 1. `library` imports (identified as "absolute imports") ```python import seqeval ``` => we'll test all the imports before running the scripts and if one cannot be imported we'll display an error message like this one: `ImportError: To be able to use this metric/dataset, you need to install the following dependencies ['seqeval'] using 'pip install seqeval' for instance'` 2. `internal` imports (identified as "relative imports") ```python import .c4_utils ``` => we'll assume this point to a file in the same directory/S3-directory as the main script and download this file. 2. `external` imports (identified as "relative imports" with a comment starting with `# From:`) ```python from .nmt_bleu import compute_bleu # From: https://github.com/tensorflow/nmt/blob/master/nmt/scripts/bleu.py ``` => we'll assume this point to the URL of a python script (if it's a link to a github file, we'll take the raw file automatically). => the script is downloaded and renamed to the import name (here above renamed from `bleu.py` to `nmt_bleu.py`). Renaming the file can be necessary if the distant file has the same name as the dataset/metric processing script. If you forgot to rename the distant script and it has the same name as the dataset/metric, you'll have an explicit error message asking to rename the import anyway. # Hosting metrics Metrics are hosted on a S3 bucket like the dataset processing scripts. # Metrics scripts Metrics scripts have a lot in common with datasets processing scripts. They also have a `metric.info` including citations, descriptions and links to relevant pages. Metrics have more documentation to supply to ensure they are used well. Four examples are already included for reference in [./metrics](./metrics): BLEU, ROUGE, SacreBLEU and SeqEVAL. # Automatic support for distributed/multi-processing metric computation We've also added support for automatic distributed/multi-processing metric computation (e.g. when using DistributedDataParallel). We leverage our own dataset format for smart caching in this case. Here is a quick gist of a standard use of metrics (the simplest usage): ```python import nlp bleu_metric = nlp.load_metric('bleu') # If you only have a single iteration, you can easily compute the score like this predictions = model(inputs) score = bleu_metric.compute(predictions, references) # If you have a loop, you can "add" your predictions and references at each iteration instead of having to save them yourself (the metric object store them efficiently for you) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score from all the stored predictions/references ``` Here is a quick gist of a use in a distributed torch setup (should work for any python multi-process setup actually). It's pretty much identical to the second example above: ```python import nlp # You need to give the total number of parallel python processes (num_process) and the id of each process (process_id) bleu = nlp.load_metric('bleu', process_id=torch.distributed.get_rank(),b num_process=torch.distributed.get_world_size()) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score on the first node by default (can be set to compute on each node as well) ```
18
text: Metrics - refactoring, adding support for download and distributed metrics Refactoring metrics to have a similar loading API than the datasets and improving the import system. # Import system The import system has ben upgraded. There are now three types of imports allowed: 1. `library` imports (identified as "absolute imports") ```python import seqeval ``` => we'll test all the imports before running the scripts and if one cannot be imported we'll display an error message like this one: `ImportError: To be able to use this metric/dataset, you need to install the following dependencies ['seqeval'] using 'pip install seqeval' for instance'` 2. `internal` imports (identified as "relative imports") ```python import .c4_utils ``` => we'll assume this point to a file in the same directory/S3-directory as the main script and download this file. 2. `external` imports (identified as "relative imports" with a comment starting with `# From:`) ```python from .nmt_bleu import compute_bleu # From: https://github.com/tensorflow/nmt/blob/master/nmt/scripts/bleu.py ``` => we'll assume this point to the URL of a python script (if it's a link to a github file, we'll take the raw file automatically). => the script is downloaded and renamed to the import name (here above renamed from `bleu.py` to `nmt_bleu.py`). Renaming the file can be necessary if the distant file has the same name as the dataset/metric processing script. If you forgot to rename the distant script and it has the same name as the dataset/metric, you'll have an explicit error message asking to rename the import anyway. # Hosting metrics Metrics are hosted on a S3 bucket like the dataset processing scripts. # Metrics scripts Metrics scripts have a lot in common with datasets processing scripts. They also have a `metric.info` including citations, descriptions and links to relevant pages. Metrics have more documentation to supply to ensure they are used well. Four examples are already included for reference in [./metrics](./metrics): BLEU, ROUGE, SacreBLEU and SeqEVAL. # Automatic support for distributed/multi-processing metric computation We've also added support for automatic distributed/multi-processing metric computation (e.g. when using DistributedDataParallel). We leverage our own dataset format for smart caching in this case. Here is a quick gist of a standard use of metrics (the simplest usage): ```python import nlp bleu_metric = nlp.load_metric('bleu') # If you only have a single iteration, you can easily compute the score like this predictions = model(inputs) score = bleu_metric.compute(predictions, references) # If you have a loop, you can "add" your predictions and references at each iteration instead of having to save them yourself (the metric object store them efficiently for you) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score from all the stored predictions/references ``` Here is a quick gist of a use in a distributed torch setup (should work for any python multi-process setup actually). It's pretty much identical to the second example above: ```python import nlp # You need to give the total number of parallel python processes (num_process) and the id of each process (process_id) bleu = nlp.load_metric('bleu', process_id=torch.distributed.get_rank(),b num_process=torch.distributed.get_world_size()) for batch in dataloader: model_input, targets = batch predictions = model(model_inputs) bleu.add(predictions, targets) score = bleu_metric.compute() # Compute the score on the first node by default (can be set to compute on each node as well) ``` I think non-distributed case should work in TF for both cases indeed, but this needs to be tested.
[ -0.279062956571579, 0.0837915688753128, -0.20577004551887512, -0.09935231506824493, 0.224392831325531, -0.1579832285642624, 0.15860138833522797, 0.43016546964645386, 0.2135058045387268, 0.23295047879219055, -0.31690868735313416, 0.26721325516700745, 0.06293273717164993, 0.20759041607379913, 0.19033180177211761, 0.07168126106262207, -0.13353121280670166, -0.015363067388534546, 0.009973250329494476, -0.13184785842895508, -0.38368678092956543, 0.08920986205339432, 0.0008633732795715332, -0.12492789328098297, 0.12974172830581665, 0.18734538555145264, -0.0020167529582977295, -0.04999461770057678, -0.4898436665534973, -0.41598454117774963, 0.06257639080286026, 0.41179612278938293, 0.09551948308944702, 0.4589085280895233, -0.00009827535541262478, -0.13645419478416443, 0.2173466831445694, -0.015576372854411602, -0.21356433629989624, -0.282987117767334, -0.08456102013587952, -0.48941221833229065, 0.1191096380352974, -0.15220391750335693, 0.09927280992269516, -0.16275902092456818, 0.060615651309490204, -0.1682981550693512, 0.1958916336297989, 0.29639771580696106, 0.29396161437034607, 0.4091212749481201, -0.332681804895401, -0.22683216631412506, -0.01795727014541626, -0.11688031256198883, -0.1233561635017395, 0.5140002369880676, 0.28154778480529785, -0.002842445857822895, -0.08613815158605576, 0.2520550787448883, -0.14441312849521637, 0.2183314710855484, 0.5187354683876038, -0.02757488191127777, 0.387910932302475, -0.20348282158374786, -0.1789119839668274, 0.2609707713127136, 0.3054409325122833, -0.335163950920105, -0.3418700098991394, -0.13879767060279846, -0.06334476917982101, -0.5442236065864563, -0.08648069947957993, -0.24070045351982117, -0.07482489943504333, -0.0348537378013134, -0.3012130558490753, -0.2761162221431732, -0.18565499782562256, 0.159910649061203, -0.3478025197982788, 0.4155829846858978, -0.1652829498052597, -0.09332979470491409, -0.055315349251031876, 0.03218868747353554, 0.2903604805469513, -0.07720991969108582, 0.2501645088195801, 0.020290493965148926, -0.19963808357715607, 0.019074581563472748, 0.4049103856086731, -0.5048944354057312, 0.043962202966213226, 0.21182414889335632, 0.17046524584293365, 0.051704488694667816, 0.002568126656115055, 0.21194660663604736, -0.12464317679405212, 0.2897059917449951, 0.17467275261878967, -0.1381756216287613, 0.3330278992652893, 0.3808659613132477, 0.3057501018047333, -0.14629226922988892, -0.06247453764081001, -0.3756709694862366, -0.2696740925312042, 0.24799701571464539, 0.1573995053768158, 0.0655415952205658, -0.3415188193321228, -0.05964471399784088, 0.32794782519340515, -0.2804878056049347, 0.0627686083316803, 0.13755545020103455, -0.3746214509010315, 0.021765727549791336, 0.12082989513874054, 0.06991710513830185, -0.23477062582969666, -0.028581731021404266, -0.23896172642707825, 0.07354292273521423, -0.230476975440979, 0.08795372396707535, 0.20157523453235626, -0.03749676048755646, 0.3047313392162323, -0.12329903244972229, 0.3117978572845459, -0.029715918004512787, 0.11121515929698944, 0.011955603957176208, 0.19103190302848816, 0.17577053606510162, 0.09380084276199341, -0.0011986847966909409, 0.06547950953245163, -0.05314425751566887, -0.18973395228385925, -0.09459192305803299, -0.39655035734176636, -0.22222410142421722, 0.05545949935913086, 0.34066838026046753, -0.3097030520439148, -0.1344119906425476, -0.025408245623111725, 0.2323789894580841, -0.3147246241569519, -0.11914612352848053, 0.005004100501537323, 0.026025846600532532, -0.3228778541088104, -0.23996374011039734, 0.4278113842010498, 0.10560626536607742, -0.31787174940109253, -0.251739501953125, -0.3446156084537506, -0.10117276012897491, 0.041755542159080505, 0.08465005457401276, -0.08934629708528519, 0.31123819947242737, 0.060855232179164886, 0.10480572283267975, 0.5214196443557739, -0.6604573130607605, -0.09905994683504105, 0.15722887217998505, -0.22596792876720428, -0.19094909727573395, -0.03493279963731766, -0.06774385273456573, 0.5302220582962036, -0.06442316621541977, 0.160549134016037, 0.17713677883148193, 0.008846107870340347, -0.32762277126312256, -0.10633817315101624, -0.2056667059659958, -0.23898465931415558, 0.15366661548614502, 0.44682422280311584, -0.014205902814865112, 0.18733668327331543, -0.0021186508238315582, 0.01817416399717331, -0.07117775082588196, 0.09519042074680328, 0.24293719232082367, 0.44795143604278564, 0.034625791013240814, 0.08348311483860016, -0.19267559051513672, -0.14110320806503296, 0.18773695826530457, -0.07918757200241089, 0.13567256927490234, 0.07403580099344254, -0.14061729609966278, -0.46151357889175415, -0.0337548591196537, 0.07207167893648148, -0.06984725594520569, 0.24983876943588257, -0.006353609263896942, -0.20849573612213135, 0.06656308472156525, -0.20978805422782898, -0.19016219675540924, -0.16688655316829681, 0.0657944455742836, 0.09759101271629333, 0.10492366552352905, -0.03351058065891266, -0.06775204092264175, 0.25756701827049255, 0.17927274107933044, 0.03861716762185097, 0.009529374539852142, 0.06934166699647903, 0.4132944345474243, -0.0848252922296524, 0.33536696434020996, 0.15549466013908386, 0.5523571968078613, 0.31744828820228577, 0.28241047263145447, 0.08837954699993134, -0.24582217633724213, 0.11575403064489365, -0.027488693594932556, -0.11322803050279617, 0.3446792960166931, -0.23529694974422455, 0.024705879390239716, 0.07482689619064331, -0.08833953738212585, 0.07726175338029861, -0.024439169093966484, -0.35324031114578247, -0.15579122304916382, 0.11135680228471756, -0.09174244105815887, -0.22253692150115967, -0.221278116106987, 0.05845220386981964, 0.13168853521347046, 0.5681811571121216, 0.006248731166124344, 0.019231967628002167, 0.023253288120031357, -0.03555087000131607, -0.08091582357883453, -0.02178892306983471, 0.18605950474739075, 0.34506142139434814, 0.16011711955070496, 0.3590681254863739, 0.31109699606895447, 0.044082898646593094, -0.33357977867126465, 0.14112594723701477, 0.2418055385351181, -0.034073639661073685, 0.2994886636734009, -0.040090784430503845, 0.058978088200092316, -0.04829762130975723, -0.13350094854831696, 0.1078590378165245, 0.03125991299748421, -0.3246503472328186, 0.0598263293504715, -0.2216254025697708, 0.04476509988307953, -0.05517313629388809, -0.04262583330273628, -0.163258895277977, -0.5634381175041199, 0.03869984298944473, 0.13559114933013916, -0.19905827939510345, 0.2607107162475586, 0.3946114778518677, 0.37877440452575684, -0.05613525211811066, -0.02465718798339367, -0.051441293209791183, -0.32197657227516174, 0.15152478218078613, 0.22343778610229492, -0.05045757070183754, 0.021798277273774147, 0.3594619035720825, -0.2874005138874054, 0.33390873670578003, -0.38415810465812683, -0.5379721522331238, 0.1287890374660492, -0.09787216782569885, 0.38312989473342896, 0.1872662603855133, 0.02695736289024353, -0.1649308204650879, 0.06337001174688339, 0.09651625901460648, -0.262502521276474, 0.01166699267923832, -0.13326042890548706, -0.14833244681358337, -0.12820136547088623, -0.3127289116382599, -0.5503362417221069, -0.051014065742492676, -0.4985699951648712, 0.09495675563812256, 0.08337520062923431, 0.00856909528374672, 0.03785908222198486, 0.06870550662279129, 0.271454393863678, 0.12223388999700546, 0.13940009474754333, -0.16487467288970947, -0.22454261779785156, 0.3029429614543915, -0.39370039105415344, -0.2702222466468811, 0.13933809101581573, 0.1984233260154724, 0.5559964776039124, -0.0064820293337106705, -0.4380178451538086, -0.5584529042243958, 0.20506782829761505, 0.14982236921787262, 0.20796847343444824, 0.1763109266757965, 0.1353766918182373, 0.04604201763868332, -0.20724432170391083, -0.17845872044563293, -0.05235252529382706, -0.24308237433433533, 0.1661880612373352, 0.010255381464958191, -0.1507231593132019, 0.28517571091651917, 0.13053244352340698, 0.6610588431358337, -0.018062332645058632, -0.03814195469021797, 0.07709275186061859, -0.00809052400290966, 0.4287421405315399, 0.24476423859596252, -0.171177938580513, 0.28691694140434265, 0.08515696227550507, 0.032589565962553024, 0.21146932244300842, -0.07936644554138184, 0.22756575047969818, -0.3096456229686737, 0.008431732654571533, -0.11018330603837967, -0.14073993265628815, 0.13515819609165192, -0.02872452884912491, 0.28692662715911865, 0.1240244060754776, -0.04642410948872566, -0.2937396168708801, 0.1165178194642067, 0.14862239360809326, 0.27888286113739014, 0.18386809527873993, -0.06194581836462021, -0.022506827488541603, -0.014822784811258316, -0.39734339714050293, 0.17129725217819214, -0.14677762985229492, -0.0705702155828476, -0.10626893490552902, 0.07160881161689758, 0.009887360036373138, -0.012454384937882423, 0.376747190952301, -0.49879634380340576, -0.30702710151672363, 0.07623359560966492, -0.1555592119693756, -0.6213068962097168, 0.06266826391220093, -0.3535011410713196, -0.20524626970291138, 0.25208401679992676, 0.310171902179718, -0.2598592936992645, -0.25517430901527405, 0.13853375613689423, -0.10960213094949722, -0.11677360534667969, -0.16249026358127594, -0.1983809918165207, -0.44296008348464966, -0.40270230174064636, -0.18661287426948547, 0.14473575353622437, 0.03641406074166298, -0.03209826350212097, -0.021320875734090805, -0.0038054566830396652, 0.1429242491722107, 0.3081516921520233, 0.22436293959617615, -0.16880366206169128, 0.1977478265762329, 0.07005675137042999, 0.24678939580917358, -0.10783460736274719, 0.3112088143825531, 0.11579552292823792, -0.19999586045742035, -0.4533357620239258, 0.12538234889507294, 0.06107276305556297, 0.3021012246608734, 0.29099297523498535, -0.00030366750434041023, 0.00011786073446273804, -0.02069496363401413, 0.05383063107728958, -0.3708682954311371, 0.32371318340301514, 0.1900947242975235, 0.24397727847099304, 0.19075462222099304, -0.3892230987548828, 0.27616482973098755, 0.3268585205078125, -0.22292502224445343, 0.1749534010887146, -0.27414029836654663, -0.1243448555469513, -0.14368098974227905, 0.3953531086444855, 0.8659754991531372, -0.002134084701538086, -0.0711602121591568, 0.5550305843353271, -0.07460853457450867, 0.43940770626068115, -0.619910478591919, 0.16604618728160858, -0.1543615162372589, -0.18497131764888763, -0.08634961396455765, -0.061677224934101105, -0.02837590128183365, -0.138592928647995, -0.14265070855617523, 0.25000447034835815, 0.022372625768184662, 0.14393489062786102, 0.016421489417552948, 0.31517288088798523, -0.09925421327352524, -0.2724646031856537, 0.1142275407910347, 0.22357088327407837, -0.16839581727981567, 0.12651962041854858, -0.2536197304725647, -0.09277716279029846, -0.035635266453027725, 0.1912483125925064, 0.09416371583938599, -0.22729027271270752, 0.09608084708452225, 0.027872394770383835, -0.11860224604606628, 0.13624750077724457, 0.023292649537324905, 0.17118681967258453, 0.460038423538208, 0.1087750792503357, -0.2653312683105469, 0.13637499511241913, -0.26926517486572266, -0.003614669432863593, 0.1276254951953888, -0.13511809706687927, 0.2903747856616974, -0.3275456130504608, -0.21208420395851135, 0.005026698112487793, 0.1863972246646881, 0.08858631551265717, 0.06715470552444458, 0.13015899062156677, 0.07898569107055664, -0.14615708589553833, 0.10817137360572815, 0.10574152320623398, -0.026718389242887497, -0.16213683784008026, 0.2572050094604492, 0.045546479523181915, -0.04085860028862953, 0.28537940979003906, 0.10124814510345459, -0.19575059413909912, -0.09267646074295044, 0.3818809390068054, -0.06258784234523773, -0.32459691166877747, 0.0028905272483825684, 0.06761237978935242, -0.280151903629303, -0.24470457434654236, -0.26446226239204407, -0.012448620982468128, -0.10683715343475342, 0.2802850902080536, -0.009668291546404362, -0.06388629972934723, 0.031051963567733765, 0.11922655999660492, 0.3554303050041199, -0.053082175552845, -0.15963596105575562, -0.1751728355884552, 0.11470697075128555, 0.2909958064556122, -0.1460505872964859, 0.13634967803955078, -0.0776364654302597, 0.06626283377408981, -0.014316138811409473, -0.024140896275639534, -0.5078856348991394, 0.044930726289749146, -0.09679531306028366, 0.11445010453462601, 0.1300615668296814, -0.12611520290374756, 0.016983890905976295, -0.07930062711238861, 0.06704464554786682, -0.08705484122037888, -0.5345402359962463, -0.30994266271591187, -0.14470236003398895, 0.09037699550390244, -0.1072964146733284, -0.0016371090896427631, 0.20666317641735077, 0.025072213262319565, -0.350357323884964, -0.18654373288154602, 0.1548963487148285, 0.1464170217514038, -0.01785001903772354, 0.28493306040763855, -0.12440218031406403, 0.31652918457984924, 0.29852014780044556, 0.1408935934305191, 0.2500305771827698, 0.39209794998168945, -0.12949001789093018, 0.2103843092918396, -0.10057919472455978, -0.02684555947780609, 0.058091726154088974, 0.15473942458629608, 0.2637757658958435, 0.11226250976324081, 0.3379025161266327, 0.07551014423370361, 0.1248578429222107, -0.06463173031806946, 0.33508551120758057, 0.307784765958786, -0.2571074068546295, -0.15523584187030792, -0.06495001912117004, 0.33733904361724854, -0.030420521274209023, 0.08225391805171967, -0.16711626946926117, 0.2559879720211029, 0.31182825565338135, 0.06343907117843628, 0.4194203317165375, -0.02722502499818802, 0.18522004783153534, 0.1451493203639984, 0.3224056661128998, -0.21573397517204285, 0.09164278209209442, 0.02039453014731407, -0.044660575687885284, 0.07757267355918884, 0.3797954022884369, 0.1398773044347763, 0.08016195893287659, 0.09420575946569443, 0.03267403692007065, 0.31657418608665466, 0.19233009219169617, 0.21582578122615814, 0.1512419581413269, -0.051764342933893204, 0.07592039555311203, 0.000048279762268066406, -0.21437165141105652, 0.06608552485704422, -0.09172593057155609, -0.10833192616701126, -0.10676456987857819, 0.08052893728017807, -0.08524533361196518, 0.3360479474067688, -0.04403191804885864, -0.0829816609621048, -0.4888063669204712, -0.16780629754066467, -0.07113958150148392, -0.16422554850578308, 0.22201018035411835, -0.0894818902015686, -0.1682838499546051, -0.006807014346122742, -0.027457505464553833, -0.01616823486983776, -0.09880291670560837, -0.05248774588108063, 0.23608195781707764, -0.1330820769071579, -0.11209207028150558, 0.18745505809783936, 0.05041838809847832, -0.15494219958782196, 0.4052298665046692, 0.34204572439193726, 0.02729235403239727, -0.08623461425304413, -0.005707847885787487, -0.08007317781448364, -0.13107946515083313, -0.05955718830227852, 0.18146950006484985, 0.02256935089826584, -0.0893690437078476, 0.21528302133083344, 0.34131473302841187, -0.28814390301704407, 0.12110264599323273, -0.10966725647449493, -0.11246632039546967, -0.22883836925029755, 0.4178175628185272, 0.2160778045654297, -0.01905507594347, -0.08770457655191422, 0.024325989186763763, -0.5335632562637329, -0.05511903017759323, 0.6582347750663757, -0.1431717723608017, 0.16836017370224, -0.2088782638311386, 0.1826145052909851, 0.004432663321495056, 0.2845052480697632, 0.17962965369224548, 0.19639119505882263, -0.09448212385177612, 0.018201924860477448, -0.4913804233074188, 0.06968121975660324, 0.2861626446247101, -0.01334294117987156, -0.000994320958852768, 0.2183709293603897, -0.08195244520902634, 0.1894158124923706, -0.1319233924150467, -0.14224117994308472, -0.12801343202590942, -0.2893538177013397, -0.4471566677093506, -0.08842986822128296, -0.2333875447511673, 0.00480776559561491, 0.1612643599510193, 0.023425959050655365, 0.01145501434803009, -0.579965353012085, 0.18502655625343323, -0.2983934283256531, -0.042896710336208344, 0.36975687742233276, 0.43071746826171875, 0.49461984634399414, 0.05950223654508591, 0.1964808851480484, -0.14959816634655, -0.031004946678876877, -0.22369471192359924, -0.0606512688100338, -0.061769820749759674, 0.39605286717414856, -0.11429363489151001, 0.051993295550346375, -0.16961975395679474, -0.26967155933380127, -0.19362394511699677, 0.39957061409950256, -0.01927458867430687, -0.23864780366420746, -0.019181886687874794, -0.0022589312866330147, -0.04962337762117386, 0.08875545859336853, 0.016460776329040527, 0.29665446281433105, 0.03132452443242073, 0.1532530039548874, -0.15617208182811737, -0.3890676498413086, 0.4439159631729126, -0.0931774228811264, -0.1516035944223404, -0.07004006952047348, 0.2703307867050171, 0.03673683479428291, 0.10964736342430115, -0.5591146349906921, 0.12809941172599792, 0.2624984681606293, 0.022273385897278786, -0.36887553334236145, 0.4141055941581726, -0.12472520768642426, 0.00550108402967453, -0.19451144337654114, -0.13546417653560638, 0.04551707208156586, -0.2927783727645874, -0.14848846197128296, -0.18924857676029205 ]
https://github.com/huggingface/datasets/pull/33
Big cleanup/refactoring for clean serialization
Great! I think when this merged, we can merge sure that Circle Ci stays happy when uploading new datasets.
This PR cleans many base classes to re-build them as `dataclasses`. We can thus use a simple serialization workflow for `DatasetInfo`, including it's `Features` and `SplitDict` based on `dataclasses` `asdict()`. The resulting code is a lot shorter, can be easily serialized/deserialized, dataset info are human-readable and we can get rid of the `dataclass_json` dependency. The scripts have breaking changes and the conversion tool is updated. Example of dataset info in SQuAD script now: ```python def _info(self): return nlp.DatasetInfo( description=_DESCRIPTION, features=nlp.Features({ "id": nlp.Value('string'), "title": nlp.Value('string'), "context": nlp.Value('string'), "question": nlp.Value('string'), "answers": nlp.Sequence({ "text": nlp.Value('string'), "answer_start": nlp.Value('int32'), }), }), # No default supervised_keys (as we have to pass both question # and context as input). supervised_keys=None, homepage="https://rajpurkar.github.io/SQuAD-explorer/", citation=_CITATION, ) ``` Example of serialized dataset info: ```bash { "description": "Stanford Question Answering Dataset (SQuAD) is a reading comprehension dataset, consisting of questions posed by crowdworkers on a set of Wikipedia articles, where the answer to every question is a segment of text, or span, from the corresponding reading passage, or the question might be unanswerable.\n", "citation": "@article{2016arXiv160605250R,\n author = {{Rajpurkar}, Pranav and {Zhang}, Jian and {Lopyrev},\n Konstantin and {Liang}, Percy},\n title = \"{SQuAD: 100,000+ Questions for Machine Comprehension of Text}\",\n journal = {arXiv e-prints},\n year = 2016,\n eid = {arXiv:1606.05250},\n pages = {arXiv:1606.05250},\narchivePrefix = {arXiv},\n eprint = {1606.05250},\n}\n", "homepage": "https://rajpurkar.github.io/SQuAD-explorer/", "license": "", "features": { "id": { "dtype": "string", "_type": "Value" }, "title": { "dtype": "string", "_type": "Value" }, "context": { "dtype": "string", "_type": "Value" }, "question": { "dtype": "string", "_type": "Value" }, "answers": { "feature": { "text": { "dtype": "string", "_type": "Value" }, "answer_start": { "dtype": "int32", "_type": "Value" } }, "length": -1, "_type": "Sequence" } }, "supervised_keys": null, "name": "squad", "version": { "version_str": "1.0.0", "description": "New split API (https://tensorflow.org/datasets/splits)", "nlp_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0 }, "splits": { "train": { "name": "train", "num_bytes": 79426386, "num_examples": 87599, "dataset_name": "squad" }, "validation": { "name": "validation", "num_bytes": 10491883, "num_examples": 10570, "dataset_name": "squad" } }, "size_in_bytes": 0, "download_size": 35142551, "download_checksums": [] } ```
19
text: Big cleanup/refactoring for clean serialization This PR cleans many base classes to re-build them as `dataclasses`. We can thus use a simple serialization workflow for `DatasetInfo`, including it's `Features` and `SplitDict` based on `dataclasses` `asdict()`. The resulting code is a lot shorter, can be easily serialized/deserialized, dataset info are human-readable and we can get rid of the `dataclass_json` dependency. The scripts have breaking changes and the conversion tool is updated. Example of dataset info in SQuAD script now: ```python def _info(self): return nlp.DatasetInfo( description=_DESCRIPTION, features=nlp.Features({ "id": nlp.Value('string'), "title": nlp.Value('string'), "context": nlp.Value('string'), "question": nlp.Value('string'), "answers": nlp.Sequence({ "text": nlp.Value('string'), "answer_start": nlp.Value('int32'), }), }), # No default supervised_keys (as we have to pass both question # and context as input). supervised_keys=None, homepage="https://rajpurkar.github.io/SQuAD-explorer/", citation=_CITATION, ) ``` Example of serialized dataset info: ```bash { "description": "Stanford Question Answering Dataset (SQuAD) is a reading comprehension dataset, consisting of questions posed by crowdworkers on a set of Wikipedia articles, where the answer to every question is a segment of text, or span, from the corresponding reading passage, or the question might be unanswerable.\n", "citation": "@article{2016arXiv160605250R,\n author = {{Rajpurkar}, Pranav and {Zhang}, Jian and {Lopyrev},\n Konstantin and {Liang}, Percy},\n title = \"{SQuAD: 100,000+ Questions for Machine Comprehension of Text}\",\n journal = {arXiv e-prints},\n year = 2016,\n eid = {arXiv:1606.05250},\n pages = {arXiv:1606.05250},\narchivePrefix = {arXiv},\n eprint = {1606.05250},\n}\n", "homepage": "https://rajpurkar.github.io/SQuAD-explorer/", "license": "", "features": { "id": { "dtype": "string", "_type": "Value" }, "title": { "dtype": "string", "_type": "Value" }, "context": { "dtype": "string", "_type": "Value" }, "question": { "dtype": "string", "_type": "Value" }, "answers": { "feature": { "text": { "dtype": "string", "_type": "Value" }, "answer_start": { "dtype": "int32", "_type": "Value" } }, "length": -1, "_type": "Sequence" } }, "supervised_keys": null, "name": "squad", "version": { "version_str": "1.0.0", "description": "New split API (https://tensorflow.org/datasets/splits)", "nlp_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0 }, "splits": { "train": { "name": "train", "num_bytes": 79426386, "num_examples": 87599, "dataset_name": "squad" }, "validation": { "name": "validation", "num_bytes": 10491883, "num_examples": 10570, "dataset_name": "squad" } }, "size_in_bytes": 0, "download_size": 35142551, "download_checksums": [] } ``` Great! I think when this merged, we can merge sure that Circle Ci stays happy when uploading new datasets.
[ 0.024948347359895706, 0.22678110003471375, -0.12206044793128967, -0.19468994438648224, 0.24440456926822662, -0.12573185563087463, 0.08389618247747421, 0.5444610118865967, -0.2311728447675705, -0.0826716274023056, -0.05522880703210831, 0.66230309009552, 0.00819309987127781, 0.248225137591362, 0.20071814954280853, -0.1885366439819336, 0.08954986184835434, 0.017346814274787903, 0.06903568655252457, -0.07528124004602432, -0.07524412870407104, 0.16812840104103088, -0.25927257537841797, -0.06142352521419525, 0.12693890929222107, -0.19920824468135834, -0.26154547929763794, 0.22970038652420044, -0.18743610382080078, -0.46444761753082275, 0.039867766201496124, 0.25904741883277893, 0.14251255989074707, 0.10647930204868317, -0.00010279275738867, -0.1425636112689972, 0.06033334136009216, -0.07825778424739838, -0.2532568871974945, 0.09291304647922516, 0.14368438720703125, -0.3999684751033783, 0.15755869448184967, -0.48449012637138367, -0.06340150535106659, -0.17736400663852692, 0.16368743777275085, -0.29040026664733887, 0.5257596969604492, 0.19219812750816345, 0.25069499015808105, -0.05963591858744621, 0.011242609471082687, 0.15996597707271576, 0.06407900154590607, 0.36263418197631836, -0.18715466558933258, -0.26809820532798767, 0.3721586763858795, 0.11210242658853531, -0.14301729202270508, 0.32549479603767395, -0.11403021216392517, -0.22433006763458252, 0.3800365626811981, -0.0788281112909317, 0.03928510472178459, -0.40446221828460693, 0.0399148166179657, 0.02912154234945774, 0.3881004750728607, -0.40317076444625854, -0.21040672063827515, -0.2460007667541504, 0.1295136958360672, -0.09807240217924118, -0.22005459666252136, 0.19580397009849548, -0.07790914177894592, 0.24334529042243958, 0.006759721785783768, 0.000767662888392806, -0.22629280388355255, -0.12560094892978668, 0.2434149980545044, 0.47308123111724854, 0.024033624678850174, 0.12124449759721756, -0.3510377109050751, -0.14623191952705383, -0.08010996878147125, -0.11572988331317902, 0.054797038435935974, 0.16102565824985504, -0.004991520196199417, -0.5551118850708008, 0.20416569709777832, -0.2669569253921509, 0.36818069219589233, 0.18741868436336517, -0.07821349054574966, 0.25782510638237, 0.143905371427536, -0.034276820719242096, 0.36806294322013855, -0.07664725184440613, 0.37413913011550903, 0.10038072615861893, 0.24829165637493134, -0.016024935990571976, -0.03898754343390465, 0.2101714313030243, -0.0652889758348465, 0.1412111222743988, -0.09278827905654907, 0.18414142727851868, 0.26807355880737305, -0.15965941548347473, -0.0069885943084955215, 0.14149320125579834, -0.15833322703838348, -0.1378478854894638, -0.16188529133796692, 0.2876942753791809, 0.06172928586602211, 0.40427348017692566, -0.00405019149184227, -0.12971574068069458, -0.1065911278128624, -0.22020675241947174, -0.1112329438328743, 0.05190502852201462, -0.06074044853448868, -0.046671062707901, 0.29675909876823425, 0.2474522590637207, 0.06029220670461655, -0.049917928874492645, -0.0389537513256073, -0.14566168189048767, 0.2675219178199768, -0.025583570823073387, 0.27954012155532837, -0.20640961825847626, 0.04686867073178291, -0.07444444298744202, 0.07622846961021423, -0.18891018629074097, -0.396354615688324, 0.19563642144203186, -0.01095898449420929, -0.049417365342378616, -0.2223241776227951, 0.30259543657302856, -0.1615877002477646, -0.20661254227161407, 0.3656207025051117, 0.5061076283454895, 0.019330434501171112, -0.17549121379852295, 0.08537355065345764, -0.15615595877170563, -0.14252041280269623, -0.24863505363464355, 0.17526677250862122, 0.15792815387248993, -0.40989449620246887, -0.06289441883563995, 0.3886764943599701, -0.03387672081589699, 0.010882183909416199, 0.09768213331699371, -0.15217360854148865, 0.3953239619731903, 0.1178903877735138, 0.04460419714450836, 0.4473845362663269, -0.5634711384773254, -0.16575609147548676, 0.22323407232761383, -0.07584203034639359, -0.031710896641016006, 0.18966905772686005, 0.08594297617673874, 0.5442816019058228, -0.03986114263534546, 0.1210532858967781, 0.4242464303970337, -0.12256810069084167, 0.21513783931732178, -0.249099999666214, -0.35461825132369995, 0.05749870836734772, 0.10128344595432281, 0.04344220086932182, -0.21897414326667786, 0.014818467199802399, 0.2004353255033493, 0.46643882989883423, -0.2984985113143921, 0.16644872725009918, 0.12975698709487915, 0.2300993800163269, 0.17252221703529358, 0.22904255986213684, -0.3355731964111328, -0.3226676285266876, -0.21971720457077026, -0.025350168347358704, 0.13878534734249115, -0.10971382260322571, -0.49035245180130005, -0.0606033094227314, -0.1421888917684555, 0.09788070619106293, -0.12760624289512634, 0.2773929536342621, -0.07422123849391937, 0.06403934955596924, -0.13688689470291138, -0.43520623445510864, 0.020452536642551422, -0.17971841990947723, 0.15505202114582062, -0.2922162115573883, 0.16686703264713287, -0.2577597200870514, -0.06890126317739487, 0.20847004652023315, 0.5068719983100891, 0.12368343770503998, -0.19174028933048248, 0.18087375164031982, 0.23290976881980896, 0.09014497697353363, -0.14341267943382263, 0.33304256200790405, -0.013283967971801758, 0.23918232321739197, -0.23474176228046417, 0.22406886518001556, 0.20673076808452606, 0.16936680674552917, 0.014396779239177704, -0.7419036030769348, 0.493036687374115, -0.04204804077744484, 0.03287159651517868, 0.22690902650356293, -0.06970977038145065, 0.2579713463783264, -0.14368700981140137, -0.3240128457546234, -0.10717706382274628, -0.10404856503009796, 0.15062730014324188, -0.053407445549964905, 0.06561923027038574, -0.39798659086227417, 0.3850473463535309, 0.6602107882499695, -0.16754688322544098, 0.02876325324177742, 0.1051887795329094, 0.032899290323257446, -0.23973128199577332, 0.06252086907625198, 0.05860374495387077, 0.07037798315286636, 0.388621062040329, -0.1299227923154831, -0.04423709958791733, 0.013410357758402824, 0.027400285005569458, 0.28531715273857117, 0.10247606039047241, -0.11116500198841095, 0.13049891591072083, 0.1995483785867691, 0.2037367820739746, -0.1686876267194748, -0.27974221110343933, -0.019479256123304367, -0.016742529347538948, -0.0752435252070427, 0.013734312728047371, -0.02889571338891983, -0.2536427080631256, -0.17023862898349762, 0.09956154227256775, 0.1647314876317978, -0.3122430443763733, 0.05921972170472145, -0.15612050890922546, -0.1512606143951416, 0.20046748220920563, -0.06556080281734467, 0.46567314863204956, -0.013404980301856995, 0.05375291779637337, 0.1124117374420166, -0.32212570309638977, -0.037678129971027374, 0.14473198354244232, 0.19168874621391296, 0.22886693477630615, 0.4274323880672455, 0.03447791934013367, -0.11484929174184799, -0.3778752088546753, -0.6397314667701721, 0.2279834747314453, -0.322998046875, -0.058224089443683624, 0.24555149674415588, 0.015546627342700958, -0.10148732364177704, -0.27868425846099854, 0.1014767661690712, -0.12899497151374817, -0.039596423506736755, -0.16311979293823242, 0.07802219688892365, -0.26363325119018555, -0.35207149386405945, -0.6632410287857056, -0.3282792270183563, -0.332722008228302, 0.26762908697128296, 0.17172396183013916, 0.2915102243423462, 0.10631062090396881, -0.1314932405948639, 0.24859783053398132, 0.1559792309999466, 0.043283767998218536, -0.061210326850414276, -0.06865325570106506, 0.07305923104286194, -0.16113242506980896, -0.23989619314670563, -0.09904888272285461, -0.009762254543602467, -0.22917041182518005, -0.22873862087726593, -0.2398836612701416, -0.3211059272289276, 0.012795653194189072, 0.388214647769928, -0.03163743019104004, 0.08626820147037506, 0.28189608454704285, 0.22432544827461243, -0.2452557384967804, -0.09304438531398773, -0.24996155500411987, -0.06674722582101822, -0.045999787747859955, -0.0020731836557388306, -0.180605947971344, 0.2476646602153778, 0.09381476044654846, 0.5320673584938049, 0.03583381697535515, -0.019616011530160904, -0.16952091455459595, 0.17742547392845154, 0.21370451152324677, 0.05609382316470146, -0.04337193816900253, 0.3640362620353699, -0.2411641776561737, -0.06393192708492279, 0.38041359186172485, 0.01970684714615345, -0.312089741230011, 0.14513391256332397, 0.1651899665594101, -0.06784327328205109, -0.34404003620147705, 0.2763938009738922, 0.10899478197097778, 0.07792968302965164, -0.05139883980154991, 0.13881823420524597, -0.318986713886261, 0.03854957967996597, -0.04551231488585472, 0.14924147725105286, -0.005706608295440674, -0.026462536305189133, -0.8468760251998901, -0.06121833622455597, -0.5077552199363708, 0.21210190653800964, 0.025412671267986298, -0.029921486973762512, 0.00423242524266243, -0.33190497756004333, 0.0307181254029274, -0.20998650789260864, 0.27465230226516724, -0.05959445238113403, -0.07925252616405487, 0.281973272562027, 0.08028195053339005, -0.16922447085380554, -0.06259389221668243, -0.5345322489738464, 0.408659428358078, 0.34973880648612976, 0.2820591330528259, -0.3393875062465668, -0.3581772446632385, 0.42752352356910706, -0.13445790112018585, -0.0851614773273468, 0.0726119726896286, 0.03600241616368294, -0.4308494031429291, -0.4489051401615143, 0.17191533744335175, 0.12922203540802002, -0.022650176659226418, -0.18118901550769806, -0.08228673785924911, 0.07303174585103989, 0.015082020312547684, 0.17341601848602295, 0.26138609647750854, 0.054097190499305725, 0.250801146030426, -0.12639740109443665, 0.0014109425246715546, 0.2277098149061203, 0.05986238270998001, 0.13853833079338074, -0.18229465186595917, -0.25935912132263184, 0.11141042411327362, -0.23480552434921265, 0.4021770656108856, 0.4474584460258484, 0.17456836998462677, -0.047631241381168365, -0.025249432772397995, 0.10839405655860901, -0.16375890374183655, -0.08950189501047134, 0.10454002767801285, -0.03300261124968529, -0.3794485330581665, -0.3888879418373108, 0.19631648063659668, -0.024037783965468407, -0.2755112648010254, 0.05013566091656685, 0.08128353953361511, -0.28889819979667664, 0.676971971988678, 0.27529439330101013, 1.079106330871582, 0.02589503675699234, 0.22373151779174805, 0.15089508891105652, -0.26740509271621704, 0.7551338076591492, -0.2474098652601242, 0.3295336961746216, -0.5015476942062378, 0.0252169631421566, 0.03345264494419098, 0.02596268430352211, 0.050708986818790436, 0.052121635526418686, -0.6811127066612244, 0.18317516148090363, -0.0038099735975265503, -0.10226230323314667, 0.09284207969903946, 0.5746314525604248, 0.08138780295848846, -0.33118653297424316, -0.3101494014263153, 0.2357790470123291, -0.3198530077934265, -0.33779627084732056, -0.07405350357294083, -0.16631412506103516, -0.1650301218032837, -0.012688929215073586, -0.12169674038887024, 0.07705913484096527, 0.06317929178476334, 0.27274638414382935, 0.002792447805404663, -0.1529969424009323, 0.1303907185792923, 0.21805527806282043, 0.1463167667388916, 0.1900496631860733, -0.0023452099412679672, 0.10390625894069672, -0.10953766852617264, 0.08598708361387253, 0.17123517394065857, 0.10704011470079422, 0.4215780198574066, -0.016008911654353142, -0.1960470825433731, -0.0071057602763175964, 0.02127441018819809, -0.2926056683063507, -0.2339361160993576, 0.0740593671798706, 0.3586351275444031, -0.36387917399406433, -0.11049048602581024, 0.22224406898021698, -0.5123644471168518, -0.23695850372314453, 0.16910554468631744, -0.12369674444198608, -0.1660546511411667, 0.3045625686645508, 0.28772982954978943, -0.11820296943187714, 0.07542741298675537, -0.017790019512176514, 0.279252290725708, 0.03506915271282196, 0.34256839752197266, 0.210408553481102, -0.13504332304000854, -0.4526273310184479, 0.11971435695886612, -0.16896486282348633, 0.1220691129565239, 0.020546840503811836, -0.18389102816581726, -0.2454218715429306, 0.05369140952825546, 0.02127610146999359, -0.019250884652137756, 0.11771485209465027, -0.35676535964012146, -0.12009327113628387, -0.16202005743980408, 0.24081850051879883, 0.12535597383975983, 0.22305099666118622, 0.3193452060222626, 0.25908970832824707, -0.11943607777357101, 0.13458605110645294, -0.4599340558052063, -0.1349535435438156, -0.32944193482398987, 0.17590977251529694, 0.07107464969158173, -0.24963068962097168, -0.22264602780342102, -0.11307758092880249, 0.15033972263336182, 0.049740251153707504, 0.004318787716329098, -0.30631521344184875, -0.1383017748594284, 0.09255781024694443, 0.011764155700802803, 0.11977434903383255, -0.09347612410783768, 0.17410825192928314, -0.10341238975524902, -0.13312578201293945, -0.013541046530008316, 0.038588427007198334, 0.1828131079673767, 0.3712140917778015, -0.15481264889240265, 0.0961131751537323, 0.10773186385631561, -0.14587542414665222, 0.32001763582229614, 0.1852409541606903, 0.06535202264785767, 0.3662656247615814, -0.17875708639621735, -0.026283707469701767, -0.1631316840648651, 0.2872324287891388, 0.4288446307182312, 0.38362038135528564, 0.331082284450531, 0.009837135672569275, -0.26930180191993713, 0.24189577996730804, 0.020290613174438477, 0.3929624855518341, -0.2973804175853729, -0.06853395700454712, -0.14607885479927063, 0.3056749701499939, -0.16363656520843506, 0.006828282494097948, 0.3629050552845001, -0.22072649002075195, -0.023016884922981262, 0.15354382991790771, 0.0513199158012867, 0.07786086201667786, 0.0415295735001564, 0.04618898779153824, 0.9074462056159973, 0.06518615782260895, 0.22202065587043762, -0.04530762508511543, -0.048478007316589355, -0.20364795625209808, 0.08567851781845093, 0.049252770841121674, 0.2916135787963867, 0.15809571743011475, 0.1535024344921112, 0.23150788247585297, 0.32976076006889343, 0.2256561666727066, 0.20575648546218872, 0.3854949474334717, 0.2055675983428955, 0.30060499906539917, 0.18507452309131622, 0.1294618397951126, 0.09265682846307755, 0.26585718989372253, -0.22492916882038116, -0.3630591034889221, 0.07573208957910538, 0.177959606051445, -0.17342737317085266, 0.03607334569096565, -0.4314723312854767, -0.0015876516699790955, -0.1749860942363739, -0.1889427900314331, -0.12185361981391907, -0.09094588458538055, 0.21752144396305084, -0.036214783787727356, -0.027859464287757874, -0.2489093393087387, 0.2841643691062927, -0.14636796712875366, 0.5092798471450806, -0.22383078932762146, 0.11572126299142838, 0.08540390431880951, 0.1663409024477005, -0.012310806661844254, 0.27411651611328125, 0.27449360489845276, 0.25233566761016846, -0.2676977217197418, -0.039114974439144135, -0.18000848591327667, -0.031824320554733276, 0.01918070763349533, 0.023994814604520798, 0.09731464087963104, -0.14352014660835266, 0.1989944577217102, 0.22503624856472015, -0.12549637258052826, -0.07067181169986725, 0.4273741841316223, -0.24552235007286072, 0.046357519924640656, 0.11406143009662628, 0.2513695955276489, -0.35490313172340393, 0.16490919888019562, 0.016532018780708313, -0.45071160793304443, -0.0129399998113513, 0.177922785282135, 0.13826289772987366, 0.11967388540506363, -0.14248071610927582, 0.1469658613204956, 0.13667313754558563, 0.36363038420677185, 0.186801016330719, -0.21378090977668762, 0.005733419209718704, -0.015330880880355835, -0.42041251063346863, 0.005778789520263672, 0.14594528079032898, -0.4293186068534851, 0.07977380603551865, 0.48786211013793945, 0.14048507809638977, 0.15217600762844086, -0.2339005023241043, -0.35290271043777466, -0.2397027313709259, -0.2332303822040558, -0.4369864761829376, 0.21255788207054138, 0.07544258236885071, 0.17097152769565582, 0.08677200227975845, -0.2802223265171051, 0.10705883055925369, 0.01862718164920807, 0.09091927856206894, -0.06508531421422958, -0.3520115613937378, 0.20447273552417755, -0.22484660148620605, 0.06114206090569496, 0.15322516858577728, 0.19393767416477203, -0.13310199975967407, -0.3073677122592926, 0.16469043493270874, -0.05523985996842384, -0.3185775876045227, 0.3679836690425873, 0.030190613120794296, 0.3465324938297272, -0.0985238179564476, -0.09075665473937988, 0.10128865391016006, 0.2160750776529312, -0.0027815960347652435, -0.07572665065526962, -0.3545511066913605, -0.06142936646938324, -0.00042824819684028625, 0.09659022837877274, -0.2568528652191162, 0.46749693155288696, -0.09112726151943207, 0.1937475949525833, -0.37941062450408936, -0.22979402542114258, 0.2849225699901581, -0.2562137246131897, -0.4071100056171417, -0.07841738313436508, 0.24391482770442963, 0.11121580004692078, 0.27568018436431885, -0.417916476726532, -0.15031751990318298, 0.1707422435283661, -0.0851861834526062, -0.25857582688331604, 0.18121597170829773, -0.10075463354587555, -0.21518538892269135, -0.14368101954460144, -0.1575215756893158, -0.008797205984592438, -0.14837566018104553, -0.20015230774879456, -0.2775014042854309 ]
https://github.com/huggingface/datasets/pull/25
Add script csv datasets
Ok here is a proposal for a more general API and workflow. # New `ArrowBasedBuilder` For all the formats that can be directly and efficiently loaded by Arrow (CSV, JSON, Parquet, Arrow), we don't really want to have to go through a conversion to python and back to Arrow. This new builder has a `_generate_tables` method to yield `Arrow.Tables` instead of single examples. The tables can be directly casted in Arrow so it's not necessary to supply `Features`, they can be deduced from the `Table` column. # Central role of the `BuilderConfig` to store all the arguments necessary for the Dataset creation. `BuilderConfig` provide a few defaults fields `name`, `version`, `description`, `data_files` and `data_dir` which can be used to store values necessary for the creation of the dataset. It can be freely extended to store additional information (see the example for `CsvConfig`). On the contrary, `DatasetInfo` is designed as an organized and delimited information storage class with predefined fields. `DatasetInfo` now store two names: - `builder_name`: Name of the builder script used to create the dataset - `config_name`: Name of the configuration used to create the dataset. # Refactoring `load()` arguments and all the chain of processing including the `DownloadManager` `load()` now accept a selection of arguments which are used to update the `BuilderConfig` and some kwargs which are used to handle the download process. Supplying a `BuilderConfig` as `config` will override the config provided in the dataset. Supplying a `str` will get the associated config from the dataset. Default is to fetch the first config of the dataset. Giving additional arguments to `load()` will override the arguments in the `BuilderConfig`. # CSV script The `csv.py` script is provided as an example, usage is: ```python bbc = nlp.load('/Users/thomwolf/Documents/GitHub/datasets/datasets/nlp/csv', name='bbc', version="1.0.1", split='train', data_files={'train': ['/Users/thomwolf/Documents/GitHub/datasets/datasets/dummy_data/csv/test.csv']}, skip_rows=10, download_mode='force_redownload') ``` # Checksums We now don't raise an error if the checksum file is not found. # `DownloadConfig` We now have a download configuration class to handle all the specific arguments for file caching like proxies, using only local files or user-agents.
This is a PR allowing to create datasets from local CSV files. A usage might be: ```python import nlp ds = nlp.load( path="csv", name="bbc", dataset_files={ nlp.Split.TRAIN: ["datasets/dummy_data/csv/train.csv"], nlp.Split.TEST: [""datasets/dummy_data/csv/test.csv""] }, csv_kwargs={ "skip_rows": 0, "delimiter": ",", "quote_char": "\"", "header_as_column_names": True } ) ``` ``` Downloading and preparing dataset bbc/1.0.0 (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0... Dataset bbc downloaded and prepared to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0. Subsequent calls will reuse this data. {'test': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 49), 'train': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 99), 'validation': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 0)} ``` How it is read: - `path`: the `csv` word means "I want to create a CSV dataset" - `name`: the name of this dataset is `bbc` - `dataset_files`: this is a dictionary where each key is the list of files corresponding to the key split. - `csv_kwargs`: this is the keywords arguments to "explain" how to read the CSV files * `skip_rows`: number of rows have to be skipped, starting from the beginning of the file * `delimiter`: which delimiter is used to separate the columns * `quote_char`: which quote char is used to represent a column where the delimiter appears in one of them * `header_as_column_names`: will use the first row (header) of the file as name for the features. Otherwise the names will be automatically generated as `f1`, `f2`, etc... Will be applied after the `skip_rows` parameter. **TODO**: for now the `csv.py` is copied each time we create a new dataset as `ds_name.py`, this behavior will be modified to have only the `csv.py` script copied only once and not for all the CSV datasets.
337
text: Add script csv datasets This is a PR allowing to create datasets from local CSV files. A usage might be: ```python import nlp ds = nlp.load( path="csv", name="bbc", dataset_files={ nlp.Split.TRAIN: ["datasets/dummy_data/csv/train.csv"], nlp.Split.TEST: [""datasets/dummy_data/csv/test.csv""] }, csv_kwargs={ "skip_rows": 0, "delimiter": ",", "quote_char": "\"", "header_as_column_names": True } ) ``` ``` Downloading and preparing dataset bbc/1.0.0 (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0... Dataset bbc downloaded and prepared to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0. Subsequent calls will reuse this data. {'test': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 49), 'train': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 99), 'validation': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 0)} ``` How it is read: - `path`: the `csv` word means "I want to create a CSV dataset" - `name`: the name of this dataset is `bbc` - `dataset_files`: this is a dictionary where each key is the list of files corresponding to the key split. - `csv_kwargs`: this is the keywords arguments to "explain" how to read the CSV files * `skip_rows`: number of rows have to be skipped, starting from the beginning of the file * `delimiter`: which delimiter is used to separate the columns * `quote_char`: which quote char is used to represent a column where the delimiter appears in one of them * `header_as_column_names`: will use the first row (header) of the file as name for the features. Otherwise the names will be automatically generated as `f1`, `f2`, etc... Will be applied after the `skip_rows` parameter. **TODO**: for now the `csv.py` is copied each time we create a new dataset as `ds_name.py`, this behavior will be modified to have only the `csv.py` script copied only once and not for all the CSV datasets. Ok here is a proposal for a more general API and workflow. # New `ArrowBasedBuilder` For all the formats that can be directly and efficiently loaded by Arrow (CSV, JSON, Parquet, Arrow), we don't really want to have to go through a conversion to python and back to Arrow. This new builder has a `_generate_tables` method to yield `Arrow.Tables` instead of single examples. The tables can be directly casted in Arrow so it's not necessary to supply `Features`, they can be deduced from the `Table` column. # Central role of the `BuilderConfig` to store all the arguments necessary for the Dataset creation. `BuilderConfig` provide a few defaults fields `name`, `version`, `description`, `data_files` and `data_dir` which can be used to store values necessary for the creation of the dataset. It can be freely extended to store additional information (see the example for `CsvConfig`). On the contrary, `DatasetInfo` is designed as an organized and delimited information storage class with predefined fields. `DatasetInfo` now store two names: - `builder_name`: Name of the builder script used to create the dataset - `config_name`: Name of the configuration used to create the dataset. # Refactoring `load()` arguments and all the chain of processing including the `DownloadManager` `load()` now accept a selection of arguments which are used to update the `BuilderConfig` and some kwargs which are used to handle the download process. Supplying a `BuilderConfig` as `config` will override the config provided in the dataset. Supplying a `str` will get the associated config from the dataset. Default is to fetch the first config of the dataset. Giving additional arguments to `load()` will override the arguments in the `BuilderConfig`. # CSV script The `csv.py` script is provided as an example, usage is: ```python bbc = nlp.load('/Users/thomwolf/Documents/GitHub/datasets/datasets/nlp/csv', name='bbc', version="1.0.1", split='train', data_files={'train': ['/Users/thomwolf/Documents/GitHub/datasets/datasets/dummy_data/csv/test.csv']}, skip_rows=10, download_mode='force_redownload') ``` # Checksums We now don't raise an error if the checksum file is not found. # `DownloadConfig` We now have a download configuration class to handle all the specific arguments for file caching like proxies, using only local files or user-agents.
[ -0.04201473668217659, -0.16513046622276306, -0.23078379034996033, -0.12261658906936646, 0.05989379435777664, 0.160273939371109, 0.15995636582374573, 0.4026927947998047, 0.26296788454055786, 0.2132200002670288, 0.20449323952198029, 0.22073973715305328, -0.19768546521663666, 0.28007540106773376, 0.15231211483478546, -0.07963384687900543, 0.0001940503716468811, 0.38973864912986755, -0.0673675686120987, -0.07607728242874146, -0.2997082769870758, 0.1300564408302307, -0.11596622318029404, -0.004696659743785858, -0.005141626577824354, -0.1282721757888794, -0.17881567776203156, 0.2489146590232849, -0.26239556074142456, -0.29426729679107666, 0.004888894036412239, 0.04243597388267517, -0.01879042573273182, 0.05196978524327278, -0.00009554604184813797, -0.07894295454025269, 0.035215891897678375, -0.1275762915611267, -0.17591318488121033, -0.2788228988647461, -0.13317257165908813, -0.35580259561538696, 0.035345666110515594, -0.4483341872692108, -0.14231470227241516, -0.10894055664539337, 0.11908517777919769, -0.2365691214799881, 0.6241626143455505, 0.41322603821754456, 0.3383677899837494, 0.08935493975877762, -0.27114152908325195, -0.044072020798921585, 0.20477551221847534, 0.1424829214811325, -0.18620622158050537, 0.1110064685344696, -0.08021661639213562, -0.25746455788612366, -0.05235981196165085, 0.20268359780311584, -0.10578472167253494, 0.025260142982006073, 0.17047366499900818, 0.042616382241249084, -0.06214296072721481, -0.29345253109931946, 0.038569603115320206, -0.052747003734111786, 0.2685545086860657, -0.3642016053199768, -0.07756014913320541, -0.22011786699295044, 0.01269498374313116, -0.47829222679138184, -0.09952730685472488, 0.4460631310939789, -0.1107444167137146, 0.19392849504947662, -0.22330330312252045, 0.16788506507873535, -0.1955329328775406, -0.016926467418670654, 0.28839346766471863, 0.175642728805542, -0.08205632120370865, -0.07268638163805008, 0.34095248579978943, -0.0006922520697116852, -0.05762752518057823, -0.2597772181034088, 0.10152764618396759, 0.1850072294473648, 0.021873220801353455, -0.1424402892589569, 0.2036522924900055, 0.1178157776594162, 0.05401429533958435, 0.13038814067840576, 0.22713840007781982, -0.1541459560394287, 0.21534861624240875, 0.2480359673500061, 0.1073235422372818, 0.09986335039138794, 0.18711921572685242, 0.012158426456153393, 0.11667169630527496, 0.11188049614429474, 0.11811938881874084, 0.024969985708594322, 0.06615202128887177, -0.2799752950668335, -0.14248347282409668, 0.1576930582523346, 0.18571847677230835, 0.162376269698143, -0.41518205404281616, 0.17706255614757538, 0.029252484440803528, -0.09081539511680603, -0.11116879433393478, 0.41755661368370056, -0.11571555584669113, -0.07146582007408142, -0.025220807641744614, 0.06624860316514969, -0.20424795150756836, -0.1057412177324295, -0.26997485756874084, 0.38872426748275757, -0.2722770869731903, -0.050158217549324036, 0.273579865694046, 0.1364806592464447, 0.29590123891830444, -0.06532974541187286, -0.07774575054645538, -0.020994452759623528, 0.09905767440795898, -0.09105178713798523, 0.24094590544700623, 0.1864025890827179, 0.22105586528778076, -0.1538032591342926, 0.17547470331192017, -0.3722134232521057, -0.2565019428730011, 0.10729344189167023, -0.05735837668180466, -0.2760556638240814, -0.1790124773979187, 0.39972934126853943, -0.05294142663478851, 0.046150293201208115, 0.0737963318824768, 0.1768578290939331, 0.10988359153270721, 0.007513266056776047, 0.042180225253105164, 0.026351645588874817, -0.19173738360404968, -0.2943907678127289, 0.0709613710641861, 0.4742854833602905, -0.5333012938499451, 0.0304691344499588, 0.010428296402096748, -0.20489536225795746, 0.183011993765831, 0.1750527024269104, -0.11027661710977554, 0.20800438523292542, -0.11432065814733505, 0.168535053730011, 0.4371411204338074, -0.14287519454956055, -0.0388806015253067, 0.24611762166023254, -0.23811519145965576, -0.16287608444690704, 0.39064648747444153, -0.05100417137145996, 0.15851092338562012, -0.004792020656168461, 0.16384196281433105, 0.29503244161605835, -0.17790871858596802, 0.14253933727741241, -0.10185238718986511, -0.14500366151332855, 0.04149636626243591, 0.07794788479804993, -0.18368510901927948, -0.07132462412118912, 0.16404125094413757, -0.09539256244897842, 0.3850809931755066, -0.1979389488697052, 0.2064773440361023, 0.10901389271020889, 0.14222638309001923, 0.022764384746551514, -0.08343560993671417, -0.1720809042453766, -0.21760013699531555, -0.1143316775560379, 0.012719761580228806, 0.1369400918483734, -0.10651689767837524, -0.41198432445526123, -0.4622589945793152, -0.01611519604921341, -0.20695726573467255, -0.18514280021190643, 0.30933690071105957, 0.15741309523582458, 0.2282322347164154, -0.1720273494720459, -0.15159912407398224, -0.007326716557145119, -0.2005438506603241, -0.06558218598365784, -0.43189537525177, 0.11310546100139618, -0.47356438636779785, -0.06274870038032532, 0.2356523871421814, 0.44118255376815796, 0.009642627090215683, -0.09310479462146759, 0.18430709838867188, 0.2244863212108612, 0.10412684082984924, 0.030233927071094513, 0.314104288816452, -0.00917789340019226, -0.0011638160794973373, -0.13684900104999542, 0.21984995901584625, 0.05135505273938179, 0.21458253264427185, 0.1229187473654747, -0.385969877243042, 0.5567870736122131, -0.11860513687133789, 0.0018784329295158386, 0.147787407040596, -0.026760198175907135, 0.24478569626808167, -0.21912331879138947, -0.09232115745544434, -0.3952452838420868, 0.20199519395828247, 0.11905989050865173, -0.11586727201938629, -0.00003180280327796936, -0.4132135212421417, 0.15656320750713348, 0.5235036015510559, -0.14609254896640778, -0.0013214722275733948, 0.06785701960325241, 0.0686795711517334, -0.1121203824877739, 0.014471955597400665, 0.2858407199382782, 0.3164646625518799, 0.37457776069641113, -0.036366548389196396, 0.06543213129043579, -0.10559580475091934, -0.4255789518356323, 0.19745153188705444, -0.10029913485050201, -0.07296640425920486, 0.18326926231384277, 0.025850581005215645, -0.10374079644680023, -0.46464329957962036, -0.20304574072360992, 0.019727392122149467, 0.18758612871170044, -0.07826589047908783, 0.16097693145275116, -0.18862707912921906, -0.410108745098114, -0.2864176630973816, 0.09008162468671799, 0.08573327213525772, -0.29813066124916077, 0.08764056861400604, 0.05987130105495453, -0.32139456272125244, 0.092180997133255, -0.06601963937282562, 0.2814757823944092, 0.029265625402331352, -0.18824502825737, 0.02580013871192932, -0.24539710581302643, -0.07978281378746033, 0.3233950436115265, 0.07136169075965881, 0.26791223883628845, 0.5576847195625305, -0.1506686508655548, 0.024484578520059586, -0.14534713327884674, -0.1318480223417282, 0.11134839057922363, -0.2755153775215149, 0.1702316254377365, 0.2473742663860321, 0.162123441696167, -0.09553210437297821, -0.4163200855255127, 0.0364794060587883, -0.04780741035938263, -0.26013055443763733, -0.09070465713739395, 0.0147294532507658, -0.27123650908470154, -0.31640636920928955, -0.6325834393501282, -0.2651769816875458, -0.348998099565506, 0.28583502769470215, 0.29426273703575134, 0.3320446014404297, 0.2335013896226883, 0.09733495116233826, 0.19293242692947388, -0.021865742281079292, 0.08222950249910355, -0.22957606613636017, 0.018318425863981247, 0.15789684653282166, -0.4259970486164093, -0.3320874273777008, 0.05681365355849266, -0.2066275030374527, 0.056922927498817444, -0.3303613066673279, -0.2905671298503876, -0.18002550303936005, -0.16297714412212372, 0.26880019903182983, 0.1215311586856842, 0.010353457182645798, 0.43299993872642517, 0.12485639750957489, -0.25990164279937744, -0.11052671074867249, -0.1714603453874588, 0.019324995577335358, 0.12215957790613174, 0.037349969148635864, -0.034663811326026917, 0.24607503414154053, 0.017654109746217728, 0.453372597694397, 0.13500595092773438, -0.049809377640485764, 0.28797903656959534, -0.1705414205789566, 0.3376646637916565, -0.02736743539571762, -0.29453784227371216, 0.16779479384422302, -0.010830476880073547, -0.12549236416816711, 0.3593798875808716, -0.17846465110778809, -0.022317731752991676, -0.12406401336193085, 0.10648146271705627, -0.4496418237686157, -0.20745941996574402, 0.1728276163339615, -0.06179872900247574, 0.0797053724527359, -0.013428710401058197, -0.09473086893558502, -0.17953096330165863, -0.025616642087697983, -0.34960588812828064, 0.3261183202266693, 0.1451198160648346, -0.03624199330806732, -0.31703051924705505, -0.14664776623249054, -0.5119866728782654, 0.24560269713401794, 0.14235343039035797, -0.024136777967214584, -0.1418423056602478, -0.18835952877998352, 0.03208615630865097, -0.07925001531839371, 0.5180812478065491, -0.2539752423763275, 0.060769662261009216, 0.016599908471107483, 0.3329026699066162, -0.05348909646272659, 0.12246999144554138, -0.3025144636631012, 0.2069241851568222, 0.31297531723976135, 0.29962193965911865, -0.13908052444458008, -0.21084950864315033, 0.428212970495224, 0.19838187098503113, -0.07580175995826721, -0.08767639845609665, -0.23151710629463196, -0.32895949482917786, -0.3704545199871063, 0.13115331530570984, 0.06856529414653778, 0.22048337757587433, -0.1618850976228714, 0.009623877704143524, 0.21317224204540253, -0.07553944736719131, 0.2549949884414673, 0.18539157509803772, 0.06118151172995567, 0.16177470982074738, -0.07431137561798096, -0.21402508020401, 0.22751352190971375, -0.03484480828046799, 0.4549309015274048, -0.19437524676322937, -0.19705414772033691, 0.06692550331354141, -0.07730767130851746, 0.4480205178260803, 0.23017618060112, 0.0392008014023304, 0.07817565649747849, -0.05098477751016617, 0.1446145474910736, -0.0892389789223671, 0.05444401130080223, 0.23069573938846588, -0.2800235450267792, -0.11075612157583237, -0.4490775167942047, 0.195290669798851, 0.020662222057580948, -0.06072762608528137, -0.19308200478553772, -0.0520169734954834, -0.2865650951862335, 0.33747124671936035, 0.14112195372581482, 0.9079480171203613, 0.03815821558237076, 0.28724199533462524, 0.2731335163116455, -0.12196766585111618, 0.5114834308624268, -0.14939633011817932, 0.16935741901397705, -0.36344942450523376, -0.005623229779303074, -0.07432953268289566, -0.007550619542598724, 0.2900465428829193, 0.23699221014976501, -0.31581026315689087, 0.34017178416252136, 0.08533212542533875, 0.16821078956127167, -0.07714228332042694, 0.2407938539981842, -0.11058890074491501, -0.28673478960990906, -0.2801886200904846, 0.2524847686290741, 0.12219410389661789, -0.056334447115659714, -0.007884243503212929, -0.17657530307769775, 0.010485563427209854, -0.23674499988555908, -0.09069447964429855, 0.10015524178743362, 0.044042281806468964, -0.028898317366838455, -0.14144542813301086, -0.22560903429985046, 0.018280860036611557, 0.41074666380882263, 0.14136344194412231, 0.19663049280643463, -0.0823943242430687, -0.01763596385717392, 0.034413814544677734, -0.20382897555828094, -0.2130993902683258, 0.08862496167421341, 0.22675630450248718, -0.11941052973270416, -0.23053978383541107, 0.027399878948926926, -0.02620142698287964, -0.08758498728275299, -0.044857174158096313, 0.2653892934322357, -0.030554912984371185, -0.4210287928581238, -0.3828076124191284, -0.04497779905796051, -0.42256832122802734, -0.2633536458015442, 0.27110815048217773, -0.19046421349048615, -0.07084617018699646, 0.021716739982366562, 0.006712581962347031, -0.16642402112483978, -0.15671119093894958, 0.15468165278434753, 0.14444661140441895, 0.05777278542518616, 0.2638944983482361, 0.051819730550050735, -0.22357024252414703, -0.5068668723106384, -0.07511448860168457, 0.01129652839154005, -0.20536646246910095, 0.037135399878025055, 0.2556780278682709, -0.10363651812076569, 0.18398268520832062, 0.20210720598697662, 0.11832297593355179, 0.2646954357624054, 0.0057105012238025665, -0.37932440638542175, -0.17966413497924805, 0.10059705376625061, 0.02683144621551037, 0.21927976608276367, 0.36668500304222107, 0.4236365258693695, 0.1380855292081833, 0.12599638104438782, -0.527123212814331, -0.06009473651647568, -0.20867253839969635, 0.20109616219997406, 0.34385964274406433, -0.1489529013633728, -0.035990748554468155, 0.017776504158973694, 0.3028227686882019, 0.06425909698009491, -0.2951289415359497, -0.44489458203315735, -0.03362945094704628, 0.07182814925909042, -0.05468034744262695, 0.01416007149964571, -0.04073585197329521, 0.04538697749376297, -0.21502400934696198, -0.1184745579957962, -0.03058616816997528, -0.028734181076288223, 0.03712074086070061, 0.26098912954330444, -0.08238419890403748, 0.16123804450035095, 0.26365870237350464, -0.24737364053726196, -0.2330852746963501, 0.38545703887939453, -0.0518280491232872, 0.11471281200647354, -0.14249040186405182, -0.10612252354621887, -0.12226194143295288, 0.05370146408677101, 0.20691782236099243, 0.20350825786590576, 0.14791184663772583, -0.08260132372379303, -0.20928700268268585, 0.011088833212852478, 0.49153754115104675, 0.17472431063652039, -0.11387630552053452, 0.12372228503227234, 0.22537609934806824, 0.39002737402915955, -0.4179163873195648, 0.07870776206254959, 0.021918516606092453, -0.061511315405368805, 0.22967931628227234, 0.31614676117897034, 0.168626070022583, 0.08633933961391449, -0.12215428054332733, 0.028113730251789093, 0.3613758683204651, -0.1884777694940567, 0.09910795092582703, 0.4504210650920868, 0.04405272379517555, -0.0620015524327755, 0.1912774294614792, 0.0788806676864624, 0.30144399404525757, 0.2959766387939453, -0.082642562687397, 0.2029552161693573, 0.14213310182094574, 0.10704439133405685, -0.09347153455018997, -0.2638319134712219, 0.33337175846099854, 0.19899997115135193, -0.12007719278335571, 0.16993272304534912, 0.1441888064146042, 0.44299933314323425, -0.14486053586006165, 0.129088893532753, -0.22780460119247437, 0.4056578278541565, -0.08182189613580704, -0.09029969573020935, -0.29760846495628357, -0.050946712493896484, -0.2732241749763489, -0.0153239406645298, 0.12393444776535034, 0.027596432715654373, 0.17290818691253662, -0.1878005415201187, 0.005888953804969788, -0.12253755331039429, 0.27630025148391724, -0.012669611722230911, 0.1912725269794464, -0.2735014855861664, 0.12256976217031479, 0.15048742294311523, 0.09948581457138062, -0.2356698215007782, -0.038260266184806824, 0.4490283131599426, 0.22771412134170532, -0.0427447110414505, 0.02253396064043045, -0.2652592658996582, -0.283869206905365, -0.14066684246063232, 0.1989729106426239, 0.16939163208007812, 0.19549031555652618, 0.39551040530204773, 0.35185256600379944, -0.283054381608963, 0.18581949174404144, 0.406004399061203, -0.20958705246448517, -0.06894057989120483, 0.13326779007911682, 0.23442614078521729, -0.21746239066123962, -0.1934950053691864, 0.08091478794813156, -0.5077990889549255, -0.09522773325443268, 0.14851589500904083, 0.017747176811099052, 0.3451744616031647, -0.2505365312099457, 0.19139333069324493, 0.11063726246356964, 0.41964319348335266, 0.10821686685085297, 0.12368667125701904, -0.21869876980781555, -0.1838708221912384, -0.42201292514801025, -0.13691246509552002, -0.08218230307102203, -0.31091129779815674, -0.15904131531715393, 0.22522680461406708, 0.010921470820903778, 0.18296973407268524, -0.4373679757118225, 0.21590474247932434, 0.0466688796877861, 0.0723276436328888, -0.11992546916007996, -0.07349221408367157, -0.008752211928367615, 0.10574259608983994, 0.12414436042308807, -0.3800496757030487, -0.052221234887838364, -0.09616108238697052, 0.21148377656936646, -0.27078068256378174, 0.10245083272457123, 0.13006773591041565, 0.02949877269566059, 0.10472556203603745, 0.0722154900431633, 0.3953481912612915, -0.48200151324272156, 0.08530785888433456, -0.08404383063316345, 0.010184119455516338, -0.2690991461277008, 0.2542077302932739, 0.25125589966773987, 0.2682425379753113, -0.12220333516597748, -0.001510966569185257, -0.027336513623595238, 0.21285565197467804, 0.23395954072475433, 0.03815701603889465, 0.00436757504940033, 0.1356261670589447, -0.058621447533369064, 0.12499596923589706, -0.047129202634096146, 0.16839846968650818, -0.10382923483848572, 0.08112234622240067, -0.12222998589277267, -0.4945458769798279, 0.3288692831993103, -0.12931273877620697, -0.17539814114570618, 0.15627025067806244, 0.3527040481567383, 0.06282622367143631, -0.09852354228496552, -0.34381431341171265, 0.12792539596557617, 0.24647027254104614, -0.03205041214823723, -0.11211337149143219, 0.3982716202735901, -0.23151296377182007, -0.1730874627828598, -0.028172900900244713, 0.11204259097576141, 0.21831482648849487, -0.2793140709400177, 0.02563072368502617, -0.4506945013999939 ]
https://github.com/huggingface/datasets/pull/25
Add script csv datasets
Ok merging this for now. One general note is that it's a bit hard to handle the `ClassLabel` generally in both `nlp` and `Arrow` since a class label typically need some metadata for the class names. For now, I raise a `NotImplementedError` when an `ArrowBuilder` output a table with a `DictionaryType` is encountered (which could be a simple equivalent for a `ClassLabel` Feature in Arrow tables). In general and if we need this in the future for some Beam Datasets for instance, I think we should use one of the `metadata` fields in the `Arrow` type or table's schema to store the relation with indices and class names. So ping me if you meet Beam datasets which uses `ClassLabels` (cc @lhoestq @patrickvonplaten @mariamabarham).
This is a PR allowing to create datasets from local CSV files. A usage might be: ```python import nlp ds = nlp.load( path="csv", name="bbc", dataset_files={ nlp.Split.TRAIN: ["datasets/dummy_data/csv/train.csv"], nlp.Split.TEST: [""datasets/dummy_data/csv/test.csv""] }, csv_kwargs={ "skip_rows": 0, "delimiter": ",", "quote_char": "\"", "header_as_column_names": True } ) ``` ``` Downloading and preparing dataset bbc/1.0.0 (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0... Dataset bbc downloaded and prepared to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0. Subsequent calls will reuse this data. {'test': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 49), 'train': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 99), 'validation': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 0)} ``` How it is read: - `path`: the `csv` word means "I want to create a CSV dataset" - `name`: the name of this dataset is `bbc` - `dataset_files`: this is a dictionary where each key is the list of files corresponding to the key split. - `csv_kwargs`: this is the keywords arguments to "explain" how to read the CSV files * `skip_rows`: number of rows have to be skipped, starting from the beginning of the file * `delimiter`: which delimiter is used to separate the columns * `quote_char`: which quote char is used to represent a column where the delimiter appears in one of them * `header_as_column_names`: will use the first row (header) of the file as name for the features. Otherwise the names will be automatically generated as `f1`, `f2`, etc... Will be applied after the `skip_rows` parameter. **TODO**: for now the `csv.py` is copied each time we create a new dataset as `ds_name.py`, this behavior will be modified to have only the `csv.py` script copied only once and not for all the CSV datasets.
123
text: Add script csv datasets This is a PR allowing to create datasets from local CSV files. A usage might be: ```python import nlp ds = nlp.load( path="csv", name="bbc", dataset_files={ nlp.Split.TRAIN: ["datasets/dummy_data/csv/train.csv"], nlp.Split.TEST: [""datasets/dummy_data/csv/test.csv""] }, csv_kwargs={ "skip_rows": 0, "delimiter": ",", "quote_char": "\"", "header_as_column_names": True } ) ``` ``` Downloading and preparing dataset bbc/1.0.0 (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0... Dataset bbc downloaded and prepared to /home/jplu/.cache/huggingface/datasets/bbc/1.0.0. Subsequent calls will reuse this data. {'test': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 49), 'train': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 99), 'validation': Dataset(schema: {'category': 'string', 'text': 'string'}, num_rows: 0)} ``` How it is read: - `path`: the `csv` word means "I want to create a CSV dataset" - `name`: the name of this dataset is `bbc` - `dataset_files`: this is a dictionary where each key is the list of files corresponding to the key split. - `csv_kwargs`: this is the keywords arguments to "explain" how to read the CSV files * `skip_rows`: number of rows have to be skipped, starting from the beginning of the file * `delimiter`: which delimiter is used to separate the columns * `quote_char`: which quote char is used to represent a column where the delimiter appears in one of them * `header_as_column_names`: will use the first row (header) of the file as name for the features. Otherwise the names will be automatically generated as `f1`, `f2`, etc... Will be applied after the `skip_rows` parameter. **TODO**: for now the `csv.py` is copied each time we create a new dataset as `ds_name.py`, this behavior will be modified to have only the `csv.py` script copied only once and not for all the CSV datasets. Ok merging this for now. One general note is that it's a bit hard to handle the `ClassLabel` generally in both `nlp` and `Arrow` since a class label typically need some metadata for the class names. For now, I raise a `NotImplementedError` when an `ArrowBuilder` output a table with a `DictionaryType` is encountered (which could be a simple equivalent for a `ClassLabel` Feature in Arrow tables). In general and if we need this in the future for some Beam Datasets for instance, I think we should use one of the `metadata` fields in the `Arrow` type or table's schema to store the relation with indices and class names. So ping me if you meet Beam datasets which uses `ClassLabels` (cc @lhoestq @patrickvonplaten @mariamabarham).
[ -0.04201473668217659, -0.16513046622276306, -0.23078379034996033, -0.12261658906936646, 0.05989379435777664, 0.160273939371109, 0.15995636582374573, 0.4026927947998047, 0.26296788454055786, 0.2132200002670288, 0.20449323952198029, 0.22073973715305328, -0.19768546521663666, 0.28007540106773376, 0.15231211483478546, -0.07963384687900543, 0.0001940503716468811, 0.38973864912986755, -0.0673675686120987, -0.07607728242874146, -0.2997082769870758, 0.1300564408302307, -0.11596622318029404, -0.004696659743785858, -0.005141626577824354, -0.1282721757888794, -0.17881567776203156, 0.2489146590232849, -0.26239556074142456, -0.29426729679107666, 0.004888894036412239, 0.04243597388267517, -0.01879042573273182, 0.05196978524327278, -0.00009554604184813797, -0.07894295454025269, 0.035215891897678375, -0.1275762915611267, -0.17591318488121033, -0.2788228988647461, -0.13317257165908813, -0.35580259561538696, 0.035345666110515594, -0.4483341872692108, -0.14231470227241516, -0.10894055664539337, 0.11908517777919769, -0.2365691214799881, 0.6241626143455505, 0.41322603821754456, 0.3383677899837494, 0.08935493975877762, -0.27114152908325195, -0.044072020798921585, 0.20477551221847534, 0.1424829214811325, -0.18620622158050537, 0.1110064685344696, -0.08021661639213562, -0.25746455788612366, -0.05235981196165085, 0.20268359780311584, -0.10578472167253494, 0.025260142982006073, 0.17047366499900818, 0.042616382241249084, -0.06214296072721481, -0.29345253109931946, 0.038569603115320206, -0.052747003734111786, 0.2685545086860657, -0.3642016053199768, -0.07756014913320541, -0.22011786699295044, 0.01269498374313116, -0.47829222679138184, -0.09952730685472488, 0.4460631310939789, -0.1107444167137146, 0.19392849504947662, -0.22330330312252045, 0.16788506507873535, -0.1955329328775406, -0.016926467418670654, 0.28839346766471863, 0.175642728805542, -0.08205632120370865, -0.07268638163805008, 0.34095248579978943, -0.0006922520697116852, -0.05762752518057823, -0.2597772181034088, 0.10152764618396759, 0.1850072294473648, 0.021873220801353455, -0.1424402892589569, 0.2036522924900055, 0.1178157776594162, 0.05401429533958435, 0.13038814067840576, 0.22713840007781982, -0.1541459560394287, 0.21534861624240875, 0.2480359673500061, 0.1073235422372818, 0.09986335039138794, 0.18711921572685242, 0.012158426456153393, 0.11667169630527496, 0.11188049614429474, 0.11811938881874084, 0.024969985708594322, 0.06615202128887177, -0.2799752950668335, -0.14248347282409668, 0.1576930582523346, 0.18571847677230835, 0.162376269698143, -0.41518205404281616, 0.17706255614757538, 0.029252484440803528, -0.09081539511680603, -0.11116879433393478, 0.41755661368370056, -0.11571555584669113, -0.07146582007408142, -0.025220807641744614, 0.06624860316514969, -0.20424795150756836, -0.1057412177324295, -0.26997485756874084, 0.38872426748275757, -0.2722770869731903, -0.050158217549324036, 0.273579865694046, 0.1364806592464447, 0.29590123891830444, -0.06532974541187286, -0.07774575054645538, -0.020994452759623528, 0.09905767440795898, -0.09105178713798523, 0.24094590544700623, 0.1864025890827179, 0.22105586528778076, -0.1538032591342926, 0.17547470331192017, -0.3722134232521057, -0.2565019428730011, 0.10729344189167023, -0.05735837668180466, -0.2760556638240814, -0.1790124773979187, 0.39972934126853943, -0.05294142663478851, 0.046150293201208115, 0.0737963318824768, 0.1768578290939331, 0.10988359153270721, 0.007513266056776047, 0.042180225253105164, 0.026351645588874817, -0.19173738360404968, -0.2943907678127289, 0.0709613710641861, 0.4742854833602905, -0.5333012938499451, 0.0304691344499588, 0.010428296402096748, -0.20489536225795746, 0.183011993765831, 0.1750527024269104, -0.11027661710977554, 0.20800438523292542, -0.11432065814733505, 0.168535053730011, 0.4371411204338074, -0.14287519454956055, -0.0388806015253067, 0.24611762166023254, -0.23811519145965576, -0.16287608444690704, 0.39064648747444153, -0.05100417137145996, 0.15851092338562012, -0.004792020656168461, 0.16384196281433105, 0.29503244161605835, -0.17790871858596802, 0.14253933727741241, -0.10185238718986511, -0.14500366151332855, 0.04149636626243591, 0.07794788479804993, -0.18368510901927948, -0.07132462412118912, 0.16404125094413757, -0.09539256244897842, 0.3850809931755066, -0.1979389488697052, 0.2064773440361023, 0.10901389271020889, 0.14222638309001923, 0.022764384746551514, -0.08343560993671417, -0.1720809042453766, -0.21760013699531555, -0.1143316775560379, 0.012719761580228806, 0.1369400918483734, -0.10651689767837524, -0.41198432445526123, -0.4622589945793152, -0.01611519604921341, -0.20695726573467255, -0.18514280021190643, 0.30933690071105957, 0.15741309523582458, 0.2282322347164154, -0.1720273494720459, -0.15159912407398224, -0.007326716557145119, -0.2005438506603241, -0.06558218598365784, -0.43189537525177, 0.11310546100139618, -0.47356438636779785, -0.06274870038032532, 0.2356523871421814, 0.44118255376815796, 0.009642627090215683, -0.09310479462146759, 0.18430709838867188, 0.2244863212108612, 0.10412684082984924, 0.030233927071094513, 0.314104288816452, -0.00917789340019226, -0.0011638160794973373, -0.13684900104999542, 0.21984995901584625, 0.05135505273938179, 0.21458253264427185, 0.1229187473654747, -0.385969877243042, 0.5567870736122131, -0.11860513687133789, 0.0018784329295158386, 0.147787407040596, -0.026760198175907135, 0.24478569626808167, -0.21912331879138947, -0.09232115745544434, -0.3952452838420868, 0.20199519395828247, 0.11905989050865173, -0.11586727201938629, -0.00003180280327796936, -0.4132135212421417, 0.15656320750713348, 0.5235036015510559, -0.14609254896640778, -0.0013214722275733948, 0.06785701960325241, 0.0686795711517334, -0.1121203824877739, 0.014471955597400665, 0.2858407199382782, 0.3164646625518799, 0.37457776069641113, -0.036366548389196396, 0.06543213129043579, -0.10559580475091934, -0.4255789518356323, 0.19745153188705444, -0.10029913485050201, -0.07296640425920486, 0.18326926231384277, 0.025850581005215645, -0.10374079644680023, -0.46464329957962036, -0.20304574072360992, 0.019727392122149467, 0.18758612871170044, -0.07826589047908783, 0.16097693145275116, -0.18862707912921906, -0.410108745098114, -0.2864176630973816, 0.09008162468671799, 0.08573327213525772, -0.29813066124916077, 0.08764056861400604, 0.05987130105495453, -0.32139456272125244, 0.092180997133255, -0.06601963937282562, 0.2814757823944092, 0.029265625402331352, -0.18824502825737, 0.02580013871192932, -0.24539710581302643, -0.07978281378746033, 0.3233950436115265, 0.07136169075965881, 0.26791223883628845, 0.5576847195625305, -0.1506686508655548, 0.024484578520059586, -0.14534713327884674, -0.1318480223417282, 0.11134839057922363, -0.2755153775215149, 0.1702316254377365, 0.2473742663860321, 0.162123441696167, -0.09553210437297821, -0.4163200855255127, 0.0364794060587883, -0.04780741035938263, -0.26013055443763733, -0.09070465713739395, 0.0147294532507658, -0.27123650908470154, -0.31640636920928955, -0.6325834393501282, -0.2651769816875458, -0.348998099565506, 0.28583502769470215, 0.29426273703575134, 0.3320446014404297, 0.2335013896226883, 0.09733495116233826, 0.19293242692947388, -0.021865742281079292, 0.08222950249910355, -0.22957606613636017, 0.018318425863981247, 0.15789684653282166, -0.4259970486164093, -0.3320874273777008, 0.05681365355849266, -0.2066275030374527, 0.056922927498817444, -0.3303613066673279, -0.2905671298503876, -0.18002550303936005, -0.16297714412212372, 0.26880019903182983, 0.1215311586856842, 0.010353457182645798, 0.43299993872642517, 0.12485639750957489, -0.25990164279937744, -0.11052671074867249, -0.1714603453874588, 0.019324995577335358, 0.12215957790613174, 0.037349969148635864, -0.034663811326026917, 0.24607503414154053, 0.017654109746217728, 0.453372597694397, 0.13500595092773438, -0.049809377640485764, 0.28797903656959534, -0.1705414205789566, 0.3376646637916565, -0.02736743539571762, -0.29453784227371216, 0.16779479384422302, -0.010830476880073547, -0.12549236416816711, 0.3593798875808716, -0.17846465110778809, -0.022317731752991676, -0.12406401336193085, 0.10648146271705627, -0.4496418237686157, -0.20745941996574402, 0.1728276163339615, -0.06179872900247574, 0.0797053724527359, -0.013428710401058197, -0.09473086893558502, -0.17953096330165863, -0.025616642087697983, -0.34960588812828064, 0.3261183202266693, 0.1451198160648346, -0.03624199330806732, -0.31703051924705505, -0.14664776623249054, -0.5119866728782654, 0.24560269713401794, 0.14235343039035797, -0.024136777967214584, -0.1418423056602478, -0.18835952877998352, 0.03208615630865097, -0.07925001531839371, 0.5180812478065491, -0.2539752423763275, 0.060769662261009216, 0.016599908471107483, 0.3329026699066162, -0.05348909646272659, 0.12246999144554138, -0.3025144636631012, 0.2069241851568222, 0.31297531723976135, 0.29962193965911865, -0.13908052444458008, -0.21084950864315033, 0.428212970495224, 0.19838187098503113, -0.07580175995826721, -0.08767639845609665, -0.23151710629463196, -0.32895949482917786, -0.3704545199871063, 0.13115331530570984, 0.06856529414653778, 0.22048337757587433, -0.1618850976228714, 0.009623877704143524, 0.21317224204540253, -0.07553944736719131, 0.2549949884414673, 0.18539157509803772, 0.06118151172995567, 0.16177470982074738, -0.07431137561798096, -0.21402508020401, 0.22751352190971375, -0.03484480828046799, 0.4549309015274048, -0.19437524676322937, -0.19705414772033691, 0.06692550331354141, -0.07730767130851746, 0.4480205178260803, 0.23017618060112, 0.0392008014023304, 0.07817565649747849, -0.05098477751016617, 0.1446145474910736, -0.0892389789223671, 0.05444401130080223, 0.23069573938846588, -0.2800235450267792, -0.11075612157583237, -0.4490775167942047, 0.195290669798851, 0.020662222057580948, -0.06072762608528137, -0.19308200478553772, -0.0520169734954834, -0.2865650951862335, 0.33747124671936035, 0.14112195372581482, 0.9079480171203613, 0.03815821558237076, 0.28724199533462524, 0.2731335163116455, -0.12196766585111618, 0.5114834308624268, -0.14939633011817932, 0.16935741901397705, -0.36344942450523376, -0.005623229779303074, -0.07432953268289566, -0.007550619542598724, 0.2900465428829193, 0.23699221014976501, -0.31581026315689087, 0.34017178416252136, 0.08533212542533875, 0.16821078956127167, -0.07714228332042694, 0.2407938539981842, -0.11058890074491501, -0.28673478960990906, -0.2801886200904846, 0.2524847686290741, 0.12219410389661789, -0.056334447115659714, -0.007884243503212929, -0.17657530307769775, 0.010485563427209854, -0.23674499988555908, -0.09069447964429855, 0.10015524178743362, 0.044042281806468964, -0.028898317366838455, -0.14144542813301086, -0.22560903429985046, 0.018280860036611557, 0.41074666380882263, 0.14136344194412231, 0.19663049280643463, -0.0823943242430687, -0.01763596385717392, 0.034413814544677734, -0.20382897555828094, -0.2130993902683258, 0.08862496167421341, 0.22675630450248718, -0.11941052973270416, -0.23053978383541107, 0.027399878948926926, -0.02620142698287964, -0.08758498728275299, -0.044857174158096313, 0.2653892934322357, -0.030554912984371185, -0.4210287928581238, -0.3828076124191284, -0.04497779905796051, -0.42256832122802734, -0.2633536458015442, 0.27110815048217773, -0.19046421349048615, -0.07084617018699646, 0.021716739982366562, 0.006712581962347031, -0.16642402112483978, -0.15671119093894958, 0.15468165278434753, 0.14444661140441895, 0.05777278542518616, 0.2638944983482361, 0.051819730550050735, -0.22357024252414703, -0.5068668723106384, -0.07511448860168457, 0.01129652839154005, -0.20536646246910095, 0.037135399878025055, 0.2556780278682709, -0.10363651812076569, 0.18398268520832062, 0.20210720598697662, 0.11832297593355179, 0.2646954357624054, 0.0057105012238025665, -0.37932440638542175, -0.17966413497924805, 0.10059705376625061, 0.02683144621551037, 0.21927976608276367, 0.36668500304222107, 0.4236365258693695, 0.1380855292081833, 0.12599638104438782, -0.527123212814331, -0.06009473651647568, -0.20867253839969635, 0.20109616219997406, 0.34385964274406433, -0.1489529013633728, -0.035990748554468155, 0.017776504158973694, 0.3028227686882019, 0.06425909698009491, -0.2951289415359497, -0.44489458203315735, -0.03362945094704628, 0.07182814925909042, -0.05468034744262695, 0.01416007149964571, -0.04073585197329521, 0.04538697749376297, -0.21502400934696198, -0.1184745579957962, -0.03058616816997528, -0.028734181076288223, 0.03712074086070061, 0.26098912954330444, -0.08238419890403748, 0.16123804450035095, 0.26365870237350464, -0.24737364053726196, -0.2330852746963501, 0.38545703887939453, -0.0518280491232872, 0.11471281200647354, -0.14249040186405182, -0.10612252354621887, -0.12226194143295288, 0.05370146408677101, 0.20691782236099243, 0.20350825786590576, 0.14791184663772583, -0.08260132372379303, -0.20928700268268585, 0.011088833212852478, 0.49153754115104675, 0.17472431063652039, -0.11387630552053452, 0.12372228503227234, 0.22537609934806824, 0.39002737402915955, -0.4179163873195648, 0.07870776206254959, 0.021918516606092453, -0.061511315405368805, 0.22967931628227234, 0.31614676117897034, 0.168626070022583, 0.08633933961391449, -0.12215428054332733, 0.028113730251789093, 0.3613758683204651, -0.1884777694940567, 0.09910795092582703, 0.4504210650920868, 0.04405272379517555, -0.0620015524327755, 0.1912774294614792, 0.0788806676864624, 0.30144399404525757, 0.2959766387939453, -0.082642562687397, 0.2029552161693573, 0.14213310182094574, 0.10704439133405685, -0.09347153455018997, -0.2638319134712219, 0.33337175846099854, 0.19899997115135193, -0.12007719278335571, 0.16993272304534912, 0.1441888064146042, 0.44299933314323425, -0.14486053586006165, 0.129088893532753, -0.22780460119247437, 0.4056578278541565, -0.08182189613580704, -0.09029969573020935, -0.29760846495628357, -0.050946712493896484, -0.2732241749763489, -0.0153239406645298, 0.12393444776535034, 0.027596432715654373, 0.17290818691253662, -0.1878005415201187, 0.005888953804969788, -0.12253755331039429, 0.27630025148391724, -0.012669611722230911, 0.1912725269794464, -0.2735014855861664, 0.12256976217031479, 0.15048742294311523, 0.09948581457138062, -0.2356698215007782, -0.038260266184806824, 0.4490283131599426, 0.22771412134170532, -0.0427447110414505, 0.02253396064043045, -0.2652592658996582, -0.283869206905365, -0.14066684246063232, 0.1989729106426239, 0.16939163208007812, 0.19549031555652618, 0.39551040530204773, 0.35185256600379944, -0.283054381608963, 0.18581949174404144, 0.406004399061203, -0.20958705246448517, -0.06894057989120483, 0.13326779007911682, 0.23442614078521729, -0.21746239066123962, -0.1934950053691864, 0.08091478794813156, -0.5077990889549255, -0.09522773325443268, 0.14851589500904083, 0.017747176811099052, 0.3451744616031647, -0.2505365312099457, 0.19139333069324493, 0.11063726246356964, 0.41964319348335266, 0.10821686685085297, 0.12368667125701904, -0.21869876980781555, -0.1838708221912384, -0.42201292514801025, -0.13691246509552002, -0.08218230307102203, -0.31091129779815674, -0.15904131531715393, 0.22522680461406708, 0.010921470820903778, 0.18296973407268524, -0.4373679757118225, 0.21590474247932434, 0.0466688796877861, 0.0723276436328888, -0.11992546916007996, -0.07349221408367157, -0.008752211928367615, 0.10574259608983994, 0.12414436042308807, -0.3800496757030487, -0.052221234887838364, -0.09616108238697052, 0.21148377656936646, -0.27078068256378174, 0.10245083272457123, 0.13006773591041565, 0.02949877269566059, 0.10472556203603745, 0.0722154900431633, 0.3953481912612915, -0.48200151324272156, 0.08530785888433456, -0.08404383063316345, 0.010184119455516338, -0.2690991461277008, 0.2542077302932739, 0.25125589966773987, 0.2682425379753113, -0.12220333516597748, -0.001510966569185257, -0.027336513623595238, 0.21285565197467804, 0.23395954072475433, 0.03815701603889465, 0.00436757504940033, 0.1356261670589447, -0.058621447533369064, 0.12499596923589706, -0.047129202634096146, 0.16839846968650818, -0.10382923483848572, 0.08112234622240067, -0.12222998589277267, -0.4945458769798279, 0.3288692831993103, -0.12931273877620697, -0.17539814114570618, 0.15627025067806244, 0.3527040481567383, 0.06282622367143631, -0.09852354228496552, -0.34381431341171265, 0.12792539596557617, 0.24647027254104614, -0.03205041214823723, -0.11211337149143219, 0.3982716202735901, -0.23151296377182007, -0.1730874627828598, -0.028172900900244713, 0.11204259097576141, 0.21831482648849487, -0.2793140709400177, 0.02563072368502617, -0.4506945013999939 ]
https://github.com/huggingface/datasets/pull/24
Add checksums
Looks good to me :-) Just would prefer to get rid of the `_DYNAMICALLY_IMPORTED_MODULE` attribute and replace it by a `get_imported_module()` function. Maybe there is something I'm not seeing here though - what do you think?
### Checksums files They are stored next to the dataset script in urls_checksums/checksums.txt. They are used to check the integrity of the datasets downloaded files. I kept the same format as tensorflow-datasets. There is one checksums file for all configs. ### Load a dataset When you do `load("squad")`, it will also download the checksums file and put it next to the script in nlp/datasets/hash/urls_checksums/checksums.txt. It also verifies that the downloaded files checksums match the expected ones. You can ignore checksum tests with `load("squad", ignore_checksums=True)` (under the hood it just adds `ignore_checksums=True` in the `DownloadConfig`) ### Test a dataset There is a new command `nlp-cli test squad` that runs `download_and_prepare` to see if it runs ok, and that verifies that all the checksums match. Allowed arguments are `--name`, `--all_configs`, `--ignore_checksums` and `--register_checksums`. ### Register checksums 1. If the dataset has external dataset files The command `nlp-cli test squad --register_checksums --all_configs` runs `download_and_prepare` on all configs to see if it runs ok, and it creates the checksums file. You can also register one config at a time using `--name` instead ; the checksums file will be completed and not overwritten. If the script is a local script, the checksum file is moved to urls_checksums/checksums.txt next to the local script, to enable the user to upload both the script and the checksums file afterwards with `nlp-cli upload squad`. 2. If the dataset files are all inside the directory of the dataset script The user can directly do `nlp-cli upload squad --register_checksums`, as there is no need to download anything. In this case however, all the dataset must be uploaded at once. -- PS : it doesn't allow to register checksums for canonical datasets, the file has to be added manually on S3 for now (I guess ?) Also I feel like we must be sure that this processes would not constrain too much any user from uploading its dataset. Let me know what you think :)
36
text: Add checksums ### Checksums files They are stored next to the dataset script in urls_checksums/checksums.txt. They are used to check the integrity of the datasets downloaded files. I kept the same format as tensorflow-datasets. There is one checksums file for all configs. ### Load a dataset When you do `load("squad")`, it will also download the checksums file and put it next to the script in nlp/datasets/hash/urls_checksums/checksums.txt. It also verifies that the downloaded files checksums match the expected ones. You can ignore checksum tests with `load("squad", ignore_checksums=True)` (under the hood it just adds `ignore_checksums=True` in the `DownloadConfig`) ### Test a dataset There is a new command `nlp-cli test squad` that runs `download_and_prepare` to see if it runs ok, and that verifies that all the checksums match. Allowed arguments are `--name`, `--all_configs`, `--ignore_checksums` and `--register_checksums`. ### Register checksums 1. If the dataset has external dataset files The command `nlp-cli test squad --register_checksums --all_configs` runs `download_and_prepare` on all configs to see if it runs ok, and it creates the checksums file. You can also register one config at a time using `--name` instead ; the checksums file will be completed and not overwritten. If the script is a local script, the checksum file is moved to urls_checksums/checksums.txt next to the local script, to enable the user to upload both the script and the checksums file afterwards with `nlp-cli upload squad`. 2. If the dataset files are all inside the directory of the dataset script The user can directly do `nlp-cli upload squad --register_checksums`, as there is no need to download anything. In this case however, all the dataset must be uploaded at once. -- PS : it doesn't allow to register checksums for canonical datasets, the file has to be added manually on S3 for now (I guess ?) Also I feel like we must be sure that this processes would not constrain too much any user from uploading its dataset. Let me know what you think :) Looks good to me :-) Just would prefer to get rid of the `_DYNAMICALLY_IMPORTED_MODULE` attribute and replace it by a `get_imported_module()` function. Maybe there is something I'm not seeing here though - what do you think?
[ -0.20539680123329163, 0.15717989206314087, -0.18159276247024536, -0.23007319867610931, 0.059997446835041046, -0.03445061668753624, 0.3007707893848419, 0.48398739099502563, 0.12035714089870453, 0.1314937174320221, 0.0250454880297184, 0.35859277844429016, -0.02829035371541977, -0.028247999027371407, 0.26689577102661133, 0.40383195877075195, -0.03879430145025253, 0.18695864081382751, -0.12637627124786377, -0.09298808872699738, -0.021558456122875214, -0.15024515986442566, 0.08906954526901245, -0.36422181129455566, 0.03561725839972496, 0.0721568912267685, 0.023886827751994133, 0.18978795409202576, -0.17735573649406433, -0.3262861967086792, 0.17360109090805054, 0.31247958540916443, -0.05022025853395462, 0.24179747700691223, -0.00010418138117529452, 0.19412045180797577, 0.22133851051330566, -0.09162431210279465, -0.16695038974285126, 0.10256154835224152, -0.3135623633861542, -0.33193346858024597, -0.17246122658252716, -0.3899596333503723, 0.1018785908818245, 0.28212249279022217, 0.21194367110729218, -0.15463075041770935, 0.37471675872802734, 0.3343711495399475, 0.24475796520709991, 0.42204558849334717, -0.16657575964927673, 0.14327335357666016, 0.06313424557447433, -0.08938628435134888, -0.015448465012013912, 0.01802176795899868, 0.13886678218841553, -0.12405036389827728, 0.026218265295028687, 0.116720050573349, 0.016786692664027214, 0.025778066366910934, 0.30955007672309875, -0.012487555854022503, 0.13326095044612885, -0.1865704208612442, -0.20491021871566772, 0.27381518483161926, 0.14844819903373718, -0.4083268344402313, -0.30540499091148376, -0.21173202991485596, 0.2595936357975006, -0.2486717849969864, 0.22249287366867065, 0.16772906482219696, -0.018423443660140038, -0.1831897795200348, -0.3784197270870209, 0.0933363139629364, -0.25221216678619385, 0.15845918655395508, 0.30184444785118103, 0.2546348571777344, 0.23312346637248993, -0.030145876109600067, 0.16181981563568115, 0.075606569647789, -0.12177217751741409, -0.09617171436548233, 0.14450404047966003, 0.15445873141288757, -0.3768238127231598, -0.3089097738265991, 0.1848107874393463, -0.08722654730081558, 0.39954468607902527, 0.24400576949119568, 0.27285903692245483, 0.15869393944740295, -0.04019620642066002, 0.23490196466445923, -0.17031027376651764, -0.006871763151139021, 0.32749664783477783, 0.13006068766117096, 0.3272647261619568, 0.17613708972930908, -0.0349329374730587, 0.2008921205997467, 0.01379378605633974, -0.23498862981796265, -0.035534173250198364, 0.16436123847961426, 0.0650402158498764, -0.11179827153682709, -0.15928703546524048, 0.007709999103099108, 0.18917322158813477, -0.1575397104024887, 0.24564306437969208, 0.3601307272911072, -0.17100027203559875, -0.1492856740951538, 0.01978491246700287, -0.0010588094592094421, -0.17465512454509735, 0.06772498041391373, -0.2147662490606308, -0.005369037389755249, -0.20467807352542877, 0.18973170220851898, 0.44437259435653687, -0.049529317766427994, 0.3362312316894531, -0.024135123938322067, 0.21003682911396027, 0.060373030602931976, 0.3294273912906647, 0.06921863555908203, 0.07879436761140823, 0.17724530398845673, 0.1775919795036316, -0.13988380134105682, -0.20473745465278625, -0.3260152339935303, -0.2942955493927002, 0.0779239684343338, -0.22625499963760376, -0.1766870766878128, -0.10557162761688232, 0.3273228108882904, -0.399164617061615, -0.015071578323841095, 0.059509359300136566, -0.12284974753856659, 0.1749451756477356, -0.260280042886734, 0.12355136126279831, -0.00734802708029747, -0.23235556483268738, -0.22763583064079285, 0.22530876100063324, 0.24480488896369934, -0.4429064691066742, -0.09450382739305496, 0.13929858803749084, -0.27024173736572266, -0.1973654329776764, 0.08877761662006378, -0.2743566632270813, 0.3295593857765198, -0.17360123991966248, 0.08468686044216156, 0.5360357165336609, -0.5514392256736755, -0.4188849925994873, -0.1461109220981598, -0.08347038179636002, -0.05129498243331909, 0.06430710107088089, 0.09677257388830185, 0.2555161118507385, -0.07595048099756241, -0.06568315625190735, 0.3747450113296509, 0.028097473084926605, 0.14594058692455292, -0.2536870837211609, -0.02202976867556572, 0.15338261425495148, 0.12262071669101715, -0.00818324089050293, -0.16352468729019165, 0.2649874687194824, 0.3103196918964386, 0.24064326286315918, -0.20680496096611023, 0.01788768544793129, 0.10282932221889496, 0.31229159235954285, -0.019598357379436493, -0.06454027444124222, -0.06153444945812225, -0.47155940532684326, 0.3424057364463806, -0.35720157623291016, 0.06810298562049866, 0.06551698595285416, -0.2941276431083679, -0.020736921578645706, -0.25126105546951294, -0.21793176233768463, 0.011496048420667648, 0.24605372548103333, 0.30391037464141846, 0.10867327451705933, -0.22645647823810577, -0.2808505892753601, 0.19456130266189575, -0.7115738987922668, -0.00932423397898674, -0.3195079565048218, 0.278611421585083, -0.1805766224861145, -0.16703499853610992, -0.007513090968132019, 0.11463780701160431, -0.1423528492450714, -0.18632937967777252, 0.07747377455234528, 0.49203941226005554, -0.03621469810605049, 0.011787422001361847, 0.14832772314548492, 0.3026489317417145, 0.19117072224617004, -0.05497828125953674, -0.11986624449491501, -0.038760095834732056, -0.03886846825480461, -0.12325254827737808, -0.4784710705280304, 0.40370023250579834, -0.026707876473665237, -0.07654396444559097, 0.12117014825344086, -0.2798718810081482, 0.147274449467659, -0.27116328477859497, -0.4332926571369171, -0.2269124835729599, -0.035007867962121964, 0.25822579860687256, 0.06224129721522331, -0.02825355716049671, -0.0090198814868927, 0.054814837872982025, 0.4354381263256073, -0.07029354572296143, 0.06063605099916458, -0.010423142462968826, 0.37829655408859253, -0.004809398204088211, -0.006719047203660011, 0.2579744756221771, 0.3897305727005005, 0.24577905237674713, 0.07632192969322205, 0.0904323160648346, -0.36281076073646545, -0.1254100352525711, -0.0665912851691246, -0.1149965226650238, 0.2558598816394806, 0.3216988444328308, -0.009044487029314041, -0.002847098745405674, -0.24278485774993896, -0.2813185155391693, 0.21869172155857086, 0.11756893992424011, -0.38810834288597107, -0.20882542431354523, -0.2427225112915039, -0.17414799332618713, -0.32267898321151733, 0.1526666134595871, -0.22922739386558533, -0.13832306861877441, 0.15194547176361084, -0.1501086801290512, -0.07979810237884521, 0.3028414845466614, -0.17960478365421295, 0.4113427400588989, 0.10236762464046478, -0.27130186557769775, 0.31749194860458374, 0.08217070251703262, 0.0691579282283783, 0.15013453364372253, 0.5211689472198486, 0.08269018679857254, 0.47926679253578186, 0.026308363303542137, -0.10005670040845871, -0.18014486134052277, -0.42684707045555115, 0.08870285749435425, -0.13856960833072662, 0.054320044815540314, 0.025976717472076416, 0.1263294667005539, -0.010719506070017815, -0.3793341815471649, 0.07693058252334595, -0.02311893180012703, -0.3584749102592468, -0.08754569292068481, 0.01977616734802723, -0.1479407250881195, -0.37222710251808167, -0.30596181750297546, -0.03594135493040085, -0.25395795702934265, -0.00031985342502593994, 0.32035115361213684, 0.3457655906677246, 0.2055651992559433, 0.08150900900363922, 0.3413868844509125, -0.15577150881290436, 0.2677699625492096, 0.0048159281723201275, -0.5824002027511597, 0.34136611223220825, -0.41812899708747864, -0.38338255882263184, 0.05207744613289833, 0.010758824646472931, 0.22311250865459442, 0.00578521192073822, -0.339311420917511, -0.37656277418136597, -0.023519212380051613, 0.2075391709804535, -0.0077484361827373505, 0.08595738559961319, 0.35865750908851624, -0.1257215291261673, -0.11780326813459396, -0.20410409569740295, -0.09746409952640533, 0.2784804403781891, 0.05993087962269783, 0.43204212188720703, -0.25706377625465393, 0.06822600960731506, 0.1746966540813446, 0.35388320684432983, 0.3361930251121521, -0.2690371870994568, 0.06640715152025223, -0.060400329530239105, 0.38402459025382996, 0.07163438946008682, -0.07688367366790771, 0.45363444089889526, 0.25971096754074097, 0.1308823972940445, 0.14803962409496307, -0.1321161389350891, -0.13233329355716705, -0.02348203957080841, 0.19560518860816956, -0.2905430197715759, -0.2617177367210388, 0.17755094170570374, -0.19693854451179504, 0.05711979418992996, -0.17093297839164734, -0.20229503512382507, -0.17271755635738373, -0.06392629444599152, -0.04762210696935654, 0.49555665254592896, -0.07066718488931656, 0.018857743591070175, -0.7071651816368103, -0.15009920299053192, -0.05601134151220322, 0.11685140430927277, 0.020001519471406937, 0.3265567123889923, 0.02587107941508293, -0.1545872688293457, -0.0021329671144485474, -0.2563788592815399, 0.4320710301399231, -0.31572219729423523, 0.18918007612228394, -0.019231656566262245, 0.3394908308982849, -0.33729466795921326, -0.17787811160087585, -0.15418630838394165, -0.17902016639709473, 0.380420058965683, 0.208519846200943, -0.24457553029060364, -0.06901434808969498, 0.04167289659380913, 0.015657300129532814, -0.09285405278205872, -0.14636750519275665, -0.32806187868118286, -0.24906891584396362, -0.4336318373680115, 0.049998436123132706, -0.24521556496620178, 0.07337751239538193, -0.009064185433089733, -0.21332256495952606, 0.19125628471374512, -0.06284540146589279, 0.22501994669437408, 0.1572932004928589, -0.00010813958942890167, 0.48240455985069275, 0.08859261870384216, -0.21574464440345764, -0.10539177060127258, -0.01072235219180584, 0.2564215064048767, -0.2994842231273651, 0.03727145120501518, -0.04981248825788498, -0.1021089106798172, 0.2289891391992569, 0.22472867369651794, 0.1353890746831894, -0.07650672644376755, 0.014931268990039825, -0.04909124970436096, 0.0545293428003788, 0.2525601089000702, 0.03229721635580063, -0.08821484446525574, -0.07757826894521713, -0.362149178981781, 0.03175849840044975, -0.03988109529018402, -0.026064589619636536, 0.365595281124115, -0.0051964521408081055, -0.3552507162094116, 0.16173960268497467, 0.3503337800502777, 0.7383285760879517, -0.1734018623828888, 0.0687829777598381, 0.16407454013824463, 0.09408950805664062, 0.44422560930252075, -0.33460837602615356, 0.08925172686576843, -0.1769581139087677, -0.36802494525909424, 0.058889999985694885, -0.2372228503227234, 0.27631914615631104, 0.20715661346912384, -0.23301218450069427, 0.024323267862200737, 0.08010730147361755, 0.1255544275045395, -0.005660636350512505, 0.6042808890342712, -0.03876014053821564, -0.380540668964386, -0.0409952811896801, 0.2789791524410248, -0.06966091692447662, -0.04909157380461693, -0.08692368865013123, -0.03175121545791626, -0.04227326810359955, -0.09546084702014923, -0.06614049524068832, 0.20730027556419373, -0.03920331597328186, 0.1564536690711975, 0.1831706166267395, 0.13349874317646027, -0.011205785907804966, 0.43475764989852905, 0.21046362817287445, 0.36303597688674927, -0.06447914242744446, 0.08147978037595749, 0.16084197163581848, 0.12675869464874268, -0.08115992695093155, -0.23371721804141998, 0.4686664044857025, -0.2829439043998718, -0.25381824374198914, 0.015486005693674088, 0.1348882019519806, -0.4442158341407776, 0.18601953983306885, 0.15582337975502014, -0.11177121102809906, -0.13449902832508087, -0.13678418099880219, 0.2651752829551697, -0.2997225522994995, -0.05048520490527153, 0.24241486191749573, 0.11476309597492218, -0.32678231596946716, 0.39050960540771484, 0.07455450296401978, -0.19096985459327698, 0.06516851484775543, 0.31808799505233765, -0.11768721789121628, -0.16970008611679077, 0.2942298948764801, -0.1846965253353119, -0.10139939188957214, -0.3367574214935303, -0.09027330577373505, -0.14104561507701874, 0.14659824967384338, -0.23996923863887787, -0.04358343407511711, 0.004315197467803955, 0.06021223962306976, 0.07289022207260132, 0.14800426363945007, 0.27063798904418945, 0.07844007015228271, -0.4738697111606598, -0.22984863817691803, 0.06557290256023407, 0.13168694078922272, 0.43750616908073425, -0.09869318455457687, 0.34312060475349426, 0.10906428098678589, 0.19818919897079468, -0.46336427330970764, -0.08415883779525757, -0.2717238664627075, 0.23761436343193054, 0.09886536747217178, -0.0375991091132164, -0.05812898278236389, -0.2276601791381836, 0.19321225583553314, 0.09249921143054962, -0.2391057014465332, -0.3877127766609192, -0.1188807487487793, 0.08756343275308609, 0.15919092297554016, 0.12649402022361755, 0.07107380032539368, -0.06875547766685486, -0.09298214316368103, -0.03267758712172508, 0.07865442335605621, -0.13332591950893402, -0.1841050535440445, 0.3442837595939636, 0.1657811403274536, 0.047099560499191284, 0.28919684886932373, -0.2483808696269989, -0.11174722015857697, -0.01686607301235199, 0.06417734920978546, 0.30002203583717346, -0.24169479310512543, 0.01156684011220932, -0.04244853928685188, 0.24612018465995789, 0.04499725624918938, 0.28416794538497925, 0.04079008102416992, -0.06922830641269684, -0.040528956800699234, 0.041439443826675415, 0.10609317570924759, 0.3767700791358948, -0.46154236793518066, 0.09231575578451157, 0.115754134953022, 0.2963249683380127, -0.16522745788097382, 0.029202692210674286, 0.2340601533651352, -0.04298264905810356, 0.22372236847877502, 0.2575682997703552, 0.20710662007331848, -0.13715827465057373, 0.17334319651126862, 0.02347494289278984, -0.023298650979995728, -0.26597803831100464, 0.1493753045797348, 0.17734570801258087, -0.28893882036209106, -0.3006964325904846, 0.09979384392499924, -0.2599655091762543, -0.07531537860631943, -0.10278166830539703, 0.00858202576637268, 0.5594611167907715, -0.16667938232421875, 0.06550095975399017, 0.10678325593471527, -0.22914241254329681, 0.3072904348373413, 0.11379028856754303, 0.027080319821834564, 0.20504069328308105, 0.18362179398536682, 0.32863083481788635, -0.014370870776474476, -0.16270650923252106, -0.08073725551366806, 0.23088562488555908, 0.08196951448917389, 0.02404920384287834, -0.8065410256385803, -0.007738739252090454, 0.06350772082805634, -0.07809092104434967, 0.1479821354150772, -0.13088150322437286, -0.16015693545341492, 0.26642513275146484, -0.2042282670736313, 0.16317757964134216, 0.22007793188095093, 0.1323336511850357, 0.02017686516046524, -0.18409861624240875, 0.1632581204175949, 0.15448708832263947, -0.0687042623758316, -0.10619157552719116, 0.1113213449716568, 0.15078173577785492, 0.36614060401916504, 0.21871018409729004, 0.34162667393684387, 0.08097492158412933, 0.056347303092479706, -0.20761089026927948, 0.25680428743362427, 0.17306357622146606, -0.2589125633239746, 0.3169853389263153, 0.2803719639778137, -0.2334027737379074, -0.1791658103466034, -0.07779885828495026, -0.23608925938606262, 0.11864694952964783, 0.29760411381721497, 0.41459113359451294, 0.06633437424898148, -0.179880753159523, 0.19064730405807495, -0.3874606192111969, -0.2056318074464798, 0.45024749636650085, 0.07563212513923645, 0.28074926137924194, -0.3179666996002197, 0.14291763305664062, -0.02632715180516243, 0.5496773719787598, -0.05085663124918938, -0.0981946662068367, -0.052550651133060455, -0.1990036964416504, -0.6257556676864624, 0.025038421154022217, 0.029665278270840645, -0.06263762712478638, -0.015194298699498177, 0.594806969165802, -0.08538296073675156, 0.01979970559477806, 0.26673275232315063, -0.3822457492351532, -0.14454099535942078, -0.09678816795349121, -0.2910371422767639, 0.12384259700775146, -0.2550848722457886, 0.017318611964583397, 0.11864122748374939, -0.3082214295864105, 0.07382615655660629, -0.041199956089258194, 0.1763756275177002, 0.07131250202655792, -0.006531357765197754, 0.021802227944135666, 0.1266172230243683, 0.3107890486717224, -0.018143227323889732, 0.6122747659683228, -0.2574593722820282, 0.0062806252390146255, -0.28759676218032837, 0.18587039411067963, -0.35339054465293884, 0.17934894561767578, -0.00805119052529335, 0.2549828290939331, -0.029340781271457672, 0.021951351314783096, -0.17025287449359894, 0.35610678791999817, 0.11331906914710999, -0.6779918670654297, -0.11450609564781189, -0.052142709493637085, 0.018237650394439697, 0.2564929127693176, 0.09651634842157364, 0.24115443229675293, -0.1218070238828659, 0.22993013262748718, -0.24735680222511292, -0.18151932954788208, 0.5053192973136902, -0.009088363498449326, 0.02884531021118164, -0.10634500533342361, 0.4422011971473694, -0.22935014963150024, 0.20739278197288513, -0.7917797565460205, -0.06099863350391388, 0.2338276505470276, -0.16487544775009155, -0.35942235589027405, 0.3560371398925781, -0.2140824943780899, 0.20911674201488495, -0.11786653101444244, -0.1092076301574707, -0.0717422291636467, -0.1491178721189499, -0.29731202125549316, -0.3976627588272095 ]
https://github.com/huggingface/datasets/pull/24
Add checksums
> * I'm not sure I understand the general organization of checksums. I see we have a checksum folder with potentially several checksum files but I also see that checksum files can potentially contain several checksums. Could you explain a bit more how this is organized? It should look like this: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt In checksums.txt, the format is one line per (url, size, checksum) I don't have a strong opinion between `urls_checksums/checksums.txt` or directly `checksums.txt` (not inside the `urls_checksums` folder), let me know what you think. > * Also regarding your comment on checksum files for "canonical" datasets. I understand we can just create these with `nlp-cli test` and then upload them manually to our S3, right? Yes you're right
### Checksums files They are stored next to the dataset script in urls_checksums/checksums.txt. They are used to check the integrity of the datasets downloaded files. I kept the same format as tensorflow-datasets. There is one checksums file for all configs. ### Load a dataset When you do `load("squad")`, it will also download the checksums file and put it next to the script in nlp/datasets/hash/urls_checksums/checksums.txt. It also verifies that the downloaded files checksums match the expected ones. You can ignore checksum tests with `load("squad", ignore_checksums=True)` (under the hood it just adds `ignore_checksums=True` in the `DownloadConfig`) ### Test a dataset There is a new command `nlp-cli test squad` that runs `download_and_prepare` to see if it runs ok, and that verifies that all the checksums match. Allowed arguments are `--name`, `--all_configs`, `--ignore_checksums` and `--register_checksums`. ### Register checksums 1. If the dataset has external dataset files The command `nlp-cli test squad --register_checksums --all_configs` runs `download_and_prepare` on all configs to see if it runs ok, and it creates the checksums file. You can also register one config at a time using `--name` instead ; the checksums file will be completed and not overwritten. If the script is a local script, the checksum file is moved to urls_checksums/checksums.txt next to the local script, to enable the user to upload both the script and the checksums file afterwards with `nlp-cli upload squad`. 2. If the dataset files are all inside the directory of the dataset script The user can directly do `nlp-cli upload squad --register_checksums`, as there is no need to download anything. In this case however, all the dataset must be uploaded at once. -- PS : it doesn't allow to register checksums for canonical datasets, the file has to be added manually on S3 for now (I guess ?) Also I feel like we must be sure that this processes would not constrain too much any user from uploading its dataset. Let me know what you think :)
125
text: Add checksums ### Checksums files They are stored next to the dataset script in urls_checksums/checksums.txt. They are used to check the integrity of the datasets downloaded files. I kept the same format as tensorflow-datasets. There is one checksums file for all configs. ### Load a dataset When you do `load("squad")`, it will also download the checksums file and put it next to the script in nlp/datasets/hash/urls_checksums/checksums.txt. It also verifies that the downloaded files checksums match the expected ones. You can ignore checksum tests with `load("squad", ignore_checksums=True)` (under the hood it just adds `ignore_checksums=True` in the `DownloadConfig`) ### Test a dataset There is a new command `nlp-cli test squad` that runs `download_and_prepare` to see if it runs ok, and that verifies that all the checksums match. Allowed arguments are `--name`, `--all_configs`, `--ignore_checksums` and `--register_checksums`. ### Register checksums 1. If the dataset has external dataset files The command `nlp-cli test squad --register_checksums --all_configs` runs `download_and_prepare` on all configs to see if it runs ok, and it creates the checksums file. You can also register one config at a time using `--name` instead ; the checksums file will be completed and not overwritten. If the script is a local script, the checksum file is moved to urls_checksums/checksums.txt next to the local script, to enable the user to upload both the script and the checksums file afterwards with `nlp-cli upload squad`. 2. If the dataset files are all inside the directory of the dataset script The user can directly do `nlp-cli upload squad --register_checksums`, as there is no need to download anything. In this case however, all the dataset must be uploaded at once. -- PS : it doesn't allow to register checksums for canonical datasets, the file has to be added manually on S3 for now (I guess ?) Also I feel like we must be sure that this processes would not constrain too much any user from uploading its dataset. Let me know what you think :) > * I'm not sure I understand the general organization of checksums. I see we have a checksum folder with potentially several checksum files but I also see that checksum files can potentially contain several checksums. Could you explain a bit more how this is organized? It should look like this: squad/ ├── squad.py/ └── urls_checksums/ ...........└── checksums.txt In checksums.txt, the format is one line per (url, size, checksum) I don't have a strong opinion between `urls_checksums/checksums.txt` or directly `checksums.txt` (not inside the `urls_checksums` folder), let me know what you think. > * Also regarding your comment on checksum files for "canonical" datasets. I understand we can just create these with `nlp-cli test` and then upload them manually to our S3, right? Yes you're right
[ -0.20539680123329163, 0.15717989206314087, -0.18159276247024536, -0.23007319867610931, 0.059997446835041046, -0.03445061668753624, 0.3007707893848419, 0.48398739099502563, 0.12035714089870453, 0.1314937174320221, 0.0250454880297184, 0.35859277844429016, -0.02829035371541977, -0.028247999027371407, 0.26689577102661133, 0.40383195877075195, -0.03879430145025253, 0.18695864081382751, -0.12637627124786377, -0.09298808872699738, -0.021558456122875214, -0.15024515986442566, 0.08906954526901245, -0.36422181129455566, 0.03561725839972496, 0.0721568912267685, 0.023886827751994133, 0.18978795409202576, -0.17735573649406433, -0.3262861967086792, 0.17360109090805054, 0.31247958540916443, -0.05022025853395462, 0.24179747700691223, -0.00010418138117529452, 0.19412045180797577, 0.22133851051330566, -0.09162431210279465, -0.16695038974285126, 0.10256154835224152, -0.3135623633861542, -0.33193346858024597, -0.17246122658252716, -0.3899596333503723, 0.1018785908818245, 0.28212249279022217, 0.21194367110729218, -0.15463075041770935, 0.37471675872802734, 0.3343711495399475, 0.24475796520709991, 0.42204558849334717, -0.16657575964927673, 0.14327335357666016, 0.06313424557447433, -0.08938628435134888, -0.015448465012013912, 0.01802176795899868, 0.13886678218841553, -0.12405036389827728, 0.026218265295028687, 0.116720050573349, 0.016786692664027214, 0.025778066366910934, 0.30955007672309875, -0.012487555854022503, 0.13326095044612885, -0.1865704208612442, -0.20491021871566772, 0.27381518483161926, 0.14844819903373718, -0.4083268344402313, -0.30540499091148376, -0.21173202991485596, 0.2595936357975006, -0.2486717849969864, 0.22249287366867065, 0.16772906482219696, -0.018423443660140038, -0.1831897795200348, -0.3784197270870209, 0.0933363139629364, -0.25221216678619385, 0.15845918655395508, 0.30184444785118103, 0.2546348571777344, 0.23312346637248993, -0.030145876109600067, 0.16181981563568115, 0.075606569647789, -0.12177217751741409, -0.09617171436548233, 0.14450404047966003, 0.15445873141288757, -0.3768238127231598, -0.3089097738265991, 0.1848107874393463, -0.08722654730081558, 0.39954468607902527, 0.24400576949119568, 0.27285903692245483, 0.15869393944740295, -0.04019620642066002, 0.23490196466445923, -0.17031027376651764, -0.006871763151139021, 0.32749664783477783, 0.13006068766117096, 0.3272647261619568, 0.17613708972930908, -0.0349329374730587, 0.2008921205997467, 0.01379378605633974, -0.23498862981796265, -0.035534173250198364, 0.16436123847961426, 0.0650402158498764, -0.11179827153682709, -0.15928703546524048, 0.007709999103099108, 0.18917322158813477, -0.1575397104024887, 0.24564306437969208, 0.3601307272911072, -0.17100027203559875, -0.1492856740951538, 0.01978491246700287, -0.0010588094592094421, -0.17465512454509735, 0.06772498041391373, -0.2147662490606308, -0.005369037389755249, -0.20467807352542877, 0.18973170220851898, 0.44437259435653687, -0.049529317766427994, 0.3362312316894531, -0.024135123938322067, 0.21003682911396027, 0.060373030602931976, 0.3294273912906647, 0.06921863555908203, 0.07879436761140823, 0.17724530398845673, 0.1775919795036316, -0.13988380134105682, -0.20473745465278625, -0.3260152339935303, -0.2942955493927002, 0.0779239684343338, -0.22625499963760376, -0.1766870766878128, -0.10557162761688232, 0.3273228108882904, -0.399164617061615, -0.015071578323841095, 0.059509359300136566, -0.12284974753856659, 0.1749451756477356, -0.260280042886734, 0.12355136126279831, -0.00734802708029747, -0.23235556483268738, -0.22763583064079285, 0.22530876100063324, 0.24480488896369934, -0.4429064691066742, -0.09450382739305496, 0.13929858803749084, -0.27024173736572266, -0.1973654329776764, 0.08877761662006378, -0.2743566632270813, 0.3295593857765198, -0.17360123991966248, 0.08468686044216156, 0.5360357165336609, -0.5514392256736755, -0.4188849925994873, -0.1461109220981598, -0.08347038179636002, -0.05129498243331909, 0.06430710107088089, 0.09677257388830185, 0.2555161118507385, -0.07595048099756241, -0.06568315625190735, 0.3747450113296509, 0.028097473084926605, 0.14594058692455292, -0.2536870837211609, -0.02202976867556572, 0.15338261425495148, 0.12262071669101715, -0.00818324089050293, -0.16352468729019165, 0.2649874687194824, 0.3103196918964386, 0.24064326286315918, -0.20680496096611023, 0.01788768544793129, 0.10282932221889496, 0.31229159235954285, -0.019598357379436493, -0.06454027444124222, -0.06153444945812225, -0.47155940532684326, 0.3424057364463806, -0.35720157623291016, 0.06810298562049866, 0.06551698595285416, -0.2941276431083679, -0.020736921578645706, -0.25126105546951294, -0.21793176233768463, 0.011496048420667648, 0.24605372548103333, 0.30391037464141846, 0.10867327451705933, -0.22645647823810577, -0.2808505892753601, 0.19456130266189575, -0.7115738987922668, -0.00932423397898674, -0.3195079565048218, 0.278611421585083, -0.1805766224861145, -0.16703499853610992, -0.007513090968132019, 0.11463780701160431, -0.1423528492450714, -0.18632937967777252, 0.07747377455234528, 0.49203941226005554, -0.03621469810605049, 0.011787422001361847, 0.14832772314548492, 0.3026489317417145, 0.19117072224617004, -0.05497828125953674, -0.11986624449491501, -0.038760095834732056, -0.03886846825480461, -0.12325254827737808, -0.4784710705280304, 0.40370023250579834, -0.026707876473665237, -0.07654396444559097, 0.12117014825344086, -0.2798718810081482, 0.147274449467659, -0.27116328477859497, -0.4332926571369171, -0.2269124835729599, -0.035007867962121964, 0.25822579860687256, 0.06224129721522331, -0.02825355716049671, -0.0090198814868927, 0.054814837872982025, 0.4354381263256073, -0.07029354572296143, 0.06063605099916458, -0.010423142462968826, 0.37829655408859253, -0.004809398204088211, -0.006719047203660011, 0.2579744756221771, 0.3897305727005005, 0.24577905237674713, 0.07632192969322205, 0.0904323160648346, -0.36281076073646545, -0.1254100352525711, -0.0665912851691246, -0.1149965226650238, 0.2558598816394806, 0.3216988444328308, -0.009044487029314041, -0.002847098745405674, -0.24278485774993896, -0.2813185155391693, 0.21869172155857086, 0.11756893992424011, -0.38810834288597107, -0.20882542431354523, -0.2427225112915039, -0.17414799332618713, -0.32267898321151733, 0.1526666134595871, -0.22922739386558533, -0.13832306861877441, 0.15194547176361084, -0.1501086801290512, -0.07979810237884521, 0.3028414845466614, -0.17960478365421295, 0.4113427400588989, 0.10236762464046478, -0.27130186557769775, 0.31749194860458374, 0.08217070251703262, 0.0691579282283783, 0.15013453364372253, 0.5211689472198486, 0.08269018679857254, 0.47926679253578186, 0.026308363303542137, -0.10005670040845871, -0.18014486134052277, -0.42684707045555115, 0.08870285749435425, -0.13856960833072662, 0.054320044815540314, 0.025976717472076416, 0.1263294667005539, -0.010719506070017815, -0.3793341815471649, 0.07693058252334595, -0.02311893180012703, -0.3584749102592468, -0.08754569292068481, 0.01977616734802723, -0.1479407250881195, -0.37222710251808167, -0.30596181750297546, -0.03594135493040085, -0.25395795702934265, -0.00031985342502593994, 0.32035115361213684, 0.3457655906677246, 0.2055651992559433, 0.08150900900363922, 0.3413868844509125, -0.15577150881290436, 0.2677699625492096, 0.0048159281723201275, -0.5824002027511597, 0.34136611223220825, -0.41812899708747864, -0.38338255882263184, 0.05207744613289833, 0.010758824646472931, 0.22311250865459442, 0.00578521192073822, -0.339311420917511, -0.37656277418136597, -0.023519212380051613, 0.2075391709804535, -0.0077484361827373505, 0.08595738559961319, 0.35865750908851624, -0.1257215291261673, -0.11780326813459396, -0.20410409569740295, -0.09746409952640533, 0.2784804403781891, 0.05993087962269783, 0.43204212188720703, -0.25706377625465393, 0.06822600960731506, 0.1746966540813446, 0.35388320684432983, 0.3361930251121521, -0.2690371870994568, 0.06640715152025223, -0.060400329530239105, 0.38402459025382996, 0.07163438946008682, -0.07688367366790771, 0.45363444089889526, 0.25971096754074097, 0.1308823972940445, 0.14803962409496307, -0.1321161389350891, -0.13233329355716705, -0.02348203957080841, 0.19560518860816956, -0.2905430197715759, -0.2617177367210388, 0.17755094170570374, -0.19693854451179504, 0.05711979418992996, -0.17093297839164734, -0.20229503512382507, -0.17271755635738373, -0.06392629444599152, -0.04762210696935654, 0.49555665254592896, -0.07066718488931656, 0.018857743591070175, -0.7071651816368103, -0.15009920299053192, -0.05601134151220322, 0.11685140430927277, 0.020001519471406937, 0.3265567123889923, 0.02587107941508293, -0.1545872688293457, -0.0021329671144485474, -0.2563788592815399, 0.4320710301399231, -0.31572219729423523, 0.18918007612228394, -0.019231656566262245, 0.3394908308982849, -0.33729466795921326, -0.17787811160087585, -0.15418630838394165, -0.17902016639709473, 0.380420058965683, 0.208519846200943, -0.24457553029060364, -0.06901434808969498, 0.04167289659380913, 0.015657300129532814, -0.09285405278205872, -0.14636750519275665, -0.32806187868118286, -0.24906891584396362, -0.4336318373680115, 0.049998436123132706, -0.24521556496620178, 0.07337751239538193, -0.009064185433089733, -0.21332256495952606, 0.19125628471374512, -0.06284540146589279, 0.22501994669437408, 0.1572932004928589, -0.00010813958942890167, 0.48240455985069275, 0.08859261870384216, -0.21574464440345764, -0.10539177060127258, -0.01072235219180584, 0.2564215064048767, -0.2994842231273651, 0.03727145120501518, -0.04981248825788498, -0.1021089106798172, 0.2289891391992569, 0.22472867369651794, 0.1353890746831894, -0.07650672644376755, 0.014931268990039825, -0.04909124970436096, 0.0545293428003788, 0.2525601089000702, 0.03229721635580063, -0.08821484446525574, -0.07757826894521713, -0.362149178981781, 0.03175849840044975, -0.03988109529018402, -0.026064589619636536, 0.365595281124115, -0.0051964521408081055, -0.3552507162094116, 0.16173960268497467, 0.3503337800502777, 0.7383285760879517, -0.1734018623828888, 0.0687829777598381, 0.16407454013824463, 0.09408950805664062, 0.44422560930252075, -0.33460837602615356, 0.08925172686576843, -0.1769581139087677, -0.36802494525909424, 0.058889999985694885, -0.2372228503227234, 0.27631914615631104, 0.20715661346912384, -0.23301218450069427, 0.024323267862200737, 0.08010730147361755, 0.1255544275045395, -0.005660636350512505, 0.6042808890342712, -0.03876014053821564, -0.380540668964386, -0.0409952811896801, 0.2789791524410248, -0.06966091692447662, -0.04909157380461693, -0.08692368865013123, -0.03175121545791626, -0.04227326810359955, -0.09546084702014923, -0.06614049524068832, 0.20730027556419373, -0.03920331597328186, 0.1564536690711975, 0.1831706166267395, 0.13349874317646027, -0.011205785907804966, 0.43475764989852905, 0.21046362817287445, 0.36303597688674927, -0.06447914242744446, 0.08147978037595749, 0.16084197163581848, 0.12675869464874268, -0.08115992695093155, -0.23371721804141998, 0.4686664044857025, -0.2829439043998718, -0.25381824374198914, 0.015486005693674088, 0.1348882019519806, -0.4442158341407776, 0.18601953983306885, 0.15582337975502014, -0.11177121102809906, -0.13449902832508087, -0.13678418099880219, 0.2651752829551697, -0.2997225522994995, -0.05048520490527153, 0.24241486191749573, 0.11476309597492218, -0.32678231596946716, 0.39050960540771484, 0.07455450296401978, -0.19096985459327698, 0.06516851484775543, 0.31808799505233765, -0.11768721789121628, -0.16970008611679077, 0.2942298948764801, -0.1846965253353119, -0.10139939188957214, -0.3367574214935303, -0.09027330577373505, -0.14104561507701874, 0.14659824967384338, -0.23996923863887787, -0.04358343407511711, 0.004315197467803955, 0.06021223962306976, 0.07289022207260132, 0.14800426363945007, 0.27063798904418945, 0.07844007015228271, -0.4738697111606598, -0.22984863817691803, 0.06557290256023407, 0.13168694078922272, 0.43750616908073425, -0.09869318455457687, 0.34312060475349426, 0.10906428098678589, 0.19818919897079468, -0.46336427330970764, -0.08415883779525757, -0.2717238664627075, 0.23761436343193054, 0.09886536747217178, -0.0375991091132164, -0.05812898278236389, -0.2276601791381836, 0.19321225583553314, 0.09249921143054962, -0.2391057014465332, -0.3877127766609192, -0.1188807487487793, 0.08756343275308609, 0.15919092297554016, 0.12649402022361755, 0.07107380032539368, -0.06875547766685486, -0.09298214316368103, -0.03267758712172508, 0.07865442335605621, -0.13332591950893402, -0.1841050535440445, 0.3442837595939636, 0.1657811403274536, 0.047099560499191284, 0.28919684886932373, -0.2483808696269989, -0.11174722015857697, -0.01686607301235199, 0.06417734920978546, 0.30002203583717346, -0.24169479310512543, 0.01156684011220932, -0.04244853928685188, 0.24612018465995789, 0.04499725624918938, 0.28416794538497925, 0.04079008102416992, -0.06922830641269684, -0.040528956800699234, 0.041439443826675415, 0.10609317570924759, 0.3767700791358948, -0.46154236793518066, 0.09231575578451157, 0.115754134953022, 0.2963249683380127, -0.16522745788097382, 0.029202692210674286, 0.2340601533651352, -0.04298264905810356, 0.22372236847877502, 0.2575682997703552, 0.20710662007331848, -0.13715827465057373, 0.17334319651126862, 0.02347494289278984, -0.023298650979995728, -0.26597803831100464, 0.1493753045797348, 0.17734570801258087, -0.28893882036209106, -0.3006964325904846, 0.09979384392499924, -0.2599655091762543, -0.07531537860631943, -0.10278166830539703, 0.00858202576637268, 0.5594611167907715, -0.16667938232421875, 0.06550095975399017, 0.10678325593471527, -0.22914241254329681, 0.3072904348373413, 0.11379028856754303, 0.027080319821834564, 0.20504069328308105, 0.18362179398536682, 0.32863083481788635, -0.014370870776474476, -0.16270650923252106, -0.08073725551366806, 0.23088562488555908, 0.08196951448917389, 0.02404920384287834, -0.8065410256385803, -0.007738739252090454, 0.06350772082805634, -0.07809092104434967, 0.1479821354150772, -0.13088150322437286, -0.16015693545341492, 0.26642513275146484, -0.2042282670736313, 0.16317757964134216, 0.22007793188095093, 0.1323336511850357, 0.02017686516046524, -0.18409861624240875, 0.1632581204175949, 0.15448708832263947, -0.0687042623758316, -0.10619157552719116, 0.1113213449716568, 0.15078173577785492, 0.36614060401916504, 0.21871018409729004, 0.34162667393684387, 0.08097492158412933, 0.056347303092479706, -0.20761089026927948, 0.25680428743362427, 0.17306357622146606, -0.2589125633239746, 0.3169853389263153, 0.2803719639778137, -0.2334027737379074, -0.1791658103466034, -0.07779885828495026, -0.23608925938606262, 0.11864694952964783, 0.29760411381721497, 0.41459113359451294, 0.06633437424898148, -0.179880753159523, 0.19064730405807495, -0.3874606192111969, -0.2056318074464798, 0.45024749636650085, 0.07563212513923645, 0.28074926137924194, -0.3179666996002197, 0.14291763305664062, -0.02632715180516243, 0.5496773719787598, -0.05085663124918938, -0.0981946662068367, -0.052550651133060455, -0.1990036964416504, -0.6257556676864624, 0.025038421154022217, 0.029665278270840645, -0.06263762712478638, -0.015194298699498177, 0.594806969165802, -0.08538296073675156, 0.01979970559477806, 0.26673275232315063, -0.3822457492351532, -0.14454099535942078, -0.09678816795349121, -0.2910371422767639, 0.12384259700775146, -0.2550848722457886, 0.017318611964583397, 0.11864122748374939, -0.3082214295864105, 0.07382615655660629, -0.041199956089258194, 0.1763756275177002, 0.07131250202655792, -0.006531357765197754, 0.021802227944135666, 0.1266172230243683, 0.3107890486717224, -0.018143227323889732, 0.6122747659683228, -0.2574593722820282, 0.0062806252390146255, -0.28759676218032837, 0.18587039411067963, -0.35339054465293884, 0.17934894561767578, -0.00805119052529335, 0.2549828290939331, -0.029340781271457672, 0.021951351314783096, -0.17025287449359894, 0.35610678791999817, 0.11331906914710999, -0.6779918670654297, -0.11450609564781189, -0.052142709493637085, 0.018237650394439697, 0.2564929127693176, 0.09651634842157364, 0.24115443229675293, -0.1218070238828659, 0.22993013262748718, -0.24735680222511292, -0.18151932954788208, 0.5053192973136902, -0.009088363498449326, 0.02884531021118164, -0.10634500533342361, 0.4422011971473694, -0.22935014963150024, 0.20739278197288513, -0.7917797565460205, -0.06099863350391388, 0.2338276505470276, -0.16487544775009155, -0.35942235589027405, 0.3560371398925781, -0.2140824943780899, 0.20911674201488495, -0.11786653101444244, -0.1092076301574707, -0.0717422291636467, -0.1491178721189499, -0.29731202125549316, -0.3976627588272095 ]
https://github.com/huggingface/datasets/pull/24
Add checksums
Update of the commands: - nlp-cli test \<dataset\> : Run download_and_prepare and verify checksums * --name \<name\> : run only for the name * --all_configs : run for all configs * --save_checksums : instead of verifying checksums, compute and save them * --ignore_checksums : don't do checksums verification - nlp-cli upload \<dataset_folder\> : Upload a dataset * --upload_checksums : compute and upload checksums for uploaded files TODO: - don't overwrite checksums files on S3, to let the user upload a dataset in several steps if needed Question: - One idea from @patrickvonplaten : shall we upload checksums everytime we upload files ? (and therefore remove the upload_checksums parameter)
### Checksums files They are stored next to the dataset script in urls_checksums/checksums.txt. They are used to check the integrity of the datasets downloaded files. I kept the same format as tensorflow-datasets. There is one checksums file for all configs. ### Load a dataset When you do `load("squad")`, it will also download the checksums file and put it next to the script in nlp/datasets/hash/urls_checksums/checksums.txt. It also verifies that the downloaded files checksums match the expected ones. You can ignore checksum tests with `load("squad", ignore_checksums=True)` (under the hood it just adds `ignore_checksums=True` in the `DownloadConfig`) ### Test a dataset There is a new command `nlp-cli test squad` that runs `download_and_prepare` to see if it runs ok, and that verifies that all the checksums match. Allowed arguments are `--name`, `--all_configs`, `--ignore_checksums` and `--register_checksums`. ### Register checksums 1. If the dataset has external dataset files The command `nlp-cli test squad --register_checksums --all_configs` runs `download_and_prepare` on all configs to see if it runs ok, and it creates the checksums file. You can also register one config at a time using `--name` instead ; the checksums file will be completed and not overwritten. If the script is a local script, the checksum file is moved to urls_checksums/checksums.txt next to the local script, to enable the user to upload both the script and the checksums file afterwards with `nlp-cli upload squad`. 2. If the dataset files are all inside the directory of the dataset script The user can directly do `nlp-cli upload squad --register_checksums`, as there is no need to download anything. In this case however, all the dataset must be uploaded at once. -- PS : it doesn't allow to register checksums for canonical datasets, the file has to be added manually on S3 for now (I guess ?) Also I feel like we must be sure that this processes would not constrain too much any user from uploading its dataset. Let me know what you think :)
108
text: Add checksums ### Checksums files They are stored next to the dataset script in urls_checksums/checksums.txt. They are used to check the integrity of the datasets downloaded files. I kept the same format as tensorflow-datasets. There is one checksums file for all configs. ### Load a dataset When you do `load("squad")`, it will also download the checksums file and put it next to the script in nlp/datasets/hash/urls_checksums/checksums.txt. It also verifies that the downloaded files checksums match the expected ones. You can ignore checksum tests with `load("squad", ignore_checksums=True)` (under the hood it just adds `ignore_checksums=True` in the `DownloadConfig`) ### Test a dataset There is a new command `nlp-cli test squad` that runs `download_and_prepare` to see if it runs ok, and that verifies that all the checksums match. Allowed arguments are `--name`, `--all_configs`, `--ignore_checksums` and `--register_checksums`. ### Register checksums 1. If the dataset has external dataset files The command `nlp-cli test squad --register_checksums --all_configs` runs `download_and_prepare` on all configs to see if it runs ok, and it creates the checksums file. You can also register one config at a time using `--name` instead ; the checksums file will be completed and not overwritten. If the script is a local script, the checksum file is moved to urls_checksums/checksums.txt next to the local script, to enable the user to upload both the script and the checksums file afterwards with `nlp-cli upload squad`. 2. If the dataset files are all inside the directory of the dataset script The user can directly do `nlp-cli upload squad --register_checksums`, as there is no need to download anything. In this case however, all the dataset must be uploaded at once. -- PS : it doesn't allow to register checksums for canonical datasets, the file has to be added manually on S3 for now (I guess ?) Also I feel like we must be sure that this processes would not constrain too much any user from uploading its dataset. Let me know what you think :) Update of the commands: - nlp-cli test \<dataset\> : Run download_and_prepare and verify checksums * --name \<name\> : run only for the name * --all_configs : run for all configs * --save_checksums : instead of verifying checksums, compute and save them * --ignore_checksums : don't do checksums verification - nlp-cli upload \<dataset_folder\> : Upload a dataset * --upload_checksums : compute and upload checksums for uploaded files TODO: - don't overwrite checksums files on S3, to let the user upload a dataset in several steps if needed Question: - One idea from @patrickvonplaten : shall we upload checksums everytime we upload files ? (and therefore remove the upload_checksums parameter)
[ -0.20539680123329163, 0.15717989206314087, -0.18159276247024536, -0.23007319867610931, 0.059997446835041046, -0.03445061668753624, 0.3007707893848419, 0.48398739099502563, 0.12035714089870453, 0.1314937174320221, 0.0250454880297184, 0.35859277844429016, -0.02829035371541977, -0.028247999027371407, 0.26689577102661133, 0.40383195877075195, -0.03879430145025253, 0.18695864081382751, -0.12637627124786377, -0.09298808872699738, -0.021558456122875214, -0.15024515986442566, 0.08906954526901245, -0.36422181129455566, 0.03561725839972496, 0.0721568912267685, 0.023886827751994133, 0.18978795409202576, -0.17735573649406433, -0.3262861967086792, 0.17360109090805054, 0.31247958540916443, -0.05022025853395462, 0.24179747700691223, -0.00010418138117529452, 0.19412045180797577, 0.22133851051330566, -0.09162431210279465, -0.16695038974285126, 0.10256154835224152, -0.3135623633861542, -0.33193346858024597, -0.17246122658252716, -0.3899596333503723, 0.1018785908818245, 0.28212249279022217, 0.21194367110729218, -0.15463075041770935, 0.37471675872802734, 0.3343711495399475, 0.24475796520709991, 0.42204558849334717, -0.16657575964927673, 0.14327335357666016, 0.06313424557447433, -0.08938628435134888, -0.015448465012013912, 0.01802176795899868, 0.13886678218841553, -0.12405036389827728, 0.026218265295028687, 0.116720050573349, 0.016786692664027214, 0.025778066366910934, 0.30955007672309875, -0.012487555854022503, 0.13326095044612885, -0.1865704208612442, -0.20491021871566772, 0.27381518483161926, 0.14844819903373718, -0.4083268344402313, -0.30540499091148376, -0.21173202991485596, 0.2595936357975006, -0.2486717849969864, 0.22249287366867065, 0.16772906482219696, -0.018423443660140038, -0.1831897795200348, -0.3784197270870209, 0.0933363139629364, -0.25221216678619385, 0.15845918655395508, 0.30184444785118103, 0.2546348571777344, 0.23312346637248993, -0.030145876109600067, 0.16181981563568115, 0.075606569647789, -0.12177217751741409, -0.09617171436548233, 0.14450404047966003, 0.15445873141288757, -0.3768238127231598, -0.3089097738265991, 0.1848107874393463, -0.08722654730081558, 0.39954468607902527, 0.24400576949119568, 0.27285903692245483, 0.15869393944740295, -0.04019620642066002, 0.23490196466445923, -0.17031027376651764, -0.006871763151139021, 0.32749664783477783, 0.13006068766117096, 0.3272647261619568, 0.17613708972930908, -0.0349329374730587, 0.2008921205997467, 0.01379378605633974, -0.23498862981796265, -0.035534173250198364, 0.16436123847961426, 0.0650402158498764, -0.11179827153682709, -0.15928703546524048, 0.007709999103099108, 0.18917322158813477, -0.1575397104024887, 0.24564306437969208, 0.3601307272911072, -0.17100027203559875, -0.1492856740951538, 0.01978491246700287, -0.0010588094592094421, -0.17465512454509735, 0.06772498041391373, -0.2147662490606308, -0.005369037389755249, -0.20467807352542877, 0.18973170220851898, 0.44437259435653687, -0.049529317766427994, 0.3362312316894531, -0.024135123938322067, 0.21003682911396027, 0.060373030602931976, 0.3294273912906647, 0.06921863555908203, 0.07879436761140823, 0.17724530398845673, 0.1775919795036316, -0.13988380134105682, -0.20473745465278625, -0.3260152339935303, -0.2942955493927002, 0.0779239684343338, -0.22625499963760376, -0.1766870766878128, -0.10557162761688232, 0.3273228108882904, -0.399164617061615, -0.015071578323841095, 0.059509359300136566, -0.12284974753856659, 0.1749451756477356, -0.260280042886734, 0.12355136126279831, -0.00734802708029747, -0.23235556483268738, -0.22763583064079285, 0.22530876100063324, 0.24480488896369934, -0.4429064691066742, -0.09450382739305496, 0.13929858803749084, -0.27024173736572266, -0.1973654329776764, 0.08877761662006378, -0.2743566632270813, 0.3295593857765198, -0.17360123991966248, 0.08468686044216156, 0.5360357165336609, -0.5514392256736755, -0.4188849925994873, -0.1461109220981598, -0.08347038179636002, -0.05129498243331909, 0.06430710107088089, 0.09677257388830185, 0.2555161118507385, -0.07595048099756241, -0.06568315625190735, 0.3747450113296509, 0.028097473084926605, 0.14594058692455292, -0.2536870837211609, -0.02202976867556572, 0.15338261425495148, 0.12262071669101715, -0.00818324089050293, -0.16352468729019165, 0.2649874687194824, 0.3103196918964386, 0.24064326286315918, -0.20680496096611023, 0.01788768544793129, 0.10282932221889496, 0.31229159235954285, -0.019598357379436493, -0.06454027444124222, -0.06153444945812225, -0.47155940532684326, 0.3424057364463806, -0.35720157623291016, 0.06810298562049866, 0.06551698595285416, -0.2941276431083679, -0.020736921578645706, -0.25126105546951294, -0.21793176233768463, 0.011496048420667648, 0.24605372548103333, 0.30391037464141846, 0.10867327451705933, -0.22645647823810577, -0.2808505892753601, 0.19456130266189575, -0.7115738987922668, -0.00932423397898674, -0.3195079565048218, 0.278611421585083, -0.1805766224861145, -0.16703499853610992, -0.007513090968132019, 0.11463780701160431, -0.1423528492450714, -0.18632937967777252, 0.07747377455234528, 0.49203941226005554, -0.03621469810605049, 0.011787422001361847, 0.14832772314548492, 0.3026489317417145, 0.19117072224617004, -0.05497828125953674, -0.11986624449491501, -0.038760095834732056, -0.03886846825480461, -0.12325254827737808, -0.4784710705280304, 0.40370023250579834, -0.026707876473665237, -0.07654396444559097, 0.12117014825344086, -0.2798718810081482, 0.147274449467659, -0.27116328477859497, -0.4332926571369171, -0.2269124835729599, -0.035007867962121964, 0.25822579860687256, 0.06224129721522331, -0.02825355716049671, -0.0090198814868927, 0.054814837872982025, 0.4354381263256073, -0.07029354572296143, 0.06063605099916458, -0.010423142462968826, 0.37829655408859253, -0.004809398204088211, -0.006719047203660011, 0.2579744756221771, 0.3897305727005005, 0.24577905237674713, 0.07632192969322205, 0.0904323160648346, -0.36281076073646545, -0.1254100352525711, -0.0665912851691246, -0.1149965226650238, 0.2558598816394806, 0.3216988444328308, -0.009044487029314041, -0.002847098745405674, -0.24278485774993896, -0.2813185155391693, 0.21869172155857086, 0.11756893992424011, -0.38810834288597107, -0.20882542431354523, -0.2427225112915039, -0.17414799332618713, -0.32267898321151733, 0.1526666134595871, -0.22922739386558533, -0.13832306861877441, 0.15194547176361084, -0.1501086801290512, -0.07979810237884521, 0.3028414845466614, -0.17960478365421295, 0.4113427400588989, 0.10236762464046478, -0.27130186557769775, 0.31749194860458374, 0.08217070251703262, 0.0691579282283783, 0.15013453364372253, 0.5211689472198486, 0.08269018679857254, 0.47926679253578186, 0.026308363303542137, -0.10005670040845871, -0.18014486134052277, -0.42684707045555115, 0.08870285749435425, -0.13856960833072662, 0.054320044815540314, 0.025976717472076416, 0.1263294667005539, -0.010719506070017815, -0.3793341815471649, 0.07693058252334595, -0.02311893180012703, -0.3584749102592468, -0.08754569292068481, 0.01977616734802723, -0.1479407250881195, -0.37222710251808167, -0.30596181750297546, -0.03594135493040085, -0.25395795702934265, -0.00031985342502593994, 0.32035115361213684, 0.3457655906677246, 0.2055651992559433, 0.08150900900363922, 0.3413868844509125, -0.15577150881290436, 0.2677699625492096, 0.0048159281723201275, -0.5824002027511597, 0.34136611223220825, -0.41812899708747864, -0.38338255882263184, 0.05207744613289833, 0.010758824646472931, 0.22311250865459442, 0.00578521192073822, -0.339311420917511, -0.37656277418136597, -0.023519212380051613, 0.2075391709804535, -0.0077484361827373505, 0.08595738559961319, 0.35865750908851624, -0.1257215291261673, -0.11780326813459396, -0.20410409569740295, -0.09746409952640533, 0.2784804403781891, 0.05993087962269783, 0.43204212188720703, -0.25706377625465393, 0.06822600960731506, 0.1746966540813446, 0.35388320684432983, 0.3361930251121521, -0.2690371870994568, 0.06640715152025223, -0.060400329530239105, 0.38402459025382996, 0.07163438946008682, -0.07688367366790771, 0.45363444089889526, 0.25971096754074097, 0.1308823972940445, 0.14803962409496307, -0.1321161389350891, -0.13233329355716705, -0.02348203957080841, 0.19560518860816956, -0.2905430197715759, -0.2617177367210388, 0.17755094170570374, -0.19693854451179504, 0.05711979418992996, -0.17093297839164734, -0.20229503512382507, -0.17271755635738373, -0.06392629444599152, -0.04762210696935654, 0.49555665254592896, -0.07066718488931656, 0.018857743591070175, -0.7071651816368103, -0.15009920299053192, -0.05601134151220322, 0.11685140430927277, 0.020001519471406937, 0.3265567123889923, 0.02587107941508293, -0.1545872688293457, -0.0021329671144485474, -0.2563788592815399, 0.4320710301399231, -0.31572219729423523, 0.18918007612228394, -0.019231656566262245, 0.3394908308982849, -0.33729466795921326, -0.17787811160087585, -0.15418630838394165, -0.17902016639709473, 0.380420058965683, 0.208519846200943, -0.24457553029060364, -0.06901434808969498, 0.04167289659380913, 0.015657300129532814, -0.09285405278205872, -0.14636750519275665, -0.32806187868118286, -0.24906891584396362, -0.4336318373680115, 0.049998436123132706, -0.24521556496620178, 0.07337751239538193, -0.009064185433089733, -0.21332256495952606, 0.19125628471374512, -0.06284540146589279, 0.22501994669437408, 0.1572932004928589, -0.00010813958942890167, 0.48240455985069275, 0.08859261870384216, -0.21574464440345764, -0.10539177060127258, -0.01072235219180584, 0.2564215064048767, -0.2994842231273651, 0.03727145120501518, -0.04981248825788498, -0.1021089106798172, 0.2289891391992569, 0.22472867369651794, 0.1353890746831894, -0.07650672644376755, 0.014931268990039825, -0.04909124970436096, 0.0545293428003788, 0.2525601089000702, 0.03229721635580063, -0.08821484446525574, -0.07757826894521713, -0.362149178981781, 0.03175849840044975, -0.03988109529018402, -0.026064589619636536, 0.365595281124115, -0.0051964521408081055, -0.3552507162094116, 0.16173960268497467, 0.3503337800502777, 0.7383285760879517, -0.1734018623828888, 0.0687829777598381, 0.16407454013824463, 0.09408950805664062, 0.44422560930252075, -0.33460837602615356, 0.08925172686576843, -0.1769581139087677, -0.36802494525909424, 0.058889999985694885, -0.2372228503227234, 0.27631914615631104, 0.20715661346912384, -0.23301218450069427, 0.024323267862200737, 0.08010730147361755, 0.1255544275045395, -0.005660636350512505, 0.6042808890342712, -0.03876014053821564, -0.380540668964386, -0.0409952811896801, 0.2789791524410248, -0.06966091692447662, -0.04909157380461693, -0.08692368865013123, -0.03175121545791626, -0.04227326810359955, -0.09546084702014923, -0.06614049524068832, 0.20730027556419373, -0.03920331597328186, 0.1564536690711975, 0.1831706166267395, 0.13349874317646027, -0.011205785907804966, 0.43475764989852905, 0.21046362817287445, 0.36303597688674927, -0.06447914242744446, 0.08147978037595749, 0.16084197163581848, 0.12675869464874268, -0.08115992695093155, -0.23371721804141998, 0.4686664044857025, -0.2829439043998718, -0.25381824374198914, 0.015486005693674088, 0.1348882019519806, -0.4442158341407776, 0.18601953983306885, 0.15582337975502014, -0.11177121102809906, -0.13449902832508087, -0.13678418099880219, 0.2651752829551697, -0.2997225522994995, -0.05048520490527153, 0.24241486191749573, 0.11476309597492218, -0.32678231596946716, 0.39050960540771484, 0.07455450296401978, -0.19096985459327698, 0.06516851484775543, 0.31808799505233765, -0.11768721789121628, -0.16970008611679077, 0.2942298948764801, -0.1846965253353119, -0.10139939188957214, -0.3367574214935303, -0.09027330577373505, -0.14104561507701874, 0.14659824967384338, -0.23996923863887787, -0.04358343407511711, 0.004315197467803955, 0.06021223962306976, 0.07289022207260132, 0.14800426363945007, 0.27063798904418945, 0.07844007015228271, -0.4738697111606598, -0.22984863817691803, 0.06557290256023407, 0.13168694078922272, 0.43750616908073425, -0.09869318455457687, 0.34312060475349426, 0.10906428098678589, 0.19818919897079468, -0.46336427330970764, -0.08415883779525757, -0.2717238664627075, 0.23761436343193054, 0.09886536747217178, -0.0375991091132164, -0.05812898278236389, -0.2276601791381836, 0.19321225583553314, 0.09249921143054962, -0.2391057014465332, -0.3877127766609192, -0.1188807487487793, 0.08756343275308609, 0.15919092297554016, 0.12649402022361755, 0.07107380032539368, -0.06875547766685486, -0.09298214316368103, -0.03267758712172508, 0.07865442335605621, -0.13332591950893402, -0.1841050535440445, 0.3442837595939636, 0.1657811403274536, 0.047099560499191284, 0.28919684886932373, -0.2483808696269989, -0.11174722015857697, -0.01686607301235199, 0.06417734920978546, 0.30002203583717346, -0.24169479310512543, 0.01156684011220932, -0.04244853928685188, 0.24612018465995789, 0.04499725624918938, 0.28416794538497925, 0.04079008102416992, -0.06922830641269684, -0.040528956800699234, 0.041439443826675415, 0.10609317570924759, 0.3767700791358948, -0.46154236793518066, 0.09231575578451157, 0.115754134953022, 0.2963249683380127, -0.16522745788097382, 0.029202692210674286, 0.2340601533651352, -0.04298264905810356, 0.22372236847877502, 0.2575682997703552, 0.20710662007331848, -0.13715827465057373, 0.17334319651126862, 0.02347494289278984, -0.023298650979995728, -0.26597803831100464, 0.1493753045797348, 0.17734570801258087, -0.28893882036209106, -0.3006964325904846, 0.09979384392499924, -0.2599655091762543, -0.07531537860631943, -0.10278166830539703, 0.00858202576637268, 0.5594611167907715, -0.16667938232421875, 0.06550095975399017, 0.10678325593471527, -0.22914241254329681, 0.3072904348373413, 0.11379028856754303, 0.027080319821834564, 0.20504069328308105, 0.18362179398536682, 0.32863083481788635, -0.014370870776474476, -0.16270650923252106, -0.08073725551366806, 0.23088562488555908, 0.08196951448917389, 0.02404920384287834, -0.8065410256385803, -0.007738739252090454, 0.06350772082805634, -0.07809092104434967, 0.1479821354150772, -0.13088150322437286, -0.16015693545341492, 0.26642513275146484, -0.2042282670736313, 0.16317757964134216, 0.22007793188095093, 0.1323336511850357, 0.02017686516046524, -0.18409861624240875, 0.1632581204175949, 0.15448708832263947, -0.0687042623758316, -0.10619157552719116, 0.1113213449716568, 0.15078173577785492, 0.36614060401916504, 0.21871018409729004, 0.34162667393684387, 0.08097492158412933, 0.056347303092479706, -0.20761089026927948, 0.25680428743362427, 0.17306357622146606, -0.2589125633239746, 0.3169853389263153, 0.2803719639778137, -0.2334027737379074, -0.1791658103466034, -0.07779885828495026, -0.23608925938606262, 0.11864694952964783, 0.29760411381721497, 0.41459113359451294, 0.06633437424898148, -0.179880753159523, 0.19064730405807495, -0.3874606192111969, -0.2056318074464798, 0.45024749636650085, 0.07563212513923645, 0.28074926137924194, -0.3179666996002197, 0.14291763305664062, -0.02632715180516243, 0.5496773719787598, -0.05085663124918938, -0.0981946662068367, -0.052550651133060455, -0.1990036964416504, -0.6257556676864624, 0.025038421154022217, 0.029665278270840645, -0.06263762712478638, -0.015194298699498177, 0.594806969165802, -0.08538296073675156, 0.01979970559477806, 0.26673275232315063, -0.3822457492351532, -0.14454099535942078, -0.09678816795349121, -0.2910371422767639, 0.12384259700775146, -0.2550848722457886, 0.017318611964583397, 0.11864122748374939, -0.3082214295864105, 0.07382615655660629, -0.041199956089258194, 0.1763756275177002, 0.07131250202655792, -0.006531357765197754, 0.021802227944135666, 0.1266172230243683, 0.3107890486717224, -0.018143227323889732, 0.6122747659683228, -0.2574593722820282, 0.0062806252390146255, -0.28759676218032837, 0.18587039411067963, -0.35339054465293884, 0.17934894561767578, -0.00805119052529335, 0.2549828290939331, -0.029340781271457672, 0.021951351314783096, -0.17025287449359894, 0.35610678791999817, 0.11331906914710999, -0.6779918670654297, -0.11450609564781189, -0.052142709493637085, 0.018237650394439697, 0.2564929127693176, 0.09651634842157364, 0.24115443229675293, -0.1218070238828659, 0.22993013262748718, -0.24735680222511292, -0.18151932954788208, 0.5053192973136902, -0.009088363498449326, 0.02884531021118164, -0.10634500533342361, 0.4422011971473694, -0.22935014963150024, 0.20739278197288513, -0.7917797565460205, -0.06099863350391388, 0.2338276505470276, -0.16487544775009155, -0.35942235589027405, 0.3560371398925781, -0.2140824943780899, 0.20911674201488495, -0.11786653101444244, -0.1092076301574707, -0.0717422291636467, -0.1491178721189499, -0.29731202125549316, -0.3976627588272095 ]
https://github.com/huggingface/datasets/pull/21
Cleanup Features - Updating convert command - Fix Download manager
For conflicts, I think the mention hint "This should be modified because it mentions ..." is missing.
This PR makes a number of changes: # Updating `Features` Features are a complex mechanism provided in `tfds` to be able to modify a dataset on-the-fly when serializing to disk and when loading from disk. We don't really need this because (1) it hides too much from the user and (2) our datatype can be directly mapped to Arrow tables on drive so we usually don't need to change the format before/after serialization. This PR extracts and refactors these features in a single `features.py` files. It still keep a number of features classes for easy compatibility with tfds, namely the `Sequence`, `Tensor`, `ClassLabel` and `Translation` features. Some more complex features involving a pre-processing on-the-fly during serialization are kept: - `ClassLabel` which are able to convert from label strings to integers, - `Translation`which does some check on the languages. # Updating the `convert` command We do a few updates here - following the simplification of the `features` (cf above), conversion are updated - we also makes it simpler to convert a single file - some code need to be fixed manually after conversion (e.g. to remove some encoding processing in former tfds `Text` features. We highlight this code with a "git merge conflict" style syntax for easy manual fixing. # Fix download manager iterator You kept me up quite late on Tuesday night with this `os.scandir` change @lhoestq ;-)
17
text: Cleanup Features - Updating convert command - Fix Download manager This PR makes a number of changes: # Updating `Features` Features are a complex mechanism provided in `tfds` to be able to modify a dataset on-the-fly when serializing to disk and when loading from disk. We don't really need this because (1) it hides too much from the user and (2) our datatype can be directly mapped to Arrow tables on drive so we usually don't need to change the format before/after serialization. This PR extracts and refactors these features in a single `features.py` files. It still keep a number of features classes for easy compatibility with tfds, namely the `Sequence`, `Tensor`, `ClassLabel` and `Translation` features. Some more complex features involving a pre-processing on-the-fly during serialization are kept: - `ClassLabel` which are able to convert from label strings to integers, - `Translation`which does some check on the languages. # Updating the `convert` command We do a few updates here - following the simplification of the `features` (cf above), conversion are updated - we also makes it simpler to convert a single file - some code need to be fixed manually after conversion (e.g. to remove some encoding processing in former tfds `Text` features. We highlight this code with a "git merge conflict" style syntax for easy manual fixing. # Fix download manager iterator You kept me up quite late on Tuesday night with this `os.scandir` change @lhoestq ;-) For conflicts, I think the mention hint "This should be modified because it mentions ..." is missing.
[ 0.05854080244898796, -0.061608657240867615, -0.22240275144577026, -0.019052468240261078, 0.32574957609176636, 0.0013047531247138977, 0.05622801184654236, 0.3731522560119629, -0.2857379615306854, 0.10890631377696991, -0.25124815106391907, 0.24164767563343048, 0.08784598857164383, 0.3143308162689209, -0.05834079533815384, -0.3315977454185486, 0.22678427398204803, 0.24193625152111053, -0.12929680943489075, -0.010531149804592133, -0.1241764947772026, 0.20284971594810486, 0.04166293144226074, 0.1184019073843956, -0.05598596855998039, -0.10461504012346268, -0.16299448907375336, 0.31693771481513977, -0.19460196793079376, -0.45219433307647705, -0.33225101232528687, 0.2427237182855606, 0.041751258075237274, 0.3570849299430847, -0.00009714557381812483, -0.06586387008428574, -0.030124075710773468, -0.018107440322637558, -0.07210933417081833, 0.25577592849731445, 0.3046025037765503, -0.353510320186615, 0.0013072500005364418, -0.2280082106590271, 0.11742071062326431, -0.38278937339782715, -0.07291731238365173, 0.47598040103912354, 0.27945083379745483, 0.28956514596939087, 0.3743986487388611, 0.1453743875026703, 0.27214744687080383, 0.167821004986763, 0.11285212635993958, 0.27454638481140137, -0.09669913351535797, 0.06484349817037582, 0.273949533700943, 0.2609459161758423, 0.0868273675441742, 0.4327656328678131, -0.2059047818183899, -0.12309908866882324, 0.42107927799224854, -0.13105171918869019, 0.5494310855865479, -0.5930372476577759, 0.2089594304561615, -0.006137087941169739, 0.42864149808883667, -0.15232542157173157, -0.1801307052373886, -0.2203710973262787, -0.030333057045936584, -0.36289605498313904, 0.15865978598594666, -0.05139756202697754, -0.1442306786775589, 0.1362755298614502, 0.06826329976320267, -0.3029121160507202, -0.04200102016329765, -0.3233311176300049, -0.3163723647594452, 0.24968761205673218, 0.06848187744617462, -0.19429391622543335, 0.052187249064445496, 0.016234353184700012, 0.04385912045836449, -0.01181265339255333, 0.09245987981557846, 0.12475202232599258, -0.020554620772600174, -0.23814310133457184, 0.17918892204761505, -0.4560529887676239, -0.05152055621147156, 0.2121557742357254, -0.3102770447731018, 0.16109541058540344, -0.2672401964664459, -0.11384698003530502, -0.0013195183128118515, 0.19367018342018127, -0.09393703192472458, 0.07168705016374588, 0.18653219938278198, 0.04985829442739487, 0.11505842208862305, 0.07306976616382599, -0.1377575546503067, -0.15126201510429382, 0.06658166646957397, 0.1435515284538269, 0.23607753217220306, -0.031943924725055695, 0.07329943031072617, -0.018559888005256653, 0.18064120411872864, -0.015169847756624222, -0.3617432415485382, 0.21571412682533264, -0.04384450986981392, 0.2387600541114807, 0.10538418591022491, -0.12421602010726929, -0.15998968482017517, 0.046170372515916824, -0.13039728999137878, -0.14540930092334747, -0.05689936876296997, -0.2712979316711426, -0.13983388245105743, 0.037221651524305344, 0.003836246207356453, 0.010502501390874386, -0.09737198054790497, -0.021240806207060814, 0.045564085245132446, 0.06978544592857361, 0.24121308326721191, 0.34774574637413025, -0.1407383382320404, -0.09517931193113327, 0.15471287071704865, 0.029014401137828827, -0.25308412313461304, 0.4905397295951843, -0.07115405052900314, -0.2739284336566925, -0.2090071588754654, 0.3728780150413513, -0.04580869525671005, -0.09580430388450623, 0.28068897128105164, 0.22350868582725525, -0.08924112468957901, -0.1231585144996643, 0.27566635608673096, -0.14099343121051788, 0.09802696108818054, -0.2202223539352417, 0.016079409047961235, 0.23695139586925507, -0.3175428807735443, -0.06394600868225098, 0.19545790553092957, -0.42785003781318665, 0.17283682525157928, 0.1417035311460495, -0.0011801300570368767, 0.19102780520915985, -0.13964620232582092, 0.21837826073169708, 0.2957979142665863, -0.05500894784927368, -0.015537720173597336, 0.31627336144447327, -0.23614858090877533, 0.09730085730552673, 0.1957026869058609, -0.09983275085687637, 0.27974390983581543, -0.17955368757247925, -0.048074230551719666, -0.018989399075508118, -0.30973872542381287, 0.14857155084609985, -0.2731744647026062, -0.16934998333454132, 0.1642991453409195, -0.09118400514125824, 0.28922614455223083, 0.03519120439887047, 0.013464115560054779, -0.11589443683624268, 0.29556363821029663, -0.11235645413398743, 0.031422946602106094, 0.05482359230518341, 0.2054634541273117, 0.31306010484695435, 0.19183209538459778, 0.08646557480096817, -0.20819005370140076, 0.018822986632585526, -0.03342149406671524, 0.3253846764564514, -0.02876947820186615, -0.24465163052082062, -0.13416138291358948, -0.15017828345298767, -0.07627534866333008, -0.2437601089477539, 0.2951643466949463, 0.07490618526935577, -0.11330367624759674, -0.08574497699737549, -0.32087424397468567, -0.14676469564437866, -0.06122807785868645, 0.0367254801094532, 0.18001684546470642, 0.15984421968460083, -0.2727051079273224, -0.057448893785476685, -0.15784095227718353, 0.1499156802892685, -0.20257100462913513, -0.3630359470844269, -0.14615574479103088, 0.42279917001724243, -0.09415171295404434, 0.24710005521774292, 0.09845484793186188, 0.4456266164779663, 0.29904550313949585, -0.0576680451631546, -0.011627143248915672, 0.20485085248947144, 0.21610023081302643, -0.0911518782377243, -0.10309012979269028, 0.11887876689434052, -0.07247614860534668, 0.08221686631441116, 0.1915827840566635, -0.09273417294025421, 0.08333718776702881, 0.011117514222860336, -0.10615149885416031, 0.10120922327041626, -0.08770720660686493, 0.03468194603919983, -0.24201291799545288, 0.21366755664348602, -0.5015882253646851, 0.5457756519317627, 0.5219020247459412, -0.33506298065185547, -0.23627790808677673, 0.34818005561828613, -0.061188556253910065, -0.2469882369041443, -0.030497020110487938, 0.012240033596754074, 0.05283469706773758, 0.20298810303211212, 0.1726900041103363, 0.17663921415805817, 0.21052271127700806, -0.09253206849098206, 0.4346047639846802, 0.09432365000247955, -0.08607185631990433, 0.2867598533630371, -0.06130572408437729, 0.3383451998233795, -0.20178064703941345, -0.05803455412387848, 0.06513666361570358, 0.2665799856185913, -0.13615520298480988, -0.16214938461780548, -0.07861381024122238, -0.32065024971961975, 0.040496159344911575, 0.08384884893894196, -0.11508271098136902, -0.2516196668148041, 0.1797599345445633, 0.03455489128828049, -0.23705792427062988, 0.29752829670906067, 0.11095170676708221, 0.17756062746047974, 0.022787654772400856, 0.10408104211091995, -0.1818324476480484, -0.07448229193687439, -0.2420467734336853, 0.24846825003623962, 0.24564369022846222, -0.04752722755074501, 0.38107526302337646, -0.4176449775695801, -0.07340063154697418, -0.34024688601493835, -0.42925894260406494, 0.1870340257883072, -0.304435133934021, -0.22385813295841217, 0.2968599200248718, 0.11446292698383331, 0.06376796215772629, -0.0021840017288923264, -0.015893563628196716, -0.23700468242168427, -0.2336060255765915, -0.09270729869604111, 0.14369437098503113, -0.07548017799854279, -0.31062814593315125, -0.33975663781166077, -0.12478192895650864, -0.4452192187309265, 0.13151177763938904, -0.027056515216827393, 0.35598403215408325, 0.25247785449028015, -0.02500149793922901, 0.1520998179912567, 0.13053563237190247, 0.07703715562820435, -0.09981710463762283, 0.047616202384233475, 0.08168978989124298, -0.09580030292272568, -0.2490559071302414, 0.20076879858970642, 0.161652609705925, -0.2969557046890259, -0.18609875440597534, -0.29739147424697876, -0.39869600534439087, -0.16964401304721832, 0.34594184160232544, -0.1936148852109909, 0.2297743260860443, 0.26533547043800354, 0.535286009311676, -0.35739678144454956, 0.1566922664642334, -0.1225263923406601, -0.26156339049339294, 0.20830944180488586, 0.019404537975788116, -0.1655728816986084, -0.007177695631980896, 0.00577598437666893, 0.3904244899749756, -0.21902811527252197, 0.15252572298049927, -0.05531100183725357, -0.030648550018668175, 0.2727776765823364, -0.1162886843085289, -0.11513201147317886, 0.312106728553772, -0.1827543079853058, -0.08254598081111908, 0.3565937280654907, -0.1066889688372612, 0.06683918088674545, 0.01010020449757576, 0.1320342868566513, -0.13629832863807678, -0.24776634573936462, 0.24289363622665405, -0.03321655094623566, 0.27464306354522705, -0.058585550636053085, -0.15376222133636475, -0.23393140733242035, 0.1813766062259674, 0.2538929283618927, 0.49727559089660645, 0.07397975027561188, 0.09703321754932404, -0.46460220217704773, -0.05544200539588928, -0.30668461322784424, 0.01435144990682602, 0.14239287376403809, -0.32586219906806946, -0.040890153497457504, -0.35173138976097107, 0.08944296091794968, -0.13130684196949005, 0.5611997842788696, 0.19711165130138397, -0.20400302112102509, 0.30764323472976685, -0.04161790758371353, 0.4183798134326935, -0.30697759985923767, -0.2586386799812317, 0.10167208313941956, 0.07941444218158722, 0.23001427948474884, -0.1868724524974823, -0.4289628565311432, 0.0497063472867012, 0.14998199045658112, -0.11573569476604462, 0.021065108478069305, -0.09306354820728302, -0.45220956206321716, -0.54912930727005, -0.009675823152065277, 0.18536105751991272, -0.0923030897974968, -0.34982210397720337, 0.03693210706114769, 0.1811661422252655, 0.05554290860891342, 0.19216829538345337, 0.13400356471538544, 0.23557233810424805, 0.011316056363284588, -0.27279385924339294, -0.08852817118167877, 0.013055488467216492, 0.061901770532131195, 0.19194096326828003, -0.04978003725409508, -0.1904587745666504, 0.09066299349069595, -0.4105477035045624, 0.06473398208618164, 0.4066379964351654, 0.015400092117488384, -0.10110685974359512, -0.21815389394760132, 0.38404542207717896, -0.2189793884754181, 0.14726461470127106, 0.29521310329437256, 0.03854770213365555, -0.1295718550682068, -0.2578807771205902, 0.10395507514476776, -0.27057161927223206, -0.0870191678404808, -0.09238891303539276, 0.1003233790397644, -0.1627291440963745, 0.2043435275554657, 0.1795082837343216, 1.0713856220245361, -0.028144225478172302, 0.20038658380508423, 0.43530532717704773, -0.2802658677101135, 0.5420385599136353, -0.2366926074028015, 0.18456004559993744, -0.11639583110809326, 0.009399308823049068, -0.0766822025179863, 0.20173883438110352, -0.08672284334897995, -0.14221598207950592, -0.4552190899848938, 0.015454770997166634, -0.12184437364339828, -0.17938275635242462, 0.34263014793395996, 0.16467571258544922, 0.19403265416622162, -0.18899652361869812, -0.01690521463751793, 0.21118362247943878, -0.010886237025260925, 0.08250942826271057, -0.13829922676086426, -0.22100062668323517, 0.083663210272789, 0.08008142560720444, -0.25464025139808655, -0.2432447075843811, -0.10897307097911835, -0.010727941989898682, 0.03982323780655861, 0.05683690309524536, -0.20277562737464905, -0.03553590551018715, 0.17658105492591858, -0.13312239944934845, 0.1456126570701599, -0.025518860667943954, 0.3646381199359894, 0.21044114232063293, 0.2024983912706375, 0.09445539861917496, 0.46333691477775574, -0.2662409543991089, -0.036248497664928436, 0.052060097455978394, -0.30316275358200073, 0.020946219563484192, -0.23227596282958984, -0.3027552366256714, 0.034410879015922546, -0.10757414251565933, -0.04609101638197899, 0.07141023129224777, -0.4519002139568329, -0.12364041805267334, 0.2399507761001587, -0.1882772594690323, -0.39789989590644836, 0.24513787031173706, -0.09623399376869202, -0.28467273712158203, -0.025154579430818558, -0.2722751200199127, 0.17368009686470032, -0.23710420727729797, 0.34439578652381897, 0.18552903831005096, -0.093523308634758, -0.3432278037071228, -0.1432875692844391, -0.20579323172569275, -0.1732386350631714, 0.30732131004333496, -0.13555173575878143, -0.23483210802078247, -0.015889445319771767, 0.3975316882133484, 0.2931763231754303, 0.1801304817199707, -0.23410837352275848, 0.09714953601360321, -0.26749366521835327, -0.04334128648042679, 0.2205941081047058, 0.29870274662971497, -0.14445461332798004, 0.4983643591403961, 0.0536695197224617, -0.0045657679438591, -0.5177422761917114, 0.015736114233732224, -0.1842375248670578, 0.07158086448907852, 0.15183308720588684, -0.18960782885551453, -0.23636820912361145, -0.0671716183423996, 0.24459528923034668, -0.011555604636669159, -0.22306379675865173, -0.35019156336784363, -0.15098895132541656, 0.08254966884851456, -0.04230504482984543, -0.11203191429376602, 0.21589477360248566, 0.289955735206604, -0.1571149080991745, 0.16730248928070068, 0.13309800624847412, -0.16812872886657715, -0.09956158697605133, 0.33650505542755127, -0.03478648141026497, 0.22970396280288696, 0.04066663980484009, -0.07922212779521942, 0.2550508975982666, 0.3726106286048889, -0.0427606999874115, 0.1780291050672531, -0.17443396151065826, -0.12393607199192047, 0.007480941712856293, 0.2877656817436218, 0.10542508214712143, 0.15801019966602325, 0.319941908121109, 0.05349159613251686, 0.026203680783510208, -0.021968407556414604, 0.18717791140079498, 0.46288034319877625, -0.24175599217414856, -0.28170210123062134, 0.0712103545665741, 0.3796813189983368, -0.2590906620025635, -0.006683014798909426, -0.21556547284126282, -0.29019895195961, -0.002661772072315216, 0.07857775688171387, 0.2547058165073395, 0.3308013677597046, 0.1324520707130432, 0.2834896743297577, 0.308661550283432, -0.09655865281820297, 0.15728452801704407, 0.4319404661655426, -0.2011585533618927, 0.14920271933078766, 0.10880257934331894, 0.014742141589522362, -0.026464886963367462, 0.04229670763015747, 0.11695924401283264, 0.2210119068622589, 0.13264602422714233, 0.17902913689613342, 0.07011695951223373, -0.2578272819519043, 0.19726724922657013, 0.0022184550762176514, -0.0289313942193985, 0.24240267276763916, 0.2731513977050781, -0.09957446902990341, -0.26216644048690796, -0.4564496576786041, 0.05388537794351578, 0.421191930770874, -0.07148043066263199, -0.09225727617740631, 0.16509118676185608, -0.25364142656326294, -0.29669803380966187, -0.04641685262322426, -0.039696287363767624, 0.14277383685112, 0.2723851203918457, 0.032568760216236115, -0.1512078493833542, -0.09007658809423447, -0.18558156490325928, -0.3133883476257324, 0.42029768228530884, -0.09987086057662964, -0.09004101157188416, 0.3521055579185486, -0.18087324500083923, -0.027216393500566483, 0.20443390309810638, 0.3311294913291931, 0.2770121693611145, -0.3250467777252197, 0.004257495980709791, -0.33496642112731934, -0.005019430071115494, 0.11390234529972076, -0.046144939959049225, -0.0296848863363266, 0.024308599531650543, -0.053316228091716766, 0.21166548132896423, -0.25118690729141235, 0.10027191042900085, -0.22601218521595, -0.4495498239994049, 0.02614126354455948, 0.49013328552246094, 0.23572401702404022, -0.27514219284057617, -0.09483948349952698, 0.09350066632032394, -0.3045387864112854, -0.14361423254013062, 0.3784310519695282, 0.007068067789077759, 0.06553423404693604, 0.07126740366220474, 0.18985921144485474, 0.13929861783981323, 0.4663628041744232, 0.3165242671966553, -0.039928846061229706, -0.10280255973339081, 0.1414586454629898, -0.40348881483078003, 0.20472310483455658, 0.43259164690971375, -0.24207797646522522, 0.25866782665252686, 0.09631610661745071, 0.11915770918130875, -0.001347232609987259, 0.09804454445838928, -0.3849625587463379, 0.16226817667484283, -0.03135216236114502, -0.2486627846956253, 0.12933334708213806, -0.019009754061698914, 0.17945796251296997, -0.04381204769015312, -0.2665674686431885, 0.4169292151927948, -0.20601023733615875, 0.27014318108558655, -0.14746537804603577, -0.1254032850265503, 0.35402509570121765, 0.03838691860437393, 0.3754693567752838, 0.17328369617462158, -0.06747166812419891, -0.2045358121395111, -0.3236350417137146, 0.15745894610881805, 0.12238627672195435, -0.35188382863998413, 0.1403806209564209, -0.045534271746873856, 0.03861890733242035, -0.06091579794883728, 0.08019125461578369, -0.4156147241592407, 0.11383286863565445, 0.1953021138906479, 0.08885981887578964, -0.39196595549583435, 0.12109015136957169, 0.2121163010597229, -0.098813995718956, 0.2452745884656906, 0.37803927063941956, 0.09053019434213638, 0.05374307185411453, -0.6649647951126099, -0.38308650255203247, 0.46423768997192383, 0.3372088074684143, -0.4662821590900421, -0.041724588721990585, 0.017863795161247253, 0.18964293599128723, 0.24256208539009094, -0.6302230954170227, -0.05546532943844795, 0.18453508615493774, -0.016751863062381744, -0.4169984757900238, 0.2915780544281006, -0.135383740067482, -0.1577310711145401, -0.05413409322500229, 0.24450674653053284, -0.2365327775478363, -0.023645061999559402, -0.2862188220024109, -0.2208734005689621 ]
https://github.com/huggingface/datasets/pull/16
create our own DownloadManager
The new download manager is ready. I removed the old folder and I fixed a few remaining dependencies. I tested it on squad and a few others from the dataset folder and it works fine. The only impact of these changes is that it breaks the `download_and_prepare` script that was used to register the checksums when we create a dataset, as the checksum logic is not implemented. Let me know if you have remarks
I tried to create our own - and way simpler - download manager, by replacing all the complicated stuff with our own `cached_path` solution. With this implementation, I tried `dataset = nlp.load('squad')` and it seems to work fine. For the implementation, what I did exactly: - I copied the old download manager - I removed all the dependences to the old `download` files - I replaced all the download + extract calls by calls to `cached_path` - I removed unused parameters (extract_dir, compute_stats) (maybe compute_stats could be re-added later if we want to compute stats...) - I left some functions unimplemented for now. We will probably have to implement them because they are used by some datasets scripts (download_kaggle_data, iter_archive) or because we may need them at some point (download_checksums, _record_sizes_checksums) Let me know if you think that this is going the right direction or if you have remarks. Note: I didn't write any test yet as I wanted to read your remarks first
74
text: create our own DownloadManager I tried to create our own - and way simpler - download manager, by replacing all the complicated stuff with our own `cached_path` solution. With this implementation, I tried `dataset = nlp.load('squad')` and it seems to work fine. For the implementation, what I did exactly: - I copied the old download manager - I removed all the dependences to the old `download` files - I replaced all the download + extract calls by calls to `cached_path` - I removed unused parameters (extract_dir, compute_stats) (maybe compute_stats could be re-added later if we want to compute stats...) - I left some functions unimplemented for now. We will probably have to implement them because they are used by some datasets scripts (download_kaggle_data, iter_archive) or because we may need them at some point (download_checksums, _record_sizes_checksums) Let me know if you think that this is going the right direction or if you have remarks. Note: I didn't write any test yet as I wanted to read your remarks first The new download manager is ready. I removed the old folder and I fixed a few remaining dependencies. I tested it on squad and a few others from the dataset folder and it works fine. The only impact of these changes is that it breaks the `download_and_prepare` script that was used to register the checksums when we create a dataset, as the checksum logic is not implemented. Let me know if you have remarks
[ 0.026527877897024155, 0.2782733142375946, -0.002591211348772049, 0.08484992384910583, 0.17636489868164062, -0.22692811489105225, 0.22836503386497498, 0.22695304453372955, 0.11821919679641724, -0.029588773846626282, -0.39874744415283203, 0.5828741788864136, -0.2931922376155853, -0.19722899794578552, 0.3000153601169586, 0.06360737234354019, -0.22178927063941956, 0.1656867414712906, -0.13273659348487854, 0.17655320465564728, 0.027699485421180725, 0.09432618319988251, 0.15085859596729279, 0.044763121753931046, 0.12339966744184494, 0.06192133575677872, -0.3456336557865143, 0.35650157928466797, -0.5249190926551819, -0.7351009845733643, 0.22471238672733307, 0.23719117045402527, 0.36772897839546204, 0.4001140892505646, -0.00011089592589996755, -0.18973006308078766, 0.2335067093372345, -0.1462428718805313, -0.3840456008911133, -0.030440494418144226, -0.1879529058933258, -0.4997082054615021, 0.13096477091312408, -0.4320494532585144, 0.2856292128562927, 0.3094147741794586, 0.20289309322834015, 0.0129537433385849, 0.24953193962574005, 0.13780003786087036, 0.1893903762102127, 0.172138512134552, -0.06446554511785507, -0.12100300192832947, 0.14844554662704468, -0.1468760222196579, 0.013793161138892174, 0.39256829023361206, 0.4069691002368927, 0.0030892929062247276, -0.46756964921951294, -0.024124743416905403, -0.1836147904396057, 0.08864732086658478, 0.5104273557662964, 0.05429874360561371, 0.2744498550891876, -0.20741154253482819, -0.2572915256023407, 0.12417612224817276, 0.37044548988342285, -0.46006301045417786, -0.12558214366436005, -0.5208690762519836, 0.1546943187713623, -0.16749364137649536, 0.23258748650550842, 0.11786729842424393, -0.23020173609256744, 0.05813061073422432, -0.19631874561309814, -0.09208983927965164, 0.012241750955581665, 0.06392494589090347, 0.07033002376556396, 0.4572124779224396, -0.040658727288246155, -0.09280318766832352, 0.481372207403183, 0.24733316898345947, 0.3355618715286255, -0.2028166800737381, -0.09638462960720062, 0.20110444724559784, -0.31720492243766785, -0.3885281980037689, 0.05946916714310646, 0.04782281816005707, 0.23852351307868958, 0.41103416681289673, 0.2322034388780594, 0.07959459722042084, 0.1241467148065567, 0.03774656355381012, 0.127648264169693, 0.23266781866550446, 0.09033128619194031, -0.06888686120510101, 0.023859068751335144, 0.3638837933540344, 0.044639747589826584, 0.12522199749946594, -0.061405520886182785, -0.010879375040531158, -0.030071884393692017, 0.08353542536497116, -0.20095790922641754, 0.10002799332141876, 0.1924370527267456, -0.30949312448501587, 0.1701403260231018, -0.2945592701435089, 0.18751934170722961, 0.17759805917739868, -0.27894261479377747, -0.0962802991271019, -0.335236132144928, -0.11402994394302368, 0.06600792706012726, -0.1257764995098114, -0.09249269962310791, 0.014952639117836952, -0.49388355016708374, -0.0373811200261116, 0.34104016423225403, 0.035501159727573395, 0.28879719972610474, -0.24855458736419678, -0.033113740384578705, 0.10350365936756134, 0.19267548620700836, 0.00545501708984375, -0.07601182907819748, -0.10162070393562317, 0.16829842329025269, -0.04792780429124832, -0.07437460124492645, -0.41309523582458496, -0.2772325575351715, 0.0012702569365501404, -0.2420007586479187, -0.4775781035423279, 0.019066033884882927, 0.20338061451911926, -0.48967885971069336, -0.2762302756309509, -0.07882416993379593, 0.11135204136371613, -0.08207445591688156, -0.30193427205085754, 0.02670750766992569, 0.35480374097824097, -0.1580379605293274, -0.23118503391742706, -0.030754446983337402, 0.5209044814109802, -0.15424761176109314, -0.2207994908094406, -0.443876177072525, -0.3513823449611664, -0.0489010289311409, -0.07291524112224579, -0.16126902401447296, 0.349211186170578, -0.36305955052375793, 0.16141349077224731, 0.7269327640533447, -0.48911285400390625, -0.47793373465538025, 0.3736571669578552, -0.3377404808998108, 0.026995370164513588, 0.2798551321029663, 0.10556801408529282, 0.45909780263900757, -0.3677178621292114, -0.13772566616535187, 0.5038419961929321, -0.22842752933502197, 0.17368794977664948, -0.10295823216438293, -0.5024918913841248, 0.23863470554351807, 0.1777561604976654, 0.03574857488274574, 0.0393911749124527, 0.2302756905555725, 0.15683290362358093, 0.23217853903770447, -0.006050940603017807, 0.11535163968801498, -0.055620014667510986, 0.006675310432910919, -0.09341561794281006, -0.18408340215682983, -0.22784364223480225, -0.44047433137893677, 0.2476591169834137, -0.562860369682312, 0.28768718242645264, 0.1579640507698059, -0.004706503823399544, -0.30819815397262573, -0.3447984755039215, -0.10622204840183258, -0.18890225887298584, 0.15635037422180176, 0.07085297256708145, 0.23438772559165955, -0.24025404453277588, -0.24353596568107605, 0.2901434600353241, -0.06534698605537415, 0.20120471715927124, 0.0016543595120310783, -0.11990015208721161, -0.1874285489320755, -0.0004460141062736511, 0.03292389214038849, 0.1422237902879715, 0.0400305911898613, -0.06001366302371025, -0.015678787603974342, 0.41991615295410156, -0.26360639929771423, 0.10232169181108475, 0.2762957513332367, -0.11867024004459381, 0.19223961234092712, 0.053250622004270554, 0.2658531069755554, 0.12496665120124817, 0.08617699146270752, -0.35408833622932434, -0.3778340816497803, 0.0353204607963562, -0.11779782176017761, 0.1098727211356163, 0.07388350367546082, -0.024845845997333527, 0.25684040784835815, -0.16991087794303894, -0.11246039718389511, 0.005139864981174469, 0.04754233732819557, 0.27513617277145386, 0.28280118107795715, 0.21997377276420593, 0.36745890974998474, 0.24408462643623352, 0.3869645297527313, -0.1375756710767746, 0.032375212758779526, 0.21685659885406494, 0.06443652510643005, -0.2745206654071808, -0.03584074229001999, 0.6467944383621216, 0.6477046608924866, 0.3069535791873932, 0.19141629338264465, 0.2728068232536316, 0.2560572326183319, -0.07234440743923187, 0.34902310371398926, -0.014617666602134705, 0.1644868403673172, 0.21168974041938782, 0.009667586535215378, -0.1423613727092743, -0.05224975571036339, -0.12895092368125916, 0.2340312898159027, 0.25479117035865784, -0.13885125517845154, -0.13394859433174133, -0.23381905257701874, -0.5783190131187439, -0.07305007427930832, 0.15785479545593262, -0.30648478865623474, -0.22018767893314362, -0.06658796221017838, 0.07128840684890747, 0.2238207757472992, 0.20390325784683228, -0.19508732855319977, 0.32314926385879517, -0.3376758098602295, -0.15518075227737427, 0.045726872980594635, -0.14345750212669373, -0.28953689336776733, 0.06378467381000519, 0.47138288617134094, -0.21803182363510132, 0.23381881415843964, -0.08029118180274963, 0.11108739674091339, -0.16343757510185242, -0.19841119647026062, 0.32046255469322205, 0.06423130631446838, 0.06347087025642395, 0.4553447663784027, -0.13394105434417725, -0.0697181299328804, 0.06518761068582535, -0.04709997773170471, -0.09498723596334457, -0.12346908450126648, -0.13071896135807037, 0.07772654294967651, 0.1969834715127945, -0.23635312914848328, -0.23682621121406555, -0.6189496517181396, -0.333453506231308, -0.026939116418361664, 0.09930868446826935, 0.3672966957092285, -0.02252185344696045, -0.15173585712909698, 0.3112066090106964, -0.15750300884246826, -0.014413882046937943, -0.07539237290620804, -0.5318595170974731, 0.3615931570529938, -0.21007506549358368, -0.12966424226760864, 0.11450435221195221, -0.06601210683584213, 0.08671621978282928, -0.22407735884189606, -0.2592465877532959, -0.06001444533467293, 0.19504962861537933, 0.0294356532394886, 0.11111049354076385, 0.24259978532791138, 0.49267539381980896, 0.07014254480600357, 0.019599704071879387, -0.05001450702548027, -0.2928253412246704, -0.005286052823066711, 0.09043490886688232, 0.48410141468048096, 0.007352711632847786, 0.17504757642745972, 0.24583393335342407, 0.6002976894378662, 0.016757898032665253, 0.24834953248500824, 0.19586561620235443, -0.09412705153226852, 0.3210946023464203, 0.19456122815608978, -0.2864806652069092, 0.3300560712814331, -0.04485401511192322, -0.10087136179208755, 0.2512807846069336, 0.08327425271272659, -0.3601955771446228, -0.3072737157344818, -0.04004025459289551, -0.11732251197099686, -0.2933703064918518, 0.03453768789768219, 0.11646508425474167, -0.2506990134716034, 0.0689585953950882, 0.021927960216999054, -0.3171369433403015, -0.21317455172538757, 0.10109718143939972, 0.27244269847869873, -0.06847097724676132, 0.10695015639066696, -0.616133987903595, 0.3084830641746521, -0.29327672719955444, -0.029420599341392517, 0.0970797911286354, -0.14686086773872375, 0.3276931643486023, -0.05992542952299118, -0.07173003256320953, -0.20379377901554108, 0.4321485757827759, -0.047980897128582, 0.051759038120508194, 0.1716354340314865, 0.2202472686767578, -0.14804212749004364, -0.08656924962997437, 0.04259229078888893, 0.2848968505859375, 0.2808693051338196, -0.18220660090446472, -0.41545557975769043, -0.2103682905435562, 0.11659196019172668, 0.06834729015827179, -0.18375153839588165, -0.3315519690513611, -0.26323890686035156, -0.20693069696426392, -0.2714049518108368, -0.018285386264324188, -0.2569890320301056, 0.054049789905548096, 0.14760591089725494, 0.08801181614398956, 0.11192768812179565, 0.14529436826705933, 0.12865370512008667, 0.016700968146324158, 0.004764092154800892, 0.12167144566774368, 0.013028189539909363, -0.08404526859521866, 0.14276234805583954, -0.38162940740585327, 0.3176176846027374, -0.226485937833786, 0.04678400233387947, 0.16437110304832458, -0.14214032888412476, 0.1628081500530243, 0.29531562328338623, 0.14945729076862335, -0.05042170733213425, 0.07319486886262894, -0.16452595591545105, 0.03711450472474098, -0.13875176012516022, -0.025130735710263252, -0.213881716132164, 0.07132813334465027, -0.36870595812797546, 0.36041322350502014, 0.05194000527262688, -0.1527097225189209, 0.3118788003921509, -0.12996721267700195, -0.26017633080482483, -0.18219217658042908, 0.0389612652361393, 1.0103999376296997, -0.15543140470981598, 0.2105811983346939, 0.39400508999824524, -0.3003108501434326, 0.6794891953468323, -0.38771694898605347, 0.16255435347557068, -0.36834511160850525, 0.05465354025363922, 0.030004726722836494, -0.19008903205394745, 0.05059657245874405, 0.1313789337873459, -0.17174586653709412, 0.36820662021636963, 0.15225213766098022, 0.32860901951789856, 0.29370856285095215, 0.7925153374671936, -0.2105141282081604, -0.5833889842033386, -0.22121386229991913, 0.18514248728752136, -0.3063705563545227, 0.0049302466213703156, -0.2445262372493744, -0.2416604608297348, -0.05747009068727493, 0.1587500125169754, -0.01530841737985611, 0.1903807520866394, -0.08788537979125977, 0.01773771084845066, -0.0821220725774765, 0.07814234495162964, 0.05242666229605675, 0.2525302469730377, -0.116879403591156, -0.13591580092906952, -0.12647533416748047, 0.1645936667919159, -0.1802482008934021, 0.32300081849098206, 0.37070176005363464, -0.0009903376922011375, 0.3053301274776459, -0.2507992088794708, -0.21186992526054382, 0.15186282992362976, -0.015176795423030853, -0.5204817652702332, 0.061397433280944824, 0.008394092321395874, 0.31952083110809326, -0.11227453500032425, -0.3386925458908081, 0.07669564336538315, -0.23008640110492706, -0.05727386474609375, 0.13778536021709442, 0.15073490142822266, -0.2253495156764984, 0.44040730595588684, -0.059750284999608994, -0.037732917815446854, 0.019518285989761353, 0.44171640276908875, -0.15877923369407654, -0.38861915469169617, 0.1509019136428833, -0.1257433146238327, -0.15545392036437988, -0.19175878167152405, 0.05554083734750748, -0.5105626583099365, 0.03223361074924469, -0.06259718537330627, -0.1882028877735138, -0.2903067171573639, 0.03153076395392418, -0.22952648997306824, 0.40200793743133545, 0.24284043908119202, 0.12110969424247742, -0.19940152764320374, -0.625148355960846, 0.12516646087169647, 0.09326741844415665, -0.05968755856156349, -0.012566082179546356, -0.047491904348134995, 0.20417222380638123, -0.09235400706529617, -0.34715762734413147, 0.18994833528995514, -0.02553705684840679, -0.11231258511543274, 0.08847220987081528, -0.06698351353406906, -0.1262933611869812, -0.224710151553154, 0.031084755435585976, 0.20086899399757385, -0.3274194598197937, -0.2217520773410797, -0.177084818482399, 0.18482382595539093, 0.14060038328170776, 0.056038908660411835, 0.07375146448612213, -0.19368062913417816, -0.21040621399879456, -0.020512381568551064, -0.1970812976360321, -0.05449097603559494, 0.019875474274158478, 0.09398309886455536, 0.11828383803367615, -0.18184542655944824, -0.278964102268219, 0.055656563490629196, 0.09035161137580872, 0.126129612326622, -0.052134208381175995, 0.2589612901210785, -0.08114682137966156, 0.011222586035728455, -0.0983290746808052, 0.09277293086051941, 0.20257779955863953, 0.36874493956565857, 0.42864975333213806, -0.17699258029460907, 0.038169000297784805, 0.244961217045784, 0.12937699258327484, 0.3270378112792969, -0.15126848220825195, -0.10317225009202957, 0.3795987069606781, 0.1338389664888382, -0.22913426160812378, 0.051878150552511215, 0.3830367922782898, 0.07721942663192749, -0.038200344890356064, 0.2617451846599579, 0.08701448142528534, 0.0074114203453063965, 0.06998337060213089, 0.07445260882377625, 0.6030340790748596, 0.06729492545127869, -0.032143279910087585, 0.19514116644859314, -0.12694595754146576, -0.008968535810709, 0.4600464701652527, 0.006982244551181793, 0.13065314292907715, 0.12272336333990097, -0.27900028228759766, 0.3880698084831238, -0.0574212521314621, 0.23942764103412628, 0.001958601176738739, -0.19865398108959198, -0.11956915259361267, 0.26181116700172424, 0.2343849390745163, 0.06325309723615646, 0.02576962485909462, 0.6308093070983887, -0.10862012207508087, -0.23669622838497162, 0.10906409472227097, 0.23908588290214539, 0.1085343137383461, 0.11747235059738159, -0.4003041982650757, -0.09043975174427032, -0.06668480485677719, 0.1605837047100067, -0.05023651197552681, -0.08633361756801605, 0.26335030794143677, 0.13594815135002136, -0.09575022757053375, -0.15210868418216705, -0.09756091982126236, 0.006052110344171524, 0.1021571233868599, -0.32087448239326477, -0.024388989433646202, 0.039006978273391724, -0.07762406766414642, -0.0138779915869236, 0.27956342697143555, 0.04347970336675644, 0.38487330079078674, -0.11157800257205963, -0.18001936376094818, -0.02756546437740326, 0.10306975245475769, -0.21712574362754822, 0.07056798040866852, 0.3186061978340149, -0.24244682490825653, -0.009161542169749737, 0.09671757370233536, -0.1443135142326355, -0.1156216561794281, 0.38365525007247925, -0.47322791814804077, -0.03501932695508003, 0.5201082825660706, 0.5749768018722534, 0.0460808202624321, 0.13846838474273682, 0.21128366887569427, -0.4413752257823944, 0.2125316858291626, 0.33812379837036133, 0.1452881097793579, 0.23965060710906982, -0.175252303481102, 0.0823332741856575, 0.31027138233184814, 0.38407766819000244, -0.12812580168247223, -0.21072036027908325, -0.13713210821151733, 0.050277650356292725, -0.9644081592559814, -0.06475838273763657, 0.15242722630500793, -0.28363165259361267, -0.09999115020036697, 0.24753253161907196, -0.045597754418849945, 0.30757009983062744, 0.07562939077615738, 0.16497759521007538, 0.32979652285575867, -0.11184646189212799, -0.3820333480834961, -0.013892844319343567, -0.05732545256614685, 0.3327285647392273, 0.06399983912706375, -0.3309001922607422, 0.051505785435438156, -0.1351858675479889, -0.0504179373383522, -0.03157301992177963, -0.09189799427986145, 0.2135041207075119, 0.051653165370225906, 0.35984867811203003, -0.12435708940029144, 0.22863033413887024, -0.02258029207587242, -0.06426531076431274, -0.24472805857658386, 0.3028544485569, -0.16932867467403412, -0.07235724478960037, 0.157528817653656, -0.008229987695813179, -0.3010188341140747, 0.44283342361450195, -0.6112436652183533, 0.3211461901664734, 0.038894474506378174, 0.08936262875795364, -0.44715821743011475, -0.07460448145866394, 0.04463456571102142, 0.30528274178504944, 0.0917426273226738, 0.4368450939655304, -0.27711355686187744, 0.502717912197113, -0.3484818935394287, 0.05085856467485428, 0.43843504786491394, -0.01535830833017826, -0.07777245342731476, 0.012399655766785145, 0.27438580989837646, 0.2787058651447296, -0.029362214729189873, -0.3636864423751831, 0.009586930274963379, 0.19621993601322174, -0.1473725140094757, 0.07543116807937622, 0.2535167634487152, -0.3350171446800232, 0.08248969912528992, -0.0779644101858139, -0.1822473406791687, -0.03613032400608063, -0.107005774974823, -0.19140467047691345, -0.12955284118652344 ]
https://github.com/huggingface/datasets/pull/16
create our own DownloadManager
Ok merged it (a bit fast for you to update the copyright, now I see that. but it's ok, we'll do a pass on these doc/copyright before releasing anyway)
I tried to create our own - and way simpler - download manager, by replacing all the complicated stuff with our own `cached_path` solution. With this implementation, I tried `dataset = nlp.load('squad')` and it seems to work fine. For the implementation, what I did exactly: - I copied the old download manager - I removed all the dependences to the old `download` files - I replaced all the download + extract calls by calls to `cached_path` - I removed unused parameters (extract_dir, compute_stats) (maybe compute_stats could be re-added later if we want to compute stats...) - I left some functions unimplemented for now. We will probably have to implement them because they are used by some datasets scripts (download_kaggle_data, iter_archive) or because we may need them at some point (download_checksums, _record_sizes_checksums) Let me know if you think that this is going the right direction or if you have remarks. Note: I didn't write any test yet as I wanted to read your remarks first
29
text: create our own DownloadManager I tried to create our own - and way simpler - download manager, by replacing all the complicated stuff with our own `cached_path` solution. With this implementation, I tried `dataset = nlp.load('squad')` and it seems to work fine. For the implementation, what I did exactly: - I copied the old download manager - I removed all the dependences to the old `download` files - I replaced all the download + extract calls by calls to `cached_path` - I removed unused parameters (extract_dir, compute_stats) (maybe compute_stats could be re-added later if we want to compute stats...) - I left some functions unimplemented for now. We will probably have to implement them because they are used by some datasets scripts (download_kaggle_data, iter_archive) or because we may need them at some point (download_checksums, _record_sizes_checksums) Let me know if you think that this is going the right direction or if you have remarks. Note: I didn't write any test yet as I wanted to read your remarks first Ok merged it (a bit fast for you to update the copyright, now I see that. but it's ok, we'll do a pass on these doc/copyright before releasing anyway)
[ 0.052864920347929, 0.2267591655254364, -0.01591861993074417, 0.022404201328754425, 0.13443738222122192, -0.2263382375240326, 0.240679070353508, 0.233434796333313, 0.11925634741783142, 0.00718921422958374, -0.38264140486717224, 0.5485453605651855, -0.38326171040534973, -0.17095887660980225, 0.39173901081085205, -0.026833273470401764, -0.23351457715034485, 0.16331125795841217, -0.09415951371192932, 0.1926058679819107, 0.04057120531797409, 0.11552103608846664, 0.13607774674892426, 0.07459177076816559, 0.09639042615890503, 0.06365818530321121, -0.3520530164241791, 0.29459652304649353, -0.4958665370941162, -0.7188201546669006, 0.16355539858341217, 0.2135922908782959, 0.31589460372924805, 0.4650752544403076, -0.00011051412730012089, -0.2507361173629761, 0.22205890715122223, -0.1214398443698883, -0.36138027906417847, -0.09766218066215515, -0.1327679455280304, -0.5219429731369019, 0.16485880315303802, -0.4333306550979614, 0.23333552479743958, 0.2451782524585724, 0.19913284480571747, 0.009480901062488556, 0.2932264804840088, 0.14758911728858948, 0.2083558291196823, 0.13318683207035065, -0.07762724161148071, -0.11213432252407074, 0.15612441301345825, -0.09631386399269104, -0.038517024368047714, 0.31593406200408936, 0.4346756339073181, -0.04817647486925125, -0.4467097520828247, -0.0012094364501535892, -0.19105572998523712, 0.08492668718099594, 0.4850478768348694, 0.0659283772110939, 0.3024435043334961, -0.2306225597858429, -0.23906344175338745, 0.09321198612451553, 0.46369266510009766, -0.4392589330673218, -0.12042458355426788, -0.5352840423583984, 0.1501375436782837, -0.17864051461219788, 0.1412113904953003, 0.14266981184482574, -0.214069664478302, 0.09749043732881546, -0.24344761669635773, -0.13507895171642303, -0.049247533082962036, 0.0343332439661026, 0.06918327510356903, 0.46672114729881287, -0.053497109562158585, -0.07931865006685257, 0.4351970851421356, 0.2700483798980713, 0.3771907091140747, -0.11401644349098206, -0.039660196751356125, 0.23652541637420654, -0.2775552272796631, -0.37586677074432373, 0.054794371128082275, -0.04444069415330887, 0.2578231692314148, 0.3978915810585022, 0.23687461018562317, -0.03673534095287323, 0.21197961270809174, 0.04824068769812584, 0.21957139670848846, 0.21807868778705597, 0.06020253896713257, -0.06900034099817276, -0.02021881937980652, 0.29575875401496887, 0.05827898904681206, 0.10216186195611954, 0.01877310499548912, 0.04790900647640228, -0.08555510640144348, -0.005402199923992157, -0.171949565410614, 0.11955486238002777, 0.17540179193019867, -0.27787864208221436, 0.06812670081853867, -0.32530659437179565, 0.12774810194969177, 0.17958897352218628, -0.23758265376091003, -0.050011731684207916, -0.28124040365219116, -0.142203688621521, 0.08244670927524567, -0.17705823481082916, -0.13535934686660767, 0.08417484164237976, -0.4751299023628235, -0.026147423312067986, 0.29267239570617676, 0.09196661412715912, 0.30991801619529724, -0.2368273138999939, -0.058692529797554016, 0.05024935305118561, 0.1726786494255066, 0.030730821192264557, -0.047237612307071686, -0.1161419153213501, 0.18819047510623932, -0.06053854525089264, -0.06846415996551514, -0.46176815032958984, -0.27609094977378845, 0.08151469379663467, -0.2719374895095825, -0.521081268787384, -0.0230251532047987, 0.21363143622875214, -0.37623661756515503, -0.2539769113063812, -0.05721210688352585, 0.2893286347389221, -0.05590858310461044, -0.2547239065170288, 0.08935386687517166, 0.3964957594871521, -0.1351325660943985, -0.1728437840938568, -0.0477248877286911, 0.4912108778953552, -0.09845542162656784, -0.2727090120315552, -0.4242716133594513, -0.28503674268722534, 0.032902516424655914, -0.03310791030526161, -0.18452779948711395, 0.3555769622325897, -0.330097496509552, 0.27846604585647583, 0.7383357286453247, -0.40872400999069214, -0.4183206856250763, 0.3614344596862793, -0.32175272703170776, 0.005170350894331932, 0.32812774181365967, 0.031551506370306015, 0.4757479429244995, -0.3566831648349762, -0.04197827726602554, 0.5143287777900696, -0.22135195136070251, 0.17420698702335358, -0.12039974331855774, -0.469465970993042, 0.226247176527977, 0.1923615038394928, 0.04641087353229523, 0.06798164546489716, 0.2526359558105469, 0.16106511652469635, 0.24646809697151184, 0.029043352231383324, 0.05853615701198578, -0.09022492915391922, -0.11761970818042755, -0.0950033962726593, -0.17649401724338531, -0.1548689901828766, -0.39101335406303406, 0.17041215300559998, -0.5006709098815918, 0.3141595721244812, 0.25148820877075195, -0.07548876851797104, -0.34562379121780396, -0.24942852556705475, -0.10477091372013092, -0.27572205662727356, 0.1791415959596634, -0.052186399698257446, 0.13615256547927856, -0.17426131665706635, -0.28615477681159973, 0.278033971786499, -0.04825199395418167, 0.14394904673099518, -0.005937360227108002, -0.18666499853134155, -0.21988974511623383, 0.05104674771428108, 0.02971498668193817, 0.1848914921283722, 0.04745277017354965, -0.01106517668813467, -0.016950108110904694, 0.37941789627075195, -0.31887075304985046, 0.1656091809272766, 0.31169217824935913, -0.14548121392726898, 0.2053557187318802, 0.07478907704353333, 0.20444482564926147, 0.0881601870059967, 0.09462109953165054, -0.37281206250190735, -0.34859001636505127, -0.10108959674835205, -0.01923779398202896, 0.11384321004152298, 0.08189292252063751, 0.02799939550459385, 0.226150780916214, -0.15449659526348114, -0.0960085391998291, 0.07147535681724548, 0.09875588119029999, 0.21639996767044067, 0.2614605128765106, 0.1385200172662735, 0.277374804019928, 0.2719186842441559, 0.35228079557418823, -0.17217040061950684, 0.06699038296937943, 0.23165032267570496, 0.033767636865377426, -0.36062076687812805, 0.02712094411253929, 0.5212231874465942, 0.5241909623146057, 0.3284350335597992, 0.24652811884880066, 0.2764430046081543, 0.2655254602432251, -0.057787515223026276, 0.40219730138778687, 0.00488174706697464, 0.13212652504444122, 0.1638534814119339, 0.016552116721868515, -0.15286630392074585, -0.11820084601640701, -0.16563795506954193, 0.1953900158405304, 0.2968890368938446, -0.17019179463386536, -0.1042066141963005, -0.16987335681915283, -0.5679739117622375, 0.024099811911582947, 0.11856311559677124, -0.28931260108947754, -0.23106388747692108, -0.062105342745780945, 0.09599407017230988, 0.15574997663497925, 0.17444157600402832, -0.14936158061027527, 0.4233303666114807, -0.32353562116622925, -0.08945165574550629, -0.02720380201935768, -0.15110762417316437, -0.2808130383491516, 0.09220905601978302, 0.38268786668777466, -0.3059902787208557, 0.242037832736969, -0.08911412954330444, 0.11569008231163025, -0.13646787405014038, -0.19395038485527039, 0.3192908763885498, 0.12269185483455658, 0.046381451189517975, 0.43749305605888367, -0.11414462327957153, -0.17060576379299164, 0.10162853449583054, -0.12634682655334473, -0.11014309525489807, -0.08373833447694778, -0.17099301517009735, 0.07530220597982407, 0.1958998590707779, -0.2857050895690918, -0.29594528675079346, -0.6724371314048767, -0.38409480452537537, 0.07059083133935928, 0.1453591138124466, 0.4266849756240845, 0.05424370989203453, -0.1288016140460968, 0.3170560300350189, -0.12565311789512634, -0.05229441821575165, -0.17626918852329254, -0.47205445170402527, 0.34194162487983704, -0.21843113005161285, -0.12245678901672363, 0.07583926618099213, -0.0516754649579525, 0.08205103874206543, -0.2060311734676361, -0.2788591682910919, -0.012866946868598461, 0.2810819745063782, -0.05197213590145111, 0.05199252441525459, 0.22679676115512848, 0.4870733618736267, 0.05534358695149422, -0.009916575625538826, -0.01181129738688469, -0.2896355986595154, -0.002793245017528534, 0.1664186418056488, 0.45663395524024963, 0.03579927980899811, 0.17331504821777344, 0.3156232237815857, 0.5785862803459167, -0.07781395316123962, 0.29509225487709045, 0.2703585624694824, -0.13286355137825012, 0.289025217294693, 0.1866181641817093, -0.2750000059604645, 0.3275800347328186, -0.03141634166240692, -0.17772811651229858, 0.2563076317310333, 0.1356998085975647, -0.421993225812912, -0.33641231060028076, -0.000483708456158638, -0.10424620658159256, -0.22504885494709015, 0.016060691326856613, 0.15972793102264404, -0.2577003240585327, 0.11873795092105865, 0.07079046219587326, -0.2838574945926666, -0.16620701551437378, 0.10248580574989319, 0.21160128712654114, 0.028379902243614197, 0.16370278596878052, -0.4629727602005005, 0.39708101749420166, -0.48357170820236206, -0.062163591384887695, 0.03851263225078583, -0.1713365763425827, 0.25330957770347595, -0.032562319189310074, -0.011978909373283386, -0.18174545466899872, 0.47690343856811523, 0.03758123517036438, 0.012619338929653168, 0.12408240139484406, 0.22883367538452148, -0.16237124800682068, -0.10233303904533386, 0.0879945456981659, 0.3356798589229584, 0.31689390540122986, -0.18611058592796326, -0.42221173644065857, -0.20521239936351776, 0.14634160697460175, -0.04974617436528206, -0.1390887349843979, -0.3672216832637787, -0.16111421585083008, -0.25511887669563293, -0.251995712518692, -0.013571880757808685, -0.1543041467666626, 0.01309078186750412, 0.1819358766078949, 0.07648685574531555, 0.15152277052402496, 0.19023138284683228, 0.13024182617664337, 0.010257350280880928, 0.02698192559182644, 0.1150527372956276, -0.07820519804954529, -0.029216915369033813, 0.16942226886749268, -0.5292108058929443, 0.2996434271335602, -0.18715329468250275, 0.056216318160295486, 0.19264277815818787, -0.12704253196716309, 0.18075060844421387, 0.28213638067245483, 0.19829094409942627, 0.011360421776771545, 0.03163803741335869, -0.08033110201358795, 0.018627289682626724, -0.09497498720884323, 0.010702529922127724, -0.2537299692630768, 0.07240428030490875, -0.44680798053741455, 0.509136974811554, 0.11458167433738708, -0.1201825886964798, 0.3109922707080841, -0.17054586112499237, -0.2612341642379761, -0.2148149311542511, 0.027484625577926636, 1.0534353256225586, -0.08784125745296478, 0.23576954007148743, 0.46751338243484497, -0.24701900780200958, 0.7064648866653442, -0.46762698888778687, 0.13963493704795837, -0.32820016145706177, 0.16827832162380219, -0.021618546918034554, -0.17328399419784546, -0.019671767950057983, 0.12265399843454361, -0.19032299518585205, 0.4085317850112915, 0.11391225457191467, 0.36596423387527466, 0.3335147500038147, 0.7398675680160522, -0.2078476995229721, -0.5773975849151611, -0.22920118272304535, 0.18314123153686523, -0.36203306913375854, -0.017157193273305893, -0.21443113684654236, -0.2610960602760315, -0.054247766733169556, 0.1668708622455597, 0.002424590289592743, 0.1590581238269806, -0.09304612129926682, 0.10438539832830429, -0.12661010026931763, -0.020600885152816772, 0.05884392186999321, 0.14029456675052643, -0.25616371631622314, -0.22651900351047516, -0.18671207129955292, 0.144043430685997, -0.2215009331703186, 0.2803439795970917, 0.31903934478759766, 0.07129555195569992, 0.28110915422439575, -0.2438632845878601, -0.15927623212337494, 0.16419360041618347, -0.023603782057762146, -0.545788049697876, -0.04001883417367935, 0.047704558819532394, 0.41002172231674194, -0.0891350656747818, -0.3607165217399597, 0.11855226010084152, -0.2511327862739563, -0.02488693967461586, 0.13779526948928833, 0.11390937864780426, -0.24650681018829346, 0.40125009417533875, -0.027834821492433548, 0.0019030869007110596, 0.0173628106713295, 0.4135286808013916, -0.14188870787620544, -0.3665730953216553, 0.12117597460746765, -0.08648213744163513, -0.1786956638097763, -0.19067272543907166, 0.005628302693367004, -0.5105299949645996, -0.01486719399690628, -0.0603148527443409, -0.23035085201263428, -0.28359296917915344, 0.005146944895386696, -0.30180788040161133, 0.373760461807251, 0.29353442788124084, 0.11626505851745605, -0.17517125606536865, -0.5958786606788635, 0.10587155818939209, -0.047649163752794266, -0.07934418320655823, 0.10982450097799301, -0.030303437262773514, 0.2245255559682846, -0.10772767663002014, -0.3527659773826599, 0.10882867127656937, 0.003140503540635109, -0.10872608423233032, 0.15004104375839233, -0.07172403484582901, -0.14422009885311127, -0.21209746599197388, 0.03105154074728489, 0.23672392964363098, -0.4005272090435028, -0.23482704162597656, -0.1658364236354828, 0.1666291207075119, 0.14611434936523438, 0.05837033689022064, 0.044457655400037766, -0.1161576509475708, -0.2547003924846649, -0.013693461194634438, -0.24554824829101562, -0.0026902370154857635, 0.06650852411985397, 0.07558606564998627, 0.055363669991493225, -0.17666301131248474, -0.2828733026981354, 0.07132022827863693, 0.1744992733001709, 0.1575811207294464, -0.06388738751411438, 0.24603314697742462, -0.10119171440601349, -0.017583481967449188, -0.1589890420436859, 0.1439851075410843, 0.16939452290534973, 0.36743125319480896, 0.4418533742427826, -0.19482679665088654, 0.10049039125442505, 0.19186849892139435, 0.1119445413351059, 0.2912919521331787, -0.24025395512580872, -0.1362924724817276, 0.34778544306755066, 0.15575306117534637, -0.20022302865982056, 0.05735517293214798, 0.336874395608902, 0.14788179099559784, -0.04742984101176262, 0.19930684566497803, 0.12178860604763031, 0.022423356771469116, -0.07105208933353424, 0.13285458087921143, 0.6494261026382446, 0.029912002384662628, -0.08359389007091522, 0.15206480026245117, -0.20741556584835052, 0.002045869827270508, 0.39865779876708984, 0.06858750432729721, 0.20663249492645264, 0.12311072647571564, -0.2763046324253082, 0.33190712332725525, 0.06045125424861908, 0.23898738622665405, 0.03194764256477356, -0.142397940158844, -0.18452921509742737, 0.2897265553474426, 0.20953407883644104, 0.1544869840145111, 0.06693937629461288, 0.5875774025917053, -0.09832654893398285, -0.24203594028949738, 0.14508529007434845, 0.2632886469364166, 0.09411480277776718, 0.18427252769470215, -0.3406781852245331, -0.08341563493013382, -0.11829744279384613, 0.1024240255355835, -0.06752792000770569, -0.07295462489128113, 0.2346038520336151, 0.09634953737258911, -0.11080388724803925, -0.13422685861587524, -0.09440112859010696, 0.04661491885781288, 0.1826513111591339, -0.32104554772377014, -0.030749062076210976, 0.030950970947742462, -0.10922548174858093, -0.05133695527911186, 0.31637006998062134, 0.0983496606349945, 0.3467681109905243, -0.16106009483337402, -0.21499978005886078, -0.048806238919496536, 0.08569808304309845, -0.1997513622045517, -0.01678996905684471, 0.3294374942779541, -0.3558708727359772, 0.02362988144159317, 0.08568129688501358, -0.14647512137889862, -0.027396980673074722, 0.47306028008461, -0.41584187746047974, -0.11244811117649078, 0.45078346133232117, 0.5292448997497559, -0.07820325344800949, 0.17273250222206116, 0.1736385077238083, -0.4632595181465149, 0.17964445054531097, 0.3577219843864441, 0.17437893152236938, 0.24842926859855652, -0.21369034051895142, 0.08732491731643677, 0.3234342634677887, 0.35011452436447144, -0.08824340999126434, -0.14914962649345398, -0.13696016371250153, 0.08838479220867157, -0.9068254828453064, -0.028312109410762787, 0.18527927994728088, -0.29430443048477173, -0.051153987646102905, 0.24400858581066132, -0.026733584702014923, 0.3347806930541992, 0.06145014986395836, 0.210776686668396, 0.351271390914917, -0.13257081806659698, -0.386123389005661, -0.03610804304480553, -0.012595273554325104, 0.38937923312187195, 0.08367970585823059, -0.2872667610645294, 0.07830501347780228, -0.24798329174518585, -0.04969031736254692, -0.11135075986385345, -0.03869236633181572, 0.2906559705734253, 0.12243365496397018, 0.3640821576118469, -0.10677732527256012, 0.10519037395715714, -0.060605891048908234, -0.021382369101047516, -0.22789111733436584, 0.28799062967300415, -0.1569613665342331, -0.15528345108032227, 0.10406537353992462, -0.07312518358230591, -0.2692704200744629, 0.3504897952079773, -0.5761011838912964, 0.3604808747768402, 0.03061714768409729, 0.17686182260513306, -0.4166545569896698, -0.08323884755373001, 0.0590175986289978, 0.2925695776939392, 0.047630615532398224, 0.38959255814552307, -0.2958269715309143, 0.4023916721343994, -0.3061434328556061, -0.02812083065509796, 0.4457760751247406, -0.037550825625658035, -0.1265644133090973, -0.0012656943872570992, 0.2683487832546234, 0.3791053593158722, -0.01965734176337719, -0.3378901481628418, -0.09586667269468307, 0.18875163793563843, -0.13065603375434875, 0.08840195834636688, 0.2764192819595337, -0.33101585507392883, 0.07705932855606079, -0.08081115782260895, -0.13666091859340668, 0.008340198546648026, -0.1138102114200592, -0.17366079986095428, -0.19830727577209473 ]
https://github.com/huggingface/datasets/pull/16
create our own DownloadManager
Actually two additional things here @lhoestq (I merged too fast sorry, let's make a new PR for additional developments): - I think we can remove some dependencies now (e.g. `promises`) in setup.py, can you have a look? - also, I think we can remove the boto3 dependency like here: https://github.com/huggingface/transformers/pull/3968
I tried to create our own - and way simpler - download manager, by replacing all the complicated stuff with our own `cached_path` solution. With this implementation, I tried `dataset = nlp.load('squad')` and it seems to work fine. For the implementation, what I did exactly: - I copied the old download manager - I removed all the dependences to the old `download` files - I replaced all the download + extract calls by calls to `cached_path` - I removed unused parameters (extract_dir, compute_stats) (maybe compute_stats could be re-added later if we want to compute stats...) - I left some functions unimplemented for now. We will probably have to implement them because they are used by some datasets scripts (download_kaggle_data, iter_archive) or because we may need them at some point (download_checksums, _record_sizes_checksums) Let me know if you think that this is going the right direction or if you have remarks. Note: I didn't write any test yet as I wanted to read your remarks first
50
text: create our own DownloadManager I tried to create our own - and way simpler - download manager, by replacing all the complicated stuff with our own `cached_path` solution. With this implementation, I tried `dataset = nlp.load('squad')` and it seems to work fine. For the implementation, what I did exactly: - I copied the old download manager - I removed all the dependences to the old `download` files - I replaced all the download + extract calls by calls to `cached_path` - I removed unused parameters (extract_dir, compute_stats) (maybe compute_stats could be re-added later if we want to compute stats...) - I left some functions unimplemented for now. We will probably have to implement them because they are used by some datasets scripts (download_kaggle_data, iter_archive) or because we may need them at some point (download_checksums, _record_sizes_checksums) Let me know if you think that this is going the right direction or if you have remarks. Note: I didn't write any test yet as I wanted to read your remarks first Actually two additional things here @lhoestq (I merged too fast sorry, let's make a new PR for additional developments): - I think we can remove some dependencies now (e.g. `promises`) in setup.py, can you have a look? - also, I think we can remove the boto3 dependency like here: https://github.com/huggingface/transformers/pull/3968
[ 0.08034871518611908, 0.06909148395061493, 0.032871559262275696, 0.10206399857997894, 0.20716561377048492, -0.29143816232681274, 0.33024436235427856, 0.15237434208393097, 0.13863340020179749, -0.062481075525283813, -0.5217695236206055, 0.44618701934814453, -0.3430955410003662, 0.04443515092134476, 0.3355931043624878, -0.12907344102859497, -0.21984830498695374, 0.27777719497680664, -0.17858800292015076, 0.12640145421028137, 0.10327684879302979, 0.13197378814220428, 0.10563631355762482, 0.13066640496253967, -0.0485721081495285, 0.08059492707252502, -0.33192333579063416, 0.21594712138175964, -0.5227138996124268, -0.6406493186950684, 0.26720932126045227, 0.37947893142700195, 0.3132043778896332, 0.5205631256103516, -0.00011416353663662449, -0.15778422355651855, 0.11680600047111511, -0.17110119760036469, -0.28263071179389954, -0.14401711523532867, 0.002294793725013733, -0.5038759708404541, 0.19443486630916595, -0.4585001468658447, 0.161533921957016, 0.31070229411125183, 0.15987330675125122, 0.17725582420825958, 0.49932897090911865, 0.17350928485393524, 0.16707128286361694, 0.33618587255477905, -0.014424897730350494, -0.06143086031079292, 0.19052937626838684, 0.04353917017579079, -0.19294551014900208, 0.28426942229270935, 0.28828978538513184, -0.05849369615316391, -0.39932504296302795, -0.021518530324101448, -0.17125342786312103, 0.04925483465194702, 0.4188646674156189, 0.07533559948205948, 0.23465946316719055, -0.3006483316421509, -0.24293705821037292, 0.10902683436870575, 0.3376290202140808, -0.40473613142967224, -0.3087061941623688, -0.5620929598808289, 0.153377503156662, -0.20581823587417603, 0.09096906334161758, 0.04016191512346268, -0.18350660800933838, 0.08566071093082428, -0.3007064759731293, -0.16251027584075928, -0.11041893810033798, 0.04911739006638527, -0.004798635840415955, 0.5665520429611206, -0.0766199454665184, -0.0687788799405098, 0.46714144945144653, 0.24561619758605957, 0.33510109782218933, -0.04939524829387665, -0.032426875084638596, 0.2720901072025299, -0.3635910749435425, -0.428000271320343, 0.10487747192382812, -0.08484616130590439, 0.21158254146575928, 0.41727137565612793, 0.008152486756443977, 0.03190239518880844, 0.11187437921762466, -0.11386431008577347, 0.2505757808685303, 0.32120054960250854, -0.10232724994421005, 0.08815420418977737, 0.008980624377727509, 0.276787132024765, 0.08909016847610474, 0.13902927935123444, -0.06587790697813034, 0.11260397732257843, -0.1138201355934143, -0.014709461480379105, -0.03112899139523506, 0.1343456655740738, 0.25803694128990173, -0.302746057510376, 0.07761949300765991, -0.23239648342132568, 0.16059090197086334, 0.26558154821395874, -0.36057940125465393, -0.06628324091434479, -0.23197054862976074, -0.05788550525903702, -0.0382077619433403, -0.046169497072696686, -0.1069183424115181, 0.005105506628751755, -0.37841376662254333, -0.03678419440984726, 0.2794434130191803, 0.03545568883419037, 0.3767443895339966, -0.21223759651184082, 0.05213844031095505, 0.06722912192344666, 0.15990623831748962, 0.008086811751127243, -0.1434880495071411, -0.03297143056988716, 0.03139205649495125, -0.02235698327422142, 0.007772129029035568, -0.35198599100112915, -0.2417255938053131, -0.0735015794634819, -0.11395033448934555, -0.5467510223388672, 0.004903588443994522, 0.13612525165081024, -0.5759034752845764, -0.2522752285003662, -0.18886470794677734, 0.16518312692642212, -0.062099672853946686, -0.18048250675201416, 0.036930061876773834, 0.2896904945373535, -0.17317965626716614, -0.179415762424469, 0.04533853381872177, 0.585009753704071, 0.11617569625377655, -0.4079037606716156, -0.2893601357936859, -0.31206607818603516, -0.030300818383693695, 0.02775803580880165, -0.1934989094734192, 0.40679308772087097, -0.2843133807182312, 0.08017134666442871, 0.5730599761009216, -0.4952194094657898, -0.4846339523792267, 0.3440324664115906, -0.27282020449638367, 0.07789140939712524, 0.2871665954589844, 0.06894001364707947, 0.4372871220111847, -0.3044147491455078, -0.09139204025268555, 0.6293835639953613, -0.20974993705749512, 0.20657403767108917, -0.07927772402763367, -0.5080987811088562, 0.15223942697048187, 0.3153376579284668, 0.16282132267951965, 0.10002189129590988, 0.03224853426218033, 0.11739126592874527, 0.12222929298877716, 0.004690520465373993, 0.05355989933013916, -0.08263994008302689, 0.03216075524687767, -0.11593610048294067, -0.12933620810508728, -0.12141305953264236, -0.4703156352043152, 0.17610859870910645, -0.6145280599594116, 0.4054931700229645, 0.05871640890836716, -0.0755036324262619, -0.3162608742713928, -0.2463151067495346, -0.19914470613002777, -0.15077634155750275, 0.12328985333442688, -0.11507369577884674, 0.21179896593093872, -0.18947188556194305, -0.3367554545402527, 0.32404544949531555, 0.17905786633491516, 0.30183354020118713, -0.02267739176750183, -0.06878247857093811, -0.1896645724773407, 0.023110436275601387, 0.04175616055727005, 0.272919237613678, 0.09587399661540985, -0.17022520303726196, -0.007263336330652237, 0.3388001322746277, -0.3631042540073395, 0.16624554991722107, 0.17743900418281555, -0.029371842741966248, 0.2860836684703827, 0.10734856128692627, 0.22707726061344147, 0.2618013918399811, 0.07290297746658325, -0.3027111291885376, -0.32336941361427307, 0.03759428858757019, -0.04443180188536644, 0.17117443680763245, 0.06746481359004974, 0.019422663375735283, 0.3045550286769867, -0.17354963719844818, -0.13206398487091064, 0.12652863562107086, 0.07861077040433884, 0.19597940146923065, 0.24162273108959198, 0.13747243583202362, 0.31473657488822937, 0.29025381803512573, 0.3796989619731903, -0.14664945006370544, 0.06290210038423538, 0.13994693756103516, 0.0624593123793602, -0.3180546760559082, -0.12059710919857025, 0.4662218987941742, 0.5644472241401672, 0.1938541680574417, 0.036280252039432526, 0.3137034475803375, 0.3086233139038086, -0.008228332735598087, 0.34768104553222656, 0.15311869978904724, 0.17530210316181183, 0.11949782073497772, 0.00480360072106123, -0.11953138560056686, -0.057862669229507446, -0.22601811587810516, 0.21761837601661682, 0.34497079253196716, -0.14356106519699097, -0.046230390667915344, -0.0771971270442009, -0.5274704098701477, -0.03696773946285248, 0.11512479186058044, -0.430267333984375, -0.18354271352291107, -0.03337453305721283, 0.1310388594865799, 0.17394064366817474, 0.30590420961380005, 0.019072305411100388, 0.3755699396133423, -0.24882324039936066, -0.16122297942638397, -0.03968419134616852, -0.18232011795043945, -0.16413217782974243, 0.03964817896485329, 0.28391483426094055, -0.3574940264225006, 0.1601027548313141, -0.09925161302089691, 0.12035669386386871, -0.08526818454265594, -0.19656716287136078, 0.3148760497570038, 0.07034115493297577, 0.02609105594456196, 0.4122011363506317, -0.06401751935482025, -0.08324195444583893, 0.11111510545015335, -0.07463409006595612, -0.1111595407128334, -0.06752118468284607, -0.07059081643819809, 0.025178588926792145, 0.1674291491508484, -0.1595500111579895, -0.25895926356315613, -0.6676099300384521, -0.4450426697731018, 0.16350571811199188, 0.17608104646205902, 0.3937646150588989, 0.21892158687114716, -0.12083069980144501, 0.3108726739883423, -0.09214359521865845, 0.002009529620409012, -0.13550323247909546, -0.40398871898651123, 0.3530485928058624, -0.14131221175193787, -0.13127808272838593, 0.007554788142442703, -0.14076516032218933, 0.10919472575187683, -0.24718008935451508, -0.24068251252174377, -0.09502865374088287, 0.13416969776153564, -0.16949962079524994, 0.019921839237213135, 0.30394247174263, 0.6328227519989014, 0.07737927883863449, 0.0534336119890213, 0.0657687708735466, -0.30684858560562134, -0.01610853523015976, 0.17354550957679749, 0.4708639979362488, -0.006465628743171692, 0.27420443296432495, 0.200483500957489, 0.7612068057060242, -0.0397961363196373, 0.22874242067337036, 0.1881507933139801, -0.09606090188026428, 0.3104822635650635, 0.13039523363113403, -0.38457202911376953, 0.21797169744968414, -0.0567236989736557, -0.08189944922924042, 0.23767918348312378, 0.12080984562635422, -0.30262646079063416, -0.39126789569854736, -0.056494176387786865, -0.0953955352306366, -0.2958921194076538, 0.04996326565742493, 0.25123244524002075, -0.1967000663280487, 0.12580811977386475, 0.14456474781036377, -0.29124915599823, -0.09133380651473999, 0.12175068259239197, 0.26893192529678345, 0.04309910163283348, 0.07455234974622726, -0.48607268929481506, 0.28188374638557434, -0.4323171377182007, -0.060626864433288574, 0.008918593637645245, -0.21126720309257507, 0.35357820987701416, -0.01810956373810768, -0.025608614087104797, -0.18433444201946259, 0.5215333104133606, 0.0315004363656044, 0.006055258214473724, 0.13634774088859558, 0.0845479816198349, -0.2648890018463135, -0.16658057272434235, 0.004626650363206863, 0.3865965008735657, 0.36465251445770264, 0.021045111119747162, -0.5085314512252808, -0.3365768492221832, 0.23890933394432068, -0.00876981858164072, -0.24054835736751556, -0.38647764921188354, -0.267547070980072, -0.2330988049507141, -0.3210669159889221, 0.05365452170372009, -0.12527111172676086, -0.09565110504627228, 0.1490679830312729, 0.13287855684757233, 0.11797031760215759, 0.14940863847732544, 0.06718342006206512, 0.05784202739596367, 0.012084159068763256, 0.16318367421627045, -0.04256308078765869, 0.07297682017087936, 0.021044522523880005, -0.6422431468963623, 0.38061609864234924, -0.08370205760002136, -0.16439524292945862, 0.17549815773963928, 0.006457843817770481, 0.11492903530597687, 0.27867671847343445, 0.227363720536232, 0.1094110757112503, 0.06614701449871063, 0.004337184131145477, 0.03324306011199951, -0.059238169342279434, 0.12370733916759491, -0.23780694603919983, 0.018238283693790436, -0.40761372447013855, 0.49359577894210815, -0.10322229564189911, -0.1210186555981636, 0.21906188130378723, -0.04342073202133179, -0.18075039982795715, 0.05994945764541626, -0.12788629531860352, 1.1434121131896973, -0.11551488935947418, 0.3404752016067505, 0.5215408802032471, -0.24406053125858307, 0.8335764408111572, -0.4285096526145935, 0.18535776436328888, -0.37668493390083313, 0.17045778036117554, 0.042325444519519806, -0.19340845942497253, -0.08206803351640701, 0.005247686058282852, -0.2784116268157959, 0.38243773579597473, 0.04746940732002258, 0.4559221565723419, 0.3230266869068146, 0.6382016539573669, -0.06330671906471252, -0.634407103061676, -0.3402637243270874, 0.1614190936088562, -0.36047595739364624, 0.18025143444538116, -0.25342434644699097, -0.2428198605775833, -0.04465411230921745, 0.10502597689628601, 0.042118921875953674, 0.24938777089118958, -0.13958533108234406, 0.1817512810230255, -0.002650998532772064, 0.14117351174354553, 0.05659204348921776, 0.06820263713598251, -0.14239126443862915, -0.0800803005695343, -0.12838605046272278, 0.155487522482872, -0.26093438267707825, 0.21130318939685822, 0.3180049955844879, 0.06739484518766403, 0.2654304802417755, -0.2018488049507141, -0.2698200047016144, 0.12660034000873566, -0.06352609395980835, -0.5233261585235596, 0.007311508059501648, -0.1124039739370346, 0.3197243809700012, -0.1966492384672165, -0.21586091816425323, 0.14159056544303894, -0.22322887182235718, -0.015808193013072014, 0.1052793562412262, 0.1748533546924591, -0.3288424015045166, 0.42879682779312134, -0.07755909860134125, -0.022648975253105164, 0.01602882333099842, 0.3839060962200165, -0.05218392610549927, -0.38415613770484924, 0.12245122343301773, -0.02876192517578602, -0.1475372016429901, -0.200606107711792, -0.04688737168908119, -0.5598769187927246, -0.18167302012443542, -0.035128042101860046, -0.15201476216316223, -0.40966445207595825, -0.05269898474216461, -0.2353183925151825, 0.2783066928386688, 0.13843795657157898, 0.04250155761837959, -0.12750975787639618, -0.6819676160812378, 0.12455950677394867, 0.03168681263923645, -0.030784379690885544, 0.10917177051305771, -0.01820085570216179, 0.19063952565193176, 0.04227146506309509, -0.3099101185798645, 0.11330883204936981, -0.1356489211320877, -0.1213371753692627, 0.20029950141906738, -0.2732648551464081, -0.011575785465538502, -0.22069959342479706, -0.02144600823521614, 0.14746695756912231, -0.4602307379245758, -0.20324984192848206, -0.29930999875068665, 0.18970735371112823, 0.17095938324928284, -0.0038939528167247772, 0.06575454026460648, -0.052401989698410034, -0.2268628180027008, -0.030002713203430176, -0.1175469309091568, 0.13863703608512878, 0.13302116096019745, 0.0622585229575634, 0.049647748470306396, -0.135032057762146, -0.38085323572158813, 0.05745049566030502, 0.21281802654266357, 0.07489845901727676, 0.1338951587677002, 0.2717573940753937, -0.14005208015441895, -0.03200461342930794, -0.13782349228858948, 0.07237783819437027, 0.24528644979000092, 0.32199403643608093, 0.4481874108314514, -0.23887445032596588, 0.07153657078742981, 0.2022217959165573, 0.08854816108942032, 0.27367281913757324, -0.14484989643096924, -0.09144939482212067, 0.2733709216117859, 0.13679465651512146, -0.2894977927207947, 0.10654863715171814, 0.3473086357116699, 0.1235017403960228, 0.006063874810934067, 0.2833694815635681, -0.012519471347332, 0.12205559015274048, 0.10655532777309418, 0.15731647610664368, 0.7565672993659973, 0.11941220611333847, -0.013565661385655403, -0.033523742109537125, -0.1810043752193451, -0.06259745359420776, 0.4440070390701294, 0.09891782701015472, 0.2071790099143982, 0.03906158357858658, -0.23570594191551208, 0.15149588882923126, -0.2134510576725006, 0.26034015417099, 0.13485103845596313, -0.06015310063958168, -0.3053441047668457, 0.26234370470046997, 0.13169454038143158, 0.11192210018634796, -0.009180180728435516, 0.5844634771347046, -0.13225406408309937, -0.25376078486442566, -0.014552732929587364, 0.26045122742652893, 0.15019801259040833, 0.09156420826911926, -0.19847580790519714, -0.05054529383778572, -0.12865804135799408, 0.10052533447742462, -0.01952260360121727, -0.1754126399755478, 0.17754888534545898, 0.1175309419631958, -0.12647707760334015, -0.08465328067541122, -0.0851505845785141, 0.08754082024097443, 0.29433339834213257, -0.284499853849411, -0.010432569310069084, 0.09559556841850281, -0.08062712848186493, -0.22741666436195374, 0.41060543060302734, 0.0629832074046135, 0.22818905115127563, -0.19142881035804749, -0.04128506779670715, 0.009583860635757446, 0.13149777054786682, -0.10467612743377686, -0.07371032983064651, 0.2550753355026245, -0.18488802015781403, -0.1014050841331482, 0.053069427609443665, -0.17079921066761017, -0.10128854215145111, 0.3813221752643585, -0.41419312357902527, -0.14559891819953918, 0.6381799578666687, 0.4254520535469055, -0.07205472141504288, 0.1159558892250061, 0.1491839587688446, -0.5620970129966736, 0.15028612315654755, 0.375218003988266, 0.21881581842899323, 0.22701188921928406, -0.17494620382785797, 0.056467898190021515, 0.30648019909858704, 0.337932825088501, -0.05188899114727974, -0.023468181490898132, -0.22917380928993225, 0.24317987263202667, -0.7378470301628113, 0.01980234682559967, 0.15507575869560242, -0.22995856404304504, 0.02099362015724182, 0.21872667968273163, 0.0005507543683052063, 0.33112090826034546, -0.005594581365585327, 0.19692334532737732, 0.41915470361709595, -0.26907676458358765, -0.42904773354530334, 0.013164427131414413, -0.09368546307086945, 0.3626194894313812, 0.18254317343235016, -0.3242672085762024, -0.006263945251703262, -0.08372392505407333, -0.05424053221940994, -0.11225804686546326, -0.06011467054486275, 0.2944757640361786, -0.09007929265499115, 0.27828261256217957, -0.11603188514709473, 0.13474753499031067, 0.0995204970240593, -0.05096437782049179, -0.22410458326339722, 0.18337534368038177, -0.2434321641921997, -0.20440518856048584, 0.1600974202156067, -0.015554527752101421, -0.26151567697525024, 0.3308435380458832, -0.634535014629364, 0.23311473429203033, 0.05702602118253708, 0.042495664209127426, -0.3990532159805298, 0.0003181304782629013, 0.038387902081012726, 0.2275756597518921, -0.02171846106648445, 0.41946348547935486, -0.32160332798957825, 0.33768656849861145, -0.32976090908050537, 0.04572368413209915, 0.4545367956161499, -0.12324562668800354, -0.10543601214885712, 0.010143650695681572, 0.2592514157295227, 0.34725168347358704, -0.042855486273765564, -0.3779125213623047, 0.04250793904066086, 0.0846782773733139, -0.0975855216383934, 0.02275402471423149, 0.30376309156417847, -0.2818646728992462, -0.035160794854164124, -0.08914467692375183, -0.018223628401756287, 0.01659260503947735, -0.10567743331193924, -0.1762448251247406, -0.09876863658428192 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
> I think I'm fine with this. > > The alternative would be to host a small subset of the dataset on the S3 together with the testing script. But I think having all (test file creation + actual tests) in one file is actually quite convenient. > > Good for me! > > One question though, will we have to create one test file for each of the 100+ datasets or could we make some automatic conversion from tfds dataset test files? I think if we go the way shown in the PR we would have to create one test file for each of the 100+ datasets. As far as I know the tfds test files all rely on the user having created a special download folder structure in `tensorflow-datasets/tensorflow_datasets/testing/test_data/fake_examples`. My hypothesis was: Becasue, we don't want to work with PRs, no `dataset_script` is going to be in the official repo, so no `dataset_script_test` can be in the repo either. Therefore we can also not have any "fake" test folder structure in the repo. **BUT:** As you mentioned @thom, we could have a fake data structure on AWS. To add a test the user has to upload multiple small test files when uploading his data set script. So for a cli this could look like: `python nlp-cli upload <data_set_script> --testfiles <relative path to test file 1> <relative path to test file 2> ...` or even easier if the user just creates the dataset folder with the script inside and the testing folder structure, then the API could look like: `python nlp-cli upload <path/to/dataset/folder>` and the dataset folder would look like ``` squad - squad.py - fake_data # this dir would have to have the exact same structure we get when downloading from the official squad data url ``` This way I think we wouldn't even need any test files at all for each dataset script. For special datasets like `c4` or `wikipedia` we could then allow to optionally upload another test script. We just assume that this is our downloaded `url` and check all functionality from there. Thinking a bit more about this solution sounds a) much less work and b) even easier for the user. A small problem I see here though: 1) What do we do when the depending on the config name the downloaded folder structure is very different? I think for each dataset config name we should have one test, which could correspond to one "fake" folder structure on AWS @thomwolf What do you think? I would actually go for this solution instead now. @mariamabarham You have written many more tfds dataset scripts and tests than I have - what do you think?
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
448
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. > I think I'm fine with this. > > The alternative would be to host a small subset of the dataset on the S3 together with the testing script. But I think having all (test file creation + actual tests) in one file is actually quite convenient. > > Good for me! > > One question though, will we have to create one test file for each of the 100+ datasets or could we make some automatic conversion from tfds dataset test files? I think if we go the way shown in the PR we would have to create one test file for each of the 100+ datasets. As far as I know the tfds test files all rely on the user having created a special download folder structure in `tensorflow-datasets/tensorflow_datasets/testing/test_data/fake_examples`. My hypothesis was: Becasue, we don't want to work with PRs, no `dataset_script` is going to be in the official repo, so no `dataset_script_test` can be in the repo either. Therefore we can also not have any "fake" test folder structure in the repo. **BUT:** As you mentioned @thom, we could have a fake data structure on AWS. To add a test the user has to upload multiple small test files when uploading his data set script. So for a cli this could look like: `python nlp-cli upload <data_set_script> --testfiles <relative path to test file 1> <relative path to test file 2> ...` or even easier if the user just creates the dataset folder with the script inside and the testing folder structure, then the API could look like: `python nlp-cli upload <path/to/dataset/folder>` and the dataset folder would look like ``` squad - squad.py - fake_data # this dir would have to have the exact same structure we get when downloading from the official squad data url ``` This way I think we wouldn't even need any test files at all for each dataset script. For special datasets like `c4` or `wikipedia` we could then allow to optionally upload another test script. We just assume that this is our downloaded `url` and check all functionality from there. Thinking a bit more about this solution sounds a) much less work and b) even easier for the user. A small problem I see here though: 1) What do we do when the depending on the config name the downloaded folder structure is very different? I think for each dataset config name we should have one test, which could correspond to one "fake" folder structure on AWS @thomwolf What do you think? I would actually go for this solution instead now. @mariamabarham You have written many more tfds dataset scripts and tests than I have - what do you think?
[ -0.1207851767539978, -0.14250241219997406, -0.049955882132053375, 0.2596330940723419, -0.007572919130325317, -0.08109476417303085, 0.5028433203697205, 0.27481019496917725, -0.030996764078736305, 0.08980639278888702, 0.04753541946411133, 0.015190954320132732, -0.27921947836875916, 0.4545534551143646, 0.28662556409835815, -0.009160127490758896, 0.09017650783061981, 0.22324636578559875, -0.1512172371149063, 0.052526794373989105, -0.10565173625946045, -0.0500079020857811, 0.12937484681606293, -0.22523270547389984, 0.03936907276511192, 0.11551843583583832, -0.44820651412010193, -0.014795012772083282, -0.1366014927625656, -0.36485806107521057, 0.20603695511817932, 0.17793035507202148, 0.3569023609161377, 0.6817052960395813, -0.00012032474478473887, 0.06496210396289825, 0.21414297819137573, -0.10131629556417465, -0.3255772292613983, -0.008040934801101685, -0.21101081371307373, 0.025608351454138756, -0.03267312049865723, -0.32058629393577576, -0.04742255061864853, -0.02212679758667946, -0.00359313003718853, -0.12283781915903091, 0.4103817939758301, 0.3356991708278656, 0.053341060876846313, 0.344030499458313, -0.4859501123428345, 0.2308848649263382, 0.20090658962726593, 0.43338584899902344, -0.054934561252593994, 0.3549209237098694, 0.31332123279571533, -0.06587757915258408, 0.1639118194580078, 0.041215166449546814, 0.12483173608779907, 0.21889115869998932, 0.5125436186790466, 0.03835785761475563, 0.14655114710330963, -0.42085832357406616, -0.38806965947151184, 0.40576210618019104, 0.6348400712013245, -0.35773369669914246, -0.47805315256118774, -0.24170464277267456, -0.07415811717510223, -0.10314800590276718, -0.16862452030181885, 0.04358856379985809, -0.2256820797920227, 0.03344057500362396, -0.3173026740550995, -0.2971317172050476, -0.24056990444660187, 0.08791662752628326, -0.38950222730636597, 0.21116304397583008, -0.0011264923959970474, 0.03286213427782059, -0.18261617422103882, 0.027886509895324707, 0.3665161430835724, -0.4891725778579712, 0.012182824313640594, 0.12914788722991943, -0.09939926862716675, -0.518794059753418, -0.1526367962360382, -0.22004929184913635, 0.24735340476036072, 0.30442696809768677, 0.007464754395186901, -0.04984322935342789, 0.10476948320865631, -0.010115154087543488, 0.1614266335964203, 0.22829143702983856, 0.05581694096326828, 0.3296887278556824, 0.2748922109603882, 0.19879446923732758, 0.040491733700037, 0.10951177030801773, -0.19035333395004272, -0.03928561136126518, -0.25797244906425476, -0.06875728070735931, 0.17372971773147583, -0.05721626803278923, 0.036551788449287415, -0.0993327647447586, -0.04677748680114746, -0.08307771384716034, -0.0707857683300972, 0.07600986212491989, 0.05790260434150696, 0.15861093997955322, 0.2318560630083084, 0.19084422290325165, -0.10205484181642532, 0.03498242422938347, -0.03596585988998413, 0.06872567534446716, -0.1369583159685135, 0.1481437087059021, 0.05709918215870857, 0.13198639452457428, 0.18042348325252533, -0.12571769952774048, 0.13732244074344635, -0.0026954486966133118, 0.44479086995124817, 0.05930545553565025, 0.2193593978881836, 0.2120223492383957, -0.014568839222192764, 0.03513035923242569, -0.05638488009572029, -0.07604081183671951, -0.2523459196090698, 0.2680613100528717, -0.12010038644075394, -0.42958542704582214, 0.0688425675034523, 0.09567602723836899, -0.45686906576156616, -0.1894952356815338, -0.5386393070220947, 0.0923418402671814, 0.010247498750686646, -0.25816959142684937, 0.1642656922340393, -0.2782832384109497, -0.15528684854507446, 0.07352730631828308, 0.018485495820641518, 0.6512139439582825, -0.32594314217567444, 0.10466039180755615, -0.02538624405860901, -0.11902445554733276, -0.02499229460954666, 0.12708228826522827, -0.33238163590431213, 0.27141937613487244, -0.325987309217453, 0.08339250087738037, 0.42804795503616333, -0.5658370852470398, 0.18404603004455566, 0.584856390953064, -0.04529653489589691, 0.029718203470110893, 0.2538411021232605, -0.22741122543811798, 0.008348178118467331, -0.3339335024356842, -0.3196893036365509, -0.05030471831560135, -0.14633594453334808, 0.26283931732177734, -0.13470695912837982, -0.12617775797843933, 0.06326782703399658, 0.026946164667606354, 0.09951847791671753, 0.04518740996718407, -0.22405138611793518, 0.11582059413194656, 0.2948237359523773, -0.35003021359443665, -0.0259509589523077, -0.019966498017311096, 0.3168991804122925, -0.06622901558876038, 0.023034822195768356, 0.03866494446992874, -0.5699149966239929, 0.3304845690727234, 0.0642893835902214, 0.24431104958057404, 0.1927177608013153, -0.24955560266971588, -0.11550141125917435, -0.1961936503648758, -0.005880367010831833, -0.11948242783546448, 0.008602775633335114, 0.1705598384141922, 0.010783344507217407, -0.5401690006256104, -0.40767645835876465, -0.23079341650009155, -0.33787354826927185, 0.0615256205201149, -0.17270302772521973, 0.201112762093544, 0.03401939198374748, 0.2150355875492096, 0.08246425539255142, -0.11289828270673752, -0.216796875, -0.5801353454589844, 0.03227393701672554, 0.27426227927207947, 0.34151753783226013, 0.23491263389587402, 0.13776051998138428, 0.6045876741409302, 0.26158246397972107, 0.05652659013867378, -0.04493178427219391, -0.10952964425086975, -0.01236862875521183, 0.005515329539775848, -0.5160582661628723, 0.2803306579589844, 0.07599785178899765, 0.20459195971488953, 0.04116583615541458, -0.20675787329673767, 0.10309337079524994, -0.21131373941898346, -0.3260081708431244, 0.00570891797542572, -0.07623444497585297, 0.3474993407726288, 0.15282566845417023, 0.41918450593948364, -0.16885864734649658, 0.11651217937469482, 0.2895134389400482, -0.4651358723640442, -0.1919083595275879, 0.04731489345431328, 0.01271723210811615, -0.20453834533691406, 0.21962332725524902, 0.673227071762085, 0.8179993033409119, -0.013455295003950596, 0.37222719192504883, 0.074619822204113, 0.14545302093029022, -0.2193264663219452, 0.3083675801753998, 0.09985874593257904, 0.2565349340438843, 0.2082400918006897, -0.0991763323545456, -0.07032217085361481, -0.11113518476486206, -0.33264654874801636, 0.42017674446105957, 0.21449041366577148, -0.47862178087234497, 0.1454085409641266, 0.027649590745568275, -0.30477792024612427, -0.28864917159080505, 0.3096381723880768, 0.12549862265586853, -0.02709481120109558, 0.07701391726732254, -0.15583573281764984, -0.21932144463062286, -0.07391165941953659, 0.03711780533194542, 0.5828580856323242, -0.20388831198215485, -0.3113812506198883, -0.3081512153148651, -0.013660991564393044, -0.37448590993881226, 0.04333999380469322, 0.5292748212814331, 0.09970878809690475, 0.2732546031475067, -0.3315756916999817, -0.2501019835472107, -0.46502888202667236, -0.31107425689697266, 0.3231242299079895, 0.034643009305000305, 0.18623676896095276, 0.3054828941822052, 0.16501028835773468, 0.16617995500564575, -0.0042208218947052956, -0.18120050430297852, -0.10302682965993881, -0.36082103848457336, -0.061942316591739655, -0.09003761410713196, -0.08207249641418457, -0.1828596293926239, -0.47264620661735535, -0.07133791595697403, -0.13063566386699677, -0.06467323005199432, 0.21102769672870636, 0.19464576244354248, -0.02630646899342537, 0.05733640119433403, 0.02372431382536888, -0.04496224224567413, -0.0910760760307312, 0.08790595829486847, -0.43699952960014343, -0.0683511346578598, -0.24351465702056885, -0.23727189004421234, -0.18193219602108002, -0.1895560622215271, 0.3674810826778412, 0.16240562498569489, -0.49276643991470337, -0.6009402275085449, 0.04472409188747406, 0.08784456551074982, -0.1822229027748108, -0.007785985246300697, 0.18665359914302826, -0.14406153559684753, 0.0776372030377388, -0.09611567854881287, 0.33083575963974, -0.02659735083580017, 0.11453106999397278, 0.12831872701644897, 0.03716367110610008, 0.20559704303741455, 0.10047125816345215, 0.7033106088638306, 0.5254374742507935, -0.35903820395469666, -0.14150592684745789, -0.18726234138011932, 0.2554674744606018, 0.10905687510967255, 0.133782297372818, 0.21478164196014404, 0.11579257994890213, -0.18386481702327728, 0.20505023002624512, -0.11910942941904068, -0.05322200804948807, -0.024654412642121315, 0.3559461534023285, -0.05468197539448738, -0.30998530983924866, 0.3130508065223694, -0.46821534633636475, 0.2770395278930664, -0.028778573498129845, -0.2630775570869446, -0.09894078969955444, 0.09915648400783539, 0.13750150799751282, 0.26461368799209595, 0.28186848759651184, 0.011661337688565254, -0.4369922876358032, -0.04308240860700607, -0.2160099446773529, 0.1549653261899948, 0.1353721022605896, 0.22358587384223938, 0.17243044078350067, 0.08210010081529617, -0.06731581687927246, -0.12833333015441895, 0.591332733631134, -0.42085587978363037, -0.10479193925857544, 0.09307242929935455, -0.07434247434139252, -0.21045830845832825, -0.015188764780759811, -0.45949363708496094, -0.14651863276958466, 0.16349603235721588, 0.541495680809021, -0.24831286072731018, -0.4362380802631378, -0.0011200327426195145, 0.19250714778900146, -0.0873248279094696, -0.18881665170192719, 0.0776805430650711, -0.3105422854423523, -0.18668875098228455, -0.08770924061536789, 0.30676594376564026, -0.29955944418907166, -0.3241465985774994, -0.12733545899391174, 0.03056478500366211, 0.16701164841651917, 0.16354912519454956, 0.21010887622833252, -0.10359980911016464, 0.29231423139572144, 0.10433518886566162, -0.11988203227519989, -0.2634844183921814, 0.3783363103866577, 0.39965927600860596, -0.04711205139756203, -0.15309661626815796, 0.19696876406669617, 0.10962030291557312, 0.3827856481075287, 0.2859725058078766, -0.0045909094624221325, -0.4085671007633209, -0.2320961058139801, 0.040889594703912735, -0.19873876869678497, 0.21114787459373474, 0.21002508699893951, 0.0704662948846817, 0.12575310468673706, -0.47800207138061523, 0.4830491840839386, 0.07067245244979858, -0.044857967644929886, 0.0691366195678711, 0.044080689549446106, -0.33576616644859314, 0.4464130401611328, 0.2820168435573578, 0.846070408821106, -0.10227914154529572, 0.4248448610305786, 0.4578184187412262, 0.15276645123958588, 0.7855700850486755, -0.5487357378005981, -0.16063807904720306, -0.28956398367881775, -0.14384910464286804, -0.0550626777112484, -0.24456927180290222, 0.11101308465003967, 0.3027315139770508, -0.14276765286922455, 0.1973397582769394, 0.19708140194416046, -0.0013185404241085052, 0.31312015652656555, 0.6415877342224121, -0.3334638774394989, -0.06877835094928741, 0.06958675384521484, 0.03748558461666107, 0.11612173914909363, 0.15568901598453522, -0.163857102394104, -0.06477329134941101, -0.13926811516284943, 0.0977797657251358, -0.1428772509098053, -0.044998474419116974, -0.17111597955226898, -0.09455525875091553, 0.007737316191196442, -0.07251521199941635, 0.1948401927947998, 0.5363099575042725, 0.21598981320858002, 0.12554700672626495, -0.20428915321826935, -0.00402846559882164, 0.03559064120054245, 0.22688153386116028, 0.14336997270584106, -0.20498524606227875, 0.5100200176239014, -0.14727967977523804, -0.13054756820201874, -0.11661725491285324, -0.04863946512341499, 0.0007013790309429169, 0.026321545243263245, -0.3160409927368164, 0.12763255834579468, -0.42000120878219604, -0.16111694276332855, 0.15450192987918854, -0.4756676256656647, 0.15209785103797913, 0.051092054694890976, 0.14577504992485046, -0.3834642469882965, 0.3752639889717102, -0.1956866979598999, -0.24226202070713043, 0.06293635070323944, -0.1569022238254547, -0.016157276928424835, -0.10000353306531906, 0.2114155888557434, 0.009276974946260452, 0.20416359603405, -0.274849534034729, 0.35949447751045227, 0.13999861478805542, -0.0432695597410202, 0.21681223809719086, -0.05901000648736954, -0.08184878528118134, 0.019933490082621574, 0.19673699140548706, 0.4607996344566345, 0.037361353635787964, -0.12594279646873474, -0.05515424534678459, -0.007121171802282333, -0.019184179604053497, 0.45417243242263794, 0.5808762907981873, -0.1735014021396637, 0.11386284232139587, 0.0018287226557731628, -0.1054198294878006, -0.2491701990365982, 0.09644725918769836, -0.2446671426296234, 0.27764981985092163, 0.15254203975200653, 0.13122454285621643, -0.12050558626651764, -0.09465581178665161, -0.033122338354587555, -0.0009463541209697723, -0.17400115728378296, -0.20157411694526672, -0.13159245252609253, 0.20554660260677338, 0.376284122467041, -0.07863709330558777, 0.33942911028862, 0.042163021862506866, -0.15473058819770813, -0.04292633756995201, 0.12407608330249786, -0.20337814092636108, -0.1468355357646942, 0.2041568011045456, 0.09530824422836304, -0.07533993571996689, -0.27592945098876953, 0.1912643313407898, 0.06917723268270493, 0.04661815986037254, 0.00597743084654212, 0.39524194598197937, 0.09869836270809174, -0.104840949177742, 0.08443844318389893, 0.22270113229751587, -0.07471057772636414, 0.29013532400131226, 0.12766027450561523, -0.040587469935417175, 0.025724608451128006, -0.14951954782009125, 0.3305383622646332, 0.5738157629966736, -0.31769809126853943, 0.09327684342861176, 0.06698092818260193, 0.1124449074268341, -0.08549962192773819, -0.08172373473644257, -0.17560699582099915, -0.07944183051586151, 0.1511186957359314, 0.379131019115448, 0.16057200729846954, -0.011660225689411163, 0.2209271490573883, -0.18802666664123535, 0.202299103140831, -0.14347359538078308, 0.26182448863983154, 0.17443211376667023, -0.5236226916313171, -0.005426306277513504, 0.014571419917047024, -0.12460263073444366, -0.043058060109615326, -0.21045716106891632, 0.12346290796995163, 0.3806929886341095, -0.18869754672050476, -0.025636035948991776, 0.24888122081756592, -0.05146753042936325, 0.22606471180915833, 0.014447882771492004, 0.06382789462804794, 0.1280749887228012, 0.19689682126045227, 0.02029639482498169, -0.2919873893260956, -0.09831386059522629, 0.033101558685302734, 0.10914754867553711, 0.19876176118850708, -0.0592532753944397, -0.6101888418197632, 0.13111785054206848, -0.042972516268491745, -0.0027351826429367065, -0.03035619482398033, -0.33253782987594604, -0.15142199397087097, 0.4342583417892456, -0.09624265134334564, 0.10191294550895691, 0.022342439740896225, 0.016135064885020256, 0.14021962881088257, -0.24453866481781006, 0.13868790864944458, 0.14475418627262115, -0.13010536134243011, -0.11541825532913208, 0.33976465463638306, 0.2209399789571762, 0.16427232325077057, 0.0318387970328331, 0.13331663608551025, 0.10431042313575745, 0.030000125989317894, -0.03520788997411728, 0.0020971745252609253, -0.1873246133327484, -0.028201192617416382, 0.2340334802865982, 0.10855850577354431, -0.011155049316585064, -0.0226622112095356, 0.014043506234884262, -0.47629666328430176, -0.46361103653907776, 0.6074786186218262, 0.2624836564064026, -0.07462562620639801, -0.03128395229578018, 0.2914043962955475, -0.5541316270828247, -0.061921410262584686, 0.5885612964630127, -0.24445943534374237, 0.20638978481292725, 0.08604746311903, 0.054937757551670074, -0.05232108011841774, 0.38793453574180603, -0.0006199628114700317, 0.31292957067489624, -0.4220857322216034, -0.027798965573310852, -0.5448603630065918, 0.008563816547393799, 0.20670798420906067, -0.20907025039196014, 0.07715263962745667, 0.27653348445892334, 0.18632268905639648, 0.04489825293421745, -0.31889402866363525, -0.02141052670776844, -0.3111937344074249, 0.2729243338108063, -0.3748166561126709, -0.27160823345184326, -0.6401297450065613, 0.3123355805873871, -0.00671381875872612, -0.3431876301765442, 0.21775001287460327, 0.031240910291671753, -0.13660156726837158, 0.09197002649307251, 0.1283862441778183, 0.6154295206069946, -0.0060734823346138, 0.18538789451122284, -0.07023295015096664, 0.6191264390945435, 0.10627978295087814, -0.012383061461150646, -0.038203056901693344, 0.1582278609275818, -0.444589763879776, 0.3068561255931854, -0.16380420327186584, 0.05017036944627762, -0.10514094680547714, 0.059862878173589706, -0.2812407314777374, -0.29914864897727966, 0.27410197257995605, -0.22052860260009766, -0.13781993091106415, 0.014205586165189743, -0.21646913886070251, 0.012479073368012905, 0.570360541343689, 0.4601423442363739, -0.22606661915779114, -0.07081644982099533, -0.347464382648468, -0.00322822667658329, 0.4424717128276825, -0.22870178520679474, -0.10474811494350433, 0.09453850239515305, 0.280023455619812, -0.14406025409698486, 0.021086642518639565, -0.3782075047492981, 0.019313819706439972, 0.43036961555480957, -0.15295347571372986, -0.06541268527507782, 0.4641578495502472, 0.4523645043373108, -0.009144879877567291, -0.23366816341876984, 0.5215426087379456, -0.15536484122276306, -0.1664377897977829, -0.2531815767288208, -0.37524938583374023 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
Regarding the tfds tests, I don't really see a point in keeping them because: 1) If you provide a fake data structure, IMO there is no need for each dataset to have an individual test file because (I think) most datasets have the same functions `_split_generators` and `_generate_examples` for which you can just test the functionality in a common test file. For special functions like these beam / pipeline functionality you probably need an extra test file. But @mariamabarham I think you have seen more than I have here as well 2) The dataset test design is very much intertwined with the download manager design and contains a lot of code. I would like to seperate the tests into a) tests for downloading in general b) tests for post download data set pre-processing. Since we are going to change the download code anyways quite a lot, my plan was to focus on b) first.
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
154
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. Regarding the tfds tests, I don't really see a point in keeping them because: 1) If you provide a fake data structure, IMO there is no need for each dataset to have an individual test file because (I think) most datasets have the same functions `_split_generators` and `_generate_examples` for which you can just test the functionality in a common test file. For special functions like these beam / pipeline functionality you probably need an extra test file. But @mariamabarham I think you have seen more than I have here as well 2) The dataset test design is very much intertwined with the download manager design and contains a lot of code. I would like to seperate the tests into a) tests for downloading in general b) tests for post download data set pre-processing. Since we are going to change the download code anyways quite a lot, my plan was to focus on b) first.
[ -0.1954726278781891, 0.007575422525405884, -0.1736966371536255, 0.2550388276576996, 0.03900603950023651, 0.1387324035167694, 0.2874906659126282, 0.35408586263656616, -0.10404853522777557, -0.047280773520469666, -0.16237272322177887, -0.13077493011951447, -0.20674581825733185, 0.3706257939338684, 0.2799264192581177, -0.1842692792415619, -0.02981693297624588, 0.24413958191871643, -0.38473784923553467, 0.14093409478664398, -0.0007165335118770599, -0.09340352565050125, 0.08320178091526031, 0.018413588404655457, -0.038217268884181976, -0.29455453157424927, -0.35349926352500916, 0.11047372967004776, -0.19582702219486237, -0.5250126123428345, 0.21523524820804596, 0.48065975308418274, 0.06144928187131882, 0.3504151403903961, -0.00010848003148566931, -0.04380840063095093, 0.14816446602344513, -0.06278721988201141, -0.16931074857711792, 0.272329717874527, -0.1280956268310547, 0.053460150957107544, 0.1380157768726349, -0.23434579372406006, 0.22021478414535522, -0.32465800642967224, 0.02888537012040615, 0.09619157016277313, 0.38993191719055176, 0.36831238865852356, 0.1890694797039032, 0.025789324194192886, -0.2540692389011383, 0.1257200986146927, 0.14708885550498962, 0.27353063225746155, 0.016344929113984108, 0.13227546215057373, 0.38645651936531067, 0.0008177543058991432, -0.12710821628570557, 0.03758017718791962, 0.017937863245606422, 0.2149639129638672, 0.4059499204158783, -0.14866922795772552, 0.12873977422714233, -0.42763885855674744, -0.31572720408439636, 0.35166966915130615, 0.7733181715011597, -0.39845216274261475, -0.25709137320518494, -0.31572288274765015, -0.1562454253435135, 0.03799597918987274, 0.012813370674848557, -0.1977769285440445, -0.13226479291915894, 0.11836493015289307, -0.25781533122062683, -0.15432938933372498, 0.046360306441783905, -0.02525285631418228, -0.33978307247161865, 0.16777530312538147, 0.11715419590473175, -0.009419277310371399, -0.08982118964195251, 0.08740823715925217, 0.422652930021286, -0.4947611093521118, -0.021088581532239914, 0.09313224256038666, -0.04174754396080971, -0.44733545184135437, -0.04153825342655182, -0.07305837422609329, 0.2832556664943695, 0.4121096134185791, -0.0953499898314476, -0.044954873621463776, -0.06796998530626297, -0.26673436164855957, 0.15478983521461487, 0.40269735455513, 0.09571033716201782, 0.28985753655433655, 0.23484966158866882, 0.20143769681453705, -0.052883557975292206, 0.07309788465499878, 0.06177797168493271, -0.02399665117263794, 0.05951694771647453, 0.12145557254552841, 0.25393688678741455, -0.017730262130498886, 0.06974218785762787, -0.3112311065196991, 0.20904508233070374, -0.25813889503479004, 0.01551752258092165, 0.12473667412996292, 0.17431485652923584, 0.23102256655693054, 0.025150008499622345, 0.049943290650844574, 0.03638321906328201, 0.09641491621732712, -0.1336054652929306, 0.11178381741046906, -0.14757482707500458, 0.01242656446993351, 0.1422143429517746, 0.18246711790561676, 0.08373057842254639, -0.02625306509435177, 0.0067350417375564575, -0.05257301405072212, 0.43228211998939514, -0.04440616816282272, 0.2779299020767212, 0.3004480302333832, -0.16562679409980774, 0.06274852901697159, -0.01756807044148445, 0.14156746864318848, -0.2995795011520386, 0.21703976392745972, -0.08524719625711441, -0.4176905155181885, 0.2597699761390686, 0.22810392081737518, -0.40852677822113037, -0.0998866856098175, -0.21345272660255432, 0.023510867729783058, -0.2321603000164032, -0.28598713874816895, 0.2743357717990875, -0.2715478539466858, -0.09941789507865906, -0.05994078516960144, -0.055279262363910675, 0.6687305569648743, -0.18300841748714447, 0.07898959517478943, -0.2427712082862854, -0.48117002844810486, 0.061812762171030045, -0.17631548643112183, -0.2250167280435562, 0.5715960264205933, -0.37697678804397583, 0.056910544633865356, 0.4887683391571045, -0.5427679419517517, 0.12727253139019012, 0.5414106249809265, -0.09744736552238464, 0.31782856583595276, 0.24512919783592224, -0.13697007298469543, 0.1687156707048416, -0.27944082021713257, -0.4598064124584198, -0.05361685901880264, -0.35703322291374207, 0.22080472111701965, -0.020475655794143677, -0.1400519758462906, 0.1669994443655014, 0.1088145524263382, 0.07656598091125488, -0.03489372879266739, -0.28003832697868347, -0.11396855115890503, 0.22858956456184387, -0.0721101462841034, 0.03812810778617859, -0.22429920732975006, 0.11693638563156128, -0.03403511643409729, -0.15487071871757507, -0.10573699325323105, -0.6878414750099182, 0.37658846378326416, 0.0312066450715065, 0.016820188611745834, 0.07869327813386917, -0.308133602142334, -0.3081955015659332, -0.31252455711364746, -0.0476258210837841, -0.4012078046798706, 0.15273921191692352, 0.0610821507871151, -0.23728138208389282, -0.31968915462493896, -0.2536187469959259, 0.24580398201942444, -0.10172152519226074, 0.20938675105571747, 0.035841330885887146, 0.07032715529203415, -0.019302556291222572, 0.07757516950368881, -0.019603094086050987, 0.031959135085344315, -0.17728883028030396, -0.4270208179950714, -0.14502155780792236, 0.5119740962982178, 0.3763637840747833, 0.05718021094799042, 0.1795855164527893, 0.32373327016830444, 0.2148173749446869, 0.09285980463027954, -0.09200512617826462, 0.061560217291116714, 0.05715208500623703, -0.13897168636322021, -0.19008216261863708, 0.13530707359313965, -0.02348136529326439, -0.01696159690618515, 0.015654467046260834, -0.09295672923326492, 0.010921793058514595, -0.2354634404182434, -0.11270240694284439, -0.03703542798757553, 0.035276710987091064, -0.004051771014928818, 0.27254676818847656, 0.42980989813804626, -0.04253717139363289, 0.30582523345947266, 0.34346672892570496, -0.3887624740600586, -0.1183079406619072, 0.09506745636463165, 0.08507484942674637, -0.16936761140823364, 0.18597273528575897, 0.6057792901992798, 0.6749074459075928, -0.009840925224125385, 0.33064815402030945, 0.1709352731704712, 0.2769262194633484, -0.20112216472625732, 0.23901355266571045, 0.15949922800064087, -0.04280101880431175, 0.20378261804580688, -0.278167724609375, -0.020668748766183853, -0.020011993125081062, -0.2837516963481903, 0.16756093502044678, 0.1995970606803894, -0.515568733215332, -0.10155342519283295, -0.16217662394046783, -0.2788243889808655, -0.2673003077507019, 0.28017255663871765, 0.09477013349533081, -0.270908921957016, 0.17446619272232056, -0.3069360554218292, -0.2689743638038635, 0.05354262888431549, -0.15590335428714752, 0.44187071919441223, -0.12457254528999329, -0.19842252135276794, -0.39198553562164307, -0.07985987514257431, -0.21011051535606384, 0.17688646912574768, 0.45186957716941833, 0.3055376410484314, 0.37306660413742065, -0.2614489793777466, -0.09236499667167664, -0.13789843022823334, -0.1810910999774933, 0.336808443069458, -0.10331307351589203, 0.18323203921318054, 0.38812747597694397, 0.29876962304115295, 0.15718159079551697, -0.13026884198188782, -0.3295905590057373, -0.23733507096767426, -0.36102646589279175, -0.14290374517440796, 0.07398264855146408, 0.09365095943212509, -0.1489482969045639, -0.6068622469902039, -0.17309978604316711, -0.2948911190032959, -0.09176819026470184, -0.14569148421287537, 0.16907045245170593, 0.007348997518420219, -0.25821444392204285, -0.04985776171088219, -0.14455267786979675, 0.034623146057128906, 0.1954495906829834, -0.3660512864589691, 0.027739714831113815, -0.18487884104251862, -0.0809326320886612, -0.017313025891780853, -0.13504955172538757, 0.13289500772953033, 0.012762138620018959, -0.3602743148803711, -0.3826829791069031, -0.014918198809027672, 0.10894441604614258, -0.1946391612291336, -0.08740147203207016, 0.22707249224185944, 0.10421472787857056, -0.016720186918973923, -0.054114893078804016, 0.39322715997695923, -0.07327667623758316, -0.05499553680419922, -0.02324911206960678, -0.18896806240081787, 0.1956433355808258, -0.14083699882030487, 0.5191786885261536, 0.18243126571178436, 0.005249537527561188, -0.1471063792705536, 0.05826196074485779, 0.11019952595233917, 0.004611387848854065, -0.134911447763443, 0.22993040084838867, 0.05988449603319168, -0.08887207508087158, 0.27469390630722046, -0.1416170299053192, 0.3287906348705292, 0.03424806147813797, 0.386361688375473, -0.195171058177948, -0.3553677499294281, 0.29135817289352417, -0.36434710025787354, 0.2088758945465088, -0.14190621674060822, -0.11953337490558624, -0.03565123677253723, 0.07251262664794922, 0.021806515753269196, 0.3974299430847168, 0.17195087671279907, -0.05833115801215172, -0.3885493278503418, 0.3284599184989929, -0.11160632222890854, 0.13551820814609528, 0.28883153200149536, -0.07623613625764847, 0.15858200192451477, -0.024160275235772133, -0.09472988545894623, -0.02532038651406765, 0.536709189414978, -0.11670590192079544, -0.006923086941242218, 0.2497243583202362, -0.22719255089759827, 0.22412855923175812, -0.021226918324828148, -0.23600348830223083, -0.27530479431152344, 0.2193962186574936, -0.014888234436511993, -0.42037487030029297, -0.6292220950126648, 0.24375413358211517, 0.05535180866718292, -0.009712275117635727, -0.1392560452222824, 0.19817833602428436, -0.37298229336738586, -0.15854714810848236, -0.04091056436300278, 0.22171536087989807, -0.2885792553424835, -0.45771536231040955, -0.12808023393154144, 0.10211721807718277, -0.006580742076039314, 0.2522158622741699, 0.07530398666858673, 0.038932085037231445, 0.03945304825901985, 0.05221448466181755, 0.10944707691669464, -0.26054009795188904, 0.2226242572069168, 0.17614135146141052, -0.21178112924098969, 0.028714410960674286, 0.05515601858496666, -0.1905365288257599, 0.08016471564769745, 0.27917778491973877, -0.20835185050964355, -0.21783840656280518, -0.29338476061820984, -0.03627344220876694, -0.30416566133499146, 0.3575196862220764, 0.3039611876010895, -0.08371981233358383, 0.017784396186470985, -0.5191558599472046, 0.3037733733654022, 0.06393454968929291, -0.2840453088283539, 0.3535085618495941, 0.021573156118392944, -0.37269681692123413, 0.16408734023571014, 0.005453363060951233, 0.773524284362793, -0.06822210550308228, 0.3039683699607849, 0.3524205684661865, -0.07884359359741211, 0.2806641459465027, -0.342456579208374, -0.17210234701633453, -0.0913747176527977, -0.21224522590637207, -0.03987817093729973, -0.12970510125160217, 0.236812561750412, 0.26893335580825806, -0.1706811487674713, 0.21915312111377716, 0.08476889133453369, 0.32936426997184753, 0.33351945877075195, 0.516826868057251, -0.18965213000774384, 0.0269586481153965, 0.25715577602386475, 0.12383085489273071, -0.09936666488647461, -0.04460928216576576, -0.24950888752937317, -0.01966744288802147, 0.012145277112722397, 0.14499078691005707, -0.02277401089668274, -0.2434731125831604, -0.19197431206703186, 0.06934399157762527, -0.11626791954040527, -0.07284559309482574, 0.21273374557495117, 0.3875553607940674, 0.15164300799369812, -0.032006245106458664, -0.10368748009204865, 0.25582578778266907, -0.06237597018480301, 0.3589508533477783, 0.05113554373383522, -0.06898250430822372, 0.54347825050354, -0.17641818523406982, -0.2723102569580078, -0.08224212378263474, -0.20355114340782166, -0.020722337067127228, -0.028074726462364197, -0.3095775246620178, 0.0462430901825428, -0.599833607673645, 0.041725605726242065, -0.046245262026786804, -0.18486244976520538, 0.0011210888624191284, 0.1045621782541275, 0.12211206555366516, -0.31190332770347595, 0.4734917879104614, -0.3137291967868805, -0.19848409295082092, -0.0996483713388443, -0.24944430589675903, -0.04843322932720184, -0.25804051756858826, 0.16834111511707306, -0.063812755048275, 0.09517638385295868, -0.3324897885322571, 0.3934745192527771, 0.1351376473903656, -0.029932904988527298, 0.32296112179756165, -0.26370474696159363, -0.1403367519378662, -0.018401341512799263, 0.3990415930747986, 0.3244842290878296, 0.0724215880036354, -0.06304025650024414, 0.13448788225650787, -0.2935522496700287, 0.08159418404102325, 0.2867126166820526, 0.5509694218635559, -0.3911654055118561, 0.32674479484558105, 0.05455092340707779, 0.2571079432964325, -0.37027332186698914, 0.05053684115409851, -0.15868835151195526, 0.16943122446537018, 0.11980419605970383, -0.06600166112184525, -0.07703139632940292, -0.0752316564321518, 0.09506936371326447, -0.15148693323135376, -0.32901692390441895, -0.27359798550605774, -0.06700828671455383, 0.15329104661941528, 0.07568386197090149, -0.02831939049065113, 0.29651930928230286, 0.07052551954984665, 0.02692968025803566, -0.015973979607224464, 0.3139725923538208, -0.3295782506465912, 0.14735454320907593, 0.28445687890052795, 0.12135760486125946, 0.011856302618980408, -0.35503089427948, 0.24083803594112396, -0.03194990009069443, 0.19172264635562897, 0.055178772658109665, 0.1419622302055359, -0.10988066345453262, -0.2234644740819931, 0.2324306219816208, 0.24801552295684814, 0.2367866039276123, 0.20810550451278687, 0.1377498358488083, 0.21411266922950745, -0.0648450180888176, 0.02207222767174244, 0.2143726944923401, 0.5791364312171936, -0.17622590065002441, 0.0006991047412157059, -0.20730072259902954, 0.20375007390975952, -0.03876513987779617, 0.24044856429100037, 0.07057568430900574, -0.031219482421875, 0.13628654181957245, 0.27457839250564575, 0.08324341475963593, -0.01005253940820694, 0.1835731416940689, 0.05043935775756836, 0.5370288491249084, 0.020079614594578743, 0.30562058091163635, 0.3022003471851349, -0.43473175168037415, -0.027061033993959427, 0.2604837119579315, 0.027219261974096298, 0.021789416670799255, 0.04403866454958916, 0.2584221363067627, 0.6192923784255981, -0.2929876148700714, 0.06409521400928497, 0.13817216455936432, -0.219453826546669, 0.24534885585308075, 0.1270211786031723, 0.07104012370109558, -0.12125314027070999, 0.15762726962566376, -0.08099686354398727, -0.15438364446163177, -0.3487652838230133, 0.1366087794303894, 0.10482263565063477, 0.2876933515071869, 0.07194127142429352, -0.4195742905139923, -0.033657256513834, -0.21262134611606598, -0.17291109263896942, -0.031109269708395004, -0.20763175189495087, 0.054075028747320175, 0.22518429160118103, -0.2775590419769287, 0.0913088396191597, 0.041839901357889175, -0.2523825168609619, 0.12638366222381592, -0.14604246616363525, 0.03174864128232002, 0.3789878487586975, -0.04211541265249252, 0.0808514803647995, 0.36252203583717346, 0.10054806619882584, -0.10379885137081146, -0.3345677852630615, -0.13699959218502045, -0.08930647373199463, 0.0016483664512634277, 0.07245070487260818, 0.011809665709733963, -0.3043067157268524, 0.08066696673631668, 0.23143726587295532, 0.23855465650558472, -0.10195037722587585, -0.05660581216216087, 0.07161912322044373, -0.5631255507469177, -0.5178278088569641, 0.64267897605896, 0.3836705982685089, 0.045827656984329224, 0.09227773547172546, 0.13907624781131744, -0.32857176661491394, -0.04288364201784134, 0.3965005576610565, -0.2521514296531677, 0.04163753613829613, 0.12955085933208466, 0.11043974757194519, 0.08704809844493866, 0.36483097076416016, 0.08427228778600693, 0.4254652261734009, -0.45839765667915344, -0.31033092737197876, -0.704659104347229, -0.06769537180662155, 0.23482964932918549, -0.19842883944511414, 0.252113938331604, -0.03836113587021828, 0.26808425784111023, -0.08657420426607132, -0.12811018526554108, -0.11697669327259064, -0.0946509912610054, -0.017294444143772125, -0.2474074363708496, -0.15691164135932922, -0.4908478856086731, 0.20878170430660248, -0.13150960206985474, -0.26539579033851624, 0.17111659049987793, 0.011992144398391247, -0.003317214548587799, 0.30831587314605713, -0.08373229950666428, 0.7392168045043945, -0.3550291955471039, 0.3108952045440674, 0.011686613783240318, 0.46901118755340576, 0.07188411802053452, -0.042588599026203156, -0.04181259498000145, 0.14032836258411407, -0.07906758785247803, -0.002993553876876831, -0.12476670742034912, 0.18145990371704102, -0.10005564242601395, 0.200936958193779, -0.2382032424211502, 0.012278422713279724, 0.15000301599502563, 0.2047867625951767, -0.30943042039871216, -0.016718938946723938, -0.06802210211753845, -0.08482211828231812, 0.6463689208030701, 0.49577030539512634, -0.2719959318637848, 0.026389585807919502, -0.38483017683029175, -0.1602838635444641, 0.42557138204574585, 0.34832310676574707, -0.16442406177520752, -0.11113016307353973, 0.2976089119911194, -0.1776977777481079, 0.238502636551857, -0.4853561520576477, -0.020163871347904205, 0.40587520599365234, -0.09763330966234207, -0.1028934121131897, 0.41360917687416077, 0.4823436737060547, -0.07005675137042999, -0.11711607873439789, 0.4820873737335205, -0.03295144438743591, 0.1360642910003662, -0.23796281218528748, -0.20550987124443054 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
I like the idea of having a fake data folder on S3. I have seen datasets with nested compressed files structures that would be tedious to generate with code. And for users it is probably easier to create a fake data folder by taking a subset of the actual data, and then upload it as you said.
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
57
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. I like the idea of having a fake data folder on S3. I have seen datasets with nested compressed files structures that would be tedious to generate with code. And for users it is probably easier to create a fake data folder by taking a subset of the actual data, and then upload it as you said.
[ 0.07960999011993408, -0.14985838532447815, -0.1057174950838089, 0.40181177854537964, -0.04139005392789841, -0.0774172991514206, 0.32838189601898193, 0.2299269139766693, -0.1691761612892151, 0.12452751398086548, 0.08517471700906754, 0.19833692908287048, -0.16051848232746124, 0.4008089005947113, 0.15549087524414062, 0.17161384224891663, 0.1395723968744278, 0.3577190637588501, -0.25506097078323364, 0.03937668353319168, -0.09100115299224854, -0.04038713127374649, 0.04181966185569763, -0.17985333502292633, -0.011869722045958042, 0.12808287143707275, -0.39861631393432617, 0.13541129231452942, -0.45831164717674255, -0.5345595479011536, 0.31819891929626465, 0.262675017118454, 0.09186268597841263, 0.6529834866523743, -0.0001088349090423435, -0.15492387115955353, 0.42367690801620483, -0.06839311867952347, -0.4726032316684723, 0.06130250543355942, -0.133836567401886, 0.00757640041410923, 0.05488814413547516, -0.2872266173362732, -0.022246625274419785, 0.07388496398925781, 0.11800115555524826, -0.15960708260536194, 0.40816712379455566, 0.10726619511842728, 0.18729238212108612, 0.20157882571220398, -0.49619731307029724, -0.07579799741506577, 0.19656936824321747, 0.5048713684082031, -0.11930078268051147, 0.32015863060951233, 0.2289668172597885, 0.10022201389074326, 0.1909731924533844, -0.10839621722698212, -0.02440018020570278, 0.2738700807094574, 0.39834871888160706, -0.046844977885484695, -0.2247675657272339, -0.397940456867218, -0.3488904535770416, 0.349031925201416, 0.7519950866699219, -0.36563894152641296, -0.4331398010253906, -0.16160112619400024, -0.005335464142262936, 0.04004532843828201, 0.015373002737760544, 0.055475130677223206, -0.20229269564151764, 0.039750825613737106, -0.21411961317062378, -0.12899133563041687, -0.17854657769203186, 0.023071322590112686, -0.18475808203220367, 0.16313742101192474, -0.24688130617141724, 0.06823104619979858, -0.14562012255191803, 0.09474530071020126, 0.5910096764564514, -0.5832327008247375, -0.01610245555639267, 0.15773026645183563, 0.014162864536046982, -0.46022528409957886, -0.1947028934955597, -0.06302358955144882, 0.2900412082672119, 0.20174674689769745, 0.05656779929995537, 0.0015251114964485168, 0.1776835024356842, -0.017248421907424927, 0.07659012079238892, 0.10095314681529999, 0.21483775973320007, 0.1356154978275299, 0.11481904983520508, 0.33046868443489075, 0.18254123628139496, -0.0917036160826683, -0.23885269463062286, 0.044408585876226425, -0.08850398659706116, 0.07165320217609406, 0.3462066054344177, -0.042325250804424286, -0.07514907419681549, -0.16930393874645233, 0.19056379795074463, -0.09464870393276215, -0.18388839066028595, 0.222335547208786, -0.009242178872227669, -0.09257657080888748, -0.06833121925592422, 0.13669481873512268, 0.026840118691325188, 0.09615585952997208, -0.07083068788051605, 0.16421417891979218, -0.11829517781734467, 0.1269201934337616, 0.19076645374298096, -0.08728009462356567, 0.2263040989637375, -0.04463747516274452, -0.08500190079212189, -0.006165459752082825, 0.40866929292678833, -0.10600653290748596, 0.26337042450904846, 0.2124737948179245, 0.012708552181720734, 0.13366563618183136, 0.07280802726745605, 0.15555505454540253, -0.2356046736240387, 0.07863229513168335, -0.07897006720304489, -0.21703030169010162, -0.0885877013206482, 0.24540205299854279, -0.48376572132110596, -0.11831508576869965, -0.25490644574165344, -0.09735624492168427, -0.3240816295146942, -0.1988535374403, 0.3775389790534973, 0.0460161454975605, -0.015164602547883987, -0.04434918984770775, 0.1117374375462532, 0.6728799343109131, -0.15746067464351654, -0.015562467277050018, -0.3925766944885254, -0.24951589107513428, 0.11892171204090118, -0.06484699249267578, -0.19917164742946625, 0.215530663728714, -0.45863357186317444, 0.28412729501724243, 0.40948671102523804, -0.40867289900779724, 0.022765565663576126, 0.3742806613445282, -0.0742599219083786, 0.2181859165430069, 0.38785669207572937, 0.018940666690468788, 0.08052713423967361, -0.18115045130252838, -0.4266350567340851, 0.0941377654671669, 0.07076489180326462, -0.05348879098892212, -0.03171302378177643, -0.05540483444929123, -0.020116709172725677, 0.09947194159030914, -0.1555948108434677, 0.12303221225738525, 0.0010902881622314453, -0.17062847316265106, 0.1662502884864807, -0.20754006505012512, 0.002605350688099861, 0.04820914939045906, 0.38286617398262024, -0.05827419459819794, -0.07743313163518906, 0.09001639485359192, -0.5159687399864197, 0.30243611335754395, 0.04714448004961014, 0.06308146566152573, -0.02961653470993042, -0.40530097484588623, -0.3371269404888153, -0.16093528270721436, -0.08244724571704865, -0.23958459496498108, 0.17053702473640442, 0.2461737096309662, -0.02450351044535637, -0.32948097586631775, -0.17408744990825653, -0.07664575427770615, -0.044130392372608185, 0.13988812267780304, -0.1990847885608673, 0.13385537266731262, -0.055699221789836884, 0.17380860447883606, 0.09175902605056763, -0.3114263415336609, -0.07722453027963638, -0.4007464647293091, 0.03957253694534302, 0.3158636689186096, 0.40146422386169434, 0.13905684649944305, 0.3168269395828247, 0.35157930850982666, -0.042288437485694885, 0.03336216136813164, 0.1785212904214859, -0.025839462876319885, 0.20873692631721497, 0.09799962490797043, -0.481499582529068, 0.23306375741958618, -0.06211627647280693, -0.20134836435317993, -0.059042852371931076, -0.24359136819839478, 0.10481028258800507, -0.21234317123889923, -0.2718285024166107, -0.008215997368097305, -0.025731023401021957, 0.40837180614471436, 0.1294226348400116, 0.3901877999305725, 0.0016467124223709106, -0.04386553913354874, 0.4201023280620575, -0.5109862089157104, 0.11804462969303131, 0.03690265119075775, -0.22296452522277832, -0.21061506867408752, 0.09222549945116043, 0.6098061800003052, 0.7650558948516846, -0.014952375553548336, 0.4918552041053772, 0.09361883997917175, 0.23327000439167023, -0.21561308205127716, 0.32282060384750366, 0.08636954426765442, 0.21270300447940826, 0.1360856592655182, -0.20390373468399048, -0.0763644427061081, -0.22071832418441772, -0.3367950916290283, 0.29508671164512634, 0.04691677913069725, -0.3003530502319336, 0.09148912876844406, 0.11143322288990021, -0.21445533633232117, -0.24121728539466858, 0.016998177394270897, 0.1517440527677536, -0.1388023942708969, 0.06968864798545837, -0.1178998053073883, -0.18122491240501404, -0.1165364608168602, 0.019805263727903366, 0.6229662895202637, -0.030990246683359146, -0.33144351840019226, -0.37755459547042847, 0.027416029945015907, -0.1142842099070549, 0.15641847252845764, 0.16069099307060242, 0.21326979994773865, 0.24588310718536377, -0.49246746301651, 0.05258854478597641, -0.5483002662658691, -0.17042045295238495, 0.33121225237846375, -0.0040107108652591705, 0.35669589042663574, 0.4467610716819763, 0.21342918276786804, 0.2514861822128296, 0.0635743960738182, -0.15030650794506073, -0.2549452483654022, -0.48425716161727905, 0.0442192479968071, -0.025484297424554825, -0.02614360675215721, -0.19498319923877716, -0.3947329819202423, -0.03547456115484238, -0.1893763393163681, 0.11546963453292847, -0.008093861863017082, 0.052010104060173035, -0.10063403099775314, 0.09681504219770432, 0.12344639003276825, -0.21998603641986847, 0.09392374753952026, -0.10021448135375977, -0.6577589511871338, 0.10233382880687714, -0.1341477483510971, -0.18475258350372314, -0.04864543676376343, -0.22403043508529663, 0.16485591232776642, -0.1459810435771942, -0.4574201703071594, -0.6133737564086914, 0.04769495502114296, 0.09684327244758606, -0.04835442453622818, 0.044329047203063965, 0.2702445685863495, -0.09932313859462738, -0.09049016982316971, -0.2315155565738678, 0.16738498210906982, -0.3227018415927887, -0.05406710505485535, 0.010327793657779694, -0.2294822633266449, 0.2556208074092865, 0.11261199414730072, 0.4183763265609741, 0.37625837326049805, -0.21684233844280243, 0.10099151730537415, -0.03432559221982956, 0.4818713366985321, 0.13035239279270172, 0.12138901650905609, -0.0027386988513171673, 0.0035639703273773193, -0.21495437622070312, 0.21766477823257446, -0.24141445755958557, 0.10094892233610153, 0.12486878037452698, 0.06244334205985069, -0.1769893765449524, 0.019258540123701096, 0.15954257547855377, -0.3127293884754181, 0.12350735068321228, -0.19601283967494965, -0.19462233781814575, 0.03777718171477318, 0.156095951795578, 0.18749915063381195, 0.2611287236213684, 0.28987938165664673, -0.08057704567909241, -0.3806588053703308, -0.0665726587176323, -0.2282150387763977, 0.19721949100494385, 0.023093221709132195, 0.22793850302696228, 0.11958298087120056, -0.10141110420227051, -0.027251824736595154, -0.17814460396766663, 0.6801595687866211, -0.3234933316707611, -0.08665651082992554, 0.04957849159836769, -0.1703161746263504, -0.3697705566883087, -0.009509306401014328, -0.514076828956604, -0.08076155930757523, -0.003506682813167572, 0.45890480279922485, -0.22501930594444275, -0.2876685559749603, -0.00721137598156929, 0.05045906826853752, -0.018171366304159164, -0.17590872943401337, -0.12614040076732635, -0.3089583218097687, -0.2299441695213318, 0.0034504160284996033, 0.1498333364725113, -0.32946979999542236, -0.28337377309799194, -0.18684732913970947, -0.09598154574632645, 0.3188159763813019, 0.03033261001110077, 0.35159310698509216, 0.009842058643698692, 0.11787564307451248, 0.07986347377300262, 0.09053019434213638, -0.2579156458377838, 0.4353140890598297, 0.5856813788414001, 0.020074699074029922, -0.14670638740062714, 0.19006532430648804, -0.011053795926272869, 0.30571916699409485, 0.03447554260492325, 0.12242667376995087, -0.08105415850877762, -0.24117109179496765, -0.05468665063381195, -0.38847848773002625, 0.13521263003349304, 0.3412364423274994, 0.045815661549568176, 0.1937759965658188, -0.27354004979133606, 0.3577958345413208, 0.07006846368312836, -0.21023522317409515, -0.007344555109739304, -0.03320155292749405, -0.20196175575256348, 0.26549071073532104, 0.1677246391773224, 0.679150402545929, 0.019781049340963364, 0.5562403798103333, 0.21522566676139832, -0.04202403873205185, 0.42566537857055664, -0.11422650516033173, -0.2390708178281784, -0.2493460476398468, -0.36166366934776306, -0.1111358106136322, -0.2628016769886017, 0.20932400226593018, 0.1659316122531891, -0.5107539892196655, 0.20098631083965302, -0.19824141263961792, 0.08244255185127258, 0.12386464327573776, 0.5254825353622437, -0.4262624680995941, 0.06104593351483345, 0.16811779141426086, 0.20386753976345062, 0.16345295310020447, 0.08290371298789978, -0.1334756314754486, 0.06547493487596512, -0.03104410693049431, -0.04452290013432503, -0.061967868357896805, 0.009431719779968262, 0.06807450950145721, -0.22288668155670166, 0.012468013912439346, -0.012562550604343414, 0.15539710223674774, 0.22011655569076538, 0.16182860732078552, 0.1757941097021103, -0.11105236411094666, 0.05982472002506256, -0.03561856597661972, 0.16381993889808655, -0.044264521449804306, -0.17714247107505798, 0.28500401973724365, -0.05391469597816467, -0.20680402219295502, 0.11596810072660446, -0.04107982665300369, 0.029476501047611237, 0.2938186228275299, -0.23489423096179962, 0.003398612141609192, -0.5340665578842163, -0.07516573369503021, -0.1973215639591217, -0.3000706434249878, -0.10228058695793152, 0.16354769468307495, 0.1813812553882599, -0.3378329575061798, 0.16200748085975647, 0.12103390693664551, -0.2986173629760742, -0.034011755138635635, 0.019797824323177338, -0.14661568403244019, 0.099373459815979, 0.23854687809944153, -0.12838824093341827, 0.09638306498527527, -0.42018216848373413, 0.40928688645362854, 0.13558517396450043, 0.1906122863292694, 0.152566596865654, -0.16289488971233368, -0.1705184429883957, 0.029080405831336975, 0.1153678148984909, 0.5350279808044434, 0.13444578647613525, -0.2703540325164795, -0.20154297351837158, 0.08922585844993591, -0.05909104645252228, 0.39900293946266174, 0.6478922963142395, -0.13903406262397766, -0.22399775683879852, 0.242544025182724, -0.017325738444924355, -0.3772428631782532, 0.14534549415111542, -0.363146036863327, 0.19758032262325287, 0.10877198725938797, 0.00677233561873436, -0.016105161979794502, -0.1121533215045929, 0.11256808042526245, -0.10853022336959839, -0.19488142430782318, -0.2877635061740875, -0.06790606677532196, 0.14380422234535217, 0.17643362283706665, -0.0030407337471842766, 0.22203189134597778, -0.003995571285486221, -0.016571171581745148, -0.025186002254486084, 0.0724850594997406, -0.14996977150440216, -0.042069174349308014, 0.3667789697647095, 0.19487187266349792, -0.19078266620635986, -0.4251529574394226, 0.01617286540567875, -0.10636302828788757, -0.007698073983192444, -0.0739336907863617, 0.17108063399791718, -0.1355302333831787, -0.17465044558048248, 0.20226112008094788, 0.21278446912765503, 0.3132060766220093, 0.17541122436523438, 0.09699521958827972, 0.05895494297146797, 0.045545633882284164, -0.20949842035770416, 0.3000905215740204, 0.5035179257392883, -0.34844833612442017, 0.05115305632352829, 0.14296218752861023, 0.25524985790252686, -0.06340549886226654, -0.2630240321159363, -0.3894442021846771, -0.14650897681713104, 0.27801525592803955, 0.19873446226119995, 0.028047453612089157, 0.11820325255393982, 0.06884612888097763, -0.17326867580413818, 0.45818793773651123, 0.31599146127700806, 0.1843007355928421, 0.016503192484378815, -0.48323753476142883, -0.1122865378856659, 0.3795403242111206, -0.1042487621307373, 0.014902003109455109, 0.046479061245918274, 0.26295721530914307, 0.4669285714626312, -0.24532461166381836, 0.09693845361471176, 0.13043783605098724, 0.061248671263456345, 0.40119221806526184, 0.11347103118896484, -0.05617991089820862, 0.07932683825492859, 0.16288885474205017, -0.15461280941963196, -0.31695234775543213, 0.02980799786746502, -0.11322414875030518, -0.022297043353319168, 0.2080012857913971, -0.15142598748207092, -0.5134809017181396, -0.023664791136980057, 0.0626695305109024, -0.16872619092464447, 0.04445134103298187, -0.2861969470977783, 0.12520429491996765, 0.19927556812763214, -0.17167918384075165, 0.16278627514839172, 0.22429141402244568, 0.22211870551109314, 0.09558470547199249, -0.3414112627506256, 0.0845206156373024, 0.12266752868890762, 0.09968627244234085, -0.0799536406993866, 0.45208626985549927, 0.3127133250236511, 0.06328552961349487, -0.13138283789157867, 0.01749943196773529, -0.038269124925136566, -0.08871737122535706, -0.11064176261425018, 0.04287827014923096, -0.15172213315963745, 0.04811868816614151, 0.18793989717960358, 0.3093512952327728, -0.18458987772464752, 0.03349112346768379, 0.0359371192753315, -0.40062665939331055, -0.47408515214920044, 0.3775619566440582, 0.11768315732479095, 0.03252431005239487, -0.08482282608747482, 0.41401442885398865, -0.6245530843734741, -0.06161151081323624, 0.6623899340629578, -0.2015019804239273, 0.15211012959480286, 0.05025840550661087, 0.10197743773460388, -0.015027295798063278, 0.47228488326072693, 0.10601645708084106, 0.37679144740104675, -0.2227465808391571, -0.1470823585987091, -0.45866671204566956, 0.13090646266937256, 0.09846644848585129, -0.44371268153190613, 0.0812646746635437, 0.08075294643640518, 0.13851600885391235, 0.014368323609232903, -0.1682930439710617, 0.3982428312301636, -0.4180775582790375, 0.1366390585899353, -0.34079286456108093, -0.2005341351032257, -0.24511389434337616, 0.1680610477924347, -0.031176241114735603, -0.4182371199131012, 0.19793058931827545, -0.13887964189052582, 0.056378647685050964, 0.31659621000289917, 0.0042002201080322266, 0.4978506565093994, -0.1225479245185852, 0.4024357795715332, -0.04152455925941467, 0.46593478322029114, -0.1354246437549591, -0.09272502362728119, -0.01287953183054924, 0.06716245412826538, -0.0834510400891304, 0.15112066268920898, -0.04799696430563927, 0.06393488496541977, -0.03320024907588959, 0.18924526870250702, -0.1030033528804779, -0.12672485411167145, 0.16430465877056122, -0.0432012602686882, -0.19793878495693207, 0.1515687257051468, -0.23919609189033508, 0.023911546915769577, 0.2846220135688782, 0.29598110914230347, -0.2210889458656311, -0.1639021337032318, -0.20512056350708008, -0.046486884355545044, 0.3985232710838318, -0.20520760118961334, -0.24935796856880188, -0.12762802839279175, 0.32716262340545654, -0.24693354964256287, 0.03360225260257721, -0.2415163815021515, 0.23461094498634338, 0.3614375591278076, -0.013651933521032333, -0.13969475030899048, 0.3389606773853302, 0.24921783804893494, 0.07379922270774841, -0.13590611517429352, 0.8335939645767212, -0.03570418059825897, 0.016607576981186867, -0.18317925930023193, -0.4217168092727661 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
> > I think I'm fine with this. > > The alternative would be to host a small subset of the dataset on the S3 together with the testing script. But I think having all (test file creation + actual tests) in one file is actually quite convenient. > > Good for me! > > One question though, will we have to create one test file for each of the 100+ datasets or could we make some automatic conversion from tfds dataset test files? > > I think if we go the way shown in the PR we would have to create one test file for each of the 100+ datasets. > > As far as I know the tfds test files all rely on the user having created a special download folder structure in `tensorflow-datasets/tensorflow_datasets/testing/test_data/fake_examples`. > > My hypothesis was: > Becasue, we don't want to work with PRs, no `dataset_script` is going to be in the official repo, so no `dataset_script_test` can be in the repo either. Therefore we can also not have any "fake" test folder structure in the repo. > > **BUT:** As you mentioned @thom, we could have a fake data structure on AWS. To add a test the user has to upload multiple small test files when uploading his data set script. > > So for a cli this could look like: > `python nlp-cli upload <data_set_script> --testfiles <relative path to test file 1> <relative path to test file 2> ...` > > or even easier if the user just creates the dataset folder with the script inside and the testing folder structure, then the API could look like: > > `python nlp-cli upload <path/to/dataset/folder>` > > and the dataset folder would look like > > ``` > squad > - squad.py > - fake_data # this dir would have to have the exact same structure we get when downloading from the official squad data url > ``` > > This way I think we wouldn't even need any test files at all for each dataset script. For special datasets like `c4` or `wikipedia` we could then allow to optionally upload another test script. > We just assume that this is our downloaded `url` and check all functionality from there. > > Thinking a bit more about this solution sounds a) much less work and b) even easier for the user. > > A small problem I see here though: > > 1. What do we do when the depending on the config name the downloaded folder structure is very different? I think for each dataset config name we should have one test, which could correspond to one "fake" folder structure on AWS > > @thomwolf What do you think? I would actually go for this solution instead now. > @mariamabarham You have written many more tfds dataset scripts and tests than I have - what do you think? I'm agreed with you just one thing, for some dataset like glue or xtreme you may have multiple datasets in it. so I think a good way is to have one main fake folder and a subdirectory for each dataset inside
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
526
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. > > I think I'm fine with this. > > The alternative would be to host a small subset of the dataset on the S3 together with the testing script. But I think having all (test file creation + actual tests) in one file is actually quite convenient. > > Good for me! > > One question though, will we have to create one test file for each of the 100+ datasets or could we make some automatic conversion from tfds dataset test files? > > I think if we go the way shown in the PR we would have to create one test file for each of the 100+ datasets. > > As far as I know the tfds test files all rely on the user having created a special download folder structure in `tensorflow-datasets/tensorflow_datasets/testing/test_data/fake_examples`. > > My hypothesis was: > Becasue, we don't want to work with PRs, no `dataset_script` is going to be in the official repo, so no `dataset_script_test` can be in the repo either. Therefore we can also not have any "fake" test folder structure in the repo. > > **BUT:** As you mentioned @thom, we could have a fake data structure on AWS. To add a test the user has to upload multiple small test files when uploading his data set script. > > So for a cli this could look like: > `python nlp-cli upload <data_set_script> --testfiles <relative path to test file 1> <relative path to test file 2> ...` > > or even easier if the user just creates the dataset folder with the script inside and the testing folder structure, then the API could look like: > > `python nlp-cli upload <path/to/dataset/folder>` > > and the dataset folder would look like > > ``` > squad > - squad.py > - fake_data # this dir would have to have the exact same structure we get when downloading from the official squad data url > ``` > > This way I think we wouldn't even need any test files at all for each dataset script. For special datasets like `c4` or `wikipedia` we could then allow to optionally upload another test script. > We just assume that this is our downloaded `url` and check all functionality from there. > > Thinking a bit more about this solution sounds a) much less work and b) even easier for the user. > > A small problem I see here though: > > 1. What do we do when the depending on the config name the downloaded folder structure is very different? I think for each dataset config name we should have one test, which could correspond to one "fake" folder structure on AWS > > @thomwolf What do you think? I would actually go for this solution instead now. > @mariamabarham You have written many more tfds dataset scripts and tests than I have - what do you think? I'm agreed with you just one thing, for some dataset like glue or xtreme you may have multiple datasets in it. so I think a good way is to have one main fake folder and a subdirectory for each dataset inside
[ -0.1197020411491394, -0.16075432300567627, -0.05719934403896332, 0.262624591588974, -0.011716857552528381, -0.07255924493074417, 0.48771774768829346, 0.2763131558895111, -0.017306920140981674, 0.10754146426916122, 0.036465004086494446, 0.006594247184693813, -0.27199026942253113, 0.4583500027656555, 0.2744574546813965, -0.024973057210445404, 0.09383070468902588, 0.23396360874176025, -0.1273295134305954, 0.052454158663749695, -0.10800965875387192, -0.04693693667650223, 0.13207145035266876, -0.2154494673013687, 0.059465114027261734, 0.1096375435590744, -0.45389077067375183, -0.025311239063739777, -0.13864529132843018, -0.3604649603366852, 0.20796029269695282, 0.198134183883667, 0.3551601469516754, 0.69757479429245, -0.0001201603954541497, 0.06915806233882904, 0.21896196901798248, -0.08470349758863449, -0.3170633912086487, 0.005439937114715576, -0.2237127125263214, 0.03246482461690903, -0.03186843544244766, -0.32839536666870117, -0.06548896431922913, -0.02490590140223503, -0.009545056149363518, -0.14759229123592377, 0.40340113639831543, 0.3330026865005493, 0.05485830828547478, 0.362545371055603, -0.4963359534740448, 0.23161044716835022, 0.21120864152908325, 0.42011815309524536, -0.059070389717817307, 0.3631986379623413, 0.3289375305175781, -0.05643577128648758, 0.16811703145503998, 0.04817642271518707, 0.11841237545013428, 0.213984876871109, 0.5196225643157959, 0.031804539263248444, 0.15916337072849274, -0.42707061767578125, -0.36906296014785767, 0.4096929728984833, 0.6605101823806763, -0.3750791549682617, -0.48547229170799255, -0.22179216146469116, -0.07912059873342514, -0.1184426099061966, -0.16498440504074097, 0.044474489986896515, -0.21120759844779968, 0.04780571162700653, -0.3199087083339691, -0.28681373596191406, -0.23243500292301178, 0.0745617151260376, -0.408587247133255, 0.20454859733581543, -0.002571706660091877, 0.03416229784488678, -0.1708413064479828, 0.04118067026138306, 0.3495388627052307, -0.4822230339050293, -0.006021551787853241, 0.1270638108253479, -0.0917714387178421, -0.5243886709213257, -0.14634406566619873, -0.2153521180152893, 0.24697962403297424, 0.2970643639564514, -0.0045488374307751656, -0.05441954731941223, 0.10622216761112213, -0.010318174958229065, 0.16474410891532898, 0.21764333546161652, 0.05222329497337341, 0.34493157267570496, 0.28546029329299927, 0.18838194012641907, 0.022844407707452774, 0.11117057502269745, -0.16278626024723053, -0.034499391913414, -0.24896365404129028, -0.06623239815235138, 0.1668175756931305, -0.05395493656396866, 0.028727537021040916, -0.0838308334350586, -0.05761049687862396, -0.09484362602233887, -0.07685435563325882, 0.08691327273845673, 0.06561075896024704, 0.1673562228679657, 0.23865781724452972, 0.18454395234584808, -0.10674691200256348, 0.025550950318574905, -0.03573350980877876, 0.0716114491224289, -0.14599880576133728, 0.1334601193666458, 0.04439566656947136, 0.12636001408100128, 0.1612611711025238, -0.12868455052375793, 0.13741475343704224, -0.010396372526884079, 0.4397176504135132, 0.05185716226696968, 0.22480544447898865, 0.2260144054889679, -0.028316203504800797, 0.02137002907693386, -0.061432819813489914, -0.08494958281517029, -0.26063111424446106, 0.2734947204589844, -0.11223533004522324, -0.4349820911884308, 0.06286968290805817, 0.09680699557065964, -0.4512314200401306, -0.17646318674087524, -0.5253843665122986, 0.10303129255771637, 0.025666527450084686, -0.25453805923461914, 0.1714532971382141, -0.28584158420562744, -0.16530509293079376, 0.07401984184980392, 0.02192472480237484, 0.6476122736930847, -0.35136058926582336, 0.11284646391868591, -0.024314606562256813, -0.13091477751731873, -0.034882597625255585, 0.13991951942443848, -0.3415629267692566, 0.2860255837440491, -0.3222876787185669, 0.07401995360851288, 0.4078913927078247, -0.5702667236328125, 0.18310581147670746, 0.5761178731918335, -0.022843919694423676, 0.03905662149190903, 0.2685403823852539, -0.2263181209564209, 0.005129480734467506, -0.3348574936389923, -0.33634164929389954, -0.07020778208971024, -0.14870686829090118, 0.2703436315059662, -0.12511470913887024, -0.12475314736366272, 0.044063080102205276, 0.026598304510116577, 0.11212123930454254, 0.04766892269253731, -0.21428155899047852, 0.10074853152036667, 0.31504419445991516, -0.3560084402561188, -0.023308411240577698, -0.029411450028419495, 0.3151049017906189, -0.05780555307865143, 0.026196427643299103, 0.010493595153093338, -0.5587053298950195, 0.3371891975402832, 0.055100418627262115, 0.24502155184745789, 0.20218689739704132, -0.25179699063301086, -0.10897272825241089, -0.17517900466918945, -0.004139479249715805, -0.11365874111652374, 0.009394831955432892, 0.17262232303619385, 0.015417523682117462, -0.5483578443527222, -0.4195409417152405, -0.21961398422718048, -0.33760491013526917, 0.05763262137770653, -0.14967550337314606, 0.20444774627685547, 0.02859244868159294, 0.21747058629989624, 0.06747984886169434, -0.11359138041734695, -0.22979384660720825, -0.5729833245277405, 0.03792237490415573, 0.27884340286254883, 0.34858232736587524, 0.24899090826511383, 0.12740732729434967, 0.6033542156219482, 0.2718246579170227, 0.06361083686351776, -0.03458666056394577, -0.0839722603559494, -0.00680373702198267, 0.006829604506492615, -0.49957188963890076, 0.2663467526435852, 0.11462533473968506, 0.19698941707611084, 0.04468003660440445, -0.22021549940109253, 0.0963117927312851, -0.20762135088443756, -0.3340176045894623, 0.0033421143889427185, -0.07623577117919922, 0.3546777367591858, 0.1658870428800583, 0.42701876163482666, -0.18561004102230072, 0.11381500959396362, 0.3051127791404724, -0.47703662514686584, -0.19214043021202087, 0.03859740495681763, 0.014046207070350647, -0.20130008459091187, 0.2231631875038147, 0.6854416131973267, 0.8028160929679871, -0.009003407321870327, 0.3739736080169678, 0.07400486618280411, 0.14038622379302979, -0.2098279446363449, 0.3019438087940216, 0.11189557611942291, 0.24998851120471954, 0.2016182839870453, -0.1131206825375557, -0.06834985315799713, -0.09443391114473343, -0.3371548354625702, 0.40485912561416626, 0.20180514454841614, -0.4878869652748108, 0.14758853614330292, 0.029949462041258812, -0.30974677205085754, -0.2784377634525299, 0.3268936276435852, 0.1299598515033722, -0.02641570195555687, 0.06686383485794067, -0.15377867221832275, -0.22692248225212097, -0.08231230825185776, 0.024765674024820328, 0.5854341983795166, -0.2011718600988388, -0.304706871509552, -0.31480902433395386, -0.01677277684211731, -0.3726705312728882, 0.039115484803915024, 0.5250123739242554, 0.08184841275215149, 0.2873776853084564, -0.338349848985672, -0.23670807480812073, -0.4791599214076996, -0.3203733563423157, 0.3365502953529358, 0.03893858566880226, 0.17932061851024628, 0.31132152676582336, 0.16858261823654175, 0.16368940472602844, 0.001378307119011879, -0.18492327630519867, -0.08954377472400665, -0.3599148690700531, -0.07497864961624146, -0.08428642898797989, -0.08924045413732529, -0.183725044131279, -0.4814305603504181, -0.0826415941119194, -0.13989748060703278, -0.052746422588825226, 0.18731415271759033, 0.20213583111763, -0.02282247319817543, 0.051258984953165054, 0.033881183713674545, -0.0372738353908062, -0.07054317742586136, 0.0917147696018219, -0.4426949620246887, -0.08509360253810883, -0.23984864354133606, -0.2404879480600357, -0.1779843121767044, -0.1870850771665573, 0.3603140413761139, 0.1682487428188324, -0.4918680191040039, -0.5792666077613831, 0.02826070785522461, 0.09662371873855591, -0.17939209938049316, 0.008276371285319328, 0.19397762417793274, -0.13572537899017334, 0.07817898690700531, -0.10105970501899719, 0.3333357870578766, -0.030078895390033722, 0.10960584133863449, 0.1291571855545044, 0.0483870655298233, 0.21467387676239014, 0.08257342875003815, 0.6911171674728394, 0.5219475626945496, -0.36379072070121765, -0.13445432484149933, -0.17803098261356354, 0.27212560176849365, 0.09333393722772598, 0.13094019889831543, 0.2033921629190445, 0.11051039397716522, -0.199752077460289, 0.21248379349708557, -0.11251095682382584, -0.06021401286125183, -0.022486502304673195, 0.35758039355278015, -0.042329054325819016, -0.3116586208343506, 0.30738621950149536, -0.4737086296081543, 0.2777765691280365, -0.028553804382681847, -0.2418847382068634, -0.08585096895694733, 0.11510834842920303, 0.13805091381072998, 0.28478217124938965, 0.28130173683166504, 0.005149539560079575, -0.44231295585632324, -0.04797523096203804, -0.22024968266487122, 0.14707858860492706, 0.1377885341644287, 0.20847360789775848, 0.16811741888523102, 0.07894814759492874, -0.05944186449050903, -0.13822297751903534, 0.5851067304611206, -0.42743241786956787, -0.1000293493270874, 0.10463422536849976, -0.06290470063686371, -0.20409563183784485, -0.016156485304236412, -0.4696803390979767, -0.1328744739294052, 0.16435258090496063, 0.5317202210426331, -0.2427220344543457, -0.4471675157546997, -0.004991423338651657, 0.20214328169822693, -0.08230681717395782, -0.20102860033512115, 0.07305827736854553, -0.30608779191970825, -0.1853146106004715, -0.08159605413675308, 0.30269044637680054, -0.30174151062965393, -0.31703105568885803, -0.1378343552350998, 0.03931163251399994, 0.14579880237579346, 0.17572498321533203, 0.2116580307483673, -0.09707755595445633, 0.2825298011302948, 0.11854121088981628, -0.14503386616706848, -0.2661988139152527, 0.363728404045105, 0.3866446614265442, -0.0756155252456665, -0.1864563524723053, 0.2007526159286499, 0.10662151128053665, 0.3731272220611572, 0.28668177127838135, -0.009209108538925648, -0.40738645195961, -0.21804438531398773, 0.040326520800590515, -0.20100919902324677, 0.20143121480941772, 0.1967398226261139, 0.09588824212551117, 0.10800018906593323, -0.4934573769569397, 0.47592341899871826, 0.07970887422561646, -0.057116422802209854, 0.07273921370506287, 0.06444329023361206, -0.3420204520225525, 0.4362412095069885, 0.2711330056190491, 0.8503010272979736, -0.12170113623142242, 0.41184911131858826, 0.46158361434936523, 0.12177738547325134, 0.777385413646698, -0.5508176684379578, -0.16042695939540863, -0.2833847105503082, -0.15538807213306427, -0.054073967039585114, -0.24344323575496674, 0.1257822960615158, 0.30177438259124756, -0.14765141904354095, 0.1938253492116928, 0.18973730504512787, -0.008847247809171677, 0.32115334272384644, 0.6481912136077881, -0.33567625284194946, -0.06254416704177856, 0.05478527024388313, 0.038949526846408844, 0.1129903644323349, 0.1522541493177414, -0.16745591163635254, -0.0508362241089344, -0.1331557184457779, 0.10608501732349396, -0.14065538346767426, -0.04839298129081726, -0.17505763471126556, -0.08437485247850418, -0.004871536046266556, -0.08776666969060898, 0.18941742181777954, 0.5273296236991882, 0.22899101674556732, 0.1323235183954239, -0.2060561329126358, 0.003452647477388382, 0.04038085788488388, 0.2258114069700241, 0.1474783569574356, -0.1986774504184723, 0.5218012928962708, -0.1402285099029541, -0.14443053305149078, -0.11062874644994736, -0.062440384179353714, -0.030777273699641228, 0.04145461320877075, -0.30831557512283325, 0.14932014048099518, -0.4118691086769104, -0.14908051490783691, 0.1545904278755188, -0.4789956510066986, 0.16082513332366943, 0.050788577646017075, 0.14686012268066406, -0.379557341337204, 0.3797570765018463, -0.21483929455280304, -0.25184762477874756, 0.04741411656141281, -0.15966424345970154, 0.003558846190571785, -0.10381421446800232, 0.20068331062793732, 0.03342288359999657, 0.18284721672534943, -0.27734413743019104, 0.34505537152290344, 0.14872269332408905, -0.020661134272813797, 0.2194085717201233, -0.07780236005783081, -0.0887993723154068, 0.019590966403484344, 0.20366054773330688, 0.46278703212738037, 0.03283446654677391, -0.1289997696876526, -0.05458572879433632, -0.021174922585487366, -0.01577964425086975, 0.4583267271518707, 0.585155189037323, -0.15596900880336761, 0.11339746415615082, 0.008687594905495644, -0.12361115217208862, -0.2504187822341919, 0.08586635440587997, -0.23766404390335083, 0.26006513833999634, 0.18843242526054382, 0.13395169377326965, -0.11736160516738892, -0.09684991836547852, -0.03227261081337929, -0.01310139149427414, -0.18070639669895172, -0.19834166765213013, -0.12202237546443939, 0.20725181698799133, 0.3544188439846039, -0.07257777452468872, 0.35447925329208374, 0.04009263217449188, -0.14653898775577545, -0.05551636219024658, 0.13100817799568176, -0.1932581663131714, -0.1521814465522766, 0.18972857296466827, 0.08848924934864044, -0.07603190094232559, -0.28123483061790466, 0.19369181990623474, 0.07757540792226791, 0.053648509085178375, 0.0027688457630574703, 0.39728695154190063, 0.10211899876594543, -0.10335403680801392, 0.09178478270769119, 0.22860467433929443, -0.06919389963150024, 0.2871965765953064, 0.1367453634738922, -0.036908745765686035, 0.03376415744423866, -0.1303209811449051, 0.34659072756767273, 0.5613608360290527, -0.3195125162601471, 0.08705732226371765, 0.06035389006137848, 0.1136227399110794, -0.08771221339702606, -0.07516130059957504, -0.18873955309391022, -0.0791139006614685, 0.15039417147636414, 0.3806031048297882, 0.15324051678180695, -0.0005506500601768494, 0.23319120705127716, -0.17818403244018555, 0.22470413148403168, -0.140330508351326, 0.2656402885913849, 0.1785852611064911, -0.5137941837310791, -0.0015259385108947754, 0.01604803465306759, -0.11671052873134613, -0.050251491367816925, -0.21258561313152313, 0.1081228032708168, 0.38775479793548584, -0.1742401421070099, -0.0021759793162345886, 0.2700388431549072, -0.0376042015850544, 0.24771220982074738, 0.01776765286922455, 0.04504577815532684, 0.115028977394104, 0.19821065664291382, 0.021995075047016144, -0.29832151532173157, -0.10206698626279831, 0.02204386331140995, 0.10374823212623596, 0.19412031769752502, -0.05612361803650856, -0.5915217399597168, 0.12249632924795151, -0.013458020985126495, -0.008896132931113243, -0.03073767200112343, -0.31996089220046997, -0.137968048453331, 0.42213886976242065, -0.09408646821975708, 0.10837644338607788, 0.01608610898256302, -0.004675228148698807, 0.14924806356430054, -0.24735108017921448, 0.13810592889785767, 0.14155006408691406, -0.13312986493110657, -0.10588714480400085, 0.3367278277873993, 0.21190543472766876, 0.1737886369228363, 0.04146222025156021, 0.12408896535634995, 0.10580690205097198, 0.0258705522865057, -0.037323158234357834, -0.0034142080694437027, -0.18750670552253723, -0.028291136026382446, 0.23689188063144684, 0.11013391613960266, -0.008677765727043152, -0.033911045640707016, 0.022874679416418076, -0.4548305869102478, -0.48388004302978516, 0.6007451415061951, 0.2592447102069855, -0.08207591623067856, -0.014761045575141907, 0.2843904197216034, -0.5546202063560486, -0.05961926281452179, 0.5772902965545654, -0.2450549602508545, 0.19323647022247314, 0.08570708334445953, 0.05806800723075867, -0.04968193545937538, 0.37671491503715515, 0.0007337331771850586, 0.32116901874542236, -0.42180028557777405, -0.022109977900981903, -0.537820041179657, 0.004297591745853424, 0.20813897252082825, -0.22436226904392242, 0.0643402487039566, 0.2803441286087036, 0.18861326575279236, 0.044827401638031006, -0.2964896559715271, -0.020447734743356705, -0.29876264929771423, 0.25300052762031555, -0.3674237132072449, -0.28977343440055847, -0.628619372844696, 0.29972729086875916, -0.005221972241997719, -0.35414919257164, 0.2281886637210846, 0.025562040507793427, -0.13334515690803528, 0.08006846904754639, 0.1397833675146103, 0.6340215802192688, -0.014941543340682983, 0.20142602920532227, -0.06791114807128906, 0.628883957862854, 0.10664341598749161, -0.027564041316509247, -0.043148573487997055, 0.168259397149086, -0.44175779819488525, 0.31227391958236694, -0.1764911413192749, 0.04921486973762512, -0.12167581170797348, 0.05162598192691803, -0.27473631501197815, -0.30185845494270325, 0.2782525420188904, -0.22090841829776764, -0.1392558068037033, 0.004805725067853928, -0.20800578594207764, -0.0034629993606358767, 0.5734319686889648, 0.4601009786128998, -0.2141452133655548, -0.06459230929613113, -0.3430750370025635, 0.0005016233772039413, 0.43242183327674866, -0.23767514526844025, -0.1007838249206543, 0.08557801693677902, 0.28291842341423035, -0.16744881868362427, 0.016522221267223358, -0.39631935954093933, 0.009765639901161194, 0.4230063259601593, -0.16190844774246216, -0.08199591934680939, 0.46975889801979065, 0.46820464730262756, -0.006092481315135956, -0.23700857162475586, 0.5203828811645508, -0.15192455053329468, -0.1797896921634674, -0.25578564405441284, -0.3809349536895752 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
> Regarding the tfds tests, I don't really see a point in keeping them because: > > 1. If you provide a fake data structure, IMO there is no need for each dataset to have an individual test file because (I think) most datasets have the same functions `_split_generators` and `_generate_examples` for which you can just test the functionality in a common test file. For special functions like these beam / pipeline functionality you probably need an extra test file. But @mariamabarham I think you have seen more than I have here as well > 2. The dataset test design is very much intertwined with the download manager design and contains a lot of code. I would like to seperate the tests into a) tests for downloading in general b) tests for post download data set pre-processing. Since we are going to change the download code anyways quite a lot, my plan was to focus on b) first. For _split_generator, yes. But I'm not sure for _generate_examples because there is lots of things that should be taken into account such as feature names and types, data format (json, jsonl, csv, tsv,..)
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
191
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. > Regarding the tfds tests, I don't really see a point in keeping them because: > > 1. If you provide a fake data structure, IMO there is no need for each dataset to have an individual test file because (I think) most datasets have the same functions `_split_generators` and `_generate_examples` for which you can just test the functionality in a common test file. For special functions like these beam / pipeline functionality you probably need an extra test file. But @mariamabarham I think you have seen more than I have here as well > 2. The dataset test design is very much intertwined with the download manager design and contains a lot of code. I would like to seperate the tests into a) tests for downloading in general b) tests for post download data set pre-processing. Since we are going to change the download code anyways quite a lot, my plan was to focus on b) first. For _split_generator, yes. But I'm not sure for _generate_examples because there is lots of things that should be taken into account such as feature names and types, data format (json, jsonl, csv, tsv,..)
[ -0.20603743195533752, 0.008497312664985657, -0.1576029658317566, 0.25219476222991943, 0.01976742222905159, 0.14776930212974548, 0.2809949815273285, 0.3557734191417694, -0.09782280027866364, -0.07113480567932129, -0.1395081728696823, -0.12139742821455002, -0.2296828329563141, 0.40494680404663086, 0.28974485397338867, -0.20208942890167236, -0.026775188744068146, 0.246493861079216, -0.3596203625202179, 0.15106511116027832, -0.013764608651399612, -0.07577380537986755, 0.08168052136898041, 0.03362704813480377, -0.04075093939900398, -0.3111536502838135, -0.376453697681427, 0.08831723034381866, -0.17102313041687012, -0.5075045228004456, 0.178849995136261, 0.49420827627182007, 0.10635118186473846, 0.34295183420181274, -0.00010996585479006171, -0.013775061815977097, 0.13817539811134338, -0.08834860473871231, -0.17239108681678772, 0.2548050880432129, -0.1299205720424652, 0.02811778150498867, 0.1346685141324997, -0.261058509349823, 0.21973353624343872, -0.35309821367263794, 0.023435719311237335, 0.08286380767822266, 0.42325258255004883, 0.3701342046260834, 0.16761600971221924, 0.029109541326761246, -0.2497778683900833, 0.1700248420238495, 0.1701604127883911, 0.3176169693470001, 0.01461455412209034, 0.11552974581718445, 0.33799833059310913, 0.025956613942980766, -0.11834076792001724, 0.03765063360333443, 0.0425349622964859, 0.23833312094211578, 0.3906583786010742, -0.1179826483130455, 0.10657736659049988, -0.4269099235534668, -0.32083946466445923, 0.355170339345932, 0.7890239357948303, -0.3749202489852905, -0.27524712681770325, -0.32023876905441284, -0.15693940222263336, 0.01926356367766857, -0.021298304200172424, -0.1731480211019516, -0.13698118925094604, 0.09472449123859406, -0.24062521755695343, -0.20884041488170624, 0.03470683842897415, -0.01587621122598648, -0.2886073589324951, 0.13489095866680145, 0.1097857728600502, 0.00440114364027977, -0.10766871273517609, 0.07473699748516083, 0.4327998161315918, -0.5135493874549866, -0.024900849908590317, 0.09393161535263062, -0.029946502298116684, -0.4629276990890503, -0.09019482880830765, -0.09109910577535629, 0.2916259765625, 0.3865950107574463, -0.09699804335832596, -0.06257672607898712, -0.027553774416446686, -0.2540602385997772, 0.18918471038341522, 0.3662708103656769, 0.13427221775054932, 0.3193568289279938, 0.22573760151863098, 0.16640563309192657, -0.0665617287158966, 0.07847077399492264, 0.04333474859595299, -0.014310471713542938, 0.05780768766999245, 0.14040794968605042, 0.20139917731285095, -0.024936873465776443, 0.13637179136276245, -0.3152513802051544, 0.18917185068130493, -0.2570769786834717, -0.006320125423371792, 0.13884013891220093, 0.14824223518371582, 0.195734441280365, 0.03737800568342209, 0.0717727392911911, 0.03180976212024689, 0.052803073078393936, -0.11458967626094818, 0.0979914516210556, -0.10681265592575073, 0.023598574101924896, 0.15614694356918335, 0.2041613757610321, 0.08711927384138107, -0.06616181880235672, -0.020562447607517242, -0.04467005655169487, 0.4848451018333435, -0.04634051397442818, 0.27461445331573486, 0.2917066514492035, -0.11349897086620331, 0.05568602681159973, -0.051103051751852036, 0.1605469435453415, -0.3149794042110443, 0.23788291215896606, -0.07245651632547379, -0.42593109607696533, 0.2800268232822418, 0.21297995746135712, -0.4015970826148987, -0.09622588753700256, -0.25757431983947754, 0.03399752825498581, -0.21016180515289307, -0.30265140533447266, 0.22188952565193176, -0.2769055962562561, -0.08246363699436188, -0.06452957540750504, -0.053463779389858246, 0.6823164820671082, -0.18224786221981049, 0.0874139815568924, -0.2426721602678299, -0.4774757921695709, 0.02671678364276886, -0.18107487261295319, -0.21112458407878876, 0.5666980743408203, -0.37069523334503174, 0.07258141040802002, 0.4897264242172241, -0.5017217397689819, 0.18838588893413544, 0.5705184936523438, -0.06943346560001373, 0.3036224842071533, 0.254284530878067, -0.15638156235218048, 0.20435072481632233, -0.2651224434375763, -0.45457127690315247, -0.046197615563869476, -0.35936543345451355, 0.23967066407203674, -0.029703309759497643, -0.14156067371368408, 0.18184107542037964, 0.10486368834972382, 0.06725393980741501, -0.06503548473119736, -0.30340537428855896, -0.08794282376766205, 0.23011478781700134, -0.09872892498970032, 0.029143603518605232, -0.2255248874425888, 0.11557109653949738, -0.041902221739292145, -0.12408314645290375, -0.07368337363004684, -0.7075150609016418, 0.3667892515659332, 0.03194451332092285, 0.0007851794362068176, 0.10106398165225983, -0.3497951030731201, -0.28266942501068115, -0.32532358169555664, -0.0713922381401062, -0.37833982706069946, 0.13224032521247864, 0.04190345108509064, -0.18913885951042175, -0.31661486625671387, -0.2584037482738495, 0.21881462633609772, -0.11801208555698395, 0.20909924805164337, 0.030377276241779327, 0.0833020955324173, -0.018140314146876335, 0.07458383589982986, 0.010397780686616898, 0.013275373727083206, -0.20064523816108704, -0.46989890933036804, -0.1534075140953064, 0.5001848936080933, 0.4102690815925598, 0.04933574050664902, 0.15331628918647766, 0.3399389088153839, 0.2056766301393509, 0.09401382505893707, -0.08454842120409012, 0.05642944574356079, 0.03351370617747307, -0.1283402442932129, -0.17582175135612488, 0.15979252755641937, -0.019173819571733475, 0.0014832690358161926, 0.04756072908639908, -0.09565483033657074, 0.03970307856798172, -0.22601750493049622, -0.10000034421682358, -0.04737626761198044, 0.018868476152420044, 0.00026114843785762787, 0.24330933392047882, 0.399577796459198, -0.05006419122219086, 0.2880926728248596, 0.328421026468277, -0.38009437918663025, -0.10778626054525375, 0.10179077088832855, 0.077525794506073, -0.17815548181533813, 0.2080419808626175, 0.5886821746826172, 0.7104840278625488, -0.015032045543193817, 0.30594971776008606, 0.15651334822177887, 0.3100014925003052, -0.1896428018808365, 0.23522648215293884, 0.12417778372764587, -0.007852384820580482, 0.20437419414520264, -0.3103298544883728, -0.05818823352456093, -0.04847542569041252, -0.2567548155784607, 0.2031058818101883, 0.20928768813610077, -0.5159071087837219, -0.10792341083288193, -0.12015419453382492, -0.2738305926322937, -0.27802902460098267, 0.28961658477783203, 0.07497426867485046, -0.25964269042015076, 0.2021101862192154, -0.308093786239624, -0.2699573338031769, 0.05879693478345871, -0.11779513955116272, 0.4325873553752899, -0.1323758363723755, -0.17323419451713562, -0.39461550116539, -0.11533108353614807, -0.21827548742294312, 0.16888578236103058, 0.44995391368865967, 0.33370667695999146, 0.37071287631988525, -0.2738431692123413, -0.09719386696815491, -0.13292133808135986, -0.18165424466133118, 0.3627871572971344, -0.11674483120441437, 0.19536222517490387, 0.36188119649887085, 0.3091147541999817, 0.1826263666152954, -0.10373684018850327, -0.32266783714294434, -0.2541353702545166, -0.3746638596057892, -0.1540198177099228, 0.07884572446346283, 0.08805295079946518, -0.14837650954723358, -0.6254611611366272, -0.2406463474035263, -0.27791425585746765, -0.07429669797420502, -0.11475767195224762, 0.18915633857250214, -0.03072771430015564, -0.2608892619609833, -0.0626440942287445, -0.12355639040470123, 0.03204280138015747, 0.1980661153793335, -0.35719260573387146, 0.03611064702272415, -0.2247229367494583, -0.09161064028739929, -0.018492821604013443, -0.18474656343460083, 0.12176166474819183, 0.02023894153535366, -0.3465934991836548, -0.38621798157691956, -0.0012516286224126816, 0.09531261026859283, -0.19663359224796295, -0.07907294481992722, 0.21058443188667297, 0.10541702806949615, 0.015441348776221275, -0.05398303642868996, 0.41783350706100464, -0.03252101689577103, -0.05183466523885727, -0.03209712356328964, -0.16648215055465698, 0.17581850290298462, -0.17174440622329712, 0.5233320593833923, 0.21511460840702057, -0.015601005405187607, -0.19169881939888, 0.019019950181245804, 0.09601736068725586, 0.029427628964185715, -0.10912814736366272, 0.24111317098140717, 0.0644688755273819, -0.11604994535446167, 0.2710430920124054, -0.1253361999988556, 0.33698979020118713, 0.02817903459072113, 0.361563116312027, -0.20565283298492432, -0.3710866868495941, 0.2775269150733948, -0.3533581495285034, 0.2396361231803894, -0.15303224325180054, -0.12889263033866882, -0.057424966245889664, 0.06306423246860504, 0.02157418802380562, 0.40540820360183716, 0.19708968698978424, -0.07156890630722046, -0.40893998742103577, 0.2963138222694397, -0.09375255554914474, 0.15897122025489807, 0.29865339398384094, -0.06572165340185165, 0.18040908873081207, -0.023230168968439102, -0.11402308940887451, -0.024732859805226326, 0.5366576313972473, -0.15612266957759857, -0.032751984894275665, 0.20986978709697723, -0.20653320848941803, 0.24929355084896088, -0.011168759316205978, -0.24190016090869904, -0.27815502882003784, 0.19730040431022644, -0.004536963999271393, -0.42974716424942017, -0.6202557682991028, 0.2576061487197876, 0.10785486549139023, -0.0550423339009285, -0.13981150090694427, 0.18925705552101135, -0.3566622734069824, -0.1725316196680069, -0.05802211910486221, 0.19529205560684204, -0.2959090769290924, -0.4672388434410095, -0.14023201167583466, 0.10261102020740509, -0.03173492103815079, 0.25722646713256836, 0.12905174493789673, 0.05936138704419136, 0.021570343524217606, 0.05574256554245949, 0.09416010975837708, -0.29813092947006226, 0.2525629699230194, 0.17672592401504517, -0.19645307958126068, 0.01330837607383728, 0.027496453374624252, -0.21849031746387482, 0.11179400235414505, 0.22613263130187988, -0.23191314935684204, -0.22141629457473755, -0.3424852788448334, -0.013573013246059418, -0.29479965567588806, 0.34709423780441284, 0.29583975672721863, -0.08414287865161896, 0.0582854263484478, -0.5114721059799194, 0.3156287968158722, 0.07805998623371124, -0.24887415766716003, 0.3551103472709656, 0.003442227840423584, -0.3699902892112732, 0.2116238921880722, 0.014272570610046387, 0.7233927249908447, -0.06749217212200165, 0.2801107168197632, 0.3486007750034332, -0.07866460084915161, 0.31035932898521423, -0.3633207678794861, -0.18306072056293488, -0.10259875655174255, -0.1885947734117508, -0.04266207665205002, -0.11712223291397095, 0.28883039951324463, 0.2996141314506531, -0.18456891179084778, 0.20966584980487823, 0.09532970190048218, 0.3056495189666748, 0.2835307717323303, 0.5509355664253235, -0.1815064251422882, 0.03336971253156662, 0.27037686109542847, 0.09951110184192657, -0.1195201575756073, -0.0361027829349041, -0.21174165606498718, -0.02187863364815712, 0.008194338530302048, 0.1313360333442688, -0.00487111508846283, -0.2370525598526001, -0.17337386310100555, 0.08078549802303314, -0.10433503985404968, -0.0792837142944336, 0.2178913950920105, 0.39155542850494385, 0.14443746209144592, -0.02709316834807396, -0.10115627944469452, 0.25231075286865234, -0.054826222360134125, 0.34765148162841797, 0.03932521119713783, -0.024928059428930283, 0.5227312445640564, -0.17454081773757935, -0.2607118785381317, -0.04764788597822189, -0.20042872428894043, 0.016962699592113495, -0.03942105174064636, -0.36986804008483887, 0.04017975553870201, -0.6099146008491516, 0.05034872516989708, -0.02520996332168579, -0.21809738874435425, 0.028022635728120804, 0.08943967521190643, 0.0968962013721466, -0.3334670960903168, 0.46826714277267456, -0.32977184653282166, -0.16594763100147247, -0.0933455377817154, -0.2699722349643707, -0.038018450140953064, -0.23346379399299622, 0.18363802134990692, -0.05211256816983223, 0.10851025581359863, -0.32334262132644653, 0.41882383823394775, 0.12453528493642807, -0.04251200333237648, 0.3271077573299408, -0.21195855736732483, -0.12137097865343094, -0.023292766883969307, 0.3986404836177826, 0.3021097779273987, 0.10460363328456879, -0.04228510335087776, 0.14991189539432526, -0.31487956643104553, 0.07531992346048355, 0.3002397119998932, 0.546104907989502, -0.37017786502838135, 0.30978935956954956, 0.04709787666797638, 0.28777405619621277, -0.3526945114135742, 0.04709383845329285, -0.14043301343917847, 0.17100609838962555, 0.10857202112674713, -0.054014526307582855, -0.08588500320911407, -0.08850456774234772, 0.08455569297075272, -0.14918476343154907, -0.33666473627090454, -0.2539709806442261, -0.05797449126839638, 0.16171306371688843, 0.0948653519153595, -0.03310013562440872, 0.2764403522014618, 0.07449480146169662, 0.01450387667864561, -0.0067374370992183685, 0.31150662899017334, -0.34558621048927307, 0.10680335760116577, 0.32603219151496887, 0.09668644517660141, 0.005927078425884247, -0.3995317220687866, 0.24473066627979279, -0.04312996566295624, 0.2266835868358612, 0.0551677830517292, 0.15443933010101318, -0.08878045529127121, -0.200800821185112, 0.19924665987491608, 0.2322554588317871, 0.19981518387794495, 0.17655271291732788, 0.17497606575489044, 0.20435017347335815, -0.048567939549684525, -0.015691012144088745, 0.21932552754878998, 0.6111880540847778, -0.15894071757793427, 0.010770926252007484, -0.2054508924484253, 0.18140006065368652, -0.05562165379524231, 0.27489224076271057, 0.09425719082355499, -0.03504752740263939, 0.1394268125295639, 0.3084011971950531, 0.08608587086200714, 0.015581399202346802, 0.18385547399520874, 0.04866423457860947, 0.5032895803451538, 0.04232119023799896, 0.3408019542694092, 0.33229225873947144, -0.42452123761177063, -0.017108973115682602, 0.22124548256397247, 0.012367727234959602, 0.02475043386220932, 0.00039463862776756287, 0.21748656034469604, 0.5877025127410889, -0.3155684471130371, 0.06022108346223831, 0.16187021136283875, -0.23232826590538025, 0.2485383301973343, 0.12549671530723572, 0.08450493961572647, -0.11714913696050644, 0.1672423630952835, -0.0731935128569603, -0.15169627964496613, -0.3535348176956177, 0.1318492889404297, 0.10996823012828827, 0.296161025762558, 0.07767695188522339, -0.42440131306648254, -0.02176288142800331, -0.24582304060459137, -0.15499240159988403, -0.0331927053630352, -0.23866476118564606, 0.021635599434375763, 0.23617954552173615, -0.2348642796278, 0.07972288876771927, 0.07731254398822784, -0.24838286638259888, 0.12268667668104172, -0.1374807357788086, 0.022711580619215965, 0.3750482201576233, -0.064869225025177, 0.06957163661718369, 0.36929851770401, 0.06575559824705124, -0.09945634007453918, -0.3451770544052124, -0.12383466213941574, -0.05556446686387062, 0.008058620616793633, 0.09796186536550522, 0.02298695594072342, -0.31500741839408875, 0.07933269441127777, 0.247578427195549, 0.2159033715724945, -0.08332019299268723, -0.058581482619047165, 0.0798620730638504, -0.5889725685119629, -0.45408710837364197, 0.6458625793457031, 0.3979891538619995, 0.0396701917052269, 0.08025729656219482, 0.09851298481225967, -0.3361985385417938, -0.07536432892084122, 0.38775578141212463, -0.24049820005893707, 0.04518173635005951, 0.11556442826986313, 0.10195618867874146, 0.029374685138463974, 0.39235013723373413, 0.07627000659704208, 0.44272300601005554, -0.47707438468933105, -0.3007366955280304, -0.6786853075027466, -0.06931374222040176, 0.19733555614948273, -0.21543307602405548, 0.2547333538532257, -0.03486988693475723, 0.26744720339775085, -0.05926143378019333, -0.19332487881183624, -0.09882505238056183, -0.11782273650169373, 0.011864237487316132, -0.27444201707839966, -0.1786097288131714, -0.5298833250999451, 0.21309776604175568, -0.13018295168876648, -0.2622124254703522, 0.17301717400550842, 0.0027358923107385635, -0.03486254811286926, 0.2897893786430359, -0.07366690784692764, 0.7453405261039734, -0.3530816435813904, 0.3055264353752136, -0.002894790843129158, 0.4953724443912506, 0.08230963349342346, -0.024026380851864815, 0.04672619327902794, 0.15162426233291626, -0.08129281550645828, 0.03978633135557175, -0.09292267262935638, 0.17904780805110931, -0.07757559418678284, 0.21939559280872345, -0.2916775643825531, -0.028447706252336502, 0.13782833516597748, 0.19361726939678192, -0.28417834639549255, 0.006948435679078102, -0.06723468005657196, -0.06564529985189438, 0.6801319718360901, 0.4910874366760254, -0.2911764979362488, 0.02923518605530262, -0.36724066734313965, -0.12659576535224915, 0.42131197452545166, 0.31921154260635376, -0.11776776611804962, -0.08802664279937744, 0.30131980776786804, -0.14935284852981567, 0.21965651214122772, -0.4872479736804962, -0.021000459790229797, 0.4380389451980591, -0.1233287826180458, -0.05594237521290779, 0.3825559616088867, 0.5221452116966248, -0.09330911189317703, -0.10567314922809601, 0.48176485300064087, -0.04266657680273056, 0.13560029864311218, -0.23292787373065948, -0.20286473631858826 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
Sounds good to me! When testing, we could thus just override the prefix in the URL inside the download manager to have them point to the test directory on our S3. Cc @lhoestq
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
33
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. Sounds good to me! When testing, we could thus just override the prefix in the URL inside the download manager to have them point to the test directory on our S3. Cc @lhoestq
[ 0.0018973909318447113, -0.15773627161979675, -0.11945529282093048, 0.26860058307647705, 0.008193010464310646, -0.10693247616291046, 0.3385449945926666, 0.2209128439426422, -0.07158451527357101, 0.11005488783121109, -0.005951249040663242, 0.1953810304403305, -0.1719277799129486, 0.3212037980556488, 0.10852161049842834, 0.1347951889038086, 0.06448765099048615, 0.34515780210494995, -0.3058020770549774, 0.1132083535194397, -0.1604062169790268, -0.0027450118213891983, 0.020549558103084564, -0.03148724138736725, 0.02017705701291561, 0.04053672403097153, -0.3187080919742584, 0.09217756986618042, -0.4533003568649292, -0.6467124223709106, 0.29518982768058777, 0.3361755907535553, 0.06427670270204544, 0.629549503326416, -0.00010778182331705466, -0.15505021810531616, 0.5058149695396423, 0.007119337096810341, -0.4577234983444214, 0.0817907452583313, -0.2845321297645569, 0.073973149061203, 0.08260438591241837, -0.35555753111839294, 0.05749820917844772, 0.14836302399635315, 0.08744006603956223, -0.06833019852638245, 0.24233654141426086, 0.24763977527618408, 0.20421119034290314, 0.21106337010860443, -0.4742671251296997, -0.113409124314785, 0.1903306543827057, 0.3193553686141968, -0.07148055732250214, 0.3337264060974121, 0.2566792964935303, 0.09863947331905365, 0.014353081583976746, 0.02604071982204914, -0.017193682491779327, 0.36934664845466614, 0.36147603392601013, -0.05460383743047714, 0.02337723597884178, -0.2795148491859436, -0.36856308579444885, 0.2745988965034485, 0.8527150750160217, -0.44374987483024597, -0.3631521165370941, -0.14132511615753174, -0.06159853935241699, 0.16211670637130737, 0.06688150018453598, -0.0640491470694542, -0.23883873224258423, 0.09988865256309509, -0.25611069798469543, -0.1839032918214798, -0.14532893896102905, 0.01820198819041252, -0.4425484538078308, 0.35196638107299805, -0.19555680453777313, -0.006755463778972626, -0.05881666764616966, 0.13743148744106293, 0.5312894582748413, -0.4119929373264313, 0.029085218906402588, 0.07829195261001587, -0.054345112293958664, -0.4659896790981293, -0.11403080075979233, -0.11222054809331894, 0.24040254950523376, 0.2563754916191101, -0.07921356707811356, 0.00942511297762394, 0.19739578664302826, 0.022303808480501175, 0.10601256787776947, 0.14955207705497742, 0.1662382185459137, 0.18975260853767395, 0.24081270396709442, 0.5425777435302734, 0.044037219136953354, -0.009768657386302948, -0.154335618019104, -0.12648367881774902, -0.11873231828212738, 0.07621956616640091, 0.3731883764266968, 0.00795326754450798, -0.05965687707066536, -0.17440533638000488, 0.12261510640382767, -0.13524386286735535, -0.09109491854906082, 0.3291267454624176, -0.06963981688022614, -0.056366078555583954, -0.09621131420135498, 0.03919610381126404, -0.017260868102312088, 0.06587771326303482, -0.08133449405431747, 0.13564398884773254, -0.24504144489765167, 0.0314469039440155, 0.12929612398147583, 0.12648136913776398, 0.17991633713245392, -0.07685641199350357, -0.046070799231529236, -0.01832680217921734, 0.45567819476127625, 0.024055257439613342, 0.21660509705543518, 0.2124413549900055, -0.020293112844228745, 0.21058735251426697, 0.0038857869803905487, 0.101768359541893, -0.3053138256072998, 0.0785718709230423, -0.09816580265760422, -0.33580857515335083, 0.039837151765823364, 0.2804182469844818, -0.5078555941581726, -0.12185482680797577, -0.172093003988266, -0.18645517528057098, -0.3485359847545624, -0.23004268109798431, 0.39532047510147095, 0.04515017569065094, 0.024670425802469254, 0.011545323766767979, 0.09242210537195206, 0.641383171081543, 0.029241394251585007, -0.04417093098163605, -0.3211101293563843, -0.3114989101886749, 0.08509610593318939, -0.09467697143554688, -0.19184057414531708, 0.17358455061912537, -0.41247519850730896, 0.26815134286880493, 0.41261106729507446, -0.46659401059150696, -0.03327801823616028, 0.4067211151123047, -0.24835753440856934, 0.07953646034002304, 0.37181517481803894, -0.10467395186424255, 0.08020272850990295, -0.15224221348762512, -0.43574395775794983, 0.1241145208477974, 0.0442570224404335, 0.06336278468370438, -0.1063072681427002, -0.08592475205659866, -0.09394106268882751, 0.14638203382492065, -0.06137688085436821, 0.044752467423677444, -0.06468021124601364, -0.11561328917741776, 0.16439184546470642, -0.16757801175117493, -0.005033768713474274, 0.053491219878196716, 0.36889714002609253, -0.028001859784126282, -0.1315445750951767, 0.12141559273004532, -0.4900693893432617, 0.2743360102176666, 0.024318065494298935, 0.16759830713272095, -0.044207796454429626, -0.3276709318161011, -0.36459073424339294, -0.1456468552350998, -0.1197274774312973, -0.2755025029182434, 0.20717060565948486, 0.2884228825569153, -0.012590061873197556, -0.22855664789676666, -0.05999082326889038, -0.03865321725606918, 0.044381991028785706, 0.16541172564029694, -0.12867717444896698, 0.06486070901155472, -0.1198802962899208, 0.2614009380340576, 0.031038932502269745, -0.27855345606803894, -0.061800748109817505, -0.3506487309932709, 0.026065068319439888, 0.3416425585746765, 0.29539698362350464, 0.17203444242477417, 0.38343796133995056, 0.33574122190475464, -0.033299677073955536, -0.06872345507144928, 0.14022059738636017, 0.08775819838047028, 0.14189238846302032, 0.08776218444108963, -0.3411559462547302, 0.19566510617733002, -0.0422365702688694, -0.08077099174261093, -0.017665274441242218, -0.1726912558078766, 0.15176083147525787, -0.27821189165115356, -0.31800565123558044, 0.04450320452451706, -0.03035667911171913, 0.298894464969635, 0.08848512172698975, 0.4173331558704376, -0.004546113312244415, -0.06416823714971542, 0.2934878170490265, -0.5350005626678467, 0.11745701730251312, 0.0027493834495544434, -0.19694676995277405, -0.21833637356758118, 0.14337150752544403, 0.6629083156585693, 0.6994984745979309, 0.005601918324828148, 0.5436473488807678, 0.16813524067401886, 0.2236396223306656, -0.19002003967761993, 0.3342002034187317, 0.21036329865455627, 0.06782113015651703, 0.08645758032798767, -0.22738255560398102, -0.13260561227798462, -0.06408543139696121, -0.38333791494369507, 0.32194894552230835, 0.07275523245334625, -0.4183677136898041, 0.1322423219680786, 0.06723735481500626, -0.18050694465637207, -0.2667511999607086, 0.06434120237827301, 0.10980847477912903, -0.2193109542131424, 0.06424427777528763, -0.14023634791374207, -0.1996987760066986, -0.00588090717792511, -0.05760965496301651, 0.5859143137931824, -0.12381803244352341, -0.35894855856895447, -0.360118567943573, 0.011071876622736454, -0.14095881581306458, 0.16639959812164307, 0.19883091747760773, 0.20134936273097992, 0.23757408559322357, -0.48795264959335327, -0.011475794948637486, -0.4226648509502411, -0.15945450961589813, 0.2532511353492737, 0.08452682197093964, 0.30103665590286255, 0.5311105847358704, 0.21965071558952332, 0.23407529294490814, 0.05354999005794525, -0.0862158015370369, -0.2666555345058441, -0.3634374737739563, -0.03616119176149368, -0.019579874351620674, 0.048740096390247345, -0.09117672592401505, -0.5021460056304932, -0.0665997788310051, -0.26041147112846375, 0.03207873925566673, -0.15617965161800385, 0.029184715822339058, -0.12330212444067001, -0.03449825197458267, 0.07826321572065353, -0.2933228611946106, 0.12243504822254181, -0.07520227134227753, -0.5028746724128723, 0.10274378955364227, -0.1098254919052124, -0.03510859236121178, -0.05511012673377991, -0.22573783993721008, 0.2655316889286041, -0.1796141415834427, -0.44318121671676636, -0.5126692056655884, 0.0912465751171112, 0.15247929096221924, 0.014868013560771942, 0.08162134885787964, 0.19041882455348969, -0.007752110715955496, -0.16805273294448853, -0.11522333323955536, 0.15106827020645142, -0.33448296785354614, -0.04234721511602402, 0.08131363987922668, -0.1421128213405609, 0.2334440052509308, 0.10757789015769958, 0.46994835138320923, 0.23547053337097168, -0.1764167696237564, 0.07988233119249344, -0.11999698728322983, 0.267453134059906, 0.23354753851890564, 0.03953348100185394, 0.016296662390232086, -0.010280221700668335, -0.2868933081626892, 0.22846540808677673, -0.24793961644172668, 0.11107034236192703, 0.04112698882818222, 0.09895657002925873, -0.23680323362350464, -0.08944134414196014, 0.18824191391468048, -0.24478012323379517, 0.14605417847633362, -0.14720304310321808, -0.17017370462417603, 0.06382232904434204, 0.24975186586380005, 0.2600696086883545, 0.29122817516326904, 0.11299652606248856, -0.11964788287878036, -0.4097464382648468, 0.0031490593682974577, -0.1898253858089447, 0.15351305902004242, 0.029963543638586998, 0.16719867289066315, 0.16458909213542938, -0.08762980997562408, -0.015407569706439972, -0.20176611840724945, 0.7120833396911621, -0.2696414887905121, -0.022656522691249847, 0.06606896221637726, -0.2724689841270447, -0.1959100067615509, -0.040193427354097366, -0.43433427810668945, -0.05255720391869545, 0.06675649434328079, 0.19150912761688232, -0.214635968208313, -0.3283713757991791, 0.05667417496442795, -0.09444835036993027, -0.025819551199674606, -0.21097102761268616, -0.07140420377254486, -0.3725964426994324, -0.19148847460746765, 0.06796973198652267, 0.14655441045761108, -0.310314804315567, -0.22575275599956512, -0.12787677347660065, 0.04425637423992157, 0.3093487322330475, 0.04398142173886299, 0.31090909242630005, -0.00625358521938324, 0.050408538430929184, 0.046516794711351395, 0.14743547141551971, -0.1907764971256256, 0.3881779909133911, 0.5314520597457886, -0.0672946572303772, -0.1470298171043396, 0.1542016863822937, 0.06569408625364304, 0.25087442994117737, 0.1367240995168686, 0.09017909318208694, -0.0736675038933754, -0.1957353800535202, -0.02798619121313095, -0.3710257411003113, 0.18184484541416168, 0.3314691483974457, 0.07941518723964691, 0.14316996932029724, -0.3558729290962219, 0.3723117709159851, 0.10909481346607208, -0.29567503929138184, 0.026087870821356773, -0.06761552393436432, -0.25226059556007385, 0.12970757484436035, 0.21453562378883362, 0.7540428042411804, 0.020402293652296066, 0.522144079208374, 0.31404754519462585, -0.09932425618171692, 0.32871973514556885, -0.11119750887155533, -0.14452287554740906, -0.27435222268104553, -0.17713534832000732, -0.08587188273668289, -0.31796208024024963, 0.1309760957956314, 0.07343161851167679, -0.45715779066085815, 0.2165840119123459, -0.12926888465881348, 0.21598073840141296, 0.2214832305908203, 0.5226105451583862, -0.3421829044818878, 0.090940922498703, 0.11185123026371002, 0.19612763822078705, 0.12649038434028625, 0.10694064199924469, -0.17225173115730286, -0.009244071319699287, -0.04103989154100418, -0.03629683703184128, -0.0384872741997242, -0.07576940953731537, -0.01927853561937809, -0.18376153707504272, -0.02151278406381607, 0.03529568016529083, 0.1725611686706543, 0.21952317655086517, 0.025085121393203735, 0.1264193207025528, -0.1527789682149887, 0.13709494471549988, -0.025201402604579926, 0.18918932974338531, 0.0717693641781807, -0.1516566276550293, 0.24816668033599854, -0.10912831127643585, -0.2806850075721741, 0.09427708387374878, -0.011291365139186382, 0.025536440312862396, 0.23655742406845093, -0.2403944879770279, 0.019108977168798447, -0.5659804344177246, -0.10245965421199799, -0.2427254617214203, -0.34131065011024475, -0.10413224995136261, 0.19546884298324585, 0.10824374109506607, -0.4415453374385834, 0.1987456977367401, 0.054229170083999634, -0.3202499747276306, -0.010035116225481033, 0.14479100704193115, -0.22486498951911926, 0.03367900848388672, 0.18964658677577972, -0.1301935315132141, 0.05235502868890762, -0.3984394669532776, 0.3675473630428314, 0.17649035155773163, 0.10845940560102463, 0.1384328156709671, -0.22609484195709229, -0.24977397918701172, -0.01367156021296978, 0.21224328875541687, 0.510808527469635, 0.20037773251533508, -0.2561512887477875, -0.03608562797307968, 0.03707867115736008, -0.00813959538936615, 0.31450706720352173, 0.5984301567077637, -0.14127084612846375, -0.16311457753181458, 0.20478840172290802, -0.1575632095336914, -0.41801774501800537, 0.08910655230283737, -0.404213011264801, 0.14866113662719727, 0.029341645538806915, -0.035267025232315063, -0.01556608360260725, -0.09596569836139679, 0.18343308568000793, -0.12642155587673187, -0.2039526104927063, -0.2993633449077606, 0.0066248029470443726, 0.14185373485088348, 0.14480775594711304, 0.029989372938871384, 0.22026871144771576, -0.015173010528087616, -0.027261488139629364, 0.056871771812438965, 0.06115604564547539, -0.08967086672782898, 0.06782463192939758, 0.3651508092880249, 0.09092234820127487, -0.28630518913269043, -0.468996524810791, 0.11664652079343796, -0.11109010875225067, -0.003298722207546234, -0.01270914264023304, 0.258715957403183, -0.18057440221309662, -0.1623178869485855, 0.1576462984085083, 0.33311083912849426, 0.2153845578432083, 0.26253512501716614, 0.07555203884840012, -0.03978850692510605, -0.024938475340604782, -0.08846666663885117, 0.3719158172607422, 0.5286610126495361, -0.4206717908382416, -0.050979338586330414, 0.05968835577368736, 0.29017871618270874, -0.010791856795549393, -0.17657192051410675, -0.32838964462280273, -0.20281893014907837, 0.2913479208946228, 0.1835508644580841, 0.07099978625774384, 0.0022888928651809692, 0.08628582954406738, -0.06683371961116791, 0.5182005167007446, 0.35338282585144043, 0.1859719157218933, 0.15125121176242828, -0.481504887342453, -0.007499370723962784, 0.44702446460723877, 0.0053169019520282745, 0.042230382561683655, 0.03907158225774765, 0.23035624623298645, 0.5703178644180298, -0.21326944231987, 0.2132379114627838, 0.03205500915646553, 0.03162676468491554, 0.31494832038879395, 0.013504981994628906, -0.0627870261669159, 0.011450227349996567, 0.10379074513912201, -0.10688736289739609, -0.31435155868530273, -0.05260763689875603, -0.04735128581523895, -0.02919723466038704, 0.1641630232334137, -0.13534529507160187, -0.5572810173034668, -0.018118135631084442, -0.059877924621105194, -0.14957086741924286, 0.08994179964065552, -0.23357228934764862, 0.19840401411056519, 0.12117899954319, -0.14544272422790527, 0.07440152764320374, 0.10869923233985901, 0.11250067502260208, 0.16161225736141205, -0.3610469400882721, -0.005319984629750252, 0.1245025247335434, 0.08497272431850433, -0.02487124130129814, 0.3214934468269348, 0.39368656277656555, 0.06539152562618256, -0.18934889137744904, -0.15370704233646393, -0.06399331986904144, -0.09347400814294815, -0.1509971022605896, -0.10597996413707733, -0.12447893619537354, -0.04624227061867714, 0.22454631328582764, 0.32915619015693665, -0.1944984793663025, 0.10225182771682739, 0.12867718935012817, -0.4741247594356537, -0.3043627142906189, 0.3825989067554474, 0.251816987991333, 0.0006546825170516968, -0.07499085366725922, 0.3726954758167267, -0.6148446202278137, -0.04244959354400635, 0.553174614906311, -0.2547881305217743, 0.1550379991531372, 0.1171087995171547, 0.11360421776771545, 0.11760224401950836, 0.4889310598373413, 0.044450629502534866, 0.5312572121620178, -0.3431676924228668, -0.1864742487668991, -0.5806694030761719, 0.09933005273342133, 0.1448034942150116, -0.469276487827301, 0.14521698653697968, 0.02822236530482769, 0.09632070362567902, -0.03780306875705719, -0.1337548941373825, 0.2985483705997467, -0.32255780696868896, 0.23743580281734467, -0.2789740562438965, -0.18901735544204712, -0.2956801652908325, 0.13163237273693085, -0.010759847238659859, -0.3776535391807556, 0.2190716564655304, -0.1768575757741928, 0.04943641275167465, 0.2395056188106537, 0.06469422578811646, 0.585866391658783, -0.19932004809379578, 0.4379127323627472, -0.13312067091464996, 0.4862349033355713, -0.14498719573020935, -0.05539536848664284, -0.07242247462272644, 0.12201499938964844, -0.12669768929481506, 0.00924421101808548, -0.05140725150704384, 0.05645257234573364, 0.040186718106269836, 0.25651517510414124, -0.23600532114505768, -0.031237658113241196, 0.20052410662174225, 0.11465410143136978, -0.17367611825466156, 0.079856276512146, -0.12513084709644318, -0.017528684809803963, 0.28999102115631104, 0.25140267610549927, -0.20942944288253784, -0.11801844090223312, -0.26469147205352783, -0.1435621976852417, 0.4883458614349365, -0.03920053690671921, -0.250944584608078, -0.2208491414785385, 0.4027566909790039, -0.27337032556533813, 0.09099623560905457, -0.3215175271034241, 0.20740851759910583, 0.3532050549983978, 0.04206350818276405, -0.2436666339635849, 0.3581709861755371, 0.40793076157569885, 0.12264131009578705, -0.17617405951023102, 0.7211792469024658, -0.04966253787279129, 0.08944764733314514, -0.2623007595539093, -0.3704216480255127 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
Ok, here is a second draft for the testing structure. I think the big difficulty here is "How can you generate tests on the fly from a given dataset name, *e.g.* `squad`"? So, this morning I did some research on "parameterized testing" and pure `unittest` or `pytest` didn't work very well. I found the lib https://github.com/wolever/parameterized, which works very nicely for our use case I think. @thomwolf - would it be ok to have a dependence on this lib for `nlp`? It seems like a light-weight lib to me. This lib allows to add a `parameterization` decorator to a `unittest.TestCase` class so that the class can be instantiated for multiple different arguments (which are the dataset names `squad` etc. in our case). What I like about this lib is that one only has to add the decorator and the each of the parameterized tests are shown, like this: ![Screenshot from 2020-04-24 15-13-14](https://user-images.githubusercontent.com/23423619/80216326-2bd9a680-863e-11ea-8a0f-460976f5309c.png) With this structure we would only have to upload the dummy data for each dataset and would not require a specific testing file. What do you think @thomwolf @mariamabarham @lhoestq ?
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
183
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. Ok, here is a second draft for the testing structure. I think the big difficulty here is "How can you generate tests on the fly from a given dataset name, *e.g.* `squad`"? So, this morning I did some research on "parameterized testing" and pure `unittest` or `pytest` didn't work very well. I found the lib https://github.com/wolever/parameterized, which works very nicely for our use case I think. @thomwolf - would it be ok to have a dependence on this lib for `nlp`? It seems like a light-weight lib to me. This lib allows to add a `parameterization` decorator to a `unittest.TestCase` class so that the class can be instantiated for multiple different arguments (which are the dataset names `squad` etc. in our case). What I like about this lib is that one only has to add the decorator and the each of the parameterized tests are shown, like this: ![Screenshot from 2020-04-24 15-13-14](https://user-images.githubusercontent.com/23423619/80216326-2bd9a680-863e-11ea-8a0f-460976f5309c.png) With this structure we would only have to upload the dummy data for each dataset and would not require a specific testing file. What do you think @thomwolf @mariamabarham @lhoestq ?
[ -0.13190865516662598, 0.34156185388565063, -0.03674748167395592, 0.02443556860089302, 0.022521592676639557, -0.05827125161886215, 0.3163199722766876, 0.37715062499046326, -0.30892106890678406, -0.04603560268878937, 0.23709815740585327, 0.04133123904466629, -0.6125072240829468, -0.05884503573179245, 0.42888814210891724, -0.15951362252235413, -0.09787967056035995, 0.32212668657302856, -0.10879798233509064, 0.27984005212783813, -0.11720090359449387, -0.02914542146027088, -0.040489062666893005, 0.12625528872013092, 0.1577756553888321, -0.09964267164468765, -0.5902854800224304, 0.08120755106210709, -0.2395978718996048, -0.5604875087738037, 0.28612208366394043, 0.41605865955352783, 0.04771501570940018, 0.0661979466676712, -0.00011743762297555804, -0.1461564302444458, 0.265779584646225, -0.18031497299671173, -0.4369584023952484, 0.04161035269498825, 0.5762017369270325, -0.24158810079097748, 0.061064355075359344, -0.5179664492607117, 0.15690520405769348, -0.08129159361124039, 0.21102426946163177, -0.1388055384159088, 0.09589621424674988, 0.13198202848434448, 0.0946483165025711, 0.18058006465435028, -0.38420718908309937, 0.3430921137332916, -0.03613957762718201, 0.484976589679718, -0.1575053483247757, 0.22074384987354279, 0.4626840651035309, -0.0780278816819191, -0.09656310826539993, -0.2500562071800232, -0.12352672964334488, 0.0951816737651825, 0.05145828425884247, 0.03939177095890045, -0.13036775588989258, -0.09699815511703491, -0.2813895344734192, 0.18636786937713623, 0.21285158395767212, -0.5790849328041077, -0.14711801707744598, -0.31112998723983765, 0.13655543327331543, -0.08512131869792938, -0.1311388909816742, -0.05171314626932144, -0.4077446460723877, -0.12758581340312958, -0.09987281262874603, -0.2620556354522705, -0.08752413839101791, 0.1647244095802307, 0.07582668960094452, 0.2773725688457489, 0.10877383500337601, 0.22933554649353027, -0.2628007233142853, -0.137801855802536, 0.05473052337765694, -0.41569817066192627, 0.008786924183368683, 0.30248600244522095, 0.2692592740058899, -0.36765146255493164, -0.09872990101575851, 0.00018968433141708374, 0.40289151668548584, 0.19161845743656158, -0.05088462680578232, 0.062321752309799194, 0.10266498476266861, -0.01119963824748993, 0.05910754203796387, 0.14580172300338745, 0.3403662145137787, 0.2562050223350525, 0.22792679071426392, 0.27226558327674866, -0.06999126076698303, 0.38592514395713806, -0.24565370380878448, -0.034964028745889664, 0.06504803895950317, 0.07537718117237091, 0.16129429638385773, -0.0451105497777462, -0.015593647956848145, -0.23203276097774506, -0.2308538258075714, -0.07096905261278152, 0.05244792625308037, 0.11935083568096161, 0.009093250147998333, -0.06981898844242096, 0.3528551459312439, -0.07560500502586365, 0.08096947520971298, -0.15164832770824432, -0.009775152429938316, 0.13170237839221954, -0.20978550612926483, 0.14784492552280426, 0.3444462716579437, 0.13541896641254425, 0.15815351903438568, -0.05442661792039871, 0.03208708390593529, 0.026931382715702057, 0.3227127194404602, 0.11834083497524261, -0.03491344302892685, -0.08474409580230713, -0.18988709151744843, -0.12435618788003922, -0.0043749213218688965, -0.09917391836643219, -0.42012012004852295, 0.21104273200035095, 0.1409098207950592, -0.276368647813797, 0.252133309841156, 0.08828338980674744, -0.4402775764465332, -0.042935505509376526, -0.20557823777198792, 0.1730564534664154, -0.010865695774555206, -0.45980146527290344, -0.0005408152937889099, -0.15525057911872864, -0.06814765930175781, -0.007698453962802887, 0.04707114398479462, 0.5715053081512451, -0.1549777239561081, -0.3309394121170044, -0.22662460803985596, 0.0685432106256485, 0.2517027258872986, -0.08152949810028076, -0.31187739968299866, 0.48150280117988586, -0.22854845225811005, 0.08208911120891571, 0.8410388231277466, -0.17857228219509125, 0.18894736468791962, 0.4768260419368744, -0.10922406613826752, 0.009581925347447395, 0.27823498845100403, -0.16113659739494324, -0.057229168713092804, -0.2537025213241577, -0.2650303840637207, 0.08493559062480927, -0.10109102725982666, 0.0011427868157625198, -0.18206346035003662, -0.28609102964401245, 0.4274643063545227, 0.10646146535873413, -0.07420621812343597, -0.04206769913434982, -0.30418702960014343, 0.16295349597930908, 0.4020828604698181, -0.24879783391952515, 0.08148035407066345, -0.1527896523475647, 0.13105346262454987, -0.10949625074863434, -0.014303924515843391, -0.09667855501174927, -0.4766508936882019, 0.21120670437812805, 0.035915620625019073, 0.39856117963790894, 0.0047850459814071655, -0.28223997354507446, -0.06688825786113739, -0.14468532800674438, 0.17301411926746368, -0.2389727532863617, 0.027109213173389435, 0.2081710398197174, -0.16969245672225952, -0.5008288025856018, -0.25075042247772217, -0.026908589527010918, -0.380577027797699, 0.11235028505325317, -0.14265356957912445, 0.005455588921904564, -0.03133203834295273, 0.12507806718349457, 0.21807798743247986, 0.2010410726070404, -0.07757029682397842, -0.3205987811088562, 0.10639870911836624, 0.15472880005836487, 0.06068302318453789, -0.10058125853538513, 0.15178558230400085, 0.11534503847360611, -0.07257455587387085, 0.24700376391410828, 0.20843246579170227, 0.09599721431732178, 0.06408903002738953, -0.16641554236412048, -0.14085176587104797, 0.560010552406311, 0.10555021464824677, 0.2132786512374878, 0.021047592163085938, -0.02397145889699459, 0.18635615706443787, -0.14495298266410828, -0.3817502558231354, 0.005892761051654816, 0.2212900072336197, 0.35126546025276184, 0.5620296001434326, 0.31141045689582825, -0.10176195949316025, 0.004412293434143066, 0.26747608184814453, -0.2966245114803314, -0.02392299473285675, -0.0021662935614585876, 0.17516610026359558, -0.18995416164398193, 0.09788943827152252, 0.33034223318099976, 0.8118335604667664, 0.04710453376173973, 0.098253533244133, 0.21954013407230377, -0.2545560896396637, -0.1273776888847351, 0.30111417174339294, 0.21018455922603607, 0.023680370301008224, 0.13001811504364014, -0.12666386365890503, 0.031167909502983093, -0.20535239577293396, -0.5821647644042969, 0.2897496521472931, 0.07283814996480942, -0.3303205072879791, 0.16165190935134888, -0.04670454189181328, -0.19153890013694763, -0.4744233191013336, -0.035766907036304474, -0.18218013644218445, -0.07862819731235504, -0.03494264930486679, -0.3410353362560272, -0.1283450871706009, 0.1310131698846817, -0.2036578506231308, 0.733729362487793, -0.226936936378479, -0.5425775647163391, -0.12492428719997406, -0.016568919643759727, -0.24972331523895264, 0.009630251675844193, 0.251083642244339, 0.19362474977970123, 0.4531944990158081, -0.09556237608194351, 0.02963346242904663, -0.131546750664711, -0.3042241632938385, 0.2108340561389923, -0.13370180130004883, 0.4516464173793793, 0.499871164560318, -0.11348482966423035, 0.2417495995759964, -0.15528087317943573, -0.07523922622203827, -0.18297237157821655, -0.15615470707416534, -0.1918504387140274, 0.04405708983540535, -0.07338522374629974, -0.232262521982193, -0.4079076051712036, -0.24236436188220978, -0.12052561342716217, -0.08043736219406128, 0.12212726473808289, 0.3352500796318054, 0.21877636015415192, -0.4272318184375763, 0.2180589884519577, 0.15771080553531647, 0.21754714846611023, 0.1466129869222641, 0.023056920617818832, -0.01732509955763817, -0.023088650777935982, -0.11565396189689636, -0.3992796540260315, -0.3316870927810669, 0.45845964550971985, 0.12450026720762253, -0.3292074203491211, -0.2691972851753235, 0.2862909436225891, 0.12454426288604736, -0.03341536968946457, -0.25999999046325684, 0.2521945536136627, 0.24821963906288147, 0.04902324825525284, -0.0793299674987793, -0.006683044135570526, 0.005152538418769836, -0.047893643379211426, 0.1881500631570816, 0.1189928948879242, 0.41760843992233276, 0.01426289975643158, 0.7074403166770935, 0.10268829762935638, -0.3024475574493408, -0.005948968231678009, -0.12025763839483261, 0.1282188445329666, 0.2876252830028534, -0.2711533308029175, 0.21656176447868347, 0.01681464910507202, -0.11824817210435867, 0.3060941994190216, -0.16201817989349365, -0.1866932064294815, 0.006023220717906952, 0.17355889081954956, 0.1099652573466301, -0.2412925511598587, 0.35163363814353943, -0.388591468334198, 0.32120415568351746, -0.005463048815727234, -0.11961868405342102, -0.3494477868080139, -0.06960317492485046, 0.004218302667140961, 0.2730201482772827, 0.11092429608106613, -0.14084239304065704, -0.4445665180683136, 0.10970491170883179, -0.16752508282661438, 0.27992403507232666, 0.18688011169433594, 0.44881322979927063, 0.14588895440101624, 0.060734160244464874, 0.11506742238998413, -0.25681188702583313, 0.31288325786590576, 0.11854232847690582, 0.11090292036533356, 0.41781333088874817, 0.046184465289115906, -0.5671032071113586, 0.05901653692126274, -0.43711766600608826, 0.20244942605495453, 0.19896773993968964, 0.23868513107299805, -0.29626694321632385, -0.4982239305973053, 0.2695941925048828, 0.3132343292236328, -0.1881585270166397, -0.07523345202207565, -0.0198935829102993, -0.30531418323516846, -0.11973005533218384, -0.08022379130125046, -0.13260838389396667, 0.023918399587273598, -0.1820899397134781, 0.12308119237422943, -0.02019445039331913, 0.05470708757638931, 0.2581743597984314, 0.020672257989645004, -0.2476138472557068, 0.0952644944190979, 0.12123912572860718, -0.21150308847427368, 0.06700322777032852, -0.09718476980924606, 0.15450483560562134, -0.15357857942581177, 0.2518969774246216, 0.03523389995098114, 0.25118014216423035, 0.48575469851493835, 0.4231332838535309, 0.016533393412828445, 0.08881697058677673, -0.35770314931869507, -0.016042791306972504, -0.3374595046043396, 0.3241725564002991, 0.28121915459632874, -0.23455503582954407, 0.025754965841770172, -0.49109357595443726, 0.4153635501861572, 0.22433693706989288, -0.36227041482925415, 0.5466313362121582, -0.21922369301319122, -0.47202250361442566, 0.42291468381881714, 0.35971808433532715, 0.8867997527122498, 0.3009040355682373, 0.3946150541305542, 0.20940232276916504, 0.03850048780441284, 0.1904938966035843, 0.07712429016828537, -0.03027809038758278, -0.4138437509536743, 0.23423264920711517, 0.035683028399944305, -0.19248981773853302, 0.34697896242141724, 0.31865131855010986, -0.3556285798549652, 0.28291189670562744, 0.3540710210800171, 0.044181160628795624, 0.3686910569667816, 0.6519577503204346, -0.2900543510913849, -0.30634605884552, -0.11933431029319763, 0.03489632159471512, -0.253873348236084, -0.008634865283966064, -0.08720149844884872, -0.06849653273820877, 0.038664381951093674, -0.027641138061881065, -0.12878602743148804, -0.04369082301855087, -0.1439773589372635, 0.046733446419239044, 0.20175418257713318, 0.030996255576610565, 0.22860994935035706, 0.23265409469604492, 0.0030202716588974, 0.3971017003059387, -0.08294841647148132, 0.08969464153051376, -0.2527504861354828, 0.22612722218036652, 0.17866148054599762, -0.04896149784326553, 0.466800719499588, -0.09908270090818405, -0.1821211874485016, -0.2919171154499054, -0.07476471364498138, -0.2368040233850479, -0.14564454555511475, -0.28117895126342773, 0.38115406036376953, -0.5923912525177002, 0.04559861123561859, 0.07011987268924713, -0.16155554354190826, -0.03579171001911163, 0.0462736114859581, 0.19434413313865662, -0.3260645866394043, 0.3560003936290741, 0.13842719793319702, -0.08807668089866638, 0.18604542315006256, 0.009984686970710754, -0.09555282443761826, 0.10743413865566254, 0.34365490078926086, -0.2743481695652008, 0.1414320170879364, -0.2804057002067566, 0.5089117288589478, 0.004878601990640163, -0.006082475185394287, 0.08569902181625366, 0.06962183862924576, -0.08233842253684998, 0.0657213032245636, 0.31991684436798096, 0.430774450302124, 0.11124883592128754, -0.2946065664291382, -0.19685567915439606, -0.293118953704834, -0.04707285761833191, 0.29991158843040466, 0.3830239474773407, 0.036800555884838104, 0.01844082772731781, -0.016203831881284714, 0.30584022402763367, -0.2816762626171112, -0.07340780645608902, -0.13580885529518127, 0.3286055326461792, 0.1456552892923355, -0.05373653024435043, -0.21229217946529388, 0.17764538526535034, 0.07856258749961853, -0.041972868144512177, -0.15756292641162872, -0.14755499362945557, -0.25636550784111023, 0.23930507898330688, 0.17444530129432678, 0.08310087025165558, -0.03953157737851143, -0.0949496254324913, -0.08201496303081512, -0.09763476997613907, -0.09440332651138306, -0.28377971053123474, 0.05945880338549614, 0.2684919536113739, 0.11934373527765274, -0.013765990734100342, -0.24460510909557343, 0.18032775819301605, -0.15812532603740692, 0.07742349803447723, 0.2123623639345169, 0.26623791456222534, 0.036338455975055695, -0.13032574951648712, 0.18630512058734894, 0.2542460262775421, -0.0022550448775291443, 0.21600386500358582, 0.07591506838798523, 0.12485019862651825, -0.05284638702869415, -0.12556426227092743, 0.31459522247314453, 0.7384843826293945, -0.22130915522575378, -0.030696913599967957, 0.23286423087120056, 0.047102268785238266, -0.16463209688663483, -0.031863901764154434, -0.013599976897239685, -0.165506973862648, 0.10857343673706055, 0.37648507952690125, 0.05499793216586113, -0.162469744682312, 0.3133698105812073, -0.355096697807312, 0.6103901267051697, -0.028778310865163803, -0.1272009164094925, 0.0791015774011612, -0.30146324634552, -0.025255803018808365, 0.3426828980445862, 0.1406463086605072, 0.15026922523975372, -0.13702645897865295, 0.1587965190410614, 0.5500613451004028, -0.1764557659626007, -0.12432929873466492, 0.21611526608467102, 0.20627069473266602, 0.27181097865104675, 0.20799678564071655, 0.2890169620513916, 0.094870924949646, 0.013572759926319122, 0.5360791683197021, -0.3754154145717621, -0.19364386796951294, 0.09602655470371246, 0.11609850823879242, 0.22434714436531067, -0.1797020137310028, -0.8966363072395325, 0.09128614515066147, -0.5304253101348877, -0.1331680864095688, 0.03314629942178726, -0.31115949153900146, -0.2340725064277649, 0.07181800901889801, -0.07150200009346008, -0.11552073061466217, -0.0283057764172554, 0.004275120794773102, 0.0247592031955719, -0.37528547644615173, 0.1940753310918808, 0.05174011364579201, 0.2554495930671692, -0.0241217203438282, 0.25986728072166443, 0.25040560960769653, 0.028533510863780975, -0.3023540675640106, -0.21548883616924286, -0.21850663423538208, 0.024618400260806084, -0.15017329156398773, 0.08549124002456665, -0.15448106825351715, -0.03520277515053749, 0.4638802111148834, 0.05678192526102066, -0.015581094659864902, -0.04766597971320152, 0.5069329142570496, -0.711231529712677, -0.24931420385837555, 0.8110974431037903, 0.2920765280723572, -0.11385606229305267, -0.06783993542194366, 0.17712029814720154, -0.38227221369743347, -0.2291167974472046, 0.4380989968776703, -0.31722456216812134, 0.10763686895370483, 0.08607606589794159, 0.07999604940414429, 0.10777078568935394, 0.4150209128856659, -0.08289302885532379, 0.20413967967033386, -0.19784054160118103, -0.35464411973953247, -0.8383941650390625, -0.10521251708269119, 0.33684733510017395, -0.5761054158210754, 0.05328252166509628, -0.21328046917915344, 0.2585744559764862, -0.013265475630760193, -0.4963368773460388, 0.04251580312848091, -0.026108600199222565, -0.217687726020813, -0.4338970482349396, -0.2043309211730957, -0.04860331118106842, 0.2506597936153412, -0.1007712185382843, -0.4237532913684845, -0.08898496627807617, -0.2419850379228592, -0.10341847687959671, 0.07278579473495483, -0.346293568611145, 0.47026389837265015, 0.37450191378593445, 0.14066073298454285, -0.08529883623123169, 0.6632664203643799, 0.015380587428808212, -0.037069082260131836, -0.057187270373106, 0.201955646276474, -0.0310511477291584, 0.20636993646621704, -0.09086388349533081, 0.014181364327669144, -0.0021586278453469276, 0.10418157279491425, -0.1301593780517578, -0.08568000048398972, 0.02223990112543106, 0.011909550987184048, -0.07240498065948486, 0.07427999377250671, -0.34697678685188293, -0.016842029988765717, 0.1161344051361084, 0.3838747441768646, -0.19099952280521393, 0.21392130851745605, -0.2501833736896515, 0.006863811984658241, 0.6519320011138916, -0.1203756332397461, -0.28394952416419983, 0.028574369847774506, 0.3184564709663391, -0.22191664576530457, 0.021467620506882668, -0.2250242531299591, -0.28875020146369934, 0.4284129738807678, -0.002015911042690277, -0.026240278035402298, 0.3566012382507324, 0.28009656071662903, -0.022077197209000587, -0.14572738111019135, 0.3949960768222809, -0.1962161660194397, -0.10622677952051163, -0.2754073441028595, -0.3645850419998169 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
I think this is a nice solution. Do you think we could have the `parametrized` dependency in a `[test]` optional installation of `setup.py`? I would really like to keep the dependencies of the standard installation as small as possible.
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
39
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. I think this is a nice solution. Do you think we could have the `parametrized` dependency in a `[test]` optional installation of `setup.py`? I would really like to keep the dependencies of the standard installation as small as possible.
[ -0.21111515164375305, 0.01183408498764038, 0.0031380001455545425, 0.023934390395879745, 0.1876426339149475, 0.045364826917648315, 0.2839764654636383, 0.22237031161785126, -0.028713945299386978, 0.0378325954079628, 0.40853556990623474, 0.15856121480464935, -0.3454935550689697, 0.10366598516702652, 0.0750499814748764, -0.18216827511787415, -0.056009672582149506, 0.4486842751502991, -0.252174973487854, 0.1854095160961151, 0.12402421236038208, 0.06423740833997726, -0.11830803751945496, -0.22934649884700775, 0.2170129120349884, -0.07681870460510254, -0.516381561756134, 0.03884834051132202, -0.3719450831413269, -0.4304218590259552, 0.35268256068229675, 0.522128701210022, -0.08603683859109879, 0.2676522731781006, -0.00012974216951988637, 0.10952971875667572, 0.2945955991744995, -0.202630877494812, -0.1573454737663269, 0.13906298577785492, -0.07475634664297104, -0.17656880617141724, 0.1406404823064804, -0.2772556245326996, 0.2470584511756897, -0.22945228219032288, -0.11721992492675781, -0.09520205855369568, 0.24853268265724182, 0.0014874562621116638, 0.055583540350198746, 0.16951267421245575, -0.33363279700279236, 0.1143152117729187, -0.25670933723449707, 0.588537871837616, -0.11382345855236053, 0.38298937678337097, 0.30736207962036133, 0.11407206952571869, 0.10519818961620331, -0.22161565721035004, 0.11642304062843323, -0.08386942744255066, 0.15957549214363098, -0.15221992135047913, 0.3845682442188263, -0.04833367466926575, -0.19911131262779236, 0.38917654752731323, 0.4737936556339264, -0.41864854097366333, -0.16931797564029694, 0.001010119915008545, 0.12425334006547928, 0.23176996409893036, -0.1710236668586731, -0.04012901335954666, -0.21315105259418488, 0.13329440355300903, -0.13074186444282532, -0.5972697734832764, -0.13867147266864777, -0.00012961775064468384, -0.2961353361606598, 0.24008260667324066, 0.19228024780750275, 0.07504082471132278, -0.1312202364206314, -0.08201713114976883, 0.09277205914258957, -0.3126819431781769, -0.0206247977912426, 0.027708880603313446, 0.34046053886413574, -0.5090322494506836, -0.282866507768631, 0.07217301428318024, 0.338486909866333, 0.20775340497493744, -0.12104855477809906, 0.15149623155593872, 0.10590071976184845, -0.07055684179067612, 0.15081143379211426, 0.14338988065719604, 0.04506729915738106, 0.39601507782936096, 0.20922082662582397, 0.36652135848999023, 0.15492871403694153, 0.33436664938926697, -0.17499883472919464, 0.09367505460977554, 0.2574947774410248, 0.16246125102043152, 0.3591899275779724, -0.14932595193386078, 0.14606007933616638, -0.21454447507858276, -0.11836834251880646, 0.0897715762257576, -0.10476496815681458, 0.07811033725738525, 0.0803951695561409, 0.13600006699562073, 0.12173895537853241, 0.15407103300094604, 0.2502059042453766, -0.014334945939481258, -0.019450148567557335, 0.08512096107006073, 0.050492461770772934, 0.27453550696372986, 0.022018808871507645, -0.008863372728228569, 0.3173299729824066, 0.14931517839431763, 0.14194221794605255, 0.21414726972579956, 0.48722392320632935, 0.14597666263580322, -0.15919828414916992, 0.3273933231830597, -0.29348185658454895, -0.015995465219020844, 0.05975427106022835, 0.23968107998371124, -0.3428376615047455, 0.23442396521568298, -0.09450653940439224, -0.5098453164100647, 0.24252133071422577, 0.10240519046783447, -0.48643743991851807, 0.022327866405248642, -0.10112666338682175, -0.05745181813836098, -0.04393518716096878, -0.303176611661911, -0.029135115444660187, -0.34687238931655884, -0.15608888864517212, -0.08315932005643845, 0.10866943746805191, 0.6531295776367188, -0.4410230219364166, -0.20600846409797668, -0.3288406729698181, -0.14105936884880066, -0.010087743401527405, -0.15071773529052734, -0.2661402225494385, 0.4967101216316223, -0.5561602115631104, -0.16627568006515503, 0.6041937470436096, -0.5712172985076904, 0.11299919337034225, 0.4648284316062927, -0.12906242907047272, 0.37546229362487793, 0.24081364274024963, -0.15872280299663544, -0.2370758354663849, -0.026513298973441124, -0.3027830421924591, -0.11060450971126556, -0.1868238002061844, -0.1352473944425583, -0.15388619899749756, -0.3703588545322418, 0.3317055106163025, 0.22429345548152924, 0.2283898890018463, 0.12722450494766235, -0.43771862983703613, -0.07135134935379028, 0.33032551407814026, -0.12303692102432251, -0.30101874470710754, 0.1602780520915985, 0.4303687512874603, -0.035312458872795105, 0.03801589459180832, -0.15272590517997742, -0.25592565536499023, 0.2678299844264984, 0.3473595380783081, 0.2133106291294098, -0.21559004485607147, -0.5105525255203247, -0.20042893290519714, -0.17272941768169403, 0.09563367068767548, -0.04515958949923515, 0.025263160467147827, -0.005950048565864563, -0.19910040497779846, -0.4109785556793213, -0.21359433233737946, 0.11195233464241028, -0.234529510140419, 0.11754723638296127, 0.08359430730342865, 0.04932691156864166, -0.10101618617773056, 0.3275483250617981, 0.07652850449085236, -0.11194286495447159, -0.12325572222471237, -0.4884214997291565, 0.18206879496574402, 0.24304041266441345, 0.3131144642829895, -0.14488184452056885, -0.08599960058927536, 0.2927580177783966, -0.14621208608150482, -0.11869284510612488, 0.03902671858668327, 0.17460525035858154, -0.1287098526954651, -0.19808155298233032, -0.14954575896263123, 0.41071557998657227, 0.16099321842193604, 0.07075519114732742, 0.10811558365821838, 0.00685935840010643, 0.14620275795459747, -0.0059148818254470825, -0.5502901077270508, -0.23781391978263855, -0.0026564374566078186, 0.26387402415275574, 0.44410809874534607, 0.18375758826732635, -0.016928307712078094, -0.06566321104764938, 0.08491108566522598, -0.06152334436774254, 0.14594006538391113, -0.2390945553779602, -0.00862988829612732, 0.05488364398479462, 0.0847088024020195, 0.11525973677635193, 0.8231520056724548, 0.011787832714617252, -0.037763480097055435, 0.39191439747810364, 0.0621090792119503, -0.022801294922828674, 0.18976986408233643, 0.2460402101278305, 0.12598280608654022, 0.0563301257789135, -0.29504239559173584, -0.15543551743030548, -0.1698906421661377, -0.4300769865512848, 0.17021550238132477, 0.03631128743290901, -0.3406134247779846, -0.04528608173131943, -0.13287022709846497, 0.19552290439605713, -0.4409938454627991, 0.15327659249305725, 0.012019790709018707, -0.15694096684455872, 0.048611268401145935, -0.347497820854187, -0.11457805335521698, 0.27415451407432556, -0.36074209213256836, 0.5418378710746765, -0.224831223487854, -0.7101598978042603, -0.07204461097717285, 0.08492522686719894, 0.009528616443276405, -0.03858568146824837, 0.21093282103538513, 0.12905560433864594, 0.3625457286834717, -0.44258204102516174, -0.3339548110961914, -0.16987168788909912, -0.3614966571331024, 0.22302018105983734, -0.018492918461561203, 0.18167313933372498, 0.7245484590530396, 0.27064308524131775, 0.4893631339073181, 0.0353858545422554, -0.04441005364060402, -0.10033731907606125, -0.1895403265953064, -0.1797351986169815, -0.009938258677721024, -0.015026833862066269, -0.06232607364654541, -0.48168525099754333, -0.11059100180864334, -0.09036722779273987, -0.1190953403711319, 0.06738275289535522, 0.11041216552257538, 0.12017115205526352, -0.0574161559343338, -0.2634955942630768, 0.06878697872161865, -0.034131936728954315, 0.22947517037391663, -0.1561344712972641, -0.08496423065662384, 0.11076606065034866, 0.11484606564044952, -0.020504694432020187, -0.28909832239151, 0.3921175003051758, 0.2824179530143738, -0.38973528146743774, -0.4564487636089325, 0.26550519466400146, 0.2828691899776459, -0.3472077250480652, -0.32258448004722595, 0.516711950302124, 0.33920806646347046, 0.16130299866199493, -0.0021971948444843292, -0.038623277097940445, 0.002555854618549347, -0.04916731268167496, -0.1115383729338646, 0.004144478589296341, 0.3061355650424957, -0.057518333196640015, 0.8432735204696655, 0.20593710243701935, 0.01801404170691967, -0.21155264973640442, -0.19690854847431183, 0.49018311500549316, 0.2361900806427002, -0.11146807670593262, -0.28528136014938354, 0.21327832341194153, -0.03521561250090599, 0.07763054221868515, -0.1746552586555481, 0.038268834352493286, -0.09147293120622635, 0.04446791484951973, 0.2812531590461731, -0.11917801201343536, 0.1854129433631897, -0.3141384422779083, 0.4923593997955322, 0.07759824395179749, 0.03506873548030853, -0.14344976842403412, 0.15537172555923462, 0.38849684596061707, 0.46944791078567505, -0.10590105503797531, -0.03376707434654236, -0.4791976511478424, 0.11450407654047012, 0.15248331427574158, 0.09396497160196304, 0.22265467047691345, 0.345534086227417, 0.20567677915096283, 0.026480086147785187, -0.03251609206199646, -0.20238527655601501, 0.5055211782455444, -0.26570695638656616, -0.08317212760448456, 0.35150936245918274, -0.2547588646411896, -0.5188660621643066, -0.22718220949172974, -0.34627026319503784, 0.18856659531593323, 0.2638448476791382, 0.30106210708618164, -0.2992207407951355, -0.30265387892723083, 0.38747793436050415, 0.41328945755958557, -0.22653833031654358, -0.35057851672172546, -0.21439261734485626, -0.21162497997283936, 0.14457298815250397, 0.14221636950969696, 0.026169998571276665, -0.2463018298149109, -0.05862905830144882, -0.12129770219326019, -0.027752002701163292, -0.11656544357538223, 0.06733116507530212, 0.010529648512601852, -0.06235393136739731, -0.23696006834506989, 0.051868144422769547, 0.021216969937086105, -0.12165766954421997, 0.32050439715385437, 0.41965925693511963, -0.044823963195085526, -0.04660707712173462, -0.19333693385124207, 0.017654575407505035, 0.18790754675865173, 0.37315070629119873, -0.24310517311096191, -0.07042103260755539, -0.1704268604516983, -0.13377515971660614, -0.31857991218566895, 0.23242288827896118, 0.3777990937232971, -0.3238801956176758, -0.15251941978931427, -0.4005768895149231, -0.009018577635288239, 0.26363876461982727, -0.2826222777366638, 0.2772088646888733, 0.005529247224330902, -0.31046032905578613, 0.19689081609249115, 0.01343538612127304, 0.8716305494308472, 0.32026487588882446, 0.23449188470840454, 0.23273780941963196, 0.17937017977237701, 0.09107372164726257, -0.19314882159233093, 0.047605983912944794, -0.30519071221351624, -0.2898391783237457, -0.0621209517121315, -0.3916736841201782, 0.40392836928367615, -0.037969283759593964, -0.3766271770000458, 0.3981649875640869, -0.0754207968711853, 0.42238450050354004, 0.3148442208766937, 0.3421836495399475, -0.32845303416252136, 0.11823302507400513, 0.28884756565093994, -0.027561921626329422, 0.26270705461502075, 0.020942358300089836, -0.30947357416152954, 0.08961691707372665, 0.01147281751036644, -0.29976189136505127, -0.3593505620956421, -0.17554625868797302, -0.1602381020784378, 0.22592312097549438, -0.08622103929519653, 0.32348066568374634, 0.27661633491516113, 0.1743406355381012, 0.05223949998617172, 0.7015395164489746, -0.24695122241973877, 0.229312464594841, -0.15916046500205994, -0.028436535969376564, 0.1814485341310501, 0.06567026674747467, 0.3206116259098053, -0.09979350864887238, -0.1773221790790558, -0.15311500430107117, -0.43842414021492004, 0.04120542109012604, -0.36356598138809204, -0.4248952269554138, 0.4941733479499817, -0.4320806562900543, -0.14187544584274292, 0.01613660901784897, 0.12783706188201904, -0.08550217747688293, -0.008856089785695076, 0.11670584976673126, -0.22587628662586212, 0.5094320774078369, -0.016389962285757065, -0.14717546105384827, 0.13525523245334625, 0.1576235592365265, 0.2630714178085327, -0.006307933479547501, 0.3503601551055908, -0.5269690752029419, 0.1375282257795334, -0.3167514204978943, 0.40640971064567566, 0.08716900646686554, 0.13063862919807434, 0.058779027312994, 0.0959625095129013, 0.050838351249694824, -0.3160942792892456, 0.18715165555477142, 0.34667664766311646, 0.028467867523431778, -0.3791203498840332, -0.18384841084480286, -0.19085782766342163, 0.03353675454854965, 0.23371143639087677, 0.3660644590854645, -0.06297488510608673, 0.014172905124723911, -0.17587585747241974, 0.2574193775653839, -0.21751701831817627, -0.041037678718566895, -0.014158552512526512, 0.01378217339515686, 0.10368272662162781, 0.3344792425632477, 0.0145646957680583, -0.0592479445040226, 0.038570649921894073, -0.09541855752468109, -0.03229239583015442, -0.06687396764755249, 0.007465023547410965, 0.23982086777687073, 0.1555716097354889, 0.3972053825855255, 0.5364812612533569, -0.10678350180387497, -0.07730963826179504, 0.21330896019935608, 0.15359480679035187, -0.0033831708133220673, -0.0020713508129119873, 0.02811674028635025, 0.2135697901248932, 0.08405382186174393, -0.5856027603149414, 0.30727705359458923, -0.04873529076576233, -0.0886666476726532, 0.13975709676742554, 0.27425625920295715, 0.050517793744802475, -0.14207187294960022, 0.5045424699783325, 0.24698400497436523, 0.20876874029636383, 0.20163732767105103, 0.020841941237449646, 0.0958544984459877, 0.06584644317626953, -0.2851729691028595, 0.25133413076400757, 0.7765364646911621, -0.34669309854507446, 0.1315603107213974, 0.16231650114059448, -0.00039324164390563965, -0.3696223795413971, -0.14567960798740387, 0.3338305652141571, -0.09140852838754654, 0.009323593229055405, 0.458824098110199, 0.1893586963415146, -0.04904017224907875, 0.5075136423110962, -0.20018771290779114, 0.4851534962654114, 0.18994653224945068, 0.17974872887134552, 0.16575734317302704, -0.31963321566581726, -0.03230871632695198, 0.19646663963794708, 0.16728876531124115, 0.029692135751247406, 0.0922391340136528, 0.026238035410642624, 0.5230301022529602, -0.12255946546792984, -0.3672243356704712, 0.05716986209154129, 0.03391889110207558, 0.22013604640960693, 0.1934511512517929, 0.4177492558956146, -0.06965718418359756, 0.09815602004528046, 0.06274902075529099, -0.12267050892114639, -0.36065563559532166, -0.04525284096598625, -0.2317555695772171, 0.06701615452766418, 0.008928121998906136, -0.1938154399394989, -0.07332819700241089, -0.3524869382381439, -0.05760413408279419, 0.2804407775402069, -0.3357343077659607, -0.22525447607040405, -0.023563139140605927, -0.09738284349441528, -0.18156130611896515, -0.0006433948874473572, 0.03795679658651352, -0.03236822038888931, -0.29290249943733215, 0.0806547999382019, -0.13614235818386078, 0.2571902275085449, 0.112154021859169, 0.2920910120010376, 0.13955427706241608, 0.13855449855327606, 0.044301651418209076, -0.32132676243782043, -0.015482213348150253, 0.09748604893684387, -0.03090593032538891, -0.17918334901332855, -0.2923182547092438, 0.18660284578800201, 0.2114640176296234, 0.05570016801357269, -0.07159087806940079, -0.03715347871184349, 0.2892565131187439, -0.42500269412994385, -0.4850146472454071, 0.70885169506073, 0.17529155313968658, -0.03603632003068924, 0.008781509473919868, 0.225997656583786, -0.21298474073410034, -0.25637900829315186, 0.19836904108524323, 0.014259463176131248, -0.07804673165082932, 0.10565895587205887, 0.017020735889673233, -0.04783988371491432, 0.22677676379680634, 0.0013505183160305023, 0.11528341472148895, -0.25247958302497864, -0.3745431900024414, -0.578311026096344, 0.14071089029312134, -0.0360691212117672, -0.38002192974090576, -0.01718311198055744, -0.26616162061691284, 0.3383137285709381, 0.09480346739292145, -0.17868568003177643, 0.12068187445402145, 0.034511879086494446, -0.06534113734960556, -0.35827764868736267, -0.1536443829536438, -0.09773606061935425, -0.023278331384062767, 0.007497891783714294, -0.3739442229270935, -0.0861428827047348, -0.10178104043006897, -0.10846003890037537, 0.25936371088027954, -0.24246542155742645, 0.39600273966789246, -0.11652293801307678, 0.43674007058143616, -0.2657495141029358, 0.7016080617904663, 0.13134610652923584, -0.05644898861646652, 0.10506287962198257, 0.027181226760149002, -0.23564717173576355, 0.5353085994720459, 0.06634858250617981, -0.10809427499771118, -0.24142450094223022, -0.14668241143226624, -0.2241949439048767, 0.008428852073848248, 0.18035456538200378, 0.15799576044082642, -0.33585619926452637, 0.12545178830623627, -0.3419189453125, 0.1989041566848755, 0.20269425213336945, 0.07725617289543152, -0.33649149537086487, -0.0817202478647232, -0.3098980784416199, 0.10268748551607132, 0.5203350782394409, 0.33291852474212646, -0.25695672631263733, -0.19568490982055664, 0.32057178020477295, -0.1762925684452057, -0.028177829459309578, -0.21267592906951904, -0.15520551800727844, 0.4009737968444824, -0.0345192551612854, 0.0825151801109314, 0.2662390172481537, 0.09680739045143127, 0.08238466084003448, -0.1608157455921173, 0.5466125011444092, -0.31338030099868774, -0.1361924409866333, -0.3564109206199646, -0.27330899238586426 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
> I think this is a nice solution. > > Do you think we could have the `parametrized` dependency in a `[test]` optional installation of `setup.py`? I would really like to keep the dependencies of the standard installation as small as possible. Yes definitely!
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
44
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. > I think this is a nice solution. > > Do you think we could have the `parametrized` dependency in a `[test]` optional installation of `setup.py`? I would really like to keep the dependencies of the standard installation as small as possible. Yes definitely!
[ -0.18948210775852203, 0.046297892928123474, -0.01655537262558937, 0.05168861150741577, 0.1880301684141159, 0.013179890811443329, 0.2722388505935669, 0.22105218470096588, -0.014960326254367828, 0.015975169837474823, 0.36974647641181946, 0.20300251245498657, -0.3407477140426636, 0.14006534218788147, 0.07302683591842651, -0.20393112301826477, -0.07488057762384415, 0.44577276706695557, -0.28674963116645813, 0.21215380728244781, 0.14218825101852417, 0.08028612285852432, -0.13521552085876465, -0.2285871058702469, 0.22029493749141693, -0.08093190938234329, -0.5335448384284973, 0.07818250358104706, -0.38555192947387695, -0.4371095299720764, 0.3394733667373657, 0.540357768535614, -0.0826360359787941, 0.27526795864105225, -0.00012583972420543432, 0.10443025827407837, 0.28676438331604004, -0.19873276352882385, -0.18419040739536285, 0.10683102905750275, -0.08013932406902313, -0.19433219730854034, 0.09058156609535217, -0.3201088011264801, 0.23540383577346802, -0.21955062448978424, -0.1507769078016281, -0.08661095798015594, 0.2658282518386841, 0.006557314656674862, 0.08418893069028854, 0.18999460339546204, -0.29156196117401123, 0.12702076137065887, -0.23779302835464478, 0.6050761938095093, -0.1245519146323204, 0.36145317554473877, 0.28607243299484253, 0.1008036807179451, 0.0974993035197258, -0.19516505300998688, 0.12761279940605164, -0.13353897631168365, 0.1752738058567047, -0.12781953811645508, 0.3745844066143036, -0.08459117263555527, -0.22030481696128845, 0.39445623755455017, 0.4757407009601593, -0.43344953656196594, -0.16481396555900574, -0.00829305499792099, 0.11757038533687592, 0.22345997393131256, -0.18390345573425293, -0.04249376058578491, -0.22810742259025574, 0.12510930001735687, -0.16661135852336884, -0.5622281432151794, -0.1523028463125229, -0.022495165467262268, -0.28458288311958313, 0.22582755982875824, 0.16916896402835846, 0.059981562197208405, -0.1503879427909851, -0.08432578295469284, 0.08639749139547348, -0.3506196141242981, -0.005980644375085831, 0.04372723400592804, 0.3064129948616028, -0.5343155860900879, -0.268085777759552, 0.10493075847625732, 0.33735278248786926, 0.20070049166679382, -0.09263592958450317, 0.13869954645633698, 0.09467087686061859, -0.07991891354322433, 0.1475241631269455, 0.15030890703201294, 0.0345182865858078, 0.35761022567749023, 0.1911751925945282, 0.3776281774044037, 0.1603468656539917, 0.323406457901001, -0.16558745503425598, 0.07400655746459961, 0.2505558431148529, 0.1761363446712494, 0.4035976529121399, -0.1526528298854828, 0.1407754123210907, -0.21314744651317596, -0.10430257022380829, 0.08045084029436111, -0.08940988034009933, 0.08499210327863693, 0.04902943968772888, 0.09531429409980774, 0.12559795379638672, 0.15008963644504547, 0.24115128815174103, 0.0022890903055667877, -0.03155650943517685, 0.08899855613708496, 0.04613460972905159, 0.2642613649368286, 0.04436684772372246, -0.023032296448946, 0.3045654594898224, 0.15824741125106812, 0.1197560578584671, 0.2251884639263153, 0.4726298451423645, 0.12078686058521271, -0.11451172083616257, 0.3264388144016266, -0.3003978729248047, -0.03106481395661831, 0.07503724098205566, 0.23843593895435333, -0.33393898606300354, 0.2646569609642029, -0.0791342481970787, -0.4959616959095001, 0.22884266078472137, 0.13351014256477356, -0.5127859115600586, -0.0144619420170784, -0.12452004104852676, -0.05206931009888649, -0.04449858516454697, -0.26837414503097534, -0.013817869126796722, -0.3469201326370239, -0.13636820018291473, -0.12068178504705429, 0.1485324203968048, 0.6821888089179993, -0.4537704288959503, -0.16676875948905945, -0.30351972579956055, -0.18498195707798004, -0.002853892743587494, -0.14962659776210785, -0.2556605041027069, 0.4609896242618561, -0.5535206198692322, -0.15145906805992126, 0.5962368249893188, -0.5563184022903442, 0.14536944031715393, 0.4809115529060364, -0.11041337251663208, 0.3828861117362976, 0.21794962882995605, -0.18956740200519562, -0.2046041488647461, -0.036025699228048325, -0.31446120142936707, -0.11747816205024719, -0.18871009349822998, -0.13419848680496216, -0.20357762277126312, -0.3640989065170288, 0.34803539514541626, 0.24610213935375214, 0.21400794386863708, 0.09026437252759933, -0.45836853981018066, -0.07891171425580978, 0.35481560230255127, -0.12418679893016815, -0.28325358033180237, 0.1383419930934906, 0.4399409592151642, -0.04516064375638962, 0.055376093834638596, -0.15188126266002655, -0.24682119488716125, 0.2993853986263275, 0.3708497881889343, 0.20686744153499603, -0.22964118421077728, -0.47999292612075806, -0.21386530995368958, -0.1637510359287262, 0.09455031156539917, -0.05825575813651085, 0.07348214834928513, -0.03491666167974472, -0.19735471904277802, -0.40450307726860046, -0.21761272847652435, 0.1502230167388916, -0.21024587750434875, 0.10339804738759995, 0.07073694467544556, 0.06489338725805283, -0.11043431609869003, 0.3473939299583435, 0.07498084008693695, -0.10629136115312576, -0.11665435880422592, -0.4895349144935608, 0.18912339210510254, 0.2510910630226135, 0.32762590050697327, -0.13721126317977905, -0.09546258300542831, 0.27507519721984863, -0.11491311341524124, -0.09759688377380371, 0.06332924962043762, 0.14485307037830353, -0.08912448585033417, -0.16507050395011902, -0.1705077886581421, 0.40358948707580566, 0.10975627601146698, 0.07412418723106384, 0.11521908640861511, -0.010979048907756805, 0.13530097901821136, -0.03427920490503311, -0.5431190729141235, -0.24497132003307343, 0.002179402858018875, 0.2665596902370453, 0.4691597819328308, 0.1900937259197235, -0.012311115860939026, -0.014136560261249542, 0.08931446820497513, -0.08038045465946198, 0.10165010392665863, -0.22514072060585022, -0.027920380234718323, 0.05534353107213974, 0.09249498695135117, 0.12632957100868225, 0.8288246393203735, 0.03883758932352066, -0.03012356534600258, 0.37184691429138184, 0.06268032640218735, -0.03146214410662651, 0.19813208281993866, 0.24028471112251282, 0.1411738246679306, 0.048766352236270905, -0.2679835557937622, -0.13640491664409637, -0.16713348031044006, -0.45508161187171936, 0.1805323362350464, 0.037081778049468994, -0.3722323179244995, -0.0525100901722908, -0.0892186388373375, 0.16701537370681763, -0.404832124710083, 0.14708727598190308, 0.017354808747768402, -0.15083450078964233, 0.08305302262306213, -0.33710891008377075, -0.12005732953548431, 0.26809582114219666, -0.35195499658584595, 0.5042937397956848, -0.24223878979682922, -0.6904580593109131, -0.08206716179847717, 0.06910038739442825, 0.014690021052956581, 0.0033887140452861786, 0.24041853845119476, 0.14097848534584045, 0.3661684989929199, -0.42595964670181274, -0.316897451877594, -0.1847919076681137, -0.36823493242263794, 0.22713640332221985, -0.0600530281662941, 0.18276184797286987, 0.7241837978363037, 0.2598712742328644, 0.5061618685722351, 0.030753914266824722, -0.04243123158812523, -0.07206213474273682, -0.18331106007099152, -0.1806834489107132, -0.00371645949780941, -0.05593445897102356, -0.10443997383117676, -0.5064574480056763, -0.13923518359661102, -0.11396074295043945, -0.09705567359924316, 0.08442798256874084, 0.10824906826019287, 0.11433091759681702, -0.06877060234546661, -0.2349226325750351, 0.10146349668502808, -0.05172991007566452, 0.23336495459079742, -0.17541514337062836, -0.09880118072032928, 0.10865901410579681, 0.1023278683423996, -0.02573644369840622, -0.28015851974487305, 0.3849774897098541, 0.278644323348999, -0.37106502056121826, -0.45058560371398926, 0.25420236587524414, 0.28360605239868164, -0.3570180833339691, -0.32259097695350647, 0.5209057331085205, 0.3419208824634552, 0.11979389190673828, -0.013686876744031906, -0.013425019569694996, 0.00017710775136947632, -0.03278259187936783, -0.11001988500356674, 0.005052048712968826, 0.3006661832332611, -0.05829836428165436, 0.8743443489074707, 0.22817233204841614, 0.03303070738911629, -0.2064897119998932, -0.18800996243953705, 0.48751604557037354, 0.2524280846118927, -0.11419283598661423, -0.26469776034355164, 0.20187290012836456, -0.0469805970788002, 0.06765814870595932, -0.14819222688674927, 0.012062338180840015, -0.09999074041843414, 0.003967788070440292, 0.23885801434516907, -0.13456445932388306, 0.20174731314182281, -0.3073751926422119, 0.47583743929862976, 0.06833633780479431, 0.03172938525676727, -0.14554475247859955, 0.16490253806114197, 0.34539347887039185, 0.4800218939781189, -0.06344171613454819, -0.03889938071370125, -0.46475598216056824, 0.1316262185573578, 0.10789361596107483, 0.061027999967336655, 0.19750487804412842, 0.3207823634147644, 0.21207468211650848, 0.011879663914442062, -0.03654196858406067, -0.206254243850708, 0.5126947164535522, -0.27183428406715393, -0.09552463889122009, 0.37886589765548706, -0.2670670449733734, -0.5391130447387695, -0.2027641236782074, -0.35793375968933105, 0.18787768483161926, 0.2366323620080948, 0.30713480710983276, -0.304184228181839, -0.3341444730758667, 0.3490556478500366, 0.4198930561542511, -0.22708994150161743, -0.3666779696941376, -0.19995181262493134, -0.22538724541664124, 0.1333642452955246, 0.1624695360660553, 0.05092962831258774, -0.25249505043029785, -0.11265360563993454, -0.12930765748023987, -0.009740414097905159, -0.07534808665513992, 0.04911930114030838, 0.02643919736146927, -0.07154347002506256, -0.24587750434875488, 0.09810923039913177, 0.018889399245381355, -0.1250443309545517, 0.3241610825061798, 0.40379443764686584, -0.05490757152438164, -0.024083726108074188, -0.21233373880386353, 0.013878128491342068, 0.178612619638443, 0.36592185497283936, -0.265192449092865, -0.1030067428946495, -0.1791069656610489, -0.11647678911685944, -0.33920425176620483, 0.18737943470478058, 0.33994972705841064, -0.3442929983139038, -0.1746537834405899, -0.39144524931907654, -0.0008414760231971741, 0.2535547614097595, -0.28132349252700806, 0.2478867918252945, 0.03444722294807434, -0.31886231899261475, 0.2294754683971405, 0.03015044704079628, 0.8512033820152283, 0.3101227283477783, 0.2281104475259781, 0.2530422806739807, 0.1451501101255417, 0.11954302340745926, -0.18914026021957397, 0.022152453660964966, -0.33646634221076965, -0.3023476302623749, -0.058006368577480316, -0.3673650026321411, 0.39009857177734375, -0.036284156143665314, -0.4104185700416565, 0.38682612776756287, -0.07286015897989273, 0.3628665804862976, 0.2722680866718292, 0.34359094500541687, -0.33835360407829285, 0.1145237535238266, 0.2583751380443573, 0.018074415624141693, 0.2837270498275757, 0.035245057195425034, -0.29730895161628723, 0.05804445967078209, 0.01330156996846199, -0.2999722957611084, -0.3554230332374573, -0.15959975123405457, -0.18883399665355682, 0.211081400513649, -0.10320235788822174, 0.33250880241394043, 0.27477753162384033, 0.19162599742412567, 0.07750977575778961, 0.6778804659843445, -0.251994252204895, 0.20806874334812164, -0.14858859777450562, 0.028946561738848686, 0.19914942979812622, 0.06205524504184723, 0.32503819465637207, -0.11202885955572128, -0.18755224347114563, -0.18327081203460693, -0.43943238258361816, 0.09717799723148346, -0.3428671360015869, -0.4078673720359802, 0.4965077042579651, -0.43278294801712036, -0.14565341174602509, -0.015579253435134888, 0.09785272181034088, -0.054236672818660736, 0.0252913199365139, 0.08868323266506195, -0.20732903480529785, 0.5303154587745667, -0.02464880421757698, -0.1288224756717682, 0.1336575448513031, 0.14714187383651733, 0.2428547441959381, 0.0232129767537117, 0.3430386483669281, -0.5171029567718506, 0.10282100737094879, -0.33851543068885803, 0.39582720398902893, 0.07613250613212585, 0.11758505553007126, 0.026624679565429688, 0.12791994214057922, 0.11324550211429596, -0.28003641963005066, 0.16708484292030334, 0.33918285369873047, 0.030962161719799042, -0.366318017244339, -0.18239270150661469, -0.18628346920013428, 0.044344864785671234, 0.23750506341457367, 0.37010467052459717, -0.062294840812683105, -0.01641630008816719, -0.1656382977962494, 0.2511924207210541, -0.2598525881767273, -0.018972475081682205, -0.040724605321884155, 0.014300784096121788, 0.11131260544061661, 0.32087793946266174, 0.01583036035299301, -0.11273752152919769, 0.0689602866768837, -0.07208535075187683, -0.047901708632707596, -0.10584210604429245, 0.005194764584302902, 0.21912220120429993, 0.16185036301612854, 0.34446021914482117, 0.5058852434158325, -0.10076656192541122, -0.07577590644359589, 0.21377912163734436, 0.1681276112794876, 0.03001609444618225, -0.027227558195590973, 0.01795351132750511, 0.20927056670188904, 0.0884503498673439, -0.6116981506347656, 0.32457801699638367, -0.018070213496685028, -0.08406339585781097, 0.16665582358837128, 0.27639561891555786, 0.023831553757190704, -0.14509126543998718, 0.5135515332221985, 0.24339115619659424, 0.18751612305641174, 0.22408536076545715, 0.019802838563919067, 0.1162269338965416, 0.06118891015648842, -0.30474400520324707, 0.26471561193466187, 0.7547231316566467, -0.3260667026042938, 0.13225151598453522, 0.16006582975387573, 0.04224400967359543, -0.3594687283039093, -0.132765531539917, 0.3088878393173218, -0.12133894115686417, 0.0205535851418972, 0.4691920280456543, 0.18558332324028015, -0.027541927993297577, 0.48242276906967163, -0.18215510249137878, 0.523083508014679, 0.18963123857975006, 0.15600043535232544, 0.14104735851287842, -0.36746761202812195, -0.028841916471719742, 0.17821690440177917, 0.14309236407279968, 0.019444093108177185, 0.07979610562324524, 0.01883465051651001, 0.5215137600898743, -0.08554168790578842, -0.3316715955734253, 0.04826365038752556, 0.04535996541380882, 0.21345767378807068, 0.18769128620624542, 0.41111329197883606, -0.07892780750989914, 0.07873336225748062, 0.04936143755912781, -0.09750905632972717, -0.3573014736175537, -0.01759021356701851, -0.2013564109802246, 0.06615525484085083, 0.022158868610858917, -0.18641212582588196, -0.0969884991645813, -0.3771672546863556, -0.07175710052251816, 0.2486489862203598, -0.3679232597351074, -0.2117595076560974, -0.005165211856365204, -0.10110566020011902, -0.19952985644340515, -0.009475518018007278, 0.04694601893424988, -0.014271959662437439, -0.31415891647338867, 0.06379394233226776, -0.08851239085197449, 0.25331348180770874, 0.09358638525009155, 0.28216221928596497, 0.16398920118808746, 0.15882927179336548, 0.0248117595911026, -0.30296921730041504, 0.022183680906891823, 0.10447171330451965, -0.01720483973622322, -0.18378989398479462, -0.2967105805873871, 0.1710273176431656, 0.23118415474891663, 0.09232344478368759, -0.08481372147798538, -0.016340378671884537, 0.28037896752357483, -0.41872283816337585, -0.4725970923900604, 0.6982751488685608, 0.1853661835193634, -0.006939481943845749, 0.009252233430743217, 0.19308330118656158, -0.22464397549629211, -0.24942530691623688, 0.19653096795082092, 0.03432897850871086, -0.02769121713936329, 0.11168716102838516, 0.03871441259980202, -0.0369681715965271, 0.24233560264110565, 0.0008616559207439423, 0.09430252015590668, -0.27480679750442505, -0.34417712688446045, -0.5843657851219177, 0.10111403465270996, -0.0472896434366703, -0.3706400394439697, -0.015989670529961586, -0.27191802859306335, 0.3491955101490021, 0.11443167179822922, -0.1990024894475937, 0.11649516224861145, 0.023219984024763107, -0.0356890931725502, -0.3825061321258545, -0.1549290418624878, -0.1018114984035492, -0.021760990843176842, -0.00464225746691227, -0.38048720359802246, -0.06701120734214783, -0.09774477034807205, -0.06338846683502197, 0.24010778963565826, -0.22009992599487305, 0.42108240723609924, -0.09873944520950317, 0.4155076742172241, -0.2641766667366028, 0.6831642389297485, 0.12982860207557678, -0.05693768709897995, 0.11695326864719391, 0.025321265682578087, -0.2458370476961136, 0.5251474976539612, 0.09368245303630829, -0.11549488455057144, -0.20657820999622345, -0.189718097448349, -0.2153807431459427, 0.00465688481926918, 0.1624525934457779, 0.16791118681430817, -0.32399967312812805, 0.11529434472322464, -0.28151705861091614, 0.1971023976802826, 0.1731899082660675, 0.09387591481208801, -0.34635764360427856, -0.056384094059467316, -0.3316383361816406, 0.06906227767467499, 0.532750129699707, 0.341520220041275, -0.24506032466888428, -0.18800289928913116, 0.3206633925437927, -0.1639346480369568, -0.009371640160679817, -0.21705010533332825, -0.1372949481010437, 0.40439292788505554, -0.07604747265577316, 0.08770154416561127, 0.27737316489219666, 0.11815159022808075, 0.08961087465286255, -0.17469024658203125, 0.5171285271644592, -0.32739102840423584, -0.134451225399971, -0.3556595742702484, -0.24785007536411285 ]
https://github.com/huggingface/datasets/pull/15
[Tests] General Test Design for all dataset scripts
UPDATE: This test design is ready now. I added dummy data to S3 for the dataests: `squad, crime_and_punish, sentiment140` . The structure can be seen on `https://s3.console.aws.amazon.com/s3/buckets/datasets.huggingface.co/nlp/squad/dummy/?region=us-east-1&tab=overview` for `squad`. All dummy data files have to be in .zip format and called `dummy_data.zip`. The zip file should thereby have the exact same folder structure one gets from downloading the "real" data url(s). To show how the .zip file looks like for the added datasets, I added the folder `nlp/datasets/dummy_data` in this PR. I think we can leave for the moment so that people can see better how to add dummy data tests and later delete it like `nlp/datasets/nlp`.
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader.
107
text: [Tests] General Test Design for all dataset scripts The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as minimal as possible. In order to test whether the specific data set class can download the data and generate the examples **without** downloading the actual data all the time, a MockDataLoaderManager class is used which receives a `mock_folder_structure_fn` function from each individual dataset test file that create "fake" data and which returns the same folder structure that would have been created when using the real data downloader. UPDATE: This test design is ready now. I added dummy data to S3 for the dataests: `squad, crime_and_punish, sentiment140` . The structure can be seen on `https://s3.console.aws.amazon.com/s3/buckets/datasets.huggingface.co/nlp/squad/dummy/?region=us-east-1&tab=overview` for `squad`. All dummy data files have to be in .zip format and called `dummy_data.zip`. The zip file should thereby have the exact same folder structure one gets from downloading the "real" data url(s). To show how the .zip file looks like for the added datasets, I added the folder `nlp/datasets/dummy_data` in this PR. I think we can leave for the moment so that people can see better how to add dummy data tests and later delete it like `nlp/datasets/nlp`.
[ -0.017695967108011246, -0.1327996850013733, -0.0840664803981781, 0.288481742143631, -0.08061516284942627, -0.05854109302163124, 0.31745612621307373, 0.23527570068836212, -0.09316587448120117, 0.05819481611251831, 0.022988591343164444, 0.26661041378974915, -0.1751548945903778, 0.3051580786705017, 0.12542873620986938, 0.03817085921764374, 0.019192352890968323, 0.278396338224411, -0.18894699215888977, 0.04740157723426819, -0.0978497862815857, 0.10273659229278564, 0.06059122085571289, -0.16801191866397858, -0.021812884137034416, 0.05264681577682495, -0.4832594692707062, 0.03775462508201599, -0.30897414684295654, -0.5108225345611572, 0.4380192756652832, 0.2828747034072876, 0.11346031725406647, 0.5761654376983643, -0.00010588773875497282, -0.14208920300006866, 0.43238502740859985, -0.026992639526724815, -0.42494580149650574, -0.012736320495605469, -0.04511402174830437, -0.018596168607473373, 0.1754303276538849, -0.3078327178955078, -0.011773243546485901, 0.12489704042673111, 0.07103092968463898, 0.003689143806695938, 0.41848689317703247, 0.17511135339736938, 0.20487762987613678, 0.2812312841415405, -0.44541770219802856, -0.0267917700111866, 0.28214031457901, 0.46024686098098755, -0.08355697244405746, 0.20588025450706482, 0.211217001080513, -0.0009478889405727386, 0.01735737919807434, -0.05960986018180847, -0.01449497602880001, 0.401640921831131, 0.3389629125595093, -0.03944159671664238, -0.03250834345817566, -0.3282569646835327, -0.43819165229797363, 0.31817689538002014, 0.713895320892334, -0.45681342482566833, -0.37814316153526306, -0.1921336054801941, 0.031123045831918716, -0.021417710930109024, 0.010417751967906952, 0.0033786464482545853, -0.13948386907577515, -0.058693211525678635, -0.19931086897850037, 0.01635698601603508, -0.07947149127721786, 0.15977874398231506, -0.19466570019721985, 0.2929738759994507, -0.20361638069152832, 0.023896612226963043, -0.14019626379013062, -0.019626345485448837, 0.42473462224006653, -0.480042040348053, -0.0053744688630104065, 0.16088344156742096, -0.19984368979930878, -0.47540754079818726, -0.1460028886795044, -0.07725802809000015, 0.2610377073287964, 0.3515195846557617, 0.03809089586138725, 0.05391494184732437, 0.16329945623874664, 0.06761735677719116, 0.04396689310669899, 0.2115381509065628, 0.292990505695343, 0.26868757605552673, 0.10758883506059647, 0.43645545840263367, 0.10807907581329346, -0.016269784420728683, -0.04956189915537834, -0.013594664633274078, -0.1284908652305603, 0.00970228761434555, 0.29486310482025146, -0.06276141852140427, -0.13096439838409424, -0.18867023289203644, 0.17247459292411804, -0.08140942454338074, 0.012621804140508175, 0.32981106638908386, 0.007871609181165695, -0.10433953255414963, 0.00950591266155243, 0.22278358042240143, -0.020294014364480972, 0.18074578046798706, -0.14481492340564728, 0.12907233834266663, -0.16644160449504852, 0.11579755693674088, 0.3530270755290985, 0.10667009651660919, 0.28982195258140564, -0.03939945995807648, -0.13668909668922424, -0.004993673413991928, 0.4806895852088928, -0.006558065302670002, 0.16141951084136963, 0.11759067326784134, -0.005170796066522598, 0.07748615741729736, 0.008230425417423248, 0.10563530027866364, -0.24769458174705505, -0.061328209936618805, -0.022211916744709015, -0.16982650756835938, -0.10470391809940338, 0.27097442746162415, -0.5715517997741699, -0.15855655074119568, -0.22868061065673828, -0.05621369555592537, -0.29475387930870056, -0.2991909086704254, 0.288451611995697, -0.041469670832157135, -0.09276627004146576, -0.03231339156627655, 0.07044492661952972, 0.7408086657524109, -0.0562887117266655, -0.08907272666692734, -0.3638918995857239, -0.22221128642559052, 0.11642387509346008, -0.02001509815454483, -0.19833555817604065, 0.0745326429605484, -0.3737002909183502, 0.1480865776538849, 0.3231196403503418, -0.3462837040424347, 0.01927299052476883, 0.4466645419597626, -0.13332918286323547, 0.177896648645401, 0.3497018814086914, -0.09624713659286499, 0.004752363543957472, -0.20676080882549286, -0.3520265221595764, 0.13637059926986694, -0.011824989691376686, 0.05737229436635971, -0.10205359756946564, -0.08424025774002075, 0.011339772492647171, 0.02035386860370636, -0.08434832096099854, -0.03023786097764969, -0.0887632891535759, -0.0907377302646637, 0.13397866487503052, -0.1495494842529297, -0.04281502962112427, 0.030837757512927055, 0.2544013559818268, -0.1512611210346222, -0.030009962618350983, -0.05402000993490219, -0.6893777847290039, 0.2780171036720276, -0.07673019170761108, 0.1701587438583374, -0.04795767366886139, -0.3483741879463196, -0.3253099024295807, -0.1447526514530182, -0.10739406943321228, -0.27237236499786377, 0.17920733988285065, 0.26733797788619995, 0.04351978376507759, -0.34002718329429626, -0.10752197355031967, -0.13916438817977905, -0.09936437755823135, 0.16425755620002747, -0.3308108448982239, 0.1908620297908783, -0.03480915725231171, 0.07697120308876038, 0.1772989183664322, -0.1455022096633911, 0.016402680426836014, -0.4210943579673767, -0.004197070375084877, 0.322062611579895, 0.2709229290485382, 0.22343622148036957, 0.3223271369934082, 0.36875730752944946, 0.037941042333841324, -0.02152126654982567, 0.1573588103055954, 0.07897184789180756, 0.11404109001159668, -0.03803601861000061, -0.4832516014575958, 0.30362945795059204, -0.06111212447285652, -0.048759825527668, -0.0602298267185688, -0.23473131656646729, 0.16630983352661133, -0.2374843806028366, -0.2929058372974396, -0.03855126351118088, 0.04134920611977577, 0.3337022662162781, 0.13355842232704163, 0.3588660657405853, 0.03365013003349304, -0.06371880322694778, 0.34193143248558044, -0.40583425760269165, 0.1714041531085968, 0.06535197794437408, -0.21834775805473328, -0.2420770525932312, 0.193202942609787, 0.5389683246612549, 0.6935648322105408, 0.05235464498400688, 0.43758484721183777, 0.0426112562417984, 0.10751257091760635, -0.20411184430122375, 0.29828739166259766, 0.10028509050607681, 0.15313339233398438, 0.13064837455749512, -0.11058897525072098, -0.10191275924444199, -0.15660011768341064, -0.45652806758880615, 0.2840542793273926, 0.1633615493774414, -0.37420588731765747, 0.020918721333146095, 0.04740746319293976, -0.2138333022594452, -0.21988065540790558, 0.16590774059295654, 0.08878039568662643, -0.21376653015613556, 0.0704769566655159, -0.12580813467502594, -0.15543359518051147, 0.03650335967540741, 0.06401482224464417, 0.4754488468170166, -0.09619740396738052, -0.30879828333854675, -0.4925484359264374, -0.04016224294900894, -0.17104500532150269, 0.19285769760608673, 0.22238962352275848, 0.2687191963195801, 0.22470363974571228, -0.3594004511833191, 0.012202935293316841, -0.3834356963634491, -0.3129217028617859, 0.266746461391449, -0.06181175261735916, 0.4257740378379822, 0.5008872747421265, 0.16428455710411072, 0.0882958471775055, -0.0428757444024086, -0.06592007726430893, -0.35345086455345154, -0.37511852383613586, 0.07948113232851028, -0.13096463680267334, -0.06823092699050903, -0.178627148270607, -0.510287880897522, -0.051467619836330414, -0.2169027179479599, 0.11569754779338837, 0.08853721618652344, -0.015959233045578003, -0.17164388298988342, 0.02752840891480446, 0.13617172837257385, -0.19475044310092926, 0.08468840271234512, -0.03808913007378578, -0.5371350646018982, 0.1363683044910431, -0.15239034593105316, -0.13825373351573944, -0.10749130696058273, -0.34138554334640503, 0.29886379837989807, -0.24276240170001984, -0.4053833484649658, -0.47808513045310974, 0.037005964666604996, 0.11291636526584625, 0.04207726567983627, 0.08152935653924942, 0.222543865442276, -0.063188336789608, -0.08449305593967438, -0.17375487089157104, 0.07995405793190002, -0.2780510485172272, 0.011979753151535988, 0.12607815861701965, -0.24075734615325928, 0.20800894498825073, 0.11943280696868896, 0.5756216645240784, 0.3274255692958832, -0.36674878001213074, 0.05506158620119095, -0.08724908530712128, 0.32114389538764954, 0.2068929523229599, -0.005606736987829208, -0.021890714764595032, 0.04134261608123779, -0.13113920390605927, 0.2192949652671814, -0.2694937288761139, -0.004821784794330597, 0.08904679119586945, 0.14033062756061554, -0.17633256316184998, -0.11283396184444427, 0.2428692728281021, -0.3555160462856293, 0.1025063619017601, -0.18251800537109375, -0.19081753492355347, -0.02880033850669861, 0.05123043805360794, 0.10815019905567169, 0.19390542805194855, 0.16048668324947357, -0.11936593055725098, -0.45198991894721985, -0.02789534255862236, -0.21261948347091675, 0.3766087293624878, 0.003924297168850899, 0.16219374537467957, 0.12618720531463623, -0.051927417516708374, -0.16608835756778717, -0.1475144922733307, 0.6451149582862854, -0.3186628222465515, -0.06165587157011032, 0.08923399448394775, -0.12989571690559387, -0.3504033088684082, 0.015982914716005325, -0.545643150806427, -0.07381046563386917, 0.12265758216381073, 0.34125611186027527, -0.3338998258113861, -0.3494844436645508, 0.10030649602413177, -0.061868004500865936, 0.024240251630544662, -0.21482110023498535, -0.0942758321762085, -0.2206675112247467, -0.3047400116920471, 0.1462966650724411, 0.08047658950090408, -0.2942831814289093, -0.3684965670108795, -0.1708221137523651, 0.0062462808564305305, 0.2405300736427307, 0.11159788072109222, 0.3404262661933899, -0.03018879145383835, 0.13890880346298218, 0.06472110748291016, 0.02784051187336445, -0.3497709333896637, 0.28062885999679565, 0.5695346593856812, -0.012722931802272797, -0.11867041885852814, 0.1638331413269043, 0.12074241042137146, 0.3152277171611786, 0.10666830837726593, 0.08970175683498383, -0.05969391018152237, -0.2720496356487274, -0.0037318915128707886, -0.20556287467479706, 0.08628375083208084, 0.3393791615962982, 0.06573863327503204, 0.2640123963356018, -0.23453432321548462, 0.38775596022605896, 0.10441070795059204, -0.22402338683605194, -0.02849692851305008, -0.08684684336185455, -0.14896468818187714, 0.42555487155914307, 0.14757241308689117, 0.6618647575378418, -0.055451713502407074, 0.37271371483802795, 0.2998966872692108, 0.07750841975212097, 0.6000446081161499, -0.13171006739139557, -0.1558181345462799, -0.23849241435527802, -0.1090107187628746, 0.03717949241399765, -0.24273671209812164, 0.27486082911491394, 0.19827580451965332, -0.4094296395778656, 0.32095471024513245, -0.015417687594890594, 0.16563177108764648, 0.15588319301605225, 0.6669313311576843, -0.3119228184223175, -0.023384418338537216, 0.026838891208171844, 0.22219368815422058, 0.034894540905952454, 0.08891646564006805, -0.12364242970943451, 0.04724688455462456, 0.04110422357916832, -0.11841955035924911, -0.0619816854596138, 0.06282919645309448, -0.05000258982181549, -0.1786361038684845, 0.04407547414302826, 0.013243496417999268, 0.18107527494430542, 0.35693392157554626, 0.0667378231883049, 0.1611536741256714, -0.15997643768787384, 0.1341986209154129, -0.07871798425912857, 0.06931041181087494, 0.014174391515552998, -0.07006175816059113, 0.33291834592819214, -0.052486248314380646, -0.28096744418144226, 0.018656034022569656, 0.08594385534524918, 0.0738995298743248, 0.27115368843078613, -0.2843902111053467, -0.082394078373909, -0.5487563014030457, -0.0781814306974411, -0.19647690653800964, -0.4843575358390808, -0.1273149996995926, 0.19768834114074707, 0.16949671506881714, -0.4501771926879883, 0.1767432987689972, 0.10304654389619827, -0.24342134594917297, -0.07992886006832123, 0.12228532135486603, -0.21739384531974792, 0.009807836264371872, 0.24889793992042542, 0.025626856833696365, 0.19015732407569885, -0.4144248366355896, 0.26515647768974304, 0.16756115853786469, 0.019321978092193604, 0.16371989250183105, -0.14638952910900116, -0.21345189213752747, 0.18611617386341095, 0.11442810297012329, 0.4434208869934082, 0.16607239842414856, -0.11790996789932251, -0.1392267942428589, -0.021789202466607094, 0.0405796617269516, 0.4218659996986389, 0.6329363584518433, -0.08605633676052094, -0.1260540932416916, 0.1545546054840088, 0.1397998034954071, -0.4138450622558594, 0.1404382884502411, -0.42463377118110657, 0.21431979537010193, -0.00702400878071785, -0.10679059475660324, 0.012730775400996208, -0.08130896091461182, 0.16093942523002625, -0.04457612335681915, -0.2530570328235626, -0.3388606607913971, -0.0590645857155323, 0.12546466290950775, 0.17806702852249146, 0.06392896175384521, 0.051406003534793854, 0.10613654553890228, 0.051724862307310104, -0.10488317161798477, 0.07017697393894196, -0.26689666509628296, -0.0361776277422905, 0.4214146137237549, 0.11030314117670059, -0.27352792024612427, -0.28814804553985596, -0.08042007684707642, -0.0677272379398346, -0.1633863002061844, -0.02269132249057293, 0.22154982388019562, -0.11264868080615997, -0.14937901496887207, 0.1835649460554123, 0.14126992225646973, 0.2628476023674011, 0.350329726934433, 0.15054169297218323, 0.026325613260269165, -0.11973533034324646, -0.21551735699176788, 0.21034954488277435, 0.44745275378227234, -0.26531553268432617, 0.12745457887649536, -0.04974113777279854, 0.281533420085907, -0.1823478788137436, -0.11737070977687836, -0.23185408115386963, 0.012082155793905258, 0.34510377049446106, 0.21530941128730774, 0.1115422248840332, 0.01713956892490387, 0.1990082859992981, -0.08097722381353378, 0.5205546617507935, -0.034550320357084274, 0.20437823235988617, 0.01350417360663414, -0.48080897331237793, -0.10684989392757416, 0.41163232922554016, -0.07250554859638214, 0.10579372197389603, -0.08602960407733917, 0.2809601128101349, 0.4943574368953705, -0.2713073492050171, 0.17305141687393188, 0.22582417726516724, -0.02086488902568817, 0.21310286223888397, 0.05725093185901642, 0.03843802958726883, 0.12342473119497299, 0.13660657405853271, -0.02396523207426071, -0.2719898819923401, -0.037171151489019394, -0.08201547712087631, 0.0034188777208328247, 0.20140337944030762, -0.12110280990600586, -0.6924718022346497, 0.021976351737976074, -0.06103639677166939, -0.28482258319854736, 0.0044604092836380005, -0.2932930588722229, 0.09940233826637268, 0.14787514507770538, -0.15423855185508728, -0.007939251139760017, 0.16681328415870667, 0.17863231897354126, 0.19223669171333313, -0.3298528492450714, 0.06206735968589783, 0.14539924263954163, -0.023108452558517456, -0.14880475401878357, 0.3489442467689514, 0.4031372666358948, -0.061452336609363556, -0.18865174055099487, 0.057536687701940536, -0.04921712353825569, -0.12445015460252762, -0.11341159790754318, 0.10084564238786697, -0.15323428809642792, -0.05634139105677605, 0.1775655895471573, 0.32774844765663147, -0.19170990586280823, -0.010573800653219223, 0.09098190069198608, -0.4055992662906647, -0.36611407995224, 0.520733118057251, 0.14416781067848206, 0.009010404348373413, -0.10483738780021667, 0.37698614597320557, -0.5839439630508423, -0.04400458186864853, 0.5277872085571289, -0.14971324801445007, 0.19517245888710022, -0.042636748403310776, 0.13143321871757507, 0.01991790160536766, 0.47293010354042053, 0.1279972344636917, 0.38615983724594116, -0.385124146938324, -0.033983420580625534, -0.5702815651893616, 0.05479617044329643, 0.1269906759262085, -0.29610881209373474, 0.19108057022094727, 0.1616119146347046, 0.16455814242362976, -0.016703814268112183, -0.3417354226112366, 0.16618438065052032, -0.3691142201423645, 0.12870119512081146, -0.422194242477417, -0.14990516006946564, -0.36971575021743774, 0.10748070478439331, 0.11204631626605988, -0.2796424627304077, 0.04242139682173729, -0.10972437262535095, 0.013996660709381104, 0.17998194694519043, -0.012891847640275955, 0.5216249823570251, -0.1983957588672638, 0.286302387714386, -0.02886589802801609, 0.5266287326812744, -0.1167982816696167, 0.023273156955838203, -0.10477004945278168, 0.02047106996178627, -0.08944610506296158, 0.15930992364883423, -0.10167764127254486, 0.2292383313179016, 0.04090243577957153, 0.20836101472377777, -0.15602774918079376, -0.10945562273263931, 0.16561809182167053, 0.012792927213013172, -0.19126856327056885, 0.15853489935398102, -0.24787193536758423, 0.09391817450523376, 0.2214432954788208, 0.3995780050754547, -0.21835586428642273, -0.039093658328056335, -0.13961724936962128, -0.13489139080047607, 0.47024407982826233, -0.15749114751815796, -0.1658228635787964, -0.10257769376039505, 0.3415699005126953, -0.08253427594900131, 0.06874775141477585, -0.30981725454330444, 0.19956731796264648, 0.343739777803421, -0.04256335645914078, -0.09730075299739838, 0.3023585081100464, 0.36390045285224915, 0.15763793885707855, -0.1978396624326706, 0.5942277908325195, -0.05049782246351242, 0.10315597057342529, -0.19176827371120453, -0.426103413105011 ]
https://github.com/huggingface/datasets/pull/13
[Make style]
I think this can be quickly reproduced. I use `black, version 19.10b0`. When running: `black nlp/src/arrow_reader.py` it gives me: ``` error: cannot format /home/patrick/hugging_face/nlp/src/nlp/arrow_reader.py: cannot use --safe with this file; failed to parse source file. AST error message: invalid syntax (<unknown>, line 78) Oh no! 💥 💔 💥 1 file failed to reformat. ``` The line in question is: https://github.com/huggingface/nlp/blob/6922a16705e61f9e31a365f2606090b84d49241f/src/nlp/arrow_reader.py#L78 What is weird is that the trainer file in `transformers` has more or less the same syntax and black does not fail there: https://github.com/huggingface/transformers/blob/cb3c2212c79d7ff0a4a4e84c3db48371ecc1c15d/src/transformers/trainer.py#L95 I googled quite a bit about black & typing hints yesterday and didn't find anything useful. Any ideas @thomwolf @julien-c @LysandreJik ?
Added Makefile and applied make style to all. make style runs the following code: ``` style: black --line-length 119 --target-version py35 src isort --recursive src ``` It's the same code that is run in `transformers`.
106
text: [Make style] Added Makefile and applied make style to all. make style runs the following code: ``` style: black --line-length 119 --target-version py35 src isort --recursive src ``` It's the same code that is run in `transformers`. I think this can be quickly reproduced. I use `black, version 19.10b0`. When running: `black nlp/src/arrow_reader.py` it gives me: ``` error: cannot format /home/patrick/hugging_face/nlp/src/nlp/arrow_reader.py: cannot use --safe with this file; failed to parse source file. AST error message: invalid syntax (<unknown>, line 78) Oh no! 💥 💔 💥 1 file failed to reformat. ``` The line in question is: https://github.com/huggingface/nlp/blob/6922a16705e61f9e31a365f2606090b84d49241f/src/nlp/arrow_reader.py#L78 What is weird is that the trainer file in `transformers` has more or less the same syntax and black does not fail there: https://github.com/huggingface/transformers/blob/cb3c2212c79d7ff0a4a4e84c3db48371ecc1c15d/src/transformers/trainer.py#L95 I googled quite a bit about black & typing hints yesterday and didn't find anything useful. Any ideas @thomwolf @julien-c @LysandreJik ?
[ 0.026237931102514267, -0.6879024505615234, 0.01119885966181755, 0.11113299429416656, 0.24568867683410645, 0.03453223407268524, 0.32707181572914124, 0.3307730257511139, -0.3394853472709656, -0.08710820972919464, -0.04530801624059677, 0.2402157485485077, -0.14537838101387024, 0.1459493786096573, 0.04526239261031151, -0.002420879900455475, -0.03849812597036362, 0.48247721791267395, -0.16511814296245575, -0.10535579919815063, 0.158439502120018, 0.24448822438716888, -0.12364185601472855, 0.3207864761352539, -0.2667384743690491, 0.13021202385425568, -0.15207356214523315, 0.027950331568717957, -0.10219357162714005, -0.23613959550857544, 0.259551465511322, -0.13186414539813995, -0.23186154663562775, 0.7210979461669922, -0.00012567253725137562, -0.1659262329339981, 0.16766700148582458, -0.15629041194915771, 0.047293875366449356, -0.4409002661705017, 0.051697738468647, -0.031773291528224945, 0.43042293190956116, -0.09354635328054428, -0.03236181661486626, -0.3704475462436676, 0.13014541566371918, 0.3285627067089081, 0.8110853433609009, 0.10564395785331726, 0.07491616159677505, 0.3441183865070343, 0.281913697719574, 0.11665987223386765, 0.2631534934043884, 0.33412086963653564, -0.23976321518421173, 0.021663999184966087, 0.17242172360420227, 0.09882888197898865, 0.4008636772632599, 0.2627873718738556, 0.17494021356105804, -0.3601234257221222, 0.5906858444213867, -0.2259683609008789, 0.15875989198684692, -0.07651294022798538, -0.1520889699459076, 0.31525152921676636, 0.025841161608695984, 0.01718226820230484, -0.10193376243114471, -0.023526493459939957, -0.18380817770957947, 0.1792529672384262, 0.01988624781370163, 0.06462308019399643, -0.3783709704875946, 0.10128666460514069, -0.30707311630249023, -0.20681998133659363, -0.18316349387168884, -0.08574649691581726, 0.4407801926136017, 0.6057599782943726, -0.1475442349910736, -0.02164265513420105, 0.2540244162082672, 0.18144212663173676, 0.13766606152057648, 0.011096948757767677, -0.10430087149143219, 0.21480301022529602, 0.16942210495471954, -0.10452999174594879, 0.1663486361503601, 0.10269834101200104, -0.23022928833961487, -0.0660010501742363, 0.5744011998176575, 0.08961179852485657, -0.15089914202690125, 0.0883568748831749, -0.2694474458694458, -0.021663162857294083, 0.4957742393016815, 0.235625758767128, -0.115001380443573, 0.23443298041820526, -0.007373586297035217, -0.11172664910554886, -0.13302269577980042, -0.341377854347229, -0.022466231137514114, 0.11268910020589828, 0.11799013614654541, -0.30458030104637146, -0.30491143465042114, -0.12042934447526932, -0.38283678889274597, -0.22431494295597076, 0.01803995855152607, 0.16968151926994324, 0.13993017375469208, -0.18447163701057434, 0.41675901412963867, 0.2197004109621048, -0.2391749620437622, 0.15567325055599213, -0.07491602003574371, -0.03235384449362755, -0.43899720907211304, -0.043498001992702484, -0.12600025534629822, -0.030080493539571762, -0.10673188418149948, 0.12761496007442474, -0.18943433463573456, -0.24566683173179626, -0.07697743922472, 0.15334203839302063, 0.47558993101119995, -0.0016481131315231323, -0.8119828701019287, -0.0042834095656871796, 0.23695366084575653, -0.25087565183639526, -0.11269793659448624, 0.1741018444299698, -0.04024890810251236, -0.13751836121082306, -0.017481697723269463, 0.07582161575555801, -0.10024572163820267, 0.22849276661872864, -0.1309569776058197, 0.08598916232585907, 0.29739609360694885, -0.24983853101730347, 0.2624567449092865, -0.11095784604549408, -0.11653673648834229, -0.07415923476219177, 0.22681422531604767, 0.40616416931152344, -0.25684428215026855, -0.5620214939117432, 0.22738958895206451, 0.0029105432331562042, 0.09045668691396713, 0.25827711820602417, -0.1583453118801117, 0.08947542309761047, -0.29434582591056824, 0.07102237641811371, 0.5268087983131409, -0.018388010561466217, 0.08177607506513596, 0.3420964777469635, -0.3549981713294983, 0.005219938233494759, -0.01304338127374649, -0.33783307671546936, -0.28039729595184326, -0.19448843598365784, -0.06377100944519043, 0.13807442784309387, 0.08359723538160324, -0.16778461635112762, -0.2781456410884857, -0.06689362972974777, 0.10897170752286911, -0.4665279686450958, -0.13655024766921997, -0.2933449447154999, -0.01992744207382202, 0.32140225172042847, 0.623297929763794, -0.12326017022132874, -0.3061860203742981, -0.18810458481311798, 0.29335933923721313, 0.10571220517158508, -0.14961427450180054, -0.06901794672012329, 0.09733288735151291, -0.13628259301185608, -0.3991393744945526, 0.07478116452693939, -0.2992035746574402, 0.04298464208841324, -0.16235226392745972, -0.15739597380161285, -0.27600347995758057, -0.4722636640071869, 0.10300527513027191, 0.1460869312286377, -0.18749935925006866, -0.09670436382293701, 0.127418652176857, -0.2543801963329315, 0.10467615723609924, 0.22003193199634552, -0.24714870750904083, 0.03721747547388077, -0.3079598546028137, -0.19377271831035614, -0.16965685784816742, 0.2059885859489441, 0.1709655523300171, -0.17250582575798035, -0.18894821405410767, 0.29186075925827026, -0.3381684124469757, 0.2848254144191742, -0.517943799495697, -0.051166877150535583, 0.14465664327144623, -0.6956769227981567, -0.2351873815059662, 0.4460487365722656, 0.04391740635037422, -0.15925800800323486, 0.03835044801235199, 0.05248849093914032, -0.02542434260249138, 0.2897171378135681, -0.15224957466125488, -0.17499956488609314, -0.46166256070137024, 0.16242384910583496, -0.14844805002212524, -0.2691490054130554, 0.1735352873802185, 0.1162523627281189, -0.045581113547086716, 0.08980771899223328, 0.20728906989097595, -0.08185865730047226, 0.26441606879234314, 0.14459197223186493, 0.18803995847702026, -0.1196574941277504, 0.20417582988739014, 0.020947180688381195, 0.04113677516579628, 0.13000181317329407, 0.08592237532138824, -0.06851009279489517, -0.2760612666606903, 0.09819326549768448, -0.17468009889125824, -0.46190595626831055, 0.1773170530796051, 0.40940946340560913, 0.32979896664619446, -0.0681120827794075, 0.14516104757785797, 0.25081709027290344, -0.06234896183013916, -0.2925717234611511, 0.007177671417593956, -0.31465840339660645, -0.16885177791118622, 0.49512916803359985, -0.2588508129119873, 0.3616773188114166, -0.6393879652023315, -0.11770989745855331, -0.05955993011593819, -0.05143831670284271, -0.25156402587890625, -0.20911234617233276, -0.27701470255851746, 0.01078193262219429, 0.0583871491253376, -0.055492207407951355, -0.17825105786323547, -0.11480293422937393, -0.14005276560783386, 0.04580316320061684, -0.12683114409446716, -0.048080042004585266, 0.2971359193325043, -0.026520315557718277, 0.13606229424476624, -0.4335409700870514, -0.06751839816570282, 0.27464714646339417, -0.6798414587974548, 0.09603200852870941, -0.22136317193508148, -0.1509357988834381, 0.40342947840690613, 0.08474186807870865, -0.30353885889053345, -0.37162408232688904, 0.32716068625450134, -0.43191924691200256, -0.06046009063720703, -0.16339386999607086, 0.16296420991420746, 0.03052566759288311, -0.3356683552265167, 0.1968328058719635, 0.21873298287391663, -0.28269508481025696, 0.5682576894760132, 0.05029459670186043, 0.12591859698295593, 0.5405169725418091, 0.06431421637535095, 0.3453975021839142, -0.17216697335243225, 0.39993399381637573, 0.29724475741386414, 0.369340181350708, 0.27942195534706116, -0.08213766664266586, 0.025487493723630905, 0.12065142393112183, 0.13897326588630676, 0.09381058067083359, -0.32967883348464966, -0.24717265367507935, 0.22615160048007965, -0.26179713010787964, -0.13986295461654663, 0.1834886521100998, 0.32826459407806396, 0.24197717010974884, 0.1970585435628891, -0.0070596542209386826, 0.019777417182922363, -0.26706865429878235, 0.03699372336268425, -0.38867780566215515, 0.3534198999404907, -0.050088733434677124, 0.15093863010406494, 0.13399003446102142, 0.41588592529296875, -0.12270781397819519, -0.08404374122619629, 0.054588429629802704, 0.31485000252723694, 0.3884410560131073, -0.25196248292922974, -0.1662994623184204, 0.11030733585357666, 0.051065899431705475, -0.0590352900326252, 0.06758476048707962, 0.02599560096859932, 0.22827734053134918, -0.11425977945327759, -0.3260233700275421, 0.08190388232469559, -0.3556177020072937, 0.3036864101886749, 0.13533419370651245, -0.06707414239645004, -0.1316099911928177, 0.4294135868549347, 0.3748604655265808, -0.10966793447732925, 0.2315630465745926, 0.18779757618904114, 0.15032319724559784, 0.11632826924324036, -0.06798074394464493, -0.47839370369911194, -0.08532736450433731, 0.3570557236671448, 0.18347281217575073, 0.12817859649658203, 0.03224765881896019, -0.23062580823898315, 0.11664897203445435, 0.1002945601940155, 0.026716873049736023, 0.4173499345779419, 0.07015735656023026, 0.2621462345123291, -0.1706920713186264, -0.22390636801719666, -0.352994441986084, -0.21904785931110382, 0.0014591752551496029, 0.041954901069402695, 0.13581223785877228, -0.42845049500465393, -0.27000710368156433, 0.14229708909988403, 0.22001412510871887, 0.011702898889780045, -0.03243882954120636, -0.1416960060596466, 0.03520699590444565, -0.24211804568767548, 0.14959006011486053, 0.13206607103347778, 0.142387256026268, -0.3290763795375824, 0.2664007544517517, 0.11694458872079849, -0.018241677433252335, 0.15964683890342712, 0.06083741411566734, 0.35768571496009827, 0.07286785542964935, -0.32173430919647217, 0.3292238712310791, -0.23019742965698242, -0.11275440454483032, 0.37853580713272095, -0.3258722722530365, -0.1388065069913864, 0.17235499620437622, -0.01751146838068962, 0.10182827711105347, 0.7131698131561279, 0.01700615882873535, -0.09844592958688736, 0.36210814118385315, -0.06128460168838501, 0.06626693159341812, -0.07862824201583862, 0.308260053396225, 0.13794712722301483, 0.1000317931175232, -0.1961817443370819, 0.4338543713092804, -0.14030864834785461, -0.022035881876945496, 0.0007241107523441315, 0.31740647554397583, -0.20793069899082184, 0.5028873085975647, 0.22198498249053955, 1.1624094247817993, 0.2326190173625946, 0.5323806405067444, 0.01769750565290451, -0.216898575425148, 0.18303290009498596, 0.42257338762283325, 0.05111064016819, -0.30190780758857727, -0.19998911023139954, 0.1513795703649521, -0.12215714156627655, 0.02051863819360733, 0.1573195606470108, -0.2737410068511963, 0.07083433121442795, -0.1733473539352417, 0.20917631685733795, 0.3084977865219116, -0.2471863329410553, 0.21093231439590454, -0.061415817588567734, -0.3207515776157379, -0.06826045364141464, 0.2851290702819824, 0.20783956348896027, -0.17842450737953186, -0.26910400390625, 0.0692640095949173, -0.35097813606262207, -0.4173749089241028, 0.15208613872528076, -0.42029544711112976, 0.1064240038394928, 0.43223604559898376, -0.5472970008850098, 0.7020994424819946, 0.2771300673484802, 0.26705339550971985, 0.590000569820404, -0.09940701723098755, 0.062088340520858765, 0.31908896565437317, 0.05993686243891716, -0.1860252171754837, 0.07420550286769867, 0.5110672116279602, 0.02605055272579193, 0.027135930955410004, 0.2614920139312744, -0.04651888459920883, 0.042157188057899475, -0.2346193939447403, 0.19404534995555878, 0.07158730179071426, -0.14062248170375824, -0.2418297976255417, -0.3280075192451477, -0.23382967710494995, -0.19067780673503876, 0.018073178827762604, 0.09443947672843933, -0.3580242693424225, -0.3155633211135864, 0.4003349840641022, -0.3642321825027466, 0.207636296749115, -0.10205801576375961, -0.06648202240467072, -0.11004228889942169, 0.6984480619430542, 0.32571518421173096, -0.015226887539029121, -0.11368294805288315, 0.21164420247077942, 0.34988710284233093, -0.5779717564582825, 0.17108102142810822, -0.11844192445278168, -0.3039456605911255, -0.10754001885652542, 0.6268941164016724, 0.23530954122543335, 0.20726090669631958, -0.06588105857372284, 0.006030060350894928, -0.21247951686382294, 0.01997966691851616, -0.08205248415470123, 0.20964185893535614, 0.14299416542053223, 0.38811975717544556, 0.32793769240379333, 0.19367776811122894, -0.21708613634109497, 0.14838005602359772, 0.05870595574378967, 0.08305233716964722, -0.2649783790111542, -0.16160503029823303, 0.2544682025909424, 0.08544988930225372, -0.10131701827049255, 0.6686386466026306, -0.1711486130952835, 0.038119614124298096, -0.4559892416000366, 0.12382008135318756, 0.025197962298989296, 0.013821008615195751, 0.01749502867460251, 0.2380579262971878, 0.4141950011253357, -0.15202531218528748, -0.1586744785308838, -0.09444394707679749, 0.2041177600622177, 0.23148009181022644, 0.32785919308662415, 0.000795021653175354, -0.3172261118888855, -0.1742023229598999, -0.018216364085674286, 0.5623331069946289, 0.14058692753314972, 0.001801915466785431, -0.10515747964382172, -0.11665064096450806, 0.03936588391661644, 0.18870651721954346, 0.1041395291686058, 0.4565708637237549, -0.23946693539619446, -0.2515506148338318, 0.026770446449518204, -0.41811510920524597, 0.1766078770160675, 0.3765930235385895, -0.06245921552181244, -0.17355000972747803, 0.040088433772325516, 0.007541016675531864, 0.1728695034980774, 0.04162807762622833, -0.018906570971012115, 0.024172136560082436, -0.12777000665664673, 0.39545267820358276, -0.2646961808204651, -0.2490749955177307, -0.21170048415660858, 0.3738996088504791, -0.6273361444473267, -0.03488168120384216, 0.23375293612480164, 0.3891013562679291, -0.27587446570396423, 0.0933363065123558, 0.6587608456611633, -0.06034005060791969, 0.036633528769016266, -0.29859358072280884, -0.09123628586530685, -0.1563151776790619, -0.2038976550102234, 0.0334443636238575, 0.08412065356969833, -0.17893894016742706, -0.3158982992172241, -0.035073310136795044, 0.4188307225704193, 0.2903554141521454, -0.07678642868995667, 0.3449919819831848, -0.021844547241926193, -0.14037835597991943, 0.3338742256164551, 0.05185311287641525, -0.04385199397802353, -0.3252617418766022, 0.2304878830909729, 0.13081035017967224, -0.4484263062477112, -0.23238696157932281, -0.1415223330259323, 0.13062286376953125, 0.05277489870786667, -0.04512563347816467, 0.09230709075927734, 0.18925778567790985, -0.229079931974411, -0.10398440808057785, 0.27600839734077454, -0.4050424098968506, 0.2125621885061264, 0.10605811327695847, 0.04277871549129486, 0.0648280531167984, 0.1006694883108139, 0.46749770641326904, 0.26437222957611084, -0.06668859720230103, -0.17288178205490112, -0.31158962845802307, -0.16026397049427032, 0.32287758588790894, 0.2834819257259369, 0.3458479046821594, -0.1615942120552063, 0.11149387061595917, -0.008262048475444317, -0.22015884518623352, 0.18992434442043304, 0.12477821111679077, 0.22127878665924072, -0.06125200167298317, 0.28768694400787354, -0.1900152564048767, -0.4102376401424408, -0.2776334583759308, 0.1271050125360489, -0.21974164247512817, 0.16210339963436127, 0.20229139924049377, -0.05154721066355705, -0.07935945689678192, -0.21672585606575012, 0.01915184035897255, 0.45185592770576477, 0.5152353048324585, 0.4010589122772217, 0.11739294230937958, -0.0167715921998024, 0.05630546808242798, -0.31952986121177673, 0.00025276094675064087, 0.222812220454216, 0.02448316104710102, 0.009498106315732002, -0.03818511962890625, 0.07736708223819733, 0.14492057263851166, 0.3063817620277405, -0.04194888845086098, 0.0386439748108387, 0.10290175676345825, 0.06809251010417938, 0.1371370553970337, -0.013158529996871948, -0.13473989069461823, 0.12376923859119415, -0.14306622743606567, 0.07729224115610123, -0.48158860206604004, -0.04244886338710785, -0.13715200126171112, -0.06182250380516052, -0.1211060881614685, 0.08716049790382385, 0.06883440911769867, 0.07661784440279007, 0.17967967689037323, -0.07688815146684647, -0.588843047618866, -0.1339619904756546, -0.039453789591789246, 0.01364473532885313, 0.661494255065918, 0.1307203620672226, 0.5501469373703003, -0.20781181752681732, -0.053904030472040176, -0.2974671423435211, 0.3881559669971466, -0.08743666857481003, -0.3573163151741028, -0.22106494009494781, 0.13813245296478271, -0.3185897469520569, -0.1567268669605255, 0.23822034895420074, 0.5494595766067505, -0.15168699622154236, -0.29420769214630127, -0.3916141986846924, -0.522318959236145, 0.4500313997268677, -0.20415113866329193, -0.2245592176914215, -0.16034838557243347, 0.11974967271089554, 0.1878540813922882, -0.03955903649330139, -0.6761369705200195, 0.037552110850811005, -0.03747200965881348, 0.078083835542202, -0.37326034903526306, -0.055990155786275864, 0.008208203129470348, 0.06011159345507622, -0.09172973036766052, 0.28464770317077637, 0.15973368287086487, -0.05154753476381302, -0.19240163266658783, -0.2322215437889099 ]
https://github.com/huggingface/datasets/pull/13
[Make style]
> I think this can be quickly reproduced. > I use `black, version 19.10b0`. > > When running: > `black nlp/src/arrow_reader.py` > it gives me: > > ``` > error: cannot format /home/patrick/hugging_face/nlp/src/nlp/arrow_reader.py: cannot use --safe with this file; failed to parse source file. AST error message: invalid syntax (<unknown>, line 78) > Oh no! 💥 💔 💥 > 1 file failed to reformat. > ``` > > The line in question is: > https://github.com/huggingface/nlp/blob/6922a16705e61f9e31a365f2606090b84d49241f/src/nlp/arrow_reader.py#L78 > > What is weird is that the trainer file in `transformers` has more or less the same syntax and black does not fail there: > https://github.com/huggingface/transformers/blob/cb3c2212c79d7ff0a4a4e84c3db48371ecc1c15d/src/transformers/trainer.py#L95 > > I googled quite a bit about black & typing hints yesterday and didn't find anything useful. > Any ideas @thomwolf @julien-c @LysandreJik ? Ok I found the problem. It was the one Julien mentioned and has nothing to do with this line. Black's error message is a bit misleading here, I guess
Added Makefile and applied make style to all. make style runs the following code: ``` style: black --line-length 119 --target-version py35 src isort --recursive src ``` It's the same code that is run in `transformers`.
156
text: [Make style] Added Makefile and applied make style to all. make style runs the following code: ``` style: black --line-length 119 --target-version py35 src isort --recursive src ``` It's the same code that is run in `transformers`. > I think this can be quickly reproduced. > I use `black, version 19.10b0`. > > When running: > `black nlp/src/arrow_reader.py` > it gives me: > > ``` > error: cannot format /home/patrick/hugging_face/nlp/src/nlp/arrow_reader.py: cannot use --safe with this file; failed to parse source file. AST error message: invalid syntax (<unknown>, line 78) > Oh no! 💥 💔 💥 > 1 file failed to reformat. > ``` > > The line in question is: > https://github.com/huggingface/nlp/blob/6922a16705e61f9e31a365f2606090b84d49241f/src/nlp/arrow_reader.py#L78 > > What is weird is that the trainer file in `transformers` has more or less the same syntax and black does not fail there: > https://github.com/huggingface/transformers/blob/cb3c2212c79d7ff0a4a4e84c3db48371ecc1c15d/src/transformers/trainer.py#L95 > > I googled quite a bit about black & typing hints yesterday and didn't find anything useful. > Any ideas @thomwolf @julien-c @LysandreJik ? Ok I found the problem. It was the one Julien mentioned and has nothing to do with this line. Black's error message is a bit misleading here, I guess
[ 0.03684738650918007, -0.7303244471549988, 0.002632174640893936, 0.1598760187625885, 0.28160524368286133, 0.02221638709306717, 0.3316728472709656, 0.30190181732177734, -0.3750803768634796, -0.0640910416841507, -0.07496938854455948, 0.22027859091758728, -0.18166415393352509, 0.12042217701673508, 0.05421879142522812, 0.0007232539355754852, 0.01151612401008606, 0.44626423716545105, -0.12083330750465393, -0.11431828141212463, 0.12858989834785461, 0.29683539271354675, -0.10208513587713242, 0.37081193923950195, -0.2883945107460022, 0.18638601899147034, -0.14854946732521057, 0.05486825853586197, -0.04546048492193222, -0.26121073961257935, 0.2753875255584717, -0.18971101939678192, -0.23280058801174164, 0.7045962810516357, -0.00012510882515925914, -0.1173565462231636, 0.14635586738586426, -0.14177854359149933, 0.0030964184552431107, -0.41450732946395874, 0.07740866392850876, -0.0927797332406044, 0.40143150091171265, -0.1269392967224121, -0.05186854302883148, -0.3237612247467041, 0.13586392998695374, 0.346804141998291, 0.8249048590660095, 0.11311619728803635, 0.08718306571245193, 0.32911404967308044, 0.2713770866394043, 0.08398977667093277, 0.28956466913223267, 0.3077155649662018, -0.24608220160007477, 0.08236293494701385, 0.05760962516069412, 0.1273183971643448, 0.4039105772972107, 0.2831406593322754, 0.13289597630500793, -0.3567838668823242, 0.6318740844726562, -0.2120995968580246, 0.17692115902900696, -0.11684875190258026, -0.12601667642593384, 0.3066907227039337, 0.03217453509569168, 0.0558994822204113, -0.1502436399459839, -0.032366156578063965, -0.21217983961105347, 0.20093917846679688, 0.008662328124046326, 0.08764912933111191, -0.3318409025669098, 0.14009875059127808, -0.3035762906074524, -0.15767797827720642, -0.18078204989433289, -0.092200368642807, 0.4110948443412781, 0.5542727708816528, -0.1663290113210678, 0.030778657644987106, 0.21554222702980042, 0.21910665929317474, 0.08065758645534515, 0.031293001025915146, -0.12046997249126434, 0.17641253769397736, 0.14517918229103088, -0.07148189842700958, 0.1340499222278595, 0.07329551130533218, -0.19500792026519775, -0.05361749976873398, 0.6083698868751526, 0.06711961328983307, -0.1470276415348053, 0.11108428239822388, -0.3115908205509186, -0.030057987198233604, 0.4677736163139343, 0.215805321931839, -0.13858307898044586, 0.18517346680164337, -0.0025040805339813232, -0.13075938820838928, -0.14059482514858246, -0.34497949481010437, -0.030220823362469673, 0.12253451347351074, 0.13297557830810547, -0.29195454716682434, -0.34229788184165955, -0.09602238237857819, -0.3561674952507019, -0.23075313866138458, -0.01516807358711958, 0.1727176308631897, 0.16259002685546875, -0.16606265306472778, 0.3887243866920471, 0.1840001493692398, -0.25666290521621704, 0.16416046023368835, -0.06800224632024765, -0.04886805638670921, -0.45813894271850586, -0.012773746624588966, -0.20489302277565002, -0.07377491891384125, -0.0839894562959671, 0.11361231654882431, -0.18904434144496918, -0.28507083654403687, -0.10289721935987473, 0.11975540220737457, 0.4757339656352997, 0.022856634110212326, -0.790645182132721, 0.03545103222131729, 0.23303312063217163, -0.227328360080719, -0.09625991433858871, 0.1538541167974472, -0.08995876461267471, -0.17379556596279144, 0.024779170751571655, 0.07094281166791916, -0.1003270298242569, 0.25829464197158813, -0.10496578365564346, 0.05953427776694298, 0.3013221323490143, -0.3146074712276459, 0.22892853617668152, -0.11310188472270966, -0.17054779827594757, -0.12231673300266266, 0.2023388147354126, 0.3992695212364197, -0.2806486189365387, -0.5052648186683655, 0.2399338334798813, -0.011692579835653305, 0.10772070288658142, 0.2991606891155243, -0.19523216784000397, 0.07784783095121384, -0.34720921516418457, 0.04784442484378815, 0.4846614897251129, -0.02872498705983162, 0.06872352212667465, 0.3604961037635803, -0.3658064603805542, 0.04486358165740967, -0.018596336245536804, -0.29190194606781006, -0.2367163747549057, -0.206499844789505, -0.09338323771953583, 0.09422311931848526, 0.11116236448287964, -0.14996403455734253, -0.2783363163471222, -0.04943867027759552, 0.10777391493320465, -0.49116307497024536, -0.16812027990818024, -0.25712689757347107, 0.002685151994228363, 0.3538348972797394, 0.6355939507484436, -0.12293875217437744, -0.33384695649147034, -0.15191888809204102, 0.29540130496025085, 0.07645831257104874, -0.16676633059978485, -0.08282846957445145, 0.051304422318935394, -0.11961555480957031, -0.38298580050468445, 0.07111433893442154, -0.23102767765522003, 0.04658414423465729, -0.17043206095695496, -0.1671876609325409, -0.2098352462053299, -0.5097442865371704, 0.11362853646278381, 0.1931714415550232, -0.18770302832126617, -0.16746875643730164, 0.09914866089820862, -0.18188393115997314, 0.08719698339700699, 0.20448772609233856, -0.1824723184108734, 0.05608233064413071, -0.309648722410202, -0.19407542049884796, -0.16226908564567566, 0.16743111610412598, 0.1934952437877655, -0.20238439738750458, -0.1622382402420044, 0.3058762550354004, -0.34383970499038696, 0.26753145456314087, -0.579882800579071, -0.07042272388935089, 0.11083678156137466, -0.7042493224143982, -0.24150165915489197, 0.4025300443172455, 0.032216232270002365, -0.15321660041809082, 0.03882167488336563, 0.023595310747623444, -0.028025131672620773, 0.31663796305656433, -0.1190141960978508, -0.12394014745950699, -0.44893839955329895, 0.14265203475952148, -0.13548420369625092, -0.24257327616214752, 0.19723740220069885, 0.09896828234195709, 0.00431225448846817, 0.10181793570518494, 0.21347644925117493, -0.07598874717950821, 0.2944171726703644, 0.10741740465164185, 0.10503916442394257, -0.07896668463945389, 0.19498471915721893, 0.04737354815006256, 0.019492901861667633, 0.1599774807691574, 0.14355875551700592, -0.07620108127593994, -0.27499446272850037, 0.11785433441400528, -0.20169460773468018, -0.4475274384021759, 0.18187843263149261, 0.4326692819595337, 0.33029645681381226, -0.06930706650018692, 0.15837357938289642, 0.27423715591430664, -0.044376190751791, -0.3048059940338135, 0.05096922069787979, -0.31963399052619934, -0.2033270001411438, 0.5453625917434692, -0.188422292470932, 0.37942612171173096, -0.6469951272010803, -0.13015128672122955, -0.12198364734649658, -0.0736413449048996, -0.257598340511322, -0.1783767193555832, -0.2917596101760864, -0.004186718724668026, 0.09752142429351807, -0.0571771115064621, -0.20287643373012543, -0.11098115891218185, -0.11848871409893036, 0.0728580579161644, -0.19370752573013306, -0.07362233847379684, 0.3003680408000946, -0.01020573265850544, 0.1203012764453888, -0.486139714717865, -0.09585150331258774, 0.1911880224943161, -0.6667367219924927, 0.12067325413227081, -0.2188408523797989, -0.1202927827835083, 0.4003292918205261, 0.08469721674919128, -0.3054260015487671, -0.3812125623226166, 0.37138035893440247, -0.4295200705528259, -0.038908325135707855, -0.1520431488752365, 0.1826784610748291, 0.018395209684967995, -0.35587021708488464, 0.1604367196559906, 0.22883085906505585, -0.31213846802711487, 0.5429902672767639, 0.02348705753684044, 0.16276034712791443, 0.5534465312957764, 0.07136122137308121, 0.33992162346839905, -0.19432160258293152, 0.4156879186630249, 0.2684938907623291, 0.3602381944656372, 0.23093269765377045, -0.0914667472243309, -0.03454605117440224, 0.10036233067512512, 0.1564803421497345, 0.15146128833293915, -0.3073578476905823, -0.272830069065094, 0.20290912687778473, -0.26487764716148376, -0.16562044620513916, 0.13061150908470154, 0.29855605959892273, 0.26467928290367126, 0.17797107994556427, 0.005038416013121605, -0.009179159998893738, -0.3101731240749359, 0.06168071925640106, -0.40232759714126587, 0.3576386570930481, -0.07306113094091415, 0.15018123388290405, 0.10391046106815338, 0.39427322149276733, -0.11967818439006805, -0.04565172269940376, 0.027974579483270645, 0.30511903762817383, 0.3976113796234131, -0.24303022027015686, -0.1537107229232788, 0.14637957513332367, -0.026809826493263245, -0.1105395182967186, 0.08711744099855423, 0.003678790293633938, 0.23585395514965057, -0.13551071286201477, -0.3427477777004242, 0.08149098604917526, -0.3534606993198395, 0.2958625257015228, 0.1269453763961792, -0.08105830103158951, -0.10616984963417053, 0.39733773469924927, 0.36306285858154297, -0.0829639881849289, 0.21934063732624054, 0.25067639350891113, 0.2315908670425415, 0.119779072701931, -0.09022180736064911, -0.44488805532455444, -0.059753112494945526, 0.3506866693496704, 0.15732316672801971, 0.14509636163711548, 0.022405166178941727, -0.20090031623840332, 0.1268606334924698, 0.07051154971122742, 0.09714712202548981, 0.43087345361709595, 0.02472461573779583, 0.2135307788848877, -0.11068607866764069, -0.25656360387802124, -0.3561367392539978, -0.1923692375421524, -0.028707504272460938, 0.06786338239908218, 0.12288346141576767, -0.4345380961894989, -0.25015905499458313, 0.11816703528165817, 0.26500245928764343, 0.0052690692245960236, -0.030142132192850113, -0.1712350845336914, -0.008468721061944962, -0.27497604489326477, 0.10656141489744186, 0.12451591342687607, 0.10179015249013901, -0.2940398156642914, 0.3126952648162842, 0.12274850904941559, -0.0676303505897522, 0.15256747603416443, 0.029748357832431793, 0.3849872052669525, 0.04791807383298874, -0.33981403708457947, 0.30836325883865356, -0.16113290190696716, -0.08853016048669815, 0.4070245325565338, -0.31435009837150574, -0.1308034211397171, 0.20530328154563904, -0.02603638544678688, 0.10879961401224136, 0.7285737991333008, 0.0019944021478295326, -0.11008087545633316, 0.36408063769340515, -0.0338774174451828, 0.0726047083735466, -0.06405399739742279, 0.3107098340988159, 0.14781029522418976, 0.07303424924612045, -0.20769764482975006, 0.43406447768211365, -0.11722086369991302, -0.0033024847507476807, -0.04117247462272644, 0.34780579805374146, -0.1850385218858719, 0.5188039541244507, 0.22978666424751282, 1.1950923204421997, 0.24061408638954163, 0.5728598237037659, 0.051741503179073334, -0.29447227716445923, 0.2535853087902069, 0.41573840379714966, 0.11129078269004822, -0.28644269704818726, -0.2355821430683136, 0.13648174703121185, -0.1306198537349701, 0.0005498230457305908, 0.2101580649614334, -0.24094311892986298, 0.09369993954896927, -0.14195184409618378, 0.26750755310058594, 0.29432642459869385, -0.2302785962820053, 0.21769797801971436, -0.057307738810777664, -0.3450915515422821, -0.07118523120880127, 0.2773832380771637, 0.27482280135154724, -0.19399231672286987, -0.27814942598342896, 0.07704897224903107, -0.3607083559036255, -0.42913657426834106, 0.15722951292991638, -0.3730945885181427, 0.08832897990942001, 0.39533835649490356, -0.5409880876541138, 0.6547018885612488, 0.22477635741233826, 0.25361478328704834, 0.5631204843521118, -0.07940360903739929, 0.050712235271930695, 0.28942981362342834, 0.09733407199382782, -0.179775670170784, 0.0144480736926198, 0.5519157648086548, 0.012160185724496841, 0.04125235229730606, 0.28249692916870117, -0.05950193479657173, 0.02756844460964203, -0.21725329756736755, 0.2173829823732376, 0.08016582578420639, -0.12477809190750122, -0.23433862626552582, -0.3244542181491852, -0.27069878578186035, -0.18512186408042908, 0.015650413930416107, 0.06197953224182129, -0.3386417627334595, -0.3103533983230591, 0.3613317608833313, -0.3787466585636139, 0.1988648921251297, -0.10045409947633743, -0.056516632437705994, -0.1729203313589096, 0.6822800636291504, 0.2763434648513794, -0.001209806650876999, -0.0976187214255333, 0.13963660597801208, 0.28769826889038086, -0.6326408982276917, 0.15574981272220612, -0.11840486526489258, -0.25150251388549805, -0.10941941291093826, 0.5897186398506165, 0.2871951162815094, 0.25792357325553894, -0.10394106805324554, -0.029904592782258987, -0.22537417709827423, 0.03198716789484024, -0.10823555290699005, 0.22383691370487213, 0.127355694770813, 0.4130334258079529, 0.34424060583114624, 0.15564830601215363, -0.21700066328048706, 0.11413871496915817, 0.08904796838760376, 0.06705401837825775, -0.22290316224098206, -0.13035109639167786, 0.23551572859287262, 0.08659999072551727, -0.10693560540676117, 0.6626659631729126, -0.1675892323255539, 0.05931885540485382, -0.4183334410190582, 0.14862048625946045, 0.02726643532514572, 0.0031874016858637333, 0.03647564724087715, 0.24717052280902863, 0.4145444333553314, -0.1533294916152954, -0.14495572447776794, -0.0679105669260025, 0.1935606598854065, 0.17101606726646423, 0.2616848051548004, 0.02588830515742302, -0.33165764808654785, -0.138563871383667, -0.0045831650495529175, 0.5585387945175171, 0.13097405433654785, 0.010004717856645584, -0.11371402442455292, -0.10004837810993195, 0.021844811737537384, 0.14616796374320984, 0.055917613208293915, 0.4423925578594208, -0.22837847471237183, -0.25486505031585693, 0.0035429932177066803, -0.42804422974586487, 0.15929639339447021, 0.3851206600666046, -0.034589529037475586, -0.20057283341884613, 0.06879248470067978, -0.006320774555206299, 0.1614159345626831, 0.05248294398188591, -0.007021574303507805, -0.014436564408242702, -0.15083593130111694, 0.40369361639022827, -0.21543700993061066, -0.22647146880626678, -0.18516118824481964, 0.3799479305744171, -0.6047680974006653, 0.0035699866712093353, 0.24596455693244934, 0.40392160415649414, -0.26561105251312256, 0.1844739317893982, 0.6294025182723999, -0.13667839765548706, 0.05343231186270714, -0.22030581533908844, -0.14440611004829407, -0.12442094087600708, -0.20465591549873352, 0.025414563715457916, 0.11102652549743652, -0.10706338286399841, -0.31812095642089844, -0.021103113889694214, 0.4367070496082306, 0.29245755076408386, -0.10682784020900726, 0.33451390266418457, -0.06217377260327339, -0.14641804993152618, 0.2827247083187103, 0.08889168500900269, -0.043234698474407196, -0.3021131157875061, 0.24903103709220886, 0.10814892500638962, -0.405532568693161, -0.21562549471855164, -0.1438697874546051, 0.10999834537506104, 0.13663125038146973, -0.04803624004125595, 0.06489649415016174, 0.2455509752035141, -0.3082064688205719, -0.05002724379301071, 0.2291680872440338, -0.40864863991737366, 0.2308468371629715, 0.1488850861787796, 0.02876642346382141, 0.09135781973600388, 0.09204596281051636, 0.519145667552948, 0.302117258310318, 0.052043113857507706, -0.20424601435661316, -0.2797171473503113, -0.1000397801399231, 0.31242653727531433, 0.2940065264701843, 0.31691086292266846, -0.17937014997005463, 0.14049497246742249, -0.004584725014865398, -0.21441616117954254, 0.2148660123348236, 0.1169498860836029, 0.25335970520973206, -0.11158359050750732, 0.2703627347946167, -0.2426304817199707, -0.4170231223106384, -0.31052547693252563, 0.1662786304950714, -0.19573095440864563, 0.15812669694423676, 0.19547714293003082, 0.011346699669957161, -0.06644037365913391, -0.19669100642204285, 0.02259771153330803, 0.4232783615589142, 0.527117908000946, 0.4195842146873474, 0.10876064002513885, -0.04724384471774101, 0.07667481899261475, -0.3694254755973816, 0.061064571142196655, 0.18605494499206543, 0.0669599175453186, -0.021795814856886864, -0.08961363881826401, 0.02920715883374214, 0.14778465032577515, 0.341083288192749, -0.013556132093071938, 0.01672324165701866, 0.06959214061498642, 0.04943852499127388, 0.09086687862873077, -0.03594403713941574, -0.12629812955856323, 0.09225303679704666, -0.1386377364397049, 0.08400244265794754, -0.4270131587982178, -0.05684211105108261, -0.12290939688682556, -0.012007374316453934, -0.12090680003166199, 0.091192826628685, 0.052382729947566986, 0.10413732379674911, 0.21148544549942017, -0.08019217848777771, -0.6181538701057434, -0.14329253137111664, -0.03235441446304321, 0.0014766054227948189, 0.6834223866462708, 0.1329037994146347, 0.5580741167068481, -0.18610887229442596, -0.047989461570978165, -0.3441748023033142, 0.38931575417518616, -0.05413190275430679, -0.29957008361816406, -0.1915593296289444, 0.13573697209358215, -0.31677305698394775, -0.16883186995983124, 0.2780781388282776, 0.5497985482215881, -0.11624841392040253, -0.2769191861152649, -0.456124484539032, -0.5371514558792114, 0.4644438922405243, -0.2337128221988678, -0.23274578154087067, -0.09262162446975708, 0.15251103043556213, 0.20419394969940186, -0.05107580125331879, -0.6905338764190674, -0.0012785866856575012, -0.010001874528825283, 0.08230732381343842, -0.36489638686180115, -0.12175735831260681, 0.02749558910727501, 0.04019778594374657, -0.08167560398578644, 0.2914457619190216, 0.1810711920261383, -0.12375485152006149, -0.13000904023647308, -0.23054705560207367 ]
https://github.com/huggingface/datasets/pull/13
[Make style]
Ok, just had to remove the python 2 syntax comments `# type`. Good to merge for me now @thomwolf
Added Makefile and applied make style to all. make style runs the following code: ``` style: black --line-length 119 --target-version py35 src isort --recursive src ``` It's the same code that is run in `transformers`.
19
text: [Make style] Added Makefile and applied make style to all. make style runs the following code: ``` style: black --line-length 119 --target-version py35 src isort --recursive src ``` It's the same code that is run in `transformers`. Ok, just had to remove the python 2 syntax comments `# type`. Good to merge for me now @thomwolf
[ -0.16693678498268127, -0.5298296213150024, -0.10912702977657318, -0.09197600185871124, 0.1421370804309845, -0.06329252570867538, 0.4213610887527466, 0.4825705289840698, -0.19870656728744507, 0.09070080518722534, -0.015644634142518044, 0.1713220477104187, -0.14795993268489838, 0.1309754103422165, -0.05857815593481064, 0.034367725253105164, -0.05531778186559677, 0.5819230079650879, -0.2846280634403229, -0.05134985223412514, -0.2256946563720703, 0.2896221876144409, 0.07264526188373566, 0.021679140627384186, -0.18746565282344818, 0.30091744661331177, -0.12069838494062424, 0.16328197717666626, -0.1265345960855484, -0.12387491762638092, 0.3205832242965698, 0.20541636645793915, -0.21079561114311218, 0.32706141471862793, -0.00010129967267857864, -0.13408374786376953, 0.23568080365657806, -0.15223973989486694, 0.1031021773815155, -0.04952479898929596, 0.1933915615081787, -0.0013911118730902672, 0.22779463231563568, -0.12088028341531754, -0.09363561868667603, -0.11228275299072266, 0.08914846181869507, 0.4318065047264099, 0.5934122204780579, 0.11774637550115585, 0.3236624300479889, 0.11960512399673462, 0.3010861575603485, 0.061312343925237656, 0.17731539905071259, 0.08518850803375244, -0.1140102967619896, -0.20025314390659332, 0.21570134162902832, 0.10656199604272842, 0.4290960729122162, 0.20187260210514069, 0.006396641954779625, -0.2401658445596695, 0.4115375280380249, -0.3550969958305359, 0.36743393540382385, -0.23246121406555176, -0.12160538882017136, 0.20062321424484253, 0.18445168435573578, 0.02902211807668209, -0.03644508868455887, 0.14872446656227112, -0.23361286520957947, -0.0838611051440239, -0.20142078399658203, 0.07513058930635452, -0.27330970764160156, 0.02936532348394394, -0.22361698746681213, -0.2915106415748596, -0.2838745713233948, -0.30129873752593994, 0.1309875100851059, 0.6986562013626099, 0.09122902154922485, -0.14554426074028015, 0.22217786312103271, 0.04678630456328392, 0.02249736152589321, 0.052125342190265656, -0.1369934380054474, 0.12292064726352692, 0.23125314712524414, -0.17260882258415222, 0.2913331687450409, -0.15563234686851501, -0.16264456510543823, 0.09737884998321533, 0.04432738199830055, 0.1200600191950798, 0.22596384584903717, 0.07662306725978851, -0.4123491644859314, 0.04165351390838623, 0.19241394102573395, 0.07242359220981598, 0.10871154069900513, -0.10937945544719696, 0.22453773021697998, -0.0165611170232296, -0.11773023009300232, -0.3091062903404236, -0.0872480571269989, 0.3606904149055481, 0.1732361912727356, -0.059145502746105194, -0.006127124652266502, -0.35606083273887634, 0.1659296452999115, -0.0843866616487503, -0.05700584873557091, 0.21447992324829102, 0.09605762362480164, 0.09610327333211899, 0.30397140979766846, 0.09513609111309052, -0.21983219683170319, 0.2496439814567566, -0.2879570722579956, -0.039412789046764374, -0.10149253159761429, -0.2942051291465759, 0.05091005191206932, 0.1525118350982666, -0.10818850249052048, 0.1587463766336441, 0.11090601235628128, -0.05055982992053032, 0.08319304883480072, 0.35968315601348877, 0.34497690200805664, 0.12856678664684296, -0.4843203127384186, -0.08556681871414185, 0.42312151193618774, -0.28956809639930725, -0.269304484128952, 0.11657765507698059, -0.061620138585567474, -0.2779279947280884, -0.09774965047836304, 0.32575711607933044, 0.034794893115758896, 0.07272693514823914, 0.23939946293830872, 0.029106954112648964, 0.14840427041053772, -0.18694670498371124, 0.119868703186512, -0.10175564885139465, 0.11694188416004181, -0.10865242034196854, 0.23620060086250305, 0.29000598192214966, -0.2658931314945221, -0.44613876938819885, 0.10190851986408234, -0.10555271804332733, 0.10537080466747284, 0.09508770704269409, 0.01732270047068596, -0.18072021007537842, -0.2878955900669098, -0.403255820274353, 0.553785502910614, -0.2892136573791504, 0.11131079494953156, 0.17423038184642792, -0.23311780393123627, -0.15896180272102356, 0.25905129313468933, -0.21100647747516632, 0.2653925120830536, -0.19775806367397308, -0.06034158170223236, 0.11042306572198868, -0.10406516492366791, 0.23133477568626404, -0.18169435858726501, -0.0005574747920036316, -0.09939493238925934, -0.1113591343164444, 0.18044711649417877, -0.09084955602884293, -0.09632968157529831, 0.10004369914531708, 0.4941938817501068, -0.25333812832832336, -0.03730727732181549, -0.10804472863674164, 0.600905179977417, 0.008929025381803513, 0.18203741312026978, -0.0998549684882164, 0.09017032384872437, -0.026183266192674637, -0.2973005473613739, 0.27707603573799133, -0.05949863791465759, -0.11128514260053635, -0.1807386875152588, -0.20911967754364014, -0.2727605700492859, -0.4862140119075775, 0.31216177344322205, -0.017725341022014618, -0.09709373116493225, -0.3264867663383484, 0.14896667003631592, -0.08169236779212952, 0.3321949243545532, 0.08124309033155441, -0.15630213916301727, 0.18180905282497406, -0.2659703493118286, -0.10261338949203491, -0.10997797548770905, 0.1076478511095047, -0.05589394271373749, -0.10697337985038757, -0.19921180605888367, 0.3388993740081787, -0.017081594094634056, 0.09307422488927841, -0.16688421368598938, 0.23851078748703003, 0.13045427203178406, -0.5748192071914673, 0.04793742299079895, 0.46699702739715576, -0.07377561181783676, -0.14781993627548218, -0.20100882649421692, 0.07042290270328522, -0.05401022359728813, 0.33985546231269836, -0.008837558329105377, 0.03914961963891983, -0.08209316432476044, 0.11131739616394043, -0.25881266593933105, -0.10488949716091156, -0.3223821818828583, 0.23439927399158478, 0.13784581422805786, 0.050763387233018875, 0.34514665603637695, 0.08930050581693649, 0.38074231147766113, 0.09280286729335785, -0.004875935614109039, 0.013589859008789062, -0.10829365998506546, -0.023242659866809845, -0.1759309321641922, 0.20738087594509125, -0.19775716960430145, 0.24418769776821136, -0.08339394629001617, 0.07378020137548447, 0.01492824126034975, -0.11579560488462448, 0.3185325860977173, 0.23236726224422455, 0.211835116147995, 0.062209755182266235, 0.02259947918355465, -0.07428507506847382, -0.2462638020515442, -0.2800697088241577, -0.18231163918972015, -0.35669010877609253, -0.009827893227338791, 0.280790776014328, 0.08883048593997955, 0.30404070019721985, -0.5036665201187134, -0.07567807286977768, -0.3075282871723175, -0.10789753496646881, 0.061672985553741455, 0.10687410086393356, -0.26034900546073914, 0.29656004905700684, 0.2862547039985657, 0.11346464604139328, 0.245148703455925, -0.3236072361469269, -0.016828972846269608, -0.16834837198257446, 0.14010336995124817, 0.25574854016304016, -0.1301926225423813, -0.24512098729610443, 0.20917941629886627, -0.3922768533229828, 0.22339436411857605, 0.1507185399532318, -0.6329150795936584, -0.010536886751651764, -0.15155594050884247, -0.2753833830356598, 0.35905978083610535, 0.07827827334403992, 0.26388972997665405, -0.2870790362358093, 0.22682945430278778, -0.2926872968673706, -0.08390644192695618, -0.1236400455236435, -0.2588092088699341, 0.04174044728279114, -0.296567440032959, -0.18459370732307434, -0.014612114056944847, -0.4622041881084442, 0.3141801953315735, 0.2040448933839798, 0.08950307220220566, 0.22303083539009094, 0.16244930028915405, 0.0030716368928551674, 0.16506893932819366, 0.21639135479927063, 0.16786645352840424, 0.3154817223548889, 0.2289440929889679, -0.24556922912597656, 0.04892895743250847, 0.028740156441926956, -0.18525272607803345, 0.12032748758792877, -0.32454681396484375, 0.14089041948318481, -0.025086160749197006, -0.35641226172447205, 0.006028681993484497, 0.4044106900691986, 0.3362952172756195, 0.4762856960296631, 0.4507332444190979, -0.17938651144504547, -0.0687527284026146, 0.030460260808467865, -0.02144763618707657, -0.12363351136445999, 0.1695878654718399, -0.16567903757095337, 0.13310837745666504, -0.20739656686782837, 0.6186286211013794, 0.01139805093407631, 0.05056001991033554, -0.13697151839733124, 0.18683385848999023, 0.350840300321579, -0.1962668001651764, -0.2698817849159241, 0.07758507877588272, 0.07621478289365768, -0.17306560277938843, 0.07260733097791672, 0.12906017899513245, -0.10866031795740128, -0.060859233140945435, -0.0030892714858055115, -0.002010282129049301, -0.1564672440290451, 0.007466132752597332, 0.3639569878578186, -0.029913395643234253, -0.07605917751789093, -0.013909678906202316, -0.19365786015987396, 0.11578113585710526, 0.26999160647392273, 0.19708247482776642, 0.047368910163640976, -0.10318926721811295, -0.1322537660598755, -0.11629237234592438, -0.07199323922395706, 0.22613587975502014, 0.2796093225479126, -0.3558162748813629, 0.2382618635892868, -0.6625679731369019, -0.19146381318569183, -0.2134479284286499, 0.4888320565223694, 0.2830108404159546, -0.06331352889537811, 0.23800036311149597, -0.036994196474552155, -0.26958218216896057, -0.28128373622894287, -0.14634747803211212, -0.06160902976989746, 0.4287187159061432, 0.020178943872451782, -0.3950116038322449, -0.12322885543107986, 0.1309724748134613, -0.0013650162145495415, -0.19121938943862915, -0.049815863370895386, -0.41754868626594543, 0.09674698859453201, -0.13394974172115326, 0.025100454688072205, 0.15917359292507172, 0.14976520836353302, -0.4867410957813263, -0.18072468042373657, 0.2783585488796234, -0.4507477283477783, 0.04466209188103676, 0.09599538147449493, 0.3660871088504791, -0.10418246686458588, -0.3022780120372772, -0.11482538282871246, -0.3412024676799774, -0.2715778052806854, 0.3312119245529175, -0.2618347704410553, -0.18621763586997986, 0.17673146724700928, -0.03283856064081192, 0.09207866340875626, 0.1125977635383606, 0.020072780549526215, -0.3981836438179016, -0.10029225051403046, 0.11483550071716309, -0.26224079728126526, -0.04723682254552841, 0.03791973367333412, 0.09100500494241714, 0.11861377954483032, -0.2057623714208603, 0.16700468957424164, -0.08816953003406525, -0.1706695258617401, 0.29157108068466187, 0.04138236865401268, -0.18876950442790985, 0.35467278957366943, 0.15143844485282898, 0.9174224138259888, -0.006077416241168976, 0.21441301703453064, 0.1065647304058075, -0.05292350798845291, 0.20369528234004974, 0.11937619745731354, 0.12485827505588531, -0.410048246383667, -0.18201512098312378, 0.2559987008571625, -0.10995998978614807, -0.05999373644590378, -0.008821681141853333, -0.2942717373371124, -0.03594135493040085, -0.10498589277267456, 0.02482753060758114, 0.15452013909816742, -0.13571278750896454, 0.02813827246427536, -0.11458563804626465, -0.04864797741174698, 0.19853253662586212, 0.21014417707920074, 0.05860450118780136, -0.22477620840072632, -0.10649040341377258, 0.1328427791595459, -0.4556172490119934, -0.18342626094818115, 0.24300211668014526, -0.0033622526098042727, 0.25135672092437744, 0.27315056324005127, -0.18223458528518677, 0.011254113167524338, 0.036111485213041306, 0.37414121627807617, 0.32099494338035583, -0.17919284105300903, 0.23394957184791565, 0.2547210156917572, 0.0780288577079773, -0.19522668421268463, 0.324235737323761, 0.2631096839904785, -0.15409857034683228, -0.08017797768115997, 0.0020137354731559753, 0.022058863192796707, -0.10866910219192505, -0.05943787097930908, -0.08832474052906036, -0.09901165962219238, -0.06250474601984024, 0.09275923669338226, -0.02119901031255722, -0.17257075011730194, -0.326150119304657, 0.25976142287254333, -0.023687444627285004, -0.3614486753940582, 0.007063910365104675, 0.2496405690908432, -0.32419461011886597, 0.14538565278053284, -0.23527565598487854, -0.01753491908311844, -0.009200440719723701, 0.18032774329185486, 0.26192912459373474, -0.13909363746643066, -0.3319200277328491, 0.017264962196350098, -0.08403334021568298, -0.5876055359840393, 0.39475321769714355, -0.02478725276887417, -0.3864038288593292, 0.11812512576580048, 0.41760891675949097, 0.11939042806625366, 0.47958076000213623, -0.15956948697566986, 0.2621886432170868, -0.34591805934906006, -0.07883588969707489, -0.16881853342056274, 0.4506337344646454, 0.02491580694913864, 0.19265535473823547, 0.09929368644952774, 0.27791866660118103, -0.5024521350860596, -0.10880633443593979, 0.05000556260347366, -0.04371989518404007, -0.00803891196846962, -0.4457945227622986, 0.1385444551706314, 0.09305758774280548, 0.1497073769569397, 0.12018202245235443, -0.36748015880584717, -0.26957258582115173, -0.15806376934051514, 0.03486277163028717, -0.1418229639530182, 0.07171017676591873, 0.006116331554949284, 0.28343552350997925, 0.041254669427871704, -0.11811688542366028, 0.3487769067287445, -0.23092591762542725, -0.026484526693820953, 0.37976184487342834, 0.2120932787656784, -0.25197267532348633, -0.09816190600395203, -0.13307923078536987, 0.12451869249343872, 0.3363564908504486, 0.1509665846824646, 0.07281222939491272, -0.33286067843437195, -0.1616370975971222, 0.0384017638862133, 0.2770834267139435, 0.1746925413608551, 0.1843162477016449, 0.10461309552192688, -0.035913847386837006, -0.10238400101661682, -0.29943832755088806, 0.2688066363334656, 0.0828537568449974, 0.041299208998680115, 0.048635974526405334, -0.10108587890863419, 0.366056352853775, -0.15891365706920624, -0.006029502488672733, -0.24059131741523743, -0.04595908895134926, 0.15772180259227753, 0.31251105666160583, -0.20035865902900696, -0.25717422366142273, 0.1252831220626831, 0.34692054986953735, 0.143971249461174, -0.03261985629796982, 0.24090614914894104, 0.20574486255645752, -0.1997908353805542, -0.15071280300617218, 0.40862035751342773, -0.07156501710414886, 0.1725422441959381, -0.09121033549308777, -0.11076333373785019, -0.08770899474620819, -0.2116023600101471, -0.16208523511886597, 0.3121473491191864, 0.08826607465744019, 0.021162625402212143, -0.23667427897453308, 0.24212709069252014, 0.18894356489181519, 0.19633032381534576, -0.007846727967262268, 0.09501222521066666, -0.14009477198123932, 0.04237913340330124, 0.25893059372901917, 0.13211588561534882, -0.22907529771327972, 0.1663747876882553, -0.05153162032365799, -0.08000498265028, -0.2206283062696457, 0.13645018637180328, 0.11585195362567902, 0.00842273235321045, 0.1585528552532196, 0.3087025582790375, 0.18385779857635498, -0.08020686358213425, -0.13920843601226807, 0.37186118960380554, -0.2443486899137497, -0.0576801523566246, 0.4639551043510437, -0.02582612633705139, -0.057123687118291855, 0.03751857951283455, 0.32715943455696106, 0.16120104491710663, -0.13503402471542358, -0.08227022737264633, -0.27812662720680237, -0.2252076417207718, -0.05532784014940262, -0.058762237429618835, 0.05750798061490059, -0.04392620548605919, -0.12177559733390808, 0.31155985593795776, -0.34456875920295715, 0.07197873294353485, -0.3136134743690491, -0.14962252974510193, -0.004487980622798204, 0.5263327956199646, 0.1509140431880951, -0.3376993238925934, -0.3262612819671631, 0.3479650318622589, -0.4346262216567993, -0.1483580321073532, 0.3512361943721771, -0.10771878808736801, -0.11089447885751724, -0.10445523262023926, 0.1631757616996765, 0.2526038885116577, 0.2257205694913864, 0.021014276891946793, 0.3773333430290222, 0.1788761019706726, -0.02737460285425186, -0.053368277847766876, 0.13062521815299988, 0.1670922487974167, 0.05433044582605362, 0.001707437913864851, 0.1994248479604721, 0.09376402199268341, -0.16718703508377075, 0.3009754717350006, -0.13937124609947205, 0.08976536989212036, -0.11043374240398407, 0.010944858193397522, 0.3303854167461395, -0.09817101061344147, 0.08212898671627045, 0.12368078529834747, -0.2782386243343353, -0.08611907064914703, -0.22792556881904602, 0.33393552899360657, -0.05575213581323624, -0.0004990324378013611, 0.22374862432479858, -0.07015892118215561, -0.03799491375684738, 0.12263543903827667, 0.16010846197605133, -0.2049139142036438, -0.38910868763923645, 0.12011750042438507, -0.11029426008462906, -0.0057868086732923985, 0.09228669106960297, 0.08495911955833435, 0.5146195888519287, 0.011102309450507164, -0.2583432197570801, -0.3224843144416809, 0.4093533158302307, 0.12886326014995575, -0.3273886442184448, -0.2508750259876251, 0.2156459540128708, -0.2992098927497864, -0.10240092873573303, -0.014001014642417431, 0.30612051486968994, -0.019207939505577087, -0.2727568745613098, -0.15164843201637268, -0.6340086460113525, 0.4918729364871979, 0.12784411013126373, -0.5496076345443726, -0.2883468568325043, 0.27405625581741333, -0.030026771128177643, 0.20961107313632965, -0.24916163086891174, 0.19776412844657898, 0.01313871517777443, 0.17926684021949768, -0.3939872086048126, 0.15758423507213593, 0.041369691491127014, 0.05218720808625221, -0.17521131038665771, 0.09542633593082428, 0.1651628613471985, 0.12595801055431366, -0.418547123670578, -0.2489302009344101 ]
https://github.com/huggingface/datasets/pull/12
[Map Function] add assert statement if map function does not return dict or None
Also added to an assert statement that if a dict is returned by function, all values of `dicts` are `lists`
IMO, if a function is provided that is not a print statement (-> returns variable of type `None`) or a function that updates the datasets (-> returns variable of type `dict`), then a `TypeError` should be raised. Not sure whether you had cases in mind where the user should do something else @thomwolf , but I think a lot of silent errors can be avoided with this assert statement.
20
text: [Map Function] add assert statement if map function does not return dict or None IMO, if a function is provided that is not a print statement (-> returns variable of type `None`) or a function that updates the datasets (-> returns variable of type `dict`), then a `TypeError` should be raised. Not sure whether you had cases in mind where the user should do something else @thomwolf , but I think a lot of silent errors can be avoided with this assert statement. Also added to an assert statement that if a dict is returned by function, all values of `dicts` are `lists`
[ -0.1939256340265274, -0.3436691462993622, -0.2431088238954544, 0.030684523284435272, 0.04450186342000961, -0.15015290677547455, 0.09033267199993134, 0.2546970248222351, 0.6046866178512573, 0.2722766399383545, 0.28866586089134216, 0.548271656036377, -0.40268465876579285, 0.10678780823945999, -0.2720062732696533, 0.20932213962078094, -0.07987784594297409, 0.20954424142837524, -0.13051463663578033, -0.16876329481601715, -0.37636685371398926, -0.07941713184118271, -0.2765269875526428, 0.11576071381568909, 0.013592157512903214, -0.41641080379486084, 0.1791941225528717, 0.11195977032184601, -0.17918162047863007, -0.5718804597854614, 0.15662109851837158, 0.0053310394287109375, -0.13604721426963806, 0.3887351155281067, -0.00010132526222150773, -0.18660466372966766, 0.2718064785003662, -0.07827620208263397, -0.02145913802087307, -0.2387991100549698, -0.4754791259765625, -0.08198802173137665, 0.1608223170042038, -0.39984768629074097, 0.046735167503356934, -0.12967488169670105, -0.018669893965125084, -0.3838687837123871, 0.19984567165374756, 0.17003580927848816, 0.2873161733150482, -0.16313861310482025, 0.03604895994067192, -0.004907153081148863, 0.2086428999900818, 0.25006547570228577, 0.10847856849431992, 0.035348933190107346, 0.14617544412612915, -0.007114026229828596, 0.1325727254152298, 0.426927775144577, -0.21367716789245605, 0.14249031245708466, -0.0773262158036232, -0.027511440217494965, 0.11389178037643433, -0.41764557361602783, -0.193935364484787, 0.4152289628982544, 0.32134145498275757, -0.14153677225112915, -0.20847830176353455, 0.07495252043008804, -0.16362927854061127, 0.14666254818439484, 0.21871870756149292, -0.249891996383667, -0.20228087902069092, 0.03658212348818779, -0.028275297954678535, -0.152863010764122, -0.0629333108663559, 0.2018459588289261, -0.355838805437088, 0.1644468605518341, -0.09901279956102371, 0.126901313662529, 0.009098730981349945, -0.27851927280426025, -0.513762354850769, -0.06130941957235336, -0.15457801520824432, 0.24835708737373352, -0.1274586021900177, -0.4634310305118561, 0.19869551062583923, -0.2553301751613617, 0.21780988574028015, -0.10055321455001831, 0.06021720543503761, 0.0515303909778595, -0.20635934174060822, 0.2684648931026459, 0.26010119915008545, 0.07364711165428162, 0.38863763213157654, 0.33032137155532837, 0.20905627310276031, -0.12293076515197754, -0.18971385061740875, -0.04506067931652069, 0.3279126286506653, 0.0785427987575531, 0.07776942849159241, 0.28061291575431824, 0.5737782716751099, -0.17570431530475616, 0.05913044512271881, 0.2941783666610718, -0.36089032888412476, -0.2206849902868271, 0.008255962282419205, 0.4376361072063446, 0.15109795331954956, 0.12350700795650482, 0.12275442481040955, -0.15929001569747925, 0.03081992082297802, 0.007941233925521374, -0.15373051166534424, 0.17083768546581268, -0.03960109502077103, -0.10581495612859726, -0.1277598738670349, 0.28804919123649597, -0.0007908493280410767, -0.0005575194954872131, -0.1053234338760376, 0.04357987642288208, 0.1559699922800064, -0.34302961826324463, 0.5501948595046997, 0.223321795463562, -0.293946236371994, -0.0021770186722278595, 0.31614699959754944, -0.05475262552499771, -0.1465735137462616, 0.21169182658195496, 0.07416435331106186, -0.0516410730779171, -0.10848309099674225, 0.3499336838722229, -0.0036860089749097824, 0.05928871035575867, 0.13172928988933563, 0.20285193622112274, -0.00054217129945755, -0.43911439180374146, 0.40443581342697144, 0.12649577856063843, 0.07205061614513397, -0.28885459899902344, -0.06323891133069992, 0.5174073576927185, -0.3101121187210083, 0.07589100301265717, -0.2072068750858307, -0.26676347851753235, -0.13226833939552307, 0.15746980905532837, -0.032657720148563385, 0.3386166989803314, -0.28680574893951416, 0.29428285360336304, 0.36937764286994934, -0.2520178258419037, -0.03179266303777695, 0.1679830253124237, 0.09720812737941742, 0.10547810047864914, 0.06842297315597534, 0.06865932792425156, 0.12613514065742493, -0.12472282350063324, 0.03410381078720093, -0.23753704130649567, -0.0998399406671524, -0.015273782424628735, -0.09876634180545807, 0.07467669248580933, 0.2829424738883972, -0.25483718514442444, -0.10228006541728973, 0.1655685007572174, 0.07401688396930695, -0.1341247856616974, 0.11445783078670502, -0.18809445202350616, -0.2373848259449005, -0.12759017944335938, 0.5362895727157593, -0.18841426074504852, -0.2530299723148346, -0.2950214147567749, -0.16256177425384521, 0.07093928009271622, -0.1137169823050499, -0.0013786815106868744, -0.12849248945713043, -0.09703941643238068, -0.025209574028849602, 0.21281452476978302, 0.11568890511989594, 0.08231575787067413, 0.31692615151405334, 0.08948050439357758, -0.01140701025724411, 0.2301868349313736, -0.2701588273048401, -0.12130057066679001, -0.16181322932243347, -0.0005890969187021255, 0.09002305567264557, -0.2236775904893875, 0.09573812782764435, -0.06556033343076706, -0.23951047658920288, -0.056285373866558075, 0.049578793346881866, 0.013943888247013092, -0.012174878269433975, 0.30662763118743896, 0.5233264565467834, -0.27134525775909424, -0.007736459374427795, -0.06290772557258606, -0.0682908147573471, -0.09029078483581543, -0.050775401294231415, 0.33887016773223877, 0.15642087161540985, -0.002199992537498474, -0.1353510320186615, 0.15144860744476318, 0.1750529557466507, -0.06141308695077896, -0.3803056478500366, 0.1815410703420639, 0.12885123491287231, -0.0009048804640769958, -0.11901769042015076, -0.3061785399913788, -0.09894903004169464, 0.1344042867422104, 0.12151993811130524, 0.005857892334461212, -0.050170302391052246, -0.2662125825881958, 0.38642239570617676, -0.010811004787683487, 0.5040786862373352, -0.001275423914194107, 0.14593586325645447, 0.2144237458705902, 0.2244398593902588, -0.019843731075525284, 0.27364382147789, 0.14482969045639038, -0.18043552339076996, -0.09197429567575455, 0.09749993681907654, 0.16450199484825134, 0.14510762691497803, -0.030296780169010162, 0.012745401822030544, 0.014274358749389648, 0.0038081035017967224, 0.045233823359012604, -0.06520732492208481, -0.3259216547012329, -0.15398412942886353, 0.10519228130578995, -0.2234647274017334, -0.132863387465477, 0.025907205417752266, -0.11279215663671494, 0.2660929262638092, -0.10469301789999008, -0.17709827423095703, -0.32444968819618225, 0.024009529501199722, -0.07000289857387543, -0.31953996419906616, 0.111750029027462, 0.14611533284187317, 0.18910625576972961, 0.17622986435890198, -0.242092564702034, -0.2697261571884155, -0.28146108984947205, 0.034757040441036224, 0.19729715585708618, 0.04324396699666977, -0.11917824298143387, 0.1287514865398407, 0.053196415305137634, -0.085267573595047, -0.012483811005949974, -0.2877354323863983, 0.1766943335533142, -0.19053170084953308, -0.07964441925287247, 0.5944187641143799, 0.37933552265167236, 0.09270882606506348, -0.19088174402713776, 0.04735830798745155, -0.16049110889434814, -0.28348013758659363, 0.10652777552604675, 0.2818419635295868, 0.06611955910921097, -0.24767358601093292, -0.3887379467487335, -0.12676900625228882, -0.31094613671302795, 0.27275586128234863, 0.050584826618433, 0.20471873879432678, 0.016614530235528946, 0.1277988851070404, 0.25430887937545776, -0.4126586318016052, 0.14172282814979553, -0.16236929595470428, 0.034085433930158615, 0.14189158380031586, 0.08861949294805527, -0.05548722669482231, 0.08421002328395844, -0.20899569988250732, 0.04194985330104828, 0.008582063019275665, -0.2534295320510864, -0.40834689140319824, -0.1001720055937767, 0.13700127601623535, -0.08066591620445251, 0.08312611281871796, 0.3515964448451996, 0.34536638855934143, -0.3355100452899933, -0.1821894645690918, -0.24170036613941193, 0.15821096301078796, 0.37532928586006165, 0.05213518440723419, 0.11929536610841751, 0.039479050785303116, -0.043275732547044754, -0.05626286566257477, 0.1986236870288849, -0.06508584320545197, 0.06518704444169998, -0.09356975555419922, 0.3425893187522888, 0.2119254171848297, -0.16736042499542236, -0.09494249522686005, 0.2607545554637909, -0.3107103109359741, 0.007212936878204346, -0.31491997838020325, -0.17908431589603424, -0.16580820083618164, -0.05718068405985832, -0.2720339000225067, -0.2667549252510071, 0.1931096911430359, -0.4806172251701355, 0.009243451058864594, -0.3242291510105133, 0.13182035088539124, -0.3024713695049286, 0.1996644139289856, -0.032668840140104294, -0.0997609943151474, 0.3835068941116333, -0.30028828978538513, -0.19178368151187897, -0.16561883687973022, -0.09480973333120346, 0.4772137999534607, 0.19152578711509705, 0.3283116817474365, -0.2136705219745636, -0.2890014350414276, -0.2703700065612793, 0.08353106677532196, 0.2889637053012848, -0.544465184211731, -0.2118416577577591, 0.05369042977690697, -0.25064897537231445, 0.0304898489266634, 0.20307663083076477, -0.5028916597366333, 0.26240411400794983, -0.0014498867094516754, 0.073524609208107, -0.48157331347465515, 0.016731133684515953, 0.00754772312939167, -0.09781447052955627, -0.08318579196929932, -0.02373681776225567, -0.03282472491264343, 0.020857922732830048, -0.2389114946126938, 0.206291064620018, 0.0008953269571065903, -0.36033666133880615, 0.2753014862537384, -0.1379065364599228, -0.13351094722747803, 0.09690990298986435, 0.08035764843225479, 0.31496506929397583, 0.23076549172401428, -0.27830278873443604, -0.3893040716648102, -0.08111560344696045, -0.12798932194709778, 0.06161446124315262, 0.22603119909763336, -0.2275034487247467, -0.06539453566074371, -0.15533849596977234, -0.07009367644786835, 0.3412160277366638, 0.07874356955289841, -0.08807230740785599, 0.07895924896001816, -0.13413140177726746, 0.021977990865707397, -0.19888222217559814, -0.17234407365322113, 0.3599845767021179, 0.0970078781247139, -0.13445232808589935, -0.04027784615755081, 0.05610969290137291, 0.10226711630821228, -0.20435921847820282, 0.37675151228904724, 0.08300497382879257, -0.2871015667915344, 0.4921410083770752, 0.25839078426361084, 0.8031538724899292, -0.10814310610294342, -0.16198967397212982, -0.006039440631866455, 0.17852553725242615, 0.7142503261566162, 0.056027159094810486, -0.0893838107585907, -0.08216714859008789, -0.004903989844024181, -0.25634855031967163, -0.11377005279064178, 0.25668099522590637, 0.0970882847905159, -0.7469437122344971, 0.02507895417511463, -0.10532601177692413, 0.3416340947151184, -0.06305239349603653, 0.2380000352859497, 0.1249273344874382, 0.038282692432403564, -0.34591445326805115, 0.2979680597782135, -0.058163054287433624, 0.09291011095046997, -0.08870596438646317, -0.09437236934900284, 0.13951422274112701, -0.4791446328163147, -0.2196872979402542, -0.2397705316543579, -0.29446497559547424, -0.03323740139603615, 0.1879628747701645, 0.1050662100315094, 0.11362889409065247, 0.3348200023174286, -0.08365577459335327, 0.44533804059028625, -0.1081526130437851, -0.260640025138855, 0.27173250913619995, 0.5189117193222046, 0.0513298325240612, -0.049354419112205505, 0.19294171035289764, 0.21823051571846008, -0.2664065659046173, 0.3126920163631439, -0.2599821388721466, -0.054171014577150345, -0.055720649659633636, 0.33983486890792847, -0.02809673547744751, -0.46877729892730713, 0.11892588436603546, 0.027612928301095963, -0.3214453160762787, 0.11112715303897858, 0.21800731122493744, 0.1473729908466339, -0.18659140169620514, 0.5058188438415527, 0.2601950764656067, -0.19054953753948212, 0.02727355808019638, -0.04091537743806839, 0.01005491428077221, 0.3421085774898529, 0.1316927969455719, -0.22643855214118958, -0.10001705586910248, -0.47458064556121826, -0.07850759476423264, -0.047801315784454346, -0.014589473605155945, 0.35662660002708435, 0.09036903828382492, -0.24841900169849396, 0.06639699637889862, 0.43762555718421936, 0.16899262368679047, 0.2696874439716339, -0.23543792963027954, -0.2146417200565338, -0.19685541093349457, 0.4041004180908203, 0.008497845381498337, 0.36466503143310547, 0.005225706845521927, 0.08050942420959473, -0.006055023521184921, 0.21766074001789093, -0.4860936999320984, -0.20890305936336517, -0.6173606514930725, 0.18253277242183685, -0.09697776287794113, 0.1364615112543106, 0.07364256680011749, -0.18089933693408966, 0.2703579068183899, 0.1340746283531189, -0.08806774020195007, -0.3082442283630371, 0.21515071392059326, 0.06652341783046722, 0.07430711388587952, 0.13933685421943665, -0.10083353519439697, -0.14141473174095154, 0.13770386576652527, -0.2644006311893463, -0.17738817632198334, 0.1351238191127777, -0.3255428075790405, 0.33665069937705994, 0.10624690353870392, 0.06834686547517776, -0.29504549503326416, 0.126560240983963, -0.20793184638023376, -0.30897045135498047, -0.18822826445102692, 0.12708565592765808, -0.11985749006271362, -0.20552989840507507, 0.467316210269928, 0.25082772970199585, 0.14255565404891968, 0.04718469828367233, 0.23956865072250366, 0.32004880905151367, -0.21759720146656036, 0.045280925929546356, 0.23533126711845398, 0.13140566647052765, -0.2701144814491272, -0.021084554493427277, 0.0638657659292221, 0.38274461030960083, -0.3206843435764313, 0.1151132881641388, 0.34916338324546814, -0.04190436750650406, 0.3535427749156952, 0.4329531490802765, -0.11849939823150635, -0.09885790944099426, 0.28297412395477295, -0.04385804012417793, -0.09026985615491867, -0.09386909008026123, 0.13728448748588562, 0.22784537076950073, -0.3302491009235382, -0.10325556993484497, 0.2360725998878479, 0.201011061668396, 0.2608862817287445, 0.13217701017856598, 0.18709614872932434, 0.15437598526477814, -0.015158046036958694, 0.031675856560468674, 0.34895798563957214, -0.2861722707748413, 0.6575663685798645, 0.13988688588142395, 0.054904792457818985, -0.08801016956567764, 0.24264074862003326, -0.043184928596019745, -0.16274653375148773, -0.10727880895137787, -0.13673067092895508, -0.11185877025127411, -0.21962693333625793, 0.3130005896091461, -0.0739269107580185, -0.03530046343803406, 0.09161226451396942, -0.6100181937217712, 0.21388216316699982, -0.16112299263477325, 0.6275304555892944, 0.28078216314315796, 0.16683043539524078, -0.06418939679861069, -0.12115911394357681, -0.15258285403251648, 0.20849576592445374, -0.23384074866771698, -0.007187815383076668, 0.3424564599990845, 0.17835965752601624, 0.174392968416214, 0.44058799743652344, 0.26887789368629456, 0.313060998916626, -0.25334930419921875, 0.20026712119579315, -0.1417682021856308, -0.18062539398670197, -0.19126954674720764, 0.1856364905834198, -0.21426016092300415, 0.11367905139923096, 0.11757662892341614, 0.34251683950424194, -0.14852066338062286, 0.023628219962120056, -0.22549019753932953, -0.05817854031920433, -0.026071783155202866, 0.2960467040538788, 0.34767797589302063, 0.09176615625619888, -0.24090394377708435, 0.04353281483054161, -0.3350330591201782, -0.20967422425746918, 0.07054997235536575, -0.1454518437385559, 0.24511736631393433, 0.17216745018959045, 0.15297479927539825, 0.1796363741159439, 0.08385857939720154, 0.27271437644958496, 0.18732726573944092, -0.23395174741744995, 0.06391526758670807, -0.32874834537506104, 0.07615260779857635, -0.004631437361240387, -0.2595548927783966, 0.0013763257302343845, 0.012514086440205574, 0.29022398591041565, 0.23618586361408234, 0.03732362389564514, -0.20892776548862457, -0.38369861245155334, 0.052614275366067886, -0.3632269501686096, -0.14053794741630554, -0.07495957612991333, -0.36866727471351624, 0.13811922073364258, -0.008741077035665512, 0.23396630585193634, 0.024444345384836197, 0.29259857535362244, 0.05356752499938011, -0.05831706523895264, -0.17443017661571503, -0.03659353405237198, 0.24603630602359772, 0.3609079420566559, 0.29293087124824524, -0.2494603395462036, -0.007048126310110092, 0.4226283133029938, 0.06127249822020531, -0.06552295386791229, 0.18676450848579407, 0.27795085310935974, 0.29890167713165283, -0.08262263238430023, 0.07843498885631561, -0.11193500459194183, 0.07864400744438171, 0.07115443795919418, 0.08333367854356766, -0.36041074991226196, 0.24719220399856567, -0.0051700882613658905, -0.10038523375988007, -0.21326717734336853, 0.07469071447849274, -0.0502522736787796, 0.21417108178138733, -0.1335224211215973, -0.2876073122024536, 0.480074405670166, 0.03322547674179077, -0.2116319090127945, -0.10895577818155289, 0.334567129611969, -0.1526176631450653, -0.052582383155822754, -0.3537163734436035, -0.17140193283557892, 0.3115480840206146, -0.03409025818109512, -0.24692758917808533, -0.031866952776908875, -0.16911262273788452, 0.07720156013965607, -0.15256856381893158, 0.2247593253850937, -0.13878604769706726, 0.11667017638683319, -0.00881720706820488, -0.12406930327415466 ]
https://github.com/huggingface/datasets/pull/12
[Map Function] add assert statement if map function does not return dict or None
Updated the assert statements. Played around with multiple cases and it should be good now IMO.
IMO, if a function is provided that is not a print statement (-> returns variable of type `None`) or a function that updates the datasets (-> returns variable of type `dict`), then a `TypeError` should be raised. Not sure whether you had cases in mind where the user should do something else @thomwolf , but I think a lot of silent errors can be avoided with this assert statement.
16
text: [Map Function] add assert statement if map function does not return dict or None IMO, if a function is provided that is not a print statement (-> returns variable of type `None`) or a function that updates the datasets (-> returns variable of type `dict`), then a `TypeError` should be raised. Not sure whether you had cases in mind where the user should do something else @thomwolf , but I think a lot of silent errors can be avoided with this assert statement. Updated the assert statements. Played around with multiple cases and it should be good now IMO.
[ -0.25187918543815613, -0.31129419803619385, -0.19086822867393494, 0.015253160148859024, 0.06767775118350983, -0.2592681050300598, 0.1609618067741394, 0.3379700779914856, 0.4375288784503937, 0.244367316365242, 0.24151350557804108, 0.5140551328659058, -0.32085517048835754, 0.16813340783119202, -0.31245678663253784, 0.23833999037742615, -0.10782461613416672, 0.20390954613685608, -0.11952084302902222, -0.17209912836551666, -0.38413307070732117, -0.050631143152713776, -0.27201491594314575, 0.19122597575187683, -0.11978971213102341, -0.2731848955154419, 0.19218258559703827, 0.14026480913162231, -0.2516229450702667, -0.5026484727859497, 0.19963672757148743, 0.033223576843738556, -0.15263566374778748, 0.47801172733306885, -0.00009828558540903032, -0.15660499036312103, 0.34055912494659424, -0.07203257083892822, 0.036262355744838715, -0.11329060792922974, -0.4119718074798584, 0.015570294111967087, 0.09032856673002243, -0.3701189458370209, -0.016445333138108253, -0.13335056602954865, -0.005749562755227089, -0.38036689162254333, 0.18781667947769165, 0.21424409747123718, 0.3435650169849396, -0.10916218906641006, 0.053647492080926895, -0.05954638868570328, 0.14442560076713562, 0.23670142889022827, 0.13029497861862183, 0.05553416535258293, 0.17253383994102478, -0.05187145620584488, 0.08966892212629318, 0.44899147748947144, -0.1574879288673401, 0.08932213485240936, -0.12604227662086487, -0.058635957539081573, 0.16614927351474762, -0.30044636130332947, -0.08741111308336258, 0.30052295327186584, 0.33022913336753845, -0.09161674231290817, -0.2209404706954956, 0.11111000925302505, -0.15631884336471558, 0.16428959369659424, 0.20329394936561584, -0.26010000705718994, -0.23167604207992554, 0.028596384450793266, -0.12116382271051407, -0.17371371388435364, -0.10533856600522995, 0.15702012181282043, -0.3453309237957001, 0.16242456436157227, -0.13722360134124756, 0.1322222650051117, -0.04614763334393501, -0.30354803800582886, -0.4561672806739807, 0.017524592578411102, -0.20249411463737488, 0.18758444488048553, -0.06709174811840057, -0.37101486325263977, 0.28478580713272095, -0.23656123876571655, 0.2124708592891693, -0.15140438079833984, 0.013218139298260212, 0.14638438820838928, -0.22108186781406403, 0.2791709005832672, 0.24346758425235748, 0.01575310528278351, 0.4205722212791443, 0.28088855743408203, 0.30990952253341675, -0.10144311189651489, -0.30778738856315613, -0.08338217437267303, 0.30588531494140625, -0.0948902890086174, 0.013244859874248505, 0.2494322657585144, 0.6064156889915466, -0.242156982421875, 0.15331116318702698, 0.1874716430902481, -0.345102995634079, -0.12129002809524536, -0.005109044723212719, 0.43658876419067383, 0.13953468203544617, 0.009977007284760475, 0.18645000457763672, -0.11443673074245453, -0.11803483217954636, -0.06362134218215942, -0.19379045069217682, 0.12136596441268921, -0.11730775237083435, -0.14602655172348022, -0.06190218776464462, 0.3237428069114685, -0.00256167259067297, -0.05740157514810562, -0.16680748760700226, 0.07410243898630142, 0.12076596915721893, -0.2664613723754883, 0.5129876136779785, 0.161464661359787, -0.2333354502916336, 0.00983278639614582, 0.2971087694168091, -0.09509894251823425, -0.07516353577375412, 0.15630537271499634, 0.03550628572702408, -0.09886737167835236, -0.10273061692714691, 0.3959331810474396, 0.0003376193344593048, 0.04654930159449577, 0.12052313983440399, 0.1261168122291565, 0.056600719690322876, -0.5244271755218506, 0.29038625955581665, 0.10053488612174988, 0.00852055475115776, -0.2926993668079376, 0.009767813608050346, 0.5075779557228088, -0.27638480067253113, 0.09571622312068939, -0.21669788658618927, -0.21891547739505768, -0.1143527701497078, 0.07581298798322678, -0.01798456721007824, 0.34546878933906555, -0.31228989362716675, 0.2845653295516968, 0.33252543210983276, -0.30482691526412964, -0.05922354757785797, 0.2536493241786957, 0.014658749103546143, 0.022228671237826347, 0.008327849209308624, -0.01795613393187523, 0.09675425291061401, -0.06716930121183395, 0.03734084218740463, -0.17527416348457336, -0.03553123027086258, 0.050847627222537994, -0.14353682100772858, 0.13048967719078064, 0.20014417171478271, -0.262404203414917, -0.00103798508644104, 0.1030767634510994, 0.10782108455896378, -0.15619701147079468, 0.19764381647109985, -0.22199732065200806, -0.11041081696748734, -0.067036934196949, 0.5961431860923767, -0.22009949386119843, -0.21718552708625793, -0.24236392974853516, -0.0834258571267128, 0.10306946188211441, -0.1141253188252449, 0.027251247316598892, -0.0552959144115448, -0.038738928735256195, -0.07994239777326584, 0.11330574005842209, 0.06962220370769501, -0.0824454128742218, 0.3706743121147156, 0.13339629769325256, -0.05229254439473152, 0.24387066066265106, -0.20343996584415436, -0.053114235401153564, -0.08765163272619247, -0.03540612384676933, 0.02964092418551445, -0.18316227197647095, 0.017234839498996735, -0.14458099007606506, -0.2025376558303833, -0.10566791146993637, 0.09519652277231216, 0.013629852794110775, -0.08860372006893158, 0.3756762146949768, 0.34738999605178833, -0.10718119144439697, -0.06924254447221756, -0.14812947809696198, -0.14655373990535736, -0.13695496320724487, -0.05538979172706604, 0.21092358231544495, 0.12453792989253998, -0.02484167367219925, -0.1951938271522522, 0.21419785916805267, 0.23691585659980774, -0.0680273249745369, -0.26775693893432617, 0.1962505280971527, 0.18123607337474823, -0.09457029402256012, -0.09743393957614899, -0.3043740391731262, -0.12440980970859528, 0.0942772775888443, 0.10793197154998779, -0.0659380555152893, -0.028591684997081757, -0.21685126423835754, 0.34878358244895935, 0.09459026157855988, 0.40331128239631653, -0.009359452873468399, 0.10478061437606812, 0.2111319899559021, 0.22699257731437683, 0.07739076018333435, 0.3504599630832672, 0.19926145672798157, -0.162455216050148, -0.019918354228138924, 0.11823639273643494, 0.1183302253484726, 0.18768271803855896, -0.0929332822561264, -0.054600752890110016, 0.1223631352186203, 0.06463316082954407, -0.04997904226183891, -0.20247972011566162, -0.20178307592868805, -0.1128549873828888, 0.10520391911268234, -0.31209003925323486, -0.13517478108406067, -0.039660416543483734, -0.18227249383926392, 0.18114030361175537, -0.09319210797548294, -0.1187182366847992, -0.35134896636009216, 0.0634986162185669, -0.053089287132024765, -0.3645209074020386, 0.22458647191524506, 0.09284412860870361, 0.1534578502178192, 0.17681393027305603, -0.17987319827079773, -0.20764198899269104, -0.2972293496131897, -0.003310408443212509, 0.21348626911640167, 0.024063721299171448, -0.06695687025785446, 0.17600859701633453, 0.028570683673024178, -0.024131715297698975, -0.09748724848031998, -0.37439385056495667, 0.1767750382423401, -0.21438966691493988, -0.05465225875377655, 0.5450547933578491, 0.2676394581794739, 0.08880822360515594, -0.20002858340740204, 0.15605692565441132, -0.31720903515815735, -0.28841862082481384, 0.07695033401250839, 0.2953025698661804, 0.021430805325508118, -0.3372959792613983, -0.44642242789268494, -0.031435221433639526, -0.3840571641921997, 0.23322683572769165, 0.054833028465509415, 0.14323367178440094, 0.09443996846675873, 0.18794623017311096, 0.2158641815185547, -0.361341655254364, 0.10620065033435822, -0.1668582707643509, -0.018932629376649857, 0.1869681179523468, -0.009170206263661385, -0.13560344278812408, 0.062017012387514114, -0.15180231630802155, 0.10190175473690033, -0.03409574553370476, -0.23533855378627777, -0.34956738352775574, -0.09055139869451523, 0.10501924157142639, 0.018841860815882683, 0.0613565668463707, 0.3281576633453369, 0.2914704382419586, -0.34829795360565186, -0.24586567282676697, -0.2478516548871994, 0.19991359114646912, 0.32537275552749634, 0.07526548951864243, 0.035573553293943405, 0.12311221659183502, -0.04589667543768883, -0.10113859176635742, 0.11456654965877533, -0.03546048328280449, 0.07807234674692154, -0.13138924539089203, 0.37973710894584656, 0.1829652190208435, -0.2818823456764221, 0.037559036165475845, 0.21860870718955994, -0.19849982857704163, 0.08149588853120804, -0.24999672174453735, -0.14094722270965576, -0.22597122192382812, -0.07210414111614227, -0.26174813508987427, -0.34700867533683777, 0.12904705107212067, -0.3512268662452698, -0.011259332299232483, -0.2233189344406128, 0.14299705624580383, -0.36681562662124634, 0.1779087781906128, 0.014789655804634094, -0.12318587303161621, 0.2519345283508301, -0.277509868144989, -0.21215885877609253, -0.03773343190550804, -0.11299826949834824, 0.5410928130149841, 0.1182626411318779, 0.3095027804374695, -0.2163422852754593, -0.25505807995796204, -0.20897720754146576, 0.014685045927762985, 0.3211962580680847, -0.5351741909980774, -0.059661947190761566, 0.1426069438457489, -0.2745446562767029, -0.11847269535064697, 0.1788354218006134, -0.45156702399253845, 0.3403463363647461, 0.05988398194313049, 0.16217610239982605, -0.384377658367157, 0.011985675431787968, 0.05264094099402428, -0.17178040742874146, -0.12966401875019073, -0.03809770569205284, -0.06719134747982025, 0.029086746275424957, -0.24830560386180878, 0.13540032505989075, -0.03167484700679779, -0.3092552423477173, 0.19965749979019165, -0.12811480462551117, -0.1398109495639801, 0.06580255180597305, 0.06619429588317871, 0.3185270428657532, 0.24029594659805298, -0.2416219860315323, -0.3444199860095978, -0.04871032387018204, -0.09272061288356781, 0.13657251000404358, 0.25776517391204834, -0.1746157556772232, 0.03152560070157051, -0.12237144261598587, -0.13789713382720947, 0.39165183901786804, 0.09139803051948547, -0.09513774514198303, 0.019995272159576416, -0.12155850231647491, 0.05660784989595413, -0.18529462814331055, -0.020675405859947205, 0.3476841151714325, 0.045985233038663864, -0.09867195039987564, 0.007125364616513252, 0.07181060314178467, 0.031900208443403244, -0.17557471990585327, 0.38208410143852234, 0.1165006160736084, -0.3015449643135071, 0.462413489818573, 0.15785600244998932, 0.7552812695503235, 0.03649212419986725, -0.17971399426460266, -0.0009563509374856949, 0.11243867874145508, 0.5805724263191223, 0.06907200813293457, -0.02169620618224144, -0.196049764752388, -0.01893824338912964, -0.15782323479652405, -0.05230174586176872, 0.2072625756263733, 0.051329463720321655, -0.7423676252365112, -0.010284105315804482, 0.006942778825759888, 0.29267123341560364, -0.08626233786344528, 0.21636569499969482, 0.18328949809074402, 0.03019830957055092, -0.3131502866744995, 0.3512742221355438, -0.030778996646404266, 0.12182992696762085, -0.06777557730674744, -0.14263148605823517, 0.12108062207698822, -0.48370689153671265, -0.14510178565979004, -0.12856218218803406, -0.24391090869903564, 0.0005147270858287811, 0.199268639087677, 0.13499222695827484, 0.08072459697723389, 0.29742351174354553, -0.062457337975502014, 0.4413585662841797, -0.16980496048927307, -0.1422407031059265, 0.2781054973602295, 0.42113587260246277, 0.02206171676516533, -0.01901235058903694, 0.16305091977119446, 0.13908836245536804, -0.33094266057014465, 0.2609849274158478, -0.21430306136608124, -0.08550631999969482, -0.04391155391931534, 0.2739165127277374, -0.012246891856193542, -0.4391745626926422, 0.0953967422246933, -0.018326863646507263, -0.26151683926582336, -0.003574628382921219, 0.2727142572402954, 0.09709695726633072, -0.17776313424110413, 0.5103784203529358, 0.34218069911003113, -0.2529296278953552, 0.06358565390110016, 0.14776499569416046, -0.07013548910617828, 0.36689522862434387, 0.19401301443576813, -0.1827612817287445, -0.09674794971942902, -0.464429646730423, -0.07502587884664536, 0.02257539890706539, -0.04462083429098129, 0.3299267292022705, 0.05942825973033905, -0.2351571023464203, 0.18894103169441223, 0.41861847043037415, 0.1254369616508484, 0.16978459060192108, -0.19030162692070007, -0.18854624032974243, -0.2905590534210205, 0.3645321726799011, -0.06264813244342804, 0.3479193449020386, 0.0029615722596645355, 0.18230365216732025, 0.05980747193098068, 0.2615131735801697, -0.5294191837310791, -0.14326494932174683, -0.542879581451416, 0.17963945865631104, -0.10078683495521545, 0.10440831631422043, 0.07625222951173782, -0.19355130195617676, 0.2846445143222809, 0.13925808668136597, -0.1453649252653122, -0.32973572611808777, 0.1785140186548233, 0.05462124943733215, 0.09492304921150208, 0.19027361273765564, -0.056672267615795135, -0.12393855303525925, 0.12959280610084534, -0.17591458559036255, -0.15695230662822723, 0.18737727403640747, -0.2856355905532837, 0.30422699451446533, 0.08990512043237686, 0.018994837999343872, -0.21850313246250153, 0.0987228974699974, -0.12797404825687408, -0.2782594561576843, -0.22931256890296936, 0.02904343046247959, -0.13814708590507507, -0.20354792475700378, 0.5637750625610352, 0.17090663313865662, 0.08514421433210373, 0.14026865363121033, 0.25075799226760864, 0.18602202832698822, -0.2013978809118271, 0.04403022304177284, 0.2940063774585724, 0.10174047946929932, -0.27282723784446716, -0.02064885012805462, 0.09054718166589737, 0.41695526242256165, -0.29743558168411255, 0.1722174733877182, 0.406724750995636, -0.06860949099063873, 0.32128268480300903, 0.3335195481777191, -0.19112394750118256, -0.15025557577610016, 0.23291073739528656, 0.09286516904830933, -0.11521696299314499, -0.10966004431247711, 0.041090793907642365, 0.1667206585407257, -0.4325900077819824, -0.10778751969337463, 0.2759925127029419, 0.18384012579917908, 0.24391013383865356, 0.2146478295326233, 0.20053938031196594, 0.08262592554092407, -0.06403325498104095, -0.03175181522965431, 0.2543244957923889, -0.22153890132904053, 0.5800966620445251, 0.11992638558149338, 0.024524368345737457, -0.0494607612490654, 0.21834401786327362, 0.08683482557535172, -0.22549110651016235, -0.07617532461881638, -0.16473448276519775, -0.05851733312010765, -0.2986111044883728, 0.24417716264724731, -0.11495975404977798, -0.07159044593572617, 0.05063919723033905, -0.4966942369937897, 0.15524649620056152, -0.004709221422672272, 0.5918235778808594, 0.2247840315103531, 0.07465649396181107, -0.09432607889175415, -0.13904404640197754, -0.21889829635620117, 0.19704316556453705, -0.2581472098827362, 0.05081603676080704, 0.3224295377731323, 0.17468798160552979, 0.2135550081729889, 0.4913080930709839, 0.30841031670570374, 0.37232908606529236, -0.2799990475177765, 0.12173181027173996, -0.10827118158340454, -0.15057851374149323, -0.217264786362648, 0.19838106632232666, -0.08244213461875916, 0.04284391179680824, 0.23278546333312988, 0.36667293310165405, -0.22155193984508514, 0.032149821519851685, -0.1276618242263794, 0.024199239909648895, -0.017271362245082855, 0.22554641962051392, 0.3130103051662445, 0.05737415701150894, -0.21803289651870728, -0.04412879794836044, -0.40909266471862793, -0.22333349287509918, 0.048138577491045, -0.14617839455604553, 0.25808241963386536, 0.08801481127738953, 0.16642378270626068, 0.1824011653661728, 0.1744655966758728, 0.2072133868932724, 0.11918271332979202, -0.20525842905044556, -0.02052871137857437, -0.45862260460853577, 0.1378902941942215, -0.018851231783628464, -0.218396857380867, -0.11893956363201141, 0.041812919080257416, 0.3002285361289978, 0.11106947809457779, 0.11627727001905441, -0.19523289799690247, -0.3693275451660156, -0.010713823139667511, -0.43782109022140503, -0.11037607491016388, -0.0517406091094017, -0.3505792021751404, 0.16368702054023743, -0.06243988499045372, 0.24556121230125427, -0.06850174069404602, 0.3576037585735321, 0.15719124674797058, -0.09405866265296936, -0.0798083245754242, -0.015586532652378082, 0.3228306770324707, 0.322265088558197, 0.30542123317718506, -0.27753984928131104, 0.008772695437073708, 0.2793966233730316, 0.018606487661600113, -0.043729864060878754, 0.19021713733673096, 0.31906506419181824, 0.3785455524921417, -0.023588623851537704, 0.0793394073843956, -0.17240369319915771, 0.10346613079309464, 0.089063361287117, 0.08374278992414474, -0.2830621600151062, 0.27477648854255676, 0.05746240168809891, -0.15805843472480774, -0.29811570048332214, 0.03843001648783684, -0.13143794238567352, 0.2297610193490982, -0.19093549251556396, -0.3899312913417816, 0.5756852626800537, -0.02610049769282341, -0.2674082815647125, -0.061093345284461975, 0.3445252478122711, -0.07363327592611313, -0.08070139586925507, -0.3772900402545929, -0.09526542574167252, 0.2539167106151581, 0.012348121032118797, -0.20209901034832, -0.0527057908475399, -0.24199911952018738, 0.03155870363116264, -0.09690970182418823, 0.3239066004753113, 0.0025091413408517838, 0.12097933888435364, 0.011985871940851212, -0.05300110578536987 ]